/* Landing di Leo: aspetto della pagina di riferimento (DM Sans, Space Grotesk, JetBrains Mono),
   colori della palette scura di Leo. Misure e effetti copiati dal sorgente della pagina di riferimento. */
:root {
  --fondo: #0d0e11;
  --fondo-2: #15171c;
  --linea: rgba(255, 255, 255, 0.07);
  --testo: #f3f1ec;
  --testo-2: #a9a7a1;
  --testo-3: rgba(243, 241, 236, 0.5);
  --giallo: #ffd43b;
  --giallo-scuro: #e6bd22;
  --oro: #e5a00d;   /* secondo colore della sfumatura dei pulsanti (come il blu di quella di riferimento) */
  --sfumatura: linear-gradient(135deg, var(--giallo), var(--oro));
  --inchiostro: #111111;
  --errore: #ff6b5a;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --maxw: 1020px;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body); color: var(--testo); line-height: 1.6;
  background: var(--fondo); -webkit-font-smoothing: antialiased;
  position: relative; overflow-x: clip; min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 212, 59, 0.07), transparent 60%),
    linear-gradient(180deg, var(--fondo) 0%, #101115 45%, var(--fondo) 100%);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.grad { color: var(--giallo); }

/* Aloni di fondo */
.bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.orb-1 { width: 480px; height: 480px; background: var(--giallo); opacity: 0.08; top: -120px; left: -160px; }
.orb-2 { width: 420px; height: 420px; background: var(--giallo); opacity: 0.07; top: 700px; right: -180px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 22px rgba(255, 212, 59, 0.30); } 50% { box-shadow: 0 0 48px rgba(255, 212, 59, 0.55); } }

/* Pulsante: giallo pieno, testo quasi nero */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--sfumatura); color: var(--inchiostro); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  font-size: 15px; padding: 19px 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none; cursor: pointer; position: relative; z-index: 1;
  box-shadow: 0 0 28px rgba(255, 212, 59, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: var(--font-head); line-height: 1.3; text-align: center; text-wrap: balance;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(255, 212, 59, 0.8); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn .lab { display: block; text-wrap: balance; }
.btn .arrow { font-size: 17px; margin-left: 8px; display: inline-block; }
.btn small { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; opacity: 0.75; }
.btn[hidden], .btn.nascosto { display: none; }
.cta { display: inline-block; }

/* Schede di vetro */
.glass { background: rgba(21, 23, 28, 0.85); border: 1px solid var(--linea); backdrop-filter: blur(20px); }

/* Barra in alto (solo testo) */
.topbar { border-bottom: 1px solid var(--linea); background: rgba(13, 14, 17, 0.55); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 40; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }

/* Titolo in alto */
.hero { padding: 72px 0 56px; text-align: center; position: relative; z-index: 1; }
.hero .callout {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(15px, 2vw, 18px); text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--giallo); border: 1px solid rgba(255, 212, 59, 0.4); padding: 10px 22px;
  border-radius: 999px; background: rgba(255, 212, 59, 0.1); margin-bottom: 26px; text-wrap: balance;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); max-width: 20ch; margin: 0 auto 20px; }
.hero .sub { color: var(--testo-2); font-size: clamp(17px, 2.3vw, 22px); max-width: 46ch; margin: 0 auto 34px; text-wrap: pretty; }

/* I due passi e il video */
.steps-vsl { padding: 10px 0 64px; text-align: center; position: relative; z-index: 1; }
.steps { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.step { display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 12px 24px; }
.step .num {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0; background: var(--sfumatura); color: var(--inchiostro);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  box-shadow: 0 0 14px rgba(255, 212, 59, 0.4);
}
.step b { font-family: var(--font-head); font-size: 16px; }
.vsl {
  position: relative; max-width: 860px; margin: 0 auto 34px; aspect-ratio: 1754 / 1080;
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 212, 59, 0.3); background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 60px rgba(255, 212, 59, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: pulse 3s ease-in-out infinite;
}
.vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl .vuoto {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--testo-2);
}
.vsl .vuoto b { color: var(--giallo); }
/* Video bloccato: copertina sfocata col play, il clic apre il popup */
.blocco {
  position: absolute; inset: 0; width: 100%; display: grid; place-items: center; padding: 16px;
  background: #000; border: 0; color: var(--testo); font: inherit; cursor: pointer; overflow: hidden; z-index: 3;
}
.blocco::before {
  content: ""; position: absolute; inset: -24px; background: var(--cop, none) center / cover no-repeat;
  filter: blur(14px); transform: scale(1.04);
}
.blocco::after { content: ""; position: absolute; inset: 0; background: rgba(13, 14, 17, 0.35); }
.play {
  position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 999px; background: var(--sfumatura);
  box-shadow: 0 0 34px rgba(255, 212, 59, 0.6); transition: transform .15s;
}
.play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--inchiostro);
}
.blocco:hover .play { transform: scale(1.06); }

/* Cosa ottieni nella call */
.calls { padding: 76px 0; border-top: 1px solid var(--linea); position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--testo-2); font-size: 18px; text-wrap: pretty; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { border-radius: 18px; padding: 30px 26px; transition: transform .2s, box-shadow .2s; }
.benefit:hover { transform: translateY(-4px); box-shadow: 0 0 34px rgba(255, 212, 59, 0.18); }
.benefit .icn {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255, 212, 59, 0.14); border: 1px solid rgba(255, 212, 59, 0.3); margin-bottom: 18px; color: var(--giallo);
}
.benefit .icn svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 19px; margin-bottom: 10px; }
.benefit p { color: var(--testo-2); font-size: 15px; }
.center { text-align: center; margin-top: 46px; }

/* Risultati a schede */
.proof { padding: 76px 0; border-top: 1px solid var(--linea); position: relative; z-index: 1; }
.cases { column-count: 2; column-gap: 22px; max-width: 960px; margin: 0 auto; }
.case { display: block; break-inside: avoid; margin: 0 0 22px; text-decoration: none; color: inherit; transition: transform .2s; }
.case:hover { transform: translateY(-3px); }
.case .yt-thumb {
  position: relative; border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 212, 59, 0.3); transition: box-shadow .2s;
}
.case:hover .yt-thumb { box-shadow: 0 0 30px rgba(255, 212, 59, 0.22); }
.case .yt-thumb img { width: 100%; height: auto; display: block; }
.case .txt { padding: 12px 4px 0; text-align: center; }
.case .txt b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--giallo); margin-bottom: 2px; line-height: 1.25; text-wrap: balance; }
.case .txt .jump { display: block; font-family: var(--font-body); font-size: 14px; color: var(--testo-2); text-wrap: pretty; }
.case.da-riempire .yt-thumb { aspect-ratio: 9 / 16; border-style: dashed; }
.more { text-align: center; margin-top: 26px; color: var(--testo-3); font-size: 16px; font-style: italic; }
.more a { color: var(--giallo); }

/* Domande e risposte (a fisarmonica, come la landing Lead Lift) */
.faq-sec { padding: 76px 0; border-top: 1px solid var(--linea); position: relative; z-index: 1; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 2px dashed var(--linea); }
.faq-q { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-wrap: initial; }
.faq-b {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 64px; margin: 0; padding: 18px 4px;
  background: none; border: 0; border-radius: 4px; cursor: pointer; text-align: left; color: var(--testo);
  font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.3; -webkit-tap-highlight-color: transparent;
}
.faq-t { text-wrap: balance; transition: color .15s; }
.faq-b:hover .faq-t { color: var(--giallo); }
.faq-b:focus-visible { outline: 3px solid rgba(255, 212, 59, 0.6); outline-offset: 2px; }
.faq-ic { position: relative; flex: none; width: 24px; height: 24px; color: var(--giallo); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; margin: -1.5px 0 0 -9px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease; }
.faq-ic::after { transform: rotate(90deg); }
.faq-b[aria-expanded="true"] .faq-ic::after { transform: rotate(0deg); }
.faq-p { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s; }
.faq-p.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s ease, visibility 0s; }
.faq-pi { min-height: 0; overflow: hidden; }
.faq-pi p { margin: 0; padding: 0 4px 22px; font-size: 18px; line-height: 1.55; color: var(--testo-2); text-wrap: pretty; }

/* Fascia scura finale */
.banner-call { padding: 76px 0; background: var(--fondo-2); border-top: 1px solid rgba(255, 212, 59, 0.25); border-bottom: 1px solid rgba(255, 212, 59, 0.25); text-align: center; position: relative; z-index: 1; }
.banner-call h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.banner-call p { color: var(--testo-2); font-size: 18px; max-width: 62ch; margin: 0 auto; text-wrap: pretty; }
.banner-call .center { margin-top: 38px; }

/* Piede */
footer { border-top: 1px solid var(--linea); padding: 44px 0 60px; color: var(--testo-3); font-size: 12px; position: relative; z-index: 1; background: rgba(13, 14, 17, 0.5); }
footer .wrap { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
footer .logo { opacity: 0.9; }
footer .disc { max-width: 82ch; line-height: 1.7; }
footer strong { color: var(--testo-2); font-weight: 600; }
footer a { color: var(--testo-2); }

/* Barra fissa sul telefono */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; background: rgba(13, 14, 17, 0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--linea); padding: 12px 16px; }
.sticky .btn { width: 100%; padding: 14px 20px; }
.sticky .btn small { display: none; }

@media (max-width: 860px) {
  .benefits { grid-template-columns: 1fr; }
  .cases { column-count: 1; }
  .sticky { display: block; }
  footer { padding-bottom: 110px; }
  .hero .callout { letter-spacing: 0.08em; font-size: 14px; border-radius: 22px; padding: 10px 18px; }
  .faq-b { font-size: 18px; min-height: 56px; padding: 14px 2px; gap: 14px; }
  .faq-pi p { font-size: 16px; padding: 0 2px 18px; }
}
@media (max-width: 600px) { .steps { flex-direction: column; align-items: stretch; gap: 12px; } .step { width: 100%; justify-content: flex-start; padding-left: 28px; } }
@media (max-width: 400px) { .btn { padding: 17px 28px; max-width: 100%; } .sticky .btn { padding: 14px 20px; } }
@media (prefers-reduced-motion: reduce) { .faq-p, .faq-p.is-open, .faq-ic::before, .faq-ic::after, .vsl, .orb { transition: none; animation: none; } }

/* ---- Popup del modulo (stesso meccanismo di sempre, palette di Leo) ---- */
.velo {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 80;
}
.velo.aperto { display: flex; }
.velo.con-avviso { padding-bottom: 210px; }
.finestra {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--fondo-2); border: 1px solid rgba(255, 212, 59, 0.35); border-radius: 18px; padding: 30px 22px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.chiudi { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; background: none; border: 0; color: var(--testo-2); font-size: 28px; cursor: pointer; }
.finestra h3 { font-size: 22px; font-weight: 700; line-height: 1.2; padding-right: 28px; }
.finestra .sotto { text-align: left; margin: 8px 0 20px; font-size: 16px; color: var(--testo-2); }
.avanzamento { margin: 0 32px 20px 0; }
.avanzamento-testo { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 8px; }
.avanzamento-testo span { color: var(--testo-2); }
.avanzamento-testo b { color: var(--giallo); font-weight: 700; font-size: 14px; font-family: var(--font-mono); }
.avanzamento-barra { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.avanzamento-pieno {
  width: 80%; height: 100%; border-radius: 99px;
  background: repeating-linear-gradient(45deg, var(--giallo) 0 10px, var(--giallo-scuro) 10px 20px);
  background-size: 28px 28px; animation: strisce 1s linear infinite, riempi 0.9s ease-out;
}
@keyframes strisce { to { background-position: 28px 0; } }
@keyframes riempi { from { width: 0; } }
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.campo input {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--testo);
  background: var(--fondo); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; outline: none;
}
.campo input:focus { border-color: var(--giallo); }
.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--testo-2); margin: 6px 0 18px; }
.consenso + .consenso { margin-top: -8px; }
.consenso input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--giallo); flex-shrink: 0; }
.consenso a { color: var(--testo); }
.consenso em { font-style: normal; opacity: 0.7; }
.finestra .btn { width: 100%; }
.messaggio-errore { display: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 107, 90, 0.12); color: var(--errore); font-weight: 600; font-size: 14px; }
.campo-errore { border-color: var(--errore) !important; box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.2); }
input[type="checkbox"].campo-errore { outline: 2px solid var(--errore); outline-offset: 2px; }
@media (max-width: 719px) {
  .velo { align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 9vh 12px 48px; }
  .finestra { max-height: none; overflow: visible; }
}

/* ---- Avviso cookie ---- */
#avviso-cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 620px; margin: 0 auto;
  background: var(--fondo-2); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px;
  padding: 16px; font-size: 14px; color: var(--testo-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
#avviso-cookie a { color: var(--testo); }
.avviso-pulsanti { display: flex; gap: 10px; margin-top: 12px; }
.avviso-pulsanti button {
  flex: 1; min-height: 44px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--testo);
}
.avviso-pulsanti button[data-v="si"] { background: var(--testo); color: #111; border-color: var(--testo); }

/* ---- Pagina privacy (se serve) ---- */
.testo-legale { padding: 8px 0 20px; color: var(--testo-2); font-size: 15px; line-height: 1.7; }
.testo-legale h2 { color: var(--testo); font-size: 19px; margin: 32px 0 10px; }
.testo-legale p, .testo-legale ul { margin-bottom: 12px; }
.testo-legale ul { padding-left: 20px; }
.testo-legale strong { color: var(--testo); }
.testo-legale a { color: var(--giallo); }

/* ---- Barra di avanzamento del video (sul bordo basso, segue la riproduzione) ---- */
.vsl-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 5; pointer-events: none; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.vsl-barra i { display: block; height: 100%; width: 0%; border-radius: 0 999px 999px 0; background: var(--giallo); transition: width .3s linear; }

/* ---- Entrate allo scorrimento (stile landing Lead Lift): solo opacity e translate/scale, mai l'impaginazione.
   Lo stato nascosto vale solo con JavaScript attivo (classe "js" su <html>). La prima schermata non si anima. ---- */
@keyframes rv-title { from { opacity: 0; translate: 0 -20px; } }
@keyframes rv-line  { from { opacity: 0; translate: 0 -10px; } }
@keyframes rv-up    { from { opacity: 0; translate: 0 20px; } }
@keyframes rv-card  { from { opacity: 0; scale: 0.92; } }
html.js .rv:not(.rv-in) { opacity: 0; }
.rv.rv-in { animation-duration: 0.6s; animation-timing-function: ease-out; animation-delay: var(--rv-d, 0s); animation-fill-mode: backwards; }
.rv-in.rv-title { animation-name: rv-title; }
.rv-in.rv-line  { animation-name: rv-line; animation-duration: 0.5s; }
.rv-in.rv-up    { animation-name: rv-up; }
.rv-in.rv-card  { animation-name: rv-card; }
.rv-in.rv-skip  { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .rv:not(.rv-in) { opacity: 1; }
  .rv, .rv.rv-in { animation: none !important; translate: none; scale: none; }
}
