/**
 * Landing fotovoltaico – solo pagina con template page-fotovoltaico.php
 * Scope: #lp-fv per evitare conflitti con Bootstrap / tema.
 */

/* Breadcrumb Yoast sotto header */
body.page-template-page-fotovoltaico-php #breadcrumbs {
	display: none !important;
}

body.page-template-page-fotovoltaico-php {
	scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
	body.page-template-page-fotovoltaico-php {
		scroll-padding-top: 0;
	}
}

#lp-fv {
	/* Allineati a components/css/style.css (body Roboto, titoli Montserrat) */
	--lp-fv-font-display: "Montserrat", sans-serif;
	--lp-fv-font-display-weight: 500;
	--lp-fv-font-body: "Roboto", sans-serif;
	--lp-fv-blue: #0b387f;
	--lp-fv-blue-dark: #082a61;
	--lp-fv-blue-light: #dce8f7;
	--lp-fv-yellow: #fcc70b;
	--lp-fv-yellow-dark: #e6b000;
	--lp-fv-color-bg: #f5f7fb;
	--lp-fv-color-surface: #ffffff;
	--lp-fv-color-surface-2: #f9fafc;
	--lp-fv-color-border: rgba(11, 56, 127, 0.12);
	--lp-fv-color-text: #0f1d35;
	--lp-fv-color-text-muted: #4a5a78;
	--lp-fv-shadow-sm: 0 1px 3px rgba(11, 56, 127, 0.06);
	--lp-fv-shadow-md: 0 8px 28px rgba(11, 56, 127, 0.1);
	--lp-fv-shadow-lg: 0 20px 56px rgba(11, 56, 127, 0.14);
	--lp-fv-transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
	--lp-fv-content: 1160px;
	--lp-fv-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	--lp-fv-text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
	--lp-fv-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--lp-fv-text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
	--lp-fv-text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
	--lp-fv-space-2: 0.5rem;
	--lp-fv-space-3: 0.75rem;
	--lp-fv-space-4: 1rem;
	--lp-fv-space-5: 1.25rem;
	--lp-fv-space-6: 1.5rem;
	--lp-fv-space-8: 2rem;
	--lp-fv-space-10: 2.5rem;
	--lp-fv-space-12: 3rem;
	--lp-fv-space-16: 4rem;
	--lp-fv-space-24: 6rem;
	/* Padding verticale tra fasce: metà del valore originale */
	--lp-fv-band-pad-y: clamp(calc(var(--lp-fv-space-12) / 2), 3.5vw, calc(var(--lp-fv-space-24) / 2));
	--lp-fv-hero-pad-bottom: calc(var(--lp-fv-space-16) / 2);
	--lp-fv-radius-md: 0.65rem;
	--lp-fv-radius-lg: 1rem;
	--lp-fv-radius-xl: 1.5rem;
	--lp-fv-radius-full: 9999px;

	box-sizing: border-box;
	font-family: var(--lp-fv-font-body);
	font-size: var(--lp-fv-text-base);
	line-height: 1.65;
	color: var(--lp-fv-color-text);
	background-color: var(--lp-fv-color-bg);
	display: block;
}

#lp-fv *,
#lp-fv *::before,
#lp-fv *::after {
	box-sizing: border-box;
}

#lp-fv img,
#lp-fv svg {
	display: block;
	max-width: 100%;
}

#lp-fv a {
	color: inherit;
	text-decoration: none;
}

#lp-fv h1,
#lp-fv h2,
#lp-fv h3,
#lp-fv h4 {
	text-wrap: balance;
	line-height: 1.1;
}

#lp-fv p,
#lp-fv li {
	text-wrap: pretty;
	max-width: 72ch;
}

#lp-fv :focus-visible {
	outline: 2px solid var(--lp-fv-yellow);
	outline-offset: 3px;
}

.lp-fv-skip {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lp-fv-skip:focus {
	position: fixed;
	left: var(--lp-fv-space-4);
	top: var(--lp-fv-space-4);
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--lp-fv-space-3) var(--lp-fv-space-4);
	clip: auto;
	overflow: visible;
	white-space: normal;
	background: var(--lp-fv-color-surface);
	color: var(--lp-fv-color-text);
	border: 2px solid var(--lp-fv-blue);
	border-radius: var(--lp-fv-radius-md);
	font-weight: 700;
}

#lp-fv .lp-fv-container {
	width: min(calc(100% - 2rem), var(--lp-fv-content));
	margin-left: auto;
	margin-right: auto;
}

#lp-fv .lp-fv-section {
	padding: var(--lp-fv-band-pad-y) 0;
}

#lp-fv .lp-fv-section--tight-bottom {
	padding-bottom: 0;
}

#lp-fv .lp-fv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--lp-fv-space-2);
	padding: 0.4rem 0.9rem;
	border-radius: var(--lp-fv-radius-full);
	background: color-mix(in srgb, var(--lp-fv-blue) 10%, var(--lp-fv-color-surface));
	color: var(--lp-fv-blue);
	font-size: var(--lp-fv-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#lp-fv .lp-fv-section-title {
	margin: var(--lp-fv-space-3) 0 var(--lp-fv-space-4);
	font-family: var(--lp-fv-font-display);
	font-weight: var(--lp-fv-font-display-weight);
	font-size: var(--lp-fv-text-xl);
	letter-spacing: -0.03em;
}

#lp-fv .lp-fv-section-intro {
	color: var(--lp-fv-color-text-muted);
}

#lp-fv .lp-fv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--lp-fv-space-2);
	min-height: 52px;
	padding: 0.9rem 1.4rem;
	border-radius: var(--lp-fv-radius-full);
	border: 0;
	font-size: var(--lp-fv-text-sm);
	font-weight: 700;
	white-space: nowrap;
	transition: transform var(--lp-fv-transition), background var(--lp-fv-transition), box-shadow var(--lp-fv-transition);
	text-decoration: none;
	box-shadow: none;
}

#lp-fv .lp-fv-btn:hover {
	transform: translateY(-2px);
	color: inherit;
	text-decoration: none;
}

#lp-fv .lp-fv-btn:active {
	transform: translateY(0);
}

#lp-fv .lp-fv-btn-yellow {
	background: var(--lp-fv-yellow);
	color: #0f1d35;
	box-shadow: var(--lp-fv-shadow-md);
}

#lp-fv .lp-fv-btn-yellow:hover {
	background: var(--lp-fv-yellow-dark);
	color: #0f1d35;
}

#lp-fv .lp-fv-btn-wa {
	background: #25d366;
	color: #072d14;
	box-shadow: var(--lp-fv-shadow-sm);
}

#lp-fv .lp-fv-btn-wa:hover {
	background: #1ebe5a;
	color: #072d14;
}

#lp-fv .lp-fv-hero {
	padding: var(--lp-fv-band-pad-y) 0 var(--lp-fv-hero-pad-bottom);
}

#lp-fv .lp-fv-hero-grid {
	display: grid;
	gap: var(--lp-fv-space-8);
	align-items: center;
}

@media (min-width: 860px) {
	#lp-fv .lp-fv-hero-grid {
		grid-template-columns: 1.1fr 0.9fr;
	}
}

#lp-fv .lp-fv-hero-copy h1 {
	margin: var(--lp-fv-space-4) 0 var(--lp-fv-space-5);
	font-family: var(--lp-fv-font-display);
	font-weight: 600;
	font-size: clamp(2.85rem, 7.25vw, 5rem);
	line-height: 0.97;
	letter-spacing: -0.055em;
	max-width: none;
}

@media (min-width: 860px) {
	#lp-fv .lp-fv-hero-copy h1 {
		font-size: clamp(2.4rem, 5.5vw, 5rem);
		max-width: 14ch;
	}
}

#lp-fv .lp-fv-hero-copy h1 span {
	color: var(--lp-fv-yellow);
}

#lp-fv .lp-fv-hero-copy p {
	font-size: var(--lp-fv-text-lg);
	color: var(--lp-fv-color-text-muted);
	margin-bottom: var(--lp-fv-space-8);
	max-width: 56ch;
}

#lp-fv .lp-fv-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lp-fv-space-3);
	margin-bottom: var(--lp-fv-space-8);
}

#lp-fv .lp-fv-hero-panel {
	position: relative;
	border-radius: calc(var(--lp-fv-radius-xl) + 4px);
	overflow: hidden;
	background: linear-gradient(145deg, var(--lp-fv-blue) 0%, var(--lp-fv-blue-dark) 100%);
	padding: var(--lp-fv-space-6);
	box-shadow: var(--lp-fv-shadow-lg);
	color: #fff;
}

#lp-fv .lp-fv-hero-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at top right, rgba(252, 199, 11, 0.2), transparent 55%);
	pointer-events: none;
}

#lp-fv .lp-fv-panel-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--lp-fv-space-4);
}

#lp-fv .lp-fv-panel-card {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--lp-fv-radius-lg);
	padding: var(--lp-fv-space-4);
	backdrop-filter: blur(8px);
}

#lp-fv .lp-fv-panel-card h3 {
	font-size: var(--lp-fv-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: var(--lp-fv-space-2);
}

#lp-fv .lp-fv-panel-number {
	font-family: var(--lp-fv-font-display);
	font-weight: var(--lp-fv-font-display-weight);
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	line-height: 1;
}

#lp-fv .lp-fv-panel-number--yellow {
	color: var(--lp-fv-yellow);
}

#lp-fv .lp-fv-panel-number--compact {
	font-size: 1.5rem;
	line-height: 1.2;
}

#lp-fv .lp-fv-panel-sub {
	font-size: var(--lp-fv-text-sm);
	color: rgba(255, 255, 255, 0.75);
	margin-top: 0.35rem;
}

#lp-fv .lp-fv-panel-sub--flush {
	margin-top: 0;
}

#lp-fv .lp-fv-panel-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--lp-fv-space-3);
}

#lp-fv .lp-fv-meter {
	height: 10px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: var(--lp-fv-radius-full);
	overflow: hidden;
	margin-top: var(--lp-fv-space-3);
}

#lp-fv .lp-fv-meter span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--lp-fv-yellow), #ffe066);
	border-radius: inherit;
}

#lp-fv .lp-fv-problem-strip {
	padding: clamp(var(--lp-fv-space-6), 4vw, var(--lp-fv-space-8));
	border-radius: calc(var(--lp-fv-radius-xl) + 4px);
	background: linear-gradient(145deg, color-mix(in srgb, var(--lp-fv-blue) 6%, var(--lp-fv-color-surface)), var(--lp-fv-color-surface-2));
	border: 1.5px solid var(--lp-fv-color-border);
	box-shadow: var(--lp-fv-shadow-sm);
	display: grid;
	gap: var(--lp-fv-space-4);
}

#lp-fv .lp-fv-problem-strip__lead {
	font-size: var(--lp-fv-text-lg);
	color: var(--lp-fv-color-text-muted);
	margin: 0;
	max-width: none;
}

#lp-fv .lp-fv-problem-strip__highlight {
	padding: var(--lp-fv-space-4) var(--lp-fv-space-5);
	border-radius: var(--lp-fv-radius-lg);
	background: color-mix(in srgb, var(--lp-fv-yellow) 12%, var(--lp-fv-color-surface));
	border: 1.5px solid color-mix(in srgb, var(--lp-fv-yellow) 35%, transparent);
	font-weight: 700;
	font-size: var(--lp-fv-text-base);
	max-width: none;
}

#lp-fv .lp-fv-contact-band {
	display: grid;
	gap: var(--lp-fv-space-6);
	padding: clamp(var(--lp-fv-space-6), 5vw, var(--lp-fv-space-10));
	background: linear-gradient(135deg, var(--lp-fv-blue) 0%, var(--lp-fv-blue-dark) 100%);
	border-radius: calc(var(--lp-fv-radius-xl) + 4px);
	box-shadow: var(--lp-fv-shadow-lg);
	color: #fff;
	position: relative;
	overflow: hidden;
}

#lp-fv .lp-fv-contact-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at bottom left, rgba(252, 199, 11, 0.18), transparent 50%);
	pointer-events: none;
}

#lp-fv .lp-fv-contact-band__copy {
	position: relative;
	z-index: 1;
}

#lp-fv .lp-fv-contact-band__copy .lp-fv-eyebrow {
	background: rgba(255, 255, 255, 0.15);
	color: var(--lp-fv-yellow);
}

#lp-fv .lp-fv-contact-band__copy h2 {
	margin: var(--lp-fv-space-3) 0 var(--lp-fv-space-4);
	font-family: var(--lp-fv-font-display);
	font-weight: var(--lp-fv-font-display-weight);
	font-size: var(--lp-fv-text-xl);
	letter-spacing: -0.03em;
	color: #fff;
}

#lp-fv .lp-fv-contact-band__copy p {
	color: rgba(255, 255, 255, 0.8);
	max-width: 52ch;
	margin-bottom: var(--lp-fv-space-5);
}

#lp-fv .lp-fv-contact-cta-stack {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lp-fv-space-3);
}

#lp-fv .lp-fv-contact-band__form {
	position: relative;
	z-index: 1;
}

#lp-fv .lp-fv-form-box {
	background: var(--lp-fv-color-surface);
	border-radius: var(--lp-fv-radius-xl);
	padding: var(--lp-fv-space-6);
	box-shadow: var(--lp-fv-shadow-md);
}

#lp-fv .lp-fv-form-box h3 {
	font-family: var(--lp-fv-font-display);
	font-weight: var(--lp-fv-font-display-weight);
	font-size: var(--lp-fv-text-lg);
	margin-bottom: var(--lp-fv-space-4);
	color: var(--lp-fv-color-text);
}

#lp-fv .lp-fv-form-box__note {
	font-size: var(--lp-fv-text-xs);
	color: var(--lp-fv-color-text-muted);
	margin-top: 0;
	margin-bottom: var(--lp-fv-space-4);
	max-width: none;
}

#lp-fv .lp-fv-forminator-wrap {
	margin-top: var(--lp-fv-space-2);
}

/* Forminator: qualche reset per non ereditare stili tema aggressivi */
#lp-fv .lp-fv-forminator-wrap .forminator-ui {
	font-family: var(--lp-fv-font-body) !important;
}

#lp-fv .lp-fv-forminator-wrap .forminator-label,
#lp-fv .lp-fv-forminator-wrap label {
	color: var(--lp-fv-color-text);
	font-weight: 700;
}

/* Submit Forminator: stile .lp-fv-btn (testo gestito in admin) */
#lp-fv .lp-fv-forminator-wrap .forminator-row-last .forminator-col {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}

#lp-fv .lp-fv-forminator-wrap .forminator-row-last .forminator-field {
	width: 100%;
}

#lp-fv .lp-fv-forminator-wrap .forminator-button-submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 52px !important;
	padding: 0.9rem 1.4rem !important;
	border: 0 !important;
	border-radius: var(--lp-fv-radius-full) !important;
	font-family: var(--lp-fv-font-body) !important;
	font-size: var(--lp-fv-text-sm) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: var(--lp-fv-shadow-md) !important;
	transition: transform var(--lp-fv-transition), background var(--lp-fv-transition), box-shadow var(--lp-fv-transition) !important;
}

#lp-fv .lp-fv-forminator-wrap .forminator-button-submit:hover,
#lp-fv .lp-fv-forminator-wrap .forminator-button-submit:focus {
	transform: translateY(-2px) !important;
}

#lp-fv .lp-fv-forminator-wrap .forminator-button-submit:active {
	transform: translateY(0) !important;
}

/* Form rapido: .btn-primary (blu) */
#lp-fv .lp-fv-contact-band__form .forminator-button-submit {
	background: var(--lp-fv-blue) !important;
	color: #fff !important;
}

#lp-fv .lp-fv-contact-band__form .forminator-button-submit:hover,
#lp-fv .lp-fv-contact-band__form .forminator-button-submit:focus {
	background: var(--lp-fv-blue-dark) !important;
	color: #fff !important;
}

@media (min-width: 860px) {
	#lp-fv .lp-fv-contact-band {
		grid-template-columns: 1fr 1.1fr;
		align-items: start;
	}
}

#lp-fv .lp-fv-cards-grid {
	display: grid;
	gap: var(--lp-fv-space-4);
}

@media (min-width: 640px) {
	#lp-fv .lp-fv-cards-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	#lp-fv .lp-fv-cards-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

#lp-fv .lp-fv-cards-grid--spaced {
	margin-top: var(--lp-fv-space-6);
}

#lp-fv .lp-fv-card {
	padding: var(--lp-fv-space-5);
	background: var(--lp-fv-color-surface);
	border: 1.5px solid var(--lp-fv-color-border);
	border-radius: var(--lp-fv-radius-xl);
	box-shadow: var(--lp-fv-shadow-sm);
	display: grid;
	gap: var(--lp-fv-space-3);
	transition: box-shadow var(--lp-fv-transition), transform var(--lp-fv-transition);
}

#lp-fv .lp-fv-card:hover {
	box-shadow: var(--lp-fv-shadow-md);
	transform: translateY(-2px);
}

#lp-fv .lp-fv-card h3 {
	font-family: var(--lp-fv-font-display);
	font-weight: var(--lp-fv-font-display-weight);
	font-size: var(--lp-fv-text-base);
	color: var(--lp-fv-color-text);
}

#lp-fv .lp-fv-card p {
	font-size: var(--lp-fv-text-sm);
	color: var(--lp-fv-color-text-muted);
}

#lp-fv .lp-fv-icon {
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 0.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--lp-fv-blue-light);
	color: var(--lp-fv-blue);
}

#lp-fv .lp-fv-incentivi-box {
	display: grid;
	gap: var(--lp-fv-space-6);
	padding: clamp(var(--lp-fv-space-6), 5vw, var(--lp-fv-space-10));
	border-radius: calc(var(--lp-fv-radius-xl) + 4px);
	background: linear-gradient(145deg, color-mix(in srgb, var(--lp-fv-yellow) 8%, var(--lp-fv-color-surface)), var(--lp-fv-color-surface-2));
	border: 1.5px solid color-mix(in srgb, var(--lp-fv-yellow) 30%, var(--lp-fv-color-border));
	box-shadow: var(--lp-fv-shadow-md);
}

#lp-fv .lp-fv-incentivi-list {
	display: grid;
	gap: 0;
}

#lp-fv .lp-fv-incentivo {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--lp-fv-space-4);
	padding: var(--lp-fv-space-4) 0;
	border-bottom: 1px solid var(--lp-fv-color-border);
}

#lp-fv .lp-fv-incentivo:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

#lp-fv .lp-fv-incentivo-dot {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: var(--lp-fv-radius-md);
	background: linear-gradient(145deg, var(--lp-fv-yellow), var(--lp-fv-yellow-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.1rem;
}

#lp-fv .lp-fv-incentivo-dot svg {
	color: #0f1d35;
}

#lp-fv .lp-fv-incentivo strong {
	display: block;
	font-weight: 800;
	margin-bottom: 0.3rem;
	color: var(--lp-fv-color-text);
}

#lp-fv .lp-fv-incentivo span {
	font-size: var(--lp-fv-text-sm);
	color: var(--lp-fv-color-text-muted);
}

#lp-fv .lp-fv-urgency-note {
	padding: var(--lp-fv-space-4);
	border-radius: var(--lp-fv-radius-lg);
	background: color-mix(in srgb, var(--lp-fv-yellow) 14%, var(--lp-fv-color-surface));
	border: 1.5px solid color-mix(in srgb, var(--lp-fv-yellow) 35%, transparent);
	font-size: var(--lp-fv-text-sm);
	font-weight: 600;
	color: var(--lp-fv-color-text);
	max-width: none;
}

#lp-fv .lp-fv-fade-in {
	opacity: 1;
}

@supports (animation-timeline: view()) {
	#lp-fv .lp-fv-fade-in {
		opacity: 0;
		animation: lp-fv-fade-reveal linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 75%;
	}
}

@keyframes lp-fv-fade-reveal {
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	#lp-fv .lp-fv-fade-in {
		opacity: 1 !important;
		animation: none !important;
	}

	#lp-fv *,
	#lp-fv *::before,
	#lp-fv *::after {
		transition-duration: 0.01ms !important;
	}
}
