:root {
    --gold: #e5c07b;
    --dark-bg: rgb(45, 25, 25);
    --card-bg: #1e1e1e;
    --text-light: #f5f5f5;
    --accent-red: #8b0000;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--dark-bg); color: var(--text-light); line-height: 1.6; overflow-x: hidden; }


/* Gestione Subpages */
.subpage-body { background-color: var(--dark-bg); }
.subpage-container { padding-top: 120px; min-height: 50vh; }

.hero-nav.solid-nav {
    background: rgba(45, 25, 25, 0.98);
    padding: 15px 0;
    border-bottom: 1px solid rgba(229, 192, 123, 0.4);
}

/* Stili del bottone Read More */
.more-text {
    display: none;
}

/* Layout Instagram Feed / Footer */
.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.ig-link:hover {
    color: var(--text-light);
}

.ig-logo {
    width: 28px;
    height: 28px;
    fill: currentColor;
}


.hero-top-text { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(45, 25, 25, 0.95); z-index: 1001; color: var(--text-light); font-size: clamp(0.7rem, 2.5vw, 1.1rem); padding: 8px 15px; font-weight: 300; letter-spacing: 3px; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(229, 192, 123, 0.4); white-space: normal; text-align: center; }
.hero-top-text span:nth-child(2) { flex: 1; }
.star-anim { color: var(--gold); display: inline-block; animation: star-pulse 1.5s infinite alternate ease-in-out; }
@keyframes star-pulse { 0% { transform: scale(1) rotate(0deg); opacity: 0.8; text-shadow: 0 0 5px var(--gold); } 100% { transform: scale(1.3) rotate(15deg); opacity: 1; text-shadow: 0 0 15px var(--gold), 0 0 25px var(--gold); } }

.hero { height: 100dvh; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center top; background-repeat: no-repeat; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.30); z-index: 1; }

.hero-nav { position: fixed; top: 45px; left: 0; width: 100%; z-index: 1000; transition: background 0.3s ease, padding 0.3s ease; padding: 30px 0; background: linear-gradient(to bottom, rgba(45, 25, 25, 1) 0%, rgba(45, 25, 25, 0.7) 60%, rgba(45, 25, 25, 0) 100%); }
.hero-nav.scrolled { background: rgba(45, 25, 25, 0.95); padding: 15px 0; border-bottom: 1px solid rgba(229, 192, 123, 0.2); }
.hero-nav .nav-list { list-style: none; display: flex; justify-content: center; gap: 2.5rem; margin: 0; padding: 0; }
.hero-nav a { text-decoration: none; color: var(--text-light); font-weight: 300; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s ease; }
.hero-nav a:hover { color: var(--gold); }
.menu-toggle { display: none; }

.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; margin-top: 40px; text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9); }
.header-logo { max-width: 280px; height: auto; margin-bottom: 0.5rem; }
.hero-subtext { color: #fff; font-size: 1rem; margin-bottom: 2.5rem; font-weight: 300; text-transform: uppercase; letter-spacing: 3px; }

.btn { padding: 12px 24px; text-decoration: none; font-weight: 600; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; font-size: 1rem; display: inline-block; }
.hero-content .btn, .section-title { text-shadow: none !important; }
.btn-gold { background-color: var(--gold); color: #000; border: 2px solid var(--gold); }
.btn-gold:hover { background-color: transparent; color: var(--gold); }
.btn-outline { background-color: transparent; color: var(--gold); border: 2px solid var(--gold); margin-left: 10px; }
.btn-outline:hover { background-color: var(--gold); color: #000; }
.btn-dark { background-color: #222; color: var(--gold); border: 1px solid var(--gold); }
.btn-dark:hover { background-color: var(--gold); color: #000; }

.section-dark { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 2rem; margin-bottom: 3rem; letter-spacing: 2px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.weekly-grid { margin-top: 5rem !important; }
.card { background-color: var(--card-bg); border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.5); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(229, 192, 123, 0.2); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { margin-bottom: 0.5rem; color: var(--gold); }
.card-body p { font-size: 0.9rem; color: #ccc; margin-bottom: 1rem; }
.read-more { display: block; margin-top: auto; padding-top: 15px; text-align: center; color: var(--gold); text-decoration: none; font-weight: bold; font-size: 0.95rem; text-transform: uppercase; transition: color 0.3s ease; }
.card:hover .read-more, .read-more:hover { color: var(--text-light); }

.card-minimal { position: relative; border-radius: 8px; overflow: hidden; }
.card-minimal img { height: 250px; }
.card-overlay { position: absolute; bottom: 0; width: 100%; padding: 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.95)); text-align: center; }

.cta-panel { background-color: var(--gold); color: #000; text-align: center; padding: 3rem 1rem; }
.cta-panel h2 { margin-bottom: 1.5rem; font-size: 2.5rem; }
.cta-buttons { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.or-text { font-weight: bold; font-size: 1.2rem; }

.about-text { text-align: center; padding: 3rem 2rem; max-width: 800px; margin: 0 auto; }
footer { background-color: #0a0a0a; padding: 3rem 2rem; }
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; max-width: 1200px; margin: 0 auto 2rem auto; gap: 2rem; }
.map-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.map-container h4 { margin-bottom: 1rem; color: var(--gold); }

.more-text {
    display: none;
}

.more-text.show {
    display: inline;
}

@media (max-width: 768px) {
    .hero-nav { pointer-events: none; background: transparent !important; border: none !important; padding: 0; }
    .hero-nav.solid-nav { background: rgba(20, 15, 15, 0.98) !important; pointer-events: auto; }

    .menu-toggle { pointer-events: auto; display: flex; flex-direction: column; cursor: pointer; gap: 6px; position: fixed; right: 20px; top: 60px; z-index: 2000; background: rgba(0, 0, 0, 0.4); padding: 12px; border-radius: 50%; transition: transform 0.3s ease; }
    .menu-toggle .bar { width: 24px; height: 2px; background-color: var(--gold); transition: all 0.4s ease; transform-origin: left center; }
    .menu-toggle.open .bar:nth-child(1) { transform: rotate(45deg); width: 28px; }
    .menu-toggle.open .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.open .bar:nth-child(3) { transform: rotate(-45deg); width: 28px; }

    .hero-nav .nav-list { pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh; background-color: rgba(20, 15, 15, 0.98); padding: 0; margin: 0; border: none; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); z-index: 1999; }
    .hero-nav .nav-list.active { right: 0; }
    .hero-nav .nav-list li { width: 100%; text-align: center; margin: 20px 0; opacity: 0; transform: translateX(50px); transition: all 0.5s ease forwards; border: none; padding: 0; }
    .hero-nav .nav-list.active li { opacity: 1; transform: translateX(0); }
    .hero-nav .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
    .hero-nav .nav-list.active li:nth-child(2) { transition-delay: 0.2s; }
    .hero-nav .nav-list.active li:nth-child(3) { transition-delay: 0.3s; }
    .hero-nav .nav-list.active li:nth-child(4) { transition-delay: 0.4s; }

    .hero-nav .nav-list a { font-size: 1.5rem; letter-spacing: 4px; color: var(--gold); }
    .hero-buttons { display: flex; flex-direction: column; width: 100%; padding: 0 20px; gap: 15px; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .btn-outline { margin-left: 0; }
    .cta-buttons { flex-direction: column; }
    .hero-nav,
    .hero-nav.solid-nav,
    .hero-nav.scrolled {
        pointer-events: none !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

}

/* Cornice dorata per le card di Upcoming Events (Applica solo alla griglia principale, escludendo le weekly) */
#events .grid-container:not(.weekly-grid) .card {
    border: 2px solid var(--gold);
}

/* Stili per la pagina dinamica dell'evento */
.event-detail-container {
    border: 2px solid var(--gold);
    padding: 3rem;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    border-radius: 8px;
    background-color: var(--card-bg);
}

.event-detail-title {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.event-detail-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.event-detail-img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid rgba(229, 192, 123, 0.4);
}