/* =========================================
   1. VARIABILI E SETUP BASE
   ========================================= */
:root {
    --primary-font: 'Lato', sans-serif;
    --heading-font: 'Playfair Display', serif;
    
    /* PALETTE COLORI */
    --text-dark: #1a1a1a;   /* Colore scuro per testi su sfondo chiaro */
    --text-light: #f9f9f9;  /* Colore chiaro per testi base */
    --bg-light: #ffffff;    /* Sfondo bianco pulito */
    --bg-dark: #4a4741;     /* Greige Scuro (Sezione Music) */
    --bg-footer: #2b2926;   /* Ancora più scuro per il footer */
    --gold-text: #e0d0b0;   /* Champagne (Solo su sfondi scuri) */
    --gold-accent: #c4b28c; /* Oro più scuro per elementi su sfondo bianco */
    --bg-overlay: rgba(0, 0, 0, 0.4); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--primary-font);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. NAVIGAZIONE
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 40px; 
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    background-color: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-group {
    display: flex;
    gap: 50px; 
}

.nav-group a {
    text-decoration: none;
    color: var(--gold-text); /* Oro quando siamo su Hero trasparente */
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px; 
    transition: color 0.3s;
}

/* Quando si scorre, il menu diventa scuro per leggibilità */
nav.scrolled .nav-group a, 
nav.scrolled .logo {
    color: var(--text-dark); 
}

.nav-group a:hover {
    opacity: 0.7;
}

.lang-switch {
    border: 1px solid currentColor; /* Prende il colore del testo */
    padding: 5px 10px;
    border-radius: 4px;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2rem; 
    color: var(--gold-text);
    font-weight: 400;
    letter-spacing: 5px;
    white-space: nowrap;
    margin: 0 80px; 
    text-decoration: none;
    z-index: 1001;
}

/* =========================================
   3. MENU MOBILE
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    left: 30px; 
    z-index: 9999;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--gold-text);
    transition: 0.3s;
}

nav.scrolled .hamburger span {
    background-color: var(--text-dark);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-footer);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%); 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5000; 
}

.mobile-menu.active { transform: translateY(0); }

.mobile-menu a {
    color: var(--gold-text);
    font-size: 1.5rem;
    text-decoration: none;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* =========================================
   4. SEZIONE HERO
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('assets/hero.jpg');
    background-size: cover;
    background-position: center top; 
   display: flex;
    justify-content: center;
    align-items: flex-end; /* Allinea il contenuto verso il basso */
    text-align: center;
    padding-bottom: 15vh; /* Distanza dal bordo inferiore (15% dell'altezza schermo) */
}



.btn-hero {
    padding: 15px 35px;
    background-color: rgba(0, 0, 0, 0.2); /* Leggero velo scuro per staccare dallo sfondo */
    color: var(--gold-text);
    border: 1px solid var(--gold-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
    display: inline-block;
}

.btn-hero:hover {
    background-color: var(--gold-text);
    color: #000;
    box-shadow: 0 0 25px rgba(224, 208, 176, 0.4);
    transform: translateY(-3px); /* Effetto sollevamento */
}


/* =========================================
   5. SEZIONE TOUR / LIVE (CHIARO)
   ========================================= */
#tour {
    background-color: var(--bg-light); /* SFONDO CHIARO */
    color: var(--text-dark);           /* TESTO SCURO */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

#tour h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    color: var(--text-dark);
}

.tour-container {
    max-width: 1000px;
    width: 100%;
}

/* Linee divisorie scure e sottili */
.tour-list {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1); 
}

.tour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.tour-item:hover {
    background-color: rgba(0, 0, 0, 0.02); /* Grigio chiarissimo all'hover */
}

.tour-date {
    flex: 1;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}
.date-year {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666; /* Grigio medio per l'anno */
    display: block;
}

.tour-info {
    flex: 2;
    padding: 0 20px;
}
.tour-venue {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.tour-details {
    font-size: 0.85rem;
    color: #666; /* Dettagli in grigio */
    font-style: italic;
}

.tour-location {
    flex: 1;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.no-events {
    padding: 60px 0;
    text-align: center;
    font-family: var(--heading-font); /* Playfair Display */
    font-style: italic;
    font-size: 1.4rem;
    color: #888; /* Un grigio morbido per non appesantire */
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Chiude la sezione elegantemente */
}

/* Se siamo nella sezione scura (es. se decidi di spostarlo) */
#media .no-events {
    color: var(--gold-text);
    opacity: 0.6;
    border-bottom-color: rgba(224, 208, 176, 0.2);
}
/* BOTTONI TICKETS SU SFONDO CHIARO */
.btn-ticket {
    padding: 10px 25px;
    background-color: transparent;
    border: 1px solid var(--text-dark); /* Bordo scuro */
    color: var(--text-dark);            /* Testo scuro */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    min-width: 130px;
    text-align: center;
}

.btn-ticket:hover {
    background-color: var(--text-dark);
    color: #fff; /* Diventa nero con testo bianco */
}

/* Sold Out su sfondo chiaro */
.btn-ticket.sold-out {
    border-color: #ccc;
    color: #aaa;
    cursor: default;
    pointer-events: none;
}
.btn-ticket.sold-out:hover {
    background-color: transparent;
    color: #aaa;
}

/* =========================================
   6. SEZIONE MUSIC / MEDIA (SCURO)
   ========================================= */
#media {
    background-color: var(--bg-dark); /* SFONDO SCURO */
    color: var(--gold-text);          /* TESTO ORO */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#media h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin-bottom: 50px;
    font-style: italic;
    font-weight: 400;
    text-align: center;
}

#media h3 {
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px; 
    margin-bottom: 20px;
}

.media-container {
    max-width: 1000px;
    width: 100%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.audio-embed {
    width: 100%;
    text-align: center;
}

/* =========================================
   7. SEZIONE ABOUT (CHIARO)
   ========================================= */
#about {
    background-color: var(--bg-light); /* Torna chiaro */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.text-container {
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.text-container h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
}

.text-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 25px;
    font-weight: 300;
}

.text-container strong { font-weight: 600; color: #000; }

/* =========================================
   8. FOOTER (MOLTO SCURO)
   ========================================= */
.main-footer {
    background-color: var(--bg-footer); 
    color: var(--gold-text);
    padding: 80px 20px 40px;
    text-align: center;
}

.footer-container { max-width: 800px; margin: 0 auto; }

.footer-logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-socials a {
    text-decoration: none;
    color: var(--gold-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-socials a:hover { opacity: 1; }

.footer-contact p {
    font-size: 0.8rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.email-link {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--gold-text);
    text-decoration: none;
    font-style: italic;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}
.email-link:hover { border-bottom: 1px solid var(--gold-text); }

.footer-credits {
    margin-top: 60px;
    font-size: 0.7rem;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   9. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .nav-group { gap: 30px; }
    .logo { margin: 0 30px; }
    nav { padding: 30px 20px; }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .hamburger { display: flex; }
    
    .logo { 
        font-size: 1.2rem; 
        margin: 0; 
        width: 100%;
        text-align: center; 
        letter-spacing: 2px;
    }
    
    nav { padding: 20px 20px; justify-content: center; }

    /* Testi */
    .text-container h2, #media h2, #tour h2 { font-size: 2.2rem; }
    
    /* Tour Mobile */
    .tour-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 40px 0;
    }
    .tour-date, .tour-info, .tour-location {
        width: 100%;
        padding: 0;
        text-align: center;
    }
    .tour-location {
        margin-bottom: 10px;
        font-style: italic;
        font-size: 0.9rem;
    }
    
    .video-grid { grid-template-columns: 1fr; }
    .email-link { font-size: 1.1rem; }
}