/* Qualità SII — landing
   Concept: «dalla vasca al rubinetto». La pagina scorre come l'acqua: si parte dal fondo scuro
   della vasca (il chiarificatore visto dall'alto, con le sue onde concentriche), si sale verso
   sezioni chiare e leggibili, e si torna nel blu profondo del piede. Onde animate tra le sezioni. */

@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("fonts/raleway-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/raleway-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("fonts/raleway-latin-wght-italic.woff2") format("woff2-variations"), url("fonts/raleway-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* colore: i blu del depuratore, dal fondo vasca alla superficie */
  --abisso: #061722;
  --notte: #0b2c3d;
  --petrolio: #2f6b85;
  --azzurro: #5d9db8;
  --acqua: #6fd8e6;
  --ghiaccio: #ecf4f7;
  --carta: #f8fbfc;
  --inchiostro: #0c2431;
  --testo: #314e5c;
  --tenue: #5f7c89;
  --linea: #d3e3e9;
  --errore: #b3261e;
  /* tipografia */
  --f-display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* misure */
  --wrap: 1200px;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--carta); color: var(--testo);
  font-family: var(--f-body); font-size: 1.125rem; line-height: 1.6; font-weight: 500;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--inchiostro); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
strong { color: var(--inchiostro); font-weight: 700; }
::selection { background: var(--acqua); color: var(--abisso); }
:focus-visible { outline: 3px solid var(--acqua); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--acqua); color: var(--abisso); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * max(24px, env(safe-area-inset-left, 0px))); margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ---------- barra di avanzamento: il livello dell'acqua */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--azzurro), var(--acqua)); }

/* ---------- pulsanti */
.btn {
  --bg: var(--petrolio); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: .005em; line-height: 1.1;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s, color .25s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%); opacity: 0; transition: opacity .3s; }
.btn:hover::after { opacity: 1; }
.btn:hover { box-shadow: 0 12px 30px -10px rgba(6, 23, 34, .45); }
.btn:active { transform: scale(.97); }
.btn--cta { --bg: var(--petrolio); --fg: #fff; }
[data-tone="dark"] .btn--cta, .menu .btn--cta { --bg: var(--acqua); --fg: var(--abisso); }
.btn--ghost { --bg: transparent; --fg: var(--inchiostro); box-shadow: inset 0 0 0 1.5px currentColor; }
[data-tone="dark"] .btn--ghost, .menu .btn--ghost { --fg: #fff; }
.btn--line { --bg: transparent; --fg: var(--petrolio); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--petrolio); }
.btn--lg { min-height: 56px; padding: 1em 1.8em; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: .55em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn__ico, .btn__arrow { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn__arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.link { background: none; border: 0; padding: 0; color: var(--petrolio); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
.link--light { color: #cfe7ee; }

/* ---------- NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transition: transform .5s var(--ease-out); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__bar {
  max-width: calc(var(--wrap) + 48px); margin: 12px auto 0; height: 60px;
  margin-left: max(12px, env(safe-area-inset-left, 0px)); margin-right: max(12px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 18px; padding: 0 10px 0 20px; border-radius: 999px;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s, color .3s;
}
@media (min-width: 1272px) { .nav__bar { margin-left: auto; margin-right: auto; } }
.nav.is-solid .nav__bar { background: rgba(248, 251, 252, .82); box-shadow: 0 10px 40px -18px rgba(6, 23, 34, .35), inset 0 0 0 1px rgba(255,255,255,.6); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav[data-tone="dark"].is-solid .nav__bar { background: rgba(6, 23, 34, .62); box-shadow: 0 10px 40px -18px rgba(0,0,0,.6), inset 0 0 0 1px rgba(111, 216, 230, .14); }
.nav__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.nav__logo img { width: 118px; height: auto; }
.nav[data-tone="dark"] .logo--dark, .nav[data-tone="light"] .logo--light { display: none; }
.nav__product { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-weight: 800; font-size: .92rem; letter-spacing: .02em; padding-left: 14px; border-left: 1.5px solid currentColor; color: var(--petrolio); white-space: nowrap; }
.nav[data-tone="dark"] .nav__product { color: var(--acqua); }
.drop { width: 10px; height: 13px; background: currentColor; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: path("M5 0 C5 0 10 6.5 10 8.5 A5 5 0 0 1 0 8.5 C0 6.5 5 0 5 0Z"); display: inline-block; }
.nav__links { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav__links a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: var(--inchiostro); transition: color .3s; }
.nav[data-tone="dark"] .nav__links a { color: #e4f3f7; }
.nav__links a.is-active { color: #fff; }
.nav[data-tone="dark"] .nav__links a.is-active { color: var(--abisso); }
.nav__blob { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: var(--petrolio); opacity: 0; transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s, background .3s; }
.nav[data-tone="dark"] .nav__blob { background: var(--acqua); }
.nav__cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--petrolio); cursor: pointer; position: relative; margin-left: auto; flex: none; }
.nav[data-tone="dark"] .burger { background: var(--acqua); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease-out), opacity .3s; }
.nav[data-tone="dark"] .burger span { background: var(--abisso); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }
@media (max-width: 760px) { .nav__cta { display: none; } .burger { display: block; } .nav__logo img { width: 104px; } }
@media (max-width: 380px) { .nav__product { display: none; } }

/* menu mobile: si apre come un'onda che parte dal pulsante */
.menu {
  position: fixed; inset: 0; z-index: 90; background: radial-gradient(120% 90% at 100% 0%, var(--notte), var(--abisso) 70%); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: calc(var(--nav-h) + 20px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px));
  clip-path: circle(0 at var(--cx, calc(100% - 40px)) var(--cy, 40px)); transition: clip-path .8s var(--ease-out); overflow-y: auto;
}
.menu.is-open { clip-path: circle(160% at var(--cx, calc(100% - 40px)) var(--cy, 40px)); }
.menu__inner { display: flex; flex-direction: column; }
.menu__inner a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 8vw, 2.8rem); letter-spacing: -.02em; line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out), color .2s; }
.menu__inner a small { font-size: .8rem; font-weight: 700; color: var(--acqua); letter-spacing: .1em; }
.menu__inner a:hover { color: var(--acqua); }
.menu.is-open .menu__inner a { opacity: 1; transform: none; }
.menu.is-open .menu__inner a:nth-child(1) { transition-delay: .18s; } .menu.is-open .menu__inner a:nth-child(2) { transition-delay: .23s; } .menu.is-open .menu__inner a:nth-child(3) { transition-delay: .28s; } .menu.is-open .menu__inner a:nth-child(4) { transition-delay: .33s; } .menu.is-open .menu__inner a:nth-child(5) { transition-delay: .38s; } .menu.is-open .menu__inner a:nth-child(6) { transition-delay: .43s; } .menu.is-open .menu__inner a:nth-child(7) { transition-delay: .48s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; opacity: 0; transition: opacity .5s .5s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot p { width: 100%; color: #b9d6df; font-size: .95rem; }
.menu__foot p a { color: #fff; }
body.menu-open { overflow: hidden; }

/* ---------- etichette e titoli */
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--petrolio); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--acqua); }
.h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); line-height: 1.08; font-weight: 800; }
.h2--light { color: #fff; }
.lead { font-size: 1.22rem; line-height: 1.6; max-width: 62ch; color: var(--testo); }
.lead--light { color: #c9e1e8; }
.lead--light strong { color: #fff; }

/* ---------- sezioni */
.sec { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.sec--paper { background: var(--carta); }
.sec--ice { background: var(--ghiaccio); }
.sec--deep { background: radial-gradient(80% 60% at 85% 0%, rgba(47, 107, 133, .35), transparent 60%), linear-gradient(180deg, var(--notte), var(--abisso)); color: #c9e1e8; }
.sec__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 70px); max-width: 860px; }
.sec__head--split { max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 28px 60px; }
.sec__head--split > div { display: grid; gap: 20px; }
@media (max-width: 860px) { .sec__head--split { grid-template-columns: 1fr; } }

/* onde tra le sezioni */
.wave { position: absolute; left: 0; width: 100%; overflow: hidden; height: clamp(50px, 8vw, 110px); pointer-events: none; overflow: visible; }
.wave path { will-change: transform; }
.wave--down { bottom: -1px; }
.wave--down .wave__a { fill: var(--carta); }
.wave--down .wave__b { fill: var(--carta); opacity: .45; }
.wave--up { top: -1px; }
.wave--up .wave__a { fill: var(--ghiaccio); }
.wave--up .wave__b { fill: var(--ghiaccio); opacity: .45; }
.wave--foot { top: -1px; transform: scaleY(-1); }
.wave--foot .wave__a { fill: var(--carta); }
.wave--foot .wave__b { fill: var(--carta); opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .wave__a { animation: drift 14s linear infinite alternate; }
  .wave__b { animation: drift 9s linear infinite alternate-reverse; }
}
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* ---------- HERO */
.hero { position: relative; overflow: hidden; color: #cfe5ec; background: radial-gradient(70% 70% at 78% 38%, rgba(47, 107, 133, .55), transparent 70%), linear-gradient(170deg, #0d3446 0%, var(--notte) 35%, var(--abisso) 100%); padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px) + env(safe-area-inset-top, 0px)) 0 clamp(110px, 12vw, 170px); }
.hero__water { position: absolute; inset: 0; background: url("../imglanding/increspature.webp") center / cover no-repeat; opacity: .13; mix-blend-mode: screen; transform: scale(1.1); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--hx, 70%) var(--hy, 40%), rgba(111, 216, 230, .16), transparent 70%); pointer-events: none; transition: background .2s; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 70px); }
.hero__text { display: grid; gap: 26px; justify-items: start; }
.hero__title { color: #fff; font-weight: 800; font-size: clamp(2.3rem, 4.5vw, 3.9rem); line-height: 1.03; letter-spacing: -.03em; }
.hero__title em { font-style: normal; color: var(--acqua); }
.hero__lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); max-width: 54ch; color: #c6dee6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.rings { position: absolute; inset: -9%; width: 118%; height: 118%; overflow: visible; }
.r { fill: none; stroke: var(--acqua); vector-effect: non-scaling-stroke; }
.r1 { stroke-opacity: .12; stroke-width: 1; }
.r2 { stroke-opacity: .22; stroke-width: 1; stroke-dasharray: 2 10; }
.r3 { stroke-opacity: .32; stroke-width: 1.2; }
.r4 { stroke-opacity: .55; stroke-width: 1.4; stroke-dasharray: 60 14 4 14; }
.r5 { stroke-opacity: .4; stroke-width: 6; stroke-dasharray: 1 13; }
.r6 { stroke: #fff; stroke-opacity: .85; stroke-width: 3; }
.rings .r2, .rings .r4, .rings .tick-ring { transform-origin: 0 0; }
.disc { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 8px rgba(111, 216, 230, .06); }
.disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(6, 23, 34, .45)); }
.pulse { position: absolute; inset: 12%; border-radius: 50%; border: 1.5px solid var(--acqua); opacity: 0; pointer-events: none; }
.orbit { position: absolute; inset: 3%; border-radius: 50%; }
.orbit__dot { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--acqua); box-shadow: 0 0 0 6px rgba(111, 216, 230, .2), 0 0 24px var(--acqua); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(8, 32, 45, .62); border: 1px solid rgba(111, 216, 230, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .84rem; white-space: nowrap; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--acqua); position: relative; flex: none; }
.chip i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--abisso); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip--a { top: 8%; left: -6%; }
.chip--b { top: 50%; right: -8%; }
.chip--c { bottom: 6%; left: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .disc img { animation: spin 140s linear infinite; }
  .rings .r2 { animation: spin 80s linear infinite reverse; }
  .rings .r4 { animation: spin 46s linear infinite; }
  .rings .tick-ring { animation: spin 120s linear infinite reverse; }
  .orbit { animation: spin 18s linear infinite; }
  .pulse { animation: pulse 6s var(--ease) infinite; }
  .pulse--2 { animation-delay: 2s; } .pulse--3 { animation-delay: 4s; }
  .chip { animation: bob 7s ease-in-out infinite; }
  .chip--b { animation-delay: -2.3s; } .chip--c { animation-delay: -4.6s; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats { list-style: none; margin: clamp(50px, 7vw, 90px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(111, 216, 230, .22); position: relative; }
.stats li { padding: 26px 24px 0 0; display: grid; gap: 6px; align-content: start; }
.stats li + li { padding-left: 24px; border-left: 1px solid rgba(111, 216, 230, .14); }
.stats strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--acqua); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: .98rem; color: #b8d3dc; max-width: 22ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats li:nth-child(3) { padding-left: 0; border-left: 0; } .stats li:nth-child(n+3) { border-top: 1px solid rgba(111, 216, 230, .14); margin-top: 22px; } }

.marquee { position: relative; margin-top: clamp(40px, 5vw, 64px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; }
.marquee span { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(111, 216, 230, .3); color: #dff1f5; font-family: var(--f-display); font-weight: 600; font-size: .9rem; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: marquee 40s linear infinite; } .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(86%, 460px); order: -1; margin-bottom: 10px; }
  .chip { font-size: .76rem; padding: 8px 12px 8px 9px; }
  .chip--a { left: -8%; } .chip--b { right: -10%; }
}
@media (max-width: 520px) { .chip--b { right: -4%; top: 56%; } .chip--a { left: -4%; top: 4%; } .chip--c { left: -2%; } }

/* ---------- COSA FA */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 34px 30px 32px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 0 var(--linea), 0 30px 60px -40px rgba(12, 36, 49, .35); display: grid; gap: 14px; align-content: start; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.step:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--linea), 0 40px 70px -40px rgba(12, 36, 49, .5); }
.step__n { position: absolute; right: 18px; top: -6px; font-family: var(--f-display); font-weight: 800; font-size: 7rem; line-height: 1; color: var(--ghiaccio); z-index: 0; letter-spacing: -.05em; }
.step > :not(.step__n) { position: relative; z-index: 1; }
.step__ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, var(--petrolio), var(--notte)); }
.step__ico svg { width: 34px; height: 34px; fill: none; stroke: var(--acqua); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.6rem; font-weight: 800; }
.step p { font-size: 1.05rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.chain { margin-top: clamp(56px, 7vw, 90px); padding: clamp(28px, 4vw, 44px); border-radius: calc(var(--r) + 6px); background: linear-gradient(135deg, var(--notte), var(--abisso)); color: #cfe5ec; position: relative; overflow: hidden; }
.chain::before { content: ""; position: absolute; inset: 0; background: url("../imglanding/superficie.webp") center / cover; opacity: .14; mix-blend-mode: screen; }
.chain > * { position: relative; }
.chain__t { font-family: var(--f-display); font-weight: 700; color: var(--acqua); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; margin-bottom: 22px; }
.chain__track { position: relative; }
.chain__pipe { position: absolute; left: 0; top: 0; width: 100%; height: 80px; overflow: visible; }
.chain__bg, .chain__fg { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chain__bg { stroke: rgba(111, 216, 230, .18); stroke-width: 10; }
.chain__fg { stroke: var(--acqua); stroke-width: 4; }
.chain__drop { fill: #fff; filter: drop-shadow(0 0 8px var(--acqua)); }
.chain__nodes { list-style: none; margin: 0; padding: 104px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.chain__nodes li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid rgba(111, 216, 230, .35); transition: border-color .4s; }
.chain__nodes li.is-on { border-color: var(--acqua); }
.chain__nodes b { font-family: var(--f-display); color: #fff; font-size: 1.12rem; line-height: 1.25; }
.chain__nodes span { font-size: .98rem; color: #a9c8d2; }
@media (max-width: 860px) { .chain__pipe { display: none; } .chain__nodes { grid-template-columns: 1fr 1fr; padding-top: 0; } }
@media (max-width: 520px) { .chain__nodes { grid-template-columns: 1fr; } }

/* ---------- PRINCIPI */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border-radius: var(--r); overflow: hidden; background: var(--linea); }
.rule { background: var(--carta); padding: 34px 30px; display: grid; gap: 12px; align-content: start; position: relative; transition: background .4s; }
.rule::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--azzurro), var(--acqua)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.rule:hover { background: #fff; }
.rule:hover::before { transform: scaleX(1); }
.rule svg { width: 40px; height: 40px; fill: none; stroke: var(--petrolio); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rule h3 { font-size: 1.22rem; font-weight: 700; }
.rule p { font-size: 1.02rem; }
@media (max-width: 960px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .rules { grid-template-columns: 1fr; } }

/* ---------- AREE (explorer) */
#aree { padding-top: clamp(130px, 14vw, 190px); }
.explorer { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.explorer__tabs { display: grid; gap: 4px; position: sticky; top: calc(var(--nav-h) + 20px); }
.explorer__tabs button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 14px; border: 0; background: transparent; color: #bcd7e0; font-family: var(--f-display); font-weight: 600; font-size: .98rem; cursor: pointer; transition: background .3s, color .3s, transform .4s var(--ease-out); }
.explorer__tabs button b { font-weight: 800; color: rgba(111, 216, 230, .55); font-size: .85rem; min-width: 22px; font-variant-numeric: tabular-nums; transition: color .3s; }
.explorer__tabs button:hover { background: rgba(111, 216, 230, .07); color: #fff; transform: translateX(4px); }
.explorer__tabs button[aria-selected="true"] { background: var(--acqua); color: var(--abisso); }
.explorer__tabs button[aria-selected="true"] b { color: var(--abisso); }
.explorer__panels { position: relative; min-height: 520px; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); padding: clamp(24px, 3vw, 38px); border-radius: calc(var(--r) + 6px); background: rgba(255,255,255,.04); border: 1px solid rgba(111, 216, 230, .14); }
.panel.is-entering { animation: panelIn .65s var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.panel__text { display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel__kick { font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acqua); }
.panel h3 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; }
.panel__plain { color: #e4f2f6; font-size: 1.12rem; line-height: 1.55; }
.panel ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.panel li { position: relative; padding-left: 22px; font-size: 1rem; color: #b6d2db; }
.panel li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--acqua); box-shadow: 0 0 0 4px rgba(111, 216, 230, .14); }
.panel li strong, .panel strong { color: #fff; }
.panel .mm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.panel .mm li { padding: 8px 10px; border-radius: 10px; background: rgba(111, 216, 230, .08); font-size: .9rem; color: #dcedf2; display: flex; gap: 8px; align-items: center; }
.panel .mm li::before { display: none; }
.panel .mm b { font-family: var(--f-display); color: var(--abisso); background: var(--acqua); border-radius: 6px; padding: 2px 6px; font-size: .78rem; }
.panel__media { margin: 0; min-width: 0; border-radius: 16px; overflow: hidden; align-self: start; }
.panel__media.photo { aspect-ratio: 4 / 5; }
.panel__media.photo img { width: 100%; height: 100%; object-fit: cover; }
.panel__media.shot { background: #fff; cursor: zoom-in; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); transition: transform .5s var(--ease-out); }
.panel__media.shot:hover { transform: scale(1.015); }
.panel__media.shot img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: top left; }
.panel__media figcaption { padding: 12px 14px; font-size: .88rem; color: var(--tenue); background: #fff; border-top: 1px solid var(--linea); }
.facts { display: grid; gap: 12px; align-content: start; overflow: visible; }
.fact { padding: 22px; border-radius: 16px; background: linear-gradient(140deg, rgba(111, 216, 230, .14), rgba(111, 216, 230, .03)); border: 1px solid rgba(111, 216, 230, .2); display: grid; gap: 6px; }
.fact b { font-family: var(--f-display); color: #fff; font-size: 1.25rem; }
.fact span { color: #b6d2db; font-size: 1rem; }
.fact--hero b { font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--acqua); letter-spacing: -.04em; }
@media (max-width: 1080px) { .panel { grid-template-columns: 1fr; } .panel__media.photo { aspect-ratio: 16 / 9; } }
@media (max-width: 860px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__tabs { position: relative; top: 0; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; margin-inline: -4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .explorer__tabs::-webkit-scrollbar { display: none; }
  .explorer__tabs button { flex: none; width: auto; white-space: nowrap; scroll-snap-align: start; border: 1px solid rgba(111, 216, 230, .2); }
  .explorer__tabs button:hover { transform: none; }
  .explorer__panels { min-height: 0; }
}

/* ---------- GALLERIA */
.gallery { padding-bottom: clamp(60px, 8vw, 100px); }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(24px, calc((100vw - var(--wrap)) / 2)) 30px; scroll-padding-inline: max(24px, calc((100vw - var(--wrap)) / 2)); cursor: grab; scrollbar-width: thin; scrollbar-color: var(--azzurro) transparent; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .shotcard { pointer-events: none; }
.shotcard { flex: none; width: min(78vw, 520px); scroll-snap-align: start; border: 0; padding: 0; background: #fff; border-radius: 18px; overflow: hidden; text-align: left; cursor: zoom-in; box-shadow: 0 1px 0 var(--linea), 0 30px 50px -34px rgba(12, 36, 49, .45); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.shotcard:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 1px 0 var(--linea), 0 40px 60px -30px rgba(12, 36, 49, .55); }
.shotcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.shotcard--tall { width: min(60vw, 320px); }
.shotcard--tall img { aspect-ratio: 3 / 4.7; }
.shotcard span { display: block; padding: 14px 18px; font-family: var(--f-display); font-weight: 700; color: var(--inchiostro); font-size: 1rem; border-top: 1px solid var(--linea); }

/* ---------- PER CHI */
#perchi { padding-top: clamp(40px, 6vw, 80px); }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.whocard { border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--linea), 0 30px 60px -44px rgba(12, 36, 49, .45); display: flex; flex-direction: column; }
.whocard__img { aspect-ratio: 16 / 11; overflow: hidden; }
.whocard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.whocard:hover .whocard__img img { transform: scale(1.06); }
.whocard__body { padding: 26px 26px 30px; display: grid; gap: 12px; flex: 1; align-content: start; }
.whocard h3 { font-size: 1.4rem; font-weight: 800; }
.whocard__gain { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--linea); color: var(--petrolio); font-weight: 700; }
@media (max-width: 960px) { .who { grid-template-columns: 1fr; } .whocard { flex-direction: row; } .whocard__img { aspect-ratio: auto; width: 40%; flex: none; } }
@media (max-width: 620px) { .whocard { flex-direction: column; } .whocard__img { width: 100%; aspect-ratio: 16 / 10; } }

/* ---------- PORTALE */
.portal { overflow: hidden; }
.portal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.portal__text { display: grid; gap: 22px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; color: #e2f1f5; font-size: 1.06rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--acqua); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: calc(.15em + 5px); width: 5px; height: 10px; border: solid var(--abisso); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.portal__shots { position: relative; aspect-ratio: 1 / 1.05; }
.ps { position: absolute; width: 74%; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); background: #fff; }
.ps--1 { top: 0; right: 0; transform: rotate(3deg); }
.ps--2 { bottom: 0; left: 0; transform: rotate(-3deg); }
@media (max-width: 860px) { .portal__grid { grid-template-columns: 1fr; } .portal__shots { max-width: 520px; width: 100%; justify-self: center; } }

/* ---------- NORME */
.norms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.norm { background: #fff; border-radius: 16px; box-shadow: 0 1px 0 var(--linea); transition: box-shadow .4s; }
.norm[open] { box-shadow: 0 1px 0 var(--linea), 0 24px 50px -36px rgba(12, 36, 49, .5); }
.norm summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; }
.norm summary::-webkit-details-marker { display: none; }
.norm summary b { font-family: var(--f-display); font-weight: 800; color: var(--petrolio); font-size: 1.05rem; min-width: 7.2em; }
.norm summary span { flex: 1; font-weight: 600; color: var(--inchiostro); }
.norm summary::after { content: ""; width: 12px; height: 12px; border: solid var(--petrolio); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease-out); flex: none; }
.norm[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.norm p { padding: 0 22px; font-size: 1rem; }
.norm p em { font-style: normal; color: var(--tenue); font-weight: 600; }
.norm .norm__where { margin: 12px 0 0; padding: 14px 22px 20px; border-top: 1px dashed var(--linea); color: var(--petrolio); font-weight: 600; }
@media (max-width: 760px) { .norms { grid-template-columns: 1fr; } .norm summary { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; } .norm summary b { min-width: 0; } .norm summary span { grid-column: 1; } .norm summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; } }

/* ---------- CITAZIONE */
.quote { position: relative; overflow: hidden; padding-block: clamp(100px, 14vw, 180px); background: var(--abisso); }
.quote__bg { position: absolute; inset: -15% 0; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 23, 34, .92), rgba(6, 23, 34, .55)); }
.quote .wrap { position: relative; z-index: 1; }
.quote blockquote { margin: 0; max-width: 24ch; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.18; color: #fff; letter-spacing: -.02em; text-wrap: balance; }

/* ---------- FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq .sec__head { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq .lead a { color: var(--petrolio); font-weight: 700; }
.qa { display: grid; gap: 0; border-top: 1px solid var(--linea); }
.q { border-bottom: 1px solid var(--linea); }
.q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--inchiostro); transition: color .3s; }
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--petrolio); }
.q summary i { width: 34px; height: 34px; border-radius: 50%; background: var(--ghiaccio); position: relative; flex: none; transition: background .3s, transform .5s var(--ease-out); }
.q summary i::before, .q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--petrolio); border-radius: 2px; transition: transform .4s var(--ease-out); }
.q summary i::after { transform: rotate(90deg); }
.q[open] summary i { background: var(--petrolio); transform: rotate(180deg); }
.q[open] summary i::before, .q[open] summary i::after { background: #fff; }
.q[open] summary i::after { transform: rotate(0); }
.q__a { padding: 0 4px 26px; max-width: 64ch; }
.q__a a { color: var(--petrolio); font-weight: 700; }
.q[open] .q__a { animation: qIn .5s var(--ease-out); }
@keyframes qIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq .sec__head { position: static; } }

/* ---------- BROCHURE */
.brochure { overflow: hidden; }
.brochure__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.brochure__text { display: grid; gap: 22px; justify-items: start; }
.brochure__meta { color: var(--tenue); font-weight: 600; font-size: .98rem; }
.brochure__fan { position: relative; aspect-ratio: 1 / 1.05; perspective: 1400px; }
.bp { position: absolute; top: 6%; left: 22%; width: 52%; border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(12, 36, 49, .55); transform-origin: 50% 100%; transition: transform .9s var(--ease-out); background: #fff; }
.bp--1 { z-index: 4; }
.bp--2 { z-index: 3; transform: rotate(-4deg); }
.bp--3 { z-index: 2; transform: rotate(-8deg); }
.bp--4 { z-index: 1; transform: rotate(-12deg); }
.brochure__fan.is-open .bp--1 { transform: translateX(14%) rotate(6deg); }
.brochure__fan.is-open .bp--2 { transform: translateX(-2%) rotate(-3deg); }
.brochure__fan.is-open .bp--3 { transform: translateX(-18%) rotate(-12deg); }
.brochure__fan.is-open .bp--4 { transform: translateX(-34%) rotate(-21deg); }
@media (max-width: 860px) { .brochure__grid { grid-template-columns: 1fr; } .brochure__fan { max-width: 460px; width: 100%; justify-self: center; } }

/* ---------- CONTATTI e modulo */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact__side { display: grid; gap: 22px; }
.cards { margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cards div { padding: 16px 18px; border-radius: 14px; background: var(--ghiaccio); min-width: 0; }
.cards dt { font-family: var(--f-display); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tenue); }
.cards dd { margin: 4px 0 0; font-weight: 700; color: var(--inchiostro); overflow-wrap: anywhere; font-size: 1rem; }
.cards a { text-decoration: none; }
.cards a:hover { color: var(--petrolio); text-decoration: underline; }
.how { padding: 22px 24px; border-radius: 16px; border: 1.5px dashed var(--linea); display: grid; gap: 10px; }
.how__t { font-size: 1.05rem; }
.how__list { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.how__note { font-size: .95rem; color: var(--tenue); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }

.formcard { position: relative; padding: clamp(24px, 3.5vw, 40px); border-radius: calc(var(--r) + 6px); background: #fff; box-shadow: 0 1px 0 var(--linea), 0 40px 80px -50px rgba(12, 36, 49, .55); }
.formcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: calc(var(--r) + 6px) calc(var(--r) + 6px) 0 0; background: linear-gradient(90deg, var(--petrolio), var(--acqua)); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-family: var(--f-display); font-weight: 700; font-size: .92rem; color: var(--inchiostro); padding: 0; }
.req { color: var(--petrolio); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--linea); background: var(--carta); color: var(--inchiostro); font: inherit; font-size: 1rem; transition: border-color .25s, box-shadow .25s, background .25s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--petrolio); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 133, .15); }
.field input::placeholder, .field textarea::placeholder { color: #8ea6b0; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--petrolio); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.field__err { display: none; color: var(--errore); font-size: .9rem; font-weight: 600; }
.field.is-error .field__err { display: block; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--errore); }
.field__count { justify-self: end; font-size: .82rem; color: var(--tenue); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--linea); font-weight: 600; font-size: .95rem; transition: all .25s; user-select: none; }
.pick span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--azzurro); transition: all .25s; flex: none; }
.pick input:checked + span { background: var(--petrolio); border-color: var(--petrolio); color: #fff; }
.pick input:checked + span::before { background: var(--acqua); border-color: var(--acqua); box-shadow: inset 0 0 0 3px var(--petrolio); }
.pick input:focus-visible + span { outline: 3px solid var(--acqua); outline-offset: 2px; }
.pick.is-pop span { animation: popIn .5s var(--ease-out); }
@keyframes popIn { 50% { transform: scale(1.08); } }
.field--check .check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--f-body); font-weight: 500; font-size: 1rem; color: var(--testo); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--azzurro); flex: none; display: grid; place-items: center; margin-top: 1px; transition: all .25s; }
.check__box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease-out); }
.check input:checked + .check__box { background: var(--petrolio); border-color: var(--petrolio); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 3px solid var(--acqua); outline-offset: 2px; }
.form__submit { display: grid; gap: 10px; margin-top: 4px; }
.form__hint { font-size: .9rem; color: var(--tenue); text-align: center; }

.done { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 10px 0; outline: none; }
.done__icon svg { width: 84px; height: 84px; fill: none; stroke: var(--petrolio); stroke-width: 2.4; stroke-linejoin: round; }
.done__env { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-out) forwards; }
.done__flap { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .8s .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__t { font-size: 1.6rem; font-weight: 800; }
.done__p { max-width: 46ch; }
.done__p--sm { font-size: .95rem; color: var(--tenue); }
.done__p--ko { display: none; color: var(--inchiostro); background: var(--ghiaccio); padding: 12px 16px; border-radius: 12px; }
.done.is-nomail .done__p--ok { display: none; }
.done.is-nomail .done__p--ko { display: block; }
.done__preview { width: 100%; text-align: left; border-radius: 12px; background: var(--carta); border: 1px solid var(--linea); }
.done__preview summary { padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--petrolio); }
.done__mail { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; color: var(--inchiostro); max-height: 260px; overflow: auto; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.done__back { font-size: .95rem; }

/* ---------- FOOTER */
.foot { position: relative; background: linear-gradient(180deg, var(--notte), var(--abisso)); color: #b8d3dc; padding-top: clamp(60px, 8vw, 110px); }
.foot__inner { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 50px; }
.foot__brand { display: grid; gap: 18px; align-content: start; }
.foot__brand img { width: 190px; }
.foot__h { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--acqua); margin-bottom: 16px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: #e1f0f4; }
.foot a:hover { color: var(--acqua); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(111, 216, 230, .14); font-size: .92rem; }
.foot__dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 12px; vertical-align: middle; opacity: .5; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- dialoghi */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(6, 23, 34, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { width: min(720px, calc(100% - 32px)); max-height: min(86vh, 900px); border-radius: 22px; background: #fff; color: var(--testo); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.modal[open] { animation: modalIn .5s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__box { position: relative; padding: clamp(26px, 4vw, 44px); display: grid; gap: 12px; }
.modal__t { font-size: 1.5rem; font-weight: 800; padding-right: 50px; }
.modal__sub { color: var(--tenue); font-weight: 600; }
.modal__body { display: grid; gap: 10px; margin-top: 8px; font-size: 1rem; }
.modal__body h3 { font-size: 1.02rem; margin-top: 10px; }
.modal__body a { color: var(--petrolio); font-weight: 700; }
.modal__x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ghiaccio); cursor: pointer; z-index: 2; }
.modal__x span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--inchiostro); border-radius: 2px; }
.modal__x span:first-child { transform: rotate(45deg); } .modal__x span:last-child { transform: rotate(-45deg); }
.modal__x--light { background: rgba(255,255,255,.12); }
.modal__x--light span { background: #fff; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; display: none; place-items: center; }
.lightbox[open] { display: grid; animation: modalIn .4s var(--ease-out); }
.lightbox__fig { margin: 0; max-width: min(1300px, 92vw); display: grid; gap: 12px; justify-items: center; }
.lightbox__img { max-height: 80vh; width: auto; border-radius: 12px; background: #fff; box-shadow: 0 40px 100px -20px rgba(0,0,0,.7); }
.lightbox__cap { color: #e1f0f4; text-align: center; max-width: 70ch; }
.lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); cursor: pointer; }
.lightbox__nav svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: max(14px, env(safe-area-inset-left, 0px)); } .lightbox__nav--next { right: max(14px, env(safe-area-inset-right, 0px)); }

/* ---------- glossario */
.term { background: none; border: 0; padding: 0; font: inherit; color: inherit; font-weight: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--azzurro); text-decoration-thickness: 2px; text-underline-offset: 4px; }
[data-tone="dark"] .term { text-decoration-color: var(--acqua); }
.pop { position: fixed; z-index: 150; max-width: 320px; padding: 16px 18px; border-radius: 14px; background: var(--abisso); color: #d7ebf1; box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); border: 1px solid rgba(111, 216, 230, .25); font-size: .95rem; line-height: 1.5; animation: popUp .3s var(--ease-out); }
@keyframes popUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pop__t { font-family: var(--f-display); font-weight: 800; color: var(--acqua); margin-bottom: 4px; }

/* ---------- comparse allo scorrimento (la pagina è leggibile anche senza JS) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="stagger"] { opacity: 1; transform: none; }
.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
.split-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.is-in .split-w > span, .split-done .split-w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-reveal="stagger"] > * { opacity: 1; transform: none; }
  .split-w > span { transform: none; }
}
