/* MG Veículos Multimarcas */
:root {
  --preto: #0c0d0f;
  --grafite: #15171b;
  --grafite-2: #1d2025;
  --branco: #fff;
  --papel: #f4f4f1;
  --texto: #15171a;
  --suave: #5e646c;
  --suave-esc: #a3a9b1;
  --linha: #e3e3de;
  --linha-esc: rgba(255, 255, 255, .1);
  --laranja: #ff6b00;
  --laranja-esc: #e05d00;
  --verde-zap: #1fa855;
  --r: 6px;
  --topo: 76px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --capa: 0s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.55; color: var(--texto); background: var(--branco); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }
h1, h2, h3 { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); text-transform: uppercase; }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { color: var(--suave); margin-top: 10px; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--laranja); color: #fff; padding: 10px 14px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-prim { background: var(--laranja); color: #fff; }
.btn-prim:hover { background: var(--laranja-esc); }
.btn-prim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); }
.btn-prim:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn-sec { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-sec:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-escuro { background: var(--texto); color: #fff; }
.btn-escuro:hover { background: #000; }
.btn-borda { border-color: var(--texto); color: var(--texto); background: transparent; }
.btn-borda:hover { background: var(--texto); color: #fff; }
.btn-g { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-bloco { width: 100%; }
.btn svg use[href="#i-seta"] { transition: transform .2s; }
.btn:hover svg { transform: translateX(0); }
.link { background: none; border: 0; padding: 0; color: var(--laranja-esc); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* Faixa e topo */
.faixa { background: var(--preto); color: var(--suave-esc); font-size: 14px; border-bottom: 1px solid var(--linha-esc); }
.faixa-in { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.faixa-end { margin-left: auto; }
.faixa-tel { color: #fff; text-decoration: none; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #d6d9dd; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #6b7078; }
.status.aberto i { background: #3ccf6e; box-shadow: 0 0 0 4px rgba(60,207,110,.15); }
.status.fechado i { background: #e2231a; }
.status b { color: #fff; font-weight: 600; }

.topo { position: sticky; top: 0; z-index: 50; background: rgba(12,13,15,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linha-esc); }
.topo-in { display: flex; align-items: center; gap: 28px; height: var(--topo); }
.marca img { height: 50px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: #d6d9dd; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r); position: relative; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--laranja); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu a:hover, .menu a.ativo { color: #fff; }
.menu a:hover::after, .menu a.ativo::after { transform: scaleX(1); }
.topo-cta { min-height: 42px; padding: 0 16px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--linha-esc); background: none; border-radius: var(--r); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--preto); color: #fff; overflow: hidden; isolation: isolate; }
.hero-foto { position: absolute; inset: 0; z-index: -2; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,13,15,.94) 0%, rgba(12,13,15,.82) 42%, rgba(12,13,15,.45) 100%), linear-gradient(0deg, rgba(12,13,15,.9) 0%, transparent 35%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; padding-block: 88px 96px; min-height: min(760px, calc(100svh - var(--topo) - 38px)); }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.4rem); text-transform: uppercase; max-width: 12ch; }
.lead { font-size: 19px; color: #d6d9dd; max-width: 50ch; margin-top: 22px; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nota { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: #d6d9dd; text-decoration: none; font-size: 15px; }
.nota b { color: #fff; font-size: 17px; }
.nota:hover span:last-child { text-decoration: underline; }
.estrelas { color: #fbbc05; letter-spacing: 1px; font-size: 14px; }

.busca { background: #fff; color: var(--texto); border-radius: 10px; padding: 30px; box-shadow: 0 12px 32px -16px rgba(0,0,0,.55); }
.busca h2 { font-size: 1.75rem; }
.busca > p { color: var(--suave); margin: 8px 0 20px; font-size: 15px; }
.busca fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.busca legend, .campo > span, .campo > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.opcoes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.opcoes label { position: relative; }
.opcoes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcoes span { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--linha); border-radius: var(--r); font-weight: 600; font-size: 15px; transition: border-color .15s, background .15s, color .15s; }
.opcoes input:hover + span { border-color: #b9bcc0; }
.opcoes input:checked + span { border-color: var(--texto); background: var(--texto); color: #fff; }
.opcoes input:focus-visible + span { outline: 2px solid var(--laranja); outline-offset: 2px; }
.busca-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.campo { display: block; }
.campo input, .campo select, .campo textarea, .filtros select, .f-busca input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--linha); border-radius: var(--r); background: #fff; transition: border-color .15s; }
.campo select, .filtros select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315171a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--texto); outline: none; }
.campo textarea { resize: vertical; }
.campo.erro input, .campo.erro select { border-color: #d0312d; }
.erro-msg { display: block; color: #c0262d; font-size: 14px; min-height: 0; margin-top: 4px; }
.erro-msg:empty { display: none; }
.opc { color: var(--suave); font-weight: 400; }

/* Cabeçalhos de seção */
.cab { margin-bottom: 40px; }
.cab-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--linha); }

/* Estoque */
.estoque { background: var(--papel); padding-block: 96px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtros select { width: auto; min-width: 140px; }
.f-busca { position: relative; display: block; }
.f-busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--suave); }
.f-busca input { padding-left: 38px; width: 220px; }
.chip { min-height: 46px; padding: 0 16px; border: 1px solid var(--linha); background: #fff; border-radius: var(--r); font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--texto); border-color: var(--texto); color: #fff; }

.grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e6e6e1; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.35); }
.card-foto { position: relative; aspect-ratio: 4 / 3; background: #e9e9e5; border: 0; padding: 0; cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; opacity: 0; }
.card-foto img.ok { opacity: 1; }
.card:hover .card-foto img { transform: scale(1.04); }
.card-foto.sem-foto { cursor: default; background: radial-gradient(ellipse at 50% 40%, #23262c 0%, var(--preto) 75%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.card-foto.sem-foto img { width: 92px; height: auto; object-fit: contain; opacity: .55; }
.card:hover .card-foto.sem-foto img { transform: none; }
.card-foto.sem-foto span { color: var(--suave-esc); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.card-qtd { position: absolute; right: 10px; bottom: 10px; background: rgba(12,13,15,.75); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.card-tag { position: absolute; left: 10px; top: 10px; background: var(--laranja); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; }
.card-tag.res { background: var(--texto); }
.card-corpo { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.45rem; text-transform: uppercase; }
.card-dados { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--suave); font-size: 15px; margin-top: 8px; }
.card-dados span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #b5b8bc; vertical-align: middle; margin-right: 14px; }
.card-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.preco { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.85rem; line-height: 1; }
.preco small { display: block; font-family: Barlow, sans-serif; font-size: 12px; font-weight: 500; color: var(--suave); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.card-pe .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.esqueleto { min-height: 400px; background: linear-gradient(90deg, #ececE8 0%, #f6f6f3 50%, #ececE8 100%); background-size: 200% 100%; animation: brilho 1.4s linear infinite; border: 0; }
@keyframes brilho { to { background-position: -200% 0; } }
.vazio { padding: 32px 0; color: var(--suave); }
.vazio a { color: var(--laranja-esc); font-weight: 600; }
.mais { display: flex; justify-content: center; margin-top: 40px; }
.mais:has(> [hidden]) { display: none; }
.nao-achou { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--linha); }
.nao-achou h3 { font-size: 1.6rem; text-transform: uppercase; }
.nao-achou p { color: var(--suave); margin-top: 6px; max-width: 56ch; }
.nao-achou .busca { flex: 1 1 100%; margin-top: 8px; }

/* Financiamento e troca */
.comprar { padding-block: 96px; }
.comprar-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.servicos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.servicos li { padding: 26px 0; border-top: 1px solid var(--linha); display: flex; flex-direction: column; }
.servicos h3 { font-size: 1.55rem; text-transform: uppercase; }
.servicos p { color: var(--suave); margin: 10px 0 16px; }
.servicos a { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--laranja-esc); font-weight: 600; text-decoration: none; }
.servicos a svg { transition: transform .2s var(--ease); }
.servicos a:hover svg { transform: translateX(4px); }

/* A loja */
.loja { background: var(--preto); color: #fff; padding-block: 104px; overflow: hidden; }
.loja-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.loja-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.loja-fotos picture { overflow: hidden; border-radius: 8px; }
.loja-fotos img { width: 100%; height: 100%; object-fit: cover; }
.lf-1 { aspect-ratio: 3 / 4; }
.lf-2 { aspect-ratio: 3 / 3.4; transform: translateY(40px); }
.loja-txt p { color: #c4c8ce; margin-top: 18px; max-width: 56ch; }
.loja h2 { max-width: 16ch; }
.garantias { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 36px 0 36px; }
.garantias div { padding: 18px 0; border-top: 1px solid var(--linha-esc); }
.garantias dt { font-weight: 700; font-size: 17px; }
.garantias dd { margin: 6px 0 0; color: var(--suave-esc); font-size: 15px; }

/* Avaliações */
.avaliacoes { padding-block: 96px; background: var(--papel); }
.aval-in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.aval-nota { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.aval-nota b { font-family: "Barlow Condensed", sans-serif; font-size: 5rem; line-height: .9; }
.aval-nota .estrelas { font-size: 20px; }
.link-seta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; text-decoration: none; }
.link-seta:hover { text-decoration: underline; }
.aval-lista { display: grid; gap: 0; }
.aval-lista figure { margin: 0; padding: 32px 0; border-top: 1px solid var(--linha); }
.aval-lista figure:last-child { border-bottom: 1px solid var(--linha); }
.aval-lista blockquote { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; font-weight: 500; }
.aval-lista figcaption { margin-top: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.aval-lista figcaption span { color: var(--suave); font-size: 14px; }

/* Dúvidas */
.duvidas { padding-block: 96px; }
.duv-in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; }
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--texto); border-bottom: 2px solid var(--texto); transform: translateY(-75%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--laranja-esc); }
.faq details p { color: var(--suave); padding: 0 40px 24px 0; max-width: 64ch; }

/* Contato */
.contato { background: var(--grafite); color: #fff; padding-top: 96px; }
.contato-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-bottom: 72px; }
.form h2 { margin-bottom: 0; }
.form .sub { color: var(--suave-esc); margin-bottom: 28px; }
.form .campo { margin-bottom: 16px; }
.form .campo input, .form .campo select, .form .campo textarea { background: var(--grafite-2); border-color: rgba(255,255,255,.14); color: #fff; }
.form .campo select { background-repeat: no-repeat; background-position: right 12px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E"); }
.form .campo input:focus, .form .campo select:focus, .form .campo textarea:focus { border-color: #fff; }
.form .opc { color: var(--suave-esc); }
.form .erro-msg { color: #ff8a80; }
.form .campo.erro input, .form .campo.erro select { border-color: #ff8a80; }
.form .btn { margin-top: 8px; }
.contatos { list-style: none; margin: 0; padding: 0; }
.contatos li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--linha-esc); }
.contatos span { color: var(--suave-esc); font-size: 15px; }
.contatos a { text-decoration: none; font-weight: 600; }
.contatos a:hover { color: var(--laranja); }
.horas { width: 100%; border-collapse: collapse; margin-top: 36px; }
.horas caption { text-align: left; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 8px; }
.horas th, .horas td { padding: 12px 0; border-top: 1px solid var(--linha-esc); text-align: left; font-weight: 500; }
.horas td { text-align: right; color: #c4c8ce; }
.horas tr.hoje th, .horas tr.hoje td { color: var(--laranja); font-weight: 700; }
.mapa { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Rodapé */
.rodape { background: var(--preto); color: #c4c8ce; padding-top: 64px; font-size: 15px; }
.rodape-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.rod-marca img { height: 64px; width: auto; }
.rod-marca p { margin-top: 16px; max-width: 34ch; }
.rod-col { display: flex; flex-direction: column; gap: 10px; }
.rod-col a { text-decoration: none; }
.rod-col a:hover { color: #fff; }
.rod-base { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--linha-esc); color: #8a9098; }
.rod-base a { text-decoration: none; margin-right: 76px; }
.rod-base a:hover { color: #fff; }

/* WhatsApp flutuante e barra */
.wa-flut { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--verde-zap); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); transition: transform .2s var(--ease); }
.wa-flut:hover { transform: scale(1.06); }
.wa-flut svg { width: 30px; height: 30px; }
.barra { display: none; }

/* Galeria */
.galeria { width: min(100% - 24px, 1040px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 10px; background: var(--preto); color: #fff; overflow: hidden; }
.galeria::backdrop { background: rgba(0,0,0,.82); }
.galeria[open] { display: flex; flex-direction: column; animation: gal-in .3s var(--ease); }
@keyframes gal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.gal-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px; }
.gal-topo h3 { font-size: 1.6rem; text-transform: uppercase; }
.gal-topo p { color: var(--suave-esc); font-size: 15px; margin-top: 4px; }
.gal-fechar { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linha-esc); background: none; border-radius: var(--r); cursor: pointer; }
.gal-palco { position: relative; background: #000; flex: 1; min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.gal-palco img { width: 100%; max-height: calc(100dvh - 220px); object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--texto); cursor: pointer; }
.gal-nav svg { width: 22px; height: 22px; }
.gal-ant { left: 14px; } .gal-prox { right: 14px; }
.gal-cont { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(12,13,15,.75); padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.gal-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.gal-base b { margin-right: auto; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; }

/* Abertura: painel com a marca; conta-giros acende e o painel sobe como portão */
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.abertura { display: none; }
.com-abertura .abertura { display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: auto; }
.ab-painel { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, #1b1d22 0%, var(--preto) 62%); display: grid; place-items: center; animation: ab-sobe 1s cubic-bezier(.76,0,.24,1) 2.85s forwards; will-change: transform; }
.ab-borda { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--laranja) 30%, #ffb26b 50%, var(--laranja) 70%, transparent); opacity: 0; animation: ab-borda .5s ease 2.6s forwards; }
.ab-marca { position: relative; width: 230px; aspect-ratio: 230 / 200; animation: ab-marca-sai .7s cubic-bezier(.5,0,.75,0) 2.7s forwards; }
.ab-marca img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-letras { opacity: 0; transform: scale(.94); filter: blur(6px); animation: ab-letras .7s var(--ease) .15s forwards; }
.ab-arcos { -webkit-mask: conic-gradient(from -28deg at 64% 55%, #000 var(--giro), transparent 0); mask: conic-gradient(from -28deg at 64% 55%, #000 var(--giro), transparent 0); animation: ab-giro 1.15s cubic-bezier(.3,.1,.2,1) .7s forwards; }
.ab-brilho { position: absolute; inset: -20% -40%; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); mix-blend-mode: overlay; transform: translateX(-100%); animation: ab-brilho .8s ease-in-out 1.95s forwards; -webkit-mask: url(img/mg-logo.png) center / 55.5556% 71.4286% no-repeat; mask: url(img/mg-logo.png) center / 55.5556% 71.4286% no-repeat; }
@keyframes ab-letras { to { opacity: 1; transform: none; filter: none; } }
@keyframes ab-giro { 0% { --giro: 0deg; } 62% { --giro: 165deg; } 78% { --giro: 132deg; } 100% { --giro: 165deg; } }
@keyframes ab-brilho { to { transform: translateX(100%); } }
@keyframes ab-marca-sai { to { transform: translateY(-36px) scale(.96); opacity: 0; } }
@keyframes ab-borda { to { opacity: 1; } }
@keyframes ab-sobe { to { transform: translate3d(0, -100%, 0); } }
.abertura.fim { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.com-abertura { --capa: 3.25s; }
.sem-abertura { --capa: .05s; }

/* Entrada do hero */
.js .hero-txt > *, .js .busca { opacity: 0; transform: translateY(18px); animation: subir .8s var(--ease) forwards; animation-delay: calc(var(--capa) + var(--i, 0) * 90ms); }
.js .hero-foto img { transform: scale(1.08); animation: aproxima 2.4s var(--ease) forwards; animation-delay: calc(var(--capa) - .6s); }
@keyframes subir { to { opacity: 1; transform: none; } }
@keyframes aproxima { to { transform: scale(1); } }

/* Revelar ao rolar */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--atraso, 0ms); }
.js .rv.visto { opacity: 1; transform: none; }
.js .loja-fotos.rv picture img { transform: scale(1.08); transition: transform 1.2s var(--ease); }
.js .loja-fotos.rv.visto picture img { transform: none; }

/* Responsivo */
@media (max-width: 1080px) {
  .menu a { padding: 8px 8px; font-size: 14px; }
  .hero-in { gap: 40px; }
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --topo: 66px; }
  .menu { position: fixed; left: 0; right: 0; top: var(--topo); flex-direction: column; gap: 0; background: var(--preto); padding: 8px 20px 20px; border-bottom: 1px solid var(--linha-esc); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .menu.aberto { opacity: 1; transform: none; visibility: visible; }
  .menu a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--linha-esc); border-radius: 0; }
  .menu a::after { display: none; }
  .menu-btn { display: flex; }
  .topo-cta { margin-left: auto; }
  .marca img { height: 42px; }
  .hero-in { grid-template-columns: 1fr; padding-block: 56px 64px; min-height: 0; }
  .busca { max-width: 560px; }
  .comprar-in, .loja-in, .aval-in, .duv-in, .contato-in { grid-template-columns: 1fr; gap: 40px; }
  .loja-fotos { order: 2; }
  .lf-2 { transform: translateY(24px); }
  .cab-linha { align-items: flex-start; flex-direction: column; }
  .filtros { width: 100%; }
  .f-busca { flex: 1 1 100%; }
  .f-busca input { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .faixa-end, .faixa-tel { display: none; }
  .topo-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .hero-in { padding-block: 44px 48px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .lead { font-size: 17px; }
  .hero-acoes .btn { width: 100%; }
  .nao-achou { flex-direction: column; align-items: stretch; }
  .nao-achou .btn { width: 100%; }
  .nao-achou:has(.busca) > .btn { display: none; }
  .nao-achou .busca { box-shadow: none; border: 1px solid var(--linha); padding-top: 18px; }
  .nao-achou .busca > h2, .nao-achou .busca > p { display: none; }
  .gal-base { flex-wrap: wrap; }
  .gal-base b { flex: 1 1 100%; }
  .busca { padding: 22px; }
  .opcoes { grid-template-columns: repeat(3, 1fr); }
  .busca-linha { grid-template-columns: 1fr; }
  .estoque, .comprar, .avaliacoes, .duvidas { padding-block: 64px; }
  .loja { padding-block: 72px 88px; }
  .contato { padding-top: 64px; }
  .filtros > label:not(.f-busca) { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filtros select { width: 100%; min-width: 0; }
  .chip { flex: 1 1 100%; }
  .grade { grid-template-columns: 1fr; gap: 16px; }
  .servicos { grid-template-columns: 1fr; }
  .garantias { grid-template-columns: 1fr; }
  .contatos li { grid-template-columns: 1fr; gap: 2px; }
  .rodape-in { grid-template-columns: 1fr 1fr; }
  .rod-marca { grid-column: 1 / -1; }
  .rod-base a { margin-right: 0; }
  .wa-flut { display: none; }
  .barra { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--preto); border-top: 1px solid var(--linha-esc); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .barra a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r); text-decoration: none; font-weight: 600; color: #fff; border: 1px solid var(--linha-esc); }
  .barra .barra-wa { background: var(--verde-zap); border-color: var(--verde-zap); }
  .gal-palco img { max-height: 60dvh; }
  .gal-nav { width: 40px; height: 40px; }
  .gal-base .btn { flex: 1; }
  .ab-marca { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .hero-txt > *, .js .busca, .js .rv { opacity: 1; transform: none; }
}
