/* GENIUSKEY ENERGY - LUXURY TECH STYLE
    Sviluppato per un'esperienza One-Page modulare
*/

:root {
    --neon-yellow: #ffea00;
    --dark-pure: #050505;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET E BASE */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Evita che la navbar copra l'inizio delle sezioni */
}

body {
    background-color: var(--dark-pure);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* NAVBAR LUXURY */
.navbar {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(20px);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--neon-yellow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    color: rgba(255,255,255,0.8) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 10%;
    background-color: var(--neon-yellow);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--neon-yellow) !important;
}

/* PULSANTE NAV SPECIFICO */
.btn-nav-yellow {
    background: var(--neon-yellow);
    color: #000 !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 8px 20px !important;
    transition: var(--transition-fast);
    border: none;
}

.btn-nav-yellow:hover {
    box-shadow: 0 0 20px var(--neon-yellow);
    transform: translateY(-2px);
    background: #ffffff; /* Bianco per contrasto massimo */
}

/* SEZIONI E SFONDI */
.hero-bg {
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,1)), url('/static/img/sff2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.portal-section {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('/static/img/sff.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effetto Parallasse */
    padding: 120px 0;
}

/* COMPONENTI GLASS */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition-slow);
}

.glass-card:hover {
    border-color: var(--neon-yellow);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.border-neon-soft {
    border: 1px solid rgba(255, 234, 0, 0.3);
}

/* PULSANTI NEON GRANDI */
.btn-neon-large {
    background: var(--neon-yellow);
    color: #000 !important;
    font-weight: 800;
    border-radius: 50px;
    padding: 18px 45px;
    border: none;
    box-shadow: 0 0 25px rgba(255, 234, 0, 0.3);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon-large:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--neon-yellow);
    background: #ffffff !important; /* Risolve il problema della scomparsa */
    color: #000 !important;
}

.btn-outline-glass {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 18px 45px;
    transition: var(--transition-fast);
}

.btn-outline-glass:hover {
    background: #fff;
    color: #000;
}

/* TIPOGRAFIA E EFFETTI */
.text-neon {
    color: var(--neon-yellow);
    text-shadow: 0 0 15px rgba(255, 234, 0, 0.4);
}

.shadow-neon {
    filter: drop-shadow(0 0 12px var(--neon-yellow));
}

p.text-secondary {
    color: #a0a0a0 !important;
    line-height: 1.8;
}

.fw-800 { font-weight: 800; }

/* INPUT FORM */
.custom-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition-fast);
}

.custom-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--neon-yellow);
    box-shadow: none;
    color: #fff;
}

/* FOOTER SLIM */
.footer-slim {
    background: #000;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 234, 0, 0.1);
}

.extra-small {
    font-size: 0.7rem;
    color: #777;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* ANIMAZIONI */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s forwards;
}

/* Bottone Prenota in Navbar più sottile */
.btn-nav-yellow-slim {
    background: transparent;
    color: var(--neon-yellow) !important;
    border: 1px solid var(--neon-yellow);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 15px !important;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-nav-yellow-slim:hover {
    background: var(--neon-yellow);
    color: #000 !important;
    box-shadow: 0 0 15px var(--neon-yellow);
}

/* Tabella Orari */
.hours-box {
    border-left: 3px solid var(--neon-yellow) !important;
    border-radius: 10px !important;
}

.extra-small {
    font-size: 0.75rem;
}

/* Forza le schede servizi ad essere uguali */
#servizi .glass-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

#servizi .glass-card:hover {
    background: rgba(255, 234, 0, 0.03);
    border-color: var(--neon-yellow);
}

/* Styling Contatori */
.stat-container {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--neon-yellow);
    line-height: 1;
}

/* Review Slider */
.carousel-item {
    padding: 40px 60px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-item p {
    font-style: italic;
    margin-bottom: 15px;
}

/* Effetto Neon Line per separare le sezioni */
.neon-line {
    width: 60px;
    height: 4px;
    background: var(--neon-yellow);
    box-shadow: 0 0 15px var(--neon-yellow);
    margin: 20px auto;
    border-radius: 2px;
}

/* Stile specifico per le schedine recensione */
.review-card {
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 234, 0, 0.05) !important;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 234, 0, 0.02);
    border-color: var(--neon-yellow) !important;
}

.review-card p {
    font-style: italic;
    line-height: 1.6;
}

/* --- OTTIMIZZAZIONI PER MOBILE E LANDSCAPE --- */

/* Gestione orientamento orizzontale (Landscape) su smartphone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-bg {
        padding-top: 100px; /* Spazio per la navbar */
        padding-bottom: 50px;
        min-height: auto; /* Permette lo scroll se il contenuto eccede */
    }
    
    .display-1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-bg .lead {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Footer Minimalista per Mobile */
@media (max-width: 768px) {
    .footer-slim {
        padding: 20px 0;
    }

    /* Nascondiamo i dettagli burocratici su mobile per pulizia */
    .footer-slim p.text-secondary.extra-small {
        display: none; 
    }

    .footer-slim .col-lg-8 {
        margin-bottom: 10px;
    }

    .display-1 {
        font-size: 2.8rem !important;
        line-height: 1.1;
    }

    section {
        padding: 60px 0 !important;
    }
}

/* --- STILI GENERALI --- */
:root {
    --neon-yellow: #ffea00;
    --dark-pure: #050505;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--dark-pure);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.navbar {
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.4s;
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--neon-yellow);
}

.hero-bg {
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,1)), url('/static/img/sff2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: 0.4s;
}

.btn-neon-large {
    background: var(--neon-yellow);
    color: #000 !important;
    font-weight: 800;
    border-radius: 50px;
    padding: 15px 40px;
    border: none;
    box-shadow: 0 0 20px rgba(255, 234, 0, 0.3);
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-neon-large:hover {
    transform: scale(1.05);
    background: #ffffff !important;
    box-shadow: 0 0 40px var(--neon-yellow);
}

.footer-slim {
    background: #000;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 234, 0, 0.1);
}

.text-neon { color: var(--neon-yellow); }
.extra-small { font-size: 0.75rem; }