/* Legion of Cells — pagine del sito (missione N4, 12/11/2026).
   Un solo foglio per tutte le pagine; nessuna risorsa esterna, nessun font scaricato. */
:root {
  --notte: #1d2b4f;
  --testo: #24304a;
  --tenue: #5b6478;
  --fondo: #f7f4ec;
  --carta: #ffffff;
  --verde: #2f8a5b;
  --bordo: #d9d3c4;
  --giallo: #fff1b8;
  --giallo-bordo: #c99a00;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 42rem; margin: 0 auto; padding: 1rem 1.1rem 3rem; }
header.testata { display: flex; align-items: center; gap: .8rem; padding: .4rem 0 .9rem; border-bottom: 2px solid var(--bordo); }
header.testata img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
header.testata .nome { font-weight: 700; font-size: 1.15rem; color: var(--notte); margin: 0; }
header.testata .lingua { margin-left: auto; font-size: .95rem; }
h1 { font-size: 1.6rem; line-height: 1.25; color: var(--notte); margin: 1.2rem 0 .5rem; }
h2 { font-size: 1.2rem; color: var(--notte); margin: 1.8rem 0 .4rem; }
h3 { font-size: 1.05rem; color: var(--notte); margin: 1.3rem 0 .2rem; }
p, ul { margin: .5rem 0; }
ul { padding-left: 1.3rem; }
li { margin: .25rem 0; }
a { color: #1f5fa8; }
.in-breve { background: var(--carta); border-left: 4px solid var(--verde); padding: .7rem .9rem; border-radius: 6px; }
.data { color: var(--tenue); font-size: .95rem; }
.tabella { overflow-x: auto; margin: .6rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--carta); font-size: .95rem; }
th, td { border: 1px solid var(--bordo); padding: .45rem .5rem; text-align: left; vertical-align: top; }
th { background: #ece7da; color: var(--notte); }
/* Sul telefono la tabella diventa una scheda per riga: categoria come titolo,
   poi le tre voci con la loro etichetta (nella lingua della pagina). */
@media (max-width: 36rem) {
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  table { background: none; border: 0; }
  tr { background: var(--carta); border: 1px solid var(--bordo); border-radius: 8px; margin: 0 0 .8rem; padding: .3rem .2rem; }
  td { border: 0; padding: .3rem .6rem; }
  td:first-child { font-weight: 700; color: var(--notte); border-bottom: 1px solid var(--bordo); }
  td:not(:first-child)::before { display: block; font-weight: 600; font-size: .85rem; color: var(--tenue); }
  html:lang(it) td:nth-child(2)::before { content: "Cosa contiene"; }
  html:lang(it) td:nth-child(3)::before { content: "A cosa serve"; }
  html:lang(it) td:nth-child(4)::before { content: "Per quanto"; }
  html:lang(en) td:nth-child(2)::before { content: "What it holds"; }
  html:lang(en) td:nth-child(3)::before { content: "What it is for"; }
  html:lang(en) td:nth-child(4)::before { content: "How long"; }
}
nav.documenti { margin-top: 2.2rem; padding-top: .8rem; border-top: 2px solid var(--bordo); }
nav.documenti a { display: inline-block; margin: .2rem 1rem .2rem 0; }
footer { color: var(--tenue); font-size: .9rem; margin-top: 1rem; }
/* D4: il titolare e il contatto non sono ancora decisi. Si vede in giallo finché
   `python3 controlla.py --risolvi-d4 …` non toglie i segnaposto. */
.d4-avviso { background: var(--giallo); border: 2px dashed var(--giallo-bordo); padding: .6rem .8rem; border-radius: 6px; margin: 1rem 0; font-size: .95rem; }
mark.d4 { background: var(--giallo); outline: 1px dashed var(--giallo-bordo); color: inherit; padding: 0 .15rem; }
