:root{--brand:#0f766e;--dark:#0f172a;--muted:#64748b;--bg:#f3f8fb;--card:#fff;--line:#dbe7ef;--danger:#dc2626;--warn:#f59e0b;--ok:#16a34a;--blue:#0284c7}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(180deg,#e8f7fb,#f7fbfc 38%,#fff);color:var(--dark)}a{text-decoration:none;color:inherit}.topbar{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px 22px}.brand{display:flex;align-items:center;gap:12px}.logo{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--brand),#38bdf8);color:white;display:grid;place-items:center;font-weight:900;box-shadow:0 12px 30px rgba(15,118,110,.25)}.brand h1{font-size:19px;margin:0}.brand p{margin:2px 0 0;color:var(--muted);font-size:13px}.nav{display:flex;gap:8px;flex-wrap:wrap}.nav a,.btn{border:0;border-radius:12px;padding:10px 14px;background:#eef7fa;color:#0f3f46;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px}.nav a.active,.btn.primary{background:var(--brand);color:white}.btn.danger{background:var(--danger);color:white}.btn.warn{background:var(--warn);color:white}.btn.ok{background:var(--ok);color:white}.btn.blue{background:var(--blue);color:white}.btn.ghost{background:#fff;border:1px solid var(--line)}.wrap{max-width:1240px;margin:0 auto;padding:22px}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;margin-bottom:22px}.panel,.card{background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 35px rgba(15,23,42,.06)}.panel{padding:22px}.hero h2{font-size:38px;margin:0 0 8px}.hero p{color:var(--muted);line-height:1.5}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{padding:16px;border-radius:18px;background:#f8fafc;border:1px solid var(--line)}.stat b{font-size:28px;display:block}.grid{display:grid;gap:16px}.grid.cols2{grid-template-columns:repeat(2,1fr)}.grid.cols3{grid-template-columns:repeat(3,1fr)}.grid.cols4{grid-template-columns:repeat(4,1fr)}.orders{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.lane{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:12px;min-height:360px}.lane h3{margin:4px 4px 12px}.order-card{background:white;border:1px solid var(--line);border-left:6px solid var(--brand);border-radius:16px;padding:14px;margin-bottom:12px;box-shadow:0 8px 20px rgba(15,23,42,.06)}.order-card.nuovo{border-left-color:var(--danger);animation:pulse 1.4s infinite}.order-card.confermato{border-left-color:var(--blue)}.order-card.preparazione{border-left-color:var(--warn)}.order-card.pronto{border-left-color:var(--ok)}.order-card.ritirato{opacity:.68}@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.25)}50%{box-shadow:0 0 0 8px rgba(220,38,38,0)}}.meta{color:var(--muted);font-size:13px}.rows{margin:10px 0;padding-left:18px}.row-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.chip{display:inline-flex;align-items:center;border-radius:999px;background:#e6f7f5;color:#0f766e;padding:4px 9px;font-size:12px;font-weight:800;margin:2px}.form{display:grid;gap:12px}.form.two{grid-template-columns:repeat(2,1fr)}label{font-size:13px;color:#334155;font-weight:800;display:grid;gap:6px}input,select,textarea{border:1px solid var(--line);border-radius:12px;padding:11px 12px;font:inherit;background:white}textarea{min-height:78px;resize:vertical}.table{width:100%;border-collapse:collapse;background:white;border-radius:16px;overflow:hidden}.table th,.table td{padding:11px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.table th{background:#f1f8fb;color:#0f3f46}.menu-page{max-width:1080px}.product{display:grid;grid-template-columns:90px 1fr auto;gap:14px;align-items:start;padding:14px}.product img{width:90px;height:90px;border-radius:16px;object-fit:cover;background:#eef7fa}.product h3{margin:0}.price{font-size:22px;font-weight:900;color:var(--brand)}.qty{display:flex;align-items:center;gap:8px}.qty input{width:80px;text-align:center}.cart{position:relative;background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;margin-top:18px;box-shadow:0 -8px 30px rgba(15,23,42,.08)}.toast{position:fixed;right:20px;bottom:20px;background:#0f172a;color:white;padding:14px 16px;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.2);z-index:99}.hidden{display:none!important}.muted{color:var(--muted)}.right{text-align:right}.print-only{display:none}@media(max-width:900px){.hero,.grid.cols2,.grid.cols3,.grid.cols4,.orders,.form.two{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.product{grid-template-columns:72px 1fr}.product .price{text-align:left}.stats{grid-template-columns:repeat(2,1fr)}}@media print{.topbar,.nav,.btn,.row-actions,.no-print{display:none!important}.wrap{padding:0}.panel,.card,.order-card{box-shadow:none;border:0}.print-only{display:block}body{background:white}}

.public-topbar{justify-content:center}.public-topbar .brand{width:100%;max-width:1080px}.public-topbar .brand h1{font-size:18px}.menu-page .cart{position:relative;bottom:auto;margin-bottom:24px}.menu-page #reparti{margin-bottom:12px}
@media(max-width:900px){.public-topbar{position:relative;top:auto;z-index:5;padding:12px 16px}.public-topbar .brand h1{font-size:16px}.public-topbar .brand p{font-size:12px}.menu-page{padding:14px}.hero h2{font-size:28px}.cart{border-radius:18px}}
.logo img{width:100%;height:100%;object-fit:contain;border-radius:12px;background:white}
.license-block{position:fixed;inset:0;background:rgba(2,6,23,.72);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.license-card{background:white;border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.35);max-width:520px;width:100%;padding:28px;text-align:center}
.license-card h2{margin-top:0;color:#b91c1c}.preview-logo{width:150px;height:90px;border:1px solid #dbeafe;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden}.preview-logo img{max-width:100%;max-height:100%;object-fit:contain}.codebox{font-family:Consolas,monospace;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:12px;padding:12px;word-break:break-all}
.sede-section{margin:0 0 22px}.sede-section h2{margin:0 0 12px;padding:12px 16px;border-radius:16px;background:#0f172a;color:white}.orders-simple{display:grid;grid-template-columns:1fr 1fr;gap:16px}.orders-simple .lane{min-height:220px}.orders-simple .lane h3{font-size:22px}.stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.new-order-alert{margin:0 0 16px;padding:18px 20px;border-radius:18px;background:#dc2626;color:white;box-shadow:0 18px 45px rgba(220,38,38,.25);display:grid;gap:4px;animation:pulse 1.1s infinite}.new-order-alert b{font-size:24px}.new-order-alert span{font-weight:700}.prep-summary{margin:0 0 18px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.08)}
@media(max-width:900px){.orders-simple{grid-template-columns:1fr}}
.reparti-nav{position:sticky;top:84px;z-index:4;display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;margin:-4px 0 14px;background:linear-gradient(180deg,rgba(247,251,252,.98),rgba(247,251,252,.92));scrollbar-width:thin}
.reparti-nav a{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;padding:9px 12px;font-weight:900;color:#0f3f46;box-shadow:0 8px 20px rgba(15,23,42,.06)}
.reparti-nav a.active{background:var(--brand);border-color:var(--brand);color:white}
.reparti-nav span{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:6px;border-radius:999px;background:#e6f7f5;color:var(--brand);font-size:12px}
.reparti-nav a.active span{background:rgba(255,255,255,.22);color:white}
.menu-reparto{padding:12px;margin-bottom:14px;border-radius:18px;border-top:5px solid var(--rep-color);scroll-margin-top:150px}
.reparto-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.reparto-head h2{margin:0;font-size:24px}
.reparto-head span{white-space:nowrap;color:var(--muted);font-size:13px;font-weight:900}
.products-grid{display:grid;gap:10px}.product{grid-template-columns:72px minmax(0,1fr) 190px;gap:10px;padding:10px 12px}.product img{width:72px;height:72px;border-radius:14px}.product-info{min-width:0}.product-desc{margin:4px 0;line-height:1.3}.product-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}.product-options label{display:inline-flex;grid-auto-flow:column;align-items:center;gap:5px;margin:0;font-size:12px}.product-note{margin-top:6px;width:100%;padding:9px 10px}.product-buy{display:grid;justify-items:end;align-content:start;gap:5px}.price{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:1}.price-euro{font-size:.86em}.price-unit{line-height:1}.qty{gap:6px}.qty .btn{min-width:42px;justify-content:center}.qty input{width:70px}
.product{cursor:pointer}.modal-open{overflow:hidden}.product-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:18px}.product-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.62);backdrop-filter:blur(5px)}.product-modal-card{position:relative;z-index:1;width:min(560px,100%);max-height:92vh;overflow:auto;background:white;border-radius:22px;box-shadow:0 28px 90px rgba(2,6,23,.35)}.product-modal-close{position:absolute;right:10px;top:10px;z-index:2;width:38px;height:38px;border:0;border-radius:999px;background:rgba(15,23,42,.86);color:white;font-size:28px;line-height:1;cursor:pointer}.product-modal-img{width:100%;height:240px;object-fit:cover;background:#eef7fa}.product-modal-body{padding:16px;display:grid;gap:12px}.product-modal-body h2{margin:0;font-size:26px;line-height:1.12}.product-modal-price{display:flex;align-items:baseline;gap:8px}.product-modal-desc{margin:0;color:#334155;font-size:16px;line-height:1.45;white-space:pre-wrap}.product-modal-chips{display:flex;flex-wrap:wrap;gap:5px}.detail-block{display:grid;gap:7px}.product-modal-qty{justify-content:flex-start}.product-modal-ok{justify-content:center}
@media(max-width:900px){.reparti-nav{top:0;z-index:30;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;margin:0 -14px 10px;padding:8px 14px 10px;box-shadow:0 10px 18px rgba(15,23,42,.06)}.reparti-nav a{min-width:0;width:100%;justify-content:space-between;padding:8px 9px;font-size:12px;line-height:1.15;white-space:normal}.reparti-nav span{min-width:18px;height:18px;margin-left:4px;font-size:11px;flex:0 0 auto}.menu-reparto{padding:9px;margin-bottom:10px;border-radius:14px;scroll-margin-top:128px}.reparto-head{margin-bottom:8px}.reparto-head h2{font-size:19px}.reparto-head span{font-size:12px}.products-grid{gap:7px}.product{grid-template-columns:52px minmax(0,1fr);gap:7px;padding:8px;border-radius:14px}.product img{width:52px;height:52px;border-radius:11px}.product h3{font-size:15px;line-height:1.15}.product-desc{font-size:12px;margin:2px 0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.product-chips .chip{font-size:10px;padding:2px 6px}.product-options{gap:4px;margin-top:3px}.product-options label{font-size:11px}.product-note{padding:7px 8px;border-radius:10px;margin-top:5px}.product-buy{grid-column:1 / -1;display:grid;grid-template-columns:auto auto 1fr;align-items:center;justify-items:start;text-align:left;gap:5px;margin-top:0}.price{font-size:18px}.price-unit{font-size:11px}.qty{justify-self:end;gap:4px}.qty .btn{width:32px;height:32px;min-width:32px;padding:0;justify-content:center}.qty input{width:48px;padding:7px 5px;border-radius:10px}.cart{padding:12px}.cart h3{margin:8px 0}.hero{gap:10px;margin-bottom:12px}.hero .panel{padding:14px}.hero h2{font-size:24px}.hero p{margin:0;font-size:13px}.product-modal{align-items:flex-end;padding:10px}.product-modal-card{max-height:94vh;border-radius:20px 20px 0 0}.product-modal-img{height:210px}.product-modal-body h2{font-size:22px}.product-modal-desc{font-size:15px}.product-modal-qty .btn{width:42px;height:42px;min-width:42px}.product-modal-qty input{width:72px}}
