/* =========================================================
   Menu mobile da Vinci (≤ 991px)
   Carregado por navegacao.php — vale para todas as páginas.
   Painel fullscreen sólido (#2D2D2D, mesma cor do header
   editorial); laranja só como acento.
   ========================================================= */

/* Hamburger do header virou <button>: zera o estilo nativo */
button.botao-responsivo {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px;
  margin-right: -4px;
  line-height: 0;
  color: inherit;
  border-radius: 4px;
}
button.botao-responsivo .bar1,
button.botao-responsivo .bar2,
button.botao-responsivo .bar3 { display: block; }
button.botao-responsivo:focus { outline: none; }
button.botao-responsivo:focus-visible { outline: 2px solid #F38233; outline-offset: 3px; }

/* Scroll lock */
html.vnm-lock,
body.vnm-lock { overflow: hidden !important; }
body.vnm-lock { touch-action: none; }

/* Reset de regras globais de header.css (`nav`, `nav ul`) que
   vazavam para o painel: position:absolute, height:90px, float:right. */
.vnm-panel nav,
.vnm-body {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  border: 0 !important;
  float: none !important;
  overflow: visible;
  background: transparent !important;
}
.vnm-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.vnm-panel ul {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.vnm-panel li {
  float: none !important;
  display: block !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

/* ---------- Painel ---------- */
.vnm-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000; /* acima do botão flutuante de WhatsApp */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #2D2D2D;
  color: #f2f2f2;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  text-align: left;
}
.vnm-panel[hidden] { display: none !important; }
.vnm-panel.is-open { opacity: 1; transform: none; }

@media (min-width: 992px) {
  .vnm-panel { display: none !important; }
}

.vnm-panel *,
.vnm-panel *::before,
.vnm-panel *::after { box-sizing: border-box; }

.vnm-panel ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Barra superior ---------- */
.vnm-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vnm-logo { display: inline-flex; align-items: center; }
.vnm-logo img { display: block; max-height: 48px; width: auto; }

.vnm-close {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
@media (hover: hover) {
  .vnm-close:hover { border-color: #F38233; color: #F38233; }
}

/* ---------- Lista rolável ---------- */
.vnm-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 0 16px;
  scrollbar-width: none;
}
.vnm-body::-webkit-scrollbar { display: none; }

.vnm-list > li { border-bottom: 1px solid rgba(255,255,255,.07); }

.vnm-link,
.vnm-acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #f2f2f2 !important;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, background-color .15s ease;
}
.vnm-acc { -webkit-appearance: none; appearance: none; }

@media (hover: hover) {
  .vnm-link:hover,
  .vnm-acc:hover { color: #F38233 !important; }
}

.vnm-link.is-current { color: #fff !important; font-weight: 700; box-shadow: inset 3px 0 0 #F38233; }
.vnm-acc.is-section > span:first-child { font-weight: 700; }

.vnm-acc[aria-expanded="true"] { font-weight: 700; color: #fff !important; }

/* Chevron */
.vnm-chev {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 0 4px 4px 16px;
  border-right: 2px solid #F38233;
  border-bottom: 2px solid #F38233;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.vnm-acc[aria-expanded="true"] .vnm-chev { transform: rotate(-135deg); margin-bottom: -4px; }

/* Nível 2 (dentro de Serviços) */
.vnm-sub { background: rgba(0,0,0,.18); padding: 4px 0 8px; }
.vnm-sub[hidden] { display: none !important; }
.vnm-sub .vnm-link,
.vnm-sub .vnm-acc {
  min-height: 48px;
  padding-left: 36px;
  font-size: 16px;
  color: #d9d9d9 !important;
}
.vnm-sub .vnm-acc[aria-expanded="true"] { color: #fff !important; }

/* Nível 3 */
.vnm-sub-l3 { background: transparent; padding: 0 0 6px; }
.vnm-sub .vnm-sub-l3 .vnm-link {
  min-height: 46px;
  padding-left: 52px;
  font-size: 15px;
  color: #c4c4c4 !important;
}
@media (hover: hover) {
  .vnm-sub .vnm-link:hover,
  .vnm-sub .vnm-acc:hover { color: #F38233 !important; }
}
.vnm-sub .vnm-link.is-current { color: #fff !important; }

/* ---------- CTA fixo ---------- */
.vnm-foot {
  flex: 0 0 auto;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,.08);
  background: #2D2D2D;
}
.vnm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  background: #F38233;
  color: #fff !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background-color .15s ease;
}
.vnm-cta:focus { background: #d96e1f; color: #fff !important; }
@media (hover: hover) {
  .vnm-cta:hover { background: #d96e1f; color: #fff !important; }
}

/* ---------- Foco visível ---------- */
.vnm-panel a:focus,
.vnm-panel button:focus { outline: none; }
.vnm-panel a:focus-visible,
.vnm-panel button:focus-visible {
  outline: 2px solid #F38233;
  outline-offset: -2px;
}
.vnm-close:focus-visible,
.vnm-cta:focus-visible,
.vnm-logo:focus-visible { outline-offset: 3px; }
.vnm-cta:focus-visible { outline-color: #fff; }

/* Telas baixas (celular deitado) */
@media (max-height: 450px) {
  .vnm-top { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
  .vnm-logo img { max-height: 40px; }
  .vnm-foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .vnm-panel,
  .vnm-chev,
  .vnm-link,
  .vnm-acc,
  .vnm-close,
  .vnm-cta { transition: none !important; }
  .vnm-panel { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .botao-responsivo .bar1,
  .botao-responsivo .bar2,
  .botao-responsivo .bar3 { transition: none !important; }
}
