/* La carta sale sopra l'ultimo fotogramma. */
.menu-section { border-top: 0; padding-top: 48px; margin-top: calc(-1 * var(--carta)); }
.menu-section::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: radial-gradient(circle at 7px 0, transparent 6px, var(--paper) 6.5px) 0 0/14px 7px repeat-x; pointer-events: none; filter: drop-shadow(0 -8px 14px rgba(20, 14, 9, .45)); }
.menu-title-block { transform: translateY(calc((1 - var(--carta, 1)) * 34px)); }
.coffee-story.hero-ferma + .menu-section .menu-title-block { transform: none; }
.menu-heading { margin-bottom: 24px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.menu-heading h2 { font: 500 clamp(60px, 6.5vw, 88px)/1.04 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.menu-layout { grid-template-columns: 205px minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); }
.category-tabs { gap: 4px; }
.category-tabs button { justify-content: flex-start; gap: 9px; min-height: 62px; border: 0; border-radius: 30px 30px 30px 8px; padding: 6px 12px 6px 8px; font-size: 16px; font-weight: 500; }
.category-tabs button > svg { width: 54px; height: 45px; }
.category-tabs button > .tab-label, .category-tabs button[aria-selected=false] > .tab-label { display: block; opacity: 1; font-size: inherit; }
.category-tabs button[aria-selected=true] { background: #e7d7ba; box-shadow: inset 0 -2px #b89974; color: #613619; font-weight: 600; }
.category-tabs button:focus-visible { outline-offset: -2px; }
.category-tabs button:active { background: #dfc9a8; box-shadow: inset 0 2px #b89974; }
.menu-search button, .show-more, .empty-results button { border-radius: 4px; }
.menu-search button:active, .show-more:active { background-color: #dfc9a8; }
.location-link:active, .mobile-dock > a:active, .header-menu:active { background-color: #63351f; color: var(--paper); }
.desktop-nav a:active, .empty-results button:active { color: #613619; }
.venue-pastry:active > span, .back-top:active { color: #e6d7c0; }
@media (hover: hover) {
  .category-tabs button[aria-selected=false]:hover:not(:active), .menu-search button:hover:not(:active), .show-more:hover:not(:active) { background-color: var(--stone); }
  .header-menu:hover, .mobile-dock > a:hover, .location-link:hover { background-color: #63351f; color: var(--paper); }
  .desktop-nav a:hover, .venue-pastry:hover > span > span { text-decoration: underline; text-underline-offset: 4px; }
  .back-top:hover, .empty-results button:hover { text-decoration-thickness: 2px; }
}
.menu-search { min-height: 48px; padding: 0 0 3px; }
.menu-search:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.menu-search input { padding-inline: 4px; }
/* il segno del fuoco e' la riga sotto che diventa marrone e piu' spessa: il riquadro squadrato stonava sulla carta */
.menu-search input:focus-visible { outline: none; }
.menu-search button:focus-visible { outline-offset: -3px; }
.menu-panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 14px 0 2px; }
.category-heading-copy { min-width: 0; }
.menu-panel-heading h3 { width: fit-content; font: 500 40px/1.05 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
#menu-count { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.category-figure { width: 72px; height: 60px; pointer-events: none; }
.category-figure use { opacity: 0; }
.category-figure use.is-current { opacity: 1; }
.category-aside { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; color: #613619; font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.menu-item { min-height: 64px; padding: 12px 0; border-color: #d8c7aa; }
.menu-item h4 { font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: -.006em; text-wrap: pretty; }
.menu-item p { font-size: 14px; line-height: 1.5; }
.item-price { font-size: 17px; font-weight: 600; line-height: 1.35; }
.item-price.unknown { font-size: 14px; }
.show-more { margin-top: 9px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; min-height: 50px; }
.show-more > span { width: 1em; text-align: center; line-height: 1; }
.menu-group:first-child { padding-top: 14px; }
.category-note, .allergen-note { font-size: 13px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .header-menu, .mobile-dock > a, .location-link, .category-tabs button, .category-tabs button > *, .menu-search button, .menu-search button > svg, .show-more, .empty-results button {
    transition: background-color 150ms ease-out, transform 150ms ease-out;
  }
  .header-menu:active, .mobile-dock > a:active, .location-link:active, .category-tabs button:active > *, .menu-search button:active > svg, .show-more:active, .empty-results button:active {
    transform: scale(.97);
    transition-duration: 90ms;
  }
  .category-figure use { transition: opacity 160ms ease-in; }
  .category-figure use.is-current { transition-duration: 200ms; transition-timing-function: ease-out; }
  .menu-list.category-changed .menu-item[data-entra] { animation: menu-row-in 160ms ease-out both; }
  .menu-list.category-changed .menu-item[data-entra="1"] { animation-delay: 30ms; }
  .menu-list.category-changed .menu-item[data-entra="2"] { animation-delay: 60ms; }
  .menu-list.category-changed .menu-item[data-entra="3"] { animation-delay: 90ms; }
  @keyframes menu-row-in { from { transform: translateY(2px); } to { transform: none; } }
}
@media (min-width: 768px) {
  .menu-section { --section-gutter: max(5vw, calc((100vw - 1100px) / 2)); }
  .menu-item { grid-template-columns: fit-content(70%) minmax(20px, 1fr) max-content; column-gap: 10px; border-bottom-color: transparent; }
  .menu-item::after { content: ""; grid-area: 2 / 2; border-bottom: 1px dotted #a39077; }
  .venue-pastry img { border-radius: 48% 48% 11% 11% / 34% 34% 9% 9%; }
}
@media (max-width: 767px) {
  .menu-section { --menu-safe-right: max(var(--section-gutter), env(safe-area-inset-right)); --menu-safe-left: max(var(--section-gutter), env(safe-area-inset-left)); padding: 24px var(--menu-safe-right) 44px var(--menu-safe-left); }
  .menu-heading { margin-bottom: 6px; padding-bottom: 6px; }
  .menu-heading h2 { font-size: 48px; }
  .category-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 4px; margin: 0 calc(-1 * var(--menu-safe-right)) 5px calc(-1 * var(--menu-safe-left)); padding: 2px max(12px, env(safe-area-inset-right)) 3px max(12px, env(safe-area-inset-left)); overflow: visible; border-bottom: 1px solid #ad987d; }
  .menu-section:has(.menu-search:focus-within) .category-tabs,
  .menu-section[data-searching="true"] .category-tabs { position: relative; top: auto; }
  .category-tabs button { min-width: 44px; min-height: 44px; padding: 4px 5px; gap: 3px; font-size: 13px; line-height: 1.2; }
  .category-tabs button > svg { width: 27px; height: 23px; }
  .category-tabs .tab-label { overflow-wrap: anywhere; }
  .menu-panel-heading { margin-top: 8px; gap: 4px 8px; }
  .menu-panel-heading h3 { font-size: 33px; }
  .category-figure { width: 59px; height: 49px; }
  .menu-item { min-height: 55px; padding: 11px 0; column-gap: 10px; }
  .menu-item h4 { font-size: 16px; }
  .menu-item p { font-size: 13px; }
  .item-price { font-size: 16px; }
  .item-price.unknown { font-size: 13px; }
  .allergen-note { margin-top: 22px; }
  .mobile-dock > a { border-radius: 27px 27px 27px 8px; }
  .venue-pastry img { border-radius: 48% 48% 8% 8% / 26% 26% 6% 6%; }
  .menu-main :is(input, button, [tabindex]) { scroll-margin-top: 104px; }
  .menu-section:has(.menu-search:focus-within) .menu-main :is(input, button, [tabindex]),
  .menu-section[data-searching="true"] .menu-main :is(input, button, [tabindex]) { scroll-margin-top: 8px; }
}
@media (max-width: 360px) {
  .menu-section { --section-gutter: 18px; }
  .menu-heading h2 { font-size: 42px; }
  .category-tabs button { font-size: 12px; }
  .category-tabs button > svg { width: 23px; height: 20px; }
}
