/* ===== novo HEADER ===== */
.header {
  width: 100%;
  display: block;
  border-bottom: 1px solid #e5e5e5;
  background: #0B004A;
  position:sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

/* LOGO */
.logo img {
  height: 50px;
  margin-top: 2px;
}

/* NAV DESKTOP */
.nav {
  display: block;
}

.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: #0B004A;
  font-weight: 500;
  font-size: 15px;
}

.nav-list a:hover {
  opacity: 0.7;
}

/* RIGHT SIDE */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* LANG */
.flag img {
  width: 20px;
  height: 20px;
}

.lang a {
  text-decoration: none;
  color: #0B004A;
}

.lang a.active {
  font-weight: 700;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  height: 50px;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  display: block;
  height: 2px;
  background: #fff;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {

  .nav {
    position: fixed;
    top: 60PX;
    right: -100%;
    width: 130px;
    height: 35vh;
    background: #fff;
    transition: right 0.3s ease;
    padding-top: 100px;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
    padding-left: 24px;
    margin-top: -70px;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {

  .header-container {
    position: relative;
  }

  /* Logo centralizado */
  .logo {
    position: absolute;
    left: 54%;
    transform: translateX(-50%);
  }

  /* Header right continua à direita */
  .header-right {
    margin-left: auto;
  }

}

@media (max-width: 900px) {
  .lang {
    position: absolute;
    left: 24px;
    display: flex;
    gap: 8px;
  }
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  min-width: 195px;
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 999;
}

.dropdown-menu li a {
  display:block;
  width: 100%;
  padding: 10px 18px;
  font-size: 12px;
  text-align: left;
  color: #0B004A;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  text-decoration:underline;
}

/* ABRIR NO HOVER (DESKTOP) */
@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    display: none;
    border: none;
    padding-left: 12px;
  }

  .dropdown-menu.open {
    display: block;
  }
}

@media (max-width: 900px) {
  .nav {
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }
}

@media (min-width: 901px) {
  .nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding-top: 0;
    right: auto;
  }
}

@media (min-width: 901px) {
  .nav-list a {
    color: #ffffff;
  }

  .nav-list a:hover {
    color: #d4af37; /* dourado */
  }
}


/* ===== fim do novo HEADER ===== */