/* Font dell'associazione, serviti dal nostro server (niente Google Fonts).
     - Atkinson Hyperlegible   testo (body)
     - Kapra Neue Pro Bold Expanded   titoli H1, tutto maiuscolo
     - Google Sans   titoli H2–H7 e piccoli titoli (nomi, numeri in evidenza)
   Si carica per ultimo, dopo lo stile scritto nelle pagine, perché sostituisce il font di base.
   I file in public/fonts sono versioni ridotte (solo lettere latine e punteggiatura) in WOFF2:
   gli originali stanno nella cartella Font accanto al progetto. */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/static/fonts/atkinson-hyperlegible-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('/static/fonts/google-sans-variable.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Kapra Neue';
  src: url('/static/fonts/kapra-neue-bold-expanded.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --font-body: 'Atkinson Hyperlegible', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Google Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Kapra Neue', 'Google Sans', system-ui, sans-serif;
}

body, button, input, select, textarea { font-family: var(--font-body); }

h2, h3, h4, h5, h6,
.title, .logo-name, .auth-logo strong, .hero-points b, .side-points, .counter .value { font-family: var(--font-heading); }

/* H1: titoli in maiuscolo, in un carattere molto largo, quindi più piccoli e che vanno a capo senza uscire dallo schermo */
h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
  line-height: 1.12; overflow-wrap: anywhere; hyphens: auto;
  font-size: 24px !important;
}
.hero h1 { font-size: 24px !important; }
@media (min-width: 600px) {
  h1 { font-size: 28px !important; }
  .hero h1 { font-size: 28px !important; }
}
@media (min-width: 1024px) {
  h1 { font-size: 32px !important; }
  .hero h1 { font-size: 30px !important; }
}
@media (max-width: 359px) {
  h1, .hero h1 { font-size: 20px !important; }
}

/* Numeri isolati (punti, posizioni, conteggi): Google Sans, perché lo zero di Atkinson è barrato.
   Nelle frasi (per esempio "0 di 3 video") resta Atkinson: lo zero barrato è parte del suo disegno per la leggibilità. */
.prow b, .prow .pos, .podium .score, .podium .medal, .mine-line span:last-child, .item-pts, .counter .value, .hero-points span {
  font-family: var(--font-heading);
}

/* Il pulsante dei campi "scegli file" ha un font suo: lo allineiamo agli altri */
input[type="file"], input[type="file"]::file-selector-button { font-family: var(--font-body); }
