/* Componenti condivisi. Regola di verità visiva: ombra e rilievo solo su ciò che si preme;
   le superfici che contengono informazioni sono piatte. Chip = filtri, segmented = sezioni. */

/* Pulsanti ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-control);
  border: 0; background: var(--sunken); color: var(--ink);
  font-weight: 590; font-size: var(--t-md); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-user-select: none; user-select: none;
}
.btn:hover { background: color-mix(in srgb, var(--sunken) 100%, var(--ink) 6%); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08), inset 0 1px 0 rgb(255 255 255 / .14); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--tinted { background: var(--brand-soft); color: var(--brand); }
.btn--tinted:hover { background: var(--brand-tint); }
.btn--quiet { background: transparent; color: var(--ink-2); }
.btn--quiet:hover { background: var(--sunken-2); }
.btn--link { background: none; color: var(--brand); padding: 0 6px; }
.btn--link:hover { background: none; opacity: .75; }
.btn--danger { background: var(--bad-soft); color: var(--bad); }
.btn--danger:hover { background: color-mix(in srgb, var(--bad-soft) 100%, var(--bad) 10%); }
.btn--danger-solid { background: var(--bad); color: #fff; }
.btn--sm { height: 30px; padding: 0 11px; font-size: var(--t-sm); border-radius: 9px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--lg { height: 50px; padding: 0 22px; font-size: var(--t-lg); border-radius: 14px; font-weight: 620; }
.btn--block { width: 100%; }
.btn--icon { width: 36px; padding: 0; }
.btn--icon.btn--sm { width: 30px; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--muted); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn--primary.is-busy::after { border-color: var(--brand-ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Campi --------------------------------------------------------------------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: var(--t-sm); font-weight: 590; color: var(--ink-2); }
.field > small { font-size: var(--t-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-control);
  border: 0; background: var(--sunken-2); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--line);
  font-size: var(--t-md); transition: box-shadow .18s var(--ease), background .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238E8E93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5-5 5 5M7 14l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input:hover, .select:hover, .textarea:hover { background-color: var(--sunken); }
.input:focus, .select:focus, .textarea:focus { background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--brand), var(--focus); outline: none; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--bad); }
.input--money { text-align: right; font-variant-numeric: tabular-nums; }
.field-error { color: var(--bad); font-size: var(--t-sm); font-weight: 590; }
.form-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-md); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
input[type="color"].input { padding: 4px; }

/* Ricerca */
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 32px; }

/* Segmented control (scegli UNA sezione) ------------------------------------- */
.seg { display: inline-flex; padding: 2px; gap: 0; border-radius: 10px; background: var(--sunken); position: relative; isolation: isolate; }
.seg button {
  height: 30px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink); font-weight: 560; font-size: var(--t-sm); cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.seg button + button { box-shadow: -1px 0 0 -0.5px var(--line); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); font-weight: 650; box-shadow: 0 3px 8px rgb(0 0 0 / .1), 0 0 0 .5px rgb(0 0 0 / .04); }
.seg button[aria-pressed="true"] + button { box-shadow: none; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #636366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: #636366; } }
.seg .count { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Chip-filtro (combinabili) */
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border-radius: var(--r-chip); border: 0; background: var(--sunken-2); box-shadow: inset 0 0 0 .5px var(--line);
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 560; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--canvas); box-shadow: none; }

/* Interruttore iOS ------------------------------------------------------------ */
.switch { position: relative; width: 51px; height: 31px; flex: none; appearance: none; -webkit-appearance: none; margin: 0;
  border-radius: 999px; background: var(--sunken); cursor: pointer; transition: background .25s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 1px 1px rgb(0 0 0 / .16); transition: transform .3s var(--bounce); }
.switch:checked { background: #34C759; }
.switch:checked::after { transform: translateX(20px); }

/* Stato: pallino + parola (mai solo colore) ------------------------------------ */
.status {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px;
  border-radius: var(--r-chip); font-size: var(--t-xs); font-weight: 640; white-space: nowrap;
  background: var(--sunken-2); color: var(--ink-2);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status svg { width: 12px; height: 12px; margin-left: -1px; }
.status:has(svg)::before { display: none; }
.status--ok { background: var(--ok-soft); color: var(--ok); }
.status--warn { background: var(--warn-soft); color: var(--warn); }
.status--bad { background: var(--bad-soft); color: var(--bad); }
.status--info { background: var(--info-soft); color: var(--info); }
.status--muted { background: var(--sunken-2); color: var(--muted); }

/* Gruppo: pallino colorato + nome */
.gtag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px;
  border-radius: var(--r-chip); background: color-mix(in srgb, var(--gc) 13%, transparent);
  color: var(--ink); font-size: var(--t-xs); font-weight: 650; white-space: nowrap;
}
.gtag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gc) 22%, transparent); }
.gtag--none { --gc: var(--faint); color: var(--muted); }
.gdot { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); display: inline-block; flex: none; }

/* Iniziali */
.avatar {
  --av: #8E8E93;
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--av) 60%, #fff), var(--av));
  color: var(--av-ink, #fff); font-size: 12.5px; font-weight: 650; letter-spacing: .02em; font-family: var(--font-round);
  text-shadow: 0 1px 1px rgb(0 0 0 / .12);
}
.avatar svg { width: 17px; height: 17px; }
.avatar--lg { width: 72px; height: 72px; font-size: 27px; }

/* Riquadro icona (stile Impostazioni di iOS) */
.tile { --tc: var(--brand); width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--tc); color: #fff; }
.tile svg { width: 18px; height: 18px; stroke-width: 2; }

/* Pila verticale e scelta singola a schede */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.opzione { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); transition: box-shadow .15s; }
.opzione:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.opzione input { accent-color: var(--brand); width: 18px; height: 18px; }
.opzione small { display: block; color: var(--muted); font-size: 12px; }

/* Superfici ----------------------------------------------------------------------- */
.panel { background: var(--surface); border-radius: var(--r-panel); min-width: 0; box-shadow: var(--hairline); }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  padding: 14px var(--s5) 12px;
}
.panel__head h2 { font-size: var(--t-lg); font-weight: 680; letter-spacing: -.02em; }
.panel__head p { font-size: var(--t-sm); color: var(--muted); margin-top: 1px; }
.panel__head + .list, .panel__head + .table-wrap, .panel__head + .panel__body { border-top: .5px solid var(--line); }
.panel__body { padding: var(--s5); }
.panel__foot { padding: 11px var(--s5); border-top: .5px solid var(--line); font-size: var(--t-sm); color: var(--muted); }

/* Card che si apre (premibile): unica ad avere rilievo */
.card-tap { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-tap); cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease); }
.card-tap:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.card-tap:active { transform: scale(.985); }

/* Numero in evidenza */
.figure-card { display: grid; grid-template-rows: 1fr auto; }
.figure-card__main { padding: 16px var(--s5) 14px; display: grid; gap: 6px; }
.figure-card__label { font-size: var(--t-sm); color: var(--muted); font-weight: 590; }
.figure-card__value { font-family: var(--font-display); font-size: var(--t-figure); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.figure-card__value small { font-family: var(--font-ui); font-size: var(--t-md); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.figure-card .panel__foot { display: flex; align-items: center; gap: var(--s2); }
.figure-card .panel__foot a { color: var(--brand); font-weight: 590; text-decoration: none; }
.figure-card .panel__foot a:hover { opacity: .75; }
.figure-card--alert .figure-card__value { color: var(--bad); }

/* Tabelle (stile elenco macOS) ---------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-md); }
.table th {
  text-align: left; font-weight: 590; font-size: var(--t-xs); color: var(--muted); letter-spacing: .01em;
  padding: 9px var(--s4); border-bottom: .5px solid var(--line); white-space: nowrap; background: var(--surface);
  position: sticky; top: 0; z-index: 1;
}
.table th:first-child, .table td:first-child { padding-left: var(--s5); }
.table th:last-child, .table td:last-child { padding-right: var(--s5); }
.table td { padding: 10px var(--s4); border-bottom: .5px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr:hover td { background: var(--sunken-2); }
.table .right { text-align: right; }
.table .who { display: flex; align-items: center; gap: var(--s3); min-width: 180px; color: inherit; }
.table .who b { display: block; font-weight: 590; }
.table .who small { display: block; color: var(--muted); font-size: var(--t-xs); }
.table th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.table th button:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
/* Comandi rari delle righe (annulla, modifica, elimina): compaiono passando sulla riga, come in macOS */
@media (hover: hover) {
  .table tbody tr .btn--quiet { opacity: 0; transition: opacity .15s var(--ease); }
  .table tbody tr:hover .btn--quiet, .table tbody tr:focus-within .btn--quiet { opacity: 1; }
}
.table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

/* Elenchi raggruppati (stile Impostazioni) */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: var(--s3); padding: 11px var(--s5); position: relative; }
.list > li + li::before { content: ""; position: absolute; top: 0; right: 0; left: var(--sep-left, var(--s5)); border-top: .5px solid var(--line); }
.list .grow { flex: 1; min-width: 0; }
.list b { font-weight: 590; }
.list small { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: 1px; }
.list a { text-decoration: none; }
.list a:hover b { color: var(--brand); }
.list > li > svg, .popover svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.chev { width: 14px; height: 14px; color: var(--faint); flex: none; stroke-width: 2.4; }

/* Schede (tabs) a segmented, sotto l'intestazione */
.tabs { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; border-radius: 10px; background: var(--sunken); overflow-x: auto; max-width: 100%; }
.tabs button {
  border: 0; background: none; height: 30px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  font-weight: 560; font-size: var(--t-sm); color: var(--ink); white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--surface); font-weight: 650; box-shadow: 0 3px 8px rgb(0 0 0 / .1), 0 0 0 .5px rgb(0 0 0 / .04); }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: #636366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button[aria-selected="true"] { background: #636366; } }

/* Vuoto e caricamento */
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--s10) var(--s6); color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); stroke-width: 1.5; margin-bottom: 4px; }
.empty b { color: var(--ink); font-size: var(--t-lg); font-weight: 650; letter-spacing: -.02em; }
.empty p { max-width: 360px; }
.empty .btn { margin-top: var(--s2); }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--sunken-2) 0, var(--sunken) 40%, var(--sunken-2) 80%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Caricamento "Liquid Dots" (HorizonX, MIT · Amicro): due gocce che si fondono */
.hx-dots { position: relative; width: 64px; height: 32px; margin: 0 auto; filter: url(#hx-goo); }
.hx-dots i { position: absolute; top: 4px; left: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); opacity: .85; animation: hx-dot 2s cubic-bezier(.65, 0, .35, 1) infinite; }
.hx-dots i + i { animation-direction: reverse; }
@keyframes hx-dot { 0%, 100% { transform: translateX(-16px); } 50% { transform: translateX(16px); } }
.loading { display: grid; place-items: center; min-height: 40vh; }

/* Pannello laterale (ispettore) -------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .22); z-index: 40; animation: fade .25s var(--ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(520px, calc(100vw - 20px)); z-index: 41; border-radius: 18px; overflow: hidden;
  background: var(--material-thick); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  box-shadow: var(--shadow-pop); display: grid; grid-template-rows: auto 1fr auto;
  animation: slide-in .42s var(--spring);
}
.drawer__head { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s5) var(--s6) var(--s4); }
.drawer__head .grow { flex: 1; min-width: 0; }
.drawer__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -.01em; }
.drawer__head p { color: var(--muted); font-size: var(--t-sm); margin-top: 2px; }
.drawer__body { overflow-y: auto; padding: 0 var(--s6) var(--s5); }
.drawer__body .list { background: var(--surface); border-radius: 14px; margin: 0 !important; box-shadow: var(--hairline); }
.drawer__foot { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; padding: var(--s4) var(--s6); border-top: .5px solid var(--line); }
@keyframes slide-in { from { transform: translateX(calc(100% + 20px)); } }
@keyframes fade { from { opacity: 0; } }

/* Finestra (alert / modulo) */
.dialog {
  position: fixed; left: 50%; top: 14vh; translate: -50% 0; z-index: 51; width: min(460px, calc(100vw - 32px));
  max-height: 76vh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  background: var(--material-thick); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: 18px; box-shadow: var(--shadow-pop); animation: pop .32s var(--spring);
}
.dialog--wide { width: min(680px, calc(100vw - 32px)); }
.dialog__head { padding: var(--s6) var(--s6) 0; }
.dialog__head h2 { font-size: 20px; font-weight: 700; }
.dialog__body { padding: var(--s3) var(--s6) var(--s5); overflow-y: auto; color: var(--ink-2); }
.dialog__body > p + p { margin-top: var(--s2); }
.dialog__foot { display: flex; justify-content: flex-end; gap: var(--s2); padding: 0 var(--s6) var(--s5); }
.dialog__foot .btn { min-width: 96px; height: 38px; }
.dialog-scrim { z-index: 50; }
@keyframes pop { from { opacity: 0; transform: scale(1.06); } }

/* Avvisi in linea */
.note { display: flex; gap: var(--s3); align-items: flex-start; padding: 12px var(--s4); border-radius: 12px; background: var(--sunken-2); font-size: var(--t-md); color: var(--ink-2); }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note--warn { background: var(--warn-soft); color: var(--warn); }
.note--bad { background: var(--bad-soft); color: var(--bad); }
.note--ok { background: var(--ok-soft); color: var(--ok); }
.note--info { background: var(--info-soft); color: var(--info); }
.note b { color: inherit; }

/* Toast (HUD) */
.toasts { position: fixed; bottom: var(--s6); left: 50%; translate: -50% 0; z-index: 60; display: grid; gap: var(--s2); justify-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--canvas); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-weight: 590; font-size: var(--t-md); box-shadow: var(--shadow-pop);
  pointer-events: auto; animation: toast .45s var(--spring); max-width: min(560px, calc(100vw - 32px));
}
.toast svg { width: 18px; height: 18px; flex: none; color: #30D158; stroke-width: 2.4; }
.toast--bad svg { color: #FF6961; }
.toast button { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
@keyframes toast { from { opacity: 0; transform: translateY(16px) scale(.92); } }

/* Menu a comparsa */
.popover {
  position: absolute; z-index: 30; min-width: 280px; padding: 6px; border-radius: 14px;
  background: var(--material-thick); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  box-shadow: var(--shadow-pop); animation: pop .22s var(--spring);
}
.popover a, .popover button.item {
  display: flex; gap: var(--s3); align-items: center; width: 100%; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; border: 0; background: none; text-align: left; cursor: pointer;
}
.popover a:hover, .popover a.is-active, .popover button.item:hover { background: var(--brand); color: #fff; }
.popover a:hover small, .popover a.is-active small, .popover a:hover svg, .popover a.is-active svg, .popover button.item:hover small, .popover button.item:hover svg { color: rgb(255 255 255 / .8); }
.popover small { display: block; color: var(--muted); font-size: var(--t-xs); }
.popover .popover__empty { padding: var(--s4); color: var(--muted); font-size: var(--t-sm); text-align: center; }
.popover__title { padding: 8px 10px 4px; font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.drawer__foot[hidden] { display: none; }

/* Hero con gradiente HorizonX (la firma) ----------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; border-radius: var(--r-hero);
  background: radial-gradient(120% 140% at 0% 0%, #EE6A71, #C21F2B 45%, #5E0A12); }
.hero > .hx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(40 0 6 / 0) 30%, rgb(40 0 6 / .38)), linear-gradient(90deg, rgb(40 0 6 / .22), transparent 65%); }
.hero :is(small, .hero__label) { color: rgb(255 255 255 / .82); }
.hero .btn { background: rgb(255 255 255 / .2); color: #fff; -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .35); }
.hero .btn:hover { background: rgb(255 255 255 / .3); }
.hero .btn--primary { background: #fff; color: #A0141E; box-shadow: 0 4px 14px rgb(0 0 0 / .18); }
.hero .btn--primary:hover { background: rgb(255 255 255 / .9); }
.hero .gtag { background: rgb(255 255 255 / .18); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero .gtag::before { box-shadow: 0 0 0 2px rgb(255 255 255 / .9); }
.hero .status { background: rgb(255 255 255 / .2); color: #fff; }
.hero__label { font-size: var(--t-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.hero__big { font-family: var(--font-display); font-weight: 400; line-height: .95; letter-spacing: -.02em; }

/* Barra di avanzamento ad anello (posti occupati) */
.ring { --p: 0; --c: var(--brand); width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--sunken) 0); }
.ring::before { content: attr(data-v); width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.kbd { font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 5px; padding: 1px 6px; background: var(--sunken-2); box-shadow: inset 0 0 0 .5px var(--line); font-family: var(--font-ui); }

/* Riquadro che chiede le notifiche */
.m-push { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-panel); background: var(--surface); }
.m-push__head { display: flex; align-items: center; gap: 12px; }
.m-push__head b { font-size: 17px; font-weight: 620; }
.m-push p { color: var(--ink-2); line-height: 1.4; }
@media (min-width: 721px) { .m-push .btn--block { width: auto; justify-self: start; } } /* sul computer il pulsante non occupa tutta la riga */
.m-push__passi { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.4; }
.m-push__passi svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; color: var(--info); }
