@font-face { font-family: "Saira"; src: url(/static/font/saira-400-latin.00e18d8b.woff2) format("woff2"); font-weight: 400; font-stretch: 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/font/saira-600-latin.6626fc33.woff2) format("woff2"); font-weight: 600; font-stretch: 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/font/saira-62-700-latin.00de99d1.woff2) format("woff2"); font-weight: 700; font-stretch: 62.5%; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/font/saira-75-700-latin.d11428dd.woff2) format("woff2"); font-weight: 700; font-stretch: 75%; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url(/static/font/azeret-mono-400-latin.48ee470f.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url(/static/font/azeret-mono-500-latin.69e04ee3.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url(/static/font/azeret-mono-600-latin.4c07d2a9.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Ripieghi con le metriche dei font veri: finché non arrivano la pagina non salta (static/font/README.md). */
@font-face { font-family: "Saira su Arial"; src: local("Arial"), local("ArialMT"); font-weight: 400; font-stretch: 100%; size-adjust: 102.8%; ascent-override: 110.41%; descent-override: 42.7%; line-gap-override: 0%; }
@font-face { font-family: "Saira su Arial"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600; font-stretch: 100%; size-adjust: 97.46%; ascent-override: 116.46%; descent-override: 45.04%; line-gap-override: 0%; }
@font-face { font-family: "Saira su Arial"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; font-stretch: 62.5%; size-adjust: 58.54%; ascent-override: 193.88%; descent-override: 74.99%; line-gap-override: 0%; }
@font-face { font-family: "Saira su Arial"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; font-stretch: 75%; size-adjust: 69.31%; ascent-override: 163.76%; descent-override: 63.34%; line-gap-override: 0%; }
@font-face { font-family: "Saira su Roboto"; src: local("Roboto"), local("Roboto-Regular"); font-weight: 400; font-stretch: 100%; size-adjust: 103.29%; ascent-override: 109.89%; descent-override: 42.5%; line-gap-override: 0%; }
@font-face { font-family: "Saira su Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600; font-stretch: 100%; size-adjust: 103.48%; ascent-override: 109.68%; descent-override: 42.42%; line-gap-override: 0%; }
@font-face { font-family: "Saira su Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 700; font-stretch: 62.5%; size-adjust: 63.23%; ascent-override: 179.5%; descent-override: 69.43%; line-gap-override: 0%; }
@font-face { font-family: "Saira su Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 700; font-stretch: 75%; size-adjust: 74.87%; ascent-override: 151.6%; descent-override: 58.64%; line-gap-override: 0%; }
@font-face { font-family: "Azeret su Courier"; src: local("Courier New"), local("CourierNewPSMT"), local("Droid Sans Mono"); size-adjust: 108.33%; ascent-override: 86.5%; descent-override: 21.23%; line-gap-override: 0%; }

:root {
  --bg: #f0eee6;
  --panel: #faf9f5;
  --panel-2: #e8e5db;
  --line: rgb(31 30 29 / 0.11);
  --line-strong: rgb(31 30 29 / 0.22);
  --text: #1f1e1d;
  --muted: #4f4d47;
  --dim: #6a675f;
  --accent: #d97757;
  --accent-text: #a4472a;
  --accent-ink: #1f1e1d;
  --grid: rgb(31 30 29 / 0.03);
  --grid-fine: rgb(31 30 29 / 0.018);
  --plus: url(/static/img/griglia-chiara.030f6b4e.svg);
  --glow: rgb(217 119 87 / 0.16);
  --bar: #8f8b81;
  --track: #e3dfd4;
  --forte: #b4502d;
  --su-forte: #fff;
  --tinta: rgb(217 119 87 / 0.14);
  --ombra: 0 1px 2px rgb(31 30 29 / 0.06), 0 8px 24px rgb(31 30 29 / 0.08);
  --radius: 6px;
  --mono: "Azeret Mono", "Azeret su Courier", ui-monospace, monospace;
  --sans: "Saira", "Saira su Arial", "Saira su Roboto", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1e1d;
    --panel: #262624;
    --panel-2: #2e2d2a;
    --line: rgb(240 238 230 / 0.10);
    --line-strong: rgb(240 238 230 / 0.20);
    --text: #f0eee6;
    --muted: #c2bfb5;
    --dim: #9a968c;
    --accent: #d97757;
    --accent-text: #e08b6d;
    --accent-ink: #1f1e1d;
    --grid: rgb(240 238 230 / 0.022);
    --grid-fine: rgb(240 238 230 / 0.014);
    --plus: url(/static/img/griglia-scura.3ac7fd4d.svg);
    --glow: rgb(217 119 87 / 0.09);
    --bar: #807c73;
    --track: #353431;
    --tinta: rgb(217 119 87 / 0.16);
    --ombra: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1e1d;
  --panel: #262624;
  --panel-2: #2e2d2a;
  --line: rgb(240 238 230 / 0.10);
  --line-strong: rgb(240 238 230 / 0.20);
  --text: #f0eee6;
  --muted: #c2bfb5;
  --dim: #9a968c;
  --accent: #d97757;
  --accent-text: #e08b6d;
  --accent-ink: #1f1e1d;
  --grid: rgb(240 238 230 / 0.022);
  --grid-fine: rgb(240 238 230 / 0.014);
  --plus: url(/static/img/griglia-scura.3ac7fd4d.svg);
  --glow: rgb(217 119 87 / 0.09);
  --bar: #807c73;
  --track: #353431;
  --tinta: rgb(217 119 87 / 0.16);
  --ombra: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5;
  background-color: var(--bg);
  background-image: radial-gradient(600px 360px at 100% 0, var(--glow), transparent 70%), var(--plus),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: auto, 120px 120px, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat;
}
b, strong { font-weight: 600; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.forte { font-weight: 600; }
.nowrap { white-space: nowrap; }

.top { border-bottom: 1px solid var(--line-strong); background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo:hover { color: inherit; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-weight: 700; font-stretch: 75%; font-size: 25px; line-height: 1; letter-spacing: 0.01em; }
.logo-word b { font-weight: 700; color: var(--accent-text); }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a, .icon-btn, .btn-primary, .etichetta, footer.foot h3 { font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { font-size: 16px; text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; min-height: 64px; }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.tools { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.icon-btn {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); text-decoration: none;
}
@media (max-width: 760px) { .nav { display: none; } }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; user-select: none; }
summary::-webkit-details-marker { display: none; }
.menu summary:hover { color: var(--accent-text); }
.menu[open] summary { background: var(--panel); border-color: var(--text); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 96px); overflow-y: auto; padding: 6px 0;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
}
.menu nav > div + div { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu nav p { margin: 0; padding: 8px 18px 2px; font-size: 14px; color: var(--dim); font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.12em; }
.menu nav ul { list-style: none; padding: 0; margin: 0; }
.menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; text-decoration: none; }
.menu nav a:focus-visible { outline-offset: -3px; }

.crumbs { font-size: 14px; color: var(--dim); margin: 22px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); text-decoration: none; }
h1 { font-weight: 700; font-stretch: 62.5%; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; margin: 0; font-size: clamp(38px, 6vw, 72px); overflow-wrap: anywhere; }
h1 .coda { color: var(--dim); }
h1.apertura { margin-top: 28px; }
h1 em, h2 em { font-style: normal; color: var(--accent-text); }
h2 { font-weight: 700; font-stretch: 75%; text-transform: uppercase; font-size: 28px; line-height: 1.05; margin: 0; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); }
.nota { font-size: 14px; color: var(--dim); }
.sotto { font-size: 15px; color: var(--dim); margin: 10px 0 0; }

.answer { font-size: 20px; margin: 12px 0 0; line-height: 1.4; }
.answer .num { font-weight: 600; font-size: 1.15em; }
.answer .when { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }

.etichetta { font-size: 16px; color: var(--muted); letter-spacing: 0.12em; }
.panel, .pannello { position: relative; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.panel::before, .panel::after, .pannello::before, .pannello::after { content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; }
.panel::before, .pannello::before { top: -1px; left: -1px; border-top: 2px solid var(--text); border-left: 2px solid var(--text); border-top-left-radius: var(--radius); }
.panel::after, .pannello::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--text); border-right: 2px solid var(--text); border-bottom-right-radius: var(--radius); }
.testa { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.testa .lettura { font-size: 17px; color: var(--dim); }
.corpo { padding: 22px 20px; }
@media (max-width: 480px) { .corpo { padding: 18px 16px; } .testa { padding: 10px 16px; } }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 18px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .k { font-weight: 600; min-width: 0; overflow-wrap: anywhere; } .list .k a { text-decoration: none; }
.list .s { display: block; font-size: 14px; color: var(--dim); font-weight: 400; }
.list .v { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.section { margin-top: 40px; }
.section-head { margin-bottom: 14px; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.nota-sotto { font-size: 14px; color: var(--dim); margin: 10px 2px 0; }

.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--mono); font-size: 12px; fill: var(--dim); }
.chart .gridline { stroke: var(--line); } .chart .axis { stroke: var(--line-strong); }
.chart .serie { fill: none; stroke: var(--bar); stroke-width: 2.5; }
.chart .serie.me { stroke: var(--text); }
.chart .serie.tratto { stroke-dasharray: 6 4; }
.chart-piede { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: 4px; margin-right: 7px; background: var(--bar); }
.legend i.me { background: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); min-height: 52px; padding: 0 22px; font-size: 18px; }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.05); }

.testo { max-width: 68ch; margin-top: 18px; }
.testo .intro { font-size: 20px; color: var(--muted); }
.testo h2 { font-size: 24px; margin: 36px 0 10px; }
.testo p, .testo ul { margin: 0 0 12px; }
.testo ul { padding-left: 1.2em; }
.testo li + li { margin-top: 6px; }
.formula { font-family: var(--mono); font-size: 15px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }

.modulo { display: grid; gap: 22px; margin-top: 24px; justify-items: start; }
.campo { display: grid; gap: 6px; width: 100%; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > label, .campo legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.campo .nota { margin: 0; }
.modulo input[type="text"], .modulo textarea {
  font: inherit; font-size: 17px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text);
}
.modulo textarea { resize: vertical; line-height: 1.45; }
.modulo input:focus-visible, .modulo textarea:focus-visible, .modulo .btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.scelta { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.scelta input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-text); }
.trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.errore { max-width: 640px; margin-top: 28px; display: grid; gap: 16px; justify-items: start; }
.errore .big, .errore .answer, .errore .sotto { margin: 0; }
.errore .big { color: var(--accent-text); }
.errore .panel { width: 100%; }

.source { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 14px; color: var(--muted); }
.source b { color: var(--text); }
.source p { margin: 0 0 6px; } .source p:last-child { margin: 0; }

footer.foot { margin-top: 64px; border-top: 1px solid var(--line-strong); padding: 32px 0 48px; color: var(--muted); font-size: 16px; background: var(--bg); }
footer.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
footer.foot h3 { font-size: 15px; color: var(--muted); letter-spacing: 0.12em; margin: 0 0 6px; }
footer.foot ul { list-style: none; padding: 0; margin: 0; }
footer.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.about p { margin: 12px 0 0; max-width: 42ch; }
@media (max-width: 760px) { footer.foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer.foot .about { grid-column: 1 / -1; } }

.big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: clamp(40px, 9vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.kv dt { color: var(--dim); font-size: 15px; } .kv dd { margin: 0; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .kv dd { margin-bottom: 10px; } }
.flag { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--line-strong); font-size: 15px; color: var(--muted); }
.flag b { color: var(--text); }

.scorri { overflow-x: auto; }
.tabella { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabella th, .tabella td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.tabella th { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabella tbody tr:last-child td { border-bottom: 0; }
.tabella .forte { white-space: nowrap; }
.tabella .hash { font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; min-width: 18ch; }
@media (max-width: 640px) {
  .tabella thead { display: none; }
  .tabella tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tabella tbody tr:last-child { border-bottom: 0; }
  .tabella td { display: block; position: relative; padding: 3px 0 3px 100px; border: 0; }
  .tabella .forte { white-space: normal; overflow-wrap: anywhere; }
  .tabella td::before { content: attr(data-etichetta); position: absolute; left: 0; color: var(--dim); font-family: var(--sans); font-size: 14px; font-weight: 400; }
}

.crumbs [aria-current="page"] { color: var(--text); }
h1 .unita, h2 .unita { text-transform: none; }
.crumbs + h1 { margin-top: 6px; }
.aggiornato { font-size: 14px; color: var(--dim); margin: 12px 0 0; }
.source .aggiornato { margin: 8px 0 0; }
.chart text.inizio { text-anchor: start; }
.chart text.centro { text-anchor: middle; }
.chart text.fine { text-anchor: end; }
.chart .punto { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.chart circle.serie { fill: var(--bar); stroke: none; }
.chart circle.serie.me { fill: var(--text); }
.legend i.tratto { background: repeating-linear-gradient(90deg, var(--bar) 0 6px, transparent 6px 10px); }
.section > .panel + .panel, .section > .panel + details, .section > .grid-2 + details, .section > .grid-2 + .panel { margin-top: 14px; }
.grid-2.in-alto { align-items: start; }
details.tutti { margin-top: 14px; }
details.tutti summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
details.tutti summary::before { content: ""; flex: none; border-left: 9px solid var(--accent-text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
details.tutti[open] summary::before { transform: rotate(90deg); }
details.tutti summary:hover { color: var(--accent-text); }
details.tutti[open] summary { margin-bottom: 8px; }
.vicini { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.vicini [rel="next"] { margin-left: auto; }
footer.foot .attribuzione { font-size: 14px; color: var(--dim); }
.indice li { flex-wrap: nowrap; align-items: center; gap: 14px; }
.indice .anno { font-weight: 700; font-stretch: 75%; font-size: 22px; text-decoration: none; flex: none; width: 3ch; }
.indice-mesi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; flex: 1; min-width: 0; }
.list .indice-mesi li { display: block; padding: 0; border: 0; }
.indice-mesi a, .indice-mesi .vuoto { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.indice-mesi a { text-decoration: none; border: 1px solid var(--line-strong); }
.indice-mesi .vuoto { color: var(--dim); border: 1px dashed var(--line); font-weight: 400; }
@media (max-width: 760px) { .indice li { flex-wrap: wrap; } .indice-mesi { grid-template-columns: repeat(6, minmax(0, 1fr)); flex-basis: 100%; } }
@media (max-width: 640px) { .chart text { font-size: 18px; } }
.errore > p { margin: 0; }
.num .virgola, .list .v .virgola, .big .virgola, .formula .virgola, .v7 .n .virgola { margin: 0 -0.23em 0 -0.2em; }
.chart .virgola { letter-spacing: -0.23em; }
.kv dd .nota { display: block; margin-top: 2px; }
.kv + .kv { margin-top: 0; }
.citazione { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--line-strong); background: var(--panel-2); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; color: var(--muted); }
.url, .codice { overflow-wrap: anywhere; word-break: break-word; }
.codice { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.revisioni { list-style: none; margin: 0; padding: 0; }
.revisioni > li { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.revisioni > li:last-child { border-bottom: 0; }
.revisioni .periodo { font-weight: 600; display: block; }
.revisioni .periodo .stato { font-weight: 400; color: var(--dim); font-size: 14px; margin-left: 6px; }
.revisioni .codice { display: block; margin-top: 2px; }
.revisioni .cambi { margin: 8px 0 0; padding-left: 1.2em; font-size: 15px; }
.revisioni .cambi li + li { margin-top: 4px; }
.revisioni .prima { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.venditore p { margin: 0 0 8px; }
.venditore p:last-child { margin: 0; }
.citazione .chi { display: block; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 2px; }
.revisioni.linea > li { position: relative; padding-left: 40px; }
.revisioni.linea > li::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 2px solid var(--line-strong); }
.revisioni.linea > li:first-child::before { top: 20px; }
.revisioni.linea > li:last-child::before { bottom: calc(100% - 20px); }
.revisioni.linea > li:only-child::before { display: none; }
.revisioni.linea > li::after { content: ""; position: absolute; left: 13px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--bar); }
.revisioni.linea > li:first-child::after { background: var(--accent); border-color: var(--accent); }
.revisioni .ripubblicata { margin: 8px 0 0; font-size: 15px; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.linea-titolo { margin: 14px 18px 0; font-size: 15px; font-weight: 600; }

.home, .v7 { font-size: 19px; }
.v7 { --lato: 20px; }
.home h1, .v7 h1 { margin-top: 44px; font-size: clamp(48px, 9vw, 92px); }
.home-lead { font-size: 22px; line-height: 1.45; max-width: 34ch; margin: 20px 0 0; }
.ingressi { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ingresso { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.ingresso:hover { color: inherit; }
.ingresso:hover .vai { text-decoration: underline; }
.ingresso .corpo { display: flex; flex-direction: column; flex: 1; }
.ingresso h2, .v7 h2:not(.etichetta) { font-weight: 600; font-stretch: 100%; text-transform: none; font-size: 22px; line-height: 1.25; }
.ingresso .cose { margin: 14px 0 0; font-size: 18px; color: var(--muted); line-height: 1.4; }
.valore { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 52px; line-height: 1; letter-spacing: -0.03em; margin-top: 18px; }
.valore .virgola { margin: 0 -0.16em 0 -0.12em; }
.valore .unita { font-family: var(--sans); font-weight: 700; font-stretch: 75%; letter-spacing: 0.02em; font-size: 24px; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.ingresso .contesto { margin: 6px 0 0; font-size: 18px; color: var(--muted); }
.ingresso .esatto { margin: 10px 0 0; font-size: 16px; color: var(--dim); }
.ingresso .vai { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.08em; font-size: 18px; color: var(--accent-text); }
.fiducia { margin: 32px 0 0; font-size: 19px; color: var(--muted); max-width: 60ch; }
.fiducia b { color: var(--text); }
.altre-sezioni { margin: 48px 0 0; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 18px; color: var(--muted); }
.grandi-citta { margin: 8px 0 0; font-size: 18px; color: var(--muted); }
.prezzi-carburanti { margin: 32px 0 0; }
.prezzi-carburanti ul { list-style: none; margin: 0; padding: 0 20px 4px; }
.prezzi-carburanti a { display: flex; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.prezzi-carburanti li:last-child a { border-bottom: 0; }
.prezzi-carburanti .modo { font-weight: 400; color: var(--muted); }
.prezzi-carburanti .num { margin-left: auto; white-space: nowrap; }
.grandi-citta a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .ingressi { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .home h1, .v7 h1 { margin-top: 30px; } .home-lead { font-size: 20px; } }

.v7 .crumbs ~ h1 { margin-top: 18px; }
.venditore-pagina h1, .offerta h1 { font-size: clamp(40px, 7vw, 72px); }
.offerta h1 .coda { display: block; margin-top: 6px; font-size: 0.5em; }
.v7 .sotto-titolo { font-size: 21px; color: var(--muted); margin: 16px 0 0; max-width: 40ch; }
.venditore-pagina .sotto-titolo { color: var(--text); max-width: 46ch; }
.v7 .sotto-titolo .num { font-weight: 600; }
.v7 .avviso, .v7 .esatto { margin: 14px 0 0; font-size: 18px; line-height: 1.4; color: var(--dim); max-width: 60ch; }
.offerta .avviso { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.v7 .pannello { margin: 32px 0 0; }
.v7 .pannello + .pannello { margin-top: 20px; }
.offerta .pannello { max-width: 640px; }
.v7 .valore { margin: 0; font-size: clamp(48px, 13vw, 76px); }
.v7 .riga { margin: 12px 0 0; font-size: 20px; }
.v7 .riga + .riga { margin-top: 4px; }
.offerta p.stato { font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
.offerta .fuori-testo { margin: 8px 0 0; font-size: 24px; font-weight: 600; }
.offerta .azione { display: flex; margin-top: 22px; }
.v7 .barre { display: block; width: 100%; height: 96px; margin: 22px 0 0; }
.v7 .barre rect { fill: var(--bar); }
.v7 .barre rect.ultimo { fill: var(--text); }
.v7 .assi { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 16px; color: var(--dim); margin-top: 6px; }
.v7 .cerca { margin: 32px 0 0; }
.v7 .cerca label { display: block; margin-bottom: 10px; }
.v7 .riga-cerca { display: flex; gap: 8px; }
.persone .btn { flex: 1; padding: 0; }
.v7 .cerca .btn { min-height: 64px; padding: 0 var(--lato); font-size: 20px; }
.v7 .cerca input { flex: 1; min-width: 0; min-height: 64px; padding: 0 18px; font: inherit; font-size: 22px; color: var(--text); background: var(--panel); border: 2px solid var(--text); border-radius: var(--radius); }
.v7 .cerca input::placeholder { color: var(--dim); }
.v7 .risultati { margin: 24px 0 0; }
.v7 .risultati p { margin: 8px 0 0; }
.v7 .venditori { list-style: none; margin: 0; padding: 0 var(--lato) 8px; columns: 2 280px; column-gap: 32px; }
.v7 .venditori.trovati { padding: 0; margin: 8px 0 0; }
.v7 .venditori li { break-inside: avoid; }
.v7 .venditori a { display: flex; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.v7 .venditori .iniziale { display: block; padding: 18px 0 4px; font-weight: 700; font-stretch: 62.5%; font-size: 34px; line-height: 1; color: var(--dim); border-bottom: 1px solid var(--line-strong); break-after: avoid; scroll-margin-top: 12px; }
.v7 .capoluoghi .iniziale { font-size: 24px; font-stretch: 75%; }
.v7 .capoluoghi .num { margin-left: auto; padding-left: 12px; font-weight: 400; }
.v7 .conteggi .num { margin-left: auto; padding-left: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.v7 .elenco > .ordine:first-child { padding-top: 12px; }
.v7 .ordine { margin: 0; padding: 0 var(--lato) 12px; font-size: 18px; color: var(--muted); }
.v7 .lettere { list-style: none; margin: 0; padding: 12px var(--lato); display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--line); }
.v7 .lettere a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 700; font-stretch: 75%; font-size: 20px; text-decoration: none; border-radius: var(--radius); }
.v7 .spiega { margin: 0; padding: 12px var(--lato); border-bottom: 1px solid var(--line); font-size: 17px; color: var(--muted); }
.offerte-v7 { list-style: none; margin: 0; padding: 0; }
.offerte-v7 li { padding: 14px var(--lato); border-bottom: 1px solid var(--line); }
.offerte-v7 li:last-child { border-bottom: 0; }
.offerte-v7 a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 20px; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.offerte-v7 .fatti, .offerte-v7 .quando { display: block; font-size: 17px; line-height: 1.45; color: var(--muted); }
.offerte-v7 .fatti .num { color: var(--text); }
.v7 .elenco { margin: 18px 0 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.v7 .passate .offerte-v7 { border-top: 1px solid var(--line); }
.v7 .altri { margin: 44px 0 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line-strong); }
.v7 .altri + .altri { margin-top: 0; border-top: 0; }
.v7 summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; cursor: pointer; list-style: none; }
.v7 summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); margin: -4px 4px 0 0; }
.v7 [open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.v7 .elenco > summary { padding: 8px var(--lato); font-weight: 600; font-size: 20px; }
.v7 summary .num { color: var(--dim); font-size: 18px; margin-left: auto; }
.v7 .altri > summary { font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.1em; font-size: 19px; }
.v7 .altri > summary:hover { color: var(--accent-text); }
.v7 .altri > summary h2 { font: inherit; text-transform: inherit; }
.v7 .dentro { padding: 0 0 22px; font-size: 18px; }
.v7 .dentro h2, .v7 h3:not(.linea-titolo) { font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.1em; font-size: 17px; color: var(--muted); margin: 26px 0 8px; }
.v7 h3:first-child { margin-top: 6px; }
.v7 .dentro p { margin: 6px 0 0; max-width: 64ch; }
.v7 p a, .v7 td a { display: inline-flex; align-items: center; min-height: 44px; }
.v7 .aggiornato, .v7 .nota-sotto { font-size: 16px; }
.v7 .nota-sotto { margin-top: 18px; }
.v7 table { width: 100%; border-collapse: collapse; }
.v7 caption { text-align: left; color: var(--muted); font-size: 16px; padding: 4px 0 8px; }
.v7 th { text-align: left; font-weight: 600; color: var(--muted); font-size: 17px; }
.v7 td, .v7 th { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.v7 .n { text-align: right; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 17px; }
.v7 th.n { font-family: var(--sans); white-space: normal; }
.v7 td:first-child { white-space: nowrap; }
/* Sotto i 420 px etichette e note vanno a capo: la tabella sta nella larghezza e la colonna al
   mese resta in vista senza scorrere di lato (la tabella del kWh a 320 px era larga 360). */
@media (max-width: 420px) { .v7 td:first-child, .v7 .n .nota { white-space: normal; } }
.v7 .chart { margin-top: 8px; }
.v7 .indice > li { padding: 10px 0; }
@media (max-width: 480px) { .v7 { --lato: 16px; } }

.v7 .casella { border: 2px solid var(--accent); box-shadow: var(--ombra); }
.casella > .testa, .pannello:has(.schede) > .testa { background: var(--tinta); }
.casella .etichetta, .pannello:has(.schede) .etichetta, .ingresso .etichetta { color: var(--accent-text); }
.casella #consumo { min-height: 58px; font-size: 22px; border: 2px solid var(--line-strong); }
.casella #consumo:focus-visible { border-color: var(--accent); }
.casella .btn-primary { min-height: 58px; }
.persone .btn { min-height: 56px; font-family: var(--mono); font-size: 20px; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.persone .btn:active { transform: scale(.96); }
.persone .btn[aria-pressed="true"] { background: var(--forte); border-color: var(--forte); color: var(--su-forte); box-shadow: 0 0 0 3px var(--tinta); }
[data-vivo] { transition: opacity .18s ease; }
[data-vivo][aria-busy="true"] { opacity: .45; }
.entra { animation: entra .24s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
.schede .offerte-v7 { display: grid; gap: 12px; padding: 14px var(--lato) 16px; }
.schede .offerte-v7 li { position: relative; padding: 14px 16px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); transition: border-color .15s, box-shadow .15s, transform .1s; }
.schede li:active { transform: scale(.99); }
.schede li:has(.prima) { border: 2px solid var(--accent); background: linear-gradient(var(--tinta), var(--tinta)), var(--panel); }
.schede .offerte-v7 a { display: flex; min-height: 44px; margin-top: 2px; font-size: 19px; color: var(--text); }
.schede a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.schede a:focus-visible { outline: 0; }
.schede a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.schede .fatti:has(.tipo) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--text); }
.schede .pos { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--panel-2); font-size: 15px; font-weight: 600; }
.schede .chi { color: var(--accent-text); font-weight: 700; font-stretch: 75%; font-size: 20px; letter-spacing: .01em; overflow-wrap: anywhere; }
.schede .tipo, .schede .riga b { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.schede .tipo { margin-left: auto; border: 1px solid var(--line-strong); color: var(--muted); }
.schede .prima { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.schede .criterio { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.schede .riga { margin: 4px 0 0; font-size: 16px; color: var(--muted); }
.annua { display: block; margin-top: 2px; font-size: 16px; color: var(--muted); }
.schede .riga .big { font-size: clamp(32px, 9vw, 44px); color: var(--text); }
.schede .riga b { display: inline-block; vertical-align: 4px; background: var(--tinta); color: var(--accent-text); }
.ingressi .panel { transition: border-color .15s, box-shadow .15s; }
.ingresso .etichetta { display: inline-flex; align-items: center; gap: 10px; }
.icona { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--tinta); stroke: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { [data-vivo], .persone .btn, .schede .offerte-v7 li, .ingressi .panel { transition: none; } .entra { animation: none; } .persone .btn:active, .schede li:active { transform: none; } }
@media (hover: hover) { .persone .btn:hover:not([aria-pressed="true"]) { border-color: var(--accent); color: var(--accent-text); } .schede li:hover { border-color: var(--accent); box-shadow: var(--ombra); } .ingressi .panel:hover { border-color: var(--accent); box-shadow: var(--ombra); } }
@media (min-width: 900px) { .schede .offerte-v7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .schede li:has(.prima) { grid-column: 1 / -1; } }
.riquadri { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.riquadri .panel { padding: 14px 12px; } .riquadri p { margin: 0; }
.riquadri .big { font-size: clamp(28px, 7vw, 44px); margin: 8px 0 4px; }
.chart .colonna { fill: var(--bar); } .chart .colonna.ultima { fill: var(--accent); } .chart text.cifra { fill: var(--text); font-weight: 600; }
.barra { flex-basis: 100%; display: block; width: 100%; height: 8px; background: var(--track); border-radius: 2px; } .barra rect { fill: var(--bar); }
.barre-orizzontali .list { flex-basis: 100%; } .barre-orizzontali .host { padding: 6px 0 6px 14px; }
/* Gli indirizzi lunghi nei paragrafi (fonti, norme) vanno a capo invece di allargare la pagina a 390px. */
p a { overflow-wrap: anywhere; }
