/* Melhora feedback de hover/click e navegação por teclado no menu superior */
.site-header {
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.site-header.menu-open,
.site-header.header-scrolled {
  box-shadow: 0 10px 30px rgba(23, 59, 93, 0.14);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.nav a:not(.nav-highlight):hover,
.nav a:not(.nav-highlight):focus-visible {
  background: rgba(47, 94, 136, 0.1);
  color: var(--blue2);
  transform: translateY(-1px);
}

.nav a:not(.nav-highlight):active {
  transform: translateY(0);
  background: rgba(47, 94, 136, 0.16);
}

.nav a.is-current:not(.nav-highlight) {
  color: var(--blue2);
  background: rgba(47, 94, 136, 0.14);
}

.nav-highlight {
  transition: transform 140ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.nav-highlight:hover,
.nav-highlight:focus-visible {
  background: var(--blue2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(23, 59, 93, 0.25);
}

.nav-highlight:active {
  transform: translateY(0);
}

.menu-toggle {
  border-radius: 10px;
  padding: 6px 10px;
  transition: background-color 180ms ease, transform 120ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(47, 94, 136, 0.1);
}

.menu-toggle:active {
  transform: scale(0.97);
}

@media (max-width: 900px) {
  .nav {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    justify-content: flex-start;
  }
}

.hero-court {
  z-index: 0;
  width: 100%;
  height: 100%;
  background: none;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.62;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 29, 45, 0.9), rgba(10, 29, 45, 0.62) 58%, rgba(10, 29, 45, 0.28));
  content: "";
}

.hero::after,
.event-hero::after,
.store-hero::after {
  display: none;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #e5ae32;
  outline-offset: 3px;
}

:target {
  scroll-margin-top: 98px;
}

.nav a[aria-current="location"] {
  color: var(--blue2);
  background: rgba(47, 94, 136, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
