/* --- SCORRIMENTO FLUIDO MENU --- */
html { scroll-behavior: smooth; }
section, .widget { scroll-margin-top: 100px; }

/* --- VARIABLES --- */
:root {
    --primary-color: #AC5926;
    --text-color: #333333;
    --bg-color: #FAFAFA;
    --white: #ffffff;
    --font-heading: 'Noto Serif Armenian', serif;
    --font-text: 'Open Sans', sans-serif;
    --transition: 0.3s ease-in-out;
}

/* --- RESET & BASIC --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- HEADER --- */
#site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative; /* Serve per posizionare il menu mobile */
}

.logo img {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

/* --- EFFETTO LINEA MENU --- */
.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative; 
    padding-bottom: 5px; 
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover { color: var(--primary-color); }
.main-nav a:hover::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    padding: 10px;
}

/* --- HERO SECTION (BANNER) --- */
.hero-section { width: 100%; }
.hero-swiper {
    width: 100%;
    height: 70vh;
    max-height: 700px;
    min-height: 400px;
}
.hero-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- SPLIT SECTION (Eventi & Locandine) --- */
.split-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 20px;
}
.split-col {
    width: 50%;
    min-width: 0;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.events-swiper, .posters-swiper {
    width: 100%;
    height: 420px; /* Altezza Desktop */
    border-radius: 5px;
    overflow: hidden;
    padding-bottom: 45px; 
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-trigger {
    cursor: zoom-in;
    transition: transform 0.4s ease;
}
.swiper-slide img.lightbox-trigger:hover {
    transform: scale(1.03);
}

/* Freccette Custom */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.85);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: -20px; 
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Pallini Blu */
.swiper-pagination-bullet { background: #cccccc !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: #007bff !important; transform: scale(1.2); }

/* Fallback Vuoto */
.empty-fallback { display: none; }
.is-empty { display: none !important; }
.is-empty + .empty-fallback { display: flex; text-align: center; justify-content: center; align-items: center; height: 400px; font-style: italic; color: #777; background: #f9f9f9; border: 2px dashed #ddd; border-radius: 5px;}

/* --- FULL IMAGE --- */
.full-image-section img { width: 100%; height: auto; display: block; }

/* --- DOVE SIAMO --- */
.location-section { padding: 60px 20px; text-align: center; }
.location-section p { max-width: 800px; margin: 0 auto 30px; font-size: 16px; }

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}
.btn-primary:hover { background: #8e471d; box-shadow: 0 4px 10px rgba(172, 89, 38, 0.3); }

/* --- FOOTER --- */
#footer { background: #222; color: #ccc; }
.footer-widgets { padding: 60px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.widget-title { color: var(--primary-color); font-family: var(--font-heading); font-size: 24px; margin-bottom: 25px; }
.footer-text { font-size: 13.5px; line-height: 1.7; }
.chi-siamo-widget p { margin-bottom: 12px; }
.chi-siamo-widget .highlight { color: var(--primary-color); font-weight: bold; font-size: 15px; margin-top: 20px; display: block; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; margin-bottom: 18px; gap: 15px; }
.contact-list svg { width: 20px; height: 20px; fill: var(--primary-color); flex-shrink: 0; margin-top: 3px; }
.contact-list a:hover { color: var(--primary-color); }
.footer-bottom { background: #111; text-align: center; padding: 20px 0; font-size: 13px; }

/* --- LIGHTBOX --- */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 99999; opacity: 0; visibility: hidden; transition: 0.3s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 5px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transform: scale(0.8); transition: 0.3s; }
.lightbox-overlay.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 50px; cursor: pointer; transition: 0.3s; }
.lightbox-close:hover { color: var(--primary-color); transform: scale(1.1); }

/* --- STILI DESCRIZIONE EVENTI DINAMICA --- */
.events-swiper .swiper-slide, .posters-swiper .swiper-slide {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.events-swiper .swiper-slide img.lightbox-trigger, .posters-swiper .swiper-slide img.lightbox-trigger {
    max-width: 100%; max-height: 75%; object-fit: contain;
}
.slide-description {
    margin-top: 15px; font-family: var(--font-text); color: var(--text-color); font-size: 14px;
    text-align: center; line-height: 1.4; background: #f0f4f8; padding: 12px 15px; border-radius: 4px;
    border-left: 4px solid var(--primary-color); max-width: 95%; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.slide-description strong { color: var(--primary-color); font-size: 15px; display: block; margin-top: 5px; }


/* --- RESPONSIVE MOBILE PERFETTO --- */
@media (max-width: 850px) {
    /* Menu Mobile a tendina */
    .mobile-menu-toggle { display: block; }
    .main-nav {
        display: none; 
        position: absolute;
        top: 80px; /* Esattamente sotto l'header */
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    .main-nav.active { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
    }
    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    /* Layout generale */
    .split-section { flex-direction: column; padding: 30px 20px;}
    .split-col { width: 100%; padding: 20px; }
    .footer-widgets { grid-template-columns: 1fr; gap: 40px; }
    .hero-swiper { height: 40vh; min-height: 250px; }
    .lightbox-close { top: 15px; right: 20px; font-size: 40px; }

    /* Fix Sliders Mobile per renderli leggibili e non tagliati */
    .events-swiper, .posters-swiper {
        height: auto; /* L'altezza si adatta al contenuto da mobile! */
        min-height: 380px;
        padding-bottom: 50px; 
    }
    .events-swiper .swiper-slide img.lightbox-trigger, 
    .posters-swiper .swiper-slide img.lightbox-trigger {
        max-height: 250px; /* Limite massimo per l'immagine da mobile */
    }
    .slide-description {
        font-size: 13.5px;
        padding: 10px;
    }
    /* Nascondi frecce slider su mobile (si usa il dito ed è molto più comodo) */
    .swiper-button-next, .swiper-button-prev {
        display: none !important;
    }
}