/*
 * "Formació" pages built with BeBuilder (landing, Professionals / Famílies /
 * Infants i adolescents, Formacions a mesura). Design: Figma FVB,
 * "Disseny Formacions". Loaded only on those pages (body.fvb-formacio-page).
 *
 * The classes are set on the BeBuilder sections/wraps/elements (field
 * "Custom classes"), see deploy/formacio/bebuilder.php. Backgrounds, overlays
 * and section colors are BeBuilder style fields.
 */

.fvb-formacio-page {
	--fvb-pink: #ca0183;
	--fvb-wine: #9e0063;
	--fvb-cta: #c6167f;
	--fvb-ink: #1a1c1c;
	--fvb-muted: #707070;
	--fvb-line: #e3e3e3;
	--fvb-teal: #00969f;
	--fvb-teal-dark: #007b83;
	--fvb-head: "Inter", sans-serif;
	--fvb-body: "Inter", sans-serif;
}

/* ---------------------------------------------------------------------------
 * Base: BeBuilder elements inside the fvb sections.
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-page {
	font-family: var(--fvb-body);
	color: var(--fvb-ink);
}

.fvb-formacio-page .mcb-section.fvb-page .section_wrapper {
	max-width: 1232px;
}

.fvb-formacio-page .mcb-section.fvb-page .mcb-column-inner {
	margin-bottom: 0;
}

.fvb-formacio-page .mcb-section.fvb-section {
	padding: 72px 0;
}

.fvb-formacio-page .fvb-page .fvb-accent {
	color: var(--fvb-pink);
}

.fvb-formacio-page .fvb-page .column_attr p:last-child {
	margin-bottom: 0;
}

/* Section titles. */
.fvb-formacio-page .fvb-page .fvb-h2 .title {
	margin: 0 0 40px;
	font-family: var(--fvb-head);
	font-size: 48px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: none;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-page .fvb-kicker .title {
	margin: 0 0 8px;
	font-family: var(--fvb-head);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fvb-pink);
}

/* Buttons (BeBuilder "Button" element). */
.fvb-formacio-page .fvb-page .column_button .button {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 10px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--fvb-pink);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	font-family: var(--fvb-head);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.2s, color 0.2s;
}

.fvb-formacio-page .fvb-page .column_button .button:hover,
.fvb-formacio-page .fvb-page .column_button .button:focus-visible {
	background: var(--fvb-wine);
	color: #fff;
	text-decoration: none;
}

.fvb-formacio-page .fvb-page .column_button .button::before,
.fvb-formacio-page .fvb-page .column_button .button::after {
	content: none;
}

.fvb-formacio-page .fvb-page .column_button .button .button_icon,
.fvb-formacio-page .fvb-page .column_button .button .button_label {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.fvb-formacio-page .fvb-page .column_button .button .button_icon i {
	color: inherit;
}

/* ---------------------------------------------------------------------------
 * Hero: background photo + overlay (BeBuilder background fields).
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-hero {
	display: flex;
	align-items: center;
	min-height: 491px;
	padding: 80px 0 48px;
	text-align: center;
	color: #fff;
}

.fvb-formacio-page .mcb-section.fvb-hero .section_wrapper {
	position: relative;
	z-index: 1;
	width: 100%;
}

.fvb-formacio-page .fvb-hero__inner .mcb-wrap-inner {
	flex-direction: column;
	align-items: center;
}

.fvb-formacio-page .fvb-hero .fvb-hero__title .title {
	margin: 40px 0 0;
	font-family: var(--fvb-head);
	font-size: 70px;
	font-weight: 800;
	line-height: 80px;
	text-transform: none;
	color: #fff;
}

.fvb-formacio-page .fvb-hero .fvb-hero__title .title::after {
	content: "";
	display: block;
	width: 96px;
	height: 4px;
	margin: 28px auto 0;
	border-radius: 2px;
	background: #fff;
}

.fvb-formacio-page .fvb-hero .fvb-hero__subtitle .title {
	margin: 28px 0 0;
	font-family: var(--fvb-head);
	font-size: 48px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
	color: #fff;
}

.fvb-formacio-page .fvb-hero .fvb-hero__text .column_attr {
	max-width: 1012px;
	margin: 24px auto 0;
	font-size: 18px;
	line-height: 1.6;
	color: #fff;
}

/* "Veure els cursos": text link with a down arrow. */
.fvb-formacio-page .fvb-hero .fvb-hero__down {
	padding-top: 56px;
}

.fvb-formacio-page .fvb-hero .fvb-hero__down .button {
	padding: 0;
	background: none;
	box-shadow: none;
	font-family: var(--fvb-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}

.fvb-formacio-page .fvb-hero .fvb-hero__down .button:hover,
.fvb-formacio-page .fvb-hero .fvb-hero__down .button:focus-visible {
	background: none;
	color: #fff;
	text-decoration: underline;
}

.fvb-formacio-page .fvb-hero .fvb-hero__down .button_icon {
	transition: transform 0.2s;
}

.fvb-formacio-page .fvb-hero .fvb-hero__down .button:hover .button_icon {
	transform: translateY(3px);
}

/* Formacions a mesura: dark overlay, left title, pink button. */
.fvb-formacio-page .mcb-section.fvb-hero--mesura {
	min-height: 600px;
	padding: 120px 0;
}

.fvb-formacio-page .fvb-hero--mesura .fvb-hero__title .title {
	margin: 0;
	font-family: var(--fvb-body);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
}

.fvb-formacio-page .fvb-hero--mesura .fvb-hero__title .title::after {
	content: none;
}

.fvb-formacio-page .fvb-hero .fvb-hero__cta {
	padding-top: 25px;
}

.fvb-formacio-page .fvb-hero .fvb-hero__cta .button {
	padding: 16px 32px;
	border-radius: 15px;
	background: var(--fvb-cta);
	box-shadow: none;
	font-size: 14px;
	color: #ffe2eb;
}

.fvb-formacio-page .fvb-hero .fvb-hero__cta .button:hover {
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Intro (+ "Programa 2026" box on Professionals).
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-intro {
	padding-bottom: 24px;
}

.fvb-formacio-page .fvb-intro .fvb-intro__text .column_attr {
	max-width: 790px;
	font-family: var(--fvb-head);
	font-size: 18px;
	line-height: 1.6;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-intro .fvb-intro__text p {
	margin: 0 0 12px;
}

.fvb-formacio-page .fvb-intro .fvb-intro__text strong {
	font-weight: 700;
}

.fvb-formacio-page .fvb-intro--promo .section_wrapper {
	align-items: center;
}

.fvb-formacio-page .fvb-intro--promo .fvb-intro__text .column_attr {
	padding-right: 40px;
	font-family: var(--fvb-body);
}

.fvb-formacio-page .fvb-promo > .mcb-wrap-inner {
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 333px;
	padding: 72px 32px 40px;
	border-radius: 12px;
	background: linear-gradient(167deg, #9e0063 4.7%, #763e5e 103.9%);
	text-align: center;
}

.fvb-formacio-page .fvb-promo .fvb-promo__logo {
	position: absolute;
	top: 28px;
	left: 31px;
	width: 87px;
}

.fvb-formacio-page .fvb-promo .fvb-promo__logo img {
	width: 87px;
	filter: brightness(0) invert(1);
}

.fvb-formacio-page .fvb-promo .fvb-promo__title .title {
	margin: 0 0 32px;
	font-family: var(--fvb-body);
	font-size: 35px;
	font-weight: 600;
	line-height: 1.1;
	text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
	text-transform: none;
	color: #fff;
}

.fvb-formacio-page .fvb-promo .fvb-promo__btn .button {
	min-height: 38px;
	padding: 4px 32px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
	font-size: 14px;
	font-weight: 800;
	color: var(--fvb-wine);
}

.fvb-formacio-page .fvb-promo .fvb-promo__btn .button:hover {
	background: #fde6f4;
	color: var(--fvb-wine);
}

/* ---------------------------------------------------------------------------
 * Target cards (landing): one wrap per card.
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-targets {
	scroll-margin-top: 120px;
}

.fvb-formacio-page .fvb-targets .section_wrapper {
	row-gap: 32px;
}

.fvb-formacio-page .fvb-targets .section_wrapper,
.fvb-formacio-page .fvb-why .section_wrapper {
	align-items: stretch;
}

.fvb-formacio-page .mcb-wrap.fvb-target,
.fvb-formacio-page .mcb-wrap.fvb-why__col {
	display: flex;
}

.fvb-formacio-page .fvb-target > .mcb-wrap-inner {
	flex: 1;
	flex-direction: column;
	padding: 0;
	flex-wrap: nowrap;
	height: 100%;
	overflow: hidden;
	margin: 0 16px;
	border: 1px solid #cfe3e3;
	border-radius: 10px;
	background: #fff;
	text-align: center;
}

.fvb-formacio-page .fvb-target .fvb-target__media .mcb-column-inner {
	margin: 0;
	padding: 0;
}

.fvb-formacio-page .fvb-target .fvb-target__media .image_frame {
	display: block;
	width: 100%;
}

.fvb-formacio-page .fvb-target .fvb-target__media .image_frame,
.fvb-formacio-page .fvb-target .fvb-target__media .image_wrapper {
	position: relative;
	margin: 0;
	border: 0;
	aspect-ratio: 379 / 218;
	overflow: hidden;
	background: #eee;
}

.fvb-formacio-page .fvb-target .fvb-target__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.fvb-formacio-page .fvb-target .fvb-target__media .image_wrapper::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--fvb-pink);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.fvb-formacio-page .fvb-target:hover .fvb-target__media .image_wrapper::after,
.fvb-formacio-page .fvb-target:focus-within .fvb-target__media .image_wrapper::after {
	opacity: 0.35;
}

.fvb-formacio-page .fvb-target .fvb-target__title .title {
	max-width: 240px;
	margin: 28px auto 20px;
	padding: 0 24px;
	font-family: var(--fvb-head);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-target .fvb-target__text .column_attr {
	margin: 0 0 24px;
	padding: 0 24px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fvb-muted);
}

.fvb-formacio-page .fvb-target .fvb-target__btn {
	margin-top: auto;
	padding: 0 24px 32px;
}

.fvb-formacio-page .fvb-target .fvb-target__btn .button {
	width: 100%;
	max-width: 280px;
}

/* ---------------------------------------------------------------------------
 * Why (icon boxes).
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .fvb-why .fvb-why__title .title {
	max-width: 760px;
}

.fvb-formacio-page .fvb-why .section_wrapper {
	row-gap: 24px;
}

.fvb-formacio-page .fvb-why__col > .mcb-wrap-inner {
	flex: 1;
	padding: 0 12px;
}

.fvb-formacio-page .fvb-why__item,
.fvb-formacio-page .fvb-why__item .mcb-column-inner {
	height: 100%;
}

.fvb-formacio-page .fvb-why__item .mfn-icon-box {
	height: 100%;
	padding: 32px 32px 40px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #f6f6f6;
	text-align: left;
	transition: transform 0.25s, box-shadow 0.25s;
}

.fvb-formacio-page .fvb-why__item .mfn-icon-box:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.fvb-formacio-page .fvb-why__item .mfn-icon-box,
.fvb-formacio-page .fvb-why__item .desc-wrapper {
	align-items: flex-start;
	text-align: left;
}

.fvb-formacio-page .fvb-why__item .icon-wrapper {
	width: auto;
	height: 32px;
	margin: 0 0 24px;
	border: 0;
	background: none;
}

.fvb-formacio-page .fvb-why__item .icon-wrapper img {
	width: auto;
	height: 30px;
}

.fvb-formacio-page .fvb-why__item .title {
	margin: 0 0 16px;
	font-family: var(--fvb-head);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-why__item .desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fvb-muted);
}

/* Formacions a mesura: centered title with a bar, white cards. */
.fvb-formacio-page .mcb-section.fvb-why--mesura {
	padding: 96px 0;
}

.fvb-formacio-page .fvb-why--mesura .fvb-why__title .title {
	max-width: none;
	margin-bottom: 64px;
	font-size: 32px;
	text-align: center;
}

.fvb-formacio-page .fvb-why--mesura .fvb-why__title .title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 16px auto 0;
	background: var(--fvb-cta);
}

.fvb-formacio-page .fvb-why--mesura .fvb-why__item .mfn-icon-box {
	padding: 33px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fff;
}

.fvb-formacio-page .fvb-why--mesura .fvb-why__item .icon-wrapper {
	margin-bottom: 12px;
}

.fvb-formacio-page .fvb-why--mesura .fvb-why__item .title {
	margin-bottom: 12px;
}

.fvb-formacio-page .fvb-why--mesura .fvb-why__item .desc {
	font-family: var(--fvb-head);
	font-size: 16px;
	color: #584049;
}

/* ---------------------------------------------------------------------------
 * CTA banner "formació a mida".
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-cta {
	padding: 72px 0;
	color: #fff;
}

.fvb-formacio-page .fvb-cta .section_wrapper {
	align-items: center;
}

.fvb-formacio-page .fvb-cta .fvb-cta__title .title {
	max-width: 720px;
	margin: 0 0 20px;
	font-family: var(--fvb-head);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: none;
	color: #fff;
}

.fvb-formacio-page .fvb-cta .fvb-cta__title .fvb-accent {
	color: #f7b6dd;
}

.fvb-formacio-page .fvb-cta .fvb-cta__text .column_attr {
	max-width: 520px;
	font-family: var(--fvb-head);
	font-size: 16px;
	line-height: 1.6;
	color: #fff;
}

.fvb-formacio-page .fvb-cta .fvb-cta__action .mcb-wrap-inner {
	justify-content: flex-end;
}

.fvb-formacio-page .fvb-cta .fvb-cta__btn {
	width: auto;
}

.fvb-formacio-page .fvb-cta .fvb-cta__btn .button {
	min-width: 180px;
	min-height: 56px;
	border-radius: 14px;
	background: #fff;
	font-size: 15px;
	color: var(--fvb-wine);
}

.fvb-formacio-page .fvb-cta .fvb-cta__btn .button:hover {
	background: #fde6f4;
	color: var(--fvb-wine);
}

/* ---------------------------------------------------------------------------
 * Opinions: BeBuilder "Testimonials" element.
 * ------------------------------------------------------------------------- */
/* No testimonials in this language: the section is not shown. */
.fvb-formacio-page .mcb-section.fvb-opinions:not(:has(.testimonials_slider li)) {
	display: none;
}

.fvb-formacio-page .fvb-opinions .fvb-h2 .title {
	font-size: 40px;
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .bq_wrapper {
	padding: 32px 40px;
	border: 1px solid var(--fvb-line);
	border-radius: 14px;
	background: #fff;
}

.fvb-formacio-page .fvb-opinions .testimonials_slider blockquote {
	padding-top: 50px;
	font-family: var(--fvb-head);
	font-size: 17px;
	font-style: normal;
	line-height: 1.6;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .mfn-blockquote-icon,
.fvb-formacio-page .fvb-opinions .testimonials_slider .mfn-blockquote-icon i {
	color: var(--fvb-pink);
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .hr_dots span {
	background: var(--fvb-pink);
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .author .title {
	font-family: var(--fvb-head);
	font-size: 15px;
	font-weight: 600;
	color: var(--fvb-ink);
}

/* Opinions carousel: formacio.js converts the Betheme widget (Slick, 1 slide
 * hardwired in betheme/js/functions.js) into the house [data-fvb-carousel]:
 * 3 cards per view on desktop, 2 on tablet and 1 on mobile. The ul keeps its
 * li children (the :has() rule above still applies) but the Betheme
 * .testimonials_slider_ul styles (float, padding, opacity) no longer match. */
.fvb-formacio-page .fvb-opinions .fvb-opinions__bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 24px;
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc( ( 100% - 48px ) / 3 );
	gap: 24px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
	-webkit-overflow-scrolling: touch;
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track::-webkit-scrollbar {
	display: none;
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track > li {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track .bq_wrapper {
	height: 100%;
}

/* Placeholder photo and decorative dots: not in the design (authors are empty for now). */
.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track .single-photo-img,
.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track .hr_dots {
	display: none;
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track .author {
	margin-top: auto;
	text-align: left;
}

.fvb-formacio-page .fvb-opinions .slider_pagination .slick-active a,
.fvb-formacio-page .fvb-opinions .slider_pagination a.selected {
	background: var(--fvb-pink);
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .slider_prev,
.fvb-formacio-page .fvb-opinions .testimonials_slider .slider_next {
	border: 1px solid #d0d0d0;
	border-radius: 10px;
	background: #fff;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-opinions .testimonials_slider .slider_prev:hover,
.fvb-formacio-page .fvb-opinions .testimonials_slider .slider_next:hover {
	border-color: #f2b5da;
	background: #fbe3f2;
}

/* ---------------------------------------------------------------------------
 * FAQ: BeBuilder "FAQ" element.
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-faq {
	background: #eee;
}

.fvb-formacio-page .fvb-faq .mcb-wrap-inner {
	max-width: 820px;
	margin: 0 auto;
}

.fvb-formacio-page .fvb-faq .fvb-h2 .title {
	font-size: 36px;
	font-weight: 600;
	text-align: center;
}

.fvb-formacio-page .fvb-faq .faq .question {
	margin: 0;
	border: 0;
	border-bottom: 1px solid #a5a5a5;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.fvb-formacio-page .fvb-faq .faq .question .title {
	position: relative;
	padding: 18px 56px 18px 16px;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: var(--fvb-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-faq .faq .question .title .num {
	display: none;
}

.fvb-formacio-page .fvb-faq .faq .question .title i {
	position: absolute;
	top: 50%;
	right: 16px;
	left: auto;
	margin-top: -11px;
	font-size: 20px;
	line-height: 22px;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-faq .faq .question .answer {
	padding: 0 16px 20px;
	border: 0;
	background: none;
	font-size: 15px;
	line-height: 1.6;
	color: #444;
}

/* ---------------------------------------------------------------------------
 * Course/resource grid ([fvb_formacio_grid] shortcode inside a Column Text).
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-grid-section {
	scroll-margin-top: 120px;
}

.fvb-formacio-page .fvb-grid-section .fvb-h2 .title {
	text-align: center;
}

.fvb-grid__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: -8px 0 32px;
}

.fvb-grid__bar .fvb-arrows {
	position: absolute;
	top: 0;
	right: 0;
}

.fvb-arrows {
	display: flex;
	gap: 16px;
}

.fvb-formacio-page .fvb-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid #d0d0d0;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--fvb-ink);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.fvb-formacio-page .fvb-arrow:hover,
.fvb-formacio-page .fvb-arrow:focus-visible {
	border-color: #f2b5da;
	background: #fbe3f2;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-arrow[disabled] {
	opacity: 0.4;
	cursor: default;
}

.fvb-tabs {
	display: flex;
	gap: 32px;
}

.fvb-formacio-page .fvb-tab {
	margin: 0;
	padding: 4px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: var(--fvb-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--fvb-ink);
	cursor: pointer;
}

.fvb-formacio-page .fvb-tab:hover,
.fvb-formacio-page .fvb-tab:focus-visible {
	border-bottom-color: #d0d0d0;
	background: none;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-tab.is-active {
	border-bottom-color: var(--fvb-ink);
	font-weight: 700;
}

.fvb-grid__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 20px;
	text-align: left;
}

.fvb-grid__empty {
	font-size: 18px;
	text-align: center;
	color: var(--fvb-muted);
}

.fvb-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #cdcdcd;
	border-radius: 12px;
	background: #fff;
	transition: transform 0.25s, box-shadow 0.25s;
}

.fvb-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.fvb-card[hidden] {
	display: none;
}

.fvb-card__media {
	position: relative;
	display: block;
	height: 188px;
	overflow: hidden;
	background: #eee;
}

.fvb-formacio-page .fvb-card__media .fvb-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.fvb-card--resource .fvb-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 150, 159, 0.32);
}

.fvb-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: #e6f4f5;
	color: var(--fvb-teal);
}

.fvb-card__placeholder svg {
	width: 48px;
	height: 48px;
}

.fvb-card__badge {
	position: absolute;
	z-index: 1;
	top: 15px;
	right: 12px;
	max-width: calc(100% - 24px);
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--fvb-pink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #fcfcfc;
}

.fvb-card__badge--teal {
	background: var(--fvb-teal);
}

.fvb-card__badge--soon {
	background: #fcfcfc;
	color: #0f0f0f;
}

.fvb-card--closed {
	background: #ebebeb;
}

.fvb-card--closed .fvb-card__img {
	filter: grayscale(100%);
}

.fvb-formacio-page .fvb-card--closed .fvb-card__title a {
	color: #626262;
}

.fvb-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}

.fvb-formacio-page .fvb-card__title {
	margin: 0;
	font-family: var(--fvb-body);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.fvb-formacio-page .fvb-card__title a {
	text-decoration: none;
	color: #0f0f0f;
}

.fvb-formacio-page .fvb-card__title a:hover {
	color: var(--fvb-pink);
}

.fvb-formacio-page .fvb-card__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: -8px 0 0;
	padding: 0;
	list-style: none;
}

.fvb-formacio-page .fvb-card__meta-row {
	display: flex;
	gap: 12px;
	align-items: center;
	min-height: 28px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.3;
	color: #0f0f0f;
	list-style: none;
}

.fvb-formacio-page .fvb-card__meta-row::before {
	content: none;
}

.fvb-card__meta-row--pair {
	flex-wrap: wrap;
	gap: 2px 32px;
}

.fvb-card__meta-item {
	display: inline-flex;
	gap: 12px;
	align-items: center;
}

.fvb-card__meta svg {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.fvb-card__text {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.3;
	color: #0f0f0f;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
}

.fvb-card__text p {
	margin: 0;
}

.fvb-card__foot {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	margin-top: auto;
}

.fvb-card__discount {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: var(--fvb-pink);
}

.fvb-card__discount s,
.fvb-card__discount .amount {
	color: inherit;
}

.fvb-formacio-page .fvb-card__btn {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 21px;
	border-radius: 10px;
	background: var(--fvb-pink);
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.2s;
}

.fvb-formacio-page .fvb-card__btn:hover,
.fvb-formacio-page .fvb-card__btn:focus-visible {
	background: var(--fvb-wine);
	color: #fff;
	text-decoration: none;
}

.fvb-formacio-page .fvb-card__btn--teal {
	background: var(--fvb-teal);
}

.fvb-formacio-page .fvb-card__btn--teal:hover,
.fvb-formacio-page .fvb-card__btn--teal:focus-visible {
	background: var(--fvb-teal-dark);
}

.fvb-card__btn svg {
	width: 20px;
	height: 20px;
}

/* ---------------------------------------------------------------------------
 * Lleure educatiu banner.
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-lleure {
	padding: 61px 0;
	color: #fff;
}

.fvb-formacio-page .fvb-lleure .mcb-background-overlay {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 19.5%, rgba(38, 17, 31, 0.72) 50%, rgba(0, 0, 0, 0) 88%) !important;
	opacity: 1 !important;
}

.fvb-formacio-page .fvb-lleure .section_wrapper {
	position: relative;
	z-index: 1;
}

.fvb-formacio-page .fvb-lleure__inner > .mcb-wrap-inner {
	gap: 0 17px;
}

.fvb-formacio-page .fvb-lleure .fvb-lleure__title .title {
	margin: 0 0 24px;
	font-family: var(--fvb-head);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	color: #fff;
}

.fvb-formacio-page .fvb-lleure .fvb-lleure__text .column_attr {
	max-width: 828px;
	margin: 0 0 39px;
	font-size: 20px;
	line-height: 1.3;
	color: #fff;
}

.fvb-formacio-page .fvb-lleure .column.fvb-lleure__btn {
	width: auto;
}

.fvb-formacio-page .fvb-lleure .fvb-lleure__btn .button {
	padding: 11px 21px;
	border: 1px solid var(--fvb-teal);
	border-radius: 10px;
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
	font-size: 14px;
}

/* ---------------------------------------------------------------------------
 * Formacions a mesura: logos and form.
 * ------------------------------------------------------------------------- */
.fvb-formacio-page .mcb-section.fvb-logos {
	padding: 63px 0 64px;
	background: #f3f3f3;
}

.fvb-formacio-page .fvb-logos .fvb-h2 .title {
	margin: 0 0 40px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-align: center;
	text-transform: uppercase;
	color: var(--fvb-cta);
}

/* No logos yet: the section is not shown. */
.fvb-formacio-page .mcb-section.fvb-logos:not(:has(.clients_slider_ul li)) {
	display: none;
}

.fvb-formacio-page .fvb-logos .clients_slider img {
	opacity: 0.6;
	filter: grayscale(1);
}

.fvb-formacio-page .mcb-section.fvb-form {
	padding: 96px 0;
	background: #eee;
	scroll-margin-top: 100px;
}

.fvb-formacio-page .fvb-form__card > .mcb-wrap-inner {
	max-width: 864px;
	margin: 0 auto;
	padding: 48px 49px;
	border: 1px solid #e2e2e2;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.fvb-formacio-page .fvb-form .fvb-form__title .title {
	margin: 0 0 32px;
	font-family: var(--fvb-head);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-form .fvb-form__note .column_attr {
	margin: 15px 0 0;
	font-family: var(--fvb-head);
	font-size: 12px;
	font-weight: 500;
	text-align: center;
	color: #8b707a;
}

/* CF7 form markup (deploy/formacio/content/forms.php: .fvb-cf7 wrappers). */
.fvb-formacio-page .fvb-cf7__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 23px;
}

.fvb-formacio-page .fvb-cf7 label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 23px;
	font-family: var(--fvb-head);
	font-size: 12px;
	font-weight: 500;
	color: #8b707a;
}

.fvb-formacio-page .fvb-cf7__grid label {
	margin: 0;
}

.fvb-formacio-page .fvb-cf7 .wpcf7-form-control-wrap {
	display: block;
}

.fvb-formacio-page .fvb-cf7 input[type="text"],
.fvb-formacio-page .fvb-cf7 input[type="email"],
.fvb-formacio-page .fvb-cf7 input[type="tel"],
.fvb-formacio-page .fvb-cf7 textarea {
	width: 100%;
	margin: 0;
	padding: 14px 13px;
	border: 1px solid #e2e2e2;
	border-radius: 2px;
	background: #fff;
	box-shadow: none;
	font-family: var(--fvb-head);
	font-size: 16px;
	color: var(--fvb-ink);
}

.fvb-formacio-page .fvb-cf7 textarea {
	height: 120px;
	resize: vertical;
}

.fvb-formacio-page .fvb-cf7 input:focus,
.fvb-formacio-page .fvb-cf7 textarea:focus {
	border-color: var(--fvb-cta);
	outline: none;
}

.fvb-formacio-page .fvb-cf7 ::placeholder {
	color: #6b7280;
	opacity: 1;
}

.fvb-formacio-page .fvb-cf7 .wpcf7-acceptance label {
	flex-direction: row;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	font-size: 13px;
	color: #584049;
}

.fvb-formacio-page .fvb-cf7 .wpcf7-list-item {
	margin: 0;
}

.fvb-formacio-page .fvb-cf7 input[type="submit"] {
	width: 100%;
	margin: 17px 0 0;
	padding: 16px;
	border: 0;
	border-radius: 15px;
	background: var(--fvb-cta);
	box-shadow: none;
	font-family: var(--fvb-head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffe2eb;
	cursor: pointer;
}

.fvb-formacio-page .fvb-cf7 input[type="submit"]:hover {
	background: var(--fvb-wine);
	color: #fff;
}

.fvb-formacio-page .wpcf7 .wpcf7-spinner {
	display: block;
	margin: 8px auto 0;
}

/* ---------------------------------------------------------------------------
 * Responsive (BeBuilder already stacks the wraps by device size).
 * ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.fvb-grid__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 959px) {
	.fvb-formacio-page .mcb-section.fvb-section {
		padding: 56px 0;
	}

	.fvb-formacio-page .fvb-page .fvb-h2 .title {
		font-size: 36px;
	}

	.fvb-formacio-page .fvb-target > .mcb-wrap-inner {
		max-width: 480px;
		margin: 0 auto;
	}

	.fvb-formacio-page .fvb-cta .fvb-cta__action .mcb-wrap-inner {
		justify-content: flex-start;
		margin-top: 24px;
	}

	.fvb-formacio-page .fvb-intro--promo .fvb-intro__text .column_attr {
		padding-right: 0;
		margin-bottom: 32px;
	}

	.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track {
		grid-auto-columns: calc( ( 100% - 24px ) / 2 );
	}
}

@media (max-width: 767px) {
	.fvb-formacio-page .mcb-section.fvb-hero {
		min-height: 380px;
	}

	.fvb-formacio-page .fvb-hero .fvb-hero__title .title {
		margin-top: 16px;
		font-size: 48px;
		line-height: 1.15;
	}

	.fvb-formacio-page .fvb-hero .fvb-hero__subtitle .title {
		font-size: 30px;
	}

	.fvb-formacio-page .fvb-page .fvb-h2 .title,
	.fvb-formacio-page .fvb-opinions .fvb-h2 .title,
	.fvb-formacio-page .fvb-cta .fvb-cta__title .title {
		font-size: 30px;
	}

	.fvb-formacio-page .fvb-faq .fvb-h2 .title {
		font-size: 28px;
	}

	.fvb-formacio-page .fvb-intro .fvb-intro__text .column_attr {
		font-size: 17px;
	}

	.fvb-grid__items {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}

	.fvb-grid__bar {
		flex-direction: column;
		gap: 16px;
	}

	.fvb-grid__bar .fvb-arrows {
		position: static;
	}

	.fvb-formacio-page .fvb-opinions .testimonials_slider .fvb-opinions__track {
		grid-auto-columns: 100%;
	}

	.fvb-tabs {
		gap: 24px;
	}

	.fvb-formacio-page .mcb-section.fvb-hero--mesura {
		min-height: 480px;
		padding: 80px 0;
	}

	.fvb-formacio-page .fvb-hero--mesura .fvb-hero__title .title {
		font-size: 32px;
	}

	.fvb-formacio-page .fvb-lleure .fvb-lleure__title .title,
	.fvb-formacio-page .fvb-form .fvb-form__title .title,
	.fvb-formacio-page .fvb-why--mesura .fvb-why__title .title {
		font-size: 28px;
	}

	.fvb-formacio-page .fvb-lleure .fvb-lleure__text .column_attr {
		font-size: 17px;
	}

	.fvb-formacio-page .fvb-form__card > .mcb-wrap-inner {
		padding: 32px 20px;
	}

	.fvb-formacio-page .fvb-cf7__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fvb-formacio-page .fvb-page * {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
