/* Menu interactions use the existing ivory and burgundy palette. */
.menu-search { margin-bottom: 32px; max-width: 1192px; }
.menu-search label { display: block; margin-bottom: 10px; color: var(--wine); font-size: 20px; font-weight: 700; }
.search-field { display: flex; align-items: center; gap: 12px; max-width: 640px; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; color: var(--wine); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgb(133 6 16 / 7%); }
.search-field input { width: 100%; min-width: 0; padding: 15px 0; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 16px; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button { flex-shrink: 0; width: 44px; height: 44px; border: 0; background: transparent; color: var(--wine); font-size: 25px; }
#menu-search-hint { margin-top: 8px; color: var(--muted); font-size: 12px; }
.menu-nav { position: relative; gap: 8px; padding-block: 8px; isolation: isolate; }
.menu-nav .category-tab, .menu-nav .category-tab:first-child { z-index: 1; justify-content: center; padding: 12px 18px; min-height: 48px; border-radius: 8px; transition: color .25s ease; }
.menu-nav .category-tab::after { display: none; }
.menu-nav .category-tab[aria-selected="true"] { color: var(--ivory); background: var(--wine); }
.menu-nav.has-indicator .category-tab[aria-selected="true"] { background: transparent; }
.menu-nav .category-tab[aria-selected="true"]:hover { color: var(--ivory); }
.category-indicator { position: absolute; top: 8px; left: 0; height: calc(100% - 16px); border-radius: 8px; background: var(--wine); pointer-events: none; z-index: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), width .3s ease, opacity .2s; }
.category-label { position: relative; }
.menu-panel.is-entering { animation: panel-in .28s ease-out both; }
.menu-panel.is-entering .menu-item { animation: menu-row-in .25s ease-out both; animation-delay: var(--row-delay, 0ms); }
.menu-item { transition: background-color .2s ease, border-color .2s ease; border-radius: 5px; }
.item-price { transition: color .2s ease, background-color .2s ease; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .menu-item:hover { background: rgb(133 6 16 / 4%); border-color: rgb(133 6 16 / 25%); }
  .menu-item:hover .item-price { color: var(--wine); background: rgb(133 6 16 / 8%); }
}
@keyframes menu-row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.menu-content.is-searching { display: none; }
.search-results { padding-top: 32px; padding-bottom: 40px; }
.search-results h2 { font-size: 26px; }
.search-summary { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
.search-category { margin-top: 30px; }
.search-category > h3 { color: var(--wine); font-size: 21px; margin-bottom: 20px; }
.search-category .group-heading h4 { font-size: 16px; }
.search-category .menu-group { max-width: 780px; }
@media (max-width: 760px) {
 .menu-nav { gap: 6px; justify-content: flex-start; scroll-padding-inline: 16px; }
 .menu-nav .category-tab, .menu-nav .category-tab:first-child { flex-shrink: 0; font-size: 12px; padding-inline: 14px; min-height: 46px; }
 .menu-search { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
 .category-indicator, .menu-nav .category-tab, .menu-item, .item-price { transition: none; }
 .menu-panel.is-entering, .menu-panel.is-entering .menu-item { animation: none; }
}
@media print {
 .menu-search, .search-results { display: none !important; }
 .menu-content.is-searching { display: block; }
 .menu-item { animation: none !important; }
}

/* Categorie mobile: una sola riga, testi proporzionati allo schermo. */
@media screen and (max-width: 760px) {
  .menu-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(2px, .6vw, 4px);
    padding-inline: clamp(6px, 2vw, 14px);
    overflow-x: hidden;
  }
  .menu-nav .category-tab,
  .menu-nav .category-tab:first-child {
    flex: 1 0 auto;
    min-width: 0;
    min-height: 46px;
    padding: 12px clamp(2px, .6vw, 4px);
    font-size: min(12px, 2.2vw);
    line-height: 1.4;
    white-space: nowrap;
  }
  .menu-nav .category-label { white-space: nowrap; }
}
