.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 2.4vw, 42px);
  width: 100%;
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 30px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.nav-group.left {
  justify-content: flex-start;
}

.nav-group.right {
  justify-content: flex-end;
}

.nav-item {
  position: relative;
  padding-bottom: 12px; 
}

.nav-pill,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(150px, 11vw, 195px);
  height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(18px, 1.2vw, 22px);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-pill:hover,
.nav-item > a:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: clamp(100px, 7vw, 140px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* importante */
.topbar,
.hero,
.Hero,
.Header,
.Inner-header {
  overflow: visible;
}

.has-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% - 2px); /* elimina o vão */
  left: 0;
  min-width: 290px;
  background: rgba(25, 24, 24, 0.96);
  border-radius: 0 16px 16px 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 999;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  padding: 4px 0;
}

.dropdown-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.dropdown-right {
  left: auto;
  right: 0;
  border-radius: 16px 0 16px 16px;
}

/* menu mobile */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transition: 0.25s ease;
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

.nav-group.left {
  justify-content: flex-start;
  padding-left: 34px;
}

.nav-group.right {
  justify-content: flex-end;
  padding-right: 34px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  justify-self: end;
  z-index: 120;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  z-index: 1000;

  background: rgba(25, 24, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.mobile-menu.active {
  display: block;
}

.mobile-item,
.mobile-menu > a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu > a:last-child,
.mobile-item:last-child {
  border-bottom: none;
}

.mobile-link {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.mobile-submenu {
  display: none;
  padding: 0 0 10px 14px;
}

.mobile-submenu a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  padding: 7px 0;
}

.mobile-item.active .mobile-submenu {
  display: block;
}

.mobile-submenu-toggle span {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.mobile-item.active .mobile-submenu-toggle span {
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
  }

  .desktop-nav {
    display: none !important;
  }

  .logo {
    justify-content: flex-start;
  }

  .logo img {
    height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    top: 92px;
    left: 24px;
    right: 24px;
  }
}

@media (max-width: 768px) {
  .topbar {
    top: 18px;
    padding: 0 16px;
  }

  .logo img {
    height: 52px;
  }

  .mobile-menu {
    top: 82px;
    left: 16px;
    right: 16px;
  }
}