/* --- NEW HEADER (BLACK) --- */
.site-header-white {
    background: #000000;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
    /* Subtle white glow or standard shadow */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-white .logo img {
    height: 40px;
    filter: invert(0);
    /* Keep original logo if it works on dark, or invert if needed. Usually logo.png is for dark bg */
}

/* Centered Nav */
.main-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav-center ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav-center a {
    color: #fff;
    /* White text */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.main-nav-center a:hover {
    color: #0088FF;
    /* Blue match */
}

/* Header Tools (Right Side) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    color: #fff;
    /* White text */
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-icon {
    position: relative;
    color: #fff;
    /* White icon */
    font-size: 1.2rem;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E10600;
    color: #fff;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Base Mobile Toggle Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
    margin-left: 20px;
    /* Space from tools */
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Toggle Dark (now Light because background is black) */
.mobile-menu-toggle.dark-toggle span {
    background-color: #fff;
}


/* --- NEW HERO SECTION --- */
.hero-section-new {
    position: relative;
    height: 100vh;
    /* Full screen */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    /* For fixed header */
    overflow: hidden;
}

.hero-section-new .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content-new {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-tag {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: #E10600;
    /* Keep a hint of red for branding or change to blue if strictly requested */
    vertical-align: middle;
    margin-right: 10px;
}

.hero-title {
    font-family: 'Titillium Web', sans-serif;
    /* Or generic heavy sans */
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero-blue {
    background-color: #E10600;
    /* Changed to RED because reference showed red, user asked for blue... wait logic check */
    /* USER REQUEST: "usando invece del rosso il blu" -> OK BLUE */
    background-color: #0056b3;
    /* VIBRANT BLUE */
    color: #fff;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}



.btn-hero-blue:hover {
    background-color: #004499;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.6);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
    line-height: 1;
    margin-left: 10px;
}

.nav-btn-item {
    display: flex;
    align-items: center;
}

/* --- HERO INFO BAR (BOTTOM) --- */
.hero-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    z-index: 4;
    padding: 25px 0;
    color: #fff;
}

.info-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-value {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.info-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.info-contact span {
    font-size: 0.9rem;
    color: #999;
}

.info-contact strong {
    font-size: 1.2rem;
    color: #fff;
}

/* --- TOP BAR (RESTORED) --- */
.top-bar {
    background-color: #050505;
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    gap: 20px;
}

.top-contact-item {
    color: #aeaeae;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.3s;
}

.top-contact-item:hover {
    color: #fff;
}

.top-contact-item i {
    color: var(--color-primary);
}

.top-right {
    display: flex;
    align-items: center;
}

.top-partner-link {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.top-partner-link:hover {
    background: var(--color-primary);
}

/* Header Position Override - INCREASE Z-INDEX to be above overlay */
.site-header-white {
    background: #000 !important;
    position: sticky;
    top: 0;
    z-index: 3000 !important;
    /* Ensure header (and toggle btn) stays above overlay */
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .main-nav-center {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    /* Info bar styles (even if unused in HTML) */
    .info-bar-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .info-contact {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .top-left {
        display: none;
        /* Hide contacts on mobile if too crowded */
    }

    .top-bar .container {
        justify-content: center;
        /* Center partner link */
    }
}

/* --- MOBILE MENU OVERLAY FIX --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Use vh for full viewport */
    background: rgba(0, 0, 0, 0.98);
    /* Less transparency */
    z-index: 2000;
    display: none;
    /* CRITICAL: Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-top: 60px;
    /* clear header */
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-overlay nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu-overlay nav ul li {
    margin: 20px 0;
}

.mobile-menu-overlay nav a {
    color: #fff;
    font-family: 'Titillium Web', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-menu-overlay nav a:hover {
    color: var(--color-primary, #0056b3);
}

/* FIX: Responsive Typography for Hero Titles on Mobile */
@media (max-width: 768px) {

    h1.force-white,
    .news-hero-content h1,
    .section-title h2 {
        font-size: 2rem !important;
        /* Reduce from 3rem or larger */
        line-height: 1.2;
        word-wrap: break-word;
        word-break: break-word;
        /* Safer breakage */
        hyphens: auto;
    }

    /* Improve padding for fixed header overlap on detail pages */
    .news-detail-hero,
    .incentive-hero {
        padding-top: 80px;
        /* Add extra breathing room from top */
        align-items: center;
        /* Center content vertically if needed */
    }

    .news-detail-hero {
        height: auto;
        min-height: 60vh;
    }
}

/* Style for Partner Button in Mobile Menu */
.mobile-menu-overlay nav a[href*="sponsor-login"] {
    background: #0088FF;
    /* Primary Racing Blue */
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.5rem;
    /* Slightly smaller than main links */
    margin-top: 15px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.4);
}