﻿/* Topo do site 3.0, modelo A, sobre o topo 4 do 6.0 — tudo neste arquivo da loja */

/* cores do topo do 3.0 (Content/css/color.css) */
:root {
    --headerBgColor: #ececec;
    --headerColor: #222;
    --menuBgColor: #a8302f;
    --menuColor: #fff;
    --menuHoverColor: #9a2726;
}


body.layout-modern.header-layout-4 .site-header { font-family: Roboto, sans-serif; }

@media (min-width: 992px) {
    /* topo na largura toda (logo no começo da página); menu e telefones alinhados à caixa de 1150 px do 3.0.
       Em %, e não em vw, porque acima de 1920 px o 6.0 aplica zoom e a conta em vw joga o logo para fora da tela */
    body.layout-modern.header-layout-4 .site-header { height: 109px; position: relative; }

    body.layout-modern.header-layout-4 .site-header::after {
        content: "";
        position: absolute;
        left: 50%;
        right: 0;
        bottom: 0;
        height: 57px;
        background: var(--menuBgColor);
        z-index: 0;
    }

    body.layout-modern.header-layout-4 .site-header-inner {
        max-width: none;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
        z-index: 1;
    }

    body.layout-modern.header-layout-4 .site-logo { margin-left: 15px; }
    body.layout-modern.header-layout-4 .site-logo img { max-height: 109px; max-width: 380px; }

    body.layout-modern.header-layout-4 .navbar { right: max(15px, calc((100% - 1150px) / 2 + 15px)); }
    body.layout-modern.header-layout-4 .main-navigation { padding-right: 0; }

    /* sem modo noturno nem telefone dentro do menu, como no 3.0 */
    body.layout-modern.header-layout-4 .themeMenuHeader73,
    body.layout-modern.header-layout-4 .main-navigation > ul > li.telefoneMenuHeader { display: none !important; }

    body.layout-modern.header-layout-4 .main-navigation > ul > li:nth-last-child(2) > a::before,
    body.layout-modern.header-layout-4 .main-navigation > ul > li:nth-last-child(2) > a::after { display: none; }

    /* ordem e ícones do 3.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; }

    .main-navigation > ul > li > a { font-family: Roboto, sans-serif; }

    /* hover e item ativo como no 3.0: fundo mais escuro, sem a barra embaixo */
    html body.layout-modern.header-layout-4 .site-header .main-navigation > ul > li > a:hover,
    html body.layout-modern.header-layout-4 .site-header .main-navigation > ul > li.menu-ativo > a {
        border-bottom-color: transparent !important;
        box-shadow: none !important;
    }

    html body.layout-modern.header-layout-4 .site-header .main-navigation > ul > li > a:hover {
        background-color: var(--menuHoverColor, color-mix(in srgb, var(--menuBgColor), #000 22%)) !important;
    }

    html body.layout-modern.header-layout-4 .site-header .main-navigation > ul > li > a:hover,
    html body.layout-modern.header-layout-4 .site-header .main-navigation > ul > li:hover::before { color: var(--menuColor) !important; }

    /* ícone no item da lista: o ::before/::after do link já são as divisórias do topo 4 */
    .main-navigation > ul > li:not(.telefoneMenuHeader) > a { padding-left: 30px !important; }

    .main-navigation > ul > li:not(.telefoneMenuHeader)::before {
        position: absolute;
        left: 12px;
        top: 0;
        z-index: 3;
        color: var(--menuColor);
        font-family: "Font Awesome 6 Free";
        font-size: 13px;
        font-weight: 900;
        line-height: 57px;
        pointer-events: none;
    }

    /* o Home do 6.0 só aparece no celular; no 3.0 ele está no menu */
    body.layout-modern.header-layout-4 .main-navigation > ul > li.mobile { display: inline-block !important; order: 1; }

    html body.layout-modern.header-layout-4 .site-header .main-navigation > ul > li.mobile > a,
    html body.layout-modern.header-layout-4 .site-header .main-navigation > ul > li.mobile.menu-ativo > a {
        color: var(--menuColor) !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
    }

    .main-navigation li:has(> a[href$="/"])::before { content: "\f015"; }
    .main-navigation li:has(> a[href*="/Veiculos"])::before,
    .main-navigation li:has(> a[href$="/VendaSeuVeiculo"])::before { content: "\f1b9"; }
    .main-navigation li:has(> a[href$="/Contato"])::before { content: "\f0e0"; }

    /* prédio e lista: o pacote de ícones do 6.0 não traz estes dois */
    .main-navigation li:has(> a[href$="/Empresa"])::before,
    .main-navigation li:has(> a[href$="/Financiamento"])::before {
        content: "";
        top: 22px;
        width: 13px;
        height: 13px;
        background: var(--menuColor);
        -webkit-mask: var(--t3Icone) no-repeat center / contain;
        mask: var(--t3Icone) no-repeat center / contain;
    }

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

    /* telefones no lugar do horário, um ao lado do outro */
    body.layout-modern.header-layout-4 .header-top-info { display: none !important; }

    body.layout-modern.header-layout-4 .header3-fones-menu {
        display: flex !important;
        position: absolute;
        top: 14px; /* centralizado na faixa de 52 px acima do menu */
        right: max(15px, calc((100% - 1150px) / 2 + 15px));
        z-index: 5;
    }

    .header3-fones-menu > button.header3-fones-btn { display: none; }

    .header3-fones-menu > a.header3-fones-btn,
    .header3-fones-menu .header3-fones-list a {
        color: var(--headerColor) !important;
        font-family: Roboto, sans-serif;
        font-size: 18px;
        font-weight: 700;
        text-decoration: none;
    }

    .header3-fones-menu .header3-fones-list {
        display: flex;
        position: static;
        margin: 0;
        padding: 0;
        list-style: none;
        background: none;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .header3-fones-menu .header3-fones-list li { padding: 0 10px; border-right: 1px solid #e8e8e8; }
    .header3-fones-menu .header3-fones-list li:last-child { border-right: 0; padding-right: 0; }
    .header3-fones-menu .header3-fones-list small { display: none; }

    .header3-fones-menu .header3-fones-list li:first-child a::before {
        content: "\f095";
        margin-right: 5px;
        font-family: "Font Awesome 6 Free";
        font-size: 17px;
        font-weight: 900;
    }

    .header3-fones-menu > a.header3-fones-btn .fa-phone { margin-right: 5px; }
}

/* celular: como no 3.0, só o logo e o botão do menu, sem a faixa de horário */
@media (max-width: 991px) {
    body.layout-modern.header-layout-4 .header-top { display: none !important; }
    body.layout-modern.header-layout-4 .site-header { height: 109px; }
    body.layout-modern.header-layout-4 #menu-toggle { background-color: #252525 !important; color: #fff !important; }
}

/* Três botões abaixo do banner (Site:ModeloHome = 3.0), como no 3.0 */
.home30-botoes { position: relative; margin-bottom: 10px; }

.home30-botoes::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    background: #6b757b;
}

.home30-links {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 10px 20px;
    background: linear-gradient(#6e787e, #5d666b);
    border-radius: 0 0 16px 16px;
}

.home30-links::before,
.home30-links::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 40px;
    height: 40px;
}

.home30-links::before { left: -40px; background: radial-gradient(circle at 0 100%, transparent 39px, #6b757b 40px); }
.home30-links::after { right: -40px; background: radial-gradient(circle at 100% 100%, transparent 39px, #6b757b 40px); }

.home30-links a {
    flex: 0 1 315px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 66px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 5px;
    background: #6e787e;
    color: #fff !important;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.home30-links a:hover,
.home30-links a.home30-estoque { background: var(--menuBgColor); border-color: transparent; }
