﻿/* Topo do site 4.0, grupo G01 (cores do Meu Site), sobre o topo 3 do 6.0, com Site:EnderecoTopo e Site:BuscaMenu */

@media (min-width: 992px) {
    /* faixa de cima: logo à esquerda; endereço e telefone à direita, na mesma caixa das páginas (container do 6.0) */
    body.layout-modern.header-layout-3 .header3-inner {
        max-width: 960px;
        min-height: 124px;
        padding: 0 12px;
        gap: 0;
        font-family: Roboto, sans-serif;
    }

    body.layout-modern.header-layout-3.is-scrolled .header3-inner { min-height: 124px; }
    body.layout-modern.header-layout-3 .header3-logo img,
    body.layout-modern.header-layout-3.is-scrolled .header3-logo img { max-width: 380px; max-height: 116px; }

    /* o 4.0 deste grupo não mostra o horário no topo */
    body.layout-modern.header-layout-3 .header3-horario { display: none; }

    body.layout-modern.header-layout-3 .header3-endereco {
        margin-left: auto;
        padding: 0 28px;
        border-right: 1px solid #dadada;
        text-align: right;
        line-height: 1.45;
    }

    body.layout-modern.header-layout-3 .header3-endereco strong,
    body.layout-modern.header-layout-3 .header3-fones::before {
        display: block;
        margin-bottom: 4px;
        color: var(--menuBgColor);
        font-size: 14px;
        font-weight: 700;
    }

    body.layout-modern.header-layout-3 .header3-endereco span { color: var(--headerColor); font-size: 17px; }

    /* telefones abertos, um embaixo do outro, com o WhatsApp depois do número */
    body.layout-modern.header-layout-3 .header3-fones { padding-left: 28px; text-align: right; }
    body.layout-modern.header-layout-3 .header3-fones::before { content: "Telefone"; }
    /* loja sem endereço no cadastro: os telefones vão para a direita sozinhos */
    body.layout-modern.header-layout-3 .header3-horario + .header3-fones { margin-left: auto; }

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

    body.layout-modern.header-layout-3 .header3-bar .header3-fones-list {
        position: static;
        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 { 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 {
        color: var(--headerColor);
        font-size: 17px;
        font-weight: 500;
        line-height: 26px;
    }

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

    /* barra do menu na largura toda, itens à esquerda com ícone e divisória, busca à direita */
    body.layout-modern.header-layout-3 .site-header,
    body.layout-modern.header-layout-3.is-scrolled .site-header {
        height: 52px;
        min-height: 52px;
        padding: 0;
        background: var(--menuBgColor) !important;
    }

    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: 52px;
        padding: 0 12px;
        gap: 0;
        justify-content: flex-start;
    }

    /* sem o logo pequeno nem o botão de telefone que o topo 3 põe na barra ao rolar, e sem o modo noturno, como no 4.0 */
    body.layout-modern.header-layout-3.is-scrolled .site-logo,
    body.layout-modern.header-layout-3.is-scrolled .header3-fones-menu,
    body.layout-modern.header-layout-3 .themeMenuHeader73 { display: none !important; }

    body.layout-modern.header-layout-3 .navbar,
    body.layout-modern.header-layout-3.is-scrolled .navbar { flex: 1 1 auto; }

    /* menu na barra toda até a busca, como no topo 3: cada item cresce e o texto fica no meio */
    body.layout-modern.header-layout-3 .main-navigation,
    body.layout-modern.header-layout-3.is-scrolled .main-navigation { width: 100%; text-align: center; }

    body.layout-modern.header-layout-3 .main-navigation > ul,
    body.layout-modern.header-layout-3.is-scrolled .main-navigation > ul { justify-content: stretch; gap: 0; width: 100%; }

    body.layout-modern.header-layout-3 .main-navigation > ul > li:not(.telefoneMenuHeader) { position: relative; flex: 1 1 auto; }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li > a {
        display: block;
        padding: 0 14px !important;
        border-right: 1px solid color-mix(in srgb, var(--menuBgColor), #000 22%);
        border-bottom: 0 !important;
        box-shadow: inset -1px 0 color-mix(in srgb, var(--menuBgColor), #fff 12%) !important;
        color: var(--menuColor) !important;
        font-family: Roboto, sans-serif;
        font-size: 15px;
        font-weight: 500;
        line-height: 52px;
        text-align: center;
        text-transform: none;
        white-space: nowrap;
    }

    html body.layout-modern.header-layout-3 .site-header .main-navigation > ul > li:first-child > a {
        border-left: 1px solid color-mix(in srgb, var(--menuBgColor), #000 22%);
    }

    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 10%) !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; }

    /* ícone dentro do link, junto do texto centralizado */
    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: 7px;
        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"; }

    /* prédio e lista: o pacote de ícones do 6.0 não traz estes dois */
    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(--g1Icone) no-repeat center / contain;
        mask: var(--g1Icone) no-repeat center / contain;
    }

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

    /* busca rápida (Site:BuscaMenu) */
    .menuBusca { display: flex; flex: 0 0 auto; align-items: center; margin-left: 24px; }

    .menuBusca input {
        width: 250px;
        height: 34px;
        padding: 0 12px;
        border: 0;
        border-radius: 3px 0 0 3px;
        background: #fff;
        color: #333;
        font-size: 14px;
        outline: 0;
    }

    .menuBusca button {
        width: 53px;
        height: 34px;
        border: 0;
        border-radius: 0 3px 3px 0;
        background: color-mix(in srgb, var(--menuBgColor), #000 20%);
        color: var(--menuColor);
        cursor: pointer;
    }

    .menuBusca button:hover { background: color-mix(in srgb, var(--menuBgColor), #fff 15%); }
}

/* variação do G01 sem a busca no menu (reconhecida pela falta da busca na página): menu sem divisórias,
   letra maior e sem negrito, títulos e telefones em letra normal e sem a linha entre endereço e telefone */
@media (min-width: 992px) {
    body.layout-modern.header-layout-3:not(:has(.menuBusca)) .header3-endereco { border-right: 0; padding-right: 0; }

    body.layout-modern.header-layout-3:not(:has(.menuBusca)) .header3-endereco strong,
    body.layout-modern.header-layout-3:not(:has(.menuBusca)) .header3-fones::before { font-size: 17px; font-weight: 400 !important; }

    body.layout-modern.header-layout-3:not(:has(.menuBusca)) .header3-bar a.header3-fones-btn,
    body.layout-modern.header-layout-3:not(:has(.menuBusca)) .header3-bar .header3-fones-list a { font-weight: 400; }

    html body.layout-modern.header-layout-3:not(:has(.menuBusca)) .site-header .main-navigation > ul > li > a,
    html body.layout-modern.header-layout-3:not(:has(.menuBusca)) .site-header .main-navigation > ul > li:first-child > a {
        border-left: 0;
        border-right: 0;
        box-shadow: none !important;
        font-size: 18px;
        font-weight: 400;
    }

    html body.layout-modern.header-layout-3:not(:has(.menuBusca)) .site-header .main-navigation > ul > li.menu-ativo > a { background-color: transparent !important; }
    html body.layout-modern.header-layout-3:not(:has(.menuBusca)) .site-header .main-navigation > ul > li > a:hover { background-color: color-mix(in srgb, var(--menuBgColor), #000 10%) !important; }
}

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