/* ==========================================================================
   Conte D'Rei — Ementa & Bebidas content
   Two-column elegant menu inspired by the printed menu (serif, left accents)
   ========================================================================== */

.ementa-main, .bebidas-main, .carta-vinhos-main {
    padding: 3.5rem 0 1rem;
    background: var(--cream);
}

/* Intro block */
.ementa-intro, .bebidas-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.divider-ornament {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    color: var(--gold); margin-bottom: 1.1rem;
}
.divider-ornament span { width: 60px; height: 1px; background: var(--gold); opacity: .55; }
.divider-ornament i { font-size: 1rem; }
.ementa-intro > p, .bebidas-intro > p {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--green);
    margin: 0 0 1.4rem;
}
.allergen-note {
    display: inline-flex; align-items: flex-start; gap: .6rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: .8rem 1.1rem;
    font-size: .8rem;
    color: var(--muted);
    text-align: left;
    line-height: 1.5;
}
.allergen-note i { color: var(--gold); margin-top: .15rem; }

/* Section */
.menu-section { margin-bottom: 3.5rem; }
.menu-section-header { text-align: center; margin-bottom: 2rem; }
.section-label {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .3em;
    color: var(--gold); font-weight: 600; margin-bottom: .4rem;
}
.menu-section-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    color: var(--green);
    margin: 0;
    line-height: 1.1;
}
.title-underline {
    width: 54px; height: 2px; background: var(--gold);
    margin: .8rem auto 0;
}

/* Grid of items */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 3rem;
}
.menu-grid-4 { grid-template-columns: repeat(2, 1fr); }

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 0 1.3rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.menu-item::before {
    content: "";
    position: absolute; left: -14px; top: 4px; bottom: 1.3rem;
    width: 2px; background: var(--gold);
    opacity: 0; transition: opacity .25s ease;
}
.menu-item:hover::before { opacity: .8; }
.menu-item.compact { padding-bottom: .8rem; }

.menu-item-image {
    flex: 0 0 64px;
    width: 64px; height: 64px;
    border-radius: 8px; overflow: hidden;
}
.menu-item-image img { width: 100%; height: 100%; object-fit: cover; }

.menu-item-info { flex: 1 1 auto; min-width: 0; }
.menu-item-info h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.28rem;
    color: var(--ink);
    margin: 0 0 .25rem;
    display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.menu-item-info p {
    margin: 0;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Allergen badges */
.menu-allergen-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--cream-2);
    border: 1px solid var(--line);
    vertical-align: middle;
}
.allergen-icon-img { width: 13px; height: 13px; opacity: .8; }

/* Price column */
.menu-price {
    flex: 0 0 auto;
    text-align: right;
    display: flex; flex-direction: column; align-items: flex-end; gap: .15rem;
    white-space: nowrap;
}
.menu-price-row {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--green);
    display: inline-flex; align-items: center; gap: .35rem;
}
.menu-price-row i { font-size: .72rem; color: var(--muted); }
.currency { font-size: .72em; color: var(--gold); font-weight: 600; }
.menu-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: .58rem; text-transform: uppercase; letter-spacing: .14em;
    background: var(--gold); color: var(--green-deep);
    padding: .15rem .5rem; border-radius: 999px;
    margin-bottom: .25rem; font-weight: 600;
}

/* Allergen modal rows (modal shell styled inline in PHP) */
.allergen-modal-row { display: flex; align-items: center; gap: .5rem; }
.allergen-modal-name { font-size: .82rem; }

@media (max-width: 760px) {
    .menu-grid, .menu-grid-4 { grid-template-columns: 1fr; gap: 1.2rem; }
    .menu-item { padding-left: 2px; }
    .menu-item-info h3 { font-size: 1.15rem; }
}
