:root {
  --bg: #f6f6f4; --s1: #ffffff; --s2: #efefec; --s3: #e6e6e2;
  --ink: #1b1c1f; --mu: #5f636b; --fa: #8b8f97; --ln: #e2e2de;
  --ac: #3b5bdb; --ac-s: #e8ecfd; --on: #ffffff;
  --rosso: #c92a2a; --rosso-s: #fdecec; --ambra: #b35c00; --ambra-s: #fff1dc;
  --st-da_fare: #868e96; --st-in_corso: #3b5bdb; --st-in_revisione: #e8890c; --st-fatto: #2f9e44;
  --pr-urgente: #e03131; --pr-alta: #f08c00; --pr-normale: #868e96; --pr-bassa: #adb5bd;
  --ombra: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.08);
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316; --s1: #1a1c20; --s2: #23252a; --s3: #2c2f35;
    --ink: #eceef2; --mu: #a2a6af; --fa: #7b7f88; --ln: #2d3036;
    --ac: #7d95ff; --ac-s: #232b4a; --on: #0d1330;
    --rosso: #ff6b6b; --rosso-s: #3a1d1f; --ambra: #ffb454; --ambra-s: #3a2a12;
    --st-da_fare: #8d939b; --st-in_corso: #7d95ff; --st-in_revisione: #ffa94d; --st-fatto: #51cf66;
    --pr-urgente: #ff6b6b; --pr-alta: #ffa94d; --pr-normale: #8d939b; --pr-bassa: #5c6168;
    --ombra: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
    color-scheme: dark;
    --su-stato: #101216;
  }
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.45 Geist, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
a { color: var(--ac); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 6px; }
.avvio { display: grid; place-items: center; height: 100vh; color: var(--mu); }
.nascosto { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Login ---------- */
.login { min-height: 100dvh; display: flex; justify-content: center; padding: calc(env(safe-area-inset-top) + 12vh) 20px 40px; }
.login form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.login .logo { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 8px; }
.login h1 { font-size: 30px; letter-spacing: -.02em; }
.login p.sub { color: var(--mu); margin-bottom: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--ln); background: var(--s1); outline: none; font-size: 16px;
}
.input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-s); }
textarea.input { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  background: var(--s2); white-space: nowrap;
}
.btn:hover { background: var(--s3); }
.btn.primario { background: var(--ac); color: var(--on); }
.btn.primario:hover { filter: brightness(1.08); }
.btn.grande { height: 48px; font-size: 16px; }
.btn.pericolo { color: var(--rosso); }
.btn.pericolo:hover { background: var(--rosso-s); }
.btn.icona { width: 36px; height: 36px; padding: 0; border-radius: 9px; background: none; color: var(--mu); }
.btn.icona:hover { background: var(--s2); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.errore { padding: 10px 12px; border-radius: 10px; background: var(--rosso-s); color: var(--rosso); font-weight: 500; font-size: 14px; }

/* ---------- Struttura ---------- */
.guscio { display: flex; height: 100dvh; }
.laterale {
  width: 264px; flex: none; display: flex; flex-direction: column;
  border-right: 1px solid var(--ln); background: var(--s1);
  padding: calc(env(safe-area-inset-top) + 14px) 10px 12px;
}
.marchio { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 700; font-size: 17px; }
.marchio img { width: 28px; height: 28px; border-radius: 8px; }
.nav-voce {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px;
  color: var(--mu); font-weight: 500; text-align: left; text-decoration: none;
}
.nav-voce:hover { background: var(--s2); color: var(--ink); }
.nav-voce.attiva { background: var(--ac-s); color: var(--ac); }
.nav-voce .conta { margin-left: auto; font-size: 12px; color: var(--fa); font-variant-numeric: tabular-nums; }
.sezione-tit {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 10px 6px; font-size: 12px; font-weight: 600; color: var(--fa); text-transform: uppercase; letter-spacing: .06em;
}
.sezione-tit .btn.icona { width: 26px; height: 26px; }
.albero { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.cliente-riga { display: flex; align-items: center; gap: 4px; }
.cliente-riga .nav-voce { color: var(--ink); font-weight: 600; }
.pallino { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chevron { transition: transform .15s; color: var(--fa); }
.chiuso .chevron { transform: rotate(-90deg); }
.progetti-figli { padding-left: 18px; }
.chiuso + .progetti-figli { display: none; }
.vuoto-albero { padding: 10px; color: var(--fa); font-size: 14px; }
.utente-box { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--ln); margin-top: 8px; }
.utente-box .nav-voce { flex: 1; color: var(--ink); }

.principale { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.pagina { max-width: 1100px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 22px) 28px 60px; }
.testata { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.testata .titoli { flex: 1; min-width: 0; }
.testata h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.sopratitolo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); font-weight: 500; margin-bottom: 4px; text-decoration: none; }
.sopratitolo:hover { color: var(--ink); }
.descr-progetto { color: var(--mu); margin-top: 6px; white-space: pre-wrap; }
.barra-mobile, .tab-mobile { display: none; }

/* ---------- Avatar ---------- */
.avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
  box-shadow: 0 0 0 2px var(--s1);
}
.avatar.g { width: 32px; height: 32px; font-size: 13px; }
.avatar.xl { width: 64px; height: 64px; font-size: 24px; }
.avatari { display: inline-flex; }
.avatari .avatar + .avatar { margin-left: -6px; }

/* ---------- Barra filtri ---------- */
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.chip-filtro {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--ln); background: var(--s1); font-size: 13px; font-weight: 500; color: var(--mu);
}
.chip-filtro:hover { color: var(--ink); border-color: var(--fa); }
.chip-filtro.on { background: var(--ac-s); border-color: transparent; color: var(--ac); }
select.chip-filtro { appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
select.chip-filtro.on { background-color: var(--ac-s); }

/* ---------- Lista task ---------- */
.gruppo { margin-bottom: 18px; }
.gruppo-tit {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 13px; font-weight: 600;
  width: 100%; text-align: left;
}
.etichetta-stato { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; color: var(--su-stato, #fff); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.gruppo-tit .n { color: var(--fa); font-weight: 500; }
.gruppo.chiuso .righe, .gruppo.chiuso .aggiungi { display: none; }
.righe { background: var(--s1); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.righe:empty { display: none; }
.riga {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 46px;
  border-bottom: 1px solid var(--ln); cursor: pointer;
}
.riga:last-child { border-bottom: 0; }
.riga:hover { background: var(--s2); }
.riga.aperta { background: var(--ac-s); }
.cerchio {
  width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--c, var(--fa));
  display: grid; place-items: center; color: #fff; position: relative;
}
.cerchio::after { content: ''; position: absolute; inset: -10px; }
.cerchio.fatto { background: var(--st-fatto); border-color: var(--st-fatto); }
.cerchio svg { width: 12px; height: 12px; stroke-width: 3; }
.cerchio:not(.fatto) svg { opacity: 0; }
.cerchio:not(.fatto):hover svg { opacity: .6; color: var(--c); }
.riga-corpo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.riga-titolo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.riga.completata .riga-titolo { color: var(--fa); text-decoration: line-through; }
.riga-meta { display: flex; align-items: center; gap: 10px; flex: none; font-size: 13px; color: var(--mu); }
.mini { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--fa); font-variant-numeric: tabular-nums; }
.mini svg { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600;
  color: var(--t); background: color-mix(in srgb, var(--t) 14%, transparent); white-space: nowrap; }
.data { white-space: nowrap; font-variant-numeric: tabular-nums; }
.data.ritardo { color: var(--rosso); font-weight: 600; }
.data.oggi { color: var(--ambra); font-weight: 600; }
.bandiera { display: inline-flex; color: var(--p); }
.bandiera svg { width: 15px; height: 15px; fill: var(--p); }
.cliente-tag { font-size: 12px; color: var(--mu); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

.aggiungi { margin-top: 6px; }
.aggiungi-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--fa); font-size: 14px; width: 100%; }
.aggiungi-btn:hover { background: var(--s2); color: var(--ink); }
.aggiungi-form { display: flex; gap: 8px; }
.aggiungi-form .input { height: 42px; }

.vuoto { text-align: center; padding: 50px 20px; color: var(--mu); }
.vuoto .grande-icona { font-size: 40px; margin-bottom: 10px; }
.vuoto h2 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.vuoto .btn { margin-top: 16px; }

/* ---------- Panoramica progetti ---------- */
.griglia-clienti { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.scheda-cliente { background: var(--s1); border: 1px solid var(--ln); border-radius: var(--r); padding: 14px; }
.scheda-cliente h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 8px; }
.scheda-cliente h3 .btn.icona { margin-left: auto; width: 30px; height: 30px; }
.voce-progetto { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.voce-progetto:hover { background: var(--s2); }
.voce-progetto .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-avanz { width: 60px; height: 5px; border-radius: 3px; background: var(--s3); overflow: hidden; flex: none; }
.barra-avanz i { display: block; height: 100%; background: var(--st-fatto); }

/* ---------- Pannello task ---------- */
.velo { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 30; animation: appari .15s; }
.pannello {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 31;
  background: var(--s1); box-shadow: var(--ombra); display: flex; flex-direction: column;
  animation: entra .18s ease-out;
}
@keyframes entra { from { transform: translateX(24px); opacity: 0; } }
@keyframes appari { from { opacity: 0; } }
.pannello-testa {
  display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 10px) 12px 10px 18px;
  border-bottom: 1px solid var(--ln);
}
.briciole { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); overflow: hidden; white-space: nowrap; }
.briciole a, .briciole button { color: var(--mu); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.briciole a:hover, .briciole button:hover { color: var(--ink); }
.pannello-corpo { flex: 1; overflow-y: auto; padding: 18px 22px calc(env(safe-area-inset-bottom) + 40px); overscroll-behavior: contain; }
.titolo-task {
  width: 100%; border: 0; background: none; outline: none; resize: none; overflow: hidden;
  font-size: 22px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; padding: 4px 6px; margin: 0 -6px 14px; border-radius: 8px;
}
.titolo-task:hover { background: var(--s2); }
.titolo-task:focus { background: var(--s2); }
.proprieta { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; align-items: center; margin-bottom: 22px; }
.proprieta > label, .proprieta > .lbl { font-size: 13px; color: var(--mu); display: flex; align-items: center; gap: 7px; min-height: 36px; }
.proprieta > label svg, .proprieta > .lbl svg { width: 15px; height: 15px; }
.valore { min-height: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sel {
  appearance: none; -webkit-appearance: none; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; font-size: 14px; font-weight: 500; cursor: pointer;
}
.sel:hover, .sel:focus { background: var(--s2); outline: none; }
.sel.stato { color: var(--su-stato, #fff); background: var(--c); text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .03em; padding: 0 12px; }
input.sel { cursor: text; }
input.sel[type=date] { min-width: 150px; }
.persona-tog {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; border-radius: 999px;
  border: 1px dashed var(--ln); font-size: 13px; color: var(--mu);
}
.persona-tog .avatar { width: 24px; height: 24px; box-shadow: none; opacity: .4; }
.persona-tog.on { border-style: solid; border-color: transparent; background: var(--s2); color: var(--ink); font-weight: 500; }
.persona-tog.on .avatar { opacity: 1; }
.tag-x { cursor: pointer; }
.tag-x:hover { filter: brightness(.9); }
.tag-input { height: 28px; width: 120px; border: 1px dashed var(--ln); border-radius: 6px; background: none; padding: 0 8px; font-size: 13px; outline: none; }
.tag-input:focus { border-style: solid; border-color: var(--ac); }
.blocco { margin-bottom: 26px; }
.blocco-tit { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.blocco-tit .mini { font-weight: 500; }
.descrizione { padding: 10px 12px; margin: 0 -12px; border-radius: 10px; cursor: text; min-height: 44px; overflow-wrap: anywhere; }
.descrizione:hover { background: var(--s2); }
.descrizione.vuota { color: var(--fa); }
.md > * + * { margin-top: 8px; }
.md ul, .md ol { padding-left: 22px; }
.md h3 { font-size: 16px; margin-top: 10px; }
.md code { background: var(--s3); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.voce-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.voce-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--st-fatto); flex: none; cursor: pointer; }
.voce-check .testo { flex: 1; min-width: 0; padding: 3px 6px; border-radius: 6px; border: 0; background: none; outline: none; }
.voce-check .testo:focus, .voce-check .testo:hover { background: var(--s2); }
.voce-check.fatta .testo { color: var(--fa); text-decoration: line-through; }
.voce-check .btn.icona { width: 28px; height: 28px; opacity: 0; }
.voce-check:hover .btn.icona, .voce-check .btn.icona:focus { opacity: 1; }
.progresso { height: 4px; border-radius: 2px; background: var(--s3); margin-bottom: 8px; overflow: hidden; }
.progresso i { display: block; height: 100%; background: var(--st-fatto); transition: width .2s; }
.sotto .riga { padding: 8px 10px; min-height: 40px; }
.piede-task { border-top: 1px solid var(--ln); padding-top: 14px; font-size: 13px; color: var(--fa); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }

/* ---------- Finestre ---------- */
dialog {
  border: 0; border-radius: 16px; padding: 0; background: var(--s1); color: var(--ink); box-shadow: var(--ombra);
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 40px);
}
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
dialog h2 { font-size: 19px; }
dialog p { color: var(--mu); }
/* Il pulsante di conferma è il primo nel codice (Invio lo attiva), ma appare a destra. */
.azioni { display: flex; flex-direction: row-reverse; gap: 8px; justify-content: flex-start; margin-top: 4px; }
.colori { display: flex; flex-wrap: wrap; gap: 8px; }
.colori label { position: relative; }
.colori input { position: absolute; opacity: 0; }
.colori span { display: block; width: 30px; height: 30px; border-radius: 9px; background: var(--c); cursor: pointer; }
.colori input:checked + span { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px var(--c); }
.colori input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 4px; }

.menu {
  position: fixed; z-index: 50; min-width: 200px; background: var(--s1); border: 1px solid var(--ln); border-radius: 12px;
  box-shadow: var(--ombra); padding: 6px; animation: appari .1s;
}
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; font-size: 14px; }
.menu button:hover { background: var(--s2); }
.menu button.pericolo { color: var(--rosso); }
.menu hr { border: 0; border-top: 1px solid var(--ln); margin: 4px 0; }

#toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 32px);
}
#toast.vis { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--rosso); color: #fff; }

/* ---------- Cerca e profilo ---------- */
.cerca-box { position: relative; margin-bottom: 18px; }
.cerca-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fa); }
.cerca-box .input { padding-left: 42px; height: 50px; font-size: 17px; }
.risultati-tit { font-size: 12px; font-weight: 600; color: var(--fa); text-transform: uppercase; letter-spacing: .06em; margin: 18px 4px 8px; }
.profilo { max-width: 460px; display: flex; flex-direction: column; gap: 22px; }
.profilo .card { background: var(--s1); border: 1px solid var(--ln); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.profilo .chi { display: flex; align-items: center; gap: 14px; }
.profilo .chi b { font-size: 20px; display: block; }
.profilo .chi span { color: var(--mu); }

/* ---------- Telefono ---------- */
@media (max-width: 860px) {
  .laterale { display: none; }
  .guscio { flex-direction: column; }
  .principale { padding-bottom: calc(env(safe-area-inset-bottom) + 64px); }
  .pagina { padding: 14px 16px 40px; }
  .barra-mobile {
    display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 10;
    padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--ln);
  }
  .barra-mobile:empty { display: none; }
  .barra-mobile .tit { flex: 1; min-width: 0; font-weight: 650; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab-mobile {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: color-mix(in srgb, var(--s1) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--ln); padding-bottom: env(safe-area-inset-bottom);
  }
  .tab-mobile a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: 500; color: var(--fa); text-decoration: none; }
  .tab-mobile a svg { width: 23px; height: 23px; }
  .tab-mobile a.attiva { color: var(--ac); }
  .testata h1 { font-size: 23px; }
  .testata .azioni-desk { display: none; }
  .riga { padding: 11px 12px; align-items: flex-start; }
  .riga-corpo { flex-direction: column; align-items: stretch; gap: 4px; }
  .riga-titolo { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .riga-meta { flex-wrap: wrap; gap: 8px; }
  .riga-meta:empty { display: none; }
  .cerchio { margin-top: 1px; }
  .pannello { width: 100%; animation: sale .22s ease-out; }
  @keyframes sale { from { transform: translateY(30px); opacity: 0; } }
  .pannello-corpo { padding: 16px 16px calc(env(safe-area-inset-bottom) + 40px); }
  .proprieta { grid-template-columns: 96px 1fr; }
  .voce-check .btn.icona { opacity: 1; }
  .griglia-clienti { grid-template-columns: 1fr; }
  .input, .sel, .tag-input { font-size: 16px; } /* niente zoom automatico su iPhone */
  .filtri { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
  .filtri::-webkit-scrollbar { display: none; }
  .filtri > * { flex: none; }
}
@media (min-width: 861px) {
  .solo-mobile { display: none !important; }
}
