:root{font-family:Segoe UI,Arial,sans-serif;color:#292720;background:#f5f1e8;line-height:1.5}*{box-sizing:border-box}body{margin:0}.banner{background:#81462e;color:white;text-align:center;padding:10px;font-size:13px}header,main,footer{max-width:1240px;margin:auto;padding:26px}header{border-bottom:1px solid #cbc6b7}h1{font-family:Georgia,serif;font-size:clamp(30px,4vw,47px);line-height:1.15;margin:10px 0}h2{font-family:Georgia,serif;font-size:26px}h3{margin:0}.eyebrow{letter-spacing:.12em;font-size:12px}.layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:28px}.product,aside,details,#login,.order{background:#fffcf6;border:1px solid #d4cebf;border-radius:12px;padding:20px;margin:12px 0}.product p{margin:7px 0}.product fieldset{border:0;padding:0;margin:10px 0}.product fieldset label{font-size:13px;display:inline-flex;align-items:center;margin:3px 12px 3px 0;gap:5px}.product input[type=checkbox]{width:auto}label{display:block;margin:10px 0;font-weight:600;font-size:14px}input,select{display:block;width:100%;padding:10px;border:1px solid #bfb8a7;background:white;border-radius:6px;margin-top:5px;font:inherit}button{padding:10px 15px;background:#45523c;color:white;border:0;border-radius:6px;cursor:pointer;font:inherit;margin:4px 5px 4px 0}button:hover{background:#2b3823}button:disabled{opacity:.4;cursor:default}nav,.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar label{min-width:180px}aside{align-self:start;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}.small,footer{font-size:13px;color:#5c5a51}.price{font-weight:700}#notice{padding:12px 0;color:#804528;font-weight:600;min-height:40px}#slotChoices button.selected{background:#8c4c34}.toggle{display:flex;justify-content:space-between;border-bottom:1px solid #ddd5c5;padding:8px;align-items:center}.cartline{border-bottom:1px solid #ddd5c5;padding:10px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}#identity{font-size:13px}.ticket{width:72mm;padding:4mm;font-family:monospace;font-size:12px;background:white;border-bottom:2px dashed #555;overflow-wrap:anywhere}.ticket h2{font-family:monospace;font-size:24px}.ticket h3{font-size:16px}.ticket .mods{font-weight:bold;font-size:14px}[hidden]{display:none!important}@media(max-width:760px){.layout{display:block}aside{position:static;max-height:none;overflow:visible}header,main,footer{padding:18px}.toolbar{display:block}.toolbar label{width:100%}}@media print{@page{size:auto;margin:0}body{background:white}header,footer,.banner,#notice,#customer,#staff,.no-print{display:none!important}main{padding:0;margin:0}#printArea{display:block!important}.ticket{break-after:page;border:0}.ticket:last-child{break-after:auto}}
.booking-guide{margin:24px 0 28px;padding:22px 24px;background:#ecefE4;border:1px solid #d5dcc9;border-radius:12px}.booking-guide h3{font-family:Georgia,serif;font-size:22px;font-weight:500;margin:0 0 20px}.booking-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;list-style:none;margin:0;padding:0}.booking-steps li{display:flex;gap:12px;align-items:flex-start;min-width:0}.step-number{display:flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;border:1px solid #a6b396;border-radius:50%;color:#4a593d;font-family:Georgia,serif;font-size:17px}.booking-steps strong{display:block;font-size:14px;line-height:1.4;margin:3px 0 6px;color:#3d4b32}.booking-steps p{margin:0;font-size:13px;line-height:1.6;color:#616957}.booking-guide-note{margin:18px 0 0;padding-top:13px;border-top:1px solid #d5dcc9;font-size:12px;color:#68715f}@media(max-width:760px){.booking-guide{padding:20px}.booking-steps{grid-template-columns:1fr;gap:18px}.booking-guide h3{margin-bottom:18px}}
.local-checkout{max-width:640px;margin:50px auto;padding:34px;background:#fffdf7;border:1px solid #ded6c5;border-radius:12px}.local-checkout h1{font-size:38px}.local-checkout .checkout-amount{font-family:Georgia,serif;font-size:40px;margin:20px 0}.local-checkout button{display:block;width:100%;margin:12px 0}.local-checkout .secondary{background:#e5dfd1;color:#544b3d}.email-preview-link{display:inline-block;margin:12px 0;color:#45523c;font-weight:600}#confirmation{scroll-margin-top:24px}#confirmation h3{font-family:Georgia,serif;font-size:24px;margin-top:22px}@media(max-width:680px){.local-checkout{margin:20px 14px;padding:24px}.local-checkout h1{font-size:30px}}
/* Banco operativo e anteprima Epson: 80 mm di carta, 72 mm di area utile. */
.staff-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.staff-stats>div{background:#e9eddf;border:1px solid #cfd7c3;padding:18px;border-radius:10px}.staff-stats strong{display:block;font-family:Georgia,serif;font-size:32px;color:#405137}.staff-stats span{display:block;font-size:13px;color:#5c6553}.order-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.status-badge{padding:5px 10px;border-radius:20px;font-size:12px;background:#eee8d9;white-space:nowrap}.status-badge.confirmed{background:#e3ecd9;color:#3a532c}.status-badge.paid_review{background:#f2ddd1;color:#7b3d26}.status-badge.expired{color:#777}.service-row{padding:14px 0;border-bottom:1px solid #ddd5c5}.service-row>span,.service-row>code{display:block;margin-top:5px}.ticket{box-sizing:border-box;width:72mm;max-width:72mm;margin:6mm 0;padding:2mm 0;font-family:Consolas,'Courier New',monospace;font-size:12px;line-height:1.35;color:#000;background:#fff}.ticket p{margin:2mm 0}.ticket h2{margin:3mm 0;font-size:24px;line-height:1.2}.ticket h3{font-size:16px;line-height:1.3}.ticket-brand{text-align:center;font-weight:bold}.ticket-channel,.ticket-total{font-weight:bold}.ticket-item{padding:2.5mm 0;break-inside:avoid}.ticket-item>strong{font-size:15px}.ticket .mods{font-size:13px;font-weight:700}.ticket hr{border:0;border-top:1px dashed #000;margin:3mm 0}#tickets{background:#e6e2d8;padding:8mm;width:fit-content}#phoneCartSummary{padding:12px;background:#ecefe5;border-radius:6px}#operations{padding:12px;background:#ecefe5;border-radius:8px;margin-bottom:18px}
@media(max-width:760px){.staff-stats{grid-template-columns:repeat(2,1fr)}.order-heading{align-items:flex-start;flex-direction:column;gap:8px}}
@media print{@page{size:auto;margin:0}html,body{width:80mm;margin:0!important;padding:0!important}main{width:80mm!important;max-width:none!important;margin:0!important;padding:0!important}#printArea{width:80mm!important}#tickets{background:#fff;width:80mm;padding:0!important}.ticket{width:72mm;max-width:72mm;padding:2mm 0;margin:0 0 0 3mm;border:0;break-after:page}.ticket:last-child{break-after:auto}.ticket h2,.ticket h3,.ticket p{color:#000!important}}
.production-table{border-collapse:collapse;width:100%;font-size:14px}.production-table th,.production-table td{text-align:left;padding:8px;border-bottom:1px solid #ddd5c5}.production-table th{color:#45523c}

/* Menu and cart */
main:has(#customer:not([hidden])) { max-width: 1460px; }
#customer .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.catalogue-column { min-width: 0; }
.catalogue-title { margin: 12px 0 16px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }

.catalogue-tools {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  background: #f5f1e8;
  border-bottom: 1px solid #d4cebf;
}
.catalogue-nav { gap: 4px 8px; }
.catalogue-nav a, .cart-jump {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 6px;
  color: #394932;
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 3px;
}
.catalogue-nav a:hover, .cart-jump:hover { background: #e5e9d9; }
.cart-jump { white-space: nowrap; background: #e5e9d9; }

.menu-section { margin: 26px 0 52px; scroll-margin-top: 76px; }
.menu-section:last-child { margin-bottom: 0; }
.menu-section h3 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4cebf;
  font: 600 clamp(24px, 2.25vw, 32px)/1.15 Georgia, serif;
}
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: stretch; }
#catalogue .product { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: clamp(16px, 1.65vw, 25px); }
.product-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-heading > div { min-width: 0; overflow-wrap: anywhere; }
.product-heading h4 {
  margin: 0;
  color: #342a22;
  font: 700 clamp(17px, 1.65vw, 23px)/1.2 Georgia, serif;
  text-transform: uppercase;
}
.product-heading p { color: #59574c; font-size: 14px; line-height: 1.45; }
.product-heading .price { color: #70472f; font-size: 16px; white-space: nowrap; }

.art-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  margin: 10px 0;
  border-block: 1px solid #e9e2d4;
}
.pizza-visual { flex: 0 0 auto; max-width: 100%; text-align: center; }
.pizza-drawing { display: block; width: 124px; max-width: 100%; height: auto; margin: auto; }
.pizza-visual-caption { display: block; margin-top: 4px; color: #625e51; font-size: 10px; }
.recipe-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.recipe-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 38px;
  max-width: 78px;
  color: #625e51;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.recipe-piece svg { width: 26px; height: 26px; }
.recipe-piece.is-omitted svg { filter: grayscale(1); opacity: .35; }
#catalogue .product fieldset { min-width: 0; }
#catalogue .product fieldset label { margin: 2px 10px 2px 0; min-height: 28px; font-weight: 400; }
#catalogue .product fieldset legend { color: #625e51; font-size: 12px; }
#catalogue .product input[type=checkbox] { margin-top: 0; accent-color: #56634b; }
.product-actions { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: end; gap: 12px; margin-top: auto; padding-top: 12px; }
.product-actions label, .product-actions .add { margin: 0; }
.product-actions .add { min-height: 44px; }

#order-cart {
  position: static;
  max-height: none;
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2vw, 30px);
  scroll-margin-top: 16px;
  overflow-wrap: anywhere;
  background: #e9eddf;
  border-color: #c8d1bd;
}
.cart-heading { padding-bottom: 14px; margin-bottom: 15px; border-bottom: 1px solid #c8d1bd; }
.cart-heading img { display: block; width: 172px; max-width: 100%; height: auto; margin-bottom: 16px; }
.cart-heading h2 { margin: 0; font-size: clamp(22px, 2vw, 29px); line-height: 1.2; }
#order-cart #total { font-weight: 700; }
#order-cart #checkout { width: 100%; margin-right: 0; }
#legalReview { font-size: 14px; }
#legalReview a { color: #394932; }
#legalReview label { display: flex; align-items: center; gap: 8px; }
#legalReview input { width: auto; margin: 0; }
#customer :focus-visible { outline: 2px solid #45523c; outline-offset: 3px; }
.product-grid :is(input, select, button, a) { scroll-margin-top: 130px; }

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  #customer .layout { grid-template-columns: minmax(0, 1fr) clamp(270px, 26%, 340px); gap: clamp(28px, 3.3vw, 55px); }
  #order-cart { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
  .cart-jump { display: none; }
}
@media (min-width: 1280px) {
  .art-preview { flex-direction: row; gap: 16px; min-height: 157px; }
  .recipe-strip { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .catalogue-tools { flex-wrap: wrap; padding: 8px 0; }
  .catalogue-nav { gap: 0 2px; }
  .catalogue-nav a, .cart-jump { padding-inline: 6px; font-size: 13px; }
  .menu-section { scroll-margin-top: 124px; margin-bottom: 36px; }
}
