/*
 * Legalità in Rete — foglio di stile del sito pubblico (mobile-first, WCAG AA).
 * Palette PROVVISORIA dal brief grafico (Isabella la rifinisce con l'identità definitiva):
 * blu istituzionale #0B4F8A, blu scuro #093A66, giallo «luce» #F2B705 solo per gli accenti
 * (mai sotto testo bianco), sfondi bianco e #EDF3F9, testo #16202B.
 * Font: Titillium Web (OFL) self-hosted in assets/fonts. Nessuna risorsa esterna.
 */

@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/titillium-web-400.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/titillium-web-600.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/titillium-web-700.woff2") format("woff2"); }

:root {
  --blue: #0B4F8A;
  --blue-dark: #093A66;
  --blue-soft: #EDF3F9;
  --blue-line: #C9D8E8;
  --yellow: #F2B705;
  --yellow-soft: #FFF4D1;
  --ink: #16202B;
  --muted: #4A5868;
  --line: #D5DFEA;
  --white: #FFFFFF;
  --ok: #1B6E3E;
  --ok-bg: #E3F3E9;
  --warn: #7A4F00;
  --warn-bg: #FFF1CC;
  --err: #9B1C1C;
  --err-bg: #FDECEC;
  --focus: #0B4F8A;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 4px 16px rgba(22, 32, 43, .06);
  --font: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--blue-dark); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
a { color: var(--blue); text-underline-offset: .15em; text-decoration-thickness: .08em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: .14em; }
strong { font-weight: 700; }
small, .small { font-size: .9rem; color: var(--muted); }
mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); color: inherit; padding: 0 .1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blue-dark); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 8px; color: var(--white); }
.todo { background: var(--yellow-soft); color: var(--warn); font-weight: 600; padding: 0 .3em; border-radius: 4px; }
.js-only { display: none; }
.has-js .js-only { display: inline-flex; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
main { display: block; }
main:focus { outline: none; }

/* ---------- Blocco istituzionale D.7 (in alto) ---------- */
.inst { background: var(--white); border-bottom: 1px solid var(--line); }
.inst__row { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.logo-comune { flex: 0 0 auto; width: 46px; height: auto; }
.inst__text { margin: 0; font-size: .82rem; line-height: 1.3; color: var(--muted); min-width: 0; }
.inst__text strong { color: var(--ink); }
.inst__uff { display: none; }
.inst__den { display: block; color: var(--blue-dark); font-weight: 600; }

/* ---------- Testata ---------- */
.topbar { background: var(--blue-dark); color: var(--white); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand:hover { color: var(--white); }
.brand em { font-style: normal; color: var(--yellow); }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--blue) url("../img/favicon.svg") center / cover no-repeat; flex: 0 0 auto; }
.topnav { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
.topnav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 8px; border-radius: 6px; min-height: 40px; display: inline-flex; align-items: center; }
.topnav a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.topnav a:focus-visible, .section--ink :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.topnav__cta { background: var(--yellow); color: var(--ink) !important; }
.topnav__cta:hover { background: #FFD240 !important; }
/* sul telefono i link vanno a capo sotto il marchio; la barra diventa fissa solo da tablet in su */

/* ---------- Sezioni ---------- */
.section { padding: 40px 0; }
.section--tight { padding: 28px 0; }
.section--alt { background: var(--blue-soft); }
.section--ink { background: var(--blue-dark); color: var(--white); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink a:not(.btn) { color: var(--white); }
.section--ink .kicker { color: var(--yellow); }
.section--ink .lead, .section--ink p { color: #E6EEF7; }
.section--accent { background: var(--yellow); color: var(--ink); }
.section--accent h2 { color: var(--ink); }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: .6em; }
.lead { font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.subhead { margin-top: 1.6em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1.2em 0; }
.two { display: grid; gap: 28px; }
.box { background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--radius); padding: 16px; margin: 1.2em 0; }
.box h2 { font-size: 1.25rem; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; flex-wrap: wrap;
  min-height: 48px; padding: 10px 20px; border: 2px solid var(--blue); border-radius: 999px;
  background: var(--blue); color: var(--white); font: inherit; font-weight: 700; font-size: 1.02rem;
  line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--accent { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--accent:hover { background: #FFCB2E; border-color: #FFCB2E; color: var(--ink); }
.btn--ink { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--ink:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.section--ink .btn--ghost { color: var(--white); border-color: var(--white); }
.btn--danger { background: var(--err); border-color: var(--err); }
.btn--danger:hover { background: #7A1414; border-color: #7A1414; }
.btn--ghost-danger { background: transparent; border-color: var(--err); color: var(--err); }
.btn--ghost-danger:hover { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.btn--big { min-height: 56px; padding: 12px 26px; font-size: 1.12rem; }
.btn--small { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.btn.is-off, .btn[aria-disabled="true"] { background: #E4E9EF; border-color: #E4E9EF; color: #3F4B58; cursor: not-allowed; flex-direction: column; gap: 0; }
.btn.is-off small { color: #3F4B58; font-weight: 600; font-size: .82rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* ---------- Apertura (hero) ---------- */
.hero { background: var(--blue-soft); padding: 32px 0 36px; overflow: hidden; }
.hero__grid { display: grid; gap: 20px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 7.4vw, 3.4rem); }
.hero__cta { margin: 1.4em 0 1em; display: grid; gap: 12px; justify-items: start; }
.countdown { margin: 0; font-size: .98rem; color: var(--ink); }
.countdown__out { display: block; font-weight: 700; color: var(--blue-dark); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--white); border: 1px solid var(--blue-line); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: .92rem; }
.hero__art { display: none; }
.roads { width: 100%; max-width: 360px; }
.roads path { fill: none; stroke-width: 14; stroke-linecap: round; }
.roads__one { stroke: #B7C8DA; }
.roads__two { stroke: var(--yellow); }
.roads__dot { fill: var(--blue-dark); }
.roads__end { fill: var(--yellow); stroke: var(--blue-dark); stroke-width: 4; }

/* ---------- Schede ---------- */
.cards { display: grid; gap: 14px; padding: 0; list-style: none; margin: 0 0 1em; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border: 2px solid var(--yellow); background: var(--yellow-soft); }
.card__date { font-weight: 700; color: var(--blue); margin-bottom: .3em; }
.cards--num { counter-reset: n; }
.cards--num .card { position: relative; padding-left: 58px; }
.cards--num .card::before { counter-increment: n; content: counter(n); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-dark); color: var(--white); font-weight: 700; display: grid; place-items: center; }

.steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: s; display: grid; gap: 12px; }
.steps li { position: relative; padding: 14px 16px 14px 60px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.steps p { margin: 0; }
.steps--compact li { padding-top: 10px; padding-bottom: 10px; }
.steps--compact li::before { top: 9px; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }

.people { display: grid; gap: 12px; margin-bottom: 1em; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.people--big .person { border-left: 5px solid var(--yellow); }
.person h3, .person h4 { margin-bottom: .15em; }
.person__role { font-weight: 600; color: var(--blue); margin-bottom: .5em; font-size: .95rem; }
.person p:last-child { margin-bottom: 0; }

/* ---------- Dettagli, calendario, domande ---------- */
details > summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: 0 0 auto; }
details[open] > summary::before { transform: rotate(45deg); }
.more { margin: 1em 0; }
.more--inline { margin: .2em 0 1em; }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq p { margin: .3em 0 1em; }
.cal { list-style: none; padding: 0; margin: .6em 0 1em; border-top: 1px solid var(--line); }
.cal li { display: grid; grid-template-columns: 5.2em 1fr; gap: 0 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.cal__d { font-weight: 700; color: var(--blue-dark); }
.cal__t { grid-column: 2; color: var(--muted); font-size: .9rem; }
.cal__n { grid-column: 2; grid-row: 1; }
.closing { text-align: center; display: grid; gap: 16px; justify-items: center; }
.closing h2 { margin: 0; }

/* ---------- Moduli ---------- */
.form { margin-top: 1.2em; }
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 4px; margin: 0 0 18px; min-width: 0; background: var(--white); }
.group > legend { font-weight: 700; font-size: 1.1rem; color: var(--blue-dark); padding: 0 6px; }
.group--soft { background: var(--blue-soft); border-color: var(--blue-line); }
.row2 { display: grid; gap: 0 14px; }
.field { margin: 0 0 16px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 4px; padding: 0; }
.req { color: var(--err); font-weight: 700; }
.hint { font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
.err { font-size: .95rem; color: var(--err); font-weight: 700; margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], input[type="datetime-local"], input[type="time"], select, textarea {
  width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #8A96A3; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue); }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--err); }
.counter { font-size: .88rem; color: var(--muted); text-align: right; margin: 4px 0 0; }
.counter.is-over { color: var(--err); font-weight: 700; }

.choices { display: flex; flex-direction: column; gap: 8px; }
.field--inline .choices { flex-direction: row; flex-wrap: wrap; }
.field--scale .choices { flex-direction: row; flex-wrap: nowrap; gap: 6px; }
.field--scale .choice { flex: 1 1 0; justify-content: center; padding: 8px 4px; min-width: 0; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }
.choice:hover { border-color: var(--blue); }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice span small { display: block; font-weight: 400; }
.choices--stack .choice { align-items: flex-start; }
.choice--card { padding: 12px 14px; }
.choice--card input { margin-top: 2px; }
.choice.is-off { opacity: .65; cursor: not-allowed; }
.field--check { margin-bottom: 18px; }
.check, .field > label.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400; margin: 0; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.form__submit { margin: 20px 0 10px; }
.form__submit .btn { width: 100%; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Avvisi, etichette ---------- */
.alert { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; border: 1px solid; border-left-width: 6px; background: var(--blue-soft); border-color: var(--blue-line); border-left-color: var(--blue); }
.alert h2 { font-size: 1.15rem; margin-bottom: .4em; color: inherit; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.alert--ok { background: var(--ok-bg); border-color: #B5DCC4; border-left-color: var(--ok); color: #123F25; }
.alert--warn { background: var(--warn-bg); border-color: #F0D58A; border-left-color: #B7860B; color: #4D3300; }
.alert--err { background: var(--err-bg); border-color: #F2B8B8; border-left-color: var(--err); color: #5E1010; }
.alert--err a { color: #5E1010; font-weight: 600; }
.alert--info { background: var(--blue-soft); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: .88rem; line-height: 1.4; background: #E4E9EF; color: #2F3B48; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--used { background: #E4E9EF; color: #2F3B48; }
.pill--off, .pill--annullato { background: var(--err-bg); color: var(--err); }
.status-line { margin: 0 0 1em; }

/* ---------- Seminario ---------- */
.sessions { display: grid; gap: 12px; margin: 1.2em 0 1.6em; }
.session { border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 14px 16px; background: var(--white); }
.session__when { font-weight: 700; color: var(--blue); margin-bottom: .2em; }
.session__title { font-size: 1.2rem; margin-bottom: .4em; }
.session__meta { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Conferme e riepiloghi ---------- */
.done { background: var(--ok-bg); border: 1px solid #B5DCC4; border-radius: var(--radius); padding: 18px; margin-bottom: 1.4em; }
.done .kicker { color: var(--ok); }
.done h1 { color: #123F25; font-size: clamp(1.6rem, 5vw, 2.3rem); }
.done .lead:last-child { margin-bottom: 0; }
.kv { margin: 0 0 1.4em; border-top: 1px solid var(--line); }
.kv > div { display: grid; gap: 2px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 600; white-space: pre-line; }
.confirm { border: 2px solid var(--err); background: var(--err-bg); border-radius: var(--radius); padding: 16px; margin: 0 0 20px; }
.confirm h2 { color: var(--err); font-size: 1.3rem; }

/* ---------- Biglietto ---------- */
.ticket { border: 2px solid var(--blue-dark); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); margin: 0 0 16px; }
.ticket__head { background: var(--blue-dark); color: var(--white); padding: 16px 18px 14px; }
.ticket__head h1 { color: var(--white); font-size: clamp(1.5rem, 6vw, 2.1rem); margin: .1em 0 .3em; }
.ticket__kind { margin: 0; font-weight: 600; color: #D6E2EF; font-size: .95rem; }
.ticket__state { margin: 0; }
.ticket--ok .ticket__head { border-bottom: 6px solid var(--ok); }
.ticket--warn .ticket__head { border-bottom: 6px solid var(--yellow); }
.ticket--annullato .ticket__head, .ticket--used .ticket__head { border-bottom: 6px solid #8A96A3; }
.ticket__qr { display: grid; place-items: center; padding: 18px 16px 6px; min-height: 120px; }
.ticket__qr svg { width: min(78vw, 300px); height: auto; display: block; }
.ticket__qr.is-ready .ticket__noqr { display: none; }
.ticket__noqr { color: var(--muted); font-size: .92rem; text-align: center; margin: 0; }
.ticket__code { text-align: center; font-size: 1.05rem; margin: 6px 16px 12px; }
.ticket__code strong { font-size: 1.35rem; letter-spacing: .08em; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.tlist { list-style: none; margin: 0; padding: 0 16px; border-top: 1px dashed var(--blue-line); }
.tlist__item { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tlist__item:last-child { border-bottom: 0; }
.tlist__item p { margin: 0; }
.tlist__sub { font-size: .92rem; color: var(--muted); }
.tlist__side { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tlist__item--off .tlist__title { text-decoration: line-through; color: var(--muted); }
.ticket__foot { margin: 0; padding: 12px 16px 16px; font-size: .9rem; color: var(--muted); background: var(--blue-soft); }
.addrow { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--blue-line); }
.addrow p { margin: 0; }

/* ---------- Testi lunghi (avviso, informativa) ---------- */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.prose h2 { font-size: 1.45rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--blue-dark); font-weight: 700; min-width: 8em; }
.prose tbody tr:nth-child(odd) { background: var(--blue-soft); }
.provvisorio { background: var(--warn-bg); border: 1px solid #F0D58A; border-left: 6px solid #B7860B; color: #4D3300; border-radius: var(--radius); padding: 12px 16px; font-weight: 700; margin: 0 0 1.2em; }

/* ---------- Piede (D.7 in fondo) ---------- */
.foot { background: var(--blue-dark); color: #E6EEF7; padding: 32px 0 26px; margin-top: 0; font-size: .95rem; }
.foot a { color: var(--white); }
.foot__inst { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.logo-comune--foot { width: 64px; background: var(--white); border-radius: 6px; padding: 4px; }
.foot__inst p { margin: 0 0 .35em; }
.foot__ente strong { color: var(--white); }
.foot__den { font-weight: 700; color: var(--white); }
.foot__fin { font-size: .9rem; color: #C9D7E6; }
.foot__links { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); margin-bottom: 14px; }
.foot__links a { min-height: 36px; display: inline-flex; align-items: center; }
.foot .todo { background: #FFE9A8; color: #4D3300; align-self: flex-start; }
.foot__small { margin: 0; font-size: .82rem; color: #C9D7E6; }

/* ---------- Elementi condivisi con l'area riservata ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #E4E9EF; color: #2F3B48; white-space: nowrap; }
.badge--ricevuta { background: #E4E9EF; color: #2F3B48; }
.badge--valutazione { background: var(--blue-soft); color: var(--blue-dark); }
.badge--selezionata { background: var(--ok-bg); color: var(--ok); }
.badge--riserva { background: var(--warn-bg); color: var(--warn); }
.badge--non_selezionata { background: #EEF0F3; color: #4A5868; }
.badge--ritirata { background: var(--err-bg); color: var(--err); }
.bar { width: 100%; height: 10px; display: block; }
.bar__bg { fill: #E4E9EF; }
.bar__fg { fill: var(--blue); }

/* ---------- Schermi più larghi ---------- */
@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .kv > div { grid-template-columns: 38% 1fr; }
  .tlist__item { grid-template-columns: 1fr auto; align-items: start; }
  .tlist__side { flex-direction: column; align-items: flex-end; }
  .addrow { grid-template-columns: 1fr auto; align-items: center; }
  .form__submit .btn { width: auto; }
  .foot__links { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; }
  .inst__uff { display: inline; }
  .inst__uff::before { content: "· "; }
  .logo-comune { width: 54px; }
}
@media (min-width: 768px) {
  body { font-size: 1.1rem; }
  .topbar { position: sticky; top: 0; z-index: 20; }
  .section { padding: 64px 0; }
  .section--tight { padding: 40px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1.45fr 1fr; gap: 40px; }
  .hero__art { display: block; justify-self: center; }
  .sessions { grid-template-columns: repeat(3, 1fr); }
  .narrow .sessions { grid-template-columns: 1fr; }
  .cal li { grid-template-columns: 5.4em 7em 1fr; }
  .cal__t { grid-column: 2; grid-row: 1; }
  .cal__n { grid-column: 3; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .people--big { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Stampa (biglietto, avviso, informativa) ---------- */
@media print {
  @page { margin: 14mm; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .no-print, .topbar, .skip, .foot__links, .js-only, .hero__art { display: none !important; }
  .inst { border: 0; }
  .foot { background: #fff; color: #000; padding: 8mm 0 0; border-top: 1px solid #999; }
  .foot a, .foot__den, .foot__ente strong, .foot__fin, .foot__small { color: #000; }
  .section, .section--tight { padding: 4mm 0; }
  .section--ink, .section--alt, .section--accent { background: #fff; color: #000; }
  .ticket { box-shadow: none; break-inside: avoid; }
  .ticket__head { background: #fff; color: #000; border-bottom: 2px solid #000 !important; }
  .ticket__head h1, .ticket__kind { color: #000; }
  .ticket__qr svg { width: 60mm; }
  a { color: #000; text-decoration: none; }
  .prose table { display: table; }
}
