/* Homepage inline styles - Extracted for better caching */

/* Banner titles */
.bnrSubTitle {
    font-size: 30px;
}

.BnrMainTitle {
    font-size: 60px;
}

/* WooCommerce required fields */
.woocommerce form .form-row .required {
    visibility: visible;
}

/* Active menu item */
.site-menu-inner li.active a {
    background-image: linear-gradient(rgb(255 21 4), rgb(255 0 0));
    color: #ff0000;
}

/* Google Translate widget hide */
#goog-gt-tt {
    display: none !important;
}

/* Login button */
.LoginContainer a {
    background: red;
    padding: 15px 30px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Language select */
select#languageSelect {
    background: white;
    padding: 6px 20px;
    color: #060606;
    border: none;
    width: 120px;
}

/* Mobile responsive */
@media (max-width:767px) {
    .custom-select-wrapper {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .buttonfindcarsearch button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .commonconatctlinkSection {
        padding: 0px 20px 0px 20px;
    }

    .site-logo img {
        width: 100% !important;
    }

    .leftheaderelement {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .LoginContainer {
        margin-left: 30px;
        display: none !important;
        align-items: center;
    }
}

/* Topbar dropdown */
.topbar-dropdown a {
    display: flex;
    align-items: center;
}

.topbar-dropdown a img {
    width: 25px;
    margin-right: 10px !important;
}

/* Login container */
.LoginContainer {
    margin-left: 30px;
    display: flex;
    align-items: center;
    width: 100%;
}

.LoginContainer a {
    background: red;
    padding: 10px 18px;
    border-radius: 50px;
    color: #fff !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Adjust container width for larger screens */
@media (min-width: 1400px) {
    .LoginContainer {
        width: 100% !important;
    }
}

@media (min-width: 1600px) {
    .LoginContainer {
        width: 100% !important;
    }
}

@media (min-width: 1800px) {
    .LoginContainer {
        width: 100% !important;
    }
}

@media (min-width: 2000px) {
    .LoginContainer {
        width: 100% !important;
    }
}

@media (min-width: 2200px) {
    .LoginContainer {
        width: 100% !important;
    }
}

@media (min-width: 2400px) {
    .LoginContainer {
        width: 100% !important;
    }
}

/* Right header elements */
.rightheaderelements {
    display: flex;
    justify-content: flex-end;
    flex: 0 1 auto !important;
    min-width: fit-content !important;
}

.rightheaderlogin {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Custom dropdown */
.custom-dropdown1 {
    width: 120px;
    display: flex;
    margin: 0px;
    padding: 0px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: white;
    position: relative;
}

.custom-dropdown1::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

/* Cookie popup */
#cookie-popup {
    z-index: 20000;
    position: fixed;
    bottom: 0px;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#accept-cookies {
    background: #ff0000;
    padding: 8px 30px;
    border-radius: 4px;
    font-size: 16px;
}

#decline-cookies {
    background: #83838326;
    padding: 8px 30px !important;
    border-radius: 4px;
    font-size: 16px;
    color: #000;
}

#cookie-popup p {
    color: #000;
    font-size: 17px;
    font-weight: 500;
}

/* GDPR cookie message */
#gdpr-cookie-message h4 {
    color: #ff0f0f !important;
}

#gdpr-cookie-message a {
    color: #ff0f0f !important;
}

#gdpr-cookie-message button,
button#ihavecookiesBtn {
    background: #ff0f0f !important;
}

button#gdpr-cookie-advanced {
    background: white !important;
    color: #ff0f0f !important;
}

/* ========================================
   🎯 FIX TOPBAR COMPACT: Schermi medi 768px-1200px
   Riduce dimensioni header per evitare overflow del login button
   ======================================== */

@media (min-width: 768px) and (max-width: 1200px) {
    /* Header padding ridotto */
    .site-header {
        padding: 12px 15px !important;
    }

    /* Logo più piccolo */
    .site-logo img {
        max-height: 45px !important;
        width: auto !important;
    }

    /* Menu items compatti */
    .site-menu-inner {
        gap: 6px !important;
    }

    .site-menu-inner li a {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    /* Language selector: solo bandiera, no testo */
    .custom-dropdown1 {
        width: auto !important;
        min-width: unset !important;
        padding: 4px 8px !important;
    }

    .language-name {
        display: none !important;
    }

    /* Login button compatto - PRIORITÀ MASSIMA */
    .LoginContainer a {
        padding: 6px 12px !important;
        font-size: 11px !important;
        margin-left: 6px !important;
    }

    /* Container login - ridotto margine */
    .LoginContainer {
        margin-left: 10px !important;
    }

    /* Right header gap ridotto */
    .rightheaderlogin {
        gap: 6px !important;
    }
}

/* Schermi ancora più piccoli: ultra-compatto */
@media (min-width: 768px) and (max-width: 992px) {
    .site-header {
        padding: 10px 12px !important;
    }

    .site-logo img {
        max-height: 40px !important;
    }

    .site-menu-inner {
        gap: 4px !important;
    }

    .site-menu-inner li a {
        font-size: 10px !important;
        padding: 5px 6px !important;
    }

    .LoginContainer a {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }

    .LoginContainer {
        margin-left: 8px !important;
    }
}
