/* ==========================================================================
   HD RADIO DINER - STILE GENERALE (Unito & Aggiornato)
   ========================================================================== */

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* ==========================================
   SFONDO PERSONALIZZATO DEL SITO
   ========================================== */
body {
    background-image: url('sfondo.jpg'); 
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;    
    background-attachment: fixed;    
}

/* EFFETTO VETRO SFOCATO PER LE SEZIONI */
.page-section {
    background-color: rgba(26, 26, 30, 0.85) !important; 
    padding: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(6px) !important; 
}

/* ==========================================================================
   HEADER & NAVIGAZIONE
   ========================================================================= */

header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 40px; 
    background-color: #1a1a1e; 
    border-bottom: 2px solid #ff3b30; 
}

/* Forza tutti i link e la tendina a stare sulla stessa linea orizzontale */
nav {
    display: flex;
    align-items: center;
    gap: 25px; 
}

nav a { 
    color: #a8a8b3; 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active { 
    color: #ffffff; 
    border-bottom: 2px solid #ff3b30; 
}

/* ==========================================================================
   SICUREZZA PER IL PULSANTE LINGUA 
   ========================================================================== */
.lang-dropdown {
    position: relative !important;
    display: inline-block !important;
    margin-left: 20px !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.lang-dropdown .lang-btn {
    background-color: #ff3b30 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 18px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    transition: 0.2s !important;
}

.lang-dropdown .lang-btn:hover {
    background-color: #e03228 !important;
    transform: scale(1.05) !important;
}

.lang-dropdown .lang-btn::after {
    content: ' ▼' !important;
    font-size: 0.7rem !important;
    color: #ffffff !important;
}

.lang-dropdown .lang-content {
    display: none !important; 
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    background-color: #1a1a1e !important;
    min-width: 160px !important;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid #29292e !important;
    border-radius: 8px !important;
    z-index: 9999 !important;
    margin-top: 8px !important;
    overflow: hidden !important;
}

.lang-dropdown.open .lang-content {
    display: block !important;
}

.lang-dropdown .lang-content a {
    color: #ffffff !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.lang-dropdown .lang-content a:hover {
    background-color: #29292e !important;
    color: #ff3b30 !important;
}

.flag-img {
    width: 20px !important;
    height: 14px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    display: inline-block !important;
}

/* ==========================================================================
   MAIN CONTENT & SEZIONI
   ========================================================================== */

main { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.page-section { display: none; }

.page-section.active { 
    display: block; 
    animation: fadeIn 0.5s; 
}

h2 { font-size: 2rem; margin-bottom: 20px; color: #ffffff; }
p { font-size: 1.1rem; line-height: 1.6; color: #c4c4cc; }

/* ==========================================
   NUOVO LAYOUT HOME: RAGAZZE E SCRITTE IN ALTO, PLAYER IN BASSO A DESTRA
   ========================================== */
#home.page-section {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Contenitore in alto: Ragazze e Testo al centro */
.promo-diner-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
}

.pinup-side { flex-shrink: 0 !important; }

.roller-girl {
    height: 190px !important;
    width: auto !important;
    display: block !important;
    filter: drop-shadow(0px 8px 16px rgba(0,0,0,0.7)) !important;
}

.roller-girl.flipped { transform: scaleX(-1) !important; }

.promo-diner-text { flex: 1 !important; }

.red-vintage-title {
    color: #ff3b30 !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin: 0 0 12px 0 !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1) !important;
    line-height: 1.2 !important;
}

.sub-title-vintage {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1) !important;
}

.languages-vintage {
    color: #ff3b30 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    margin: 0 !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1) !important;
}

/* Contenitore in basso a destra per il Player */
.home-bottom-right {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

/* ==========================================
   SCHEDA PLAYER STILE VINTAGE RADIO
   ========================================== */
.vintage-player-card {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6) !important;
    overflow: hidden !important;
    color: #1a1a1e !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 420px !important; /* Limita la larghezza del player */
}

.player-card-header {
    background-color: #ff3b30 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    padding: 8px 15px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.player-card-body {
    display: flex !important;
    align-items: center !important;
    padding: 20px !important;
    gap: 15px !important;
    border-bottom: 1px solid #f0f0f4 !important;
}

.player-album-cover {
    width: 70px !important;
    height: 70px !important;
    background-color: #f0f0f4 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: 1px solid #e2e2e6 !important;
}

.player-album-cover img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.player-info-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
}

.player-current-track {
    font-size: 1.05rem !important;
    font-weight: bold !important;
    color: #1a1a1e !important;
    line-height: 1.3 !important;
}

.card-circle-play {
    background-color: #ff3b30 !important;
    color: #ffffff !important;
    border: none !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.2s ease !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3) !important;
}

.card-circle-play:hover { transform: scale(1.08) !important; background-color: #e03228 !important; }

.player-card-playlist { padding: 15px 20px !important; background-color: #ffffff !important; }

.playlist-title {
    font-size: 0.75rem !important;
    font-weight: bold !important;
    color: #8e8e93 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.playlist-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }

.playlist-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 10px 0 !important;
    border-top: 1px solid #f0f0f4 !important;
    font-size: 0.85rem !important;
}

.song-time { color: #a4a4aa !important; font-weight: bold !important; font-size: 0.8rem !important; min-width: 40px !important; }
.song-details { color: #2c2c30 !important; line-height: 1.3 !important; }

.banner-diner { 
    margin-top: 30px; 
    background: #ff3b30; 
    padding: 20px; 
    text-align: center; 
    font-size: 1.5rem; 
    font-weight: bold; 
    border-radius: 8px; 
}

.programmi li { 
    list-style: none; 
    padding: 15px; 
    background: #1a1a1e; 
    margin-bottom: 10px; 
    border-radius: 6px; 
    border-left: 4px solid #ff3b30; 
}

/* ==========================================================================
   SEZIONE CONTATTI & NUOVO MODULO
   ========================================================================== */

.contact-container { max-width: 480px; margin: 30px auto 0 auto; }

.btn-whatsapp { 
    display: block; 
    margin-top: 20px; 
    background-color: #25D366; 
    color: white; 
    padding: 12px 24px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 30px; 
    text-align: center;
    transition: 0.2s ease;
}

.btn-whatsapp:hover { transform: scale(1.02); box-shadow: 0 0 12px rgba(37, 211, 102, 0.3); }

.form-separator { text-align: center; margin: 25px 0; position: relative; }
.form-separator::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background-color: #29292e; z-index: 1; }
.form-separator span { background-color: #0d0d11; padding: 0 15px; color: #666; font-size: 12px; position: relative; z-index: 2; text-transform: uppercase; letter-spacing: 1px; }

.contact-form { background: #1a1a1e; padding: 25px; border-radius: 12px; border: 1px solid #29292e; text-align: left; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #a8a8b3; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; background-color: #121214; border: 1px solid #29292e; border-radius: 6px; color: #ffffff; font-size: 14px; box-sizing: border-box; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { border-color: #ff3b30; box-shadow: 0 0 8px rgba(255, 59, 48, 0.2); outline: none; }

.btn-submit { width: 100%; padding: 12px; background-color: #ff3b30; color: #ffffff; border: none; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; transition: background 0.2s ease, transform 0.1s ease; }
.btn-submit:hover { background-color: #e03228; }
.btn-submit:active { transform: scale(0.98); }

/* ==========================================================================
   FOOTER & AUDIO PLAYER
   ========================================================================== */

footer { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: #1a1a1e; 
    border-top: 2px solid #29292e; 
    padding: 15px 40px; 
    z-index: 999; 
}

.player-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.now-playing { display: flex; flex-direction: column; }
.status { font-size: 0.8rem; color: #ff3b30; font-weight: bold; }
#song-title { font-size: 1.1rem; font-weight: bold; color: #fff; }

.audio-controls { display: flex; align-items: center; gap: 20px; }
.player-button { background: #ff3b30; border: none; color: white; padding: 10px 25px; font-weight: bold; border-radius: 20px; cursor: pointer; transition: 0.2s; }
.player-button:hover { background: #e03228; transform: scale(1.05); }
#volume-slider { cursor: pointer; accent-color: #ff3b30; }

/* Animazioni */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Responsive Cellulari */
@media (max-width: 950px) {
    .promo-diner-container { flex-direction: column !important; gap: 15px !important; }
    .roller-girl { height: 140px !important; margin: 0 auto !important; }
    .home-bottom-right { justify-content: center !important; margin-top: 20px !important; }
}

/* ==========================================
   IMMAGINE ONLINE (SOSTITUISCE IL BANNER ROSSO)
   ========================================== */
.online-badge-container {
    width: 100%;
    text-align: center;     /* Centra l'immagine nella pagina */
    margin-top: 30px;       /* Distanza dal player sopra */
}

.online-badge-img {
    max-width: 100%;        /* Non esce dallo schermo sui cellulari */
    height: auto;           /* Mantiene le proporzioni */
    max-height: 200px;      /* <--- MODIFICA QUESTO PER CAMBIARE LA GRANDEZZA */
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); /* Ombra sul retro */
}

/* ==========================================================================
   OTTIMIZZAZIONE COMPLETA PER TELEFONI (SITO RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. MENU IN ALTO (HEADER): Logo sopra e i link sotto centrati */
    header {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px 10px !important;
        text-align: center !important;
    }

    nav {
        flex-wrap: wrap !important; /* Se i link non ci stanno su una riga, vanno a capo da soli senza rompere la pagina */
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .lang-dropdown {
        margin-left: 0 !important; /* Centra il selettore lingua nei telefoni */
        margin-top: 5px !important;
    }

    /* 2. SCRITTE E RAGAZZE (HOME) */
    .promo-diner-container {
        flex-direction: column !important; /* Ragazza -> Scritte -> Ragazza, tutto in verticale */
        gap: 15px !important;
    }
    .roller-girl {
        height: 110px !important; /* Ragazze leggermente più piccole per non occupare tutto lo schermo */
        margin: 0 auto !important;
    }
    .red-vintage-title {
        font-size: 1.5rem !important; /* Titolo più piccolo e leggibile sul telefono */
    }
    .sub-title-vintage {
        font-size: 1.1rem !important;
    }
    .languages-vintage {
        font-size: 1rem !important;
    }

    /* 3. SCHEDA PLAYER VINTAGE */
    .home-bottom-right {
        justify-content: center !important; /* Centra il player sullo schermo del telefono */
        margin-top: 20px !important;
    }
    .vintage-player-card {
        max-width: 100% !important; /* Si adatta perfettamente alla larghezza del telefono */
    }
    .player-card-body {
        flex-direction: column !important; /* Copertina sopra e titolo/pulsante sotto */
        text-align: center !important;
        gap: 15px !important;
    }
    .player-info-controls {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* 4. MODULO CONTATTI */
    .contact-form {
        padding: 15px !important; /* Meno spazio vuoto ai lati nei telefoni */
    }

    /* 5. PLAYER FISSO IN BASSO (FOOTER) */
    footer {
        padding: 10px 15px !important;
    }
    .player-container {
        flex-direction: column !important; /* Titolo della canzone sopra, comandi audio sotto */
        gap: 8px !important;
        text-align: center !important;
    }
    .audio-controls {
        width: 100% !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    #volume-slider {
        display: none !important; /* Nascondiamo la barra del volume sui telefoni (si usa il tasto laterale del telefono) */
    }

    /* Spazio extra in fondo alla pagina per evitare che il footer copra i contenuti */
    main {
        margin: 20px auto 100px auto !important;
    }
}