body {
    font-family: 'Manrope', sans-serif;
    background-color: #F6EFE5;
    color: #1F1B17;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(31, 27, 23, .94), rgba(79, 95, 74, .9)),
        url('/assets/images/home/tavoli.webp') center/cover;
    color: #F6EFE5;
    padding: 2.25rem 0;
    margin-bottom: 2rem;
}

.dish-card {
    position: relative;
    border: 1px solid rgba(216, 199, 175, .82);
    background: #fffaf2;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.dish-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 155, 94, .75);
    box-shadow: 0 16px 34px rgba(83, 60, 37, .11);
}

.daily-special-badge {
    background-color: #6B1F2A;
    color: #F6EFE5;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    display: inline-block;
    margin-left: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tab-active {
    border-bottom: 3px solid #B89B5E;
    color: #1F1B17;
    font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    border: 1px solid #D8C7AF;
    padding: 10px 14px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 12px;
    transition: all .2s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: #4F5F4A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 95, 74, .14);
}

.admin-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1F1B17;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .85rem;
}

.btn-primary,
.btn-outline:hover {
    background-color: #4F5F4A;
    color: #F6EFE5;
}

.btn-primary:hover {
    background-color: #6B1F2A;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #1F1B17;
    color: #F6EFE5;
}

.btn-secondary:hover {
    background-color: #312a24;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #6B1F2A;
    color: #F6EFE5;
}

.btn-danger:hover {
    background-color: #521821;
}

.btn-outline {
    border: 1px solid #4F5F4A;
    color: #4F5F4A;
    background-color: transparent;
}

.category-header {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #1F1B17;
}

.category-header:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 64px;
    height: 2px;
    background-color: #B89B5E;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.header-decoration:before,
.header-decoration:after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: rgba(31, 27, 23, .12);
    margin: 0 15px;
}

.header-decoration svg {
    color: #B89B5E;
}

.menu-info-card {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    border: 1px solid rgba(216, 199, 175, .85);
    background: #fffaf2;
    box-shadow: 0 14px 30px rgba(83, 60, 37, .08);
}

.menu-info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #4F5F4A, #B89B5E);
}

.menu-info-card__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1.35rem 1.7rem;
}

.menu-info-card__icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(79, 95, 74, .12);
    color: #4F5F4A;
}

.menu-info-card__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.menu-info-card__content {
    min-width: 0;
}

.menu-info-card__label {
    display: inline-flex;
    align-items: center;
    margin-bottom: .65rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: #F6EFE5;
    color: #4F5F4A;
    border: 1px solid rgba(79, 95, 74, .35);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.menu-info-card__text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(31, 27, 23, .78);
}

.card,
.stats-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(31, 27, 23, .06);
    transition: all .3s ease;
}

.card:hover,
.stats-card:hover {
    box-shadow: 0 12px 24px rgba(31, 27, 23, .12);
    transform: translateY(-3px);
}

.card-header {
    background-color: #4F5F4A;
    color: #F6EFE5;
    padding: 1rem;
    font-weight: 600;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F1B17;
    line-height: 1;
}

.stats-label {
    color: rgba(31, 27, 23, .58);
    font-size: .875rem;
    margin-top: .5rem;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.toggle-label {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #D8C7AF;
    transition: all .3s ease;
}

.toggle-label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    transition: all .3s ease;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #4F5F4A;
}

.toggle-checkbox:checked+.toggle-label:after {
    transform: translateX(18px);
}

.dish-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.menu-section:not(:last-of-type) {
    margin-bottom: 3rem;
}

#daily-dishes {
    align-items: start;
}

@media (max-width: 768px) {
  .dish-card:has(.dish-expand-btn) .p-5 {
    padding-bottom: 4rem;
  }
}

.dish-extra {
    border-top: 1px solid rgba(31, 27, 23, .08);
    background: #fffaf2;
}

.dish-extra-section + .dish-extra-section {
    margin-top: .75rem;
}

.dish-expand-btn {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    padding: .375rem .625rem;
    font-size: .875rem;
    border-radius: .5rem;
    background: #B89B5E;
    color: #1F1B17;
    transition: background .2s ease, transform .06s ease;
}

.dish-expand-btn:hover {
    background: #D8C7AF;
}

.dish-expand-btn:active {
    transform: translateY(1px);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .5rem;
    font-size: .75rem;
    border-radius: 999px;
    background: #F6EFE5;
    color: #1F1B17;
    margin: .25rem .25rem 0 0;
    white-space: nowrap;
}

.pill small {
    color: rgba(31, 27, 23, .58);
}

.dish-extra h5 {
    font-weight: 700;
    margin-bottom: .25rem;
}

.floating-menu-btns {
    position: fixed;
    z-index: 60;
    right: 1rem;
    bottom: 1rem;
}

.floating-glossary-btn,
.floating-categories-btn {
    padding: .5rem .875rem;
    font-weight: 600;
    font-size: .95rem;
    border-radius: .75rem;
    color: #1F1B17;
    background: #B89B5E;
    box-shadow: 0 8px 24px rgba(31, 27, 23, .16);
    transition: background .2s ease, transform .06s ease;
}

.floating-glossary-btn:hover,
.floating-categories-btn:hover {
    background: #D8C7AF;
}

.floating-glossary-btn:active,
.floating-categories-btn:active {
    transform: translateY(1px);
}

#category-sheet {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glossary-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 27, 23, .55);
    z-index: 70;
    display: none;
}

.glossary-backdrop.open {
    display: block;
}

.glossary-dialog {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 1rem;
}

@media (min-width: 640px) {
    .glossary-dialog {
        padding: 1.5rem;
    }
}

.glossary-dialog.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glossary-card {
    background: #fffaf2;
    border-radius: 1rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(31, 27, 23, .25);
    border: 1px solid rgba(216, 199, 175, .85);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.glossary-header {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(31, 27, 23, .08);
    background: #4F5F4A;
    color: #F6EFE5;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.glossary-close {
    border: 1px solid rgba(246, 239, 229, .65);
    background: transparent;
    color: #F6EFE5;
    padding: .375rem .625rem;
    border-radius: .5rem;
}

.glossary-close:hover {
    background: rgba(246, 239, 229, .12);
}

.glossary-body {
    padding: 1rem 1rem 1.25rem;
    overflow-y: auto;
}

.glossary-section-title {
    font-weight: 700;
    color: #1F1B17;
    margin: .25rem 0 .5rem;
}

.glossary-list {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0 0 1.25rem 0;
}

.glossary-list li {
    margin: .35rem 0 .35rem .25rem;
}

.glossary-item-title {
    font-weight: 600;
    color: #1F1B17;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.glossary-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.glossary-item-desc {
    display: block;
    margin-top: .15rem;
    color: rgba(31, 27, 23, .66);
    font-size: .92rem;
}
