/* --- 1. RESET E STILI DI BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background-image: url("image.jpg"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    font-family: Arial, sans-serif;
    position: relative;
    color: white;
}

/* --- 2. NAVIGAZIONE (DESKTOP) --- */
nav {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 2000;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}

/* --- 3. PLAYER AUDIO (DESKTOP) --- */
.audio-container {
    position: fixed;  
    top: 20px;         
    right: 20px;       
    z-index: 1000;     
}

audio {
    height: 40px;
    opacity: 0.8;
}

audio:hover {
    opacity: 1;        
}

/* --- 4. CONTENITORE CENTRALE --- */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px; 
}

h1, h2 {
    margin-bottom: 20px;
    color: white;
}

p {
    margin-bottom: 20px;
}

a {
    color: white; 
    text-decoration: none;
}

a:hover {
    color: lightgrey; 
}

/* --- 5. AREA CONTATTI & BOOKING --- */
.bottom-contact-area {
    position: absolute;
    bottom: 100px;
    width: 100%;
    text-align: center;
}

.booking-label {
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);   
}

.contact-box {
    background-color: white; 
    padding: 0 20px; /* Padding solo laterale */
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    min-height: 45px; /* Altezza fissa per aiutare il centraggio */
}

.contact-box p {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* FIX: Forza il colore nero per la mail nel riquadro bianco */
.contact-box a {
    color: black !important; 
    font-weight: bold;
    text-decoration: none;
    line-height: 1; /* Centratura verticale perfetta */
}

.contact-box a:hover {
    color: #555 !important;            
}


/* --- 6. FOOTER SOCIAL (DESKTOP) --- */
footer {
    position: fixed;   
    top: 20px;         
    left: 50%;         
    transform: translateX(-50%); 
    display: flex;     
    align-items: center; 
    gap: 25px;         
    z-index: 1000;
}

.social-icon {
    height: 40px;     
    width: auto;       
}

/* --- 7. OTTIMIZZAZIONE MOBILE (Sotto i 768px) --- */
@media (max-width: 768px) {
    
    body {
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
        background-attachment: scroll; 
    }

    /* Menu in alto centrato */
    nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 15px 0 !important; 
        background: rgba(0, 0, 0, 0.9); 
        text-align: center; 
        z-index: 9999 !important;
    }

    .menu {
        justify-content: center !important; 
        gap: 20px;
    }

    /* Player audio sotto il menu */
    .audio-container {
        position: fixed !important;
        top: 60px !important; 
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        z-index: 9998 !important;
    }

    audio {
        width: 100% !important;
        max-width: 100% !important; 
        height: 40px;
    }

    /* Riquadro centrale adattato */
    .container {
        position: relative !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 160px auto 40px auto !important; 
        width: 90%;
        max-width: 400px;
        padding: 25px;
    }

    .container h1 {
        font-size: 1.8em;
    }

    /* Link musica più grandi per il touch */
    .container p a {
        display: block; 
        padding: 12px;
        background: rgba(255, 255, 255, 0.1); 
        border-radius: 5px;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .bottom-contact-area {
        position: relative !important;
        bottom: 0 !important;
        margin-top: 40px;
        padding-bottom: 120px; 
    }

    /* Social fissi in fondo */
    footer {
        position: fixed !important;
        top: auto !important; 
        bottom: 20px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, 0.7);
        padding: 10px 20px;
        border-radius: 30px;
        backdrop-filter: blur(5px); 
        z-index: 10000 !important;
        width: auto !important;
        display: flex !important;
        gap: 20px !important;
    }
}
