/* ==========================================================================
   Le scienze in italiano – stile comune a sito (body.web) e stampa (body.stampa)
   ========================================================================== */

/* Simboli matematici (≠, ≤, ≥, ∈, ∥ …) da un font che li disegna bene;
   se non è installato si passa al font successivo. */
@font-face {
  font-family: "Simboli";
  src: local("Noto Sans Math"), local("NotoSansMath-Regular"), local("DejaVu Sans");
  unicode-range: U+2200-22FF, U+2A7D-2A7E;
}

:root {
  --carta: #fbfaf7;
  --superficie: #ffffff;
  --inchiostro: #1f2328;
  --tenue: #5b6470;
  --linea: #dcd8cf;
  --l1: #0f7b6c;        --l1-fondo: #e3f3ef;
  --l2: #5b4bb7;        --l2-fondo: #ecebfa;
  --esempio: #2f6690;   --esempio-fondo: #eaf2f8;
  --attenzione: #b26a00; --attenzione-fondo: #fdf3e1;
  --regola: #b3261e;    --regola-fondo: #fbeceb;
  --zh: #475569;
  --font-it: "Simboli", "Noto Sans", "Helvetica Neue", Arial, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-zh: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.web {
    --carta: #16181c; --superficie: #1e2126; --inchiostro: #e8e6e1; --tenue: #a0a7b1; --linea: #353a42;
    --l1: #4cc3b0; --l1-fondo: #17312d; --l2: #a99cf0; --l2-fondo: #26233d;
    --esempio: #82b7df; --esempio-fondo: #1a2733; --attenzione: #f0b45a; --attenzione-fondo: #33281a;
    --regola: #f08a83; --regola-fondo: #351e1d; --zh: #b4bfcd;
  }
}
:root[data-theme="dark"] body.web {
  --carta: #16181c; --superficie: #1e2126; --inchiostro: #e8e6e1; --tenue: #a0a7b1; --linea: #353a42;
  --l1: #4cc3b0; --l1-fondo: #17312d; --l2: #a99cf0; --l2-fondo: #26233d;
  --esempio: #82b7df; --esempio-fondo: #1a2733; --attenzione: #f0b45a; --attenzione-fondo: #33281a;
  --regola: #f08a83; --regola-fondo: #351e1d; --zh: #b4bfcd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font-family: var(--font-it);
  line-height: 1.55;
}
[lang="zh-Hans"], .zh { font-family: var(--font-zh); }
.zh { color: var(--zh); }
h1, h2, h3 { line-height: 1.25; }
p { margin: 0 0 .4em; }
strong { font-weight: 700; }

/* --- Testata unità ------------------------------------------------------- */
.testa-unita { border-bottom: 3px solid var(--inchiostro); padding-bottom: .6rem; margin-bottom: 1.4rem; }
.testa-unita .parte { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--tenue); margin: 0; }
.testa-unita h1 { font-size: 2rem; margin: .2rem 0 0; }
.titolo-zh { font-size: 1.35rem; color: var(--zh); margin: .1rem 0 0; }

h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.sez > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.h-zh { font-weight: 500; color: var(--zh); font-size: .9em; }

/* --- Etichette di livello ------------------------------------------------ */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  padding: .15em .6em; border-radius: 999px; border: 1.5px solid currentColor;
  white-space: nowrap; vertical-align: middle;
}
.badge.l1 { color: var(--l1); background: var(--l1-fondo); }
.badge.l2 { color: var(--l2); background: var(--l2-fondo); }
.sez.l1 > h2 { border-left: 5px solid var(--l1); padding-left: .6rem; }
.sez.l2 > h2 { border-left: 5px solid var(--l2); padding-left: .6rem; }

/* --- Obiettivi, legenda -------------------------------------------------- */
.obiettivi ul, .passi { padding-left: 1.3rem; }
.obiettivi li, .passi li { margin-bottom: .45rem; }
.obiettivi li .it, .passi li .it { display: block; }
.obiettivi li .zh, .passi li .zh { display: block; font-size: .92em; }
.passi li::marker { font-weight: 700; color: var(--l1); }
.legenda { font-size: .88rem; color: var(--tenue); border: 1px solid var(--linea); border-radius: 8px; padding: .6rem .8rem; }
.legenda p { margin: .2rem 0; }

/* --- Frasi italiano + cinese -------------------------------------------- */
.coppia { margin: .5rem 0 .8rem; }
.coppia .it { margin: 0; }
.coppia .zh { margin: .1rem 0 0; font-size: .95em; }
.aiuto summary { cursor: pointer; font-size: .78rem; color: var(--l2); display: inline-block; }
.aiuto .zh { font-size: .9em; }

/* Frazione in verticale: {{3/4}} */
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle;
      font-size: .9em; line-height: 1.1; margin: 0 .12em; }
.fr-n { border-bottom: 1.5px solid currentColor; padding: 0 .2em; }
.fr-d { padding: 0 .2em; }

/* Periodo di un numero decimale: 0,~{3} */
.periodo { text-decoration: overline; text-decoration-thickness: 1.5px; }
.punto-cinese { position: relative; display: inline-block; }
.punto-cinese::after { content: ""; position: absolute; left: 50%; top: .02em; width: .2em; height: .2em;
                       margin-left: -.1em; border-radius: 50%; background: currentColor; }
.fig-quadretto-pc { stroke-width: .6; }

/* Parola con traduzione sopra */
ruby.g { ruby-position: over; }
ruby.g rt { font-size: .66em; color: var(--l2); font-weight: 500; }

/* --- Riquadri ------------------------------------------------------------ */
.riquadro {
  margin: .9rem 0; padding: .7rem .9rem; border-radius: 8px;
  border: 1px solid var(--linea); border-left-width: 5px; background: var(--superficie);
  break-inside: avoid;
}
.riquadro .etichetta { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.riquadro .coppia { margin: 0; }
.esempio { border-left-color: var(--esempio); background: var(--esempio-fondo); }
.esempio .etichetta { color: var(--esempio); }
.attenzione { border-left-color: var(--attenzione); background: var(--attenzione-fondo); border-left-style: double; border-left-width: 6px; }
.attenzione .etichetta { color: var(--attenzione); }
.attenzione .etichetta::before { content: "⚠ "; }
.regola { border: 2px solid var(--regola); background: var(--regola-fondo); }
.regola .etichetta { color: var(--regola); }
.regola .it { font-size: 1.05em; }
.problema { border-left-color: var(--l2); }
.problema .etichetta { color: var(--l2); }
.svolgimento { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--linea); }
.risposta { margin-top: .4rem; font-weight: 600; }

.formula {
  font-variant-numeric: tabular-nums; font-size: 1.08em; white-space: pre-wrap;
  padding: .1rem 0; overflow-wrap: anywhere;
}

/* --- Tabelle ------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; margin: .6rem 0 1rem; font-size: .95em; }
th, td { text-align: left; vertical-align: top; padding: .4rem .55rem; border-bottom: 1px solid var(--linea); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); border-bottom: 2px solid var(--linea); }
tr { break-inside: avoid; }
.parole .art { color: var(--tenue); margin-right: .25em; }
.parole .pl { display: block; font-size: .8em; color: var(--tenue); }
.parole .nota { font-size: .8em; color: var(--attenzione); margin-top: .15rem; }
.piccolo { font-size: .82em; color: var(--tenue); }
.leggi .scritto { font-weight: 700; white-space: nowrap; font-size: 1.05em; width: 30%; }
.leggi .it { display: block; }
.leggi .zh { display: block; font-size: .9em; }
.frasi td.it { width: 55%; }
.confronto td:first-child .it, .confronto td:first-child .zh { display: block; }
.confronto td:first-child .zh { font-size: .9em; }
.confronto .scritto { font-weight: 700; font-size: 1.05em; width: 28%; }
.confronto td:nth-child(2) { background: var(--l1-fondo); }
.sottotitolo { font-weight: 700; margin-top: .8rem; }

/* Figure geometriche */
.figure { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem 1rem; margin: .8rem 0 1.2rem; }
.figura { margin: 0; text-align: center; break-inside: avoid; position: relative; }
.figura-svg { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.fig-forma { fill: var(--esempio-fondo); stroke: var(--inchiostro); stroke-width: 2; stroke-linejoin: round; }
.fig-diagonale { stroke: var(--l2); stroke-width: 1.5; stroke-dasharray: 5 3; }
.fig-segno { fill: none; stroke: var(--regola); stroke-width: 1.6; }
.fig-altezza { stroke: var(--l1); stroke-width: 1.5; stroke-dasharray: 4 3; }
.fig-linea { stroke: var(--l1); stroke-width: 1.8; }
.fig-prolungamento { stroke: var(--tenue); stroke-width: 1.2; stroke-dasharray: 2 3; }
.fig-altezza-retto { fill: none; stroke: var(--l1); stroke-width: 1.2; }
.fig-misura { font: 600 11px var(--font-it); fill: var(--esempio); dominant-baseline: middle; }
.fig-h { fill: var(--l1); font-style: italic; font-weight: 700; }
.fig-q1 { fill: var(--l1-fondo); stroke: var(--l1); stroke-width: 1.5; }
.fig-q2 { fill: var(--l2-fondo); stroke: var(--l2); stroke-width: 1.5; }
.fig-q3 { fill: var(--attenzione-fondo); stroke: var(--attenzione); stroke-width: 1.5; }
.fig-q1, .fig-q2, .fig-q3 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-quadretto { stroke: var(--tenue); stroke-width: .5; opacity: .6; }
.fig-area { font: 700 12px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.fig-cerchio { fill: none; stroke: var(--inchiostro); stroke-width: 2; }
.fig-pieno { fill: var(--attenzione-fondo); stroke: var(--attenzione); stroke-width: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-buco { fill: var(--carta); stroke: var(--attenzione); stroke-width: 1.5; }
body.stampa .fig-buco { fill: #fff; }
.fig-evidenza { fill: none; stroke: var(--regola); stroke-width: 4; stroke-linecap: round; }
.fig-retta { stroke: var(--l2); stroke-width: 1.8; }
.fig-punto { fill: var(--inchiostro); }
.fig-parte-piena { fill: var(--attenzione); fill-opacity: .55; stroke: var(--inchiostro); stroke-width: 1.5;
                   -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-parte-vuota { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-zero { stroke-width: 3; }
.fig-griglia { stroke: var(--linea); stroke-width: .8; }
.fig-asse { font: 500 9px var(--font-it); fill: var(--tenue); text-anchor: middle; dominant-baseline: middle; }
.fig-asse-sx { text-anchor: start; font-size: 10px; fill: var(--inchiostro); }
.fig-asse-dx { text-anchor: end; }
.fig-valore { fill: var(--inchiostro); font-weight: 700; }
.fig-barra { stroke: var(--inchiostro); stroke-width: 1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-c0 { fill: var(--l1); } .fig-c1 { fill: var(--l2); } .fig-c2 { fill: var(--attenzione); }
.fig-c3 { fill: var(--esempio); } .fig-c4 { fill: var(--regola); }
.fig-barra.fig-c0, .fig-barra.fig-c1, .fig-barra.fig-c2, .fig-barra.fig-c3, .fig-barra.fig-c4 { fill-opacity: .75; }
.figure:has(> .figura .grafico) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
.figure .grafico { max-width: 340px !important; }
.fig-angolo { fill: var(--attenzione); fill-opacity: .35; stroke: var(--attenzione); stroke-width: 1.2;
              -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-angolo2 { fill: var(--l2); stroke: var(--l2); }
.fig-doppia { stroke-dasharray: 3 2; }
.fig-immagine { fill: var(--l2); fill-opacity: .18; stroke: var(--l2); stroke-width: 2; stroke-dasharray: 5 3; }
.fig-faccia { fill: var(--esempio-fondo); stroke: none; }
.fig-spigolo { stroke: var(--inchiostro); stroke-width: 1.8; fill: none; stroke-linejoin: round; }
.fig-faccia.fig-spigolo { fill: var(--esempio-fondo); }
.fig-nascosto { stroke: var(--tenue); stroke-width: 1.3; stroke-dasharray: 4 3; fill: none; }
.fig-quadrante { font: 700 16px var(--font-it); fill: var(--l2); opacity: .55; text-anchor: middle; dominant-baseline: middle; }
.fig-punto-piano { fill: var(--regola); }
.fig-etichetta-punto { text-anchor: start; }
.figure .piano { max-width: 280px !important; }
.fig-grafico { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.fig-g0 { stroke: var(--regola); } .fig-g1 { stroke: var(--l2); } .fig-g2 { stroke: var(--l1); }
.fig-etichetta-grafico { font: 700 10px var(--font-it); text-anchor: end; paint-order: stroke; stroke: var(--superficie); stroke-width: 3px; }
.fig-t0 { fill: var(--regola); } .fig-t1 { fill: var(--l2); } .fig-t2 { fill: var(--l1); }
.fig-piatto-sx { fill: var(--l1-fondo); } .fig-piatto-dx { fill: var(--l2-fondo); }
.fig-piatto-sx, .fig-piatto-dx { fill-opacity: 1; }
.fig-testo-bilancia { font: 700 11px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.fig-vertice { font: 700 11px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.figura figcaption > strong { display: block; margin-top: .2rem; }
.figura figcaption .zh { display: block; font-size: .92em; }
.nota-figura { white-space: pre-line; font-size: .86em; color: var(--inchiostro); margin: .25rem 0 0; font-variant-numeric: tabular-nums; }
.nota-figura .zh { display: block; color: var(--zh); }
.nota-figura .zh { font-size: 1em !important; }
.figura .lettera { position: absolute; left: 0; top: 0; font-weight: 700; }
.figura .riga { display: block; width: 80%; min-width: 0; margin: .4rem auto 0; height: 1.4em; border-bottom: 1px solid var(--tenue); }
body.stampa .figure { grid-template-columns: repeat(4, 1fr); }
/* Una figura da sola si vede più grande */
.figure:has(> .figura:only-child) { grid-template-columns: minmax(0, 260px) !important; }
.figure:has(> .figura:only-child) .figura-svg { max-width: 260px; }
body.stampa .fig-forma { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Tabella generica */
.tabella-scorre { overflow-x: auto; }
.tabella td, .tabella th { text-align: center; }
.tabella th { text-transform: none; font-size: .9rem; }
.tabella td:first-child, .tabella th:first-child { text-align: left; }

/* Divisione in colonna all'italiana */
.divisione-box { break-inside: avoid; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; margin: .5rem 0 1rem 1rem; }
.divisione { width: auto; margin: 0; font-size: 1.15em; font-variant-numeric: tabular-nums; }
.divisione td { border: 0; padding: .05rem .18rem; min-width: 1.1em; text-align: center; }
.divisione .div-prodotto { border-bottom: 1.5px solid var(--inchiostro); color: var(--tenue); }
.divisione .div-destra { border-left: 2px solid var(--inchiostro); padding-left: .6rem; text-align: left; min-width: 3em; }
.divisione .div-divisore { border-bottom: 2px solid var(--inchiostro); font-weight: 700; }
.divisione .div-quoziente { font-weight: 700; color: var(--regola); }

/* Scomposizione in colonna */
.colonne { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem; margin: .5rem 0 1rem 1rem; }
.colonna { width: auto; margin: 0; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.colonna td { border: 0; padding: .1rem .7rem; text-align: right; }
.colonna td:first-child { border-right: 2px solid var(--inchiostro); }
.colonna td:last-child { text-align: left; color: var(--regola); font-weight: 700; }

/* --- Esercizi ------------------------------------------------------------ */
.titolo-esercizi { border-top: 3px solid var(--inchiostro); padding-top: 1rem; }
.esercizio { margin: 1rem 0 1.6rem; break-inside: avoid; }
.esercizio h3 { margin: 0 0 .3rem; display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.esercizio h3 .n {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--inchiostro); color: var(--carta); font-size: .9rem;
}
.consegna { font-weight: 700; margin: 0; }
.consegna-zh { color: var(--zh); font-size: .92em; margin: 0 0 .5rem; }
.voci { padding-left: 1.6rem; list-style: lower-alpha; }
.voci > li { margin: .5rem 0; }
.riga { display: inline-block; min-width: 12rem; width: 60%; border-bottom: 1px solid var(--tenue); height: 1.1em; vertical-align: bottom; }
.vuoto { display: inline-block; min-width: 7rem; border-bottom: 1px solid var(--tenue); height: 1em; vertical-align: bottom; }
.spazio { height: 5.5rem; margin-top: .3rem; border: 1px dashed var(--linea); border-radius: 6px; }
.vf li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.vf li { display: list-item; }
.vf li > span:first-child { display: inline; }
.caselle { float: right; display: inline-flex; gap: .4rem; }
.casella {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .2rem;
  border: 1.5px solid var(--tenue); border-radius: 4px; font-size: .8rem; font-weight: 700; color: var(--tenue);
}
.opzioni { list-style: none; padding-left: .3rem; margin: .3rem 0; }
.opzioni li { display: flex; gap: .5rem; align-items: center; margin: .25rem 0; }
.opzioni .casella { min-width: 1.1rem; height: 1.1rem; border-radius: 50%; }
.banca { display: flex; flex-wrap: wrap; gap: .4rem .8rem; border: 1.5px solid var(--inchiostro); border-radius: 6px; padding: .45rem .7rem; margin: .5rem 0; }
.banca span { font-weight: 600; }
.abbina { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; }
.abbina ul { list-style: none; padding: 0; margin: 0; }
.abbina li { padding: .3rem 0; border-bottom: 1px dotted var(--linea); }
.abbina .num { display: inline-block; min-width: 1.5rem; font-weight: 700; color: var(--tenue); }
.soluzione { margin-top: .5rem; font-size: .92em; }
.soluzione summary { cursor: pointer; color: var(--l1); font-weight: 600; }
.soluzione p { margin: .4rem 0 0; padding: .5rem .7rem; background: var(--l1-fondo); border-radius: 6px; }

/* --- Indice -------------------------------------------------------------- */
.indice { list-style: none; padding: 0; margin: 0 0 1rem; }
.indice li { border-bottom: 1px solid var(--linea); }
.indice li > a, .indice li.in-preparazione { display: flex; flex-wrap: wrap; gap: .1rem .8rem; align-items: baseline; padding: .55rem .3rem; }
.indice a { color: inherit; text-decoration: none; }
.indice li.pronta a span:first-child { font-weight: 700; color: var(--l1); }
.indice li.pronta a:hover { background: var(--l1-fondo); }
.indice .in-preparazione { color: var(--tenue); }
.indice .in-preparazione .zh { color: var(--tenue); }
.indice .stato { margin-left: auto; font-size: .75rem; font-style: italic; }

/* ==========================================================================
   SITO
   ========================================================================== */
body.web main { max-width: 52rem; margin: 0 auto; padding: 1rem 16px 3rem; }
.barra {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem;
  padding: .7rem 16px; background: var(--superficie); border-bottom: 1px solid var(--linea);
}
.marchio { font-weight: 800; color: inherit; text-decoration: none; }
.marchio span { font-weight: 500; color: var(--zh); margin-left: .4rem; }
.barra nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.barra nav a { color: var(--l1); text-decoration: none; font-weight: 600; font-size: .92rem; }
.comandi {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.2rem;
  padding: .5rem 16px; background: color-mix(in srgb, var(--carta) 92%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--linea);
}
.comandi .gruppo { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.etichetta-comando { font-size: .8rem; color: var(--tenue); margin-right: .2rem; }
.comandi button {
  font: inherit; font-size: .82rem; padding: .35rem .75rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--linea); background: var(--superficie); color: var(--inchiostro); min-height: 2.2rem;
}
.comandi button[aria-pressed="true"] { background: var(--inchiostro); color: var(--carta); border-color: var(--inchiostro); }
.copertina-web { text-align: center; padding: 2rem 0 1rem; }
.copertina-web h1 { font-size: 2.2rem; margin: 0; }
.sottotitolo-libro { color: var(--tenue); margin-top: .8rem; }
.copertina-web .autore { margin-top: 1rem; font-weight: 600; }
.parte-indice h2 { border-bottom: 2px solid var(--inchiostro); padding-bottom: .3rem; }
.piede { text-align: center; color: var(--tenue); font-size: .8rem; padding: 2rem 16px; }
.cerca { display: block; font-weight: 600; margin-bottom: .5rem; }
.cerca input {
  display: block; width: 100%; margin-top: .3rem; font: inherit; padding: .55rem .75rem;
  border: 1.5px solid var(--linea); border-radius: 8px; background: var(--superficie); color: var(--inchiostro);
}

/* Filtri del sito (impostati da manuale.js) */
html[data-livello="1"] body.web .sez.l2,
html[data-livello="2"] body.web .sez.l1 { display: none; }
html[data-zh="off"] body.web .unita .zh,
html[data-zh="off"] body.web .unita .consegna-zh,
html[data-zh="off"] body.web .unita .h-zh,
html[data-zh="off"] body.web .unita .titolo-zh,
html[data-zh="off"] body.web .unita .aiuto,
html[data-zh="off"] body.web .unita ruby.g rt { display: none; }

@media (max-width: 600px) {
  .testa-unita h1 { font-size: 1.6rem; }
  .abbina { grid-template-columns: 1fr; }
  .leggi .scritto { white-space: normal; }
  .frasi td { display: block; border: 0; padding: .1rem .3rem; width: auto !important; }
  .frasi tr { display: block; border-bottom: 1px solid var(--linea); padding: .3rem 0; }
  .riga { width: 100%; }
  .caselle { float: none; display: flex; margin-top: .2rem; }
}

/* ==========================================================================
   STAMPA (A4)
   ========================================================================== */
@page {
  size: A4;
  margin: 16mm 15mm 18mm;
  @bottom-center { content: counter(page); font-family: "Noto Sans", sans-serif; font-size: 9pt; color: #5b6470; }
}
@page :first { @bottom-center { content: none; } }

body.stampa { background: #fff; font-size: 10.5pt; }
body.stampa .aiuto summary { display: none; }
body.stampa .aiuto > .zh { display: block; font-size: .85em; }
body.stampa details.aiuto:not([open]) > *:not(summary) { display: block; }
body.stampa h2 { break-after: avoid; break-inside: avoid; }
body.stampa .unita { break-before: page; }
body.stampa .esercizi { break-before: page; }
body.stampa .soluzioni { break-before: page; font-size: .92em; }
body.stampa .soluzioni p { margin-bottom: .5rem; }
body.stampa .riquadro, body.stampa .esempio, body.stampa .attenzione, body.stampa .regola { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.stampa .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

.copertina { height: 250mm; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.copertina h1 { font-size: 34pt; margin: 0; }
.copertina .titolo-zh { font-size: 22pt; }
.copertina .sottotitolo-libro { font-size: 13pt; margin-top: 1.5rem; }
.copertina .autore { margin-top: 2.5rem; font-size: 14pt; font-weight: 600; }
.copertina .versione { margin-top: 3rem; color: #5b6470; font-size: 9pt; }
.indice-stampa { break-before: page; }
.indice-stampa h3 { margin: 1.1rem 0 .3rem; font-size: 11pt; }
.indice-stampa .indice li { display: flex; flex-wrap: wrap; gap: .1rem .8rem; padding: .2rem .3rem; font-size: 9.5pt; }
.indice-stampa .indice li.pronta span:first-child { font-weight: 700; }
.indice-stampa a { color: inherit; text-decoration: none; }
.indice-stampa .indice li.pronta { display: block; }
.indice-stampa .indice li.pronta a { display: flex; align-items: baseline; gap: .1rem .8rem; }
.indice-stampa .puntini { flex: 1; border-bottom: 1px dotted var(--tenue); min-width: 1.5rem; }
.indice-stampa .pagina { font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; font-weight: 600; }
.indice-stampa .indice-finale { margin-top: 1.2rem; }
.indice-stampa h3 { break-after: avoid; }
.glossario-stampa { break-before: page; }

/* La retta dei numeri occupa tutta la larghezza */
.figure:has(> .figura .retta-numerica) { grid-template-columns: 1fr !important; }
.figure .retta-numerica { max-width: 100% !important; }

/* In stampa: tabelle brevi, scomposizioni e titoletti non si spezzano tra due pagine */
body.stampa .tabella-scorre, body.stampa .colonne, body.stampa .frasi, body.stampa .leggi,
body.stampa .confronto, body.stampa .legenda { break-inside: avoid; }
body.stampa .sottotitolo { break-after: avoid; }
body.stampa .tabella-scorre { overflow: visible; }
/* Il piano cartesiano si vede più grande */
.figure:has(> .figura .piano) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; }
.figure .piano { max-width: 360px !important; }

/* ==========================================================================
   Scienze: schemi con le parti numerate, esperimenti
   ========================================================================== */
:root { --caldo: #c2410c; --freddo: #1d4ed8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.web { --caldo: #fb923c; --freddo: #7aa2ff; }
}
:root[data-theme="dark"] body.web { --caldo: #fb923c; --freddo: #7aa2ff; }

.schema { margin: 1rem 0 1.3rem; break-inside: avoid; }
.schema .schema-svg { max-width: 420px; width: 100%; }
.schema-svg.largo { max-width: 540px; }
.schema-img { position: relative; max-width: 460px; margin: 0 auto; }
.schema-img img { display: block; width: 100%; height: auto; border-radius: 6px; }
.num-img, .num-legenda {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.5em; height: 1.5em; border-radius: 50%; font-size: .8rem; font-weight: 700;
  background: var(--inchiostro); color: var(--superficie);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.num-img { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--superficie); }
.schema figcaption { max-width: 560px; margin: .5rem auto 0; }
.legenda-schema { list-style: none; padding: 0; margin: .4rem 0 0;
                  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem .9rem; }
.legenda-schema li { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.legenda-schema .zh { font-size: .92em; }
.legenda-schema.da-completare li { align-items: flex-end; }
.legenda-schema.da-completare .riga { flex: 1; min-width: 0; width: auto; height: 1.6em; border-bottom: 1px solid var(--tenue); }

.fig-num { fill: var(--inchiostro); }
.fig-num-testo { font: 700 10px var(--font-it); fill: var(--superficie); text-anchor: middle; dominant-baseline: central; }
body.stampa .fig-num-testo { fill: #fff; }
.fig-recipiente { fill: none; stroke: var(--inchiostro); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fig-particella { fill: var(--esempio); fill-opacity: .8; stroke: var(--inchiostro); stroke-width: 1;
                  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-superficie { stroke: var(--esempio); stroke-width: 1.2; stroke-dasharray: 4 3; }
.fig-moto { stroke: var(--tenue); stroke-width: 1.2; }
.fig-punta { fill: var(--tenue); }
.fig-punta-caldo { fill: var(--caldo); }
.fig-punta-freddo { fill: var(--freddo); }
.fig-freccia-caldo { stroke: var(--caldo); stroke-width: 2.2; }
.fig-freccia-freddo { stroke: var(--freddo); stroke-width: 2.2; stroke-dasharray: 6 3; }
.fig-stato { stroke: var(--inchiostro); stroke-width: 1.8; fill: var(--superficie); }
.fig-stato-solido { fill: var(--esempio-fondo); }
.fig-stato-liquido { fill: var(--l1-fondo); }
.fig-stato-gas { fill: var(--l2-fondo); }
.fig-stato { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-stato-it { font: 700 12px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.fig-stato-zh { font: 500 10px var(--font-zh); fill: var(--zh); text-anchor: middle; dominant-baseline: middle; }
.fig-asse-linea { stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-guida { stroke: var(--linea); stroke-width: 1; stroke-dasharray: 3 3; }
.fig-curva { fill: none; stroke: var(--regola); stroke-width: 2.6; stroke-linejoin: round; }
.caldo-testo { color: var(--caldo); font-weight: 700; }
.freddo-testo { color: var(--freddo); font-weight: 700; }

.esperimento { border-left-color: var(--l1); }
.esperimento .etichetta { color: var(--l1); }
.esperimento .etichetta::before { content: "⚗ "; }
.titolo-esperimento { font-weight: 700; font-size: 1.05em; }
.esperimento .sottotitolo { margin-top: .6rem; }
.materiali { padding-left: 1.3rem; list-style: square; }
.esperimento li .it, .esperimento li .zh { display: block; }
.esperimento li .zh { font-size: .92em; }
.esperimento li { margin-bottom: .3rem; }
.fig-fase { fill: var(--l1-fondo); stroke: var(--inchiostro); stroke-width: 1.6;
            -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-fase-it { font-size: 11px; }
.fig-freccia { stroke: var(--inchiostro); stroke-width: 1.8; }
.fig-freccia-ritorno { stroke: var(--caldo); stroke-width: 1.6; stroke-dasharray: 5 3; }
/* Apparato circolatorio: blu = sangue povero di ossigeno, rosso = ricco di ossigeno */
:root { --povero: #2f5fb3; --povero-fondo: #dde7f8; --ricco: #c0392b; --ricco-fondo: #f8dcd8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.web { --povero: #7aa2ff; --povero-fondo: #1f2c47; --ricco: #f0857a; --ricco-fondo: #45201c; }
}
:root[data-theme="dark"] body.web { --povero: #7aa2ff; --povero-fondo: #1f2c47; --ricco: #f0857a; --ricco-fondo: #45201c; }
.fig-cavita-povero, .fig-cavita-ricco, .fig-organo, .fig-setto, .fig-parete, .fig-lume-ricco, .fig-lume-povero,
.fig-strato-rosso, .fig-strato-bianco, .fig-strato-plasma, .fig-globulo, .fig-vaso-povero, .fig-vaso-ricco {
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-cavita-povero { fill: var(--povero-fondo); stroke: var(--povero); stroke-width: 2; }
.fig-cavita-ricco { fill: var(--ricco-fondo); stroke: var(--ricco); stroke-width: 2; }
.fig-parete-spessa { stroke-width: 4.5; }
.fig-setto { fill: var(--tenue); opacity: .55; }
.fig-valvola { fill: none; stroke: var(--inchiostro); stroke-width: 2.4; stroke-linecap: round; }
.fig-vaso-povero { fill: none; stroke: var(--povero); stroke-width: 15; stroke-linecap: butt; stroke-linejoin: round; opacity: .8; }
.fig-vaso-ricco { fill: none; stroke: var(--ricco); stroke-width: 17; stroke-linecap: butt; stroke-linejoin: round; opacity: .8; }
.fig-flusso { stroke-width: 2; }
.fig-flusso-freddo { stroke: var(--povero); }
.fig-flusso-caldo { stroke: var(--ricco); }
.fig-richiamo { stroke: var(--inchiostro); stroke-width: 1; }
.fig-organo { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1.8; }
.fig-sigla { font: 700 10px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: central; }
.fig-circuito { fill: none; stroke-width: 3; stroke-linejoin: round; }
.fig-circuito-povero { stroke: var(--povero); }
.fig-circuito-ricco { stroke: var(--ricco); }
.fig-scavalco { fill: none; stroke: var(--carta); stroke-width: 9; }
body.stampa .fig-scavalco { stroke: #fff; }
.fig-parete { fill: #e9c9b8; stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-lume-ricco { fill: var(--ricco-fondo); stroke: var(--inchiostro); stroke-width: 1; }
.fig-lume-povero { fill: var(--povero-fondo); stroke: var(--inchiostro); stroke-width: 1; }
.fig-globulo { fill: var(--ricco); }
.fig-strato-rosso { fill: #b3261e; }
.fig-strato-bianco { fill: #f4f1ea; stroke: var(--tenue); stroke-width: .5; }
.fig-strato-plasma { fill: #f3d77a; }
.ricco-testo { color: var(--ricco); font-weight: 700; }
.povero-testo { color: var(--povero); font-weight: 700; }
/* Laboratorio e misure */
.fig-vetro { fill: none; stroke: var(--inchiostro); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fig-liquido { fill: var(--esempio); fill-opacity: .3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-tacca { stroke: var(--inchiostro); stroke-width: 1; }
.fig-metallo { fill: var(--linea); stroke: var(--inchiostro); stroke-width: 1.6; stroke-linejoin: round; }
.fig-strumento { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 2; stroke-linejoin: round; }
.fig-fiamma-blu { fill: var(--esempio); fill-opacity: .55; stroke: var(--esempio); stroke-width: 1.5; }
.fig-tubo-gas { fill: none; stroke: var(--attenzione); stroke-width: 5; stroke-linecap: round; }
.fig-ceramica { fill: var(--carta); stroke: var(--inchiostro); stroke-width: 2; stroke-linejoin: round; }
.fig-pestello { stroke: var(--tenue); stroke-width: 10; stroke-linecap: round; }
.fig-spatola { stroke: var(--tenue); stroke-width: 4; stroke-linecap: round; }
.fig-bacchetta { stroke: var(--esempio); stroke-opacity: .6; stroke-width: 6; stroke-linecap: round; }
.fig-lente { fill: var(--esempio); fill-opacity: .2; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-righello { fill: var(--attenzione-fondo); stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-oggetto { fill: var(--l2); fill-opacity: .6; stroke: var(--inchiostro); stroke-width: 1; }
.fig-display { fill: var(--l1-fondo); stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-display-testo { font: 700 12px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: central; }
.fig-lancetta { stroke: var(--inchiostro); stroke-width: 2.5; stroke-linecap: round; }
.fig-lancetta-rossa { stroke: var(--regola); stroke-width: 1.8; }
.fig-colonna, .fig-bulbo { fill: var(--regola); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-rombo { fill: #fff; stroke: #d0021b; stroke-width: 7; stroke-linejoin: miter; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-ghs { fill: #111; }
.fig-ghs-vuoto { fill: #fff; stroke: #111; stroke-width: 2; }
.fig-ghs-occhio { fill: #fff; }
.fig-ghs-osso { stroke: #111; stroke-width: 6; stroke-linecap: round; }
.fig-ghs-linea { fill: none; stroke: #111; stroke-width: 3; stroke-linecap: round; }
.fig-sguardo { stroke: var(--l1); stroke-width: 1.5; stroke-dasharray: 5 3; }
.fig-occhio { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1.6; }
/* Tabelle e grafici */
.fig-titolo-asse { font-weight: 700; fill: var(--inchiostro); }
.fig-titolo-grafico { font: 700 12px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.fig-intestazione { fill: var(--esempio-fondo); stroke: var(--inchiostro); stroke-width: 1.2;
                    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-cella-bordo { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1; }
.fig-cella { font: 500 10px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: central; }
.fig-cella-testa { font-weight: 700; }
.fig-evidenza-riga { fill: none; stroke: var(--l1); stroke-width: 2.5; }
.fig-evidenza-colonna { fill: none; stroke: var(--l2); stroke-width: 2.5; stroke-dasharray: 6 3; }
.fig-evidenza-cella { fill: none; stroke: var(--regola); stroke-width: 2.5; }
/* Densità, calore, miscugli */
.fig-scritta-it { font: 700 11px var(--font-it); fill: var(--inchiostro); dominant-baseline: middle; }
.fig-scritta-zh { font: 500 10px var(--font-zh); fill: var(--zh); dominant-baseline: middle; }
.fig-miele, .fig-olio, .fig-sughero, .fig-uva, .fig-sasso, .fig-sbarra, .fig-sbarra-fredda, .fig-sole, .fig-terreno,
.fig-blocco-caldo, .fig-blocco-freddo, .fig-particella-b, .fig-carta, .fig-sabbia, .fig-calamita, .fig-polo-n, .fig-polo-s,
.fig-acqua-fredda, .fig-fiamma, .fig-nodo, .fig-nodo-radice { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-miele { fill: #c98a1a; fill-opacity: .75; }
.fig-olio { fill: #e8d36a; fill-opacity: .7; }
.fig-sughero { fill: #a67c52; stroke: var(--inchiostro); stroke-width: 1; }
.fig-uva { fill: #6b3fa0; stroke: var(--inchiostro); stroke-width: 1; }
.fig-sasso { fill: #8c8c8c; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-sbarra { fill: var(--caldo); stroke: none; }
.fig-sbarra-fredda { fill: var(--freddo); fill-opacity: .5; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-bordo { stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-fiamma { fill: #f59e0b; stroke: #c2410c; stroke-width: 1; }
.fig-sole { fill: #fbbf24; stroke: #d97706; stroke-width: 1.5; }
.fig-raggio { stroke: #d97706; stroke-width: 2; stroke-linecap: round; }
.fig-terreno { fill: #a3a380; }
.fig-casa { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-blocco-caldo { fill: var(--ricco-fondo); stroke: var(--ricco); stroke-width: 2; }
.fig-blocco-freddo { fill: var(--povero-fondo); stroke: var(--povero); stroke-width: 2; }
.fig-particella-b { fill: var(--attenzione); fill-opacity: .85; stroke: var(--inchiostro); stroke-width: 1; }
.fig-carta { fill: #f5f5f0; stroke: var(--tenue); stroke-width: 1; }
.fig-sabbia { fill: #d4b483; stroke: #a0804e; stroke-width: 1; }
.fig-goccia { fill: var(--esempio); }
.fig-getto { fill: none; stroke: var(--esempio); stroke-opacity: .55; stroke-width: 3; stroke-linecap: round; }
.fig-cristallo { fill: #fff; stroke: var(--inchiostro); stroke-width: 1; }
.fig-vapore { fill: none; stroke: var(--tenue); stroke-width: 1.4; stroke-linecap: round; }
.fig-tubo { stroke: var(--inchiostro); stroke-width: 5; stroke-linecap: round; }
.fig-acqua-fredda { fill: var(--povero-fondo); stroke: var(--povero); stroke-width: 1.5; fill-opacity: .8; }
.fig-limatura { stroke: #333; stroke-width: 1.4; stroke-linecap: round; }
.fig-calamita { fill: #9ca3af; stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-polo-n { fill: #c0392b; } .fig-polo-s { fill: #2f5fb3; }
.fig-ramo { stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-nodo { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-nodo-radice { fill: var(--l1-fondo); stroke: var(--inchiostro); stroke-width: 1.8; }
.fig-nodo-it { font-size: 11px; }
/* Chimica */
.schema-svg.molto-largo { max-width: 640px; width: 100%; }
.figure .molto-largo { max-width: 100% !important; }
.figure:has(> .figura .molto-largo) { grid-template-columns: 1fr !important; }
.fig-orbita { fill: none; stroke: var(--tenue); stroke-width: 1; stroke-dasharray: 3 3; }
.fig-protone, .fig-neutrone, .fig-elettrone, .fig-elemento, .fig-atomo-h, .fig-atomo-o, .fig-ph, .fig-palloncino, .fig-casella {
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-protone { fill: #e05a4f; stroke: var(--inchiostro); stroke-width: .8; }
.fig-neutrone { fill: #b8b8b8; stroke: var(--inchiostro); stroke-width: .8; }
.fig-elettrone { fill: #3b6fd1; stroke: var(--inchiostro); stroke-width: .8; }
.fig-segno-carica { font: 700 10px var(--font-it); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.fig-casella { fill: var(--l1-fondo); stroke: var(--inchiostro); stroke-width: 2; }
.fig-casella-z { font: 700 14px var(--font-it); fill: var(--inchiostro); dominant-baseline: middle; }
.fig-casella-simbolo { font: 700 40px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.fig-casella-nome { font: 500 12px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.fig-elemento { stroke: var(--superficie); stroke-width: 1; }
.fig-el-metallo { fill: #9ec5e8; }
.fig-el-nonmetallo { fill: #f6c26b; }
.fig-el-semimetallo { fill: #b9dfa5; }
.fig-el-nobile { fill: #d3b6ea; }
.fig-simbolo-el { font: 600 6.5px var(--font-it); fill: #1f2328; text-anchor: middle; dominant-baseline: central; }
.fig-atomo-h { fill: #f2f2f2; stroke: var(--inchiostro); stroke-width: 1; }
.fig-atomo-o { fill: #d9443a; stroke: var(--inchiostro); stroke-width: 1; }
.fig-sigla-chiara { fill: #fff; }
.fig-atomo-h + .fig-sigla { fill: #1f2328; }
.fig-formula { font: 700 13px var(--font-it); fill: var(--inchiostro); dominant-baseline: middle; }
.fig-bolla { fill: none; stroke: var(--esempio); stroke-width: 1; }
.fig-palloncino { fill: #e8607a; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-ph { stroke: none; }
.schema .schema-svg.medio { max-width: 300px; }
/* Fisica */
.fig-punta-forza { fill: var(--regola); }
.fig-forza { stroke: var(--regola); stroke-width: 3; }
.fig-forza-attrito { stroke: var(--esempio); }
.fig-risultante { stroke: var(--l2); stroke-width: 3.5; }
.fig-traiettoria { fill: none; stroke: var(--l2); stroke-width: 2; stroke-dasharray: 6 4; }
.fig-corpo { fill: var(--attenzione); stroke: var(--inchiostro); stroke-width: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-pianeta { fill: var(--esempio); }
.fig-tenue { opacity: .35; }
.fig-molla { fill: none; stroke: var(--inchiostro); stroke-width: 1.5; stroke-linejoin: round; }
.fig-peso { fill: var(--linea); stroke: var(--inchiostro); stroke-width: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-sbarra-leva { fill: #b08850; stroke: var(--inchiostro); stroke-width: 1.2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-fulcro { fill: var(--tenue); stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-braccio { stroke: var(--l1); stroke-width: 1.6; }
.fig-lettera-leva { font: 700 12px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: middle; }
.fig-superficie-eq { fill: none; stroke: var(--inchiostro); stroke-width: 2.5; }
.fig-filo { stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-filo-elettrico { fill: none; stroke: var(--inchiostro); stroke-width: 2.5; stroke-linejoin: round; }
.fig-pila { fill: #3f3f46; stroke: var(--inchiostro); stroke-width: 1.2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-pila-polo { fill: #a1a1aa; }
.fig-pila + .fig-pila-polo + .fig-sigla, .fig-pila ~ .fig-sigla { fill: #fff; }
.fig-bulbo-lampadina { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-bulbo-lampadina.accesa { fill: #fde68a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-alone { fill: #fde047; opacity: .45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-filamento { fill: none; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-interruttore { stroke: var(--inchiostro); stroke-width: 3; stroke-linecap: round; }
.fig-ago-nord { fill: #c0392b; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-ago-sud { fill: #9ca3af; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-curva-onda { fill: none; stroke: var(--l2); stroke-width: 2.5; }
.fig-misura-onda { stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-specchio { fill: #94a3b8; stroke: var(--inchiostro); stroke-width: 1; }
.fig-raggio-luce { stroke: #d97706; stroke-width: 2.4; }
.fig-raggio-bianco { stroke: var(--inchiostro); stroke-width: 3; }
.fig-raggio-sottile { stroke: #f59e0b; stroke-width: 1.4; stroke-dasharray: 4 3; }
.fig-cannuccia { stroke: #e11d48; stroke-width: 6; stroke-linecap: round; }
.fig-prisma { fill: #e0f2fe; fill-opacity: .7; stroke: var(--inchiostro); stroke-width: 1.8; }
.fig-schermo { fill: var(--superficie); stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-ombra { fill: #374151; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* Riproduzione */
.fig-utero, .fig-ovaia, .fig-tuba, .fig-vescica, .fig-scroto, .fig-pene, .fig-testicolo, .fig-prostata, .fig-amnio,
.fig-placenta, .fig-corpo-feto, .fig-uovo, .fig-testa-sperma, .fig-acrosoma, .fig-cellula-div {
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-utero { fill: #f6c1c9; stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-cavita-utero { fill: #e88a9a; }
.fig-tuba { fill: none; stroke: #d97a8c; stroke-width: 7; stroke-linecap: round; }
.fig-ovaia { fill: #f2a25c; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-vescica { fill: #fbe7a1; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-scroto { fill: #f3d0c0; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-pene { fill: #f3d0c0; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-testicolo { fill: #e9967a; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-deferente { fill: none; stroke: #3b82f6; stroke-width: 2.5; }
.fig-prostata { fill: #c084fc; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-uretra { stroke: #b45309; stroke-width: 2; stroke-dasharray: 3 2; }
.fig-coda { fill: none; stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-collo-sperma { fill: #a3e635; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-testa-sperma { fill: #bfdbfe; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-acrosoma { fill: #fcd34d; stroke: var(--inchiostro); stroke-width: 1; }
.fig-nucleo-sperma { fill: #3b82f6; }
.fig-uovo { fill: #fde4cf; stroke: var(--inchiostro); stroke-width: 1.8; }
.fig-nucleo-uovo { fill: #f59e0b; fill-opacity: .6; stroke: var(--inchiostro); stroke-width: 1; }
.fig-cellula-div { fill: var(--l1-fondo); stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-amnio { fill: #dbeafe; stroke: #93c5fd; stroke-width: 1.5; }
.fig-placenta { fill: #b9384f; stroke: var(--inchiostro); stroke-width: 1; }
.fig-cordone { fill: none; stroke: #e57f95; stroke-width: 5; stroke-linecap: round; }
.fig-corpo-feto { fill: #f8cfb6; stroke: var(--inchiostro); stroke-width: 1.4; }
/* La cellula */
.fig-citoplasma, .fig-nucleo-cell, .fig-mitocondrio, .fig-vacuolo, .fig-cloroplasto, .fig-parete, .fig-capsula, .fig-tavolino {
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-citoplasma { fill: #fdf2e0; stroke: var(--inchiostro); stroke-width: 1.8; }
.fig-membrana-veg { stroke-width: 1.2; }
.fig-nucleo-cell { fill: #c7b8ef; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-nucleolo { fill: #6d4fc2; }
.fig-mitocondrio { fill: #f6a96b; stroke: var(--inchiostro); stroke-width: 1; }
.fig-creste { fill: none; stroke: #9a4f12; stroke-width: 1; }
.fig-reticolo { fill: none; stroke: #6aa4d8; stroke-width: 2; }
.fig-golgi { fill: none; stroke: #e58bb0; stroke-width: 2.4; stroke-linecap: round; }
.fig-ribosoma { fill: #374151; }
.fig-parete { fill: #b7e4a3; stroke: #3f7d2a; stroke-width: 2; }
.fig-vacuolo { fill: #cfe8fb; stroke: #5b9bd5; stroke-width: 1.4; }
.fig-cloroplasto { fill: #4caf50; stroke: #23662a; stroke-width: 1; }
.fig-tilacoidi { stroke: #1b4d20; stroke-width: 1; }
.fig-capsula { fill: #f5ecd0; stroke: #b49a52; stroke-width: 1.6; }
.fig-pili { stroke: var(--inchiostro); stroke-width: 1.4; stroke-linecap: round; }
.fig-dna { fill: none; stroke: #c0392b; stroke-width: 1.8; }
.fig-braccio-micro { fill: none; stroke: #6b7280; stroke-width: 12; stroke-linecap: round; }
.fig-tavolino { fill: #374151; }
.fig-vetrino { fill: #bfdbfe; stroke: var(--inchiostro); stroke-width: .8; }
.fig-vite { fill: #9ca3af; stroke: var(--inchiostro); stroke-width: 1.2; }
/* Classificazione e microrganismi */
.fig-livello { stroke: var(--inchiostro); stroke-width: 1.2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-livello-0 { fill: var(--l1-fondo); } .fig-livello-1 { fill: var(--esempio-fondo); }
.fig-esempio-livello { font: italic 600 11px var(--font-it); fill: var(--l2); dominant-baseline: middle; }
.fig-ramo-sino { font: 700 10px var(--font-it); fill: var(--regola); text-anchor: middle; }
.fig-batterio, .fig-protista, .fig-lievito, .fig-cappello, .fig-gambo, .fig-terreno-fungo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-batterio { fill: #a7d8a0; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-spirillo { fill: none; stroke: #4c9a45; stroke-width: 4; stroke-linecap: round; }
.fig-protista { fill: #e3f0d6; stroke: var(--inchiostro); stroke-width: 1.5; }
.fig-ciglia { stroke: var(--tenue); stroke-width: .8; }
.fig-bocca { fill: none; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-lievito { fill: #f7e3b5; stroke: var(--inchiostro); stroke-width: 1.3; }
.fig-terreno-fungo { fill: #a0805a; opacity: .55; }
.fig-ifa { fill: none; stroke: #f5f0e6; stroke-width: 1.3; }
.fig-gambo { fill: #f4ead8; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-anello { fill: #e8dcc4; stroke: var(--inchiostro); stroke-width: 1; }
.fig-cappello { fill: #b5562f; stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-lamella { stroke: #8a6a4a; stroke-width: 1; }
.fig-lamelle-bordo { fill: none; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-spora { fill: #6b4f2a; }
/* Piante e invertebrati */
.fig-foglia, .fig-petalo, .fig-sepalo, .fig-ovario, .fig-antera, .fig-ala, .fig-corpo-insetto, .fig-medusa, .fig-lombrico,
.fig-guscio, .fig-corpo-chiocciola, .fig-stella, .fig-centro-fiore, .fig-cellula-guardia {
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-foglia { fill: #7cc36a; stroke: #2f6b22; stroke-width: 1.4; }
.fig-nervatura { stroke: #2f6b22; stroke-width: 1; }
.fig-nervatura-centrale { stroke-width: 2; }
.fig-picciolo { stroke: #2f6b22; stroke-width: 4; stroke-linecap: round; }
.fig-fusto { fill: none; stroke: #4c8a35; stroke-width: 6; stroke-linecap: round; }
.fig-radice { fill: none; stroke: #8a5a2b; stroke-width: 2.6; stroke-linecap: round; }
.fig-petalo { fill: #f6a5c0; stroke: #b0436a; stroke-width: 1.2; }
.fig-centro-fiore { fill: #f7c948; stroke: #a07a10; stroke-width: 1; }
.fig-sepalo { fill: #6fb35a; stroke: #2f6b22; stroke-width: 1.2; }
.fig-ovario { fill: #9bd18a; stroke: #2f6b22; stroke-width: 1.4; }
.fig-stilo { fill: none; stroke: #4c8a35; stroke-width: 4; }
.fig-stimma { fill: #c2e09a; stroke: #2f6b22; stroke-width: 1; }
.fig-filamento-stame { fill: none; stroke: #d4a017; stroke-width: 2; }
.fig-antera { fill: #f2b705; stroke: #8a6a00; stroke-width: 1; }
.fig-polline { fill: #e1a400; }
.fig-lente-stoma { fill: #c8e6b8; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-cellula-guardia { fill: #4c9a3a; stroke: #1f4d17; stroke-width: 1; }
.fig-ala { fill: #dbeafe; fill-opacity: .7; stroke: #64748b; stroke-width: 1.2; }
.fig-corpo-insetto { fill: #8b5a2b; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-segmento { stroke: #3f2a12; stroke-width: 1; }
.fig-occhio-insetto { fill: #111; }
.fig-zampa { fill: none; stroke: #3f2a12; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fig-antenna { fill: none; stroke: #3f2a12; stroke-width: 1.6; stroke-linecap: round; }
.fig-medusa { fill: #c4b5fd; fill-opacity: .8; stroke: #6d28d9; stroke-width: 1.5; }
.fig-tentacolo { fill: none; stroke: #8b5cf6; stroke-width: 1.6; }
.fig-lombrico { fill: none; stroke: #d98c8c; stroke-width: 12; stroke-linecap: round; }
.fig-clitello { fill: none; stroke: #b5535a; stroke-width: 12; }
.fig-guscio { fill: #e6b871; stroke: #8a5a2b; stroke-width: 1.6; }
.fig-spirale { fill: none; stroke: #8a5a2b; stroke-width: 1.6; }
.fig-corpo-chiocciola { fill: #d8c3a5; stroke: #6b5333; stroke-width: 1.4; }
.fig-stella { fill: #f59e0b; stroke: #9a5b05; stroke-width: 1.6; stroke-linejoin: round; }
.fig-punto-stella { fill: #fde68a; }
/* Vertebrati ed ecologia */
.fig-corpo-pesce, .fig-pinna, .fig-anello-catena { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-corpo-pesce { fill: #8fb8de; stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-pinna { fill: #5e8fc0; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-squama { fill: none; stroke: #4a76a3; stroke-width: .9; }
.fig-linea-laterale { fill: none; stroke: #b91c1c; stroke-width: 1.6; stroke-dasharray: 3 2; }
.fig-opercolo { fill: none; stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-occhio-pesce { fill: #fff; stroke: var(--inchiostro); stroke-width: 1; }
.fig-anello-catena { fill: var(--l1-fondo); stroke: var(--inchiostro); stroke-width: 1.5; }
/* Corpo umano: tessuti e pelle */
.fig-cellula-tess, .fig-fibra, .fig-corpo-neurone, .fig-matrice, .fig-epidermide, .fig-derma, .fig-ipoderma,
.fig-cellula-grassa, .fig-sebacea, .fig-dito { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-cellula-tess { fill: #fde4cf; stroke: var(--inchiostro); stroke-width: 1; }
.fig-nucleo-tess { fill: #7c5cc4; }
.fig-fibra { fill: #e8858a; stroke: #8a2d33; stroke-width: 1; }
.fig-neurone { fill: none; stroke: #c48a1c; stroke-width: 2.4; stroke-linecap: round; }
.fig-corpo-neurone { fill: #f5c55a; stroke: #8a5f0c; stroke-width: 1.4; }
.fig-matrice { fill: #f3efe2; stroke: var(--inchiostro); stroke-width: 1; }
.fig-fibra-connettivo { fill: none; stroke: #c9b37a; stroke-width: 2; }
.fig-epidermide { fill: #e9b48f; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-derma { fill: #f6d3c0; stroke: var(--inchiostro); stroke-width: 1; }
.fig-ipoderma { fill: #fbeec8; stroke: var(--inchiostro); stroke-width: 1; }
.fig-cellula-grassa { fill: #fff7d6; stroke: #c9a94a; stroke-width: 1; }
.fig-vaso-pelle-r { fill: none; stroke: #c0392b; stroke-width: 3; }
.fig-vaso-pelle-b { fill: none; stroke: #2f5fb3; stroke-width: 3; }
.fig-follicolo { fill: none; stroke: #9c6b4a; stroke-width: 9; stroke-linecap: round; opacity: .55; }
.fig-pelo-pelle { stroke: #3b2a1a; stroke-width: 2.4; stroke-linecap: round; }
.fig-sebacea { fill: #f7e27a; stroke: #9a7d10; stroke-width: 1; }
.fig-sudoripara { fill: none; stroke: #3b82f6; stroke-width: 2.4; stroke-linecap: round; }
.fig-poro { fill: #3b82f6; }
.fig-nervo-pelle { fill: none; stroke: #eab308; stroke-width: 2; }
.fig-dito { fill: #f3d0c0; stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-cresta { fill: none; stroke: #8a5a44; stroke-width: 1.6; }
/* Scheletro, muscoli, digerente */
.fig-osso, .fig-osso-pieno, .fig-vertebra, .fig-periostio, .fig-midollo-giallo, .fig-muscolo-contratto, .fig-muscolo-rilassato,
.fig-sagoma, .fig-fegato, .fig-stomaco, .fig-pancreas, .fig-gengiva, .fig-smalto, .fig-dentina, .fig-polpa {
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-osso { stroke: #e8e0c8; stroke-linecap: round; }
.fig-osso-pieno { fill: #f1ead4; stroke: #8a7a52; stroke-width: 1.2; }
.fig-orbita-occhio { fill: #6b5f45; }
.fig-vertebra { fill: #e8e0c8; stroke: #8a7a52; stroke-width: .8; }
.fig-costola { fill: none; stroke: #d9cfb0; stroke-width: 3; stroke-linecap: round; }
.fig-periostio { fill: #f1ead4; stroke: #c96b4a; stroke-width: 3; }
.fig-spugnoso { fill: #e57373; opacity: .75; }
.fig-midollo-giallo { fill: #f7d870; stroke: #a88f20; stroke-width: 1; }
.fig-muscolo-contratto { fill: #d9534f; stroke: #7f1d1d; stroke-width: 1.2; }
.fig-muscolo-rilassato { fill: #f0a3a0; stroke: #7f1d1d; stroke-width: 1.2; }
.fig-tendine { stroke: #f5f5f4; stroke-width: 4; stroke-linecap: round; }
.fig-sagoma { fill: #fdf0e6; stroke: #b8a08a; stroke-width: 1.4; }
.fig-bocca-dig { fill: none; stroke: #b5535a; stroke-width: 3; stroke-linecap: round; }
.fig-esofago { fill: none; stroke: #e7998f; stroke-width: 7; stroke-linecap: round; }
.fig-fegato { fill: #9b3d2e; stroke: var(--inchiostro); stroke-width: 1.2; }
.fig-stomaco { fill: #f2a6a0; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-pancreas { fill: #f4d17a; stroke: var(--inchiostro); stroke-width: 1; }
.fig-crasso { fill: none; stroke: #c98b6b; stroke-width: 12; stroke-linejoin: round; }
.fig-tenue { fill: none; stroke: #f0b8a8; stroke-width: 7; stroke-linecap: round; }
.fig-gengiva { fill: #f2a7b0; stroke: var(--inchiostro); stroke-width: 1; }
.fig-smalto { fill: #ffffff; stroke: var(--inchiostro); stroke-width: 1.6; }
.fig-dentina { fill: #f6e7b5; stroke: #9a8540; stroke-width: 1; }
.fig-polpa { fill: #e57373; stroke: #9b2c2c; stroke-width: 1; }
.fig-cibo-it { font-size: 10px; }
/* Acqua e atmosfera */
.fig-cielo, .fig-montagna, .fig-mare, .fig-falda, .fig-pianura, .fig-lago, .fig-strato-tropo, .fig-strato-strato, .fig-strato-meso,
.fig-strato-termo, .fig-ozono, .fig-strato-gas, .fig-terra-curva, .fig-nuvola, .fig-nuvola-scura, .fig-fulmine {
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-cielo { fill: #e0f2fe; }
.fig-montagna { fill: #8d9b6a; stroke: #4b5a2e; stroke-width: 1.2; }
.fig-neve-cima { fill: #fff; }
.fig-mare { fill: #3b82c4; }
.fig-falda { fill: #93c5fd; opacity: .8; }
.fig-fiume { fill: none; stroke: #3b82c4; stroke-width: 5; stroke-linecap: round; }
.fig-nuvola { fill: #fff; stroke: #94a3b8; stroke-width: 1.2; }
.fig-nuvola-scura { fill: #9ca3af; stroke: #4b5563; stroke-width: 1.2; }
.fig-pioggia { stroke: #2563eb; stroke-width: 2; stroke-linecap: round; }
.fig-pianura { fill: #d9ead3; }
.fig-fiume-mappa { fill: none; stroke: #3b82c4; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fig-affluente { stroke-width: 3; }
.fig-lago { fill: #3b82c4; }
.fig-strato-tropo { fill: #bfdbfe; } .fig-strato-strato { fill: #93c5fd; }
.fig-strato-meso { fill: #6366f1; fill-opacity: .55; } .fig-strato-termo { fill: #312e81; fill-opacity: .7; }
.fig-ozono { fill: #a78bfa; fill-opacity: .55; }
.fig-aereo { fill: none; stroke: #1f2937; stroke-width: 2; stroke-linecap: round; }
.fig-meteora { stroke: #fde047; stroke-width: 2.5; stroke-linecap: round; }
.fig-aurora { fill: none; stroke: #4ade80; stroke-width: 3; opacity: .85; }
.fig-strato-gas { fill: #94a3b8; fill-opacity: .45; }
.fig-terra-curva { fill: #86a96a; }
.fig-calore-ir { stroke: #dc2626; stroke-width: 2; }
.fig-fiocco { font: 14px var(--font-it); fill: #60a5fa; text-anchor: middle; dominant-baseline: middle; }
.fig-fulmine { fill: #facc15; stroke: #a16207; stroke-width: 1; }
.fig-nebbia { stroke: #9ca3af; stroke-width: 6; stroke-linecap: round; opacity: .8; }
/* Respiratorio */
.fig-polmone, .fig-alveolo, .fig-laringe, .fig-cavita-nasale { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-cavita-nasale { fill: #f4b6b0; stroke: #9b2c2c; stroke-width: 1; }
.fig-via-aerea { fill: none; stroke: #f0a5a0; stroke-width: 8; stroke-linecap: round; }
.fig-laringe { fill: #e8a0a8; stroke: #8a2d33; stroke-width: 1.2; }
.fig-trachea { fill: none; stroke: #f3c3bd; stroke-width: 10; stroke-linecap: round; }
.fig-anello-trachea { stroke: #b46a63; stroke-width: 1.2; }
.fig-polmone { fill: #f4a7b9; fill-opacity: .9; stroke: #9b2c4c; stroke-width: 1.4; }
.fig-bronco { fill: none; stroke: #f8e1dc; stroke-width: 4; stroke-linecap: round; }
.fig-diaframma { fill: none; stroke: #b45309; stroke-width: 5; stroke-linecap: round; }
.fig-alveolo { fill: #fde2e7; stroke: #9b2c4c; stroke-width: 1.8; }
.fig-capillare-povero { fill: none; stroke: var(--povero); stroke-width: 7; stroke-linecap: round; }
.fig-capillare-ricco { fill: none; stroke: var(--ricco); stroke-width: 7; stroke-linecap: round; }
.fig-capillare-mix { fill: none; stroke: #8b5cf6; stroke-width: 7; }
.fig-bronchiolo { stroke: #f4b6b0; stroke-width: 8; }
/* Sistema solare */
.fig-spazio, .fig-pianeta, .fig-anelli, .fig-coda-cometa { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-spazio { fill: #0f172a; }
.fig-orbita-pianeta { fill: none; stroke: #64748b; stroke-width: .8; stroke-dasharray: 3 3; }
.fig-orbita-piena { stroke: var(--tenue); }
.fig-asteroide { fill: #a8a29e; }
.fig-pianeta { stroke: #0b1120; stroke-width: .8; }
.fig-p-mercurio { fill: #9ca3af; } .fig-p-venere { fill: #e8c07a; } .fig-p-terra { fill: #3b82f6; }
.fig-p-marte { fill: #dc5a32; } .fig-p-giove { fill: #d8a36c; } .fig-p-saturno { fill: #e6cf8f; }
.fig-p-urano { fill: #8fd3e0; } .fig-p-nettuno { fill: #4f6fd8; }
.fig-anelli { fill: none; stroke: #cbb67a; stroke-width: 3; }
.fig-bande { stroke: #a8693a; stroke-width: 2; }
.fig-chiaro { fill: #e2e8f0; }
text.fig-scritta-zh.fig-chiaro { fill: #cbd5e1; }
.fig-coda-cometa { fill: #bae6fd; opacity: .75; }
.fig-nucleo-cometa { fill: #f8fafc; }
.fig-spazio ~ .fig-num { stroke: #fff; stroke-width: 1.5; }
/* Rocce, interno della Terra, vulcani */
.fig-cristallo-faccia1, .fig-cristallo-faccia2, .fig-cristallo-faccia3, .fig-quarzo1, .fig-quarzo2, .fig-strato-roccia,
.fig-crosta, .fig-mantello, .fig-nucleo-esterno, .fig-nucleo-interno, .fig-strati-vulcano, .fig-terreno-profondo,
.fig-camera-magmatica, .fig-camino, .fig-lava, .fig-nube-cenere { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-cristallo-faccia1 { fill: #f1f5f9; stroke: #475569; stroke-width: 1.4; }
.fig-cristallo-faccia2 { fill: #cbd5e1; stroke: #475569; stroke-width: 1.4; }
.fig-cristallo-faccia3 { fill: #94a3b8; stroke: #475569; stroke-width: 1.4; }
.fig-quarzo1 { fill: #e9d5ff; stroke: #6b21a8; stroke-width: 1.2; }
.fig-quarzo2 { fill: #f5ebff; stroke: #6b21a8; stroke-width: 1.2; }
.fig-strato-roccia { stroke: #7a5c33; stroke-width: .8; }
.fig-fossile { fill: none; stroke: #3f2a12; stroke-width: 2; }
.fig-crosta { fill: #7c5b3a; } .fig-mantello { fill: #e0773a; }
.fig-nucleo-esterno { fill: #f5b041; } .fig-nucleo-interno { fill: #fde68a; stroke: #b45309; stroke-width: 1; }
.fig-strati-vulcano { fill: #7a6a5a; stroke: #3f3328; stroke-width: 1.4; }
.fig-terreno-profondo { fill: #a08670; }
.fig-camera-magmatica { fill: #e2531d; stroke: #8a2a0a; stroke-width: 1.4; }
.fig-camino { fill: #e2531d; }
.fig-lava { fill: #f97316; stroke: #9a3412; stroke-width: 1; }
.fig-cratere { fill: none; stroke: #3f3328; stroke-width: 2.4; }
.fig-nube-cenere { fill: #6b7280; stroke: #374151; stroke-width: 1; }
.fig-faglia { stroke: #3f2a12; stroke-width: 2.4; stroke-dasharray: 8 4; }
.fig-onda-sismica { fill: none; stroke: #dc2626; stroke-width: 1.4; stroke-dasharray: 4 3; }
.fig-ipocentro { fill: #dc2626; }
.fig-epicentro { fill: #dc2626; }
/* Stelle e Universo */
.fig-nebulosa, .fig-nebulosa2, .fig-astro, .fig-supernova, .fig-braccio, .fig-bulge, .fig-stellina { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-nebulosa { fill: #a855f7; opacity: .45; }
.fig-nebulosa2 { fill: #f472b6; opacity: .5; }
.fig-astro { stroke: none; }
.fig-supernova { fill: #fef08a; stroke: #f59e0b; stroke-width: 1.5; }
.fig-alone-buco { fill: none; stroke: #f59e0b; stroke-width: 2; opacity: .7; }
.fig-freccia-chiara { stroke: #cbd5e1; stroke-width: 1.4; }
.fig-braccio { fill: none; stroke: #c7d2fe; stroke-width: 12; stroke-linecap: round; opacity: .55; }
.fig-braccio2 { stroke-width: 8; opacity: .4; }
.fig-bulge { fill: #fde68a; }
.fig-richiamo-chiaro { stroke: #e2e8f0; }
.fig-raggio-energia { stroke: #f59e0b; stroke-width: 2; }
.fig-stellina { fill: #fef9c3; }
.fig-linea-costellazione { fill: none; stroke: #94a3b8; stroke-width: 1.2; }
.fig-linea-guida { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; }
/* Placche, Terra e Luna */
.fig-litosfera, .fig-litosfera-cont, .fig-mare-placca, .fig-cella, .fig-continente, .fig-fossili-fascia, .fig-luna-buia, .fig-luna-chiara,
.fig-luna-rossa, .fig-cono-ombra, .fig-ombra-terra, .fig-globo, .fig-ombra-notte { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-litosfera { fill: #8b6b4a; stroke: #4a3520; stroke-width: 1; }
.fig-litosfera-cont { fill: #a3896a; stroke: #4a3520; stroke-width: 1; }
.fig-mare-placca { fill: #60a5fa; }
.fig-cella { fill: none; stroke: #fde68a; stroke-width: 1; stroke-dasharray: 4 3; }
.fig-continente { fill: #a3c78a; stroke: #4d7c3a; stroke-width: 1.4; }
.fig-fossili-fascia { fill: #b45309; opacity: .7; }
.fig-luna-buia { fill: #334155; }
.fig-luna-chiara { fill: #f1f5f9; }
.fig-luna-rossa { fill: #b45309; }
.fig-cono-ombra { fill: #fde68a; opacity: .18; }
.fig-ombra-terra { fill: #000; opacity: .55; }
.fig-ombra-eclisse { fill: #000; }
.fig-ombra-notte { fill: #0f172a; opacity: .55; }
.fig-raggio-sole { stroke: #fbbf24; stroke-width: 1.4; }
.fig-asse-terra { stroke: #dc2626; stroke-width: 1.4; stroke-dasharray: 4 2; }
.fig-globo { fill: #bfdbfe; stroke: #1e40af; stroke-width: 1.4; }
.fig-parallelo, .fig-meridiano { fill: none; stroke: #3b82f6; stroke-width: .8; }
.fig-equatore { fill: none; stroke: #dc2626; stroke-width: 2; }
.fig-polo { fill: #1e3a8a; }
.fig-luce-cono, .fig-ombra-cono { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-luce-cono { fill: #fde68a; opacity: .45; }
.fig-ombra-cono { fill: #334155; opacity: .55; }
/* Sistema nervoso */
.fig-corpo-neurone, .fig-nucleo-neurone, .fig-mielina, .fig-bottone, .fig-lobo-frontale, .fig-lobo-parietale, .fig-lobo-temporale,
.fig-lobo-occipitale, .fig-cervelletto, .fig-midollo, .fig-midollo-sezione, .fig-sostanza-grigia, .fig-pentola, .fig-mano,
.fig-muscolo-rif, .fig-bottone-grande, .fig-vescicola, .fig-dendrite-grande { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-dendrite { fill: none; stroke: #7c3aed; stroke-width: 2.4; stroke-linecap: round; }
.fig-corpo-neurone { fill: #c4b5fd; stroke: #5b21b6; stroke-width: 1.4; }
.fig-nucleo-neurone { fill: #6d28d9; }
.fig-assone { stroke: #5b21b6; stroke-width: 3; fill: none; }
.fig-mielina { fill: #fde68a; stroke: #b45309; stroke-width: 1; }
.fig-bottone { fill: #a78bfa; stroke: #5b21b6; stroke-width: 1; }
.fig-lobo-frontale { fill: #93c5fd; } .fig-lobo-parietale { fill: #fcd34d; }
.fig-lobo-temporale { fill: #86efac; } .fig-lobo-occipitale { fill: #fca5a5; }
.fig-bordo-cervello { fill: none; stroke: #7c2d12; stroke-width: 1.8; }
.fig-solco { fill: none; stroke: #7c2d12; stroke-width: 1; opacity: .6; }
.fig-cervelletto { fill: #d8b4fe; stroke: #7c2d12; stroke-width: 1.4; }
.fig-midollo { fill: #fbcfe8; stroke: #7c2d12; stroke-width: 1.4; }
.fig-midollo-sezione { fill: #f8fafc; stroke: #64748b; stroke-width: 1.4; }
.fig-sostanza-grigia { fill: #9ca3af; }
.fig-pentola { fill: #475569; }
.fig-vapore { fill: none; stroke: #dc2626; stroke-width: 1.4; }
.fig-mano { fill: #f8cfb6; stroke: #7c2d12; stroke-width: 1.2; }
.fig-recettore-pelle { fill: #2563eb; }
.fig-nervo-sensitivo { stroke: var(--freddo); stroke-width: 2.4; }
.fig-nervo-collegamento { stroke: #16a34a; stroke-width: 2.4; }
.fig-nervo-motorio { stroke: var(--caldo); stroke-width: 2.4; }
.fig-muscolo-rif { fill: #f87171; stroke: #991b1b; stroke-width: 1.2; }
.fig-bottone-grande { fill: #ddd6fe; stroke: #5b21b6; stroke-width: 1.4; }
.fig-vescicola { fill: #fde68a; stroke: #b45309; stroke-width: 1; }
.fig-neurotrasmettitore { fill: #d97706; }
.fig-dendrite-grande { fill: #ede9fe; stroke: #5b21b6; stroke-width: 1.4; }
.fig-recettore-sinapsi { fill: #16a34a; }
/* Organi di senso */
.fig-bulbo-oculare, .fig-retina, .fig-nervo-ottico, .fig-iride, .fig-cristallino, .fig-osso-cranio, .fig-padiglione, .fig-condotto,
.fig-timpano, .fig-ossicino, .fig-vestibolo, .fig-icona-pelle, .fig-icona-iride, .fig-icona-bocca, .fig-icona-lingua, .fig-chioma,
.fig-tronco-albero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-bulbo-oculare { fill: #f8fafc; stroke: #475569; stroke-width: 2; }
.fig-retina { fill: none; stroke: #e11d48; stroke-width: 5; }
.fig-nervo-ottico { fill: #fde68a; stroke: #b45309; stroke-width: 1.2; }
.fig-cornea { fill: none; stroke: #0ea5e9; stroke-width: 3; }
.fig-iride { stroke: #2563eb; stroke-width: 6; stroke-linecap: round; }
.fig-cristallino { fill: #bae6fd; stroke: #0369a1; stroke-width: 1.4; }
.fig-osso-cranio { fill: #f5ecd9; stroke: #c9b48a; stroke-width: 1; }
.fig-padiglione { fill: #f8cfb6; stroke: #7c2d12; stroke-width: 1.4; }
.fig-condotto { fill: #fde4d4; stroke: #7c2d12; stroke-width: 1; }
.fig-timpano { fill: #fca5a5; stroke: #991b1b; stroke-width: 1.4; }
.fig-ossicino { fill: #e5e7eb; stroke: #374151; stroke-width: 1.4; }
.fig-canali { fill: none; stroke: #7c3aed; stroke-width: 4; }
.fig-vestibolo { fill: #ddd6fe; stroke: #7c3aed; stroke-width: 1.2; }
.fig-coclea { fill: none; stroke: #db2777; stroke-width: 4; stroke-linecap: round; }
.fig-nervo-acustico { fill: none; stroke: #ca8a04; stroke-width: 4; }
.fig-icona-pelle { fill: #f8cfb6; stroke: #7c2d12; stroke-width: 1.4; }
.fig-icona-iride { fill: #60a5fa; stroke: #1e3a8a; stroke-width: 1; }
.fig-icona-pupilla { fill: #0f172a; }
.fig-icona-linea { fill: none; stroke: #7c2d12; stroke-width: 1.4; }
.fig-icona-odore { fill: none; stroke: #16a34a; stroke-width: 1.6; }
.fig-icona-bocca { fill: #7f1d1d; stroke: #450a0a; stroke-width: 1.4; }
.fig-icona-lingua { fill: #f472b6; stroke: #9d174d; stroke-width: 1.2; }
.fig-raggio-luce { stroke: #f59e0b; stroke-width: 1.4; }
.fig-chioma { fill: #4ade80; stroke: #166534; stroke-width: 1.2; }
.fig-tronco-albero { fill: #92400e; }
/* Salute */
.fig-polmone-sano, .fig-polmone-fumatore, .fig-macchia-catrame, .fig-filtro, .fig-carta-sigaretta, .fig-brace { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-polmone-sano { fill: #fda4af; stroke: #9f1239; stroke-width: 1.4; }
.fig-polmone-fumatore { fill: #78716c; stroke: #292524; stroke-width: 1.4; }
.fig-macchia-catrame { fill: #1c1917; opacity: .8; }
.fig-filtro { fill: #f59e0b; stroke: #92400e; stroke-width: 1; }
.fig-carta-sigaretta { fill: #f8fafc; stroke: #94a3b8; stroke-width: 1; }
.fig-brace { fill: #ef4444; stroke: #7f1d1d; stroke-width: 1; }
.fig-fumo-sigaretta { fill: none; stroke: #94a3b8; stroke-width: 2; }

/* Licenza in copertina */
.licenza { max-width: 36rem; margin: 2rem auto 0; font-size: .8rem; color: var(--tenue); text-align: center; }
.licenza p { margin: .3rem 0; }
.licenza a { color: inherit; }
body.stampa .licenza { font-size: 8.5pt; margin-top: 4rem; }
.piede a { color: inherit; }

/* Nome dell'autore con il link all'email */
.autore a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* DNA ed ereditarietà */
.fig-base, .fig-cromosoma, .fig-gene-banda, .fig-cella-punnett, .fig-pisello { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-filamento1, .fig-filamento2 { fill: none; stroke: #334155; stroke-width: 4; stroke-linecap: round; }
.fig-filamento2 { stroke: #64748b; }
.fig-base { stroke-width: 5; }
.fig-base-A { stroke: #ef4444; } .fig-base-T { stroke: #f59e0b; }
.fig-base-C { stroke: #3b82f6; } .fig-base-G { stroke: #22c55e; }
.fig-lettera-base { font: 700 9px var(--font-it); fill: #fff; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #1f2937; stroke-width: 2px; }
.fig-cromosoma { fill: #c084fc; stroke: #6b21a8; stroke-width: 1.2; }
.fig-gene-banda { fill: #facc15; stroke: #a16207; stroke-width: 1; }
.fig-gene-riquadro { fill: none; stroke: #ca8a04; stroke-width: 2; stroke-dasharray: 4 2; }
.fig-cella-punnett { fill: #f8fafc; stroke: var(--inchiostro); stroke-width: 1.4; }
.fig-pisello { stroke: #3f6212; stroke-width: 1.2; }
.fig-gamete-lettera { font: 700 16px var(--font-it); fill: var(--regola); text-anchor: middle; dominant-baseline: central; }
.fig-genotipo { font: 700 13px var(--font-it); fill: var(--inchiostro); text-anchor: middle; dominant-baseline: central; }
/* Sistema endocrino */
.fig-ghiandola, .fig-rene-sfondo, .fig-cervello-ombra { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-ghiandola { fill: #f59e0b; stroke: #92400e; stroke-width: 1.2; }
.fig-rene-sfondo { fill: #fecaca; stroke: #b91c1c; stroke-width: .8; opacity: .6; }
.fig-cervello-ombra { fill: #fbcfe8; stroke: #be185d; stroke-width: .8; opacity: .6; }
/* Apparato escretore */
.fig-rene, .fig-vescica, .fig-capsula-bowman, .fig-glomerulo, .fig-campione { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig-rene { fill: #b45309; stroke: #78350f; stroke-width: 1.4; }
.fig-uretere { fill: none; stroke: #eab308; stroke-width: 4; stroke-linecap: round; }
.fig-vescica { fill: #fde68a; stroke: #a16207; stroke-width: 1.4; }
.fig-aorta-ren { fill: none; stroke: var(--ricco); stroke-width: 8; opacity: .85; }
.fig-cava-ren { fill: none; stroke: var(--povero); stroke-width: 9; opacity: .85; }
.fig-aorta-ren-sottile { fill: none; stroke: var(--ricco); stroke-width: 3; }
.fig-cava-ren-sottile { fill: none; stroke: var(--povero); stroke-width: 3; }
.fig-arteriola { stroke: var(--ricco); stroke-width: 4; }
.fig-capsula-bowman { fill: #fef3c7; stroke: #a16207; stroke-width: 2; }
.fig-glomerulo { fill: #fca5a5; stroke: #b91c1c; stroke-width: 1; }
.fig-tubulo { fill: none; stroke: #ca8a04; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.fig-dotto { stroke: #a16207; stroke-width: 9; stroke-linecap: round; }
.fig-capillare-ren { fill: none; stroke: var(--ricco); stroke-width: 2; stroke-dasharray: 5 3; }
.fig-campione { stroke: #a16207; stroke-width: 1; }
.fig-graffa-buona { stroke: #16a34a; stroke-width: 4; } .fig-graffa-media { stroke: #f59e0b; stroke-width: 4; }
.fig-graffa-male { stroke: #dc2626; stroke-width: 4; }
