/* AMICI category headers: image optional, without changing collapse/order behavior. */
.amici-category-heading { position:relative; display:flex; align-items:center; overflow:hidden; isolation:isolate; }
.amici-category-heading__title { position:relative; z-index:2; }
.amici-category-heading--photo { min-height:clamp(120px,17vw,176px); margin:0; padding:20px 28px!important; border-radius:7px; color:#fff; background:#0b202b; font-weight:600; cursor:pointer; }
.amici-category-heading--photo .amici-category-heading__image { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center bottom; z-index:0; pointer-events:none; }
.amici-category-heading--photo::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(8,23,34,.93) 0%,rgba(8,23,34,.72) 45%,rgba(8,23,34,.06) 100%); pointer-events:none; }
.amici-category-heading--photo .amici-category-heading__title { color:#fff; max-width:85%; line-height:1.25; text-shadow:0 1px 2px rgba(0,0,0,.20); }
@media (max-width:767.98px) { .amici-category-heading--photo { min-height:112px; padding:15px 18px!important; border-radius:6px; } .amici-category-heading--photo .amici-category-heading__title { font-size:1.15rem; max-width:90%; } .amici-category-heading--photo::before { background:linear-gradient(90deg,rgba(8,23,34,.90) 0%,rgba(8,23,34,.58) 62%,rgba(8,23,34,.18) 100%); } }
@media (prefers-reduced-motion:reduce) { .amici-category-heading--photo { scroll-behavior:auto; } }

/* AMICI category description beneath image headings. */
.menu-group-item .amici-category-description {
    margin: 0 0 16px;
    padding: 14px 18px;
    border: 1px solid #e2e6e9;
    border-radius: 8px;
    background: #f8f9fa;
    color: #27313a;
    font-size: .95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.menu-group-item .amici-category-description p { margin: 0; }
@media (max-width: 767.98px) {
    .menu-group-item .amici-category-description {
        margin: 0 0 12px;
        padding: 12px 14px;
        font-size: .9rem;
    }
}

/* Consistent spacing above/below each category banner and the first menu card.
   Preserve the existing responsive grid, card dimensions and collapse behavior. */
.menu-group-item + .menu-group-item { margin-top: 16px; }
.menu-group-item .category-header:has(.amici-category-heading--photo) { margin-bottom: 16px; }
.menu-group-item .category-header .amici-category-heading--photo { margin-top: 0; margin-bottom: 0; }
.menu-group-item .category-items > .menu-category:empty { display:none; }
@media (max-width: 767.98px) {
    .menu-group-item + .menu-group-item { margin-top: 12px; }
    .menu-group-item .category-header:has(.amici-category-heading--photo) { margin-bottom: 12px; }
}

/* Keep jump targets visible below the sticky category bar. */
.menu-group .category-header { scroll-margin-top: 84px; }

/* v1.425: hide the browser's scrollbar on the OUTER scroll container.
   The previous rule only targeted the UL, leaving this grey bar visible. */
.amici-menu-categories .container { position: relative; }
.amici-menu-categories .layout-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}
.amici-menu-categories .layout-scrollable::-webkit-scrollbar,
.amici-menu-categories #navbar-categories::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.amici-menu-categories #navbar-categories {
    width: max-content !important;
    min-width: 100%;
    margin-bottom: 0;
}
.amici-menu-categories .amici-category-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    padding: 0;
    border: 1px solid #e3e7eb;
    border-radius: 7px;
    background: #fff;
    color: #303b45;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
    cursor: pointer;
}
.amici-menu-categories .amici-category-arrow--prev { left: 3px; }
.amici-menu-categories .amici-category-arrow--next { right: 3px; }
.amici-menu-categories .amici-category-arrow[hidden] { display: none !important; }
.amici-menu-categories .amici-category-arrow:hover { background: #f4f6f8; }
.amici-menu-categories .amici-category-arrow:focus-visible { outline: 2px solid #c0392b; outline-offset: 2px; }
@media(max-width:767.98px) {
    .amici-menu-categories .amici-category-arrow { width: 26px; height: 30px; }
}
