﻿/* Topo do site 4.0, grupo G03 (cores do Meu Site), sobre o topo 3 do 6.0, com Site:EnderecoTopo:
   faixa com o endereço à esquerda e os telefones à direita; embaixo, o menu em duas metades
   e, entre elas, o logo numa aba da cor do topo que sobe até a faixa */

@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: grid;
        grid-template-columns: minmax(0, 1fr) var(--g3Aba) minmax(0, 1fr);
        align-items: center;
        max-width: 960px;
        min-height: var(--g3Faixa);
        padding: 4px 12px;
        gap: 0 34px;
        font-family: Roboto, sans-serif;
    }

    body.layout-modern.header-layout-3 {
        --g3Faixa: 98px;
        --g3Menu: 54px;
        --g3Aba: 210px;
        --g3Margem: 16px;
    }

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

    body.layout-modern.header-layout-3 .header3-endereco {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 0;
        border: 0;
        color: var(--headerColor);
        font-size: 17px;
        line-height: 24px;
        text-align: right;
    }

    html body.layout-modern.header-layout-3 .header3-endereco strong {
        display: block;
        margin: 0 0 2px;
        color: var(--menuBgColor);
        font-size: 17px;
        font-weight: 400 !important;
    }

    body.layout-modern.header-layout-3 .header3-endereco span { color: inherit; font-size: inherit; }

    body.layout-modern.header-layout-3 .header3-fones {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
        padding: 0;
        color: var(--headerColor);
        font-size: 17px;
        font-weight: 500;
        line-height: 23px;
        letter-spacing: .5px;
        text-align: left;
    }

    body.layout-modern.header-layout-3 .header3-fones::before {
        content: "Telefone";
        display: block;
        color: var(--menuBgColor);
        font-weight: 400;
        letter-spacing: 0;
    }

    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;
        background: none;
        border-radius: 0;
        box-shadow: none;
        color: var(--headerColor);
        font-size: 17px;
        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: block;
        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: block; padding: 0; border: 0; background: none; }
    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: 17px;
        font-weight: 500;
        line-height: 23px;
    }

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

    /* menu: as duas metades e o logo entre elas numa linha só (o logo anda com a divisão do menu) */
    body.layout-modern.header-layout-3 .site-header,
    body.layout-modern.header-layout-3.is-scrolled .site-header {
        position: relative;
        height: var(--g3Menu);
        min-height: var(--g3Menu);
        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;
        max-width: 960px;
        height: var(--g3Menu);
        min-height: var(--g3Menu);
        padding: 0 12px;
        gap: 0;
    }

    body.layout-modern.header-layout-3 .site-header-inner::before,
    body.layout-modern.header-layout-3 .site-header-inner::after { content: ""; display: block; flex: 1 1 0; }
    body.layout-modern.header-layout-3 .site-header-inner::before { order: 0; }
    body.layout-modern.header-layout-3 .site-header-inner::after { order: 99; }

    body.layout-modern.header-layout-3 .navbar,
    body.layout-modern.header-layout-3 .main-navigation,
    body.layout-modern.header-layout-3 .main-navigation > ul { display: contents !important; }

    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 .main-navigation > ul > li.telefoneMenuHeader { display: none !important; }

    body.layout-modern.header-layout-3 .site-logo,
    body.layout-modern.header-layout-3.is-scrolled .site-logo {
        order: 50;
        position: relative;
        z-index: 3;
        display: flex;
        flex: 0 0 var(--g3Aba);
        align-items: center;
        justify-content: center;
        height: calc(var(--g3Faixa) + var(--g3Menu));
        margin: calc(-1 * var(--g3Faixa)) var(--g3Margem) 0;
        padding: 4px 0;
        float: none;
        background: none !important;
    }

    body.layout-modern.header-layout-3 .site-logo::before {
        content: "";
        position: absolute;
        z-index: -1;
        left: -20px;
        right: -20px;
        bottom: 0;
        height: var(--g3Menu);
        background: var(--headerBgColor);
        clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 35px 100%);
    }

    body.layout-modern.header-layout-3 .site-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

    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: 100%;
        max-height: 142px;
        padding: 0;
        object-fit: contain;
    }

    /* metade da esquerda: Home, estoque e Venda seu Veículo; o resto à direita do logo, na ordem do 4.0 */
    body.layout-modern.header-layout-3 .main-navigation > ul > li { order: 63; display: block; }
    body.layout-modern.header-layout-3 .main-navigation > ul > li.mobile { display: block !important; order: 10; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href*="/Veiculos"]) { order: 11; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href$="/ZeroKM"]) { order: 12; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href$="/Motos"]) { order: 13; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href$="/Blindados"]) { order: 14; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href$="/VendaSeuVeiculo"]) { order: 15; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href$="/Empresa"]) { order: 61; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href$="/Financiamento"]) { order: 62; }
    body.layout-modern.header-layout-3 .main-navigation li:has(> a[href$="/Contato"]) { order: 64; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a {
        display: block;
        padding: 0 7px !important;
        background: none;
        border: 0 !important;
        color: var(--menuColor) !important;
        font-family: Roboto, sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: var(--g3Menu);
        text-transform: none;
        white-space: nowrap;
    }

    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;
        opacity: .8;
    }

    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: 6px;
        background: none;
        color: var(--menuColor);
        font-family: "Font Awesome 6 Free";
        font-size: .95em;
        font-weight: 900;
        line-height: 1;
        opacity: 1;
        transform: 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: .95em;
        height: .95em;
        vertical-align: -2px;
        background: var(--menuColor);
        -webkit-mask: var(--g3Icone) no-repeat center / contain;
        mask: var(--g3Icone) no-repeat center / contain;
    }

    .main-navigation a[href$="/Empresa"] {
        --g3Icone: 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"] {
        --g3Icone: 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 { --g3Aba: 270px; --g3Margem: 34px; }

    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; }

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

@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; }

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

/* 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; }
}
