/* ============================================================
   CABEÇALHO — Emergência OMNI · v10 (visual da home nova)
   Tudo com prefixo omnih- e seletores reforçados: os temas e o
   Elementor estilizam a, nav e button e não podem vazar para cá.
   As fontes (Lato e Montserrat) vêm do <link> do index.html.
   ============================================================ */
.omnih {
  --omnih-abismo: #00142D;
  --omnih-marinho: #0C3467;
  --omnih-azul: #17529D;
  --omnih-azul-claro: #61A4D4;
  --omnih-linha: #D5DCE5;
  --omnih-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2; color: var(--omnih-abismo); -webkit-font-smoothing: antialiased;
  /* mesmo cinza-claro do topo da home, translúcido para o conteúdo passar por baixo */
  background: rgb(243 243 243 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: transform 450ms var(--omnih-ease), box-shadow 350ms;
}
.admin-bar .omnih { top: 32px; }
@media (max-width: 782px) { .admin-bar .omnih { top: 46px; } }
/* altura reservada embaixo do cabeçalho (o header.js ajusta ao valor real) */
.omnih-espaco { display: block; height: var(--omnih-altura, 92px); }

.omnih *, .omnih *::before, .omnih *::after { box-sizing: border-box; }
.omnih a, .omnih a:hover, .omnih a:focus, .omnih a:visited { text-decoration: none; }
.omnih svg { display: block; }
.omnih a:focus-visible { outline: 2px solid var(--omnih-azul-claro); outline-offset: 3px; border-radius: 999px; }

.omnih.omnih--escondido { transform: translateY(-100%); }
.omnih--rolou { box-shadow: 0 10px 30px -18px rgb(0 20 45 / 0.35); }

/* logo · caixa com os links · Área do Aluno */
.omnih .omnih-barra { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1360px; margin: 0 auto; padding: 14px clamp(16px, 3vw, 40px); }
.omnih .omnih-marca { flex: none; display: block; }
.omnih .omnih-logo { width: auto; height: clamp(36px, 3.2vw, 46px); }
.omnih .omnih-caixa {
  flex: 0 1 820px; display: flex; align-items: center; justify-content: space-evenly; gap: clamp(8px, 2vw, 32px);
  min-height: 56px; margin: 0; padding: 0 clamp(20px, 3vw, 48px); border-radius: 999px;
  background: #fff; border: 1px solid var(--omnih-linha); box-shadow: 0 18px 40px -28px rgb(0 20 45 / 0.45);
}
.omnih .omnih-caixa a {
  position: relative; padding: 10px 6px; color: var(--omnih-abismo);
  font: 600 16px/1 "Montserrat", "Lato", sans-serif; letter-spacing: normal; text-transform: none; white-space: nowrap;
  transition: color 200ms;
}
.omnih .omnih-caixa a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; border-radius: 2px; background: var(--omnih-azul); transform: scaleX(0); transition: transform 300ms var(--omnih-ease); }
.omnih .omnih-caixa a:hover, .omnih .omnih-caixa a[aria-current="page"] { color: var(--omnih-azul); }
.omnih .omnih-caixa a:hover::after, .omnih .omnih-caixa a[aria-current="page"]::after { transform: scaleX(1); }
.omnih .omnih-aluno {
  flex: none; display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--omnih-azul); color: #fff; font: 600 17px/1 "Montserrat", "Lato", sans-serif; letter-spacing: normal; text-transform: none; white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgb(23 82 157 / 0.8); transition: background 250ms, transform 300ms var(--omnih-ease);
}
.omnih .omnih-aluno:hover, .omnih .omnih-aluno:focus { background: var(--omnih-marinho); color: #fff; transform: translateY(-2px); }

/* PC: o embrulho dos links some do layout e o botão de menu não aparece */
.omnih .omnih-itens { display: contents; }
.omnih .omnih-menu { display: none; }

/* celular e tablet (v10): logo + botão de menu; os links e a Área do
   Aluno abrem num painel por baixo da barra, por cima da página
   (a altura do cabeçalho não muda, então a página não pula) */
@media (max-width: 900px) {
  .omnih .omnih-barra { flex-wrap: nowrap; gap: 12px; padding: 10px 16px; }
  .omnih .omnih-logo { height: 34px; }
  .omnih .omnih-menu {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin: 0 -8px 0 0; padding: 0; border: 0; border-radius: 12px;
    background: transparent; color: var(--omnih-abismo); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .omnih .omnih-menu span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--omnih-ease), opacity 200ms; }
  .omnih .omnih-menu:focus-visible { outline: 2px solid var(--omnih-azul-claro); outline-offset: 2px; }
  /* aberto: as 3 barrinhas viram um X */
  .omnih.omnih--aberto .omnih-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .omnih.omnih--aberto .omnih-menu span:nth-child(2) { opacity: 0; }
  .omnih.omnih--aberto .omnih-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .omnih .omnih-itens {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 14px; padding: 6px 16px 20px;
    background: rgb(243 243 243 / 0.98); border-bottom: 1px solid var(--omnih-linha);
    box-shadow: 0 24px 36px -24px rgb(0 20 45 / 0.45);
  }
  .omnih.omnih--aberto .omnih-itens { display: flex; }
  .omnih .omnih-caixa { flex: none; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 4px 0; border-radius: 18px; }
  .omnih .omnih-caixa a { padding: 16px 18px; font-size: 16px; text-align: center; border-bottom: 1px solid #EDF0F4; }
  .omnih .omnih-caixa a:last-child { border-bottom: 0; }
  .omnih .omnih-caixa a::after { display: none; }
  .omnih .omnih-aluno { justify-content: center; min-height: 50px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .omnih, .omnih * { transition: none !important; }
}
