/*
  ================================================================
  HEADER — GLASSMORPHISM + MEGAMENU COM ÍCONES
  ================================================================
  - Sobre:     logo com animação + links institucionais
  - Produtos:  grid de ícones 3 acima / 2 abaixo, Kits no meio
  - Serviços:  3 ícones em linha (vibração parcial/total + cor)
  - Contatos:  3 ícones em linha (celular, carta, WhatsApp)
  - Explore:   cascata dinâmica por hover (desktop) e accordion
               multinível (mobile)
  - Hover dos ícones: 4 pulsadas rápidas de blur(5px) + scale(1.05);
    ao finalizar, traços/rótulos ficam laranja com brilho
    (equivalente a box-shadow: 0 0 15px 5px rgba(245,132,53,.5)).
  ================================================================
*/

/* ---------- VARIÁVEIS ---------- */
:root {
  --glass-bg: rgba(40, 40, 40, 0.38);
  --glass-bg-hover: rgba(50, 50, 50, 0.48);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --glass-blur: 10px;
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --accent: #F58435;
  /* Duração da vibração dos ícones (4 pulsadas) */
  --uv-vib-duration: 0.7s;
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  /* Brilho laranja pós-vibração (mesmo glow do .selected-item da home) */
  --uv-glow: 0 0 15px 5px rgba(245, 132, 53, 0.5);
  /* Opacidade dos selecionados-acima no Explore mobile (afinar no preview) */
  --uv-explore-path-fade: 0.6;
}

/* ---------- HEADER PRINCIPAL (vidro) ---------- */
.header {
  position: fixed;
  top: 40px;
  left: 40px;
  width: calc(100% - 80px);
  z-index: 9999;

  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 80px;
  grid-auto-rows: 0;
  gap: 0 20px;

  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);

  transition:
    grid-template-rows var(--transition-smooth),
    background-color 0.3s ease,
    box-shadow 0.3s ease;

  overflow: hidden;
}

.header.megamenu-open {
  background-color: var(--glass-bg-hover);
  grid-template-rows: 80px 1fr;
}

/* ---------- LOGO ---------- */
.logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.grid {
  overflow: visible;
}

.icon {
  height: 40px;
  margin-top: 8px;
  overflow: visible !important;
}

/* ---------- BOTÃO HAMBÚRGUER (mobile) ---------- */
.hamburger {
  display: none;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin-right: 24px;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.header.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- MENU PRINCIPAL (desktop) ---------- */
.menu {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin-right: 24px;
}

.menu-list {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-list li a {
  color: var(--text-primary);
  font-size: var(--uv-fs-base);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 4px;
  transition: color 300ms ease, opacity 300ms ease;
  height: fit-content;
  opacity: 0.45;
}

.header:hover .menu-list li a,
.header:focus .menu-list li a {
  opacity: 1;
}

.sobre-links li a :hover,
.sobre-links li a :focus,
.menu-list li a:hover,
.menu-list li a:focus {
  color: var(--accent);
  outline: none;
  text-shadow: 0 0 4px rgba(245, 132, 53, 0.3);
}

.menu-item.has-megamenu > a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin-top: 4px;
  background-color: var(--accent);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
}

.menu-item.has-megamenu:hover > a::after,
.menu-item.has-megamenu.active > a::after {
  width: 100%;
}

/* ---------- PAINEL DE MEGAMENU ---------- */
.megamenu-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  overflow: hidden;
  width: 100%;
  padding: clamp(16px, 2.5vw, 28px) clamp(24px, 4vw, 48px) clamp(20px, 3vw, 36px);
  box-sizing: border-box;
}

.megamenu-content {
  display: none;
  width: 100%;
  animation: fadeIn 0.35s ease forwards;
}

.megamenu-content.active {
  display: flex;
  justify-content: center;
}

/* Listas genéricas dentro dos painéis (usadas pelos clones mobile) */
.megamenu-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ================================================================
   PAINEL SOBRE — LOGO NO MENU + LINKS
   ================================================================ */
.sobre-wrap {
  display: flex;
  align-items: center;
  gap: var(--uv-space-xl);
  flex-wrap: wrap;
}

.logo-menu {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Mesma logo do header, mesma interação (animações no fim do arquivo) */
.logo-menu .icon {
  height: clamp(44px, 4.5vw, 60px);
  margin-top: 0;
}

.sobre-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--uv-space-xs);
}

.sobre-links a {
  display: inline-block;
  color: var(--text-muted);
  font-size: var(--uv-fs-lg);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sobre-links a:hover,
.sobre-links a:focus {
  color: var(--accent);
  transform: translateX(6px);
  outline: none;
}

/* ================================================================
   PAINÉIS DE ÍCONES (PRODUTOS / SERVIÇOS / CONTATOS)
   ================================================================ */
.mm-icons {
  display: grid;
  gap: var(--uv-space-md) var(--uv-space-sm);
  justify-content: center;
  align-items: stretch;
}

/* Produtos: 3 em cima (Kits no meio) e 2 embaixo centralizados */
.mm-icons-produtos {
  grid-template-columns: repeat(6, minmax(96px, 140px));
}

.mm-icons-produtos .mm-icon-item:nth-child(1) { grid-column: 1 / 3; }
.mm-icons-produtos .mm-icon-item:nth-child(2) { grid-column: 3 / 5; }
.mm-icons-produtos .mm-icon-item:nth-child(3) { grid-column: 5 / 7; }
.mm-icons-produtos .mm-icon-item:nth-child(4) { grid-column: 2 / 4; }
.mm-icons-produtos .mm-icon-item:nth-child(5) { grid-column: 4 / 6; }

/* Serviços / Contatos: todos em uma linha */
.mm-icons-row {
  grid-template-columns: repeat(3, minmax(150px, 240px));
}

.mm-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--uv-space-sm);
  padding: var(--uv-space-sm) var(--uv-space-xs);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.mm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  /* Brilho entra após a vibração (transition-delay = duração) */
  filter: drop-shadow(0 0 0 rgba(245, 132, 53, 0));
  transition: filter 0.3s ease;
}

.mm-icon svg {
  width: auto;
  height: clamp(44px, 4vw, 60px);
  color: var(--text-primary);
  transition: color 0.3s ease;
  transform-origin: 50% 50%;
}

/* Rótulo abaixo do ícone */
.mm-label {
  font-size: var(--uv-fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Traços de conexão mais finos (cabos, rig do line array) */
.mm-icon svg .mm-thin {
  stroke-width: 1.5;
}

/* Elementos preenchidos (notch do celular) seguem a cor do SVG */
.mm-icon svg .mm-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- HOVER: VIBRAÇÃO + ESTADO FINAL LARANJA ---------- */

/* 4 pulsadas rápidas de blur(5px) + scale(1.05), simulando vibração de som */
@keyframes uv-vibrate {
  0%, 100% { filter: blur(0); transform: scale(1); }
  8%  { filter: blur(2px); transform: scale(1.05); }
  16% { filter: blur(0);   transform: scale(1); }
  24% { filter: blur(2px); transform: scale(1.05); }
  32% { filter: blur(0);   transform: scale(1); }
  40% { filter: blur(2px); transform: scale(1.05); }
  48% { filter: blur(0);   transform: scale(1); }
  56% { filter: blur(2px); transform: scale(1.05); }
  64% { filter: blur(0);   transform: scale(1); }
}

/* Ícone vibra; ao finalizar fica laranja com brilho (delay = vibração) */
.mm-icon-item:hover .mm-icon svg,
.mm-icon-item:focus-visible .mm-icon svg {
  animation: uv-vibrate var(--uv-vib-duration) linear 1;
  color: var(--accent);
  transition: color 0.35s ease var(--uv-vib-duration);
}

/* Brilho no wrapper (drop-shadow segue a forma do SVG) */
.mm-icon-item:hover .mm-icon,
.mm-icon-item:focus-visible .mm-icon {
  filter: drop-shadow(0 0 15px rgba(245, 132, 53, 0.5));
  transition: filter 0.35s ease var(--uv-vib-duration);
}

/* O rótulo também vibra e fica laranja com glow ao final */
.mm-icon-item:hover .mm-label,
.mm-icon-item:focus-visible .mm-label {
  animation: uv-vibrate var(--uv-vib-duration) linear 1;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(245, 132, 53, 0.5);
  transition: color 0.35s ease var(--uv-vib-duration),
    text-shadow 0.35s ease var(--uv-vib-duration);
}

/* ---------- SERVIÇO 1: APENAS O SOM VIBRA ---------- */
.mm-icon svg .vib-part {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* O SVG do ajuste não vibra inteiro (notebook parado) */
.mm-icon-item:hover .mm-icon svg.icon-ajuste,
.mm-icon-item:focus-visible .mm-icon svg.icon-ajuste {
  animation: none;
}

/* Só a caixa de som (e seu alto-falante) vibra */
.mm-icon-item:hover .icon-ajuste .vib-part,
.mm-icon-item:focus-visible .icon-ajuste .vib-part {
  animation: uv-vibrate var(--uv-vib-duration) linear 1;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* ---------- SERVIÇO 3: KNOBS E FADERS MUDAM DE COR ---------- */
.icon-consultoria .mm-knob,
.icon-consultoria .mm-fader {
  fill: var(--text-primary);
  stroke: none;
  transition: fill 0.3s ease;
}

/* Trilhos transparentes (riscos) acompanham a cor com transparência */
.icon-consultoria .mm-track {
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.35;
}

/* Na interação, botões e controles mudam de cor imediatamente */
.mm-icon-item:hover .icon-consultoria .mm-knob,
.mm-icon-item:hover .icon-consultoria .mm-fader,
.mm-icon-item:focus-visible .icon-consultoria .mm-knob,
.mm-icon-item:focus-visible .icon-consultoria .mm-fader {
  fill: var(--accent);
}

/* ================================================================
   PAINEL EXPLORE — CASCATA DINÂMICA (DESKTOP)
   ================================================================ */

/* Reserva altura para os dropdowns sem quebrar a animação do header */
.megamenu-content[data-menu="explore"] {
  min-height: 360px;
}

.explore-wrap {
  position: relative;
}

/* Nível 1: linha de abas */
.explore-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--uv-space-xs) var(--uv-space-sm);
  list-style: none;
  margin: 0;
  padding: 0 0 var(--uv-space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-item {
  position: relative;
}

.explore-list > .explore-item > a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: var(--uv-fs-base);
  font-weight: 600;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.explore-list > .explore-item > a:hover,
.explore-list > .explore-item > a:focus {
  color: var(--accent);
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Seta indicadora de submenu */
.explore-item.has-children > a::after {
  content: '›';
  display: inline-block;
  margin-left: 8px;
  opacity: 0.5;
  transition: transform 300ms ease;
}

.explore-item.has-children:hover > a::after {
  transform: translateX(3px);
  color: var(--accent);
  opacity: 1;
}

/* Dropdowns (nível 2+): vidro escuro flutuante */
.explore-sub {
  position: absolute;
  min-width: 230px;
  max-width: 300px;
  list-style: none;
  margin: 0;
  padding: 10px;
  background: rgba(22, 22, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  z-index: 10;
}

/* Nível 2: dropdown abaixo da aba */
.explore-list > .explore-item > .explore-sub {
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(-6px);
}

/* Nível 3+: flyout à direita */
.explore-sub .explore-sub {
  top: -11px;
  left: calc(100% + 6px);
  transform: translateX(-6px);
}

/*
  Listas de folha (produtos, páginas sem filhos) rolam se ficarem
  longas. Listas que geram níveis mais profundos (nível 4+) não
  recebem rolagem para não cortar os flyouts que elas contêm.
*/
.explore-sub .explore-sub:not(:has(.explore-item.has-children)) {
  max-height: 280px;
  overflow-y: auto;
}

/* Abertura por hover (com foco por teclado) */
.explore-list > .explore-item:hover > .explore-sub,
.explore-list > .explore-item:focus-within > .explore-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.explore-sub .explore-item:hover > .explore-sub,
.explore-sub .explore-item:focus-within > .explore-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* Itens dentro dos dropdowns */
.explore-sub a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: var(--uv-fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.explore-sub a:hover,
.explore-sub a:focus {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Dica exibida quando nenhum dropdown está aberto */
.explore-hint {
  margin: 0;
  padding: var(--uv-space-lg) 8px;
  color: var(--text-muted);
  font-size: var(--uv-fs-sm);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.explore-wrap:not(:has(.explore-item:hover)) .explore-hint {
  opacity: 0.55;
}

/* Animação de fade-in ao trocar de megamenu */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   MEGAMENU MOBILE (ACCORDION)
   ================================================================
   No mobile, o JavaScript clona o conteúdo do .megamenu-panel para
   dentro de cada .menu-item como .megamenu-mobile. Sem ícones:
   apenas rótulos em dropdown abaixo do item principal.
   ================================================================ */
.megamenu-mobile {
  display: none;
  padding: 10px 0 10px 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.megamenu-mobile.open {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease forwards;
}

.megamenu-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.megamenu-mobile li a {
  color: var(--text-muted);
  font-size: var(--uv-fs-base);
  text-decoration: none;
}

/* Sem ícones no mobile: só os rótulos */
.megamenu-mobile .mm-icon,
.megamenu-mobile .logo-menu {
  display: none;
}

.megamenu-mobile .mm-icon-item {
  display: block;
  padding: 10px 0px 10px;
  border-radius: 0;
  color: var(--text-muted);
}

.megamenu-mobile .mm-label {
  display: inline;
  color: inherit;
  font-size: var(--uv-fs-base);
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

/* Sem vibração/glow no mobile */
.megamenu-mobile .mm-icon-item:hover .mm-label,
.megamenu-mobile .mm-icon-item:focus-visible .mm-label {
  animation: none;
  text-shadow: none;
}

/* ---------- EXPLORE NO MOBILE: PILHA VERTICAL POR CAMADAS ----------
   Sem recuo e sem borda esquerda: as camadas se distinguem pela
   opacidade (estados no bloco mobile, adiante). Itens disponíveis
   para seleção com padding 20px (topo/bottom) e linha divisória no
   próprio link, para esmaecer junto com o texto. O item aberto sobe
   para o topo da camada (order: -1 + deslizamento FLIP no JS).
------------------------------------------------------------------ */
.megamenu-mobile .explore-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  border-bottom: none;
  width: 100%;
}

/* Todos os links do Explore (nível 1 e subníveis): planos e centrados */
.megamenu-mobile .explore-list > .explore-item > a,
.megamenu-mobile .explore-sub a {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: var(--text-primary);
  font-size: var(--uv-fs-base);
  font-weight: 600;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  opacity: 1;
  transition: color 300ms ease, opacity 350ms ease;
}

.megamenu-mobile .explore-list > .explore-item > a:last-child,
.megamenu-mobile .explore-sub a:last-child,
.megamenu-mobile .explore-sub > li:last-child,
.sobre-links > li:last-child {
  border-bottom: none;
}

/* Nível 1 continua sem seta (escolha de design mantida) */
.megamenu-mobile .explore-list > .explore-item > a::after {
  display: none;
}

/* Seta dos subníveis gira quando o item abre */
.megamenu-mobile .explore-sub .explore-item.open > a::after {
  transform: rotate(90deg);
  color: var(--accent);
  opacity: 1;
}

.megamenu-mobile.open > .explore-wrap .explore-list > .explore-item.open.has-children > a {
  padding-top: 0;
}

/* Subníveis: planos, largura total, sem recuo */
.megamenu-mobile .explore-sub {
  position: static;
  display: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: 0;
  margin: 20px 0 20px;
  padding: 0;
  gap: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

/* Aberto: flex column habilita a reordenação (order) */
.megamenu-mobile .explore-item.open > .explore-sub {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease forwards;
}

/* Item aberto sobe para o topo da camada dele */
.megamenu-mobile .explore-list > .explore-item.open,
.megamenu-mobile .explore-sub > .explore-item.open {
  order: -1;
}

.megamenu-mobile .explore-hint {
  display: none;
}

/* ================================================================
   RESPONSIVO: MOBILE
   ================================================================ */
@media (max-width: 767px) {


  .header {
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: 60px 0fr;
    overflow: hidden;
  }

  .header.menu-open {
    grid-template-rows: 80px 1fr;
  }

  .header.megamenu-open {
    grid-template-rows: 80px 0fr;
  }

  .hamburger {
    display: flex;
  }

  .logo {
    grid-column: 2;
    margin-left: 16px;
  }

  .icon {
    height: 30px;
    margin-top: 8px;
  }

  .menu {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    width: 100%;
    max-height: calc(100vh - 120px);
    margin: 0;
    padding: 0 16px 20px;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .header.menu-open .menu {
    display: block;
    animation: fadeIn 0.3s ease forwards;
  }

  .menu-list {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .menu-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
  }
  .menu-list > .menu-item {
    border-bottom: none;
  }

  .menu-list li a {
    display: block;
    padding: 12px 4px;
    font-size: var(--uv-fs-base);
    height: auto;
  }

  .megamenu-mobile.open {
    border: none;
    border-top: 1px rgba(255, 255, 255, 0.2) solid;
    width: 100%;
  }
  .sobre-wrap > ul,
  .mm-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0 10px;
    width: 100%;
  }

  .sobre-wrap > .sobre-links > li > a,
  .mm-icons .mm-label {
    font-size: 13px;
    font-weight: 500;
  }
  .mm-icon-item {
    padding: 10px 0 10px;
    width: 100%;
    text-align: center;
  }

  .megamenu-mobile.open .mm-icons {
    gap:0;
  }
  
  .mm-icon-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Remove o indicador de hover desktop no mobile */
  .menu-item.has-megamenu > a::after {
    display: none;
  }

  .sobre-wrap > ul {
    width: 100%;
    text-align: center;
    gap: 0;
    padding:0;
  }

  .sobre-wrap > ul > li a {
    padding: 10px 0 10px;
  }

  /* ---------- ESTADOS DE COR (SPEC MOBILE) ----------
     disponível .... branco 100% de opacidade
     hover ......... laranja
     aberto ........ laranja mais opaco
     não selecionado (com outro aberto) ... branco opaco
  -------------------------------------------------- */

  /* Disponíveis: branco 100% */
  .header.menu-open .menu-list > li > a {
    color: var(--text-primary);
    opacity: 1;
  }

  .menu-list li a {
    opacity: 1;
  }

  /* Hover: laranja */
  .menu-list > li > a:hover,
  .menu-list > li > a:focus {
    color: var(--accent);
    opacity: 1;
  }

  /* Clicado e aberto: laranja mais opaco */
  .menu-list > li.menu-item.accordion-open > a {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(245, 132, 53, 0.3);
    opacity: 1;
    font-size: 16px;
  }

  /* Não selecionados quando há um dropdown aberto: branco opaco */
  .menu-list:has(.accordion-open) > li:not(.accordion-open) > a {
    color: var(--text-primary);
    opacity: 0.2;
  }

  /* Hover continua laranja mesmo sobre itens esmaecidos */
  .menu-list:has(.accordion-open) > li:not(.accordion-open) > a:hover {
    color: var(--accent);
    opacity: 1;
  }

  /* ---------- ESTADOS DO EXPLORE MOBILE (POR CAMADA) ----------
     selecionado (atual) ........ branco, 16px, neon, opacidade 1
     selecionado acima (caminho) . mesmo neon, opacidade 0.6
     não selecionado (camada atual) ........ 0.4
     não selecionado (camadas de cima) ...... 0.2
     hover .......................... laranja cheio
  ------------------------------------------------------------- */

  /* Selecionado atual: o mais fundo do caminho aberto (efeito neon) */
  .megamenu-mobile .explore-item.open:not(:has(.explore-item.open)) > a {
    color: var(--text-primary);
    font-size: 16px;
    text-shadow: 0 0 5px rgba(245, 132, 53, 0.3);
    opacity: 0.8;
  }

  /* Selecionados acima (caminho percorrido): neon esmaecido */
  .megamenu-mobile .explore-item.open:has(.explore-item.open) > a {
    color: var(--text-primary);
    font-size: 16px;
    text-shadow: 0 0 5px rgba(245, 132, 53, 0.3);
    opacity: var(--uv-explore-path-fade);
  }

  /* Não selecionados da camada atual: 0.4 */
  .megamenu-mobile .explore-list:has(> .explore-item.open) > .explore-item:not(.open) > a,
  .megamenu-mobile .explore-sub:has(> .explore-item.open) > .explore-item:not(.open) > a {
    color: var(--text-primary);
    opacity: 0.4;
  }

  /* Não selecionados das camadas de cima (navegação mais funda): 0.2 */
  .megamenu-mobile .explore-list:has(> .explore-item.open > .explore-sub .explore-item.open) > .explore-item:not(.open) > a {
    opacity: 0.2;
  }

  /* Hover em não selecionado: laranja cheio */
  .megamenu-mobile .explore-list:has(> .explore-item.open) > .explore-item:not(.open) > a:hover,
  .megamenu-mobile .explore-sub:has(> .explore-item.open) > .explore-item:not(.open) > a:hover,
  .megamenu-mobile .explore-list:has(> .explore-item.open > .explore-sub .explore-item.open) > .explore-item:not(.open) > a:hover {
    color: var(--accent);
    opacity: 1;
  }

  /* No mobile, o painel desktop fica escondido. Usamos accordion. */
  .megamenu-panel {
    display: none;
  }
}

/*
  ================================================================
   ANIMAÇÕES DAS LOGOS (HEADER + RÉPLICA NO MENU SOBRE)
   ================================================================
   A logo principal usa IDs (#layered_logo, #uv, #a, ...). A réplica
   no painel Sobre usa classes (.lg-root, .lg-uv, .lg-a, ...) para
   não duplicar IDs no documento. As duas têm a mesma interação.
   ================================================================
*/

/* --- ESTADO DESATIVADO: VIDRO ENTALHADO (BAIXO RELEVO ESTÁTICO) --- */
.header .icon path,
.header .icon polyline,
.header .icon line {
  fill: none;
  stroke: #ffffff;
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
}

/* Os grupos das logos começam foscos com sombras de profundidade */
.header .icon #layered_logo,
.header .icon .lg-root {
  opacity: 0.35;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header .icon {
  filter: drop-shadow(1px 1px 2px rgba(29, 29, 29, 0.4))
          drop-shadow(-1px -1px 1px rgba(255, 255, 255, 0.45));
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

/* --- ESTADO ATIVO: HOVER / TOQUE NO HEADER --- */

/* 1. Base acende para 100% de opacidade */
.header:hover .icon #layered_logo,
.header:active .icon #layered_logo,
.header:hover .icon .lg-root,
.header:active .icon .lg-root {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* 2. UV: Traçado super sutil acendendo o traço */
.header:hover .icon #uv path, .header:hover .icon #uv polyline, .header:hover .icon #uv line,
.header:active .icon #uv path, .header:active .icon #uv polyline, .header:active .icon #uv line,
.header:hover .icon .lg-uv path, .header:hover .icon .lg-uv polyline, .header:hover .icon .lg-uv line,
.header:active .icon .lg-uv path, .header:active .icon .lg-uv polyline, .header:active .icon .lg-uv line {
  animation: uv-neon-draw 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 3. NEON GLOW LARANJA NO UV (Centro Branco + Halos Laranja) */
.header:hover .icon #uv,
.header:active .icon #uv,
.header:hover .icon .lg-uv,
.header:active .icon .lg-uv {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8))
          drop-shadow(0 0 10px 3px rgba(245, 132, 53, 0.5))
          drop-shadow(0 0 20px 7px rgba(245, 132, 53, 0.25));
  transition: filter 0.8s ease;
}

/* 4. AUDIO: Efeito de lâmpada engatando/piscando para ligar */
.header:hover .icon #a, .header:hover .icon #u, .header:hover .icon #d,
.header:hover .icon #i, .header:hover .icon #dot, .header:hover .icon #o,
.header:active .icon #a, .header:active .icon #u, .header:active .icon #d,
.header:active .icon #i, .header:active .icon #dot, .header:active .icon #o,
.header:hover .icon .lg-a, .header:hover .icon .lg-u, .header:hover .icon .lg-d,
.header:hover .icon .lg-i, .header:hover .icon .lg-dot, .header:hover .icon .lg-o,
.header:active .icon .lg-a, .header:active .icon .lg-u, .header:active .icon .lg-d,
.header:active .icon .lg-i, .header:active .icon .lg-dot, .header:active .icon .lg-o {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 8px 3px rgba(255, 255, 255, 0.5));
}

/* Oscilação em tempos levemente intercalados para simular engate de néon */
.header:hover .icon #a, .header:hover .icon #d, .header:hover .icon #dot,
.header:active .icon #a, .header:active .icon #d, .header:active .icon #dot,
.header:hover .icon .lg-a, .header:hover .icon .lg-d, .header:hover .icon .lg-dot,
.header:active .icon .lg-a, .header:active .icon .lg-d, .header:active .icon .lg-dot {
  animation: neon-flicker-a 1.2s ease-in-out forwards;
}

.header:hover .icon #u, .header:hover .icon #i, .header:hover .icon #o,
.header:active .icon #u, .header:active .icon #i, .header:active .icon #o,
.header:hover .icon .lg-u, .header:hover .icon .lg-i, .header:hover .icon .lg-o,
.header:active .icon .lg-u, .header:active .icon .lg-i, .header:active .icon .lg-o {
  animation: neon-flicker-b 1.2s ease-in-out forwards;
}

/* --- KEYFRAMES --- */
@keyframes uv-neon-draw {
  0% {
    stroke-dashoffset: 600;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes neon-flicker-a {
  0%   { opacity: 0.3; }
  15%  { opacity: 1; }
  22%  { opacity: 0.2; }
  35%  { opacity: 0.95; }
  42%  { opacity: 0.4; }
  55%  { opacity: 1; }
  68%  { opacity: 0.7; }
  80%  { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes neon-flicker-b {
  0%   { opacity: 0.3; }
  10%  { opacity: 0.1; }
  28%  { opacity: 1; }
  32%  { opacity: 0.3; }
  48%  { opacity: 0.85; }
  62%  { opacity: 0.2; }
  75%  { opacity: 1; }
  100% { opacity: 1; }
}
