/* --- RESET BÁSICO --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- MENU PRINCIPAL --- */
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px;
}

.logo img {
  height: 150px;
}

.menu-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.menu-links a {
  text-decoration: none;
  color: #673265;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 15px;
  margin: 0px 60px 0px 75px;
  transition: color 0.3s;
  padding: 20px 0px 0px 0px;
}

.menu-links a:hover {
  color: #df98df;
}

/* --- IMAGEM DE DESTAQUE (MAIN) --- */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto; /* Centraliza no meio da tela e dá um respiro em cima/embaixo */
  /* Remova aquele height: 800px daqui para não atrapalhar */
}

.img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* --- SESSÃO: TRABALHOS EM DESTAQUE --- */
.trabalhos-destaque {
  padding: 60px 120px;
  text-align: center;
}

.titulo-destaque {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #7a9499;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.galeria {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

/* --- ITEM DA GALERIA (CADA FOTO) --- */
.item-galeria {
  position: relative; /* FUNDAMENTAL: Prende o overlay dentro desta caixa */
  flex: 1;
  height: 400px;
  overflow: hidden;
  border-radius: 5px;
}

.item-galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* Prepara a foto para o zoom suave */
  display: block; /* Remove pequenos espaços em branco embaixo da imagem */
}

/* Efeito de zoom na foto ao passar o mouse na caixa */
.item-galeria:hover img {
  transform: scale(1.03);
}

/* --- A SOBREPOSIÇÃO (OVERLAY BRANCO) --- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(240, 244, 244, 0.85);
  opacity: 0; /* Começa invisível */
  transition: opacity 0.4s ease;

  /* Organiza os textos e o ícone usando Flexbox */
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Faz o overlay aparecer ao passar o mouse */
.item-galeria:hover .overlay {
  opacity: 1;
}

/* --- TEXTOS DENTRO DO OVERLAY --- */
.textos-centro {
  margin: auto; /* Centraliza vertical e horizontalmente */
  text-align: center;
}

.textos-centro h4 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 26px;
  font-weight: 300;
  color: #7a9499;
  margin-bottom: 15px;
}

.textos-centro p {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #7a9499;
  text-transform: uppercase;
}

/* --- ÍCONE/VISUALIZAÇÕES NO RODAPÉ DO OVERLAY --- */
.visualizacoes {
  text-align: center;
  color: #7a9499;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 14px;
}

/* Estado Inicial: Invisível e empurrado 50px para baixo */
.escondido {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s ease,
    transform 1s ease; /* A animação vai durar 1 segundo */
}

/* Estado Final: Visível e na posição original */
.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVIDADE PARA CELULARES E TABLETS --- */
@media (max-width: 768px) {
  /* 1. Ajustes do Menu (Mantendo o padrão horizontal do PC) */
  .logo img {
    height: 100px;
  }

  .menu {
    padding: 15px 10px;
    gap: 15px;
  }

  .menu-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  .menu-links a {
    margin: 0;
    padding: 5px;
    font-size: 14px;
    letter-spacing: 4px;
    display: inline-block;
  }

  /* 2. Imagem Principal: Alinhando a margem lateral */
  .container {
    margin: 20px 20px 0px 20px;
    height: 500px;
  }

  /* 3. Galeria: Alinhando o padding lateral com a Imagem Principal */
  .trabalhos-destaque {
    padding: 40px 20px;
  }

  .galeria {
    flex-direction: column;
    gap: 30px;
  }

  .item-galeria {
    width: 100%;
    height: 380px;
  }

  /* 4. Textos do Overlay */
  .textos-centro h4 {
    font-size: 30px;
  }

  .textos-centro p {
    font-size: 14px;
  }

  /* OBS: O bloco 5 foi removido para o hover voltar a funcionar! */
}

h1 {
  font-family: "Barlow Semi Condensed", sans-serif;
  margin-top: 100px;
  font-size: 50px;
}
