/* VULCANIA — area riservata. Stessa palette e stessi font del sito, pensata prima di tutto per il telefono. */

@font-face { font-family: "Akira"; src: url("/assets/fonts/akira-expanded.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --arancio: #E95A0C; --grigio: #E1E1E1; --antracite: #282828;
  --nero: #151413; --pietra: #1d1c1b; --pietra-2: #343332;
  --linea: rgba(225, 225, 225, .16); --linea-2: rgba(225, 225, 225, .32);
  --testo: #E1E1E1; --testo-2: #aeaba6; --testo-3: #8f8c87;
  --display: "Akira", "Arial Black", Impact, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 4vw, 40px);
  --grana: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--nero); color: var(--testo); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; background: var(--grana); opacity: .05; mix-blend-mode: overlay; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--arancio); outline-offset: 3px; }
::selection { background: var(--arancio); color: var(--nero); }

.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95; text-transform: uppercase; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.kicker { color: var(--arancio); }
b { font-weight: 700; color: #fff; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .8em 1.4em; font: 700 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--arancio); color: var(--nero); }
.btn--cta:hover { background: #ff6a17; }
.btn--ghost { border-color: var(--linea-2); color: var(--testo); }
.btn--ghost:hover { border-color: var(--grigio); }
.btn--sm { min-height: 42px; padding: .7em 1.1em; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- campi ---------- */
.campo { display: grid; gap: 6px; }
.campo span { color: var(--testo-2); }
.campo input { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--pietra); border: 1px solid var(--linea-2); border-radius: 0; font-size: 1rem; }
.campo input:focus { outline: none; border-color: var(--arancio); box-shadow: 0 0 0 3px rgba(233, 90, 12, .18); }
.msg { min-height: 1.4em; color: var(--testo-2); }
.msg.is-errore { color: #ff7a33; }
.msg.is-ok { color: var(--grigio); }

/* ---------- accesso ---------- */
.accesso { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 32px var(--pad);
  background: radial-gradient(60vmax 60vmax at 50% 30%, rgba(233, 90, 12, .14), transparent 60%), var(--nero); }
.accesso__box { position: relative; width: min(100%, 400px); display: grid; gap: 18px; padding: 34px 26px 26px; background: rgba(29, 28, 27, .86); border: 1px solid var(--linea); }
.accesso__logo { width: 72px; height: 72px; margin-bottom: 4px; }
.accesso__box h1 { font-size: clamp(2rem, 10vw, 2.6rem); margin-bottom: 6px; }
.accesso__box .btn { margin-top: 6px; }
.accesso__torna { color: var(--testo-3); text-decoration: none; }
.accesso__torna:hover { color: var(--grigio); }
.cross { position: absolute; width: 12px; height: 12px; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--arancio); }
.cross::before { left: 5.5px; top: 0; width: 1px; height: 12px; }
.cross::after { top: 5.5px; left: 0; height: 1px; width: 12px; }
.cross--tl { top: -6px; left: -6px; } .cross--tr { top: -6px; right: -6px; } .cross--bl { bottom: -6px; left: -6px; } .cross--br { bottom: -6px; right: -6px; }

/* ---------- pannello ---------- */
.app { min-height: 100dvh; padding-bottom: 120px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pad); padding-top: max(10px, env(safe-area-inset-top)); background: rgba(21, 20, 19, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.top__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.top__logo img { width: 34px; height: 34px; flex: none; }
.top__logo span { display: grid; line-height: 1.1; }
.top__logo b { font-size: .95rem; }
.top__logo i { font-style: normal; font-size: .6rem; color: var(--testo-3); }
.top__dx { display: flex; align-items: center; gap: 8px; }
.chip { padding: 5px 9px; border: 1px solid var(--linea); color: var(--testo-2); font-size: .6rem; white-space: nowrap; }
.chip b { color: var(--arancio); font-weight: 400; }
.icona { display: grid; place-items: center; width: 40px; height: 40px; color: var(--testo-3); border: 1px solid transparent; }
.icona svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icona:hover { color: var(--grigio); border-color: var(--linea); }
.icona.is-attivo { color: var(--arancio); border-color: rgba(233, 90, 12, .5); }
.esci { min-height: 40px; padding: 0 10px; color: var(--testo-2); font-size: .66rem; }
.esci:hover { color: var(--arancio); }

.schede { display: flex; gap: 0; padding: 0 max(var(--pad), calc((100% - 760px) / 2 + var(--pad) - 12px)); border-bottom: 1px solid var(--linea); overflow-x: auto; scrollbar-width: none; }
.schede a { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 12px 14px; font: 400 .82rem/1 var(--display); text-decoration: none; color: var(--testo-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.schede a .mono { font-size: .62rem; }
.schede a[aria-current="page"] { color: var(--grigio); border-color: var(--arancio); }
.schede a[aria-current="page"] .mono { color: var(--arancio); }

.vista { max-width: 760px; margin: 0 auto; padding: 28px var(--pad) 0; }
.testa { display: grid; gap: 10px; margin-bottom: 24px; }
.testa h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
.testa p:not(.mono) { color: var(--testo-2); max-width: 60ch; }
.stato-pub { color: var(--testo-3); }

/* gruppi e interruttori */
.gruppo { margin-bottom: 18px; border: 1px solid var(--linea); background: var(--pietra); }
.gruppo__titolo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--linea); color: var(--testo-2); }
.gruppo__nota { padding: 10px 16px 0; color: var(--testo-3); font-size: .85rem; }
.voce { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--linea); }
.gruppo__titolo + .voce, .gruppo__nota + .voce { border-top: 0; }
.voce--figlia { padding-left: 34px; position: relative; }
.voce--figlia::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 50%; width: 9px; border-left: 1px dashed var(--linea-2); border-bottom: 1px dashed var(--linea-2); }
.voce__testo { flex: 1; min-width: 0; }
.voce__nome { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.voce__desc { color: var(--testo-3); font-size: .88rem; line-height: 1.4; margin-top: 2px; }
.voce.is-spenta .voce__nome { color: var(--testo-3); text-decoration: line-through; text-decoration-color: rgba(233, 90, 12, .6); }
.voce.is-bloccata { opacity: .45; }
.voce.is-cambiata .voce__nome::after { display: inline-block; text-decoration: none; content: "DA PUBBLICARE"; font: 400 .56rem/1 var(--mono); letter-spacing: .14em; color: var(--arancio); padding: 3px 5px; border: 1px dashed rgba(233, 90, 12, .6); }

.switch { /* interruttore in vetro, stile iPhone, con il magma dentro quando è acceso */
  position: relative; flex: none; width: 64px; height: 36px; border-radius: 999px; isolation: isolate;
  border: 1px solid rgba(225, 225, 225, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)), rgba(15, 14, 13, .65);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 1px 0 rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  transition: border-color .35s ease, box-shadow .45s ease; }
/* il riempimento acceso: arancione lucido con un riflesso in alto */
.switch::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transform: scale(.85); transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 48%), linear-gradient(180deg, #ff7b30, #E95A0C 55%, #c44805);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(120, 30, 0, .45); }
/* la manopola: una goccia di vetro, con luce speculare e ombra morbida */
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 999px;
  background: radial-gradient(circle at 34% 28%, #fff 0 8%, rgba(255, 255, 255, .92) 22%, #dcd8d3 62%, #b8b2ab 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .35), inset 0 -2px 3px rgba(0, 0, 0, .14), inset 0 1px 1px #fff;
  transition: transform .42s cubic-bezier(.3, 1.45, .5, 1), width .22s cubic-bezier(.2, .7, .2, 1), background .3s; }
.switch:hover { border-color: rgba(225, 225, 225, .26); }
.switch[aria-checked="true"] { border-color: rgba(255, 140, 70, .55); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 0 18px rgba(233, 90, 12, .35), 0 0 0 1px rgba(233, 90, 12, .15); }
.switch[aria-checked="true"]::before { opacity: 1; transform: none; }
.switch[aria-checked="true"]::after { transform: translateX(28px); }
/* premendo, la manopola si allunga come su iPhone */
.switch:active::after { width: 34px; }
.switch[aria-checked="true"]:active::after { transform: translateX(22px); }
.switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(233, 90, 12, .45), inset 0 2px 4px rgba(0, 0, 0, .65); }
.switch:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.6); }
.switch:disabled::after { box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: reduce) { .switch::before, .switch::after { transition: none; } }

.nota-fissa { color: var(--testo-3); padding: 4px 2px 0; line-height: 1.6; }

.cantiere { position: relative; display: grid; gap: 8px; padding: 26px 22px; border: 1px dashed var(--linea-2);
  background: repeating-linear-gradient(-45deg, rgba(233, 90, 12, .06) 0 14px, transparent 14px 28px); }
.cantiere .mono { color: var(--arancio); }
.cantiere p:not(.mono) { color: var(--testo-2); }

.scheda-form { display: grid; gap: 16px; max-width: 420px; }

/* barra di pubblicazione */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px var(--pad); padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--antracite); border-top: 2px solid var(--arancio); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
  animation: su .25s cubic-bezier(.2, .7, .2, 1); }
.barra b { color: var(--arancio); }
.barra > div { display: flex; gap: 8px; margin-left: auto; }
@keyframes su { from { transform: translateY(100%); } }

.avviso { position: fixed; left: 50%; bottom: 96px; white-space: nowrap; z-index: 40; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 16px; background: var(--grigio); color: var(--nero); font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: su .25s cubic-bezier(.2, .7, .2, 1); }
.avviso a { color: var(--nero); margin-left: 10px; }
.avviso.is-errore { background: var(--arancio); }

/* cronologia */
.diario { width: min(100% - 24px, 560px); max-height: min(100dvh - 48px, 720px); padding: 0; border: 1px solid var(--linea-2); background: var(--pietra); color: var(--testo); }
.diario::backdrop { background: rgba(10, 10, 10, .72); backdrop-filter: blur(3px); }
.diario__box { position: relative; padding: 26px 22px 22px; display: grid; gap: 8px; }
.diario h2 { font-size: 1.6rem; margin-bottom: 12px; }
.diario__lista li { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--linea); }
.diario__lista .quando { color: var(--testo-3); font-size: .62rem; }
.diario__lista .cosa { font-size: .94rem; }
.diario__lista .cosa b { color: var(--grigio); }
.diario__lista .on { color: var(--arancio); }
.diario__lista .off { color: var(--testo-3); }
.x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; color: var(--testo-2); font-size: 1.1rem; }
.x:hover { color: var(--arancio); }

@media (max-width: 420px) {
  .chip { display: none; }
  .schede { padding: 0; }
  .schede a { flex: 1 0 auto; padding: 15px 4px 13px; font-size: .62rem; }
  .schede a .mono { display: none; }
  .barra .barra__extra { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }

/* ==========================================================================
   TRAINING — regia
   ========================================================================== */
.btn--xl { min-height: 60px; padding: 1em 1.8em; font-size: .9rem; }
.tr-blocco { display: grid; gap: 14px; padding: 20px 18px; margin-bottom: 18px; border: 1px solid var(--linea); background: var(--pietra); }
.tr-riga { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.tr-etich { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; color: var(--testo-2); }
.tr-etich b { color: var(--arancio); font-weight: 400; }
.tr-etich__dx { margin-left: auto; color: var(--testo-3); }
.tr-etich__dx button { color: var(--testo-2); font: inherit; letter-spacing: inherit; }
.tr-etich__dx button:hover { color: var(--arancio); }
.tr-mod { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tr-modo { display: grid; gap: 6px; text-align: left; padding: 14px; border: 1px solid var(--linea-2); background: var(--nero); }
.tr-modo b { font-size: 1rem; }
.tr-modo span { color: var(--testo-3); font-size: .84rem; line-height: 1.35; }
.tr-modo[aria-checked="true"] { border-color: var(--arancio); box-shadow: inset 0 0 0 1px var(--arancio); background: rgba(233, 90, 12, .08); }
.tr-modo[aria-checked="true"] b { color: var(--arancio); }
.tr-seg { display: flex; border: 1px solid var(--linea-2); }
.tr-seg button { flex: 1; min-height: 46px; font: 700 .72rem/1 var(--mono); letter-spacing: .12em; color: var(--testo-2); }
.tr-seg button + button { border-left: 1px solid var(--linea-2); }
.tr-seg button[aria-checked="true"] { background: var(--arancio); color: var(--nero); }
.tr-cerca { display: flex; gap: 8px; }
.tr-cerca input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; background: var(--nero); border: 1px solid var(--linea-2); font-size: 1rem; border-radius: 0; }
.tr-cerca input:focus { outline: none; border-color: var(--arancio); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chip { min-height: 42px; padding: 8px 14px; border: 1px solid var(--linea-2); background: var(--nero); font-weight: 700; color: var(--testo-2); transition: background .15s, color .15s, border-color .15s; }
.tr-chip.is-on { background: var(--arancio); border-color: var(--arancio); color: var(--nero); }
.tr-vuoto { color: var(--testo-3); }
.tr-avviso { padding: 10px 12px; border-left: 2px solid var(--arancio); background: rgba(233, 90, 12, .08); color: var(--testo-2); font-size: .9rem; }
.tr-crea { margin-top: 6px; }
.tr-archivio li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linea); }
.tr-archivio li .mono { grid-column: 1; color: var(--testo-3); }
.tr-archivio li > span:nth-child(2) { grid-column: 1; }
.tr-archivio__az { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 6px; }
.tr-elimina { width: 38px; height: 38px; color: var(--testo-3); border: 1px solid transparent; }
.tr-elimina:hover { color: var(--arancio); border-color: rgba(233, 90, 12, .5); }

.tr-testa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tr-azioni { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-sotto { color: var(--testo-3); margin-top: 4px; }
.tr-rete--ok { color: #8fbf7a; } .tr-rete--inv { color: var(--grigio); } .tr-rete--off { color: var(--arancio); }
.tr-scene { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 0 14px; margin-bottom: 16px; border-bottom: 1px dashed var(--linea-2); }
.tr-scene > .mono { color: var(--testo-3); margin-right: 4px; }
.tr-scene button { min-height: 36px; padding: 0 10px; border: 1px solid var(--linea); font: 400 .64rem/1 var(--mono); letter-spacing: .1em; color: var(--testo-2); }
.tr-scene button[aria-pressed="true"] { border-color: var(--arancio); color: var(--arancio); }

.tr-passo { display: grid; gap: 14px; padding: 22px 18px; margin-bottom: 18px; border: 1px solid var(--arancio); background: linear-gradient(180deg, rgba(233, 90, 12, .08), transparent 60%), var(--pietra); }
.tr-passo h3 { font-size: clamp(1.5rem, 6vw, 2rem); }
.tr-passo > p:not(.mono) { color: var(--testo-2); }
.tr-bottoni { display: flex; flex-wrap: wrap; gap: 10px; }
.tr-estratto, .tr-vince { display: grid; gap: 6px; padding: 14px; background: var(--nero); border: 1px dashed rgba(233, 90, 12, .6); }
.tr-estratto .mono, .tr-vince .mono { color: var(--arancio); }
.tr-estratto b, .tr-vince b { font-size: clamp(1.4rem, 6vw, 2.2rem); }
.tr-vivi { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-vivi span { padding: 4px 8px; border: 1px solid var(--linea); font-size: .9rem; color: var(--testo-2); }
.tr-opzioni { display: grid; gap: 8px; }
.tr-opz { position: relative; display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--linea-2); background: var(--nero); }
.tr-opz b { font-size: 1rem; }
.tr-opz span { color: var(--testo-3); font-size: .88rem; }
.tr-opz i { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: .56rem; color: var(--arancio); }
.tr-opz.is-consigliata { border-color: var(--arancio); }
.tr-opz:hover { border-color: var(--grigio); }
.tr-coppie li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--linea); }
.tr-coppie button { width: 36px; height: 36px; color: var(--testo-3); }

.tr-partite { display: grid; gap: 10px; }
.tr-partita { border: 1px solid var(--linea-2); background: var(--nero); }
.tr-partita header { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 6px 6px 6px 12px; border-bottom: 1px solid var(--linea); }
.tr-partita header .mono { color: var(--testo-2); font-size: .64rem; }
.tr-partita header b { color: var(--arancio); font-weight: 400; }
.tr-scena-btn { min-height: 32px; padding: 0 10px; border: 1px solid var(--linea-2); font: 400 .62rem/1 var(--mono); letter-spacing: .1em; color: var(--grigio); }
.tr-live { color: var(--arancio); font-size: .62rem; padding-right: 6px; }
.tr-partita.is-incorso { border-color: var(--arancio); box-shadow: 0 0 0 1px var(--arancio); }
.tr-partita.is-attesa { opacity: .55; border-style: dashed; }
.tr-partita.is-finita { opacity: .7; }
.tr-lati { display: grid; }
.tr-lato { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; text-align: left; font-weight: 700; font-size: 1.05rem; }
.tr-lato + .tr-lato { border-top: 1px solid var(--linea); }
.tr-lato i { font-style: normal; font-size: .6rem; color: var(--testo-3); padding: 6px 8px; border: 1px solid var(--linea-2); }
button.tr-lato:hover i, button.tr-lato:active i { background: var(--arancio); color: var(--nero); border-color: var(--arancio); }
.tr-lato.is-vince { color: var(--arancio); }
.tr-lato.is-vince i { color: var(--nero); background: var(--arancio); border-color: var(--arancio); }
.tr-lato.is-perde { color: var(--testo-3); text-decoration: line-through; }
.tr-lato.is-off { color: var(--testo-3); }
.tr-partita footer { display: flex; border-top: 1px solid var(--linea); }
.tr-partita footer button { flex: 1; min-height: 40px; font: 400 .62rem/1 var(--mono); letter-spacing: .1em; color: var(--testo-3); }
.tr-partita footer button + button { border-left: 1px solid var(--linea); }
.tr-partita footer button:hover { color: var(--grigio); }
.tr-sost { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-top: 1px dashed var(--linea-2); }
.tr-sost .mono { width: 100%; color: var(--arancio); }

.tr-blocco--tab { overflow: hidden; }
.tr-tab { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.tr-col { flex: 0 0 auto; min-width: 150px; display: grid; align-content: start; gap: 6px; }
.tr-col > .mono { color: var(--testo-3); font-size: .6rem; }
.tr-col.is-aperto > .mono { color: var(--arancio); }
.tr-mini { display: grid; border: 1px solid var(--linea); font-size: .82rem; }
.tr-mini span { padding: 4px 8px; white-space: nowrap; }
.tr-mini span + span { border-top: 1px solid var(--linea); }
.tr-mini .v { color: var(--arancio); font-weight: 700; }
.tr-mini .p { color: var(--testo-3); }
.tr-fondo { text-align: center; padding: 6px 0 24px; }
.tr-fondo button { font: 400 .64rem/1 var(--mono); letter-spacing: .12em; color: var(--testo-3); text-decoration: underline; text-underline-offset: 4px; }
.tr-fondo button:hover { color: var(--arancio); }

.offline { position: sticky; top: 56px; z-index: 15; padding: 8px var(--pad); background: var(--arancio); color: var(--nero); text-align: center; }
@media (max-width: 420px) { .tr-riga { grid-template-columns: 1fr; } }

/* presenze */
.tr-conta { display: flex; align-items: baseline; gap: 10px; }
.tr-conta .display { font-size: 2.6rem; line-height: 1; color: var(--arancio); }
.tr-conta > .mono { color: var(--testo-2); }
.tr-nomi { color: var(--testo-2); line-height: 1.5; }
.tr-nota { color: var(--testo-3); font-size: .9rem; padding: 0 2px 24px; }
.tr-nota a, .tr-avviso a, .tr-etich a { color: var(--arancio); }
.tr-etich a { text-decoration: none; }

/* ==========================================================================
   PLANCIA — l'atterraggio. Console tecnologica + poster di strada.
   ========================================================================== */
.vista--larga { max-width: 1180px; padding-top: 18px; }
.pl-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
  min-height: clamp(360px, 52vh, 520px); padding: 64px clamp(20px, 4vw, 48px) 44px; border: 1px solid var(--linea);
  background: radial-gradient(90% 120% at 85% 10%, rgba(233, 90, 12, .16), transparent 55%), linear-gradient(180deg, #1b1a19, #121110); isolation: isolate; }
.pl-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grana); opacity: .09; mix-blend-mode: overlay; pointer-events: none; }
.pl-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .55; }
.pl-topo polyline { fill: none; stroke-linejoin: round; }
.pl-topo .min { stroke: rgba(225, 225, 225, .07); stroke-width: 1; }
.pl-topo .maj { stroke: rgba(233, 90, 12, .28); stroke-width: 1.3; }
.pl-hud { position: absolute; inset: 14px; z-index: 1; pointer-events: none; font-size: .56rem; color: var(--testo-3); line-height: 1.6; }
.pl-hud > span { position: absolute; }
.pl-hud__tl { top: 6px; left: 10px; } .pl-hud__tr { top: 6px; right: 10px; text-align: right; }
.pl-hud__bl { bottom: 6px; left: 10px; } .pl-hud__br { bottom: 6px; right: 10px; text-align: right; color: var(--testo-2); }
.pl-hud__br i { font-style: normal; animation: batti 1s steps(2) infinite; }
@keyframes batti { 50% { opacity: .2; } }
.pl-hud .cross { position: absolute; }
.pl-dietro { position: absolute; right: 3%; top: 50%; z-index: -1; transform: translateY(-58%); font-size: clamp(6rem, 21vw, 18rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(225, 225, 225, .1); letter-spacing: -.02em; pointer-events: none; user-select: none; }
.pl-hero__testo { position: relative; z-index: 2; display: grid; gap: 14px; animation: sale .7s cubic-bezier(.2, .7, .2, 1) both; }
.pl-saluto { font-size: clamp(1.55rem, 7vw, 5.4rem); line-height: .9; }
.pl-saluto span { color: var(--arancio); text-shadow: 0 0 40px rgba(233, 90, 12, .35); }
.pl-scarabocchio { width: min(260px, 60%); height: auto; margin-top: -4px; overflow: visible; }
.pl-scarabocchio path { fill: none; stroke: var(--grigio); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: traccia 1.1s .45s cubic-bezier(.6, 0, .2, 1) forwards; }
.pl-scarabocchio .punta { stroke-width: 3.4; stroke-dasharray: 50; stroke-dashoffset: 50; animation-delay: 1.45s; animation-duration: .3s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
@keyframes traccia { to { stroke-dashoffset: 0; } }
@keyframes sale { from { opacity: 0; transform: translateY(18px); } }

/* biglietto del prossimo cerchio */
.pl-biglietto { position: relative; z-index: 2; display: grid; gap: 6px; min-width: 250px; margin-bottom: 18px; padding: 18px 22px 16px; background: var(--grigio); color: var(--nero);
  transform: rotate(-2.2deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: sale .7s .2s cubic-bezier(.2, .7, .2, 1) both;
  -webkit-mask: radial-gradient(circle 9px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat; }
.pl-biglietto::before { content: ""; position: absolute; left: 14px; right: 14px; top: 62%; border-top: 2px dashed rgba(21, 20, 19, .3); }
.pl-biglietto .mono { font-size: .6rem; color: #3a3836; }
.pl-biglietto b { color: var(--arancio); font-weight: 700; }
.pl-biglietto__data { font-size: 1.55rem; line-height: 1; color: var(--nero); }
.pl-biglietto__info { margin-top: 14px; }
.pl-biglietto__codice { position: absolute; right: 12px; top: 10px; font-size: .5rem !important; letter-spacing: .2em; opacity: .55; }
.pl-biglietto.is-live { background: var(--arancio); }
.pl-biglietto.is-live .mono, .pl-biglietto.is-live b { color: var(--nero); }
.pl-biglietto.is-live b { animation: batti 1.2s steps(2) infinite; }
.nastro { position: absolute; width: 70px; height: 22px; background: rgba(225, 225, 225, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); backdrop-filter: blur(1px); }
.nastro--a { left: -16px; top: -8px; transform: rotate(-32deg); }
.nastro--b { right: -14px; bottom: -6px; transform: rotate(-28deg); }

/* nastro che scorre */
.pl-nastro { overflow: hidden; margin: -14px -6px 0; padding: 10px 0; background: var(--arancio); color: var(--nero); transform: rotate(-1deg); position: relative; z-index: 3; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.pl-nastro > div { display: inline-block; white-space: nowrap; font: 400 .9rem/1 var(--display); letter-spacing: .04em; animation: scorre 38s linear infinite; }
@keyframes scorre { to { transform: translateX(-50%); } }

/* i moduli: sistemi numerati, stessa griglia */
.pl-moduli { display: grid; gap: 14px; margin-top: 34px; grid-template-columns: repeat(var(--col, 3), minmax(0, 1fr)); }
.pl-moduli--2 { --col: 2; }
.pl-mod { position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px; min-height: 290px; padding: 22px 22px 20px; text-decoration: none; color: var(--testo);
  border: 1px solid var(--linea-2); background: linear-gradient(180deg, rgba(40, 40, 40, .85), rgba(21, 20, 19, .9)); isolation: isolate;
  transition: border-color .25s, translate .3s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); animation: sale .6s calc(.25s + var(--i) * .1s) cubic-bezier(.2, .7, .2, 1) both; }
.pl-mod::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(233, 90, 12, .22), transparent 70%); transform: translateY(101%); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.pl-mod::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(225, 225, 225, .08); pointer-events: none; }
.pl-mod:hover, .pl-mod:focus-visible { border-color: var(--arancio); translate: 0 -4px; }
.pl-mod:hover::before, .pl-mod:focus-visible::before { transform: none; }
.pl-mod__n { position: absolute; right: -8px; bottom: -26px; z-index: -1; font-size: 9.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(225, 225, 225, .12); transition: -webkit-text-stroke-color .3s; }
.pl-mod:hover .pl-mod__n { -webkit-text-stroke-color: rgba(233, 90, 12, .55); }
.pl-mod__testa { color: var(--testo-3); font-size: .6rem; }
.pl-mod__testa b { color: var(--arancio); font-weight: 400; }
.pl-mod__titolo { font-size: 1.7rem; line-height: .95; }
.pl-mod__dato { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.pl-mod__dato b { font-size: 2.6rem; line-height: 1; color: var(--arancio); }
.pl-mod__dato i { font-style: normal; color: var(--testo-2); font-size: .6rem; }
.pl-mod--training .pl-mod__dato b { font-size: 1.5rem; color: var(--grigio); }
.pl-mod__dato b:empty { display: none; }
.pl-mod.is-live .pl-mod__dato i { color: var(--arancio); }
.pl-mod__riga { color: var(--testo-3); font-size: .86rem; line-height: 1.35; }
.pl-mod__vai { display: inline-flex; align-items: center; gap: 8px; color: var(--grigio); font-size: .64rem; padding-top: 10px; border-top: 1px solid var(--linea); }
.pl-mod__vai i { font-style: normal; transition: transform .25s; }
.pl-mod:hover .pl-mod__vai i { transform: translateX(6px); color: var(--arancio); }
.pl-mod__scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(225, 225, 225, .05) 70%, rgba(233, 90, 12, .18) 98%, transparent); opacity: 0; }
.pl-mod:hover .pl-mod__scan { animation: scansione 1.4s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes scansione { 0% { opacity: 1; top: -30%; } 100% { opacity: 1; top: 110%; } }

/* segni dentro i moduli */
.pl-quadro { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; max-width: 230px; }
.pl-quadro i { aspect-ratio: 1; border: 1px solid var(--linea-2); }
.pl-quadro i.on { background: var(--arancio); border-color: var(--arancio); box-shadow: 0 0 8px rgba(233, 90, 12, .45); }
.pl-facce { display: flex; padding-left: 8px; min-height: 36px; }
.pl-facce i { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; border-radius: 50%; font: 700 .62rem/1 var(--mono); font-style: normal; letter-spacing: .04em;
  background: var(--antracite); border: 2px solid var(--nero); box-shadow: 0 0 0 1px var(--linea-2); color: var(--grigio); animation: sale .4s calc(.5s + var(--i, 0) * .05s) both; }
.pl-facce i:nth-child(3n+1) { background: var(--arancio); color: var(--nero); }
.pl-facce i.piu { background: var(--grigio); color: var(--nero); }
.pl-facce i.vuoto { background: transparent; border-style: dashed; color: var(--testo-3); }
.pl-ruotina { position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--arancio) 0 60deg, var(--antracite) 60deg 120deg, #3a3938 120deg 180deg, var(--arancio) 180deg 240deg, var(--antracite) 240deg 300deg, #3a3938 300deg 360deg);
  box-shadow: 0 0 0 2px var(--nero), 0 0 0 3px var(--linea-2); }
.pl-ruotina i { position: absolute; inset: 34%; border-radius: 50%; background: var(--nero); box-shadow: 0 0 0 2px var(--arancio); }
.pl-ruotina.is-live { animation: gira-r 6s linear infinite; box-shadow: 0 0 0 2px var(--nero), 0 0 0 3px var(--arancio), 0 0 18px rgba(233, 90, 12, .5); }
@keyframes gira-r { to { transform: rotate(360deg); } }

/* registro */
.pl-log { margin-top: 26px; border: 1px solid var(--linea); background: rgba(21, 20, 19, .7); transition: border-color .3s; }
.pl-log:hover, .pl-log.is-aperto { border-color: var(--linea-2); }
.pl-log__testa { display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px 20px; text-align: left; }
.pl-log__freccia { width: 18px; height: 18px; fill: none; stroke: var(--arancio); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.2, .7, .2, 1); animation: annuisce 2.6s ease-in-out infinite; }
.pl-log.is-aperto .pl-log__freccia { transform: rotate(180deg); animation: none; }
@keyframes annuisce { 0%, 70%, 100% { translate: 0 0; } 82% { translate: 0 3px; } }
.pl-log__corpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .7, .2, 1); }
.pl-log.is-aperto .pl-log__corpo { grid-template-rows: 1fr; }
.pl-log__corpo > ol { overflow: hidden; display: grid; gap: 2px; padding: 0 20px; }
.pl-log.is-aperto .pl-log__corpo > ol { padding-bottom: 14px; }
.pl-log li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px dashed var(--linea); font-size: .62rem; color: var(--testo-2); line-height: 1.5; }
.pl-log li span { color: var(--testo-3); flex: none; }
.pl-log li b { color: var(--arancio); font-weight: 400; flex: none; }
.pl-log li::before { content: ">"; color: var(--arancio); }
.pl-piede { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px 2px 10px; color: var(--testo-3); font-size: .58rem; }
.pl-piede a { color: var(--grigio); text-decoration: none; }
.pl-piede a:hover { color: var(--arancio); }

@media (max-width: 860px) {
  .pl-hero { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 70px; }
  .pl-biglietto { justify-self: start; }
  .pl-moduli { --col: 1; }
  .pl-mod { min-height: 0; }
  .pl-mod__n { font-size: 7rem; }
}
@media (max-width: 420px) { .pl-hud { font-size: .5rem; } .pl-hud__tr { display: none; } }
@media (prefers-reduced-motion: reduce) { .pl-nastro > div, .pl-ruotina.is-live, .pl-hud__br i { animation: none; } }

/* barra in alto più "console": il logo riporta alla plancia, orologio di sistema */
.top__logo { cursor: pointer; }
.schede a[aria-current="page"] { position: relative; }
.schede a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 6px; height: 6px; transform: translate(-50%, 50%) rotate(45deg); background: var(--arancio); }

/* ==========================================================================
   VIVO — luce che segue la mano, inclinazione e parallasse leggerissimi
   ========================================================================== */
[data-vivo] { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
[data-vivo].is-vivo { transition-duration: .35s; }
.luce { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(460px circle at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%), rgba(233, 90, 12, .11), rgba(225, 225, 225, .035) 32%, transparent 62%); }
.is-vivo > .luce { opacity: 1; }
.pl-mod .luce { z-index: -1; background: radial-gradient(240px circle at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%), rgba(225, 225, 225, .07), transparent 65%); }
/* i livelli dell'hero scorrono di pochi pixel, in direzioni diverse: profondità */
.pl-topo, .pl-dietro, .pl-biglietto, .pl-hero__testo, .testa__dietro, .testa .pl-topo { transition: translate 1.1s cubic-bezier(.2, .7, .2, 1); }
.pl-hero.is-vivo .pl-topo, .testa.is-vivo .pl-topo { translate: calc((var(--mx) - .5) * -18px) calc((var(--my) - .5) * -12px); }
.pl-hero.is-vivo .pl-dietro, .testa.is-vivo .testa__dietro { translate: calc((var(--mx) - .5) * -30px) calc((var(--my) - .5) * -14px); }
.pl-hero.is-vivo .pl-biglietto { translate: calc((var(--mx) - .5) * 10px) calc((var(--my) - .5) * 8px); }
.pl-hero.is-vivo .pl-hero__testo { translate: calc((var(--mx) - .5) * 6px) calc((var(--my) - .5) * 4px); }
@media (prefers-reduced-motion: reduce) { [data-vivo] { transform: none; } .is-vivo .pl-topo, .is-vivo .pl-dietro, .is-vivo .pl-biglietto, .is-vivo .pl-hero__testo, .is-vivo .testa__dietro { translate: none; } }

/* ==========================================================================
   TESTATE delle schede: stessa famiglia dell'hero della plancia
   ========================================================================== */
.testa.testa--hero { position: relative; overflow: hidden; isolation: isolate; gap: 10px; padding: 46px clamp(18px, 3vw, 34px) 30px; margin-bottom: 22px;
  border: 1px solid var(--linea); background: radial-gradient(80% 140% at 90% 0%, rgba(233, 90, 12, .13), transparent 55%), linear-gradient(180deg, #1b1a19, #131211); }
.testa--hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grana); opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.testa--hero .pl-topo { z-index: -2; opacity: .45; }
.testa__dietro { position: absolute; right: 2%; bottom: -.12em; z-index: -1; font-size: clamp(4.5rem, 15vw, 10rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(225, 225, 225, .09); pointer-events: none; user-select: none; }
.testa__hud { position: absolute; left: 26px; right: 26px; top: 12px; display: flex; justify-content: space-between; gap: 10px; font-size: .54rem; color: var(--testo-3); pointer-events: none; }
.testa--hero .kicker, .testa--hero h2, .testa--hero > p:not(.testa__dietro) { position: relative; z-index: 1; }
.testa.testa--hero p.testa__dietro { color: transparent; max-width: none; white-space: nowrap; }
.testa--hero h2 { font-size: clamp(1.9rem, 7vw, 3.2rem); }
.testa--hero .cross { position: absolute; }
.testa--hero .cross--tl { top: 6px; left: 6px; } .testa--hero .cross--tr { top: 6px; right: 6px; }

/* blocchi: cornice interna tratteggiata, come i moduli */
.tr-blocco, .tr-passo, .gruppo, .tr-partita { position: relative; }
.tr-blocco::after, .tr-passo::after, .gruppo::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(225, 225, 225, .06); pointer-events: none; }
.tr-blocco > .kicker:first-child, .tr-passo > .kicker:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tr-blocco > .kicker:first-child::before, .tr-passo > .kicker:first-child::before { content: ""; width: 6px; height: 6px; background: var(--arancio); transform: rotate(45deg); box-shadow: 0 0 8px rgba(233, 90, 12, .6); }
.tr-passo { animation: sale .45s cubic-bezier(.2, .7, .2, 1) both; box-shadow: 0 0 0 1px rgba(233, 90, 12, .15), 0 20px 50px rgba(0, 0, 0, .35); }

/* presenze: ogni nome è un piccolo interruttore */
.tr-chip { position: relative; display: inline-flex; align-items: center; gap: 9px; padding-left: 12px; transition: background .2s, color .2s, border-color .2s, translate .2s, box-shadow .25s; }
.tr-chip::before { content: ""; width: 7px; height: 7px; flex: none; border: 1px solid var(--linea-2); transition: background .2s, border-color .2s, transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.tr-chip:hover { border-color: var(--grigio); translate: 0 -1px; }
.tr-chip.is-on { box-shadow: 0 6px 18px rgba(233, 90, 12, .28); }
.tr-chip.is-on::before { background: var(--nero); border-color: var(--nero); transform: rotate(45deg); }
.tr-chip:active { translate: 0 1px; }
.tr-conta .display { text-shadow: 0 0 26px rgba(233, 90, 12, .35); }
.tr-modo, .tr-opz { transition: border-color .25s, background .25s, translate .25s cubic-bezier(.2, .7, .2, 1); }
.tr-modo:hover, .tr-opz:hover { translate: 0 -2px; }
.tr-partita.is-incorso { animation: respira 2.6s ease-in-out infinite; }
@keyframes respira { 50% { box-shadow: 0 0 0 1px var(--arancio), 0 0 26px rgba(233, 90, 12, .28); } }

/* ==========================================================================
   PIEDE — lo stesso footer del sito
   ========================================================================== */
.piede { margin-top: 56px; overflow: hidden; }
.piede__riga { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; max-width: 1180px; margin: 0 auto; padding: 18px var(--pad);
  border-top: 1px solid var(--linea); color: var(--testo-2); font-size: .62rem; }
.piede__riga { display: grid; grid-template-columns: 1fr auto 1fr; }
.piede .footer__legal { margin: 0; }
.piede__sito { justify-self: center; color: var(--testo-2); text-decoration: none; letter-spacing: .14em; transition: color .2s; }
.piede__sito:hover { color: var(--arancio); }
.piede .footer__sign { justify-self: end; }
@media (max-width: 900px) { .piede__riga { grid-template-columns: 1fr; justify-items: start; } .piede__sito { justify-self: start; } .piede .footer__sign { justify-self: stretch; } }
.piede .footer__sign { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.status { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 8px; border: 1px solid var(--linea); color: var(--testo-3); font-size: .56rem; letter-spacing: .16em; white-space: nowrap; }
.status::before { content: ""; position: absolute; inset: 2px; border: 1px dashed rgba(225, 225, 225, .08); pointer-events: none; }
.status b { color: var(--testo-2); font-weight: 400; }
.status__led { width: 5px; height: 5px; flex: none; border-radius: 50%; background: rgba(233, 90, 12, .7); box-shadow: 0 0 4px rgba(233, 90, 12, .35); }
.status:hover .status__led { animation: live 1.5s 2; }
.status.is-off .status__led { background: var(--testo-3); box-shadow: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(233, 90, 12, .6); } to { box-shadow: 0 0 0 9px rgba(233, 90, 12, 0); } }
.crafted { display: inline-flex; align-items: baseline; gap: 6px; color: var(--testo-3); font-size: .56rem; letter-spacing: .16em; white-space: nowrap; }
.crafted__nome { font: inherit; color: var(--testo-2); }
.footer__mono { font-size: 12.35vw; line-height: .78; text-align: center; white-space: nowrap; margin: clamp(10px, 3vh, 30px) 0 -0.06em; color: #0d0c0c;
  text-shadow: 0 2px 1px rgba(225, 225, 225, .13), 0 -2px 2px #000; -webkit-user-select: none; user-select: none; letter-spacing: 0; }
@media (max-width: 640px) { .piede .footer__sign { width: 100%; justify-content: space-between; } }

/* ==========================================================================
   VETRO per tutti i selettori (stessa famiglia degli interruttori)
   ========================================================================== */
/* selettore a due voci: binario di vetro, la "goccia" arancione scivola sotto la voce scelta */
.tr-seg { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
  border: 1px solid rgba(225, 225, 225, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), rgba(15, 14, 13, .65);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
.tr-seg::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 50%), linear-gradient(180deg, #ff7b30, #E95A0C 55%, #c44805);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(120, 30, 0, .4), 0 4px 14px rgba(233, 90, 12, .35);
  transition: transform .45s cubic-bezier(.3, 1.35, .5, 1); }
.tr-seg:has(button:nth-child(2)[aria-checked="true"])::before { transform: translateX(100%); }
.tr-seg button { min-height: 42px; border-radius: 999px; color: var(--testo-2); background: none; transition: color .3s; }
.tr-seg button + button { border-left: 0; }
.tr-seg button[aria-checked="true"] { background: none; color: var(--nero); }
.tr-seg button:not([aria-checked="true"]):hover { color: var(--grigio); }
.tr-seg button:active { transform: scale(.97); }

/* carte di scelta (modalità e opzioni del turno): lastre di vetro, quella scelta si accende */
.tr-modo, .tr-opz { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(225, 225, 225, .12);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01) 45%), rgba(15, 14, 13, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
.tr-modo::before, .tr-opz::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(120% 90% at 100% 0%, rgba(233, 90, 12, .28), transparent 60%); }
.tr-modo:hover, .tr-opz:hover { border-color: rgba(225, 225, 225, .26); }
.tr-modo[aria-checked="true"], .tr-opz.is-consigliata { border-color: rgba(255, 140, 70, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(233, 90, 12, .18), 0 10px 30px rgba(233, 90, 12, .18); background-color: rgba(40, 22, 12, .7); }
.tr-modo[aria-checked="true"]::before, .tr-opz.is-consigliata::before { opacity: 1; }
/* il led di vetro nell'angolo della modalità scelta */
.tr-modo::after { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06) 60%); border: 1px solid rgba(225, 225, 225, .2); transition: background .3s, box-shadow .3s; }
.tr-modo[aria-checked="true"]::after { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #ff8a42 35%, #E95A0C 70%); border-color: rgba(255, 160, 100, .7); box-shadow: 0 0 10px rgba(233, 90, 12, .7); }
.tr-modo > *, .tr-opz > * { position: relative; }

/* "sul telo": pillole di vetro */
.tr-scene button { border-radius: 999px; padding: 0 13px; border: 1px solid rgba(225, 225, 225, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)), rgba(15, 14, 13, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: color .25s, border-color .25s, box-shadow .3s, background .3s; }
.tr-scene button:hover { color: var(--grigio); border-color: rgba(225, 225, 225, .26); }
.tr-scene button[aria-pressed="true"] { color: var(--nero); border-color: rgba(255, 140, 70, .6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 50%), linear-gradient(180deg, #ff7b30, #E95A0C 55%, #c44805);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 3px 12px rgba(233, 90, 12, .35); }
.tr-scene button:active { transform: scale(.96); }

/* ==========================================================================
   VETRO anche per i bottoni: stessa famiglia di interruttori e selettori
   ========================================================================== */
.btn { border-radius: 999px; position: relative; isolation: isolate; letter-spacing: .14em;
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .25s, color .25s, filter .2s; }
.btn:active { transform: scale(.97); }
/* principale: arancione lucido, con riflesso in alto e alone */
.btn--cta { color: var(--nero); border: 1px solid rgba(255, 150, 90, .6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #ff7b30, #E95A0C 55%, #c44805);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), inset 0 -3px 8px rgba(120, 30, 0, .35), 0 6px 20px rgba(233, 90, 12, .3); }
.btn--cta:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #ff8a45, #f0651a 55%, #cf4f08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -3px 8px rgba(120, 30, 0, .3), 0 8px 28px rgba(233, 90, 12, .45); }
/* secondario: vetro scuro */
.btn--ghost { color: var(--grigio); border: 1px solid rgba(225, 225, 225, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015)), rgba(15, 14, 13, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
.btn--ghost:hover { border-color: rgba(225, 225, 225, .32); background-color: rgba(30, 29, 28, .6); }
.btn[disabled] { opacity: .45; filter: grayscale(.5); box-shadow: none; }

/* nomi delle presenze: pillole di vetro, accese in arancione lucido */
.tr-chip { border-radius: 999px; padding-right: 16px; border-color: rgba(225, 225, 225, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)), rgba(15, 14, 13, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.tr-chip::before { border-radius: 50%; }
.tr-chip.is-on { color: var(--nero); border-color: rgba(255, 150, 90, .6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #ff7b30, #E95A0C 55%, #c44805);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 5px 16px rgba(233, 90, 12, .3); }
.tr-chip.is-on::before { transform: none; border-radius: 50%; background: var(--nero); box-shadow: 0 0 0 2px rgba(21, 20, 19, .18); }

/* dentro le sfide: "VINCE", "PASSA" e i comandi in basso */
.tr-lato i { border-radius: 999px; padding: 6px 10px; }
.tr-scena-btn { border-radius: 999px; border-color: rgba(225, 225, 225, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)); }
.tr-partita { border-radius: 14px; overflow: hidden; }
.tr-elimina { border-radius: 999px; }

/* campi di testo: stessi angoli morbidi e lo stesso incasso di vetro */
.campo input, .tr-cerca input { border-radius: 12px; border-color: rgba(225, 225, 225, .16);
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .02)), rgba(15, 14, 13, .7); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45); }
.campo input:focus, .tr-cerca input:focus { border-color: rgba(255, 140, 70, .7); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), 0 0 0 3px rgba(233, 90, 12, .2); }
.chip { border-radius: 999px; padding: 6px 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.icona { border-radius: 999px; }

/* segno della modalità scelta: un rombo da mirino, come il segno dei titoli. Vuoto e sottile se non scelta,
   pieno arancione con un secondo rombo di contorno quando è quella giusta. */
.tr-modo::after { top: 16px; right: 16px; width: 9px; height: 9px; border-radius: 0; background: transparent; box-shadow: none;
  border: 1px solid rgba(225, 225, 225, .32); transform: rotate(45deg) scale(.9);
  outline: 1px solid transparent; outline-offset: 3px;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), background .25s, border-color .25s, outline-color .35s, outline-offset .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .35s; }
.tr-modo:hover::after { border-color: rgba(225, 225, 225, .6); }
.tr-modo[aria-checked="true"]::after { background: var(--arancio); border-color: var(--arancio); transform: rotate(45deg) scale(1);
  outline-color: rgba(233, 90, 12, .55); outline-offset: 4px; box-shadow: 0 0 12px rgba(233, 90, 12, .6); }
/* anche nei nomi delle presenze lo stesso rombo, al posto del pallino */
.tr-chip::before { border-radius: 0; width: 6px; height: 6px; transform: rotate(45deg); }
.tr-chip.is-on::before { border-radius: 0; transform: rotate(45deg) scale(1.15); box-shadow: none; }

/* ---------- ritocchi da telefono ---------- */
.top__logo .top__area { display: inline; }
.top__logo .top__chi { display: none; }
.top__logo .top__chi b { font: inherit; color: var(--arancio); }
@media (max-width: 640px) {
  .chip { display: none; }                                      /* chi sei: sotto il logo, al posto di "area riservata" */
  .top__logo .top__area { display: none; }
  .top__logo .top__chi { display: inline; }
  /* footer su due righe: copyright sopra, poi sito · sistemi · firma */
  .piede__riga { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 10px; }
  .piede .footer__legal { width: 100%; }
  .piede__sito { justify-self: auto; }
  .piede .footer__sign { width: auto; margin-left: auto; gap: 10px; flex-wrap: nowrap; justify-content: flex-end; }
  .piede__sito, .piede .status, .piede .crafted { letter-spacing: .08em; font-size: .52rem; }
  .piede .status { padding: 3px 7px 3px 6px; gap: 5px; }
}
