/* App Pilates — stile Apple: chiaro, grande, calmo. Un solo colore d'accento (blu Kinesis). */
:root {
  --sfondo: #f2f2f7;
  --superficie: #ffffff;
  --superficie-2: #f9f9fb;
  --testo: #1c1c1e;
  --testo-2: #6c6c70;
  --testo-3: #8e8e93;
  --linea: rgba(60, 60, 67, 0.14);
  --accento: #003b8e;
  --accento-pieno: #003b8e;
  --accento-tenue: rgba(0, 59, 142, 0.09);
  --marchio: #2a3e59;
  --verde: #1f8a3e;
  --verde-tenue: rgba(52, 199, 89, 0.14);
  --arancio: #b25000;
  --arancio-tenue: rgba(255, 149, 0, 0.15);
  --rosso: #d70015;
  --rosso-tenue: rgba(255, 59, 48, 0.12);
  --raggio: 14px;
  --raggio-grande: 20px;
  --ombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --carattere: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --testo-base: 17px;
}
/* I colori del tema chiaro e scuro arrivano da /tema.css, generato dalle Impostazioni del centro. */
html.testo-grande { --testo-base: 20px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--carattere);
  font-size: var(--testo-base);
  line-height: 1.4;
  color: var(--testo);
  background: var(--sfondo);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accento); text-decoration: none; }
:focus-visible { outline: 3px solid var(--accento); outline-offset: 2px; border-radius: 8px; }
.nascosto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Struttura ——— */
.pagina { max-width: 680px; margin: 0 auto; padding: 12px 20px 120px; }
.pagina.larga { max-width: 1180px; }
.titolo-grande { font-size: 2em; font-weight: 700; letter-spacing: -0.02em; margin: 28px 0 4px; line-height: 1.15; }
.sottotitolo { color: var(--testo-2); margin: 0 0 20px; font-size: 1em; }
.intestazione-sezione { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--testo-2); margin: 28px 16px 8px; font-weight: 500; }
.nota-sezione { font-size: 0.82em; color: var(--testo-2); margin: 8px 16px 0; }
.riga-titolo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* ——— Gruppi in stile Impostazioni ——— */
.gruppo { background: var(--superficie); border-radius: var(--raggio); overflow: hidden; }
.voce {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px;
  background: none; border: 0; width: 100%; text-align: left; position: relative;
}
.voce + .voce::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--linea); }
button.voce { cursor: pointer; }
button.voce:active { background: var(--superficie-2); }
.voce .corpo { flex: 1 1 45%; min-width: 0; }
.voce .principale { font-weight: 500; }
.voce .secondario { color: var(--testo-2); font-size: 0.88em; }
.voce .valore { color: var(--testo-2); text-align: right; flex: 0 1 55%; }
.voce .freccia::after { content: "›"; color: var(--testo-3); font-size: 1.5em; line-height: 1; }
.icona-tonda { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accento-tenue); color: var(--accento); font-weight: 700; flex: none; }

/* ——— Schede ——— */
.scheda { background: var(--superficie); border-radius: var(--raggio-grande); padding: 20px; box-shadow: var(--ombra); margin-bottom: 14px; }
.scheda.evidenza { background: var(--accento-pieno); color: #fff; }
.scheda.evidenza .testo-2 { color: rgba(255, 255, 255, 0.82); }
.scheda.avviso { background: var(--arancio-tenue); box-shadow: none; }
.scheda.positiva { background: var(--verde-tenue); box-shadow: none; }
.etichetta { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; opacity: 0.85; }
.grande { font-size: 1.7em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 6px 0 2px; }
.enorme { font-size: 3.4em; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.testo-2 { color: var(--testo-2); }
.piccolo { font-size: 0.85em; }

/* ——— Pulsanti ——— */
.pulsante {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 14px; border: 0; background: var(--accento-pieno); color: #fff; font-weight: 600; cursor: pointer; width: 100%;
  transition: transform 0.08s ease, opacity 0.2s ease;
}
.pulsante:active { transform: scale(0.98); opacity: 0.85; }
.pulsante svg { width: 20px; height: 20px; flex: none; }
.pulsante:disabled { opacity: 0.45; cursor: default; }
.pulsante.secondario { background: var(--accento-tenue); color: var(--accento); }
.pulsante.pericolo { background: var(--rosso); }
.pulsante.pericolo-tenue { background: var(--rosso-tenue); color: var(--rosso); }
.pulsante.bianco { background: #fff; color: var(--accento-pieno); }
.pulsante.trasparente { background: transparent; color: var(--accento); }
.pulsante.piccolo { min-height: 40px; padding: 8px 16px; width: auto; font-size: 0.92em; border-radius: 11px; }
.fila { display: flex; gap: 10px; }
.fila > * { flex: 1; }
.pila > * + * { margin-top: 10px; }

/* ——— Pastiglie di stato ——— */
.pastiglia { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78em; font-weight: 600; background: var(--superficie-2); color: var(--testo-2); white-space: nowrap; }
.pastiglia.verde { background: var(--verde-tenue); color: var(--verde); }
.pastiglia.arancio { background: var(--arancio-tenue); color: var(--arancio); }
.pastiglia.rosso { background: var(--rosso-tenue); color: var(--rosso); }
.pastiglia.blu { background: var(--accento-tenue); color: var(--accento); }

/* ——— Barra in basso (clienti e istruttrici) ——— */
.schede-basso {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center; gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--superficie) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--linea);
}
.schede-basso button {
  flex: 1; max-width: 140px; background: none; border: 0; padding: 6px 4px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--testo-3); font-size: 0.72em; font-weight: 500; cursor: pointer;
}
.schede-basso button svg { width: 26px; height: 26px; }
.schede-basso button[aria-current="page"] { color: var(--accento); }

/* ——— Barra laterale (segreteria) ——— */
.guscio { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.guscio > .colonna { width: 100%; min-width: 0; }
.barra-telefono, .velo-menu { display: none; }
.laterale { background: var(--superficie); border-right: 0.5px solid var(--linea); padding: 22px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.laterale .marchio { font-weight: 700; font-size: 1.15em; padding: 0 12px 2px; color: var(--marchio); }
.laterale .centro { color: var(--testo-2); font-size: 0.82em; padding: 0 12px 20px; }
.laterale button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px;
  cursor: pointer; font-weight: 500; text-align: left; color: var(--testo);
}
.laterale button svg { width: 22px; height: 22px; color: var(--accento); flex: none; }
.laterale button[aria-current="page"] { background: var(--accento-pieno); color: #fff; }
.laterale button[aria-current="page"] svg { color: #fff; }
.laterale .conteggio { margin-left: auto; background: var(--rosso); color: #fff; border-radius: 999px; font-size: 0.75em; padding: 1px 8px; }
@media (max-width: 860px) {
  .guscio { grid-template-columns: 1fr; }
  /* Telefono: il menù laterale scorre da sinistra col pulsante ☰ */
  .laterale {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: min(300px, 84vw); height: 100dvh;
    padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: none;
  }
  .guscio.menu-aperto .laterale { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
  .velo-menu { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.35); }
  .guscio.menu-aperto .velo-menu { display: block; animation: compari 0.2s ease; }
  .barra-telefono {
    display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 30;
    padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
    background: color-mix(in srgb, var(--superficie) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--linea);
  }
  .barra-telefono .apri-menu { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; color: var(--testo); cursor: pointer; }
  .barra-telefono .apri-menu svg { width: 24px; height: 24px; }
  .barra-telefono .titolo-barra { font-weight: 600; font-size: 1.05em; }
  .riga-titolo { flex-wrap: wrap; }
  .navigazione-settimana { flex-wrap: wrap; }
}


/* ——— Calendario settimanale (segreteria) ——— */
.navigazione-settimana { display: flex; align-items: center; gap: 8px; }
.navigazione-settimana .periodo { font-weight: 600; flex: 1; text-align: center; white-space: nowrap; }
.tondo { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accento-tenue); color: var(--accento); font-size: 1.3em; cursor: pointer; display: grid; place-items: center; }
.griglia-settimana { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.colonna-giorno h3 { font-size: 0.85em; margin: 0 0 8px; color: var(--testo-2); font-weight: 600; text-transform: capitalize; }
.colonna-giorno h3.oggi { color: var(--accento); }
.cella-lezione {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer; margin-bottom: 8px;
  background: var(--superficie); border-radius: 12px; padding: 10px 12px; box-shadow: var(--ombra);
}
.cella-lezione .ora { font-weight: 700; }
.cella-lezione .chi { font-size: 0.8em; color: var(--testo-2); }
.cella-lezione.annullata { opacity: 0.5; text-decoration: line-through; }
.posti { display: flex; gap: 4px; margin-top: 6px; }
.posti i { width: 100%; height: 6px; border-radius: 3px; background: var(--superficie-2); border: 0.5px solid var(--linea); }
.posti i.pieno { background: var(--accento); border-color: transparent; }
@media (max-width: 1000px) { .griglia-settimana { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .griglia-settimana { grid-template-columns: 1fr 1fr; } }

/* ——— Elenco giorni (clienti) ——— */
.giorno-titolo { font-size: 1.15em; font-weight: 700; margin: 26px 4px 10px; }
.lezione-riga { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 72px; position: relative; }
.lezione-riga + .lezione-riga::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--linea); }
.lezione-riga .ora { font-size: 1.25em; font-weight: 700; width: 64px; flex: none; }
.lezione-riga .corpo { flex: 1; }

/* ——— Campi ——— */
.campo { display: block; margin-bottom: 14px; }
.campo > span { display: block; font-size: 0.85em; color: var(--testo-2); margin: 0 4px 6px; font-weight: 500; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 0.5px solid var(--linea);
  background: var(--superficie); font-size: 1em;
}
.campo textarea { min-height: 90px; resize: vertical; }
.ricerca {
  width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border-radius: 12px; border: 0; background: var(--superficie);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m17 17-4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center;
}
.scelta-segmentata { display: flex; background: var(--superficie-2); border-radius: 12px; padding: 3px; gap: 3px; }
.scelta-segmentata button { flex: 1; min-height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-weight: 500; }
.scelta-segmentata button[aria-pressed="true"] { background: var(--superficie); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); color: var(--accento); font-weight: 600; }
.interruttore { appearance: none; width: 51px; height: 31px; border-radius: 999px; background: var(--superficie-2); border: 0.5px solid var(--linea); position: relative; cursor: pointer; flex: none; transition: background 0.2s; }
.interruttore::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.interruttore:checked { background: var(--verde); }
.interruttore:checked::after { transform: translateX(20px); }

/* ——— Foglio dal basso e conferme ——— */
.velo { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: compari 0.2s ease; }
.foglio {
  background: var(--sfondo); width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: sali 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.foglio .maniglia { width: 40px; height: 5px; border-radius: 3px; background: var(--testo-3); opacity: 0.4; margin: 0 auto 14px; }
.foglio h2 { font-size: 1.35em; margin: 4px 0 6px; outline: none; }
@media (min-width: 861px) { .velo { align-items: center; } .foglio { border-radius: 22px; } }
.avviso-breve {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: color-mix(in srgb, var(--testo) 92%, transparent); color: var(--sfondo); padding: 14px 20px; border-radius: 16px;
  max-width: min(520px, calc(100% - 32px)); font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); animation: compari 0.2s ease;
}
.avviso-breve.errore { background: var(--rosso); color: #fff; }
@keyframes sali { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes compari { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ——— Varie ——— */
.vuoto { text-align: center; color: var(--testo-2); padding: 40px 20px; }
.vuoto .grande { color: var(--testo); }
.anello { --p: 0; width: 150px; height: 150px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center;
  background: conic-gradient(var(--accento) calc(var(--p) * 1%), var(--superficie-2) 0); }
.anello > div { width: 122px; height: 122px; border-radius: 50%; background: var(--superficie); display: grid; place-items: center; text-align: center; }
.tabella { width: 100%; border-collapse: collapse; background: var(--superficie); border-radius: var(--raggio); overflow: hidden; font-size: 0.92em; }
.tabella th, .tabella td { text-align: left; padding: 12px 14px; border-bottom: 0.5px solid var(--linea); }
.tabella th { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--testo-2); font-weight: 600; background: var(--superficie-2); }
.tabella tr:last-child td { border-bottom: 0; }
.tabella tr.cliccabile { cursor: pointer; }
.tabella tr.cliccabile:hover td { background: var(--superficie-2); }
.tabella tr.in-scadenza td:first-child { box-shadow: inset 4px 0 0 var(--arancio); }
.due-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .due-colonne { grid-template-columns: 1fr; } }
.schede-orizzontali { display: flex; gap: 6px; margin: 14px 0; overflow-x: auto; }
.benvenuto { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.benvenuto .logo { width: 84px; height: 84px; border-radius: 22px; background: var(--marchio); color: #fff; display: grid; place-items: center; font-size: 2.2em; font-weight: 700; margin: 0 auto 22px; }
.caricamento { display: grid; place-items: center; min-height: 50vh; color: var(--testo-3); }
.link-invito { word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; background: var(--superficie-2); padding: 12px; border-radius: 10px; user-select: all; }

/* ——— Selettore colori (Impostazioni) ——— */
input[type="color"] { width: 52px; height: 36px; border: 0.5px solid var(--linea); border-radius: 10px; padding: 3px; background: var(--superficie); cursor: pointer; flex: none; }

/* ——— Cruscotto dei numeri ——— */
.filtri { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 18px; }
.filtri .scelta-segmentata { flex: 1 1 420px; }
.filtri select { min-height: 44px; border-radius: 12px; border: 0.5px solid var(--linea); background: var(--superficie); padding: 0 12px; }
.riquadri { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.riquadro { background: var(--superficie); border-radius: var(--raggio); padding: 16px 18px; box-shadow: var(--ombra); }
.riquadro .etichetta { color: var(--testo-2); font-size: 0.78em; }
.riquadro .valore-grande { font-size: 2em; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.riquadro .nota { color: var(--testo-2); font-size: 0.85em; }
.mappa { border-collapse: separate; border-spacing: 3px; width: 100%; background: var(--superficie); border-radius: var(--raggio); padding: 10px; font-size: 0.85em; }
.mappa th { color: var(--testo-2); font-weight: 600; padding: 4px; text-transform: capitalize; }
.mappa td { text-align: center; padding: 10px 4px; border-radius: 8px; font-variant-numeric: tabular-nums; font-weight: 600; background: var(--superficie-2); }
.mappa td.vuota { background: transparent; }
.legenda-mappa { display: flex; align-items: center; gap: 8px; color: var(--testo-2); font-size: 0.82em; margin: 8px 4px 0; }
.legenda-mappa i { width: 28px; height: 10px; border-radius: 3px; display: inline-block; }
.tabella td.numero, .tabella th.numero { text-align: right; font-variant-numeric: tabular-nums; }
.voce input[type="number"] { width: 84px; min-height: 40px; border-radius: 10px; border: 0.5px solid var(--linea); background: var(--superficie-2); text-align: right; padding: 6px 10px; flex: none; font-variant-numeric: tabular-nums; }

/* ——— Vetrina dei servizi e domande frequenti ——— */
.immagine-servizio { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--raggio-grande); margin: 6px 0 14px; display: block; background: var(--superficie-2); }
.testo-servizio h3 { font-size: 1.1em; margin: 22px 0 6px; }
.testo-servizio p { margin: 0 0 10px; color: var(--testo); }
.testo-servizio p.punto { padding-left: 22px; position: relative; }
.testo-servizio p.punto::before { content: ""; position: absolute; left: 6px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accento); }
.campo-tendina { width: 100%; min-height: 50px; border-radius: 12px; border: 0.5px solid var(--linea); background: var(--superficie); padding: 0 14px; margin-bottom: 6px; }
.risposta-faq { padding: 0 16px 16px; color: var(--testo-2); }
.risposta-faq p { margin: 0 0 12px; color: var(--testo); }
.voce[aria-expanded="true"] .freccia::after { content: "⌄"; }

/* ——— Vai al giorno (calendari) ——— */
.vai-al-giorno input { min-height: 40px; border-radius: 11px; border: 0.5px solid var(--linea); background: var(--superficie); padding: 0 10px; color: var(--accento); font-weight: 600; }
.filtri input[type="date"] { min-height: 44px; border-radius: 12px; border: 0.5px solid var(--linea); background: var(--superficie); padding: 0 10px; }

/* Lezioni passate non sue: più chiare */
.lezione-riga.passata { opacity: 0.5; }

.laterale button.esci { margin-top: 18px; color: var(--testo-2); }
.laterale button.esci svg { color: var(--testo-3); }
.icona-tonda svg { width: 22px; height: 22px; }

.logo-piccolo { width: 52px; height: 52px; border-radius: 14px; background: var(--marchio); color: #fff; display: grid; place-items: center; font-size: 1.5em; font-weight: 700; margin-top: 22px; }

/* Pagina d'ingresso */
.pagina.accesso { max-width: 440px; padding-top: 12px; }
.pagina.accesso .logo { width: 72px; height: 72px; border-radius: 20px; background: var(--marchio); color: #fff; display: grid; place-items: center; font-size: 2em; font-weight: 700; margin: 0 auto 10px; }

/* Testata con foto del Pilates e logo del centro */
.testata { position: relative; height: 170px; margin: 0 -20px 18px; overflow: hidden; background: var(--superficie-2); }
.testata .foto { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.testata::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, var(--sfondo) 100%); pointer-events: none; }
.testata .logo-testata { position: absolute; top: 12px; left: 16px; z-index: 1; background: rgba(255,255,255,0.94); border-radius: 12px; padding: 6px 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.testata .logo-testata img { height: 38px; width: auto; display: block; }
.testata.bassa { height: 210px; margin: -8px 0 18px; border-radius: var(--raggio); }
.testata.bassa .foto { object-position: center 38%; }
.testata.bassa::after { background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.08) 100%); }
@media (min-width: 700px) { .testata { margin-left: 0; margin-right: 0; border-radius: var(--raggio); height: 200px; } }
.laterale .logo-laterale { display: block; height: 44px; width: auto; margin: 0 12px 8px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.anteprima-immagine { width: 120px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--superficie-2); flex: none; }
.anteprima-immagine.logo { object-fit: contain; background: #fff; }

/* ——— Marchio Space Pilates ——— */
.marchio-app { display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; line-height: 1; }
.marchio-app img { width: 1.6em; height: 1.6em; border-radius: 22%; flex: none; }
.marchio-app .space { font-weight: 300; color: var(--testo); }
.marchio-app .pilates { font-weight: 800; background: linear-gradient(90deg, #FF7A59, #E9477F 55%, #7B3FE4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marchio-app .space + .pilates { margin-left: -8px; }
.marchio-app.grande { justify-content: center; font-size: 2.1rem; margin: 8px 0 0; gap: 12px; }
.marchio-app.grande .space + .pilates { margin-left: -12px; }

/* ——— Primo accesso guidato ——— */
.avanzamento { display: flex; gap: 6px; margin: 6px 0 4px; }
.avanzamento span { flex: 1; height: 5px; border-radius: 999px; background: var(--testo-3); opacity: 0.3; }
.avanzamento span.fatto { opacity: 1; }
.avanzamento span.fatto { background: var(--accento); }
.etichetta-passo { color: var(--testo-2); font-size: 0.85em; font-weight: 600; margin: 4px 0 10px; }
.primo-accesso .pulsante { margin-top: 8px; }
.maiuscolo { text-transform: uppercase; letter-spacing: 0.04em; }
.informativa { background: var(--superficie); border-radius: var(--raggio); padding: 14px 16px; margin: 4px 0 16px; }
.informativa summary { font-weight: 600; color: var(--accento); cursor: pointer; }
.informativa p { color: var(--testo-2); font-size: 0.92em; margin: 10px 0 0; }
.testo-regolamento { white-space: pre-line; background: var(--superficie); border-radius: var(--raggio); padding: 16px; max-height: 46vh; overflow-y: auto;
  font-size: 0.95em; line-height: 1.5; border: 0.5px solid var(--linea); }
canvas.firma { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; background: #fff; border-radius: var(--raggio); border: 1.5px dashed var(--testo-3); touch-action: none; }
.nota-cf { margin: -6px 4px 14px; font-size: 0.9em; min-height: 1em; }
.nota-cf.giusto { color: var(--verde); font-weight: 500; }
.nota-cf.sbagliato { color: var(--rosso); }
.nascosto { display: none; }
.risultati-luogo:empty { display: none; }
.pulsante.pericolo-testo { color: var(--rosso); }

/* ——— QR code per lo studio ——— */
.anteprima-qr { width: 64px; height: 64px; flex: none; }
.anteprima-qr svg, .quadro-qr svg { width: 100%; height: 100%; display: block; }
.manifesto-qr { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body.stampa-qr > *:not(.manifesto-qr) { display: none !important; }
  body.stampa-qr { background: #fff; }
  body.stampa-qr .manifesto-qr { display: flex; flex-direction: column; align-items: center; text-align: center; color: #1c1c28; font-size: 15pt; }
  .manifesto-loghi { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 14mm; }
  .manifesto-loghi > img { height: 22mm; }
  .manifesto-qr .marchio-app { font-size: 26pt; }
  .manifesto-qr .marchio-app .space { color: #1c1c28; }
  .manifesto-qr h1 { font-size: 34pt; margin: 0 0 3mm; }
  .manifesto-qr .sotto { margin: 0 0 10mm; color: #555; }
  .manifesto-qr .quadro-qr { width: 105mm; height: 105mm; }
  .manifesto-qr ol { text-align: left; margin: 10mm 0 6mm; line-height: 1.6; }
  .manifesto-qr .indirizzo { color: #555; font-size: 12pt; }
  .manifesto-qr .pilates { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
