/* Portale cliente — mobile first, una colonna */
body.portale { background: var(--surface); }
.p-shell { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
@media (min-width: 560px) { .p-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.p-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.p-top .centro { font-weight: 700; }
.p-top .chi { color: var(--muted); font-size: 13px; }
.p-main { flex: 1; padding: 18px 18px 90px; }
.p-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.p-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.p-nav a:hover { text-decoration: none; }
.p-nav a.active { color: var(--accent-ink); }
.p-nav svg { width: 22px; height: 22px; }
.p-h1 { font-size: 22px; margin-bottom: 4px; }
.p-sub { color: var(--muted); margin-bottom: 18px; }
.p-sec { margin-top: 26px; }
.p-sec h2 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }

/* card lezione */
.lez { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); margin-bottom: 10px; align-items: flex-start; }
.lez .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; }
.lez .body { flex: 1; min-width: 0; }
.lez .quando { font-weight: 600; }
.lez .cosa { color: var(--ink-2); }
.lez .chi { color: var(--muted); font-size: 13px; }
.lez .azioni { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lez.mia { border-color: var(--accent); background: #f6fbf8; }
.lez.tap { cursor: pointer; }
.lez.tap:hover { background: var(--surface); }
.lez.pieno { opacity: .55; }

.giorno-h { position: sticky; top: 53px; background: var(--bg); padding: 10px 0 6px; font-weight: 600; z-index: 4; }
.filtri { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.filtri .pill { cursor: pointer; flex: none; }
.filtri .pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* pacchetti */
.pacc { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 10px; }
.pacc .t { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.pacc .d { color: var(--ink-2); font-size: 14px; margin-top: 2px; }

/* accesso */
.p-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.p-login .card { width: 100%; max-width: 380px; }
.p-login h1 { font-size: 22px; margin-bottom: 4px; }
.p-login .links { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.codice { letter-spacing: .4em; font-size: 22px; text-align: center; }
.ok-box { background: var(--accent-soft); color: var(--accent-ink); padding: 10px 12px; border-radius: var(--radius); margin-bottom: 12px; font-size: 14px; }

/* scelta acquisto nel drawer */
.scelta { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.scelta input { margin-top: 3px; accent-color: var(--accent); }
.scelta.no { opacity: .55; cursor: default; }
.scelta .m { font-size: 13px; color: var(--warn); }

/* istruttore */
.p-nav.due { grid-template-columns: repeat(2, 1fr); }
.p-top .logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.lez.passata { opacity: .65; }
.lez .pren-row { padding: 8px 0; }

/* etichetta del centro (solo per chi è iscritto a più centri) */
.centro-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--cc, var(--accent)) 14%, white); color: var(--cc, var(--accent-ink)); border: 1px solid color-mix(in srgb, var(--cc, var(--accent)) 35%, white); font-size: 11px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.pill.centro i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); margin-right: 6px; vertical-align: middle; }
.pill.centro.on { background: color-mix(in srgb, var(--cc) 16%, white); color: var(--cc); border-color: color-mix(in srgb, var(--cc) 40%, white); }
.filtri.centri { margin-bottom: 10px; }
.dove-prenoti { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 14px; border-radius: 10px; background: color-mix(in srgb, var(--cc, var(--accent)) 10%, white); border: 1px solid color-mix(in srgb, var(--cc, var(--accent)) 35%, white); font-size: 14px; }
.dove-prenoti .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cc, var(--accent)); margin-top: 5px; flex: none; }
.p-top .loghi { display: flex; align-items: center; }
.p-top .logo.piccolo { width: 30px; height: 30px; margin-left: -8px; border: 2px solid #fff; border-radius: 8px; background: #fff; }
.p-top .loghi .logo.piccolo:first-child { margin-left: 0; }
.p-top .iniziali { display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--cc, var(--accent)); border-radius: 8px; }
.p-top .logo.iniziali { width: 38px; height: 38px; }
.p-top .logo.piccolo.iniziali { width: 30px; height: 30px; font-size: 11px; }
