/* Anotações minhas — Topo: menu suspenso e barra fina de seções. */
/* Menu suspenso do topo (subitens do menu do WordPress) */
.nav-item { display: inline-flex; align-items: center; }
.nav-item > .nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: 1.9rem 0; }
.nav-caret { font-size: .65rem; opacity: .7; }
.nav-sub { display: none; position: absolute; left: -1rem; top: 100%; min-width: 13rem; padding: .4rem 0; background: #fff; border: 1px solid #E5E5E5; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(8, 20, 60, .25); z-index: 60; }
.nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub { display: block; }

/* Barra fina de seções (abaixo do topo, mesma barra fixa) */
.section-nav { border-top: 1px solid #E5E5E5; background: rgba(255, 255, 255, .96); }
.section-nav[hidden] { display: none; }
.section-nav-list { display: flex; gap: .15rem; width: fit-content; max-width: 100%; margin: 0 auto; padding: 0 1rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.section-nav-list::-webkit-scrollbar { display: none; }
.section-nav-list a { display: block; height: 36px; line-height: 36px; padding: 0 .8rem; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(24, 24, 24, .6); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.section-nav-list a:hover { color: #004AAD; }
.section-nav-list a[aria-current="true"] { color: #004AAD; border-bottom-color: currentColor; }


/* ---- Navegação sem recarregar (roteador do main.js) ----
   Barra fina de progresso no alto (só aparece se a página demorar), esmaecer ao sair e entrar suave. */
.spin-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: #004AAD; z-index: 100000; opacity: 0; pointer-events: none; transition: width .3s ease, opacity .2s ease; }
.spin-progress.on { opacity: 1; }
main.spin-leaving { opacity: .45; transition: opacity .15s ease; }
main.spin-enter { animation: spin-enter .25s ease both; }
main:focus { outline: none; }
@keyframes spin-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { main.spin-leaving { transition: none; } main.spin-enter { animation: none; } .spin-progress { transition: none; } }
