/* M Fisioterapia — estils que Elementor no cobreix de sèrie.
 * Els colors i tipografies venen del Kit d'Elementor (variables --e-global-*). */

:root {
	--mf-morat: var(--e-global-color-primary, #92225e);
	--mf-morat-viu: var(--e-global-color-accent, rgba(216, 104, 166, 0.7));
	--mf-tinta: var(--e-global-color-text, #161616);
	--mf-fondo: var(--e-global-color-mffondo, #f0f1f5);
	--mf-blanco: var(--e-global-color-mfblanco, #fff);
	--mf-salvia: var(--e-global-color-mfsalvia, #b8cbc8);
	--mf-salvia-fosca: var(--e-global-color-secondary, #82a6a8);
	--mf-linea: var(--e-global-color-mflinea, #dedddc);
	--mf-radius-pill: 999px;
	--mf-radius-card: 24px;
}

/* ---------------------------------------------------------------- Bàsics */

/* Subratllat «marker» dels títols: posa la paraula en negreta (B) a l'editor d'Elementor.
 * La negreta no canvia el pes: només activa el subratllat Morat Viu. */
.mf-marker,
.elementor-heading-title strong,
.elementor-heading-title b,
:is(h1, h2, h3, h4, h5, h6) :is(strong, b) {
	font-weight: inherit;
	background: none;
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--mf-morat-viu);
	text-decoration-thickness: 0.25em;
	text-underline-offset: -0.18em;
	text-decoration-skip-ink: none;
}

.mf-estrellas {
	color: var(--mf-morat);
	letter-spacing: 0.1em;
}

.mf-icon {
	display: inline-flex;
	flex-shrink: 0;
	vertical-align: middle;
	line-height: 0;
}
.mf-icon svg {
	display: block;
}

/* ---------------------------------------------------------------- Capçalera */

.mf-topbar p { margin: 0; }
.mf-topbar a { color: inherit; }
.mf-topbar .mf-icon--phone { width: 14px; height: 14px; margin-right: 8px; }
.mf-topbar .mf-icon--phone svg { width: 14px; height: 14px; }

.mf-logo img { display: block; }

/* Mega Menu: títols sense subratllat i desplegables flotants amb ombra. */
.mf-megamenu .e-n-menu-title-text { white-space: nowrap; }
@media (min-width: 1025px) {
	/* Desplegable ample: mateixa amplada que la píndola de navegació (100% - 2×30px). */
	.mf-megamenu .e-n-menu-content > .e-con.mf-dropdown:not(.mf-dropdown--narrow) {
		max-width: calc(100vw - 60px);
		margin-inline: auto;
	}
	/* Desplegable estret (Nuestro enfoque, Especialidades): just sota el seu ítem. */
	.mf-megamenu .e-n-menu-item:has(.mf-dropdown--narrow) { position: relative; }
	.mf-megamenu .e-n-menu-item:has(.mf-dropdown--narrow) > .e-n-menu-content {
		left: -24px !important;
		right: auto !important;
		width: 384px !important;
		inset-inline-start: -24px !important;
	}
}
.mf-mm a.mf-mm__all,
.mf-mm a.mf-mm__item { color: var(--mf-tinta); }
.mf-mm a.mf-mm__link { color: var(--mf-morat); }
.mf-mm a.mf-mm__card { color: var(--mf-tinta); }
.mf-mm a:hover { color: var(--mf-morat); }
.mf-mm a.mf-mm__link:hover { color: var(--mf-tinta); }

/* Contingut dels megamenús (shortcodes mf_menu_*). */
.mf-mm a { text-decoration: none; }
.mf-mm__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.mf-mm__col,
.mf-mm__group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.mf-mm__label { display: none; margin: 0; font-size: 13px; line-height: 18px; color: var(--mf-tinta); }
.mf-mm__link {
	display: flex;
	align-items: center;
	min-height: 32px;
	font-size: 20px;
	line-height: 30px;
	color: var(--mf-morat);
}
.mf-mm__link:hover { color: var(--mf-tinta); }

.mf-mm__row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 24px;
}
.mf-mm__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 8px 0;
	font-size: 20px;
	line-height: 30px;
	color: var(--mf-tinta);
}
.mf-mm__card:hover { color: var(--mf-morat); }
.mf-mm__card .mf-icon svg { width: 20px; height: 20px; }

.mf-mm__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
}
.mf-mm__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 12px 14px 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--mf-tinta);
}
.mf-mm__all .mf-icon svg { width: 18px; height: 18px; }
.mf-mm__note { margin: 0; font-size: 14px; line-height: 20px; color: var(--mf-salvia-fosca); }

.mf-mm--list { display: flex; flex-direction: column; }
.mf-mm__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	font-size: 14px;
	line-height: 20px;
	color: var(--mf-tinta);
}
.mf-mm__item:hover { color: var(--mf-morat); }
.mf-mm__item .mf-icon svg { width: 16px; height: 16px; }

.mf-only-mobile { display: none !important; }

/* ---------------------------------------------------------------- Menú mòbil */

/* Hamburguesa → creu (botó d'Elementor amb classe mf-burger). */
.mf-burger .elementor-button {
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border-radius: var(--mf-radius-pill);
	color: var(--mf-tinta);
}
.mf-burger .elementor-button-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.mf-burger .elementor-button::before,
.mf-burger .elementor-button::after,
.mf-burger .elementor-button-content-wrapper::before {
	content: "";
	position: absolute;
	left: 13px;
	width: 22px;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.mf-burger .elementor-button::before { top: 17px; }
.mf-burger .elementor-button-content-wrapper::before { top: 23px; }
.mf-burger .elementor-button::after { top: 29px; }
.mf-menu-open .mf-burger .elementor-button::before { top: 23px; transform: rotate(45deg); }
.mf-menu-open .mf-burger .elementor-button::after { top: 23px; transform: rotate(-45deg); }
.mf-menu-open .mf-burger .elementor-button-content-wrapper::before { opacity: 0; transform: scaleX(0); }

/* Panell: comença sota la capçalera (que queda per sobre, amb la creu visible). */
.mf-nav { position: relative; z-index: 2; }
.mf-offcanvas { z-index: 1; }
.mf-offcanvas .e-off-canvas__main { width: 100%; height: 100%; }
.mf-offcanvas .e-off-canvas__content { min-height: 100%; padding-top: 72px; padding-bottom: 96px; background: var(--mf-fondo); }
.admin-bar .mf-offcanvas .e-off-canvas__content { padding-top: 118px; }

.mf-mob { display: flex; flex-direction: column; }
.mf-mob a { text-decoration: none; }
.mf-mob__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	border-bottom: 1px solid var(--mf-linea);
	font-size: 14px;
	line-height: 20px;
	color: var(--mf-tinta);
	cursor: pointer;
	list-style: none;
}
.mf-mob__item::-webkit-details-marker { display: none; }
.mf-mob a.mf-mob__item { color: var(--mf-tinta); }
.mf-mob__acc .mf-icon svg { width: 20px; height: 20px; }
.mf-mob__minus, .mf-mob__acc[open] .mf-mob__plus { display: none; }
.mf-mob__acc[open] .mf-mob__minus { display: inline-flex; }
.mf-mob__acc[open] > summary { border-bottom: 0; }
.mf-mob__acc[open] { border-bottom: 1px solid var(--mf-linea); }
/* Mentre es tanca (animació JS) el <details> encara és [open]: la icona ja passa a «+». */
.mf-mob__acc.is-closing .mf-mob__minus { display: none; }
.mf-mob__acc.is-closing .mf-mob__plus { display: inline-flex; }
.mf-mob__acc .mf-mob__sub { transition: opacity .3s ease; }
.mf-mob__acc.is-closing .mf-mob__sub { opacity: 0; }
.mf-mob__acc.is-opening .mf-mob__sub { animation: mf-mob-in .42s ease both; }
@keyframes mf-mob-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mf-mob__acc .mf-mob__sub { animation: none !important; transition: none; } }
.mf-mob__sub { display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px 16px; }
.mf-mob__label { margin: 0; font-size: 13px; line-height: 18px; color: var(--mf-tinta); }
.mf-mob a.mf-mob__sublink {
	display: flex;
	align-items: center;
	min-height: 36px;
	font-size: 16px;
	line-height: 24px;
	color: var(--mf-morat);
}
.mf-mob a.mf-mob__all { min-height: 36px; display: flex; align-items: center; font-size: 14px; color: var(--mf-tinta); }
.mf-mob__contact { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
.mf-mob__contact a { font-size: 16px; line-height: 24px; color: var(--mf-morat); }
.mf-mob__contact p { margin: 0; font-size: 14px; line-height: 20px; }

/* ---------------------------------------------------------------- Peu */

.mf-nap { margin: 0; font-size: 16px; line-height: 29px; }
.mf-nap a { color: inherit; }

.mf-redes { display: flex; gap: 16px; }
.mf-redes__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--mf-radius-pill);
	color: var(--mf-tinta);
}
.mf-redes__link:hover { background: var(--mf-fondo); }
.mf-redes__link svg { width: 20px; height: 20px; }

.mf-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mf-footer-links a { font-size: 14px; line-height: 20px; color: var(--mf-tinta); text-decoration: none; }
.mf-footer-links a:hover { color: var(--mf-morat); }

.mf-footer-map iframe { display: block; border-radius: var(--mf-radius-card); }

/* Franja legal del peu: contenidor d'Elementor (plantilla Pie #75) amb classe mf-footer-legal. */
.mf-footer-legal,
.mf-footer-legal .elementor-widget-text-editor {
	font-size: 14px;
	line-height: 20px;
	color: var(--mf-morat);
}
.mf-footer-legal p { margin: 0; }
.mf-footer-legal__links p { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.mf-footer-legal a { color: inherit; text-decoration: none; }
.mf-footer-legal a:hover { text-decoration: underline; }
.mf-kit-digital img { display: block; width: 350px; max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- Tauleta i mòbil (≤ 1024px) */

@media (max-width: 1024px) {
	.mf-only-desktop { display: none !important; }
	.mf-only-mobile { display: grid !important; }

	/* Barra inferior fixa amb Pedir cita + WhatsApp. */
	.mf-barra-movil {
		position: fixed !important;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10001;
		box-shadow: 0 -4px 12px -8px rgba(0, 0, 0, 0.25);
	}
	body { padding-bottom: 72px; }

	.mf-footer-dir > .e-con { flex-basis: calc(50% - 12px) !important; }
}

/* ================================================================ BLOCS DE FITXA */

/* Etiqueta «píndola» sobre els títols (Figma «Etiqueta»): heading amb classe mf-pill. */
.mf-pill .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 6px 2px 8px;
	border-radius: 10px;
	background: var(--e-global-color-mfsalviac, #dde5e2);
	font-size: 13px;
	line-height: 18px;
	color: var(--mf-tinta);
}
.mf-pill--white .elementor-heading-title { background: var(--mf-blanco); }
.mf-pill--morat .elementor-heading-title { background: var(--mf-morat); color: var(--mf-blanco); }

/* Molles de pa (Yoast via widget Breadcrumbs). */
.mf-breadcrumbs, .mf-breadcrumbs a { font-size: 14px; line-height: 20px; color: var(--mf-morat); text-decoration: none; }
.mf-breadcrumbs .breadcrumb_last { color: var(--mf-salvia-fosca); }
.mf-breadcrumbs p { margin: 0; }

/* Text de contingut ACF (wysiwyg). */
.mf-prose p { margin: 0 0 24px; } /* L'amplada es controla a Elementor: Avanzado > Ancho personalizado. */
.mf-prose p:last-child { margin-bottom: 0; }
.mf-prose ul { padding-left: 1.2em; margin: 0 0 24px; }

/* Enllaç de text amb fletxa (Figma «Enlace / Texto»). */
.mf-textlink { display: inline-flex; align-items: center; gap: 8px; padding: 14px 0; font-size: 14px; line-height: 20px; color: var(--mf-tinta); text-decoration: none; }
.mf-textlink:hover { color: var(--mf-morat); }

/* Puntos destacados: targeta morada. */
.mf-puntos {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 32px;
	border-radius: 16px;
	background: var(--mf-morat);
	color: var(--mf-blanco);
}
.mf-puntos__item { display: flex; flex-direction: column; gap: 12px; }
.mf-puntos__title { margin: 0; font-family: inherit; font-weight: 400; color: inherit; font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.mf-puntos__text { margin: 0; max-width: 510px; font-size: 16px; line-height: 24px; }

/* Galeria: franja a tota l'amplada. */
.mf-galeria { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.mf-galeria img { display: block; width: 100%; height: 327px; object-fit: cover; }

/* Icona dins cercle blanc (Beneficios / Contraindicaciones): el cercle és el widget, la imatge no es retalla. */
.elementor-widget-image.mf-icon-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--mf-blanco);
}
.elementor-widget-image.mf-icon-circle img {
	width: 35px !important;
	max-width: 35px;
	height: auto;
	border-radius: 0 !important;
	overflow: visible;
}

/* Patologies relacionades: files grans + etiquetes. */
.mf-patrel { display: flex; flex-direction: column; gap: 48px; }
.mf-patrows { display: flex; flex-direction: column; }
.mf-patrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 61px;
	padding: 0 23px;
	border-bottom: 1px solid var(--mf-tinta);
	font-size: 32px;
	line-height: 36px;
	letter-spacing: -0.04em;
	color: var(--mf-tinta);
	text-decoration: none;
	transition: background .2s;
}
.mf-patrow:hover { background: var(--mf-fondo); color: var(--mf-tinta); }
.mf-patrow .mf-icon svg { width: 16px; height: 16px; }
.mf-chips { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mf-chip {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	margin: 6px 0;
	padding: 0 24px;
	border-radius: var(--mf-radius-pill);
	background: var(--mf-fondo);
	font-size: 13px;
	line-height: 18px;
	color: var(--mf-tinta);
}

/* FAQ (Figma «Acordeón / Preguntas frecuentes»). */
.mf-faqs { display: flex; flex-direction: column; gap: 16px; }
.mf-faq { padding: 24px; border-radius: 16px; background: var(--mf-fondo); }
.mf-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 20px;
	line-height: 30px;
	cursor: pointer;
	list-style: none;
}
.mf-faq__q::-webkit-details-marker { display: none; }
.mf-faq__q .mf-icon svg { width: 24px; height: 24px; }
/* Icona +/−: les dues superposades, creuen amb gir i fos. */
.mf-faq__q .mf-icon { flex: none; display: inline-grid; place-items: center; transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease; }
.mf-faq__q { position: relative; }
.mf-faq__minus { position: absolute; right: 0; opacity: 0; transform: rotate(-90deg); }
.mf-faq[open] .mf-faq__plus { opacity: 0; transform: rotate(90deg); }
.mf-faq[open] .mf-faq__minus { opacity: 1; transform: rotate(0); }
.mf-faq { transition: background-color .25s ease; }
.mf-faq__q:hover .mf-faq__plus { transform: rotate(90deg); }
.mf-faq__a { overflow: hidden; }
.mf-faq__a > * { transition: opacity .3s ease, transform .35s ease; }
.mf-faq.is-closing .mf-faq__a > * { opacity: 0; transform: translateY(-6px); }
.mf-faq.is-opening .mf-faq__a > * { animation: mfFaqIn .4s ease both; }
@keyframes mfFaqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mf-faq__q .mf-icon, .mf-faq__a > * { transition: none; animation: none; } }
.mf-faq__a { padding-top: 16px; max-width: 630px; font-size: 16px; line-height: 24px; }
.mf-faq__a p { margin: 0 0 12px; }
.mf-faq__a p:last-child { margin-bottom: 0; }
.mf-faq__a ul { margin: 0 0 12px; padding-left: 1.25em; } .mf-faq__a ul:last-child { margin-bottom: 0; } .mf-faq__a li + li { margin-top: 4px; }

/* Targetes relacionades. */
.mf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mf-card { display: flex; flex-direction: column; border-radius: 16px; color: var(--mf-tinta); text-decoration: none; }
.mf-card:hover { color: var(--mf-tinta); }
.mf-card__img { height: 288px; overflow: hidden; border-radius: 24px; background: var(--e-global-color-mfsuperf, #e8e8e8); }
.mf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mf-card:hover .mf-card__img img { transform: scale(1.03); }
.mf-card__body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
/* Títols de targeta = H3 (SEO): es neteja l'estil d'encapçalament del Kit perquè es vegin com abans. */
.mf-card .mf-card__title, .mf-esp .mf-esp__title { margin: 0; font-family: inherit; font-weight: inherit; color: inherit; text-transform: none; }
.mf-card .mf-card__title { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.mf-card__text { margin: 0; font-size: 16px; line-height: 24px; }
.mf-card__cta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 20px; }
.mf-card:hover .mf-card__cta { color: var(--mf-morat); }
.mf-card__cta .mf-icon svg { width: 20px; height: 20px; }

/* Ressenyes (Figma «Tarjeta / Reseña» + carrusel). */
.mf-reviews__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 48px) / 3);
	gap: 24px;
	align-items: start;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.mf-reviews__track::-webkit-scrollbar { display: none; }
.mf-review {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: 20px;
	background: var(--mf-blanco);
	scroll-snap-align: start;
}
.mf-review p { margin: 0; }
.mf-review__date { font-size: 14px; line-height: 20px; }
.mf-review__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.mf-review__meta .mf-estrellas { font-size: 16px; letter-spacing: 0; }
.mf-review__name { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.mf-review__text { font-size: 16px; line-height: 24px; white-space: pre-line; }
.mf-review__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.mf-review .mf-review__more { align-self: flex-start; margin-top: -8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 14px; line-height: 20px; color: var(--mf-tinta); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.mf-review .mf-review__more:hover,
.mf-review .mf-review__more:focus,
.mf-review .mf-review__more:focus-visible { background: none; color: var(--mf-morat); text-decoration: underline; }
.mf-review__link { font-size: 14px; color: var(--mf-salvia-fosca); text-decoration: none; }
.mf-review__link:hover { color: var(--mf-morat); }
.mf-reviews__nav { display: flex; align-items: center; gap: 16px; margin-top: 48px; font-size: 14px; }
.mf-reviews.is-static .mf-reviews__nav { display: none; }
.mf-round-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mf-blanco);
	color: var(--mf-tinta);
	cursor: pointer;
}
.mf-round-btn:hover, .mf-round-btn:focus { background: var(--mf-morat); color: var(--mf-blanco); }
.mf-round-btn svg { width: 20px; height: 20px; }

/* Insignia de Google (pill blanca). */
.mf-google-badge a, .mf-google-badge > .elementor-widget-container > span {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 16px 24px;
	min-width: 385px;
	border-radius: var(--mf-radius-pill);
	background: var(--mf-blanco);
	font-size: 16px;
	line-height: 24px;
	color: var(--mf-salvia-fosca);
	text-decoration: none;
}
.mf-google-badge .mf-rating { color: var(--mf-salvia-fosca); }

/* Botó WhatsApp amb text (Figma «Botón / WhatsApp»). */
.mf-wa-text .elementor-button-icon svg { width: 17px; height: 17px; }

/* Banda CTA: contacte. */
.mf-cta-contact { display: flex; flex-direction: column; gap: 16px; }
.mf-cta-contact a { display: inline-flex; align-items: center; gap: 12px; min-height: 24px; font-size: 16px; line-height: 24px; color: var(--mf-blanco); text-decoration: none; }
.mf-cta-contact a:hover { text-decoration: underline; }
.mf-cta-contact svg { width: 20px; height: 20px; }

/* Confianza clínica: icones blanques. */
.mf-trust img { width: 28px !important; height: 28px; }

@media (max-width: 1024px) {
	.mf-patrow { font-size: 24px; line-height: 28px; padding: 12px 8px; }
	.mf-cards { grid-template-columns: 1fr; }
	.mf-reviews__track { grid-auto-columns: 85%; }
	.mf-galeria { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); }
	.mf-galeria img { height: 160px; }
	.mf-google-badge a { min-width: 0; }
	.mf-puntos__title { font-size: 24px; line-height: 28px; }
}

/* Capçalera fixa: en fer scroll s'amaga la barra de telèfon/email. */
/* Capçalera sticky: la barra superior es plega suaument (alçada + gap del contenidor + fos) en lloc de desaparèixer de cop. */
.mf-header { transition: padding-top .4s cubic-bezier(.4,0,.2,1), background .3s, border .3s, box-shadow .3s, transform .4s !important; }
.mf-header .mf-topbar {
	max-height: 60px;
	min-height: 0 !important;
	height: 42px;
	margin-bottom: -2px; /* Figma: el menú comença a 40px */
	margin-bottom: -2px; /* Figma: el menú comença a 40px */
	overflow: hidden;
	transition: max-height .4s cubic-bezier(.4,0,.2,1), height .4s cubic-bezier(.4,0,.2,1), margin-bottom .4s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.mf-header.elementor-sticky--effects .mf-topbar { max-height: 0; height: 0; min-height: 0 !important; margin-bottom: 0; opacity: 0; pointer-events: none; }
.mf-header.elementor-sticky--effects { padding-top: 12px !important; }
@media (prefers-reduced-motion: reduce) { .mf-header, .mf-header .mf-topbar { transition: none !important; } }

/* Icones blanques sobre fons morat (SVG via <img>). */
.mf-trust img { filter: brightness(0) invert(1); }
.e-con { min-width: 0; }

/* Enllaços dels blocs: color Tinta (el Kit posa els enllaços en Morat). */
a.mf-patrow, a.mf-patrow:hover,
a.mf-card, a.mf-card:hover,
a.mf-textlink, .mf-prose a.mf-textlink { color: var(--mf-tinta); }
a.mf-textlink:hover, .mf-prose a.mf-textlink:hover { color: var(--mf-morat); }

/* Insignia de Google. */
.mf-gbadge {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-width: 385px;
	padding: 16px 24px;
	border-radius: var(--mf-radius-pill);
	background: var(--mf-blanco);
	font-size: 16px;
	line-height: 24px;
	color: var(--mf-salvia-fosca);
	text-decoration: none;
}
a.mf-gbadge:hover { color: var(--mf-morat); }
.mf-gbadge .mf-estrellas { color: var(--mf-morat); letter-spacing: 0; }
.mf-gbadge .mf-icon svg { width: 18px; height: 18px; color: var(--mf-tinta); }
@media (max-width: 767px) { .mf-gbadge { min-width: 0; } }

/* Icones del FAQ: cercles plens del Figma. */
.mf-faq[open] .mf-faq__minus { color: inherit; }
.mf-faq__minus { display: inline-grid; }

/* Confianza clínica (Icon Box): icona SVG agafa el color del widget. */
.mf-trust-item .elementor-icon svg { width: 28px; height: 28px; }
.mf-trust-item .elementor-icon svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.mf-trust-item .elementor-icon-box-title { margin: 0; }

/* Targetes de teràpia (Figma «Tarjeta / Terapia») dins secció morada. */
.mf-cards--terapia .mf-card { overflow: hidden; border-radius: 16px; background: var(--mf-fondo); }
.mf-cards--terapia .mf-card__img { height: 320px; border-radius: 16px; }
.mf-cards--terapia .mf-card__title { font-size: 40px; line-height: 44px; }
.mf-cards--terapia .mf-card__cta { justify-content: flex-start; gap: 4px; }

/* Recuadres destacats (Patologia: Cuándo acudir · Especialitat: Por qué elegirnos). */
.mf-box p { margin: 0 0 12px; }
.mf-box p:last-child { margin-bottom: 0; }

/* Fitxa d'equip (Figma «Tarjeta / Equipo»). */
.mf-team { display: flex; flex-direction: column; max-width: 384px; overflow: hidden; border-radius: 16px; background: var(--mf-fondo); color: var(--mf-tinta); text-decoration: none; }
a.mf-team, a.mf-team:hover { color: var(--mf-tinta); }
.mf-team__img { height: 224px; border-radius: 16px; overflow: hidden; background: var(--e-global-color-mfsuperf, #e8e8e8); }
.mf-team__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; } /* retrats: enquadra la cara, no el centre */
.mf-team__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; font-size: 13px; line-height: 18px; }
.mf-team__ph svg { width: 24px; height: 24px; }
.mf-team__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.mf-team__body p { margin: 0; }
.mf-team__name { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.mf-team__col { font-size: 13px; line-height: 18px; }
.mf-team__esp { font-size: 14px; line-height: 20px; }

@media (max-width: 1024px) {
	.mf-cards--terapia .mf-card__title { font-size: 28px; line-height: 32px; }
	.mf-cards--terapia .mf-card__img { height: 240px; }
}
.mf-textlink--white, .mf-prose a.mf-textlink--white, a.mf-textlink--white:hover { color: var(--mf-blanco); }

/* ================================================================ PÀGINES ÍNDEX */

/* Graella de teràpies (1383px: més ampla que el contingut, com al Figma). */
.mf-cards--index { gap: 24px; }

/* Especialitats (Figma «Tarjeta / Especialidad»). */
.mf-esp-grid { display: flex; flex-direction: column; gap: 24px; }
.mf-esp-grid__big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mf-esp-grid__small { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.mf-esp {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background: var(--e-global-color-mfsalviac, #dde5e2);
	color: var(--mf-tinta);
	text-decoration: none;
}
a.mf-esp, a.mf-esp:hover { color: var(--mf-tinta); }
/* Hover: Salvia (al Figma, la targeta fosca és l'estat hover). */
.mf-esp { transition: background-color .25s ease; }
.mf-esp:hover { background: var(--mf-salvia); }
.mf-esp__img { height: 256px; overflow: hidden; border-radius: 16px; background: rgba(0, 0, 0, 0.2); }
.mf-esp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mf-esp:hover .mf-esp__img img { transform: scale(1.03); }
.mf-esp__body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.mf-esp__body p { margin: 0; }
.mf-esp .mf-esp__title { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
.mf-esp--big .mf-esp__title { font-size: 40px; line-height: 44px; }
.mf-esp__text { font-size: 16px; line-height: 24px; }
.mf-esp__go { display: flex; justify-content: flex-end; }
.mf-esp__go svg { width: 20px; height: 20px; }
.mf-esp:hover .mf-esp__go { color: var(--mf-morat); }

/* Patologies (índex). */
.mf-patidx { display: flex; flex-direction: column; gap: 16px; }
.mf-patidx__title { margin: 0; font-size: 32px; line-height: 36px; letter-spacing: -0.04em; }
a.mf-chip--link { color: var(--mf-tinta); text-decoration: none; }
a.mf-chip--link:hover { background: var(--mf-blanco); color: var(--mf-morat); }

/* Hero de les pàgines índex: foto central. */
.mf-index-photo img { width: 100%; height: 578px; object-fit: cover; border-radius: 24px; }

@media (max-width: 1024px) {
	.mf-esp-grid__big, .mf-esp-grid__small { grid-template-columns: 1fr; }
	.mf-esp--big .mf-esp__title, .mf-esp .mf-esp__title { font-size: 28px; line-height: 32px; }
	.mf-patidx__title { font-size: 24px; line-height: 28px; }
	.mf-index-photo img { height: 360px; }
}

/* Icones SVG de traç (chevron del menú, Icon Box): Elementor hi posa fill; les volem buides. */
.mf-megamenu .e-n-menu-dropdown-icon svg,
.mf-trust-item .elementor-icon svg {
	fill: none !important;
}
.mf-megamenu .e-n-menu-dropdown-icon svg [stroke] { stroke: currentColor; }

/* ================================================================ HOME */

/* Nuestro enfoque: 3 targetes amb icona en cercle a dalt a la dreta. */
.mf-enfoque-card { position: relative; transition: background-color .25s ease; }
.mf-enfoque-card:hover { background-color: var(--mf-salvia) !important; }
.elementor-widget-image.mf-enfoque-icon {
	position: absolute !important;
	top: 24px;
	right: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px !important;
	height: 72px;
	border-radius: 50%;
	background: var(--mf-blanco);
}
.mf-enfoque-icon img { width: auto !important; max-width: 72px; height: auto; border-radius: 0 !important; }
.mf-enfoque-num .elementor-heading-title { font-size: 13px; line-height: 18px; }

/* Insignia de Google sense fons (hero de la Home). */
.mf-gbadge-plain .mf-gbadge { background: transparent; color: var(--mf-tinta); padding-left: 0; }
.mf-gbadge-plain .mf-rating { color: var(--mf-tinta); }

/* Fitxa d'equip ampla (Home). */
.mf-team-wide .mf-team { max-width: 490px; border-radius: 20px; }
.mf-team-wide .mf-team__img { border-radius: 20px; }
.mf-team__go { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; font-size: 14px; line-height: 20px; }
.mf-team__go svg { width: 20px; height: 20px; }
a.mf-team:hover .mf-team__go { color: var(--mf-morat); }

/* Foto del hero de la Home. */
.mf-home-photo img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
@media (max-width: 1024px) { .mf-home-photo img { height: 360px; } }

/* ================================================================ NUESTRO ENFOQUE */

.mf-enfoque-card.is-current { background-color: var(--mf-salvia) !important; }

/* Cómo trabajamos: passos + foto que canvia. */
.mf-step { cursor: pointer; border-radius: 20px; transition: background-color .25s ease; }
.mf-step.is-active, .mf-step:focus-visible { background-color: var(--mf-blanco); outline: none; }
.mf-step-num .elementor-heading-title { color: var(--mf-morat); }
.mf-step-line { border-top: 1px solid var(--mf-tinta); }
.mf-steps__media { position: relative; overflow: hidden; border-radius: 24px; }
.elementor-widget-image.mf-step-img {
	position: absolute !important;
	inset: 0;
	opacity: 0;
	transition: opacity .45s ease;
}
.elementor-widget-image.mf-step-img.is-active { opacity: 1; }
.mf-step-img img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 24px; }

/* Blocs numerats de les subpàgines. */
.mf-numblock-num .elementor-heading-title { color: var(--mf-morat); }

@media (max-width: 767px) {
	.mf-steps__media { min-height: 320px; }
}

/* Capçalera: botó WhatsApp (Icon) a la mateixa alçada i línia que «Pedir cita» (48px). */
.mf-wa-btn .elementor-icon-wrapper { display: flex; line-height: 0; }
.mf-wa-btn.elementor-widget { align-self: center; }

/* Carrusel de teràpies (.mf-tcar). */
.mf-tcar__track.mf-cards {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: calc((100% - 48px) / 3);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.mf-tcar__track::-webkit-scrollbar { display: none; }
.mf-tcar__track > .mf-card { scroll-snap-align: start; }
.mf-tcar__nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 48px; color: var(--mf-blanco); }
.mf-tcar.is-static .mf-tcar__nav { display: none; }
.mf-tcar__arrow, .mf-tcar__page {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 28px; height: 28px; padding: 0 4px; border: 0; border-radius: 999px;
	background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: 20px; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.mf-tcar__arrow svg { width: 18px; height: 18px; }
.mf-tcar__pages { display: inline-flex; gap: 2px; }
.mf-tcar__page { opacity: .6; }
.mf-tcar__page:hover, .mf-tcar__arrow:hover { opacity: 1; background: rgba(255,255,255,.15); }
.mf-tcar__page.is-active { opacity: 1; background: var(--mf-blanco); color: var(--mf-morat); }
@media (max-width: 1024px) { .mf-tcar__track.mf-cards { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 767px) { .mf-tcar__track.mf-cards { grid-auto-columns: 85%; } }

/* Graella d'equip (Centro y equipo). */
.mf-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mf-team-grid .mf-team { max-width: none; border-radius: 20px; }
.mf-team-grid .mf-team__img { border-radius: 20px; }
@media (max-width: 1024px) { .mf-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mf-team-grid { grid-template-columns: 1fr; } }

/* Mosaic de fotos del centre. */
.mf-mosaic .elementor-widget-image, .mf-mosaic .elementor-widget-image .elementor-widget-container { height: 100%; }
.mf-mosaic img { width: 100% !important; height: 327px !important; object-fit: cover; display: block; }
@media (max-width: 767px) { .mf-mosaic img { height: 200px !important; } }

/* Foto de columna (Centro y equipo · Cómo es una sesión): 450px, coberta, radi 24. */
.mf-cover-photo img { width: 100% !important; height: 450px !important; object-fit: cover; border-radius: 24px; display: block; }
@media (max-width: 767px) { .mf-cover-photo img { height: 280px !important; } }


/* Contacte: franja de dades del centre. */
.mf-contacto { margin: 0; font-size: 14px; line-height: 20px; color: var(--mf-tinta); }
.mf-contacto a { color: var(--mf-tinta); text-decoration: none; }
.mf-contacto a.mf-contacto__link { text-decoration: underline; text-underline-offset: 2px; }
.mf-contacto a:hover { color: var(--mf-morat); }
.mf-contact-item .elementor-icon-box-title { margin-bottom: 0; }

/* Targetes d'especialitat: mateixa alçada per fila; la fletxa queda a baix. */
.mf-esp-grid__big > .mf-esp, .mf-esp-grid__small > .mf-esp { height: 100%; }
.mf-esp { display: flex; flex-direction: column; }
.mf-esp__body { flex: 1 1 auto; }
.mf-esp__go { margin-top: auto; }
.mf-esp-grid__small, .mf-esp-grid__big { grid-auto-rows: 1fr; }

/* Blog: targetes d'entrada (Figma «Tarjeta / Terapia» amb data) i paginació. */
.mf-card--post .mf-card__title { margin: 0; font-size: 32px; line-height: 36px; letter-spacing: -0.04em; font-weight: 400; color: var(--mf-tinta); }
.mf-card__date { font-size: 16px; line-height: 24px; }
.mf-cards--blog { align-items: stretch; }
.mf-cards--blog .mf-card { height: 100%; }
.mf-cards--blog .mf-card__body { flex: 1 1 auto; }
.mf-cards--blog .mf-card__cta { margin-top: auto; }
@media (max-width: 1024px) { .mf-cards--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mf-cards--blog { grid-template-columns: 1fr; } .mf-card--post .mf-card__title { font-size: 24px; line-height: 28px; } }
.mf-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; font-size: 14px; line-height: 20px; }
.mf-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; color: var(--mf-tinta); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.mf-pagination a.page-numbers:hover { background: var(--mf-blanco); color: var(--mf-morat); }
.mf-pagination .page-numbers.current { background: var(--mf-morat); color: var(--mf-blanco); }
.mf-pagination .page-numbers svg { width: 20px; height: 20px; }
.mf-blog-empty { text-align: center; }
.mf-cards--blog { grid-auto-rows: 1fr; }

/* Blog · Detall: text de l'article (Figma 226:4698, columna 884px). */
.mf-post-content { color: var(--mf-tinta); font-size: 16px; line-height: 24px; }
.mf-post-content :is(h2, h3, h4) { margin: 0; color: var(--mf-tinta); font-weight: 400; }
.mf-post-content h2 {
	font-size: 48px; line-height: 52px; letter-spacing: -0.04em;
	margin-top: 56px; margin-bottom: 24px;
	text-decoration: underline;
	text-decoration-color: var(--mf-morat-viu, rgba(216, 104, 166, .7));
	text-decoration-thickness: 0.25em;
	text-underline-offset: -0.18em;
	text-decoration-skip-ink: none;
}
.mf-post-content h3 { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; margin-top: 40px; margin-bottom: 24px; }
.mf-post-content h4 { font-size: 20px; line-height: 30px; margin-top: 32px; margin-bottom: 16px; }
.mf-post-content .elementor-widget-theme-post-content > :first-child,
.mf-post-content .elementor-widget-container > :first-child { margin-top: 0; }
.mf-post-content p { margin: 0 0 10px; }
.mf-post-content :is(ul, ol) { margin: 0 0 16px; padding-left: 1.25em; }
.mf-post-content li { margin-bottom: 6px; }
.mf-post-content li::marker { color: var(--mf-morat); }
.mf-post-content a { color: var(--mf-morat); text-decoration: underline; text-underline-offset: 2px; }
.mf-post-content a:hover { color: var(--mf-tinta); }
.mf-post-content strong { font-weight: 600; }
.mf-post-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 16px 0; }
.mf-post-content blockquote { margin: 24px 0; padding-left: 24px; border-left: 2px solid var(--mf-morat); font-size: 20px; line-height: 30px; }
@media (max-width: 767px) {
	.mf-post-content h2 { font-size: 32px; line-height: 36px; margin-top: 40px; }
	.mf-post-content h3 { font-size: 24px; line-height: 28px; margin-top: 32px; }
}

/* Botó dins el contingut (blog): mateix estil que «Pedir cita». */
.mf-btn-wrap { margin: 32px 0 !important; text-align: center; }
.mf-post-content a.mf-btn, a.mf-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 14px 24px; border-radius: 999px;
	background: var(--mf-morat); color: var(--mf-fondo);
	font-size: 14px; line-height: 20px; text-align: center; text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}
.mf-post-content a.mf-btn:hover, a.mf-btn:hover, a.mf-btn:focus-visible { background: var(--e-global-color-mfmorat60, rgba(146, 34, 94, .6)); color: var(--mf-fondo); }

/* Articles: els H3/H4 amb negreta (contingut antic) no porten marker; el H2 ja el porta sencer. */
.mf-post-content :is(h3, h4) :is(strong, b) { text-decoration: none; font-weight: inherit; }

/* Targeta d'especialitat sense foto (fitxa de professional, Figma: fons Superfície, min 220px). */
.mf-esp--plain { min-height: 220px; background: var(--e-global-color-mfsuperf, #e8e8e8); }
.mf-esp--plain:hover { background: var(--mf-salvia); }

/* Fitxa de professional: n.º de col·legiat (enllaç al Col·legi si hi ha URL) */
.mf-colegiado { margin: 0; font-size: 14px; line-height: 20px; color: var(--mf-tinta); }
.mf-colegiado a { color: var(--mf-morat); text-decoration: underline; text-underline-offset: 2px; }
.mf-colegiado a:hover { color: #92225e99; }

/* Pedir cita (Figma 233:4854): hero morat + formulari d'Elementor amb camps subratllats. */
.mf-hero-morat .mf-breadcrumbs, .mf-hero-morat .mf-breadcrumbs a, .mf-hero-morat .mf-breadcrumbs .breadcrumb_last { color: var(--mf-blanco); }
.mf-hero-morat .mf-breadcrumbs a:hover { color: var(--mf-salvia-clara); }
.mf-form .elementor-field-group .elementor-field:not(.elementor-select-wrapper),
.mf-form .elementor-field-group .elementor-select-wrapper select {
	padding: 0 0 12px;
	border: 0;
	border-bottom: 1px solid var(--mf-morat);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
	line-height: 24px;
	color: var(--mf-tinta);
	min-height: 0;
}
.mf-form .elementor-field-group .elementor-field:focus,
.mf-form .elementor-select-wrapper select:focus { outline: none; border-bottom-width: 2px; padding-bottom: 11px; }
.mf-form .elementor-field::placeholder { color: var(--mf-tinta); opacity: 1; }
.mf-form .elementor-field-type-textarea .elementor-field { resize: vertical; }
.mf-form .elementor-select-wrapper::before { color: var(--mf-morat); font-size: 12px; top: 40%; }
.mf-form .elementor-select-wrapper select:invalid, .mf-form .elementor-select-wrapper select.is-empty { color: var(--mf-tinta); }
.mf-form .elementor-field-type-acceptance { margin-top: 4px; }
.mf-form .elementor-field-type-acceptance label { font-size: 16px; line-height: 24px; color: var(--mf-tinta); }
.mf-form .elementor-field-type-acceptance a { color: inherit; text-decoration: underline; }
.mf-form .elementor-field-type-acceptance a:hover { color: var(--mf-morat); }
.mf-form .elementor-field-type-acceptance input[type="checkbox"] { width: 13px; height: 13px; accent-color: var(--mf-morat); }
.mf-form .elementor-field-type-submit { margin-top: 8px; }
.mf-form .elementor-message { font-size: 16px; line-height: 24px; }
.mf-form .elementor-message.elementor-message-success { color: var(--mf-morat); }
.mf-form .elementor-message::before { display: none; }
.mf-form-note p { margin: 0; }
/* Capçalera sobre fons morat (body.mf-header-morat, p. ex. /pedir-cita/). Quan es fa sticky torna a l'estil normal. */
.mf-header-morat .mf-header:not(.elementor-sticky--effects) { background-color: var(--mf-morat) !important; }
.mf-header-morat .mf-header:not(.elementor-sticky--effects) .mf-topbar,
.mf-header-morat .mf-header:not(.elementor-sticky--effects) .mf-topbar a,
.mf-header-morat .mf-header:not(.elementor-sticky--effects) .mf-topbar p { color: var(--mf-blanco); }
.mf-header-morat .mf-header:not(.elementor-sticky--effects) .mf-topbar svg { color: var(--mf-blanco); stroke: currentColor; }
body.mf-header-morat { background-color: var(--mf-morat); }

/* Fitxa de professional · Formación (Figma 226:5075): llista amb bullets Morat, com al blog. */
.mf-formacion ul { margin: 0; padding-left: 1.25em; }
.mf-formacion li { margin: 0; font-size: 16px; line-height: 24px; }
.mf-formacion li::marker { color: var(--mf-morat); }
/* Formación seguida d'Especialidades (mateix fons): sense padding doble entre les dues. */
.elementor .e-con.mf-if-formacion + .e-con.mf-if-especialidades_rel { --padding-top: 0px; }

/* Franja d'icones pròpia de cada teràpia ([mf_caracteristicas]); mateix aspecte que el bloc «Confianza clínica» #86. */
.mf-trust-strip { padding: 32px 24px; background: var(--e-global-color-primary, #92225e); color: var(--e-global-color-mfblanco, #fff); }
.mf-trust-strip__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; max-width: 1200px; margin: 0 auto; }
.mf-trust-strip__item { display: flex; flex-direction: column; gap: 16px; width: 282px; max-width: 100%; }
.mf-trust-strip__icon { display: inline-flex; width: 28px; height: 28px; line-height: 0; }
.mf-trust-strip__icon svg, .mf-trust-strip__icon img { width: 28px !important; height: 28px; }
.mf-trust-strip__icon svg { fill: none !important; }
.mf-trust-strip__icon svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.mf-trust-strip__icon img { filter: brightness(0) invert(1); }
.mf-trust-strip__text {
	margin: 0;
	font-family: var(--e-global-typography-accent-font-family, "Instrument Sans"), sans-serif;
	font-size: var(--e-global-typography-accent-font-size, 14px);
	font-weight: var(--e-global-typography-accent-font-weight, 400);
	line-height: var(--e-global-typography-accent-line-height, 1.4);
	letter-spacing: var(--e-global-typography-accent-letter-spacing, normal);
	text-transform: var(--e-global-typography-accent-text-transform, none);
}
@media (max-width: 767px) { .mf-trust-strip__item { width: calc(50% - 12px); } }

/* Teràpia: patologies per grups (títol a l'esquerra, etiquetes a la dreta). */
.mf-patgroups { display: flex; flex-direction: column; border-top: 1px solid var(--mf-linia, #dedddc); }
.mf-patgroup { display: grid; grid-template-columns: 280px 1fr; gap: 16px 32px; padding: 24px 0; border-bottom: 1px solid var(--mf-linia, #dedddc); }
.mf-patgroup__title { margin: 10px 0 0; font-size: 24px; line-height: 28px; font-weight: 400; letter-spacing: -0.04em; }
.mf-patgroup .mf-chip--link { gap: 8px; }
.mf-patgroup .mf-chip--link svg { width: 14px; height: 14px; }

.mf-patgroup--solo { grid-template-columns: 1fr; border-bottom: 0; }
.mf-patgroups:has(.mf-patgroup--solo:only-child) { border-top: 0; }
@media (max-width: 767px) { .mf-patgroup { grid-template-columns: 1fr; } .mf-patgroup__title { margin: 0; } }

/* ── Banner de cookies (Complianz) ──────────────────────────────────────────
   Colors i radis del web. Complianz defineix les variables a :root; html:root hi guanya.
   Es fa aquí (i no al panell de Complianz) perquè viatja amb el tema, sense reimportar la BD. */
html:root {
	--cmplz_banner_background_color: var(--mf-blanco);
	--cmplz_banner_border_color: var(--mf-linea);
	--cmplz_banner_border_radius: var(--mf-radius-card);
	--cmplz_text_color: var(--mf-tinta);
	--cmplz_hyperlink_color: var(--mf-morat);
	--cmplz_text_font_size: 14px;
	--cmplz_title_font_size: 18px;
	--cmplz_link_font_size: 13px;
	--cmplz_button_font_size: 15px;
	--cmplz_button_border_radius: var(--mf-radius-pill);
	--cmplz_button_accept_background_color: var(--mf-morat);
	--cmplz_button_accept_border_color: var(--mf-morat);
	--cmplz_button_accept_text_color: var(--mf-blanco);
	/* Rebutjar: mateix pes visual que acceptar (criteri AEPD), en contorn. */
	--cmplz_button_deny_background_color: var(--mf-blanco);
	--cmplz_button_deny_border_color: var(--mf-morat);
	--cmplz_button_deny_text_color: var(--mf-morat);
	--cmplz_button_settings_background_color: var(--mf-fondo);
	--cmplz_button_settings_border_color: var(--mf-fondo);
	--cmplz_button_settings_text_color: var(--mf-tinta);
	--cmplz_slider_active_color: var(--mf-morat);
	--cmplz_category_header_always_active_color: var(--mf-salvia-fosca);
}
.cmplz-cookiebanner,
.cmplz-cookiebanner .cmplz-btn { font-family: inherit; }
.cmplz-cookiebanner { box-shadow: 0 12px 40px rgba(22, 22, 22, .12); }
.cmplz-cookiebanner .cmplz-title { font-weight: 400; }
.cmplz-cookiebanner .cmplz-btn { font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover { background-color: var(--mf-tinta); border-color: var(--mf-tinta); }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover { background-color: var(--mf-morat); color: var(--mf-blanco); }
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:hover { background-color: var(--mf-salvia); border-color: var(--mf-salvia); }
.cmplz-cookiebanner .cmplz-links a { text-decoration: underline; text-underline-offset: 3px; }

/* Botó «Ver información práctica» del bloc de primera visita: a Centro y equipo la secció ja és just a sobre. */
body.page-id-12 .mf-btn-infopractica { display: none; }
#informacion-practica { scroll-margin-top: 100px; }
