/* Menu de desktop */
.topo {
  background-color: #0a0a0a;
  color: #f5ebfa;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.logo2 {
  display: flex;
  align-items: center;
}

.logo2 img.logo {
  height: 80px;
  width: auto;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu ul li a {
  text-decoration: none;
  color: #f5ebfa;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu ul li a:hover {
  color: #6e3482;
}

.menu-toggle {
  display: none;
}

/* INTERRUPTOR DE TEMA */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #6e3482;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #f5ebfa;
}

input:checked + .slider:before {
  transform: translateX(26px);
  background-color: #6e3482;
}

/* RESPONSIVIDADE DO MENU (MOBILE) */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #6e3482;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 10px #6e3482;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .menu-toggle:hover {
    transform: scale(1.05);
  }

  .menu-toggle i {
    color: #190019;
    font-size: 1.3rem;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0a0a0a;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  }

  .menu.active {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: flex-start;
  }

  .menu ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #1a1a1a;
    width: 100%;
  }

  .menu ul li a {
    display: block;
    width: 100%;
  }
}

/* TEMA CLARO PARA O HEADER */
body.light-mode header.topo {
  background-color: #eaeaea;
  color: #121212;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .menu ul li a {
  color: #121212;
}

body.light-mode .menu ul li a:hover {
  color: #6e3482;
}

body.light-mode .menu.active {
  background-color: #eaeaea; 
}