/* ==========================================================================
   Lanterna Service — Il pulito, sotto una nuova luce
   Mobile first: tutto nasce a 375px e si allarga da 960px in su.
   ========================================================================== */


/* ---------- Tono: notte e giorno, interpolati dallo scroll (main.js) ---------- */
:root {
  /* acqua e luce: notte blu profonda, giorno bianco ottico, un solo accento azzurro acqua */
  --night-bg: 6 19 34;
  --night-fg: 236 244 248;
  --night-acc: 120 214 242;
  --day-bg: 246 249 251;
  --day-fg: 9 25 41;
  --day-acc: 0 116 172;
  --ice: 232 240 245;          /* superfici chiare: card, vetrine */
  --deep: 8 27 46;             /* superfici scure sul giorno */
  --radius: 18px;

  --bg: var(--night-bg);
  --fg: var(--night-fg);
  --acc: var(--night-acc);
  --dawn: 34vh;              /* lunghezza dei passaggi notte/giorno */

  --display: 'Syne', 'Avenir Next', 'Helvetica Neue', system-ui, sans-serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 960px) { :root { --gutter: clamp(40px, 4.4vw, 72px); --nav-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--fg));
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* un solo disegno per DM Sans a ogni dimensione: meno versioni del carattere da preparare sul telefono */
  font-optical-sizing: none;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
em { font-style: italic; }
/* Syne non ha corsivo: nei titoli la parola in evidenza è più leggera e colorata */
.sec-title em, .hero__title em, .manifesto__text em, .svc__t em, .marquee em, .menu__t em, .footer__claim em, .invite__t em, .svc__more-t em, .sl-q em, .window__title em {
  font-style: normal; font-weight: 500; color: rgb(var(--acc));
}
::selection { background: rgb(var(--acc)); color: rgb(var(--bg)); }
:focus-visible { outline: 2px solid rgb(var(--acc)); outline-offset: 4px; border-radius: 2px; }

.sr-only, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; background: rgb(var(--fg)); color: rgb(var(--bg)); padding: 10px 16px; border-radius: 99px; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }

/* ---------- Notte e giorno: colori fissi per sezione, passaggi dipinti ----------
   Nessuna variabile animata: lo scroll non costringe il browser a ricalcolare la pagina. */
[data-tone="night"] { --bg: var(--night-bg); --fg: var(--night-fg); --acc: var(--night-acc); color: rgb(var(--fg)); }
[data-tone="day"] { --bg: var(--day-bg); --fg: var(--day-fg); --acc: var(--day-acc); color: rgb(var(--fg)); background: rgb(var(--day-bg)); }
/* alba: da notte a giorno, e tramonto: da giorno a notte, all'inizio della sezione */
[data-tone="night"] + [data-tone="day"] { background: linear-gradient(to bottom, rgb(var(--night-bg)) 0, #0a2440 calc(var(--dawn) * .18), #12406a calc(var(--dawn) * .36), #2a6c9e calc(var(--dawn) * .52), #6fa9cf calc(var(--dawn) * .67), #b7d8eb calc(var(--dawn) * .8), #e3f0f7 calc(var(--dawn) * .91), rgb(var(--day-bg)) var(--dawn)); padding-top: calc(var(--dawn) + 40px) !important; }
[data-tone="day"] + [data-tone="night"], .footer { background: linear-gradient(to bottom, rgb(var(--day-bg)) 0, #e3f0f7 calc(var(--dawn) * .1), #b7d8eb calc(var(--dawn) * .24), #6fa9cf calc(var(--dawn) * .38), #2a6c9e calc(var(--dawn) * .53), #12406a calc(var(--dawn) * .7), #0a2440 calc(var(--dawn) * .85), rgb(var(--night-bg)) var(--dawn)); padding-top: calc(var(--dawn) + 40px) !important; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgb(var(--fg) / .62);
  margin-bottom: 22px;
}
.eyebrow__line { width: 28px; height: 1px; background: rgb(var(--acc)); flex: none; }
.sec-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 9.6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.sec-title em { color: rgb(var(--acc)); }
.sec-lead { margin-top: 22px; max-width: 34ch; font-size: 17px; line-height: 1.55; color: rgb(var(--fg) / .72); text-wrap: pretty; }
@media (min-width: 960px) { .sec-lead { font-size: 19px; } }

/* parole mascherate per le entrate dei titoli */
.wd { display: inline-block; overflow: clip; vertical-align: top; padding: .14em .04em .12em; margin: -.14em -.04em -.12em; }
.wd > span { display: inline-block; transform: translate3d(0, 140%, 0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.is-in .wd > span, .wd.is-in > span { transform: none; }
html:not(.js) .wd > span { transform: none; }

[data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ---------- Bottoni e link ---------- */
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s;
  will-change: transform;
}
.btn::after { /* riflesso: la luce passa sulla superficie lucidata */
  content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(214 238 255 / .55) 48%, transparent 66%);
  transform: translateX(-120%);
}
.btn.is-glint::after, .btn:hover::after { transition: transform 1.1s var(--ease); transform: translateX(120%); }
.btn > span, .btn > i { position: relative; pointer-events: none; }
.btn__arrow { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--light { background: rgb(var(--night-fg)); color: rgb(var(--night-bg)); }
.btn--dark { background: rgb(var(--day-fg)); color: rgb(var(--day-bg)); }
.btn--dark::after { background: linear-gradient(105deg, transparent 30%, rgb(214 238 255 / .22) 48%, transparent 66%); }
.btn--ghost { border: 1px solid rgb(var(--fg) / .3); color: rgb(var(--fg)); --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--ghost:hover { border-color: rgb(var(--fg) / .8); }
.btn--wide { width: 100%; }

.link { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.link > span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .6s var(--ease); }
.link:hover > span { animation: underline .9s var(--ease); }
@keyframes underline { 0% { background-size: 100% 1px; background-position: 100% 100%; } 45% { background-size: 0 1px; background-position: 100% 100%; } 46% { background-position: 0 100%; } 100% { background-size: 100% 1px; background-position: 0 100%; } }
.link--btn { font-size: 15px; color: rgb(var(--fg) / .8); }

/* ---------- Grana, lampo, cursore ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } }

.flash {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 75%) var(--fy, 40%), rgb(214 238 255 / .85), rgb(214 238 255 / .22) 22%, rgb(214 238 255 / .05) 48%, transparent 65%);
}

.touchfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 140; pointer-events: none; }

/* ---------- Accensione ---------- */
.loader {
  position: fixed; inset: 0; z-index: 120; background: #04101D; color: rgb(var(--night-fg));
  display: grid; place-items: center;
  clip-path: circle(150% at var(--lx, 50%) var(--ly, 50%));
}
.loader__inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.loader__logo { width: 72px; height: auto; opacity: 0; transform: scale(.86); filter: drop-shadow(0 0 0 rgb(120 214 242 / 0)); animation: logoOn 1.6s var(--ease) .15s forwards; }
@keyframes logoOn { 55% { opacity: 1; transform: scale(1.04); filter: drop-shadow(0 0 22px rgb(120 214 242 / .75)); } to { opacity: 1; transform: none; filter: drop-shadow(0 0 10px rgb(120 214 242 / .35)); } }
.loader__meta { display: flex; gap: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--night-fg) / .55); }
.loader__count { color: rgb(var(--night-fg)); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.loader.is-out { clip-path: circle(0% at var(--lx, 50%) var(--ly, 50%)); transition: clip-path 1.3s var(--ease-io); }
.loader.is-gone { display: none; }
.is-returning .loader, html:not(.js) .loader { display: none; }

/* ---------- Navigazione ---------- */
.nav {
  --bg: var(--night-bg); --fg: var(--night-fg); --acc: var(--night-acc);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: rgb(var(--fg));
  transition: transform .7s var(--ease), background-color .4s, box-shadow .4s;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgb(var(--bg) / .78);
  box-shadow: 0 1px 0 rgb(var(--fg) / .08);
  transition: opacity .5s;
}
.nav.is-solid::before { opacity: 1; }
.nav.is-day { --bg: var(--day-bg); --fg: var(--day-fg); --acc: var(--day-acc); }
.nav { transition-property: transform, background-color, box-shadow, color; }
.nav.is-hidden { transform: translate3d(0, -100%, 0); }
.menu-open .nav { transform: none; color: rgb(var(--night-fg)); }
.menu-open .nav::before { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__word { display: grid; line-height: 1; }
.brand__logo { width: auto; height: 40px; flex: none; filter: drop-shadow(0 2px 8px rgb(0 40 80 / .35)); }
.brand__name { font-family: var(--sans); font-size: 15px; letter-spacing: .02em; font-weight: 700; text-transform: uppercase; }
.brand__sub { font-family: var(--sans); font-size: 11px; letter-spacing: .01em; margin-top: 3px; opacity: .78; white-space: nowrap; }

.nav__links, .nav__cta { display: none; }
.burger { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.burger__lines { position: relative; width: 22px; height: 10px; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 1.2px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger__lines i:first-child { top: 0; }
.burger__lines i:last-child { top: 9px; }
.menu-open .burger__lines i:first-child { top: 4.5px; transform: rotate(35deg); }
.menu-open .burger__lines i:last-child { top: 4.5px; transform: rotate(-35deg); }

@media (min-width: 960px) {
  .nav__links { display: flex; gap: 34px; margin-left: auto; }
  .nav__links a { position: relative; font-size: 14px; letter-spacing: .01em; opacity: .78; transition: opacity .3s; padding: 10px 0; }
  .nav__links a::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgb(var(--acc)); transform: scale(0); transition: transform .5s var(--ease); }
  .nav__links a:hover, .nav__links a.is-active { opacity: 1; }
  .nav__links a.is-active::after { transform: scale(1); }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
}

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 99; background: #05111F; color: rgb(var(--night-fg));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 12px) var(--gutter) calc(24px + var(--safe-b));
  clip-path: circle(0 at calc(100% - 44px) 32px);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 32px); visibility: visible; transition: clip-path 1s var(--ease-io), visibility 0s; }
.menu__beam {
  position: absolute; right: -40vw; top: -40vw; width: 180vw; height: 180vw; pointer-events: none; opacity: .5;
  background: conic-gradient(from 200deg, transparent 0deg, rgb(var(--night-acc) / .0) 10deg, rgb(var(--night-acc) / .16) 24deg, transparent 25deg);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.menu__top { color: rgb(var(--night-fg) / .5); position: relative; }
.menu__links { position: relative; display: grid; gap: 2px; margin-top: auto; margin-bottom: 36px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 4px 0; overflow: hidden; }
.menu__n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: rgb(var(--night-acc)); transform: translateY(12px); opacity: 0; transition: transform .8s var(--ease), opacity .8s; }
.menu__t { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 11vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; transform: translateY(105%); transition: transform 1s var(--ease); display: inline-block; }
.menu__t em { color: rgb(var(--night-acc)); }
.menu-open .menu__t, .menu-open .menu__n { transform: none; opacity: 1; }
.menu-open .menu__links a:nth-child(1) * { transition-delay: .18s; }
.menu-open .menu__links a:nth-child(2) * { transition-delay: .23s; }
.menu-open .menu__links a:nth-child(3) * { transition-delay: .28s; }
.menu-open .menu__links a:nth-child(4) * { transition-delay: .33s; }
.menu-open .menu__links a:nth-child(5) * { transition-delay: .38s; }
.menu-open .menu__links a:nth-child(6) * { transition-delay: .43s; }
.menu__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; opacity: 0; transform: translateY(16px); transition: opacity .8s .45s, transform .8s .45s var(--ease); }
.menu-open .menu__foot { opacity: 1; transform: none; }
.menu__ig { color: rgb(var(--night-fg) / .7); padding: 12px 0; }
@media (min-width: 960px) { .menu { display: none; } }

/* ---------- Dock mobile ---------- */
.dock {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  display: flex; gap: 8px;
  transform: translate3d(0, calc(100% + 30px + var(--safe-b)), 0);
  transition: transform .8s var(--ease);
}
.dock.is-on { transform: none; }
.dock__main, .dock__ig {
  height: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgb(10 15 22 / .96); color: rgb(var(--night-fg));
  box-shadow: 0 0 0 1px rgb(var(--night-fg) / .1) inset, 0 18px 40px -12px rgb(0 0 0 / .45);
}
.dock__main { flex: 1; gap: 12px; font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.dock__ig { width: 56px; flex: none; }
.dock__ig svg { width: 22px; height: 22px; }
.dock__dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--night-acc)); box-shadow: 0 0 10px 2px rgb(var(--night-acc) / .7); animation: blink 20s infinite; }
@keyframes blink { 0%, 4%, 9%, 100% { opacity: .35; } 2%, 7% { opacity: 1; } }
.dock__main:active, .dock__ig:active { transform: scale(.97); }
@media (min-width: 960px) { .dock { display: none; } }

/* ==========================================================================
   00 · HERO
   ========================================================================== */
.hero {
  --horizon: 42%;            /* distanza dell'orizzonte dal fondo */
  position: relative; height: 100svh; min-height: 580px; overflow: hidden;
  background: #051325; color: rgb(var(--night-fg));
  isolation: isolate;
}
.hero__photo { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--px, 12%) var(--py, 50%); }
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__photo::after { /* velatura dietro il testo: la foto resta viva, le parole leggibili */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(var(--night-bg) / .6), transparent 45%);
}
@media (min-width: 960px) { .hero__photo::after { background: linear-gradient(90deg, rgb(var(--night-bg) / .62), rgb(var(--night-bg) / .25) 42%, transparent 62%), linear-gradient(to top, rgb(var(--night-bg) / .45), transparent 35%); } } /* solo la luce del faro, sopra la foto */
.hero::after { /* il mare sfuma nella pagina, senza bordo */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(var(--night-bg) / 0), rgb(var(--night-bg) / .7) 60%, rgb(var(--night-bg)));
}
.has-gl .hero__lamp-btn { position: absolute; z-index: 3; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; left: var(--lamp-x, -100px); top: var(--lamp-y, -100px); transform: translate(-50%, -50%); }
.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) calc(64px + var(--safe-b));
}
.hero__eyebrow { color: rgb(var(--night-fg) / .7); margin-bottom: 18px; }
.hero__eyebrow .eyebrow__line { background: rgb(var(--night-acc)); }
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 11.6vw, 8.4rem); line-height: .96; letter-spacing: -.045em;
}
.hero__title .line { display: block; overflow: clip; padding: .12em .06em .1em; margin: -.12em -.06em -.1em; }
.hero__title .line__in {
  display: inline-block; transform: translate3d(0, 140%, 0);
  /* il testo si scalda quando lo attraversa il fascio */
  color: rgb(calc(236 + 19 * var(--lit, 0)) calc(244 + 11 * var(--lit, 0)) calc(248 + 7 * var(--lit, 0)));
  text-shadow: 0 0 calc(var(--lit, 0) * 28px) rgb(214 238 255 / calc(var(--lit, 0) * .55));
}
.hero__title em { color: rgb(var(--night-acc)); }
.hero__sub { margin-top: 20px; max-width: 30ch; font-size: 16px; line-height: 1.55; color: rgb(var(--night-fg) / .74); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.hero__actions .link { font-size: 15px; color: rgb(var(--night-fg) / .85); min-height: 44px; }
.hero__hud {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: calc(18px + var(--safe-b));
  display: flex; justify-content: space-between; align-items: center; color: rgb(var(--night-fg) / .45); font-size: 10px;
}
.hero__hud > span:first-child { display: none; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { position: relative; width: 1px; height: 22px; background: rgb(var(--night-fg) / .2); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: rgb(var(--night-fg)); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* entrata della hero */
.hero [data-intro] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.is-ready .hero [data-intro] { opacity: 1; transform: none; }
.is-ready .hero__eyebrow { transition-delay: .1s; }
.is-ready .hero__sub { transition-delay: .55s; }
.is-ready .hero__actions { transition-delay: .7s; }
.is-ready .hero__hud { transition-delay: 1s; }
.is-ready .hero__title .line__in { transform: none; transition: transform 1.6s var(--ease); }
.is-ready .hero__title .line:nth-child(2) .line__in { transition-delay: .09s; }
.is-ready .hero__title .line:nth-child(3) .line__in { transition-delay: .18s; }
html:not(.js) .hero [data-intro], html:not(.js) .hero__title .line__in { opacity: 1; transform: none; }

@media (max-height: 760px) and (max-width: 959px) {
  .hero { --horizon: 46%; }
    .hero__eyebrow { margin-bottom: 12px; }
  .hero__sub { font-size: 15px; margin-top: 14px; }
  .hero__actions { margin-top: 20px; }
  .hero__content { padding-bottom: calc(56px + var(--safe-b)); }
}
@media (max-height: 640px) and (max-width: 959px) {
  .hero__sub { display: none; }
  .hero__title { font-size: clamp(2.3rem, 10.8vw, 3.6rem); }
}
@media (min-width: 640px) and (max-width: 959px) {
  }
@media (min-width: 960px) {
  .hero { --horizon: 27%; min-height: 680px; }
    .hero__content { padding-bottom: 104px; max-width: 1480px; margin: 0 auto; }
  .hero__title { font-size: clamp(4rem, 6.4vw, 8.2rem); }
  .hero__sub { font-size: 18px; max-width: 36ch; margin-top: 28px; }
  .hero__actions { margin-top: 36px; }
  .hero__hud { bottom: 28px; font-size: 10.5px; }
  .hero__hud > span:first-child { display: inline; }
  .hero__hud { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hero__hud > span:last-child { justify-self: end; }
}

/* ==========================================================================
   01 · MANIFESTO
   ========================================================================== */
.manifesto { position: relative; padding: 112px 0 120px; }
.manifesto__text {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 6.6vw, 4rem); line-height: 1.12; letter-spacing: -.03em;
  max-width: 22ch; text-wrap: pretty;
}
.manifesto__text .w { color: rgb(var(--fg) / calc(.14 + var(--c, 0) * .86)); transition: color .25s linear; }
.manifesto__text .w.is-clean { animation: sparkle 1.1s var(--ease); }
.manifesto__text em .w, .manifesto__text .w.em { font-style: normal; font-weight: 500; }
@keyframes sparkle { 0% { color: rgb(var(--fg) / .5); text-shadow: none; } 30% { color: rgb(214 238 255); text-shadow: 0 0 18px rgb(214 238 255 / .8); } 100% { text-shadow: none; } }
html:not(.js) .manifesto__text { color: rgb(var(--fg)); }
.manifesto__sign { margin-top: 36px; color: rgb(var(--fg) / .55); }
.pillars { display: grid; gap: 0; margin-top: 88px; }
.pillar { position: relative; padding: 26px 0 30px; border-top: 1px solid rgb(var(--fg) / .14); display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
.pillar__n { color: rgb(var(--acc)); padding-top: 9px; }
.pillar h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.pillar p { grid-column: 2; margin-top: 10px; color: rgb(var(--fg) / .66); max-width: 36ch; }
@media (min-width: 960px) {
  .manifesto { padding: 26vh 0 22vh; }
  .manifesto__sign { margin-top: 48px; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 18vh; }
  .pillar { grid-template-columns: 1fr; padding-top: 30px; }
  .pillar__n { padding: 0 0 26px; }
  .pillar p { grid-column: 1; }
  .pillar h3 { font-size: 32px; }
}

/* ==========================================================================
   02 · SERVIZI
   ========================================================================== */
.services { position: relative; padding: 120px 0 110px; }
.sec-head { margin-bottom: 56px; }
.svc { border-bottom: 1px solid rgb(var(--fg) / .14); }
.svc__item { position: relative; border-top: 1px solid rgb(var(--fg) / .14); }
.svc__item { overflow: hidden; }
.svc__item::before { /* il fascio che passa sulla riga a fuoco */
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgb(var(--acc) / .12), transparent);
  transform: translate3d(-110%, 0, 0);
}
.svc__item.is-focus::before { opacity: 1; animation: sweep 1.3s var(--ease) forwards; }
@keyframes sweep { to { transform: translate3d(190%, 0, 0); } }
.svc__row {
  width: 100%; display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; column-gap: 8px;
  padding: 22px 0; text-align: left; min-height: 72px;
}
.svc__n { color: rgb(var(--fg) / .5); align-self: start; padding-top: 12px; transition: color .5s; }
.svc__t {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 7.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em;
  color: rgb(var(--fg) / .4); transition: color .6s var(--ease), transform .8s var(--ease);
}
.svc__t em { color: inherit; }
.svc__item.is-focus .svc__t, .svc__item.is-open .svc__t { color: rgb(var(--fg)); }
.svc__item.is-focus .svc__n, .svc__item.is-open .svc__n { color: rgb(var(--acc)); }
.svc__plus { position: relative; width: 18px; height: 18px; justify-self: end; }
.svc__plus::before, .svc__plus::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.2px; background: currentColor; transition: transform .6s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.svc__item.is-open .svc__plus::after { transform: rotate(0); }
.svc__item.is-open .svc__plus::before { transform: rotate(180deg); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; padding-left: 42px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.svc__inner > p { max-width: 40ch; color: rgb(var(--fg) / .72); font-size: 16.5px; }
.svc__inner .tags { padding-bottom: 30px; }
.svc__tile { /* la foto dell'ambiente, che si rivela all'apertura */
  position: relative; order: -1; margin: 4px 0 2px; width: 100%; max-width: 420px; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden;
  background: rgb(var(--ice)); box-shadow: 0 30px 60px -36px rgb(5 30 50 / .45);
}
.svc__tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); opacity: 0; transition: transform 1.4s var(--ease), opacity .8s var(--ease); }
.svc__item.is-open .svc__tile img { transform: none; opacity: 1; }
.svc__tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px;
  background: linear-gradient(to top, rgb(6 19 34 / .6), transparent); color: rgb(236 244 248 / .9); font-size: 9.5px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border: 1px solid rgb(var(--fg) / .18); border-radius: 99px; font-size: 10px; color: rgb(var(--fg) / .72); }
.svc__more { display: grid; gap: 10px; margin-top: 44px; padding: 26px 0; }
.svc__more .mono { color: rgb(var(--acc)); }
.svc__more-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 5.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.03em; }
.svc__more-t em { color: rgb(var(--acc)); }
.svc__more-t i { font-style: normal; display: inline-block; transition: transform .6s var(--ease); }
.svc__more:hover .svc__more-t i { transform: translateX(8px); }

@media (min-width: 960px) {
  .services { padding: 22vh 0 18vh; }
  .sec-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 64px; margin-bottom: 96px; }
  .sec-head .eyebrow { grid-column: 1 / -1; }
  .sec-head .sec-lead { justify-self: end; margin: 0 0 8px; }
  .svc__row { grid-template-columns: 120px 1fr 40px; padding: 34px 0; }
  .svc__n { padding-top: 22px; }
  .svc__inner { padding-left: 128px; grid-template-columns: 360px minmax(0, 40ch) 1fr; column-gap: 48px; align-items: start; }
  .svc__tile { order: 0; margin: 0 0 36px; }
  .svc__inner > p { padding-top: 4px; font-size: 18px; }
  .svc__inner .tags { padding-top: 6px; }
  .svc__item:hover .svc__t { transform: translateX(18px); }
  .svc__more { grid-template-columns: 120px 1fr; margin-top: 64px; }

}

/* ==========================================================================
   03 · LAVORI · prima e dopo
   ========================================================================== */
.case { position: relative; height: 260svh; }
.case__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.case__grid { display: grid; gap: 26px; align-content: center; padding-top: calc(var(--nav-h) - 12px); }
.case__copy .eyebrow { margin-bottom: 14px; }
.case__title { font-size: clamp(2.1rem, 9vw, 5.2rem); }
.case__text { margin-top: 14px; max-width: 40ch; font-size: 15.5px; color: rgb(var(--fg) / .72); }
.case__facts { display: none; }
.ba {
  position: relative; aspect-ratio: 1440 / 1104; overflow: hidden; border-radius: var(--radius);
  background: #dfe6ea; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  transform: scale(var(--s, .94)); transform-origin: 50% 60%;
  box-shadow: 0 50px 90px -50px rgb(10 20 30 / .5);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__img--prima { filter: saturate(.85) brightness(.97); }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p, 0) * 1%) 0 0); will-change: clip-path; }
.ba__beam { position: absolute; top: -10%; bottom: -10%; left: calc(var(--p, 0) * 1%); width: 0; pointer-events: none; opacity: var(--bo, 0); }
.ba__beam::before { /* alone */
  content: ''; position: absolute; top: 0; bottom: 0; left: -90px; width: 180px;
  background: radial-gradient(50% 50% at 50% 50%, rgb(214 238 255 / .55), rgb(214 238 255 / .12) 55%, transparent 75%);
  mix-blend-mode: screen;
}
.ba__beam i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: linear-gradient(to bottom, transparent, #EAF6FF 20%, #fff 50%, #EAF6FF 80%, transparent); box-shadow: 0 0 18px 4px rgb(214 238 255 / .8); }
.ba__beam i::after { /* maniglia */
  content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .9); background: rgb(255 255 255 / .18);
}
.ba__tag { position: absolute; top: 14px; padding: 7px 11px; border-radius: 99px; background: rgb(8 13 20 / .55); color: #F6F9FB; font-size: 10px; transition: opacity .4s; }
.ba__tag--dopo { left: 14px; opacity: var(--td, 0); }
.ba__tag--prima { right: 14px; opacity: var(--tp, 1); }
.ba__range { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ba__range:focus-visible + * , .ba:focus-within { outline: 2px solid rgb(var(--acc)); outline-offset: 4px; }
.case__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: rgb(var(--fg) / .55); font-variant-numeric: tabular-nums; }
.case__cap [data-ba-pct] { color: rgb(var(--acc)); }
.case__pct { white-space: nowrap; }
.case__hint { text-align: right; }
.case__hint-long { display: none; }
@media (min-width: 960px) { .case__hint-long { display: inline; } }
@media (max-height: 700px) and (max-width: 959px) { .case__text { display: none; } }
@media (min-width: 960px) {
  .case { height: 300vh; }
  .case__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 6vw; padding-top: 0; }
  .case__text { font-size: 17px; margin-top: 26px; }
  .case__facts { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid rgb(var(--fg) / .14); }
  .case__facts div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgb(var(--fg) / .14); }
  .case__facts dt { color: rgb(var(--fg) / .5); }
  .ba__tag { top: 20px; font-size: 10.5px; }
  .ba__tag--dopo { left: 20px; } .ba__tag--prima { right: 20px; }
}

/* ==========================================================================
   05 · ZONE
   ========================================================================== */
.zones { position: relative; padding: 120px 0 110px; overflow: hidden; }
.zones__grid { display: grid; gap: 56px; }
.zones__note { margin-top: 26px; color: rgb(var(--fg) / .55); }
.radar { justify-self: center; width: 100%; max-width: 620px; }
.radar__disc { position: relative; aspect-ratio: 1; margin: 6% 5%; border-radius: 50%; }
.radar__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radar__svg .coast { fill: none; stroke: rgb(140 220 250); stroke-width: .38; stroke-linejoin: round; stroke-linecap: round; }
.radar__svg .coast-glow { fill: none; stroke: rgb(120 214 242 / .16); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.radar__svg .moles { fill: none; stroke: rgb(200 236 250 / .75); stroke-width: .32; stroke-linecap: round; }
.radar__svg .ring { fill: none; stroke: rgb(140 210 240 / .16); stroke-width: .3; stroke-dasharray: 1 1.2; }
.radar__svg .ring--o { stroke: rgb(140 210 240 / .4); stroke-dasharray: none; stroke-width: .45; }
.radar__svg .tick { stroke: rgb(140 210 240 / .3); stroke-width: .3; }
.radar__svg .tick--big { stroke: rgb(140 210 240 / .6); }
.radar__svg text { font-family: var(--mono); font-size: 3.6px; letter-spacing: .12em; fill: rgb(170 220 245 / .5); text-transform: uppercase; }
.radar__svg text.card { font-size: 4.4px; fill: rgb(200 236 250 / .8); }
.radar__svg text.sea-t { font-family: var(--display); font-weight: 500; font-size: 5.6px; letter-spacing: .3em; fill: rgb(140 210 240 / .28); }
.radar__svg .scale line { stroke: rgb(170 220 245 / .55); stroke-width: .35; }
.radar__beam { /* fascio con scia a fosfori: due lobi a 24°, come il faro */
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from -100deg, transparent 0deg, rgb(120 214 242 / .03) 30deg, rgb(120 214 242 / .2) 75.4deg, rgb(220 245 255 / .7) 76deg, transparent 76.6deg, rgb(120 214 242 / .05) 82deg, rgb(120 214 242 / .26) 99.4deg, rgb(230 248 255 / .85) 100deg, transparent 100.6deg);
  -webkit-mask: radial-gradient(circle closest-side, #000 0 87.6%, transparent 88%);
  mask: radial-gradient(circle closest-side, #000 0 87.6%, transparent 88%);
  transform: rotate(var(--a, 0deg)); will-change: transform;
}
.radar__labels { position: absolute; inset: 0; }
.zd { /* un quartiere: piccolo da vedere, grande da toccare */
  position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; display: grid; place-items: center;
}
.zd::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: rgb(200 240 255 / calc(.35 + var(--lit, 0) * .65));
  box-shadow: 0 0 calc(var(--lit, 0) * 12px) calc(var(--lit, 0) * 3px) rgb(120 214 242 / .9);
  transition: transform .5s var(--ease);
}
.zd.is-sel::before { transform: scale(1.9); background: #fff; }
.zd__l {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgb(200 236 250 / calc(.42 + var(--lit, 0) * .58));
  text-shadow: 0 0 4px #061629, 0 0 8px #061629;
}
.zd--n .zd__l { bottom: 17px; }
.zd--s .zd__l { top: 17px; }
.radar__center { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.radar__center::before { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgb(120 214 242 / .25), 0 0 16px 5px rgb(150 225 250 / .8); }
.radar__center span { position: absolute; right: 9px; top: 6px; text-shadow: 0 0 6px #061629; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.radar__tip {
  position: absolute; z-index: 2; pointer-events: none; padding: 6px 10px; border-radius: 99px; white-space: nowrap;
  background: rgb(var(--night-fg)); color: rgb(var(--night-bg)); font-size: 10px;
  transform: translate(12px, -50%) scale(.9); opacity: 0; transition: opacity .3s, transform .5s var(--ease);
}
.radar__tip.is-left { transform: translate(calc(-100% - 12px), -50%) scale(.9); }
.radar__tip.is-on { opacity: 1; transform: translate(12px, -50%); }
.radar__tip.is-left.is-on { transform: translate(calc(-100% - 12px), -50%); }
.radar__readout {
  display: flex; justify-content: center; gap: 14px; align-items: baseline; margin-top: 4px;
  color: rgb(var(--fg) / .55); font-variant-numeric: tabular-nums;
}
.radar__readout span { color: rgb(var(--acc)); min-width: 4ch; }
.radar__readout b { font-weight: 400; color: rgb(var(--fg) / .85); min-width: 18ch; }
.radar__credit { margin-top: 10px; text-align: center; font-size: 9px; color: rgb(var(--fg) / .32); }
@media (min-width: 960px) {
  .zones { padding: 22vh 0; }
  .zones__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 5vw; }
  .zd__l { font-size: 10px; }
  .radar__center span { font-size: 13px; }
}

/* ==========================================================================
   06 · IL VETRO
   ========================================================================== */
.window { position: relative; padding: 40px 0 110px; }
.window__head { margin-bottom: 32px; }
.window__title { display: grid; font-size: clamp(2rem, 8.6vw, 5rem); }
.window__state { grid-area: 1 / 1; transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s; }
.window__state--after { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.is-clear .window__state:not(.window__state--after) { opacity: 0; transform: translateY(-24px); filter: blur(6px); }
.is-clear .window__state--after { opacity: 1; transform: none; filter: none; }
.window__frame {
  position: relative; margin-inline: var(--gutter); height: min(64svh, 560px); border-radius: var(--radius); overflow: hidden;
  background: #0A1A2B; touch-action: none; cursor: none;
  box-shadow: 0 0 0 1px rgb(var(--fg) / .1), 0 60px 100px -40px rgb(0 0 0 / .6);
}
.window.is-clear .window__frame { touch-action: pan-y; }
.window__glass { position: absolute; inset: 0; width: 100%; height: 100%; }
.window__fog { position: absolute; inset: 0; pointer-events: none; background: rgb(150 165 180 / .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.has-gl .window__fog { display: none; }
.window__mullions { position: absolute; inset: 0; pointer-events: none; z-index: 3; box-shadow: inset 0 0 0 10px #0B1B2B, inset 0 0 0 11px rgb(255 255 255 / .06); }
.window__mullions i { position: absolute; background: #0B1B2B; box-shadow: 0 0 0 1px rgb(255 255 255 / .04); }
.window__mullions i:nth-child(1) { left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; }
.window__mullions i:nth-child(2) { left: 0; right: 0; top: 24%; height: 8px; }
.window__mullions i:nth-child(3) { left: calc(50% - 7px); top: 56%; width: 14px; height: 30px; border-radius: 3px; background: #163049; } /* maniglia */
.window__hint {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 99px;
  background: rgb(5 9 15 / .72); color: rgb(var(--night-fg));
  pointer-events: none; transition: opacity .6s, transform .8s var(--ease); white-space: nowrap;
}
.window__hint.is-off { opacity: 0; transform: translate(-50%, -30%); }
.window__hand { position: relative; width: 28px; height: 12px; }
.window__hand::after { content: ''; position: absolute; top: 1px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--night-acc)); animation: rub 1.6s var(--ease-io) infinite alternate; }
@keyframes rub { to { transform: translateX(18px); } }
.window__meter { position: absolute; z-index: 4; right: 22px; bottom: 20px; color: rgb(var(--night-fg) / .7); font-variant-numeric: tabular-nums; }
.window__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin-top: 22px; color: rgb(var(--fg) / .7); }
.window__foot .link--btn { min-height: 44px; }
.is-clear .window__foot .link--btn { opacity: 0; pointer-events: none; }
@media (min-width: 960px) {
  .window { padding: 12vh 0 22vh; }
  .window__head { margin-bottom: 56px; }
  .window__frame { height: 74vh; max-width: calc(1480px - 2 * var(--gutter)); margin-inline: auto; width: calc(100% - 2 * var(--gutter)); }
  .window__mullions { box-shadow: inset 0 0 0 16px #0B1B2B, inset 0 0 0 17px rgb(255 255 255 / .06); }
  .window__mullions i:nth-child(1) { width: 12px; margin-left: -6px; }
  .window__mullions i:nth-child(2) { height: 12px; }
  .window__foot { max-width: 1480px; margin-inline: auto; }
}

/* ==========================================================================
   07 · DOMANDE
   ========================================================================== */
.faq { padding: 120px 0 80px; }
.faq__grid { display: grid; gap: 40px; }
.faq__list { border-bottom: 1px solid rgb(var(--fg) / .14); }
.qa { border-top: 1px solid rgb(var(--fg) / .14); }
.qa summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center;
  padding: 22px 0; min-height: 64px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 4.8vw, 1.8rem); line-height: 1.22; letter-spacing: -.03em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 16px; height: 16px; justify-self: end; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.2px; background: currentColor; transition: transform .6s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa summary:hover span { color: rgb(var(--acc)); }
.qa summary span { transition: color .4s; }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 44px 26px 0; color: rgb(var(--fg) / .72); max-width: 60ch; font-size: 16.5px; }
@media (min-width: 960px) {
  .faq { padding: 22vh 0 12vh; }
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 6vw; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--nav-h) + 40px); }
  .qa summary { padding: 30px 0; }
}

/* ==========================================================================
   08 · CONTATTI
   ========================================================================== */
.contact { padding: 60px 0 140px; }
.contact__grid { display: grid; gap: 56px; }
.contact__title { font-size: clamp(2.1rem, 9.2vw, 5.4rem); }
.direct { margin-top: 40px; border-top: 1px solid rgb(var(--fg) / .14); }
.direct li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgb(var(--fg) / .14); min-height: 56px; font-size: 16px; }
.direct .mono { color: rgb(var(--fg) / .5); }

.form { display: grid; gap: 30px; }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__label { display: block; color: rgb(var(--fg) / .55); margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 99px;
  border: 1px solid rgb(var(--fg) / .2); font-size: 15px;
  transition: background-color .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease);
}
.chip input:checked + span { background: rgb(var(--fg)); color: rgb(var(--bg)); border-color: rgb(var(--fg)); }
.chip input:focus-visible + span { outline: 2px solid rgb(var(--acc)); outline-offset: 3px; }
.chip input:active + span { transform: scale(.96); }
.range { display: flex; align-items: center; gap: 18px; }
.range input { flex: 1; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; margin: 0; --v: 12%; }
.range input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, rgb(var(--acc)) var(--v), rgb(var(--fg) / .18) var(--v)); }
.range input::-moz-range-track { height: 2px; background: rgb(var(--fg) / .18); }
.range input::-moz-range-progress { height: 2px; background: rgb(var(--acc)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: rgb(var(--bg)); border: 1.5px solid rgb(var(--fg)); box-shadow: 0 4px 14px rgb(0 0 0 / .15); }
.range input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: rgb(var(--bg)); border: 1.5px solid rgb(var(--fg)); }
.range__out { font-family: var(--display); font-weight: 700; font-size: 26px; min-width: 4.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.form__row { display: grid; gap: 30px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgb(var(--fg) / .25); border-radius: 0; background: transparent; color: inherit;
  font: inherit; font-size: 17px; padding: 26px 0 10px; outline: none; resize: vertical; min-height: 58px;
  transition: border-color .4s;
}
.field textarea { min-height: 96px; }
.field label { position: absolute; left: 0; top: 24px; color: rgb(var(--fg) / .55); pointer-events: none; transform-origin: left top; transition: transform .5s var(--ease), color .4s; font-size: 17px; }
.field input:focus, .field textarea:focus { border-color: rgb(var(--fg)); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.72); color: rgb(var(--acc)); }
.field .opt { opacity: .6; }
.field.is-bad input { border-color: #C2413A; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 14.5px; line-height: 1.5; color: rgb(var(--fg) / .7); cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; }
.check__box { width: 24px; height: 24px; border: 1px solid rgb(var(--fg) / .35); border-radius: 4px; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.check__box::after { content: ''; width: 10px; height: 6px; border-left: 1.5px solid rgb(var(--bg)); border-bottom: 1.5px solid rgb(var(--bg)); transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .4s var(--ease); }
.check input:checked + .check__box { background: rgb(var(--fg)); border-color: rgb(var(--fg)); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid rgb(var(--acc)); outline-offset: 3px; }
.check.is-bad .check__box { border-color: #C2413A; }
.form__submit { display: grid; gap: 14px; margin-top: 6px; }
.form__msg { font-size: 14.5px; color: rgb(var(--fg) / .75); min-height: 1.4em; }
.form__msg.is-bad { color: #B23A34; }
.form.is-sent .btn { background: rgb(var(--acc)); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } .btn--wide { width: auto; justify-self: start; padding: 0 34px; } }
@media (min-width: 960px) {
  .contact { padding: 10vh 0 22vh; }
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 7vw; align-items: start; }
  .contact__head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; padding: 90px 0 calc(28px + var(--safe-b)); overflow: hidden; }
.footer__top { display: grid; gap: 26px; justify-items: start; }
.footer__claim { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 9vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
.footer__claim em { color: rgb(var(--acc)); }
.footer__word { margin: 64px 0 40px; line-height: .8; }
.footer__word span {
  display: block; font-family: var(--display); font-weight: 700; font-size: 21vw; letter-spacing: -.06em; text-align: center; margin-inline: calc(var(--gutter) * -0.5);
  color: transparent;
  background: linear-gradient(100deg, rgb(var(--fg) / .1) 0%, rgb(var(--fg) / .1) 40%, rgb(214 238 255 / .95) 50%, rgb(var(--fg) / .1) 60%, rgb(var(--fg) / .1) 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: lightpass 10s var(--ease-io) infinite;
}
@keyframes lightpass { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; padding-top: 34px; border-top: 1px solid rgb(var(--fg) / .14); font-size: 15px; color: rgb(var(--fg) / .78); }
.footer__cols ul { display: grid; gap: 6px; }
.footer__cols a { min-height: 32px; }
.footer__k { color: rgb(var(--fg) / .45); margin-bottom: 12px; }
.footer__logo { width: 132px; height: auto; margin-bottom: 14px; }
.footer__clock { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; color: rgb(var(--fg)); font-variant-numeric: tabular-nums; }
.footer__lamp { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: rgb(var(--fg) / .55); }
.footer__lamp::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--acc)); box-shadow: 0 0 8px 2px rgb(var(--acc) / .6); animation: blink 20s infinite; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgb(var(--fg) / .1); color: rgb(var(--fg) / .45); font-size: 10px; }
@media (min-width: 960px) {
  .footer { padding: 18vh 0 32px; }
  .footer__top { grid-template-columns: 1fr auto; align-items: end; }
  .footer__word { margin: 12vh 0 7vh; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Movimento ridotto ---------- */
/* 03/11: tolto il blocco «riduci movimento»: animato per tutti */

/* ==========================================================================
   Passaggio alla pagina del sopralluogo: la luce si allarga dal punto toccato
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #F1F8FC 0, #DDEEF8 22%, #F6F9FB 60%);
  clip-path: circle(0 at var(--gx, 50%) var(--gy, 50%));
  transition: clip-path .65s cubic-bezier(.7, 0, .3, 1);
}
.gate.is-on { clip-path: circle(150% at var(--gx, 50%) var(--gy, 50%)); pointer-events: auto; }

/* invito al sopralluogo, al posto del modulo */
.invite {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 22px; align-content: end;
  min-height: 420px; padding: 30px 26px 28px; border-radius: var(--radius);
  background: #081B2E; color: rgb(var(--night-fg));
  box-shadow: 0 50px 90px -50px rgb(10 20 30 / .55);
  transition: transform .6s var(--ease);
}
.invite:active { transform: scale(.985); }
.invite__glow { position: absolute; inset: -20%; z-index: -1; background: radial-gradient(45% 40% at 78% 18%, rgb(214 238 255 / .38), transparent 70%), conic-gradient(from 200deg at 78% 18%, transparent 0deg, rgb(214 238 255 / .12) 18deg, transparent 30deg); transition: transform 1.2s var(--ease); }
.invite:hover .invite__glow { transform: rotate(-8deg) scale(1.05); }
.invite__k { color: rgb(var(--night-acc)); }
.invite__t { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 8.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.invite__t em { color: rgb(var(--night-acc)); }
.invite__steps { display: flex; flex-wrap: wrap; gap: 6px; color: rgb(var(--night-fg) / .6); font-size: 9.5px; }
.invite__steps i { font-style: normal; padding: 6px 10px; border: 1px solid rgb(var(--night-fg) / .18); border-radius: 99px; }
.invite__go { display: inline-flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 24px; border-radius: 99px; background: rgb(var(--night-fg)); color: rgb(var(--night-bg)); font-weight: 500; font-size: 16px; }
.invite__go i { font-style: normal; transition: transform .5s var(--ease); }
.invite:hover .invite__go i { transform: translateX(6px); }
@media (min-width: 960px) { .invite { min-height: 560px; padding: 44px; } }

/* ==========================================================================
   Segni del pulito: scintille, cosa puliamo, attrezzi, tergivetro
   ========================================================================== */
/* le scintille ✦ sul titolo: il segno che tutti riconoscono come "splendente" */
.spk { display: inline-block; width: .3em; height: .3em; margin-left: .05em; vertical-align: top; fill: rgb(var(--night-acc)); transform: scale(.85) rotate(20deg); animation: twinkle 3.6s ease-in-out infinite; }
.spk--b { width: .24em; height: .24em; margin-left: .08em; animation-delay: -1.3s; }
.spk--c { width: .14em; height: .14em; margin-left: .02em; vertical-align: .55em; animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: .2; } 42% { transform: scale(1) rotate(45deg); opacity: 1; } 58% { transform: scale(.85) rotate(70deg); opacity: .9; } }

/* cosa puliamo, subito sotto il titolo */
.hero__what { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; max-width: 34rem; }
.hero__what li {
  padding: 7px 11px; border-radius: 99px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: rgb(var(--night-fg) / .9); background: rgb(5 9 15 / .42); box-shadow: inset 0 0 0 1px rgb(var(--night-fg) / .22);
}
.is-ready .hero__what { transition-delay: .45s; }
.hero__sub { margin-top: 16px; }
@media (max-height: 820px) and (max-width: 959px) { .hero__sub { display: none; } }
@media (min-width: 960px) { .hero__what { margin-top: 30px; gap: 8px; max-width: 48rem; } .hero__what li { font-size: 10.5px; padding: 8px 13px; } }

.manifesto__text .w em { color: rgb(var(--acc) / calc(.14 + var(--c, 0) * .86)); } /* la parola in evidenza si accende solo quando è pulita */

/* ==========================================================================
   Un solo sistema, notte e giorno: la luce del faro arriva fin nelle sezioni chiare
   e la lineetta delle etichette è un piccolo fascio che si accende entrando in vista.
   ========================================================================== */
[data-tone="day"] { position: relative; isolation: isolate; overflow-x: clip; } /* clip: l'alone resta dentro, e le parti fisse (sticky) continuano a funzionare */
.sl::after { display: none; }
[data-tone="day"]::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 0; right: 0; width: min(90vw, 900px); height: min(90vw, 900px);
  background: radial-gradient(closest-side, rgb(120 200 240 / .16), rgb(120 200 240 / 0));
  transform: translate(30%, -10%);
}
[data-tone="night"] + [data-tone="day"]::after { top: var(--dawn); }
.eyebrow__line { position: relative; transform-origin: left; }
.js .eyebrow .eyebrow__line { transform: scaleX(.15); transition: transform 1.2s var(--ease) .1s; }
.js .eyebrow.is-in .eyebrow__line { transform: none; }
.eyebrow__line::after { content: ''; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--acc)); box-shadow: 0 0 10px 3px rgb(var(--acc) / .55); }
/* niente spiragli tra una sezione e l'altra: si sovrappongono di un pixel */
[data-tone] + [data-tone], main + .footer { margin-top: -1px; }
