/* composició comissions i organismes */

.comissions-organismes {
  max-width: 80% !important; 
    margin-left: auto;
    margin-right: auto;
    margin-top:2rem
}
.is-layout-constrained > .bloc-comissio {
    max-width: 100% !important;
}
.entry-content .alignwide.comissions-organismes {
    width: 100%;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}
.titol-seccio {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
}

.bloc-comissio {
    display: flex;
    gap: 50px;
    margin-bottom: 70px;
    padding: 40px;
    background: #f7f7f7a6;
    border-top: 4px solid #a6193c;
margin-top:2rem;
}

.info-comissio {
    flex: 1;
    max-width: 300px;
}

.info-comissio h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-comissio p {
    line-height: 1.6;
    color: #444;
}

.titolJuntaGovern h2 {
  position: relative;
  display: inline-block;
}

.titolJuntaGovern h2::after {
  content: '';
  display: block;
  height: 4px; 
  width: 100px;
  background-color: #a6193c;
  margin-top: 0.5rem; 
}
.enllac-normativa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #a6193c;
}

.enllac-normativa:hover {
    text-decoration: underline;
}

.membres-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* espacio entre membres */
}
.membres-grid > .wp-block-group {
    flex: 1 0 120px; /* ancho mínimo de cada membre */
    max-width: 180px; /* opcional */
    text-align: center;
}
.membres-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
}

.membre {
    width: 200px;
    text-align: center;
    transition: transform 0.2s ease;
	  margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}


.membre:hover {
    transform: translateY(-4px);
}


.nom-regidorJG h4{
    font-weight: 600;
    margin-top: 12px;
    font-size: 1rem;
}

.carrec-regidorJG {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
	text-align:center;
}

@media (max-width: 768px) {

    .bloc-comissio {
        flex-direction: column;
        padding: 30px;
    }

    .info-comissio {
        max-width: 100%;
    }

    .membres-comissio {
        justify-content: center;
    }
}

/* part del codi html dels blocs comissions*/

.bloc-comissio {
  display: flex;
  gap: 50px;
  padding: 40px;
  background: #f7f7f7a6;
  border-top: 4px solid #a6193c;
  flex-wrap: wrap;
}

.info-comissio {
  flex: 1;
  max-width: 300px;
}

.info-comissio h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}
.info-comissio h3::after {
  content: '';
  display: block;
  height: 4px;
  width: 100px;
  background-color: #a6193c;
  margin-top: 0.5rem;
}

.info-comissio p {
  line-height: 1.6;
  color: #444;
}

/* GRID DE MIEMBROS */
.membres-grid {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* Imágenes 150x150 */
.membres-grid img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

/* Centrar imagen dentro de la tarjeta */
.membres-grid .membre {
  flex: 0 0 18%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.membre h4 {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.carrec {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {

  .bloc-comissio {
    flex-direction: column;
  }

  .info-comissio {
    max-width: 100%;
  }

  .membres-grid {
    justify-content: center;
  }

  .membres-grid .membre {
    flex: 0 0 45%; /* 2 por fila en móvil */
  }
 .membres-grid img {
    width: 120px;
    height: 120px;
  }
}
