﻿/* Topo do site 4.0, grupo G06: o topo 1 do 6.0 já é o desenho do 4.0; só sem o botão do modo noturno, que o 4.0 não tem */

body.layout-modern .themeMenuHeader73,
body.layout-modern .header-top .theme-toggle-top { display: none !important; }

/* hover do menu: texto na cor do menu com sublinhado (a cor do topo é a mesma do fundo do menu e o texto sumia; 01/12) */
@media (min-width: 992px) {
    html body.layout-modern .main-navigation > ul > li:not(.telefoneMenuHeader):not(.themeMenuHeader73) > a:hover,
    html body.layout-modern .main-navigation > ul > li.menu-ativo:not(.telefoneMenuHeader):not(.themeMenuHeader73) > a { color: var(--menuColor) !important; border-bottom-color: var(--menuColor) !important; }
}

/* automiami: logo no centro e o menu centralizado embaixo, como no 4.0; com o Home; sem o botão Telefones (01/12) */
@media (min-width: 992px) {
    html body.layout-modern .site-header,
    html body.layout-modern.is-scrolled .site-header { height: auto !important; min-height: 0 !important; }
    html body.layout-modern .site-header-inner { display: flex !important; flex-direction: column; align-items: center; justify-content: center; height: auto !important; padding-top: 14px; padding-bottom: 4px; }
    html body.layout-modern .site-header .site-logo { margin: 0 auto 6px !important; float: none !important; }
    html body.layout-modern .site-header .site-logo img { max-height: 90px; width: auto; }
    html body.layout-modern .site-header .navbar { position: static !important; width: 100%; display: flex; justify-content: center; margin: 0 !important; }
    html body.layout-modern .main-navigation { float: none !important; margin: 0 auto !important; }
    html body.layout-modern .site-header .navbar,
    html body.layout-modern .main-navigation,
    html body.layout-modern .main-navigation > ul { height: auto !important; min-height: 0 !important; }
    html body.layout-modern .main-navigation > ul { display: flex; justify-content: center; }
    html body.layout-modern .site-header .main-navigation > ul > li > a { height: 64px !important; line-height: 64px !important; padding: 0 22px !important; font-size: 14px !important; border-right: 1px solid rgba(255,255,255,.08); }
    html body.layout-modern .site-header .main-navigation > ul > li:first-child > a { border-left: 1px solid rgba(255,255,255,.08); }
    /* ordem do 4.0: Home, Sobre nós, Estoque, Venda seu Carro, Financiamento, (Seguros), 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$="/VendaSeuVeiculo"]) { order: 4; }
    .main-navigation li:has(> a[href$="/Financiamento"]) { order: 5; }
    .main-navigation li:has(> a[href$="/seguros"]) { order: 6; }
    .main-navigation li:has(> a[href*="carbon"]) { order: 7; }
    .main-navigation li:has(> a[href$="/Contato"]) { order: 8; }
    html body.layout-modern .main-navigation > ul > li.mobile { display: inline-block !important; }
    html body.layout-modern .main-navigation > ul > li.telefoneMenuHeader,
    html body.layout-modern .header3-fones-menu { display: none !important; }
}

/* redes sociais na faixa de cima, à direita, como no 4.0 (01/12) */
@media (min-width: 992px) {
    html body.layout-modern .header-top { display: block !important; background: #3a3a3a !important; }
    html body.layout-modern .header-top .theme-toggle-top { display: none !important; }
    html body.layout-modern .header-top-inner { display: flex; justify-content: flex-end; }
    .am-social { display: flex; gap: 14px; padding: 6px 0; }
    .am-social a { color: #fff !important; font-size: 17px; }
    .am-social a:hover { opacity: .75; }
}

/* automiami (01/12): Sobre nós e Blindagem do 4.0 */
.am-emp { margin-top: 28px; }
.am-emp h2, .am-blindagem h2 { font-size: 24px; font-weight: 400; text-transform: uppercase; margin: 0 0 14px; }
.am-emp h2 strong { font-weight: 800; }
.am-emp-linha { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-bottom: 36px; }
.am-emp-linha img { width: 100%; border-radius: 8px; }
.am-emp-foto { display: block; width: 100%; margin: 0 0 24px; border-radius: 8px; }
@media (min-width: 992px) { .am-emp-linha.am-emp-so-texto { grid-template-columns: 1fr; } }
.am-emp-linha p, .am-emp-linha li, .am-emp-cards p, .am-emp-sub, .am-blindagem p { font-size: 15px; line-height: 1.6; }
.am-emp-linha ol { padding-left: 20px; margin: 0; }
.am-emp-linha li { margin-bottom: 6px; }
.am-emp-titulo { text-align: center; margin-top: 12px !important; }
.am-emp-sub { text-align: center; margin: -6px 0 20px; }
.am-emp-cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
.am-emp-cards > div { padding: 22px; border-radius: 8px; background: rgba(127, 127, 127, .08); }
.am-emp-cards h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; margin: 0 0 10px; }
.am-emp-icones img { width: 46px; height: 46px; margin-bottom: 12px; }
.am-blindagem { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.am-blindagem img { max-width: 320px; width: 100%; margin: 0 auto; }
.am-emp h2, .am-emp h3, .am-blindagem h2 { color: #111; }
.modoNoturno .am-emp h2, .modoNoturno .am-emp h3, .modoNoturno .am-blindagem h2 { color: #fff; }
@media (min-width: 992px) { .main-navigation li:has(> a[href*="pagina=blindagem"]) { order: 7; } }
@media (min-width: 992px) {
    .am-emp-linha { grid-template-columns: 5fr 7fr; }
    .am-emp-inverte { grid-template-columns: 7fr 5fr; }
    .am-emp-inverte img { order: 2; }
    .am-emp-cards { grid-template-columns: repeat(4, 1fr); }
    .am-blindagem { grid-template-columns: 4fr 8fr; }
}
