header {
  padding: 20px 0px;
  width: 100%;
  align-items: center;
  display: flex;
  justify-content: center;
  position: fixed;
  background-color: white;
  top: 0;
  left: 0;
}

header .container {
  justify-content: space-between;
  width: 100%;
  align-items: center;
  position: relative;
  padding: 0px 24px;
  display: flex;
  max-width: 1280px;
}


/* Estilos para o botão do modal */
.open-modal-btn {
  background: transparent;
  color: #000;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Estilos para o modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  transform: translateY(-100%);
  top: 60px;
}

/* Estilos para o conteúdo do modal */
.modal-content {
  background-color: #fff;
  margin: 0;
  padding: 73px 0 20px;
  width: 100%;
  height: calc(100% - 100px);
  overflow-y: auto;
  position: relative;
}

/* Estilos para o botão de fechar */
.close {
  position: relative;
  top: -50px;
  right: 50px;
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Estilos para o botão de fechar ao passar o mouse */
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Estilos para links dentro do modal */
.modal-content a {
  display: block;
  color: #000;
  padding: 12px 0;
  text-decoration: none;
}

/* Estilos para links ao passar o mouse */
.modal-content a:hover {
  background-color: #f1f1f1;
}

/* Mostrar o modal com efeito de deslizamento */
.modal.show {
  display: block;
  transform: translateY(0);
}

.modal.show ~ * {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
}

.modal.show body {
  overflow: hidden;
}

.modal-desktop-content {
  flex-direction: row;
  padding-left: 20px;
}

/* Container da barra de busca (inicialmente escondido) */
.search-bar {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: #C3FFE2;
  width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: width 0.5s ease-in-out;
  border-radius: 24px;
  margin-right: -10px;
  margin-top: -3px;
}

/* Estilo do form dentro da barra de busca */
.searchform {
  display: flex;
  width: 100%;
}

.searchform input[type="text"] {
  width: 100%;
  border: none;
  font-size: 16px;
  outline: none;
}

.searchform input[type="text"]:focus {
  outline: none;
}

.searchform input[type="submit"] {
  display: none;
  background-color: #333;
  color: #C3FFE2;
  border: none;
  cursor: pointer;
}

/* Ícone de busca */
.search-icon {
  cursor: pointer;
}

/* Quando a barra de busca estiver ativa */
.search-bar.show {
  margin-top: -4px;
}

.hamburger-btn {
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Animação para quando o modal estiver aberto (opcional) */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .search-bar {
    max-width: 100%;
  }
  .search-bar.show {
    display: none;
  }
  .menu-controller {
    display: none;
  }
  .modal-desktop-content {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .close {
    display: none;
  }
}

@media (min-width: 1024px) {
  .search-bar {
    max-width: 100%;
    margin-right: 16px;
  }
  .search-bar.show {
    display: flex;
    width: calc(100% - 200px);
    margin-right: 16px;
    padding: 2px 0;
  }
  .menu-controller {
    display: flex;
  }
  .modal-desktop-content {
    display: flex; 
  }
  .hamburger-btn {
    display: none;
  }
  .close {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .search-bar {
    max-width: 100%;
  }
}

@media (min-width: 1536px) {
  .search-bar {
    max-width: 100%;
  }
}
