@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Sora:wght@600;700&display=swap");
:root{--lav:#C9B8FF;--ink:#0E0E11;--soft:#F3EFFF;--mist:#F3F1F8;--muted:#6B6A75;--violet:#7B5CF0;--ok:#2E9468;--err:#E5484D;--r:22px}
*{box-sizing:border-box}html,body{margin:0}
body{font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--mist);-webkit-font-smoothing:antialiased}
h1,h2,h3,.sora{font-family:Sora,system-ui,sans-serif;letter-spacing:-.03em;margin:0}
a{color:inherit}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:15px 24px;font:700 16px "DM Sans";cursor:pointer;background:var(--ink);color:#fff;text-decoration:none;transition:transform .12s,opacity .2s}
.btn:active{transform:scale(.97)}.btn[disabled]{opacity:.5;pointer-events:none}
.btn.lav{background:var(--lav);color:var(--ink)}.btn.ghost{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 2px #E4DEF5}
.btn.block{width:100%}.btn.sm{padding:10px 16px;font-size:14px}
.card{background:#fff;border-radius:var(--r);padding:22px;box-shadow:0 1px 0 #E9E4F6}
label{display:block;font-weight:700;font-size:13px;color:var(--muted);margin:14px 0 6px;text-transform:uppercase;letter-spacing:.04em}
input,select,textarea{width:100%;font:500 17px "DM Sans";padding:14px 16px;border-radius:14px;border:2px solid #E4DEF5;background:#fff;color:var(--ink);outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--violet)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--muted);margin-top:12px;text-transform:none;letter-spacing:0;font-weight:500}
.check input{width:20px;height:20px;flex:none;margin-top:1px}
.msg{padding:12px 14px;border-radius:14px;font-weight:500;margin-top:12px;display:none}
.msg.err{display:block;background:#FDECEC;color:#A12A2E}.msg.ok{display:block;background:#E4F5EC;color:#1D6B49}
.tlogo{display:inline-flex;align-items:center;gap:.28em;font:700 28px Sora,sans-serif;letter-spacing:-.05em;color:var(--ink);text-decoration:none;line-height:1}
.tlogo i{font-style:normal;width:1.25em;height:1.25em;border-radius:50%;background:var(--lav);display:grid;place-items:center;transform:rotate(-12deg);box-shadow:0 0 0 .12em var(--lav),inset 0 0 0 .1em rgba(14,14,17,.25);font-size:.85em}
.tlogo.dark i{background:var(--ink);color:var(--lav);box-shadow:0 0 0 .12em var(--ink)}
.tlogo.light{color:#fff}
.top{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.muted{color:var(--muted)}
.pill{display:inline-block;background:var(--ink);color:#fff;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700;letter-spacing:.04em}
/* tessera */
.pass{border-radius:24px;padding:20px;color:#fff;background:linear-gradient(160deg,var(--pc,#3B2416),color-mix(in srgb,var(--pc,#3B2416) 70%,#000));box-shadow:0 20px 40px -20px rgba(14,14,17,.5)}
.pass .ph{display:flex;align-items:center;justify-content:space-between;font-family:Sora,sans-serif;font-size:20px}
.pass .dot{width:36px;height:36px;border-radius:50%;background:var(--lav);color:var(--ink);display:inline-grid;place-items:center;font-size:16px;margin-right:10px}
.slots{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0 8px}
.slot{aspect-ratio:1;border-radius:50%;border:3px dashed rgba(255,255,255,.4)}
.slot.on{border:0;background:var(--sc,var(--lav));display:grid;place-items:center}
.slot.on::after{content:"";width:34%;height:18%;border:solid var(--ink);border-width:0 0 4px 4px;transform:rotate(-45deg) translate(1px,-2px)}
.pass small{opacity:.8}
.hide{display:none!important}
.spin{width:18px;height:18px;border-radius:50%;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;animation:s 1s linear infinite}@keyframes s{to{transform:rotate(360deg)}}
.sora,.num,.big,.cards3 b,.stat b,.credits,.pass .ph,.price b{font-weight:700}
/* ---------- pannello: telefono ---------- */
@media (max-width:700px){
  html .topbar{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}
  html .topbar .in{padding:10px 14px 0;gap:10px;flex-wrap:wrap}
  html .brand{flex:1;min-width:0;font-size:16px}
  html .brand .av{width:34px;height:34px;border-radius:10px}
  html .brand span.n{max-width:none}
  html .scanbtn{position:fixed;left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));justify-content:center;padding:17px;font-size:16px;z-index:30;box-shadow:0 14px 34px -10px rgba(14,14,17,.55)}
  html .scanbtn span{display:inline}
  html body:has(.ov.open) .scanbtn{display:none}
  html .menu>button{width:40px;height:40px}
  html .menu .dd{position:fixed;left:12px;right:12px;top:64px;min-width:0}
  html .tabs{order:3;width:calc(100% + 28px);margin:6px -14px 0;padding:0 14px 10px;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent)}
  html .tabs::-webkit-scrollbar{display:none}
  html .tabs button{padding:8px 14px;font-size:14px;flex:none}
  html main{padding:18px 14px 120px}
  html .head{margin-bottom:16px;gap:12px}
  html .head h1{font-size:25px;line-height:1.1}
  html .status{font-size:14px}
  html .seg{width:100%}
  html .seg button{flex:1;text-align:center;padding:9px 6px;font-size:13px}
  html .grid,html .col{gap:14px}
  html .card{padding:18px;border-radius:20px}
  html .kpis{padding:0}
  html .kpis div{padding:16px}
  html .kpis b{font-size:30px}
  html .kpis small{font-size:12px}
  html #chart svg{height:190px}
  html .qrrow img{width:84px;height:84px}
  html .ov{padding:0;align-items:stretch}
  html .sheet{border-radius:0;min-height:100%;padding:18px 16px 40px;box-shadow:none}
  html .sheet.wide{max-width:none}
  html .cust{grid-template-columns:1fr;border-radius:20px}
  html .cust>div{padding:16px}
  html .cust>div+div{border-left:0;border-top:1px solid #F0ECF8}
  html .scan input{font-size:17px;padding:14px}
  html .prods{grid-template-columns:repeat(2,1fr)}
  html .big{font-size:18px;padding:17px}
  html .two{grid-template-columns:1fr;gap:14px}
  html .lock{max-width:none}
  html table th:nth-child(4),html table td:nth-child(4),html table th:nth-child(5),html table td:nth-child(5){display:none}
}
