/* ===========================================================================
   Redazione — pagina articolo.
   Chiaro su bianco per la leggibilita' del testo lungo. Base della pagina,
   testata e footer sono in css/redazione-chrome.css, condiviso con l'elenco.

   I colori stanno in css/redazione-tokens.css, che va incluso PRIMA di questo.
   =========================================================================== */

/* Testo lungo: un filo piu' grande e piu' arioso dell'elenco. */
body {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ── Colonna dell'articolo ───────────────────────────────────────────────── */

/* Stessa griglia di .red-page dell'elenco (48rem, stessi padding), cosi'
   il testo parte dallo stesso bordo del logo e delle card dell'elenco. Il
   testo resta nella colonna di lettura stretta (--measure), allineato a
   sinistra. */
.article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.article > * {
  max-width: var(--measure);
}

@media (max-width: 600px) {
  .article {
    padding-left: .75rem;
    padding-right: .75rem;
  }
}

.crumbs {
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--fb-blue-ink);
}

.crumbs span {
  margin: 0 0.35rem;
}

.kicker {
  margin: 0 0 0.5rem;
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fb-blue-ink);
}

h1 {
  margin: 0 0 0.6rem;
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fb-navy);
}

.subtitle {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.byline {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Rapporto 16:10 via padding-top invece di `aspect-ratio`: alcune versioni di
   Safari iOS non lo applicano correttamente insieme a `object-fit` su un
   `<img>` con attributi width/height, lasciando l'immagine a piena
   risoluzione. Il trucco del padding funziona ovunque, senza eccezioni. */
.hero-frame {
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 0 1.75rem;
}

.hero-frame .hero {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro {
  margin: 0 0 2rem;
  font-size: 1.12rem;
}

/* ── Formazioni ──────────────────────────────────────────────────────────── */

.team {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.team h2 {
  margin: 0 0 0.6rem;
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fb-navy);
}

.team .formation {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--fb-blue);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.team .lineup {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.team .coach,
.team .secondary {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.team .secondary {
  color: var(--muted);
  font-size: 0.9rem;
}

.team .coach span,
.team .secondary span {
  display: block;
  margin: 0 0 0.2rem;
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Code ────────────────────────────────────────────────────────────────── */

.more {
  margin: 1.5rem 0 0;
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.95rem;
}

.more a {
  color: var(--fb-blue-ink);
  font-weight: 600;
  text-decoration: none;
}

.more a:hover {
  text-decoration: underline;
}

.app-cta {
  margin: 2.5rem 0 0;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-align: center;
}

.app-cta p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.app-cta a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--fb-blue-ink);
  color: #fff;
  font-family: var(--fb-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.app-cta a:hover {
  background: var(--fb-blue);
}

/* ── Schermi larghi ──────────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .article {
    padding-top: 2.5rem;
  }

  .team .lineup {
    font-size: 1.1rem;
  }
}

