/* Menu igual ao do site (01/12). Números copiados de wp-content/themes/reino/assets/css/style.css e medidos nas
   páginas do tema; se o menu do tema mudar, mudar aqui. */
.site-top { position: relative; z-index: 20; padding: 5rem 0; font-family: 'Inter', sans-serif; -webkit-font-smoothing: auto; color: #000; }
.site-top__c { display: flex; align-items: center; width: 100%; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .site-top__c { max-width: 740px; } }
@media (min-width: 992px) { .site-top__c { max-width: 960px; } }
@media (min-width: 1200px) { .site-top__c { max-width: 1170px; } }
@media (min-width: 1400px) { .site-top__c { max-width: 1280px; } }
@media (min-width: 1600px) { .site-top__c { max-width: 1440px; } }
@media (min-width: 1900px) { .site-top__c { max-width: 1600px; } }
@media (max-width: 480px) { .site-top__c { padding: 0 1rem; } }

.site-top .brand { position: relative; display: flex; margin-right: auto; }
.site-top .brand-logo { position: absolute; top: 50%; left: 50%; width: 6rem; height: 6rem; margin: -10px 0 0 24px; transform: translate(-50%, -50%); }
.site-top .brand-logo img { position: absolute; left: 26.5px; top: 35.5px; width: 43px; height: auto; }
.site-top .brand-anim { position: absolute; inset: 0; }
.site-top .brand-logo.is-anim img { visibility: hidden; }

.site-top .navigation-menu { display: flex; align-items: center; gap: 6rem; margin: 0; padding: 0; list-style: none; }
.site-top .menu-item { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 2rem; padding: 0 1rem; overflow: hidden; font-size: 1rem; font-weight: 500; line-height: 1; color: inherit; text-decoration: none; }
.site-top .menu-item span { position: relative; display: inline-block; }
.site-top .menu-item.active span::before { content: ""; position: absolute; left: -.75rem; bottom: .1rem; width: .25rem; height: .25rem; border-radius: 50%; background: currentColor; }
.site-top .navigation-header { display: none; }

.site-top .langs { display: inline-flex; flex: none; margin-left: 3rem; border: 1px solid rgba(0, 0, 0, .2); border-radius: 999px; padding: 2px; }
.site-top .langs a { display: block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: .04em; color: #000; text-decoration: none; }
.site-top .langs a[aria-current="true"] { background: #000; color: #fff; }

.site-top .btn-menu-trigger { display: none; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; background: transparent; color: #000; cursor: pointer; }
.site-top .btn-menu-trigger svg { width: 40px; height: 32px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

@media (max-width: 1440px) { .site-top { padding: 4rem 0; } .site-top__c > .brand { height: 2.5rem; } }
@media (max-width: 1366px) { .site-top { padding: 3.5rem 0; } .site-top .navigation-menu { gap: 5rem; } .site-top .menu-item { font-size: .875rem; } }

/* Entrada dos itens no computador, como no tema: sobem um a um depois de 1 s. */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .site-top .menu-item span { animation: menu-sobe .5s cubic-bezier(.165, .84, .44, 1) 1s both; }
  .site-top li:nth-child(2) span { animation-delay: 1.2s; }
  .site-top li:nth-child(3) span { animation-delay: 1.4s; }
  .site-top li:nth-child(4) span { animation-delay: 1.6s; }
}
@keyframes menu-sobe { from { transform: translateY(200%); } to { transform: none; } }

/* Celular e tablet: o menu é um painel de tela cheia que sobe. */
@media (max-width: 1024px) {
  .site-top .langs { margin: 0 1.25rem 0 0; }
  .site-top .btn-menu-trigger { display: flex; }
  .site-top .navigation { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; padding: 3.5rem 1.5rem; background: #fff; opacity: 0; visibility: hidden; transform: translate3d(0, 100%, 0); transition: transform .22s cubic-bezier(.645, .045, .355, 1), visibility 0s .22s, opacity 0s .22s; }
  .site-top .navigation.is-aberto { opacity: 1; visibility: visible; transform: none; transition: transform .26s cubic-bezier(.215, .61, .355, 1); }
  .site-top .navigation-header { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 960px; min-height: 2.5rem; margin: 0 auto; padding: 0 1.5rem; opacity: 0; transition: opacity .15s; }
  .site-top .navigation-header .brand { height: 2.5rem; }
  .site-top .is-aberto .navigation-header { opacity: 1; transition: opacity .2s .08s; }
  .site-top .navigation-menu { flex-direction: column; align-items: flex-start; gap: 1rem; padding-left: 1.5rem; }
  .site-top .menu-item { display: block; width: 100%; height: auto; padding: 0; overflow: visible; font-size: 4.25rem; font-weight: 700; text-align: left; }
  .site-top .menu-item span { opacity: 0; transition: opacity .15s; }
  .site-top .is-aberto .menu-item span { opacity: 1; transform: none; animation: menu-entra .32s cubic-bezier(.215, .61, .355, 1) .08s both; }
  .site-top .is-aberto li:nth-child(2) span { animation-delay: .135s; }
  .site-top .is-aberto li:nth-child(3) span { animation-delay: .19s; }
  .site-top .is-aberto li:nth-child(4) span { animation-delay: .245s; }
  .site-top .menu-item.active span::before { left: auto; right: -1rem; bottom: .5rem; width: 10px; height: 10px; }
}
@keyframes menu-entra { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 990px) { .site-top .navigation { padding: 3.5rem 0 5rem; } .site-top .navigation-header { max-width: 740px; } }
@media (max-width: 990px) and (orientation: landscape) {
  .site-top .navigation { padding: 3.5rem 0; }
  .site-top .navigation-menu { padding-left: 4.5rem; }
  .site-top .menu-item { font-size: 3rem; }
  .site-top .menu-item.active span::before { bottom: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-top .navigation, .site-top .navigation.is-aberto, .site-top .navigation-header, .site-top .is-aberto .navigation-header, .site-top .menu-item span { transition: none; }
  .site-top .is-aberto .menu-item span { animation: none; }
}
@media print { .site-top .navigation, .site-top .btn-menu-trigger { display: none; } }
