/* ==========================================================================
   /menu2 — la carta da leggere: barra laterale, filtri, righe con foto piccola
   (si appoggia a style.css per colori, caratteri, .paper, .polaroid, .pin, .chip, .hours)
   ========================================================================== */
.menu-carta { --z-top: 100; --z-fab: 140; --z-light: 500; }

/* ---------- testa: fascia di noce con il cartello appeso ---------- */
.c-top { position: relative; z-index: var(--z-top); display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; padding: 0 var(--gutter); background: var(--walnut) url(../img/wood-dark.webp) center / 1400px auto; box-shadow: 0 6px 20px rgba(40, 20, 5, .35); }
.c-top__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--sh-sm); font-variant-numeric: tabular-nums; transition: transform .16s var(--ease-out), background-color .2s ease; }
.c-top__btn .icon { width: 18px; height: 18px; }
.c-top__btn .flip { transform: scaleX(-1); }
.c-top__btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .c-top__btn:hover { background: #fff; color: var(--ink); } }
.c-sign { position: absolute; left: 50%; top: 10px; z-index: 2; translate: -50% 0; transform: rotate(-2deg); transform-origin: 50% 10%; }
.c-sign img { height: 100px; width: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.c-nail { position: absolute; top: 9%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6b6b6b, #141414 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.c-nail--l { left: 11%; }
.c-nail--r { left: 89%; }
.c-top :focus-visible { outline-color: var(--gold); }

/* ---------- la foto grande ---------- */
.c-hero { position: relative; height: clamp(250px, 40vw, 460px); overflow: hidden; background: var(--walnut); }
.c-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.c-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(20, 10, 5, .55)); }
.c-hero__tag { position: absolute; left: clamp(16px, 4vw, 48px); bottom: 28px; z-index: 2; background: var(--paper); padding: 4px 22px 10px; box-shadow: 0 14px 30px rgba(20, 10, 5, .45); transform: rotate(-2.5deg); }
.c-hero__tag .hand { display: block; font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1; color: var(--ink); }
.c-hero__where { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 6px; color: var(--cream); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.c-hero__where .icon { width: 16px; height: 16px; }

/* ---------- corpo: barra a sinistra, fogli a destra ---------- */
.c-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.c-side { position: sticky; top: 18px; }
.c-nav { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.c-chip { position: relative; display: block; padding: 12px 16px 12px 18px; background: var(--paper); color: var(--ink); font-size: 14.5px; font-weight: 700; box-shadow: var(--sh-sm); transform: rotate(var(--r, 0deg)); transition: transform .25s var(--ease-out), background-color .2s ease, color .2s ease; }
.c-chip:nth-child(odd) { --r: -.8deg; }
.c-chip:nth-child(even) { --r: .7deg; }
.c-chip .pin { display: none; width: 30px; top: -11px; left: 10px; margin: 0; }
.c-chip.is-on { background: var(--ink); color: var(--paper-2); transform: rotate(0deg) translateX(8px); }
.c-chip.is-on .pin { display: block; }
@media (hover: hover) and (pointer: fine) { .c-chip:not(.is-on):hover { background: #fff; color: var(--ink); transform: rotate(0deg) translateX(4px); } }
.c-main { min-width: 0; }
.c-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.c-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }

/* un foglio per sezione */
.c-sheet { margin-bottom: 36px; padding: clamp(28px, 4vw, 44px) clamp(18px, 4vw, 44px) clamp(20px, 3vw, 34px); transform: rotate(var(--r, 0deg)); scroll-margin-top: 24px; }
.c-sheet__head { text-align: center; margin-bottom: 10px; }
.c-sheet__head h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.c-sheet__head .hand { font-size: 24px; margin-top: 4px; }
.c-mini { margin: 26px 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); }
.c-mini[hidden] { display: none; }
.c-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 44px; }
.c-rows[hidden] { display: none; }
.c-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 16px 0; border-bottom: 1px dashed var(--rule); }
.c-row--text { grid-template-columns: minmax(0, 1fr) auto; }
.c-row[hidden] { display: none; }
.c-thumb { width: 64px; height: 64px; padding: 3px; border: 0; background: #fff; box-shadow: 0 6px 14px rgba(70, 40, 15, .3); transform: rotate(var(--r, 0deg)); cursor: zoom-in; transition: transform .25s var(--ease-out); }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; background: var(--sand); }
@media (hover: hover) and (pointer: fine) { .c-thumb:hover { transform: rotate(0deg) scale(1.1); } }
.c-row h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.c-row h3 a { display: inline-flex; align-items: center; gap: 4px; color: var(--bordeaux); }
.c-row h3 a .icon { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .c-row h3 a:hover .icon { transform: translateX(3px); } }
.c-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.c-tags i { font-style: normal; font-family: var(--f-sans); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; color: var(--bordeaux); border: 1px solid rgba(125, 31, 31, .45); padding: 3px 6px; }
.c-ing { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.c-alg { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.c-alg i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--rule); font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-3); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.c-price { font-family: var(--f-hand); font-weight: 700; font-size: 22px; line-height: 1; color: var(--bordeaux); white-space: nowrap; }
.c-none { padding: 18px 0 4px; text-align: center; font-size: 14px; color: var(--text-2); }
.c-none[hidden] { display: none; }
.c-legend { padding: 30px 24px 24px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); transform: rotate(var(--r, 0deg)); }
.c-legend h2 { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.c-legend p + p { margin-top: 10px; }
.c-legend b { color: var(--ink); }
.c-legend a { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.c-legend a .icon { width: 1em; height: 1em; }

/* ---------- piede ---------- */
.c-foot { padding: 60px 0 110px; }
.c-foot__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 36px; }
.c-foot img { height: 56px; width: auto; }
.c-foot address { font-style: normal; margin-top: 16px; font-size: 15px; }
.c-foot__tel a { display: block; width: fit-content; margin-top: 6px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.c-foot__note { margin-top: 10px; font-size: 13px; }
.c-foot .hand { font-size: 32px; font-weight: 700; }
.c-foot .hours li { border-color: rgba(242, 234, 220, .25); color: var(--on-dark); }
.c-foot .hours li.is-today { color: var(--cream); }
.c-foot__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.c-foot__links a { width: fit-content; color: var(--cream-2); text-decoration: underline; text-decoration-color: rgba(242, 234, 220, .35); }
.c-foot__links .credit { opacity: .7; }
@media (hover: hover) and (pointer: fine) { .c-foot a:hover { color: var(--cream); } }

/* ---------- prenota, sempre a portata ---------- */
.c-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: var(--z-fab); display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; background: var(--bordeaux); color: var(--cream); font-size: 15px; font-weight: 700; box-shadow: 0 14px 30px rgba(40, 20, 5, .45); transition: transform .2s var(--ease-out), background-color .2s ease; }
.c-fab .icon { width: 20px; height: 20px; }
.c-fab:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .c-fab:hover { background: var(--bordeaux-deep); color: var(--cream); transform: translateY(-2px); } }

/* ---------- la foto in grande ---------- */
.c-light { position: fixed; inset: 0; z-index: var(--z-light); display: grid; place-items: center; padding: 24px; visibility: hidden; pointer-events: none; }
.c-light.is-open { visibility: visible; pointer-events: auto; }
.c-light__back { position: absolute; inset: 0; border: 0; background: rgba(20, 10, 5, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; cursor: zoom-out; transition: opacity .25s ease; }
.c-light.is-open .c-light__back { opacity: 1; }
.c-light__ph { position: relative; margin: 0; width: min(640px, 100%); padding: 14px 14px 54px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); transform: rotate(-1.5deg) scale(.94); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s ease; }
.c-light.is-open .c-light__ph { transform: rotate(-1.5deg) scale(1); opacity: 1; }
.c-light__ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand); }
.c-light__ph figcaption { position: absolute; left: 22px; bottom: 10px; font-size: 28px; color: var(--text-2); }
.c-light__x { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper-2); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }

/* ---------- telefono ---------- */
@media (max-width: 899px) {
  .c-top { height: 64px; }
  .c-top__btn--tel { width: 40px; padding: 0; justify-content: center; }
  .c-top__btn--tel span { display: none; }
  .c-sign img { height: 86px; }
  .c-hero__where { display: none; }
  .c-hero__tag { bottom: 20px; }
  .c-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .c-side { top: 0; min-width: 0; z-index: var(--z-top); padding: 10px 0; background: var(--walnut) url(../img/wood-dark.webp) center / 1400px auto; box-shadow: 0 8px 20px rgba(20, 10, 5, .4); }
  .c-nav { flex-direction: row; gap: 8px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .c-nav::-webkit-scrollbar { display: none; }
  .c-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 13px; background: rgba(245, 238, 226, .1); color: var(--cream-2); border: 1px solid rgba(245, 238, 226, .3); box-shadow: none; transform: none; }
  .c-chip .pin { display: none; }
  .c-chip.is-on { background: var(--paper-2); color: var(--ink); border-color: var(--paper-2); transform: none; }
  .c-chip.is-on .pin { display: none; }
  .c-side :focus-visible { outline-color: var(--gold); }
  .c-main { padding: 22px var(--gutter) 40px; }
  .c-sheet { scroll-margin-top: 76px; }
  .c-rows { column-gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .c-chip, .c-thumb, .c-light__ph, .c-light__back, .c-fab { transition: none; }
}
