/* Rumbo — rumbo.llc · v6
   Palette: nero carbonio (superfici) · acciaio (wordmark, punti, filetti) · oro brillante solo su ciò che conta
   (CTA, rotta, stato attivo, rilevamento). Raggi: spigolo vivo (0).
   Tipografia da moda, una famiglia sola: Helvetica Neue per titoli e HUD (local(): è sul Mac e sull'iPhone;
   altrove Schibsted Grotesk, OFL, self-hosted), Source Sans 3 (OFL) per il testo. Niente corsivo.
   Il wordmark RUMBO resta Rumbo Wide (è il logo). Licenze in assets/fonts/LICENSE-*. */

/* Helvetica Neue non si può ospitare: si prende dal sistema per peso; dove manca, Schibsted Grotesk */
@font-face { font-family: "Rumbo Grotesk"; src: local("Helvetica Neue Light"), local("HelveticaNeue-Light"), url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Rumbo Grotesk"; src: local("Helvetica Neue"), local("HelveticaNeue"), url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rumbo Grotesk"; src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium"), url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rumbo Grotesk"; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-var-latin.woff2") format("woff2-variations"), url("../fonts/source-sans-3-var-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

@font-face {
  font-family: "Rumbo Wide";
  src: url("../fonts/rumbo-wide.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

:root {
  --c0: #0B0B0C;
  --c1: #111113;
  --c2: #17181B;
  --s9: #2A2C30;
  --s8: #383B40;
  --s7: #4A4E55;
  --s5: #8B9097;
  --s3: #B4B8BE;
  --s1: #D3D6DA;
  --ink: #E8EAED;
  /* oro v6: ombra, base, luce. Brillante, ma solo dove conta */
  --g6: #A8741A;
  --g4: #E2B33C;
  --g2: #FFE08A;
  --gold-fill: linear-gradient(100deg, #A8741A 0%, #D9A632 22%, #E2B33C 34%, #FFE08A 46%, #FFF1C2 50%, #FFE08A 54%, #E2B33C 66%, #C38F25 82%, #A8741A 100%);
  --steel-fill: linear-gradient(180deg, #E1E3E6 0%, #B9BDC3 30%, #8B9097 58%, #9DA2A9 70%, #5A5E65 100%);

  /* font come token: cambiare famiglia = cambiare una riga (il wordmark della scena legge --f-display) */
  --f-display: "Rumbo Wide", "Helvetica Neue", Arial, sans-serif;
  --f-head: "Rumbo Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif; /* Proxima Nova, se arriva la licenza: una riga */
  --f-accent: var(--f-head); /* niente corsivo: l'accento è peso o niente */
  --f-mono: var(--f-head);   /* HUD e micro-testi: Helvetica Neue maiuscolo spaziato, niente mono */

  --gut: 48px;
  --sec: clamp(96px, 13vh, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;

  /* z-index: scena 1 · scrim 2 · interfaccia 3 · nav 50 · cursore 80 · grana 90 */
}
@media (max-width: 1023px) { :root { --gut: 32px; } }
@media (max-width: 767px) { :root { --gut: 16px; --nav-h: 58px; --sec: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--c0); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--c0);
  /* trama carbonio, appena percepibile */
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .011) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .32) 0 1px, transparent 1px 5px);
  color: var(--s3);
  font-family: var(--f-text);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::after {
  /* grana fissa, mai su contenitori che scorrono */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3, .btn, .drift-row, .mt-num, .criteri p, .plate-data dd, .fn-done-t { font-family: var(--f-head); }
em { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
::selection { background: var(--g4); color: var(--c0); }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--g4); outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gut); top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--g4); color: var(--c0);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

.wrap { padding-left: var(--gut); padding-right: var(--gut); }

.idx, .hud, .r-k, .mc-log-k, .plate-ref, .plate-data dt, .gauge figcaption, .foot-row {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--s5);
}
.idx { margin-bottom: clamp(28px, 4.5vh, 48px); display: flex; align-items: center; gap: 14px; }
.idx::before { content: ""; width: 28px; height: 1px; background: var(--s7); }

.steel-text { color: var(--s3); } /* acciaio pieno: niente testo cromato a gradiente */

/* ------------------------------------------------------------------ bottoni */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 30px;
  font-family: var(--f-head);
  font-stretch: 118%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .5s var(--ease), background-position .8s var(--ease), color .3s, border-color .3s;
}
.btn > span { position: relative; z-index: 1; display: inline-block; }
.btn-gold {
  color: var(--c0);
  background: var(--gold-fill);
  background-size: 220% 100%;
  background-position: 0% 0;
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, .45), inset 0 -1px 0 rgba(80, 56, 18, .45);
}
.btn-gold { background-size: 260% 100%; animation: rb-sheen 6s linear infinite; }
.btn-gold:hover { animation-duration: 1.8s; }
@keyframes rb-sheen { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.btn-gold:active { transform: scale(.98); }
.btn-line {
  height: 40px;
  padding: 0 18px;
  font-size: 11.5px;
  color: var(--g2);
  border: 1px solid rgba(205, 174, 110, .55);
}
.btn-line:hover { border-color: var(--g2); color: var(--ink); }
.btn-xl { height: 76px; padding: 0 56px; font-size: 15px; letter-spacing: .18em; }

.link-line {
  position: relative;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--s1);
  padding: 6px 0;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--s5); transform-origin: right; transition: transform .6s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); }

/* ---------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gut);
  transition: transform .6s var(--ease), background-color .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 12, .82) 0%, rgba(11, 11, 12, .5) 60%, rgba(11, 11, 12, 0) 100%);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--s1); }
.mark { width: 28px; height: 28px; }
.nav-word { width: auto; height: 13px; }
.nav-links { margin-left: auto; display: flex; gap: 34px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--s3);
  position: relative; padding: 6px 0;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--s1); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav .btn-line { margin-left: auto; height: 36px; padding: 0 14px; font-size: 10.5px; }
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
}
.hero-stage { position: absolute; inset: 0; z-index: 1; }
/* primo frame: l'immagine della scena (renderizzata prima) a schermo subito; la scena vera entra
   in dissolvenza sopra quando ha compilato gli shader */
.hero-first { position: absolute; inset: 0; z-index: 1; display: none; pointer-events: none; }
.hero-first img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.js:not(.reduced):not(.no-webgl) .hero-first { display: block; }
.scene-on .hero-first { opacity: 0; transition: opacity .9s var(--ease); }
.js .hero-stage { opacity: 0; }
.scene-on .hero-stage { opacity: 1; transition: opacity .9s var(--ease); }
.hero-stage canvas { width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .55) 20%, rgba(11, 11, 12, 0) 38%),
    radial-gradient(120% 90% at 50% 46%, rgba(11, 11, 12, 0) 45%, rgba(11, 11, 12, .55) 100%);
}
.hero-anchor {
  position: absolute; left: 50%; top: 45%;
  width: min(68vh, 48vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  visibility: hidden; pointer-events: none;
}
.hero-word-anchor { position: absolute; left: var(--gut); right: var(--gut); top: 45%; height: 0; visibility: hidden; }

.hero-fallback { position: absolute; inset: 0; z-index: 1; display: none; }
.no-js .hero-fallback, .no-webgl .hero-fallback, .reduced:not(.scene-on) .hero-fallback { display: block; }
.fb-word {
  position: absolute; left: var(--gut); right: var(--gut); top: 45%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: calc((100vw - 2 * var(--gut)) / 4.84);
  line-height: .7;
  margin-left: -.085em;
  white-space: nowrap;
  background: linear-gradient(180deg, #C4C8CE 0%, #8D9299 36%, #5C6168 52%, #767B83 60%, #26282C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-top: .02em;
}
.fb-instrument {
  position: absolute; left: 50%; top: 45%;
  width: calc(min(68vh, 48vw) / .84); height: auto; /* l'immagine ha l'8% di margine per lato */
  transform: translate(-50%, -50%);
}

.hero-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-ui a, .hero-ui .hero-side { pointer-events: auto; }
.hud { position: absolute; top: calc(var(--nav-h) + 26px); display: flex; flex-direction: column; gap: 4px; }
.hud-tl { left: var(--gut); }
.hud-tl span:first-child { color: var(--s1); }
.hud-tr { right: var(--gut); align-items: flex-end; }
.hud-row { display: flex; gap: 18px; justify-content: flex-end; }
.hud-v { color: var(--s1); min-width: 7ch; text-align: right; font-variant-numeric: tabular-nums; }
.hud-tr.is-locked .hud-v[data-bearing], .hud-tr.is-locked [data-bearing-k] { color: var(--g2); }

.hero-title {
  position: absolute;
  left: var(--gut);
  bottom: clamp(36px, 6vh, 60px);
  margin: 0;
  max-width: 62%;
  font-weight: 500;
  font-stretch: 106%;
  font-size: clamp(2.6rem, 4.9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  color: var(--ink);
}
.ht-line { display: block; overflow: visible; }
.ht-1 .ht-in { display: inline-block; }
.ht-2 { padding-bottom: .06em; }
.ht-in { display: inline-block; }
.ht-gold {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--s1);
  transition: color 1s var(--ease);
  padding-right: .06em;
}
.is-locked .ht-gold, .reduced .ht-gold, .no-js .ht-gold, .no-webgl .ht-gold { color: var(--g4); }
.ht-char { display: inline-block; will-change: transform; }

.hero-side {
  position: absolute;
  right: var(--gut);
  bottom: clamp(36px, 6vh, 60px);
  width: min(380px, 28vw);
}
.hero-sub { font-size: 16.5px; line-height: 1.5; color: var(--s3); }
.hero-ctas { display: flex; align-items: center; gap: 28px; margin-top: 26px; }
.hero-micro { margin-top: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--s5); }

@media (max-width: 1023px) and (min-width: 768px) {
  .hero-title { max-width: 58%; font-size: 5.6vw; }
  .hero-side { width: 34vw; }
}
@media (max-width: 767px) {
  .hud { top: calc(var(--nav-h) + 12px); font-size: 10px; }
  .hud-tr .hud-row:last-child { display: none; }
  .hero-title {
    top: calc(var(--nav-h) + 62px);
    bottom: auto;
    right: var(--gut);
    max-width: none;
    font-size: clamp(2.3rem, 11.4vw, 3.4rem);
    line-height: 1;
  }
  .hero-anchor { top: 51%; width: min(82vw, 44svh); }
  .hero-word-anchor { top: 51%; }
  .fb-word { top: 51%; }
  .fb-instrument { top: 51%; width: calc(min(82vw, 44svh) / .84); }
  .hero-side { left: var(--gut); right: var(--gut); width: auto; bottom: 22px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { margin-top: 18px; gap: 22px; }
  .hero-ctas .btn { flex: 1 1 auto; max-width: 220px; }
  .hero-micro { margin-top: 14px; font-size: 10px; }
  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(11, 11, 12, .96) 0%, rgba(11, 11, 12, .7) 22%, rgba(11, 11, 12, 0) 34%),
      linear-gradient(180deg, rgba(11, 11, 12, .7) 0%, rgba(11, 11, 12, 0) 26%);
  }
}

/* ---------------------------------------------------------------- manifesto */
.manifesto { position: relative; padding: var(--sec) 0; overflow: hidden; }
.drift { position: absolute; left: 0; right: 0; top: calc(var(--sec) + 64px); pointer-events: none; z-index: 0; }
.drift-row {
  display: flex; gap: 5vw; white-space: nowrap; width: max-content;
  font-family: var(--f-head); font-stretch: 125%; font-weight: 700;
  font-size: 15vw; line-height: .8; text-transform: uppercase; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(139, 144, 151, .16);
}
.manifesto .wrap { position: relative; z-index: 1; }
.m-title {
  font-weight: 500; font-stretch: 108%;
  font-size: clamp(2.6rem, 6.4vw, 7.6rem);
  line-height: .98; letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: clamp(56px, 10vh, 120px);
}
.m-l1, .m-l2 { display: block; }
.m-l2 { padding-left: 16.66%; }
.m-l2 em { color: var(--s1); }
.m-body {
  margin-left: 50%;
  max-width: 31em;
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  line-height: 1.42;
  letter-spacing: -.005em;
  color: var(--ink);
}
.m-body .w { opacity: .2; transition: none; }
.reduced .m-body .w, .no-js .m-body .w { opacity: 1; }
@media (max-width: 767px) {
  .m-l2 { padding-left: 0; }
  .m-body { margin-left: 0; }
  .drift { top: calc(var(--sec) + 40px); }
  .drift-row { font-size: 24vw; }
}

/* -------------------------------------------------------------------- ruoli */
.ruoli { padding: var(--sec) 0; }
.r-title {
  font-weight: 500; font-stretch: 108%;
  font-size: clamp(2.4rem, 5.3vw, 6.4rem);
  line-height: 1; letter-spacing: -.03em; color: var(--ink);
}
.r-a, .r-b { display: block; }
.r-b { padding-bottom: .08em; }
.r-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--gut);
  margin-top: clamp(64px, 12vh, 140px);
  align-items: start;
}
.r-k { margin-bottom: 28px; font-weight: 400; }
.r-tu-list li {
  font-family: var(--f-head); font-style: normal; font-weight: 300;
  font-size: clamp(2.4rem, 4.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.015em;
  color: var(--ink);
}
.r-noi-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--s9);
}
.r-noi-list li {
  position: relative;
  padding: 22px 22px 30px 0;
  border-bottom: 1px solid var(--s9);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.3;
  color: var(--s1);
  min-height: 132px;
}
.r-noi-list li:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid var(--s9); }
.r-noi-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--s3); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.js:not(.reduced) .r-noi-list li { opacity: .3; transition: opacity .9s var(--ease); }
.js:not(.reduced) .r-noi-list li.is-on { opacity: 1; }
.r-noi-list li.is-on::before, .reduced .r-noi-list li::before { transform: scaleX(1); }
.r-noi-list li.is-on .n { color: var(--s1); }
.r-noi-list .n { display: block; margin-bottom: 26px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--s5); }
@media (max-width: 900px) {
  .r-grid { grid-template-columns: 1fr; gap: 72px; }
}
@media (max-width: 767px) {
  .r-noi-list { grid-template-columns: 1fr; }
  .r-noi-list li, .r-noi-list li:not(:nth-child(3n + 1)) { padding: 16px 0 18px; border-left: 0; min-height: 0; display: flex; gap: 18px; align-items: baseline; }
  .r-noi-list .n { margin: 0; flex: 0 0 auto; }
}

/* ------------------------------------------------------------------- metodo */
.metodo { position: relative; }
.mt-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.mt-track { position: relative; display: flex; height: 100%; width: max-content; }
.mt-chart {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(139, 144, 151, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(139, 144, 151, .045) 1px, transparent 1px);
  background-size: 160px 100%, 100% 160px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.mt-route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.mt-route-plan { fill: none; stroke: var(--s7); stroke-width: 1; stroke-dasharray: 2 7; }
.mt-route-done { fill: none; stroke: var(--g4); stroke-width: 1.5; }
.mt-vessel path { fill: var(--g2); }
.mt-panel {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  height: 100%;
  padding: calc(var(--nav-h) + 40px) var(--gut) clamp(56px, 12vh, 120px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mt-intro { width: 50vw; justify-content: center; }
.mt-step { width: 58vw; padding-left: calc(var(--gut) + 3vw); }
.mt-title {
  font-weight: 500; font-stretch: 112%;
  font-size: clamp(3rem, 7.4vw, 9rem); line-height: .95; letter-spacing: -.035em; color: var(--ink);
}
.mt-title em { color: var(--s1); }
.mt-num {
  position: absolute; left: calc(var(--gut) + 3vw); top: calc(var(--nav-h) + 4vh);
  font-stretch: 125%; font-weight: 700;
  font-size: clamp(9rem, 22vw, 24rem); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(180, 184, 190, .38);
}
.mt-step h3 {
  font-weight: 500; font-stretch: 112%;
  font-size: clamp(2.2rem, 4vw, 4.6rem); line-height: 1; letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 22px;
}
.mt-step p { max-width: 27em; font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.5; color: var(--s3); }
.mt-wp {
  position: absolute; left: calc(var(--gut) + 3vw + 4px); top: 52%;
  width: 11px; height: 11px; transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--s5); background: var(--c0); z-index: 3;
  transition: background-color .5s, border-color .5s;
}
@media (min-width: 900px) {
  .mt-step:nth-of-type(1) .mt-wp { top: 50%; }
  .mt-step:nth-of-type(2) .mt-wp { top: 41%; }
  .mt-step:nth-of-type(3) .mt-wp { top: 57%; }
}
.mt-wp.is-reached { background: var(--g4); border-color: var(--g2); }

@media (max-width: 899px) {
  .mt-pin { height: auto; overflow: visible; }
  .mt-track { flex-direction: column; width: auto; height: auto; }
  .mt-panel, .mt-intro, .mt-step { width: auto; height: auto; padding: 0 var(--gut) 0 calc(var(--gut) + 34px); }
  .mt-intro { padding: var(--sec) var(--gut) 72px; }
  .mt-step { padding-bottom: 88px; padding-top: 0; }
  .mt-num { position: relative; left: auto; top: auto; display: block; font-size: 34vw; margin: 0 0 18px -.04em; }
  .mt-wp { left: calc(var(--gut) + 6px); top: 0.4em; }
  .mt-route { left: 0; }
  .mt-chart { background-size: 100% 0, 100% 120px; }
}

/* ----------------------------------------------------------------- macchina */
.macchina { padding: var(--sec) 0; }
.mc-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 120px); align-items: center; }
.mc-dial { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; }
.mc-dial svg { width: 100%; height: 100%; overflow: visible; }
.mc-dial svg * { vector-effect: non-scaling-stroke; }
.dial-tick { stroke: var(--s7); stroke-width: 1; }
.dial-tick.h { stroke: var(--s5); stroke-width: 1.2; }
.dial-tick.q { stroke: var(--s1); stroke-width: 1.6; }
.dial-num { font-family: var(--f-mono); font-size: 13px; fill: var(--s5); letter-spacing: .08em; }
.dial-ring { fill: none; stroke: var(--s9); }
.dial-hand { stroke: var(--g4); stroke-width: 1.6; }
.dial-tail { stroke: var(--s5); stroke-width: 3; }
.dial-hub { fill: var(--c0); stroke: var(--g4); stroke-width: 1.5; }
.dial-ev { fill: var(--c0); stroke: var(--s3); stroke-width: 1.2; transition: fill .4s, stroke .4s; }
.dial-ev.is-on { fill: var(--g4); stroke: var(--g2); }
.dial-label { font-family: var(--f-mono); font-size: 11px; fill: var(--s5); letter-spacing: .1em; text-transform: uppercase; }
.mc-title {
  font-weight: 500; font-stretch: 108%;
  font-size: clamp(2.2rem, 4.2vw, 4.9rem); line-height: 1.02; letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 36px;
}
.mc-body { max-width: 34em; color: var(--s3); font-size: 17.5px; }
.mc-log { margin-top: 48px; border-top: 1px solid var(--s9); padding-top: 22px; }
.mc-log-k { margin-bottom: 16px; }
.mc-log ol { font-family: var(--f-mono); font-size: 14px; line-height: 1.5; color: var(--s3); display: grid; gap: 10px; }
.mc-log li { display: flex; gap: 12px; align-items: baseline; transition: color .4s; }
.mc-log li::before { content: "›"; color: var(--s7); transition: color .4s; }
.mc-log li span { color: var(--s1); }
.mc-log li i { font-style: normal; color: var(--s5); }
.mc-log li.is-on { color: var(--ink); }
.mc-log li.is-on::before { color: var(--g4); }
@media (max-width: 900px) {
  .mc-grid { grid-template-columns: 1fr; gap: 56px; }
  .mc-dial { width: 86%; margin: 0 auto; }
}

/* --------------------------------------------------------------------- caso */
.caso { padding: calc(var(--sec) * .6) 0 var(--sec); perspective: 1600px; }
.plate {
  position: relative;
  padding: clamp(28px, 4.6vw, 76px);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 18%, rgba(211, 214, 218, .07) 34%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0) 70%, rgba(211, 214, 218, .05) 82%, rgba(255, 255, 255, 0) 92%),
    linear-gradient(180deg, #2E3035 0%, #24262A 45%, #1C1D20 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .7), 0 50px 90px -40px rgba(0, 0, 0, .9);
  transform-origin: 50% 0;
}
.plate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 2px, rgba(0, 0, 0, .12) 2px 3px, transparent 3px 5px);
  box-shadow: inset 0 0 0 1px rgba(211, 214, 218, .08);
}
.plate > * { position: relative; }
.plate-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.plate-head .idx { color: var(--s3); }
.plate-ref { color: var(--s3); border: 1px solid var(--s7); padding: 6px 10px; }
.cs-title {
  font-weight: 500; font-stretch: 108%;
  font-size: clamp(2.3rem, 5vw, 6rem); line-height: 1; letter-spacing: -.03em; color: var(--ink);
  max-width: 13em;
}
.cs-title em { color: var(--s1); }
.cs-body { margin-top: 28px; max-width: 32em; color: var(--s1); font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.plate-data {
  margin-top: clamp(48px, 7vh, 84px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid rgba(211, 214, 218, .14);
}
.plate-data > div { grid-column: span 3; padding: 20px 20px 24px 0; border-bottom: 1px solid rgba(211, 214, 218, .14); }
.plate-data > div.is-redacted { grid-column: span 4; }
.plate-data > div + div:not(:nth-child(5)) { padding-left: 20px; border-left: 1px solid rgba(211, 214, 218, .14); }
.plate-data dt { color: var(--s5); margin-bottom: 12px; }
.plate-data dd { font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--ink); font-stretch: 104%; }
.plate-data .bar {
  display: block; height: 1.1em; width: 78%;
  background: linear-gradient(180deg, #A9AEB5 0%, #7C8188 50%, #5F636A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  transform-origin: left; transform: scaleX(var(--bar, 1));
}
.is-redacted:nth-child(6) .bar { width: 92%; }
.is-redacted:nth-child(7) .bar { width: 56%; }
.plate-foot { margin-top: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--s3); }
@media (max-width: 767px) {
  .plate-head { flex-direction: column-reverse; gap: 18px; }
  .plate-ref { align-self: flex-start; }
  .plate-data > div, .plate-data > div.is-redacted { grid-column: span 6; padding: 16px 12px 18px 0; }
  .plate-data > div + div:not(:nth-child(5)) { padding-left: 0; border-left: 0; }
  .plate-data > div:nth-child(even) { padding-left: 14px !important; border-left: 1px solid rgba(211, 214, 218, .14) !important; }
  .plate-data > div.is-redacted:last-child { grid-column: span 12; padding-left: 0 !important; border-left: 0 !important; }
}

/* ------------------------------------------------------------------ modello */
.modello { padding: var(--sec) 0; text-align: center; }
.modello .idx { justify-content: center; }
.modello .idx::after { content: ""; width: 28px; height: 1px; background: var(--s7); }
.md-title {
  font-weight: 500; font-stretch: 110%;
  font-size: clamp(2.8rem, 7.6vw, 9rem); line-height: 1; letter-spacing: -.035em; color: var(--ink);
}

.md-gauges { display: flex; align-items: center; justify-content: center; gap: 0; margin: clamp(48px, 8vh, 96px) auto 0; }
.gauge { width: min(300px, 38vw); }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge svg * { vector-effect: non-scaling-stroke; }
.gauge figcaption { margin-top: 10px; color: var(--s3); }
.md-link { width: clamp(40px, 8vw, 120px); height: 1px; background: var(--s7); margin-top: -26px; position: relative; }
.md-link::before, .md-link::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border: 1px solid var(--s5); transform: rotate(45deg); background: var(--c0); }
.md-link::before { left: -4px; } .md-link::after { right: -4px; }
.g-arc { fill: none; stroke: var(--s9); stroke-width: 1; }
.g-tick { stroke: var(--s7); stroke-width: 1; }
.g-tick.m { stroke: var(--s5); stroke-width: 1.4; }
.g-needle { stroke: var(--s1); stroke-width: 2; stroke-linecap: square; }
.g-hub { fill: var(--c0); stroke: var(--s1); stroke-width: 1.5; }
.md-body { margin: clamp(40px, 6vh, 64px) auto 0; max-width: 30em; font-size: clamp(1.08rem, 1.4vw, 1.35rem); line-height: 1.5; color: var(--s3); }

/* ------------------------------------------------------------------ per chi */
.perchi { padding: var(--sec) 0; }
.pc-title {
  font-weight: 500; font-stretch: 108%;
  font-size: clamp(2.4rem, 5.3vw, 6.4rem); line-height: 1; letter-spacing: -.03em; color: var(--ink);
  max-width: 11em;
}
.pc-title em { color: var(--s1); }
.criteri { margin-top: clamp(56px, 9vh, 110px); counter-reset: c; }
.criteri li {
  position: relative;
  display: grid; grid-template-columns: minmax(90px, 2fr) 10fr; gap: var(--gut);
  align-items: baseline;
  padding: clamp(22px, 3.4vh, 38px) 0;
  border-top: 1px solid var(--s9);
}
.criteri li:last-child { border-bottom: 1px solid var(--s9); }
.criteri li::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--g4); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.criteri li:hover::after { transform: scaleX(1); }
.rn { font-family: var(--f-head); font-style: normal; font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 4rem); line-height: 1; color: var(--s5); transition: color .5s; }
.criteri li:hover .rn { color: var(--s1); }
.criteri p { font-stretch: 104%; font-size: clamp(1.4rem, 2.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); max-width: 22em; }
@media (max-width: 767px) {
  .criteri li { grid-template-columns: 56px 1fr; gap: 12px; }
}

/* ------------------------------------------------------------------- finale */
.finale {
  position: relative; isolation: isolate; overflow: clip; padding-bottom: var(--sec);
  display: grid; grid-template-columns: minmax(0, calc(56vw + var(--gut))) minmax(0, 1fr); grid-template-rows: auto 1fr;
}
.finale-copy { grid-column: 1; grid-row: 1; }
.fn-form-wrap { grid-column: 1; grid-row: 2; }
.finale-copy, .fn-form-wrap { position: relative; z-index: 3; }
.finale-copy { padding-top: var(--sec); }
.fn-title {
  font-weight: 500; font-stretch: 108%;
  font-size: clamp(2.6rem, 5.4vw, 6.6rem); line-height: 1; letter-spacing: -.03em; color: var(--ink);
  max-width: 9.5em;
}
.fn-title em { color: var(--s1); }
.fn-body { margin-top: 30px; max-width: 26em; font-size: clamp(1.08rem, 1.4vw, 1.35rem); color: var(--s3); }
.fn-direct { margin-top: 22px; color: var(--s5); font-size: 15px; }
.fn-direct a { font-family: var(--f-head); font-size: 15px; letter-spacing: .01em; color: var(--s1); border-bottom: 1px solid var(--s7); padding-bottom: 2px; transition: border-color .4s; }
.fn-direct a:hover { border-color: var(--g4); }


/* il form di candidatura (dalla v3): campi a filo, etichette mono, errori accessibili */
.fn-panel { margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--s8); padding-top: 6px; }
.fn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gut); }
.f-row { grid-column: 1 / -1; position: relative; padding: 22px 0 6px; }
.f-half { grid-column: span 1; }
.f-row label { display: flex; gap: 12px; align-items: baseline; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--s3); }
.f-n { color: var(--s5); }
.f-opt { text-transform: none; letter-spacing: 0; color: var(--s5); }
.f-row input, .f-row select, .f-row textarea {
  display: block; width: 100%; margin-top: 8px; padding: 10px 0 12px;
  font-family: var(--f-text); font-size: 19px; line-height: 1.3; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #6A6F76; border-radius: 0; /* ≥ 3:1 sul fondo */
  transition: border-color .3s, box-shadow .3s;
}
.f-row textarea { resize: vertical; min-height: 84px; }
.f-row select { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--s3) 50%), linear-gradient(-45deg, transparent 50%, var(--s3) 50%); background-position: right 6px top 55%, right 0 top 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.f-row select option { background: var(--c1); color: var(--ink); }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { border-color: var(--g4); box-shadow: 0 1px 0 0 var(--g4); outline: none; }
.f-row.is-invalid input, .f-row.is-invalid select { border-color: #E09A88; }
.f-help { margin-top: 8px; font-size: 14px; color: var(--s5); }
.f-err { margin-top: 8px; font-size: 13px; color: #E8A898; }
.f-err:empty { display: none; }
.f-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.f-status { font-size: 13px; color: #E8A898; }
.f-privacy { grid-column: 1 / -1; margin-top: 18px; font-size: 14px; color: var(--s5); max-width: 46ch; }
.fn-done { padding-top: 22px; }
.fn-done-k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--g2); }
.fn-done-t { margin-top: 14px; font-weight: 500; font-stretch: 108%; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.fn-done-p { margin-top: 16px; max-width: 34em; color: var(--s3); }
.fn-done-p a { color: var(--ink); border-bottom: 1px solid var(--s7); }
.fn-preview { margin: 22px 0 0; padding: 18px 20px; white-space: pre-wrap; font-family: var(--f-text); font-size: 15px; line-height: 1.6; color: var(--s3); background: var(--c1); box-shadow: inset 0 0 0 1px var(--s9); }
.fn-done-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.fn-done-actions .link-line { background: none; border: 0; cursor: pointer; }

@media (max-width: 899px) {
  .finale { display: block; }
  .finale-copy { max-width: none; }
  .btn-xl { height: 64px; padding: 0 40px; font-size: 14px; width: 100%; max-width: 360px; }
}
@media (max-width: 560px) {
  .f-half { grid-column: 1 / -1; }
  .f-actions .btn { width: 100%; max-width: none; }
}

/* ------------------------------------------------------------------- footer */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--s9); }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px var(--gut); }
.foot-coord { color: var(--s3); }
.foot-word {
  font-family: var(--f-display);
  font-size: calc((100vw - 2 * var(--gut)) / 4.84);
  line-height: .74;
  padding: 0 var(--gut);
  margin-left: -.085em;
  margin-bottom: -.12em;
  white-space: nowrap;
  background: linear-gradient(180deg, #8B9097 0%, #4A4E55 45%, #1A1B1E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
@media (max-width: 767px) {
  .foot-row { flex-direction: column; gap: 6px; }
}

/* ------------------------------------------------------------------ cursore */
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; }
.cursor-ring, .cursor-dot { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(211, 214, 218, .55);
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), border-color .4s, opacity .4s;
}
.cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--s1); transition: opacity .3s, background-color .3s; }
.cursor.is-link .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: rgba(211, 214, 218, .8); }
.cursor.is-cta .cursor-ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; border-color: var(--g4); }
.cursor.is-cta .cursor-dot { background: var(--g2); }
.cursor.is-hidden { opacity: 0; }

/* ----------------------------------------------------------- reveal iniziale */
.js:not(.reduced) .hero-ui .hud, .js:not(.reduced) .hero-side { opacity: 0; }
.is-ready .hero-ui .hud, .is-ready .hero-side { opacity: 1 !important; transition: opacity 1.4s var(--ease); }
.line-mask { overflow: hidden; padding-bottom: .24em; margin-bottom: -.24em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.steel-lines { color: var(--s1); }

/* ------------------------------------------------------------- tipografia v6 */
/* una famiglia sola: il contrasto lo fanno peso e dimensione. Titoli 500 stretti, interlinea corta */
body { font-size: 18px; line-height: 1.6; }
h1, h2, h3, .hero-title, .m-title, .r-title, .mt-title, .mc-title, .cs-title, .md-title, .pc-title, .fn-title, .mt-step h3, .criteri p, .plate-data dd, .fn-done-t, .btn, .drift-row, .mt-num, .r-tu-list li, .rn {
  font-stretch: normal;
}
.hero-title, .m-title, .r-title, .mt-title, .mc-title, .cs-title, .md-title, .pc-title, .fn-title { font-weight: 500; letter-spacing: -.035em; }
.hero-title { line-height: .98; }
.ht-gold { font-weight: 700; }
/* HUD e micro-testi: Helvetica Neue maiuscolo, piccolo, spaziato; i gradi a cifre tabulari */
.idx, .hud, .r-k, .mc-log-k, .plate-ref, .plate-data dt, .gauge figcaption, .foot-row, .hero-micro, .nav-links a, .link-line, .skip,
.r-noi-list .n, .plate-foot, .f-row label, .fn-done-k, .mc-log ol, .dial-num, .dial-label {
  font-family: var(--f-head); font-weight: 500; letter-spacing: .15em; font-variant-numeric: tabular-nums;
}
.mc-log ol { font-size: 12.5px; text-transform: uppercase; }
.hud-v { font-variant-numeric: tabular-nums; }
.hud-tr.is-locked .hud-v[data-bearing], .hud-tr.is-locked [data-bearing-k] { color: var(--g2); }
.btn { font-weight: 700; letter-spacing: .18em; }
@media (max-width: 767px) { .mc-log ol { font-size: 11px; letter-spacing: .1em; } .mc-log li { flex-wrap: wrap; gap: 4px 10px; } }
/* reduced-motion: il riflesso della CTA si ferma (un'animazione infinita a 0,01 ms tremolerebbe) */
@media (prefers-reduced-motion: reduce) { .btn-gold, .btn-gold:hover { animation: none !important; background-position: 30% 0; } }
.reduced .btn-gold, .reduced .btn-gold:hover { animation: none; background-position: 30% 0; }

/* ------------------------------------------------------------- finale v7b */
/* il fumo d'oro: fisso sul viewport, disegnato solo dentro la sezione, dietro il form */
.finale-smoke { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
/* al passaggio del fumo il riflesso della CTA si accende appena, dal lato da cui soffia il vento */
.btn-gold[data-aim]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 160% at var(--fx, 100%) var(--fy, 0%), rgba(255, 246, 214, .7), rgba(255, 224, 138, 0) 62%);
  opacity: calc(var(--flow, 0) * .85);
}

/* ------------------------------------------------------------------- grazie */
.page-grazie { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.grazie { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 64px; }
.grazie-t { font-family: var(--f-head); font-weight: 500; font-size: clamp(3rem, 9vw, 9rem); line-height: .96; letter-spacing: -.035em; color: var(--ink); }
.grazie-p { margin: 28px 0 40px; max-width: 30em; font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--s3); }
.grazie-p a { color: var(--ink); border-bottom: 1px solid var(--s7); padding-bottom: 2px; transition: border-color .4s; }
.grazie-p a:hover { border-color: var(--g4); }
