/* Carattere Nunito, incluso nel sito (licenza SIL OFL, vedi fonts/OFL-Nunito.txt):
   niente viene caricato da altri siti. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

/* Guida Sanità — mobile first, large readable text. */
:root {
  /* Ispirato a NHS.uk: pagina grigio chiaro, riquadri bianchi, un colore = un ruolo.
     Testo e titoli: quasi nero. Link: verde acqua scuro, sottolineati.
     Pulsanti d'azione: verde pieno. Testata: verde acqua scuro. */
  --bg: #f0f4f5;
  --surface: #ffffff;
  --text: #212b32;
  --muted: #4c6272;
  --border: #d8dde0;
  --border-strong: #aeb7bd;
  --input-border: #4c6272;
  --link: #0b5f5c;
  --link-hover: #073f3d;
  --action: #007f3b;
  --action-dark: #00401e;
  --header: #0b5f5c;
  --header-dark: #084a47;
  --primary: #0f7c78;
  --primary-dark: #0b5f5c;
  --primary-ink: #ffffff;
  --primary-soft: #e6f5f3;
  --tint: #c6ebe4;
  --accent: #3fc1a9;
  --ok: #1e6b3a;
  --ok-soft: #eaf6ee;
  --warn: #8a5a00;
  --warn-soft: #fff6e2;
  --bad: #a3271f;
  --bad-soft: #fdeeed;
  --radius: 8px;
  --shadow: none;
  --maxw: 42rem;  /* colonna di lettura */
  --page: 56rem;  /* larghezza della pagina: testata, banda, home, aree, piè di pagina */
  font-size: 125%; /* 20px: testo grande */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #8a5a00;
  outline-offset: 2px;
}

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }


main, main.wrap { padding-top: 24px; padding-bottom: 40px; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 28px 0 10px; }
h3 { font-size: 1.05rem; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
}

.notice { border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; border-left: 6px solid; }
.notice.info { background: var(--primary-soft); border-color: var(--primary); }
.notice.ok { background: var(--ok-soft); border-color: var(--ok); }
.notice.warn { background: var(--warn-soft); border-color: var(--warn); }
.notice.bad { background: var(--bad-soft); border-color: var(--bad); }
.notice > :last-child { margin-bottom: 0; }

.big-number { font-size: 2rem; font-weight: 800; line-height: 1.1; display: block; margin: 4px 0; }

/* Buttons */
.btn {
  display: inline-block;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  margin: 6px 0;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--primary-soft); }
.btn.primary { background: var(--primary); color: var(--primary-ink); text-align: center; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.center { text-align: center; }
.btn small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.btn.primary small { color: inherit; opacity: 0.9; }
.btn-row { display: grid; gap: 8px; margin: 16px 0; }
@media (min-width: 560px) { .btn-row.three { grid-template-columns: repeat(3, 1fr); } .btn-row.three .btn { text-align: center; } }

.back {
  background: none; border: none; color: var(--primary); font: inherit; padding: 8px 0; cursor: pointer;
  text-decoration: underline; margin-bottom: 8px;
}

.progress { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }

/* Forms */
label { display: block; font-weight: 600; margin: 14px 0 4px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.field-error { color: var(--bad); font-weight: 600; margin-top: 8px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px 16px; margin: 16px 0; }
legend { font-weight: 700; padding: 0 6px; }

/* Lists */
ul.clean { padding-left: 1.2rem; margin: 0 0 12px; }
ul.clean li { margin: 6px 0; }
ol.steps { padding-left: 1.4rem; }
ol.steps li { margin: 8px 0; }
ul.checklist { list-style: none; padding: 0; }
ul.checklist li { padding-left: 1.8rem; position: relative; margin: 8px 0; }
ul.checklist li::before { content: "☐"; position: absolute; left: 0; font-size: 1.2rem; line-height: 1.3; }

dl.contacts { margin: 0; }
dl.contacts dt { font-weight: 600; margin-top: 10px; }
dl.contacts dd { margin: 0; word-break: break-word; }

.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.badge.verified { background: var(--ok-soft); color: var(--ok); }
.badge.partial { background: var(--warn-soft); color: var(--warn); }
.badge.todo { background: var(--bad-soft); color: var(--bad); }

.letter {
  white-space: pre-wrap;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  overflow-wrap: anywhere;
}

table.fields { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.fields th, table.fields td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--border); }
table.fields th { width: 40%; }

.ricetta { width: 100%; height: auto; max-width: 520px; display: block; margin: 8px 0 16px; }


/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #f1efe9; font-size: 0.85rem; color: var(--muted); padding: 20px 0 32px; }
.site-footer p { margin: 0 0 10px; }
.site-footer nav a { margin-right: 14px; display: inline-block; margin-bottom: 6px; }

.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; background: #ffeb3b; color: #212b32; padding: 10px 16px; font-weight: 700; border-radius: 4px; }
.skip-link:focus { top: 8px; outline: 3px solid #212b32; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Print only the letter ("Scarica PDF" = browser print → Salva come PDF). */
#print-area { display: none; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; white-space: pre-wrap; font-family: "Times New Roman", serif; font-size: 12pt; line-height: 1.45; color: #000; }
  @page { margin: 2cm; }
}

/* ---- Semplicità: pulsanti grandi con icone, lettura ad alta voce ---- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 8px; }
.listen {
  margin-left: auto; min-height: 48px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--primary); background: var(--primary-soft); color: var(--primary);
  font: inherit; font-weight: 700; cursor: pointer;
}
.hero { font-size: 3.5rem; line-height: 1; margin: 8px 0 12px; }
.btn.big { min-height: 64px; font-size: 1.2rem; }
.btn.choice { display: flex; align-items: center; gap: 14px; min-height: 68px; font-size: 1.1rem; }
.btn.choice .ico { font-size: 1.8rem; line-height: 1; flex: none; width: 2.4rem; text-align: center; }
.btn.call { border-color: var(--ok); color: var(--ok); }
.btn.call:hover { background: var(--ok-soft); }
.letter-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem;
  border-radius: 8px; background: #fff4b8; border: 2px solid #e0a800; color: var(--text); font-size: 1.4rem;
}
.grid2 { display: grid; gap: 0 10px; }
@media (min-width: 480px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2 .btn.choice { min-height: 60px; }

ul.icon-list { list-style: none; padding: 0; margin: 0 0 12px; }
[hidden] { display: none !important; }
ul.icon-list li { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
ul.icon-list .ico { font-size: 1.5rem; line-height: 1.2; flex: none; width: 2rem; text-align: center; }

ol.big-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; }
ol.big-steps > li { counter-increment: step; position: relative; padding: 0 0 18px 56px; margin: 0 0 12px; border-bottom: 1px solid var(--border); }
ol.big-steps > li:last-child { border-bottom: none; }
ol.big-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
ol.big-steps h3 { margin-top: 6px; }

.progress .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--border); margin-right: 6px; vertical-align: middle; }
.progress .dot.on { background: var(--primary); }

details > summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; gap: 10px; }
details.help { margin: 28px 0 8px; padding: 12px 16px; border-radius: var(--radius); background: var(--ok-soft); border: 2px solid var(--ok); }
details.help .ico { font-size: 1.5rem; }
p.notice { margin: 12px 0; }
.back, .listen { white-space: nowrap; }
main { overflow-wrap: anywhere; }
details.fonti { margin: 12px 0 8px; padding: 10px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 0.9rem; }
details.fonti ul { margin: 8px 0; }
details.fonti li { margin: 8px 0; }
ul.icon-list li > :not(.ico) { flex: 1 1 auto; min-width: 0; }
ul.icon-list li > strong { flex: 0 1 auto; }
.more-help { margin-top: 20px; }
details.search { margin-top: 20px; }
details.search input[type="search"] { margin: 8px 0 12px; }
button.btn.choice { width: 100%; }

/* ---- Tema ispirato a NHS.uk: testata piena, pagina grigia, riquadri bianchi ---- */

/* Testata: logo e ricerca sopra, le 4 aree sotto (2×2 sul telefono, in fila sul computer). */
.site-header { background: var(--header); color: #fff; }
.header-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.site-header a.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.site-header a.brand:hover > span { text-decoration: underline; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-tag { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); font-size: 0.75rem; font-weight: 700; vertical-align: 2px; }
.header-search { display: flex; flex: 1 1 100%; min-width: 0; }
@media (min-width: 640px) { .header-search { flex: 0 1 18rem; margin-left: auto; } }
.site-header .header-search input[type="search"] {
  flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 6px 12px; border: 2px solid #fff; border-right: none;
  border-radius: 6px 0 0 6px; background: #fff; color: var(--text); font: inherit; font-size: 0.85rem;
}
.header-search button {
  flex: none; width: 48px; min-height: 44px; border: 2px solid #fff; border-radius: 0 6px 6px 0;
  background: var(--primary-soft); color: var(--header); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.header-search button:hover { background: var(--tint); }
.site-header input:focus-visible, .site-header button:focus-visible, .site-header a:focus-visible { outline: 4px solid #ffeb3b; outline-offset: 0; }

.header-nav { background: var(--header-dark); }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .header-nav ul { display: flex; gap: 4px; } }
.header-nav a {
  display: block; padding: 10px 12px; color: #fff; font-weight: 700; font-size: 0.85rem; white-space: normal;
  text-decoration: none; border-bottom: 4px solid transparent;
}
.header-nav li:nth-child(odd) a { padding-left: 0; }
@media (min-width: 640px) { .header-nav li a { padding: 12px 14px 8px; } .header-nav li:first-child a { padding-left: 0; } }
.header-nav a:hover { text-decoration: underline; }
.header-nav a[aria-current] { border-bottom-color: #fff; }

/* Testo: titoli neri, link verde acqua sottolineati (si capisce subito cosa si clicca). */
h1, h2, h3, legend { color: var(--text); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 1.7rem; }
.lead { color: var(--text); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 3px; }

.hero { display: inline-flex; align-items: center; justify-content: center; width: 4.6rem; height: 4.6rem; font-size: 2.6rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }

/* Riquadri: bianchi su fondo grigio, con un bordo spesso sotto al posto dell'ombra. */
.card, details.card, details.fonti { background: var(--surface); border: none; border-bottom: 4px solid var(--border); border-radius: var(--radius); box-shadow: none; }
details.help { background: var(--ok-soft); border: none; border-left: 6px solid var(--ok); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: none; }
.notice { border-radius: 0 var(--radius) var(--radius) 0; border-left-width: 6px; }
.notice.info { background: var(--surface); border-color: var(--primary); }

/* Scelte (portano avanti): riquadro bianco, testo come un link. */
.btn { border-radius: var(--radius); border: none; border-bottom: 4px solid var(--border); box-shadow: none; background: var(--surface); color: var(--link); font-weight: 700; }
.btn:hover { background: var(--surface); border-bottom-color: var(--border-strong); color: var(--link-hover); }
.btn:hover .txt { text-decoration: underline; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 8px; }
.btn.choice { background: var(--surface); color: var(--link); border: none; border-bottom: 4px solid var(--border); }
.btn.choice .ico { width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; border-radius: 50%; background: var(--primary-soft); }
.btn.choice small { color: var(--muted); }
.btn.call { color: var(--ok); }
.btn.call .ico { background: var(--ok-soft); }
.btn.center { border-radius: var(--radius); }

/* Pulsante d'azione (Comincia, Controlla, Scriviamo la lettera): verde pieno, un solo colore in tutto il sito. */
.btn.primary { border: none; border-radius: var(--radius); background: var(--action); color: #fff; box-shadow: 0 4px 0 var(--action-dark); margin-bottom: 10px; }
.btn.primary:hover { background: #00662f; color: #fff; filter: none; border: none; }
.btn.primary:hover .txt { text-decoration: none; }
.btn.primary:active { transform: translateY(4px); box-shadow: none; border: none; margin-bottom: 10px; }
.letter-ico { background: #fff4b8; }

.listen { border: 2px solid var(--link); background: var(--surface); color: var(--link); font-weight: 800; }
.listen:hover { background: var(--primary-soft); }
.back { color: var(--link); font-weight: 700; text-decoration: underline; }

/* Campi: bordo scuro e ben visibile, sfondo bianco. */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  border-radius: 4px; border: 2px solid var(--input-border); background: var(--surface); font-family: inherit;
}
input[type="number"], input[type="search"] { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
fieldset { background: var(--surface); border: none; border-bottom: 4px solid var(--border); border-radius: var(--radius); }

ol.big-steps > li::before { background: var(--primary); }
ol.big-steps > li { border-bottom-color: var(--border); }
.progress .dot.on { background: var(--primary); }
.progress .dot { background: var(--border-strong); }

.letter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
table.fields { background: var(--surface); }
table.fields th, table.fields td { border-bottom-color: var(--border); }

.site-footer { background: #e8edee; border-top: 4px solid var(--header); color: var(--muted); }
.site-footer a { color: var(--link); }

/* ---- Avvisi: un colore = un significato, uguale in tutto il sito (come le «care card» NHS) ----
   info   = consiglio o aiuto (verde acqua)
   ok     = sei nei tempi / hai diritto (verde)
   warn   = attenzione (giallo)
   bad    = in ritardo, scaduto, errore (rosso chiaro)
   urgent = stai male: chiama il medico o il 112 (rosso pieno, testo bianco) */
.notice.urgent { background: var(--bad); border-color: #6e1712; color: #fff; }
.notice.urgent a { color: #fff; font-weight: 800; }

/* Pulsanti senza icona (elenchi tutti uguali, come le province). */
.btn.choice:not(:has(.ico)) { padding-left: 22px; }

/* ---- Pagina iniziale: le scelte subito visibili sul telefono ---- */
.home-intro h1 { margin-bottom: 6px; }
.home-intro .lead { font-size: 1.05rem; margin-bottom: 8px; }
.home-trust { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
.home-trust strong { color: var(--text); }
.home-about { margin-top: 24px; }
/* Senza JavaScript si vede il contenuto scritto nella pagina (titolo, descrizione,
   elenco dei moduli); con JavaScript solo «Un momento…» finché la pagina è pronta. */
.js-only { display: none; }
.js .js-only { display: block; }
.js .static-fallback { display: none; }
.static-list { padding-left: 1.2rem; }
.static-list li { margin: 8px 0; }

/* ---- Percorso «Inizio › Area» sotto la testata (come NHS.uk) ----
   Sul computer tutto il percorso; sul telefono solo il link al livello sopra. */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.breadcrumb .wrap { padding-top: 10px; padding-bottom: 10px; }
.breadcrumb ol { display: none; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 10px; color: var(--muted); }
.breadcrumb-back { display: inline-block; font-weight: 700; padding: 4px 0; }
@media (min-width: 640px) { .breadcrumb ol { display: flex; } .breadcrumb-back { display: none; } }

/* ---- Pagine delle aree (visite-esami/, aiuto-a-casa/, …) ---- */
ul.area-list { list-style: none; padding: 0; margin: 20px 0 8px; }
ul.area-list li { margin: 0; }
ul.area-others { padding-left: 1.2rem; margin: 0 0 12px; }
ul.area-others li { margin: 8px 0; }

/* Risultati della ricerca in home, sopra i 4 riquadri. */
.home-results { margin: 8px 0 24px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.home-results h2 { margin-top: 0; }

/* ---- Icone disegnate (al posto delle emoji, vedi iconize in js/common.js) ----
   Un solo colore, quello del testo intorno; verde, rosso e giallo solo quando
   l'icona vuol dire «sì», «no» o «attenzione». */
svg.i { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.ico svg.i { width: 1em; height: 1em; vertical-align: middle; }
.btn.choice .ico, ul.icon-list .ico, details > summary .ico { color: var(--link); }
.i-ok { color: var(--ok); }
.i-bad { color: var(--bad); }
.i-warn { color: #b26b00; }
.btn.primary .i, .notice.urgent .i { color: inherit; }
.hero { color: var(--link); }
.hero svg.i { width: 0.95em; height: 0.95em; }
details.help .ico { color: var(--ok); }

/* ---- Banda colorata in alto: icona, titolo e frase principale (come NHS.uk) ----
   Il colore arriva fino ai bordi dello schermo ma il testo resta nella colonna. */
.page-band {
  --band: #0f7c78;
  background: var(--band); color: #fff;
  box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
  margin: 0 0 24px; padding: 20px 0 26px;
}
.page-band:first-child { margin-top: -24px; }
.page-band h1, .page-band p, .page-band strong { color: #fff; }
.page-band h1 { margin-bottom: 8px; }
.page-band .lead, .page-band .home-trust { color: #fff; margin-bottom: 0; }
.page-band .topbar { margin-bottom: 4px; }
.page-band .back { color: #fff; }
.page-band .listen { background: transparent; border-color: #fff; color: #fff; }
.page-band .listen:hover { background: rgba(255, 255, 255, 0.14); }
.page-band .hero { background: #fff; border: none; margin-top: 0; }
.page-band a:focus-visible, .page-band button:focus-visible { outline-color: #ffeb3b; }

/* Il titolo riceve il focus a ogni schermata (per i lettori di schermo), ma non è
   un elemento da cliccare: niente contorno. */
h1[tabindex="-1"]:focus { outline: none; }

/* ---- Home: riquadro urgenze (rosso, come le «care card» urgenti di NHS.uk) ---- */
.care-urgent { margin: 28px 0; background: var(--surface); border: 3px solid var(--bad); border-radius: var(--radius); overflow: hidden; }
.care-urgent h2 { margin: 0; padding: 12px 16px; background: var(--bad); color: #fff; font-size: 1.15rem; }
.care-urgent .care-body { padding: 14px 16px 6px; }
.care-urgent ul { padding-left: 1.2rem; margin: 0 0 10px; }
.care-urgent li { margin: 6px 0; }
.care-urgent a { color: var(--bad); }

/* ---- Link d'azione con la freccia verde (domande frequenti) ---- */
ul.action-links { list-style: none; padding: 0; margin: 0 0 24px; }
ul.action-links li { margin: 4px 0; }
.action-link { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 4px 0; color: var(--text); font-weight: 800; text-decoration: none; }
.action-link .arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--action); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.action-link .arrow svg.i { width: 1em; height: 1em; vertical-align: 0; }
.action-link:hover { color: var(--text); }
.action-link:hover .txt { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---- «Questa pagina ti è stata utile?» e data del controllo, sopra il piè di pagina ---- */
.page-feedback { padding: 8px 0 24px; }
.page-feedback .fb-box { background: var(--surface); border-bottom: 4px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.page-feedback h2 { font-size: 1.05rem; margin: 0 0 10px; }
.fb-buttons { display: flex; gap: 10px; margin-bottom: 8px; }
.fb-buttons button {
  min-width: 88px; min-height: 48px; padding: 8px 18px; border: 2px solid var(--link); border-radius: var(--radius);
  background: var(--surface); color: var(--link); font: inherit; font-weight: 800; cursor: pointer;
}
.fb-buttons button:hover { background: var(--primary-soft); }
.page-feedback .fb-box > :last-child { margin-bottom: 0; }
.fb-checked { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---- Larghezza (come NHS.uk): pagina larga, testo in una colonna di lettura a sinistra ----
   Home e pagine delle aree (data-wide) usano tutta la larghezza: riquadri su 2 colonne. */
#app > *, .page-feedback .wrap > * { max-width: var(--maxw); }
#app > .page-band, #app[data-wide] > .area-grid, #app[data-wide] > .home-row, #app[data-wide] > .home-results, #app[data-wide] > ul.area-list { max-width: none; }
.page-band > * { max-width: var(--maxw); }
ul.area-list li { display: flex; }
ul.area-list li > .btn { flex: 1; }
@media (min-width: 768px) {
  .area-grid, ul.area-list, #q-results { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  #q-results > p { grid-column: 1 / -1; }
  .home-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .home-row > .care-urgent { order: 2; }
  .home-row > .care-urgent, .home-row > .frequent { margin-top: 28px; }
  .home-row .frequent h2 { margin-top: 0; }
}
