/* Stile istituzionale sobrio, leggibile, mobile-first. --brand definito dal config. */
:root {
  --brand: #0b5394;
  --ink: #1b1f24; --muted: #5b6470; --line: #d9dee4; --bg: #f4f6f8; --card: #fff;
  --ok: #1e7b34; --ok-bg: #e7f4ea; --warn: #8a5a00; --warn-bg: #fff4dc;
  --err: #b3261e; --err-bg: #fdecea; --info-bg: #e8f0fa;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Titillium Web", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.topbar { background: #fff; color: var(--ink); border-bottom: 3px solid var(--brand); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; flex-wrap: wrap; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand .app { border-left: 1px solid var(--line); padding-left: 14px; }
.brand .ente { font-weight: 700; font-size: 1.05rem; }
.brand .app { font-size: .85rem; opacity: .9; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--brand); text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 6px; font-size: .9rem; }
.nav a:hover, .nav a.active { background: var(--info-bg); }
main.wrap { padding-top: 20px; padding-bottom: 40px; }
.footer { color: var(--muted); font-size: .85rem; padding: 20px 0 30px; border-top: 1px solid var(--line); line-height: 1.7; }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.15rem; margin: 1.6em 0 .7em; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 1rem; }
.hero { margin-bottom: 16px; }
.hero p { margin: .3em 0; color: var(--muted); }
.hero .where { color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.card h2:first-of-type { margin-top: .2em; }
.card.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }

/* Alert */
.alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe0c8; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0d79a; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #f2c4bf; }
.alert-info { background: var(--info-bg); color: var(--brand); }

/* Form */
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=search], select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #b9c1ca; border-radius: 8px; background: #fff; width: 100%; color: var(--ink);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }
.has-error input, .has-error textarea { border-color: var(--err); }
.err { color: var(--err); font-size: .85rem; }
.req { color: var(--err); }
.check label, label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.check input, label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 8px;
  border: 1px solid #b9c1ca; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: #f0f2f5; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, #000); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; width: 100%; margin: 8px 0; }
.btn-sm { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Giorni e slot */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.day { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; min-width: 150px; }
.day .d-label { font-weight: 600; text-transform: capitalize; font-size: .92rem; }
.day .d-free { font-size: .8rem; color: var(--ok); }
.day.full .d-free { color: var(--muted); }
.day.active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--info-bg); }
.slots { margin-top: 10px; }
.slot-h { margin: 12px 0 6px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.slot-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.slot .s-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.slot .s-free { font-size: .75rem; color: var(--ok); }
.slot:disabled { background: #f1f3f5; color: #9aa3ad; cursor: not-allowed; text-decoration: line-through; }
.slot:disabled .s-free { color: #9aa3ad; }
.slot.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot.selected .s-free { color: #fff; }
.chosen { background: var(--info-bg); color: var(--brand); padding: 10px 12px; border-radius: 8px; font-weight: 600; text-transform: none; }

/* Esito / dettaglio */
.success h1 { color: var(--ok); }
.code { font-size: 2.2rem; font-weight: 800; letter-spacing: .04em; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 600; }
.cancel-box { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 6px; }
.prose h2 { display: block; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-info { background: var(--info-bg); color: var(--brand); }
.badge-warn { background: var(--warn-bg); color: var(--warn); } .badge-muted { background: #eceff2; color: var(--muted); }

/* Gestione */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.kpi .v { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f8fa; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.row-annullata td { color: #98a1ab; }
meter { width: 100%; height: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.filters .field { margin: 0; min-width: 140px; flex: 1; }
.inline { display: inline; }
.pager { display: flex; gap: 6px; margin-top: 12px; }
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.slotcard { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
.slotcard h3 { margin: 0 0 6px; display: flex; justify-content: space-between; font-size: .95rem; }
.slotcard ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.slotcard li { padding: 3px 0; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 6px; }
.slotcard li.done { color: var(--ok); font-weight: 700; }
.slotcard li.miss { color: var(--warn); }
.slotcard.now { border-color: var(--brand); box-shadow: 0 0 0 2px var(--info-bg); }

@media print {
  .topbar, .footer, .nav, .no-print, .filters, form.inline, .actions { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card, .slotcard { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}

/* Scelta prestazioni */
.tipi { display: grid; gap: 10px; }
.tipo { display: grid; grid-template-columns: 28px 44px 1fr auto; align-items: center; gap: 12px; text-align: left; font: inherit;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.tipo-chk { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #b9c1ca; display: grid; place-items: center; font-weight: 900; color: #fff; }
.tipo-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2, var(--brand))); }
.tipo-txt { display: flex; flex-direction: column; }
.tipo-av { font-size: .82rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
.tipo.selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--info-bg); }
.tipo.selected .tipo-chk { background: var(--brand); border-color: var(--brand); }
.tipo.full .tipo-av { color: var(--err); }
.tipo:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 520px) { .tipo { grid-template-columns: 26px 1fr; } .tipo-ico { display: none; } .tipo-av { grid-column: 2; } }
.picker { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fbfcfd; }
.picker-h { margin: 0 0 10px; font-size: 1.05rem; }
.picker .slot-group { margin-top: 10px; }
.summary { background: var(--info-bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.summary ul { margin: 6px 0 0; padding-left: 18px; }
.items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.item-annullata { opacity: .6; }
.tlist { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.tlist li { padding: 2px 0; }

/* ================= Accessibilità ================= */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #f59e0b !important; outline-offset: 2px; }
main:focus { outline: none; }
html.fs-1 { font-size: 112.5%; } html.fs-2 { font-size: 125%; } html.fs-3 { font-size: 140%; }
html.fs-1 body, html.fs-2 body, html.fs-3 body { font-size: 1rem; }
.a11y-bar { display: flex; gap: 4px; margin-left: auto; }
.a11y-bar button { font: inherit; font-weight: 700; font-size: .85rem; min-width: 38px; min-height: 38px; padding: 0 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; cursor: pointer; }
.a11y-bar button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.topbar .wrap { gap: 12px; }

/* Alto contrasto */
html.hc { --ink: #000; --muted: #222; --line: #000; --bg: #fff; --info-bg: #fff; --ok: #005a1b; --err: #a00000; --warn: #6b3d00; }
html.hc body { background: #fff; }
html.hc .card, html.hc .slot, html.hc .day, html.hc .tipo, html.hc .picker, html.hc .kpi, html.hc input, html.hc select, html.hc textarea { border: 2px solid #000 !important; }
html.hc a { text-decoration: underline; }
html.hc .slot.selected, html.hc .day.active, html.hc .tipo.selected { background: #000 !important; color: #fff !important; }
html.hc .slot.selected *, html.hc .day.active *, html.hc .tipo.selected * { color: #fff !important; }
html.hc .slot:disabled { background: #fff; color: #555; }

/* Messaggi: sempre visibili in alto durante lo scorrimento */
.alert-zone { position: sticky; top: 0; z-index: 50; }
.alert-zone:empty { display: none; }
.alert-float { display: flex; gap: 12px; align-items: flex-start; margin: 0 auto; border-radius: 0; border-width: 0 0 3px 0; padding: 14px max(16px, calc((100% - 948px) / 2));
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); font-size: 1rem; }
.alert-float:focus { outline: none; }
.alert-float.alert-error { border-bottom-color: var(--err); }
.alert-float.alert-ok { border-bottom-color: var(--ok); }
.alert-float.alert-warn { border-bottom-color: var(--warn); }
.alert-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: currentColor; }
.alert-ico { color: inherit; }
.alert-error .alert-ico { background: var(--err); color: #fff; } .alert-ok .alert-ico { background: var(--ok); color: #fff; }
.alert-warn .alert-ico { background: var(--warn); color: #fff; } .alert-info .alert-ico { background: var(--brand); color: #fff; }
.alert-body { flex: 1; }
.alert-links { margin: 6px 0 0; padding-left: 18px; font-weight: 600; }
.alert-links a { color: inherit; }
.alert-close { flex: none; font: inherit; font-size: 1.5rem; line-height: 1; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.alert-close:hover { background: rgba(0,0,0,.08); }
.field .err { font-weight: 600; }

[aria-invalid="true"] { border-color: var(--err) !important; border-width: 2px !important; }
.req-note { font-size: .85rem; color: var(--muted); }
fieldset.step-set { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.step-set > legend { padding: 0; width: 100%; }

/* ================= Giornate più visibili (prenotazione) ================= */
.days { gap: 12px; padding: 4px 2px 10px; }
.day { min-width: 190px; padding: 14px 18px 14px 14px; border: 2px solid var(--line); border-radius: 14px; flex-direction: row; align-items: center; gap: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.day .d-cal { flex: none; width: 54px; text-align: center; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.day .d-cal b { display: block; font-size: 1.6rem; line-height: 1.1; padding: 2px 0; color: var(--ink); }
.day .d-cal span { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--brand); color: #fff; padding: 2px 0; }
.day .d-txt { display: flex; flex-direction: column; gap: 2px; }
.day .d-label { font-size: 1rem; font-weight: 800; text-transform: capitalize; }
.day .d-hours { font-size: .82rem; color: var(--muted); }
.day .d-free { font-size: .85rem; font-weight: 700; }
.day:hover { border-color: var(--brand); }
.day.active { border-color: var(--brand); background: var(--brand); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.day.active .d-label, .day.active .d-hours, .day.active .d-free { color: #fff; }
.day.full { background: #f1f3f5; }
.day.full .d-free { color: var(--err); }
.picker-h { font-size: 1.15rem; }
.days-hint { font-size: .9rem; font-weight: 600; margin: 0 0 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.privacy-short { background: #f7f9fb; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: .93rem; }
.privacy-short h3 { margin: 0 0 8px; font-size: 1rem; }
.privacy-short ul { margin: 0 0 8px; padding-left: 18px; }
.privacy-short li { margin-bottom: 4px; }
.privacy .lead { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.privacy section { scroll-margin-top: 90px; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 10px; }
.privacy h2 { font-size: 1.15rem; }
.privacy li { margin-bottom: 6px; }
.toc { background: #f7f9fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; margin: 12px 0 8px; }
.toc h2 { margin: 6px 0; font-size: 1rem; }
.toc ol { margin: 0 0 6px; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.prose table td, .prose table th { font-size: .92rem; }
/* Giornate: tutte visibili insieme (niente scorrimento orizzontale) */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); overflow: visible; scroll-snap-type: none; }
.day { min-width: 0; width: 100%; }
.day .d-hours { white-space: normal; }
.powered { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.powered-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.powered-brand img { width: 24px; height: 24px; }
.powered-det a { color: var(--muted); }
.print-box .actions { align-items: center; }
.print-day { font-size: .9rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Pulsante prenota e conto alla rovescia (pagine interne) */
:root { --cta: #c2410c; }
.btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; font-size: 1.2rem; padding: 18px 28px; border-radius: 14px; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--cta) 80%, transparent); }
.btn-cta:hover { background: color-mix(in srgb, var(--cta) 82%, #000); }
.btn-cta.btn-lg { width: 100%; min-height: 60px; }
html.hc .btn-cta { background: #000; border-color: #000; }
.countdown { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cd-title { margin: 0 0 8px; font-weight: 700; }
.cd-boxes { display: flex; gap: 8px; }
.cd-boxes[hidden] { display: none; }
.cd-box { flex: 0 0 auto; min-width: 70px; text-align: center; background: var(--info-bg); border-radius: 10px; padding: 8px 6px 6px; }
.cd-box b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--brand); }
.cd-box span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cd-note { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.countdown.cd-done .cd-title { color: var(--err); }
@media (max-width: 420px) { .cd-box { flex: 1; min-width: 0; } }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form select { padding: 6px 10px; min-width: 240px; }

/* ================= Pagine interne più larghe, margini laterali più stretti ================= */
.wrap { max-width: 1320px; padding: 0 clamp(12px, 2vw, 24px); }
.alert-float { padding-left: max(12px, calc((100% - 1272px) / 2)); padding-right: max(12px, calc((100% - 1272px) / 2)); }
.tipi { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
@media (max-width: 520px) { .tipi { grid-template-columns: 1fr; } }
.tipo-meta { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cf-info { font-size: .85rem; margin: 2px 0 0; }
.cf-info.ok { color: var(--ok); } .cf-info.bad { color: var(--err); }
@media (max-width: 480px) { .a11y-txt { display: none; } }
.hc-ico { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); vertical-align: -2px; }

/* ================= Icone d'interfaccia (Bootstrap Icons) ================= */
.i { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; fill: currentColor; }
.btn .i { width: 1.1em; height: 1.1em; }
.alert-ico { background: none !important; width: auto; height: auto; }
.alert-ico .i { width: 26px; height: 26px; }
.alert-error .alert-ico { color: var(--err) !important; } .alert-ok .alert-ico { color: var(--ok) !important; }
.alert-warn .alert-ico { color: var(--warn) !important; } .alert-info .alert-ico { color: var(--brand) !important; }
.alert-close .i { width: 18px; height: 18px; }
.note-i { color: var(--warn); margin-left: 4px; }
/* Icone mediche (Healthicons) nel modulo */
.tipo-ico { background: #fff !important; border: 2px solid color-mix(in srgb, var(--brand) 22%, #fff); }
.tipo-ico img { width: 32px; height: 32px; display: block; filter: invert(19%) sepia(73%) saturate(1800%) hue-rotate(196deg) brightness(88%); }
html.hc .tipo-ico img { filter: none; }
.tipo.selected .tipo-chk .i { width: 16px; height: 16px; color: #fff; }
.chosen { display: flex; align-items: center; gap: 8px; }
.cf-info { display: flex; align-items: center; gap: 6px; }

/* ================= Gestione prenotazione (annulla / recupera) ================= */
.manage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; }
.manage-bar .t { font-weight: 800; margin-right: 4px; }
.mt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid; min-height: 44px; }
.mt-cancel { color: #a1271c; border-color: #e7b3ad; background: #fff5f4; }
.mt-recover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, #fff); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.mt-cancel.on, .mt-cancel:hover { background: #a1271c; color: #fff; border-color: #a1271c; }
.mt-recover.on, .mt-recover:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.manage-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.manage-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 820px) { .manage-grid { grid-template-columns: 1fr; } }
.card-cancel { border-top: 5px solid #a1271c; }
.card-recover { border-top: 5px solid var(--brand); }
.card-cancel h1, .card-recover h1, .help-card h2 { display: flex; align-items: center; gap: 10px; }
.card-cancel h1 .i { color: #a1271c; } .card-recover h1 .i { color: var(--brand); }
.help-card h2 { font-size: 1.05rem; margin-top: 0; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; }
.sub-row { padding-left: 26px !important; position: relative; }
.sub-row::before { content: ""; position: absolute; left: 12px; top: 8px; width: 8px; height: 10px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.h-cancel { display: flex; align-items: center; gap: 8px; color: #a1271c; }

/* Requisito di partecipazione (spunta che sblocca la prenotazione) */
.gate { background: #fff8e6; border: 1px solid #f0d58c; border-left: 5px solid #c27c0e; border-radius: 12px; padding: 16px 18px; margin: 0 0 22px; }
.gate h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.15rem; }
.gate .field.check { margin: 10px 0 0; }
.gate .field.check label { font-weight: 700; font-size: 1.02rem; }
.gate.has-error { border-color: #b42318; }
fieldset.steps { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.steps[hidden] { display: none; }
html.hc .gate { background: #fff; border: 2px solid #000; }

/* Cruscotto: sospensione prenotazioni */
.suspend-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-left: 5px solid #12a594; }
.suspend-box.is-suspended { border-left-color: #b42318; background: #fdecea; }
.suspend-box p { margin: 4px 0 0; }
.gate .gate-comune { margin: 12px 0 0 30px; max-width: 420px; }
.gate .gate-comune select { width: 100%; font-size: 1.05rem; }
@media (max-width: 520px) { .gate .gate-comune { margin-left: 0; } }

.print-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.print-tip label { font-weight: 700; }
.print-tip select { width: auto; flex: 1 1 280px; max-width: 460px; }
