@import url('https://fonts.googleapis.com/css2?family=Anaktoria&family=Cardo&display=swap');

body {
  background-color: #f2c4d0;
  font-family: 'Cardo', serif;
  margin: 0;
  padding: 0;
}

h1, h5 {
  font-family: 'Anaktoria', serif;
  
  text-align: center;
}

section {
  background-color: #d17d91;
  border-radius: 16px;
  padding: 20px;
  margin: 20px auto;
  max-width: 90%;
  color: #fff;
}

.projetos h1 {
    color: #f2f2f2;
  margin-bottom: 30px;
}

.linha {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.projeto {
  width: calc(25% - 20px);
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto; 
}

.projeto h5 {
  color: #224a50;
  min-height: 35px; /* força o título a ocupar o mesmo espaço */
  display: flex;
  align-items: center;
  justify-content: center;
}

.projeto hr {
  border: none;
  border-top: 2px solid #224a50;
  margin: 6px 0 10px;
}

.projeto p {
  color: #224a50;
  text-align: justify;
  font-size: 0.9rem;
  font-family: 'Cardo', serif;
}

.conteudo {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.fotos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin: 20px 0;
}

.fotos img {
  width: 400px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.pricipal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.pricipal .logo {
  width: 250px;
  height: auto;
}

.pricipal p {
  color: #f2f2f2;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
  font-family: 'Cardo', serif;
}

.container-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  flex: 1 1 300px;
  max-width: 500px;
  background-color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  color: #224a50;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 400px;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card p {
  font-family: 'Cardo', serif;
  font-size: 1rem;
  margin-bottom: 16px;
}

.btn-volunt {
  margin-top: auto;
  background-color: #224a50;
  color: #f2f2f2;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn-volunt:hover {
  background-color: #1a383d;
}

/* Responsivo */

@media (max-width: 1024px) {
  .projeto {
    flex: 1 1 calc(33.33% - 20px);
  }

  .fotos img {
    width: 240px;
    height: 180px;
  }

  .pricipal {
    flex-direction: column;
    text-align: center;
  }

  .pricipal .logo {
    width: 200px;
  }

  .pricipal p {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  section {
    max-width: 95%;
    padding: 15px;
  }

  .projeto {
    flex: 1 1 calc(50% - 20px);
  }

  .fotos img {
    width: 90%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .projeto {
    flex: 1 1 100%;
  }

  .fotos img {
    width: 100%;
    height: auto;
  }

  .pricipal .logo {
    width: 150px;
  }

  .pricipal {
    padding: 20px;
  }
}
