@font-face { font-family: 'Lobster'; font-style: normal; font-weight: 400; font-display: swap; src: url(/caratteri/lobster-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url(/caratteri/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url(/caratteri/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url(/caratteri/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url(/caratteri/nunito-latin-800-normal.woff2) format('woff2'); }
:root {
  /* Layout: lato cliente in una colonna da telefono; pannello e stampante su griglia larga.
     Colori presi dal logo: marrone grano, rosso pomodoro, carta da forno. */
  --bg: #f6efe4;
  --card: #ffffff;
  --ink: #33241a;
  --muted: #7b6758;
  --brand: #8a4b1f;
  --accent: #b8321f;
  --line: #e8dccb;
  --soft: #f1e5d4;
  --ok: #2e7d4f;
  --warn: #a8670f;
  --bad: #b42318;
  --font-display: 'Lobster', 'Georgia', cursive;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Barra di prova ---------- */
#testbar { background: var(--ink); color: #f3e9dc; font-size: 13px; position: sticky; top: 0; z-index: 30; }
.tb-inner { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tb-tag { background: var(--accent); color: #fff; font-weight: 800; letter-spacing: .06em; font-size: 11px; padding: 3px 8px; border-radius: 4px; }
.tb-clock b { font-size: 14px; }
.tb-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#testbar button { background: #4a3727; border: 1px solid #6a523d; color: #f3e9dc; border-radius: 6px; padding: 4px 9px; font-size: 13px; }
#testbar button:hover { background: #5b4430; }
#testbar button.danger { border-color: #9c3a2c; }
#testbar input { background: #4a3727; border: 1px solid #6a523d; color: #f3e9dc; border-radius: 6px; padding: 2px 6px; font-size: 13px; color-scheme: dark; }
.tb-set { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Scelta della vista ---------- */
#views { max-width: 1100px; margin: 14px auto 0; padding: 0 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; color: var(--brand); }
.seg button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }

#app { max-width: 1100px; margin: 0 auto; padding: 14px 16px 60px; }

/* ---------- Pill e badge ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e9e0d3; color: var(--ink); vertical-align: 1px; }
.pill.ok { background: #dcefe3; color: var(--ok); }
.pill.warn { background: #f8ead0; color: var(--warn); }
.pill.bad { background: #f8dcd8; color: var(--bad); }
.pill.brand { background: var(--soft); color: var(--brand); }
#testbar .pill { background: #5b4430; color: #f3e9dc; }
#testbar .pill.ok { background: #2e5b3f; color: #d8f2e1; }
#testbar .pill.bad { background: #7a2a20; color: #ffe3de; }

/* ---------- Telefono del cliente ---------- */
.phone { max-width: 440px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(70, 40, 15, .12); position: relative; }
.phone-in { padding: 18px 16px 24px; display: grid; gap: 14px; }
.phone-caption { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.brand-head { text-align: center; display: grid; justify-items: center; gap: 4px; }
.brand-head img { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(80, 40, 10, .14); }
.brand-head h1 { font-family: var(--font-display); font-weight: 400; color: var(--brand); font-size: 30px; }
.brand-head p { margin: 0; color: var(--muted); font-size: 14px; }
.h-script { font-family: var(--font-display); font-weight: 400; color: var(--accent); font-size: 26px; text-align: center; }
.card { background: var(--card); border-radius: 14px; padding: 4px 14px; box-shadow: 0 1px 6px rgba(80, 40, 10, .07); }
.card-pad { padding: 14px; }
.grp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 0 6px; border-bottom: 2px solid var(--line); }
.grp-head h3 { font-size: 16px; color: var(--brand); }
.price { font-weight: 800; color: var(--accent); white-space: nowrap; }
.price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 12px; }
.tags span { background: var(--soft); border-radius: 8px; padding: 4px 9px; font-size: 14px; }
.mrow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mrow:last-child { border-bottom: 0; }
.mnote { color: var(--muted); font-size: 12px; line-height: 1.45; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 800; font-size: 16px; background: var(--accent); color: #fff; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn.block { width: 100%; }
.btn.big { font-size: 19px; padding: 16px 18px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.quiet { background: var(--soft); color: var(--brand); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.link { background: none; border: 0; color: var(--brand); font-weight: 700; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.back { background: none; border: 0; color: var(--brand); font-weight: 800; padding: 0; justify-self: start; }
.step-title { font-size: 21px; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Scelta tavolo / asporto */
.opts { display: grid; gap: 10px; }
.opt { text-align: left; border: 2px solid var(--line); border-radius: 14px; background: var(--card); padding: 14px; display: grid; gap: 4px; }
.opt b { font-size: 18px; color: var(--brand); }
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px #f6d8d2; }
.opt[disabled] { opacity: .55; cursor: not-allowed; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 800; font-size: 14px; }
.field input, .field textarea, .field select { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 16px; width: 100%; }
.field textarea { min-height: 70px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }

/* Prodotti */
.prow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.prow:last-child { border-bottom: 0; }
.pname { font-weight: 700; font-size: 15px; }
.pmeta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 2px; }
.badge { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--brand); }
.badge.conf { background: #f8ead0; color: var(--warn); }
.badge.adult { background: #ece4f6; color: #5b3c86; }
.badge.today { background: #dcefe3; color: var(--ok); }
.badge.off { background: #eee; color: #777; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 20px; font-weight: 800; color: var(--accent); }
.stepper input { width: 42px; text-align: center; border: 0; font-weight: 800; font-size: 16px; background: transparent; padding: 0; }
.prow.has .stepper { border-color: var(--accent); background: #fff6f4; }
.sec-title { font-family: var(--font-display); font-weight: 400; color: var(--accent); font-size: 22px; margin: 6px 0 -4px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 2px; color: var(--brand); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.sticky-cta { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, rgba(246, 239, 228, 0)); padding: 14px 16px 16px; margin: 0 -16px -24px; display: grid; gap: 8px; }
.cta-sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.cta-sum b { color: var(--ink); font-size: 18px; }
.err { background: #fbe4e0; color: var(--bad); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.info { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.info.ok { background: #e3f2e8; color: #1f5a37; }
.info.warn { background: #f8ead0; color: #6e4508; }

/* Riepilogo */
.sum-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sum-row:last-child { border-bottom: 0; }
.sum-tot { display: flex; justify-content: space-between; padding: 10px 0 4px; font-weight: 800; font-size: 17px; }

/* Orari di ritiro */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.days button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 11px; font-weight: 800; font-size: 14px; color: var(--brand); }
.days button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.days button small { display: block; font-weight: 600; font-size: 11px; opacity: .8; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.slots button { border: 1.5px solid #cfe6d7; background: #f1f9f4; color: #1f5a37; border-radius: 9px; padding: 8px 0; font-weight: 800; font-size: 15px; }
.slots button small { display: block; font-size: 10px; font-weight: 700; }
.slots button[aria-pressed="true"] { background: var(--ok); color: #fff; border-color: var(--ok); }
.slots button.full { background: #f6f1ea; border-color: var(--line); color: #a8998b; text-decoration: line-through; }
.slots button.full[aria-pressed="true"] { background: var(--bad); color: #fff; text-decoration: none; border-color: var(--bad); }
.slots button[disabled] { cursor: not-allowed; }
.svc-label { font-weight: 800; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Conferma */
.done { text-align: center; display: grid; gap: 6px; justify-items: center; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.done .tick.x { background: var(--bad); }
.done h2 { font-size: 24px; }
.ordnum { font-family: var(--font-display); font-size: 44px; color: var(--accent); line-height: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }

/* Modale */
.modal-bg { position: fixed; inset: 0; background: rgba(40, 25, 12, .45); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--card); border-radius: 18px; max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; padding: 18px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal h2 { font-size: 20px; }
.policy { display: grid; gap: 6px; }
.policy p { margin: 0; }
.policy h3 { font-size: 14px; color: var(--brand); margin: 6px 0 0; }
.policy ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.privacy-box { font-size: 13px; }
.privacy-line { margin: 0; text-align: center; }
.nowrap { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.chips button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.mod-sec { display: grid; gap: 6px; }
.mod-sec h3 { font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.mod-sec h3 small { color: var(--muted); font-weight: 600; }
.mod-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.typecards { display: grid; gap: 6px; }
.typecards button { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.typecards button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px #f6d8d2; }

/* ---------- Pannello ---------- */
.panel { display: grid; gap: 14px; }
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.p-head h2 { font-size: 22px; }
.p-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ptabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); }
.ptabs button { border: 0; background: none; padding: 9px 12px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ptabs button[aria-pressed="true"] { color: var(--brand); border-bottom-color: var(--accent); }
.pbox { background: var(--card); border-radius: 14px; padding: 14px; box-shadow: 0 1px 6px rgba(80, 40, 10, .07); display: grid; gap: 10px; }
.pbox h3 { font-size: 16px; color: var(--brand); }
.toast { background: #e3f2e8; color: #1f5a37; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.toast.bad { background: #fbe4e0; color: var(--bad); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 6px rgba(80, 40, 10, .07); }
.tile b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--muted); }

.cyc { display: grid; grid-template-columns: 96px minmax(80px, 1fr) 62px; gap: 4px 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--soft); font-size: 14px; }
.cyc .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.cyc .bar { height: 12px; border-radius: 6px; background: #efe6da; overflow: hidden; position: relative; }
.cyc .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ok); border-radius: 6px; }
.cyc .bar i.mid { background: #d49a2a; }
.cyc .bar i.full { background: var(--accent); }
.cyc .bar .tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .9); }
.cyc .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.cyc .d { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.cyc .d b { color: var(--ink); }
.cyc.past { opacity: .45; }
.cyc.now { background: #fff6e6; border-radius: 8px; }
.cyc.over .n { color: var(--bad); }
.legend { font-size: 12px; color: var(--muted); }

.olist { display: grid; gap: 10px; }
.ocard { background: var(--card); border-radius: 12px; padding: 12px; box-shadow: 0 1px 6px rgba(80, 40, 10, .07); display: grid; gap: 6px; border-left: 5px solid var(--ok); }
.ocard.tavolo { border-left-color: #3a6ea5; }
.ocard.tel { border-left-color: var(--warn); }
.ocard.annullato { opacity: .6; border-left-color: #999; }
.ocard .top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ocard .top b { font-size: 17px; }
.ocard .items { font-size: 13px; color: var(--muted); }
.ocard .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sbtn { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 13px; color: var(--brand); }
.sbtn.bad { color: var(--bad); border-color: #f0c9c2; }

.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.switch:last-child { border-bottom: 0; }
.tgl { width: 50px; height: 28px; border-radius: 999px; border: 0; background: #d9cfc2; position: relative; flex: none; }
.tgl::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tgl[aria-pressed="true"] { background: var(--ok); }
.tgl[aria-pressed="true"]::after { left: 25px; }
.tgl.red[aria-pressed="true"] { background: var(--bad); }
.avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 18px; }
.avrow { display: grid; gap: 6px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.seg.sm { gap: 4px; }
.seg.sm button { padding: 4px 10px; font-size: 13px; }
.seg.sm button.on[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.seg.sm button.oggi[aria-pressed="true"] { background: var(--warn); border-color: var(--warn); }
.seg.sm button.off[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.set-grid .field input { padding: 8px 10px; }

/* ---------- Stampante ---------- */
.printer { display: grid; gap: 14px; }
.ticket-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ticket { background: #fffdf8; width: max-content; max-width: 100%; overflow-x: auto; padding: 14px 14px 18px; border-radius: 4px; box-shadow: 0 2px 10px rgba(60, 40, 20, .12); }
.ticket .cap { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.ticket pre { margin: 0; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.35; color: #1d1611; }
.ticket.annullato pre { color: var(--bad); }
.queue-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; align-items: center; }

/* ---------- Regole ---------- */
.rules { max-width: 760px; display: grid; gap: 14px; }
.rules section { background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: 0 1px 6px rgba(80, 40, 10, .07); }
.rules h3 { color: var(--brand); font-size: 17px; margin-bottom: 6px; }
.rules ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.rules li { max-width: 68ch; }

@media (max-width: 520px) {
  #app { padding: 10px 10px 50px; }
  .phone { border-radius: 0; border-left: 0; border-right: 0; }
  .cyc { grid-template-columns: 84px 1fr 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.orow { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-bottom: 1px dashed var(--line); padding: 9px 0; text-align: left; font-weight: 700; color: var(--ink); }
.orow:last-child { border-bottom: 0; }
.pbox .sticky-cta { margin: 0 -14px -14px; padding: 12px 14px 14px; background: linear-gradient(to top, var(--card) 70%, rgba(255, 255, 255, 0)); }
.pbox .step-title { font-size: 18px; }
#testbar button.tb-printer { font-weight: 800; background: #2e5b3f; border-color: #4f8a63; color: #d8f2e1; }
#testbar button.tb-printer.on { background: #4a3727; border-color: #9c3a2c; color: #f3e9dc; }
.pbox.live > h3::before { content: '● '; color: var(--ok); }
.err a { color: inherit; font-weight: 800; text-decoration: underline; }
.ticket.avviso pre { color: var(--bad); font-weight: 700; }
.tb-full { flex-basis: 100%; background: var(--bad); color: #fff; font-weight: 800; padding: 6px 10px; border-radius: 6px; }

/* Impostazioni avanzate: bloccate finché non si sbloccano */
.pbox.adv-lock { border: 2px dashed var(--line); }
.pbox.adv-open { border: 2px solid var(--accent); }
.adv-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tgl:disabled { opacity: .45; cursor: not-allowed; }
.field input:disabled, .field select:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.check input:disabled + span { opacity: .7; }
.set-grid .field { align-content: start; }

/* ---------- Allarme internet sul pannello e mail al titolare ---------- */
.alarm { background: #fbe4e0; border: 2px solid var(--bad); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; color: #5c130c; }
.alarm p { margin: 0; font-size: 14px; }
.alarm .small { font-size: 13px; }
.alarm-head { display: flex; align-items: center; gap: 8px; color: var(--bad); font-weight: 900; letter-spacing: .02em; }
.alarm-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: alarm-pulse 1.2s ease-in-out infinite; }
.alarm.muted { border-style: dashed; }
.alarm.muted .alarm-dot { animation: none; opacity: .5; }
.alarm-acts { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.alarm .btn { background: var(--bad); padding: 10px 18px; }
.alarm-solo { max-width: 520px; margin: 20px auto 0; }
@keyframes alarm-pulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .alarm-dot { animation: none; } }
.mail-list { display: grid; gap: 8px; }
.mail { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.mail.giu { border-left: 4px solid var(--bad); }
.mail.su { border-left: 4px solid var(--ok); }
.mail-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }

/* Sistema vero: pagina del cliente a tutto schermo, pannello senza barra di prova */
html[data-mode="sito"] #app { padding: 0 0 40px; }
.phone.live { max-width: 560px; border: 0; border-radius: 0; box-shadow: none; overflow: visible; background: transparent; }
.site-foot { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; padding: 12px 0 0; border-top: 1px solid var(--line); }
.site-foot a { color: inherit; }
.site-foot .link { font-size: inherit; }
.loading { text-align: center; color: var(--muted); padding: 48px 0; }
