/* Punto: compact Healthy cards and restrained, accessible motion.
   Content, colours and typography remain owned by styles.css. */
:root { --ease-refined: cubic-bezier(.22, 1, .36, 1); }
.menu-healthy { padding-block: clamp(28px, 4vw, 44px); }
.menu-healthy .menu-healthy-head { margin-bottom: 20px; }
.menu-healthy .menu-healthy-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.menu-healthy .menu-healthy-card,
.menu-healthy .menu-healthy-card:nth-child(even),
.menu-healthy .menu-healthy-card:nth-child(n + 3) {
  padding: 16px; border: 1px solid var(--healthy-line); min-height: 0;
  box-shadow: 0 2px 6px rgb(37 43 35 / .035);
  transition: opacity .48s var(--ease-refined), transform .48s var(--ease-refined), box-shadow .25s ease, border-color .25s ease;
}
.menu-healthy .menu-healthy-image {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain;
  object-position: center; margin: 0 0 14px; border-radius: 8px; background: transparent;
}
.menu-healthy .menu-healthy-name { font-size: 1.125rem; line-height: 1.3; }
.menu-healthy .menu-healthy-desc { margin-block: 8px 12px; }
.menu-healthy .menu-healthy-foot { gap: 12px; padding-top: 12px; }
.menu-healthy .menu-healthy-price { font-size: 1.25rem; }
.healthy-nutrition { margin: 0 0 14px; }
.healthy-nutrition-label { color: var(--healthy-muted); font-size: .8125rem; margin-bottom: 8px; }
.healthy-nutrition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.healthy-nutrition-grid > div { min-width: 0; padding: 8px 10px; background: var(--healthy-bg); border-radius: 6px; }
.healthy-nutrition-grid dt { color: var(--healthy-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.healthy-nutrition-grid dd { color: var(--healthy-text); font-size: .9375rem; font-weight: 700; margin: 3px 0 0; font-variant-numeric: tabular-nums; }
@media (max-width: 1099px) and (min-width: 650px) {
  .menu-healthy .menu-healthy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 649px) {
  .menu-healthy .menu-healthy-list { grid-template-columns: minmax(0, 1fr); }
  .menu-healthy .menu-healthy-head { grid-template-columns: 1fr; gap: 12px; }
  .menu-healthy-count { justify-self: start; }
  .menu-healthy .menu-healthy-image { max-height: 240px; }
}
/* No perpetual background breathing. Keep an understated single entrance. */
.js .hero .hero-bg, .js .menu-hero-bg {
  animation: punto-hero-enter 1.2s var(--ease-refined) both;
  will-change: auto;
}
@keyframes punto-hero-enter { from { opacity: .7; scale: 1.025; } to { opacity: 1; scale: 1; } }
.js [data-reveal] {
  transition: opacity .55s var(--ease-refined) var(--d, 0ms), transform .55s var(--ease-refined) var(--d, 0ms), clip-path .65s var(--ease-refined) var(--d, 0ms);
}
.js [data-reveal="left"]:not(.is-visible) { transform: translateX(-20px); }
.js [data-reveal="right"]:not(.is-visible) { transform: translateX(20px); }
.js [data-reveal="up"]:not(.is-visible) { transform: translateY(20px); }
.js [data-reveal="card"]:not(.is-visible) { transform: scale(.98); }
/* Unanimated menu rows must not inherit the old pre-reveal image scale. */
.js .menu-item:not([data-reveal]) .menu-item-photo img { scale: 1; }
.btn, .menu-nav-link, .cart-launcher { -webkit-tap-highlight-color: transparent; }
.menu-item-photo { transition: transform .25s var(--ease-refined), box-shadow .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .menu-item-photo:hover { transform: translateY(-2px); }
  .menu-healthy .menu-healthy-card:hover { transform: translateY(-3px); border-color: #b8c5b0; box-shadow: 0 8px 22px rgb(37 43 35 / .08); }
}
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--c-focus); outline-offset: 4px; }
.menu-healthy :where(a, button):focus-visible { outline-color: var(--healthy-accent); }
.photo-dialog[open], .cart-dialog[open] { animation: punto-dialog-enter .25s var(--ease-refined); }
@keyframes punto-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 899px), (pointer: coarse) {
  .hero-bg, .menu-hero-bg, .hero-content, .menu-hero-content { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal]:not(.is-visible), .hero-content, .menu-hero-content { opacity: 1; transform: none; clip-path: none; }
  .js .hero .hero-bg, .js .menu-hero-bg { animation: none; transform: none; scale: 1; }
  .js .dish:not(.is-visible) .dish-media img { scale: 1; }
  .menu-healthy .menu-healthy-card:hover, .menu-item-photo:hover { transform: none; }
}
@media print {
  .js [data-reveal], .js [data-reveal]:not(.is-visible) { opacity: 1 !important; transform: none !important; }
  .js [data-reveal="clip"] img { clip-path: none !important; }
}

/* Progressive enhancement: content stays readable if main.js cannot load. */
.js .reveal:not([data-reveal]) { opacity: 1; transform: none; }
/* Keep long translated dish names and prices inside narrow menu rows. */
@media (max-width: 640px) {
  .menu-item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .menu-item-name { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
  .menu-item-meta { grid-column: 1; white-space: normal; overflow-wrap: anywhere; }
  .menu-item-price { grid-column: 2; grid-row: 2; justify-self: end; }
  .menu-item-leader { display: none; }
  .menu-item-desc { overflow-wrap: anywhere; }
}


/* Healthy-menu add action: olive green, tailored corners, inset arrow. */
.menu-healthy .menu-healthy-foot .btn {
  min-width: 128px;
  min-height: 46px;
  max-width: 100%;
  gap: 14px;
  padding: 8px 9px 8px 17px;
  border: 1px solid var(--healthy-accent);
  border-radius: 12px;
  background: var(--healthy-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 2px 4px rgb(37 43 35 / .08);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  justify-content: space-between;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.menu-healthy .menu-healthy-foot .btn > span { min-width: 0; overflow-wrap: anywhere; }
.menu-healthy .menu-healthy-foot .btn .icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 8px;
  background: rgb(255 255 255 / .09);
  transition: background-color 200ms ease, transform 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu-healthy .menu-healthy-foot .btn:hover {
    background: var(--healthy-accent-strong);
    border-color: var(--healthy-accent-strong);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 5px 12px rgb(64 85 56 / .16);
    transform: translateY(-1px);
  }
  .menu-healthy .menu-healthy-foot .btn:hover .icon {
    background: rgb(255 255 255 / .16);
    transform: translateX(1px);
  }
}
.menu-healthy .menu-healthy-foot .btn:active { transform: translateY(0); box-shadow: inset 0 1px 3px rgb(0 0 0 / .12); }
.menu-healthy .menu-healthy-foot .btn:focus-visible { outline: 3px solid var(--healthy-accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .menu-healthy .menu-healthy-foot .btn,
  .menu-healthy .menu-healthy-foot .btn .icon { transition: none; }
  .menu-healthy .menu-healthy-foot .btn:hover,
  .menu-healthy .menu-healthy-foot .btn:hover .icon,
  .menu-healthy .menu-healthy-foot .btn:active { transform: none; }
}


/* Mobile menu: consistent image/title block, readable description,
   and a shared price/action baseline. Desktop layout is unchanged. */
@media (max-width: 640px) {
  .menu-list.menu-list--full, .menu-list.menu-list--compact {
    grid-template-columns: minmax(0, 1fr); gap: 0;
  }
  .menu-list .menu-item,
  .menu-list--compact .menu-item--photo {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    align-items: start;
    gap: 6px 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border);
  }
  .menu-list .menu-item-text, .menu-list .menu-item-row { display: contents; }
  .menu-list .menu-item-photo {
    grid-column: 1; grid-row: 1 / 3; align-self: start;
    width: 80px; height: 80px; aspect-ratio: 1;
    border-radius: 10px; background: transparent;
  }
  .menu-list .menu-item-photo img { object-fit: contain; transform: none; }
  .menu-list .menu-item-name {
    grid-column: 1 / -1; grid-row: 1; align-self: end;
    font-size: 1rem; line-height: 1.4; min-width: 0;
    overflow-wrap: anywhere;
  }
  .menu-list .menu-item-meta {
    grid-column: 1 / -1; grid-row: 2;
    font-size: .875rem; line-height: 1.5;
    white-space: normal; overflow-wrap: anywhere;
  }
  .menu-list .menu-item--photo .menu-item-name,
  .menu-list .menu-item--photo .menu-item-meta { grid-column: 2 / -1; }
  .menu-list .menu-item-leader { display: none; }
  .menu-list .menu-item-desc {
    grid-column: 1 / -1; grid-row: 3;
    max-width: none; margin: 6px 0 4px;
    font-size: .9375rem; line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .menu-list .menu-item-price {
    grid-column: 1 / 3; grid-row: 4;
    justify-self: start; align-self: center;
    font-size: 1rem; line-height: 1.4; font-weight: 600;
    white-space: normal; overflow-wrap: anywhere;
  }
  .menu-list .menu-item-actions {
    grid-column: 3; grid-row: 4; align-self: center;
    margin: 0; min-width: 0;
  }
  .menu-list .menu-item-add {
    min-height: 44px; min-width: 100px; padding: 10px 16px;
    border-radius: 10px; box-shadow: none;
    border: 1px solid rgb(var(--c-red-rgb) / .22);
    background: #fff; color: var(--c-red);
    font-size: .875rem; font-weight: 600;
    letter-spacing: 0; text-transform: none;
  }
  .menu-list .menu-item-add:active { background: rgb(var(--c-red-rgb) / .06); }
  .menu-cat-note { font-size: .9375rem; line-height: 1.65; }
  .menu-healthy .menu-healthy-desc { font-size: .9375rem; line-height: 1.65; }
}

.menu-healthy .menu-healthy-foot { justify-content: space-between; }

/* Mobile v2: keep description aligned with the title, not below the image. */
@media (max-width: 640px) {
  .menu-list .menu-item { row-gap: 4px; padding-block: 16px; }
  .menu-list .menu-item-photo { grid-row: 1 / 4; }
  .menu-list .menu-item-name { align-self: start; }
  .menu-list .menu-item--photo .menu-item-desc { grid-column: 2 / -1; }
  .menu-list .menu-item-desc { margin: 2px 0 8px; line-height: 1.55; }
  .menu-list .menu-item-actions, .menu-list .menu-item-price { margin-top: 4px; }
}

/* Confirmation is visual only: keep the button clickable and its width stable. */
.btn[data-cart-add].is-added-feedback {
  position: relative;
  color: transparent !important;
  background: var(--c-red, #c40709) !important;
  border-color: var(--c-red, #c40709) !important;
}
.btn[data-cart-add].is-added-feedback > * { visibility: hidden; }
.btn[data-cart-add].is-added-feedback::before { content: none !important; }
.btn[data-cart-add].is-added-feedback::after {
  content: "✓" !important;
  position: absolute; inset: 0;
  display: grid; place-items: center;
  width: auto; height: auto;
  color: #fff; background: transparent;
  font: 700 22px/1 system-ui, sans-serif;
  opacity: 1; transform: none; clip-path: none;
  pointer-events: none;
}

/* Only Healthy-menu confirmations use the olive palette. */
.menu-healthy .btn[data-cart-add].is-added-feedback {
  background: var(--c-healthy-accent, #526a45) !important;
  border-color: var(--c-healthy-accent, #526a45) !important;
}
/* Menu invitation: a quiet text link rather than a solid call-to-action. */
.carousel-controls .link-more {
  background: transparent;
  box-shadow: none;
  color: var(--c-ink, #20201e);
  font-weight: 500;
  letter-spacing: 0;
  transition: color 180ms ease, border-color 180ms ease;
}
.carousel-controls .link-more .icon {
  width: 18px; height: 18px; flex-basis: 18px;
  color: currentColor;
  transition: transform 180ms ease;
}
@media (min-width: 1025px) {
  .carousel-controls .link-more {
    min-height: 44px; padding: 4px 0; gap: 14px;
    border: 0; border-bottom: 1px solid #bfc1ba; border-radius: 0;
    font-size: .875rem;
  }
}
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .carousel-controls .link-more { border-color: #c7c9c2; }
}
@media (hover: hover) and (pointer: fine) {
  .carousel-controls .link-more:hover {
    background: transparent; box-shadow: none;
    color: var(--c-red); border-color: var(--c-red); transform: none;
  }
  .carousel-controls .link-more:hover .icon { color: currentColor; transform: translateX(2px); }
}
.carousel-controls .link-more:active { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .carousel-controls .link-more, .carousel-controls .link-more .icon { transition: none; }
  .carousel-controls .link-more:hover .icon { transform: none; }
}

/* Story body only: 60% of the previous font size, headings unchanged. */
.story .story-text {
  font-size: clamp(.6rem, .9vw, .9rem);
  line-height: 1.7;
  max-width: 64ch;
  margin-top: 14px;
}
.story .story-title + .story-text { margin-top: 20px; }
@media (max-width: 899px) {
  .story .story-text { font-size: 10.8px; line-height: 1.7; }
}

/* Mobile menu action: compact + immediately before the right-aligned price.
   Keep the original button text in the DOM for its accessible name. */
@media (max-width: 640px) {
  .menu-list .menu-item-actions {
    grid-column: 2; grid-row: 4;
    justify-self: end; align-self: center;
  }
  .menu-list .menu-item-price {
    grid-column: 3; grid-row: 4;
    justify-self: end; align-self: center;
    text-align: right;
    max-width: 36vw;
  }
  .menu-list .menu-item-add,
  .menu-healthy .menu-healthy-foot .btn {
    position: relative;
    display: inline-flex;
    align-items: center; justify-content: center;
    flex: 0 0 44px;
    width: 44px; height: 44px;
    min-width: 44px; min-height: 44px;
    padding: 0; gap: 0;
    border-radius: 50%;
    border: 1px solid rgb(var(--c-red-rgb) / .2);
    background: transparent;
    box-shadow: none;
    font-size: 0; line-height: 1;
    color: var(--c-red);
  }
  .menu-list .menu-item-add::before,
  .menu-healthy .menu-healthy-foot .btn::before { content: none; }
  .menu-list .menu-item-add::after,
  .menu-healthy .menu-healthy-foot .btn::after {
    content: "+";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    width: auto; height: auto;
    font: 400 24px/1 system-ui, sans-serif;
    color: currentColor;
    background: transparent;
    opacity: 1; transform: none;
    pointer-events: none;
  }
  .menu-healthy .menu-healthy-foot {
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  .menu-healthy .menu-healthy-foot .btn {
    color: var(--c-healthy-accent);
    border-color: var(--c-healthy-line);
  }
  .menu-healthy .menu-healthy-foot .btn > span { font-size: 0; }
  .menu-healthy .menu-healthy-foot .btn .icon { display: none; }
  .menu-healthy .menu-healthy-price { text-align: right; }
}
/* Confirmation stays white even when the mobile plus inherits its colour. */
.btn[data-cart-add].is-added-feedback::after { color: #fff !important; }

/* Complete dish photographs, including hovered and revealed cards. */
.menu-item-photo img,
.menu-list .menu-item-photo:hover img,
.dish-media > img,
.dish-card:hover .dish-media > img,
.menu-healthy .menu-healthy-image {
  object-fit: contain;
  object-position: center;
  transform: none;
  scale: 1;
}
.menu-item-photo, .dish-media { background: transparent; }

/* Healthy actions: flat olive outline, no inset arrow or decorative shadow. */
.menu-healthy .menu-healthy-foot .btn {
  min-width: 104px;
  min-height: 44px;
  padding: 10px 18px;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--healthy-accent);
  border-radius: 8px;
  background: transparent;
  color: var(--healthy-accent-strong);
  box-shadow: none;
  font-weight: 600;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.menu-healthy .menu-healthy-foot .btn .icon { display: none; }
@media (hover: hover) {
  .menu-healthy .menu-healthy-foot .btn:hover {
    background: var(--healthy-accent);
    border-color: var(--healthy-accent);
    color: #fff;
    box-shadow: none;
    transform: none;
  }
}
.menu-healthy .menu-healthy-foot .btn:active { transform: none; box-shadow: none; }
.menu-healthy .menu-healthy-foot .btn:focus-visible {
  outline: 3px solid var(--healthy-accent); outline-offset: 3px;
}
@media (max-width: 640px) {
  .menu-healthy .menu-healthy-foot .btn {
    flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px;
    padding: 0; border-radius: 50%; font-size: 0;
  }
}
/* Explicit confirmation colors on every device; repeated clicks restart the timer. */
.menu-list .btn[data-cart-add].is-added-feedback {
  background: var(--c-red) !important; border-color: var(--c-red) !important;
}
.menu-healthy .btn[data-cart-add].is-added-feedback {
  background: var(--healthy-accent) !important; border-color: var(--healthy-accent) !important;
}
.btn[data-cart-add].is-added-feedback::after { color: #fff !important; }
@media (prefers-reduced-motion: reduce) {
  .menu-healthy .menu-healthy-foot .btn { transition: none; }
}

/* Cinematic pizza background: only the photograph moves, never the copy. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .hero-bg,
  .js .menu-hero-bg {
    scale: 1;
    opacity: 1;
    transform-origin: 65% 48%;
    animation: punto-pizza-drift 24s cubic-bezier(.45, 0, .55, 1) infinite alternate both;
    will-change: transform;
  }
  .js .is-motion-paused .hero-bg,
  .js .is-motion-paused .menu-hero-bg { animation-play-state: paused; }
}
@keyframes punto-pizza-drift {
  from { transform: translate3d(-.6%, -.3%, 0) scale(1.035); }
  to { transform: translate3d(.7%, .5%, 0) scale(1.09); }
}
.hero-motion-toggle {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / .32);
  border-radius: 50%;
  background: rgb(0 0 0 / .28);
  color: #fff;
  cursor: pointer;
}
.hero-motion-toggle svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.hero-motion-toggle:hover { background: rgb(0 0 0 / .55); border-color: rgb(255 255 255 / .65); }
.hero-motion-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js .hero .hero-bg, .js .menu-hero-bg { animation-name: punto-pizza-drift-mobile; animation-duration: 28s; }
}
@keyframes punto-pizza-drift-mobile {
  from { transform: translate3d(-.3%, 0, 0) scale(1.035); }
  to { transform: translate3d(.4%, .3%, 0) scale(1.07); }
}
@media (prefers-reduced-motion: reduce), print {
  .hero-motion-toggle { display: none; }
  .js .hero .hero-bg, .js .menu-hero-bg {
    animation: none !important; transform: none !important; scale: 1 !important; will-change: auto;
  }
}

/* Larger, legible dish photos without cropping or adding a background. */
@media (min-width: 641px) {
  .menu-list .menu-item--photo {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .menu-list.menu-list--compact .menu-item--photo {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .menu-list .menu-item-photo { width: 120px; height: 120px; }
  .menu-list--compact .menu-item-photo { width: 96px; height: 96px; }
}
@media (max-width: 640px) {
  .menu-list { --menu-photo-size: clamp(96px, 28.5vw, 120px); }
  .menu-list .menu-item--photo,
  .menu-list.menu-list--compact .menu-item--photo {
    grid-template-columns: var(--menu-photo-size) minmax(0, 1fr) auto;
  }
  .menu-list .menu-item-photo {
    width: var(--menu-photo-size);
    height: var(--menu-photo-size);
  }
}
.menu-healthy .menu-healthy-image {
  aspect-ratio: 6 / 5;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  background: transparent;
}
@media (max-width: 649px) {
  .menu-healthy .menu-healthy-image { max-height: 300px; }
}

/* Gentle breathing layered over the existing slow pizza-background drift. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .hero-bg,
  .js .menu-hero-bg {
    animation:
      punto-pizza-drift 24s cubic-bezier(.45, 0, .55, 1) infinite alternate both,
      punto-pizza-pulse 8s ease-in-out infinite both;
  }
  .js .is-motion-paused .hero-bg,
  .js .is-motion-paused .menu-hero-bg { animation-play-state: paused; }
}
@keyframes punto-pizza-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.018; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js .hero .hero-bg,
  .js .menu-hero-bg {
    animation:
      punto-pizza-drift-mobile 28s cubic-bezier(.45, 0, .55, 1) infinite alternate both,
      punto-pizza-pulse 10s ease-in-out infinite both;
  }
}
/* Keep pause authoritative after the mobile animation shorthand resets. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero.is-motion-paused .hero-bg,
  .js .menu-hero.is-motion-paused .menu-hero-bg { animation-play-state: paused, paused; }
}

/* Useful local details, visible to every visitor; hero greeting stays unchanged. */
.hero .punto-local-summary {
  max-width: 58ch;
  margin-top: 12px;
  color: #f1f1f1;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
  text-wrap: pretty;
}
.punto-visit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-block: 18px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink, #20201e);
}
.punto-visit-details address { flex-basis: 100%; font-style: normal; }
.punto-visit-details a { text-decoration: underline; text-underline-offset: 3px; }
.punto-menu-heading-wrap { padding-block: 24px 12px; }
.punto-menu-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .hero .punto-local-summary { max-width: 36ch; font-size: 14px; }
  .punto-menu-heading-wrap { padding-block: 20px 10px; }
}

/* Menu hero refinement: smaller greeting, same gentle pizza motion as home. */
.menu-hero .menu-hero-title {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: 0;
}
@media (max-width: 640px) {
  .menu-hero .menu-hero-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .menu-hero .menu-hero-bg {
    opacity: 1;
    transform-origin: 65% 48%;
    animation:
      punto-pizza-drift 24s cubic-bezier(.45, 0, .55, 1) infinite alternate both,
      punto-pizza-pulse 8s ease-in-out infinite both;
  }
  .js .menu-hero.is-motion-paused .menu-hero-bg {
    animation-play-state: paused, paused;
  }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js .menu-hero .menu-hero-bg {
    animation-name: punto-pizza-drift-mobile, punto-pizza-pulse;
    animation-duration: 28s, 10s;
  }
}
@media (prefers-reduced-motion: reduce), print {
  .js .menu-hero .menu-hero-bg {
    animation: none !important;
    transform: none !important;
    scale: 1 !important;
    will-change: auto;
  }
}


/* Footer: a soft white halo follows the actual logo silhouette, not its box. */
.site-footer .footer-logo img {
  filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent);
  transition: filter 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer .footer-logo:hover img {
    filter: drop-shadow(0 0 5px rgb(255 255 255 / .6)) drop-shadow(0 0 16px rgb(255 255 255 / .32));
  }
}
.site-footer .footer-logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 8px;
  border-radius: 2px;
}
.site-footer .footer-logo:focus-visible img {
  filter: drop-shadow(0 0 5px rgb(255 255 255 / .6)) drop-shadow(0 0 16px rgb(255 255 255 / .32));
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-logo img { transition: none; }
}

/* Public category tabs: a bottom red underline replaces filled pills. */
:is(.filters .chip, .menu-nav .menu-nav-link) {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--c-text, #1f1f1f);
  text-decoration: none;
  transform: none;
  transition: color 200ms ease;
}
:is(.filters .chip, .menu-nav .menu-nav-link)::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 3px;
  height: 3px;
  background: var(--c-red, #c40709);
  border-radius: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
:is(.filters .chip, .menu-nav .menu-nav-link):is(:hover, :active, :focus-visible, [aria-pressed="true"], [aria-current="true"]) {
  background: transparent;
  background-image: none;
  border-color: transparent;
  box-shadow: none;
  color: var(--c-red, #c40709);
  transform: none;
}
:is(.filters .chip, .menu-nav .menu-nav-link):is(:hover, :focus-visible, [aria-pressed="true"], [aria-current="true"])::after {
  transform: scaleX(1);
}
:is(.filters .chip, .menu-nav .menu-nav-link):focus-visible {
  outline: 2px solid var(--c-red, #c40709);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  :is(.filters .chip, .menu-nav .menu-nav-link),
  :is(.filters .chip, .menu-nav .menu-nav-link)::after { transition: none; }
}

/* Healthy is the only category with a green filled hover/selected state. */
.menu-nav .menu-nav-link[href="#healthy-menu"] {
  color: var(--c-healthy-accent-strong, #405538);
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transition: color 180ms ease, background-color 180ms ease;
}
.menu-nav .menu-nav-link[href="#healthy-menu"]::after { display: none; }
.menu-nav .menu-nav-link[href="#healthy-menu"]:is(:hover, :focus-visible, [aria-current="true"]) {
  color: #fff;
  background: var(--c-healthy-accent, #526A45);
  box-shadow: none;
  transform: none;
}
.menu-nav .menu-nav-link[href="#healthy-menu"]:focus-visible {
  outline: 2px solid var(--c-healthy-accent-strong, #405538);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .menu-nav .menu-nav-link[href="#healthy-menu"] { transition: none; }
}


/* User-supplied healthy-lifestyle mark; decorative, keeps the readable label. */
.menu-nav .menu-nav-link[href="#healthy-menu"] { gap: 8px; }
.menu-nav .menu-nav-link[href="#healthy-menu"]::before {
  content: "";
  display: inline-block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("/assets/healthy-lifestyle.svg") center / contain no-repeat;
  mask: url("/assets/healthy-lifestyle.svg") center / contain no-repeat;
}
/* Menu category headings: a centred red dot replaces the line above. */
.menu-cat .menu-cat-head::before { content: none; display: none; }
.menu-cat .menu-cat-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .38em;
}
.menu-cat .menu-cat-title::before {
  content: "";
  display: block;
  flex: 0 0 .38em;
  width: .38em;
  height: .38em;
  border-radius: 50%;
  background: var(--c-red, #c40709);
}

/* Match the exact content edges of the healthy cards container. */
.menu-healthy-banner { width: calc(100% - var(--gutter) * 2); max-width: var(--container); margin: 0 auto; line-height: 0; }
.menu-healthy-banner picture { display: block; }
.menu-healthy-banner img { display: block; width: 100%; max-width: 100%; height: auto; }

/* One compact gap before the healthy banner, not two stacked paddings. */
.menu-body--with-healthy-banner { padding-bottom: 32px; }
.menu-body--with-healthy-banner > .menu-group--drinks { padding-bottom: 0; }
@media (max-width: 599px) {
  .menu-body--with-healthy-banner { padding-bottom: 24px; }
}

/* Healthy subcategories and compact cards without photos. */
.menu-healthy .healthy-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.menu-healthy .healthy-filters[hidden], .menu-healthy .healthy-group[hidden], .menu-healthy .healthy-empty[hidden] { display: none; }
.menu-healthy .healthy-filter {
  position: relative; min-height: 44px; padding: 0 18px; border: 0; border-radius: 0;
  color: #252b23; background: transparent; box-shadow: none; font-family: var(--font-body);
  font-size: .875rem; font-weight: 500; cursor: pointer; transition: color 200ms ease;
}
.menu-healthy .healthy-filter::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 3px; height: 3px;
  background: #405538; pointer-events: none; transform: scaleX(0); transform-origin: left center;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.menu-healthy .healthy-filter:is(:hover, :focus-visible, [aria-pressed="true"]) { color: #405538; background: transparent; }
.menu-healthy .healthy-filter:is(:hover, :focus-visible, [aria-pressed="true"])::after { transform: scaleX(1); }
.menu-healthy .healthy-filter:focus-visible { outline: 2px solid #405538; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .menu-healthy .healthy-filter, .menu-healthy .healthy-filter::after { transition: none; }
}
.menu-healthy .healthy-group + .healthy-group { margin-top: 36px; }
.menu-healthy .healthy-group-title { color: #252b23; font-family: var(--font-head); font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #d9e0d3; }
.menu-healthy .healthy-empty { padding: 18px 0; color: #535e50; }
.menu-healthy .menu-healthy-list--text { margin-top: 16px; align-items: start; }
.menu-healthy .menu-healthy-list--text:first-of-type { margin-top: 0; }
.menu-healthy .menu-healthy-card--text, .menu-healthy .menu-healthy-card--text:nth-child(n) { height: auto; min-height: 0; }
.menu-healthy .menu-healthy-card--text .menu-healthy-desc:empty { display: none; }
.menu-healthy .menu-healthy-card--text .menu-healthy-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e9e0; }
@media (max-width: 649px) {
  .menu-healthy .healthy-filters { gap: 8px; margin-bottom: 24px; }
  .menu-healthy .healthy-filter { padding-inline: 14px; }
  .menu-healthy .menu-healthy-list--text { grid-template-columns: minmax(0, 1fr); }
  .menu-healthy .healthy-group + .healthy-group { margin-top: 28px; }
}


/* Fixed photographic menu backdrop, clipped to the menu content. */
.menu-scene { position: relative; isolation: isolate; clip-path: inset(0); background: #f2f1ed; }
.menu-scene .menu-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.menu-scene .menu-backdrop-main, .menu-scene .menu-backdrop-healthy {
  position: absolute; inset: 0; background-position: center center; background-size: cover; background-repeat: no-repeat;
}
.menu-scene .menu-backdrop-main { background-image: linear-gradient(rgb(0 0 0 / .60), rgb(0 0 0 / .60)), url('/assets/menu-main-pasta.webp');; }
.menu-scene .menu-backdrop-healthy { opacity: 0; background-image: linear-gradient(rgb(0 0 0 / .20), rgb(0 0 0 / .20)), url('/assets/menu-healthy-bg.webp'); }
.menu-scene .menu-body, .menu-scene .menu-group--drinks, .menu-scene .menu-healthy { background: transparent; }
.menu-scene .menu-body { padding-bottom: clamp(48px, 6vw, 72px); }
.menu-scene .menu-healthy { padding-top: clamp(36px, 5vw, 64px); }
/* Without JS, use the healthy image directly rather than depending on the transition. */
html:not(.menu-backdrop-ready) .menu-scene .menu-healthy {
  background: linear-gradient(rgb(0 0 0 / .20), rgb(0 0 0 / .20)), url('/assets/menu-healthy-bg.webp') center / cover fixed;
}
@media (max-width: 649px) {
  .menu-scene .menu-backdrop-main { background-image: linear-gradient(rgb(0 0 0 / .20), rgb(0 0 0 / .20)), url('/assets/menu-main-pasta-mobile.webp'); background-position: center center; }
  .menu-scene .menu-backdrop-healthy { background-image: linear-gradient(rgb(0 0 0 / .20), rgb(0 0 0 / .20)), url('/assets/menu-healthy-bg-mobile.webp'); background-position: 82% center; }
  html:not(.menu-backdrop-ready) .menu-scene .menu-healthy { background-image: linear-gradient(rgb(0 0 0 / .20), rgb(0 0 0 / .20)), url('/assets/menu-healthy-bg-mobile.webp'); background-position: right top; background-size: auto 100vh; background-repeat: repeat-y; background-attachment: scroll; }
}

/* Retain legibility where text crosses darker parts of the fixed artwork. */
.menu-scene .menu-body :is(.menu-item-desc, .menu-item-meta, .menu-item-ask, .menu-cat-note) { color: #4a4a4a; }
.menu-scene .menu-body .menu-item-price { color: #ad0000; }

/* One translucent white surface, only behind the content of the main menu. */
.menu-scene .menu-body { position: relative; background: transparent; }
.menu-scene .menu-body::before {
  content: ""; position: absolute; inset: 0; z-index: 0; width: calc(100% - 16px);
  max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto;
  background-color: rgb(255 255 255 / .99); border-radius: 0 0 20px 20px; pointer-events: none;
}
.menu-scene .menu-body > .container,
.menu-scene .menu-body > .menu-group--drinks { position: relative; z-index: 1; }

/* Lightly translucent card surfaces; content stays fully opaque. */
.menu-healthy .menu-healthy-card:nth-child(n) { background-color: rgb(255 254 250 / .92); }
