﻿/* Topo do site 4.0, grupo G07 (cores do Meu Site), sobre o topo 3 do 6.0. Base: modelo G04.
   Fundo branco; à esquerda, o logo numa caixa da cor do topo, com os cantos de baixo arredondados e o lado
   direito inclinado, descendo um pouco sobre o banner; à direita, a linha dos telefones e, embaixo, o menu
   numa barra da cor do menu, com ícones e divisórias (ordem do 4.0: Home, Empresa, Veículos, Financiamento,
   Venda seu Carro, Contato). */

/* sem a faixa de horário do 6.0: o 4.0 do G07 não tem */
body.layout-modern.header-layout-3 .header-top { display: none !important; }

@media (min-width: 993px) {
    body.layout-modern.header-layout-3 {
        --g7Faixa: 34px;
        --g7Menu: 62px;
        --g7Caixa: 380px;
    }

    /* linha dos telefones: fundo branco, texto escuro, começando depois da caixa do logo */
    body.layout-modern.header-layout-3 .header3-bar { background: #fff; }

    body.layout-modern.header-layout-3 .header3-inner,
    body.layout-modern.header-layout-3.is-scrolled .header3-inner {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        max-width: 960px;
        height: var(--g7Faixa);
        min-height: var(--g7Faixa);
        padding: 0 12px 0 calc(var(--g7Caixa) + 30px);
        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: #222;
        font-size: 14px;
        font-weight: 600;
        line-height: var(--g7Faixa);
        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 6px 0 0;
        background: none;
        border-radius: 0;
        box-shadow: none;
        color: #222;
        font-size: 14px;
        font-weight: 600;
        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 6px 0 0; border: 0; background: none; }
    body.layout-modern.header-layout-3 .header3-bar .header3-fones-list li + li::before { content: "-"; margin-right: 6px; color: #222; }

    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: #222;
        font-size: 14px;
        font-weight: 600;
        line-height: var(--g7Faixa);
    }

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

    /* barra de baixo: branca, com o menu numa faixa da cor do menu à direita */
    body.layout-modern.header-layout-3 .site-header,
    body.layout-modern.header-layout-3.is-scrolled .site-header {
        position: relative;
        /* acima do banner: a caixa do logo desce sobre ele */
        z-index: 1000 !important;
        overflow: visible !important;
        height: var(--g7Menu);
        min-height: var(--g7Menu);
        padding: 0;
        background: #fff !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 {
        position: relative;
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
        max-width: 960px;
        height: var(--g7Menu);
        min-height: var(--g7Menu);
        /* o menu começa depois da caixa do logo */
        padding: 0 12px 0 calc(var(--g7Caixa) + 34px);
        gap: 0;
        overflow: visible !important;
    }

    /* caixa do logo: sobe até o topo da linha dos telefones e desce um pouco sobre o banner */
    body.layout-modern.header-layout-3 .site-logo,
    body.layout-modern.header-layout-3.is-scrolled .site-logo {
        position: absolute;
        z-index: 6;
        left: 12px;
        top: calc(-1 * var(--g7Faixa));
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--g7Caixa);
        height: calc(var(--g7Faixa) + var(--g7Menu) + 30px);
        margin: 0;
        padding: 0 22px;
        float: none;
        background: none !important;
    }

    /* a caixa é um paralelogramo (os dois lados inclinados), com os cantos de baixo arredondados, como no 4.0 */
    body.layout-modern.header-layout-3 .site-logo::before {
        content: "";
        position: absolute;
        z-index: 0;
        inset: 0;
        background: var(--headerBgColor);
        border-radius: 0 0 30px 30px !important;
        transform: skewX(-15deg);
    }

    body.layout-modern.header-layout-3 .site-logo::after { display: none; }

    body.layout-modern.header-layout-3 .site-logo a { position: relative; z-index: 1; 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: 100%;
        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: 1 1 auto;
        height: var(--g7Menu);
        margin-left: 0;
        background: var(--menuBgColor) !important;
    }

    /* o menu ocupa a barra até o fim da direita, com os itens repartindo a largura */
    html body.layout-modern.header-layout-3 .site-header .main-navigation,
    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul { flex: 1 1 auto; width: 100%; background: var(--menuBgColor) !important; }
    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li { flex: 1 1 auto; }
    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a { width: 100%; justify-content: center; }

    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: var(--g7Menu); 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: var(--g7Menu);
        padding: 0 14px !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: 15px;
        font-weight: 400;
        line-height: var(--g7Menu);
        text-transform: none;
        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 */
    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: 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;
    }

    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: 14px;
        height: 14px;
        vertical-align: -1px;
        background: var(--menuColor);
        -webkit-mask: var(--g7Icone) no-repeat center / contain;
        mask: var(--g7Icone) no-repeat center / contain;
    }

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

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

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

/* topo na largura da tela com 5% de margem de cada lado (no 4.0 o logo fica ~75 px da borda numa tela de 1340); o menu começa depois da caixa do logo */
@media (min-width: 993px) {
    html body.layout-modern.header-layout-3 .header3-inner,
    html body.layout-modern.header-layout-3 .site-header-inner,
    html body.layout-modern.header-layout-3.is-scrolled .header3-inner,
    html body.layout-modern.header-layout-3.is-scrolled .site-header-inner { width: 100%; max-width: none !important; }

    html body.layout-modern.header-layout-3 .header3-inner,
    html body.layout-modern.header-layout-3.is-scrolled .header3-inner { padding: 0 5% 0 calc(5% + var(--g7Caixa) + 40px) !important; }

    html body.layout-modern.header-layout-3 .site-header-inner,
    html body.layout-modern.header-layout-3.is-scrolled .site-header-inner { padding: 0 5% !important; }

    html body.layout-modern.header-layout-3 .site-logo,
    html body.layout-modern.header-layout-3.is-scrolled .site-logo { left: 5% !important; }

    html body.layout-modern.header-layout-3 .navbar,
    html body.layout-modern.header-layout-3.is-scrolled .navbar { margin-left: calc(var(--g7Caixa) + 8px) !important; }

    /* a faixa cinza do menu continua por trás da caixa do logo até o fim da direita da página */
    html body.layout-modern.header-layout-3 .site-header::after {
        content: "";
        position: absolute;
        z-index: 0;
        top: 0;
        bottom: 0;
        left: calc(5% + var(--g7Caixa) / 2);
        right: 0;
        background: var(--menuBgColor);
        pointer-events: none;
    }

    html body.layout-modern.header-layout-3 .site-header-inner { z-index: 1; }
}

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

/* sem os chamados de Venda seu Veículo e Financiamento na home (pedido de 28/11) */
.home-sell-cta { display: none !important; }
