/* ============================================================
   STEFANO MARINI - SITO UFFICIALE - STILE DARK MODE
   ============================================================ */

/* RESET E BASE */
body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; box-sizing: border-box; }

/* SFONDO NERO PER TUTTO IL SITO */
body { 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
    color: #ddd; /* Testo grigio chiaro per non affaticare gli occhi */
    background-color: #000000; /* SFONDO NERO TOTALE */
}

/* BLOCCO SELEZIONE TESTO E IMMAGINI */
body {
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
input, textarea {
    -webkit-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; user-select: text !important;
}
img {
    -webkit-user-drag: none; pointer-events: none;
}

/* MENU DI NAVIGAZIONE */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}
.menu-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex; 
    justify-content: center; 
    align-items: center;
}
.menu-list { list-style: none; }
.menu-list li { display: inline-block; margin: 0 15px; }
.menu-list li a {
    color: white; text-decoration: none; font-weight: bold;
    text-transform: uppercase; font-size: 0.9rem; transition: 0.3s;
}
.menu-list li a:hover, .menu-list li a.active { color: #f1c40f; }

/* ICONA HAMBURGER */
.menu-icon {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}
.bar {
    width: 30px; height: 3px; background-color: white; border-radius: 2px; transition: 0.3s;
}

/* HOME PAGE SPECIFICA */
.home-page .hero-section {
    position: relative; height: 100vh;
    background-image: url('img/homeimg.png');
    background-size: cover; background-position: center top;
    display: flex; justify-content: center; color: white;
}
.home-page .overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 30%);
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center;
    padding-top: 100px;
}
.top-content {
    text-align: center;
}
.main-title {
    font-size: 3.5rem; text-transform: uppercase; font-weight: 800; letter-spacing: 2px;
    text-shadow: 0 0 10px #0000FF; margin-bottom: 20px; color: #fff; text-align: center;
}
.spacer { flex-grow: 1; }

/* COUNTDOWN */
#countdown { display: flex; gap: 15px; justify-content: center; }
.time-box {
    background: rgba(0, 0, 0, 0.6); padding: 10px 15px;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center; min-width: 70px;
}
.time-box span { display: block; font-weight: bold; font-size: 2rem; color: #fff; }
.time-box .label { font-size: 0.7rem; text-transform: uppercase; color: #ddd; }

/* PAGINE INTERNE (Storia, Musica, Contatti) */
.content-page { padding-top: 100px; } /* Più spazio in alto */
.main-container { max-width: 800px; margin: 0 auto; padding: 0 20px; min-height: 60vh; }

/* TESTI GENERALI */
h2 { 
    text-align: center; font-size: 2.5rem; margin-bottom: 40px; 
    color: white; /* Titoli bianchi */
    text-transform: uppercase; 
    border-bottom: 1px solid #333; padding-bottom: 20px;
}
h3 { color: #f1c40f; margin-bottom: 15px; }
p { margin-bottom: 20px; font-size: 1.1rem; text-align: justify; color: #ccc; }
li { color: #ccc; margin-bottom: 10px; margin-left: 20px; }

/* FOTO NELLA STORIA */
.photo-block { text-align: center; margin: 40px 0; }
.photo-block img { 
    max-width: 100%; height: auto; border-radius: 5px; 
    border: 1px solid #333; /* Bordo sottile */
    box-shadow: 0 0 20px rgba(255,255,255,0.05); /* Alone leggero */
}
.caption { display: block; font-size: 0.9rem; color: #888; margin-top: 10px; font-style: italic; text-align: center; }
.quote {
    font-size: 1.2rem; font-weight: bold; text-align: center; color: white;
    border-top: 1px solid #333; border-bottom: 1px solid #333;
    padding: 20px 0; margin-top: 40px;
}

/* PAGINA MUSICA */
.video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    margin-bottom: 30px; box-shadow: 0 0 20px rgba(0,0,0,0.8);
    border: 1px solid #333;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.btn-primary {
    background-color: #e74c3c; color: white; padding: 15px 30px;
    text-decoration: none; font-weight: bold; border-radius: 50px; display: inline-block;
    transition: 0.3s;
}
.btn-primary:hover { background-color: white; color: #e74c3c; }

/* PAGINA CONTATTI (Form Scuro) */
.contact-form {
    max-width: 600px; margin: 0 auto; 
    background: #111; /* Sfondo modulo grigio scuro */
    padding: 30px;
    border-radius: 10px; 
    border: 1px solid #333;
    color: white;
}
.contact-form label { display: block; margin-bottom: 5px; color: #f1c40f; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 20px; 
    background-color: #222; /* Campi scuri */
    border: 1px solid #444; 
    color: white; /* Testo che scrivi bianco */
    border-radius: 5px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: #f1c40f;
}
.btn-submit {
    background-color: #f1c40f; color: black; border: none; padding: 12px 25px;
    font-size: 1rem; cursor: pointer; border-radius: 5px; width: 100%; font-weight: bold;
    transition: 0.3s;
}
.btn-submit:hover { background-color: white; }

/* ========================
   STILE ICONE SOCIAL (GLOBALE)
   ======================== */
.social-links-page { text-align: center; margin-top: 50px; }
.social-box, .social-box-dark {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-box a i, .social-box-dark a i {
    font-size: 3rem;
    transition: transform 0.3s, color 0.3s;
}

/* Icone in Home (Bianche) */
.social-box a i {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.social-box a:hover i { color: #f1c40f; transform: scale(1.2); }

/* Icone in Contatti (Ora devono essere BIANCHE perché lo sfondo è nero) */
.social-box-dark a i { color: #888; } /* Di base grigie */
.social-box-dark a:hover i { color: white; transform: scale(1.2); }
.social-box-dark a:hover i.fa-facebook { color: #1877F2; }
.social-box-dark a:hover i.fa-instagram { color: #E1306C; }
.social-box-dark a:hover i.fa-tiktok { color: white; text-shadow: 0 0 5px white; }
.social-box-dark a:hover i.fa-youtube { color: #FF0000; }

/* ========================
   STILE POPUP COOKIES
   ======================== */
.cookie-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Più scuro */
    z-index: 9999; justify-content: center; align-items: center; padding: 20px;
}
.cookie-popup-box {
    background-color: #111; color: white; max-width: 450px; padding: 30px;
    border-radius: 15px; border: 2px solid #f1c40f; text-align: center;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.1);
}
.cookie-popup-box h3 { margin-bottom: 15px; color: #f1c40f; text-transform: uppercase; border: none; }
.cookie-popup-box p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 25px; color: #ccc; }
.btn-accept {
    background-color: #f1c40f; color: black; border: none; padding: 12px 30px;
    font-weight: bold; font-size: 1rem; cursor: pointer; border-radius: 50px; 
    transition: 0.3s; width: 100%; margin-bottom: 15px;
}
.btn-accept:hover { background-color: white; transform: scale(1.05); }
.link-privacy { color: #888; font-size: 0.85rem; text-decoration: underline; }
.link-privacy:hover { color: white; }

/* FOOTER CENTRATO */
footer { 
    background-color: #050505; 
    color: #555; 
    padding: 40px 20px; 
    margin-top: 50px; 
    border-top: 1px solid #111;
    
    /* QUESTE RIGHE FANNO LA MAGIA DEL CENTRAMENTO */
    display: flex;
    flex-direction: column; /* Mette gli elementi uno sotto l'altro */
    justify-content: center; /* Centra verticalmente */
    align-items: center;    /* Centra orizzontalmente TUTTO */
    text-align: center;     /* Centra il testo all'interno dei paragrafi */
}

footer a { color: #777; text-decoration: none; }
footer a:hover { color: white; }
/* ===========================
   MOBILE (Cellulari)
   =========================== */
@media (max-width: 768px) {
    
    /* MENU MOBILE */
    .menu-container { justify-content: flex-end; padding-right: 20px; }
    .menu-icon { display: flex; }
    .menu-list {
        display: none; position: absolute; top: 60px; left: 0; width: 100%;
        background-color: rgba(0, 0, 0, 0.95); flex-direction: column;
        text-align: center; padding: 20px 0; border-bottom: 2px solid #f1c40f;
    }
    .menu-list.show { display: flex; }
    .menu-list li { display: block; margin: 15px 0; border: none; }
    .menu-list li a { font-size: 1.2rem; }

    /* HOME MOBILE */
    .home-page .hero-section {
        background-image: url('img/homeimg.png');
        background-size: contain; background-repeat: no-repeat;
        background-position: center center;
        background-color: #000000;
        min-height: 100vh;
    }
    .home-page .overlay {
        padding-top: 70px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 20%);
        justify-content: flex-start;
    }
    .main-title { font-size: 2rem; margin-bottom: 10px; }
    #countdown { gap: 5px; }
    .time-box { min-width: 50px; padding: 5px; }
    .time-box span { font-size: 1.2rem; }

    /* SOCIAL MOBILE */
    .social-box { margin-top: 15px; gap: 25px; margin-bottom: 10px; }
    .social-box a i { font-size: 2.2rem; }
}