/* ==========================================================================
   Kesva — landing "presentazione a capitoli"
   Stessa grammatica visiva del video: blu notte, lime, Archivo Black + Manrope,
   capitoli numerati, evidenziatore lime, lama di passaggio.
   ========================================================================== */

/* Font serviti dal sito stesso: nessuna richiesta a server esterni */
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-black-latin.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --notte: #0a1730;
  --notte-2: #12244a;
  --scheda: #152a52;
  --bordo: rgba(255, 255, 255, .12);
  --lime: #c3ec2e;
  --lime-scuro: #8fb51a;
  --blu: #3a7bd5;
  --azzurro: #7db8ea;
  --carta: #f4f2ec;
  --carta-2: #e8e4da;
  --inchiostro: #0f1e3d;
  --rosso: #f0525a;
  --tenue: rgba(255, 255, 255, .7);
  --debole: rgba(255, 255, 255, .6);
  --ink-tenue: rgba(15, 30, 61, .72);
  --titoli: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --testo: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--notte);
  color: #fff;
  font-family: var(--testo);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--lime); color: var(--inchiostro); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.salta:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--titoli); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
.display { font-size: clamp(44px, 7.6vw, 112px); line-height: .98; }
.titolo { font-size: clamp(36px, 5.4vw, 76px); }
.titolo-m { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.15; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--tenue); max-width: 60ch; }
.chiaro .lead { color: var(--ink-tenue); }
strong { font-weight: 800; color: #fff; }
.chiaro strong { color: var(--inchiostro); }

.occhiello {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime);
}
.occhiello::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(195, 236, 46, .18); }
.chiaro .occhiello { color: var(--lime-scuro); }

/* Evidenziatore: come nel video, il pezzo forte si accende di lime e si sottolinea */
.hl { font-style: normal; color: var(--lime); background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0% .08em no-repeat; padding-bottom: .04em; transition: background-size 1s var(--ease) .35s; }
.chiaro .hl { color: var(--inchiostro); background: linear-gradient(var(--lime), var(--lime)) 0 88% / 0% .3em no-repeat; }
.in .hl, .no-js .hl, .hl.in { background-size: 100% .08em; }
.chiaro .in .hl, .no-js .chiaro .hl, .chiaro .hl.in { background-size: 100% .3em; }

/* --------------------------------------------------------------------------
   Pulsanti
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--lime); --fg: var(--inchiostro);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 16.5px; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(195, 236, 46, .7); }
.btn-ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.chiaro .btn-ghost { --fg: var(--inchiostro); box-shadow: inset 0 0 0 1.5px rgba(15, 30, 61, .25); }
.btn-scuro { --bg: var(--inchiostro); --fg: #fff; }
.btn-scuro:hover { box-shadow: 0 18px 40px -16px rgba(15, 30, 61, .6); }
.btn .play { width: 30px; height: 30px; border-radius: 50%; background: var(--inchiostro); color: var(--lime); display: grid; place-items: center; margin-left: -12px; }
.btn .play svg { width: 12px; height: 12px; margin-left: 2px; }

/* "Guarda questo capitolo": collega ogni capitolo al minuto giusto del video */
.guarda {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid var(--bordo);
  background: rgba(255, 255, 255, .04); font-size: 14.5px; font-weight: 700; color: #fff;
  transition: border-color .25s, background .25s, transform .35s var(--ease);
}
.guarda:hover { border-color: var(--lime); background: rgba(195, 236, 46, .08); transform: translateY(-1px); }
.guarda i { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--inchiostro); display: grid; place-items: center; font-style: normal; }
.guarda i svg { width: 11px; height: 11px; margin-left: 2px; }
.guarda span { color: var(--debole); font-variant-numeric: tabular-nums; font-weight: 600; }
.chiaro .guarda { color: var(--inchiostro); border-color: rgba(15, 30, 61, .16); background: #fff; }
.chiaro .guarda:hover { border-color: var(--lime-scuro); }
.chiaro .guarda span { color: var(--ink-tenue); }

/* --------------------------------------------------------------------------
   Barra di avanzamento, navigazione, indice laterale
   -------------------------------------------------------------------------- */
.avanzamento { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.avanzamento span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(195, 236, 46, .6); }

.nav {
  position: fixed; z-index: 110; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 28px), 1320px);
  display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 22px; border-radius: 20px;
  background: rgba(10, 23, 48, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(10, 23, 48, .92); box-shadow: 0 22px 60px -18px rgba(0, 0, 0, .6); }
.nav .logo img { height: 26px; width: auto; }
.nav-link { display: flex; gap: 2px; margin: 0 auto; list-style: none; padding: 0; }
.nav-link a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--tenue); text-decoration: none; transition: color .2s, background .2s; }
.nav-link a:hover, .nav-link a.attivo { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-azioni { display: flex; align-items: center; gap: 8px; }
.nav-azioni .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.nav-accedi { font-size: 14.5px; font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 12px; color: var(--tenue); }
.nav-accedi:hover { color: #fff; }
.presenta-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--bordo); background: transparent; font-size: 14px; font-weight: 700; color: var(--tenue); }
.presenta-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.presenta-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--bordo); background: rgba(255, 255, 255, .05); place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-aperto .menu-btn span { background: transparent; }
.menu-aperto .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-aperto .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile: è l'indice della presentazione */
.indice-mobile {
  position: fixed; inset: 0; z-index: 105; background: var(--notte);
  padding: 110px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.menu-aperto .indice-mobile { opacity: 1; visibility: visible; }
.indice-mobile ol { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: c; }
.indice-mobile li a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bordo); text-decoration: none; font-family: var(--titoli); font-size: 26px; }
.indice-mobile li a small { font-family: var(--testo); font-weight: 800; font-size: 13px; color: var(--lime); letter-spacing: .1em; }
.indice-mobile .btn { width: 100%; margin-top: 10px; }

/* Indice laterale (desktop): l'avanzamento della presentazione */
.rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: none; flex-direction: column; gap: 4px; padding: 10px 8px; border-radius: 16px;
  background: rgba(10, 23, 48, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .08); list-style: none; margin: 0;
}
.rail a { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; text-decoration: none; font-size: 11px; font-weight: 800; color: var(--debole); font-variant-numeric: tabular-nums; transition: color .2s, background .2s; }
.rail a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.rail a.attivo { color: var(--inchiostro); background: var(--lime); }
.rail a .etichetta { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 6px 12px; border-radius: 9px; background: var(--notte); border: 1px solid var(--bordo); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.rail a:hover .etichetta, .rail a:focus-visible .etichetta { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1400px) { .rail { display: flex; } }

/* --------------------------------------------------------------------------
   Capitoli e slide
   -------------------------------------------------------------------------- */
.capitolo { position: relative; }
.slide { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 48px) 0 88px; overflow: hidden; }
.slide.auto { min-height: 0; }
.scuro { background: var(--notte); color: #fff; }
.notte-2 { background: var(--notte-2); }
.chiaro { background: var(--carta); color: var(--inchiostro); --lime-scuro: #587312; }

/* Testata del capitolo: come la testata del video ("● KESVA · PERCHÉ SERVE") */
.testata { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--debole); }
.testata b { color: var(--lime); font-weight: 800; font-variant-numeric: tabular-nums; }
.testata::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.chiaro .testata { color: var(--ink-tenue); }
.js .testata::after { scale: 0 1; transform-origin: 0 50%; transition: scale 1.4s var(--ease) .15s; }
.js .testata.in::after { scale: 1 1; }

/* Numero del capitolo, gigante e in filigrana: come il numero di una slide */
.slide[data-n]::before {
  content: attr(data-n); position: absolute; z-index: 0; top: calc(var(--nav-h) + 6px); right: calc(var(--gutter) - .04em);
  font-family: var(--titoli); font-size: clamp(150px, 24vw, 360px); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09); pointer-events: none;
}
.chiaro .slide[data-n]::before, .slide.chiaro[data-n]::before { -webkit-text-stroke-color: rgba(15, 30, 61, .1); }
.js .slide[data-n]::before { opacity: 0; translate: 0 40px; transition: opacity 1.2s var(--ease), translate 1.4s var(--ease); }
.js .slide[data-n].in::before { opacity: 1; translate: none; }
.chiaro .testata b { color: var(--lime-scuro); }

.slide > .wrap { position: relative; z-index: 1; }

/* Comparsa al passaggio: usa "translate" (non "transform"), così non si scontra
   con le trasformazioni proprie degli elementi */
.js [data-r] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-r].in { opacity: 1; translate: none; }

/* Titoli: compaiono parola per parola, senza maschere che taglino le lettere */
.js [data-r].diviso { opacity: 1; translate: none; }
.parola { display: inline-block; }
.js .diviso .parola { opacity: 0; translate: 0 .35em; filter: blur(8px); transition: opacity .7s var(--ease), translate .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--w, 0) * 55ms + var(--d, 0) * 80ms); }
.js .diviso.in .parola { opacity: 1; translate: none; filter: none; }
.js .diviso .hl { transition-delay: calc(var(--parole, 4) * 55ms + .35s); }


/* --------------------------------------------------------------------------
   Apertura
   -------------------------------------------------------------------------- */
.hero { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 0; justify-content: flex-start; min-height: 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 600px at 78% 8%, rgba(58, 123, 213, .32), transparent 60%), radial-gradient(700px 500px at 10% 30%, rgba(195, 236, 46, .08), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000 20%, transparent 75%); -webkit-mask-image: linear-gradient(#000 20%, transparent 75%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-testo { text-align: center; max-width: 1040px; margin: 0 auto; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(44px, 7vw, 100px); }
.hero h1 .riga { display: block; }
.hero .lead { margin: 0 auto; text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero-nota { margin-top: 18px; font-size: 14px; color: var(--debole); }

/* Schermo con l'anteprima del video */
.schermo-scena { perspective: 1800px; margin-top: clamp(40px, 4.5vw, 60px); }
.schermo {
  position: relative; display: block; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0; border: 0; background: var(--notte-2);
  border-radius: 20px 20px 0 0; overflow: hidden; text-align: left;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .12) inset, 0 60px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: rotateX(10deg) scale(.985); transform-origin: 50% 100%; transition: transform .9s var(--ease);
}
.schermo:hover { transform: rotateX(0) scale(1); }
.schermo-barra { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.schermo-barra i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.schermo-barra span { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 12px; color: var(--debole); font-weight: 600; }
.schermo-video { position: relative; aspect-ratio: 16 / 9; background: var(--notte) center / cover; }
.schermo-video video, .schermo-video img { width: 100%; height: 100%; object-fit: cover; }
.schermo-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 23, 48, .75)); }
.schermo-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 16px; padding: 12px 26px 12px 12px; border-radius: 999px;
  background: rgba(10, 23, 48, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; font-weight: 800; font-size: 17px; white-space: nowrap; transition: transform .4s var(--ease), background .3s;
}
.schermo-play i { width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--inchiostro); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(195, 236, 46, .5); animation: pulsa 2.4s infinite; }
.schermo-play i svg { width: 18px; height: 18px; margin-left: 3px; }
.schermo-play small { display: block; font-weight: 600; font-size: 13px; color: var(--tenue); }
.schermo:hover .schermo-play { transform: translate(-50%, -50%) scale(1.04); background: rgba(10, 23, 48, .88); }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(195, 236, 46, .55); } 70% { box-shadow: 0 0 0 18px rgba(195, 236, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(195, 236, 46, 0); } }
.schermo-capitoli { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; display: flex; gap: 6px; }
.schermo-capitoli span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.schermo-capitoli span:first-child { background: var(--lime); }

/* Numeri dell'apertura */
.numeri { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bordo); background: var(--notte); }
.numeri > div { padding: 28px 24px; border-right: 1px solid var(--bordo); }
.numeri > div:last-child { border-right: 0; }
.numeri b { display: block; font-family: var(--titoli); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.numeri span { display: block; margin-top: 8px; font-size: 14px; color: var(--tenue); line-height: 1.4; }

/* Nastro scorrevole */
.nastro { overflow: hidden; background: var(--lime); color: var(--inchiostro); padding: 14px 0; }
.nastro-traccia { display: flex; width: max-content; animation: nastro 50s linear infinite; }
.nastro ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.nastro li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.nastro li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--inchiostro); }
@keyframes nastro { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   01 · Perché serve
   -------------------------------------------------------------------------- */
.affermazione { max-width: 15.5em; }
.affermazione + .lead { margin-top: 32px; }
.titolo + .lead, .titolo-m + .lead { margin-top: 26px; }
.origine .titolo, .fv .titolo { font-size: clamp(34px, 4.3vw, 62px); }
.costi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
.costo { position: relative; padding: 30px 28px 32px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--bordo); overflow: hidden; }
.costo .n { font-family: var(--titoli); font-size: 15px; color: var(--lime); letter-spacing: .04em; }
.costo h3 { margin: 18px 0 12px; font-size: clamp(26px, 2.4vw, 34px); }
.costo p { color: var(--tenue); font-size: 16px; }
.costo svg { position: absolute; right: 22px; top: 24px; width: 38px; height: 38px; color: rgba(255, 255, 255, .22); }

.domanda { text-align: center; }
.domanda .titolo { font-size: clamp(38px, 6.4vw, 96px); max-width: 13em; margin: 22px auto 0; }
.domanda .lead { margin: 30px auto 0; text-align: center; }
.virgolette { font-family: var(--titoli); font-size: clamp(90px, 12vw, 180px); line-height: .6; color: var(--lime); height: .45em; display: block; }

/* --------------------------------------------------------------------------
   02 · Chi l'ha costruita
   -------------------------------------------------------------------------- */
.origine { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.origine .lead { margin-top: 28px; }
.origine-dati { display: grid; gap: 14px; }
.dato { display: flex; align-items: center; gap: 22px; padding: 24px 26px; border-radius: var(--r); background: #fff; box-shadow: 0 24px 50px -36px rgba(15, 30, 61, .35); }
.dato b { flex: none; min-width: 3.5em; font-family: var(--titoli); font-weight: 400; font-size: 40px; line-height: 1; color: var(--inchiostro); }
.dato b em { font-style: normal; color: var(--lime-scuro); }
.dato span { font-size: 15.5px; color: var(--ink-tenue); line-height: 1.45; }
.dato span strong { display: block; font-size: 17px; }
.firma { margin-top: 34px; padding: 26px 28px; border-left: 4px solid var(--lime); background: rgba(15, 30, 61, .04); border-radius: 0 16px 16px 0; }
.firma p { font-family: var(--titoli); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; }
.firma small { display: block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-tenue); }
.firma a { color: var(--inchiostro); }

/* --------------------------------------------------------------------------
   03 · Come funziona
   -------------------------------------------------------------------------- */
.ciclo { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); padding-top: 44px; }
.ciclo-binario { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .12); }
.ciclo-binario span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, rgba(195, 236, 46, .2), var(--lime)); transition: width .25s linear; }
.ciclo-binario span::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(195, 236, 46, .18), 0 0 24px rgba(195, 236, 46, .8); }
.fase { padding: 28px 24px 30px; border-radius: var(--r); border: 1px solid var(--bordo); background: rgba(255, 255, 255, .03); transition: border-color .4s, background .4s, transform .4s var(--ease); }
.fase .n { font-family: var(--titoli); font-size: 30px; color: rgba(255, 255, 255, .25); transition: color .4s; }
.fase h3 { margin: 14px 0 10px; }
.fase p { font-size: 15.5px; color: var(--tenue); }
.fase.attiva { border-color: var(--lime); background: linear-gradient(160deg, rgba(195, 236, 46, .12), rgba(255, 255, 255, .02)); transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(195, 236, 46, .45); }
.fase.attiva .n { color: var(--lime); }
.come-nota { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 44px; color: var(--tenue); }
.come-nota span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; }
.come-nota span > svg { width: 20px; height: 20px; color: var(--lime); flex: none; }

/* --------------------------------------------------------------------------
   04 · La piattaforma: mappa
   -------------------------------------------------------------------------- */
.mappa { margin-top: clamp(44px, 6vw, 72px); }
.mappa-livelli { display: grid; grid-template-columns: 170px 1fr; gap: 0 28px; }
.mappa-etichetta { padding-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-tenue); }
.mappa-etichetta b { display: block; color: var(--lime-scuro); }
.mappa-etichetta small { display: block; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 13px; margin-top: 4px; }
.mappa-riga { position: relative; padding: 0 0 34px; }
.mappa-centro { display: flex; justify-content: center; }
.nodo-gruppo { display: inline-block; padding: 18px 34px; border-radius: 14px; background: var(--inchiostro); color: #fff; text-align: center; box-shadow: 0 24px 50px -24px rgba(15, 30, 61, .6); }
.nodo-gruppo strong { display: block; font-size: 19px; color: #fff; }
.nodo-gruppo span { font-size: 13.5px; color: var(--tenue); }
.strutture { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strutture::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: -18px; height: 18px; border: 2px solid rgba(15, 30, 61, .18); border-bottom: 0; border-radius: 12px 12px 0 0; }
.struttura { position: relative; padding: 14px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--inchiostro); }
.struttura strong { display: block; font-size: 16px; }
.struttura span { font-size: 13px; color: var(--ink-tenue); }
.contatori { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contatori ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.contatori li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border-left: 4px solid var(--c); font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px -16px rgba(15, 30, 61, .4); }
.contatori li small { font-weight: 600; color: var(--ink-tenue); font-variant-numeric: tabular-nums; }
.c-luce { --c: var(--lime-scuro); } .c-gas { --c: var(--blu); } .c-acqua { --c: var(--azzurro); }
.js .mappa [data-r] { translate: 0 18px; }

/* --------------------------------------------------------------------------
   04 · La piattaforma: tour delle schermate
   -------------------------------------------------------------------------- */
.tour { position: relative; background: var(--notte); }
.tour-intro { padding: calc(var(--nav-h) + 48px) 0 0; }
.tour-corpo { position: relative; }
.tour-fissa { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.tour-passi { position: relative; display: grid; }
.tour-passo { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.tour-passo .occhiello { margin-bottom: 18px; }
.tour-passo h3 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.tour-passo p { margin-top: 20px; color: var(--tenue); font-size: 17.5px; max-width: 34em; }
.tour-passo .cifra { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 26px; padding: 14px 20px; border-radius: 16px; background: rgba(195, 236, 46, .1); border: 1px solid rgba(195, 236, 46, .3); }
.tour-passo .cifra b { font-family: var(--titoli); font-weight: 400; font-size: 34px; color: var(--lime); line-height: 1; }
.tour-passo .cifra span { font-size: 14px; color: var(--tenue); font-weight: 600; }
.tour-passo img { display: none; }
.tour-schermo { position: relative; aspect-ratio: 2000 / 968; border-radius: 18px; overflow: hidden; background: var(--notte-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -40px rgba(0, 0, 0, .8); }
.tour-schermo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.tour-puntini { display: flex; gap: 8px; margin-top: 22px; }
.tour-puntini span { height: 4px; flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.tour-puntini span i { display: block; height: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s; }
.tour-contatore { margin-top: 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--debole); font-variant-numeric: tabular-nums; }
.tour-contatore b { color: var(--lime); }

/* Desktop: le schermate restano ferme e cambiano mentre si scorre */
@media (min-width: 861px) {
  .js .tour-corpo { height: calc(var(--n) * 85vh + 100vh); }
  .js .tour-fissa { position: sticky; top: 0; height: 100vh; padding-top: var(--nav-h); }
  .js .tour-passo { opacity: 0; transform: translateY(30px); pointer-events: none; }
  .js .tour-passo.attivo { opacity: 1; transform: none; pointer-events: auto; }
  .js .tour-passo.prima { transform: translateY(-30px); }
  .js .tour-schermo img { opacity: 0; transform: scale(1.05); }
  .js .tour-schermo img.attivo { opacity: 1; transform: none; }
  .no-js .tour-passo + .tour-passo { display: none; }
}

/* Vettori */
.vettori { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 30px 0 100px; }
.vettore { display: flex; gap: 18px; padding: 24px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--bordo); }
.vettore svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--c); }
.vettore h3 { font-size: 20px; }
.vettore h3 small { font-family: var(--testo); font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--c); margin-left: 6px; }
.vettore p { margin-top: 6px; font-size: 15px; color: var(--tenue); }
.vettore.c-luce { --c: var(--lime); }

/* --------------------------------------------------------------------------
   05 · Un caso reale
   -------------------------------------------------------------------------- */
.caso { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.scheda-cliente { padding: 32px; border-radius: var(--r); background: var(--inchiostro); color: #fff; }
.scheda-cliente .occhiello { margin-bottom: 18px; }
.scheda-cliente dl { margin: 0; display: grid; gap: 0; }
.scheda-cliente dt { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--debole); padding-top: 16px; border-top: 1px solid var(--bordo); }
.scheda-cliente dt:first-of-type { border-top: 0; padding-top: 0; }
.scheda-cliente dd { margin: 4px 0 16px; font-weight: 700; font-size: 17px; }
.emerso h3 { font-family: var(--testo); font-weight: 800; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--lime-scuro); margin-bottom: 20px; }
.emerso ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.emerso li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -36px rgba(15, 30, 61, .35); font-size: 18px; font-weight: 600; line-height: 1.45; }
.emerso li > b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--inchiostro); color: var(--lime); font-family: var(--titoli); font-weight: 400; font-size: 14px; }
.allarme { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--rosso); color: #fff; font-size: 13.5px; font-weight: 800; }
.allarme::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lampeggia 1.4s infinite; }
@keyframes lampeggia { 50% { opacity: .25; } }
.prova { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 30px; padding: 28px 30px; border-radius: var(--r); background: var(--lime); color: var(--inchiostro); }
.prova p { font-family: var(--titoli); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; max-width: 22em; }
.prova p small { display: block; margin-top: 6px; font-family: var(--testo); font-size: 15.5px; font-weight: 600; color: rgba(15, 30, 61, .75); }

/* --------------------------------------------------------------------------
   06 · Fotovoltaico
   -------------------------------------------------------------------------- */
.fv { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.fv .lead { margin-top: 26px; }
.fv-cifre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.fv-cifre div { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--bordo); }
.fv-cifre b { display: block; font-family: var(--titoli); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.fv-cifre div:last-child b { color: var(--lime); }
.fv-cifre div > span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--tenue); line-height: 1.35; }
.fv-prezzo { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; font-size: 15px; color: var(--tenue); }
.fv-prezzo b { color: #fff; font-size: 17px; }
.fv-schermo { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -40px rgba(0, 0, 0, .8); }
.fv-schermo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(10, 23, 48, .8); font-size: 12px; font-weight: 700; color: var(--tenue); }
.sole { position: absolute; z-index: 0; width: 640px; height: 640px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(195, 236, 46, .18), transparent 62%); pointer-events: none; }

/* --------------------------------------------------------------------------
   07 · Prezzi
   -------------------------------------------------------------------------- */
.prezzi-testa { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.calcolatore { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; margin-top: clamp(36px, 5vw, 56px); border-radius: 26px; overflow: hidden; background: var(--inchiostro); color: #fff; box-shadow: 0 40px 90px -50px rgba(15, 30, 61, .7); }
.calc-sx { padding: clamp(26px, 3.4vw, 44px); }
.calc-dx { padding: clamp(26px, 3.4vw, 44px); background: var(--notte-2); display: grid; gap: 14px; align-content: center; }
.calc-punti { display: flex; align-items: baseline; gap: 14px; margin: 14px 0 24px; }
.calc-punti output { font-family: var(--titoli); font-size: clamp(64px, 7vw, 96px); line-height: .9; color: var(--lime); font-variant-numeric: tabular-nums; }
.calc-punti span { font-weight: 700; color: var(--tenue); }
.calc-controlli { display: flex; align-items: center; gap: 14px; }
.calc-controlli button { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bordo); background: rgba(255, 255, 255, .05); font-size: 22px; font-weight: 700; line-height: 1; }
.calc-controlli button:hover { border-color: var(--lime); }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) var(--p, 10%), rgba(255, 255, 255, .16) var(--p, 10%)); outline-offset: 8px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--lime); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .5); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 6px solid var(--lime); cursor: grab; }
.calc-soglie { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--debole); }
.calc-soglie span.on { color: var(--lime); }
.calc-dettaglio { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--bordo); font-size: 14.5px; color: var(--tenue); }
.calc-dettaglio ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.calc-dettaglio li { display: flex; justify-content: space-between; gap: 12px; }
.calc-dettaglio li b { color: #fff; font-weight: 700; }
.tariffa { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--bordo); background: rgba(255, 255, 255, .03); }
.tariffa.agevolata { border-color: var(--lime); background: rgba(195, 236, 46, .08); }
.tariffa header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.tariffa header em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--inchiostro); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.tariffa .tot { margin-top: 8px; font-family: var(--titoli); font-size: clamp(34px, 3.6vw, 46px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.tariffa .tot small { font-family: var(--testo); font-size: 16px; font-weight: 700; color: var(--tenue); }
.tariffa p { font-size: 14px; color: var(--tenue); margin-top: 4px; }
.tariffa p a { color: var(--lime); }

.scaglioni { width: 100%; margin-top: 28px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 18px; overflow: hidden; font-variant-numeric: tabular-nums; box-shadow: 0 24px 50px -40px rgba(15, 30, 61, .4); }
.scaglioni caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 14.5px; color: var(--ink-tenue); }
.scaglioni th, .scaglioni td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--carta-2); }
.scaglioni thead th { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-tenue); background: rgba(15, 30, 61, .03); }
.scaglioni tbody tr:last-child td, .scaglioni tbody tr:last-child th { border-bottom: 0; }
.scaglioni tbody th { font-weight: 700; }
.scaglioni td:nth-child(3) { font-weight: 800; }
.scaglioni tr.on { background: rgba(195, 236, 46, .22); }
.scaglioni tr.on th { box-shadow: inset 4px 0 0 var(--lime-scuro); }

.extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.extra div { padding: 22px; border-radius: 18px; background: #fff; }
.extra strong { display: block; font-size: 16px; }
.extra p { font-size: 14.5px; color: var(--ink-tenue); margin: 4px 0 12px; }
.extra b { font-family: var(--titoli); font-weight: 400; font-size: 22px; }
.extra b small { font-family: var(--testo); font-weight: 700; font-size: 14px; color: var(--ink-tenue); }
.garanzie { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-weight: 700; font-size: 15px; }
.garanzie span { display: inline-flex; align-items: center; gap: 8px; }
.garanzie svg { width: 18px; height: 18px; color: var(--lime-scuro); }

.passaparola { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-top: 40px; padding: 28px 30px; border-radius: var(--r); background: var(--inchiostro); color: #fff; }
.passaparola .premio { font-family: var(--titoli); font-size: 52px; line-height: .9; color: var(--lime); text-align: center; }
.passaparola .premio small { display: block; font-family: var(--testo); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-top: 6px; }
.passaparola h3 { font-size: 24px; }
.passaparola p { font-size: 15px; color: var(--tenue); margin-top: 6px; }
.passaparola .es { font-size: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--tenue); max-width: 260px; }
.passaparola .es b { color: var(--lime); }

/* --------------------------------------------------------------------------
   08 · Attivazione
   -------------------------------------------------------------------------- */
.passi { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(44px, 6vw, 72px); counter-reset: p; }
.passi::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px); }
.passo { position: relative; }
.passo .bolla { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--notte); border: 2px solid var(--lime); font-family: var(--titoli); font-size: 20px; color: var(--lime); }
.passo:last-child .bolla { background: var(--lime); color: var(--inchiostro); }
.passo h3 { margin: 24px 0 10px; }
.passo p { font-size: 15.5px; color: var(--tenue); }
.passo .tempo { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(195, 236, 46, .12); color: var(--lime); font-size: 13px; font-weight: 800; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq .lead { margin-top: 22px; }
.faq .lead a { color: var(--inchiostro); font-weight: 700; }
.domande { display: grid; gap: 10px; }
.domande details { border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -36px rgba(15, 30, 61, .4); }
.domande summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-weight: 800; font-size: 17.5px; cursor: pointer; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #eef3d9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1e3d' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--ease), background-color .25s; }
.domande details[open] summary::after { transform: rotate(135deg); background-color: var(--lime); }
.domande details p { padding: 0 24px 24px; color: var(--ink-tenue); font-size: 16px; }

/* --------------------------------------------------------------------------
   Demo e contatti
   -------------------------------------------------------------------------- */
.demo-testa { text-align: center; }
.demo-testa .lead { margin: 22px auto 0; text-align: center; }
.strade { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.strada { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 28px 30px; border-radius: var(--r); border: 1px solid var(--bordo); background: rgba(255, 255, 255, .03); text-align: left; transition: border-color .25s, background .25s, transform .35s var(--ease); }
.strada:hover, .strada.scelta { border-color: var(--lime); background: rgba(195, 236, 46, .07); transform: translateY(-3px); }
.strada .occhiello { font-size: 11.5px; }
.strada strong { font-family: var(--titoli); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.strada span { color: var(--tenue); font-size: 15.5px; }
.strada em { margin-top: 6px; font-style: normal; font-weight: 800; color: var(--lime); }

.modulo { display: grid; grid-template-columns: .78fr 1.22fr; margin-top: 18px; border-radius: 26px; overflow: hidden; border: 1px solid var(--bordo); background: var(--notte-2); }
.riepilogo { padding: 32px; background: rgba(0, 0, 0, .14); border-right: 1px solid var(--bordo); }
.anello { position: relative; width: 112px; height: 112px; }
.anello svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anello circle { fill: none; stroke-width: 8; }
.anello .base { stroke: rgba(255, 255, 255, .1); }
.anello .pieno { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset .6s var(--ease); }
.anello output { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--titoli); font-size: 24px; }
.riepilogo h3 { margin: 24px 0 4px; font-size: 19px; }
.riepilogo > p { font-size: 14px; color: var(--debole); }
.riepilogo dl { margin: 20px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.riepilogo dt { color: var(--debole); font-weight: 700; }
.riepilogo dd { margin: 0; color: rgba(255, 255, 255, .35); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.riepilogo dd.pieno { color: #fff; }

.form { position: relative; padding: clamp(26px, 4vw, 48px); min-height: 440px; display: flex; flex-direction: column; }
.form-testa { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--debole); }
.form-testa b { color: var(--lime); font-variant-numeric: tabular-nums; }
.form-puntini { display: flex; gap: 6px; flex: 1; }
.form-puntini i { height: 4px; flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .15); transition: background .3s; }
.form-puntini i.on { background: var(--lime); }
.domande-form { position: relative; flex: 1; display: grid; margin-top: 34px; }
.step { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .step { opacity: 0; transform: translateY(26px); pointer-events: none; visibility: hidden; }
.js .step.attivo { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.step label.q { display: block; font-family: var(--titoli); font-size: clamp(26px, 3vw, 38px); line-height: 1.12; }
.step input[type=text], .step input[type=email], .step input[type=tel], .step textarea {
  width: 100%; margin-top: 22px; padding: 12px 0; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .18); background: transparent;
  color: #fff; font: 600 clamp(20px, 2vw, 24px) var(--testo); outline: none; transition: border-color .25s; resize: none; border-radius: 0;
}
.step input:focus, .step textarea:focus { border-bottom-color: var(--lime); }
.step input::placeholder, .step textarea::placeholder { color: rgba(255, 255, 255, .4); }
.step .aiuto { margin-top: 12px; font-size: 14px; color: var(--debole); }
.step .errore { display: none; margin-top: 10px; font-size: 14px; font-weight: 700; color: #ff9b86; }
.step.ko .errore { display: block; }
.step.ko input, .step.ko textarea { border-bottom-color: #ff9b86; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips button { padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); font-weight: 700; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chips button:hover { border-color: var(--lime); }
.chips button[aria-pressed=true] { background: var(--lime); border-color: var(--lime); color: var(--inchiostro); }
.privacy { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--tenue); }
.privacy input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lime); flex: none; }
.privacy a { color: var(--lime); }
.miele { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-piede { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.form-piede .indietro { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--bordo); background: transparent; font-size: 20px; }
.form-piede .indietro[hidden] { display: none; }
.form-piede small { margin-left: 6px; font-size: 13px; color: var(--debole); }
.form-errore { display: none; margin-top: 14px; font-weight: 700; color: #ff9b86; }
.form-ok { display: none; text-align: center; padding: 40px 10px; margin: auto 0; }
.form-ok svg { width: 74px; height: 74px; color: var(--lime); }
.form-ok h3 { margin: 18px 0 10px; font-size: 32px; }
.form-ok p { color: var(--tenue); }
.inviato .form-ok { display: block; }
.inviato .form-corpo { display: none; }
.no-js .form-piede small, .no-js .form-testa { display: none; }

.contatti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.contatti a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--bordo); text-decoration: none; transition: border-color .25s, background .25s; }
.contatti a:hover { border-color: var(--lime); background: rgba(195, 236, 46, .06); }
.contatti small { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--debole); }
.contatti strong { font-size: 19px; }

/* Piede */
.piede { padding: 64px 0 34px; background: #07111f; color: var(--tenue); font-size: 15px; }
.piede-griglia { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.piede img { height: 28px; width: auto; margin-bottom: 18px; }
.piede h4 { margin: 0 0 14px; color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.piede a { text-decoration: none; }
.piede a:hover { color: #fff; }
.piede-fondo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--bordo); font-size: 13.5px; color: var(--debole); }
.piede-fondo nav { display: flex; gap: 20px; }

/* Flottanti: WhatsApp e avviso cookie (piccolo, non copre i contenuti) */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.whatsapp:hover { transform: scale(1.07); }
.whatsapp svg { width: 28px; height: 28px; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 96; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 100px); padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(10, 23, 48, .94); border: 1px solid var(--bordo); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13.5px; color: var(--tenue); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); animation: sale .6s var(--ease) 1s both; }
.cookie a { color: var(--lime); }
.cookie button { flex: none; padding: 8px 14px; border-radius: 10px; border: 0; background: var(--lime); color: var(--inchiostro); font-weight: 800; font-size: 13px; }
.cookie[hidden] { display: none; }
@keyframes sale { from { opacity: 0; transform: translateY(20px); } }

/* --------------------------------------------------------------------------
   Lettore video "cinema" con capitoli e sottotitoli
   -------------------------------------------------------------------------- */
.lettore { width: min(1360px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px; background: #050c1a; color: #fff; overflow: hidden; box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .9); }
.lettore::backdrop { background: rgba(4, 10, 22, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lettore[open] { animation: apri .45s var(--ease); }
@keyframes apri { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.lettore-griglia { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.lettore-video { position: relative; background: #000; }
.lettore-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.lettore-video video::cue { font-family: var(--testo); font-weight: 600; font-size: 1.1em; background: rgba(10, 23, 48, .82); color: #fff; }
.lettore-fine { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: rgba(10, 23, 48, .92); }
.lettore-fine.on { display: flex; }
.lettore-fine h3 { font-size: clamp(26px, 3vw, 42px); }
.lettore-fine div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lettore-lato { display: flex; flex-direction: column; border-left: 1px solid var(--bordo); max-height: calc((min(1360px, 100vw - 32px) - 300px) * 9 / 16); }
.lettore-testa { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--bordo); }
.lettore-testa strong { font-size: 15px; }
.lettore-testa small { display: block; font-size: 12.5px; color: var(--debole); font-weight: 600; }
.chiudi { position: absolute; z-index: 3; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 23, 48, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 17px; }
.chiudi:hover { border-color: #fff; }
.capitoli-video { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.capitoli-video button { width: 100%; display: grid; grid-template-columns: 46px 1fr; gap: 6px; align-items: center; padding: 11px 12px; border-radius: 12px; border: 0; background: transparent; text-align: left; font-size: 14.5px; font-weight: 700; color: var(--tenue); position: relative; overflow: hidden; }
.capitoli-video button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.capitoli-video button small { font-size: 12.5px; color: var(--debole); font-variant-numeric: tabular-nums; font-weight: 700; }
.capitoli-video button.attivo { background: rgba(195, 236, 46, .1); color: #fff; }
.capitoli-video button.attivo small { color: var(--lime); }
.capitoli-video button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.lettore-piede { padding: 14px; border-top: 1px solid var(--bordo); }
.lettore-piede .btn { width: 100%; min-height: 48px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Modalità presentazione (pulsante "Presenta"): slide a tutto schermo
   -------------------------------------------------------------------------- */
html.presenta .nav, html.presenta .whatsapp, html.presenta .cookie { opacity: 0; pointer-events: none; transition: opacity .3s; }
html.presenta .tour-corpo { height: auto !important; }
html.presenta .tour-fissa { position: relative !important; }
.hud { position: fixed; z-index: 130; left: 50%; bottom: 18px; transform: translateX(-50%); display: none; align-items: center; gap: 14px; padding: 8px 10px 8px 18px; border-radius: 999px; background: rgba(10, 23, 48, .9); border: 1px solid var(--bordo); font-size: 13px; font-weight: 700; color: var(--tenue); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud b { color: var(--lime); font-variant-numeric: tabular-nums; }
.hud button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bordo); background: transparent; font-size: 12.5px; font-weight: 800; }
html.presenta .hud { display: flex; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-link { display: none; }
  .nav-azioni { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 980px) {
  .origine, .fv, .faq, .caso, .prezzi-testa, .calcolatore, .modulo { grid-template-columns: 1fr; }
  .vettori { grid-template-columns: 1fr; padding-bottom: 80px; }
  .ciclo, .passi { grid-template-columns: 1fr 1fr; }
  .costi { gap: 12px; }
  .costo { padding: 24px 20px; }
  .ciclo-binario, .passi::before { display: none; }
  .ciclo { padding-top: 0; }
  .extra { grid-template-columns: 1fr; }
  .passaparola { grid-template-columns: auto 1fr; }
  .passaparola .es { grid-column: 1 / -1; max-width: none; }
  .riepilogo { border-right: 0; border-bottom: 1px solid var(--bordo); display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: center; }
  .riepilogo h3 { margin-top: 0; }
  .riepilogo dl { display: none; }
  .lettore-griglia { grid-template-columns: minmax(0, 1fr); }
  .lettore-lato { border-left: 0; border-top: 1px solid var(--bordo); max-height: none; }
  .capitoli-video { display: flex; overflow-x: auto; overflow-y: hidden; gap: 6px; }
  .capitoli-video li { flex: none; }
  .capitoli-video button { width: auto; grid-template-columns: auto auto; gap: 8px; white-space: nowrap; }
  .lettore-testa, .lettore-piede { display: none; }
  .lettore { border-radius: 16px; }
  .presenta-btn { display: none; }
}
@media (max-width: 860px) {
  .tour-fissa { grid-template-columns: 1fr; }
  .tour-schermo, .tour-puntini, .tour-contatore { display: none; }
  .tour-passi { gap: 56px; padding-top: 28px; }
  .tour-passo { grid-area: auto; }
  .tour-passo img { display: block; width: 100%; margin-top: 24px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .8); }
  .tour-corpo { padding-bottom: 20px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 66px; }
  body { font-size: 16px; }
  .nav { top: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; width: calc(100% - 20px); }
  .nav .logo img { height: 22px; }
  .nav-azioni .btn, .nav-accedi { display: none; }
  .slide { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-cta .btn { width: 100%; }
  .schermo { transform: none; border-radius: 14px 14px 0 0; }
  .schermo-barra { height: 30px; }
  .schermo-play { padding: 8px 18px 8px 8px; font-size: 15px; gap: 12px; }
  .schermo-play i { width: 44px; height: 44px; }
  .schermo-play small { display: none; }
  .schermo-capitoli { display: none; }
  .numeri { grid-template-columns: 1fr 1fr; }
  .numeri > div:nth-child(2) { border-right: 0; }
  .numeri > div:nth-child(-n+2) { border-bottom: 1px solid var(--bordo); }
  .numeri > div { padding: 22px 18px; }
  .costi, .ciclo, .passi, .strade, .contatti, .fv-cifre { grid-template-columns: 1fr; }
  .fv-cifre { gap: 10px; }
  .fv-cifre div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .fv-cifre div > span { margin: 0; text-align: right; }
  .mappa-livelli { grid-template-columns: 1fr; }
  .mappa-etichetta { padding: 0 0 10px; }
  .strutture, .contatori { grid-template-columns: 1fr 1fr; }
  .strutture::before { display: none; }
  .mappa-centro { display: block; }
  .nodo-gruppo { display: block; }
  .scaglioni th, .scaglioni td { padding: 12px 12px; font-size: 14px; }
  .scaglioni thead th { font-size: 10.5px; letter-spacing: .06em; }
  .passaparola { grid-template-columns: 1fr; text-align: left; }
  .passaparola .premio { text-align: left; }
  .piede-griglia { grid-template-columns: 1fr; gap: 30px; }
  .form { min-height: 400px; }
  .form-piede small { display: none; }
  .cookie { left: 10px; bottom: 10px; max-width: calc(100% - 86px); font-size: 12.5px; }
  .whatsapp { right: 12px; bottom: 12px; }
  .slide[data-n]::before { font-size: 150px; opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-r] { opacity: 1; transform: none; }
  .nastro-traccia { animation: none; }
}

/* --------------------------------------------------------------------------
   Rifiniture estetiche
   -------------------------------------------------------------------------- */
/* Profondità sui fondi scuri: una luce blu morbida in alto */
.scuro .slide:not(.hero) { background-image: radial-gradient(900px 520px at 0% 0%, rgba(58, 123, 213, .13), transparent 62%); }
.scuro .slide.notte-2 { background-image: radial-gradient(800px 500px at 50% 110%, rgba(195, 236, 46, .1), transparent 60%); }

/* Alone dietro lo schermo del video */
.schermo-scena { position: relative; }
.schermo-scena::before { content: ""; position: absolute; left: 12%; right: 12%; top: 8%; bottom: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(58, 123, 213, .45), rgba(195, 236, 46, .12) 60%, transparent); filter: blur(40px); pointer-events: none; }
.schermo { position: relative; }

/* Card sui fondi scuri: vetro leggero con filo di luce in alto */
.costo, .fase, .vettore, .strada, .tariffa, .fv-cifre div, .contatti a {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.costo, .vettore { transition: border-color .3s, transform .4s var(--ease); }
.costo:hover, .vettore:hover { border-color: rgba(195, 236, 46, .45); transform: translateY(-4px); }
.costo .n, .fase .n { display: inline-block; }
.tariffa.agevolata { background: linear-gradient(180deg, rgba(195, 236, 46, .14), rgba(195, 236, 46, .04)); }

/* Card chiare: ombra più morbida e bordo sottile */
.dato, .emerso li, .extra div, .domande details, .struttura, .scaglioni { box-shadow: 0 1px 0 rgba(15, 30, 61, .04), 0 24px 48px -34px rgba(15, 30, 61, .35); }
.dato, .emerso li, .extra div { border: 1px solid rgba(15, 30, 61, .06); }


/* Tour su schermi medi: colonne più bilanciate */
.tour-passo .cifra b { white-space: nowrap; }
.tour-passo .occhiello { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1180px) {
  .tour-fissa { grid-template-columns: 1fr 1.15fr; gap: 32px; }
  .tour-passo h3 { font-size: clamp(26px, 3.2vw, 38px); }
  .tour-passo p { font-size: 16px; margin-top: 14px; }
  .tour-passo .cifra { margin-top: 18px; padding: 12px 16px; }
  .tour-passo .cifra b { font-size: 26px; }
}

/* Barra fissa su mobile: video e demo sempre a portata di pollice */
.barra-mobile { display: none; }
@media (max-width: 760px) {
  .barra-mobile {
    position: fixed; z-index: 97; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px; border-radius: 18px;
    background: rgba(10, 23, 48, .92); border: 1px solid var(--bordo); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
    translate: 0 140%; transition: translate .45s var(--ease);
  }
  .barra-mobile.on { translate: none; }
  .barra-mobile > * { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-weight: 800; font-size: 15px; text-decoration: none; border: 0; }
  .barra-video { padding: 0 14px; background: rgba(255, 255, 255, .08); color: #fff; }
  .barra-video svg { width: 13px; height: 13px; color: var(--lime); }
  .barra-demo { background: var(--lime); color: var(--inchiostro); }
  .barra-wa { width: 48px; background: #25d366; color: #fff; }
  .barra-wa svg { width: 24px; height: 24px; }
  /* Con la barra visibile, WhatsApp è nella barra e l'avviso cookie sale sopra */
  body.con-barra .whatsapp { opacity: 0; pointer-events: none; }
  body.con-barra .cookie { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .whatsapp, .cookie { transition: opacity .3s, bottom .45s var(--ease); }
  .piede { padding-bottom: 110px; }
}

/* Caricamento bollette nel form */
.carica { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 22px; padding: 26px 20px; border-radius: 18px; border: 1.5px dashed rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .03); text-align: center; cursor: pointer; transition: border-color .25s, background .25s; }
.carica:hover, .carica.sopra, .carica:focus-within { border-color: var(--lime); background: rgba(195, 236, 46, .06); }
.carica:focus-within { outline: 3px solid var(--lime); outline-offset: 3px; }
.carica svg { width: 34px; height: 34px; color: var(--lime); margin-bottom: 4px; }
.carica strong { font-size: 17px; }
.carica strong u { text-decoration-color: var(--lime); text-underline-offset: 3px; }
.carica span { font-size: 13.5px; color: var(--debole); }
.carica.con-file { padding: 14px 20px; flex-direction: row; justify-content: center; }
.carica.con-file svg { width: 22px; height: 22px; margin: 0; }
.carica.con-file span { display: none; }
.file-lista { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.file-lista li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14.5px; font-weight: 600; }
.file-lista li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-lista li small { color: var(--debole); font-variant-numeric: tabular-nums; }
.file-lista li button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .08); font-size: 13px; }
.file-lista li button:hover { background: var(--rosso); }
.step[data-step="bollette"] .domande-form, .step[data-step="bollette"] { max-width: 100%; }

/* Terza strada: prenotazione in calendario (compare quando c'è il link) */
a.strada { text-decoration: none; color: inherit; }
.strade.tre { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .strade.tre { grid-template-columns: 1fr; } }
.strada[hidden] { display: none; }
