/* =====================================================================
   ACTE – foglio di stile unico del sito
   Indice: 1 font · 2 token · 3 base · 4 layout · 5 componenti
           6 header/footer · 7 pagine · 8 giochi · 9 modal
   (il gioco dell'oca ha una pagina a sé: static/css/oca.css)

   Tutto qui dentro viene dal manuale del marchio, edizione 01:
   due famiglie di colore e basta, tre voci tipografiche, misure
   multiple di 4. La regola che governa il resto è che il colore
   compare in quattro punti soli per pagina — il marchio, l'azione
   principale, i richiami di sezione e i dati. Il resto è carta e
   inchiostro: niente gradienti, niente ombre decorative.
   ===================================================================== */

/* ---------- 1. Font (self-hosted, SIL Open Font License) ---------- */
/* Tre voci, tre mestieri: il grottesco non scrive paragrafi, il serif non
   fa titoli, il monospazio non scrive testo corrente. */
/* Archivo è servito con l'asse di larghezza già fermo a 125: la larghezza è
   dentro il file, non si imposta e non si può sbagliare da CSS. */
@font-face { /* logotipo, titoli, etichette */
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 125%;
  font-display: swap;
  src: url('../fonts/archivo-125-600-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 125%;
  font-display: swap;
  src: url('../fonts/archivo-125-600-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { /* testo corrente: un articolo si legge per minuti, non per secondi */
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { /* note e incisi */
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { /* occhielli, dati, misure: il passo fisso incolonna i numeri */
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Token ---------- */
:root {
  /* neutri: carta e inchiostro, il 95% di ogni pagina (tavola 7) */
  --superficie: #fdfaf4;
  --bg: #f3f0ea;            /* fondo pagina */
  --bg-alt: #e6e2dd;
  --linea: #d2cfca;         /* separa due blocchi, non delimita un controllo */
  --disattivo: #898681;     /* contorno di un controllo, testo spento */
  --muted: #5a5853;         /* testo secondario, 6,25:1 */
  --text: #1d1a16;          /* inchiostro, 15,2:1 */
  --scuro: #0f0d09;         /* superficie scura */

  /* arancio: l'unica tinta identitaria, in sei gradini */
  --velo: #ffdecd;
  --campitura: #ffb997;     /* 1,46:1 — non ci si scrive sopra */
  --brand-chiaro: #d16022;  /* solo su fondo scuro, lì misura 5,00:1 */
  --brand: #b33c00;         /* base, 5,18:1 */
  --brand-premuto: #8a2400;
  --brand-profondo: #541600;

  /* stati del gioco: verde e indaco, mai verde e rosso (tavola 8) */
  --ok: #4f986b;
  --ko: #584fa3;
  --ok-scuro: #38ad45;      /* le stesse due voci su fondo scuro */
  --ko-scuro: #5e599d;

  /* i sei gruppi dei grafi: i primi tre sono quelli del manuale */
  --dato-1: #db6525;        /* il primo gruppo è la tinta dell'identità */
  --dato-2: #7c6ced;
  --dato-3: #843666;
  --dato-4: #1f7a6d;
  --dato-5: #d9ac2b;
  --dato-6: #2d5f8a;

  --font-heading: 'Archivo', system-ui, sans-serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* la scala delle distanze (tavola 13): 4 e 8 separano elementi della
     stessa cosa, 16 e 24 cose diverse, 32 e 48 blocchi, 64 e 96 sezioni.
     Valori intermedi non esistono. */
  --s4: 4px;  --s8: 8px;   --s12: 12px; --s16: 16px; --s24: 24px;
  --s32: 32px; --s48: 48px; --s64: 64px; --s96: 96px;

  --radius: 8px;
  --radius-sm: 4px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s16)); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  /* testo corrente: Spectral 400, 15 → 17 px, interlinea 1,62 */
  font: 400 clamp(.9375rem, .9rem + .2vw, 1.0625rem)/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* i titoli sono inchiostro: il colore è una risorsa scarsa e non si spende qui */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 2.1rem + 2.8vw, 4.125rem); line-height: .97; }  /* 48 → 66 px */
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: var(--s12); }
h3 { font-weight: 600; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.15; }
h4 { font-weight: 600; font-size: 1rem; }
p + p { margin-top: var(--s12); }
strong { font-weight: 600; }

/* i collegamenti restano inchiostro e si annunciano con una riga arancio:
   così la pagina non si riempie di colore ma resta chiaro dove si clicca */
a { color: inherit; text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s12); top: -48px; z-index: 100;
  background: var(--brand); color: var(--bg); padding: var(--s8) var(--s16);
  font: 600 .9375rem var(--font-heading); text-decoration: none;
}
.skip-link:focus { top: var(--s12); }
/* nota, inciso: Spectral corsivo, 13 → 14 px, colore secondario */
.muted { color: var(--muted); }
.nota { font-style: italic; font-size: clamp(.8125rem, .8rem + .1vw, .875rem); color: var(--muted); }
/* dati, misure, codici: passo fisso e cifre incolonnate */
.dato { font: 500 clamp(.625rem, .6rem + .15vw, .75rem) var(--font-mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.site-main { flex: 1; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--surface { background: var(--superficie); border-block: 1px solid var(--linea); }

.card-grid {
  display: grid;
  gap: var(--s16);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.card-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: var(--s32); }
.card-grid--games { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 380px; }
  .split--reverse { grid-template-columns: 380px 1fr; }
  .split--reverse > aside { order: -1; }
  /* riquadro più largo: le due colonne delle competenze reggono "Regolamentazione" intera */
  .split--largo { grid-template-columns: 1fr 468px; }
}

/* ---------- 5. Componenti ---------- */
/* L'azione principale è uno dei quattro punti in cui il colore compare.
   Sul campo arancio si scrive solo in carta: la campitura chiara misura
   1,46:1 ed è illeggibile. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s8);
  min-height: 44px; padding: var(--s12) var(--s24);
  border: 1px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--brand); color: var(--bg);
  font: 600 clamp(.875rem, .85rem + .15vw, 1rem)/1.2 var(--font-heading);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--brand-premuto); border-color: var(--brand-premuto); color: var(--bg); }
.btn:active { background: var(--brand-profondo); border-color: var(--brand-profondo); }
.btn--lg { min-height: 52px; padding: var(--s16) var(--s32); }
/* azione secondaria: nessun colore di fondo, solo il contorno grigio del manuale */
.btn--ghost { background: transparent; border-color: var(--disattivo); color: var(--text); }
.btn--ghost:hover { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s12); margin-top: var(--s32); }
.btn-row--center { justify-content: center; }

.card {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: var(--s24);
}
.card--link { color: inherit; text-decoration: none; transition: border-color .15s; }
.card--link:hover { border-color: var(--brand); color: inherit; }

/* richiamo di sezione: il terzo dei quattro punti in cui il colore compare.
   Plex Mono 500, 11,5 px, maiuscolo, tracking .22em (tavola 12). */
.eyebrow {
  font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: var(--s12);
}

.tag {
  display: inline-block; align-self: flex-start;
  padding: var(--s4) var(--s8); border-radius: var(--radius-sm);
  background: var(--velo); color: var(--brand-premuto);
  font: 500 .6875rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.chip {
  min-height: 40px; padding: var(--s8) var(--s16); border-radius: var(--radius-sm);
  border: 1px solid var(--disattivo); background: transparent; color: var(--text);
  font: 600 .875rem var(--font-heading); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--bg); }

.pill {
  display: inline-block; padding: var(--s4) var(--s8); border-radius: var(--radius-sm);
  font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid currentColor;
}
/* il colore non dice mai da solo se hai indovinato: accanto restano icona e parola */
.pill--real { color: var(--ok); }
.pill--fake { color: var(--ko); }
.pill--muted { color: var(--muted); border-color: var(--linea); }

.link-arrow { font-weight: 600; font-family: var(--font-heading); text-decoration: none; color: var(--brand); }
.link-arrow:hover { text-decoration: underline; }
.back-link { color: var(--muted); font: 600 .875rem var(--font-heading); text-decoration: none; }
.back-link:hover { color: var(--brand); }
.form-error { color: var(--brand-premuto); font-size: .875rem; margin-top: var(--s8); }

/* ---------- 6. Header e footer ---------- */
/* Testata: il marchio a sinistra, poi le voci. Il marchio è uno dei quattro
   punti di colore, la navigazione no. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--linea);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--s16); }
.logo { display: flex; align-items: center; gap: var(--s12); text-decoration: none; color: var(--brand); }
/* mai sotto i 36 px: più in piccolo i sei strati si impastano e tocca
   alla versione ridotta, che qui non serve */
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
/* il logotipo è il settimo strato: stessi terminali piatti, stesso asse */
.logo__nome { font: 700 1.5rem/1 var(--font-heading); letter-spacing: -.03em; }

.site-nav { display: flex; gap: var(--s4); margin-left: auto; }
.site-nav a {
  padding: var(--s8) var(--s12); border-radius: var(--radius-sm);
  color: var(--text); font: 600 .9375rem var(--font-heading); text-decoration: none;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }
/* la voce attiva è un dato di posizione, non un'azione: resta inchiostro,
   con la riga arancio sotto a dire dove sei */
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

/* selettore lingua IT | EN */
.lang-switch { display: flex; gap: var(--s4); }
.lang-switch a {
  padding: var(--s4) var(--s8); border-radius: var(--radius-sm); text-decoration: none;
  color: var(--muted); font: 500 .6875rem var(--font-mono); letter-spacing: .12em;
}
.lang-switch a:hover { color: var(--text); background: var(--bg-alt); }
.lang-switch a[aria-current] { background: var(--text); color: var(--bg); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  .logo__nome { font-size: 1.25rem; }
  .nav-toggle { display: flex; order: 5; }
  .lang-switch { margin-left: auto; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; gap: 0; padding: var(--s8) var(--gutter) var(--s16);
    background: var(--bg); border-bottom: 1px solid var(--linea);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav a { padding: var(--s12) var(--s16); font-size: 1.0625rem; }
  .is-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .is-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .is-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

/* Piè di pagina: superficie scura del manuale. Lì l'arancio passa al
   gradino chiaro #d16022, che su quel fondo misura 5,00:1. */
.site-footer { background: var(--scuro); color: var(--bg); padding-block: var(--s32); margin-top: auto; }
.site-footer .logo { color: var(--brand-chiaro); margin-bottom: var(--s24); }
.contacts + .site-footer__note { margin-top: var(--s24); padding-top: var(--s16); border-top: 1px solid rgb(210 207 202 / .2); }
.contacts {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s4) var(--s32);
}
@media (max-width: 560px) { .contacts { flex-direction: column; align-items: flex-start; } }
.contacts a {
  display: flex; align-items: center; gap: var(--s8); padding: var(--s4) 0;
  color: var(--bg); text-decoration: none; font-family: var(--font-heading); font-weight: 600;
  font-size: .9375rem; overflow-wrap: anywhere;
}
.contacts a:hover { color: var(--brand-chiaro); }
.contacts a:hover span { text-decoration: underline; }
.contacts svg { flex-shrink: 0; }
.site-footer__note {
  margin: 0;
  font: 500 .6875rem/1.6 var(--font-mono); letter-spacing: .06em;
  color: rgb(243 240 234 / .7); text-align: center;
}
.cinghiale { font-size: 1.4em; vertical-align: -.15em; }

/* ---------- 7. Pagine ---------- */
/* Home: la copertina è carta, non un campo pieno. Il colore ci sta in
   quattro punti — marchio, occhiello, pulsante, e basta. */
.hero {
  background: var(--superficie);
  border-bottom: 1px solid var(--linea);
  padding-block: clamp(64px, 10vw, 96px);
  overflow: hidden;
}
.hero__inner { display: grid; gap: var(--s32); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1fr 280px; } }
.hero__title { max-width: 14ch; }
.hero__lead { font-size: clamp(1rem, .95rem + .4vw, 1.1875rem); margin-top: var(--s16); max-width: 46ch; color: var(--muted); }
/* il marchio in grande: è il quarto strato della pagina, non una decorazione */
.hero__marchio { color: var(--brand); justify-self: end; width: min(280px, 60vw); }
.hero__marchio svg { width: 100%; height: auto; }
@media (max-width: 899px) { .hero__marchio { display: none; } }

/* Animazione d'entrata: le parole salgono in sequenza, poi arriva il resto.
   Nessuna luccicanza sul testo: il manuale non prevede gradienti. */
.hero__word { display: inline-block; animation: word-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.15s + var(--i) * .12s); }
.hero .eyebrow, .hero__lead, .hero .btn-row { animation: fade-in .6s ease-out both; }
.hero .eyebrow { animation-delay: .05s; }
.hero__lead { animation-delay: .75s; }
.hero .btn-row { animation-delay: .95s; }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Intestazione delle pagine interne: la fascia di sezione del manuale,
   una riga arancio a sinistra e nient'altro. */
.page-hero {
  background: var(--superficie);
  border-bottom: 1px solid var(--linea);
  padding-block: clamp(48px, 7vw, 64px);
}
.page-hero .container { border-left: 4px solid var(--brand); padding-left: calc(var(--gutter) - 4px); }
.page-hero p { max-width: 62ch; margin-top: var(--s12); color: var(--muted); }
.page-hero--photo {
  position: relative; isolation: isolate; border-bottom: 0;
  min-height: clamp(280px, 50vh, 480px); display: grid; align-items: end;
  background: var(--hero-img) center 30% / cover no-repeat;
  color: var(--bg);
}
.page-hero--photo h1 { color: var(--bg); }
.page-hero--photo p { color: rgb(243 240 234 / .85); }
.page-hero--photo .container { border-left-color: var(--brand-chiaro); }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(15 13 9 / .62);
}

/* Home: accesso rapido */
.quick-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s8); }
.quick-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.quick-card .icon-badge { margin-bottom: var(--s8); }
@media (max-width: 560px) {
  .quick-card { padding: var(--s16) var(--s12); }
  .quick-card p { font-size: .875rem; }
}
.quick-card p { color: var(--muted); }

/* Home: riquadri accanto al testo */
.split p + .btn { margin-top: var(--s24); }
/* due colonne larghe uguali (minmax(0, 1fr): una parola lunga non allarga la
   sua) e righe alte uguali, qualunque sia il numero di righe del nome */
.disciplines {
  list-style: none; padding: 0; display: grid; gap: var(--s12);
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr;
}
.disciplines li {
  display: flex; flex-direction: column; gap: var(--s12); padding: var(--s16);
  background: var(--bg); border-radius: var(--radius-sm);
  font: 600 .9375rem/1.3 var(--font-heading); hyphens: auto; overflow-wrap: break-word;
}
.icon-badge { flex-shrink: 0; }
.icon-badge {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--text);
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge--lg { width: 84px; height: 84px; background: var(--velo); color: var(--brand); }
.icon-badge--lg svg { width: 44px; height: 44px; }
.card--link:hover .icon-badge--lg { background: var(--brand); color: var(--bg); }
.icon-badge--lg, .icon-badge--lg svg { transition: background-color .15s, color .15s; }
@media (max-width: 560px) {
  .icon-badge--lg { width: 64px; height: 64px; }
  .icon-badge--lg svg { width: 34px; height: 34px; }
}

/* L'acronimo sta sulla superficie scura: lì l'arancio è il gradino chiaro */
.acronym { background: var(--scuro); border: 0; color: var(--bg); }
.acronym__row { display: flex; align-items: center; gap: var(--s16); padding-block: var(--s12); }
.acronym__row + .acronym__row { border-top: 1px solid rgb(210 207 202 / .18); }
.acronym dt {
  display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-sm); background: rgb(209 96 34 / .16); color: var(--brand-chiaro);
  font: 700 1.5rem var(--font-heading);
}
.acronym dd { margin: 0; font: 600 1.125rem var(--font-heading); }

/* Chi siamo */
.team-grid { display: grid; gap: var(--s16); grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-card__photo {
  width: 140px; height: 140px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--linea); margin-bottom: var(--s16);
}
.team-card__meta { color: var(--muted); font-size: .875rem; margin-top: var(--s4); }
@media (max-width: 560px) {
  .team-card { padding: var(--s16) var(--s12); }
  .team-card h3 { font-size: 1rem; }
  .team-card__photo { width: 96px; height: 96px; }
  .team-card__meta { font-size: .8125rem; }
}
.team-card__links { display: flex; gap: var(--s12); margin-top: auto; padding-top: var(--s16); }
.team-card__links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); transition: background .15s; }
.team-card__links a:hover { background: var(--bg-alt); }
.team-card__links img { width: 26px; height: 26px; }

/* Articoli */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s8); margin-bottom: var(--s24); }
/* card degli articoli: stessa forma per divulgazione e paper scientifici */
.section-lead { max-width: 60ch; margin: var(--s8) auto 0; color: var(--muted); }

.production-card { display: flex; flex-direction: column; gap: var(--s12); }
.production-card__title { font-size: 1.125rem; margin: 0; }
.production-card p { flex: 1; color: var(--muted); }
.production-card__authors { color: var(--text); font-size: .9375rem; }
.production-card__authors strong { color: var(--brand); }
.production-card__venue { flex: 0; font: 500 .6875rem var(--font-mono); letter-spacing: .06em; color: var(--muted); }

.article { max-width: 680px; margin-inline: auto; padding: clamp(32px, 6vw, 64px) var(--gutter); }
.article__header { margin-bottom: var(--s32); }
.article__header h1 { margin-top: var(--s16); }
.article__subtitle { font-size: 1.125rem; color: var(--muted); margin-top: var(--s8); }
.article__meta { font: 500 .6875rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: var(--s12); }
.article__hero { width: 100%; border-radius: var(--radius); margin-top: var(--s24); }
.article__body { font-size: 1.0625rem; line-height: 1.62; }
.article__body h2 { margin-top: var(--s48); }
.article__body p { margin-top: var(--s16); }
.article__body img { margin: var(--s24) auto; border-radius: var(--radius-sm); }
.article__body blockquote {
  margin: var(--s24) 0; padding: var(--s16) var(--s24); border-left: 4px solid var(--brand);
  background: var(--superficie); font-style: italic;
}
.article__body blockquote footer { margin-top: var(--s8); font-style: normal; color: var(--muted); }
.article__footer { margin-top: var(--s48); padding-top: var(--s16); border-top: 1px solid var(--linea); color: var(--muted); font-size: .875rem; text-align: center; }

/* Eventi */
.event-list { display: grid; gap: var(--s24); max-width: 860px; }
.event-card { border-left: 4px solid var(--brand); }
.event-card__title { font-size: 1.25rem; margin-bottom: var(--s12); }
.event-card__meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s8); margin-bottom: var(--s12); }
/* data, luogo, ora sono dati: passo fisso e cifre incolonnate */
.event-card__meta li {
  background: var(--bg-alt); color: var(--text); border-radius: var(--radius-sm); padding: var(--s4) var(--s8);
  font: 500 .75rem var(--font-mono); font-variant-numeric: tabular-nums;
}
.event-card__meta strong { font-weight: 500; color: var(--muted); }

/* ---------- 8. Giochi ---------- */
/* Scelta del gioco: l'oca in una fascia sua, gli altri tutti nella griglia */
.game-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.game-card__cover { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.game-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-card__cover img { transform: scale(1.04); }
.game-card__cover--icon { display: grid; place-items: center; font-size: 4.5rem; background: var(--velo); }
.game-card__cover--pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--linea); }
.vs {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--bg); font: 600 .875rem var(--font-heading);
  border: 2px solid var(--superficie);
}
.credits-link { margin-top: var(--s32); }
.game-card__cover--scam { background: var(--bg-alt); }
.game-card__body { display: flex; flex-direction: column; gap: var(--s8); padding: var(--s24); flex: 1; }
.game-card__title { font-size: 1.25rem; margin: 0; }
.game-card__body p { color: var(--muted); flex: 1; }
.game-card__body .btn { align-self: flex-start; margin-top: var(--s8); }

/* La card del gioco dell'oca: una sola, larga, con la copertina di lato */
.game-card--oca { max-width: 680px; margin-inline: auto; }
@media (min-width: 560px) {
  .game-card--oca { flex-direction: row; }
  .game-card--oca .game-card__cover { flex: 0 0 200px; aspect-ratio: auto; }
}

/* Partita */
.game { padding-block: var(--s24) var(--s48); }
.game__inner { max-width: 900px; }
.game__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s16); }
.game__title { font: 500 11.5px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--brand); text-align: center; flex: 1; }
/* il contatore è un dato */
.game__counter { font: 500 .75rem var(--font-mono); color: var(--muted); min-width: 4.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.progress { height: 8px; background: var(--bg-alt); margin: var(--s12) 0 var(--s24); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--brand); transition: width .35s ease; }
.game__question { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.875rem); text-align: center; margin-bottom: var(--s16); }

.stage { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radius); }
.stage--image {
  --stage-h: clamp(260px, 52vh, 560px);
  display: flex; align-items: center; justify-content: center; padding: var(--s8);
  height: var(--stage-h);
}
.stage--image img {
  width: auto; height: auto; max-width: 100%; max-height: calc(var(--stage-h) - 16px);
  object-fit: contain; border-radius: var(--radius-sm);
  opacity: 0; transition: opacity .25s;
}
.stage--image img.is-loaded { opacity: 1; }

/* Truffa o no: SMS, email e siti disegnati in HTML.
   Qui i colori NON sono quelli di ACTE e non devono esserlo: il pezzo deve
   somigliare a un telefono e a un browser veri, altrimenti l'esercizio non
   funziona. È contenuto illustrato, non identità. */
.stage--scam { padding: var(--s16); min-height: clamp(260px, 44vh, 460px); display: grid; place-items: center; }
.scam { width: 100%; max-width: 560px; margin-inline: auto; font-family: system-ui, sans-serif; }
.scam__type {
  display: inline-block; align-self: flex-start; margin-bottom: var(--s8); padding: var(--s4) var(--s8);
  border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--muted);
  font: 500 .6875rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.fake-link { color: #1d4ed8; text-decoration: underline; overflow-wrap: anywhere; }
.mock-button {
  display: inline-block; margin-top: 10px; padding: .55rem 1.1rem; border-radius: 8px;
  background: #1d4ed8; color: #fff; font-weight: 600; font-size: .95rem;
}

.sms { background: #f1f5f9; border-radius: 18px; padding: 14px; }
.sms__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #dbe3ec; }
.sms__avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #94a3b8; color: #fff; font-weight: 600; text-transform: uppercase;
}
.sms__bubble {
  max-width: 90%; padding: 10px 14px; border-radius: 18px 18px 18px 4px;
  background: #fff; border: 1px solid #e2e8f0; overflow-wrap: anywhere;
}
.sms__time { display: block; margin-top: 6px; font-size: .75rem; color: #64748b; }

.mail { background: #fff; border: 1px solid #dbe3ec; border-radius: 12px; padding: 16px 18px; }
.mail__from { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; }
.mail__address { color: #64748b; font-size: .9rem; overflow-wrap: anywhere; }
.mail__subject { font-weight: 600; margin: 8px 0 12px; padding-bottom: 10px; border-bottom: 1px solid #eef2f7; }
.mail p + p { margin-top: .6rem; }

.browser { border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #e2e8f0; }
.browser__dots { width: 42px; height: 10px; flex-shrink: 0;
  background: radial-gradient(circle at 5px 5px, #ef4444 4px, transparent 5px),
              radial-gradient(circle at 21px 5px, #f59e0b 4px, transparent 5px),
              radial-gradient(circle at 37px 5px, #22c55e 4px, transparent 5px); }
.browser__url {
  flex: 1; min-width: 0; display: flex; gap: .4rem; align-items: center;
  padding: .3rem .7rem; border-radius: 999px; background: #fff; font-size: .85rem; overflow-wrap: anywhere;
}
.browser__insecure { color: #b3261e; font-weight: 600; white-space: nowrap; }  /* il rosso del browser vero */
.browser__page { padding: 12px 16px 16px; }
.browser__page h3 { color: #0f172a; margin-bottom: .5rem; font-family: system-ui, sans-serif; }
.mock-field { display: grid; gap: 2px; margin-top: 6px; font-size: .85rem; }
.mock-input { height: 26px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; }

.clues { margin: var(--s8) 0 0; padding-left: var(--s24); }
.clues li + li { margin-top: var(--s4); }
.modal h4.clues-title--fake { color: var(--ko); }
.game--scam .recap-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* Trova la vera: due immagini da toccare */
.stage-pair { display: grid; gap: var(--s12); }
@media (min-width: 640px) { .stage-pair { grid-template-columns: 1fr 1fr; } }
.pair-option {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: clamp(200px, 34vh, 320px); padding: var(--s8);
  background: var(--superficie); border: 1px solid var(--disattivo); border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
  transition: border-color .15s, transform .15s;
}
@media (min-width: 640px) { .pair-option { height: clamp(260px, 52vh, 520px); } }
@media (hover: hover) { .pair-option:hover { border-color: var(--brand); } }
.pair-option.is-picked { border-color: var(--brand); border-width: 2px; transform: scale(.98); }
.pair-option img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-sm); opacity: 0; transition: opacity .25s;
}
.pair-option img.is-loaded { opacity: 1; }
.pair-option kbd {
  position: absolute; top: var(--s8); right: var(--s12);
  font: 500 .6875rem var(--font-mono); color: var(--muted); background: var(--superficie);
  border: 1px solid var(--linea); border-radius: var(--radius-sm); padding: 0 var(--s4);
}
@media (hover: none) { .pair-option kbd { display: none; } }

.stage--news {
  padding: var(--s24); max-height: 52vh; overflow: auto;
  font-size: clamp(1rem, .95rem + .4vw, 1.1875rem); line-height: 1.62;
  border-left: 4px solid var(--brand);
}

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); margin-top: var(--s16); }
.answer {
  position: relative; display: flex; align-items: center; justify-content: center; gap: var(--s8);
  min-height: 64px; padding: var(--s12) var(--s16); border-radius: var(--radius-sm);
  border: 1px solid var(--brand); background: var(--superficie); color: var(--brand);
  font: 600 clamp(1rem, .95rem + .4vw, 1.125rem) var(--font-heading);
  cursor: pointer; touch-action: manipulation;
  transition: background .15s, color .15s, transform .15s;
}
@media (hover: hover) { .answer:hover { background: var(--velo); } }
.answer:active, .answer.is-picked { background: var(--brand); color: var(--bg); transform: scale(.98); }
.answer__icon { font-size: 1.4em; line-height: 1; }
.answer kbd {
  position: absolute; top: var(--s8); right: var(--s8);
  font: 500 .625rem var(--font-mono); color: var(--muted);
  border: 1px solid var(--linea); border-radius: var(--radius-sm); padding: 0 var(--s4);
}
@media (hover: none) { .answer kbd { display: none; } }

/* Risultati: il punteggio è un dato, e sui dati il colore può parlare */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.results { text-align: center; max-width: 620px; margin: var(--s8) auto 0; padding: var(--s32); }
.score {
  --p: 0;
  width: 150px; aspect-ratio: 1; margin: 0 auto var(--s24); border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--bg-alt) 0);
  transition: --p .8s;
}
.score span {
  width: 118px; aspect-ratio: 1; border-radius: 50%; background: var(--superficie);
  display: grid; place-items: center;
  font: 500 1.75rem var(--font-mono); color: var(--brand); font-variant-numeric: tabular-nums;
}
.results p { color: var(--muted); margin-top: var(--s8); }

.recap { margin-top: var(--s48); }
.recap h2 { text-align: center; margin-bottom: var(--s4); }
.recap > .muted { text-align: center; margin-bottom: var(--s24); }
.recap-grid { display: grid; gap: var(--s16); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.game--news .recap-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.recap-card {
  display: flex; flex-direction: column; gap: var(--s12); padding: var(--s12); text-align: left;
  font: inherit; color: inherit; cursor: pointer; transition: border-color .15s;
}
.recap-card:hover { border-color: var(--brand); }
.recap-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.recap-card__text {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  padding: var(--s4) var(--s4) 0;
}
.verdict { display: flex; flex-wrap: wrap; gap: var(--s4); }
.recap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.pair-fig { position: relative; }
.pair-fig .pill { position: absolute; left: var(--s4); bottom: var(--s4); background: var(--superficie); }
.pair-fig.is-chosen img { outline: 2px solid var(--brand); outline-offset: 2px; }
.game--pairs .recap-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.credit-line { font: 500 .6875rem var(--font-mono); color: var(--muted); margin-top: var(--s4); }

/* sui telefoni i pulsanti di risposta restano sempre a portata di pollice */
@media (max-width: 560px) {
  .answers {
    position: sticky; bottom: 0; z-index: 5;
    margin-inline: calc(-1 * var(--gutter)); padding: var(--s8) var(--gutter) calc(var(--s8) + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--linea);
  }
}
@media (max-width: 480px) {
  .game__top .back-link { font-size: .8125rem; }
  .answers { gap: var(--s8); }
  .answer { flex-direction: column; gap: var(--s4); min-height: 76px; }
}

/* Crediti delle immagini */
.credits-list { list-style: none; padding: 0; display: grid; gap: var(--s12); margin-top: var(--s24); }
.credit { display: flex; align-items: center; gap: var(--s16); padding: var(--s12); }
.credit img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.credit__title { font-weight: 600; font-family: var(--font-heading); overflow-wrap: anywhere; }
.credit__title .pill { margin-right: var(--s4); }
.credit .muted { font-size: .875rem; margin-top: var(--s4); }
@media (max-width: 480px) { .credit img { width: 80px; height: 60px; } }

/* ---------- 9. Finestre modali (<dialog>) ---------- */
/* L'unica ombra del foglio: una finestra galleggia davvero sopra la pagina */
.modal {
  width: min(680px, calc(100% - 32px)); max-height: calc(100% - 48px);
  margin: auto; padding: var(--s32); padding-top: var(--s48);
  border: 1px solid var(--linea); border-radius: var(--radius);
  box-shadow: 0 24px 64px -24px rgb(29 26 22 / .35);
  background: var(--superficie); color: var(--text);
}
.modal[open] { animation: pop .2s ease-out; }
.modal::backdrop { background: rgb(29 26 22 / .55); }
.modal__close {
  position: absolute; top: var(--s8); right: var(--s8); width: 44px; height: 44px;
  border: 0; border-radius: var(--radius-sm); background: transparent; font-size: 1.5rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.modal__close:hover { background: var(--bg-alt); color: var(--text); }
.modal h3 { margin-bottom: var(--s8); }
.modal h4 { margin: var(--s24) 0 var(--s4); color: var(--ok); }
.modal__img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--radius-sm); margin-bottom: var(--s16); }
.modal__text { white-space: pre-line; }
.modal .verdict { margin-top: var(--s16); }
.modal:has(.modal-pair) { width: min(980px, calc(100% - 32px)); }
.modal-pair { display: grid; gap: var(--s16); }
@media (min-width: 640px) { .modal-pair { grid-template-columns: 1fr 1fr; } }
.modal-pair .modal__img { width: 100%; height: auto; max-height: 38vh; object-fit: contain; margin-bottom: 0; }
@media (min-width: 640px) {
  .modal-pair .modal__img { height: min(45vh, 420px); max-height: none; background: var(--bg); }
}
.modal-pair .pair-fig .pill { bottom: auto; top: var(--s8); left: var(--s8); }
.modal img:not(.modal__img) { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--s16); }

@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 11. Grafo dei temi (Competenze) ---------- */
/* Le posizioni dei pallini arrivano già calcolate dal server: qui si disegna
   e basta (static/js/grafo.js). Le aree sono sei, ognuna col suo colore
   (Codes/topic_graph.py), e i pallini sono tutti dischi. */

.grafo-intro { max-width: 62ch; margin: var(--s8) auto var(--s32); color: var(--muted); }

.grafo { display: grid; gap: var(--s16); }
/* la tela e la scheda stanno sullo stesso foglio di carta */
.panel { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radius); }

/* ---- filtri: chi, dove, quando ---- */
.grafo-filtri { display: flex; flex-direction: column; gap: var(--s8); }
.grafo-riga { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s8); }
.grafo-etichetta {
  min-width: 4.2rem; font: 500 11.5px var(--font-mono);
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.grafo-chip {
  padding: var(--s4) var(--s8); border: 1px solid var(--disattivo); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); font: 600 .8125rem var(--font-heading);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.grafo-chip:hover { border-color: var(--brand); color: var(--brand); }
.grafo-chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.grafo-chip.is-off { opacity: .45; text-decoration: line-through; }
.grafo-anni { display: flex; align-items: center; gap: var(--s4); font-size: .8125rem; color: var(--muted); }
.grafo-anni select {
  padding: var(--s4); border: 1px solid var(--disattivo); border-radius: var(--radius-sm);
  background: var(--superficie); color: var(--text); font: 500 .75rem var(--font-mono);
}
.grafo-conteggio { margin-left: auto; font: 500 .75rem var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.grafo-azzera {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: 600 .8125rem var(--font-heading); color: var(--brand); text-decoration: underline;
}
@media (max-width: 700px) { .grafo-conteggio { margin-left: 0; } }

/* la tela prende tutta la larghezza: più spazio c'è, più i nomi restano
   leggibili senza accavallarsi (le posizioni sono fisse, vedi grafo.js) */
.grafo-tela { position: relative; overflow: hidden; height: min(80vh, 780px); min-height: 420px; }
.grafo-tela canvas { display: block; width: 100%; height: 100%; }

.grafo-tip {
  position: absolute; pointer-events: none; padding: var(--s4) var(--s8); border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg); font: 500 .75rem var(--font-mono);
  white-space: nowrap; opacity: 0; transform: translate(-50%, -150%); transition: opacity .12s;
}

.grafo-lato { display: flex; flex-direction: column; gap: var(--s12); }
@media (min-width: 700px) { .grafo-legenda { justify-content: center; } }
.grafo-legenda { display: flex; flex-wrap: wrap; gap: var(--s8) var(--s16); }
.grafo-area {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: 600 .8125rem var(--font-heading); color: var(--muted);
}
.grafo-area.is-off { opacity: .4; text-decoration: line-through; }
.grafo-area.is-sola { color: var(--text); }
.grafo-area .dot {
  display: inline-block; width: 11px; height: 11px;
  margin-right: var(--s4); vertical-align: -1px; border-radius: 50%;
}
.grafo-area.is-sola .dot { outline: 2px solid var(--text); outline-offset: 2px; }

/* niente altezza fissa: il pannello è alto quanto i lavori che mostra,
   così con due paper non resta mezzo riquadro vuoto con la barra di scorrimento */
.grafo-scheda { padding: var(--s16); }
.grafo-scheda h3 { margin: 0 0 var(--s4); font-size: 1.0625rem; }
.grafo-scheda .muted { font-size: .8125rem; }
.grafo-scheda ol {
  margin: 0; padding-left: var(--s16); font-size: .875rem;
  columns: 2; column-gap: var(--s24);
}
@media (max-width: 700px) { .grafo-scheda ol { columns: 1; } }
.grafo-scheda li { break-inside: avoid; margin-bottom: var(--s8); }
.grafo-scheda li a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--linea); }
.grafo-scheda li a:hover { color: var(--brand); border-color: currentColor; }
/* i nomi sotto ogni paper sono pulsanti: filtrano su quella persona */
.grafo-chi { margin: var(--s4) 0 0; }
.grafo-chi button {
  margin: 0 var(--s4) var(--s4) 0; padding: 0 var(--s8); border: 1px solid var(--linea);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font: 600 .75rem/1.8 var(--font-heading); cursor: pointer;
}
.grafo-chi button:hover { border-color: var(--brand); color: var(--brand); }
.grafo-chi button.is-on { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.grafo-sede { margin: var(--s4) 0 0; font: 500 .6875rem var(--font-mono); color: var(--muted); }
