/*
Theme Name: Le Presentose Custom
Text Domain: le-presentose
*/

/* 1. VARIABILI E FONT */

:root {
    --bordeaux: #8b2323;
    --bordeaux-scuro: #6b1b1b;
    /* --crema: #ECDCC4;
    --crema-scuro: #ECDCC4; */
    --crema: #f1e6d1;
    --crema-scuro: #f1e6d1;
    /* --testo-titolo: #4a3728; */
    --testo-titolo: #8b2323;
     --white: #ffffff;
    --pattern-tovaglia: url('images/tovaglia-pattern.png');
}

/* 2. RESET E BODY */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    font-size: 100%;
}

body {
    background-color: var(--crema-scuro);
    margin: 0;
    font-family: 'Lato', sans-serif !important;
    overflow-x: hidden;
    color: #333;
    font-size: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Base 1rem */
}

body > main {
    flex: 1 0 auto;
}

body > footer {
    flex-shrink: 0;
}

.container {
    max-width: 75rem;
    /* 75rem */
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1,
h2,
h3,
h4,
.section-title,
.section-title-corsi {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

/* 3. LAYOUT TOVAGLIA */
.tovaglia-sopra::before,
.tovaglia-sopra-sotto::before {
    content: "";
    display: block;
    height: 4rem;
    background-image: var(--pattern-tovaglia);
    background-size: 2.5rem 2.5rem;
    background-repeat: repeat;
    /* Rimuoviamo eventuali margini o padding ereditati */
    margin: 0;
    padding: 0;
}

/* 4. HEADER E LOGO (Aggressive turno 29 - Compressed) */
.site-header {
    position: relative;
    background-color: var(--crema-scuro);
    padding: 0;
    /* AZZERATO TUTTO */
    width: 100%;
    z-index: 100;
    text-align: center;
}

.header-container-integrated {
    position: static !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 13.75rem;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.5));
}

.site-logo-img {
    max-width: 9.375rem;
    height: auto;
}

.logo-area-small .logo-img {
    max-width: 9.375rem;
}

.title-banner-wrapper {
    margin-bottom: 0;
    /* AZZERATO TUTTO */
    position: relative;
    z-index: 110;
}

.main-title {
    color: var(--testo-titolo);
    font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", Georgia, serif !important;
    font-size: clamp(3.2rem, 5.4vw, 4.25rem);
    margin: -0.5rem 0 0 0;
    /* Tira su il titolo verso il logo */
    text-transform: none;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0;
    max-width: min(100%, 64rem);
    padding: 0 1rem;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    /* Titolo super compatto */
}

.main-title-link {
    color: inherit;
    text-decoration: none;
}

.site-breadcrumb {
    background: var(--crema);
    border-top: 1px solid rgba(139, 35, 35, 0.08);
    border-bottom: 1px solid rgba(139, 35, 35, 0.08);
    color: #77695b;
    font-size: 0.9rem;
}

.site-breadcrumb-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
}

.site-breadcrumb a {
    color: var(--bordeaux);
    font-weight: 700;
    text-decoration: none;
}

.site-breadcrumb a:hover {
    color: var(--bordeaux-scuro);
    text-decoration: underline;
}

.site-breadcrumb-current {
    color: #77695b;
}

.site-breadcrumb-separator {
    color: rgba(119, 105, 91, 0.7);
}

/* ==========================================================
   5. IL NASTRO (VERSIONE DEFINITIVA - DRITTO)
   ========================================================== */
.school-banner-container {
    position: relative;
    display: inline-block;
    z-index: 150;
    margin-top: 0.5rem;
    margin-bottom: -4rem;
    /* Regola la sovrapposizione con la montagna */
}

.school-banner {
    background: var(--bordeaux);
    /* Bordeaux unico */
    color: white;
    padding: 1rem 5.5rem;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    display: inline-block;
    position: relative;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.3);
    line-height: 1;
    z-index: 2;
}

/* Punte del nastro: stesso colore del corpo centrale */
.school-banner::before,
.school-banner::after {
    content: "";
    position: absolute;
    top: 0;
    width: 4.5rem;
    height: 100%;
    background: var(--bordeaux);
    /* STESSO COLORE */
    z-index: -1;
}

.school-banner::before {
    left: -3rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 25% 50%);
}

.school-banner::after {
    right: -3rem;
    clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%);
}

/* 6. HERO - SALVATAGGIO STRAPPI (SOPRA E SOTTO) */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800; 
    height: auto;
    min-height: unset;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%; 
    display: flex;
    z-index: 1;
    margin-top: -5.5rem; 
    background-color: var(--crema-scuro);
}

.front-hero-section {
    background-image: url('images/majella-hero3.png');
}

@media (max-width: 48rem) {
    .school-banner::before,
    .school-banner::after {
        width: 2rem;
    }

    .school-banner::before {
        left: -0.75rem;
    }

    .school-banner::after {
        right: -0.75rem;
    }

    .hero-section {
        aspect-ratio: auto;
        height: 60vh;
        background-size: cover;
        margin-top: -3.5rem;
    }
}

/* 7. MENU TOGGLE (Aggressive turno 29 - Compressed) */
.menu-toggle {
    background: transparent;
    border: none !important;
    padding: 0.625rem;
    cursor: pointer;
    position: absolute !important;
    top: 2.5rem;
    left: 2.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0 !important;
}

@media (max-width: 48rem) {
    .menu-toggle {
        top: 1.25rem;
        left: 1.25rem;
    }
        #site-navigation ul {
        margin-top: 5rem;
    }
}

.menu-toggle .bar {
    width: 1.5rem;
    height: 0.1875rem;
    background-color: var(--bordeaux);
}

.menu-label {
    font-size: 0.6rem;
    color: var(--bordeaux);
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(0.4375rem) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-0.4375rem) rotate(-45deg);
}

#site-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 17.5rem;
    height: 100vh;
    background-color: var(--crema);
    z-index: 9998;
    transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 6.25rem 1.875rem;
    box-shadow: 0.3125rem 0 0.9375rem rgba(0, 0, 0, 0.1);
    border-right: 0.1875rem solid var(--bordeaux);
}

#site-navigation.toggled {
    left: 0;
}

.menu-panel-header {
    position: absolute;
    top: 2.5rem;
    left: 1.875rem;
    right: 1.875rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bordeaux);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.language-switcher a {
    color: var(--bordeaux);
    text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus {
    text-decoration: underline;
}

.language-switcher-current {
    color: var(--bordeaux);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.language-switcher-separator {
    color: var(--bordeaux);
    opacity: 0.75;
}

@media (max-width: 48rem) {
    .menu-panel-header {
        top: 1.25rem;
        left: 1.25rem;
        right: 1.25rem;
    }
}

#site-navigation ul {
    margin-top: 4em;
    list-style: none !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#site-navigation ul li a {
    text-decoration: none;
    color: var(--bordeaux);
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9997;
}

@media (max-width: 30rem) {
    .menu-panel-header {
        position: static;
        justify-content: flex-end;
        margin-bottom: 1.75rem;
    }

    #site-navigation ul {
        margin-top: 0;
    }
}

/* 8. CONTENUTI HOME (Turno 12 original) */
.home-content {
    padding: 3.75rem 0 1.25rem 0;
    text-align: center;
}

.home-intro {
    padding: 5rem 0;
    text-align: center;
}

.section-title {
    color: var(--bordeaux);
    margin-bottom: 0.625rem;
}

.section-title,
.home-section-title,
.section-title-corsi {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bordeaux);
    text-transform: none;
}

.section-title--main {
    font-size: 2.2rem;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--bordeaux);
    font-size: 1.2rem;
    margin-bottom: 1.875rem;
    font-style: italic;
}

.intro-text {
    max-width: 50rem;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-page {
    padding: 3.75rem 0;
    background: var(--crema);
}

.home-about {
    margin-bottom: 5rem;
}

.home-section {
    margin-bottom: 5rem;
}

.home-section-header {
    max-width: 47.5rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-section-title {
    color: var(--bordeaux);
    margin: 0 0 0.9375rem;
}

.home-section-description {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto 1.25rem;
}

.chi-siamo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.chi-siamo-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
}

.chi-siamo-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.chi-siamo-text p {
    margin: 0 0 1.2rem;
}

.chi-siamo-section-header {
    max-width: 47.5rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.chi-siamo-contact-section,
.chi-siamo-map-section {
    margin-top: 4.375rem;
}

.chi-siamo-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.375rem;
    align-items: stretch;
}

.chi-siamo-contact-card,
.chi-siamo-map-card {
    background: var(--white);
    border-radius: 0.625rem;
    box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.06);
}

.chi-siamo-contact-card {
    border-top: 0.25rem solid var(--bordeaux);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.625rem;
    text-align: center;
}

.chi-siamo-contact-icon {
    align-items: center;
    background: rgba(123, 32, 45, 0.08);
    border-radius: 999px;
    color: var(--bordeaux);
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    margin: 0 auto 1rem;
    width: 3rem;
}

.chi-siamo-contact-icon svg {
    height: 1.35rem;
    width: 1.35rem;
}

.chi-siamo-contact-icon rect,
.chi-siamo-contact-icon circle,
.chi-siamo-contact-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.chi-siamo-contact-card h3 {
    color: var(--bordeaux);
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.chi-siamo-contact-card p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.chi-siamo-contact-phone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.25rem;
}

.chi-siamo-contact-phone {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    text-align: left;
}

.chi-siamo-contact-phone-icon {
    align-items: center;
    background: rgba(123, 32, 45, 0.08);
    border-radius: 999px;
    color: var(--bordeaux);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.chi-siamo-contact-phone-icon svg {
    height: 1rem;
    width: 1rem;
}

.chi-siamo-contact-phone-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.chi-siamo-contact-card a {
    color: var(--bordeaux);
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.chi-siamo-contact-card a:hover {
    color: var(--bordeaux-scuro);
    text-decoration: underline;
}

.chi-siamo-map-card {
    overflow: hidden;
}

.chi-siamo-map-card iframe {
    display: block;
    width: 100%;
    min-height: 26.25rem;
    aspect-ratio: 16 / 7;
    border: 0;
}

@media (max-width: 48rem) {
    .chi-siamo-layout {
        grid-template-columns: 1fr;
    }

    .chi-siamo-contact-section,
    .chi-siamo-map-section {
        margin-top: 3rem;
    }

    .chi-siamo-contact-grid {
        grid-template-columns: 1fr;
    }

    .chi-siamo-map-card iframe {
        min-height: 20rem;
        aspect-ratio: 4 / 3;
    }
}

/* 9. GALLERIA (Turno 12 original) */
.home-gallery {
    margin: 2.5rem 0;
}

.gallery-grid {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1;
    min-width: 15.625rem;
    max-width: 21.875rem;
}

.gallery-item img {
    width: 100%;
    height: 17.5rem;
    object-fit: cover;
    border: 0.3125rem solid white;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
}

/* ==========================================================
   10. ARCHIVIO EVENTI (SHOW COOKING E CORSI) - STILE MODERNO
   ========================================================== */
.archive-events-main {
    padding: 3.75rem 0;
    background: var(--crema);
}

.archive-header {
    max-width: 50rem;
    margin: 0 auto 3.125rem auto;
}

.archive-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

.archive-info-section {
    max-width: 47.5rem;
    margin: 0 auto 3.125rem;
    text-align: center;
}

.archive-info-title {
    color: var(--bordeaux);
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

.archive-info-text {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1.875rem;
}

.modern-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.9375rem 2.1875rem rgba(0, 0, 0, 0.12);
}

.modern-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-card:hover .modern-card-image img {
    transform: scale(1.08);
}

.modern-card-content {
    padding: 1.5625rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modern-card-meta {
    margin-bottom: 0.75rem;
}

.durata-badge {
    background-color: #f5f5f5;
    color: #666;
    padding: 0.25rem 0.625rem;
    border-radius: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.modern-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.modern-card-title a {
    color: var(--bordeaux);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-card-title a:hover {
    color: #000;
}

.modern-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.modern-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1.25rem;
    margin-top: auto;
}

.modern-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}


/* ==========================================================
   11. BOTTONI E PREZZI 
   ========================================================== */
.btn-bordeaux {
    background: var(--bordeaux);
    color: white !important;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 0.25rem;
}

.btn-outline-bordeaux {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 0.125rem solid var(--bordeaux);
    color: var(--bordeaux) !important;
    border-radius: 1.875rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-bordeaux:hover {
    background-color: var(--bordeaux);
    color: #ffffff !important;
}

.price {
    font-weight: bold;
    color: var(--bordeaux);
    font-size: 1.2rem;
}


/* ==========================================================
   12. FOOTER 
   ========================================================== */
footer {
    background: var(--bordeaux);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.site-footer {
    background: var(--bordeaux);
    color: white;
    padding: 3.75rem 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 2.5rem;
}

.site-footer-heading {
    color: var(--crema);
}

.site-footer-text,
.footer-social-empty {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-social-empty {
    opacity: 0.6;
}

.footer-social {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social-link {
    align-items: center;
    color: white;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: bold;
    gap: 0.5rem;
    border-bottom: 0.125rem solid var(--crema);
    padding-bottom: 0.125rem;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social-icon {
    color: var(--crema);
    flex: 0 0 auto;
    height: 1.15rem;
    width: 1.15rem;
}

.footer-social-icon rect,
.footer-social-icon circle,
.footer-social-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-social-icon path {
    fill: currentColor;
    stroke: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-text {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom-text a {
    color: var(--crema);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}


/* ==========================================================
   13. SINGLE CORSO - AGGIORNAMENTO META
   ========================================================== */
.corso-header-single { 
    margin-bottom: 2.5rem; 
    border-bottom: 0.125rem solid var(--bordeaux); 
    padding-bottom: 1.5rem; 
}

.corso-meta { 
    display: flex; 
    gap: 2rem; 
    margin-top: 1rem; 
    font-family: 'Montserrat', sans-serif;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-item .label {
    font-size: 0.8rem;
    color: var(--bordeaux);
    font-weight: bold;
    letter-spacing: 0.05rem;
}

.meta-item .value, .meta-item .price {
    font-size: 1.2rem;
    color: var(--testo-titolo);
    font-weight: 600;
}

.meta-item .price {
    color: #27ae60; 
}


/* ==========================================================
   14. RESPONSIVE MOBILE 
   ========================================================== */
@media (max-width: 61.9375rem) {
    /* 61.9375rem */
    .site-header {
        padding: 0;
    }
    .main-title {
        color: var(--testo-titolo);
        font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", Georgia, serif !important;
        font-size: clamp(2.65rem, 7vw, 3.35rem);
        font-weight: 900;
        line-height: 0.96;
        letter-spacing: 0;
        max-width: min(100%, 48rem);
        padding: 0 1rem;
        text-align: center;
    }
}

@media (max-width: 48rem) {
    .main-title {
        color: var(--testo-titolo);
        font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", Georgia, serif !important;
        font-size: clamp(2.15rem, 11vw, 2.65rem);
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0;
        max-width: 100%;
        padding: 0 0.75rem;
        text-align: center;
    }
    /* 48rem */
    .hero-section {
        height: 60vh;
        min-height: 25rem;
        margin-top: -4rem;
    }
    .section-header-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }
    .torn-edge-top {
        height: 5rem;
    }
}


/* ==========================================================
   ALTRE SEZIONI (Testimonials, Contatti, Vecchia Griglia)
   ========================================================== */
/* Gallery Grid Vecchia (Lasciata nel caso serva altrove) */
.gallery-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.625rem, 1fr)); gap: 0.9375rem; margin: 2.5rem 0; }
.gallery-item-full img { width: 100%; height: 15.625rem; object-fit: cover; border-radius: 0.5rem; transition: 0.3s; }
.gallery-item-full img:hover { transform: scale(1.03); }

/* Testimonials */
.testimonials-section { background: var(--crema); padding: 3.75rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); gap: 1.875rem; }
.testimonial-card { background: white; padding: 1.875rem; border-radius: 0.625rem; box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.05); }
.testimonial-card .quote { font-style: italic; color: #555; margin-bottom: 0.9375rem; }

/* Contacts Area */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.125rem; padding: 3.75rem 0; }
.contact-map iframe { width: 100%; height: 21.875rem; border-radius: 0.625rem; border: 0; }
.social-btn { display: inline-block; margin-right: 0.625rem; color: var(--bordeaux); font-weight: bold; text-decoration: none; border: 1px solid var(--bordeaux); padding: 0.3125rem 0.9375rem; border-radius: 1.25rem; }
.social-btn:hover { background: var(--bordeaux); color: white; }

@media (max-width: 48rem) { .contact-grid { grid-template-columns: 1fr; } }


/* ==========================================================
   DICONO DI NOI
   ========================================================== */
.testimonials-page {
    background: var(--crema);
    padding: 3.75rem 0;
}

.testimonials-page-header {
    max-width: 47.5rem;
    margin: 0 auto 3.125rem;
    text-align: center;
}

.testimonials-page-intro {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.press-section {
    margin-top: 2.5rem;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
    gap: 1.875rem;
    margin-top: 1.875rem;
}

.press-card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.press-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.press-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.press-card-content {
    padding: 1.5625rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.press-card-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.press-card-title a {
    color: var(--bordeaux);
    text-decoration: none;
}

.press-card-meta {
    color: #77695b;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.75rem;
    margin: 0 0 0.875rem;
}

.press-card-source,
.press-card-date {
    display: inline-flex;
}

.press-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.press-card-content .btn-outline-bordeaux {
    align-self: flex-start;
    margin-top: auto;
}

.press-empty {
    color: #555;
    margin: 1.875rem 0 0;
    text-align: center;
}

.google-reviews-section {
    margin-top: 4.375rem;
}

.single-press-main {
    background: var(--crema);
    padding: 3.75rem 0;
}

.single-press-layout {
    max-width: 56.25rem;
}

.single-press-article {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.single-press-header {
    padding: 2.5rem 2.5rem 1.5rem;
}

.single-press-title {
    color: var(--bordeaux);
    font-size: 2.3rem;
    line-height: 1.15;
    margin: 0;
}

.single-press-meta {
    color: #77695b;
    display: flex;
    flex-wrap: wrap;
    font-weight: 700;
    gap: 1rem;
    margin-top: 1rem;
}

.single-press-image img {
    display: block;
    height: auto;
    width: 100%;
}

.single-press-content {
    color: #444;
    font-size: 1.08rem;
    line-height: 1.85;
    padding: 2rem 2.5rem;
}

.single-press-content p,
.single-press-content ul,
.single-press-content ol {
    margin: 0 0 1.35rem;
}

.single-press-actions {
    padding: 0 2.5rem 2.5rem;
}

@media (max-width: 48rem) {
    .testimonials-page {
        padding: 2.625rem 0;
    }

    .testimonials-page-header {
        margin-bottom: 2.25rem;
    }

    .press-grid {
        grid-template-columns: 1fr;
    }

    .single-press-main {
        padding: 2.625rem 0;
    }

    .single-press-header,
    .single-press-content,
    .single-press-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .single-press-title {
        font-size: 1.85rem;
    }
}


/* ==========================================================
   CAROSELLO GALLERIA (CSS SCROLL SNAP)
   ========================================================== */
.gallery-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    padding: 0.75rem 0 1.25rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    user-select: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

.carousel-item {
    flex: 0 0 auto;
    width: min(88vw, 60rem);
    scroll-snap-align: center; 
    border-radius: 0.875rem;
    overflow: hidden;
    background: #fff8eb;
    border: 1px solid #ead8bd;
    box-shadow: 0 1rem 2.5rem rgba(74, 55, 40, 0.14);
    padding: 0.5rem;
    user-select: none;
}

.carousel-item img {
    width: 100%;
    height: clamp(20rem, 56vw, 40rem);
    object-fit: cover;
    display: block;
    border-radius: 0.625rem;
}

.gallery-carousel-image {
    -webkit-user-drag: none;
    user-select: none;
}

@media (min-width: 48rem) {
    .carousel-item {
        width: min(78vw, 64rem);
    }
}


/* ==========================================================
   FRECCE CAROSELLO
   ========================================================== */
.gallery-wrapper {
    position: relative; 
}

.gallery-page {
    padding: 3.75rem 0;
    background: var(--crema);
}

.gallery-page-header {
    max-width: 48rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.gallery-page-title {
    margin-bottom: 1rem;
}

.gallery-page-intro {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bordeaux); 
    color: white;
    border: none;
    border-radius: 50%; 
    width: 2.8125rem;
    height: 2.8125rem;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.18);
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow:hover {
    background: var(--bordeaux-scuro);
    transform: translateY(-50%) scale(1.04);
}

.left-arrow {
    left: 0.75rem; 
}

.right-arrow {
    right: 0.75rem; 
}

.gallery-dots {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.gallery-dot {
    background: transparent;
    border: 1px solid var(--bordeaux);
    border-radius: 50%;
    cursor: pointer;
    height: 0.75rem;
    padding: 0;
    width: 0.75rem;
}

.gallery-dot.is-active {
    background: var(--bordeaux);
}

@media (max-width: 48rem) {
    .gallery-page-header {
        margin-bottom: 2rem;
    }

    .carousel-item {
        width: 86vw;
    }

    .scroll-arrow {
        height: 2.5rem;
        width: 2.5rem;
    }

    .left-arrow {
        left: 0.25rem;
    }

    .right-arrow {
        right: 0.25rem;
    }
}

/* Dettaglio Cooking Class e Show Cooking */
.single-event-main {
    background: var(--crema);
    padding: 3.75rem 0;
}

.single-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21.25rem;
    gap: 2.625rem;
    align-items: start;
}

.single-event-title {
    color: var(--bordeaux);
    font-size: 2.3rem;
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

.event-featured-image {
    width: 100%;
    max-width: 47.5rem;
    margin: 0 0 2.125rem;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 0.875rem 2.1875rem rgba(0, 0, 0, 0.08);
}

.event-featured-img {
    display: block;
    width: 100%;
    height: clamp(16.25rem, 34vw, 26.875rem);
    object-fit: cover;
}

.event-description {
    max-width: 48.75rem;
    color: #3f3f3f;
    font-size: 1.08rem;
    line-height: 1.85;
}

.event-description p,
.event-description ul,
.event-description ol {
    margin: 0 0 1.35rem;
}

.event-description h2,
.event-description h3,
.event-description h4 {
    color: var(--testo-titolo);
    margin: 2rem 0 1rem;
}

.event-sidebar {
    position: sticky;
    top: 6.25rem;
}

.event-info-box {
    background: var(--white);
    border-top: 0.3125rem solid var(--bordeaux);
    border-radius: 0.625rem;
    padding: 1.75rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.08);
}

.event-info-title {
    color: var(--bordeaux);
    font-size: 1.25rem;
    margin: 0 0 1.125rem;
}

.event-info-list {
    border-top: 1px solid #eee5d9;
    border-bottom: 1px solid #eee5d9;
    margin: 0 0 1.125rem;
    padding: 0.5rem 0;
}

.event-info-row {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.8125rem 0;
}

.event-info-label {
    color: #77695b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.event-info-value {
    color: var(--testo-titolo);
    font-weight: 700;
    text-align: right;
}

.event-info-price {
    color: var(--bordeaux);
    font-size: 1.15rem;
}

.event-info-note {
    color: #6c6259;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.event-info-cta {
    display: block;
    width: 100%;
    background: var(--bordeaux);
    color: var(--white) !important;
    border-radius: 0.375rem;
    padding: 0.8125rem 1.125rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.event-info-cta:hover {
    background: var(--bordeaux-scuro);
    transform: translateY(-0.0625rem);
}

.contact-modal-is-open {
    overflow: hidden;
}

.contact-modal {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 10000;
}

.contact-modal.is-open {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 1.25rem;
}

.contact-modal__overlay {
    background: rgba(28, 23, 20, 0.62);
    inset: 0;
    position: absolute;
}

.contact-modal__dialog {
    background: var(--white);
    border-radius: 0.625rem;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.22);
    max-height: calc(100vh - 2.5rem);
    max-width: 34rem;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    width: min(100%, 34rem);
}

.contact-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--testo-titolo);
    cursor: pointer;
    display: flex;
    font-size: 1.75rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.25rem;
}

.contact-modal__title {
    color: var(--bordeaux);
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 0 2.5rem 1.25rem 0;
}

.contact-modal__form {
    display: grid;
    gap: 1rem;
}

.contact-modal__field {
    display: grid;
    gap: 0.4rem;
}

.contact-modal__field span {
    color: #65584d;
    font-size: 0.86rem;
    font-weight: 700;
}

.contact-modal__required {
    color: var(--bordeaux);
}

.contact-modal__group-help {
    color: #65584d;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: -0.2rem 0 -0.35rem;
}

.contact-modal__field input,
.contact-modal__field textarea {
    border: 1px solid #d9cec2;
    border-radius: 0.375rem;
    color: var(--testo-titolo);
    font: inherit;
    padding: 0.75rem 0.875rem;
    width: 100%;
}

.contact-modal__field.is-invalid input,
.contact-modal__field.is-invalid textarea {
    border-color: #b3261e;
}

.contact-modal__field.is-valid input,
.contact-modal__field.is-valid textarea {
    border-color: #22683d;
}

.contact-modal__privacy {
    display: grid;
    gap: 0.35rem;
}

.contact-modal__privacy-label {
    align-items: flex-start;
    color: #65584d;
    cursor: pointer;
    display: grid;
    font-size: 0.9rem;
    gap: 0.65rem;
    grid-template-columns: 1.1rem 1fr;
    line-height: 1.45;
}

.contact-modal__privacy-label input {
    accent-color: var(--bordeaux);
    cursor: pointer;
    height: 1rem;
    margin: 0.16rem 0 0;
    width: 1rem;
}

.contact-modal__privacy-label a {
    color: var(--bordeaux);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.contact-modal__privacy.is-invalid input {
    outline: 0.125rem solid rgba(179, 38, 30, 0.2);
    outline-offset: 0.125rem;
}

.contact-modal__privacy.is-valid input {
    outline: 0.125rem solid rgba(34, 104, 61, 0.18);
    outline-offset: 0.125rem;
}

.contact-modal__field textarea {
    min-height: 8rem;
    resize: vertical;
}

.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
    border-color: var(--bordeaux);
    outline: 0.125rem solid rgba(128, 0, 32, 0.16);
}

.contact-modal__field.is-invalid input:focus,
.contact-modal__field.is-invalid textarea:focus {
    border-color: #b3261e;
    outline-color: rgba(179, 38, 30, 0.16);
}

.contact-modal__field.is-valid input:focus,
.contact-modal__field.is-valid textarea:focus {
    border-color: #22683d;
    outline-color: rgba(34, 104, 61, 0.16);
}

.contact-modal__field-error {
    color: #b3261e;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
    min-height: 1.1rem;
}

.contact-modal__submit {
    background: var(--bordeaux);
    border: 0;
    border-radius: 0.375rem;
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
    padding: 0.875rem 1.125rem;
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

.contact-modal__submit:hover {
    background: var(--bordeaux-scuro);
}

.contact-modal__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.contact-modal__feedback {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    min-height: 1.5rem;
}

.contact-modal__feedback.is-success {
    color: #22683d;
}

.contact-modal__feedback.is-error {
    color: var(--bordeaux);
}

.standard-page {
    padding: 3.5rem 0 4.5rem;
}

.standard-page-container {
    max-width: 54rem;
}

.standard-page-content {
    background: var(--white);
    border-radius: 0.625rem;
    box-shadow: 0 0.75rem 2.25rem rgba(74, 55, 40, 0.08);
    color: #3f3f3f;
    font-size: 1rem;
    line-height: 1.7;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.standard-page-content h1,
.standard-page-content h2 {
    color: var(--bordeaux);
    line-height: 1.25;
}

.standard-page-content h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin: 0 0 1.5rem;
}

.standard-page-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.standard-page-content p,
.standard-page-content ul {
    margin: 0 0 1rem;
}

.standard-page-content ul {
    padding-left: 1.35rem;
}

.standard-page-content a {
    color: var(--bordeaux);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.contact-success-popup {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 1.25rem;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    visibility: hidden;
    z-index: 10001;
}

.contact-success-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.contact-success-popup__overlay {
    background: rgba(28, 23, 20, 0.48);
    inset: 0;
    position: absolute;
}

.contact-success-popup__dialog {
    align-items: center;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
    max-width: min(24rem, 100%);
    padding: 2rem;
    position: relative;
    text-align: center;
    transform: scale(0.94);
    transition: transform 0.22s ease;
    width: 100%;
}

.contact-success-popup.is-visible .contact-success-popup__dialog {
    transform: scale(1);
}

.contact-success-popup__icon {
    align-items: center;
    background: rgba(34, 104, 61, 0.12);
    border-radius: 999px;
    color: #22683d;
    display: flex;
    height: 4.25rem;
    justify-content: center;
    margin-bottom: 1.125rem;
    width: 4.25rem;
}

.contact-success-popup__icon svg {
    height: 2.35rem;
    width: 2.35rem;
}

.contact-success-popup__icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.contact-success-popup__title {
    color: var(--testo-titolo);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.contact-success-popup__text {
    color: #65584d;
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 62rem) {
    .single-event-layout {
        grid-template-columns: 1fr;
        gap: 1.875rem;
    }

    .event-sidebar {
        position: static;
    }
}

@media (max-width: 48rem) {
    .single-event-main {
        padding: 2.625rem 0;
    }

    .single-event-title {
        font-size: 1.85rem;
    }

    .event-featured-img {
        height: 16.25rem;
    }

    .event-info-box {
        padding: 1.5rem;
    }
}

/* Stato iniziale: il menu è nascosto fuori dallo schermo a SINISTRA */
.side-nav {
    position: fixed;
    top: 0;
    left: -18.75rem; /* Spostato a sinistra fuori visuale */
    width: 18.75rem;
    height: 100vh;
    background-color: var(--crema);
    z-index: 9999;
    transition: left 0.4s ease; /* Animazione fluida sulla proprietà left */
    box-shadow: 0.125rem 0 0.625rem rgba(0,0,0,0.1);
    display: block !important;
}

/* Stato attivo: quando aggiungiamo la classe .toggled via JavaScript */
.side-nav.toggled {
    left: 0; /* Torna in posizione 0 */
}

/* Opzionale: Se vuoi che il pulsante "chiudi" (se presente) sia a destra dentro il menu */
.side-nav .menu-close {
    text-align: right;
    padding: 1.25rem;
}
