body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f5f0;
    color: #2d3748;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dish-card {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dish-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.daily-special-badge {
    background-color: var(--color-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
}

.tab-active {
    border-bottom: 3px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.admin-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #4a5568;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #9b1c1c;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #4a5568;
    color: white;
}

.btn-secondary:hover {
    background-color: #2d3748;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.category-header {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.category-header:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.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(0, 0, 0, 0.1);
    margin: 0 15px;
}

.header-decoration svg {
    color: var(--color-primary);
}

.menu-header {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.admin-header {
    background-color: #2d3748;
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b91c1c' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.stats-label {
    color: #718096;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: #e2e8f0;
    transition: all 0.3s ease;
}

.toggle-label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: var(--color-primary);
}

.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;
  }
}

/* Contenuto extra (allergeni/legende) */
.dish-extra {
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
}


/* Bottone in basso a destra */
.dish-expand-btn {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    padding: .375rem .625rem;
    font-size: .875rem;
    border-radius: .5rem;
    background: var(--color-secondary, #be8f23);
    color: #fff;
    transition: background .2s ease;
}

.dish-expand-btn:hover {
    background: var(--color-secondary-hover, #a27b1e);
}

/* Pill chips */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .5rem;
    font-size: .75rem;
    border-radius: 999px;
    background: #f3f4f6;
    /* gray-100/200 */
    color: #374151;
    /* gray-700 */
    margin: .25rem .25rem 0 0;
    white-space: nowrap;
}

.pill small {
    color: #6b7280;
}

/* gray-500 */
.dish-extra h5 {
    font-weight: 700;
    margin-bottom: .25rem;
}

.floating-glossary-btn {
    padding: .5rem .875rem;
    font-weight: 600;
    font-size: .95rem;
    border-radius: .75rem;
    color: #fff;
    background: #e0b84f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    transition: background .2s ease, transform .06s ease;
}

.floating-glossary-btn:hover {
    background: #e8c35e;
}

.floating-glossary-btn:active {
    transform: translateY(1px);
}

#category-sheet {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.floating-menu-btns {
    position: fixed;
    z-index: 60;
    right: 1rem;
    bottom: 1rem;
}

.floating-categories-btn {
    padding: .5rem .875rem;
    font-weight: 600;
    font-size: .95rem;
    border-radius: .75rem;
    color: #fff;
    background: var(--color-secondary, #be8f23);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    transition: background .2s ease, transform .06s ease;
}

.floating-categories-btn:hover {
    background: var(--color-secondary-hover, #a27b1e);
}

.floating-categories-btn:active {
    transform: translateY(1px);
}

/* === MODAL: layout responsive & header primary === */
.glossary-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 70;
    display: none;
}

.glossary-backdrop.open {
    display: block;
}

.glossary-dialog {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 1rem;
    /* margine bordo-schermo mobile */
}

@media (min-width: 640px) {
    .glossary-dialog {
        padding: 1.5rem;
    }
}

.glossary-dialog.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glossary-card {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    border: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    /* <-- per far scorrere il body */
    max-height: 92vh;
    /* <-- non esce mai dallo schermo */
}

.glossary-header {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    background: var(--color-primary);
    /* <-- primary */
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.glossary-close {
    border: 1px solid rgba(255, 255, 255, .65);
    background: transparent;
    color: #fff;
    padding: .375rem .625rem;
    border-radius: .5rem;
}

.glossary-close:hover {
    background: rgba(255, 255, 255, .12);
}

/* Corpo scrollabile */
.glossary-body {
    padding: 1rem 1rem 1.25rem;
    overflow-y: auto;
    /* <-- scroll se necessario */
}

/* === LISTA ordinata (no card) === */
.glossary-section-title {
    font-weight: 700;
    color: #111827;
    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: #111827;
    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: #4b5563;
    font-size: .92rem;
}