/* Carburanti e Colonnine Oggi: foglio unico, mobile first, senza framework, font di sistema. Direzione «cruscotto». */
:root {
  color-scheme: light dark;
  --bg: #eef1f6; --bg-soft: #f3f6fa; --surf: #fff; --fg: #0f1722; --muted: #4a5668; --line: #d8dfe9;
  --link: #1b4fd1; --accent: #1b4fd1; --accent-soft: #e3ebfd;
  --warn-bg: #fff4e0; --warn-fg: #6b4300; --best-bg: #dff3e8; --best-fg: #075a3f;
  --sh1: 0 1px 2px rgba(15,23,34,.06), 0 8px 20px -10px rgba(15,23,34,.2);
  --sh2: 0 2px 4px rgba(15,23,34,.08), 0 16px 32px -12px rgba(15,23,34,.28);
  /* carburanti: --x testo e grafici sulle superfici, --xs fondo tenue, --xv luce viva sul pannello */
  --b: #0b7a40; --bs: #e1f5ea; --g: #8f5300; --gs: #fff0d6; --l: #0a6a8a; --ls: #dcf3fb; --m: #6338c8; --ms: #ece6ff; --h: #b0225c; --hs: #ffe3ee;
  --bv: #2bd47d; --gv: #ffb23e; --lv: #3cc8f2; --mv: #ab90ff; --hv: #ff7aa8;
  /* pannello cruscotto: scuro in entrambi i temi */
  --panel: #0c1320; --panel2: #152136; --p-fg: #eef3fb; --p-muted: #a9b7cb; --p-link: #9bbcff;
  --p-line: #2a3a55; --p-edge: #62799c; --p-track: #5a6f90;
  --r-sm: .5rem; --r-md: 14px; --r-lg: 20px;
  --t-fast: 150ms; --t-base: 250ms; --t-slow: 400ms; --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dash: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Segoe UI Variable Display", system-ui, sans-serif;
  --max: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f17; --bg-soft: #192435; --surf: #121a27; --fg: #e8eef8; --muted: #9fb1c8; --line: #273650;
    --link: #8db4ff; --accent: #8db4ff; --accent-soft: #1b2a4a;
    --warn-bg: #3a2c10; --warn-fg: #ffd98a; --best-bg: #1d3f30; --best-fg: #9fe4c3;
    --sh1: 0 0 0 1px rgba(255,255,255,.03), 0 8px 20px -10px rgba(0,0,0,.6);
    --sh2: 0 0 0 1px rgba(255,255,255,.05), 0 16px 32px -12px rgba(0,0,0,.7);
    --b: #34d98a; --bs: #12301f; --g: #ffb94d; --gs: #3a2a0b; --l: #45cbf5; --ls: #0e2f3b; --m: #b4a0ff; --ms: #261f45; --h: #ff82ad; --hs: #3d1626;
  }
}
.f-b { --x: var(--b); --xs: var(--bs); --xv: var(--bv); }
.f-g { --x: var(--g); --xs: var(--gs); --xv: var(--gv); }
.f-l { --x: var(--l); --xs: var(--ls); --xv: var(--lv); }
.f-m { --x: var(--m); --xs: var(--ms); --xv: var(--mv); }
.f-h { --x: var(--h); --xs: var(--hs); --xv: var(--hv); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.site-header :focus-visible, .panel :focus-visible, .site-footer :focus-visible { outline-color: var(--p-link); }
h1, h2, h3 { font-family: var(--dash); line-height: 1.15; }
h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; margin: .35rem 0 .6rem; overflow-wrap: anywhere; }
h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
h2 .ic { color: var(--link); }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .35rem; }
p { margin: .5rem 0; }
abbr[title] { text-decoration: none; border-bottom: 1px dotted var(--muted); cursor: help; }
code { font-size: .95em; background: var(--bg-soft); padding: 0 .25rem; border-radius: .2rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
main > :not(.panel) { margin-inline: max(1rem, calc((100% - var(--max)) / 2 + 1rem)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: .5rem; top: 0; z-index: 30; padding: .65rem 1rem; background: var(--surf); color: var(--fg); border: 2px solid var(--link); border-radius: .75rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.hint, .fine { color: var(--muted); font-size: .9rem; }
.panel .hint { color: var(--p-muted); margin: 0 0 1rem; }

/* Testata: pannello scuro con la linea dei cinque carburanti */
.site-header, .panel, .site-footer { background: var(--panel); color: var(--p-fg); }
.site-header { position: relative; }
.site-header::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--bv) 0 20%, var(--gv) 0 40%, var(--lv) 0 60%, var(--mv) 0 80%, var(--hv) 0);
}
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; padding-top: .75rem; padding-bottom: .9rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font: 800 1.1rem/1.1 var(--dash); color: var(--p-fg); text-decoration: none; letter-spacing: .01em; }
.logo .mark { width: 34px; height: 34px; flex: none; }
.search { position: relative; flex: 1 1 16rem; min-width: 0; }
.search .si { position: absolute; left: .9rem; top: 50%; margin-top: -.625em; color: var(--p-muted); pointer-events: none; }
.search input { width: 100%; height: 48px; font: inherit; padding: 0 1rem 0 2.75rem; border: 1px solid var(--p-edge); border-radius: var(--r-md); background: rgba(255,255,255,.07); color: var(--p-fg); }
.search input::placeholder { color: var(--p-muted); opacity: 1; }
.search input:focus-visible { outline-offset: 1px; background: rgba(255,255,255,.11); }
.results { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: .35rem 0 0; padding: .35rem; list-style: none; background: var(--panel2); border: 1px solid var(--p-line); border-radius: var(--r-md); box-shadow: var(--sh2); max-height: 60vh; overflow-y: auto; }
.results li a { display: flex; align-items: center; min-height: 44px; padding: .25rem .75rem; border-radius: 10px; text-decoration: none; color: var(--p-fg); }
.results li a small { color: var(--p-muted); margin-left: .4rem; }
.results:not(:focus-within) li:first-child a, .results li a:hover, .results li a:focus-visible { background: rgba(255,255,255,.1); }
.results li.empty { padding: .6rem .75rem; color: var(--p-muted); }

/* Pannello del titolo e dei carburanti */
.panel { display: flow-root; padding-bottom: 1.5rem; border-radius: 0 0 28px 28px; background-image: radial-gradient(60rem 18rem at 85% -4rem, rgba(60,200,242,.12), transparent), radial-gradient(40rem 14rem at 0 100%, rgba(43,212,125,.08), transparent); }
.panel a { color: var(--p-link); }
.crumbs { font-size: .92rem; padding-top: .35rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; color: var(--p-muted); }
.crumbs li:not(:last-child)::after { content: "\203A"; margin: 0 .5rem; color: var(--p-muted); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .1rem; }
.crumbs li[aria-current] { color: var(--p-fg); font-weight: 600; }
.panel h1 { color: #fff; margin-top: 1rem; }
.crumbs + h1 { margin-top: .35rem; }
.panel h2 { color: var(--p-fg); margin-top: .5rem; }
.panel h2 .ic { color: var(--p-link); }
.sub { margin: .25rem 0 1.25rem; padding: 0; color: var(--p-muted); }
.chip { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .45rem .45rem 0; padding: .3rem .75rem .3rem .6rem; border: 1px solid var(--p-line); border-radius: 99px; background: rgba(255,255,255,.06); color: var(--p-fg); font-size: .86rem; line-height: 1.3; }
.chip .ic { width: 1.1em; height: 1.1em; color: var(--p-muted); }
.notice { padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.notice.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }
.panel .notice.warn { display: flex; align-items: flex-start; gap: .6rem; margin: .5rem 0 1rem; background: rgba(255,176,62,.12); color: #ffd98a; border: 1px solid rgba(255,176,62,.35); }
.panel .notice.warn .ic { margin-top: .15em; }

/* Strumenti: una scheda per carburante */
.cards { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
@media (min-width: 700px) {
  .c1 { grid-template-columns: 1fr; }
  .c2 { grid-template-columns: 1fr 1fr; }
  .c3 { grid-template-columns: repeat(3, 1fr); }
  .c4 { grid-template-columns: 1fr 1fr; }
  .c5 { grid-template-columns: repeat(6, 1fr); }
  .c5 .card { grid-column: span 2; }
  .c5 .card:nth-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 1000px) { .c4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: .85rem 1rem; background: var(--surf); box-shadow: var(--sh1); }
.card h3 { margin: 0 0 .25rem; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.card .price { font-size: 1.75rem; font-weight: 700; margin: 0; color: var(--accent); }
.card .price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.card .where { margin: .25rem 0; font-size: .92rem; }
.card .median { margin: .3rem 0 0; font-size: .88rem; color: var(--muted); }
.panel .card { padding: 1rem; border-color: var(--p-line); border-radius: 22px; color: var(--p-fg); box-shadow: 0 14px 28px -16px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); background: linear-gradient(165deg, var(--panel2), #101a2b); }
.panel .card { background-image: radial-gradient(150px 90px at 10% 0, color-mix(in srgb, var(--xv) 24%, transparent), transparent), linear-gradient(165deg, var(--panel2), #101a2b); }
.panel .card h3 { margin: 0; font-size: 1.1rem; color: var(--p-fg); text-transform: none; letter-spacing: 0; }
.card-h { display: flex; align-items: center; gap: .6rem; }
.fico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--xv); background: color-mix(in srgb, var(--xv) 16%, transparent); border: 1px solid color-mix(in srgb, var(--xv) 40%, transparent); }
.card-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; margin-top: .5rem; }
.panel .card .price { font: 800 2.15rem/1.05 var(--dash); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--xv); text-shadow: 0 0 22px color-mix(in srgb, var(--xv) 45%, transparent); }
.panel .card .where { margin: .35rem 0 0; font-size: .95rem; color: var(--p-fg); }
.panel .card .where small { color: var(--p-muted); }
.panel .card .median { margin: .3rem 0 0; font-size: .84rem; color: var(--p-muted); }
.badge { display: inline-block; font: 600 .72rem/1.3 system-ui, sans-serif; padding: .1rem .5rem; border-radius: 99px; vertical-align: middle; border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); text-shadow: none; letter-spacing: 0; }
.badge.low { background: var(--xs, var(--best-bg)); color: var(--x, var(--best-fg)); border-color: transparent; }
.panel .card .badge { background: transparent; border-color: var(--p-line); color: var(--p-muted); }
.deltas { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr)); gap: .5rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.deltas li { display: flex; flex-direction: column; min-width: 0; padding-left: .55rem; border-left: 2px solid var(--p-line); font: 700 .88rem/1.25 var(--dash); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.deltas .k { display: flex; align-items: center; gap: .2rem; margin-bottom: .1rem; font: 600 .72rem/1.3 system-ui, sans-serif; color: var(--p-muted); }
.deltas .k .ic { width: 1em; height: 1em; }
.deltas small { font: 500 .76rem/1.3 var(--dash); color: var(--p-muted); }
.deltas .dn .k { color: #6ee7a8; }
.deltas .up .k { color: #ffb4a2; }
.deltas .eq .k { color: var(--p-muted); }
.gauge { flex: none; width: 128px; height: auto; }
.gauge text, #gdial text, #gdial25 text { fill: var(--p-muted); font: 600 11px var(--dash); }
.gauge .gv { fill: var(--p-fg); font: 800 15px var(--dash); }
.gtrk { fill: none; stroke: var(--p-track); stroke-width: 9; stroke-linecap: round; }
.gtick { stroke: var(--p-muted); stroke-width: 2; stroke-linecap: round; }
.gf { fill: none; stroke: var(--xv); stroke-width: 9; stroke-linecap: round; }
.ndl { fill: none; stroke: var(--p-fg); stroke-width: 3; stroke-linecap: round; }
.knob { fill: var(--p-fg); stroke: var(--xv); stroke-width: 3; }
.hub { fill: var(--p-fg); }
.mini { display: block; width: 100%; height: 8px; margin: .6rem 0 .2rem; }
.mini .mt { fill: var(--p-track); }
.mini .mf { fill: var(--xv); transform-box: fill-box; transform-origin: 0 50%; }
.rank { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; padding: .6rem .9rem; border: 1px solid var(--p-line); border-radius: 16px; background: rgba(255,255,255,.05); font-weight: 600; }
.rk { flex: none; width: 70px; height: 12px; }
.rk .rt { stroke: var(--p-track); stroke-width: 4; stroke-linecap: round; }
.rk .rd { fill: var(--bv); stroke: var(--p-fg); stroke-width: 2; }

/* Sezioni chiare */
.block { margin-bottom: 1.5rem; }
.links { margin: 2rem 0 1rem; }
.plain, .others { padding-left: 1.25rem; }
.plain li, .others li { margin: .25rem 0; }
.prose { max-width: 46rem; }
.prose li { margin: .25rem 0; }
.ad { margin: 1.25rem 0; }
.h-ricarica { margin-top: 2rem; }
.fig, .spark { margin: .75rem 0; }
.fig { padding: .85rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surf); box-shadow: var(--sh1); }
.fig figcaption, .spark figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.spark-svg { height: auto; }
.fig svg { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; }
.fig text { fill: var(--muted); font: 600 12.5px var(--dash); }
.fig .t-in { fill: var(--fg); }
.fig .halo { paint-order: stroke; stroke: var(--surf); stroke-width: 3px; stroke-linejoin: round; }
.fig .grid { stroke: var(--line); stroke-width: 1; }
.fig .axis { stroke: var(--muted); stroke-width: 1.5; }
.fig .num { font-variant-numeric: tabular-nums; fill: var(--fg); }
.fig-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .35rem; font: 700 1rem var(--dash); }
.fig-h span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.fig-h span:first-child::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--x); }
.fig-h .v { white-space: nowrap; font-size: 1.35rem; color: var(--x); font-variant-numeric: tabular-nums; }
.spark-grid { display: grid; gap: .85rem; }
@media (min-width: 700px) { .spark-grid { grid-template-columns: 1fr 1fr; } }
.spark-area { fill: var(--x); opacity: .14; }
.spark-min { fill: none; stroke: var(--x); stroke-width: 2.75; stroke-linejoin: round; stroke-linecap: round; }
.spark-med { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.spark-dot { fill: var(--x); stroke: var(--surf); stroke-width: 2; }
.spark-ring { fill: none; stroke: var(--x); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hb { fill: var(--x); fill-opacity: .75; transform-box: fill-box; transform-origin: 50% 100%; }
.hb .lo { fill-opacity: 1; stroke: var(--fg); stroke-width: 1.5; }
.hmed { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 4 3; }
.hk { fill: var(--x); stroke: var(--fg); stroke-width: 1.5; }
.rdots circle { fill: var(--x); stroke: var(--surf); stroke-width: 1.5; }
.lstem { stroke: var(--x); stroke-width: 3; stroke-linecap: round; }
.ldot { fill: var(--x); stroke: var(--surf); stroke-width: 2; }
.ldot .lo { stroke: var(--fg); stroke-width: 2.5; }

/* Tabelle accessibili con scorrimento orizzontale */
.table-wrap { position: relative; overflow-x: auto; max-width: 100%; margin: .75rem 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surf); box-shadow: var(--sh1); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
.stations-block .table-wrap { max-height: 85vh; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .94rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: .75rem .9rem; font-weight: 600; color: var(--muted); font-size: .9rem; }
thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-soft); text-align: left; font: 700 .86rem/1.25 var(--dash); padding: .6rem .7rem .5rem; border-bottom: 3px solid var(--x, var(--line)); white-space: nowrap; }
tbody th, tbody td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
tbody tr:hover > * { background: var(--bg-soft); }
th small, td small { display: block; font-weight: 400; color: var(--muted); }
td:empty::before { content: "\2013"; color: var(--muted); }
summary { display: flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surf); box-shadow: var(--sh1); cursor: pointer; font-weight: 700; }
details { margin: 1rem 0; }
details[open] > summary { border-color: var(--link); }
.best { padding: .12rem .45rem; border-radius: var(--r-sm); background: var(--xs, var(--best-bg)); color: var(--x, var(--best-fg)); font-weight: 800; white-space: nowrap; }
.stations { min-width: 72rem; }
.stations td { white-space: nowrap; }
.stations td:nth-child(2) { white-space: normal; min-width: 14rem; }
.stations tbody th { min-width: 14rem; position: sticky; left: 0; z-index: 1; background: var(--surf); }
.stations thead th:first-child { left: 0; z-index: 3; }
.stations :is(th, td):is(:nth-child(3), :nth-child(4)) { --x: var(--b); --xs: var(--bs); }
.stations :is(th, td):is(:nth-child(5), :nth-child(6)) { --x: var(--g); --xs: var(--gs); }
.stations :is(th, td):nth-child(7) { --x: var(--l); --xs: var(--ls); }
.stations :is(th, td):nth-child(8) { --x: var(--m); --xs: var(--ms); }
.stations :is(th, td):nth-child(9) { --x: var(--h); --xs: var(--hs); }
.compare, .nearby, .cheapest, .comuni, .province, .topcomuni, .cities, .regions, .provrank { min-width: 0; }
.compare { font-size: .86rem; }
.compare th, .compare td { padding-left: .4rem; padding-right: .4rem; }
.compare thead th { font-size: .78rem; --x: var(--line); }
.compare tbody th { white-space: nowrap; }
.compare td, .cheapest td, .comuni td, .province td, .topcomuni td, .cities td, .regions td, .provrank td, .premium td { white-space: nowrap; }
.compare tbody th::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .5rem; border-radius: 50%; background: var(--x); }
.compare tr:nth-child(1) th { --x: var(--b); }
.compare tr:nth-child(2) th { --x: var(--g); }
.compare tr:nth-child(3) th { --x: var(--l); }
.compare tr:nth-child(4) th { --x: var(--m); }
.compare tr:nth-child(5) th { --x: var(--h); }
.nearby td { min-width: 6.5rem; }
.nearby td:nth-child(2) { min-width: 0; white-space: nowrap; }
.nearby .p { font-weight: 700; }
.nearby thead th:nth-child(3) { --x: var(--b); }
.nearby thead th:nth-child(4) { --x: var(--g); }
.cities thead th:last-child { --x: var(--b); }
.two-col { display: grid; gap: 1rem; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Sotto 700 px: una scheda per distributore (solo CSS, semantica di tabella nel DOM) */
@media (max-width: 699.98px) {
  .stations-block .table-wrap { max-height: none; overflow: visible; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .stations, .stations tbody { display: block; min-width: 0; }
  .stations caption { display: block; padding: .25rem 0 .6rem; }
  .stations thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stations tr { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; gap: .45rem; margin: 0 0 .7rem; padding: .85rem; background: var(--surf); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh1); }
  .stations tr:hover > * { background: none; }
  .stations th, .stations td { display: block; padding: 0; border: 0; }
  .stations tbody th { flex: 1 0 100%; order: 0; padding-right: 4.75rem; position: static; min-width: 0; background: none; font: 700 1.02rem/1.25 var(--dash); }
  .stations tbody th small { display: inline; margin-left: .4rem; font-weight: 500; font-family: system-ui, sans-serif; }
  .stations td { order: 3; padding: .3rem .65rem; border-left: 3px solid var(--x, var(--line)); border-radius: 4px 10px 10px 4px; background: var(--bg-soft); font-weight: 700; font-size: .98rem; }
  .stations td::before { display: block; font: 500 .72rem/1.3 system-ui, sans-serif; color: var(--muted); }
  .stations td:nth-child(2) { order: 1; flex: 1 0 100%; padding: 0; border: 0; background: none; font-weight: 400; font-size: .88rem; color: var(--muted); white-space: normal; min-width: 0; }
  .stations td:nth-child(3), .stations td:nth-child(5), .stations td:nth-child(7), .stations td:nth-child(8) { order: 2; }
  .stations td:nth-child(4), .stations td:nth-child(6), .stations td:nth-child(9) { order: 3; }
  .stations td:nth-child(10) { order: 4; flex: 1 0 100%; padding: 0; border: 0; background: none; font-weight: 400; font-size: .82rem; color: var(--muted); }
  .stations td:nth-child(11) { position: absolute; top: .2rem; right: .35rem; padding: 0; border: 0; background: none; }
  .stations td:empty { display: none; }
  .stations td:nth-child(3)::before { content: "Benzina self "; }
  .stations td:nth-child(4)::before { content: "Benzina servito "; }
  .stations td:nth-child(5)::before { content: "Gasolio self "; }
  .stations td:nth-child(6)::before { content: "Gasolio servito "; }
  .stations td:nth-child(7)::before { content: "GPL "; }
  .stations td:nth-child(8)::before { content: "Metano "; }
  .stations td:nth-child(9)::before { content: "HVO "; }
  .stations td:nth-child(10)::before { content: "agg. "; display: inline; font-size: inherit; }
  .stations td:nth-child(11)::before { content: none; }
  td a, tbody th a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 .25rem; }
  .nearby, .nearby tbody { display: block; }
  .nearby caption { display: block; }
  .nearby thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nearby tr { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .75rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
  .nearby tr:last-child { border-bottom: 0; }
  .nearby th, .nearby td { min-width: 0; padding: 0; border: 0; }
  .nearby td:nth-child(2) { align-self: center; text-align: right; color: var(--muted); }
  .nearby td:nth-child(n+3) { padding-left: .55rem; border-left: 3px solid var(--x); }
  .nearby td:nth-child(3) { --x: var(--b); }
  .nearby td:nth-child(4) { --x: var(--g); }
  .nearby td:nth-child(3)::before { content: "Benzina"; }
  .nearby td:nth-child(4)::before { content: "Gasolio"; }
  .nearby td::before { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
  .nearby td:nth-child(2)::before { content: none; }
}
@media (pointer: coarse) { td a, tbody th a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; } }

/* Schede chiare con link, ricarica e tariffe */
.card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: var(--sh2); opacity: 0; pointer-events: none; }
.sec-nav { margin: .75rem 0 1rem; }
.sec-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sec-nav li { flex: 1 1 auto; }
.sec-nav a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surf); color: var(--link); text-decoration: none; box-shadow: var(--sh1); }
.sec-nav a:hover { border-color: var(--accent); }
.sec-nav a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); font-weight: 600; }
.tools .card p { margin: .35rem 0; }
.tools .card p a { display: inline-block; padding: .65rem 0; }
.stat { margin: .75rem 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surf); box-shadow: var(--sh1); font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.gloss { margin: .5rem 0 1rem; }
.gloss dt { font-weight: 600; margin-top: .85rem; }
.gloss dd { margin: .15rem 0 0; }
@media (min-width: 700px) {
  .gloss { display: grid; grid-template-columns: 11rem 1fr; gap: .6rem 1.25rem; }
  .gloss dt, .gloss dd { margin: 0; }
}
.sources { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.sources li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.sources li:last-child { border-bottom: 0; }
.sources .meta { display: block; color: var(--muted); font-size: .9rem; }
.facts { margin: .5rem 0 0; font-size: .92rem; }
.facts dt { font-weight: 600; color: var(--muted); margin-top: .5rem; }
.facts dd { margin: 0; }
.parts.facts { font-size: 1rem; max-width: 46rem; }
.parts.facts dt { color: var(--fg); margin-top: .75rem; }
.formula { font-size: 1.15rem; margin: .75rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: var(--surf); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* Tabella operatori: un tbody per operatore (riga dei dati + riga della nota) */
.tariffe tbody { border-bottom: 1px solid var(--line); }
.tariffe tbody:last-child { border-bottom: 0; }
.tariffe tbody th, .tariffe tbody td { border-bottom: 0; }
.tariffe tbody th { min-width: 8rem; }
.tariffe td { min-width: 5rem; }
.tariffe .abb { min-width: 14rem; }
.tariffe td small { display: block; }
.tariffe tr.row-note td { padding-top: 0; color: var(--muted); font-size: .9rem; }
.tariffe td a { display: inline-block; padding: .7rem 0; min-width: 44px; }
.cell-list { margin: 0; padding-left: 1.1rem; }
.cell-list li { margin: .15rem 0; }

/* Sotto 900 px una scheda per operatore; le etichette vengono da data-label. */
@media (max-width: 899.98px) {
  .tariffe, .tariffe tbody { display: block; min-width: 0; }
  .tariffe caption { display: block; padding-left: 0; }
  .tariffe thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tariffe tr { display: block; }
  .tariffe tbody tr:not(.row-note) { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1.1rem; padding: .75rem .25rem .3rem; }
  .tariffe tbody th, .tariffe tbody td, .tariffe tbody .abb { display: block; min-width: 0; padding: 0; border: 0; }
  .tariffe tbody th { flex: 1 0 100%; font-size: 1.05rem; }
  .tariffe tbody th small { display: block; margin-left: 0; }
  .tariffe td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .82rem; }
  .tariffe .abb, .tariffe td[colspan="3"] { flex: 1 0 100%; }
  .tariffe tr.row-note { padding: .1rem .25rem .85rem; }
  .tariffe tr.row-note td { display: block; padding: 0; }
}

/* Piè di pagina */
.site-footer { position: relative; margin-top: 3rem; padding: 1.75rem 0 2.25rem; font-size: .92rem; color: var(--p-muted); }
.site-footer::before { bottom: auto; top: 0; }
.site-footer a { color: var(--p-link); }
.foot-nav { list-style: none; margin: .75rem 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; }
.foot-nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.site-footer .fine { color: var(--p-muted); font-size: .84rem; }
.dev { margin-top: .5rem; }
.dev p { margin: .25rem 0; }
.dev a { display: inline-flex; align-items: center; min-height: 44px; }
.dev .donate a { font-weight: 600; }
body.ads .dev { padding-bottom: 8rem; }   /* annuncio ancorato: la donazione resta sopra (SPEC (y)) */
.negozi { display: flex; flex-wrap: wrap; gap: .5rem .75rem; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--accent); border-radius: .75rem; font-weight: 600; text-decoration: none; }
@media (min-width: 700px) {
  h1 { font-size: 2.5rem; }
  .panel .card { padding: 1.15rem 1.25rem; }
  .panel .card .price { font-size: 2.5rem; }
  .foot-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
}

/* Movimento: solo transform e opacity, 150-400 ms; il contenuto resta sempre visibile */
@keyframes rise { from { opacity: .4; transform: translateY(8px); } }
@keyframes sweep { from { transform: rotate(0deg); } }
@keyframes gfill { from { opacity: .2; } }
@keyframes grow { from { transform: scaleY(.15); } }
@keyframes growx { from { transform: scaleX(.1); } }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
@keyframes fade { from { opacity: .2; } }
@media (prefers-reduced-motion: no-preference) {
  .panel .card { animation: rise var(--t-base) var(--ease-out) backwards; }
  .panel .card:nth-child(2) { animation-delay: 30ms; }
  .panel .card:nth-child(3) { animation-delay: 60ms; }
  .panel .card:nth-child(4) { animation-delay: 90ms; }
  .panel .card:nth-child(5) { animation-delay: 120ms; }
  .nd { animation: sweep var(--t-slow) var(--ease-out); }
  .gf { animation: gfill var(--t-slow) var(--ease-out); }
  .hb { animation: grow var(--t-base) var(--ease-out); }
  .mini .mf { animation: growx var(--t-base) var(--ease-out); }
  .spark-ring { animation: ping var(--t-slow) var(--ease-out) 120ms backwards; }
  .results { animation: fade var(--t-fast) var(--ease-out); }
  .card:has(> .card-link) { transition: transform var(--t-fast) var(--ease-out); }
  .card::after { transition: opacity var(--t-fast) var(--ease-out); }
  .card:has(> .card-link):active { transform: scale(.985); }
  .skip { transition: transform var(--t-fast) var(--ease-out); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card:has(> .card-link):hover { transform: translateY(-2px); }
  .card:has(> .card-link):hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header .search, .skip, .sprite, .dev, .negozi { display: none; }
  .site-header, .panel, .site-footer { background: none; color: #000; }
  .panel h1, .crumbs li, .chip, .sub { color: #000; }
}
@media (forced-colors: active) {
  .ndl { stroke: CanvasText; }
  .knob { fill: CanvasText; stroke: Highlight; }
  .hub { fill: CanvasText; }
  .gtrk, .gtick, .rk .rt { stroke: GrayText; }
  .gf { stroke: Highlight; }
  .gauge text, .gauge .gv, #gdial text, #gdial25 text { fill: CanvasText; }
  .mini .mt { fill: GrayText; }
  .mini .mf { fill: Highlight; }
  .rk .rd { fill: Highlight; stroke: CanvasText; }
}
