/* ==========================================================================
   Kelmorith — cosmic command deck (GitHub dark DNA)
   Hand-written CSS. Mobile-first, full-bleed, fluid clamp() units.
   ========================================================================== */

:root {
  /* Colors — deep-void canvas with a single warm terminal-green accent */
  --void: #0d1117;
  --abyss: #000000;
  --obsidian: #151a22;
  --carbon: #10151c;
  --slate-edge: #21262d;
  --iron: #3d4145;
  --fog: #484f58;
  --mercury: #818b98;
  --pearl: #a4aea6;
  --moss: #7c8980;
  --snow: #ffffff;

  --terminal-green: #08872b;   /* the ONE warm accent — matte, dark, never bright lime */
  --terminal-green-hover: #0aa334;
  --phosphor: #5fed83;         /* wash only, never on CTA */
  --canopy: #0d3024;
  --ultraviolet: #8c93fb;      /* featured-card border accent */
  --sky: #8dd6ff;              /* secondary link accent */

  /* Glass surfaces */
  --glass-06: rgba(255, 255, 255, 0.06);
  --glass-10: rgba(255, 255, 255, 0.10);
  --glass-15: rgba(255, 255, 255, 0.15);
  --glass-20: rgba(255, 255, 255, 0.20);

  /* Type */
  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii — two deliberate shapes: pill nav vs sharp small buttons */
  --radius-pill: 60px;
  --radius-card: 24px;
  --radius-image: 16px;
  --radius-button: 6px;
  --radius-input: 6px;

  /* Fluid spacing */
  --edge: clamp(18px, 5.5vw, 80px);
  --section-gap: clamp(48px, 9vw, 112px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--void);
  color: var(--pearl);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--terminal-green); color: var(--snow); }

:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  color: var(--snow);
  font-weight: 600;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--pearl);
  max-width: 62ch;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---- Section shell ---- */
section {
  padding-inline: var(--edge);
  padding-block: var(--section-gap);
}

.section-inner {
  max-width: 1240px;
  margin-inline: auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Navigation — pill-shaped nav row over transparent header, 64px height
   ========================================================================== */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-edge);
}

.nav-container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--edge);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--snow);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
  padding: 5px;
  background: var(--glass-06);
}

.nav-links a {
  font-size: 14px;
  color: var(--pearl);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--snow);
  background: var(--glass-10);
}

.nav-links a.is-current {
  color: var(--snow);
  background: var(--glass-15);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-button);
  color: var(--snow);
}

.nav-toggle-icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-radius: 0 0 20px 20px;
    background: var(--carbon);
    border: 1px solid var(--slate-edge);
    border-top: none;
    padding: 10px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    border-radius: 10px;
    padding: 13px 16px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--terminal-green);
  color: var(--snow);
  border: 1px solid transparent;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--terminal-green-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--snow);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--snow);
  background: var(--glass-06);
}

.btn-outline-sky {
  background: rgba(31,35,40,0.4);
  color: var(--sky);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-sky:hover { background: rgba(31,35,40,0.65); }

.btn-block { width: 100%; }

/* ==========================================================================
   Hero — cinematic: violet radial atmosphere behind headline over abyss
   ========================================================================== */

.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(13,17,23,0.90) 0%, rgba(13,17,23,0.88) 45%, var(--abyss) 96%),
    url('../img/enlisted.webp') center 32%/cover no-repeat;
  padding-block: clamp(56px, 11vw, 96px) clamp(56px, 9vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--slate-edge);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: min(1100px, 140vw);
  height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(167,162,255,0.30) 0%, rgba(140,147,251,0.12) 42%, transparent 72%);
  filter: blur(60px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, black, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 48px);
}

.hero-copy {
  max-width: 760px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--phosphor);
  border: 1px solid rgba(95,237,131,0.3);
  background: rgba(95,237,131,0.06);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 22px;
}

.hero-trust .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terminal-green);
  flex-shrink: 0;
}

.hero-trust > span:not(.dot) {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero-title {
  font-size: clamp(34px, 6.4vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--terminal-green);
}

.hero-subheading {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--pearl);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-waypoints {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px;
}

.waypoint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 140px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-image);
  background: var(--glass-06);
}

.waypoint-mark {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--terminal-green);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.waypoint span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pearl);
  letter-spacing: 0.02em;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ==========================================================================
   Crew intro (compact, on main page)
   ========================================================================== */

.crew-intro {
  background: var(--void);
}

.crew-intro .section-inner {
  display: grid;
  gap: clamp(24px, 6vw, 64px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
  .crew-intro .section-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.crew-names {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--moss);
}

.crew-names strong {
  color: var(--sky);
  font-size: 14px;
}

.crew-copy p + p { margin-top: 16px; }

.crew-caveat {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--terminal-green);
  background: var(--glass-06);
  border-radius: 0 var(--radius-image) var(--radius-image) 0;
  font-size: 14.5px;
  color: var(--pearl);
}

.crew-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--sky);
  font-size: 14.5px;
  border-bottom: 1px solid rgba(141,214,255,0.4);
}

/* ==========================================================================
   Stats strip — "about us" numbers, bordered card on void background
   ========================================================================== */

.stats-strip {
  background: var(--void);
}

.stats-strip .section-inner {
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-card);
  background: var(--glass-06);
  padding: clamp(28px, 4vw, 48px);
}

.stats-strip-head {
  max-width: 640px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.stats-strip-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 32px);
}

@media (min-width: 760px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--terminal-green);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.4vw, 42px);
  color: var(--snow);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 13.5px;
  color: var(--pearl);
  line-height: 1.45;
}

/* ==========================================================================
   Criteria teaser — "about games", why a title gets cut from the list
   ========================================================================== */

.criteria-teaser {
  background: var(--carbon);
  border-top: 1px solid var(--slate-edge);
  border-bottom: 1px solid var(--slate-edge);
}

.criteria-teaser-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(24px, 4vw, 36px);
}

@media (min-width: 700px) {
  .criteria-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.criteria-chip {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-image);
  background: var(--glass-06);
}

.criteria-chip .glyph {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(248,81,73,0.12);
  color: #f85149;
  font-family: var(--font-mono);
  font-size: 13px;
}

.criteria-chip h3 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.criteria-chip p {
  font-size: 13.5px;
  color: var(--pearl);
  line-height: 1.5;
}

.criteria-teaser-link {
  display: inline-flex;
  margin-top: clamp(20px, 3vw, 28px);
  color: var(--sky);
  font-size: 14.5px;
  border-bottom: 1px solid rgba(141,214,255,0.4);
}

/* ==========================================================================
   Game cards — asymmetric grid, glass surfaces, radius 24px
   ========================================================================== */

.games-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .games-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .games-grid .game-card:nth-child(1) { grid-column: 1 / -1; }
}

.game-card {
  position: relative;
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-card);
  background: var(--glass-06);
  overflow: hidden;
  display: grid;
}

.game-card:nth-child(1) {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .game-card:nth-child(1) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.game-card.is-dense {
  background: var(--glass-10);
}

.game-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.game-card:nth-child(1) .game-media { aspect-ratio: auto; min-height: 260px; }

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--snow);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  backdrop-filter: blur(6px);
}

.game-body {
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.game-heading h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
}

.game-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--moss);
}

.game-hook {
  font-size: 14.5px;
  color: var(--pearl);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--moss);
  border-top: 1px solid var(--slate-edge);
  border-bottom: 1px solid var(--slate-edge);
  padding-block: 12px;
}

.game-meta span { max-width: 100%; overflow-wrap: break-word; }

.game-block h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin-bottom: 8px;
}

.game-block p, .game-block li {
  font-size: 14.5px;
  color: var(--pearl);
  line-height: 1.55;
}

.game-block ul { display: flex; flex-direction: column; gap: 7px; }
.game-block li { position: relative; padding-left: 16px; }
.game-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--terminal-green);
  border-radius: 1px;
  transform: rotate(45deg);
}

.game-caveat {
  font-size: 13.5px;
  color: var(--mercury);
  border-top: 1px dashed var(--iron);
  padding-top: 12px;
}
.game-caveat strong { color: var(--pearl); }

.game-cta {
  margin-top: 4px;
  align-self: flex-start;
}

/* ==========================================================================
   Scelta della squadra — single featured block, violet border accent
   ========================================================================== */

.pick-section .section-inner {
  border: 1px solid var(--ultraviolet);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--glass-06), rgba(140,147,251,0.05));
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: clamp(20px, 4vw, 40px);
}

@media (min-width: 860px) {
  .pick-section .section-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.pick-media {
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.pick-media img { width: 100%; height: 100%; object-fit: cover; }

.pick-copy .eyebrow { color: var(--ultraviolet); }
.pick-copy h2 { font-size: clamp(26px, 3.6vw, 38px); margin-block: 12px 16px; }
.pick-copy p { font-size: 15.5px; margin-bottom: 12px; }

/* ==========================================================================
   Non-commercial section — "Perché non guadagniamo nulla"
   ========================================================================== */

.honesty-section {
  background: var(--carbon);
  border-top: 1px solid var(--slate-edge);
  border-bottom: 1px solid var(--slate-edge);
}

.honesty-grid {
  display: grid;
  gap: clamp(20px, 3vw, 1px);
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(24px, 4vw, 40px);
}

@media (min-width: 760px) {
  .honesty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .honesty-item:not(:last-child) { border-right: 1px solid var(--slate-edge); }
}

.honesty-item {
  padding: clamp(4px, 2vw, 8px) clamp(0px, 2vw, 28px) 0 0;
}
@media (min-width: 760px) {
  .honesty-item { padding-inline: clamp(12px, 2vw, 28px); }
  .honesty-item:first-child { padding-left: 0; }
}

.honesty-item .glyph {
  font-family: var(--font-mono);
  color: var(--terminal-green);
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

.honesty-item h3 { font-size: 18px; margin-bottom: 8px; }
.honesty-item p { font-size: 14.5px; }

/* ==========================================================================
   FAQ — native details/summary
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--slate-edge);
}

.faq-item {
  border-bottom: 1px solid var(--slate-edge);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 16.5px;
  color: var(--snow);
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--slate-edge);
  border-radius: 50%;
  position: relative;
}
.faq-item summary .icon::before,
.faq-item summary .icon::after {
  content: "";
  position: absolute;
  background: var(--pearl);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .icon::before { width: 9px; height: 1.4px; }
.faq-item summary .icon::after { width: 1.4px; height: 9px; transition: transform 0.2s ease; }
.faq-item[open] summary .icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item .faq-answer {
  padding: 0 4px 22px;
  font-size: 15px;
  max-width: 70ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-top: 40px;
  background: var(--abyss);
  border-top: 1px solid var(--slate-edge);
}

.footer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pearl);
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--moss); }
.footer-col a:hover { color: var(--snow); }

.footer-legal {
  border-top: 1px solid var(--slate-edge);
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-disclaimer {
  font-size: 12.5px;
  color: var(--moss);
  max-width: 90ch;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--fog);
}

/* ==========================================================================
   Generic content pages (chi-siamo / come-giochiamo / legal)
   ========================================================================== */

.page-hero {
  background: var(--abyss);
  border-bottom: 1px solid var(--slate-edge);
  padding-block: clamp(48px, 8vw, 76px) clamp(32px, 5vw, 52px);
}
.page-hero .section-inner { max-width: 900px; }
.page-hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-hero p { font-size: 16.5px; max-width: 60ch; }

.prose { max-width: 700px; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin-block: 8px 14px; }
.prose p { font-size: 15.5px; margin-bottom: 16px; }
.prose p + h2 { margin-top: 8px; }
.prose ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.prose li { font-size: 15px; padding-left: 18px; position: relative; }
.prose li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; background: var(--terminal-green);
  transform: rotate(45deg);
}

/* Crew bios (chi-siamo full) */
.bio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) {
  .bio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bio-card {
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-card);
  background: var(--glass-06);
  padding: clamp(20px, 3vw, 26px);
}
.bio-card .role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--phosphor);
  margin-bottom: 6px;
}
.bio-card h3 { font-size: 19px; margin-bottom: 10px; }
.bio-card p { font-size: 14.5px; }

.timeline {
  border-left: 1px solid var(--slate-edge);
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
  padding-left: 26px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30.5px; top: 4px;
  width: 9px; height: 9px;
  background: var(--terminal-green);
  border-radius: 2px;
  transform: rotate(45deg);
}
.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 4px;
  display: block;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; }

/* Test bench (come-giochiamo) */
.rig-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 8px;
}
@media (min-width: 700px) {
  .rig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rig-card {
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-image);
  padding: 18px 20px;
  background: var(--glass-06);
}
.rig-card .name { color: var(--snow); font-weight: 500; margin-bottom: 8px; }
.rig-card dl { display: flex; flex-direction: column; gap: 5px; }
.rig-card dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--moss);
  display: inline;
}
.rig-card dd {
  font-size: 13.5px;
  color: var(--pearl);
  display: inline;
  margin-left: 6px;
}
.rig-card .spec-row { display: flex; gap: 4px; font-size: 13.5px; }

.criteria-list {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 8px;
}
@media (min-width: 700px) {
  .criteria-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.criteria-item {
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-image);
  padding: 16px 18px;
  background: var(--glass-06);
  font-size: 14.5px;
}
.criteria-item strong { color: var(--snow); display: block; margin-bottom: 4px; }

/* ==========================================================================
   Forms
   ========================================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 13.5px;
  color: var(--pearl);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  background: var(--carbon);
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-input);
  padding: 13px 14px;
  color: var(--snow);
  font-size: 15px;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fog); }

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--phosphor);
}

.form-field textarea { resize: vertical; min-height: 130px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--pearl);
  cursor: pointer;
}
.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--terminal-green);
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.form-note {
  font-size: 13px;
  color: var(--moss);
}

.form-status {
  font-size: 14px;
  color: var(--phosphor);
  display: none;
}
.form-status.is-visible { display: block; }

/* ==========================================================================
   404 / centered utility page
   ========================================================================== */

.error-page {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: var(--abyss);
}
.error-page .section-inner {
  max-width: 640px;
  text-align: left;
}
.error-code {
  font-family: var(--font-mono);
  color: var(--terminal-green);
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.error-page h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 16px;
}
.error-page p { font-size: 16px; margin-bottom: 26px; max-width: 52ch; }

/* Grazie (thank-you) */
.thanks-page { background: var(--abyss); min-height: 60vh; display: flex; align-items: center; }
.thanks-page .section-inner { max-width: 620px; }
.thanks-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--terminal-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--terminal-green);
}

/* ==========================================================================
   Legal grid
   ========================================================================== */

.legal-body {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.legal-body h2 { font-size: 20px; margin-bottom: 8px; }
.legal-body p, .legal-body li { font-size: 14.5px; color: var(--pearl); }
.legal-body ul { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.legal-body li { padding-left: 16px; position: relative; }
.legal-body li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; background: var(--terminal-green);
  transform: rotate(45deg);
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--moss);
}

/* Cookie banner (Mode B, opt-in) */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  max-width: 640px;
  margin-inline: auto;
  background: var(--obsidian);
  border: 1px solid var(--slate-edge);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  display: none;
  gap: 14px;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: 13.5px; color: var(--pearl); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 9px 16px; font-size: 13.5px; }
