/* Starvagant — "manuale di volo".
   Carta chiara, griglie a filo sottile, etichette monospazio (stesso impianto del sito VELS),
   ma con una tavolozza di carta colorata: ogni servizio e ogni rotta ha il suo colore.
   Lo spazio (stelle, astronauta, asteroide) vive solo dentro gli "oblò": l'hero e i contatti. */

:root {
  --paper: #f3f0e9;
  --paper-2: #ebe7dd;
  --card: #fbfaf6;
  --ink: #17142b;
  --muted: #5d596e;
  --line: #d3cdbf;
  --space: #1c1544;        /* il colore degli oblò */
  --space-2: #2b2166;
  --on-space: #efeaff;
  --on-space-muted: #b3aad6;

  /* carta colorata (gli stessi toni dei ritagli delle illustrazioni) */
  --violet: #6a4be0;
  --coral: #d64a25;
  --amber: #e9a823;
  --teal: #0b8276;
  --sky: #2f6ad0;
  --pink: #c93a7c;
  --on-c: #fff;           /* testo sopra un colore pieno */
  --c: var(--violet);      /* colore "corrente" di una scheda */

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 3rem); --step-4: clamp(2.5rem, 6.4vw, 4.9rem);
  --maxw: 1200px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121024; --paper-2: #1a1731; --card: #1d1a36; --ink: #ece8f7; --muted: #a39dbd; --line: #322d52;
    --space: #0c0920; --space-2: #1d1748;
    --violet: #9b84ff; --coral: #ff7f62; --amber: #f6c04f; --teal: #3cc9b9; --sky: #6fa0f5; --pink: #f177b0;
    --on-c: #121024; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121024; --paper-2: #1a1731; --card: #1d1a36; --ink: #ece8f7; --muted: #a39dbd; --line: #322d52;
  --space: #0c0920; --space-2: #1d1748;
  --violet: #9b84ff; --coral: #ff7f62; --amber: #f6c04f; --teal: #3cc9b9; --sky: #6fa0f5; --pink: #f177b0;
  --on-c: #121024; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); line-height: .98; font-weight: 780; font-variation-settings: "wdth" 120; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); line-height: 1.04; font-weight: 730; font-variation-settings: "wdth" 116; letter-spacing: -0.005em; }
h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 650; font-variation-settings: "wdth" 104; }
p { margin: 0; max-width: 66ch; }
ul { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.mono { font-family: var(--f-mono); }
.label, .eyebrow {
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.06em; font-weight: 400;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow { display: inline-block; }
/* sottolineatura a pennarello al posto del testo sfumato */
.grad, .hl {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amber) 70%, transparent) 62%, color-mix(in srgb, var(--amber) 70%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em;
}

/* animazioni: lo stato iniziale nascosto vale solo se GSAP è attivo (classe .anim sull'html) */
.anim .reveal { opacity: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font-family: var(--f-display); font-size: 1.22rem; font-weight: 820; font-variation-settings: "wdth" 125; letter-spacing: 0.03em; text-transform: uppercase; }
.brand .label { margin-left: 2px; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav .lang { font-family: var(--f-mono); font-size: var(--step--1); border: 1px solid var(--line); padding: 3px 8px; }
.nav .btn { padding: 9px 16px; font-size: 0.92rem; color: var(--paper); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .brand .label { display: none; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 4px var(--gut-r) 20px var(--gut-l); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav .lang { border: 0; border-bottom: 1px solid var(--line); padding: 13px 0; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-family: var(--f-body); font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  padding: 13px 20px; border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 42ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-cta, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--card); }
.paths a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; font-size: 0.95rem; min-width: 0; position: relative; }
.paths a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.paths a + a { border-left: 1px solid var(--line); }
.paths a:hover { background: var(--paper-2); }
.paths a span:last-child::after { content: " →"; color: var(--muted); }
@media (max-width: 480px) { .paths { grid-template-columns: minmax(0, 1fr); } .paths a + a { border-left: 0; border-top: 1px solid var(--line); } }
.by { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.by b { color: var(--ink); font-weight: 500; }

/* ---------- oblò: il pannello spaziale (l'unico elemento "forte" della pagina) ---------- */
.viewport { background: var(--space); color: var(--on-space); padding: 14px; border-radius: 3px; min-width: 0; margin: 0; }
.vp-head, .vp-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 0.72rem; color: var(--on-space-muted); letter-spacing: 0.04em; }
.vp-head { padding-bottom: 10px; }
.vp-foot { padding-top: 10px; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 7px; vertical-align: 1px; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(124, 92, 255, .55), transparent 70%),
    radial-gradient(55% 50% at 12% 88%, rgba(217, 71, 138, .38), transparent 70%),
    radial-gradient(40% 40% at 20% 20%, rgba(58, 118, 219, .3), transparent 70%),
    linear-gradient(160deg, #2a1f6b, #160f3a 70%);
}
.stage canvas.starfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .asteroid { position: absolute; width: 54%; left: 27%; top: 44%; animation: float 7s ease-in-out infinite; }
.stage .mascot { position: absolute; width: 34%; left: 28%; top: 13%; animation: float 7s ease-in-out infinite; }
.stage .fl { position: absolute; opacity: .9; will-change: transform; }
.stage .fl.s1 { width: 15%; right: 6%; top: 9%; }
.stage .fl.s2 { width: 8%; left: 7%; top: 62%; opacity: .7; }
.stage .fl.s3 { width: 6%; right: 14%; bottom: 10%; opacity: .6; }
.stage .fl.s4 { width: 9%; left: 10%; top: 12%; opacity: .55; filter: blur(.6px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.readout {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 10px;
  background: rgba(255, 255, 255, .12); font-family: var(--f-mono); font-variant-numeric: tabular-nums;
}
.readout div { background: var(--space-2); padding: 9px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.readout span { font-size: 0.64rem; letter-spacing: 0.06em; color: var(--on-space-muted); text-transform: uppercase; }
.readout b { font-size: 1rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout b i { font-style: normal; color: var(--amber); }
@media (max-width: 560px) { .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sezioni a "scheda tecnica" ---------- */
section { padding-block: clamp(52px, 7vw, 96px); }
section.block { border-top: 1px solid var(--line); }
.sheet { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); }
@media (max-width: 820px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
.sheet > aside { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.sheet > aside .sec { font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sheet > aside .sec::before { content: ""; width: 10px; height: 10px; background: var(--c); border-radius: 1px; }
@media (max-width: 820px) { .sheet > aside { flex-direction: row; gap: 14px; align-items: center; padding-top: 0; } }
.body { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.intro { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 54ch; }
.head { display: flex; flex-direction: column; gap: 16px; }

/* approccio: 2x2 come i "valori" di VELS */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
@media (max-width: 640px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 3px solid var(--c); }
.value p { color: var(--muted); }
.value .fact { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.value .fact b { color: var(--ink); font-weight: 500; }

/* servizi: griglia a filo, ogni scheda col suo colore */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: background .2s; }
.svc::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px; background: var(--c); }
.svc:hover { background: color-mix(in srgb, var(--c) 6%, var(--card)); }
.svc .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--c); color: var(--on-c); border-radius: 2px; }
.svc .ic svg { width: 22px; height: 22px; }
.svc .code { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.svc p { color: var(--muted); font-size: 0.97rem; }
.svc ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.94rem; }
.svc li { padding-left: 18px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--c); }
.svc .for { max-width: none; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.svc .for b { color: var(--ink); font-weight: 500; }
.svc .link { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--c); align-self: flex-start; }
.svc.wide { grid-column: span 2; }
[style*="--c:var(--amber)"] > .plate, [style*="--c:var(--amber)"] .r-code { color: #17142b; }
.svc.wide .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 620px) { .svc.wide { grid-column: auto; } .svc.wide .cols { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* corsi: rotte come righe di un orario di partenze */
.routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.routes li { display: grid; grid-template-columns: 64px minmax(0, 15rem) minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.routes .r-code { font-family: var(--f-mono); font-size: var(--step--1); color: var(--on-c); background: var(--c); text-align: center; padding: 5px 0; border-radius: 2px; }
.routes h3 { font-size: 1.12rem; }
.routes p { color: var(--muted); font-size: 0.97rem; }
.routes .lvl { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.routes a { text-decoration: none; }
@media (max-width: 760px) { .routes li { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 16px; } .routes p, .routes .lvl { grid-column: 2; } }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--card); }
.formats span { padding: 14px 16px; font-size: 0.92rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.formats span + span { border-left: 1px solid var(--line); }
.formats b { color: var(--ink); font-family: var(--f-mono); font-weight: 500; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .formats span:nth-child(3) { border-left: 0; } .formats span:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* progetti */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .cases { grid-template-columns: minmax(0, 1fr); } }
.case { border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; min-width: 0; }
.case .plate { background: var(--c); color: var(--on-c); padding: 12px 20px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.05em; text-transform: uppercase; }
.case .plate span:last-child { opacity: .8; }
.case .txt { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case .txt > p { font-size: 0.98rem; color: var(--muted); }
.case dl { margin: 4px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 0.94rem; padding-top: 14px; border-top: 1px solid var(--line); }
.case dt { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.case dd { margin: 0; }
.case .more { margin-top: auto; align-self: flex-start; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--c); }

/* metodo: conto alla rovescia */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: step 5; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step::before {
  counter-increment: step -1; content: "T–" counter(step);
  font-family: var(--f-display); font-size: var(--step-2); font-weight: 760; font-variation-settings: "wdth" 120; color: var(--c); line-height: 1;
}
.step:last-child::before { content: "T–0"; }
.step p { font-size: 0.97rem; color: var(--muted); }

/* perché */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); } }
.limits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.limits li { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.limits li:first-child { border-top: 1px solid var(--line); }
.limits b { font-weight: 650; }
.limits span { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 560px) { .limits li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.signature { display: flex; gap: 18px; align-items: center; padding: 16px 18px; background: var(--space); color: var(--on-space); border-radius: 3px; }
.signature img { width: 72px; flex: 0 0 72px; }
.signature p { margin: 0; color: var(--on-space-muted); font-size: 0.95rem; }
.signature b { color: #fff; }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 17px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ---------- contatti: secondo oblò ---------- */
.contact { position: relative; background: var(--space); color: var(--on-space); overflow: hidden; padding: 0; }
.contact canvas.starfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 90% 10%, rgba(124, 92, 255, .4), transparent 70%), radial-gradient(45% 55% at 0% 100%, rgba(217, 71, 138, .25), transparent 70%); }
.contact > .wrap { position: relative; padding-block: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact > .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.contact h2 { font-size: var(--step-4); color: #fff; }
.contact .label, .contact .eyebrow { color: var(--on-space-muted); }
.contact-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-info p { color: var(--on-space-muted); }
.addr-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.addr-row a { font-family: var(--f-mono); font-size: var(--step-1); color: #fff; text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; word-break: break-all; }
.contact-mascot { width: 120px; margin-top: 6px; }

form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form { grid-template-columns: minmax(0, 1fr); } }
label { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--on-space-muted); min-width: 0; }
input, select, textarea {
  font: inherit; font-family: var(--f-body); font-size: 1rem; color: #fff;
  background: rgba(16, 11, 42, .72); border: 1px solid rgba(255, 255, 255, .24); border-radius: 2px;
  padding: 11px 12px; width: 100%;
}
select option { color: #17142b; background: #fff; }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .4); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }
.check { flex-direction: row; gap: 10px; align-items: flex-start; font-family: var(--f-body); font-size: 0.88rem; }
.check input { width: auto; margin-top: 3px; accent-color: var(--amber); }
.check a { color: #fff; }
.contact .btn { background: #fff; color: var(--space); border-color: #fff; }
.contact .btn:hover { background: var(--amber); border-color: var(--amber); color: #17142b; }
.form-status { font-size: 0.95rem; min-height: 1.4em; color: #fff; }
.form-status.ok { color: #7ee8c8; }
.form-status.err { color: #ffb0a0; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 22px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- pagine interne ---------- */
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-hero .wrap.hero-grid { display: grid; }
.page-hero .hero-grid > div:first-child { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.page-hero p { color: var(--muted); max-width: 58ch; font-size: var(--step-1); line-height: 1.45; }
.page-hero .formats { margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-hero .formats span:nth-child(3) { border-left: 0; }
.page-hero .formats span:nth-child(n+3) { border-top: 1px solid var(--line); }
/* l'illustrazione delle pagine interne diventa un piccolo oblò */
.hero-visual { position: relative; aspect-ratio: 4 / 3; width: 100%; border-radius: 3px; overflow: hidden; border: 14px solid var(--space);
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(124, 92, 255, .55), transparent 70%),
    radial-gradient(55% 50% at 12% 88%, rgba(217, 71, 138, .38), transparent 70%),
    linear-gradient(160deg, #2a1f6b, #160f3a 70%); }
.hero-visual .asteroid { position: absolute; width: 54%; left: 27%; top: 44%; animation: float 7s ease-in-out infinite; }
.hero-visual .mascot { position: absolute; width: 34%; left: 28%; top: 13%; animation: float 7s ease-in-out infinite; }
.hero-visual canvas.starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) { .page-hero .hero-visual { max-width: 460px; } }

/* catalogo corsi */
#primi-passi, #first-steps { --c: var(--violet); }
#creativita, #creativity { --c: var(--pink); }
#lavoro, #work { --c: var(--teal); }
#sviluppatori, #developers { --c: var(--sky); }
#ragazzi, #kids { --c: var(--coral); }
.track { margin-bottom: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); }
@media (max-width: 820px) { .track { grid-template-columns: minmax(0, 1fr); } }
.track-head { display: flex; flex-direction: column; gap: 10px; }
.track-head .emo { font-family: var(--f-mono); font-size: var(--step--1); color: var(--on-c); background: var(--c); align-self: flex-start; padding: 4px 10px; border-radius: 2px; }
.track-head h2 { font-size: var(--step-2); }
.track-head p { color: var(--muted); font-size: 0.97rem; }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); align-self: start; }
.course { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.course::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--c); }
.course h3 { font-size: 1.08rem; }
.course p { color: var(--muted); font-size: 0.95rem; }
.course .out { color: var(--ink); font-size: 0.92rem; padding-top: 10px; border-top: 1px dashed var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); padding: 2px 8px; color: var(--muted); }
.cta-band { border: 1px solid var(--line); background: var(--card); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border-top: 5px solid var(--amber); }
.cta-band p { color: var(--muted); }
.cta-band h2 { font-size: var(--step-2); margin-bottom: 8px; }
@media (max-width: 700px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* chi sono / privacy */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--muted); margin-bottom: 1em; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--ink); text-decoration-color: var(--violet); text-underline-offset: 3px; }
.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px dashed var(--line); border-top: 5px solid var(--violet);
  display: grid; place-items: center; color: var(--muted); font-family: var(--f-mono); font-size: var(--step--1); text-align: center; padding: 16px; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.about-links .btn { padding: 9px 14px; font-size: .92rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .portrait { max-width: 220px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .live::before, .stage .asteroid, .stage .mascot, .hero-visual .asteroid, .hero-visual .mascot { animation: none; }
}
