/* ==========================================================================
   HarbourOne · sito vetrina
   Brand A3: Marine Navy #071B2A, Tiffany #35D6C4, bianco; Sea Mist #EAF7F5.
   Tipografia del sito (confermata dal founder il 22/10/2026): Libre Caslon per i titoli, Libre Franklin per testo
   e interfaccia. Le due famiglie sono state disegnate insieme (Impallari Type) e si completano.
   Sezioni alternate Navy e bianco; Tiffany come accento, mai come riempimento decorativo.
   ========================================================================== */

@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/libre-franklin-var-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Display';
  src: url('../fonts/libre-caslon-display-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('../fonts/libre-caslon-text-italic-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #071b2a;
  --navy-2: #0b2436;
  --ink: #04111b;
  --white: #ffffff;
  --canvas: #f5f8f9;
  --mist: #eaf7f5;
  --tif: #35d6c4;
  --tif-rgb: 53, 214, 196;
  --teal: #087f74;
  --lime: #c8ff3d;
  --amber: #f0b860;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --italic: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --wrap: 1240px;
  --nav-h: 76px;
}

/* temi di sezione */
.s-dark {
  --bg: var(--navy);
  --fg: #f2f5f6;
  --fg-2: rgba(242, 245, 246, 0.74);
  --fg-3: rgba(242, 245, 246, 0.52);
  --rule: rgba(242, 245, 246, 0.14);
  --rule-2: rgba(242, 245, 246, 0.3);
  --accent: var(--tif);
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}
.s-light {
  --bg: var(--white);
  --fg: var(--navy);
  --fg-2: #4a6170;
  --fg-3: #64767d;
  --rule: #dfe7ea;
  --rule-2: #b9c8ce;
  --accent: var(--teal);
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--navy); }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: #f2f5f6;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.66;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--tif); color: var(--navy); }
:focus-visible { outline: 2px solid var(--tif); outline-offset: 3px; }
.s-light :focus-visible { outline-color: var(--teal); }
.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: 16px; top: -80px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus-visible { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: calc(1440px + var(--gutter) * 2); }

/* ---------- tipografia ---------- */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.3vw, 60px); line-height: 1.06; max-width: 17ch; }
h1 em, h2 em, .statement em { font-family: var(--italic); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: 16.5px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.lead { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.62; color: var(--fg-2); max-width: 52ch; margin-top: 26px; }
.fine { font-size: 13.5px; line-height: 1.6; color: var(--fg-3); max-width: 62ch; margin-top: 22px; }
.caps { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 2px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 11.5px; }
.s-dark .btn--solid { background: var(--white); color: var(--navy); }
.s-dark .btn--solid:hover { background: var(--tif); }
.s-light .btn--solid { background: var(--navy); color: var(--white); }
.s-light .btn--solid:hover { background: #12344c; }
.btn--line { border-color: var(--rule-2); color: var(--fg); }
.btn--line:hover { border-color: var(--fg); }
.link { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--fg); padding: 6px 0; }
.link::after { content: ''; width: 22px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.link:hover::after { width: 38px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #f2f5f6; --fg: #f2f5f6; --fg-2: rgba(242, 245, 246, 0.74); --rule: rgba(242, 245, 246, 0.14); --rule-2: rgba(242, 245, 246, 0.32); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); border-bottom: 1px solid transparent; }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 36px; max-width: calc(1440px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.nav__brand img { height: 42px; width: auto; }
.nav__links { margin-left: auto; }
.nav__brand + .nav__cta { margin-left: auto; }
.nav__links ul { display: flex; gap: 34px; }
.nav__links a { color: var(--fg-2); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; transition: color 0.3s; }
.nav__links a:hover, .nav__links a[aria-current='true'] { color: var(--fg); }
.nav.is-solid { background: rgba(7, 27, 42, 0.97); border-bottom-color: var(--rule); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__toggle i { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--fg); transition: transform 0.3s var(--ease); }
.nav__toggle i:first-of-type { top: 18px; }
.nav__toggle i:last-of-type { top: 25px; }
.nav__toggle[aria-expanded='true'] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.nav__sheet { padding: 8px var(--gutter) 28px; background: var(--navy); border-bottom: 1px solid var(--rule); }
.nav__sheet ul { display: grid; margin-bottom: 22px; }
.nav__sheet a:not(.btn) { display: block; padding: 14px 0; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 24px; border-bottom: 1px solid var(--rule); }
.nav__sheet .btn { width: 100%; background: var(--white); color: var(--navy); }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 0; }
}
@media (max-width: 520px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .nav__brand img { height: 36px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__poster { position: absolute; inset: 0; background: url('../img/hero-poster.jpg') center / cover no-repeat, var(--ink); transition: opacity 1.6s var(--ease); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero.is-ready .hero__canvas { opacity: 1; }
.hero.is-ready .hero__poster { opacity: 0; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(4, 17, 27, 0.92) 0%, rgba(4, 17, 27, 0.62) 24%, rgba(4, 17, 27, 0) 52%),
    linear-gradient(90deg, rgba(4, 17, 27, 0.5) 0%, rgba(4, 17, 27, 0) 46%),
    linear-gradient(180deg, rgba(4, 17, 27, 0.5) 0%, rgba(4, 17, 27, 0) 16%); }

.hero__content { position: relative; z-index: 2; padding-bottom: clamp(36px, 6vh, 64px); pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); line-height: 1.0; letter-spacing: -0.018em; max-width: 13ch; }
.hero h1 em { display: inline; }
.hero__lead { margin-top: 26px; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.6; color: rgba(242, 245, 246, 0.82); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 36px; }

.hero__foot { position: relative; z-index: 3; display: flex; align-items: center; gap: 20px 36px; min-height: 64px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--fg-3); }
.hero__caption { margin-right: auto; }
.hero__legend { display: flex; gap: 22px; transition: opacity 0.5s var(--ease); }
.hero__legend li { display: inline-flex; align-items: center; gap: 9px; color: var(--fg-2); white-space: nowrap; }
.hero__legend i { width: 14px; height: 9px; border: 1px solid; }
.hero__legend i[data-s='free'] { border-color: #f7f3ea; }
.hero__legend i[data-s='arr'] { border-color: var(--amber); background: rgba(240, 184, 96, 0.22); }
.hero__legend i[data-s='away'] { border-color: var(--tif); background: rgba(var(--tif-rgb), 0.22); }
.hero.is-plain .hero__legend { opacity: 0; }
.hero__toggle { display: inline-flex; gap: 22px; }
.hero__toggle button { position: relative; padding: 8px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); transition: color 0.3s; }
.hero__toggle button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.hero__toggle button:hover { color: var(--fg); }
.hero__toggle button[aria-pressed='true'] { color: var(--fg); }
.hero__toggle button[aria-pressed='true']::after { transform: scaleX(1); }

/* annotazioni sulla scena */
.hud { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease) 0.4s; }
.hero.is-ready .hud { opacity: 1; }
.hud__layer { position: absolute; inset: 0; overflow: hidden; }
.hud-tag { position: absolute; left: 0; top: 0; opacity: 0; translate: -50% -50%; will-change: transform, opacity; white-space: nowrap; font-size: 10.5px; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 10px rgba(4, 17, 27, 0.75), 0 0 2px rgba(4, 17, 27, 0.6); }
.hud-tag--zone { font-weight: 500; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.16em; }
.hud-call { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; --c: var(--amber); }
.hud-call[data-tone='dep'] { --c: #f7f3ea; }
.hud-call__dot { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(4, 17, 27, 0.35); }
.hud-call__lead { position: absolute; left: 0; top: -64px; width: 1px; height: 60px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35)); }
.hud-call__txt { position: absolute; left: 12px; top: -74px; display: grid; gap: 2px; white-space: nowrap; text-shadow: 0 1px 12px rgba(4, 17, 27, 0.8); }
.hud-call__txt b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; color: #fff; letter-spacing: 0; }
.hud-call__txt span { font-size: 12px; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.01em; }
.hud-call.is-flip .hud-call__txt { left: auto; right: 12px; text-align: right; }

@media (max-width: 980px) {
  .hero__scrim { background: linear-gradient(0deg, rgba(4, 17, 27, 0.95) 0%, rgba(4, 17, 27, 0.72) 38%, rgba(4, 17, 27, 0) 66%), linear-gradient(180deg, rgba(4, 17, 27, 0.55) 0%, rgba(4, 17, 27, 0) 20%); }
  .hero__legend { display: none; }
  .hud-tag--zone { display: none; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 44px; }
  .hero__foot { flex-wrap: wrap; gap: 4px 20px; padding-top: 12px; padding-bottom: 14px; }
  .hero__caption { width: 100%; font-size: 11.5px; }
  .hud-tag { font-size: 8.5px; letter-spacing: 0.14em; }
  .hud-call__txt b { font-size: 16px; }
  .hud-call__txt span { font-size: 10.5px; }
  .hud-call__lead { top: -44px; height: 40px; }
  .hud-call__txt { top: -54px; }
}

/* ==========================================================================
   SEZIONI
   ========================================================================== */
.section { position: relative; padding: clamp(96px, 11vw, 168px) 0; }
.section__head { margin-bottom: clamp(48px, 6vw, 84px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.split--head { align-items: end; }
.split--head .lead { margin-top: 0; justify-self: end; }
.split--platform { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); align-items: center; }
.split--ledger { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); margin-top: clamp(96px, 11vw, 160px); }
.split--calc { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.split--phones { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split--net { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.split--contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; }
@media (max-width: 960px) {
  .split, .split--platform, .split--ledger, .split--calc, .split--phones, .split--net, .split--contact { grid-template-columns: 1fr; }
  .split--head .lead { justify-self: start; }
}

/* comparsa: il contenuto resta leggibile anche prima (miniature, stampa, crawler) */
html.js [data-reveal] { opacity: 0.5; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- oggi: dichiarazione e numeri ---------- */
.statement { font-family: var(--display); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.14; letter-spacing: -0.01em; max-width: 26ch; text-wrap: pretty; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.figures div { display: flex; flex-direction: column-reverse; gap: 10px; padding: 28px 32px 0 0; }
.figures div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.figures dd { font-family: var(--display); font-size: clamp(44px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.figures dt { font-size: 14px; color: var(--fg-2); }
.source { margin-top: 32px; font-size: 12.5px; color: var(--fg-3); max-width: 80ch; }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr; }
  .figures div, .figures div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- problema: registro ---------- */
.ledger { border-top: 1px solid var(--fg); }
.ledger tr { border-bottom: 1px solid var(--rule); }
.ledger th { width: 34%; padding: 20px 24px 20px 0; text-align: left; vertical-align: top; font-weight: 600; font-size: 15px; }
.ledger td { padding: 20px 0; color: var(--fg-2); font-size: 15.5px; }
.ledger__one { border-bottom: 1px solid var(--fg) !important; }
.ledger__one th { display: flex; align-items: center; gap: 12px; }
.ledger__one th img { width: 26px; height: auto; }
.ledger__one td { color: var(--fg); font-weight: 500; }
.costs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: clamp(72px, 9vw, 120px); }
.costs li { padding-top: 22px; border-top: 1px solid var(--rule); }
.costs h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: 0; margin-bottom: 12px; }
.costs p { font-size: 15px; color: var(--fg-2); }
@media (max-width: 960px) { .costs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .costs { grid-template-columns: 1fr; gap: 28px; } .ledger th { width: 38%; } }

/* ---------- piattaforma ---------- */
.roles { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.roles div { padding-top: 18px; border-top: 1px solid var(--rule); }
.roles dt { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.roles dd { margin-top: 8px; font-size: 14.5px; color: var(--fg-2); }
.roles--stack { grid-template-columns: 1fr; gap: 0; }
.roles--stack div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; }
.roles--stack div:last-child { border-bottom: 1px solid var(--rule); }
.roles--stack dd { margin-top: 3px; }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } .roles--stack div { grid-template-columns: 1fr; gap: 4px; } }

.record svg { width: 100%; height: auto; max-width: 560px; margin-left: auto; }
.record__links path { stroke: var(--rule-2); stroke-width: 1; fill: none; }
.record__ring { fill: none; stroke: var(--tif); stroke-width: 1; }
.record__ring--in { stroke: var(--rule-2); }
.record__node circle { fill: var(--tif); }
.record__flow path { fill: none; stroke: var(--tif); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 12 120; stroke-dashoffset: 12; animation: flowIn 3.2s var(--ease) infinite; }
.record__flow path:nth-child(2) { animation-delay: 0.8s; }
.record__flow path:nth-child(3) { animation-delay: 1.6s; }
.record__flow path:nth-child(4) { animation-delay: 2.4s; }
@keyframes flowIn { 0% { stroke-dashoffset: 12; opacity: 0; } 15% { opacity: 1; } 70% { stroke-dashoffset: -96; opacity: 1; } 100% { stroke-dashoffset: -96; opacity: 0; } }
.record__orbit { fill: none; stroke: var(--tif); stroke-width: 1; stroke-dasharray: 1 9; opacity: 0.55; }
.record text { font-family: var(--sans); }
.record .t-serif { font-family: var(--display); font-size: 21px; fill: var(--fg); }
.record .t-caps { font-size: 11px; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--fg); }
.record .t-sub { font-size: 12px; fill: var(--fg-3); }

.spec { margin-top: clamp(88px, 10vw, 140px); }
.spec caption { text-align: left; padding-bottom: 22px; }
.spec__title { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.spec thead th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); padding: 0 24px 14px 0; border-bottom: 1px solid var(--fg); }
.spec tbody tr { border-bottom: 1px solid var(--rule); }
.spec tbody th { width: 28%; text-align: left; vertical-align: top; padding: 24px 24px 24px 0; font-size: 16px; font-weight: 600; }
.spec td { vertical-align: top; padding: 24px 24px 24px 0; color: var(--fg-2); font-size: 15px; }
.spec td:last-child { width: 22%; padding-right: 0; }
.av { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--fg); white-space: nowrap; }
.av::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--tif); flex: none; }
.av--demo::before { background: var(--tif); }
.av--pilot::before { background: linear-gradient(90deg, var(--tif) 50%, transparent 50%); }
.av--plan { color: var(--fg-2); }
.av--plan::before { border-color: var(--fg-3); }
@media (max-width: 760px) {
  .spec thead { display: none; }
  .spec tbody tr { display: grid; gap: 6px; padding: 20px 0; }
  .spec tbody th, .spec td, .spec td:last-child { width: auto; padding: 0; }
}

/* ---------- mappa: tavola in stile carta nautica ---------- */
.mapx { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; border: 1px solid var(--rule-2); }
.mapx__plate { min-width: 0; border-right: 1px solid var(--rule-2); background: #fbfcfc; }
.mapx__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.mapx__name { font-size: 12.5px; color: var(--fg-3); }
.mapx__name span { font-family: var(--display); font-size: 18px; color: var(--fg); margin-right: 10px; }
.mapx__search input { width: 230px; height: 38px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--white); color: var(--fg); font: 500 13.5px var(--sans); font-variant-numeric: tabular-nums; }
.mapx__search input::placeholder { color: var(--fg-3); }
.mapx__search input:focus-visible { outline: 2px solid var(--teal); outline-offset: 0; }
.mapx__scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.mapx__svg { width: 100%; height: auto; min-width: 760px; }
.mapx__note { padding: 12px 18px 14px; font-size: 12.5px; color: var(--fg-3); border-top: 1px solid var(--rule); }
.mapx__side { display: flex; flex-direction: column; }
.mapx__stats { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.mapx__stats div { padding: 18px 18px 16px; }
.mapx__stats div:nth-child(odd) { border-right: 1px solid var(--rule); }
.mapx__stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
.mapx__stats dd { font-family: var(--display); font-size: 34px; line-height: 1; font-variant-numeric: lining-nums; }
.mapx__stats dt { font-size: 12px; color: var(--fg-2); margin-top: 8px; line-height: 1.35; }
.mapx__legend { padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.mapx__legend button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; font-size: 13.5px; color: var(--fg-2); text-align: left; transition: color 0.2s, background-color 0.2s; }
.mapx__legend button:hover { color: var(--fg); background: var(--canvas); }
.mapx__legend button[aria-pressed='true'] { color: var(--fg); background: var(--mist); }
.mapx__legend em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.sw { width: 18px; height: 11px; flex: none; border: 1px solid; }
.sw[data-s='occ'] { background: #24425e; border-color: #24425e; }
.sw[data-s='tr'] { background: #8fb0c6; border-color: #7c9db3; }
.sw[data-s='arr'] { background: #e7a845; border-color: #c88a2a; }
.sw[data-s='free'] { background: #fff; border-color: #24425e; }
.sw[data-s='away'] { background: var(--tif); border-color: #0a8f81; }
.mapx__card { flex: 1; padding: 20px 18px; min-height: 200px; }
.mapx__hint { font-size: 13.5px; color: var(--fg-3); }
.mapx__card h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0; }
.mapx__card .zone { font-size: 13px; color: var(--fg-2); margin-top: 8px; }
.mapx__card .st { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.mapx__card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mapx__card dl div { padding: 10px 0; }
.mapx__card dl div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.mapx__card dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.mapx__card dd { font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mapx__card p.desc { font-size: 14px; color: var(--fg-2); margin-top: 14px; }
.mapx__card p.desc em { font-style: normal; color: var(--fg); font-weight: 600; }
.mapx__card .ex { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-top: 14px; }
/* svg della mappa */
.mx-berth { cursor: pointer; }
.mx-berth .slot { transition: fill 0.2s, stroke 0.2s; }
.mx-berth:hover .slot { stroke: #071b2a; stroke-width: 0.6; }
.mapx__svg.has-filter .mx-berth:not(.is-match) { opacity: 0.16; }
.mx-berth .sel { opacity: 0; transition: opacity 0.2s; }
/* i posti compaiono pontile per pontile quando la mappa entra in vista */
html.js .mapx:not(.is-in) .mx-berth { opacity: 0; }
html.js .mapx.is-in .mx-berth { animation: berthIn 0.7s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes berthIn { from { opacity: 0; } }
.mx-berth.is-sel .sel { opacity: 1; }
@media (max-width: 1080px) {
  .mapx { grid-template-columns: 1fr; }
  .mapx__plate { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .mapx__side { display: grid; grid-template-columns: 1fr 1fr; }
  .mapx__stats { border-right: 1px solid var(--rule); }
  .mapx__legend { border-bottom: 0; }
  .mapx__card { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
}
@media (max-width: 620px) {
  .mapx__side { grid-template-columns: 1fr; }
  .mapx__stats { border-right: 0; }
  .mapx__legend { border-bottom: 1px solid var(--rule); }
  .mapx__bar { flex-wrap: wrap; }
  .mapx__search, .mapx__search input { width: 100%; }
}

/* ---------- calcolatore ---------- */
.calc { border-top: 1px solid var(--fg); }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; padding: 34px 0 40px; }
.range { display: block; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; color: var(--fg-2); }
.range output { font-family: var(--display); font-size: 22px; color: var(--fg); font-variant-numeric: lining-nums; white-space: nowrap; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin-top: 8px; background: transparent; cursor: pointer; --p: 50%; }
.range input::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--tif) var(--p), var(--rule-2) var(--p)); }
.range input::-moz-range-track { height: 1px; background: var(--rule-2); }
.range input::-moz-range-progress { height: 1px; background: var(--tif); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -7px; border-radius: 50%; background: var(--navy); border: 1px solid var(--tif); transition: transform 0.25s var(--ease), background-color 0.25s; }
.range input::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--navy); border: 1px solid var(--tif); }
.range input:hover::-webkit-slider-thumb { transform: scale(1.2); background: var(--tif); }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--navy), 0 0 0 4px var(--tif); }
.calc__result { display: grid; grid-template-columns: 1.25fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.calc__main, .calc__second { padding: 30px 0; display: flex; flex-direction: column; gap: 8px; }
.calc__second { padding-left: 36px; border-left: 1px solid var(--rule); }
.calc__main strong { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 5.4vw, 76px); line-height: 1; color: var(--fg); font-variant-numeric: lining-nums; }
.calc__second strong { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; font-variant-numeric: lining-nums; }
.calc__main > span:last-child, .calc__second > span:last-child { font-size: 13.5px; color: var(--fg-2); }
.calc__disclaimer { padding-top: 16px; font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 640px) { .calc__fields { grid-template-columns: 1fr; } .calc__result { grid-template-columns: 1fr; } .calc__second { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- diportisti: due telefoni in prospettiva ---------- */
.points { margin-top: 40px; border-top: 1px solid var(--rule); }
.points div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.points dt { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.points dd { margin-top: 6px; font-size: 15px; color: var(--fg-2); }
.section--devices { overflow-x: clip; }
.devices { --ry: 0; --rx: 0; --py: 0; --sc: 1; position: relative; height: 680px; perspective: 2200px; perspective-origin: 50% 40%; }
.devices__floor { position: absolute; left: 14%; right: 8%; bottom: 34px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(7, 27, 42, 0.28), rgba(7, 27, 42, 0.08) 60%, transparent); filter: blur(6px); transform: translateX(calc(var(--ry) * -2px)); }
.device { position: absolute; left: 50%; top: 50%; width: 276px; height: 580px; margin: -290px 0 0 -138px; transform-style: preserve-3d; will-change: transform; }
.device--back { transform: scale(var(--sc)) translate3d(-122px, calc(-30px + var(--py) * -16px), -160px) rotateY(calc(24deg + var(--ry) * 0.6deg)) rotateX(calc(5deg + var(--rx) * 1deg)) rotateZ(-3deg); }
.device--front { transform: scale(var(--sc)) translate3d(98px, calc(34px + var(--py) * 20px), 0) rotateY(calc(-20deg + var(--ry) * 1deg)) rotateX(calc(6deg + var(--rx) * 1deg)) rotateZ(2.5deg); }
.device__edge { position: absolute; inset: 0; border-radius: 50px; background: linear-gradient(90deg, #1a1e21, #575e64 46%, #2a2f33 54%, #15181a); transform: translateZ(-6px); }
.device__edge--2 { transform: translateZ(-12px); background: #101315; box-shadow: 0 50px 70px -40px rgba(7, 27, 42, 0.55); }
.device__body { position: absolute; inset: 0; border-radius: 50px; padding: 10px; background: linear-gradient(150deg, #737a81 0%, #2a2f34 16%, #16191c 48%, #2d3237 80%, #7a8188 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), inset 0 0 0 3px #0b0d0f, 0 30px 50px -34px rgba(7, 27, 42, 0.5); }
.device__key { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #22272b, #747b81, #22272b); }
.device__key--action { left: -3px; top: 104px; height: 26px; }
.device__key--vol1 { left: -3px; top: 150px; height: 50px; }
.device__key--vol2 { left: -3px; top: 210px; height: 50px; }
.device__key--power { right: -3px; top: 166px; height: 82px; }
.device__screen { position: absolute; inset: 10px; border-radius: 41px; overflow: hidden; }
.device__island { position: absolute; z-index: 3; left: 50%; top: 11px; width: 90px; height: 26px; margin-left: -45px; border-radius: 20px; background: #030405; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.device__island::after { content: ''; position: absolute; right: 18px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3b4d, #05080b 70%); }
.device__glare { position: absolute; inset: 10px; border-radius: 41px; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 22%, transparent 40%, transparent 72%, rgba(255, 255, 255, 0.05) 100%); background-size: 220% 100%; background-position: calc(40% + var(--ry) * 2%) 0; mix-blend-mode: screen; }

/* interfaccia dell'app */
.app { display: flex; flex-direction: column; font-family: var(--sans); }
.app--paper { --a-bg: #fbfaf7; --a-fg: var(--navy); --a-fg-2: #5a6b73; --a-rule: #e2e7e9; --a-rule-2: #c9d3d7; --a-on: var(--teal); background: var(--a-bg); color: var(--a-fg); }
.app--navy { --a-fg: #eef3f5; --a-fg-2: rgba(238, 243, 245, 0.62); --a-rule: rgba(238, 243, 245, 0.13); --a-rule-2: rgba(238, 243, 245, 0.26); --a-on: var(--tif); background: linear-gradient(180deg, #0d2537 0%, #071b2a 55%); color: var(--a-fg); }
.app__status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 14px 28px 0 30px; font-size: 12.5px; font-weight: 600; }
.app__sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.app__sig i { width: 3px; border-radius: 1px; background: currentColor; }
.app__sig i:nth-child(1) { height: 4px; } .app__sig i:nth-child(2) { height: 6px; } .app__sig i:nth-child(3) { height: 8px; } .app__sig i:nth-child(4) { height: 10px; }
.app__sig::after { content: ''; width: 20px; height: 10px; margin-left: 7px; border-radius: 3px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 70%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; opacity: 0.9; }
.app__head { padding: 16px 22px 0; }
.app__kicker { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--a-fg-2); }
.app__kicker span { letter-spacing: 0.04em; text-transform: none; font-size: 10.5px; font-weight: 500; }
.app__title { font-family: var(--display); font-size: 40px; line-height: 1.04; margin-top: 6px; }
.app__sub { font-size: 11px; color: var(--a-fg-2); margin-top: 2px; }
.app__chart { margin: 14px 14px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--a-rule); background: #f3f6f6; }
.app__chart svg { display: block; width: 100%; height: auto; }
.app__plate { position: relative; margin: 14px 14px 0; height: 128px; border-radius: 16px; overflow: hidden; background: radial-gradient(130% 100% at 75% 0%, #2a5f7c 0%, #133a52 45%, #0a2538 80%); }
.app__plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7, 27, 42, 0.5)); }
.app__boat { position: absolute; left: 50%; bottom: 8px; width: 210px; margin-left: -105px; fill: none; stroke: #f4f7f8; stroke-width: 1; stroke-linejoin: round; }
.app__boat .hull { fill: rgba(244, 247, 248, 0.92); stroke: none; }
.app__boat .sail { fill: rgba(244, 247, 248, 0.16); }
.app__boat .sail--jib { fill: rgba(244, 247, 248, 0.08); }
.app__boat .rig--stay { stroke-opacity: 0.45; stroke-width: 0.6; }
.app__boat .sea { stroke-opacity: 0.35; stroke-width: 0.6; }
.app__boat .sea--2 { stroke-opacity: 0.18; stroke-dasharray: 10 6; }
.app__specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 20px 0; border-top: 1px solid var(--a-rule); border-bottom: 1px solid var(--a-rule); }
.app__specs div { padding: 9px 0 8px; }
.app__specs div + div { padding-left: 10px; border-left: 1px solid var(--a-rule); }
.app__specs dt { font-size: 7.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-fg-2); }
.app__specs dd { font-size: 13px; font-weight: 600; margin-top: 2px; }
.app__docs { margin: 4px 20px 0; }
.app__docs li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--a-rule); font-size: 11px; }
.app__docs em { font-style: normal; font-size: 9.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.app__docs em::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.app__docs .ok { color: var(--tif); }
.app__docs .warn { color: var(--amber); }
.app__actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; margin: 14px 20px 0; }
.app__btn { display: grid; place-items: center; height: 38px; border-radius: 10px; border: 1px solid var(--a-rule-2); font-size: 11px; font-weight: 600; }
.app__btn--solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.app__tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: auto; padding: 9px 6px 20px; border-top: 1px solid var(--a-rule); font-size: 8.5px; color: var(--a-fg-2); text-align: center; }
.app__tabs span { display: grid; justify-items: center; gap: 3px; }
.app__tabs svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app__tabs .on { color: var(--a-on); font-weight: 600; }
/* mini carta del porto nell'app */
.app__chart .w { fill: #e4f0f3; }
.app__chart .l { fill: #ece5d3; }
.app__chart .m { fill: #e2ded4; stroke: #071b2a; stroke-width: 0.9; }
.app__chart .p { fill: #dcd7cb; stroke: #071b2a; stroke-width: 0.8; }
.app__chart .b { fill: #fff; stroke: rgba(7, 27, 42, 0.3); stroke-width: 0.6; }
.app__chart .b--occ { fill: #24425e; stroke: none; }
.app__chart .me { fill: var(--tif); stroke: #0a8f81; stroke-width: 1; }
.app__chart .halo { fill: none; stroke: #0a8f81; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: halo 2.8s var(--ease) infinite; }
.app__chart .route { fill: none; stroke: #071b2a; stroke-width: 1.6; stroke-dasharray: 3 5; animation: route 1.4s linear infinite; }
.app__chart .lbl { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; fill: #3d5664; }
@keyframes halo { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes route { to { stroke-dashoffset: -16; } }
@media (max-width: 1100px) { .devices { --sc: 0.86; height: 600px; } }
@media (max-width: 600px) { .devices { --sc: 0.64; height: 470px; margin-top: 8px; } .devices__floor { bottom: 20px; } }

/* ---------- rete: tavola nautica ---------- */
.chart { background: #f7f5ef; color: var(--navy); border: 1px solid rgba(242, 245, 246, 0.2); padding: 14px; }
.chart__svg { width: 100%; height: auto; border: 1px solid #c9d2d4; background: #fdfcf9; }
.chart__cap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 14px 4px 2px; font-size: 12.5px; color: #4a6170; }
.chart__cap em { margin-left: auto; font-style: normal; color: #74878f; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.dot--now { background: var(--navy); }
.dot--next { border: 1px solid var(--navy); }
.dot--later { border: 1px dashed #74878f; }
.chart .land { fill: #ece5d3; stroke: #a99f86; stroke-width: 0.5; stroke-linejoin: round; }
.chart .shelf { fill: none; stroke: #9fc3cf; stroke-width: 3.2; stroke-linejoin: round; opacity: 0.35; }
.chart .grat { stroke: #c6d3d6; stroke-width: 0.5; fill: none; }
.chart .grat-l { font-size: 7px; fill: #8c9ba0; font-family: var(--sans); letter-spacing: 0.04em; paint-order: stroke; stroke: #fdfcf9; stroke-width: 2px; }
.chart .sea { font-family: var(--italic); font-style: italic; font-size: 11px; fill: #6f8a96; letter-spacing: 0.06em; }
.chart .arc { fill: none; stroke: var(--navy); stroke-width: 0.8; opacity: 0.55; }
.chart .arc--later { stroke-dasharray: 2 3; opacity: 0.35; }
/* le rotte si tracciano quando la tavola entra in vista */
html.js .chart .arc--next { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s var(--ease) var(--d, 0s); }
html.js .chart.is-in .arc--next { stroke-dashoffset: 0; }
html.js .chart .arc--later { opacity: 0; transition: opacity 1.4s var(--ease) calc(var(--d, 0s) + 1s); }
html.js .chart.is-in .arc--later { opacity: 0.35; }
.chart .flow { fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 var(--len); stroke-dashoffset: 2; opacity: 0; }
.chart.is-in .flow { animation: arcFlow 4.8s var(--ease) infinite; animation-delay: calc(var(--d, 0s) + 2s); }
@keyframes arcFlow { 0% { stroke-dashoffset: 2; opacity: 0; } 10% { opacity: 0.9; } 80% { stroke-dashoffset: calc(var(--len) * -1); opacity: 0.9; } 100% { stroke-dashoffset: calc(var(--len) * -1); opacity: 0; } }
.chart .node--now .halo { fill: none; stroke: var(--navy); stroke-width: 0.8; transform-box: fill-box; transform-origin: center; animation: halo 3.2s var(--ease) infinite; }
.chart .node circle.core { fill: #fdfcf9; stroke: var(--navy); stroke-width: 1; }
.chart .node--now circle.core { fill: var(--navy); }
.chart .node--now circle.ring { fill: none; stroke: var(--navy); stroke-width: 0.6; }
.chart .node--later circle.core { stroke: #74878f; stroke-dasharray: 1.6 1.6; }
.chart .node text { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; fill: #2f4656; paint-order: stroke; stroke: #fdfcf9; stroke-width: 2.6px; stroke-linejoin: round; }
.chart .node--later text { fill: #6b7f88; font-weight: 500; }
.chart .node--now text { font-size: 10.5px; fill: var(--navy); font-weight: 700; }
.chart .rose path, .chart .rose circle { fill: none; stroke: #8c9ba0; stroke-width: 0.6; }
.chart .rose .n { fill: var(--navy); stroke: none; }
.chart .rose text { font-family: var(--italic); font-style: italic; font-size: 9px; fill: #4a6170; }

/* ---------- perché ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px); }
.why li { padding-top: 22px; border-top: 1px solid var(--rule); }
.why h3 { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.16; letter-spacing: 0; margin-bottom: 12px; }
.why p { font-size: 15px; color: var(--fg-2); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- programma pilota ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.process::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--fg); transform-origin: left; }
html.js .process:not(.is-in)::before { transform: scaleX(0); }
html.js .process::before { transition: transform 1.8s var(--ease) 0.15s; }
html.js .process.is-in li { animation: stepIn 1s var(--ease) backwards; }
.process li:nth-child(2) { animation-delay: 0.25s !important; }
.process li:nth-child(3) { animation-delay: 0.5s !important; }
.process li:nth-child(4) { animation-delay: 0.75s !important; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } }
.process li { padding: 28px 28px 0 0; }
.process li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.process__n { display: block; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--tif); margin-bottom: 26px; }
.process h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.18; letter-spacing: 0; margin-bottom: 10px; }
.process p { font-size: 15px; color: var(--fg-2); max-width: 30ch; }
.gains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin-top: clamp(64px, 7vw, 96px); }
.gains li { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--fg); }
@media (max-width: 960px) { .process, .gains { grid-template-columns: 1fr 1fr; } .process li:nth-child(3) { padding-left: 0; border-left: 0; } .process li:nth-child(n + 3) { margin-top: 36px; } }
@media (max-width: 560px) { .process, .gains { grid-template-columns: 1fr; } .process li, .process li + li { padding: 24px 0; border-left: 0; margin-top: 0; border-bottom: 1px solid var(--rule); } }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__list { border-top: 1px solid var(--fg); }
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.25; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ''; width: 14px; height: 14px; flex: none; background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat; transition: transform 0.4s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { padding: 0 0 28px; color: var(--fg-2); font-size: 16px; max-width: 62ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .section__head { position: static; } }

/* ---------- contatti ---------- */
.contact { border-top: 1px solid var(--rule); }
.contact h2 { font-size: clamp(38px, 5vw, 72px); max-width: 14ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.directory { border-top: 1px solid var(--fg); }
.directory div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.directory dt { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.directory dd { font-size: 16px; }
.directory a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.directory a:hover { background-size: 100% 1px; }
.contact__fine { margin-top: 56px; }
@media (max-width: 560px) { .directory div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- footer ---------- */
.foot { padding: 72px 0 40px; background: var(--ink); border-top: 1px solid var(--rule); font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot__grid img { width: 170px; height: auto; }
.foot__claim { margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3); }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--fg-2); text-decoration: none; transition: color 0.3s; }
.foot a:hover { color: var(--fg); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--fg-3); font-size: 12.5px; }
.foot__bottom a { color: var(--fg-2); text-decoration: underline; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- pagine legali ---------- */
.legal { padding: calc(var(--nav-h) + 72px) 0 112px; min-height: 70vh; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; margin-bottom: 18px; }
.legal h2 { font-size: 26px; margin: 44px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--fg-2); font-size: 16px; }
.legal p + p, .legal ul + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { color: var(--fg); }
.legal .note { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--rule-2); font-size: 14px; color: var(--fg-3); }
.legal > .wrap > img:first-child { margin-bottom: 56px; }
.legal .btn { margin-top: 24px; }
.legal__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }

/* hero senza WebGL o con risparmio dati: solo immagine statica */
.hero.is-static .hud, .hero.is-static .hero__canvas { display: none; }
.hero.is-static .hero__poster { opacity: 1; background-image: url('../img/hero-static.jpg'); background-position: 50% 30%; }
.hero.is-static .hero__toggle, .hero.is-static .hero__legend { display: none; }
