body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

.imagem-topo {
  width: 100%;
  height: auto;
  display: block;
}

.galeria-container {
  column-count: 2;
  column-gap: 20px;
  padding: 20px;
}

.card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease-in, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card.fade-in {
  opacity: 1;
}

/* Estilos para cards clicáveis */
.card[data-link]:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.card[data-link] {
  user-select: none;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.card[data-link]:hover img {
  transform: scale(1.05);
}

.card p {
  padding: 10px;
  font-size: 0.95em;
  line-height: 1.4em;
}

/* Estilo do header com imagem */
.header-com-fundo {
  background-image: url('imagens/aberturaNV.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: auto;
  aspect-ratio: 0.950/1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Texto com efeito fade */
.fade-inhead {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  color: white;
  font-size: clamp(2rem, 12vw, 5rem); 
  text-shadow: 1px 1px 4px black;
  font-family: "Cinzel";
  font-weight: 400;
}

.fade-inheadh1 {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  color: white;
  font-size: clamp(2rem, 12vw, 5rem); 
  text-shadow: 1px 1px 4px black;
  font-family: "Cinzel";
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

.fade-inheadh2 {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  color: white;
  font-size: clamp(1.2rem, 5vw, 2.5rem); 
  text-shadow: 1px 1px 4px black;
  font-family: "Cinzel";
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.bloco-titulos {
  text-align: center;
  margin-bottom: 40px;
}

.bloco-titulos h1,
.bloco-titulos h2 {
  margin: 0;
}

.bloco-titulos h1 {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  color: white;
  font-size: clamp(2rem, 12vw, 5rem); 
  text-shadow: 1px 1px 4px black;
  font-family: "Cinzel";
  font-weight: 400;
}

.bloco-titulos h2 {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  color: white;
  font-size: clamp(1.2rem, 5vw, 2.5rem); 
  text-shadow: 1px 1px 4px black;
  font-family: "Cinzel";
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

/* Estilos para a seção de textos */
.secao-textos {
  background-color: #f8f9fa;
  padding: 60px 20px;
  margin: 0;
}

.container-textos {
  max-width: 1200px;
  margin: 0 auto;
}

.texto-principal {
  text-align: center;
  margin-bottom: 40px;
}

.texto-principal h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.texto-principal p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.grid-textos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.bloco-texto {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.bloco-texto:hover {
  transform: translateY(-5px);
}

.bloco-texto h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

.bloco-texto p {
  font-family: 'Poppins', sans-serif;
  color: #666;
  line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
  .galeria-container {
    column-count: 1;
    padding: 15px;
  }
  
  .texto-principal h2 {
    font-size: 2rem;
  }
  
  .secao-textos {
    padding: 40px 15px;
  }
  
  .bloco-texto {
    padding: 20px;
  }
  
  .grid-textos {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .card {
    margin-bottom: 15px;
  }
  
  .texto-principal h2 {
    font-size: 1.8rem;
  }
  
  .texto-principal p {
    font-size: 1rem;
  }
  
  .bloco-texto h3 {
    font-size: 1.3rem;
  }
}