/* === Estilos específicos para a página "Quem Somos" (Mobile) === */

.quem-somos {
  padding: 1rem;
}

.quem-somos-titulo{
  margin-bottom: 1rem;
  text-align: center;
  font-size: var(--heading-2);
  /*font-weight: 500;*/
  /*color: var(--blue-heading);*/
}

.descricao {
  margin-bottom: 2rem;
}

.descricao h1 {
  margin-bottom: 0.2rem;
}

.linha-verde {
  width: 50px;
  height: 4px;
  background-color: #006494;
  margin: 0.2rem auto 1rem;
}

.descricao p {
  /*background-color: var(--light-gray-blue);*/
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  text-align: justify;
  line-height: 1.6;
  hyphens: auto;
    /*Para uma quebra mais natural em longas palavras*/
}

.subtitulo-equipa {
  text-align: center;
  font-size: var(--heading-2);
  /*font-weight: 500;*/
  /*color: var(--blue-heading);*/
  margin-bottom: 2.5rem;
}


.membros .card {
  background: var(--white);
  border: 1px solid #006494;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #006494;
}

.card h3 {
  margin-top: 1rem;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.redes img {
  width: 24px;
  height: 24px;
}

.topbar {
  background-color: var(--blue-dark);
  color: var(--white);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar .back-button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.topbar h1 {
  margin: 0;
  font-size: 1.2rem;
}



/* === Estilos para Desktop (a partir de 768px) === */
/* === Estilos para Desktop fixo (5 colunas) === */

@media (min-width: 1024px) {
  .quem-somos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
  }

  .descricao {
    text-align: justify;
    margin-bottom: 3rem;
  }

  .descricao p {
    max-width: 800px;
    margin: 0 auto;
    /*background-color: var(--light-gray-blue);*/
    text-align: justify;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.6;
    hyphens: auto;
    /*Para uma quebra mais natural em longas palavras*/
  }

  .subtitulo-equipa {
    font-size: var(--heading-2);
    font-weight: 600;
    margin: 4rem 0 3rem;
    color: var(--blue-heading);
  }

  .membros {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cards lado a lado */
    gap: 2rem;
    justify-items: center;
  }

  .membros .card {
    width: 100%;
    max-width: 220px;
    border: 1px solid #006494;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
  }

  .membros .card:hover {
    transform: translateY(-4px);
  }

  .card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #006494;
    margin-bottom: 0.5rem;
  }

  .card h3 {
    font-size: 1rem;
    /*color: var(--blue-heading);*/
    margin: 0.5rem 0 0;
  }

  .redes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.8rem;
  }

  .redes img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
  }

  .redes img:hover {
    opacity: 0.7;
  }
}
