/*
 * Theme Name:     Momentum
 * Description:    Divi Child Theme
 * Author:         r3npi2
 * Template:       Divi
 * Version:        1.0.0
 */

/* green sostenible: #239ea3 */
/* orange eco: #d46740  */
.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap ;
}

.custom-check-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.custom-check-container img {
  width: 30px;
  height: auto;
  margin-right: 20px;
}

.custom-check-container h3 {
  font-weight: bold;
  font-size: 22px;
  margin: 0 0 10px 0;
}

.custom-check-container p {
  font-size: 16px;
  color: #555;
  margin: 0;
}


.custom-list {
  list-style: none !important; /* Força la desactivació del bullet */
  padding: 0; /* Elimina l'espai addicional de l'padding */
  margin: 0;
  line-height: 0; /* Redueix l'interlineat */
}

.custom-list li {
  position: relative;
  padding-left: 30px; /* Augmenta l'espai per alinear millor la icona */
  margin-bottom: 10px; /* Afegeix espai entre els elements de la llista */
}

.custom-list li::before {
  content: "✔";
  position: absolute;
  left: -16px; /* Col·loca la icona a l'esquerra de la caixa */
  top: -2px; /* Ajusta la posició vertical per a l'alineació de la línia de base */
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #DFEDE7;
  color: #2B634B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.custom-list p {
  margin-top: 15px; /* Afegeix més espai entre els paràgrafs */
}

.accordion-custom .et_pb_toggle_title:before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 12px;
  position: relative;
  top: 20px;
}

.tabs-custom {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1.5rem;
}
.tabs-custom .et_pb_tabs_controls {
  flex-basis: 20%;
  background: transparent !important;
  display: block;
}
.tabs-custom .et_pb_all_tabs {
  flex-basis: 75%;
}
.tabs-custom .et_pb_tabs_controls li {
  width: 100%;
	margin-bottom: 10px;
  border-radius: 10px;
}
.tabs-custom .et_pb_all_tabs .et_pb_tab {
  padding:0 !important;
}
.tabs-custom .et_pb_tabs_controls li.et_pb_tab_active a {
  color: white !important;
}
.tabs-custom .et_pb_tabs_controls::after {
  content: none !important;
}
.tabs-custom .et_pb_tabs_controls li a {
  padding: 15px 30px !important;  
}
.tabs-custom .et_pb_all_tabs .et_pb_tab .et_pb_tab_content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
	min-height: 500px; 
}
.tabs-custom .et_pb_all_tabs .et_pb_tab .et_pb_tab_content p {
  flex-basis: 25%;
  text-align: center;
}
.tabs-custom .et_pb_all_tabs .et_pb_tab .et_pb_tab_content img {
  border-radius: 20px;
}
.tabs-custom .tab-body-custom {
  flex-basis: 70%; 
}
.tabs-custom .tab-body-custom a {
  background: white;
  border-radius: 35px;
  padding: 12px 24px;
  text-align: center;
  display: block;
  width: fit-content;
}
.tabs-custom .tab-body-custom p {
  text-align: left !important;
}

.disable-lightbox .et_pb_gallery_items a {
  pointer-events: none;
}
 
.disable-lightbox .et_overlay {
display: none !important;	
}
.el-read-more-link a,
.et_pb_button_module_wrapper .et_pb_button.btn-custom:hover,
.et_pb_button_module_wrapper .et_pb_button.btn-custom {
  padding-top: 10px!important;
  padding-bottom: 10px!important;
  padding-left: 14px!important;
  padding-right: 14px!important;
  border-radius: 20px !important;
  font-size: 15px !important;  
}
.et_pb_button_module_wrapper .et_pb_button.btn-custom:hover {
  width: fit-content !important;
  padding-right: 34px!important;
}
/* Estil bàsic per a tots els articles */
.projectes-home article {
  border-radius: 10px;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
  position: relative;
  width: 24% !important;
  margin-right: 1% !important;
  box-shadow: none !important;
  border: none !important;
}
.projecte:nth-child(4n+1),
.projectes-home article:nth-of-type(1) {
  background-color: #DFEDE7 !important;
  margin-top: 0;
}
.projecte:nth-child(4n+2) {
  background-color: #FFEDD7 !important;
    margin-top: 0;
}
.projectes-home article:nth-of-type(2) {
  background-color: #FFEDD7 !important;
    margin-top: 0;
}
.projecte:nth-child(4n+3),
.projectes-home article:nth-of-type(3) {
  background-color: #BDE5FE !important;
  margin-top: 0;
}
.projecte:nth-child(4n) {
  background-color: #fddace !important;
}
.projectes-home article .el-read-more-link {
  position: absolute;
  bottom:20px;
}
.projectes-home article .post-categories a {
  margin-right: 7px !important;
  text-decoration: underline !important;
  padding:0 !important;
  font-size: 12px !important;
  border:none !important;  
}
.projectes-home article .post-content {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 30px !important;
}
.projectes-home article {
  transition: transform .2s ease-in-out;
}
.projectes-home article:hover {
  transform: scaleX(1.05) scaleY(1.05)!important;
}
.et_pb_section et_pb_section_0_tb_footer.et_pb_with_background et_section_regular {
  display: flex;
  align-items: center;
}
.et_pb_gallery_items::after {
  padding-top: 40px;
}
.et_pb_gallery_items.et_post_gallery .et_pb_gallery_item {
  width: 16.6% !important;
  max-width: none !important;
  margin:0 !important; 
}
.et_pb_gallery_items.et_post_gallery .et_pb_gallery_item a {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.et_pb_gallery_items.et_post_gallery .et_pb_gallery_item.first_in_row {
  clear: inherit !important; 
}
.et_pb_gallery_items.et_post_gallery .et_pb_gallery_image img {
  display: flex;
  justify-content: center;
  align-items: center;      
  height: 80px;
  min-width: 100px;
  max-width: 130px;
  object-fit: contain;
}
.et_pb_section_0_tb_footer.et_pb_section {
    background-color: #000000 !important;
    display: flex;
}
.mm-xarxa .et_pb_team_member_description {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: end; 
}
.mm-xarxa .et_pb_module_header {
  order: 1;
  flex-basis: 70%;
  padding: 0;
}
.mm-xarxa .et_pb_member_position {
  order: 2;
  flex-basis: 70%;
  color: #000 !important;
  margin-top: -10px;
}
.mm-xarxa .et_pb_member_social_links {
  order: 0;
  flex-basis: 50px;
  padding: 0;
  margin-top:0 !important;
}
.mm-xarxa .et_pb_member_social_links a {
  background: white;
  width: 35px;
  height: 35px;
  border-radius: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
/* Flex per igualar l'alçada de totes les columnes */
.et_pb_row_5col {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Cada columna també és flex per fer créixer la targeta */
.et_pb_row_5col > .et_pb_column {
  display: flex;
  flex-direction: column;
}

/* Targeta: s’estira i reparteix espai */
.b3_team {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  transition: all .3s ease-in-out;
  box-shadow: 0 20px 150px rgba(0, 0, 0, 0.2);
}

/* Imatge fixa a dalt */
.b3_team .et_pb_team_member_image {
  width: 100%;
}

/* Imatge amb animació */
.b3_team img {
  transition: all .5s ease;
  transform: scale(1.03);
  transform-origin: bottom;
  width: 100%;
  height: auto;
}

.b3_team:hover img {
  transform: scale(1.00) !important;
  transition: all .5s cubic-bezier(0.170, 0.690, 0.470, 0.995);
}

/* Contingut centrat verticalment dins la part blanca */
.b3_team .et_pb_team_member_description {
  padding: 30px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* alterna amb 'center' si ho prefereixes centrat */
  align-items: center;
}

/* "Més informació" amb separació */
.b3_team .et_pb_team_member_description p a {
  margin-top: 10px;
  display: inline-block;
}

/* Estil del càrrec */
.b3_team .et_pb_member_position {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

/* Ratlleta decorativa sota el càrrec */
.b3_team .et_pb_member_position:after {
  content: ' ';
  display: block;
  width: 80px;
  margin: 40px auto 0;
  border: 1px solid;
}

/* Xarxes socials: ocultes per defecte */
.b3_team .et_pb_member_social_links a {
  opacity: 0;
  margin-top: 20px;
  transition: all 0.4s ease-in-out;
}

/* Apareixen en hover */
.b3_team:hover .et_pb_member_social_links a {
  opacity: 1;
  transform: translate(0px, -15px);
  transition: all .4s ease-in-out;
}



/* ===== Mòbil (max-width: 48em) ===== */
@media screen and (max-width: 48em) {
  /* Columnes */
  .col-sm-3  { flex-basis: var(--col-3); }
  .col-sm-4  { flex-basis: var(--col-4); }
  .col-sm-6  { flex-basis: var(--col-6); }
  .col-sm-9  { flex-basis: var(--col-9); }
  .col-sm-12 { flex-basis: var(--col-12); }

  .projectes-home article {
    width: 100% !important;
    margin-right: 0 !important;
  }
	  .et_pb_gallery_items {
    display: flex;
  }
	    .et_pb_gallery_item {
      flex: 0 0 50%;
      max-width: 50%;
    }
}

/* ===== Tablets i escriptoris (min-width: 48em) ===== */
@media screen and (min-width: 48em) {
  /* Columnes */
  .col-md-3  { flex-basis: var(--col-3); }
  .col-md-4  { flex-basis: var(--col-4); }
  .col-md-6  { flex-basis: var(--col-6); }
  .col-md-9  { flex-basis: var(--col-9); }
  .col-md-12 { flex-basis: var(--col-12); }

  .et_pb_column .et_pb_team_member_image {
    margin: 0 !important;
    max-width: 371px;
    object-fit: contain;
    overflow: hidden;
  }

  .projectes-home article {
    width: 49% !important;
    margin-right: 2% !important;
  }

  /* Remove right margin on every 2nd item */
  .projectes-home article:nth-child(2n) {
    margin-right: 0 !important;
  }
.et_pb_slide_description .et_pb_slide_title,
.et_pb_slide_description .et_pb_slide_content {
  display: block;
  width: 150% !important;
  box-sizing: border-box;
}
}

/* ===== Pantalles grans (min-width: 80em) ===== */
@media screen and (min-width: 80em) {
  /* Columnes */
  .col-lg-3  { flex-basis: var(--col-3); }
  .col-lg-4  { flex-basis: var(--col-4); }
  .col-lg-6  { flex-basis: var(--col-6); }
  .col-lg-9  { flex-basis: var(--col-9); }
  .col-lg-12 { flex-basis: var(--col-12); }
}

/* ===== Pantalles molt grans (min-width: 100em) ===== */
@media screen and (min-width: 100em) {
  /* Fins a futur ús */
}
