* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Inter", Arial, sans-serif;
  background-color: #fff;
  color: #222;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  height: 81px;
  background-color: #d3d2f8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#logo_nav {
  max-width: 70px;
  width: auto;
  margin: 0;
  border-radius: 6px;
  margin-right: 40px;
}

nav {
  flex: 1;
}

nav ul {
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  display: flex;
  padding: 0;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.sidebar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  padding: 8px;
  color: #222;
  font-weight: 500;
}

/* ESSA FOI MINHA PIOR IDEIA PASSEI HORAS HORAS!!! PARA FAZER ISSO NO CSS E SEM TER O RESULTADO QUE EU QUERIA, ENTÃO FIZ EM JS. */
li.dropdown {
  position: static;
}

/* CONTAINER DO DROPDOWN */
li.dropdown > ul.dropdown-menu {
    /* Mágica do Flexbox: se adapta a qualquer quantidade de itens */
    display: flex;
    justify-content: space-evenly; /* Distribui os itens igualmente no espaço */
    align-items: flex-start; /* Alinha todos pelo topo */
    width: 100%;
    
    /* Estilo Visual (Mantido do seu original) */
    position: absolute;
    left: 0;
    top: calc(100% - 5px);
    padding: 40px 20px; /* Ajustei o padding lateral para caber melhor */
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
    
    /* Animação (Mantida) */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Garante que o menu apareça */
li.dropdown > ul.dropdown-menu.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* CADA ITEM DA LISTA (O Espaço invisível de cada botão) */
li.dropdown > ul.dropdown-menu > li {
    flex: 1; /* Faz todos os itens tentarem ter o mesmo tamanho */
    display: flex;
    justify-content: center;
    
    /* Animação dos itens */
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s ease;
}

li.dropdown > ul.dropdown-menu.show > li {
    opacity: 1;
    transform: translateY(0);
}

/* O LINK DENTRO (Imagem em cima, Texto embaixo) */
.dropdown-menu li a {
    display: flex;
    flex-direction: column; /* Coloca um em cima do outro */
    align-items: center;    /* Centraliza no meio */
    text-align: center;
    text-decoration: none;
    color: #444;
    width: 100%;
}

/* Controle do tamanho da imagem */
.dropdown-menu li a img {
    height: 120px; /* Tamanho fixo para ficar padronizado */
    width: auto;
    margin-bottom: 12px; /* Espaço entre imagem e texto */
    transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse */
.dropdown-menu li a:hover img {
    transform: scale(1.1);
}
.dropdown-menu li a:hover {
    color: #5b3ef0;
}

li.dropdown > ul.dropdown-menu.show > li {
  opacity: 1;
  transform: translateY(0);
  display: flex;
  justify-content: center;
  width: 100%; /* Garante que use o espaço da coluna */
}
.dropdown-menu li a{
  display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;
    justify-content: flex-start; /* Alinha no topo */
}


.dropdown-menu h4 {
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 15px;
  font-weight: 600;
}

.dropdown-menu ul li a {
  color: #444;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.dropdown-menu ul li a:hover {
  color: #5b3ef0;
}

.entrar, .cadastrar {
  border-radius: 40px;
  padding: 10px 22px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.entrar {
  background-color: #dcdcff;
  color: #2a2a5c;
  margin-left: 100px;
}

.entrar:hover {
  background-color: #c5c5ff;
}

.cadastrar {
  background-color: #5b3ef0;
  color: white;
}

.cadastrar:hover {
  background-color: #6c55ff;
}

#image1,
#image2,
#image3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10%;
  background-color: #f9f9ff;
}

#image1 img {
  width: 30%;
  border-radius: 12px;
  object-fit: cover;
}

#image2 img {
  width: 50%;
  border-radius: 12px;
  object-fit: cover;
}

#image3 video {
  width: 20%;
  border-radius: 12px;
  object-fit: cover;
}

#text_img2 {
  color: #2a2a5c;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
  max-width: 40%;
}

#text_img1 {
  color: #2a2a5c;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
  max-width: 40%;
}

.footer {
  background-color: #000;
  color: #fff;
  padding: 60px 8%;
  font-family: "Inter", Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #bbb;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: 0.3s;
}

.footer-column a:hover {
  opacity: 1;
  color: #9b5df5;
}

.footer-column p {
  margin: 8px 0;
  opacity: 0.85;
  line-height: 1.5;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(0.7) sepia(1) saturate(8) hue-rotate(260deg);
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 0.9rem;
  opacity: 0.8;
}
