body,
html {
  margin: 0;
  padding: 0;
  background-color: rgb(255, 255, 255);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  font-family: "Lexend", sans-serif;
}

/* Desktop: overlay com título/subtítulo no hover sobre a imagem */
@media (hover: hover) and (pointer: fine) {
  .projeto-item {
    position: relative;
    overflow: hidden;
  }

  .projeto-item:hover {
    background-color: transparent;
  }

  .projeto-item img {
    margin-bottom: 0;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
  }

  .projeto-item h3,
  .projeto-item h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    color: #ffffff !important;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
  }

  .projeto-item h3 {
    top: 45%;
  }

  .projeto-item h2 {
    top: 58%;
    color: #ffffff !important;
  }

  .projeto-item:hover img {
    filter: blur(3px) brightness(0.6);
    transform: scale(1.04);
  }

  .projeto-item:hover h3,
  .projeto-item:hover h2 {
    opacity: 1;
  }
}

/* Estilo geral da seção de projetos */
.projetos {
  padding: 0 20px;
}

/* Container da grade */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Definir 3 colunas de tamanho igual */
  gap: 20px;
  /* Espaçamento entre itens da grade */
}


/* Item do projeto (clicável) */
.projeto-item {
  text-decoration: none;
  /* Remover decoração padrão do link */
  display: flex;
  flex-direction: column;
  padding: 2px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  /* Efeito hover */
}

.projeto-item:hover {
  background-color: #f2f2f2;
  /* Cor de fundo ao passar o mouse */
}

/* Imagem do projeto */
.projeto-item img {
  width: 100%;
  height: 500px !important;
  /* Ajuste a altura máxima da imagem conforme necessário */
  object-fit: cover;
  /* Manter proporção e preencher o espaço disponível */
  margin-bottom: 10px;
}


/* Título do projeto */
.projeto-item h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700 !important;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Rams W01", "Lexend", sans-serif !important;
  /* Remover sublinhado */
}

/* SubTítulo do projeto */
.projeto-item h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 400 !important;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Rams W01", "Lexend", sans-serif !important;
  /* Remover sublinhado */
}

@media screen and (max-width: 1200px) {

  header {
    position: relative;
  }


  .mobile-menu div {
    margin: 6px;
  }

  .nav-list li {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .grid-container{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}