/* Doppio Giallo — foglio di stile unico.
   Riprende il vecchio sito: fondo blu notte, riquadri gialli, menu a sinistra.
   Il carattere è Jost, lo stesso del fantacalcio. */

/* Jost* — Owen Earl / indestructible type*, licenza SIL Open Font License 1.1.
   I file stanno qui e non si richiamano da Google: nessuna dipendenza esterna,
   nessun dato dei giocatori che esce verso terzi. Il font è variabile 400–700,
   quindi due soli file coprono tutti gli spessori. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(font/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(font/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --notte:   #1b1b3a;
  --notte-2: #232350;
  --giallo:  #f5c518;
  --lilla:   #7b7bc4;
  --inchiostro: #1b1b1b;
  --tenue:   rgba(27, 27, 27, .55);
  --riga:    rgba(27, 27, 27, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--notte);
  color: #fff;
  font: 16px/1.5 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; }

/* ---- Testata ---- */
.testata {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 2rem;
}
.marchio { font-size: 1.75rem; font-weight: 300; letter-spacing: .12em; text-decoration: none; }
.testata nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.testata nav a { color: rgba(255,255,255,.65); text-decoration: none; padding-bottom: 3px; }
.testata nav a:hover { color: #fff; }
.testata nav a.attivo { color: #fff; border-bottom: 2px solid #e0245e; }

/* ---- Impianto: menu a sinistra, contenuto a destra ---- */
.impianto {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 2rem; align-items: start;
  max-width: 1180px; margin: 2rem auto 4rem; padding: 0 2rem;
}

.menu { background: var(--lilla); border-radius: 12px; padding: 1.1rem 1.1rem 1.25rem; }
.menu h2 { margin: 0 0 .8rem; font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.menu a { display: block; padding: .28rem 0; text-decoration: none; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.menu a:hover { text-decoration: underline; }
.menu a.attivo { font-weight: 700; }
.menu .separatore { margin: .8rem 0 .4rem; border-top: 1px solid rgba(255,255,255,.3); padding-top: .6rem; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ---- Il riquadro giallo ---- */
.foglio {
  background: var(--giallo); color: var(--inchiostro);
  border-radius: 14px; padding: 1.75rem 2rem 2rem;
}
.foglio h1 { margin: 0 0 1.4rem; font-size: 1.3rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.foglio h2 { font-size: 1rem; margin: 1.75rem 0 .6rem; }
.foglio p { margin: 0 0 .9rem; }
.foglio a { color: var(--inchiostro); }

/* ---- Tabelle ---- */
.tavola { width: 100%; border-collapse: collapse; }
.tavola th, .tavola td { padding: .5rem .6rem; text-align: left; border-bottom: 1px solid var(--riga); }
.tavola th { font-weight: 500; font-size: .95rem; }
.tavola td.n, .tavola th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tavola tr:last-child td { border-bottom: none; }
.tavola .spenta { color: var(--tenue); }

/* Indice dei mesi in cima al calendario. */
.indice-mesi { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: -.4rem 0 1.4rem; }
.indice-mesi a {
  padding: .2rem .55rem; border: 1px solid var(--riga); border-radius: 999px;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--tenue);
}
.indice-mesi a:hover { color: var(--inchiostro); border-color: var(--inchiostro); }

/* Intestazione di mese dentro il calendario: separa senza spezzare la tabella.
   Lo scroll-margin evita che, arrivandoci da un link dell'indice, il titolo del
   mese finisca appiccicato al bordo alto della finestra. */
.tavola tr.mese { scroll-margin-top: 1rem; }
.tavola tr.mese th {
  padding: 1.4rem .6rem .35rem;
  font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tenue); border-bottom: 1px solid var(--riga);
}
.tavola tr.mese:first-child th { padding-top: 0; }
.avvolgi { overflow-x: auto; }

.pos { color: var(--tenue); width: 2rem; }
.oro   td { color: #000; }        /* i primi: inchiostro pieno, senza grassetto */
.cena  td { color: #8a2b2b; }

/* ---- Note, avvisi, moduli ---- */
.nota { font-size: .85rem; color: var(--tenue); margin-top: 1.25rem; }
.avviso { padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: .9rem; }
.avviso.male { background: #8a2b2b; color: #fff; }
.avviso.bene { background: #1f6b3a; color: #fff; }

label { display: block; font-size: .85rem; margin-bottom: .35rem; }
input[type=text], input[type=password], input[type=date], select {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--riga); border-radius: 8px;
  background: #fff; color: var(--inchiostro); font: inherit; }
.bottone {
  display: inline-block; margin-top: 1rem; padding: .6rem 1.4rem; border: 0; border-radius: 8px;
  background: var(--notte); color: #fff; font: inherit;   font-size: .9rem; cursor: pointer; text-decoration: none;
}
.bottone:hover { background: var(--notte-2); }
.bottone.tenue { background: transparent; color: var(--inchiostro); border: 1px solid var(--riga); }

/* ---- Accesso ---- */
.accesso { max-width: 380px; margin: 8vh auto; padding: 0 1.5rem; }

/* ---- Schermi stretti ---- */
@media (max-width: 760px) {
  .impianto { grid-template-columns: 1fr; padding: 0 1rem; gap: 1.25rem; }
  .testata { flex-direction: column; align-items: flex-start; padding: 1.25rem 1rem; }
  .foglio { padding: 1.25rem 1.1rem 1.5rem; }
}
