.ult-content-box,
.ult-content-box:hover {
    border-style: none !important;
}
.icono-diferents  {
    display: flex;
}

.heigth-iconos {
	max-width: 120px;
}

.border-caixa {
	border: 1px solid var(--accent);
}

/*
 Theme Name:   MAD - GeneratePress
 Theme URI:    https://generatepress.com
 Description:  Client version on GeneratePrees
 Author:       MP
 Template:     generatepress
 Version:      0.1
 Text Domain:  mad
*/

/************************************************************************ GENERAL *************************************************************************/
/* vc_hidden-lg vc_hidden-md vc_hidden-sm vc_hidden-xs */

/*ocultar copy predet.*/
footer.site-info {
    display: none;
}
/*ocultar aviso dev WPML*/
.otgs-development-site-front-end {
    display: none !important;
}
/*Selector WPML nav-list*/
.wpml-ls-menu-item a {
  padding: 5px !important;
  font-size: 0.7em !important;
}
.grecaptcha-badge {
    display: none !important;
}
/*Back to top*/
.generate-back-to-top {
    right: 5px !important;
    bottom: 50px !important;
}
/*Colores*/
.color-blanco, .color-blanco * {
  color: #fff;
}
.color-accent{
    color:var(--accent);
}
.color-base{
    background: var(--base);
}
.bg-base{
    background: var(--base)
}
/*Tamaños*/
.txt-30{
	font-size: 30px;
}
.txt-26{
	font-size: 26px;
}
.txt-25{
	font-size: 25px;
}
.txt-22{
	font-size: 22px;
}
.txt-20{
	font-size: 20px;
}
.txt-16{
	font-size: 16px;
}
.txt-12{
	font-size: 12px;
}
.escala-mt h1 {
  font-size: 61.04px;
}
.btn-40 a {
    font-size: 40px !important;
}
.btn-35 a {
    font-size: 35px !important;
}
.btn-29 a {
    font-size: 29px !important;
}
.btn-24 a {
    font-size: 24px !important;
}
.btn-20 a {
    font-size: 20px !important;
}
.escala-mt h2 {
  font-size: 48.83px;
}

.escala-mt h3 {
  font-size: 39.06px;
}

.escala-mt h4 {
  font-size: 31.25px;
}

.escala-mt h5 {
  font-size: 25px;
}

.escala-mt h6 {
  font-size: 20px;
}

.escala-mt p {
  font-size: 16px;
}

.escala-mt small {
  font-size: 12.8px;
}

.escala-mt sub {
  font-size: 10.24px;
}
.b-rad-50{
    border-radius: 50px;
    overflow: hidden;
}
.b-rad-25{
    border-radius: 50px;
    overflow: hidden;
}
.reduccion-75{
    text-align: center;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}
/* Márgenes */
.mg-bot-0{
	margin-bottom: 0 !important;
}
.mg-bot-5{
	margin-bottom: 5px !important;
}
.mg-bot-10{
	margin-bottom: 10px !important;
}
.mg-bot-15{
	margin-bottom: 15px !important;
}
.pad-20{
    padding: 20px;
}
/********** Alinear elementos **********/
/* mad_center-sm */
/* mad_left-sm */
/* mad_left-xs */
/* mad_center-xs */
.mad-justify{
    text-align: justify !important;
}

/********** Botones **********/
.btn-center p {
    text-align: center;
}
.btn-center a {
    margin-left: auto;
    margin-right: auto;
}

.justify-centrar .ult-content-box {
    justify-content: center;
}



.btn-main a {
    border: 1px solid var(--accent);
    background: var(--accent);
    border-radius: 50px;
    font-family: "DM Serif Text";
    padding: 12px 32px;
    display: block;
    width: fit-content;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 16px;
    transition: background-color 0.5s ease, color 0.5s ease;
	text-decoration: none;
}
.btn-main a:hover {
    cursor: pointer;
}
.btn-accent a,
.btn-accent a:active,
.btn-accent a:focus{
    background: var(--accent);
    color: #fff;
	text-decoration: none;
    transition: background-color 0.5s ease, color 0.5s ease;
}
.btn-accent a:hover{
    color: var(--accent);
    background: unset;
}

.btn-outlined a {
    border: 1px solid var(--accent);
    border-radius: 50px;
    padding: 8px 16px;
    font-family: "DM Serif Text";
	display: block;
}
.btn-outlined a:hover,
.btn-outlined a:focus,
.btn-outlined a:active {
    color: var(--contrast)
}
.btn-outlined-2 a {
    border: 1px solid var(--accent);
    background: #fff;
    border-radius: 50px;
    padding: 8px 16px;
    font-family: "DM Serif Text";
}
.btn-outlined-2 a:hover,
.btn-outlined-2 a:focus,
.btn-outlined-2 a:active {
    color: var(--contrast);
    background: #fff;
}

/********** Secciones **********/
section.vc_section {
    padding-top: 50px;
    padding-bottom: 50px;
}

section.section-top-0{
	padding-top: 0;
}
section.section-bottom-0{
	padding-bottom: 0;
}
.vc_section:first-of-type {
    padding-top: 0;
}
.vc_section:nth-of-type(2) {
    padding-top: 20px;
}

/*
.vc_section:last-of-type{
	padding-bottom: 0;
}
.vc_section:last-of-type .wpb_content_element:last-of-type{
	margin-bottom: 0 !important;
} */
.deco-1 {
    font-size: 22px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}
.font-dm-serif{
    font-family: "DM Serif Text";
}
.img-80 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.content-m-0 .wpb_content_element{
    margin-bottom: 0;    
}
.fondo-1{
    background: var(--base);
    border-radius: 25px;
    padding: 20px;
}
.columna-L.vc_col-sm-6{
    width: 49%;
    margin-right: 1%;
}
.columna-R.vc_col-sm-6{
    width: 49%;
    margin-left: 1%;
}
.dos-columnas .vc_col-sm-6:first-child {
    margin-right: 1%;
}

.dos-columnas .vc_col-sm-6:last-child {
    margin-left: 1%;
}
.dos-columnas .vc_col-sm-6 {
    width: 48%;
}
.box-center .ult-content-box {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px !important;;
}
.box-center-2 .ult-content-box {
    display: flex;
    gap: 10px;
    align-items: center;
}
.width-75{
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}
.badge-nou a:before {
    content: "Nou!";
    position: absolute;
    top: -5px;
    right: 0;
    background: var(--accent);
    line-height: 1;
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 14px;
}
.badge-nuevo a:before {
    content: "Nuevo!";
    position: absolute;
    top: -5px;
    right: 0;
    background: var(--accent);
    line-height: 1;
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 14px;
}
/************************************************************************ HEADER *************************************************************************/

nav#secondary-navigation {
    padding-top: 10px;
    padding-bottom: 10px;
}
.secondary-nav-below-header .secondary-navigation .inside-navigation.grid-container, .secondary-nav-above-header .secondary-navigation .inside-navigation.grid-container {
    padding: 0 40px !important;
}
.main-navigation ul ul {
    padding: 0 15px;
    border-radius: 15px;
}

/************************************************************************ NAV *************************************************************************/
.main-navigation .menu-bar-item>a {
    padding-right: 0 !important;
}
.btn-nav a{
    background: var(--accent);
    color: white !important;
    border-radius: 50px;
    line-height: 2.5 !important;
    margin-left: 15px;
    margin-right: 15px;
    padding: 0 15px !important;
}
.btn-nav a:hover,
.btn-nav a:active,
.btn-nav a:focus{
    color: var(--base) !important;
}
/************************************************************************ HOME *************************************************************************/
.box-etiquetas-home .ult-content-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.deco-sedes-home p:before {
    content: "";
    background: url(https://psicoterapiatraumainstitute.com/wp-content/uploads/2025/05/Espores-dent-de-lleo.png);
    width: 30px;
    height: 40px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}
.deco-sedes-home p{
    display: flex;
    font-size: 25px;
    align-items: center;
}

.giro-90-R img {
    transform: rotate(45deg);
}
.giro-180-R img {
    transform: rotate(180deg);
}
.img-enfoque img {
    width: 90px;
}
.sec-nube-home {
    padding: 0 70px;
}
.reel-home {
    border-radius: 15px;
    overflow: hidden;
}

/* Imágenes animadas */
.box-home-txt-anim .ult-content-box {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    justify-items: center;
    align-items: center;
}


.mad_image-hover {
  position: relative;
  overflow: hidden;
}

.mad_img-default {
  display: block;
  width: 100%;
  height: auto;
}

.mad_img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mad_image-hover:hover .mad_img-hover {
  opacity: 1;
}

.links-home a {
    color: var(--contrast);
}
.links-home a:hover {
    color: var(--accent);
}
.palabra-especial {
    padding: 0 20px;
}










/************************************************************************ TALLERS *************************************************************************/
/* Contenedor principal */
.mad_tallers-wrapper {
    margin: 20px 0;
    padding-right: 20px;
}

/* Filtros */
.mad_tallers-filters {
    margin-bottom: 20px;
}
.mad_tallers-filters a {
	margin-right: 10px;
    text-decoration: none;
    padding: 5px 20px;
    background: #eee;
    border-radius: 40px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}
.mad_tallers-filters a.active {
    background: #333;
    color: #fff;
}

/* Grid controlado por Isotope */
.mad_tallers-grid {
    position: relative; 
}

/* Item de cada taller con gap de 40px */
.mad_taller-item {
    width: calc(33.333% - 40px); /* ancho menos gap horizontal */
    margin-bottom: 40px; 
    margin-right: 40px;           
    box-sizing: border-box;
    border-radius: 20px;
	padding: 20px;
	background-image: url(https://psicoterapiatraumainstitute.com/wp-content/uploads/2025/11/fondo-papel-3.jpg) !important;
    background: no-repeat;
    background-size: cover;
}

/* Imagen enlazada */
.mad_taller-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
	border-radius: 20px;
	max-height: 200px;
    object-fit: cover;
}
/* Tipus*/
p.mad_taller-tipus {
    margin-top: 25px;
    margin-bottom: 5px;
    color: var(--accent);
	font-weight: 500;
    font-size: 18px;
}
/* Título */
.mad_taller-title {
    font-size: 1.2em;
    color: var(--accent);
    min-height: 2.4em;
    line-height: 1.2em;
    display: flex;
    align-items: center;
    margin: 0 0 10px 0;
}

/* Presentación */
.mad_taller-presentacio {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

/* Información extra: duración y modalidad */
.mad_taller-info {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.mad_taller-duracio,
.mad_taller-modalitat {
   	display: inline-block;
    padding: 5px 15px;
    background: #eeeaea;
    border-radius: 20px;
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Botón */
.mad_taller-button {
	margin-bottom: 10px;
}
.mad_taller-button a {
    margin-bottom: 0;
    padding: 8px 15px;
}
/* Responsive: ajusta width según el tamaño de pantalla */
@media (max-width: 1024px) {
    .mad_taller-item {
        width: calc(50% - 40px); /* 2 columnas con gap */
    }
}
@media (max-width: 480px) {
    .mad_taller-item {
        width: 100%; /* 1 columna */
        margin-right: 0; /* eliminar gap horizontal para 1 columna */
    }
}

/* Nota: no necesitamos clear ni float, Isotope se encarga del layout */

/************************************************************************ RESSENYES *************************************************************************/
/* === CONTENEDOR GENERAL === */
.mad_ressenyes_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mad_ressenyes_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* === TARJETA INDIVIDUAL === */
.mad_ressenyes_item {
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    position: relative;
    background: var(--base);
    padding: 20px;
}
.mad_ressenyes_item:after {
    content: "";
    background: url(https://psicoterapiatraumainstitute.com/wp-content/uploads/2025/10/Google__G__logo.svg_.png);
    display: block;
    position: absolute;
    right: 15px;
    background-size: cover;
    width: 25px;
    height: 25px;
}
/* === FLEX: FOTO + INFO === */
.mad_ressenyes_flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Foto */
.mad_ressenyes_foto {
    height: 50px;
    width: 50px;
}
.mad_ressenyes_foto img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

/* Info (nombre + fecha) */
.mad_ressenyes_info {
    display: flex;
    flex-direction: column;
}

.mad_ressenyes_nom {
    font-size: 16PX;
    color: var(--accent);
	font-weight: bold;
}

.mad_ressenyes_data {
    font-size: 14px;
    color: #666;
}

/* === VALORACIÓN (ESTRELLAS) === */
.mad_ressenyes_valoracio {
    margin-top: 5px;
	margin-bottom: 5px;
	display: flex;
}

.mad_ressenyes_valoracio .mad_ressenyes_estrella {
    font-size: 26px;
    color: #ccc;
}

.mad_ressenyes_valoracio .mad_ressenyes_llena {
    color: #f5c518;
}

/* === TEXTO === */
.mad_ressenyes_text {
    font-size: 16px;
    color: #000;
    line-height: 1.5;
    max-height: 100px;
    overflow-y: auto;
    padding-right: 5px;
}

/* === SLIDER (CUANDO HAY +4 RESEÑAS) === */
.swiper-slide-blank {
    visibility: hidden;
}
.mad_ressenyes_slider {
    position: relative;
    width: 100%;
    padding-bottom: 20px;
    overflow: hidden;
}

.mad_ressenyes_slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}

.mad_ressenyes_slider .swiper-slide {
    display: flex;
    flex-direction: column;
    background: var(--base);
    padding: 20px;
    border-radius: 5px;
    min-height: 250px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.mad_ressenyes_slider .swiper-slide:after {
    content: "";
    background: url(https://psicoterapiatraumainstitute.com/wp-content/uploads/2025/10/Google__G__logo.svg_.png);
    display: block;
    position: absolute;
    right: 15px;
    background-size: cover;
    width: 25px;
    height: 25px;
}
/* === FLECHAS EXTERNAS === */
.mad_ressenyes_prev,
.mad_ressenyes_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 22px;
    color: #333;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
}

.mad_ressenyes_prev { left: -50px; }
.mad_ressenyes_next { right: -50px; }

.mad_ressenyes_prev:hover,
.mad_ressenyes_next:hover {
    opacity: 0.7;
}

/* === PAGINACIÓN === */
.mad_ressenyes_pagination {
    width: 100%;
    text-align: center;
}

.mad_ressenyes_pagination .swiper-pagination-bullet {
    background: #bbb;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: background 0.3s;
}

.mad_ressenyes_pagination .swiper-pagination-bullet-active {
	background: var(--accent);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .mad_ressenyes_item {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .mad_ressenyes_item {
        width: 100%;
    }

    .mad_ressenyes_prev,
    .mad_ressenyes_next {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .mad_ressenyes_prev { 
		left: -30px;
		display: none;
	}
    .mad_ressenyes_next { 
		right: -30px;
		display: none;
	}
}
/************************************************************************ SOBRE NOSALTRES *************************************************************************/
.box-centrar-v .ult-content-box {
    display: grid;
    align-items: center;
    gap: 20px;
    grid-template-columns: auto 3fr;
}
.i-nosaltres-objectiu {
    max-width: 60px;
}
/************************************************************************ EQUIP *************************************************************************/
.img-sofa {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}
.item-equip .vc_gitem-zone {     
    border-radius: 25px; 
}
.grid-equip .vc_grid-filter {
    margin-bottom: 32px !important;
}
/* new */
/* new */ /* Contenedor principal que permite espacio para las flechas */ .mad_membres-slider-wrapper { position: relative; overflow: visible; padding: 0 60px; /* espacio para flechas a los lados */ } /* Slides de Swiper centrados */ .mad_membres-slider .swiper-wrapper { display: flex; align-items: stretch; } /* Slide individual */ .mad_membres-slider .swiper-slide { display: flex; justify-content: center; text-align: center; } /* Item dentro del slide */ .mad_membre-item { max-width: 240px; } /* Miniatura que recorta la imagen al hacer hover */ .mad_membre-thumb { display: block; overflow: hidden; /* mantiene el hover dentro del borde */ border-radius: 25px; width: 100%; aspect-ratio: 4 / 5; position: relative; z-index: 1; } /* Imagen dentro de la miniatura */ .mad_membre-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 350ms cubic-bezier(.2,.8,.2,1); will-change: transform; transform-origin: center center; } .mad_membre-thumb:hover .mad_membre-image, .mad_membre-thumb:focus .mad_membre-image { transform: scale(1.08); } /* Título del miembro */ h4.mad_membre-title { margin-top: 10px; margin-bottom: 0; color: var(--accent); } /* Flechas externas */ .mad_membres-slider-wrapper .swiper-button-prev, .mad_membres-slider-wrapper .swiper-button-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); } .mad_membres-slider-wrapper span.swiper-pagination-bullet { width: 15px; height: 15px; } /* Posición de flechas fuera del slider */ .mad_membres-slider-wrapper .swiper-button-prev { left: 0; } .mad_membres-slider-wrapper .swiper-button-next { right: 0; } /* Hover de las flechas */ .mad_membres-slider-wrapper .swiper-button-prev:hover, .mad_membres-slider-wrapper .swiper-button-next:hover { background: rgba(255,255,255,1); } /* Paginación debajo del slider */ .mad_membres-slider-wrapper .swiper-pagination { text-align: center; margin-top: 56px; z-index: 5; bottom: -50px; } /* Responsive: oculta flechas en pantallas pequeñas si lo deseas */ @media (max-width: 767px) { .mad_membres-slider-wrapper { padding: 0 16px; } .mad_membres-slider-wrapper .swiper-button-prev, .mad_membres-slider-wrapper .swiper-button-next { display: none; } }


/* --- Popup Overlay --- */
.mad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
	overflow-y: auto;
}

.mad-popup-overlay.active {
    display: flex;
}

/* --- Popup Content --- */
.mad-popup-content {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    max-width: 1400px;
    position: relative;
	max-height: 90vh;
	overflow-y: auto;
	background-image: url(https://psicoterapiatraumainstitute.com/wp-content/uploads/2025/07/background.png?id=1084)
}




/* --- Close Button --- */
.mad-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

/* --- Popup Row: 2 columnas --- */
.mad-popup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
	align-items: center;
}

/* Columna izquierda (1/3) */
.mad-popup-left {
    flex: 1 1 30%;
    text-align: center;
	border-right: 2px solid #ebeaea94;
    padding-right: 20px;
}

/* Columna derecha (2/3) */
.mad-popup-right {
    flex: 1 1 65%;
	
}

/* --- Imagen --- */
.mad-popup-image {
    border-radius: 20px;
    display: block;
    margin: 0 auto 20px auto;
    max-width: 200px;
    box-shadow: 0 0 5px #c6c6c6;
}

/* --- Nombre del miembro --- */
.mad-popup-title {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 10px;
}

/* --- Ámbitos e info --- */
.mad-popup-ambits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;

}

.mad-popup-ambit {
    font-weight: 500;
    font-size: 14px;
}

.mad-popup-ambit-sep {
    color: #999;
    font-weight: 400;
    margin: 0 0.15em;
}

.mad-popup-carrec-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}
.mad-popup-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
	justify-content: center;
}

.mad-popup-tags-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
}

.mad-popup-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
}

.mad-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mad-popup-tag {
    display: inline-block;
    background: #f2f7fb;
    color: var(--accent);
    font-size: 0.85rem;
    border-radius: 15px;
    padding: 4px 10px;
}

/* --- Tags: centro, idiomas, modalidad --- */
.mad-popup-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mad-popup-centre,
.mad-popup-idiomes,
.mad-popup-modalitat {
    display: inline-block;
    background: #f2f7fb;
    color: var(--accent);
    font-size: 0.85rem;
    border-radius: 15px;
    padding: 4px 10px;
}

/* --- Descripción --- */
.mad-popup-description {
    line-height: 1.6;
    color: #444;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .mad-popup-row {
        flex-direction: column;
    }
    .mad-popup-left,
    .mad-popup-right {
        flex: 1 1 100%;
        text-align: center;
    }
    .mad-popup-right {
        margin-top: 20px;
    }
}


/************************************************************************ TREBALLA AMB NOSALTRES *************************************************************************/

.ul-cuadrados ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.ul-cuadrados li {
  position: relative;
  padding-left: 1.8em;
}

.ul-cuadrados li::before {
  content: "\f14a"; 
  font-family: "Font Awesome 7 Pro";
  font-weight: 300;
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--accent);
}

/************************************************************************ SERVEIS - INDIVIDUAL *************************************************************************/
.featured-image {
    width: 500px;
    margin-bottom: 0 !important;
}
.servei-img-1 {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 25px;
    overflow: hidden;
}
.servei-img-2 {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 25px;
    overflow: hidden;
}


.mad_servei-header {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
	align-items: center;
}

.mad_servei-image {
	flex: 1 1 300px;
	max-width: 200px;
}

.mad_servei-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.mad_servei-meta {
	flex: 2 1 400px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mad_servei-title {
	font-size: 2rem;
	font-weight: bold;
	margin: 0;
}

.mad_servei-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.mad_servei-category {
	background: #f0f0f0;
	padding: 3px 15px;
	border-radius: 40px;
	font-size: 14px;
	display: inline-block;
}
.mad_servei-categories-box {
    /* display: grid;
    grid-template-columns: auto 3fr 1fr;
    gap: 20px; */
    align-items: center;
}
.mad_servei_txt-categories{
    color: var(--accent);
}
/************************************************************************ ESPECIALITATS *************************************************************************/
.grid-especialitats-titulo h5 {
    font-size: 22px;
    margin-bottom: 0;
}
.grid-especialitats .vc_gitem-zone-a {
    width: 70px !important;
    margin-left: auto;
    margin-right: auto;
}
/************************************************************************ SEUS *************************************************************************/
.slider-sede img{
    border-radius: 50px;
    max-height: 500px;
    object-fit: cover
}
.i-seus-serveis img {
    max-width: 20px !important;
}
.i-seus-serveis{
    margin-bottom: 0 !important;
}
.i-seus-preus img {
    width: 100px;
}
.box-seus-contacte .ult-content-box {
    display: grid;
    align-items: center;
    gap: 10px;
    grid-template-columns: auto 1fr;
}
.rotate-y-180{
    transform: rotateY(180deg);
}
.grid-especialitats-titulo a:hover {
    color: var(--contrast-2);
    border-bottom: 2px solid var(--accent) !important;
}
.grid-3-serveis {
    padding: 40px;
}
.box-center-3 .ult-content-box {
    display: flex;
    align-items: center;
    gap: 20px;
}
.icon-preus {
    width: 100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}
.grid-3-serveis .vc_col-sm-4,
.grid-3-preus .vc_col-sm-4{
    width: 32%;
}
.grid-3-serveis .col-izq.vc_col-sm-4, 
.grid-3-preus .col-izq.vc_col-sm-4{
	margin-right: 1%;
}
.grid-3-serveis .col-med.vc_col-sm-4, 
.grid-3-preus .col-med.vc_col-sm-4{
	margin-right: 1%;
	margin-left: 1%;
}
.grid-3-serveis .col-der.vc_col-sm-4, 
.grid-3-preus .col-der.vc_col-sm-4{
	margin-left: 1%;
}
.grid-3-serveis .vc_column-inner, 
.grid-3-preus .vc_column-inner{
    padding: 40px 20px;
}


.tamany-icones img {
	width: 50px !important;
}
/************************************************************************ SEUS INDIVIDUAL *************************************************************************/
.seu-grid-especialitats,
.seu-grid-equip {
    text-align: center;
    margin-top: 15px;
}
/************************************************************************ BLOG *************************************************************************/
.graella-blog .vc_gitem-animated-block {
    border-radius: 15px;
}
.item-grid-extracte{
    font-size: 18px;
}
/************************************************************************ SERVEIS *************************************************************************/
.header-formulari-contacte h5 {
    color: var(--accent);
    font-size: 35px !important;
    margin-bottom: 0 !important;
    text-align: center;
    margin-top: 0 !important;
    font-weight: 400 !important;
}
.header-formulari-contacte {
    text-align: center;
    margin-bottom: 20px !important;
}
/************************************************************************ CONTACTE *************************************************************************/
.box-contacte-seus .ult-content-box {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}
.box-contacte-seus h5 {
    color: var(--accent);
    font-weight: 500;
}
.box-contacte-seus img {
    width: 30px;
}
.box-contacte-seus a {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #000;
}
.box-contacte-seus a:hover,
.box-contacte-seus a:active,
.box-contacte-seus a:focus {
    color: var(--accent);
}
.contacte-llistat-centres h5 {
    margin-bottom: 5px;
    font-weight: 500;
}
.contacte-rrss p {
    font-size: 12px;
}


/************************************************************************ POST INDIVIDUAL *************************************************************************/
.entry-content section.vc_section {
    padding-bottom: 0;
}
.entry-content.mad_grey-box .wpb_content_element:last-child {
    margin-bottom: 0;
}

.mad_post-header {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	flex-direction: row-reverse;
}

.mad_post-image {
	flex: 1 1 300px;
}
.mad_post-image img {
	object-fit: cover;
	height: 100%;
	border-radius: 25px;
	max-height: 400px;
}
.mad_post-meta {
	flex: 2 1 500px;
}
.mad_post-meta h1.entry-title {
	margin-bottom: 15px;
}

.mad_author {
	font-weight: bold;
	color: var(--accent);
	margin-bottom: 10px;
}
p.mad_fecha {
	font-size: 16px;
	color: #434343;
}
.mad_tags {
	margin-top: 1rem;
}

.mad_tag {
	background: #f0f0f0;
	padding: 3px 15px;
	border-radius: 40px;
	margin-right: 6px;
	font-size: 14px;
	display: inline-block;
	color: #434343;
}

.mad_excerpt {
	margin-top: 1rem;
	color: #434343;
}

.mad_grey-box {
/* 	background-color: #fbfbfb; */
	padding: 2rem;
	margin-top: 2rem;
	border-radius: 25px;
	color: #434343;
}
.caja-gris {
	background-color: #fbfbfb;
	padding: 2rem;
	margin-top: 2rem;
	border-radius: 25px;
	color: #434343;
}
.mad_related-posts {
	margin-top: 4rem;
    margin-bottom: 4rem;
}

.mad_related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.mad_related-item {
	position: relative;
	border: 2px solid transparent;
	border-radius: 15px;
	overflow: hidden;
	transition: border-color 0.3s ease;
	cursor: pointer;
}

.mad_related-item:hover {
	border-color: #00aaff; /* Azul */
}

.mad_related-item img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	border-radius: 15px;
    filter: brightness(0.6);
}

.mad_related-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    font-size: 20px;
    margin-bottom: 0;
}
.mad_related-posts h2 {
    color: var(--accent);
}

/************************************************************************ Formulari sessió *************************************************************************/
.img-form-sessio-r img{
    position: absolute;
    right: 0;
    top: 8vh;
    width: 400px;
    z-index: -1;
}
.img-form-sessio-l img {
    position: absolute;
    left: 0;
    bottom: 15vh;
    width: 320px;
    z-index: -1;
}
h2.t-reseva-sessio{
    color: var(--accent);
}
p.t-reserva-sessio-intro,
p.t-reserva-sessio-text {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
p.t-reserva-sessio-intro{
    font-weight: bold;
}
p.t-reserva-sessio-text{
    text-align: left !important;
    margin-bottom: 32px;
}
p.t-reserva-sessio-text-2{
    text-align: center !important;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ap. Nùvol etiquetes */
.qs-nube ul {
    display: flex !important;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center;
}
.qs-dos-columnas ul{
    justify-content: center;
    justify-items: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}







/* Plantilla membre-equip */
.mad_membre-wrapper {
    padding: 20px;
    border-radius: 20px;
    background: #fff;
}
.mad_membre-tags-row {
    display: flex;
    gap: 5%;
}
h4.mad_membre-tags-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
}
/* Fila principal: foto + datos */
.mad_membre-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
	align-items: center;
}
.mad_membre-left {
    flex: 0 0 280px;
    text-align: left;
}

.mad_membre-photo img {
    border-radius: 20px;
    width: 100%;
    height: auto;
}

.mad_membre-right {
    flex: 1;
}

/* Nombre del miembro */
.mad_membre-name {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 40px;
    color: var(--accent);
}

/* Dos columnas dentro de la info */
.mad_membre-two-columns {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.mad_membre-col {
    flex: 1;
    min-width: 150px;
}

/* Cargo e info */
.mad_membre-carrec {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 15px;
}

.mad_membre-ambits {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mad_membre-ambit {
    font-weight: 500;
}

.mad_membre-ambit-sep {
    color: #999;
    font-weight: 400;
    margin: 0 0.15em;
}

.mad_membre-carrec-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.mad_membre-label {
    font-weight: 500;
    margin: 10px 0 5px;
    margin-top: 20px;
}

.mad_membre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.mad_membre-tag {
    background: #f2f7fb;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Fila de contenido debajo */
.mad_membre-content-row {
    margin-top: 30px;
}

.mad_membre-content {
    line-height: 1.6;
    color: #444;
}


/************************************************************************ FOOTER *************************************************************************/
.site-footer {
    background: var(--base);
}

#mad-footer{
    max-width: 1360px;
    padding: 40px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
	color: #000000;

}
#mad-copyright .wpb_content_element {
    margin-bottom: 0;
}
#mad-copyright {
    max-width: 1360px;
    padding-left: 40px;
    padding-right: 40px;
	padding-bottom: 20px;
    padding-top: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 16px;
	color: #000;
}
.logo-ft-certi img {
    width: 70px;
}
.logo-ft img{
    width: 170px;
}
.flex-end .box-center {
    display: flex;
    justify-content: flex-end;
}
#mad-footer h5 {
    color: var(--accent);
    margin-bottom: 10px !important;
}
.flor-ft img {
    width: 15px;
}
.box-legales-ft .ult-content-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap:  0 15px;
    justify-items: center;
}
.flex-end .wpb_wrapper {
    display: flex;
    justify-content: space-between;
}
#mad-footer .box-contacte-seus img {
    width: 25px;
}
#mad-footer .box-contacte-seus p {
    margin-bottom: 10px;
}

/************************************************************************ MEMBRES GRID *************************************************************************/
.mad_membres-grid-wrapper {
    width: 100%;
}

.mad_membres-filters-wrap {
    margin-bottom: 32px;
}

.mad_membres-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 18px;
    justify-content: center;
}

.mad_membres-filter-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b6b6b;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 400;
    line-height: 1.3;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.mad_membres-filter-btn:hover,
.mad_membres-filter-btn:focus-visible {
    outline: none;
    background: #efefef;
    color: #555;
}

.mad_membres-filter-btn.is-active {
    background: #efefef;
    color: #555;
}

.mad_membres-filters--ambit .mad_membres-filter-btn:hover,
.mad_membres-filters--ambit .mad_membres-filter-btn:focus-visible {
    background: var(--mad-ambit-color, #efefef);
    color: #fff;
}

.mad_membres-filters--ambit .mad_membres-filter-btn.is-active {
    background: var(--mad-ambit-color, #efefef);
    color: #fff;
}

.mad_membres-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 24px;
}

.mad_membres-grid-item.is-hidden {
    display: none;
}

.mad_membres-grid-link {
    display: block;
    text-decoration: none;
    text-align: center;
    color: inherit;
}

.mad_membres-grid-thumb {
    display: block;
    overflow: hidden;
    border-radius: 25px;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f0f0f0;
}

.mad_membres-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 350ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

.mad_membres-grid-link:hover .mad_membres-grid-image,
.mad_membres-grid-link:focus .mad_membres-grid-image {
    transform: scale(1.08);
}

.mad_membres-grid-title {
    margin: 10px 0 0;
    font-size: 1em;
    color: var(--accent);
}

.mad_membres-grid-ambits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.25;
}

.mad_membres-grid-ambit {
    font-weight: 700;
}

.mad_membre-slider-ambits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.25;
}

.mad_membre-slider-ambit {
    font-weight: 700;
}

.mad_membres-grid-empty {
    text-align: center;
    margin: 24px 0 0;
    font-size: 14px;
}

.mad_membres-grid-empty[hidden] {
    display: none !important;
}


/************************************************************************ EDUVIC *************************************************************************/
.box-tallers-formats {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}
