﻿/* Topo do site 4.0, grupo G04 (cores do Meu Site), sobre o topo 3 do 6.0:
   faixa fina com os telefones à direita, separados por divisórias; embaixo, barra da cor do menu
   com o logo à esquerda e o menu em maiúsculas à direita, com divisórias */

@media (min-width: 993px) {
    body.layout-modern.header-layout-3 .header3-bar { background: var(--headerBgColor); }

    body.layout-modern.header-layout-3 .header3-inner,
    body.layout-modern.header-layout-3.is-scrolled .header3-inner {
        display: flex;
        justify-content: flex-end;
        align-items: stretch;
        max-width: 960px;
        height: 30px;
        min-height: 30px;
        padding: 0 12px;
        gap: 0;
        font-family: Roboto, sans-serif;
    }

    body.layout-modern.header-layout-3 .header3-logo,
    body.layout-modern.header-layout-3 .header3-horario,
    body.layout-modern.header-layout-3 .header3-endereco { display: none; }

    body.layout-modern.header-layout-3 .header3-fones {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        color: var(--headerColor);
        font-size: 16px;
        font-weight: 500;
        line-height: 30px;
        white-space: nowrap;
    }

    body.layout-modern.header-layout-3 .header3-bar button.header3-fones-btn { display: none; }

    body.layout-modern.header-layout-3 .header3-bar a.header3-fones-btn {
        display: inline-flex;
        flex-direction: row-reverse;
        align-items: center;
        min-height: 0;
        padding: 0 10px;
        background: none;
        border-radius: 0;
        box-shadow: inset -1px 0 0 color-mix(in srgb, var(--headerBgColor), #000 22%);
        color: var(--headerColor);
        font-size: 16px;
        font-weight: 500;
        transform: none;
    }

    body.layout-modern.header-layout-3 .header3-bar a.header3-fones-btn .fa-phone { display: none; }

    body.layout-modern.header-layout-3 .header3-bar .header3-fones-list {
        position: static;
        display: flex;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    body.layout-modern.header-layout-3 .header3-bar .header3-fones-list li {
        display: flex;
        align-items: center;
        padding: 0 10px;
        border: 0;
        background: none;
        box-shadow: inset -1px 0 0 color-mix(in srgb, var(--headerBgColor), #000 22%);
    }

    html body.layout-modern.header-layout-3 .header3-bar .header3-fones-list li,
    html body.layout-modern.header-layout-3 .header3-bar .header3-fones-list a,
    html body.layout-modern.header-layout-3 .header3-bar a.header3-fones-btn { border: 0 !important; border-radius: 0 !important; background: none !important; outline: 0; }

    body.layout-modern.header-layout-3 .header3-bar .header3-fones-list small { display: none; }

    body.layout-modern.header-layout-3 .header3-bar .header3-fones-list a {
        display: inline-flex;
        align-items: center;
        padding: 0;
        color: var(--headerColor);
        font-size: 16px;
        font-weight: 500;
        line-height: 30px;
    }

    body.layout-modern.header-layout-3 .header3-bar .fa-whatsapp { color: #25d366 !important; font-size: 21px; margin-left: 6px !important; }

    /* barra do logo e do menu */
    body.layout-modern.header-layout-3 .site-header,
    body.layout-modern.header-layout-3.is-scrolled .site-header {
        position: relative;
        height: 90px;
        min-height: 90px;
        padding: 0;
        background: var(--menuBgColor) !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    body.layout-modern.header-layout-3 .site-header-inner,
    body.layout-modern.header-layout-3.is-scrolled .site-header-inner {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        max-width: 960px;
        height: 90px;
        min-height: 90px;
        padding: 0 12px;
        gap: 0;
    }

    body.layout-modern.header-layout-3 .site-logo,
    body.layout-modern.header-layout-3.is-scrolled .site-logo {
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        min-width: 0;
        height: 90px;
        margin: 0;
        padding: 0;
        float: none;
        background: none !important;
    }

    body.layout-modern.header-layout-3 .site-logo img,
    body.layout-modern.header-layout-3.is-scrolled .site-logo img {
        width: auto;
        height: auto;
        max-width: 300px;
        max-height: 80px;
        padding: 0;
        object-fit: contain;
    }

    body.layout-modern.header-layout-3 .header3-fones-menu,
    body.layout-modern.header-layout-3 .header-right,
    body.layout-modern.header-layout-3 .menuBusca,
    body.layout-modern.header-layout-3 .themeMenuHeader73,
    body.layout-modern.header-layout-3 .main-navigation > ul > li.telefoneMenuHeader { display: none !important; }

    body.layout-modern.header-layout-3 .navbar,
    body.layout-modern.header-layout-3.is-scrolled .navbar { display: flex; align-items: stretch; flex: 0 0 auto; height: 90px; }

    body.layout-modern.header-layout-3 .main-navigation,
    body.layout-modern.header-layout-3 .main-navigation > ul,
    body.layout-modern.header-layout-3.is-scrolled .main-navigation > ul { display: flex; align-items: stretch; height: 90px; gap: 0; margin: 0; }

    body.layout-modern.header-layout-3 .main-navigation > ul > li { display: block; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a {
        display: block;
        height: 90px;
        padding: 0 11px !important;
        background: none;
        border: 0 !important;
        box-shadow: inset -1px 0 0 color-mix(in srgb, var(--menuBgColor), #000 22%), inset -2px 0 0 color-mix(in srgb, var(--menuBgColor), #fff 7%);
        color: var(--menuColor) !important;
        font-family: Roboto, sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 90px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li:has(> a[href$="/Contato"]) > a { box-shadow: none; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a:hover,
    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li.menu-ativo > a {
        background: none !important;
        color: var(--menuColor) !important;
    }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a:hover { backdrop-filter: brightness(90%); }

    /* ordem e ícones do 4.0: Home, Empresa, Veículos, Financiamento, Venda seu Carro, Contato */
    body.layout-modern.header-layout-3 .main-navigation > ul > li.mobile { display: block !important; order: 1; }
    .main-navigation li:has(> a[href$="/Empresa"]) { order: 2; }
    .main-navigation li:has(> a[href*="/Veiculos"]) { order: 3; }
    .main-navigation li:has(> a[href$="/ZeroKM"]) { order: 3; }
    .main-navigation li:has(> a[href$="/Motos"]) { order: 3; }
    .main-navigation li:has(> a[href$="/Blindados"]) { order: 3; }
    .main-navigation li:has(> a[href$="/Financiamento"]) { order: 4; }
    .main-navigation li:has(> a[href$="/VendaSeuVeiculo"]) { order: 5; }
    .main-navigation li:has(> a[href$="/Contato"]) { order: 7; }
    .main-navigation > ul > li { order: 6; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a::before {
        display: inline-block;
        position: static;
        width: auto;
        height: auto;
        margin-right: 4px;
        background: none;
        color: var(--menuColor);
        font-family: "Font Awesome 6 Free";
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
        opacity: 1;
        transform: none;
    }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a::after { display: none; }

    .main-navigation a[href$="/"]::before { content: "\f015"; }
    .main-navigation a[href*="/Veiculos"]::before,
    .main-navigation a[href$="/ZeroKM"]::before,
    .main-navigation a[href$="/Blindados"]::before,
    .main-navigation a[href$="/VendaSeuVeiculo"]::before { content: "\f1b9"; }
    .main-navigation a[href$="/Motos"]::before { content: "\f21c"; }
    .main-navigation a[href$="/Contato"]::before { content: "\f0e0"; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation a[href$="/Empresa"]::before,
    html body.layout-modern.header-layout-3 .site-header .main-navigation a[href$="/Financiamento"]::before {
        content: "";
        width: 12px;
        height: 12px;
        vertical-align: -1px;
        background: var(--menuColor);
        -webkit-mask: var(--g4Icone) no-repeat center / contain;
        mask: var(--g4Icone) no-repeat center / contain;
    }

    .main-navigation a[href$="/Empresa"] {
        --g4Icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M3 0h10v16H9v-3H7v3H3zM5 2v2h2V2zm4 0v2h2V2zM5 6v2h2V6zm4 0v2h2V6zM5 10v2h2v-2zm4 0v2h2v-2z'/%3E%3C/svg%3E");
    }

    .main-navigation a[href$="/Financiamento"] {
        --g4Icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 2h14v12H1zM2.5 4v1.5H4V4zm3 0v1.5h7V4zm-3 3.25v1.5H4v-1.5zm3 0v1.5h7v-1.5zm-3 3.25V12H4v-1.5zm3 0V12h7v-1.5z'/%3E%3C/svg%3E");
    }
}

/* topo na largura das páginas: as mesmas medidas do container do 6.0 */
@media (min-width: 1200px) {
    body.layout-modern.header-layout-3 .header3-inner,
    body.layout-modern.header-layout-3 .site-header-inner,
    body.layout-modern.header-layout-3.is-scrolled .header3-inner,
    body.layout-modern.header-layout-3.is-scrolled .site-header-inner { max-width: 1140px; }

    body.layout-modern.header-layout-3 .site-logo img,
    body.layout-modern.header-layout-3.is-scrolled .site-logo img { max-width: 340px; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a { padding: 0 16px !important; font-size: 13px; }
}

@media (min-width: 1400px) {
    body.layout-modern.header-layout-3 .header3-inner,
    body.layout-modern.header-layout-3 .site-header-inner,
    body.layout-modern.header-layout-3.is-scrolled .header3-inner,
    body.layout-modern.header-layout-3.is-scrolled .site-header-inner { max-width: 1320px; }
}

/* celular: só o logo e o botão do menu, como no 4.0 */
@media (max-width: 992px) {
    body.layout-modern.header-layout-3 .header3-horario,
    body.layout-modern.header-layout-3 .header3-endereco,
    body.layout-modern.header-layout-3 .header3-fones { display: none; }
}
