/* =========================================================
   OPERATION SEARCH & FORTIFY · foglio di stile
   Struttura: token → base → componenti → sezioni → responsive
   ========================================================= */

/* ---------- 1. Token (colori, font, misure) ---------- */
:root {
  --bg: #0F110D;          /* quasi nero oliva */
  --bg-2: #14170F;        /* variante per alternare le sezioni scure */
  --panel: #1A1D16;       /* pannelli */
  --panel-2: #23271E;
  --text: #ECEAE1;
  --muted: #A9AA9C;
  --orange: #E87A2C;      /* accento principale */
  --olive: #6E7A45;       /* secondo accento */
  --olive-l: #A9B676;     /* oliva leggibile su fondo scuro */
  --olive-d: #5A6438;     /* oliva per fondi con testo bianco */
  --light: #E9E6DC;       /* sezioni chiare */
  --ink: #0F110D;
  --orange-ink: #9A4A0E;  /* arancio leggibile su fondo chiaro */

  --f-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
strong { font-weight: 600; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.s-orange :focus-visible, .s-light :focus-visible { outline-color: var(--ink); }

.visually-hidden {
  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-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 16px;
  font-family: var(--f-mono); font-size: .85rem; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Temi delle sezioni ---------- */
.s-dark, .s-light, .s-orange { color: var(--fg); position: relative; }
.s-dark {
  --fg: var(--text); --fg-muted: var(--muted); --accent: var(--orange); --accent-text: var(--orange);
  --line: rgba(236, 234, 225, .13); --surface: var(--panel); --grid: rgba(236, 234, 225, .035);
  background-color: var(--bg);
}
.s-dark--panel { background-color: var(--bg-2); }
.s-light {
  --fg: var(--ink); --fg-muted: #45473D; --accent: var(--orange); --accent-text: var(--orange-ink);
  --line: rgba(15, 17, 13, .16); --surface: #F2F0E9; --grid: rgba(15, 17, 13, .05);
  background-color: var(--light);
}
.s-orange {
  --fg: var(--ink); --fg-muted: #2B2117; --accent: var(--ink); --accent-text: var(--ink);
  --line: rgba(15, 17, 13, .28); --surface: rgba(15, 17, 13, .07); --grid: rgba(15, 17, 13, .07);
  background-color: var(--orange);
}
/* griglia HUD di fondo */
.s-dark, .s-light, .s-orange {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

.section { padding-block: clamp(72px, 10vw, 136px); }
.section + .section.s-dark:not(.s-dark--panel)::before,
.s-dark--panel::before {
  /* righello sul bordo superiore delle sezioni scure */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

/* ---------- 4. Componenti comuni ---------- */

/* intestazione di sezione */
.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 16px; row-gap: 14px; margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-code {
  grid-column: 1; display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-text);
}
.sec-code::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5;
  transform-origin: left; transition: transform 1s var(--ease) .15s;
}
.sec-code--olive { color: var(--olive-l); }
.sec-coord {
  grid-column: 2; grid-row: 1; font-family: var(--f-mono); font-size: .75rem;
  color: var(--fg-muted); letter-spacing: .06em; white-space: nowrap;
}
.sec-head h2 {
  grid-column: 1 / -1; font-weight: 700; font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem);
  max-width: 18ch; text-wrap: balance;
}
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); max-width: 60ch; color: var(--fg); }
.note { margin-top: 28px; max-width: 70ch; color: var(--fg-muted); }

/* foto con cornice da mirino */
.photo { position: relative; overflow: hidden; background: var(--panel); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.photo::after, .hero__visual::after, .map-frame::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  --c: var(--orange); --s: 22px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--s);
  background-repeat: no-repeat;
}
.photo figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 10px 6px 14px;
  background: rgba(15, 17, 13, .82); color: var(--text);
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--land { aspect-ratio: 4 / 3; }
.photo--lb { aspect-ratio: 600 / 466; }
.photo--lb img { filter: saturate(.9) contrast(1.05); }

/* pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 0;
  font-family: var(--f-mono); font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn--primary:hover { background: #F2924F; border-color: #F2924F; }
.btn--primary[aria-pressed="true"] { background: transparent; color: var(--orange); }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--fg); }
.btn--ghost-dark { border-color: rgba(236, 234, 225, .4); color: var(--text); }
.btn--ghost-dark:hover { border-color: var(--orange); color: var(--orange); }

/* numeri grandi */
.bignum { display: flex; flex-direction: column; gap: 6px; margin-bottom: 36px; }
.bignum__value {
  font-family: var(--f-head); font-weight: 800; color: var(--accent-text);
  font-size: clamp(4rem, 2.5rem + 6vw, 7.5rem); line-height: .82; letter-spacing: -.01em;
}
.bignum__value small, .spec__value small, .stats__v small, .wave__v small {
  font-size: .38em; font-weight: 600; margin-left: .12em; letter-spacing: .04em;
}
.bignum__label {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted);
}
.bignum--tight { margin: 28px 0; }

/* lista con spunte */
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px;
  border: 2px solid var(--accent); transform: rotate(45deg) scale(.8);
}

/* regole numerate D.1, A.1 ... */
.rules { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rule {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.rule__code {
  align-self: start; text-align: center; padding: 4px 0;
  font-family: var(--f-mono); font-size: .8rem; font-weight: 700;
  color: var(--accent-text); border: 1px solid currentColor;
}
.rule h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.rule p { color: var(--fg-muted); }
#difesa .rule__code { color: var(--olive-l); }

/* ---------- 5. Barra in alto ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(15, 17, 13, .9); border-bottom: 1px solid rgba(236, 234, 225, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.topbar__inner {
  height: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 2.5; }
.brand__text { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; }

.chapters { display: flex; gap: 4px; }
.chapter__subs { display: none; }
.chapter__link {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; white-space: nowrap;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.chapter__link:hover { color: var(--text); }
.chapter__link[aria-current="true"] { color: var(--text); border-bottom-color: var(--orange); }
.nav-current {
  margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange);
}
.nav-current:not(:empty)::before { content: "// "; color: var(--muted); }

.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  background: transparent; border: 1px solid rgba(236, 234, 225, .25); cursor: pointer;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 18px; height: 2px; background: var(--orange); position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.progress__bar { height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

/* ---------- 6. Hero ---------- */
.hero {
  min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 64px)); padding-bottom: 72px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags li {
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line); color: var(--text);
}
.tags li:first-child { border-color: var(--orange); color: var(--orange); }
.hero__title {
  font-weight: 800; font-size: clamp(3.4rem, 1.2rem + 9.5vw, 8.6rem); line-height: .84; letter-spacing: -.012em;
  display: flex; flex-direction: column;
}
.hero__sub { margin-top: 28px; font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); max-width: 34ch; line-height: 1.45; }
.typer {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  padding: 12px 16px; background: var(--panel); border-left: 3px solid var(--orange);
  font-family: var(--f-mono); font-size: clamp(.9rem, .85rem + .3vw, 1.1rem); font-weight: 500; color: var(--orange);
  min-height: 3.2em;
}
.typer__prompt { color: var(--muted); }
.typer__caret { width: .6em; height: 1.15em; background: var(--orange); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.hero__by { margin-top: 28px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted); }
.hero__by strong { color: var(--text); font-weight: 700; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.08) brightness(.85); }
.hero__visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(15, 17, 13, .18) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 55% 45%, transparent 35%, rgba(15, 17, 13, .65) 100%);
}
.crosshair {
  position: absolute; z-index: 2; left: 55%; top: 44%; width: 52%;
  transform: translate(-50%, -50%); overflow: visible;
  fill: none; stroke: var(--orange); stroke-width: 2;
  animation: acquire 9s var(--ease) infinite;
}
.crosshair__ring { transform-origin: 100px 100px; animation: spin 30s linear infinite; }
.crosshair__ticks { stroke-width: 1.5; opacity: .7; }
.crosshair__cross { stroke-width: 1.5; opacity: .85; }
.crosshair__dot { fill: var(--orange); stroke: none; }
.hud {
  position: absolute; z-index: 2; font-family: var(--f-mono); font-size: .75rem; line-height: 1.5;
  letter-spacing: .06em; color: var(--text); text-shadow: 0 1px 2px #000; opacity: .9;
}
.hud--tl { top: 22px; left: 24px; }
.hud--br { bottom: 22px; right: 24px; text-align: right; }
.hero__scroll {
  align-self: center; margin-top: 48px; padding: 10px 14px; text-decoration: none;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--orange), transparent); }
.hero__scroll:hover { color: var(--text); }

/* ---------- 7. Concept ---------- */
.concept { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ideas { display: grid; }
.idea {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 8px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.idea:first-child { padding-top: 0; }
.idea__icon { grid-row: 1 / 3; width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.idea__icon :first-child { stroke: var(--orange-ink); }
.idea h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 700; }
.idea p { color: var(--fg-muted); max-width: 52ch; }

/* ---------- 8. Scheda tecnica ---------- */
.specs { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec {
  position: relative; padding: 22px 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 170px;
}
.spec::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px;
  border-top: 2px solid var(--orange); border-left: 2px solid var(--orange);
}
.spec dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.spec__value { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); text-transform: uppercase; line-height: 1; }
.spec__value--num { color: var(--orange); font-weight: 800; font-size: clamp(2.8rem, 2rem + 2.4vw, 4rem); line-height: .85; }
.spec__note { font-size: .9rem; color: var(--muted); }

/* ---------- 9. Fazioni ---------- */
.faction { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faction__photo { position: sticky; top: calc(var(--nav-h) + 24px); }
.faction--reverse .faction__photo { order: 2; }
#difesa .photo::after { --c: var(--olive-l); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 36px; }
.stats > div { background: var(--bg-2); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.stats__v { font-family: var(--f-head); font-weight: 800; color: var(--orange); font-size: clamp(2.8rem, 2rem + 2.5vw, 4.2rem); line-height: .85; }
.stats__l { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- 10. Base esca e mappa ---------- */
.decoy {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-areas: "text map" "controls map"; grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 56px); row-gap: 24px; align-items: start;
}
.decoy__text { grid-area: text; }
.decoy__controls { grid-area: controls; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.map-frame { grid-area: map; position: relative; border: 1px solid var(--line); background: #12150F; }
.map-frame::before { inset: -1px; --s: 16px; z-index: 1; }
.decoy__hint { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.decoy__status { min-height: 3em; font-size: .95rem; color: var(--text); }
.decoy__status strong { color: var(--olive-l); }

.map { width: 100%; height: auto; }
.map text { font-family: var(--f-mono); }
/* contorno scuro sotto le scritte, per leggerle sopra l'immagine satellitare */
.map text, .map .grid-labels text {
  paint-order: stroke; stroke: rgba(15, 17, 13, .88); stroke-width: 4px; stroke-linejoin: round;
}
.map__shade { fill: rgba(15, 17, 13, .14); }
.grid-km > path { fill: none; stroke: rgba(236, 234, 225, .2); stroke-width: 1; }
.grid-labels text { font-size: 12px; fill: var(--text); opacity: .9; }
.hatch-line { stroke: var(--orange); stroke-width: 2.5; opacity: .7; }
.ring { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 10 8; }
.ring--3 { fill: rgba(15, 17, 13, .3); }
.ring-label { font-size: 15px; font-weight: 700; fill: var(--orange); }
.towns circle { fill: var(--text); stroke: var(--ink); stroke-width: 1.5; }
.towns text { font-size: 12px; fill: #DAD7CA; letter-spacing: .06em; }
.ambush__edge { fill: none; stroke: var(--orange); stroke-width: 1.5; }
.map-label { font-size: 15px; font-weight: 700; fill: var(--text); letter-spacing: .04em; }
.map-note { font-size: 12px; fill: #CFCCBF; letter-spacing: .04em; }
.map-note--strong { fill: var(--orange); font-weight: 700; }
.convoy path { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-dasharray: 5 9; stroke-linecap: round; stroke-linejoin: round; animation: march 1.2s linear infinite; }
.truck rect { fill: var(--orange); stroke: var(--ink); stroke-width: 2; }
.heli-route path#lb-route { fill: none; stroke: var(--olive-l); stroke-width: 2.5; stroke-dasharray: 1 8; stroke-linecap: round; }
.heli ellipse { fill: var(--olive-l); stroke: var(--ink); stroke-width: 1; }
.heli__rotor, .heli__tail { stroke: var(--olive-l); stroke-width: 2; }
.base--main rect { fill: var(--olive); stroke: var(--text); stroke-width: 2; }
.base--main path { stroke: var(--text); stroke-width: 2.5; }
.base--enemy path { fill: rgba(15, 17, 13, .6); stroke: var(--text); stroke-width: 2.5; }
.compass path { fill: var(--text); }
.compass text { font-size: 13px; font-weight: 700; fill: var(--text); }
.scale path { fill: none; stroke: var(--text); stroke-width: 2; }
.scale text { font-size: 11px; fill: var(--text); }

.objective__box { fill: none; stroke: var(--text); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: stroke .3s; }
.objective__q { font-family: var(--f-head) !important; font-size: 26px; font-weight: 700; fill: var(--text); text-anchor: middle; transition: fill .3s; }
.objective__tag { display: none; font-family: var(--f-head) !important; font-weight: 800; fill: var(--text); text-anchor: middle; }
.objective__hq { fill: rgba(232, 122, 44, .08); stroke: var(--orange); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0; transition: opacity .5s; }
.objective__role { font-weight: 700; }
.objective { transition: opacity .4s; }
.map[data-state="revealed"] .is-true .objective__box { stroke: var(--orange); stroke-width: 3; animation: lock .7s var(--ease); }
.map[data-state="revealed"] .is-true .objective__q { fill: var(--orange); }
.map[data-state="revealed"] .is-true .objective__hq { opacity: 1; }
.map[data-state="revealed"] .is-true .objective__name,
.map[data-state="revealed"] .is-true .objective__role { fill: var(--orange); }
.map[data-state="revealed"] .is-decoy { opacity: .55; }
.map[data-state="revealed"] .is-decoy .objective__name { text-decoration: line-through; }

.legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 16px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .03em; color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 22px; height: 10px; flex-shrink: 0; }
.lg--ring { border: 1.5px dashed var(--orange); border-radius: 50%; height: 14px; width: 14px; }
.lg--convoy { height: 0; border-top: 2px dashed var(--orange); }
.lg--heli { height: 0; border-top: 2px dotted var(--olive-l); }
.lg--ambush { background: repeating-linear-gradient(45deg, var(--orange) 0 2px, transparent 2px 5px); border: 1px solid var(--orange); }
.lg--hq { width: 14px; height: 14px; border-radius: 50%; border: 1px dashed var(--orange); background: rgba(232, 122, 44, .15); }

.legend span.legend__src { display: block; flex-basis: 100%; color: var(--muted); line-height: 1.6; }
.legend__src a { color: var(--text); }

/* mappa compatta su telefono (viewBox ritagliato da JS): solo le scritte essenziali, più grandi */
.map.is-compact .map-label { font-size: 24px; }
.map.is-compact .map-note, .map.is-compact .ring-label { font-size: 20px; }
.map.is-compact text { stroke-width: 6px; }
.map.is-compact .grid-labels, .map.is-compact .towns, .map.is-compact .ring-label--far, .map.is-compact .base--main .map-note,
.map.is-compact .objective__name, .map.is-compact .objective__role, .map.is-compact .objective__extra { display: none; }
.map.is-compact .objective__tag { display: block; font-size: 36px; }
.map.is-compact .objective__q { font-size: 32px; }
.map[data-state="revealed"] .is-true .objective__tag { fill: var(--orange); }

/* ---------- 11. Precisione premiata (sezione arancio) ---------- */
.s-orange .lead { font-weight: 500; margin-bottom: clamp(32px, 4vw, 48px); }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.outcome { padding: 24px; border: 2px solid var(--ink); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.outcome__grid { width: 90px; height: 90px; margin-bottom: 8px; fill: none; stroke: var(--ink); stroke-width: 2; }
.outcome__grid .g { stroke-width: 1; opacity: .45; }
.outcome__grid .hit { fill: var(--ink); stroke: none; }
.outcome--hit .outcome__grid circle, .outcome--hit .outcome__grid path:not(.g) { stroke: var(--orange); }
.outcome__grid .miss { fill: rgba(15, 17, 13, .2); stroke: none; }
.outcome__grid .quad { fill: rgba(15, 17, 13, .12); stroke: var(--ink); stroke-dasharray: 4 3; }
.outcome__grid text { fill: var(--ink); stroke: none; font-family: var(--f-head); font-weight: 800; font-size: 24px; text-anchor: middle; }
.outcome h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--f-mono); letter-spacing: .02em; }
.outcome__result { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: .9; }
.outcome p:last-child { color: var(--fg-muted); }
.outcome--hit { background: var(--ink); color: var(--text); }
.outcome--hit .outcome__grid { stroke: var(--text); }
.outcome--hit .outcome__grid .hit { fill: rgba(236, 234, 225, .12); }
.outcome--hit .outcome__result { color: var(--orange); }
.outcome--hit p:last-child { color: var(--muted); }

/* ---------- 12. Supply e respawn ---------- */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-bottom: clamp(40px, 5vw, 64px); counter-reset: none; }
.chain__node {
  position: relative; padding: 18px 18px 20px; border: 2px solid var(--ink); background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.chain__node:not(:last-child)::after {
  /* freccia verso il nodo successivo */
  content: ""; position: absolute; top: 50%; right: -38px; width: 36px; height: 12px; transform: translateY(-50%);
  background:
    linear-gradient(var(--orange-ink), var(--orange-ink)) left center / calc(100% - 8px) 2px no-repeat,
    conic-gradient(from -135deg at 100% 50%, var(--orange-ink) 0 90deg, transparent 0) right center / 10px 12px no-repeat;
}
.chain__k { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.chain__node strong { font-family: var(--f-head); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); font-weight: 800; text-transform: uppercase; line-height: 1; }
.chain__node > span:last-child { font-size: .92rem; color: var(--fg-muted); }
.chain__node--end { background: var(--ink); color: var(--text); border-color: var(--ink); }
.chain__node--end .chain__k, .chain__node--end > span:last-child { color: var(--muted); }
.chain__node--end strong { color: var(--orange); }

.supply-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.wave { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin-inline: auto; }
.wave__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.wave__track { fill: none; stroke: var(--line); stroke-width: 6; }
.wave__fill { fill: none; stroke: var(--orange); stroke-width: 6; stroke-dasharray: 327; stroke-dashoffset: 327; animation: wave 90s linear infinite; }
.wave__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.wave__v { font-family: var(--f-head); font-weight: 800; font-size: clamp(3.6rem, 3rem + 2vw, 4.6rem); line-height: .85; color: var(--orange-ink); }
.wave__l { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); max-width: 12ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { padding-top: 16px; border-top: 3px solid var(--ink); }
.fact h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 8px; }
.fact p { color: var(--fg-muted); }
.fact--alert { border-top-color: var(--orange); }

/* ---------- 13. Timeline ---------- */
.tl {
  display: grid; grid-template-columns: 5.5rem 15fr 30fr 10fr 60fr 15fr;
  grid-template-rows: auto auto auto auto; gap: 4px;
}
.tl__lane {
  grid-column: 1; align-self: stretch; display: flex; align-items: center;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-left: 3px solid; padding-left: 10px;
}
.tl__lane--def { grid-row: 2; color: var(--olive-l); }
.tl__lane--att { grid-row: 3; color: var(--orange); }
.tl__phase { grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; gap: 4px; min-width: 0; }
.tl__phase:nth-of-type(1) { grid-column: 2; }
.tl__phase:nth-of-type(2) { grid-column: 3; }
.tl__phase:nth-of-type(3) { grid-column: 4; }
.tl__phase:nth-of-type(4) { grid-column: 5; }
.tl__phase:nth-of-type(5) { grid-column: 6; }
.tl__head { padding: 12px 10px; background: var(--panel); border-top: 3px solid var(--muted); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl__phase--prep .tl__head { border-top-color: var(--olive-l); }
.tl__phase--fight .tl__head { border-top-color: var(--orange); }
.tl__time { font-family: var(--f-mono); font-size: .75rem; color: var(--orange); font-weight: 700; }
.tl__head h3 { font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }
.tl__dur { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.tl__cell { padding: 12px 10px; font-size: .88rem; line-height: 1.35; background: rgba(236, 234, 225, .04); border: 1px solid var(--line); overflow-wrap: anywhere; hyphens: auto; min-width: 0; }
.tl__cell b { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tl__cell--def { background: rgba(110, 122, 69, .16); }
.tl__cell--att { background: rgba(232, 122, 44, .1); }
.tl__cell--key { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.tl__cell--both { grid-row: 2 / 4; background: rgba(236, 234, 225, .07); }
.tl__axis { grid-column: 2 / -1; grid-row: 4; position: relative; height: 26px; border-top: 1px solid var(--line); margin-top: 6px; }
.tl__axis span {
  position: absolute; top: 6px; left: calc(var(--at) / 130 * 100%); transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .75rem; color: var(--muted);
}
.tl__axis span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 6px; background: var(--muted); }
.tl__axis span:first-child { transform: none; }
.tl__axis span:first-child::before { left: 0; }
.tl__axis span:last-child { transform: translateX(-100%); }
.tl__axis span:last-child::before { left: auto; right: 0; }

/* ---------- 14. Condizioni di vittoria e timer ---------- */
.victory { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.victory__rules { display: grid; gap: 16px; }
.vcard { padding: 22px 24px; background: var(--panel); border-left: 4px solid var(--muted); }
.vcard h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: 10px; }
.vcard p + p { margin-top: 10px; }
.vcard p, .vcard li { color: var(--muted); }
.vcard strong { color: var(--text); }
.vcard--att { border-left-color: var(--orange); }
.vcard--att h3 { color: var(--orange); }
.vcard--def { border-left-color: var(--olive-l); }
.vcard--def h3 { color: var(--olive-l); }
.vcard--edge ul { display: grid; gap: 8px; }
.vcard--edge li { position: relative; padding-left: 18px; }
.vcard--edge li::before { content: "!"; position: absolute; left: 0; font-family: var(--f-mono); font-weight: 700; color: var(--orange); }

.timer { position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--line); background: var(--panel); }
.timer__photo { aspect-ratio: 16 / 9; overflow: hidden; }
.timer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.8) contrast(1.05); }
.timer__panel { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.timer__k { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timer__display {
  font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange);
  font-size: clamp(3.6rem, 2.6rem + 4vw, 5.6rem); line-height: 1; letter-spacing: -.02em;
}
.timer.is-done .timer__display { color: var(--text); }
.timer.is-running .timer__display { animation: pulse 1s steps(1) infinite; }
.timer__bar { height: 6px; background: rgba(236, 234, 225, .1); }
.timer__bar div { height: 100%; width: 100%; background: var(--orange); transform-origin: left; transition: transform .25s linear; }
.timer__state { font-family: var(--f-mono); font-size: .8rem; color: var(--text); min-height: 1.5em; }
.timer__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.timer__btns .btn { flex: 1 1 120px; }

/* ---------- 15. Campagna ---------- */
.s-light .lead { margin-bottom: 36px; }
.episodes { display: grid; border: 2px solid var(--ink); margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.episodes__row { display: grid; grid-template-columns: 1fr 2fr 2fr; }
.episodes__row + .episodes__row { border-top: 1px solid var(--line); }
.episodes__row > span { padding: 12px 16px; }
.episodes__row--head > span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.episodes__row [role="rowheader"] { font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; line-height: 1; display: flex; align-items: center; }
.episodes__row [role="rowheader"]::before { content: "OP"; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; margin-right: 6px; color: var(--fg-muted); }
.r-att, .r-def { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; display: flex; align-items: center; }
.r-att { background: var(--orange); color: var(--ink); }
.r-def { background: var(--olive-d); color: #fff; }

.rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reward { padding: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.reward__v { font-family: var(--f-head); font-weight: 800; font-size: clamp(3.2rem, 2.4rem + 2.5vw, 4.6rem); line-height: .85; color: var(--orange-ink); }
.reward__v--text { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); color: var(--ink); text-transform: uppercase; }
.reward h3 { font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
.reward p { color: var(--fg-muted); }

/* ---------- 16. Moduli ---------- */
.modules-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.modules-wrap .lead { margin-bottom: 32px; color: var(--muted); }
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.module { padding: 22px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.module:last-child { grid-column: 1 / -1; }
.module__tag { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; color: var(--olive-l); }
.module h3 { font-size: 1.5rem; font-weight: 700; }
.module p { color: var(--muted); font-size: .95rem; }

/* ---------- 17. Game Master e condotta ---------- */
.gm { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.gm__photo img { object-position: center 25%; }
.gm__h { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.gm__duties .checklist li { color: var(--muted); }
.gm__rules { display: grid; gap: 28px; }
.banned { padding: 22px; border: 1px solid rgba(232, 122, 44, .5); background: rgba(232, 122, 44, .06); }
.banned li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.banned li::before, .banned li::after {
  content: ""; position: absolute; left: 2px; top: .75em; width: 14px; height: 2px; background: var(--orange); transform: rotate(45deg);
}
.banned li::after { transform: rotate(-45deg); }
.escalation ol { display: grid; gap: 6px; }
.escalation li {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; line-height: 1.1;
  border: 1px solid var(--line);
}
.escalation li span {
  flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .8rem; border: 1px solid currentColor;
}
.escalation li:nth-child(1) { color: var(--text); }
.escalation li:nth-child(2) { color: var(--orange); background: rgba(232, 122, 44, .08); }
.escalation li:nth-child(3) { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.escalation__note { margin-top: 14px; color: var(--muted); }
.escalation__note strong { color: var(--text); }

/* ---------- 18. Prossimi passi e chiusura ---------- */
.next { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.todo { display: grid; border-top: 2px solid var(--ink); }
.todo li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }
.todo__box { flex-shrink: 0; width: 20px; height: 20px; border: 2px solid var(--ink); }
.closing { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); background: var(--ink); color: var(--text); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.closing__mark { position: absolute; right: -50px; bottom: -50px; width: 220px; fill: none; stroke: var(--orange); stroke-width: 2; opacity: .25; }
.closing__k { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.closing__q { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); line-height: .92; }
.closing__by { color: var(--muted); }
.closing__by strong { color: var(--text); }
.closing .btn { margin-top: 8px; position: relative; }

.footer { background: var(--bg); border-top: 1px solid rgba(236, 234, 225, .1); padding: 28px 0 36px; }
.footer p { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); line-height: 1.8; max-width: 110ch; }
.footer a { color: var(--text); }

/* ---------- 19. Animazioni ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .sec-head .sec-code::after { transform: scaleX(0); }
html.js .sec-head.is-in .sec-code::after { transform: scaleX(1); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes march { to { stroke-dashoffset: -14; } }
@keyframes wave { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { opacity: .72; } }
@keyframes lock { from { transform: scale(1.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes acquire {
  0%, 100% { transform: translate(-50%, -50%); }
  30% { transform: translate(-58%, -44%); }
  60% { transform: translate(-46%, -53%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .sec-head .sec-code::after { transform: none; }
  .crosshair { animation: none; transform: translate(-50%, -50%); }
  .typer__caret { animation: none; }
  .wave__fill { animation: none; stroke-dashoffset: 0; }
}

/* ---------- 20. Responsive ---------- */

/* menu a scomparsa sotto i 1024 px: capitoli con le loro sezioni */
@media (max-width: 1023px) {
  .topbar__inner { gap: 14px; }
  .menu-btn { display: inline-flex; flex-shrink: 0; }
  html.js .site-nav {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid rgba(236, 234, 225, .12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  html.js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .chapters {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px;
    max-width: var(--wrap); margin-inline: auto; padding: 12px var(--gutter) 20px;
  }
  .chapter__link {
    padding: 0; min-height: 44px; font-family: var(--f-head); font-size: 1.25rem; font-weight: 700;
    color: var(--text); border-bottom: 1px solid rgba(236, 234, 225, .15);
  }
  .chapter__link[aria-current="true"] { color: var(--orange); border-bottom-color: var(--orange); }
  .chapter__subs { display: block; }
  .chapter__subs a {
    display: flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none;
    font-family: var(--f-mono); font-size: .85rem; color: var(--muted); border-bottom: 1px solid rgba(236, 234, 225, .06);
  }
  .chapter__subs a span { color: var(--orange); margin-right: 10px; }
  .chapter__subs a[aria-current="true"] { color: var(--text); }
  html:not(.js) .topbar { position: static; height: auto; }
  html:not(.js) .chapters { padding: 0 0 12px; }
  html:not(.js) .topbar__inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
}
@media (max-width: 479px) {
  .brand__text { display: none; }
}

@media (max-width: 1023px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcomes, .rewards, .facts { grid-template-columns: 1fr; }
  .decoy { grid-template-columns: 1fr; grid-template-areas: "text" "map" "controls"; }
  .victory { grid-template-columns: 1fr; }
  .timer { position: relative; top: 0; max-width: 560px; }
  .gm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gm__photo { grid-row: span 2; }
  .supply-grid { grid-template-columns: 1fr; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain__node:nth-child(2)::after { display: none; }

  /* timeline verticale */
  .tl { display: grid; grid-template-columns: 1fr; gap: 12px; position: relative; padding-left: 20px; }
  .tl::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
  .tl__lane, .tl__axis { display: none; }
  .tl__phase { grid-column: auto !important; grid-row: auto; display: grid; grid-template-rows: none; gap: 0; position: relative; border: 1px solid var(--line); }
  .tl__phase::before { content: ""; position: absolute; left: -21px; top: 18px; width: 10px; height: 10px; background: var(--orange); }
  .tl__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 12px; row-gap: 10px; }
  .tl__head::after {
    /* barra proporzionale alla durata (60 min = piena) */
    content: ""; grid-column: 1 / -1; height: 4px; width: calc(var(--d) / 60 * 100%); background: currentColor; color: var(--muted);
  }
  .tl__phase--prep .tl__head::after { color: var(--olive-l); }
  .tl__phase--fight .tl__head::after { color: var(--orange); }
  .tl__head h3 { font-size: 1.5rem; }
  .tl__cell { border: 0; border-top: 1px solid var(--line); font-size: .95rem; display: grid; grid-template-columns: 5.5rem 1fr; gap: 10px; hyphens: manual; overflow-wrap: normal; }
  .tl__cell b {
    position: static; width: auto; height: auto; clip: auto; overflow: visible;
    font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .2em;
  }
  .tl__cell--def b { color: var(--olive-l); }
  .tl__cell--att b { color: var(--orange); }
  .tl__cell--both { grid-row: auto; }
}

@media (max-width: 899px) {
  .hero { min-height: auto; }
  .hero__grid, .concept, .faction, .modules-wrap, .next { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 16 / 11; }
  .crosshair { width: 42%; top: 48%; }
  .faction__photo { position: relative; top: 0; }
  .faction--reverse .faction__photo { order: 0; }
  .photo--tall { aspect-ratio: 16 / 10; }
  .concept .photo--tall { aspect-ratio: 16 / 9; }
  .sec-coord { display: none; }
  .sec-head { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  :root { --nav-h: 56px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 16px 14px 18px; min-height: 140px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { flex-direction: row; align-items: baseline; gap: 16px; }
  .stats__v { min-width: 3.2ch; }
  .chain { grid-template-columns: 1fr; gap: 28px; }
  .chain__node:not(:last-child)::after {
    display: block; top: auto; bottom: -28px; right: auto; left: 28px; width: 12px; height: 28px; transform: none;
    background:
      linear-gradient(var(--orange-ink), var(--orange-ink)) center top / 2px calc(100% - 8px) no-repeat,
      conic-gradient(from 135deg at 50% 100%, var(--orange-ink) 0 90deg, transparent 0) center bottom / 12px 10px no-repeat;
  }
  .modules { grid-template-columns: 1fr; }
  .gm { grid-template-columns: 1fr; }
  .gm__photo { grid-row: auto; }
  .rule { grid-template-columns: 46px 1fr; gap: 14px; }
  .idea { grid-template-columns: 40px 1fr; column-gap: 14px; }
  .idea__icon { width: 36px; height: 36px; }
  .episodes__row > span { padding: 10px 12px; }
  .r-att, .r-def { font-size: 1.05rem; }
  .hud { font-size: .65rem; }
  .hud--tl { top: 14px; left: 16px; }
  .hud--br { bottom: 14px; right: 16px; }
  .brand__text { font-size: 1.15rem; }
  .menu-btn__label { font-size: .75rem; }
}

@media (max-width: 380px) {
  .specs { grid-template-columns: 1fr; }
  .spec { min-height: 0; }
}

/* ---------- 21. Miglioramenti UX ---------- */

/* pulsanti nell'hero e nella chiusura */
.hero__cta, .closing__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta { margin-top: 28px; }
.hero__cta .btn--ghost { border-color: rgba(236, 234, 225, .3); color: var(--text); }
.hero__cta .btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.closing__btns { margin-top: 8px; position: relative; }

/* In 60 secondi */
.brief { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.brief__list { display: grid; gap: 16px; }
.brief__list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 1.05rem; }
.brief__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--orange); }
.brief__list strong { color: var(--text); }
.versus { width: 100%; border-collapse: collapse; }
.versus th, .versus td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.versus thead th {
  font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1;
  border-bottom: 3px solid;
}
.versus thead th span { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.versus__def { color: var(--olive-l); }
.versus__att { color: var(--orange); }
.versus tbody th { font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); width: 22%; }
.versus tbody td { color: var(--text); font-size: .98rem; }
.versus tbody tr:last-child td { font-weight: 600; }
.versus__note { margin-top: 12px; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

/* soglie 1:30 e 1:40 nello scontro aperto */
.tl__phase--fight { position: relative; }
.tl__marks { position: absolute; inset: 0; pointer-events: none; }
.tl__mark {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 1%);
  border-left: 2px dashed var(--orange);
}
.tl__mark span { font-family: var(--f-mono); font-size: .75rem; }
.tl__mark b { color: var(--orange); margin-right: 4px; }
.tl__mark span {
  position: absolute; bottom: 6px; left: 8px; white-space: nowrap; color: var(--text);
  background: rgba(15, 17, 13, .85); padding: 2px 6px;
}
.tl__mark--left span { left: auto; right: 8px; }
.tl__phase--fight .tl__cell--att { padding-bottom: 34px; }

/* timer: opzione accelera */
.timer__btns .btn { flex: 1 1 140px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.timer__fast { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: .92rem; color: var(--muted); }
.timer__fast input { width: 22px; height: 22px; accent-color: var(--orange); flex-shrink: 0; }

@media (max-width: 1023px) {
  .brief { grid-template-columns: 1fr; }
  /* timeline verticale: le soglie diventano note nella scheda */
  .tl__marks { position: static; display: grid; gap: 6px; padding: 12px 10px; border-top: 1px solid var(--line); }
  .tl__mark { position: static; border-left: 0; }
  .tl__mark span { position: static; background: none; padding: 0; white-space: normal; }
  .tl__mark--left span { right: auto; }
  .tl__phase--fight .tl__cell--att { padding-bottom: 12px; }
}
@media (max-width: 639px) {
  .versus thead td { display: none; }
  .versus thead tr, .versus tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .versus tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0; border-bottom: 0; }
  .versus th, .versus td { padding: 10px 10px; }
  .versus tbody td { font-size: .92rem; }
  .versus thead th { font-size: 1.35rem; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* le foto sono dentro <picture>: il contenitore riempie la cornice */
.photo picture, .hero__visual picture, .timer__photo picture { display: block; width: 100%; height: 100%; }

/* ---------- 22. Colori per fazione sulla mappa: verde = Difesa, arancio = Attacco ---------- */
.map .casing { fill: none; stroke: rgba(15, 17, 13, .85); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; animation: none; }
.ring { stroke: var(--olive-l); }
.ring-label { fill: var(--olive-l); }
.convoy path:not(.casing) { stroke: var(--olive-l); }
.truck rect { fill: var(--olive-l); }
.heli-route path#lb-route { stroke: var(--orange); stroke-width: 3; }
.heli ellipse { fill: var(--orange); }
.heli__rotor, .heli__tail { stroke: var(--orange); }
.base--enemy path { stroke: var(--orange); }
.base--enemy .map-label { fill: var(--orange); }
.base--main .map-label { fill: var(--olive-l); }
.map[data-state="revealed"] .is-true .objective__box { stroke: var(--olive-l); }
.map[data-state="revealed"] .is-true .objective__q,
.map[data-state="revealed"] .is-true .objective__tag,
.map[data-state="revealed"] .is-true .objective__name,
.map[data-state="revealed"] .is-true .objective__role { fill: var(--olive-l); }
.lg--ring { border-color: var(--olive-l); }
.lg--convoy { border-top-color: var(--olive-l); }
.lg--heli { border-top: 3px dotted var(--orange); }
.lg--def, .lg--att { width: 14px; height: 14px; }
.lg--def { background: var(--olive-l); }
.lg--att { background: var(--orange); }
.legend__key { color: var(--text); font-weight: 700; }
/* nella sezione Difesa anche il numero chiave è verde */
#difesa .bignum__value { color: var(--olive-l); }
