.menu-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lista a {
  list-style: none;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  margin: 0px;
}

/* --------- BOTÃO HAMBÚRGUER --------- */

.hamburguer {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
	
}

.hamburguer span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #4b3723;
  transition: all 0.3s ease;
}

.hamburguer.ativo span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburguer.ativo span:nth-child(2) {
  opacity: 0;
}
.hamburguer.ativo span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------- MENU OFF-CANVAS --------- */

.menu-offcanvas {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: #6e6259;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: right 0.3s ease;
  z-index: 1000;
}

.menu-offcanvas.ativo {
  right: 0;
}

.menu-lista li {
  margin: 1rem 0;
	list-style: none;
}

/* --------- BOTÃO DE FECHAR MENU --------- */

.menu-fechar {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: #ffffff !important;
  margin-left: auto;
  margin-bottom: 2rem;
  cursor: pointer;
}

/* --------- OVERLAY ESCURO --------- */

#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#menu-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

/* --------- BUSCA --------- */

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
	margin-bottom: 2rem;
}

.search-field {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-submit {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #ffffff;
}

.search-submit svg {
  display: block;
}
/*----------Scroll bonito-------*/
.menu-offcanvas {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}

.menu-offcanvas::-webkit-scrollbar {
  width: 6px;
}

.menu-offcanvas::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 3px;
}
/* ----------Submenu retrátil----------*/
.menu-lista .menu-item-has-children > a::after {
  content: '▼';
  margin-left: 8px;
  font-size: 0.7rem;
}

.sub-menu {
  display: none;
  flex-direction: column;
  margin-top: 0.5rem;
  margin-left: 1rem;
  gap: 0.5rem;
}

.sub-menu.aberto {
  display: flex;
}
/* --------- MEDIA QUERY DESKTOP --------- */

/* Nenhuma alteração no menu no desktop:
   manter o mesmo menu lateral, botão e overlay */

@media (min-width: 769px) {
  .menu-fechar {
    display: none;
  }
  #menu-overlay {
    display: none;
  }
}
