/* OVP Dentissimo Widgets — Servicii: Grilă
   Structura e definită aici; culorile/tipografia vin din controalele de
   Stil din Elementor (vezi class-servicii-grila-widget.php) și au
   !important — aceeași hibă de temă întâlnită la celelalte widgeturi.

   Aranjament pe 2 blocuri: .dvf-sg-grid e un CSS Grid pe 2 coloane
   (1fr / 2fr) — cardul principal (.dvf-sg-featured) în stânga, blocul
   .dvf-sg-right în dreapta. Cardul principal nu are o înălțime proprie
   fixă: `align-items: stretch` (valoarea implicită pe grid) îl întinde
   automat cât tot blocul din dreapta, oricât de înalt ar deveni el.
   .dvf-sg-right e la rândul lui un CSS Grid pe 2 coloane, cu serviciile
   din repeater și bara CTA finală (.dvf-sg-cta, `grid-column: span 2`) —
   se reașază singur dacă se adaugă/șterg servicii, fără niciun JS.

   Orice iconiță ICONS din Elementor e randată ca SVG inline, nu ca literă
   de font — de-aceea fiecare cerc de iconiță de mai jos are explicit
   „fill: currentColor" pe svg (lecția din Testimoniale Video, v1.3.4). */

.dvf-sg,
.dvf-sg * {
	box-sizing: border-box;
}

.dvf-sg {
	width: 100%;
	/* Spațiu vertical standard plugin-wide (v3.0.0): 25px, cu
	   breakpoint-uri mai jos pentru tabletă/mobil. */
	padding-top: 25px;
	padding-bottom: 25px;
}

/* ===================== Antet ===================== */

.dvf-sg-header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.dvf-sg-header-text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 640px;
	min-width: 0;
}

.dvf-sg-eyebrow.dvf-sg-eyebrow.dvf-sg-eyebrow {
	display: block !important;
	margin: 0 !important;
}

.dvf-sg-eyebrow {
	color: #1C6FEB;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.dvf-sg-heading.dvf-sg-heading.dvf-sg-heading {
	display: block !important;
	margin: 0 !important;
}

.dvf-sg-heading {
	color: #043150;
	font-family: 'Inter', sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
}

.dvf-sg-description.dvf-sg-description.dvf-sg-description {
	display: block !important;
	margin: 0 !important;
}

.dvf-sg-description {
	color: #4B5A6B;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

.dvf-sg-handwritten.dvf-sg-handwritten.dvf-sg-handwritten {
	display: block !important;
	margin: 0 !important;
}

.dvf-sg-handwritten {
	flex-shrink: 0;
	max-width: 260px;
	color: #043150;
	font-family: 'Caveat', cursive;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	text-align: right;
	transform: rotate(-2deg);
	pointer-events: none;
}

/* ===================== Grilă ===================== */

.dvf-sg-grid {
	display: grid;
	/* Cardul principal ocupă 1/3 din lățime, blocul din dreapta 2/3 — și,
	   pentru că e tot un grid cu `align-items: stretch` (valoarea implicită),
	   cardul principal se întinde automat pe toată înălțimea blocului din
	   dreapta (servicii + bara CTA), oricât de înalt ar deveni el. */
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 2fr );
	gap: 24px;
	align-items: stretch;
}

.dvf-sg-card {
	text-decoration: none;
}

/* -------- Card principal ("Cel mai căutat") -------- */

.dvf-sg-featured {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px;
}

/* -------- Bloc din dreapta (servicii + bara CTA) -------- */

.dvf-sg-right {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 24px;
	align-content: start;
}

.dvf-sg-featured-bg {
	position: absolute;
	inset: 0;
	background-color: #043150;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.dvf-sg-featured-overlay {
	position: absolute;
	inset: 0;
	/* Culoarea (cu alpha) vine din controlul „Culoare voal" din Stil, ca
	   variabilă CSS — vezi nota din class-hero-crumb-widget.php despre
	   pattern-ul var()-cu-fallback pentru "nudge"-uri fără trick de ordine
	   a controalelor. */
	background: linear-gradient( 180deg, transparent 0%, var( --dvf-sg-overlay-color, rgba( 4, 49, 80, 0.92 ) ) 72% );
	z-index: 1;
}

.dvf-sg-featured-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.dvf-sg-badge.dvf-sg-badge.dvf-sg-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	align-self: flex-start !important;
	padding: 6px 14px !important;
	border-radius: 999px !important;
}

.dvf-sg-badge {
	background-color: #F4D58D;
	color: #043150;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.dvf-sg-badge svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.dvf-sg-badge i {
	font-size: 12px;
}

.dvf-sg-featured-bottom {
	margin-top: auto;
	padding-top: 100px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dvf-sg-featured-title.dvf-sg-featured-title.dvf-sg-featured-title {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin: 0 !important;
}

.dvf-sg-featured-title {
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
}

.dvf-sg-featured-arrow {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba( 255, 255, 255, 0.16 );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #FFFFFF;
}

.dvf-sg-featured-arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dvf-sg-featured-desc.dvf-sg-featured-desc.dvf-sg-featured-desc {
	display: block !important;
	margin: 0 !important;
}

.dvf-sg-featured-desc {
	color: rgba( 255, 255, 255, 0.85 );
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
}

.dvf-sg-featured-bullets {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dvf-sg-featured-bullet.dvf-sg-featured-bullet.dvf-sg-featured-bullet {
	display: flex !important;
}

.dvf-sg-featured-bullet {
	align-items: center;
	gap: 10px;
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
}

.dvf-sg-featured-bullet svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	fill: currentColor;
}

.dvf-sg-featured-bullet i {
	font-size: 14px;
	flex-shrink: 0;
}

/* -------- Carduri servicii -------- */

.dvf-sg-item.dvf-sg-item.dvf-sg-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	gap: 16px !important;
	border-style: solid !important;
	border-width: 1px !important;
	padding: 20px !important;
}

.dvf-sg-item {
	background-color: #FFFFFF;
	border-radius: 16px;
	border-color: #E9EDF2;
}

.dvf-sg-item-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dvf-sg-icon.dvf-sg-icon.dvf-sg-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
}

.dvf-sg-icon {
	background-color: #EFF4FA;
	color: #1C6FEB;
}

.dvf-sg-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Pachetul de iconițe Dentissimo (assets/icons/*.svg, cls. OVP_DW_Icons) e
   desenat cu linie (fill="none" stroke="currentColor"), spre deosebire de
   iconițele Elementor/Font Awesome de mai sus (umplute, „fill: currentColor").
   Cele 4 reguli de mai jos au adaugată o clasă în plus față de regulile
   „fill: currentColor" corespunzătoare, deci câștigă indiferent de ordinea
   din fișier — vezi nota din class-servicii-grila-widget.php despre
   „fill: currentColor" pe svg (lecția din Testimoniale Video, v1.3.4),
   aplicată aici invers, pentru un pachet de iconițe pe bază de contur. */
.dvf-sg-icon svg.dvf-sg-custom-icon,
.dvf-sg-badge svg.dvf-sg-custom-icon,
.dvf-sg-featured-bullet svg.dvf-sg-custom-icon,
.dvf-sg-cta-icon svg.dvf-sg-custom-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dvf-sg-item-title.dvf-sg-item-title.dvf-sg-item-title {
	display: block !important;
	margin: 0 !important;
}

.dvf-sg-item-title {
	color: #043150;
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.dvf-sg-item-desc.dvf-sg-item-desc.dvf-sg-item-desc {
	display: block !important;
	margin: 0 !important;
}

.dvf-sg-item-desc {
	color: #4B5A6B;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.dvf-sg-item-link.dvf-sg-item-link.dvf-sg-item-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-top: auto !important;
}

.dvf-sg-item-link {
	color: #1C6FEB;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
}

.dvf-sg-item-link i {
	font-size: 11px;
}

.dvf-sg-item-link svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dvf-sg-item-image.dvf-sg-item-image.dvf-sg-item-image {
	display: block !important;
	flex-shrink: 0 !important;
	width: 96px !important;
	flex-basis: 96px !important;
	border-radius: 12px !important;
}

.dvf-sg-item-image {
	background-color: #EFF4FA;
	background-size: cover;
	background-position: center;
}

/* -------- Bară CTA finală -------- */

.dvf-sg-cta.dvf-sg-cta.dvf-sg-cta {
	grid-column: span 2 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 20px !important;
	padding: 24px 28px !important;
}

.dvf-sg-cta {
	background-color: #EFF4FA;
	border-radius: 16px;
}

.dvf-sg-cta-left {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.dvf-sg-cta-icon.dvf-sg-cta-icon.dvf-sg-cta-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
}

.dvf-sg-cta-icon {
	background-color: #FFFFFF;
	color: #1C6FEB;
}

.dvf-sg-cta-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.dvf-sg-cta-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dvf-sg-cta-title.dvf-sg-cta-title.dvf-sg-cta-title {
	display: block !important;
}

.dvf-sg-cta-title {
	color: #043150;
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 700;
}

.dvf-sg-cta-desc.dvf-sg-cta-desc.dvf-sg-cta-desc {
	display: block !important;
}

.dvf-sg-cta-desc {
	color: #4B5A6B;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
}

.dvf-sg-cta-button.dvf-sg-cta-button.dvf-sg-cta-button {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 12px 26px !important;
	border-radius: 30px !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.2s ease !important;
}

.dvf-sg-cta-button {
	background-color: #043150;
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.dvf-sg-cta-button i {
	font-size: 12px;
}

.dvf-sg-cta-button svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ===================== Responsive ===================== */

@media (max-width: 1024px) {
	.dvf-sg {
		padding-top: 20px;
		padding-bottom: 20px;
	}
}

@media (max-width: 767px) {
	.dvf-sg {
		padding-top: 16px;
		padding-bottom: 16px;
	}
}

@media (max-width: 1024px) {
	/* Sub 1024px cardul principal nu mai are cu ce să se întindă pe
	   înălțime în mod natural (lățimea rămasă e prea mică pentru poză +
	   text) — trece deasupra, pe toată lățimea, iar blocul din dreapta
	   coboară dedesubt, tot pe 2 coloane. */
	.dvf-sg-grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	.dvf-sg-featured {
		height: auto;
		min-height: 320px;
	}

	.dvf-sg-featured-bottom {
		padding-top: 60px;
	}

	.dvf-sg-heading {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	.dvf-sg-right {
		grid-template-columns: minmax( 0, 1fr );
	}

	.dvf-sg-cta.dvf-sg-cta.dvf-sg-cta {
		grid-column: span 1 !important;
	}

	.dvf-sg-item.dvf-sg-item.dvf-sg-item {
		flex-direction: column !important;
	}

	.dvf-sg-item-image.dvf-sg-item-image.dvf-sg-item-image {
		width: 100% !important;
		flex-basis: 140px !important;
		height: 140px !important;
	}

	.dvf-sg-cta.dvf-sg-cta.dvf-sg-cta {
		flex-direction: column !important;
		align-items: flex-start !important;
	}

	.dvf-sg-cta-button.dvf-sg-cta-button.dvf-sg-cta-button {
		width: 100% !important;
		justify-content: center !important;
	}

	.dvf-sg-handwritten-hide-mobile {
		display: none;
	}
}
