.menu-icon {
  width: 1em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 1em;
}

.menu-icon .line {
  width: 100%;
  height: 3px;
  background-color: #0f0f0f;
  transition: all 0.3s ease;
}

.menu-icon.open .line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-icon.open .line:nth-child(2) {
  opacity: 0;
}

.menu-icon.open .line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Menu Lateral */
.menu {
  position: fixed;
  top: 0;
  left: -8em;           /* Menu inicialmente escondido à esquerda */
  width: 8em;
  height: 100%;
  background-color: #e3ebfc;
  color: #3f51b5; /* color:  */
  transition: left 0.3s ease;  /* Transição suave ao abrir */
  z-index: 1;
}

    

.menu ul {
  list-style: none;
  padding: 1em;
  text-align: left;
}

.menu ul li {
  margin: 20px 0;
}

.menu ul li a {
  color: #3f51b5;
  text-decoration: none;
  font-size: 0.8em;
  transition: color 0.3s;
}

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

/* Menu Aberto */
.menu.open {
  left: 0;                /* Move o menu para dentro da tela */
}