/* ==========================================================================
   Font: Geist e Geist Mono (SIL OFL 1.1, licenza in assets/fonts/OFL.txt), serviti dal sito.
   Niente Google Fonts: caricati da lì passerebbero a Google l'IP di ogni visitatore.
   File variabili (pesi 100–900); sottoinsiemi latin e latin-ext come quelli di Google Fonts.
   ========================================================================== */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Privion — design tokens (vedi DESIGN.MD)
   ========================================================================== */
:root {
  --c-bg: #0A0A0A;
  --c-bg-deep: #050505;
  --c-surface: #141414;
  --c-surface-2: #1E1E1E;
  --c-text: #F2F2F2;
  --c-text-soft: #E0E0E0;
  --c-muted: #A3A3A3;
  --c-faint: #808080;
  --c-line: rgba(255, 255, 255, .12);
  --c-line-strong: rgba(255, 255, 255, .24);
  --c-accent: #FFFFFF;
  --c-highlight: #FFFFFF;
  --g-sheen: linear-gradient(90deg, #FFFFFF 0%, #E2E2E2 50%, #B5B5B5 100%);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-card: 16px;
  --radius-small: 6px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(88px, 10vw, 150px);
  --nav-h: 80px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--c-bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-muted);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 500; color: var(--c-text); }
em { font-style: normal; }
::selection { background: var(--c-accent); color: var(--c-bg-deep); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.accent { color: var(--c-accent); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--c-text); color: var(--c-bg-deep); padding: 10px 14px; border-radius: var(--radius-small);
}
.skip:focus { top: 16px; }

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text-soft);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--c-accent); }

.h-section {
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h-sub {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 44ch;
}
.link { color: var(--c-text); background: linear-gradient(var(--c-accent), var(--c-accent)) 0 100% / 100% 1px no-repeat; transition: color .2s; }
.link:hover { color: var(--c-accent); }

/* SplitText: le maschere di riga lasciano spazio ai discendenti */
[data-split] > div { padding-bottom: .1em; margin-bottom: -.1em; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--radius-small);
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  transition: border-color .25s, background-color .25s, color .25s;
  will-change: transform;
}
.btn--sm { --h: 42px; padding: 0 16px; font-size: 12px; }
.btn--lg { --h: 64px; padding: 0 28px; font-size: 14px; }
.btn__icon { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.btn:hover .btn__icon { transform: translate(2px, -2px) rotate(45deg); }
.btn--ghost { border: 1px solid var(--c-line-strong); color: var(--c-text); }
.btn--ghost:hover { border-color: var(--c-accent); }
.btn--ember { background: var(--g-sheen); color: #0A0A0A; }
.btn--ember:hover { filter: brightness(1.06); }

.arrow-btn {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--radius-small);
  background: rgba(255, 255, 255, .08); color: var(--c-text);
  transition: background-color .3s, color .3s, transform .45s var(--ease-out);
}
.arrow-btn svg { width: 14px; height: 14px; transition: transform .45s var(--ease-out); }
.arrow-btn--lg { width: 56px; height: 56px; }
.arrow-btn--lg svg { width: 20px; height: 20px; }

/* ==========================================================================
   Global FX: grain, progress, cursor
   ========================================================================== */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--g-sheen); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 95; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0; transition: opacity .3s; }
  .cursor.is-on .cursor__dot, .cursor.is-on .cursor__ring { opacity: 1; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--c-accent); }
  .cursor__ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1px solid rgba(255, 255, 255, .35);
    display: grid; place-items: center;
    transition: opacity .3s, width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .3s, border-color .3s;
  }
  .cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--c-accent); }
  .cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--c-accent); border-color: var(--c-accent); }
  .cursor.is-label .cursor__dot { opacity: 0; }
  .cursor__label { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--c-bg-deep); opacity: 0; transition: opacity .2s; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--nav-h);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--c-line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: 100%; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand__mark { width: 18px; height: 29px; }
.brand__word { font-size: 21px; font-weight: 500; letter-spacing: -.04em; color: var(--c-text); line-height: 1; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted);
  position: relative; padding-block: 6px; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--c-text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--c-line-strong); border-radius: var(--radius-small); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--c-text); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--c-bg-deep);
  display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; width: 100%; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--c-line);
  font-size: clamp(36px, 10vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--c-text);
}
.menu__links a span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; color: var(--c-accent); }

@media (max-width: 900px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .burger { display: block; }
}

/* ==========================================================================
   Hero "La piega"
   Senza JS (o con reduced motion) mostra la composizione finale in una sola
   schermata. Con .hero--live la sezione si allunga, la scena resta fissata e
   main.js muove ogni livello in base all'avanzamento dello scroll.
   ========================================================================== */
.hero {
  --logo-h: min(56svh, 520px, calc((100vw - 48px) * 1.6003));
  position: relative; height: 100svh; min-height: 560px;
}
.hero--live { height: 300svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }

.hero__sky {
  position: absolute; inset: -8%; z-index: 0; will-change: transform;
  background:
    radial-gradient(40% 38% at 50% 46%, rgba(255, 255, 255, .09), transparent 70%),
    radial-gradient(26% 26% at 60% 34%, rgba(255, 255, 255, .04), transparent 70%),
    radial-gradient(120% 70% at 50% 120%, var(--c-bg-deep), transparent 60%);
}

/* Le due "rig" condividono posizione e trasformazioni: linee dietro, pezzi davanti */
.hero__rig {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  height: var(--logo-h); aspect-ratio: 441.68 / 706.84;
  transform: translateX(22vw) scale(.82);
  will-change: transform;
}
.hero__rig--back { z-index: 1; }
.hero__rig--front { z-index: 4; perspective: 2400px; }
.hero__guides { display: none; width: 100%; height: 100%; overflow: visible; color: rgba(255, 255, 255, .22); }
.hero__guides path, .hero__guides > circle {
  fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.hero__nodes circle { fill: var(--c-bg); stroke: var(--c-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Nastro di carta: ogni foglio occupa l'intero box del viewBox, così tutte le coordinate coincidono.
   Le cerniere ruotano attorno alla loro piega (origine = un punto della piega, in % del box). */
.hero__fold { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 0 0; will-change: transform; }
.hero__seg, .hero__hinge { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero__hinge { will-change: transform; }
.hero__hinge--a { transform-origin: 24.013% 2.463%; }   /* piega A, asta → risvolto: punto (398.48, 163.99) */
.hero__hinge--b { transform-origin: 27.957% 0%; }        /* piega B, orizzontale: punto (415.9, 146.58) */
.hero__hinge--c { transform-origin: 100% 15.005%; }      /* piega C, verticale: punto (734.1, 252.64) */
/* Ordine dei livelli del logo: risvolto sotto, piega sopra, gamba sotto la piega */
.hero__seg--flap { transform: translateZ(-1px); }
.hero__seg--band { transform: translateZ(1px); }
.hero__face {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.hero__face--back { transform: rotateY(180deg); }

.hero__dust { display: none; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
/* Ombra del nastro: canvas a bassa risoluzione, ingrandito dalla GPU (z-index come il nastro, ma prima nel DOM) */
.hero__shadow { display: none; position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; opacity: 0; }

.hero__title {
  display: none; position: absolute; inset-inline: 0; top: 50%; translate: 0 -50%; z-index: 3;
  text-align: center; white-space: nowrap; pointer-events: none;
  font-size: clamp(56px, 13vw, 220px); font-weight: 500; line-height: .9; letter-spacing: -.045em;
  color: var(--c-text); will-change: transform, opacity, letter-spacing;
}

.hero__veil {
  display: none; position: absolute; inset: 0; z-index: 6; place-items: center; text-align: center;
  background:
    radial-gradient(60% 50% at 30% 40%, rgba(255, 255, 255, .06), transparent 70%),
    radial-gradient(50% 60% at 75% 62%, rgba(255, 255, 255, .03), transparent 70%),
    radial-gradient(80% 80% at 50% 50%, rgba(10, 10, 10, .7), rgba(5, 5, 5, .96));
  will-change: transform, opacity;
}
.hero__veil > div { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-inline: var(--gutter); }
.hero__veil-cta {
  font-size: 13px; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; color: var(--c-text);
}
.hero__veil-arrow { color: var(--c-accent); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* HUD */
.hero__hud {
  position: absolute; z-index: 5; pointer-events: none;
  inset: calc(var(--nav-h) + 8px) var(--gutter) 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted);
}
.hud__c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--c-line-strong); }
.hud__c--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud__c--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud__c--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud__c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud__tl, .hud__tr { position: absolute; top: 18px; display: flex; flex-direction: column; gap: 6px; }
.hud__tl { left: 22px; }
.hud__tr { right: 22px; text-align: right; }
.hud__tl b, .hud__tr b { font-weight: 400; color: var(--c-text-soft); }
.hud__tr em { color: var(--c-accent); font-variant-numeric: tabular-nums; }
.hud__tl span, .hud__tr span { color: var(--c-faint); }
.hud__bl { position: absolute; left: 22px; bottom: 16px; color: var(--c-faint); }
.hud__br { position: absolute; right: 22px; bottom: 16px; display: flex; gap: 8px; }
.hud__arrow { color: var(--c-accent); animation: bob 1.6s ease-in-out infinite; }

/* Messaggio finale */
.hero__copy {
  position: absolute; z-index: 5;
  left: max(var(--gutter), (100vw - var(--max)) / 2); bottom: clamp(64px, 13vh, 140px);
  width: min(560px, 100% - 2 * var(--gutter));
  display: flex; flex-direction: column; gap: 22px;
}
.hero__h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Stato live (impostato da main.js) */
.hero--live .hero__guides { display: block; }
.hero--live .hero__dust, .hero--live .hero__title, .hero--live .hero__shadow { display: block; }
.hero--live .hero__veil { display: grid; }

@media (max-width: 900px) {
  .hero--live { height: 260svh; }
  .hero__rig { transform: translateY(-14svh) scale(.56); }
  .hero__copy { bottom: 40px; gap: 16px; }
  .hero__copy .lede { font-size: 15px; }
  .hud__bl, .hud__br, .hud__c--bl, .hud__c--br { display: none; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero__copy .eyebrow { display: none; }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); }
.manifesto__side { display: flex; flex-direction: column; gap: 40px; }
.tiles { position: relative; height: 170px; }
.tile {
  position: absolute; width: 112px; height: 112px; border-radius: var(--radius-card);
  display: grid; place-items: center;
}
.tile--a { left: 0; top: 18px; background: var(--c-surface); transform: rotate(-7deg); }
.tile--a svg { width: 33px; height: 52px; }
.tile--b { left: 92px; top: 46px; background: var(--c-surface-2); transform: rotate(9deg); }
.tile--b span { font-family: var(--font-mono); font-size: 28px; color: var(--c-accent); }
.manifesto__caption { color: var(--c-faint); font-size: 15px; }
.manifesto__text {
  font-size: clamp(28px, 3.5vw, 52px); line-height: 1.1; letter-spacing: -.03em;
  font-weight: 500; color: var(--c-text); text-wrap: pretty;
}
.manifesto__text em { color: var(--c-highlight); }
.manifesto__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(40px, 5vw, 72px); max-width: 760px; }
.manifesto__cols p { font-size: 16px; }

@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
  .manifesto__side .eyebrow { width: 100%; }
  .tiles { width: 210px; height: 150px; }
  .manifesto__caption { flex: 1 1 200px; }
}
@media (max-width: 600px) {
  .manifesto__cols { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   Servizi
   ========================================================================== */
.services__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.services__side, .process__side { align-self: stretch; }
/* La colonna è sticky: deve stare per intero sullo schermo, altrimenti la rete in fondo non si vede mai.
   La rete prende l'altezza che resta sotto titolo e testo (al massimo 380 × 285). */
.services__sticky { position: sticky; top: calc(var(--nav-h) + 40px); max-height: calc(100svh - var(--nav-h) - 72px); display: flex; flex-direction: column; gap: 28px; }
.network { flex: 0 1 285px; min-height: 120px; width: 100%; max-width: 380px; margin-top: 16px; color: rgba(255, 255, 255, .35); }
@media (max-height: 820px) {
  /* Titolo più piccolo: alla rete resta più altezza */
  .services__sticky { gap: 20px; }
  .services__sticky .h-section { font-size: clamp(32px, 4vw, 52px); }
  .network { margin-top: 8px; }
}
@media (max-height: 640px) {
  /* Troppo basso perché ci stia tutto: la colonna scorre con la pagina e la rete arriva scorrendo */
  .services__sticky { position: static; max-height: none; }
  .network { flex: none; height: auto; }
}
.network__nodes circle { fill: var(--c-bg); stroke: var(--c-text); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.network__nodes circle.is-accent { fill: var(--c-accent); stroke: var(--c-accent); }
.network__lines path { stroke-dasharray: 1; stroke-dashoffset: 0; }

.svc-list { border-bottom: 1px solid var(--c-line); }
.svc {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px 28px; align-items: start;
  padding: 36px 16px 36px 0;
  border-top: 1px solid var(--c-line);
  isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: var(--radius-card);
  background: var(--c-surface); opacity: 0; transform: scaleY(.85); transition: opacity .4s, transform .5s var(--ease-out);
}
.svc__num { font-family: var(--font-mono); font-size: 12px; color: var(--c-faint); padding-top: 10px; transition: color .3s; }
.svc__title {
  font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 12px;
  transition: transform .5s var(--ease-out);
}
.svc__body p { max-width: 50ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
  border: 1px solid var(--c-line); border-radius: var(--radius-small); padding: 6px 9px; line-height: 1;
  transition: border-color .3s, color .3s;
}
.svc__out { margin-top: 14px; font-size: 14px; color: var(--c-faint); }
.svc__price {
  padding-top: 6px; white-space: nowrap; text-align: right;
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1;
  color: var(--c-highlight); font-variant-numeric: tabular-nums;
}
.svc__price small {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint);
}
.svc--plan .svc__price small { display: inline; margin: 0 0 0 2px; letter-spacing: .02em; text-transform: none; font-family: var(--font); font-size: 14px; }
@media (hover: hover) {
  .svc:hover::before { opacity: 1; transform: scaleY(1); }
  .svc:hover .svc__title { transform: translateX(8px); }
  .svc:hover .svc__num { color: var(--c-accent); }
  .svc:hover .tags li { border-color: var(--c-line-strong); color: var(--c-text-soft); }
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__sticky { position: static; }
  .network { display: none; }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr auto; padding-right: 0; }
  .svc__num { grid-column: 1 / -1; padding-top: 0; }
  .svc__price { grid-column: 1 / -1; grid-row: 2; text-align: left; padding-top: 0; }
  .svc__price small { display: inline; margin: 0 6px 0 0; }
  .svc--plan .svc__price small { margin: 0 0 0 2px; }
}

/* ==========================================================================
   Lavori (orizzontale)
   ========================================================================== */
.work { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.work__pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 4vw, 56px); }
.work--pinned .work__pin { height: 100vh; padding-block: calc(var(--nav-h) + 8px) 32px; }
.work--pinned { padding-block: 0; }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.work__head > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.work__meter { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.work__count { font-family: var(--font-mono); font-size: 13px; color: var(--c-faint); }
.work__count b { color: var(--c-text); font-weight: 500; }
.work__bar { width: 160px; height: 1px; background: var(--c-line-strong); }
.work__bar i { display: block; height: 100%; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(.2); }

.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.work__viewport::-webkit-scrollbar { display: none; }
.work--pinned .work__viewport { overflow: visible; }
.work__track {
  --card-w: clamp(280px, 40vw, 600px);
  display: flex; gap: clamp(16px, 2vw, 28px); width: max-content;
  padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
  will-change: transform;
}
/* Sezione bloccata sullo schermo: tutto deve starci, perché scorrendo non si raggiunge quello che esce.
   Lo spazio riservato (470 px) è navbar + margini + titolo su due righe + didascalia delle card. */
.work--pinned .work__track { --card-w: min(38vw, 580px, (100svh - 470px) * 4 / 3); }
@media (max-height: 820px) {
  /* Titolo più piccolo (di solito su una riga): serve meno spazio riservato */
  .work--pinned .work__track { --card-w: min(38vw, 580px, (100svh - 400px) * 4 / 3); }
  .work--pinned .work__pin { gap: 24px; }
  .work--pinned .work__head .h-section { font-size: clamp(32px, 4vw, 52px); }
  .work--pinned .work__head > div:first-child { gap: 16px; }
}
.wcard { flex: none; width: var(--card-w); scroll-snap-align: center; }
.wcard__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden;
  background: var(--c-surface);
}
.wcard__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 0%, var(--glow, rgba(255, 255, 255, .07)), transparent 70%);
}
.wcard__media--1 { --glow: rgba(255, 255, 255, .09); }
.wcard__media--2 { --glow: rgba(255, 255, 255, .06); }
.wcard__media--3 { --glow: rgba(255, 255, 255, .07); }
.wcard__meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 18px; }
.wcard__meta h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.wcard__meta p { grid-column: 1; font-size: 14px; color: var(--c-faint); }
.wcard__tag {
  grid-column: 2; grid-row: 1; align-self: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--c-accent);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-small); padding: 4px 8px;
}
/* Testo e margini seguono la larghezza del riquadro (cqi), non della finestra:
   sugli schermi bassi le card si stringono e il titolo deve restare su due righe. */
.wcard--end { width: max(calc(var(--card-w) * .7), 260px); container-type: inline-size; }
.wcard__next {
  height: calc(var(--card-w) * .75); border-radius: var(--radius-card);
  border: 1px dashed var(--c-line-strong);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: clamp(20px, 9cqi, 36px);
  transition: border-color .3s, background-color .3s;
}
.wcard__next .eyebrow { white-space: nowrap; }
.wcard__next-title { font-size: clamp(28px, 15cqi, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--c-text); }
.wcard__next:hover { border-color: var(--c-accent); background: var(--c-surface); }
.wcard__next:hover .arrow-btn { background: var(--c-accent); color: var(--c-bg-deep); }
.wcard__next:hover .arrow-btn svg { transform: rotate(45deg); }

@media (max-width: 700px) {
  .work__head { flex-direction: column; align-items: flex-start; }
  .work__meter { display: none; }
  .work__track { --card-w: 82vw; }
}

/* ---------- Mockup (siti di esempio, solo CSS) ---------- */
.mock {
  position: absolute; inset: 11% 8% 0; border-radius: 10px 10px 0 0; overflow: hidden;
  container-type: inline-size; background: var(--m-bg); color: var(--m-ink);
  border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0;
  will-change: transform;
}
.mock__bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(0, 0, 0, .14); }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .25; }
.mock__body { position: relative; height: calc(100% - 22px); padding: 6cqw; }

/* 1 · panificio: orari e "oggi al forno" */
.mock--bakery { --m-bg: #F2EADC; --m-ink: #2B2118; }
.mb__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 3cqw; border-bottom: 1px solid rgba(43, 33, 24, .14); }
.mb__top b { font-size: 3cqw; font-weight: 500; letter-spacing: .02em; }
.mb__open { display: inline-flex; align-items: center; gap: 1.4cqw; font-size: 2.4cqw; color: #2F6B45; }
.mb__open i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #2F8A55; }
.mb__title { font-size: 9.6cqw; line-height: .92; letter-spacing: -.05em; font-weight: 500; margin: 6cqw 0 5cqw; }
.mb__today { background: #E6DAC6; border-radius: 1.4cqw; padding: 3cqw; }
.mb__today small { display: block; font-size: 2.2cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 1.4cqw; }
.mb__today p { font-size: 3cqw; line-height: 1.3; }
.mb__actions { display: flex; gap: 2cqw; margin-top: 4cqw; }
.mb__actions span { font-size: 2.6cqw; padding: 2cqw 3.4cqw; border-radius: .8cqw; border: 1px solid #2B2118; }
.mb__actions span:first-child { background: #2B2118; color: #F2EADC; }

/* 2 · studio dentistico: il modulo da tre campi */
.mock--dentist { --m-bg: #EEF2F1; --m-ink: #18302E; }
.mt__title { font-size: 7.4cqw; line-height: 1; letter-spacing: -.04em; font-weight: 500; margin-bottom: 5cqw; }
.mt__form { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.mt__field small { display: block; font-size: 2.1cqw; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 1cqw; }
.mt__field i { display: block; height: 6.4cqw; border-radius: .8cqw; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(24, 48, 46, .25); }
.mt__chips { grid-column: 1 / -1; display: flex; gap: 1.6cqw; }
.mt__chips span { font-size: 2.4cqw; padding: 1.6cqw 2.6cqw; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(24, 48, 46, .3); }
.mt__chips .is-on { background: #18302E; color: #EEF2F1; box-shadow: none; }
.mt__btn { grid-column: 1 / -1; justify-self: start; font-size: 2.6cqw; padding: 2.2cqw 3.6cqw; border-radius: .8cqw; background: #18302E; color: #EEF2F1; margin-top: 1cqw; }
.mt__note { margin-top: 4cqw; font-size: 2.6cqw; opacity: .75; }

/* 3 · startup B2B: stesso contenuto, due inquadrature */
.mock--startup { --m-bg: #16141A; --m-ink: #F4EEE8; }
.msu__toggle { display: inline-flex; gap: 1cqw; padding: 1cqw; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.msu__toggle span { font-size: 2.6cqw; padding: 1.6cqw 3cqw; border-radius: 99px; opacity: .7; }
.msu__toggle .is-on { background: #F4EEE8; color: #16141A; opacity: 1; }
.msu__title { font-size: 7.6cqw; line-height: 1; letter-spacing: -.045em; font-weight: 500; margin: 6cqw 0 6cqw; max-width: 22ch; }
.msu__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 3.4cqw; }
.msu__facts dt { font-size: 2.1cqw; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin-bottom: 1.2cqw; }
.msu__facts dd { font-size: 3cqw; line-height: 1.25; }

/* ==========================================================================
   Numeri
   ========================================================================== */
.stats__head { display: flex; flex-direction: column; gap: 20px; max-width: 560px; margin-bottom: clamp(48px, 6vw, 80px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 16px; padding: 36px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--c-line); }
.stat dd {
  font-size: clamp(56px, 7vw, 104px); font-weight: 500; line-height: 1; letter-spacing: -.05em;
  color: var(--c-highlight); font-variant-numeric: tabular-nums;
}
.stat dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-soft); max-width: 22ch; line-height: 1.5; }
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-line); margin-top: 36px; }
}
@media (max-width: 600px) {
  /* Due colonne da ~140 px utili a 360 px: il contatore parte da «1440px» e a 56 px non ci starebbe */
  .stat dd { font-size: clamp(36px, 11vw, 56px); }
}

/* ==========================================================================
   Testo cinetico
   ========================================================================== */
.kinetic { padding-block: clamp(40px, 6vw, 96px); overflow: clip; display: flex; flex-direction: column; gap: clamp(4px, 1vw, 16px); }
.kinetic__row {
  display: flex; align-items: center; gap: .3em; width: max-content;
  font-size: clamp(72px, 14vw, 220px); font-weight: 500; line-height: 1; letter-spacing: -.05em;
  color: var(--c-text); white-space: nowrap; will-change: transform;
}
.kinetic__row svg { width: .34em; height: .55em; color: var(--c-accent); flex: none; }
.kinetic__row--outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .4); }
.kinetic__row--outline svg { color: transparent; stroke: rgba(255, 255, 255, .6); stroke-width: 6; }

/* ==========================================================================
   Metodo
   ========================================================================== */
.process__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process__sticky { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 28px; }
.steps { position: relative; padding-left: 76px; }
.steps__line { position: absolute; left: 20px; top: 8px; bottom: 8px; width: 1px; background: var(--c-line-strong); }
.steps__line i { position: absolute; inset: 0; background: linear-gradient(var(--c-highlight), var(--c-accent)); transform-origin: top; transform: scaleY(1); }
.steps__list { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.step { position: relative; }
.step__dot {
  position: absolute; left: -76px; top: -4px; width: 41px; height: 41px; border-radius: var(--radius-small);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--c-muted);
  background: var(--c-bg); border: 1px solid var(--c-line-strong);
  transition: background-color .4s, color .4s, border-color .4s;
}
.step.is-active .step__dot { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg-deep); }
.step__title { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px; }
.step p { max-width: 48ch; }
.step__out {
  display: inline-block; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--c-highlight);
  border: 1px solid var(--c-line); border-radius: var(--radius-small); padding: 6px 10px;
}
.js-motion .step { opacity: .35; transition: opacity .5s; }
.js-motion .step.is-active { opacity: 1; }
@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
}
@media (max-width: 600px) {
  .steps { padding-left: 60px; }
  .step__dot { left: -60px; width: 36px; height: 36px; }
  .steps__line { left: 18px; }
}

/* ==========================================================================
   Perché Privion
   ========================================================================== */
.principles__head { display: flex; flex-direction: column; gap: 24px; max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-surface); border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px;
}
.pcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%);
}
.pcard:hover::before { opacity: 1; }
.pcard--accent { background: var(--c-surface-2); }
.pcard--accent::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--g-sheen); }
.pcard__icon { width: 40px; height: 40px; color: var(--c-accent); stroke-width: 1.2; margin-bottom: 24px; }
.pcard h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.pcard ul { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 10px; }
.pcard li { font-size: 14px; color: var(--c-text-soft); display: flex; align-items: center; gap: 10px; }
.pcard li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--c-accent); rotate: 45deg; flex: none; }
@media (max-width: 900px) { .principles__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq__side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__list { border-bottom: 1px solid var(--c-line); }
.qa { border-top: 1px solid var(--c-line); }
.qa h3 { font-size: inherit; }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; text-align: left;
  font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--c-text);
  transition: color .25s;
}
.qa button:hover { color: var(--c-highlight); }
.qa button i { position: relative; width: 32px; height: 32px; flex: none; border-radius: var(--radius-small); background: rgba(255, 255, 255, .08); transition: background-color .3s, rotate .5s var(--ease-out); }
.qa button i::before, .qa button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.4px; background: currentColor; translate: -50% -50%; }
.qa button i::after { rotate: 90deg; }
.qa button[aria-expanded="true"] i { rotate: 135deg; background: var(--c-accent); color: var(--c-bg-deep); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.qa__panel > div { overflow: hidden; }
.qa__panel p { padding: 0 56px 28px 0; max-width: 62ch; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__side { position: static; }
  .qa__panel p { padding-right: 0; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding-bottom: var(--section-y); }
.cta__card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-bg-deep); border-radius: var(--radius-card);
  padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 88px);
  display: flex; flex-direction: column; gap: 32px;
}
.cta__glow {
  position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 65%);
  filter: blur(30px);
}
.cta__title { font-size: clamp(48px, 9vw, 140px); line-height: .95; letter-spacing: -.05em; max-width: 12ch; text-wrap: balance; }
.cta__lede { max-width: 58ch; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); margin-top: 16px; align-items: start; }

/* Modulo di contatto (Web3Forms) */
.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-soft);
}
.field label span { margin-left: 6px; color: var(--c-faint); letter-spacing: .06em; text-transform: none; font-family: var(--font); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; appearance: none; font: inherit; font-size: 16px; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-small);
  padding: 14px 16px; transition: border-color .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); background: var(--c-surface-2); }
.field [aria-invalid="true"] { border-color: #E5534B; }
.field__select { position: relative; }
.field__select select { padding-right: 44px; cursor: pointer; }
.field__select option { background: var(--c-surface); color: var(--c-text); }
.field__select svg { position: absolute; right: 18px; top: 50%; width: 12px; height: 8px; translate: 0 -50%; color: var(--c-muted); pointer-events: none; }
.field__error { font-size: 14px; color: #F08A84; }
.form__foot { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; margin-top: 6px; }
.form__note { max-width: 36ch; font-size: 14px; color: var(--c-muted); }
.form__error { font-size: 15px; color: #F08A84; max-width: 60ch; }
.form__error a { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-done { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-card); background: var(--c-surface); }
.form-done__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.form-done__title:focus { outline: none; }
.form-done p:last-child { color: var(--c-muted); }
.form-done b { color: var(--c-text); font-weight: 500; }

/* Vie dirette */
.cta__aside { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.cta__aside-title { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.02em; color: var(--c-text); }
.contact-list { border-top: 1px solid var(--c-line); }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 8px; }
.contact-list dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); }
.contact-list dd { color: var(--c-text-soft); }
.contact-link { color: var(--c-text); background: linear-gradient(var(--c-accent), var(--c-accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); font-variant-numeric: tabular-nums; }
.contact-link:hover { background-size: 100% 1px; }
@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
}
.email {
  display: inline-flex; align-items: center; gap: 4px; width: max-content; max-width: 100%;
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-small); padding: 4px 4px 4px 16px;
}
.email__addr { font-family: var(--font-mono); font-size: 14px; color: var(--c-text); margin-right: 12px; overflow-wrap: anywhere; }
.email__addr:hover { text-decoration: underline; text-underline-offset: 3px; }
.email__copy {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text);
  background: var(--c-surface-2); padding: 10px 12px; border-radius: 4px; min-width: 76px; transition: background-color .25s, color .25s;
}
.email__copy:hover { background: #2A2A2A; }
.email__copy.is-done { background: var(--c-accent); color: var(--c-bg-deep); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--c-bg-deep); padding-top: clamp(80px, 9vw, 120px); overflow: clip; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer__brand p { max-width: 32ch; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 6px; }
.footer__col a { color: var(--c-text-soft); font-size: 15px; width: max-content; transition: color .25s; }
.footer__col a:hover { color: var(--c-accent); }
.footer__mark {
  display: flex; justify-content: center;
  font-size: calc(min(100vw - 2 * var(--gutter), var(--max)) / 2.8); font-weight: 500; line-height: 1.12; letter-spacing: -.06em;
  color: #1A1A1A; margin-top: -.18em; white-space: nowrap;
  overflow: clip; user-select: none;
}
.footer__mark .char { display: inline-block; will-change: transform; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--c-line); padding-block: 24px 32px;
  font-size: 13px; color: var(--c-faint);
}
.footer__bottom a:hover { color: var(--c-text); }
/* Chi c'è dietro il marchio: una riga a sé, sotto copyright e link */
.footer__who { order: 1; flex-basis: 100%; line-height: 1.6; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Pagine legali (privacy.html, cookie.html)
   Testo lungo da leggere davvero: colonna stretta, corpo più grande, indice fisso a lato.
   ========================================================================== */
.legal { padding-block: calc(var(--nav-h) + clamp(48px, 7vw, 104px)) var(--section-y); }
.legal__head { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.legal__title { font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -.05em; text-wrap: balance; }
/* Nascosto dal primo fotogramma finché main.js non lo divide in righe e lo fa entrare.
   Se main.js o le librerie non arrivano, ricompare da solo dopo 2,5 s. */
.js-intro .legal__title { opacity: 0; animation: intro-failsafe 0s 2.5s forwards; }
@keyframes intro-failsafe { to { opacity: 1; } }
.legal__lede { max-width: 56ch; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-mono); font-size: 12px; color: var(--c-faint); }

.legal__brief {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--c-line); border-radius: var(--radius-card); background: var(--c-surface);
  display: grid; grid-template-columns: 200px 1fr; gap: 24px 48px; align-items: start;
}
.legal__brief .eyebrow { padding-top: 6px; }
.legal__brief ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.legal__brief li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--c-text-soft); }
.legal__brief li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--c-accent); }

.legal__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); margin-top: clamp(56px, 7vw, 96px); }
.legal__toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.legal__toc .footer__label { margin-bottom: 10px; }
.legal__toc a {
  display: flex; gap: 12px; padding: 6px 0; font-size: 14px; line-height: 1.35; color: var(--c-faint);
  transition: color .25s;
}
.legal__toc a span { font-family: var(--font-mono); font-size: 11px; padding-top: 2px; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--c-text); }

.legal__body { max-width: 68ch; display: flex; flex-direction: column; gap: clamp(48px, 5vw, 72px); }
.legal__sec { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: calc(var(--nav-h) + 32px); }
.legal__sec h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.legal__sec h2 span { flex: none; font-family: var(--font-mono); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--c-faint); }
.legal__sec h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin-top: 8px; }
.legal__sec p, .legal__sec li { font-size: 17px; line-height: 1.7; color: var(--c-text-soft); }
.legal__sec b { font-weight: 500; color: var(--c-text); }
.legal__sec a:not(.btn) { color: var(--c-text); background: linear-gradient(var(--c-line-strong), var(--c-line-strong)) 0 100% / 100% 1px no-repeat; transition: background-size .3s, color .2s; }
.legal__sec a:not(.btn):hover { color: var(--c-accent); background-image: linear-gradient(var(--c-accent), var(--c-accent)); }
.legal__sec ul { display: flex; flex-direction: column; gap: 10px; }
.legal__sec ul li { position: relative; padding-left: 22px; }
.legal__sec ul li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 8px; height: 1px; background: var(--c-text-soft); }
.legal__note { padding: 18px 20px; border-left: 1px solid var(--c-line-strong); background: rgba(255, 255, 255, .03); border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.legal__sec .legal__note p { font-size: 15px; }

/* Tabelle: righe a tutta larghezza; sotto i 700 px ogni riga diventa una scheda con le etichette */
.legal__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.legal__table th {
  text-align: left; vertical-align: bottom; padding: 0 16px 12px 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint);
  border-bottom: 1px solid var(--c-line-strong);
}
.legal__table td { vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--c-line); color: var(--c-text-soft); }
.legal__table td:first-child { color: var(--c-text); width: 34%; }
.legal__table small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--c-faint); }

.legal__next {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 3vw, 32px); border: 1px dashed var(--c-line-strong); border-radius: var(--radius-card);
  transition: border-color .3s, background-color .3s;
}
.legal__next p { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -.02em; color: var(--c-text); }
.legal__next .eyebrow { margin-bottom: 12px; }
.legal__next:hover { border-color: var(--c-accent); background: var(--c-surface); }
.legal__next:hover .arrow-btn { background: var(--c-accent); color: var(--c-bg-deep); }
.legal__next:hover .arrow-btn svg { transform: rotate(45deg); }

/* Dati da inserire prima di pubblicare: volutamente impossibili da non vedere */
.todo {
  font-family: var(--font-mono); font-size: .86em; color: #FFD95A;
  background: rgba(255, 217, 90, .1); outline: 1px dashed rgba(255, 217, 90, .6); outline-offset: 1px; border-radius: 3px; padding: 0 4px;
}

@media (max-width: 1000px) {
  .legal__brief { grid-template-columns: 1fr; }
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}
@media (max-width: 700px) {
  .legal__brief ul { grid-template-columns: 1fr; }
  .legal__sec p, .legal__sec li { font-size: 16px; }
  .legal__table thead { display: none; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table tr { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
  .legal__table td, .legal__table td:first-child { width: 100%; padding: 4px 0; border: 0; }
  .legal__table td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 8px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint);
  }
  .legal__table td:first-child { font-size: 16px; }
  .legal__next { flex-direction: column; align-items: flex-start; }
}

.footer__legal { display: flex; gap: 20px; }

/* ==========================================================================
   Pagina 404 (404.html): il buco nero
   Il canvas lo disegna blackhole.js; --void-y è l'altezza del centro del buco, condivisa da
   canvas (tramite .void__anchor) e anello di riserva, così restano allineati.
   ========================================================================== */
.page-void { background: #000; }
.void { --void-y: 44%; position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #000; }
.void__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.void__anchor { position: absolute; left: 50%; top: var(--void-y); width: 0; height: 0; }

/* Sfumatura dietro al testo: lo rende leggibile anche dove passano le particelle del disco */
.void::after {
  content: ""; position: absolute; z-index: 1; left: 0; bottom: 0; width: min(900px, 100%); height: 70%; pointer-events: none;
  background: radial-gradient(ellipse 70% 75% at 0% 100%, rgba(0, 0, 0, .82), rgba(0, 0, 0, .5) 45%, transparent 75%);
}
.void__hud { z-index: 5; }
.void__path { max-width: min(42vw, 420px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: .04em; }
.void__hint-touch { display: none; }
@media (hover: none) {
  .void__hint-fine { display: none; }
  .void__hint-touch { display: inline; }
}

.void__copy { gap: 18px; pointer-events: none; }
.void__copy a { pointer-events: auto; }
.void__title { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.02; }
.void__copy .lede { max-width: 46ch; }

.void__foot {
  position: absolute; z-index: 6; left: calc(var(--gutter) + 22px); bottom: 40px;
  display: flex; gap: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint);
}
.void__foot a { transition: color .25s; }
.void__foot a:hover { color: var(--c-text); }

/* Senza JavaScript: l'anello disegnato in CSS, fermo */
.void__fallback { position: absolute; inset: 0; pointer-events: none; }
.void-live .void__fallback { display: none; }
.void__ring {
  position: absolute; left: 50%; top: var(--void-y); translate: -50% -50%; width: min(46vw, 620px); aspect-ratio: 3.4; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 30%, rgba(255, 255, 255, .85) 36%, rgba(255, 255, 255, .22) 55%, transparent 100%);
}
.void__ring::before {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 48px 8px rgba(255, 255, 255, .22);
}

@media (max-width: 700px) {
  .void { --void-y: 33%; }
  .void::after { width: 100%; height: 62%; background: linear-gradient(to top, rgba(0, 0, 0, .9) 35%, transparent); }
  .void__copy { bottom: 64px; }
  .void__hud .hud__tr { display: none; }
  .void__hud .hud__br { display: none; }
  .void__foot { left: var(--gutter); bottom: 22px; }
}
@media (max-width: 700px) and (max-height: 720px) {
  /* Telefoni bassi: il buco sale e il testo si compatta, altrimenti gli finisce sopra */
  .void { --void-y: 26%; }
  .void__copy { gap: 12px; bottom: 56px; }
  .void__title { font-size: 28px; }
  .void__copy .lede { font-size: 14px; }
  .void__copy .btn { padding: 0 16px; }
  .void__hud .hud__tl { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor { display: none !important; }
}
