/* v23.28.2 — Auditoria visual mobile: cabeçalho e menu.
   Problema: o cabeçalho usava backdrop-filter, o que o transforma em "bloco de contenção"
   do menu position:fixed. O menu ficava com a altura do cabeçalho (68px) e os links
   (Projetos, Sobre, Acervo, Vamos conversar, EN) vazavam para fora da tela.
   Solução: o desfoque passa para um pseudo-elemento, e o menu volta a cobrir a tela inteira. */
@media (max-width: 860px) {
  html body .site-header,
  html body.has-scrolled .site-header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
    contain: none !important;
    will-change: auto !important;
  }
  html body .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }

  html body#white-text-site .main-nav {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 92 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: calc(var(--header-h, 68px) + 24px) 28px 40px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    background: rgba(7, 14, 17, .97) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  html body#white-text-site .main-nav:not(.open) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html body#white-text-site .main-nav.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  html body#white-text-site .main-nav > a:not(.nav-contact) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(100%, 320px);
    min-height: 54px !important;
    padding: 0 12px;
    font-size: 1.15rem !important;
    letter-spacing: .14em;
    border-bottom: 1px solid rgba(238, 230, 211, .10);
  }
  html body#white-text-site .main-nav > a:not(.nav-contact)::after { display: none !important; }
  html body#white-text-site .main-nav > a[hidden] { display: none !important; }
  /* A Loja tem atalho próprio no cabeçalho, mas dentro do menu ela também precisa existir
     (no desktop ela faz parte da navegação). */
  html body#white-text-site .main-nav.open > #nav-store,
  html body#white-text-site .main-nav.open > a[href="/loja"] { display: flex !important; }
  html body#white-text-site .main-nav > .nav-contact {
    width: min(100%, 320px);
    margin-top: 22px !important;
    min-height: 52px !important;
    justify-content: center !important;
  }
  html body#white-text-site .main-nav > #language-toggle {
    margin: 18px auto 0 !important;
    min-width: 46px;
    min-height: 46px;
  }
  /* Marca, atalho da Loja e botão do menu ficam sempre acima do painel. */
  html body#white-text-site .site-header > .wordmark,
  html body#white-text-site .site-header > .menu-toggle { position: relative; z-index: 96; }
  html body#white-text-site .site-header > .mobile-store-shortcut { position: relative; z-index: 96; }
  html body:has(.main-nav.open) { overflow: hidden; }
}

/* Carrossel 3D de ilustrações no celular: legendas dos cartões laterais ficavam
   sobrepostas e borradas (cartões inclinados em 3D). Só o cartão central mostra legenda. */
@media (max-width: 680px) {
  #ilustracoes .illustration-3d-card[aria-current="false"] .illustration-meta { opacity: 0 !important; visibility: hidden; }
  #ilustracoes .illustration-3d-card[aria-current="true"] .illustration-meta { opacity: 1 !important; gap: 12px; }
  #ilustracoes .illustration-3d-card .illustration-index { flex: 0 0 auto; }
}
/* Telas muito estreitas: o atalho Loja deve continuar visível ao lado do menu. */
@media (max-width: 380px) {
  html body#white-text-site .site-header > .wordmark.wordmark-full { flex: 1 1 0 !important; min-width: 0 !important; overflow: hidden; }
  html body#white-text-site .site-header > .mobile-store-shortcut {
    display: inline-flex !important; flex: 0 0 auto !important;
    min-height: 36px !important; padding-inline: 10px !important; font-size: .64rem !important;
  }
  html body#white-text-site .site-header > .wordmark.wordmark-full { font-size: .62rem !important; letter-spacing: .01em !important; }
}
