/* ==========================================================================
   Header (header.php)
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--primary);
  z-index: 100;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

header ul {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

header ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
}

.header {
  background-color: var(--black);
}

/* Dropdown */
.dropdown {
  position: relative;
  list-style: none;
}

.dropdown > a {
  text-decoration: none;
  display: block;
  color: var(--font);
}

/* Submenu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  min-width: 220px;
  padding: 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submenu li a {
  display: block;
  padding: 12px 16px;
  color: #000;
  text-decoration: none;
}

.submenu li a:hover {
  background: #f5f5f5;
}

/* Mostrar ao passar o mouse (ou ao navegar pelo teclado) */
.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
  display: block;
}

.header nav {
  padding: 10px 70px;
}

.header img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.topoMob {
  display: none;
}

@media screen and (max-width: 1080px) {
  header {
    position: relative;
  }

  .topo {
    display: none !important;
  }

  .topoMob {
    display: block;
  }
}
