/* ==========================================================================
   CRM AUTOMOTIVE - CUSTOM CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT & TIPOGRAFIA
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

body, h1, h2, h3, h4, h5, input, select, textarea, button, .menu-custom, .text-custom, .subsubtitle-custom, .subtitle-custom, .title-custom {
    font-family: 'Baloo 2', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

input, select, textarea {
    border-radius: 10px !important;
}

/* --------------------------------------------------------------------------
   2. COLORI AZIENDALI CRM AUTOMOTIVE & PULSANTI
   -------------------------------------------------------------------------- */
/* Elementi primari (#002060 Navy CRM) */
.button-custom-color,
.custom-bg-color-01,
.allegato,
.dettaglio-noleggio .buttons-container a.button-mensilita.active,
.durataFinanziamento .item.active .dot {
    background-color: #002060 !important;
    color: #ffffff !important;
}

.button-custom-color:hover,
.ButtonRule:hover {
    background-color: #0f75bc !important;
}

.custom-font-color,
.open-permuta > * {
    color: #002060 !important;
}

/* Pulsante secondario ("Richiedi una vettura") */
.button-custom-gray,
a.button-custom-gray {
    background-color: #e8820c !important;
    color: #ffffff !important;
}

.button-custom-gray:hover,
a.button-custom-gray:hover {
    background-color: #ffcc00 !important;
    color: #ffffff !important;
}

.ButtonRule.Button-Style-01 {
    color: #ffffff !important;
}

/* Prezzi arancioni in evidenza (#ff7700) come su crmautomotive.net */
.title-custom2.tipologia.custom-font-color,
.prezzi-top .title-custom,
.prezzolista {
    color: #ff7700 !important;
    font-weight: 700 !important;
}

/* Stella preferiti (oro/ambra) */
.fa-star:before,
.starcolor,
.preferiti i {
    color: #e8a200 !important;
}

/* Pulsanti con smussatura leggera (6px) */
.ButtonRule,
.Button-Style-01,
.button,
.scrollToTopBtn {
    border-radius: 10px !important;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease !important;
}

/* Scroll To Top */
.scrollToTopBtn {
    background-color: #002060 !important;
    color: #ffffff !important;
}

.scrollToTopBtn:hover {
    background-color: #0f75bc !important;
}

/* --------------------------------------------------------------------------
   3. HEADER & MENU (Design pulito e coordinato a crmautomotive.net)
   -------------------------------------------------------------------------- */
.Carousel-01 {
    margin-top: -70px!important;
}


.header {
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.headeralto {
    margin-bottom: 1px !important;
}

.misurelogo {
    max-height: 50px !important;
    margin-top: 0 !important;
    object-fit: contain !important;
}

.menu-custom {
    top: 8px!important;
    min-height: 70px!important;
    border: 1px solid #ddd!important;
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(0, 32, 96, 0.08) !important;    
    transition: all 0.3s ease !important;
}

.bottom-menu {
    font-family: 'Baloo 2', 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    color: #002060 !important;
    max-width: 1600px!important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.bottom-menu a,
.bottom-menu .opensub-lista {
    color: #002060 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

.bottom-menu a:hover,
.bottom-menu .opensub-lista:hover {
    color: #0f75bc !important;
}

/* Tendine a comparsa (Parco Auto & Noleggio) */
.sub .submenu-lista,
.bottom-menu .submenu {
    background-color: #ffffff !important;
    border: 1px solid #edf1f5 !important;
    border-top: 3px solid #0f75bc !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 25px rgba(0, 32, 96, 0.09) !important;
    padding: 8px 0 !important;
    top: 100% !important;
    margin-top: 0 !important;
}

.sub .submenu-lista a,
.bottom-menu .submenu a {
    font-family: 'Baloo 2', 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #0c2b4a !important;
    padding: 8px 16px !important;
    margin: 2px 8px !important;
    border-radius: 5px !important;
    transition: all 0.18s ease !important;
}

.sub .submenu-lista a:hover,
.bottom-menu .submenu a:hover {
    background-color: #f0f4f9 !important;
    color: #0f75bc !important;
}

.sub {
    position: relative !important;
    cursor: pointer !important;
}

.opensub-lista {
    cursor: pointer !important;
    user-select: none !important;
}

.sub .submenu-lista::before,
.bottom-menu .submenu::before {
    content: "" !important;
    position: absolute !important;
    top: -12px !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    background: transparent !important;
}

.sub:hover .submenu-lista,
.sub:focus-within .submenu-lista,
.sub.open .submenu-lista,
.sub.active .submenu-lista {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Icona Hamburger */
.hamburger-menu {
    background: transparent !important;
    border-radius: 10px !important;
    padding: 6px !important;
}

.hamburger-menu img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(82%) saturate(2758%) hue-rotate(216deg) brightness(88%) contrast(108%);
}

/* --------------------------------------------------------------------------
   4. BOX RICERCA & FILTRI
   -------------------------------------------------------------------------- */
.tipologiasrch .item.active {
    background-color: #002060 !important;
    color: #ffffff !important;
}

.tipologiasrch .item:hover {
    background-color: #0f75bc !important;
    color: #ffffff !important;
}

.search .cont-search .section-search .selector select,
.selector select,
#Ordinamento {
    border-radius: 10px !important;
    border: 1px solid #ced4da !important;
    padding: 0 12px !important;
    color: #333333 !important;
    background-color: #ffffff !important;
}

.search .cont-search .section-search .selector select:focus,
.selector select:focus {
    border-color: #0f75bc !important;
    outline: none !important;
}

.search .cont-search .section-search .section_carrozzerie .carrozzeria {
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.search .cont-search .section-search .section_carrozzerie .carrozzeria.active span {
    color: #002060 !important;
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   5. CARD VEICOLI IN VETRINA & LISTE (/Veicoli)
   -------------------------------------------------------------------------- */
.Showcase01 .item,
.Lista .item,
.item.veicoli,
.Lista_assistenza .item_assistenza {
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    overflow: hidden !important;
}

.Showcase01 .item:hover,
.Lista .item:hover,
.item.veicoli:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Barra dati tecnici auto */
.datibottom {
    background-color: #002060 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Titoli modelli */
.tipologia.Font-bold.subsubtitle-custom {
    color: #0c2b4a !important;
    font-size: 17px !important;
}

/* Badge Nuovo / Usato */
span.tipologia.Text-Transform-Uppercase {
    border-radius: 4px !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
}

/* --------------------------------------------------------------------------
   6. OCCASIONI, PROMOZIONI & ALTRE SEZIONI
   -------------------------------------------------------------------------- */
.Showcase02 .item,
.Lista .promo_colour {
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.title-custom-promo {
    color: #002060 !important;
}

.tipologiaPromo {
    border-radius: 20px;
    left: 29%;
    padding: 7px 40px;
}

.pulsanteServizi,
.pulsanteServiziLink {
    background-color: #ffffff !important;
}

.pulsanteServiziLink {
    margin-bottom: 10px;
}

.socialbar {
    border-radius: 10px !important;
}

.socialbar i {
    font-size: 30px;
    margin: 2px 9px;
}

.caption {
    top: 48% !important;
}

.caption .ButtonRule {
    background-color: #002060 !important;
}

.d_flx.team .flx_itm img {
    border-color: #002060 !important;
}

.dicono .item .content {
    box-shadow: 0px 0px 10px -4px rgb(0 0 0 / 25%) !important;
}

.dicono .item .icongrey {
    height: 70px !important;
    width: 70px !important;
}

/* --------------------------------------------------------------------------
   7. DETTAGLI VEICOLO, NOLEGGIO & FOOTER
   -------------------------------------------------------------------------- */
.first_data {
    background: none !important;
}

.first_data .central_data h1 {
    color: #002060 !important;
}

.first_data .central_data .allestimento {
border-bottom: none !important;
}

.list .item .image .data {
    background-color: #ffffff !important;
}

.list .item .title b,
.dettaglio-noleggio .data span b {
    color: #0f75bc !important;
}

.dettaglio-noleggio .tab-panel .tabs .tab.active {
    color: #0f75bc !important;
}

.flexbox-datiauto .dati-auto-top i.fas {
    color: #0f75bc !important;
}

.flexbox-datiauto .dati-auto-top {
    width: 50%;
}

.contact div {
    flex-basis: 45%;
}

.contact2 div {
    flex-basis: 49% !important;
}

.Section-About-Home > .text_column {
    column-count: 1;
}

.scrollToTopBtn {
    background-color: #0f75bc !important;
}

.footer .Font-Bold.subtitle-custom strong {
    color: #002060 !important;
}

.footer-data a:hover {
    color: #0f75bc !important;
}

/* 1. Sfondo generale del footer */
.footer {
    background-color: #002060 !important;
    border-top: none !important;
}

/* 2. Corpo Principale (#002060 Deep Navy + Ombra interna del .net) */
.container_footer {
    background-color: #002060 !important;
    box-shadow: inset 0px 8px 20px -8px rgba(0, 0, 0, 0.45) !important;
    padding: 30px 15px 25px 15px !important;
    color: #ffffff !important;
}

/* Titolo "CRM AUTOMOTIVE" in bianco */
.container_footer .Font-Bold.subtitle-custom strong,
.container_footer .subtitle-custom strong,
.footer .Font-Bold.subtitle-custom strong {
    color: #ffffff !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Testi, indirizzo, telefono, email e P.IVA in chiaro */
.container_footer .footer-data,
.container_footer .text-custom,
.container_footer .grey,
.container_footer p,
.container_footer span,
.container_footer div {
    color: #e2e8f0 !important;
    line-height: 1.6 !important;
}

/* Link contatti, privacy e preferenze cookie in bianco con hover dorato del .net */
.container_footer .footer-data a {
    color: #ffffff !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.container_footer .footer-data a:hover {
    color: #ffc42e !important;
}

.container_footer a strong {
    color: #ffffff !important;
}

/* Riga divisoria e loghi credits (IBI e Quattroruote Pro) resi bianchi */
.credits {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 15px !important;
    margin-top: 20px !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.credits img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
}

/* 3. Fascia Menu Orizzontale (#0F75BC Royal Blue del .net) */
.bottom-footer {
    background-color: #0F75BC !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 10px 0 !important;
}

.menu-custom-footer a,
.bottom-footer a {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    opacity: 0.95 !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.menu-custom-footer a:hover,
.bottom-footer a:hover {
    color: #ffc42e !important;
    opacity: 1 !important;
}

.bottom-footer .preferiti i {
    color: #ffc42e !important;
}

.build-01 {
    padding: 30px 30px;
}

.build-01 .container .leftbar,
.build-01 .container .centerbar {
    padding: 0;
}


.bkg_img {
    background-image: none!important;
}

.custom-font-color.Font-bold.title-custom > del {
    font-weight: 400 !important;
    color: #8a919c !important;
}

.flexbox-datiauto .dati-auto-top strong {
    color: #0c2b4a !important;
}
/* Pulsante Permuta */
.open-permuta.button {
    border-radius: 10px !important;
    border: 1px solid #002060 !important;
    color: #002060 !important;
    font-weight: 600 !important;
}

.open-permuta.button:hover {
    background-color: #002060 !important;
    color: #ffffff !important;
}

/* Icone Social & Contatti (Navy #002060) */
.fa-phone-square:before,
.fa-envelope-square:before,
.fa-map-marked-alt:before,
.fa-facebook:before,
.fa-print:before,
.fa-twitter:before,
.fa-facebook-f:before,
.fa-instagram-square:before,
.fa-whatsapp-square:before {
    color: #002060 !important;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE & MOBILE (Media Queries Unificate)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .menu-bar-mobile {
        background-color: #ffffff !important;
        padding: 16px!important;
        box-shadow: 0 8px 30px rgba(0, 32, 96, 0.08) !important;
        height: auto !important;
        top: 10px!important;
        width: calc(100% - 60px)!important;
        border: 1px solid #ddd!important;
        border-radius: 10px!important;
        margin: auto!important;
    }

    .menu-bar-mobile a img {
        margin: 0;
        justify-content: center;
        height: 100%;
        max-height: 50px!important;
    }

    .submenu-header {
        height: 100%;
        background-color: #ffffff !important;
    }

    .submenu-header-a {
        color: #002060 !important;
        font-family: 'Baloo 2', 'Poppins', sans-serif !important;
    }

    .dicono .item .content .text.rules {
        width: auto !important;
    }
}

@media (max-width: 815px) {
    .head_space {
        height: 3px;
    }

    .flexbox-datiauto .dati-auto-top {
        width: 80%;
    }
}