/* =========================================
   Override Bulma - Tema Scuro & Giallo
   ========================================= */
:root {
    /* Palette Colori: Nero, Grigi, Giallo */
    --body-bg: #121212;
    --card-bg: #1a1a1a;
    --text-main: #cccccc;
    --text-title: #ffffff;
    --accent: #ffdd00; /* Giallo principale */
    --border-color: #404040;
}

body {
    font-family: 'Karla', sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: var(--body-bg);
    color: var(--text-main);
}

main {
    flex: 1;
}

/* Titoli e Testi */
.title, .subtitle strong, strong {
    color: var(--text-title) !important;
}
.subtitle {
    color: var(--text-main) !important;
}

/* Navbar Generica */
.navbar.is-white {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color);
}
/* Voci di menu SEMPRE GIALLE */
.navbar-item, .navbar-link {
    color: var(--accent) !important; 
}
/* Voci di menu BIANCHE al passaggio del mouse */
.navbar-item:hover, .navbar-link:hover {
    background-color: transparent !important;
    color: var(--text-title) !important; 
}

/* =========================================
   Fix Mobile Navbar (Bulma)
   ========================================= */
/* Icona Menu Mobile (Hamburger) - Forza il colore delle lineette */
.navbar-burger {
    color: var(--accent) !important;
}
.navbar-burger span {
    background-color: var(--accent) !important;
}
.navbar-burger:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.navbar-burger:hover span {
    background-color: var(--text-title) !important;
}

/* Sfondo scuro del menu a tendina su dispositivi mobili */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--card-bg) !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.5) !important;
    }
    /* Sfondo al passaggio del dito/mouse nel menu mobile */
    .navbar-item:hover, .navbar-link:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
}

/* Colori di sfondo sezioni */
.has-background-light {
    background-color: var(--card-bg) !important;
}
.has-background-white-ter {
    background-color: var(--body-bg) !important; 
}

/* Divisori Generici */
.has-background-grey-lighter {
    background-color: var(--border-color) !important;
}

/* Links generici */
a.has-text-link {
    color: var(--accent) !important;
}
a.has-text-link:hover {
    text-decoration: underline;
    color: #ffd000 !important;
}

/* Footer */
.footer.has-background-dark {
    background-color: #0a0a0a !important;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
}

/* =========================================
   Slider (Splide.js)
   ========================================= */
.hero-slider {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.splide__slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}
/* Colore frecce e pallini Slider */
.splide__arrow svg {
    fill: var(--accent) !important;
}
.splide__pagination__page.is-active {
    background: var(--accent) !important;
}

/* =========================================
   Statistiche Animate
   ========================================= */
.stat-number {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    color: var(--accent) !important; /* Forza il giallo sui numeri */
}
.stat-number.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Sezione Contatti (Design Specifico)
   ========================================= */
.contact-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.contact-info i {
    color: var(--accent); /* Icone Gialle */
    margin-right: 0.8rem;
}
/* Linee divisorie gialle nella sezione contatti */
hr.contact-divider {
    background-color: var(--accent);
    height: 2px;
    border: none;
    margin: 1.5rem 0;
}

/* Fix Mappa per non farla schiacciare */
.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 350px; /* Altezza minima garantita */
    border-radius: 8px;
    overflow: hidden;
}
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
}

/* =========================================
   Cookie Banner Custom
   ========================================= */
#cookie-tech-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-radius: 0;
    margin-bottom: 0;
    display: none; /* Nasconde il banner di default, JS lo mostra se serve */
    align-items: center;
    justify-content: space-between;
}


.sfondochiaro
{
    background-color: #1a1a1a;
    
}

/* =========================================
   Bottoni Custom (Brand Yellow)
   ========================================= */
.button.is-warning {
    background-color: var(--accent) !important; /* Usa il tuo #ffdd00 */
    color: var(--body-bg) !important; /* Testo nero/scuro per contrasto */
    border-color: transparent !important;
    transition: all 0.3s ease;
}

.button.is-warning:hover {
    background-color: #e6c700 !important; /* Un giallo appena più scuro al passaggio del mouse */
    color: var(--body-bg) !important;
    transform: translateY(-2px); /* Piccolo e gradevole effetto di sollevamento */
}