html { scroll-padding-top: 126px; }
body { background: linear-gradient(90deg, #090a0b 0%, #25272a 28%, #25272a 72%, #090a0b 100%); }
.menu-shell { background: #faf8f3; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 38px rgba(0,0,0,.16); }
footer { max-width: 1180px; margin-inline: auto; background: #faf8f3; }
.brand img { max-width: 92px; max-height: 92px; width: 92px; height: 92px; object-fit: contain; padding: 5px; border-radius: 12px; background: #fff; }
.sticky-navigation {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px max(24px, calc((100vw - 1180px) / 2)) 0;
  background: #18392b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(18, 43, 31, .17);
}
.sticky-navigation .category-nav { padding: 10px 0 12px; }
.category { scroll-margin-top: 126px; }
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  padding: 0 15px;
  border-radius: 28px;
  background: #214835;
  color: #fff;
  box-shadow: 0 4px 16px rgba(18, 43, 31, .25);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.back-to-top:hover, .back-to-top:focus-visible { background: #376047; }
footer { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.powered-by { display: inline-flex; align-items: center; gap: 9px; color: #214835; text-decoration: none; font-size: 12px; }
.powered-by img { display: block; width: 36px; height: 36px; border-radius: 8px; }
.powered-by strong { letter-spacing: .03em; }
.powered-by:hover, .powered-by:focus-visible { text-decoration: underline; }
@media (max-width: 900px) {
  .menu-shell, footer { width: calc(100% - 20px); }
  html { scroll-padding-top: 160px; }
  .category { scroll-margin-top: 160px; }
}
@media (max-width: 600px) {
  .brand img { max-width: 72px; max-height: 72px; width: 72px; height: 72px; }
  .sticky-navigation { padding: 8px 18px 0; }
  .sticky-navigation .toolbar { gap: 7px; }
  .sticky-navigation .search input { height: 36px; }
  .sticky-navigation .category-nav { padding: 8px 0; }
  .sticky-navigation .actions { gap: 5px; }
  .sticky-navigation .lang, .sticky-navigation .actions button { padding: 7px 9px; }
  html { scroll-padding-top: 156px; }
  .category { scroll-margin-top: 156px; }
  .back-to-top { right: 12px; bottom: 12px; padding: 0 12px; }
  .back-to-top span { display: none; }
}
@media print {
  body, .menu-shell, footer { background: #fff; box-shadow: none; width: auto; }
  .sticky-navigation, .back-to-top { display: none !important; }
  .category { scroll-margin-top: 0; }
  .powered-by img { width: 25px; height: 25px; }
}

/* Foto dello shop nella carta clienti, senza carrello o pulsanti ordine. */
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.dish { flex-direction: column; border-radius: 18px; box-shadow: 0 7px 24px rgba(24, 42, 29, .07); }
.dish[hidden], .dish-photo[hidden] { display: none !important; }
.dish-photo { width: 100%; min-width: 0; align-self: auto; background: #f0ece3; }
.menu-photo-open { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #e9e4d9; cursor: zoom-in; overflow: hidden; }
.dish-photo img { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.menu-photo-open:hover img { transform: scale(1.035); }
.menu-photo-open:focus-visible { outline: 3px solid #c99f55; outline-offset: -3px; }
.menu-photo-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(15, 20, 16, .68); color: #fff; font: 700 18px system-ui, sans-serif; }
.menu-photo-notice { margin: 0; padding: 9px 13px; background: #f5f2eb; color: #756c5c; border-bottom: 1px solid #e5e1d8; font-size: 10px; line-height: 1.4; }
.dish-content { width: 100%; padding: 19px; }
.dish-heading { gap: 12px; }
.dish-heading h3 { font-size: 24px; line-height: 1.15; }
.dish-heading .price { margin-top: 4px; font-size: 14px; }
.dish-text p { font-size: 13px; line-height: 1.6; }
.food-refs { gap: 14px; flex-wrap: wrap; }
body.menu-photo-is-open { overflow: hidden; }
.menu-photo-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 16px; border: 1px solid #d1bd98; border-radius: 20px; background: #faf8f3; color: #214835; box-shadow: 0 25px 90px rgba(0,0,0,.35); overflow: auto; }
.menu-photo-dialog::backdrop { background: rgba(5, 8, 6, .84); }
.menu-photo-dialog-image { display: block; width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 12px; background: #111613; }
.menu-photo-dialog-close { position: absolute; z-index: 1; top: 24px; right: 24px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(15,20,16,.85); color: #fff; font: 26px system-ui, sans-serif; cursor: pointer; }
.menu-photo-dialog-close:focus-visible { outline: 3px solid #c99f55; outline-offset: 2px; }
.menu-photo-dialog-name { margin: 12px 0 5px; font: 24px Georgia, serif; }
.menu-photo-dialog-notice { margin: 0; color: #756c5c; font-size: 12px; line-height: 1.4; }
@media (max-width: 1050px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 650px) {
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .dish-photo { width: 100%; min-width: 0; }
  .dish-photo img { min-height: 0; }
  .dish-content { padding: 17px; }
  .dish-heading h3 { font-size: 23px; }
  .menu-photo-dialog { padding: 10px; border-radius: 15px; }
  .menu-photo-dialog-close { top: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .dish-photo img { transition: none; } }
@media print {
  body.menu-photo-is-open { overflow: visible; }
  .cards { display: block; }
  .dish, .dish[hidden] { flex-direction: row !important; border-radius: 0; }
  .dish-photo { width: 32mm; min-width: 32mm; align-self: center; }
  .dish-photo img { width: 100%; height: auto; min-height: 0; aspect-ratio: auto; transform: none !important; }
  .dish-content { width: auto; padding: 2mm 3mm; }
  .dish-heading h3 { font-size: 15pt; }
  .menu-photo-notice { padding: 1mm; font-size: 5pt; }
  .menu-photo-zoom, .menu-photo-dialog { display: none !important; }
}

/* Formato delle bevande dello shop / carta interna. */
.drink-format{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;padding:7px 10px;border:1px solid #e5d7bd;border-radius:999px;background:#f4ecdd;color:#775d32;font-size:11px;font-weight:750;line-height:1.4}
.dish[data-bv-disabled="1"]{display:none!important}
@media print{.drink-format{margin:0 0 1mm;padding:1mm 2mm;font-size:8pt}}

/* MIRAVIN · foto intere e responsive. Conserva la patch bevande e la grafica. */
.menu-photo-open {
  padding: 8px 8px 0;
  background: #f0ece3;
}
.dish-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}
.menu-photo-open:hover img,
.menu-photo-open:focus-visible img { transform: none !important; }
.menu-photo-zoom {
  position: static;
  margin: 4px 2px 8px auto;
  width: 28px;
  height: 28px;
}
/* La foto ingrandita entra anche in schermi bassi o in orientamento orizzontale. */
.menu-photo-dialog {
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}
.menu-photo-dialog-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  aspect-ratio: auto;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}
@media (max-width: 650px) {
  .menu-photo-open { padding: 6px 6px 0; }
  .category-head { flex-wrap: wrap; }
  .category-head > div { min-width: 0; flex: 1 1 200px; }
  .category-head > span { margin-left: auto; }
  .category-head h2,
  .dish-heading h3 { overflow-wrap: anywhere; }
  .dish-heading > div { min-width: 0; }
  .drink-format { max-width: 100%; }
}
@media print {
  .menu-photo-open { padding: 0; background: transparent; }
  .dish-photo img { aspect-ratio: auto; padding: 0; object-fit: contain !important; }
}

/* FOTO CARTA FIX: stessa foto originale dello shop, intera nel quadrato. */
.dish,
.dish-photo,
.menu-photo-open,
.dish-content { box-sizing: border-box; min-width: 0; max-width: 100%; }
.dish-photo,
.menu-photo-open { overflow: hidden; }
.dish-photo img {
  box-sizing: border-box !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.menu-photo-dialog-close {
  position: static;
  margin: 0 0 8px auto;
}
.menu-photo-dialog-image {
  box-sizing: border-box;
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
}
@media print {
  .dish-photo img { aspect-ratio: auto !important; }
}
