/* --- HERO SPECIFICA --- */
.page-hero {
    position: relative;
    height: 60vh; /* Più bassa rispetto alla home per andare subito ai contenuti */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.page-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.page-hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
}

/* --- LAYOUT NARRATIVO --- */
.container.narrow {
    max-width: 800px;
}

.lead-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--color-accent);
}

.text-center { text-align: center; }

/* --- GRIGLIA DI DETTAGLIO --- */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.detail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.detail-item.large {
    grid-row: span 2;
}

/* =========================================
   SEZIONE MENU (PERGAMENA RISTORANTE)
   ========================================= */
.menu-section {
    background-color: var(--color-bg); 
    position: relative;
}

.menu-parchment {
    max-width: 850px; /* Non troppo largo, per simulare un foglio */
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08); /* Ombra morbida per farla "sollevare" dallo sfondo */
    overflow: hidden; /* Taglia l'immagine in alto seguendo gli angoli arrotondati */
}

/* L'immagine in cima alla pergamena */
.menu-top-photo {
    width: 100%;
    height: 350px;
}

.menu-top-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenitore interno */
.menu-body {
    padding: 25px; /* Crea uno spazio bianco attorno al bordo interno */
    background-color: var(--color-white);
}

/* Il delicato bordo interno stile menù stampato */
.menu-inner-border {
    border: 1px solid rgba(142, 124, 104, 0.3); /* Colore tortora in trasparenza */
    padding: 70px 40px;
    text-align: center;
}

.menu-title {
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--color-text-dark);
}

/* Le sezioni del menù (Antipasti, Primi, ecc.) */
.menu-category {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 60px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Lineette laterali decorative per le categorie */
.menu-category::before,
.menu-category::after {
    content: '';
    height: 1px;
    width: 50px;
    background-color: rgba(142, 124, 104, 0.4);
}

/* Singolo Piatto */
.menu-item {
    margin-bottom: 40px;
}

.menu-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.menu-item p {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic; /* Il corsivo dà un tocco letterario e chic */
    max-width: 550px;
    margin: 0 auto 12px auto;
    line-height: 1.5;
}

.menu-item .price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* =========================================
   SHOWCASE EVENTI (TAB INTERATTIVI)
   ========================================= */

   .showcase-panel .menu-section {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 40px; /* Dà un po' di respiro tra il testo in alto e l'inizio del menù */
}
.event-showcase {
    background-color: var(--color-bg);
}

/* --- Il Menù dei Bottoni --- */
.showcase-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(142, 124, 104, 0.2);
    padding-bottom: 10px;
}

.showcase-tab {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    padding-bottom: 15px;
    transition: color 0.3s ease;
}

/* La linea color tortora che appare sotto il tab attivo */
.showcase-tab::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.showcase-tab:hover {
    color: var(--color-text-dark);
}

.showcase-tab.active {
    color: var(--color-accent);
}

.showcase-tab.active::after {
    width: 100%;
}

/* --- I Pannelli Contenuto --- */
.showcase-content-wrapper {
    min-height: 500px; /* Evita che la pagina "salti" cambiando foto */
}

.showcase-panel {
    display: none; /* Nasconde tutti i pannelli di base */
    grid-template-columns: 1.2fr 1fr; /* Foto un po' più grande del testo */
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

/* Animazione di comparsa quando il pannello riceve la classe active */
.showcase-panel.active {
    display: grid;
    animation: fadePanelIn 0.6s forwards;
}

@keyframes fadePanelIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stili immagine e testo per il pannello eventi che mancavano */
.panel-image {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.panel-text p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .page-hero { height: 50vh; }
    .page-hero-content h1 { font-size: 2.5rem; }
    .detail-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .detail-item.large { grid-row: span 1; }

    .menu-top-photo {
        height: 220px; /* Immagine più bassa su mobile */
    }

    .menu-body {
        padding: 15px;
    }

    .menu-inner-border {
        padding: 50px 20px; /* Meno spazio interno su schermi stretti */
    }

    .menu-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .menu-category {
        font-size: 1.2rem;
        gap: 15px;
    }

    .menu-category::before,
    .menu-category::after {
        width: 30px; /* Lineette più corte */
    }

    .menu-item h4 {
        font-size: 1.2rem;
    }

    .menu-item p {
        font-size: 0.95rem;
    }

    .showcase-tabs {
        gap: 15px;
        justify-content: flex-start;
        overflow-x: auto; /* Permette di scorrere i bottoni col dito se non ci stanno */
        padding-bottom: 15px;
        white-space: nowrap; /* Evita che i testi dei bottoni vadano a capo */
    }

    .showcase-tab {
        font-size: 1.1rem;
    }

    .showcase-panel {
        grid-template-columns: 1fr; /* Mette foto e testo in colonna */
        gap: 30px;
    }

    .panel-image {
        height: 300px; /* Foto più bassa su cellulare */
    }

    .panel-text h3 {
        font-size: 2rem;
    }
}