/* Gestionale Saloni – grafica v2. Il colore del salone arriva da --accento */
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --sfondo: #f7f3ee;
  --carta: #ffffff;
  --testo: #231d19;
  --grigio: #7d736b;
  --linea: #ece5dd;
  --scuro: #211a16;
  --scuro-2: #2e2520;
  --ok: #2f7d4f;
  --errore: #b3261e;
  --tenue: color-mix(in srgb, var(--accento) 10%, #fff);
  --tenue-2: color-mix(in srgb, var(--accento) 18%, #fff);
  --raggio: 18px;
  --ombra: 0 1px 2px rgba(60,40,20,.04), 0 8px 24px -12px rgba(60,40,20,.14);
  --ombra-forte: 0 18px 40px -18px rgba(60,40,20,.35);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titoli: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--testo); background: var(--sfondo); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titoli); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
code { background: var(--tenue); padding: .05rem .35rem; border-radius: 6px; font-size: .85em; }
.ico { flex-shrink: 0; vertical-align: middle; }
.grigio { color: var(--grigio); }
.piccolo { font-size: .85rem; }
.centro { text-align: center; }
.dx { text-align: right; }
.nowrap { white-space: nowrap; }
.sopratitolo { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--accento); margin-bottom: .35rem; }

/* ---------- Menu laterale ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: linear-gradient(180deg, var(--scuro) 0%, #1a1411 100%); color: #e9e1d8; display: flex; flex-direction: column; z-index: 40; padding: 18px 14px; }
.sb-logo { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: 16px; background: #fbf8f4; text-decoration: none; margin-bottom: 22px; padding: 10px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sb-logo img { max-height: 76px; max-width: 100%; object-fit: contain; }
.sb-nome { font-family: var(--titoli); font-size: 1.35rem; color: var(--scuro); text-align: center; line-height: 1.15; }
.sb-nav { display: flex; flex-direction: column; gap: 3px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: #cfc4b9; font-weight: 500; transition: background .15s, color .15s; }
.sb-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-nav a.attiva { background: var(--accento); color: var(--su-accento); box-shadow: 0 8px 20px -10px var(--accento); }
.sb-nav a .ico { opacity: .9; }
.sb-conta { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; background: #1f8f4e; color: #fff; border-radius: 99px; padding: .05rem .5rem; }
.sb-piede { margin-top: auto; padding-top: 16px; }
.sb-installa { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; padding: 10px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.25); background: transparent; color: #e9e1d8; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.sb-installa:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-installa[hidden], [data-installa][hidden] { display: none; }
.sb-utente { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.sb-utente b { display: block; font-size: .9rem; color: #fff; }
.sb-utente small { color: #a99c90; font-size: .75rem; }
.sb-esci { margin-left: auto; color: #a99c90; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.sb-esci:hover { background: rgba(255,255,255,.08); color: #fff; }
.sb-supporto { font-size: .7rem; color: #85786d; padding: 10px 6px 0; }
.barra-mobile, .velo { display: none; }

.contenuto { margin-left: 248px; padding: 32px 36px 48px; min-height: 100vh; max-width: 1500px; }

/* ---------- Mattoni ---------- */
.card { background: var(--carta); border: 1px solid rgba(60,40,20,.05); border-radius: var(--raggio); padding: 22px 24px; box-shadow: var(--ombra); margin-bottom: 20px; }
.card > h2:first-child { margin-top: -2px; }
.griglia { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; }
.griglia > .card { margin-bottom: 0; }
.griglia-2 { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.griglia-dash { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; }
.riga { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spazio { flex: 1; }
.intestazione { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.intestazione h1 { margin: 0; }
.numero { font-family: var(--titoli); font-size: 2.1rem; font-weight: 600; line-height: 1.1; }

.kpi { display: flex; gap: 16px; align-items: center; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--ombra-forte); }
.kpi-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--tenue); color: var(--accento); flex-shrink: 0; }
.kpi-ico.verde { background: #e3f3e8; color: #1f7a45; }
.kpi-ico.rosa { background: #f8e4e8; color: #a3405a; }
.kpi-ico.ambra { background: #fbeed5; color: #9a6400; }
.kpi .etichetta { color: var(--grigio); font-size: .85rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.15rem; border-radius: 99px; border: 1px solid var(--linea); background: var(--carta); color: var(--testo); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: #fbf8f4; }
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--accento); border-color: var(--accento); color: var(--su-accento); box-shadow: 0 10px 22px -12px var(--accento); }
.btn-primario:hover { background: color-mix(in srgb, var(--accento) 88%, #000); }
.btn-scuro { background: var(--scuro); border-color: var(--scuro); color: #fff; }
.btn-scuro:hover { background: #000; }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; box-shadow: 0 10px 22px -12px #1f8f4e; }
.btn-wa:hover { background: #187a42; }
.btn-pericolo { color: var(--errore); border-color: #f0d3d0; background: #fff; }
.btn-chiaro { background: transparent; }
.btn-piccolo { padding: .38rem .8rem; font-size: .84rem; }
.btn-tondo { width: 42px; height: 42px; padding: 0; }
.btn-largo { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 14px; color: #4a3f37; }
input, select, textarea { display: block; width: 100%; margin-top: .35rem; padding: .68rem .85rem; border: 1px solid #e2d9cf; border-radius: 12px; font: inherit; font-weight: 400; background: #fdfbf9; color: var(--testo); transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accento); background: #fff; box-shadow: 0 0 0 4px var(--tenue-2); }
input[type=checkbox], input[type=radio] { display: inline-block; width: 18px; height: 18px; margin: 0 .45rem 0 0; accent-color: var(--accento); vertical-align: -3px; }
input[type=color] { height: 46px; padding: .25rem; }
input[type=file] { background: #fff; }
textarea { min-height: 90px; resize: vertical; }
.check { font-weight: 500; display: flex; align-items: flex-start; gap: .15rem; }
.campi { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
fieldset { border: 0; border-radius: 16px; padding: 18px 20px 6px; margin: 0 0 18px; background: #fbf8f4; }
legend { font-family: var(--titoli); font-weight: 600; font-size: 1.05rem; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
legend + * { clear: both; }

table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: .8rem .7rem; border-bottom: 1px solid var(--linea); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grigio); font-weight: 600; border-bottom-width: 1px; }
tr:last-child td { border-bottom: 0; }
.tabella-scroll { overflow-x: auto; }
tr.cliccabile { cursor: pointer; transition: background .12s; }
tr.cliccabile:hover td { background: #fbf8f4; }

.avviso { display: flex; gap: .6rem; align-items: center; padding: .85rem 1.1rem; border-radius: 14px; margin-bottom: 18px; font-weight: 500; }
.avviso-ok { background: #e6f4ea; color: #1e5a37; }
.avviso-errore { background: #fbe9e7; color: #8c1d17; }
.avviso-info { background: var(--tenue); color: #4a3f37; }

/* Avvertenze cliente: icona + testo + bordo, mai solo colore */
.allerta { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--scuro); border-radius: 16px; background: repeating-linear-gradient(135deg, #fff8e8 0 14px, #fff3d9 14px 28px); margin-bottom: 20px; box-shadow: var(--ombra); }
.allerta-icona { width: 40px; height: 40px; border-radius: 12px; background: var(--scuro); color: #ffd36b; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.allerta strong { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .15rem; }
.allerta-testo { white-space: pre-line; font-weight: 600; font-size: 1.02rem; }
.tag-online { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #2f5687; color: #fff; border-radius: 6px; padding: .05rem .4rem; margin-right: .3rem; vertical-align: 1px; }
.tag-allerta { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; font-size: .72rem; letter-spacing: .04em; background: var(--scuro); color: #ffd36b; border-radius: 6px; padding: .1rem .4rem; margin-right: .35rem; vertical-align: 1px; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 99px; font-size: .76rem; font-weight: 600; background: #f1ece6; color: #5c5047; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-prenotato { background: var(--tenue); color: color-mix(in srgb, var(--accento) 75%, #000); }
.badge-eseguito { background: #e3f3e8; color: #1f6b3e; }
.badge-annullato, .badge-non_presentato { background: #fbe7e5; color: #9b2d25; }
.badge-omaggio, .badge-prova { background: #e7eef8; color: #2f5687; }
.badge-basso { background: #fbeed5; color: #8a5a00; }

.schede { display: inline-flex; gap: 4px; background: #efe8e0; padding: 5px; border-radius: 99px; margin-bottom: 22px; flex-wrap: wrap; }
.schede a { padding: .5rem 1.1rem; text-decoration: none; border-radius: 99px; font-weight: 600; color: var(--grigio); font-size: .92rem; }
.schede a:hover { color: var(--testo); }
.schede a.attiva { background: #fff; color: var(--testo); box-shadow: 0 2px 8px -2px rgba(60,40,20,.2); }

.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; font-size: .85rem; color: #3b2f27; flex-shrink: 0; letter-spacing: .02em; }
.avatar-piccolo { width: 32px; height: 32px; font-size: .74rem; }
.avatar-grande { width: 64px; height: 64px; font-size: 1.3rem; font-family: var(--titoli); }
.avatar-chiaro { background: rgba(255,255,255,.12) !important; color: #fff; }
.persona { display: flex; align-items: center; gap: 12px; }
.persona b { display: block; }

/* ---------- Pagina Oggi ---------- */
.eroe { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 34px; margin-bottom: 22px; color: #fff; background:
  radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--accento) 70%, #fff) 0, transparent 38%),
  radial-gradient(circle at 75% 120%, color-mix(in srgb, var(--accento) 55%, #000) 0, transparent 45%),
  linear-gradient(120deg, var(--scuro) 0%, color-mix(in srgb, var(--accento) 60%, var(--scuro)) 100%); box-shadow: var(--ombra-forte); }
.eroe::after { content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 70px rgba(255,255,255,.03); }
.eroe h1 { font-size: 2.3rem; margin: 0 0 .25rem; color: #fff; }
.eroe p { color: rgba(255,255,255,.78); margin: 0; text-transform: capitalize; font-size: 1.05rem; }
.eroe .riga { position: relative; z-index: 1; }
.eroe .btn-primario { background: #fff; color: var(--scuro); border-color: #fff; box-shadow: none; }

.programma { list-style: none; margin: 0; padding: 0; }
.programma li { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 10px; border-radius: 14px; cursor: pointer; transition: background .12s; position: relative; }
.programma li + li { border-top: 1px solid var(--linea); }
.programma li:hover { background: #fbf8f4; }
.programma .quando { font-weight: 700; font-size: 1.05rem; }
.programma .quando small { display: block; color: var(--grigio); font-weight: 500; font-size: .78rem; }
.programma .chi { display: flex; align-items: center; gap: 12px; min-width: 0; }
.programma .chi div { min-width: 0; }
.programma .chi small { display: block; color: var(--grigio); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.programma .barretta { position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; }
.vuoto { text-align: center; padding: 30px 10px; color: var(--grigio); }
.vuoto .ico { color: var(--accento); margin-bottom: 8px; }
.lista-mini { list-style: none; margin: 0; padding: 0; }
.lista-mini li { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.lista-mini li + li { border-top: 1px solid var(--linea); }

/* ---------- Agenda ---------- */
.agenda-barra { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.agenda-barra h1 { margin: 0 8px; font-size: 1.75rem; text-transform: capitalize; }
.agenda-barra input[type=date] { width: auto; margin: 0; border-radius: 99px; padding: .55rem 1rem; }
.agenda-wrap { overflow: auto; background: var(--carta); border-radius: var(--raggio); box-shadow: var(--ombra); max-height: calc(100vh - 170px); }
.agenda { display: grid; min-width: 100%; }
.ag-testa { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); z-index: 4; padding: 14px 10px; border-bottom: 1px solid var(--linea); display: flex; align-items: center; gap: 10px; justify-content: center; }
.ag-testa .avatar { color: #fff; width: 36px; height: 36px; font-size: .8rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--linea); }
.ag-testa b { display: block; font-size: .95rem; }
.ag-testa small { color: var(--grigio); font-size: .75rem; }
.ag-ore { position: relative; background: #fdfbf9; border-right: 1px solid var(--linea); }
.ag-ora { position: absolute; left: 0; right: 0; font-size: .74rem; font-weight: 600; color: var(--grigio); text-align: right; padding-right: 10px; transform: translateY(-.6em); }
.ag-col { position: relative; border-left: 1px solid #f3eee8; }
.ag-col.chiusa { background: repeating-linear-gradient(135deg, #fbf8f4 0 10px, #f6f1eb 10px 20px); }
.ag-slot { position: absolute; left: 0; right: 0; display: block; }
.ag-slot.ora-piena { border-top: 1px solid #efe9e2; }
.ag-slot:hover { background: var(--tenue); }
.ag-slot:hover::after { content: "+"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--accento); }
.ag-app { position: absolute; left: 5px; right: 5px; border-radius: 12px; padding: 7px 10px 6px 12px; font-size: .8rem; line-height: 1.3; overflow: hidden; text-decoration: none; color: #2a211c; background: color-mix(in srgb, var(--c, #888) 16%, #fff); border-left: 4px solid var(--c, #888); box-shadow: 0 1px 2px rgba(0,0,0,.04); z-index: 1; transition: transform .12s, box-shadow .12s; }
.ag-app:hover { z-index: 3; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(40,25,15,.4); }
.ag-app .t { font-size: .72rem; font-weight: 700; color: color-mix(in srgb, var(--c, #888) 70%, #000); }
.ag-app b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-app .s { color: #5c5047; }
.ag-app.st-annullato, .ag-app.st-non_presentato { opacity: .5; text-decoration: line-through; background: #f4f1ee; }
.ag-app.st-eseguito::after { content: "✓"; position: absolute; right: 8px; top: 6px; font-weight: 700; color: #1f7a45; }
.ag-adesso { position: absolute; left: 0; right: 0; border-top: 2px solid #d64545; z-index: 2; pointer-events: none; }
.ag-adesso::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #d64545; }

/* Scelta servizi */
.lista-servizi { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-height: 360px; overflow-y: auto; padding: 2px; }
.lista-servizi label { display: flex; align-items: center; gap: .3rem; font-weight: 600; margin: 0; padding: .8rem .9rem; border: 1.5px solid var(--linea); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s, transform .12s; }
.lista-servizi label:hover { border-color: color-mix(in srgb, var(--accento) 45%, #fff); }
.lista-servizi label:has(input:checked) { border-color: var(--accento); background: var(--tenue); }
.lista-servizi .prezzo { margin-left: auto; color: var(--grigio); font-size: .8rem; font-weight: 500; white-space: nowrap; text-align: right; line-height: 1.25; }

.ricerca-cliente { position: relative; }
.risultati { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% - 8px); background: #fff; border-radius: 14px; box-shadow: var(--ombra-forte); max-height: 300px; overflow-y: auto; padding: 6px; }
.risultati div { padding: .65rem .8rem; cursor: pointer; border-radius: 10px; }
.risultati div:hover { background: var(--tenue); }

/* Scheda cliente */
.testata-cliente { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.testata-cliente h1 { margin: 0; }
.testata-cliente .dati { color: var(--grigio); margin-top: .2rem; display: flex; gap: 14px; flex-wrap: wrap; }

/* Foto */
.foto-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.foto-griglia figure { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--ombra); }
.foto-griglia img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.foto-griglia figcaption { padding: .6rem .75rem; font-size: .82rem; }

/* Firma */
.firma { border: 2px dashed #d5c9bc; border-radius: 16px; background: #fff; width: 100%; height: 220px; touch-action: none; display: block; }
.informativa { white-space: pre-line; max-height: 280px; overflow-y: auto; background: #fbf8f4; padding: 16px 18px; border-radius: 14px; font-size: .92rem; }

/* Barre statistiche */
.barra { height: 10px; background: #f1ebe4; border-radius: 99px; overflow: hidden; min-width: 80px; }
.barra span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--accento) 65%, #fff), var(--accento)); }

/* ---------- Accesso ---------- */
.pagina-login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.login-arte { position: relative; overflow: hidden; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; background:
  radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--accento) 75%, #fff) 0, transparent 35%),
  radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--accento) 60%, #000) 0, transparent 45%),
  linear-gradient(150deg, var(--scuro), color-mix(in srgb, var(--accento) 65%, var(--scuro))); }
.login-arte::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; }
.login-arte::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 50px rgba(255,255,255,.04), 0 0 0 110px rgba(255,255,255,.03); }
.login-arte > * { position: relative; z-index: 1; }
.login-arte h2 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 .6rem; max-width: 12ch; }
.login-arte p { color: rgba(255,255,255,.75); max-width: 38ch; margin: 0; }
.login-form { display: grid; place-items: center; padding: 32px; }
.box-login { width: 100%; max-width: 380px; }
.box-login h1 { text-align: center; }
.logo-login { display: block; max-width: 260px; max-height: 150px; margin: 0 auto 2rem; object-fit: contain; }
.box-login .benvenuto { text-align: center; color: var(--grigio); margin: -1rem 0 1.6rem; }

/* ---------- Telefono e tablet ---------- */
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  body.menu-aperto .sidebar { transform: none; box-shadow: 20px 0 40px rgba(0,0,0,.25); }
  body.menu-aperto .velo { display: block; position: fixed; inset: 0; background: rgba(20,14,10,.45); z-index: 35; }
  .barra-mobile { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; height: 64px; padding: 0 14px; background: rgba(247,243,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
  .menu-btn { border: 0; background: #fff; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; box-shadow: var(--ombra); cursor: pointer; color: var(--testo); }
  .bm-logo { display: flex; align-items: center; height: 48px; text-decoration: none; }
  .bm-logo img { max-height: 46px; max-width: 160px; object-fit: contain; }
  .bm-logo .sb-nome { font-size: 1.1rem; }
  .contenuto { margin-left: 0; padding: 20px 16px 40px; }
  .griglia-2, .griglia-dash { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
  .eroe { padding: 24px; }
  .eroe h1 { font-size: 1.8rem; }
  .agenda-wrap { max-height: none; }
  .pagina-login { grid-template-columns: 1fr; }
  .login-arte { min-height: 180px; padding: 28px; }
  .login-arte h2 { font-size: 1.7rem; }
}
@media (max-width: 560px) {
  .griglia { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .kpi-ico { width: 40px; height: 40px; border-radius: 12px; }
  .numero { font-size: 1.6rem; }
  .programma li { grid-template-columns: 58px 1fr; }
  .programma li > .badge { grid-column: 2; justify-self: start; }
  .card { padding: 18px; }
}
@media print {
  .sidebar, .barra-mobile, .btn, .no-stampa, .schede { display: none !important; }
  .contenuto { margin: 0; padding: 0; }
  .card { box-shadow: none; border: 0; }
  body { background: #fff; }
}
