﻿/* Topo do site 4.0, grupo G02 (cores do Meu Site), sobre o topo 3 do 6.0, com Site:EnderecoTopo:
   faixa da cor do menu em cima; logo à esquerda; à direita, "Endereço: ..." e "Telefone: ..." em uma linha cada
   e o menu em caixas logo abaixo, encostado na direita e no banner */

@media (min-width: 992px) {
    body.layout-modern.header-layout-3 .header3-bar {
        background: var(--headerBgColor);
        border-top: 5px solid var(--menuBgColor);
    }

    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) auto;
        grid-template-rows: auto auto 1fr;
        align-items: start;
        max-width: 960px;
        min-height: 133px;
        padding: 0 12px;
        gap: 0;
        font-family: Roboto, sans-serif;
    }

    body.layout-modern.header-layout-3 .header3-logo {
        grid-column: 1;
        grid-row: 1 / 4;
        align-self: center;
        padding: 6px 0;
    }

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

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

    /* Endereço: rua - bairro - cidade - UF, numa linha só */
    body.layout-modern.header-layout-3 .header3-endereco {
        grid-column: 2;
        grid-row: 1;
        margin: 9px 0 0;
        padding: 0;
        border: 0;
        color: var(--headerColor);
        font-size: 15px;
        font-weight: 700;
        line-height: 22px;
        text-align: right;
        white-space: nowrap;
    }

    body.layout-modern.header-layout-3 .header3-endereco strong { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: 700; }
    body.layout-modern.header-layout-3 .header3-endereco strong::after { content: ": "; }
    body.layout-modern.header-layout-3 .header3-endereco span { color: inherit; font-size: inherit; }
    body.layout-modern.header-layout-3 .header3-endereco br { display: none; }
    body.layout-modern.header-layout-3 .header3-endereco .header3-endereco-sep[hidden] { display: inline !important; }

    /* Telefone: os números em linha, separados por traço, com o WhatsApp depois do número */
    body.layout-modern.header-layout-3 .header3-fones {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 4px 0 0;
        padding: 0;
        color: var(--headerColor);
        font-size: 18px;
        font-weight: 700;
        line-height: 26px;
        white-space: nowrap;
    }

    body.layout-modern.header-layout-3 .header3-fones::before { content: "Telefone:"; margin-right: 6px; }

    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;
        color: var(--headerColor);
        font-size: 18px;
        font-weight: 700;
        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; padding: 0; border: 0; background: none; }
    body.layout-modern.header-layout-3 .header3-bar .header3-fones-list li + li::before { content: "-"; margin: 0 6px; }
    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;
        color: var(--headerColor);
        font-size: 18px;
        font-weight: 700;
        line-height: 26px;
    }

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

    /* menu: sobe para dentro da faixa do topo, à direita, embaixo do endereço e do telefone */
    body.layout-modern.header-layout-3 .site-header,
    body.layout-modern.header-layout-3.is-scrolled .site-header {
        position: relative;
        height: 68px;
        min-height: 68px;
        margin-top: -68px;
        padding: 0;
        background: transparent !important;
        box-shadow: none !important;
        /* o 6.0 desfoca o que fica atrás da barra do menu: aqui a barra fica por cima do logo */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        pointer-events: none;
    }

    body.layout-modern.header-layout-3 .site-header-inner,
    body.layout-modern.header-layout-3.is-scrolled .site-header-inner {
        max-width: 960px;
        min-height: 68px;
        padding: 0 12px;
        gap: 0;
        justify-content: flex-end;
    }

    body.layout-modern.header-layout-3 .site-logo,
    body.layout-modern.header-layout-3 .header3-fones-menu,
    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 { flex: 0 0 auto; pointer-events: auto; }

    body.layout-modern.header-layout-3 .main-navigation > ul,
    body.layout-modern.header-layout-3.is-scrolled .main-navigation > ul { gap: 0; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a {
        display: block;
        padding: 0 14px !important;
        background: var(--menuBgColor);
        border-bottom: 0 !important;
        border-left: 1px solid color-mix(in srgb, var(--menuBgColor), #fff 25%);
        color: var(--menuColor) !important;
        font-family: Roboto, sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 68px;
        text-transform: none;
        white-space: nowrap;
    }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li:first-child > a { border-left: 0; }

    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-color: color-mix(in srgb, var(--menuBgColor), #000 12%) !important;
        color: var(--menuColor) !important;
    }

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

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a::before {
        display: inline-block;
        position: static;
        width: 14px;
        height: auto;
        margin-right: 5px;
        background: none;
        color: var(--menuColor);
        font-family: "Font Awesome 6 Free";
        font-size: 14px;
        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$="/VendaSeuVeiculo"]::before { content: "\f1b9"; }
    .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: "";
        height: 14px;
        vertical-align: -2px;
        background: var(--menuColor);
        -webkit-mask: var(--g2Icone) no-repeat center / contain;
        mask: var(--g2Icone) no-repeat center / contain;
    }

    .main-navigation a[href$="/Empresa"] {
        --g2Icone: 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"] {
        --g2Icone: 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; }
}

@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: 991px) {
    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; }
}
