/* FarmyPoint — sito pubblico. Palette verde petrolio + avorio + turchese, corallo solo come accento; impaginazione ispirata a TheFork:
   ricerca in evidenza, lista e mappa affiancate, schede con azioni chiare. Mobile first. */
:root {
  /* turchese: mai come fondo di testo bianco (2,9:1); corallo: solo richiami, mai errore o indisponibilità */
  /* palette: valori di «Verde petrolio» (predefinita); le alternative li ridefiniscono in palette.css (data-palette su <html>) */
  --brand: #145A55; --brand-dark: #0e3f3b; --brand-tint: #e3f1ee; --brand-tint-l: #e3f1ee; --brand-mid: #1d7a72; --turchese: #20A89E;
  --brand-on-dark: #5fd4c8; --brand-on-dark-2: #8fe3d8; /* testo e accenti nel tema scuro e sul fondo scuro dell'intestazione */
  --corallo: #D97762; --corallo-tint: #fbe9e4; --corallo-text: #9a3f2c;
  --hero-text: #e3efec; --hero-text-2: #c5dad6; --hero-hi: #c8f0ea; --hero-link: #bdeee7; --hero-grad: #3cc4b8;
  --hero-glow-1: rgba(32, 168, 158, .42); --hero-glow-2: rgba(217, 119, 98, .16);
  --ink: #0c2a28; --text: #203330; --text-2: #64736F; --text-3: #5c6b67; /* ≥ 4.5:1 su bianco e grigi chiari (WCAG AA) */
  --line: #DDE7E3; --bg: #F8FAF8; --surface: #fff; --hero: #0c2a28;
  --ok: #26734D; --ok-bg: #e6f2ec; --warn: #8A5A00; --warn-bg: #fbf1dc; --muted-bg: #f0f5f3;
  --err: #A83C3C; --err-bg: #fbecec; --err-line: #e7b3b3;
  --radius: 14px; --radius-sm: 10px;
  --font: 'Figtree', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head-h: 64px;
}
@media (prefers-color-scheme: dark) {:root:not([data-theme="light"]) {
    --ink: #eef5f3; --text: #e6efec; --text-2: #a9bbb6; --text-3: #879a95;
    --line: #24332f; --bg: #0b1413; --surface: #121e1c; --brand-tint: #12302c; --muted-bg: #1a2725;
    --corallo-tint: #3a1f19; --corallo-text: #f0a08e;
    --ok: #4ade80; --ok-bg: #12291c; --warn: #fbbf24; --warn-bg: #2d2210;
    --err: #fecdd3; --err-bg: #3b0a14; --err-line: #9f1239;
  }
}
:root[data-theme="dark"] {
    --ink: #eef5f3; --text: #e6efec; --text-2: #a9bbb6; --text-3: #879a95;
    --line: #24332f; --bg: #0b1413; --surface: #121e1c; --brand-tint: #12302c; --muted-bg: #1a2725;
    --corallo-tint: #3a1f19; --corallo-text: #f0a08e;
    --ok: #4ade80; --ok-bg: #12291c; --warn: #fbbf24; --warn-bg: #2d2210;
    --err: #fecdd3; --err-bg: #3b0a14; --err-line: #9f1239;
  }
/* Tema: «data-theme» su <html> (tema.js) sceglie chiaro o scuro; senza scelta vale quello del sistema */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.st { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--brand); }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) a { color: var(--brand-on-dark); }
}
html[data-theme="dark"] a { color: var(--brand-on-dark); }
/* Crediti della mappa: fondo pieno. Quello di Leaflet (bianco all'80%) lascia trasparire tessere, pin e fondo scuri e il
   contrasto dei link cambiava con quello che c'era sotto (da 3,3:1 a 6,3:1). Il riquadro resta chiaro anche nel tema scuro,
   quindi i link restano scuri: #0b5cad su #fff = 6,7:1. Stessa regola in console.css per la mappa dell'area riservata. */
.leaflet-container .leaflet-control-attribution.leaflet-control { background: #fff; }
.leaflet-container .leaflet-control-attribution a { color: #0b5cad; }
.st-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.st-sr, .st-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.st-skip:focus { left: 8px; }
.st-muted { color: var(--text-2); }
.st-small { font-size: 13px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- Intestazione ---------- */
.st-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.st-head-in { max-width: 1240px; margin: 0 auto; height: var(--head-h); padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.st-logo { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.st-logo .fp-logo-t { color: var(--ink); }
/* Logo (app/src/Logo.php): simbolo + «Farmy» nel colore del testo + «Point» sempre viola, con qualunque palette */
.fp-logo { display: inline-flex; align-items: center; gap: .38em; line-height: 1; white-space: nowrap; }
.fp-logo-mark { width: 1.3em; height: 1.3em; flex: none; display: block; }
.fp-logo-p { color: #6A4FCF; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .fp-logo-p { color: #C3B4FF; } }
html[data-theme="dark"] .fp-logo-p { color: #C3B4FF; }
.st-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.st-navlink { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.st-navlink:hover { color: var(--brand); }
.st-lang { display: flex; gap: 2px; }
.st-lang a { font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; padding: 5px 8px; border-radius: 8px; }
.st-lang a[aria-current='true'] { color: var(--brand); background: var(--brand-tint); }
.st-reserved { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.st-reserved:hover { border-color: var(--brand); }
@media (max-width: 760px) {
  .st-navlink { display: none; }
  .st-logo { font-size: 22px; }
  .st-nav { gap: 6px; }
  .st-lang a { padding: 5px 5px; font-size: 12px; }
  .st-reserved { padding: 6px 10px; font-size: 13px; }
}
/* Larghezze intermedie (R7): sotto i 480 px senza «Area riservata», sotto i 900 px senza i link testuali (in francese
   e tedesco l'intestazione completa sbordava fino a 840 px) */
@media (max-width: 480px) { .st-reserved { display: none; } }
@media (max-width: 900px) { .st-navlink { display: none; } }

/* ---------- Pulsanti ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark)); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}
.st-btn:hover { filter: brightness(1.08); }
.st-btn-ghost { background: transparent; color: var(--brand); box-shadow: none; border: 1px solid var(--line); }
.st-btn-ghost:hover { border-color: var(--brand); filter: none; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-btn-ghost { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-btn-ghost { color: var(--brand-on-dark); }
.st-btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }   /* area di tocco minima 44 × 44 px */
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }

/* ---------- Hero e ricerca ---------- */
.st-hero {
  /* z-index: il menu dei suggerimenti deve restare sopra le sezioni successive (schede dei percorsi), sotto la testata */
  position: relative; z-index: 2; color: #fff; padding: 56px 0 64px; overflow: visible; isolation: isolate;
  background:
    radial-gradient(55% 70% at 88% 0%, var(--hero-glow-1), transparent 70%),
    radial-gradient(45% 70% at 8% 110%, var(--hero-glow-2), transparent 70%),
    var(--hero);
}
.st-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
}
.st-hero-badge { display: inline-block; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--hero-text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 12px; }
.st-hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 16px; max-width: 900px; }
.st-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-on-dark-2), var(--hero-grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-hero-lead { max-width: 680px; margin: 0 0 28px; font-size: 18px; color: var(--hero-text-2); }
.st-search { position: relative; max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.st-search-box {
  flex: 1 1 100%; display: flex; align-items: center; gap: 10px; background: #fff; color: #64736F; border-radius: 999px;
  padding: 6px 6px 6px 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.st-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; color: #203330; background: transparent; height: 44px; }
.st-search-box input::-webkit-search-cancel-button { display: none; }
.st-search-box:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--turchese) 60%, transparent), 0 18px 40px -18px rgba(0,0,0,.6); }
/* «Vicino a me»: pulsante grande per il pollice (≥ 48 px), stato sempre visibile, nota sulla privacy */
.st-geo { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.st-near { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 48px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 10px 20px; cursor: pointer; touch-action: manipulation; }
.st-near:hover { background: rgba(255,255,255,.18); }
.st-near:focus-visible { outline: 3px solid var(--brand-on-dark-2); outline-offset: 3px; }
.st-near[aria-busy='true'] { opacity: .7; cursor: progress; }
.st-near[aria-pressed='true'] { background: #fff; color: var(--brand-dark); border-color: #fff; }
.st-near:disabled { opacity: .55; cursor: not-allowed; }
.st-near-on { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #26734D; border-radius: 999px; padding: 2px 8px; } /* fisso: 5:1 con il bianco anche nel tema scuro */
.st-geo-status { margin: 0; flex: 1 1 260px; font-size: 14px; color: var(--hero-hi); }
.st-geo-status:empty { display: none; }
.st-geo[data-state='denied'] .st-geo-status, .st-geo[data-state='unavailable'] .st-geo-status, .st-geo[data-state='timeout'] .st-geo-status,
.st-geo[data-state='unsupported'] .st-geo-status, .st-geo[data-state='outside'] .st-geo-status { color: #fde68a; }
.st-geo-privacy { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--hero-text-2); }
.st-geo-privacy a { color: var(--hero-link); font-weight: 600; }
.st-excluded { margin: 4px 0 0; }
.st-excluded p { margin: 0 0 4px; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-linkbtn { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-linkbtn { color: var(--brand-on-dark); }
.st-suggest {
  position: absolute; z-index: 30; top: 62px; left: 0; right: 0; list-style: none; margin: 0; padding: 6px;
  background: #fff; color: #203330; border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); max-height: 360px; overflow: auto;
}
.st-suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.st-suggest li small { color: #64736F; white-space: nowrap; }
.st-suggest li[aria-selected='true'], .st-suggest li:hover { background: var(--brand-tint-l); }
.st-suggest li.st-empty { cursor: default; color: #64736F; }
.st-search-msg { flex-basis: 100%; margin: 0; color: var(--hero-hi); font-size: 14px; }
.st-home.st-searched .st-hero { padding: 24px 0 28px; }
.st-home.st-searched .st-hero h1, .st-home.st-searched .st-hero-lead, .st-home.st-searched .st-hero-badge { display: none; }

/* ---------- Avvio ---------- */
.st-start { padding: 32px 0 56px; }
.st-start-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.st-start-card h2 { margin: 0 0 6px; font-size: 22px; }
.st-start-card p { margin: 0 0 16px; color: var(--text-2); }
.st-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-soon { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.st-cats li { font-size: 14px; color: var(--text-2); background: var(--muted-bg); border-radius: 999px; padding: 6px 12px; }

/* ---------- Risultati ---------- */
.st-results { padding: 20px 0 40px; }
.st-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.st-results-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.st-results-head p { margin: 2px 0 0; }
.st-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.st-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.st-seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--text-2); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.st-seg button[aria-pressed='true'] { background: var(--brand); color: #fff; }
.st-check, .st-radius { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.st-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.st-radius select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.st-warn { font-size: 13px; color: var(--text-2); background: var(--muted-bg); border-radius: var(--radius-sm); padding: 9px 12px; margin: 0 0 14px; }
/* Barra dei filtri: una riga compatta (tipo, raggio, «Filtri»), i filtri attivi come etichette e il pannello a scomparsa */
.st-filterbar { margin-bottom: 16px; }
.st-filterbar .st-filters { gap: 8px; margin: 0; }
.st-fbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.st-fbtn:hover { border-color: var(--brand); }
.st-fbtn[aria-expanded='true'], .st-fbtn.st-fbtn-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-fcount { min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; background: #fff; color: var(--brand); }
.st-fbtn:focus-visible, .st-fchip:focus-visible, .st-factive .st-linkbtn:focus-visible, .st-fpanel-foot .st-linkbtn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.st-factive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.st-fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px 4px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--brand); background: var(--brand-tint, color-mix(in srgb, var(--brand) 10%, var(--surface))); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 999px; cursor: pointer; }
.st-fchip:hover { border-color: var(--brand); }
.st-fchip-x { font-size: 12px; font-weight: 700; opacity: .75; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-fchip { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-fchip { color: var(--brand-on-dark); }
.st-fpanel { margin-top: 12px; padding: 14px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 16px); box-shadow: 0 10px 30px rgba(20, 10, 40, .08); }
.st-fpanel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.st-fpanel .st-quick { display: contents; }
/* Ogni filtro è una riga con un interruttore: il testo a sinistra, l'interruttore a destra */
.st-fpanel .st-check, .st-fpanel .st-quick .st-qchip { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); text-align: left; white-space: normal; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.st-fpanel .st-quick .st-qchip[aria-pressed='true'], .st-fpanel .st-quick .st-qchip:hover { background: none; color: var(--text); border-color: var(--line); }
.st-fpanel .st-quick .st-qchip[aria-pressed='true']::before { content: none; }
.st-fpanel .st-quick .st-qchip::after, .st-fpanel .st-check input { flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 12px; background: var(--line); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 15%, transparent); transition: background .15s; }
.st-fpanel .st-quick .st-qchip::after { content: ''; background-image: radial-gradient(circle at 12px 12px, #fff 9px, transparent 9.5px); }
.st-fpanel .st-quick .st-qchip[aria-pressed='true']::after { background-color: var(--brand); background-image: radial-gradient(circle at 28px 12px, #fff 9px, transparent 9.5px); }
.st-fpanel .st-check input { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: radial-gradient(circle at 12px 12px, #fff 9px, transparent 9.5px); }
.st-fpanel .st-check input:checked { background-color: var(--brand); background-image: radial-gradient(circle at 28px 12px, #fff 9px, transparent 9.5px); }
.st-fpanel .st-check input:focus-visible, .st-fpanel .st-quick .st-qchip:focus-visible { outline: none; }
.st-fpanel .st-check:has(input:focus-visible), .st-fpanel .st-quick .st-qchip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.st-fpanel-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 16px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .st-fpanel .st-quick .st-qchip::after, .st-fpanel .st-check input { transition: none; } }
@media (forced-colors: active) {   /* contrasto elevato: l'interruttore acceso resta riconoscibile */
  .st-fpanel .st-quick .st-qchip::after, .st-fpanel .st-check input { border: 1px solid CanvasText; }
  .st-fpanel .st-quick .st-qchip[aria-pressed='true']::after, .st-fpanel .st-check input:checked { background: Highlight; }
}
@media (pointer: fine) {   /* con il mouse bastano controlli più bassi; al tocco restano 44 px */
  .st-fbtn, .st-filterbar .st-radius select { min-height: 38px; }
  .st-fpanel .st-check, .st-fpanel .st-quick .st-qchip { min-height: 44px; }
}
@media (max-width: 599px) {   /* telefono: la riga compatta va a capo (tutto resta in vista); il pannello va su una colonna */
  .st-fpanel { padding: 8px 16px 14px; }
  .st-fpanel-foot .st-btn { flex: 1; }
}
/* Pulsanti rapidi tra il tipo e «Filtri» (quickRow): «Di turno oggi» verde come l'etichetta dei turni, gli altri col colore del sito */
.st-qrow { display: flex; flex-wrap: wrap; gap: 8px; }
.st-qrapid { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.st-qrapid:hover { border-color: var(--brand); }
.st-qrapid[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-qrapid:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.st-qrapid-turno { color: #17703f; border-color: color-mix(in srgb, #17703f 45%, var(--line)); font-weight: 700; }
.st-qrapid-turno:hover { border-color: #17703f; }
.st-qrapid-turno[aria-pressed='true'] { background: #17703f; border-color: #17703f; color: #fff; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .st-qrapid-turno:not([aria-pressed='true']) { color: #7ee2a5; border-color: #7ee2a5; } }
html[data-theme="dark"] .st-qrapid-turno:not([aria-pressed='true']) { color: #7ee2a5; border-color: #7ee2a5; }
@media (pointer: fine) { .st-qrapid { min-height: 38px; } }
.st-dot-verde { background: #17703f; }
/* Note sui dati in fondo ai risultati */
.st-results-notes { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.st-results-notes p { margin: 0; }
.st-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) {
  .st-split { grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); align-items: start; }
  .st-mapcol { position: sticky; top: calc(var(--head-h) + var(--net-h, 0px) + 16px); }
  .st-mapcol .st-map { height: calc(100vh - var(--head-h) - 32px); min-height: 460px; }
}
@media (max-width: 899px) {
  /* Lista e mappa sempre insieme: mappa compatta sopra (ingrandibile), lista sotto, mai nascosta */
  .st-mapcol { order: -1; }
  .st-results .st-mapcol .st-map { height: 220px; min-height: 0; }
  .st-map-big .st-mapcol .st-map { height: 60vh; min-height: 320px; }
}
.st-map { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--muted-bg); z-index: 1; }
.st-list { display: grid; gap: 10px; }
.st-msg { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--text-2); }
.st-msg strong { display: block; color: var(--text); margin-bottom: 4px; }

/* ---------- Scheda nella lista ---------- */
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.st-item { padding: 14px 16px; display: grid; gap: 4px; transition: border-color .15s; }
.st-item.st-active, .st-item:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.st-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.st-dist { font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-dist { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-dist { color: var(--brand-on-dark); }
.st-item h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.st-item h3 a { color: var(--text); text-decoration: none; }
.st-item h3 a:hover { color: var(--brand); }
.st-addr { margin: 0; color: var(--text-2); font-size: 14px; }
.st-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.st-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.st-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-non_verificato { color: var(--text-2); background: var(--muted-bg); }
.st-segnalato { color: var(--warn); background: var(--warn-bg); }
.st-confermato { color: var(--ok); background: var(--ok-bg); }
/* Stato nella riga in alto della scheda (StatoScheda.php, site.js cardTop): testo, pillola compatta, a destra, forma nel numero */
.st-ss-top { flex-wrap: wrap; row-gap: 2px; }
.st-ss-top > :last-child:not(.st-kicker) { margin-left: auto; }
.st-ss-top .st-kicker { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.st-ss { display: inline-flex; align-items: center; gap: 4px; }
.st-ss-sh { width: 8px; height: 8px; flex: none; }
.st-ss-sep { margin: 0 6px; color: var(--text-3); font-weight: 400; }
.st-ss-non_verificato { color: var(--text-2); } .st-ss-segnalato { color: var(--warn); } .st-ss-confermato { color: var(--ok); }
.st-badge-sm { margin-left: 8px; padding: 2px 8px; font-size: 12px; letter-spacing: 0; text-transform: none; gap: 5px; }
.st-badge-sm::before { width: 6px; height: 6px; }
.st-ss-right { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.st-ss-right .st-ss { font-size: 13px; font-weight: 700; }
.st-ss-right .st-ss-sep { margin: 0 2px 0 6px; }
.st-ss-numero .st-kicker .st-ss { text-transform: none; letter-spacing: 0; font-size: 13px; }
.st-num-sh { gap: 3px; } .st-num-sh .st-ss-sh { width: 7px; height: 7px; }
.st-flag { font-size: 12px; color: var(--text-3); }
.st-item .st-actions { margin-top: 8px; gap: 6px; }
/* Pulsanti della scheda nei risultati: stretti e senza ombra; al tocco restano alti 44 px, con il mouse 34 px */
.st-item .st-actions > :is(.st-btn, .st-fav) { padding: 0 12px; font-size: 13px; gap: 4px; box-shadow: none; }
.st-item .st-actions > .st-fav svg { width: 14px; height: 14px; }
@media (pointer: fine) { .st-item .st-actions > :is(.st-btn, .st-fav) { min-height: 34px; min-width: 34px; } }
.st-approx { margin-top: 6px; }
.st-approx summary { cursor: pointer; font-weight: 700; color: var(--text-2); padding: 10px 2px; }
.st-approx .st-list { margin-top: 6px; }

/* ---------- Pagine interne ---------- */
.st-detail, .st-notes { padding: 24px 16px 56px; }
.st-back { display: inline-block; margin-bottom: 16px; font-weight: 600; text-decoration: none; }
.st-detail-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .st-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
/* Scheda del punto, impaginazione «Come sempre», su telefono e tablet: la mappa dopo i prodotti e gli orari (analisi UX
   17/10/2026). Su computer resta accanto all'intestazione. La griglia sparisce (display: contents) e i blocchi si ordinano. */
@media (max-width: 899px) {
  .st-detail:not([class*="st-ls"]):has(> .st-detail-grid #mappa) { display: flex; flex-direction: column; }
  .st-detail:not([class*="st-ls"]) > .st-detail-grid { display: contents; }
  .st-detail:not([class*="st-ls"]) > .st-detail-grid > #mappa { order: 1; margin-top: 16px; }
  .st-detail:not([class*="st-ls"]) > #vicini { order: 2; }
}
.st-detail-card { padding: 22px; }
.st-detail-card h1 { margin: 4px 0 6px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.st-detail-card .st-addr { font-size: 16px; margin-bottom: 14px; }
.st-detail-card .st-warn { margin-top: 16px; }
/* Avviso sui dati della scheda: sfondo grigio caldo tenuissimo, in secondo piano */
.st-warn--soft { background: #f7f6f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-warn--soft { background: color-mix(in srgb, var(--text) 5%, var(--surface)); } }
:root[data-theme="dark"] .st-warn--soft { background: color-mix(in srgb, var(--text) 5%, var(--surface)); }
.st-warn-src { display: inline-block; margin-right: 4px; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, currentColor 12%, transparent); }
.st-claim { font-size: 14px; margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.st-claim a { font-weight: 600; white-space: nowrap; }
.st-detail-map { padding: 6px; }
.st-detail-map .st-map { height: 420px; border: 0; }
.st-facts { margin: 18px 0 0; display: grid; gap: 10px; }
.st-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.st-facts dt { color: var(--text-3); font-weight: 600; }
.st-facts dd { margin: 0; }
@media (max-width: 520px) { .st-facts div { grid-template-columns: 1fr; gap: 2px; } }
.st-notes { max-width: 820px; }
.st-notes h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -0.02em; }
.st-lead { font-size: 18px; color: var(--text-2); margin: 0 0 24px; }
.st-notes section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.st-notes h2 { margin: 0 0 6px; font-size: 18px; }
.st-notes section p { margin: 0; color: var(--text-2); }
/* Pagine informative (avvertenze, termini, privacy, come verifichiamo i dati): più capoversi ed elenchi per sezione */
.st-info .st-info-date { margin: -12px 0 20px; font-size: 14px; }
.st-info section p + p, .st-info section p + ul, .st-info section ul + p { margin-top: 8px; }
.st-info section ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-2); }
.st-info section li + li { margin-top: 4px; }
.st-info-more { margin-top: 24px; }
.st-info-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Segnalazione ---------- */
.st-dialog { width: min(520px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface); color: var(--text); }
.st-dialog::backdrop { background: rgba(8, 26, 24, .55); backdrop-filter: blur(2px); }
.st-report-form { padding: 22px; }
.st-report-form h2 { margin: 0 0 4px; font-size: 20px; }
.st-report-form fieldset { border: 0; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.st-report-form legend { font-weight: 700; margin-bottom: 6px; }
.st-radio { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.st-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.st-radio input { accent-color: var(--brand); width: 17px; height: 17px; }
.st-label { display: block; font-weight: 700; margin: 6px 0 6px; }
.st-report-form textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); resize: vertical; }
.st-report-status { margin: 10px 0 0; font-weight: 600; min-height: 1em; }
.st-report-status.st-ok { color: var(--ok); }
.st-report-status.st-err { color: #A83C3C; }

/* ---------- Piè di pagina ---------- */
.st-foot { border-top: 1px solid var(--line); background: var(--surface); }
.st-foot-in { max-width: 1240px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-2); }
.st-foot-in:not(:last-child) { padding-bottom: 8px; }
.st-foot-legal { padding-top: 0; }
.st-foot-medical { flex-basis: 100%; margin: 4px 0 0; }

/* Leaflet nel tema scuro: attribuzione leggibile */
.leaflet-container { font-family: var(--font); }
.st-pop b { display: block; font-size: 14px; }
.st-pop a { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Ricerca per prodotto ---------- */
.st-search-two { padding: 6px; gap: 0; }
.st-field { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.st-field-what { flex-grow: 1.3; }
.st-field + .st-field { border-left: 1px solid #DDE7E3; }
.st-field .st-suggest { top: calc(100% + 14px); left: -6px; right: auto; min-width: min(420px, 90vw); }
.st-clear { border: 0; background: #f0f5f3; color: #64736F; width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; flex: none; }
.st-clear:hover { background: var(--brand-tint-l); color: var(--brand); }
.st-search-two .st-btn { flex: none; }
@media (max-width: 720px) {
  .st-search-two { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 6px; }
  .st-field { padding: 0 10px; }
  .st-field + .st-field { border-left: 0; border-top: 1px solid #DDE7E3; }
  .st-field .st-suggest { left: 0; right: 0; min-width: 0; top: calc(100% + 6px); }
  .st-search-two .st-btn { margin: 6px 0 0; }
}
.st-cats button { font: inherit; font-size: 14px; color: var(--text); background: var(--muted-bg); border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.st-cats button:hover, .st-cats button:focus-visible { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.st-cats li { background: none; padding: 0; }
.st-offers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.st-offer { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.st-offer-main { min-width: 0; }
.st-offer-main b { display: block; font-size: 15px; line-height: 1.3; }
.st-offer-main a { color: var(--text); text-decoration: none; }
.st-offer-main a:hover { color: var(--brand); }
.st-offer-main small, .st-offer-side small { display: block; font-size: 12px; color: var(--text-3); }
.st-offer-side { flex: none; display: grid; justify-items: end; gap: 2px; text-align: right; }
.st-price { font-size: 16px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.st-avail { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.st-av-disponibile { color: var(--ok); background: var(--ok-bg); }
.st-av-in_esaurimento { color: var(--warn); background: var(--warn-bg); }
.st-av-esaurito { color: var(--text-2); background: var(--muted-bg); }
.st-morebtn { margin-top: 4px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--brand); cursor: pointer; }
.st-detail-products { padding: 22px; margin-top: 16px; }
.st-detail-products h2 { margin: 0 0 4px; font-size: 22px; }
.st-types-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.st-types-list li { line-height: 1.5; }
.st-types-list b { display: block; font-size: 14px; }
.st-types-list span { color: var(--text-2); font-size: 14px; }
.st-cat-h { margin: 18px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.st-facts-top { margin: 10px 0 6px; }
.st-detail-products .st-warn { margin: 16px 0 0; }
.st-product-where h2 { margin: 0 0 10px; font-size: 20px; }

/* Tema scuro: viola leggibile sugli sfondi scuri (contrasto ≥ 4.5:1, WCAG AA). In fondo al file per prevalere. */
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-lang a[aria-current='true'], html:not([data-theme="light"]) .st-reserved, html:not([data-theme="light"]) .st-soon, html:not([data-theme="light"]) .st-morebtn, html:not([data-theme="light"]) .fp-net-btn { color: var(--brand-on-dark); }
}
html[data-theme="dark"] .st-lang a[aria-current='true'], html[data-theme="dark"] .st-reserved, html[data-theme="dark"] .st-soon, html[data-theme="dark"] .st-morebtn, html[data-theme="dark"] .fp-net-btn { color: var(--brand-on-dark); }

/* ---------- Contatti ---------- */
.st-contact-form { padding: 0; }
.st-contact-form .st-input { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.st-contact-form .st-check { display: flex; align-items: flex-start; margin: 14px 0 0; font-weight: 500; }
.st-contact-form .st-check input { flex: none; margin-top: 2px; }
.st-contact-form .st-turnstile { margin: 14px 0 0; min-height: 65px; }
.st-notice { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; margin: 0 0 14px; }
.st-notice.st-ok { background: var(--brand-tint); color: var(--text); border: 1px solid var(--brand); }
.st-notice.st-err { background: #fbecec; color: #8a2f2f; border: 1px solid #e7b3b3; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-notice.st-err { background: #3b0a14; color: #fecdd3; border-color: #9f1239; } }
html[data-theme="dark"] .st-notice.st-err { background: #3b0a14; color: #fecdd3; border-color: #9f1239; }
.st-sugg-note { font-size: 13px; color: var(--text-2); padding: 8px 12px; background: var(--muted-bg); cursor: default; }
.st-actions-center { justify-content: center; }

/* ---------- Ricerca rapida (PR 1): categorie, filtri rapidi, freschezza, servizi ---------- */
/* Categorie sotto la barra di ricerca (sfondo scuro dell'intestazione, in entrambi i temi): una riga che scorre su mobile */
.st-catchips { flex-basis: 100%; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.st-catchips .st-catchip { flex: none; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }
.st-catchips .st-catchip:hover { background: rgba(255,255,255,.16); }
.st-catchips .st-catchip[aria-pressed='true'] { background: #fff; color: var(--brand-dark); border-color: #fff; }
.st-catchips .st-catchip:focus-visible, .st-near:focus-visible { outline: 3px solid var(--brand-on-dark); outline-offset: 2px; }
.st-near.st-near-hint { box-shadow: 0 0 0 3px var(--brand-on-dark); }

/* Filtri rapidi nei risultati: pulsanti a interruttore (aria-pressed), mai solo colore: il segno ✓ indica quelli attivi */
.st-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 4px; margin-bottom: 4px; }
.st-quick .st-qchip { flex: none; min-height: 44px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.st-quick .st-qchip:hover { border-color: var(--brand); }
.st-quick .st-qchip[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-quick .st-qchip[aria-pressed='true']::before { content: '✓ '; }
.st-quick .st-qchip[aria-disabled='true'] { cursor: default; opacity: .85; }
.st-quick .st-qchip:focus-visible, .st-radius select:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.st-quick-note { margin: 0 0 12px; }
.st-radius select { min-height: 44px; }

/* Badge di freschezza: testo sempre leggibile (il colore accompagna, non sostituisce, la parola e la data) */
.st-fresh { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; color: var(--brand-dark); background: var(--brand-tint); }
.st-fresh-oggi, .st-fresh-ieri { color: var(--ok); background: var(--ok-bg); }
.st-fresh-verificare { color: var(--warn); background: var(--warn-bg); }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-fresh { color: var(--brand-on-dark-2); }html:not([data-theme="light"]) .st-fresh-oggi, html:not([data-theme="light"]) .st-fresh-ieri { color: var(--ok); }html:not([data-theme="light"]) .st-fresh-verificare { color: var(--warn); } }
html[data-theme="dark"] .st-fresh { color: var(--brand-on-dark-2); }html[data-theme="dark"] .st-fresh-oggi, html[data-theme="dark"] .st-fresh-ieri { color: var(--ok); }html[data-theme="dark"] .st-fresh-verificare { color: var(--warn); }

/* Servizi dichiarati dalla farmacia nella scheda del risultato */
.st-svcs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-svc { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--muted-bg); border-radius: 999px; padding: 2px 10px; }
.st-svc a { color: inherit; }
.st-radius-note { margin: 0 0 10px; font-weight: 600; color: var(--text-2); }
/* ---------- Aiuto (roadmap 9.7): pulsante nell'intestazione e pannello a sinistra ---------- */
.st-helpbtn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--text-2);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; white-space: nowrap;
}
.st-helpbtn:hover, .st-helpbtn[aria-expanded='true'] { border-color: var(--brand); color: var(--brand); }
.st-helpbtn-q { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 13px; }
@media (max-width: 760px) { .st-helpbtn { padding: 4px; } .st-helpbtn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-helpbtn-q { color: var(--brand-on-dark); }html:not([data-theme="light"]) .st-helpbtn:hover, html:not([data-theme="light"]) .st-helpbtn[aria-expanded='true'] { color: var(--brand-on-dark); border-color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-helpbtn-q { color: var(--brand-on-dark); }html[data-theme="dark"] .st-helpbtn:hover, html[data-theme="dark"] .st-helpbtn[aria-expanded='true'] { color: var(--brand-on-dark); border-color: var(--brand-on-dark); }
html.st-help-on { overflow: hidden; }
.st-help { position: fixed; inset: 0; z-index: 90; }
.st-help-backdrop { position: absolute; inset: 0; background: rgba(8, 26, 24, .45); opacity: 0; transition: opacity .18s ease; }
.st-help-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(400px, 92vw); background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; box-shadow: 10px 0 30px rgba(8, 26, 24, .2); transform: translateX(-102%); transition: transform .22s ease;
}
.st-help-open .st-help-backdrop { opacity: 1; }
.st-help-open .st-help-panel { transform: none; }
.st-help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.st-help-head h2 { margin: 2px 0 0; font-size: 19px; line-height: 1.25; color: var(--ink); }
.st-help-kicker { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.st-help-close { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 15px; cursor: pointer; }
.st-help-body { flex: 1; overflow-y: auto; padding: 6px 18px 18px; font-size: 15px; line-height: 1.55; }
.st-help-intro { margin: 12px 0 4px; }
.st-help-body h3 { margin: 18px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.st-help-body ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.st-help-body li { margin: 5px 0; }
.st-help-steps { list-style: none; counter-reset: sh; margin: 0; padding: 0; }
.st-help-steps li { counter-increment: sh; position: relative; padding-left: 32px; margin: 10px 0; }
.st-help-steps li::before {
  content: counter(sh); position: absolute; left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.st-help-body .st-help-links { list-style: none; padding: 0; display: grid; gap: 2px; }
.st-help-links a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 650; }
.st-help-links a:hover { background: var(--brand-tint); }
.st-help-more { padding: 14px 18px; border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-help-kicker, html:not([data-theme="light"]) .st-help-body h3, html:not([data-theme="light"]) .st-help-steps li::before { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-help-kicker, html[data-theme="dark"] .st-help-body h3, html[data-theme="dark"] .st-help-steps li::before { color: var(--brand-on-dark); }
@media (prefers-reduced-motion: reduce) { .st-help-panel, .st-help-backdrop { transition: none; } }

/* «Come funziona» (pagina iniziale e pagina Aiuto) */
.st-how { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.st-how h2 { margin: 0 0 12px; font-size: 20px; color: var(--ink); }
.st-how ol { list-style: none; counter-reset: hw; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-how li { counter-increment: hw; position: relative; }
.st-how li::before {
  content: counter(hw); position: absolute; left: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 2px 6px rgba(14, 63, 59, .25);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.st-how li b { display: block; color: var(--ink); }
/* Illustrazioni d'esempio dei tre passi (howSteps in index.php): colori dal tema, quindi giuste anche in scuro */
.hw-art { display: block; width: 100%; height: auto; margin-bottom: 10px; }
.hw-bg, .hw-tint { fill: var(--brand-tint); }
.hw-card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.hw-best { stroke: var(--brand); stroke-width: 2; }
.hw-acc { fill: var(--brand); }
.hw-text { fill: var(--ink); opacity: .75; }
.hw-sub { fill: var(--text-3); opacity: .45; }
.hw-chip { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; opacity: .8; }
.hw-line, .hw-line-w { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hw-line-w { stroke: #fff; }
.hw-white { fill: #fff; }
.hw-ok { fill: var(--ok); }
.hw-warn { fill: var(--warn); }
.hw-road { fill: none; stroke: var(--surface); stroke-width: 10; stroke-linecap: round; }
.hw-park { fill: var(--ok-bg); }
.hw-route { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 7; }
.hw-me { fill: #2d5be0; stroke: #fff; stroke-width: 2.5; }
.hw-me-halo { fill: #2d5be0; opacity: .2; }
.hw-moon { fill: var(--warn); }
.st-how li span { color: var(--text-2); font-size: 14px; }
.st-how > p { margin: 14px 0 0; font-weight: 700; }
@media (max-width: 720px) {
  .st-how ol { grid-template-columns: 1fr; } .st-how { padding: 18px; }
  /* Su telefono l'illustrazione resta a sinistra, piccola, accanto al testo */
  .st-how li { display: grid; grid-template-columns: 112px 1fr; column-gap: 14px; align-content: start; }
  .st-how li .hw-art { grid-row: 1 / span 2; margin: 0; }
  .st-how li b { align-self: end; }
  .st-how li::before { left: 4px; top: 4px; width: 22px; height: 22px; font-size: 12px; }
}
.st-how-inline { margin: 18px 0 8px; }

/* Pagina Aiuto */
.st-aiuto-index ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-aiuto-index a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 650; font-size: 14px; }
.st-faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.st-faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--ink); list-style-position: outside; }
.st-faq p { margin: 0 0 12px; color: var(--text-2); }
.st-aiuto-more { margin-top: 26px; padding: 20px 22px; }
.st-aiuto-more h2 { margin-top: 0; }
/* ---------- Scheda prodotto (mobile first: una colonna; azioni principali alte almeno 44 px) ---------- */
.st-pd { max-width: 820px; }
.st-pd .st-btn, .st-pd .st-btn-sm { min-height: 44px; }
.st-pd-head { padding: 18px; }
.st-pd-head .st-kicker a { color: inherit; text-decoration: none; display: inline-block; padding: 4px 0; }
.st-pd-head .st-kicker a:hover { color: var(--brand); text-decoration: underline; }
.st-pd-head h1 { margin: 2px 0 2px; font-size: clamp(24px, 6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.st-pd-brand { margin: 0; color: var(--text-2); }
.st-pd-sum { margin-top: 12px; display: grid; gap: 8px; }
.st-pd-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.st-pd-price strong { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--text); }
.st-pd-price small { color: var(--text-2); font-size: 13px; }
.st-pd-count { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-pd-none { font-weight: 700; color: var(--text-2); }
.st-pd-desc { margin: 8px 0 0; color: var(--text-2); }
.st-pd-ean { margin: 12px 0 0; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.st-pd-ean span { font-weight: 700; }
.st-fresh { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.st-fresh-oggi, .st-fresh-ieri { color: var(--ok); background: var(--ok-bg); }
.st-fresh-settimana { color: var(--ok); background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.st-fresh-mese { color: var(--text-2); background: var(--muted-bg); }
.st-fresh-verificare { color: var(--warn); background: var(--warn-bg); }

.st-pd-form { margin: 12px 0 0; }
.st-pd-find { padding: 16px; }
.st-pd-h { margin: 0 0 4px; font-size: 18px; }
.st-pd-where { display: grid; gap: 10px; align-items: end; }
.st-pd-field { position: relative; min-width: 0; }
.st-pd .st-label { margin: 0 0 4px; font-size: 14px; }
.st-pd .st-input, .st-pd select { width: 100%; min-height: 44px; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.st-pd .st-input::-webkit-search-cancel-button { display: none; }
.st-pd-suggest { top: calc(100% + 4px); }
.st-pd-near, .st-pd-go { width: 100%; }
.st-pd-radius { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.st-pd-msg { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.st-pd-msg:empty { display: none; }
@media (min-width: 600px) {
  .st-pd-where { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .st-pd-near, .st-pd-go { width: auto; }
  .st-pd-radius select { width: auto; }
}
.st-pd-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 22px 0 10px; }
.st-pd-bar h2 { margin: 0; font-size: 20px; }
.st-pd-bar p { margin: 2px 0 0; }
.st-pd-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.st-pd-sort select { width: auto; }
.st-chips { min-inline-size: 0; min-width: 0; max-width: 100%; border: 0; padding: 2px 2px 6px; margin: 0 0 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.st-chip { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.st-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.st-chip:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.st-chip:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-chip input:checked + span::before { content: '✓ '; }
.st-chips noscript .st-btn { margin-left: 4px; }

.st-pd-results .st-list { gap: 10px; }
.st-pd-results .st-list[aria-busy='true'] { opacity: .6; }
.st-pd-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.st-pd-offer .st-price { font-size: 20px; margin-right: 2px; }
.st-pd-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.st-pd-meta small { font-size: 12px; color: var(--text-3); }
.st-pd-serv { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-pd-serv li { font-size: 13px; color: var(--text-2); background: var(--muted-bg); border-radius: 999px; padding: 3px 10px; }
.st-pd-serv a { color: inherit; font-weight: 700; }
.st-pd-item .st-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.st-pd-item .st-actions .st-btn { flex: 1 1 auto; padding: 0 12px; white-space: nowrap; font-size: 14px; }
.st-pd-more { text-align: center; margin: 14px 0 0; }
.st-pd-more:empty { display: none; }
.st-pd-more [aria-disabled='true'] { opacity: .6; cursor: progress; }
.st-pd-legal { margin-top: 22px; padding: 16px 18px; }
.st-pd-legal h2 { margin: 0 0 6px; font-size: 18px; }
.st-pd-legal ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.st-pd-legal p { margin: 0; font-size: 14px; font-weight: 700; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-chip:has(input:checked) { background: var(--brand-mid); border-color: var(--brand-mid); }
}
html[data-theme="dark"] .st-chip:has(input:checked) { background: var(--brand-mid); border-color: var(--brand-mid); }


/* ---------- Rete ed errori (assets/net.js) ---------- */
/* Banner della connessione: dentro l'intestazione (che cresce), quindi non copre mai la lista o la mappa */
.fp-net { border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.fp-net-in { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.fp-net-in > span { flex: 1 1 auto; min-width: 0; }
.fp-net-btn { flex: none; }
.fp-net-offline { background: var(--warn-bg); color: var(--text); }
.fp-net-offline .fp-net-in::before { content: ''; align-self: flex-start; margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); flex: none; }
.fp-net-online { background: var(--ok-bg); color: var(--text); }
.fp-net-online .fp-net-in::before { content: ''; align-self: flex-start; margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.fp-net-btn { font: inherit; font-weight: 700; color: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 44px; cursor: pointer; }
html.fp-offline { --net-h: 40px; }
/* Riquadro di errore sopra il contenuto: testo semplice e azione */
.fp-slot:empty { display: none; }
.fp-slot { margin: 0 0 12px; }
.fp-alert { background: var(--err-bg); border: 1px solid var(--err-line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); }
.fp-alert-text { margin: 0; font-weight: 600; }
.fp-alert-text::before { content: '!'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--err); color: var(--err-bg); font-weight: 800; font-size: 14px; vertical-align: -3px; }
.fp-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
form > .fp-alert { margin-bottom: 14px; }
/* Avvisi brevi in basso, sopra l'area sicura degli schermi con notch */
.fp-toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100vw - 32px)); display: grid; gap: 8px; pointer-events: none; }
.fp-toast { background: var(--ink); color: var(--surface); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); pointer-events: auto; }
/* Caricamento: segnaposto delle schede */
.st-skel { padding: 16px; display: grid; gap: 10px; }
.st-skel span { display: block; height: 12px; border-radius: 6px; background: var(--muted-bg); }
.st-skel span:nth-child(1) { width: 35%; } .st-skel span:nth-child(2) { width: 75%; height: 16px; } .st-skel span:nth-child(3) { width: 55%; }
@media (prefers-reduced-motion: no-preference) {
  .st-skel span { background: linear-gradient(90deg, var(--muted-bg) 25%, var(--line) 50%, var(--muted-bg) 75%); background-size: 200% 100%; animation: fp-skel 1.2s linear infinite; }
}
@keyframes fp-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* Mappa senza rete: avviso sopra le tessere mancanti, la lista resta utilizzabile */
.st-map { position: relative; }
.fp-mapnote { position: absolute; z-index: 500; left: 12px; right: 12px; top: 12px; margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 600; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
/* Campo della ricerca da correggere (errore 400) */
.st-field.st-invalid { box-shadow: inset 0 0 0 2px #A83C3C; border-radius: 999px; }
.st-search-box input[aria-invalid='true'] { color: #7f1d1d; }
.st-hero .st-search-msg:not(:empty) { font-weight: 600; }

/* ---------- Preferiti (preferiti.js) ---------- */
.st-navfav {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
}
.st-navfav svg, .st-fav svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.st-navfav svg { color: var(--brand); }
.st-navfav:hover, .st-navfav[aria-current='page'] { background: var(--brand-tint); color: var(--brand); }
.st-navfav[aria-current='page'] svg { fill: currentColor; }
@media (max-width: 760px) { .st-navfav { padding: 0 8px; gap: 4px; font-size: 13px; } }
/* Telefoni stretti: nell'intestazione solo la stella (l'etichetta resta per gli screen reader); in homepage c'è il pulsante con l'etichetta */
@media (max-width: 420px) {
  .st-navfav { width: 44px; padding: 0; justify-content: center; }
  .st-navfav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.st-hero-fav { min-height: 44px; text-decoration: none; }
.st-hero-fav svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-navfav svg, html:not([data-theme="light"]) .st-navfav:hover, html:not([data-theme="light"]) .st-navfav[aria-current='page'] { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-navfav svg, html[data-theme="dark"] .st-navfav:hover, html[data-theme="dark"] .st-navfav[aria-current='page'] { color: var(--brand-on-dark); }

.st-fav {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.st-fav:hover { border-color: var(--brand); }
.st-fav.st-fav-on { background: var(--brand-tint); border-color: var(--brand); }
.st-fav.st-fav-on svg { fill: currentColor; }
.st-fav[aria-disabled='true'] { opacity: .6; cursor: not-allowed; }
.st-fav-icon { width: 44px; padding: 0; border-color: transparent; background: transparent; }
.st-fav-icon:hover { background: var(--brand-tint); }
.st-offer-fav { flex: none; display: flex; align-items: flex-start; margin: -6px -8px 0 -6px; }
/* Popup della mappa: sfondo bianco di Leaflet anche nel tema scuro */
.st-pop .st-fav-pop { display: flex; margin-top: 8px; background: #fff; color: var(--brand); border-color: #DDE7E3; }
.st-pop .st-fav-pop.st-fav-on { background: var(--brand-tint-l); border-color: var(--brand); }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-fav { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-fav { color: var(--brand-on-dark); }

/* Schede su telefono: «Salva» sempre sotto il pollice, in basso a destra */
@media (max-width: 760px) {
  .st-fav-main {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; min-height: 52px; padding: 0 20px;
    font-size: 15px; box-shadow: 0 12px 28px -10px rgba(8, 26, 24, .55);
  }
  /* Solo la stella (il nome resta per gli screen reader): un tondo copre meno contenuto di una pillola (analisi UX 17/10/2026) */
  .st-fav-main:not(.sf-iconbtn) { width: 52px; padding: 0; border-radius: 50%; justify-content: center; }
  .st-fav-main:not(.sf-iconbtn) .st-fav-txt { display: none; }
  body:has(.st-fav-main) .st-foot-in:last-child { padding-bottom: 96px; }
}

.st-toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; width: max-content; max-width: min(560px, calc(100vw - 32px));
  padding: 10px 16px; border-radius: 14px; background: var(--hero); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.st-toast.st-toast-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.st-toast a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-on-dark-2); font-weight: 700; white-space: nowrap; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-toast { background: var(--brand-tint); border: 1px solid var(--line); } }
html[data-theme="dark"] .st-toast { background: var(--brand-tint); border: 1px solid var(--line); }
@media (max-width: 760px) { body:has(.st-fav-main) .st-toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

.st-fav-device { margin: -12px 0 22px; color: var(--text-2); font-size: 14px; }
.st-favs section.st-fav-group { background: none; border: 0; padding: 0; margin: 0 0 26px; }
.st-favs .st-fav-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-size: 20px; }
.st-fav-count { font-size: 13px; font-weight: 600; color: var(--text-3); }
.st-fav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-fav-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.st-fav-body { min-width: 0; display: grid; gap: 4px; }
.st-fav-body h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.st-fav-body h3 a { color: var(--text); text-decoration: none; }
.st-fav-body h3 a:hover { color: var(--brand); text-decoration: underline; }
.st-fav-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; }
.st-fav-meta small { font-size: 13px; color: var(--text-2); }
.st-fav-date { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.st-fav-side { flex: none; }
.st-fav-remove { min-height: 44px; font-size: 14px; padding: 0 14px; }
.st-favs .st-fav-root > .st-actions { margin: 0 0 18px; }
.st-favs .st-fav-empty { margin-bottom: 18px; }
@media (max-width: 520px) { .st-fav-item { flex-direction: column; } }
/* ---------- Scheda prodotto: lista e mappa, segnalazione, correlati, salva e condividi ---------- */
.st-pd-views { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); margin: 0 0 10px; }
.st-pd-views button { font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; min-width: 88px; border: 0; background: transparent; color: var(--text-2); padding: 0 16px; border-radius: 999px; cursor: pointer; }
.st-pd-views button[aria-pressed='true'] { background: var(--brand-tint); color: var(--brand); }
.st-pd-map { height: min(70vh, 520px); min-height: 340px; }
.st-pd-legend li { display: flex; align-items: center; gap: 8px; }
.st-pd-legend .st-pin { position: static; width: 22px; height: 22px; font-size: 12px; }
.st-pin { display: flex !important; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }
.st-pin span { display: block; }
.st-pin-confermato { background: #26734D; border-radius: 50%; }
.st-pin-segnalazioni { background: #8A5A00; border-radius: 6px; transform: rotate(45deg); }
.st-pin-segnalazioni span { transform: rotate(-45deg); }
.st-pin-non_verificato { background: #64736F; border-radius: 50%; }
.st-pin-active { outline: 3px solid var(--brand); outline-offset: 2px; z-index: 1000 !important; }
.st-pd-pop b { display: block; font-size: 15px; margin-bottom: 2px; }
.st-pd-pop span, .st-pd-pop small { display: block; font-size: 13px; }
.st-pd-pop-actions { display: flex !important; gap: 14px; margin-top: 6px; }
.st-pd-pop-actions a { display: inline-block; padding: 6px 0; font-weight: 700; }
.st-pd-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 2px; }
.st-linkbtn { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-pd-item.st-active { border-color: var(--brand); }
.st-pd-related { margin-top: 24px; }
.st-pd-related h2 { margin: 0 0 10px; font-size: 20px; }
.st-pd-rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.st-pd-rel a { display: grid; gap: 2px; padding: 14px 16px; min-height: 44px; color: var(--text); text-decoration: none; height: 100%; }
.st-pd-rel a:hover { color: var(--brand); }
.st-pd-rel b { font-size: 15px; line-height: 1.3; }
.st-pd-rel small { font-size: 13px; color: var(--text-2); }
.st-pd-rel-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.st-pd-rel .st-price { font-size: 16px; }
.st-pd-propose { margin: 18px 0 0; font-size: 14px; }
.st-pd-propose a { display: inline-block; padding: 10px 0; font-weight: 700; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-linkbtn, html:not([data-theme="light"]) .st-pd-views button[aria-pressed='true'] { color: var(--brand-on-dark); }
}
html[data-theme="dark"] .st-linkbtn, html[data-theme="dark"] .st-pd-views button[aria-pressed='true'] { color: var(--brand-on-dark); }


/* ---------- Preferiti offline: aggiornamento, stato, copia locale ---------- */
/* Preferiti sulla tua email (preferiti.js, Visitatori) */
.st-favs section.st-fav-acc { margin: 8px 0 26px; }
.st-fav-acc h2 { margin: 0 0 6px; font-size: 20px; }
.st-fav-acc .st-actions { flex-wrap: wrap; margin-top: 12px; }
.st-fav-acc-status { margin: 8px 0 0; font-size: 14px; color: var(--text-2); min-height: 1.4em; }
.st-fav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 20px; }
.st-fav-refresh { min-height: 44px; }
.st-fav-refresh[aria-busy='true'] { opacity: .75; cursor: progress; }
.st-fav-refresh.st-fav-refresh-off { background: var(--muted-bg); color: var(--text-2); box-shadow: none; cursor: not-allowed; }
.st-fav-status { margin: 0; font-size: 14px; color: var(--text-2); min-height: 1.4em; flex: 1 1 220px; }
.st-fav-side { display: flex; flex-direction: column; gap: 8px; }
.st-fav-share { min-height: 44px; font-size: 14px; padding: 0 14px; }
.st-fav-extra { margin: 0; font-size: 13px; color: var(--text-2); }
.st-fav-note { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.st-fav-gone { color: #8a2f2f; background: #fbecec; }
.st-fav-changed { color: var(--warn); background: var(--warn-bg); }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-fav-gone { color: #fecdd3; background: #3b0a14; } }
html[data-theme="dark"] .st-fav-gone { color: #fecdd3; background: #3b0a14; }
.st-fav-item-gone .st-fav-body h3 a { color: var(--text-2); }
.st-fav-offline { margin: 0 0 18px; }
.st-fav-offline-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--text); font-weight: 600; }
.st-notes .st-fav-copy { padding: 18px 20px; display: grid; gap: 6px; }
.st-fav-copy h2 { margin: 0; font-size: 22px; }
.st-fav-copy .st-warn { margin: 8px 0 0; }
@media (max-width: 520px) { .st-fav-side { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Condivisione e segnalazioni (gestione degli errori, PR 2) ---------- */
.fp-share-box { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.fp-share-msg { margin: 0 0 6px; font-weight: 600; }
.fp-share-row { display: flex; gap: 8px; }
.fp-share-input { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; font-size: 15px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.fp-toast-err { background: var(--err-bg); color: var(--text); border: 1px solid var(--err-line); }
.st-report-form fieldset.st-invalid .st-radio { border-color: var(--err-line); }
.st-report-status.st-err:empty { display: none; }
.st-report-status.st-err { color: var(--err); }
.st-btn:disabled, .st-near:disabled { opacity: .55; cursor: not-allowed; filter: none; }

/* ---------- Pagine di errore (PR 3) ---------- */
.fp-net-btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 520px) { .fp-upd .fp-net-in { flex-wrap: wrap; } .fp-upd .fp-net-in > span { flex-basis: calc(100% - 20px); } }
.st-errpage .st-errsearch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
.st-errsearch-row { display: flex; gap: 8px; }
.st-errsearch-row .st-input { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; font-size: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }

/* Pulsante «Ingrandisci la mappa» (solo schermi stretti) */
.st-mapsize { margin-top: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--brand); border-radius: 999px; min-height: 44px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (min-width: 900px) { .st-mapsize { display: none; } }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-mapsize { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-mapsize { color: var(--brand-on-dark); }

/* ---------- Homepage: «Ho bisogno subito», ricerche recenti, legenda della mappa, «Non trovi quello che cerchi?» ---------- */
/* Modalità «Ho bisogno subito»: ricerca semplificata, restano lista, mappa, raggio e la barra per uscire */
.st-urgent-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--brand); border-radius: var(--radius-sm); background: var(--brand-tint); }
.st-urgent-bar p { margin: 0; }
.st-urgent .st-seg[data-filter='tipo'], .st-urgent [data-sort-wrap], .st-urgent .st-qrow, .st-urgent .st-fbtn, .st-urgent .st-factive, .st-urgent .st-fpanel, .st-urgent .st-quick-note { display: none !important; }
/* Ricerche recenti (solo sul dispositivo) */
.st-recent { margin-bottom: 16px; }
.st-recent h2 { margin: 0 0 4px; font-size: 18px; }
.st-recent-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.st-recent-list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 4px 2px 12px; background: var(--surface); }
.st-recent-list a { flex: 1; min-height: 44px; display: flex; align-items: center; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.st-recent-list a:hover { text-decoration: underline; }
.st-recent-x { flex: none; width: 44px; height: 44px; font: inherit; font-size: 22px; line-height: 1; color: var(--text-2); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.st-recent-x:hover { background: var(--muted-bg); color: var(--text); }
.st-recent-x:focus-visible, .st-recent-list a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* Legenda dei pin: stesso colore dei pin, sempre con il testo dello stato */
/* Legenda come riquadro sopra la mappa, in alto a destra (lo zoom di Leaflet è in alto a sinistra) */
.st-mapcol, .st-detail-map, .st-pd-mapwrap { position: relative; }
.st-legend, .st-pd-legend { position: absolute; top: 10px; right: 10px; z-index: 2; max-width: calc(100% - 80px); list-style: none; margin: 0; padding: 6px 10px;
  display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.3; color: #3A4744; background: rgba(255, 255, 255, .94);
  border-radius: var(--radius-sm); box-shadow: 0 1px 5px rgba(0, 0, 0, .3); }
.st-detail-map > .st-legend { top: 16px; right: 16px; }
.st-legend li { display: flex; align-items: center; gap: 6px; }
/* Smartphone: la legenda va sotto la mappa, su righe compatte, per non coprire i pin */
@media (max-width: 899px) {
  .st-legend, .st-pd-legend, .st-detail-map > .st-legend { position: static; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 4px 14px;
    margin: 8px 0 0; padding: 0 2px; background: transparent; box-shadow: none; color: var(--text-2); }
}
.st-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.st-dot-confermato { background: #26734D; } .st-dot-segnalato { background: #8A5A00; } .st-dot-non_verificato { background: #64736F; }
.st-pop-status { font-size: 12px; font-weight: 700; }
/* «Non trovi quello che cerchi?»: sotto lista e mappa, mai al loro posto */
.st-notfound { margin-top: 20px; padding: 18px 20px; }
.st-notfound h2 { margin: 0 0 6px; font-size: 18px; }
.st-notfound p { margin: 0 0 10px; color: var(--text-2); }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-recent-list a { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-recent-list a { color: var(--brand-on-dark); }

/* «Vicino a me»: marker generico della zona di chi cerca (nessuna coordinata mostrata) */
.st-me-pop { display: block; max-width: 220px; font-size: 14px; line-height: 1.4; }

/* Pin della mappa raggiungibili da tastiera: focus visibile sopra le tessere chiare, in entrambi i temi */
.st-map path.leaflet-interactive:focus { outline: none; }
.st-map path.leaflet-interactive:focus-visible { stroke: var(--hero); stroke-width: 4; }

/* Pagina «Coming soon» (Prossimamente::pagina) e barra per lo staff collegato */
/* Pagina «Prossimamente»: solo tipografia, titolo grande con il punto corallo; in fondo, piccoli, invito farmacie, area riservata, privacy e lingue */
.cs { background: var(--surface); }
.cs-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; padding: 28px 24px 20px; }
.cs-top { display: flex; align-items: center; }
.cs-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 56px 0; }
.cs-titolo { margin: 0; font-size: clamp(44px, 15vw, 132px); font-weight: 900; line-height: .92; letter-spacing: -.055em; color: var(--ink); }
.cs-punto { color: var(--corallo); }
.cs-riga { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--brand); margin: 28px 0 18px; }
.cs-lead { margin: 0 0 10px; max-width: 34em; font-size: 18px; line-height: 1.45; color: var(--text-2); }
.cs-date { margin: 6px 0 0; font-weight: 700; color: var(--ink); }
.cs-foot { font-size: 13px; color: var(--text-3); }
.cs-foot p { margin: 0 0 10px; }
.cs-foot a { color: inherit; }
.cs-link { color: var(--text-2); }
.cs-link a { font-weight: 600; color: var(--ink); }
.cs-privacy { line-height: 1.5; font-size: 12px; }
.cs-fondo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cs-lang { display: flex; gap: 4px; }
.cs-lang a { text-decoration: none; padding: 6px 6px; border-radius: 6px; }
.cs-lang a[aria-current] { color: var(--ink); font-weight: 700; }
.cs-lang a:hover { background: var(--muted-bg); }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .cs-riga { background: var(--turchese); } }
html[data-theme="dark"] .cs-riga { background: var(--turchese); }
.cs-staffbar { background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.cs-staffbar a { color: inherit; }

/* Condivisione: prodotto del link condiviso in evidenza nella scheda del punto; pulsante nei popup della mappa */
.st-shared-offer { margin-top: 16px; padding: 12px 14px; border: 2px solid var(--brand); border-radius: var(--radius-sm); }
.st-shared-offer .st-offers { margin: 4px 0 0; }
.st-pop .st-pop-share { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; }
.st-results-head [data-search-share] { flex: none; align-self: flex-start; }

/* Briciole di navigazione (Home › Categoria, Home › Comune): stesse voci dei dati strutturati BreadcrumbList */
.st-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.st-crumbs li + li::before { content: '›'; margin-right: 4px; color: var(--text-3); }
.st-crumbs a { display: inline-block; padding: 6px 0; }

/* Tema chiaro / scuro (R4): pulsante a due stati nell'intestazione, premuto = tema scuro */
.st-themebtn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; padding: 0;
  color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.st-themebtn svg { fill: currentColor; }
.st-themebtn:hover, .st-themebtn[aria-pressed='true'] { color: var(--brand); border-color: var(--brand); }
html[data-theme="dark"] .st-themebtn:hover, html[data-theme="dark"] .st-themebtn[aria-pressed='true'] { color: var(--brand-on-dark); border-color: var(--brand-on-dark); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .st-themebtn[aria-pressed='true'] { color: var(--brand-on-dark); border-color: var(--brand-on-dark); } }
@media (max-width: 599px) { .st-head .st-themebtn { display: none; } }
/* Telefoni: quando compare «Cerca» nell'intestazione resta solo il simbolo del logo (il nome è nell'aria-label del link) */
@media (max-width: 600px) {
  .st-head-in:has(.st-headsearch:not([hidden])) .st-logo .fp-logo-t, .st-head-in:has(.nr-hbtn) .st-logo .fp-logo-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Telefoni molto stretti (320–360 px): logo, lingue e «?» stanno nell'intestazione senza sbordare */
@media (max-width: 360px) {
  .st-head-in { padding: 0 10px; gap: 6px; }
  .st-logo { font-size: 19px; }
  .st-nav { gap: 2px; }
  .st-lang a { padding: 5px 3px; }
}

/* QR code della scheda del punto (R5): riquadro bianco anche nel tema scuro (leggibilità dei lettori) */
.st-qr { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.st-qr-img { width: min(240px, 100%); margin: 0 auto; padding: 8px; background: #fff; border-radius: 8px; }
.st-qr-img svg { display: block; width: 100%; height: auto; }
.st-qr-caption { margin: 12px 0 4px; font-weight: 600; }
.st-qr-url { margin: 0 0 12px; font-size: 13px; color: var(--text-2); word-break: break-all; }
.st-qr .st-actions { justify-content: center; }
@media print {
  body.st-print-qr * { visibility: hidden; }
  body.st-print-qr .st-qr, body.st-print-qr .st-qr * { visibility: visible; }
  body.st-print-qr .st-qr { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  body.st-print-qr .st-qr .st-actions { display: none; }
}

/* Orari della farmacia (R9): stato con testo e simbolo, mai solo colore; separato dallo stato del distributore */
.st-hours { margin: 6px 0; font-size: 14px; font-weight: 600; }
.st-hours::before { content: '●'; margin-right: 6px; font-size: 11px; vertical-align: 1px; }
.st-hours-open { color: var(--ok); }
.st-hours-closed { color: var(--text-2); }
.st-hours-closed::before { content: '○'; }
.st-hours-card { margin-top: 16px; }
.st-hours-card h2 { font-size: 18px; margin: 0 0 8px; }
.st-hours-card h3 { font-size: 15px; margin: 12px 0 4px; }
.st-hours-table { border-collapse: collapse; width: 100%; max-width: 420px; font-size: 14px; }
.st-hours-table th, .st-hours-table td { text-align: left; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); }
.st-hours-table th { font-weight: 600; width: 40%; }
.st-hours-table tr[aria-current='date'] th, .st-hours-table tr[aria-current='date'] td { font-weight: 800; color: var(--ink); }
.st-hours-closures { margin: 0; padding-left: 18px; }
/* R12: dato non aggiornato da molti giorni (30–90): testo esplicito, non solo colore */
.st-stale { display: block; color: var(--warn); font-weight: 600; }

/* Farmacie di turno (Pagine/turni.php, site.js turnoLine): riga «Di turno oggi», giorni, comuni, riquadro della scheda */
.st-turno-today { margin: 6px 0; font-size: 14px; font-weight: 700; color: #17703f; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .st-turno-today { color: #7ee2a5; } }
html[data-theme="dark"] .st-turno-today { color: #7ee2a5; }
.st-turno-today::before { content: '✚'; margin-right: 6px; font-size: 12px; }
/* Turno di oggi nell'angolo in basso a destra della card dei risultati (site.js turnoTag): verde se di turno, grigio se no */
.st-item.st-has-turno { position: relative; overflow: hidden; }
.st-item.st-has-turno > .st-actions { padding-right: 150px; }
.st-turno-tag { position: absolute; right: 0; bottom: 0; margin: 0; max-width: 170px; padding: 7px 14px 7px 28px; display: grid; line-height: 1.25;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
.st-turno-tag-t { font-size: 13px; font-weight: 700; }
.st-turno-tag-h { font-size: 12px; font-weight: 600; opacity: .9; }
.st-turno-on { background: #26734D; color: #fff; }   /* verde fisso: bianco a 5,6:1 anche nel tema scuro */
.st-turno-on .st-turno-tag-t::before { content: '✚'; margin-right: 5px; font-size: 11px; }
.st-turno-off { background: var(--muted-bg); color: var(--text-2); }
.st-turno-today a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Riquadro «Farmacia di turno» della scheda (turniRigaScheda), versione compatta: testata verde e una riga «Oggi 17/10 · orario».
   Verde più acceso di --ok per non confonderlo con i bollini «verificato»; testo bianco sulla testata #17703f = 6,0:1 (WCAG AA) */
.st-turno-box { --tb: #17703f; display: flex; flex-direction: column; min-width: 200px; max-width: 280px; margin: 8px 0 6px; border: 2px solid var(--tb);
  border-radius: 12px; overflow: hidden; background: var(--surface); text-align: center; text-decoration: none; color: var(--ink); }
.st-turno-box-h { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 10px; background: var(--tb); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.st-turno-box-b { display: block; padding: 6px 12px 7px; }
.st-turno-box-d { font-size: 13px; font-weight: 600; color: var(--text-2); }
.st-turno-box-t { font-size: 17px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--ink); }
.st-turno-box--lungo .st-turno-box-t { font-size: 14px; }
.st-turno-box:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tb) 22%, transparent); }
/* Riquadro «Aperta sabato e domenica» della scheda (weekendScheda): stesso schema del riquadro del turno, nel colore del sito e
   con il calendario al posto della croce, per non confonderlo con il turno di guardia */
.st-week-box { display: flex; flex-direction: column; min-width: 200px; max-width: 290px; margin: 8px 0 6px; border: 2px solid var(--brand); border-radius: 12px;
  overflow: hidden; background: var(--surface); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-week-box-h { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 10px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.st-week-box-b { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 2px 14px; padding: 6px 12px 7px; font-size: 13px; }
.st-week-box-g { color: var(--text-2); font-weight: 600; }
.st-week-box-o { font-weight: 800; color: var(--ink); }
.st-week-box-o.st-week-box-off { font-weight: 600; color: var(--text-2); }
.st-week-box-n { padding: 0 10px 7px; font-size: 12px; font-weight: 600; color: var(--warn); text-align: center; }
.st-week-box:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.sf-lato { display: flex; flex-direction: column; gap: 8px; }
.sf-lato > a { margin: 0; }
/* Etichetta «✚ Di turno oggi | orario» di risultati, fumetto della mappa ed elenchi (turnoLine in site.js, turniEtichetta in PHP):
   stesso verde del riquadro della scheda, testo bianco 6,0:1 */
.st-turno-btn svg { color: #17703f; }
.st-turno-btn[aria-pressed='true'] { border-color: #17703f; }
.st-turno-bar { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #17703f; border-left-width: 4px; border-radius: var(--radius-sm); background: var(--brand-tint); font-size: 15px; }
.st-turno-bar p { margin: 0 0 6px; }
.st-turno-bar p:last-child { margin-bottom: 0; }
.st-turno-bar a { font-weight: 700; }
.st-turno-chip { --tb: #17703f; display: inline-flex; width: fit-content; flex-wrap: wrap; align-items: stretch; max-width: 100%; margin: 6px 0; border: 1.5px solid var(--tb);
  border-radius: 8px; overflow: hidden; font-size: 14px; line-height: 1.3; background: var(--surface); vertical-align: middle; }
.st-turno-chip-h { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; background: var(--tb); color: #fff; font-weight: 700; }
.st-turno-chip-h::before { content: '\271A'; font-size: 11px; }
.st-turno-chip-t { display: inline-flex; align-items: center; padding: 3px 8px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-town-list li .st-turno-chip { display: flex; width: fit-content; margin: 4px 0 0; }
.st-pop .st-turno-chip { margin: 4px 0; font-size: 13px; }
.st-turni-warn strong { font-weight: 600; color: var(--text); }
.st-turni-days ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.st-turni-days a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; color: var(--text); text-decoration: none; background: var(--surface); }
.st-turni-days a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-turni-towns { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.st-turni-towns a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 600; }
.st-turni-towns small { color: var(--text-3); }
.st-turni-town h3 { margin: 18px 0 2px; font-size: 16px; scroll-margin-top: calc(var(--head-h) + 12px); }
.st-turni-list small, .st-turni-mine small { color: var(--text-2); font-size: 13px; }
.st-turno-time { font-weight: 600; }
.st-turno-name { font-weight: 600; overflow-wrap: anywhere; }
.st-town-list .st-turno-src a, .st-turni-mine .st-turno-src a { font-weight: 400; }
.st-town-list a.st-turno-tel { display: inline-flex; align-items: center; min-height: 44px; }
.st-turni-card { margin-top: 16px; }
.st-turni-card h2 { font-size: 18px; margin: 0 0 6px; }
.st-turni-mine { list-style: none; margin: 8px 0 12px; padding: 0; }
.st-turni-mine li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.st-turni-mine li:first-child { border-top: 0; }
.st-turni-mine li > span { font-weight: 600; }
/* Richiamo numerato in apice (¹) e nota in fondo alla colonna centrale della scheda (turni: avviso e 112) */
.st-fn { font-size: 11px; line-height: 0; margin-left: 2px; vertical-align: super; font-weight: 700; }
.st-fn a { text-decoration: none; padding: 0 2px; }
.st-fn a:hover { text-decoration: underline; }
.st-fn-note { margin: 16px 0 0; scroll-margin-top: calc(var(--head-h) + 12px); }
.st-fn-note sup { font-size: 10px; font-weight: 700; margin-right: 2px; }
.st-turni-fonti { margin: 6px 0 0; padding-left: 18px; }
.st-turni-fonti li { margin: 4px 0; }
.st-turni-back { margin: 16px 4px 0; }
/* Pagina del comune (R10): elenchi di farmacie, categorie e prodotti con link interni */
.st-town-sec { margin-top: 16px; }
.st-card.st-town-sec { padding: 20px 22px; }
.st-town-sec h2 { margin: 0 0 8px; font-size: 18px; }
.st-town-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.st-town-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.st-town-list li:first-child { border-top: 0; }
.st-town-list a { font-weight: 600; min-height: 24px; overflow-wrap: anywhere; }
.st-town-list small { color: var(--text-3); font-size: 13px; }

/* Pagina 500 minima (senza stili in linea: CSP) */
.st-err500 { font-family: system-ui, sans-serif; max-width: 640px; margin: 40px auto; padding: 0 16px; line-height: 1.5; }

/* ---------- Ricerca: «Cerca in questa zona», distanza che porta alla mappa, tempo a piedi, precisione della posizione ---------- */
.st-mapcol { position: relative; }
@media (min-width: 900px) { .st-mapcol { position: sticky; } }
.st-area { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap; box-shadow: 0 4px 14px rgba(8, 26, 24, .28); }
.st-area[hidden] { display: none; }
.st-area:hover { background: var(--brand-dark); }
.st-area:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: 0 0 0 3px var(--brand-dark); }
.st-onmap { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-height: 44px; min-width: 44px; margin: -8px -8px -8px 0;
  padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--brand); font: inherit; cursor: pointer; text-align: right; }
.st-onmap:hover { background: var(--brand-tint); }
.st-onmap svg { flex: none; }
.st-distwrap { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.st-walk { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) .st-onmap { color: var(--brand-on-dark); } html:not([data-theme="light"]) .st-onmap:hover { background: color-mix(in srgb, var(--brand-on-dark) 12%, transparent); } }
html[data-theme="dark"] .st-onmap { color: var(--brand-on-dark); }
html[data-theme="dark"] .st-onmap:hover { background: color-mix(in srgb, var(--brand-on-dark) 12%, transparent); }
.st-geo-improve { flex-basis: 100%; text-align: left; }
.st-geo-improve[hidden], .st-geo-help[hidden] { display: none; }
.st-geo-improve[aria-busy="true"] { opacity: .7; cursor: progress; }
.st-geo-help { flex-basis: 100%; margin: 0; font-size: 14px; }
.st-hero .st-geo-improve { color: #fff; }
.st-hero .st-geo-help { color: var(--hero-hi); }

/* Numeri uguali su pin e schede (il colore del testo garantisce il contrasto su ogni stato) */
.leaflet-tooltip.st-pin-n { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; font: 700 11px/1 Inter, system-ui, sans-serif; color: #fff; pointer-events: none; }
.leaflet-tooltip.st-pin-n::before { display: none; }
.leaflet-tooltip.st-pin-n-confermato, .leaflet-tooltip.st-pin-n-segnalato { color: #fff; } /* fondi scuri: ≥ 5,7:1 */
.st-num { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-right: 6px; padding: 0 5px; border-radius: 999px;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; line-height: 1; vertical-align: 1px; background: #64736F; color: #fff; }
.st-num-confermato { background: #26734D; color: #fff; }
.st-num-segnalato { background: #8A5A00; color: #fff; }
/* Punto selezionato (lista ↔ mappa): numero più grande sul pin, scheda evidenziata, numero anche nel popup */
.leaflet-tooltip.st-pin-n.st-pin-n-big { font-size: 14px; }
.st-item-pin { cursor: pointer; }
.st-item.st-active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent); }
.st-item.st-active .st-num { transform: scale(1.25); }
.st-num { transition: transform .15s; }
.st-pop b .st-num { vertical-align: 1px; }
.st-pop .st-hours { margin: 4px 0 2px; font-size: 13px; }
.st-pop .st-pop-dir { margin-right: 12px; }
@media (prefers-reduced-motion: reduce) { .st-num { transition: none; } }

/* «C'era?»: conferma rapida dopo «Indicazioni», in basso, sopra il contenuto */
.st-verify { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 480px; margin: 0 auto; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgba(8, 26, 24, .25); }
.st-verify p { margin: 0 0 6px; }
.st-verify-h { font-weight: 700; }
.st-verify-q { font-size: 14px; color: var(--text-2); }
.st-verify .st-actions { margin-top: 10px; }
.st-verify-status:empty { display: none; }
.st-verify-status { margin-top: 8px !important; font-size: 14px; font-weight: 600; }
/* ---------- Annunci della farmacia e distributori vicini (migrazione 029) ---------- */
.st-notices, .st-nearby { margin-top: 16px; }
.st-notices h2, .st-nearby h2 { font-size: 18px; margin: 0 0 8px; }
.st-ann-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.st-ann { border-left: 4px solid var(--brand); background: var(--brand-tint); color: var(--text); border-radius: var(--radius-sm); padding: 10px 12px; }
.st-ann p { margin: 0 0 2px; overflow-wrap: anywhere; }
.st-ann small { color: var(--text); }
.st-ann-avviso { border-left-color: var(--warn); background: var(--warn-bg); }
.st-nearby .st-town-list li { grid-template-columns: 1fr auto; align-items: center; }
.st-nearby .st-town-list small { grid-column: 1; }
.st-nearby .st-badge { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Foto, logo, servizi, più cercati e comuni (migrazione 030) ---------- */
.st-pd-img { margin: 0 0 12px; max-width: 280px; }
.st-pd-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
@media (min-width: 760px) { .st-pd-img { float: right; margin: 0 0 12px 16px; width: 220px; } }
.st-pd-feat-h { clear: none; }
.st-logo-farm { display: block; max-width: 120px; max-height: 64px; width: auto; height: auto; margin: 0 0 8px; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--line); }
.st-chips-feat { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-chips-feat li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--text); font-size: 13px; font-weight: 600; }
.st-popular-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.st-chip-link:hover { border-color: var(--brand); }
.st-town-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.st-town-grid li { display: grid; gap: 0; }
.st-town-grid a { font-weight: 600; min-height: 24px; }
.st-town-grid small { color: var(--text-3); font-size: 13px; }
.st-start-card + .st-start-card { margin-top: 16px; }
.st-popular .st-muted, .st-towns .st-muted { margin-bottom: 0; }

/* ---------- Offerte, recensioni (migrazione 031, funzioni spente di default) ---------- */
.st-price-wrap { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.st-price-sale { color: var(--err); }
.st-price-was { color: var(--text-2); font-size: 13px; }
.st-sale { color: var(--text); font-weight: 600; font-size: 12px; }
.st-reviews { margin-top: 16px; }
.st-reviews h2 { font-size: 18px; margin: 0 0 8px; }
.st-rev-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 12px; }
.st-rev-list li { border-top: 1px solid var(--line); padding-top: 10px; }
.st-rev-list p { margin: 0 0 4px; overflow-wrap: anywhere; }
.st-rev-reply { margin: 6px 0 0 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.st-rev-form summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.st-rev-q { border: 0; padding: 0; margin: 0 0 12px; }
.st-rev-q legend { font-weight: 600; margin-bottom: 4px; }
.st-rev-stars { display: flex; flex-wrap: wrap; gap: 6px; }
.st-rev-stars label { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.st-ok-msg { background: var(--ok-bg); color: var(--text); border-radius: var(--radius-sm); padding: 9px 12px; }

/* ---------- Stili della homepage (admin → Stile → Homepage; classe st-home-<stile> sul body, Homepage.php) ----------
   Stessa ricerca e stessi risultati: cambiano impaginazione e aspetto prima della ricerca. Colori sempre dalle variabili
   della palette; --hl è il colore dei testi in evidenza sui fondi chiari (nel tema scuro la versione chiara). */
.st-urgent-desc, .st-caticon, .st-tabbar, .st-hm-map, .st-hm-moon, .st-hm-stars, .st-he-art, .st-fr-art { display: none; }
.st-caticon, .he-ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-hero-in { position: relative; }
body.st { --hl: var(--brand); --he-bg: #f6f3ec; --cta: color-mix(in srgb, var(--corallo) 68%, #000); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body.st { --hl: var(--brand-on-dark); --he-bg: var(--bg); } }
html[data-theme="dark"] body.st { --hl: var(--brand-on-dark); --he-bg: var(--bg); }
.st-btn-cta { background: var(--cta); box-shadow: none; }

/* 1 · Ricerca al centro */
.st-home-centro .st-hero-main { text-align: center; }
.st-home-centro .st-hero h1, .st-home-centro .st-hero-lead { margin-left: auto; margin-right: auto; }
.st-home-centro .st-search { margin: 0 auto; max-width: 820px; justify-content: center; }
.st-home-centro .st-catchips { justify-content: safe center; }
.st-home-centro .st-suggest { text-align: left; }

/* ---------- Tutte le pagine: focus mai coperto dall'intestazione (WCAG 2.2, 2.4.11), «Torna su», riga nel piè di pagina ---------- */
html { scroll-padding-top: calc(var(--head-h) + var(--net-h, 0px) + 16px); }
.st-totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); box-shadow: 0 10px 24px -10px rgba(12,42,40,.6); }
.st-totop:hover { filter: brightness(1.1); }
.st-totop::before { content: ''; width: 12px; height: 12px; margin-top: 6px; border: solid currentColor; border-width: 2.5px 0 0 2.5px; transform: rotate(45deg); }
.st-foot { border-top: 3px solid var(--brand); }
/* Homepage, indice per provincia e farmacia per nome: in pagine.css */

/* ---------- Risultati divisi in pagine da 25 (site.js, pager) ---------- */
.st-results-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.st-pager-box:empty { display: none; }
.st-pager-box { margin-top: 20px; }
.st-pager { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.st-pager-info { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.st-pager-info small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--text-2); }
@media (max-width: 599px) {
  .st-pager { justify-content: center; text-align: center; padding: 12px 8px; }
  .st-pager .st-pager-list { justify-content: center; gap: 4px; }
  .st-pager .st-pg { padding: 0 10px; }
}
.st-pager-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-pg { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.st-pg:hover:not(:disabled) { border-color: var(--brand); }
.st-pg[aria-current='page'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-pg:disabled { cursor: default; opacity: .55; }
.st-pg-gap { color: var(--text-2); padding: 0 2px; }

/* ---------- Piè di pagina: versioni scelte in admin (PieDiPagina, menu «Stile»); senza scelta vale quella qui sopra ---------- */
.st-foot .st-foot-logo { font-size: 22px; }
.st-foot-colonne .st-foot-in, .st-foot-scuro .st-foot-in, .st-foot-compatto .st-foot-in { display: grid; gap: 24px; padding: 36px 16px 26px; font-size: 14px; }
.st-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.st-foot-scuro .st-foot-grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.st-foot-brand p { margin: 10px 0 0; max-width: 34ch; }
.st-foot-col h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.st-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-foot .st-foot-col a, .st-foot .st-foot-row a, .st-foot .st-foot-bottom a { display: inline-block; padding: 3px 0; text-decoration: none; color: var(--text-2); }
.st-foot .st-foot-col a:hover, .st-foot .st-foot-row a:hover, .st-foot .st-foot-bottom a:hover { text-decoration: underline; color: var(--text); }
.st-foot-med { margin: 0; font-size: 13.5px; line-height: 1.55; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--muted-bg); }
.st-foot-med b { color: var(--text); }
.st-foot-bottom { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.st-foot-bottom p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
/* Quattro colonne: logo e frase su tutta la riga, sotto cinque gruppi di link */
.st-foot-colonne .st-foot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 24px; }
.st-foot-colonne .st-foot-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.st-foot-colonne .st-foot-brand p { margin: 0; max-width: 78ch; flex: 1 1 320px; }
@media (max-width: 1100px) { .st-foot-colonne .st-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .st-foot-grid, .st-foot-scuro .st-foot-grid, .st-foot-colonne .st-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .st-foot-grid, .st-foot-scuro .st-foot-grid, .st-foot-colonne .st-foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Note legali in una finestra (legali.js, modello in Site::finestraLegale) */
.st-dialog.st-legal { width: min(880px, calc(100vw - 24px)); height: min(820px, calc(100dvh - 32px)); max-height: none; overflow: hidden; }
.st-dialog.st-legal[open] { display: flex; flex-direction: column; }
.st-legal-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.st-legal-head h2 { margin: 0; flex: 1; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.st-legal-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 18px; cursor: pointer; }
.st-legal-x:hover { background: var(--muted-bg); color: var(--text); }
.st-legal-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 8px; background: var(--bg); }
.st-legal-body .st-info { max-width: none; padding: 0; margin: 0; }
.st-legal-body .st-info .st-info-date { margin: 0 0 16px; }
.st-legal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px 12px 24px; border-top: 1px solid var(--line); }
.st-legal-foot .st-legal-full { font-size: 14px; }
html.st-legal-on { overflow: hidden; }
@media (max-width: 560px) {
  .st-dialog.st-legal { width: 100vw; height: 100dvh; max-width: none; border-radius: 0; border: 0; margin: 0; }
  .st-legal-head, .st-legal-body, .st-legal-foot { padding-left: 16px; }
  .st-legal-body { padding-right: 16px; }
}

/* Scuro: fondo dell'intestazione della palette (--hero), uguale nei due temi */
.st-foot.st-foot-scuro { background: var(--hero); border-top: 0; }
.st-foot-scuro .st-foot-in { color: var(--hero-text-2); }
.st-foot-scuro .st-foot-logo { color: var(--hero-text); }
.st-foot-scuro .st-foot-logo .fp-logo-t { color: var(--hero-text); }
.st-foot-scuro .st-foot-logo .fp-logo-p { color: #C3B4FF; }
.st-foot-scuro .st-foot-col h2, .st-foot-scuro .st-foot-med b, .st-foot-scuro .st-foot-112 strong { color: var(--hero-text); }
.st-foot.st-foot-scuro .st-foot-col a, .st-foot.st-foot-scuro .st-foot-bottom a { color: var(--hero-text-2); }
.st-foot.st-foot-scuro .st-foot-col a:hover, .st-foot.st-foot-scuro .st-foot-bottom a:hover { color: var(--hero-text); }
.st-foot-scuro .st-foot-112 { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--hero-text) 22%, transparent); border-radius: var(--radius-sm); font-size: 13px; }
.st-foot-scuro .st-foot-112 strong { font-size: 19px; letter-spacing: .04em; }
.st-foot-scuro .st-foot-med { background: transparent; border: 1px solid color-mix(in srgb, var(--hero-text) 22%, transparent); }
.st-foot-scuro .st-foot-bottom { border-top-color: color-mix(in srgb, var(--hero-text) 18%, transparent); display: grid; justify-items: center; text-align: center; gap: 8px; }
.st-foot-scuro .st-foot-bottom p, .st-foot-scuro .st-foot-bottom nav { justify-content: center; }
.st-foot-scuro .st-foot-bottom nav { display: flex; flex-wrap: wrap; gap: 0 16px; }

/* Compatto: fascia dell'avvertenza, poi due righe di link */
.st-foot.st-foot-compatto { border-top: 1px solid var(--line); }
.st-foot-strip { background: var(--muted-bg); border-bottom: 1px solid var(--line); }
.st-foot-strip-in { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 14px; color: var(--text); }
.st-foot-strip-in strong { color: var(--brand); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .st-foot-strip-in strong { color: var(--brand-on-dark); } }
html[data-theme="dark"] .st-foot-strip-in strong { color: var(--brand-on-dark); }
.st-foot-em { margin-left: auto; font-weight: 600; white-space: nowrap; }
.st-foot-em b { font-size: 18px; }
.st-foot-compatto .st-foot-in { gap: 12px; padding-top: 20px; }
.st-foot-row { display: flex; flex-wrap: wrap; gap: 0 22px; }
.st-foot.st-foot-compatto .st-foot-row:not(.st-foot-row-legal) a { color: var(--text); font-weight: 600; }
.st-foot-compatto .st-foot-bottom { border-top: 0; padding-top: 4px; }
@media (max-width: 560px) { .st-foot-em { margin-left: 0; } }

/* Preferiti: spazio per la barra fissa in basso */
body:has(.st-fav-main) .st-foot-colonne .st-foot-in, body:has(.st-fav-main) .st-foot-scuro .st-foot-in, body:has(.st-fav-main) .st-foot-compatto .st-foot-in { padding-bottom: 96px; }

/* ---------- «Nuova ricerca» dalla scheda del punto (proposte 1–5, scelta in admin/scheda.php; nuovaRicerca() in index.php) ---------- */
.nr-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.nr-f { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nr-f-what { flex-grow: 1.4; }
.nr-lab { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.nr-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.nr-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.nr-go { min-height: 48px; flex: none; }
/* 2 · Riga di contesto: due campi in una capsula, con il pulsante dentro */
.nr-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; }
.nr-top .st-back { margin-bottom: 0; }
.nr-riga { flex: 0 1 auto; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.nr-cap { flex: 0 1 540px; min-width: 0; display: flex; align-items: center; padding: 3px 3px 3px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.nr-cap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.nr-riga .nr-f { flex: 1 1 0; }
.nr-riga .nr-f-where { border-left: 1px solid var(--line); }
.nr-riga input { min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; }
.nr-riga input:focus { box-shadow: none; }
.nr-riga .nr-go { min-height: 42px; padding: 0 16px; font-size: 14px; }
@media (max-width: 640px) {
  .nr-top2 { flex-direction: column; align-items: stretch; }
  .nr-top2 .st-back { align-self: flex-start; }
  .nr-riga { flex: 1 1 auto; margin-left: 0; }
  .nr-cap { flex: 1 1 100%; }
  .nr-riga input { padding: 0 10px; }
  .nr-riga .nr-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nr-riga .nr-go { padding: 0; width: 42px; min-width: 42px; }
}
/* «Vicino a me» e «Ho bisogno subito» accanto alla ricerca: forme 1–5 (nr-ts1…5, SchedaFarmacia::STILI_TASTI) */
.nr-tasti { display: flex; gap: 8px; flex-wrap: wrap; }
.nr-form:not(.nr-riga) .nr-tasti { flex: 1 1 100%; }
.nr-t { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--brand); font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nr-t svg { flex: none; }
.nr-t:hover { filter: brightness(.97); border-color: currentColor; }
.nr-t-short { display: none; }
.nr-ts1 .nr-t-near, .nr-ts4 .nr-t-near { border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.nr-ts1 .nr-t-urg { background: var(--corallo-tint); border-color: color-mix(in srgb, var(--corallo) 35%, transparent); color: var(--corallo-text); }
.nr-ts2 .nr-t { background: var(--brand-tint); border-color: transparent; color: var(--brand-dark); }
.nr-ts4 .nr-t-urg { background: linear-gradient(90deg, #F6C453, #EFA92E); border-color: transparent; color: #3a2600; box-shadow: 0 6px 16px -9px #c98a12; }
.nr-ts5 .nr-t-near { background: #e3f4f1; border-color: #bfe5de; color: #17695e; }
.nr-ts5 .nr-t-urg { background: var(--corallo-text); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -9px var(--corallo-text); }
/* 3 · Dentro la capsula: separati da un filetto; «Cerca» viola notte (il colore scuro del marchio, mai nero) */
.nr-ts3 .nr-go { background: linear-gradient(90deg, var(--brand-dark), color-mix(in srgb, var(--brand-dark) 82%, #000)); box-shadow: 0 6px 16px -8px var(--brand-dark); }
.nr-ts3.nr-riga .nr-cap { flex-basis: 760px; }
.nr-ts3.nr-riga .nr-tasti { flex-wrap: nowrap; gap: 0; margin-right: 3px; }
.nr-ts3.nr-riga .nr-t { min-height: 42px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.nr-ts3.nr-riga .nr-t-urg, .nr-ts3:not(.nr-riga) .nr-t-urg { color: var(--corallo-text); }
.nr-ts3.nr-riga .nr-t-long { display: none; }
.nr-ts3.nr-riga .nr-t-short { display: inline; }
.nr-ts3.nr-riga .nr-t:hover { filter: none; background: var(--muted-bg); }
@media (max-width: 900px) {
  /* forma 3 su schermi stretti: i pulsanti scendono su una seconda riga dentro il riquadro */
  .nr-ts3.nr-riga .nr-cap { flex-wrap: wrap; border-radius: 24px; flex-basis: 100%; }
  .nr-ts3.nr-riga .nr-tasti { order: 5; flex: 1 1 100%; margin: 3px 0 0; border-top: 1px solid var(--line); }
  .nr-ts3.nr-riga .nr-t { flex: 1 1 0; border-left: 0; }
  .nr-ts3.nr-riga .nr-t + .nr-t { border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nr-riga .nr-tasti { flex: 1 1 100%; flex-wrap: nowrap; }
  .nr-tasti .nr-t { flex: 1 1 0; padding: 0 10px; min-width: 0; }
  .nr-t-long { display: none; }
  .nr-t-short { display: inline; }
}
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(.nr-t-near, .nr-ts2 .nr-t) { color: var(--brand-on-dark); }
  html:not([data-theme="light"]) .nr-ts5 .nr-t-near { background: rgba(23, 105, 94, .28); border-color: rgba(127, 214, 198, .35); color: #9fe3d6; } }
html[data-theme="dark"] :is(.nr-t-near, .nr-ts2 .nr-t) { color: var(--brand-on-dark); }
html[data-theme="dark"] .nr-ts5 .nr-t-near { background: rgba(23, 105, 94, .28); border-color: rgba(127, 214, 198, .35); color: #9fe3d6; }
/* 3 · Riepilogo con «Modifica» e modulo che si apre sotto */
.nr-back { font-size: 20px; line-height: 1; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nr-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 5px 6px 5px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.nr-chip svg { color: var(--brand); flex: none; }
.nr-chip-t { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-chip-e { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 13px; font-weight: 700; }
.nr-chip:hover, .nr-chip[aria-expanded="true"] { border-color: var(--brand); }
.nr-top3 { flex-wrap: nowrap; gap: 6px; }
.nr-pan { padding: 16px; margin: -6px 0 16px; box-shadow: 0 12px 30px -18px color-mix(in srgb, var(--brand) 60%, transparent); }
/* 1 · Campo nella testata (sul telefono solo la lente) */
.st-head-in:has(.nr-hbtn) .st-navlink { white-space: nowrap; }
.nr-hbtn { flex: 0 1 340px; min-width: 44px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; margin-left: 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--muted-bg, var(--bg)); color: var(--text-2); font-size: 15px; text-decoration: none; }
.nr-hbtn svg { color: var(--brand); flex: none; }
.nr-hbtn-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-hbtn:hover { border-color: var(--brand); }
.st-head .nr-hbtn { color: var(--text-2); }
@media (max-width: 760px) {
  .nr-hbtn { flex: none; width: 44px; padding: 0; justify-content: center; margin-left: auto; }
  .nr-hbtn-l { display: none; }
}
/* Finestra (proposte 1 e 4): in alto o dal basso sul telefono, al centro sullo schermo grande */
.nr-dlg { width: min(720px, calc(100vw - 24px)); }
.nr-dlg-in { padding: 16px 18px 20px; }
.nr-dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nr-dlg-head h2 { margin: 0; font-size: 20px; color: var(--ink); }
.nr-x { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 26px; line-height: 1; cursor: pointer; }
.nr-x:hover { background: var(--muted-bg); }
.nr-dlg-top { margin-top: 72px; }
@media (max-width: 640px) {
  .nr-dlg-top { width: 100vw; max-width: 100vw; margin: 0 auto auto; border-radius: 0 0 20px 20px; }
  .nr-dlg-sheet { width: 100vw; max-width: 100vw; margin: auto auto 0; border-radius: 22px 22px 0 0; }
  :is(.nr-dlg, .nr-pan, .nr-end) .nr-go { flex: 1 1 100%; }
}
/* 4 · Pulsante flottante: in basso al centro (a destra ci sono «torna su» e la stella dei preferiti) */
.nr-fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 35; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--brand) 75%, transparent); }
:root a.nr-fab, :root a.nr-fab:visited { color: #fff; }   /* più forte del colore dei link nel tema scuro */
.nr-fab:hover { filter: brightness(1.08); }
.st-ls2 ~ .nr-fab { bottom: 96px; }
@media (max-width: 899px) { body:has(.sf-dbar) .nr-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }   /* sopra la barra del distributore (forma 4) */
@media (prefers-reduced-motion: no-preference) { .nr-fab { animation: nr-in .18s ease-out; } }
@keyframes nr-in { from { opacity: 0; transform: translate(-50%, 8px); } }
/* 5 · Riquadro in fondo alla scheda */
.nr-end { padding: 20px 22px; margin-top: 22px; }
.nr-end h2 { margin: 0; font-size: 20px; color: var(--ink); }
.nr-end > p { margin: 4px 0 14px; }
.nr-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.nr-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: none; }
@media (prefers-color-scheme: dark) {html:not([data-theme="light"]) :is(.nr-chip svg, .nr-chip-e, .nr-hbtn svg, .nr-links a) { color: var(--brand-on-dark); } }
html[data-theme="dark"] :is(.nr-chip svg, .nr-chip-e, .nr-hbtn svg, .nr-links a) { color: var(--brand-on-dark); }

/* Messaggio di FarmyPoint (ottobre 2026): «Prima di andare» nella scheda, Come funziona, missione, categorie, nessun risultato */
.st-before { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.st-before h2 { margin: 0; font-size: 17px; }
.st-before .st-before-facts { margin-top: 8px; }
.st-before > p { margin: 10px 0 0; }
.st-before-med { font-size: 14px; color: var(--text); background: var(--muted-bg); border-radius: var(--radius-sm); padding: 9px 12px; }
.st-howp-steps { margin: 10px 0 0; padding-left: 22px; color: var(--text); }
.st-howp-steps li { margin: 6px 0; }
.st-notes .st-howp .st-actions { margin: 14px 0 6px; }
.st-notes section.st-howp p.st-small { margin-top: 6px; }
.st-catpage-count { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.st-catpage-count .st-dot { flex: none; }
.st-empty-help { max-width: 640px; margin: 10px auto 0; text-align: center; }
.st-ast { margin-left: 2px; padding: 0 4px; font-weight: 700; text-decoration: none; }
.st-ast:hover { text-decoration: underline; }

/* «Ho visto un distributore» (pagina /segnala-distributore, segnala-distributore.js) */
.st-seen-form { padding: 0; display: grid; gap: 6px; }
.st-seen-form section { margin: 10px 0 0; }
.st-seen-form .st-seen-pharm { margin: 18px 0 4px; }
.st-seen-form .st-seen-pharm legend { font-size: 20px; }
.st-seen-list { display: grid; gap: 8px; }
.st-seen-item span { display: grid; gap: 2px; min-width: 0; }
.st-seen-item small { color: var(--text-2); overflow-wrap: anywhere; }
.st-seen-preview canvas { display: block; max-width: 100%; max-height: 50vh; width: auto; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.st-seen-done { margin-top: 16px; }
.st-seen-done .sd-grazie { display: flex; align-items: center; gap: 12px; background: var(--ok-bg); color: var(--ok); border: 2px solid var(--ok); padding: 16px 18px; font-size: 18px; line-height: 1.4; }
.st-seen-done .sd-grazie svg { flex: none; }
.st-seen-done .sd-grazie span { color: var(--text); }
.st-seen-done .sd-grazie:focus { outline: none; }
.st-seen-done .sd-grazie:focus-visible { outline: 3px solid var(--ok); outline-offset: 2px; }
.st-seen-done .sd-avvisa { margin: 22px 0 18px; }
.st-seen-done .sd-avvisa h2 { margin: 0 0 6px; font-size: 20px; }
.st-seen-done .sd-avvisa, .st-fav-acc .st-fav-acc-form { padding: 0; }
.sd-avvisa .st-check { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 8px; font-weight: 500; }
.st-seen-form .st-check { margin: 10px 0 0; align-items: flex-start; color: var(--text); }
.st-seen-form .st-check input { flex: none; margin-top: 2px; }
/* Foto del distributore nella scheda (migrazione 044): della farmacia o di un utente, con la fonte in didascalia */
.st-dist-foto { margin: 12px 0; }
.st-dist-foto img { display: block; width: 100%; max-width: 560px; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.st-dist-foto figcaption { margin-top: 6px; font-size: 13px; color: var(--text-2); }
/* Invito «Hai visto un distributore?» nella homepage (tutti gli stili) */
.st-seen-invite { margin: 16px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.st-seen-invite > div { flex: 1 1 320px; min-width: 0; }
.st-seen-invite p { margin-bottom: 0; }
.st-seen-invite .st-actions { margin: 0; }
.st-seen-comune { display: grid; gap: 8px; margin: 4px 0 8px; }
.st-seen-comune .st-label { margin: 0; }
.st-seen-fuori { display: grid; gap: 4px; }
.st-seen-fuori .st-input { width: 100%; }
.st-seen-opts { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin: 10px 0 0 !important; }
.st-seen-opts legend { width: 100%; }
.st-seen-form .st-input, .sd-avvisa .st-input, .st-fav-acc .st-input { width: 100%; min-height: 44px; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }

/* ---------- «Ho visto un distributore»: passi comuni e cinque stili (SegnalaStile, classe .st-sd-vN) ---------- */
.st-sd section.sd-step { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 14px; box-shadow: none; }   /* niente riquadro di .st-notes section */
.st-sd .sd-step[hidden] { display: none; }
.st-sd .sd-step-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-sd .sd-step-h h2 { margin: 0; font-size: 19px; flex: 1 1 auto; min-width: 0; }
.st-sd .sd-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--brand); color: #fff; }
.st-sd .sd-sum { flex-basis: 100%; font-size: 14px; color: var(--text-2); }
.st-sd .sd-sum:empty { display: none; }
.st-sd .sd-edit { margin-left: auto; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; padding: 6px; }
.st-sd .sd-step-b { padding-top: 10px; }
.st-sd .sd-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.st-sd .sd-sub-h { font-weight: 800; font-size: 17px; margin: 14px 0 2px; }
.st-sd .st-seen-item.sd-fuori-row { border-style: dashed; }
.st-sd .sd-k { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--brand); color: #fff; }
.st-sd .st-seen-item:has(input:checked) .sd-k { background: var(--corallo); }
.st-sd .sd-photo-btn { min-height: 48px; }
.st-sd .sd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 12px; }
.st-sd .sd-bar-t { margin: 0; flex: 1 1 180px; font-weight: 700; }
.st-sd .sd-bar-t:empty { display: none; }
.st-sd .sd-bar-b { display: flex; gap: 10px; flex-wrap: wrap; }
.st-sd .sd-bar-b .st-btn[hidden] { display: none; }
.st-sd .sd-privacy { margin-top: 18px; }

/* 1 · Passi a schede: fascia colorata per stato (fatto, da fare ora, successivi) */
.st-sd-v1 section.sd-step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.st-sd-v1 .sd-step-h { padding: 12px 14px; background: var(--muted-bg); color: var(--text-2); }
.st-sd-v1 .sd-step-h .sd-num { background: var(--text-3); }
.st-sd-v1 .sd-step-b { padding: 12px 14px 14px; }
.st-sd-v1 .sd-step.is-active .sd-step-h { background: var(--brand); color: #fff; }
.st-sd-v1 .sd-step.is-active .sd-num { background: #fff; color: var(--brand); }
.st-sd-v1 .sd-step.is-done .sd-step-h { background: var(--ok-bg); color: var(--ok); }
.st-sd-v1 .sd-step.is-done .sd-num { background: var(--ok); font-size: 0; }
.st-sd-v1 .sd-step.is-done .sd-num::after { content: "✓"; font-size: 15px; }
.st-sd-v1 .sd-step.is-done .sd-sum { color: var(--text); }
.st-sd-v1 .sd-step.is-next .sd-step-b, .st-sd-v1 .sd-step[data-sd-step="1"].is-done:not(.is-open) .sd-step-b { display: none; }

/* 2 · Una domanda alla volta: un passo per schermata, avanzamento in alto, pulsanti fissi in fondo */
.st-sd-v2 .sd-prog { margin: 0 0 14px; }
.st-sd-v2 .sd-prog-t { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-weight: 800; font-size: 14px; color: var(--brand); }
.st-sd-v2 .sd-prog-bar { height: 8px; border-radius: 9px; background: var(--muted-bg); overflow: hidden; }
.st-sd-v2 .sd-prog-bar i { display: block; height: 100%; width: 25%; background: var(--brand); transition: width .2s; }
.st-sd-v2 .sd-step:not(.is-current) { display: none; }
.st-sd-v2 .sd-step-h h2 { font-size: 23px; }
.st-sd-v2 .sd-num { display: none; }
.st-sd-v2 .st-seen-item { padding: 14px; border-width: 2px; border-radius: 16px; }
.st-sd-v2 form { padding-bottom: 96px; }
.st-sd-v2 .sd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0, 0, 0, .06); }
.st-sd-v2 .sd-bar-t { display: none; }
.st-sd-v2 .sd-bar-b { flex: 1; flex-wrap: nowrap; max-width: 780px; margin: 0 auto; }
.st-sd-v2 .sd-bar-b .st-btn:not([data-sd-back]) { flex: 1; }

/* 3 · Mappa + elenco: mappa con le farmacie numerate, elenco con gli stessi numeri */
.st-sd-v3 .sd-map { height: 240px; border-radius: 16px; border: 1px solid var(--line); margin: 0 0 12px; z-index: 0; }
.st-sd-v3 .sd-pin { background: none; border: 0; }
.st-sd-v3 .sd-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.st-sd-v3 .sd-pin i { display: block; transform: rotate(45deg); font-style: normal; }
.st-sd-v3 .sd-pin.sd-pin-sel span { background: var(--corallo); }
.st-sd-v3 .st-seen-item { align-items: center; }
.st-sd-v3 .sd-num { background: var(--brand); }

/* 4 · Due grandi scelte: «In una farmacia» o «Altrove» */
.st-sd-v4 .sd-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.st-sd-v4 .sd-tile { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 14px; min-height: 120px; padding: 14px; border-radius: 18px; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); color: var(--text); border: 2px solid var(--line); }
.st-sd-v4 .sd-tile b { display: block; font-size: 17px; }
.st-sd-v4 .sd-tile small { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.st-sd-v4 .sd-tile-farm { border-color: var(--brand); color: var(--brand); }
.st-sd-v4 .sd-tile-fuori { border-color: var(--warn); color: var(--warn); }
.st-sd-v4 .sd-tile-farm[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.st-sd-v4 .sd-tile-fuori[aria-pressed="true"] { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--warn); }
.st-sd-v4 .sd-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.st-sd-v4 [data-sd-fuori] { display: none; }
.st-sd-v4 .sd-farm, .st-sd-v4 .st-seen-fuori { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.st-sd-v4 .sd-farm[hidden] { display: none; }
.st-sd-v4 .sd-step[data-sd-step="3"] .sd-step-b, .st-sd-v4 .sd-step[data-sd-step="4"] .sd-step-b { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-top: 10px; }
.st-sd-v4 .sd-photo-btn { width: 100%; min-height: 96px; border: 2px dashed var(--brand); border-radius: 16px; background: var(--brand-tint); }

/* 5 · Percorso a colori: linea verticale, un colore per passo, barra fissa con cosa manca */
.st-sd-v5 .sd-steps-line { position: relative; }
.st-sd-v5 section.sd-step { position: relative; padding-left: 42px; margin-bottom: 18px; }
.st-sd-v5 .sd-step::before { content: ""; position: absolute; left: 14px; top: 34px; bottom: -18px; width: 3px; border-radius: 3px; background: var(--line); }
.st-sd-v5 .sd-step[data-sd-step="4"]::before { display: none; }
.st-sd-v5 .sd-num { position: absolute; left: 0; top: 0; }
.st-sd-v5 .sd-step[data-sd-step="1"] .sd-num { background: var(--turchese); }
.st-sd-v5 .sd-step[data-sd-step="2"] .sd-num { background: var(--brand); }
.st-sd-v5 .sd-step[data-sd-step="3"] .sd-num { background: var(--corallo); }
.st-sd-v5 .sd-step[data-sd-step="4"] .sd-num { background: var(--text-3); }
.st-sd-v5 .sd-step.is-done .sd-num { font-size: 0; }
.st-sd-v5 .sd-step.is-done .sd-num::after { content: "✓"; font-size: 15px; }
.st-sd-v5 .sd-step-b { border-radius: 14px; padding: 12px; margin-top: 8px; border: 1px solid var(--line); background: var(--surface); }
.st-sd-v5 .sd-step[data-sd-step="1"] .sd-step-b { background: var(--muted-bg); }
.st-sd-v5 .sd-step[data-sd-step="3"] .sd-step-b { background: var(--corallo-tint); border-color: transparent; }
.st-sd-v5 .sd-step[data-sd-step="4"] .sd-step-b { border-style: dashed; }
.st-sd-v5 form { padding-bottom: 96px; }
.st-sd-v5 .sd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; }
.st-sd-v5 .sd-bar-t { color: #fff; }
.st-sd-v5 .sd-bar-b .st-btn { background: #fff; color: var(--ink); }
/* Riepiloghi dei passi fatti: nello stile 1 (passo chiuso) e nel 5 (tranne la posizione, già scritta sotto) */
.st-sd:not(.st-sd-v1):not(.st-sd-v5) .sd-sum, .st-sd-v5 [data-sd-step="1"] .sd-sum { display: none; }

.st-res-empty .st-mapcol { display: none; }
.st-res-empty .st-split { grid-template-columns: minmax(0, 1fr); }
.st-results { scroll-margin-top: calc(var(--head-h, 60px) + var(--net-h, 0px) + 8px); }
.st-offer-tags { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

/* Tocco comodo su telefono: link del piè di pagina e delle lingue alti almeno 44px */
@media (pointer: coarse), (max-width: 640px) {
  .st-foot a:not(.st-foot-logo), .st-lang a { display: inline-flex; align-items: center; min-height: 44px; }
}
