/* ==========================================================================
   AFORMA — landing page /preventivo (per chi arriva dalle pubblicità)
   Usa variabili, font, .btn, .h-xl, .quote, .marquee e il banner cookie di style.css.
   Qui solo l'impaginazione della landing. Revisione del 17/10/2026 dopo il controllo completo:
   niente etichette sopra i titoli, apertura a tutta larghezza, Mattia in vista, prezzi con «Chiedi».
   ========================================================================== */

.lp {
	--on-teal: #04191c;          /* testo scuro su azzurro */
	--paper-muted: #555;         /* testo secondario sulle schede chiare */
	--header-bg: rgba(14, 14, 14, .78);
}
/* La barra di scorrimento della pagina appartiene a <html>: le regole stanno qui, non dentro .lp */
html {
	scrollbar-color: var(--teal-deep) var(--bg);
	/* chi naviga con la tastiera non finisce sotto l'header fisso o sotto il pulsante in basso */
	scroll-padding-top: calc(var(--header-h) + 16px);
	scroll-padding-bottom: 24px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-deep); border-radius: 10px; border: 2px solid var(--bg); }
.lp input, .lp textarea { caret-color: var(--teal); }
/* pulsanti su due righe (telefoni stretti): interlinea leggibile */
.lp .btn { line-height: 1.25; }

/* Testo solo per i lettori di schermo. Il genitore deve essere posizionato (vedi .lp-pf),
   altrimenti dentro una fila che scorre di lato allarga la pagina su telefono. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.lp-section, .lp-hero__inner, .lp-final__inner { padding-inline: var(--gutter); }
/* stessa larghezza dell'apertura, così titoli e testi partono sulla stessa linea */
.lp-section { max-width: 1360px; margin-inline: auto; padding-block: clamp(64px, 10vh, 120px); }
.lp-section > .h-xl { max-width: 14em; }
.lp-lead { max-width: 34em; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.lp-ico { flex-shrink: 0; }

/* Header: solo logo e un pulsante */
.lp-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--header-h);
	padding-inline: var(--gutter);
	background: var(--header-bg);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lp-header .brand { display: inline-flex; align-items: center; min-height: 44px; }
.lp-header__cta { min-height: 44px; gap: 8px; }
.lp-header__short { display: none; }

/* Bagliori di sfondo (stessi colori della home), attenuati sulla colonna del testo */
.lp-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lp-glow span { position: absolute; border-radius: 50%; }
.lp-glow span:nth-child(1) { width: 70vmax; height: 70vmax; right: -30vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(91, 191, 204, .45), rgba(91, 191, 204, 0)); animation: drift-a 19s ease-in-out infinite alternate; }
.lp-glow span:nth-child(2) { width: 56vmax; height: 56vmax; left: -26vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(47, 143, 156, .38), rgba(47, 143, 156, 0)); animation: drift-b 23s ease-in-out infinite alternate; }
.lp-glow span:nth-child(3) { width: 44vmax; height: 44vmax; left: 20vw; top: 60%; background: radial-gradient(closest-side, rgba(236, 236, 236, .1), rgba(236, 236, 236, 0)); animation: drift-c 27s ease-in-out infinite alternate; }
.lp-hero .lp-glow { -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .55) 45%, #000 75%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .55) 45%, #000 75%); }
.lp-final .lp-glow { -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .35) 0%, #000 70%); mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .35) 0%, #000 70%); }
.is-paused .lp-glow span, .is-paused .lp-card, .lp-marquee.is-paused .marquee__track { animation-play-state: paused; }

/* Apertura: la sezione è a tutta larghezza, la griglia interna è limitata */
.lp-hero { position: relative; isolation: isolate; overflow: clip; }
.lp-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	min-height: 100svh;
	max-width: 1360px;
	margin-inline: auto;
	padding-top: calc(var(--header-h) + clamp(32px, 6vh, 64px));
	padding-bottom: clamp(48px, 8vh, 90px);
}
.lp-hero__title {
	font-weight: 400;
	font-size: clamp(42px, 6.4vw, 98px);
	line-height: .98;
	letter-spacing: -.04em;
	text-wrap: balance;
}
.lp-hero__title em { font-style: normal; color: var(--teal); }
.lp-hero__sub { max-width: 30em; margin-top: 26px; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-actions--center { justify-content: center; }
.lp-wa { background: var(--teal); color: var(--on-teal); min-height: 52px; text-align: left; } /* su due righe il testo resta allineato all'icona */
.lp-wa:hover { background: var(--ink); color: var(--on-teal); }
.lp .btn--ghost { min-height: 52px; }

/* Chi risponde */
.lp-reply { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.lp-reply img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.lp-reply strong { color: var(--ink); font-weight: 500; }

.lp-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.lp-proof li { display: flex; align-items: center; gap: 8px; }
.lp-proof a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: underline; text-decoration-color: rgba(91, 191, 204, .5); text-underline-offset: 4px; }
.lp-proof a:hover { color: var(--teal); }
.lp-proof strong { font-weight: 500; color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.lp-dots { display: inline-flex; gap: 4px; }
.lp-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Tre lavori sovrapposti che fluttuano: l'unico movimento continuo della pagina */
.lp-hero__stack { position: relative; aspect-ratio: 1 / 1.1; }
.lp-card {
	position: absolute;
	width: 58%;
	height: auto;
	border-radius: 14px;
	border: 1px solid var(--line);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
	animation: lp-float 7s ease-in-out infinite alternate;
}
.lp-card--1 { left: 0; top: 2%; --r: -7deg; z-index: 1; }
.lp-card--2 { right: 0; top: 20%; --r: 6deg; z-index: 2; animation-delay: -2.4s; }
.lp-card--3 { left: 16%; bottom: 0; --r: -2deg; z-index: 3; animation-delay: -4.6s; }
@keyframes lp-float {
	from { transform: translateY(0) rotate(var(--r)); }
	to { transform: translateY(-16px) rotate(calc(var(--r) * .7)); }
}

.lp-marquee { margin-top: 0; }
.lp-marquee .marquee__item { font-size: clamp(32px, 4.6vw, 72px); color: var(--muted); }

/* Problema: tre frasi in colonna, separate da una linea, senza scatole */
.lp-pain__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 5vh, 56px); }
.lp-pain__list li { padding-top: 22px; border-top: 1px solid var(--teal); }
.lp-pain__list h3 { font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.lp-pain__list p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 26em; }

/* Servizi: elenco a due colonne, stessi nomi della lista prezzi */
.lp-services__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(28px, 4vh, 48px); }
.lp-services__list li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.lp-services__list h3 { color: var(--teal); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; line-height: 1.2; }
.lp-services__list p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 32em; }

/* Prezzi: una griglia sola, colonne allineate tra le righe */
.lp-prices__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) max-content max-content;
	column-gap: 28px;
	margin-top: clamp(28px, 4vh, 48px);
	border-top: 1px solid var(--line);
}
.lp-prices__list li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lp-prices__name { color: var(--teal); font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.01em; }
.lp-prices__tiers { color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.5; }
.lp-prices__amount { display: grid; justify-items: end; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.02em; white-space: nowrap; line-height: 1.25; }
.lp-prices__amount small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.lp-prices__num { white-space: nowrap; } /* «500 €/mese» resta su una riga */
.lp-prices__amount em { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.lp-ask {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid rgba(91, 191, 204, .55);
	color: var(--teal);
	font-weight: 500;
	font-size: 14px;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lp-ask:hover { background: var(--teal); color: var(--on-teal); }
.lp-note { margin-top: 18px; color: var(--muted); font-size: 15px; }
/* in linea con il testo: il padding allarga l'area da toccare senza aprire l'interlinea */
.lp-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding-block: 12px; }
.lp-nw { white-space: nowrap; }
.lp-note a:hover { color: var(--teal); }

/* Lavori: quattro, senza doppioni dell'apertura */
.lp-work__row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(28px, 4vh, 48px); }
.lp-pf { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 18px; border-radius: 12px; background: var(--paper); color: var(--on-light); transition: transform .4s var(--ease); }
.lp-pf:hover { transform: translateY(-6px) rotate(-1deg); }
.lp-pf img { width: 100%; height: auto; border-radius: 6px; margin-bottom: 8px; }
.lp-pf .label { color: var(--paper-muted); padding-inline: 4px; }
.lp-pf__name { padding-inline: 4px; font-weight: 500; font-size: 20px; letter-spacing: -.02em; }

/* Recensioni: una in evidenza con il lavoro, due piccole */
.lp-feature { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(28px, 4vh, 48px); }
.lp-feature img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.lp-feature blockquote p { margin-top: 18px; font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -.02em; }
.lp-feature figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.lp-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.lp-quotes .quote { min-height: 0; gap: 22px; justify-content: flex-start; }

/* Come si parte */
.lp-steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(28px, 4vh, 48px); }
.lp-step { position: relative; padding: 26px 0 0; border-top: 1px solid var(--teal); }
.lp-step__num { display: block; font-size: clamp(56px, 6vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--teal); }
.lp-step h3 { margin-top: 18px; font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.02em; }
.lp-step p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 26em; }
.lp-step__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Domande */
.lp-faq__list { max-width: 880px; margin-top: clamp(28px, 4vh, 48px); border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 22px 0;
	font-weight: 400;
	font-size: clamp(18px, 1.5vw, 22px);
	letter-spacing: -.01em;
	cursor: pointer;
	list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex-shrink: 0; font-size: 28px; font-weight: 300; color: var(--teal); transition: transform .3s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding-bottom: 22px; max-width: 36em; color: var(--muted); }

/* Chiusura con Mattia */
.lp-final { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(90px, 15vh, 170px); border-top: 1px solid var(--line); }
.lp-final__inner { max-width: 880px; margin-inline: auto; text-align: center; }
.lp-final__title { font-weight: 400; font-size: clamp(40px, 6vw, 92px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.lp-me { display: flex; align-items: center; gap: 24px; max-width: 640px; margin: clamp(32px, 5vh, 48px) auto 0; padding: 20px 24px; border-radius: 20px; background: rgba(14, 14, 14, .72); border: 1px solid var(--line); text-align: left; }
.lp-me img { width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.lp-me p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.lp-me p + p { margin-top: 6px; }
.lp-me__name { color: var(--ink) !important; font-weight: 500; font-size: 18px !important; }
.lp-me__name span { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.lp-me__reply { color: var(--ink) !important; }
.lp-me__reply strong { color: var(--teal); font-weight: 500; }
.lp-mail { margin-top: 18px; }
.lp-mail a { display: inline-block; padding: 12px 6px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lp-mail a:hover { color: var(--teal); }

.lp-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	padding: 18px var(--gutter) 26px;
	border-top: 1px solid var(--line);
	color: var(--dim);
	font-size: 13px;
}
.lp-footer__links { display: flex; flex-wrap: wrap; gap: 0 10px; }
.lp-footer__links a, .lp-footer__links button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.lp-footer a:hover { color: var(--teal); }

/* Banner dei cookie: pulsanti comodi da toccare */
.lp .consent .btn { min-height: 44px; }

/* Pulsante fisso su telefono: quando è spento è anche fuori dalla tastiera */
.lp-sticky { display: none; }
.lp-sticky__short { display: none; }

/* Entrate mentre scorri (solo con JavaScript), sui blocchi di contenuto */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.lp-pain__list .rv:nth-child(2), .lp-services__list .rv:nth-child(2), .lp-quotes .rv:nth-child(2), .lp-steps__list .rv:nth-child(2) { transition-delay: .08s; }
.lp-pain__list .rv:nth-child(3), .lp-services__list .rv:nth-child(3), .lp-steps__list .rv:nth-child(3) { transition-delay: .16s; }
.lp-services__list .rv:nth-child(4) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1080px) {
	.lp-work__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	html { scroll-padding-bottom: 96px; } /* spazio per il pulsante fisso */
	.lp-hero__inner { grid-template-columns: 1fr; min-height: auto; }
	/* su telefono il testo sta sopra al bagliore: lo teniamo più tenue per il contrasto */
	.lp-hero .lp-glow { -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .55)); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .55)); }
	.lp-hero__stack { max-width: 440px; width: 100%; margin-inline: auto; }
	.lp-pain__list, .lp-services__list, .lp-quotes, .lp-steps__list { grid-template-columns: 1fr; }
	.lp-feature { grid-template-columns: 1fr; }
	.lp-feature img { max-width: 420px; }
	/* lavori: fila da scorrere di lato, una scheda e mezza alla volta */
	.lp-work__row {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(var(--gutter) * -1);
		padding: 8px var(--gutter) 14px; /* spazio per l'anello del focus */
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.lp-work__row::-webkit-scrollbar { display: none; }
	.lp-work__row li { flex: 0 0 72%; scroll-snap-align: start; }
	/* prezzi: nome e prezzo sopra, dettagli e «Chiedi» sotto */
	.lp-prices__list { display: block; }
	.lp-prices__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name amount" "tiers tiers" "ask ask"; row-gap: 8px; column-gap: 16px; }
	.lp-prices__name { grid-area: name; }
	.lp-prices__amount { grid-area: amount; }
	.lp-prices__tiers { grid-area: tiers; }
	.lp-ask { grid-area: ask; justify-self: start; }
	.lp-sticky {
		position: fixed;
		left: var(--gutter);
		right: var(--gutter);
		bottom: 14px;
		z-index: 60;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		min-height: 54px;
		padding: 0 20px;
		border-radius: 999px;
		border: 1px solid transparent; /* bordo visibile in modalità contrasto elevato */
		background: var(--teal);
		color: var(--on-teal);
		font-weight: 500;
		font-size: 15px;
		box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
		transform: translateY(140%);
		visibility: hidden;
		transition: transform .45s var(--ease), visibility 0s .45s;
	}
	.lp-sticky.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease); }
	.lp-footer { padding-bottom: 96px; }
}
@media (max-width: 560px) {
	.lp-actions .btn { width: 100%; }
	.lp-me { flex-direction: column; text-align: center; }
	.lp-me__name span { display: block; margin: 2px 0 0; }
}
@media (max-width: 380px) {
	.lp-header__long, .lp-sticky__long { display: none; }
	.lp-header__short, .lp-sticky__short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
	.lp-glow span, .lp-card { animation: none; }
	.js .rv { opacity: 1; transform: none; transition: none; }
	.lp-sticky, .lp-sticky.is-on { transition: none; }
	.lp-pf:hover { transform: none; }
}
