/* ==========================================================================
   La Miquela — styles.css
   Estils del tema que no es poden expressar a theme.json.
   Colors, tipografies, mides i espais surten de theme.json (variables --wp--preset--*).
   Mobile-first: les regles base són per a mòbil; els @media afegeixen tauleta i escriptori.

   Índex
   01. Global i variables
   02. Tipografia
   03. Botons i enllaços
   04. Header
   05. Hero
   06. Process (Com funciona)
   07. Machines (Rentadores)
   08. Dryers (Assecadores)
   09. Benefits (Avantatges)
   10. Pricing (Preus)
   10b. Loyalty (Targeta de fidelitat)
   10c. Business (Empreses i professionals)
   11. Blog (Consells: portada, llistats, targetes)
   12. Article individual
   13. Location (On som)
   14. Contact (accions de contacte i CTA)
   15. FAQ
   16. Final CTA
   17. Footer
   18. Mobile bar (barra d'accions mòbil)
   19. Pàgines, cerca i 404
   20. Animations
   21. Accessibility
   22. Editor
   ========================================================================== */


/* ==========================================================================
   01. Global i variables
   ========================================================================== */

:root {
	--lm-blau: var(--wp--preset--color--blau);
	--lm-blau-fosc: var(--wp--preset--color--blau-fosc);
	--lm-groc: var(--wp--preset--color--groc);
	--lm-rosa: var(--wp--preset--color--rosa);
	--lm-lila: var(--wp--preset--color--lila);
	--lm-blanc: var(--wp--preset--color--blanc);
	--lm-paper: var(--wp--preset--color--paper);
	--lm-linia: var(--wp--preset--color--linia);
	--lm-gris: var(--wp--preset--color--gris);
	--lm-tinta: var(--wp--preset--color--tinta);
	--lm-tinta-suau: var(--wp--preset--color--tinta-suau);

	--lm-radius-s: var(--wp--custom--radius--s, 12px);
	--lm-radius-m: var(--wp--custom--radius--m, 22px);
	--lm-radius-l: var(--wp--custom--radius--l, 32px);
	--lm-radius-pill: var(--wp--custom--radius--pill, 999px);
	--lm-ease: var(--wp--custom--transition, 0.22s cubic-bezier(0.2, 0.7, 0.2, 1));

	--lm-section-y: clamp(3.5rem, 8vw, 7.5rem);
	--lm-line-on-blue: rgba(255, 255, 255, 0.35);
	--lm-shadow-soft: var(--wp--preset--shadow--suau, 0 1px 2px rgba(17, 17, 20, 0.06));
	--lm-shadow-float: var(--wp--preset--shadow--flotant, 0 10px 30px rgba(17, 17, 20, 0.16));
	--lm-mobile-bar-h: 0px;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

/* Les grans seccions s'enganxen sense espais entre elles. */
.wp-site-blocks > * + *,
body .lm-main > *,
body .lm-article > * {
	margin-block-start: 0;
}

.lm-section {
	padding-block: var(--lm-section-y);
}

.lm-section--tight {
	padding-block: 0 var(--lm-section-y);
}

/* Onades de marca entre seccions (decoratives). */
.lm-wave-out,
.lm-wave-in {
	position: relative;
}

.lm-wave-out::after,
.lm-wave-in::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: clamp(28px, 6.25vw, 90px);
	pointer-events: none;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.lm-wave-out::after {
	bottom: -1px;
	background: var(--lm-wave-color, var(--lm-blanc));
	-webkit-mask-image: url(assets/images/wave.svg);
	mask-image: url(assets/images/wave.svg);
}

.lm-wave-in::before {
	top: -1px;
	height: clamp(24px, 5.5vw, 80px);
	background: var(--lm-wave-color, var(--lm-paper));
	-webkit-mask-image: url(assets/images/wave-top.svg);
	mask-image: url(assets/images/wave-top.svg);
}

.lm-wave-in {
	padding-top: calc(var(--lm-section-y) + clamp(1rem, 3vw, 2.5rem));
}

/* Text de placeholder (cal substituir-lo): visible però discret. */
.lm-placeholder {
	border: 1.5px dashed var(--lm-linia);
	border-radius: var(--lm-radius-s);
	padding: 0.75rem 1rem;
	color: var(--lm-gris);
	font-size: var(--wp--preset--font-size--small);
}


/* ==========================================================================
   02. Typography
   ========================================================================== */

.lm-eyebrow {
	margin: 0;
	color: var(--lm-blau);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lm-eyebrow--groc {
	color: var(--lm-groc);
}

.lm-section__title {
	max-width: 16em;
}

.lm-claim {
	position: relative;
	z-index: 1;
	margin-block: clamp(1rem, 3vw, 2rem) 0;
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}


/* ==========================================================================
   03. Botons i enllaços
   ========================================================================== */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	transition: transform var(--lm-ease), background-color var(--lm-ease), color var(--lm-ease), box-shadow var(--lm-ease);
}

@media (hover: hover) {
	.wp-block-button__link:hover {
		transform: translateY(-2px);
	}
}

.wp-block-button__link:active {
	transform: translateY(0) scale(0.98);
}

.lm-btn-lg .wp-block-button__link {
	min-height: 56px;
	padding: 1.1rem 2rem;
	font-size: 1.125rem;
}

.lm-btn-sm .wp-block-button__link {
	min-height: 44px;
	padding: 0.65rem 1.1rem;
	font-size: 0.9375rem;
}

.lm-btn-split,
.lm-btn-split .wp-block-button__link {
	width: 100%;
}

.lm-btn-split .wp-block-button__link {
	justify-content: space-between;
	text-align: left;
}

.lm-btn-row {
	gap: 0.625rem;
}

/* Estil: Groc */
.wp-block-button.is-style-lm-groc .wp-block-button__link {
	background-color: var(--lm-groc);
	color: var(--lm-blau);
}

.wp-block-button.is-style-lm-groc .wp-block-button__link:hover {
	background-color: var(--lm-blanc);
	color: var(--lm-blau);
}

/* Estil: Contorn blau */
.wp-block-button.is-style-lm-contorn .wp-block-button__link {
	background-color: transparent;
	color: var(--lm-blau);
	box-shadow: inset 0 0 0 2px currentColor;
}

.wp-block-button.is-style-lm-contorn .wp-block-button__link:hover {
	background-color: var(--lm-blau);
	color: var(--lm-blanc);
	box-shadow: inset 0 0 0 2px var(--lm-blau);
}

/* Estil: Contorn blanc (sobre fons blau) */
.wp-block-button.is-style-lm-contorn-clar .wp-block-button__link {
	background-color: transparent;
	color: var(--lm-blanc);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.wp-block-button.is-style-lm-contorn-clar .wp-block-button__link:hover {
	background-color: var(--lm-blanc);
	color: var(--lm-blau);
	box-shadow: inset 0 0 0 2px var(--lm-blanc);
}

/* Estil: Enllaç amb fletxa (discret) */
.wp-block-button.is-style-lm-fletxa .wp-block-button__link {
	min-height: 44px;
	padding: 0.25rem 0;
	background: transparent;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.3em;
	text-decoration-thickness: 2px;
}

.wp-block-button.is-style-lm-fletxa .wp-block-button__link:hover {
	background: transparent;
	color: inherit;
	transform: none;
	text-decoration-color: currentColor;
}

/* Estil: Telèfon gran */
.wp-block-button.is-style-lm-telefon .wp-block-button__link {
	min-height: 0;
	padding: 0;
	background: transparent;
	color: var(--lm-blau);
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(2rem, 1.2rem + 2.2vw, 2.75rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0;
}

.wp-block-button.is-style-lm-telefon .wp-block-button__link:hover {
	background: transparent;
	color: var(--lm-blau-fosc);
	transform: none;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.18em;
}

/* Icones dels botons (màscares SVG que hereten el color del text). */
.lm-icon-arrow .wp-block-button__link::after,
.lm-icon-tel .wp-block-button__link::before,
.lm-icon-wa .wp-block-button__link::before,
.lm-icon-pin .wp-block-button__link::before,
.lm-link-arrow a::after {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	-webkit-mask: var(--lm-icon) center / contain no-repeat;
	mask: var(--lm-icon) center / contain no-repeat;
	transition: transform var(--lm-ease);
}

.lm-icon-arrow .wp-block-button__link::after,
.lm-link-arrow a::after {
	--lm-icon: url(assets/images/icon-arrow.svg);
}

.lm-icon-tel .wp-block-button__link::before {
	--lm-icon: url(assets/images/icon-tel.svg);
}

.lm-icon-wa .wp-block-button__link::before {
	--lm-icon: url(assets/images/icon-wa.svg);
}

.lm-icon-pin .wp-block-button__link::before {
	--lm-icon: url(assets/images/icon-pin.svg);
}

.lm-icon-arrow .wp-block-button__link:hover::after,
.lm-link-arrow a:hover::after {
	transform: translateX(4px);
}

.lm-link-arrow a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	text-underline-offset: 0.25em;
}

/* Enllaços dins de fons blau o negre */
.has-blau-background-color a:where(:not(.wp-element-button)),
.has-tinta-background-color a:where(:not(.wp-element-button)),
.has-negre-background-color a:where(:not(.wp-element-button)) {
	color: inherit;
}


/* ==========================================================================
   04. Header
   ========================================================================== */

.lm-header {
	position: relative;
	z-index: 30;
}

.lm-header__inner {
	min-height: clamp(72px, 8vw, 112px);
	column-gap: 1.5rem;
	row-gap: 0;
	border-bottom: 1px solid var(--lm-linia);
}

.lm-header--blau .lm-header__inner {
	border-bottom-color: rgba(255, 255, 255, 0.18);
}

/* Logotip horitzontal (imatge). El nom i la descripció del lloc de WordPress
   no es mostren a la capçalera: així un títol SEO llarg no desquadra el menú. */
.lm-brand__logo {
	flex: 0 0 auto;
	margin: 0;
}

.lm-brand__logo a {
	display: block;
	border-radius: var(--lm-radius-s);
}

.lm-brand__logo img {
	display: block;
	width: clamp(170px, 12rem + 3vw, 250px);
	height: auto;
	aspect-ratio: 6520 / 1290;
}

.lm-nav .wp-block-navigation__container {
	gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.lm-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.5rem;
	text-decoration: none;
}

.lm-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.2rem;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--lm-ease);
}

.lm-nav .wp-block-navigation-item__content:hover::after,
.lm-nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Botó del menú mòbil */
.lm-nav .wp-block-navigation__responsive-container-open {
	width: 48px;
	height: 48px;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px currentColor;
}

/* Menú obert (mòbil) */
.lm-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(1.25rem, 5vw, 2rem);
}

.lm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1rem;
}

.lm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--righteous);
	font-size: 2rem;
	line-height: 1.15;
}

.lm-header .lm-header__actions {
	display: none;
	gap: 1.25rem;
	align-items: center;
}

.lm-header .lm-header__phone {
	display: none;
}

.lm-header__phone .wp-block-button__link {
	font-weight: 500;
}

.lm-header__actions .wp-block-button__link,
.lm-nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

.lm-header--blau .lm-header__phone .wp-block-button__link::before {
	color: var(--lm-groc);
}

/* Tauleta: el menú passa a una segona línia sota la marca. */
@media (min-width: 600px) and (max-width: 1023.98px) {
	.lm-header__inner {
		padding-block: 0.75rem;
	}

	.lm-header__inner > .lm-nav {
		flex-basis: 100%;
		order: 3;
		padding-block: 0.25rem 0.5rem;
	}
}

@media (min-width: 1024px) {
	.lm-header__inner {
		flex-wrap: nowrap;
	}

	.lm-header .lm-header__actions {
		display: flex;
	}
}

@media (min-width: 1200px) {
	.lm-header .lm-header__phone {
		display: block;
	}
}


/* ==========================================================================
   05. Hero
   ========================================================================== */

.lm-hero {
	overflow: clip;
	padding-bottom: clamp(4.5rem, 10vw, 9.5rem);
}

.lm-hero__inner {
	padding-top: clamp(1.5rem, 4.5vw, 4rem);
}

.lm-hero__top {
	gap: 0.75rem 1rem;
	align-items: center;
}

.lm-hero__top > * {
	margin: 0;
}

.lm-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.4rem 0.95rem;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--lm-radius-pill);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
}

.lm-pill--dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lm-groc);
}

.lm-hero__h1 {
	margin: 0;
	font-size: clamp(1.0625rem, 0.85rem + 0.8vw, 1.5rem);
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.lm-hero__grid {
	display: grid;
	gap: 2rem;
	margin-top: clamp(1.25rem, 3vw, 3rem);
}

.lm-hero__grid > *,
.lm-hero__content > * {
	margin-block: 0;
}

.lm-hero__content {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.lm-hero__lead {
	max-width: 34rem;
	font-weight: 300;
	line-height: 1.5;
}

.lm-hero__lead strong {
	font-weight: 600;
}

.lm-hero__media {
	position: relative;
	order: -1;
	justify-self: end;
	width: min(270px, 72%);
}

.lm-hero__media > * {
	margin: 0;
}

.lm-hero__photo img {
	animation: none;
}

.lm-hero__tag {
	position: absolute;
	left: -18%;
	bottom: 12%;
	z-index: 2;
	padding: 0.5rem 0.9rem;
	border-radius: var(--lm-radius-pill);
	background: var(--lm-rosa);
	color: var(--lm-tinta);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	transform: rotate(-6deg);
}

.lm-hero__media::before {
	content: "";
	position: absolute;
	left: -16%;
	top: 6%;
	width: clamp(28px, 4vw, 54px);
	aspect-ratio: 1;
	background: var(--lm-rosa);
	-webkit-mask: url(assets/images/sparkle.svg) center / contain no-repeat;
	mask: url(assets/images/sparkle.svg) center / contain no-repeat;
}

.lm-hero__media::after {
	content: "";
	position: absolute;
	right: 6%;
	bottom: -4%;
	width: clamp(20px, 2.5vw, 34px);
	aspect-ratio: 1;
	background: var(--lm-groc);
	-webkit-mask: url(assets/images/sparkle.svg) center / contain no-repeat;
	mask: url(assets/images/sparkle.svg) center / contain no-repeat;
}

/* Dades destacades */
.lm-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(0.5rem, 2vw, 1.5rem);
	border-top: 1.5px solid var(--lm-line-on-blue);
}

.lm-stats > * {
	margin: 0;
}

.lm-stat {
	padding: 1rem 0.5rem 0 0.85rem;
	border-left: 1.5px solid var(--lm-line-on-blue);
}

.lm-stat:first-child {
	padding-left: 0;
	border-left: 0;
}

.lm-stat > * {
	margin: 0;
}

.lm-stat__num {
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem);
	line-height: 1;
	white-space: nowrap;
}

.lm-stat__unit {
	font-size: 0.42em;
}

.lm-stat--destacat .lm-stat__num {
	color: var(--lm-groc);
}

.lm-stat__label {
	margin-top: 0.35rem;
	font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
	line-height: 1.35;
}

@media (min-width: 782px) {
	.lm-hero__media {
		width: min(360px, 48%);
	}
}

@media (min-width: 1024px) {
	.lm-hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: 2rem;
		align-items: start;
	}

	.lm-hero__media {
		order: 0;
		width: min(440px, 100%);
		/* La porta de la rentadora puja fins a la segona línia del claim. */
		margin-top: calc(var(--wp--preset--font-size--display) * -0.95 - 1rem);
	}

	.lm-stats {
		margin-top: clamp(1.5rem, 3vw, 3rem);
	}
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
	.lm-hero__media {
		width: min(340px, 100%);
		margin-top: calc(var(--wp--preset--font-size--display) * -0.5);
	}
}

/* Imatge en forma de porta de rentadora (estil de bloc Imatge) */
.wp-block-image.is-style-lm-porta {
	aspect-ratio: 1;
	box-sizing: border-box;
	padding: clamp(10px, 1.3vw, 18px);
	border-radius: 50%;
	background: var(--lm-blanc);
}

.wp-block-image.is-style-lm-porta img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: clamp(6px, 0.8vw, 10px) solid var(--lm-lila);
	border-radius: 50%;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
	.wp-block-image.is-style-lm-porta:hover img {
		transform: rotate(-4deg) scale(1.02);
	}
}


/* ==========================================================================
   06. Process (Com funciona)
   ========================================================================== */

.lm-section__head > * {
	margin-block: 0;
}

.lm-section__head > * + * {
	margin-top: 0.75rem;
}

.lm-steps {
	display: grid;
	gap: 0.75rem;
	margin-top: clamp(2rem, 5vw, 4.5rem);
}

.lm-steps > * {
	margin: 0;
}

.lm-step {
	position: relative;
	display: grid;
	grid-template-columns: 4.25rem 1fr;
	column-gap: 1rem;
	align-items: center;
	padding: 1.1rem 1.25rem;
	border-radius: var(--lm-radius-m);
	background: var(--lm-paper);
	transition: transform var(--lm-ease), box-shadow var(--lm-ease);
}

.lm-step > * {
	margin: 0;
}

.lm-step__num {
	grid-row: span 2;
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(3.25rem, 2rem + 5vw, 7.5rem);
	line-height: 0.9;
	color: var(--lm-blau);
}

.lm-step__title {
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
}

.lm-step__text {
	color: var(--lm-tinta-suau);
	font-size: 0.975rem;
	line-height: 1.5;
}

.lm-step--fet {
	background: var(--lm-groc);
}

.lm-step--fet .lm-step__text {
	color: #2a2a33;
}

.lm-step--fet::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 1.25rem;
	width: clamp(22px, 2.6vw, 40px);
	aspect-ratio: 1;
	background: var(--lm-blau);
	-webkit-mask: url(assets/images/sparkle.svg) center / contain no-repeat;
	mask: url(assets/images/sparkle.svg) center / contain no-repeat;
}

@media (min-width: 600px) {
	.lm-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.lm-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.lm-step {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
		min-height: 20rem;
		padding: 2rem 1.75rem 2.25rem;
		border-radius: var(--lm-radius-l);
	}

	.lm-step__title {
		margin-top: auto;
	}
}

/* Hover: la targeta es "tenyeix" de blau, el número passa a groc i fa un petit gir. */
.lm-step,
.lm-step__num,
.lm-step__title,
.lm-step__text,
.lm-step--fet::after {
	transition: background-color 0.35s ease, color 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
	.lm-step:hover {
		transform: translateY(-6px);
		background-color: var(--lm-blau);
		color: var(--lm-blanc);
	}

	.lm-step:hover .lm-step__num {
		color: var(--lm-groc);
		transform: rotate(-6deg) scale(1.06);
	}

	.lm-step:hover .lm-step__text,
	.lm-step--fet:hover .lm-step__text {
		color: rgba(255, 255, 255, 0.9);
	}

	.lm-step--fet:hover::after {
		background: var(--lm-rosa);
		transform: rotate(90deg) scale(1.15);
	}
}


/* ==========================================================================
   07. Machines (Rentadores)
   ========================================================================== */

.lm-machines__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
}

.lm-machines__grid > *,
.lm-machines__intro > * {
	margin-block: 0;
}

.lm-machines__intro > * + * {
	margin-top: 1rem;
}

.lm-help {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-top: 2rem !important;
	padding: 1.25rem 1.5rem;
	border-radius: var(--lm-radius-m);
}

.lm-help > *,
.lm-help__body > * {
	margin: 0;
}

.lm-help__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	color: var(--lm-tinta-suau);
	font-size: 1rem;
	line-height: 1.5;
}

.lm-help__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: clamp(52px, 5vw, 64px);
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	background: var(--lm-blau);
}

.lm-help__icon img {
	display: block;
	width: 72%;
	height: auto;
}

.lm-help__title {
	color: var(--lm-tinta);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
}

.lm-machines__cards {
	display: grid;
	gap: 0.75rem;
}

.lm-machines__cards > * {
	margin: 0;
}

.lm-machine {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	overflow: hidden;
	padding: 1.25rem;
	border-radius: var(--lm-radius-m);
	background: var(--lm-blanc);
	box-shadow: var(--lm-shadow-soft);
	transition: transform var(--lm-ease);
}

.lm-machine > *,
.lm-machine__body > * {
	margin: 0;
}

.lm-machine__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.lm-machine__kg {
	flex: 0 0 6.25rem;
	position: relative;
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(3.25rem, 2rem + 3.6vw, 5.5rem);
	line-height: 0.85;
	color: var(--lm-blau);
}

.lm-machine__unit {
	font-size: 0.34em;
}

.lm-machine__title {
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.2;
}

.lm-machine__text {
	color: var(--lm-tinta-suau);
	font-size: 0.975rem;
	line-height: 1.45;
}

.lm-machine--15 {
	background: var(--lm-rosa);
	box-shadow: none;
}

.lm-machine--15 .lm-machine__text {
	color: #2a2a33;
}

.lm-machine--20 {
	background: var(--lm-blau);
	color: var(--lm-blanc);
	box-shadow: none;
}

.lm-machine--20 .lm-machine__kg {
	color: var(--lm-groc);
}

.lm-machine--20 .lm-machine__text {
	color: var(--lm-blanc);
}

@media (min-width: 782px) {
	.lm-machines__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: 100%;
		align-items: end;
		gap: 1rem;
		height: clamp(28rem, 42vw, 37.5rem);
	}

	.lm-machine {
		flex-direction: column;
		align-items: stretch;
		justify-content: space-between;
		padding: 1.6rem 1.4rem;
		border-radius: var(--lm-radius-l);
	}

	.lm-machine__kg {
		flex: 0 0 auto;
	}

	.lm-machine--10 {
		height: 63%;
	}

	.lm-machine--15 {
		height: 80%;
	}

	.lm-machine--20 {
		height: 100%;
	}

	/* Un tros de la cinta llarga, més ampla que la targeta: els extrems
	   queden amagats fora de les vores i sembla que la travessa. */
	.lm-machine--10::before,
	.lm-machine--15::before,
	.lm-machine--20::before {
		content: "";
		position: absolute;
		left: -95%;
		width: 290%;
		aspect-ratio: 5314 / 2038;
		background: url(assets/images/cinta-groga.svg) center / 100% auto no-repeat;
		pointer-events: none;
	}

	.lm-machine--15::before {
		top: 30%;
	}

	/* La de 10 kg només mostra la cinta en passar-hi el ratolí. */
	.lm-machine--10::before {
		top: 34%;
		left: -120%;
		background-image: url(assets/images/cinta-rosa.svg);
		opacity: 0;
		transition: opacity 0.4s ease;
	}

	.lm-machine--20::before {
		top: 26%;
		left: -150%;
		background-image: url(assets/images/cinta-rosa.svg);
	}
}

@media (min-width: 1280px) {
	.lm-machines__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		column-gap: clamp(3rem, 7vw, 7rem);
		align-items: start;
	}
}

/* Hover: la targeta puja, el número creix una mica i la cinta "flueix"
   com la roba dins el tambor (animació només de transform, molt lleugera). */
@keyframes lm-flow {
	0%,
	100% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(-12%);
	}
}

@keyframes lm-flow-r {
	0%,
	100% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(12%);
	}
}

.lm-machine__kg {
	transform-origin: left bottom;
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
	.lm-machine:hover {
		transform: translateY(-8px);
	}

	.lm-machine:hover .lm-machine__kg {
		transform: scale(1.08);
	}

	.lm-machine:hover::before {
		animation: lm-flow 3.2s ease-in-out infinite;
	}

	.lm-machine--20:hover::before {
		animation-name: lm-flow-r;
	}

	.lm-machine--10:hover::before {
		opacity: 1;
	}
}


/* ==========================================================================
   08. Dryers (Assecadores)
   ========================================================================== */

.lm-dryers {
	padding-block: 0;
}

.lm-dryers__panel {
	position: relative;
	display: grid;
	gap: 1.25rem;
	overflow: hidden;
	padding: clamp(1.75rem, 5vw, 4.5rem);
	border-radius: clamp(28px, 3vw, 40px);
}

.lm-dryers__panel > *,
.lm-dryers__body > *,
.lm-dryers__time > * {
	margin: 0;
}

.lm-dryers__body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lm-dryers__body .wp-block-heading {
	max-width: 14em;
}

.lm-dryers__time {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	color: var(--lm-blau);
	font-family: var(--wp--preset--font-family--righteous);
}

.lm-dryers__num {
	font-size: clamp(6.5rem, 3rem + 11vw, 14.5rem);
	line-height: 0.8;
	letter-spacing: -0.03em;
}

.lm-dryers__unit {
	font-size: clamp(1.875rem, 1rem + 3vw, 4rem);
	line-height: 1;
}

.lm-sparkle-note {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	font-weight: 600;
}

.lm-sparkle-note::before {
	content: "";
	flex: 0 0 auto;
	width: 1.25rem;
	aspect-ratio: 1;
	background: var(--lm-blau);
	-webkit-mask: url(assets/images/sparkle.svg) center / contain no-repeat;
	mask: url(assets/images/sparkle.svg) center / contain no-repeat;
}

/* Porta de la rentadora (bloc Imatge amb fons transparent). */
.lm-dryers__photo {
	width: min(240px, 70%);
	margin: 0.5rem 0 0 !important;
	justify-self: center;
}

.lm-dryers__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	filter: drop-shadow(0 14px 24px rgba(17, 17, 20, 0.22));
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
	.lm-dryers__panel:hover .lm-dryers__photo img {
		transform: rotate(-8deg) scale(1.03);
	}
}

@media (min-width: 1024px) {
	.lm-dryers__photo {
		width: min(100%, 300px);
		margin: 0 !important;
		justify-self: end;
	}
}

@media (min-width: 1024px) {
	.lm-dryers__panel {
		grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
		column-gap: 2rem;
		align-items: center;
	}

	.lm-dryers__time {
		display: block;
	}
}


/* ==========================================================================
   09. Benefits (Avantatges)
   ========================================================================== */

.lm-benefits__title {
	max-width: 15em;
}

.lm-bento {
	display: grid;
	gap: 0.75rem;
	margin-top: clamp(2rem, 4.5vw, 3.5rem) !important;
}

.lm-bento > * {
	margin: 0;
}

.lm-benefit {
	position: relative;
	overflow: hidden;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--lm-radius-l);
	transition: transform var(--lm-ease);
}

.lm-benefit > * {
	margin-block: 0;
}

.lm-benefit > * + * {
	margin-top: 0.6rem;
}

.lm-benefit h3 {
	font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
}

.lm-benefit--gran {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 1.5rem;
	min-height: clamp(25rem, 38vw, 32.5rem);
}

/* Cintes de marca (dues cintes paral·leles, com a la targeta de fidelitat) */
.lm-benefit--gran::before {
	content: "";
	position: absolute;
	left: -2%;
	top: -9%;
	width: 104%;
	aspect-ratio: 5314 / 2750;
	background:
		url(assets/images/cinta-rosa.svg) center top / 100% auto no-repeat,
		url(assets/images/cinta-groga.svg) center bottom / 100% auto no-repeat;
	pointer-events: none;
}

.lm-benefit--gran > * {
	position: relative;
}

.lm-benefit__body > * {
	margin-block: 0;
}

.lm-benefit__body > * + * {
	margin-top: 0.85rem;
}

.lm-benefit--gran .lm-benefit__big-title {
	line-height: 0.95;
}

.lm-benefit--gran p {
	max-width: 36rem;
}

.lm-benefit__hours {
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
	line-height: 1;
	color: var(--lm-blau);
}

@media (min-width: 782px) {
	.lm-bento {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.lm-bento > * {
		grid-column: span 6;
	}

	.lm-bento > .lm-benefit--gran,
	.lm-bento > .lm-benefit--linia {
		grid-column: span 12;
	}

	.lm-benefit--linia {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
		padding-block: 1.75rem;
	}

	.lm-benefit--linia > * + * {
		margin-top: 0;
	}
}

@media (min-width: 1024px) {
	.lm-bento > * {
		grid-column: span 5;
	}

	.lm-bento > .lm-benefit--gran {
		grid-column: span 7;
		grid-row: span 2;
	}
}

@media (hover: hover) {
	.lm-benefit:hover {
		transform: translateY(-4px);
	}
}


/* ==========================================================================
   10. Pricing (Preus)
   ========================================================================== */

.lm-pricing__grid {
	display: grid;
	gap: 2.5rem;
}

.lm-pricing__grid > *,
.lm-pricing__intro > *,
.lm-pricing__side > * {
	margin-block: 0;
}

.lm-pricing__intro > * + * {
	margin-top: 0.85rem;
}

.lm-pricing__label {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.3;
}

.lm-price-table {
	margin: 0;
}

.lm-price-table table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}

.lm-price-table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.lm-price-table td,
.lm-price-table th {
	padding: 0;
	border: 0;
}

.lm-price-table tbody tr {
	border-top: 1.5px solid var(--lm-line-on-blue);
}

.lm-price-table tbody tr:last-child {
	border-bottom: 1.5px solid var(--lm-line-on-blue);
}

.lm-price-table td {
	padding-block: clamp(0.9rem, 1.6vw, 1.35rem);
	vertical-align: baseline;
}

.lm-price-table td:first-child {
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
	font-weight: 500;
}

.lm-price-table td:last-child {
	text-align: right;
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(2.75rem, 1.8rem + 3.4vw, 4.5rem);
	line-height: 1;
	white-space: nowrap;
}

.lm-price-table tbody tr:last-child td:last-child {
	color: var(--lm-groc);
}

.lm-pricing__side {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lm-price-card {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	padding: clamp(1.4rem, 2.5vw, 1.9rem);
	border-radius: var(--lm-radius-l);
}

.lm-price-card > * {
	margin: 0;
}

.lm-price-card .lm-pricing__label {
	grid-column: 1;
	color: var(--lm-blau);
}

.lm-price-card__size {
	grid-column: 1;
	font-size: 1.25rem;
	font-weight: 500;
}

.lm-price-card__price {
	grid-column: 2;
	grid-row: 1 / span 3;
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(3.5rem, 2.4rem + 3vw, 5.5rem);
	line-height: 0.9;
	color: var(--lm-blau);
}

.lm-price-card__per {
	grid-column: 1;
	font-weight: 600;
}

.lm-pricing .lm-price-note {
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--lm-blanc);
	opacity: 0.92;
}

@media (min-width: 1024px) {
	.lm-pricing__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
		column-gap: 2rem;
	}

	.lm-price-card {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}


/* ==========================================================================
   10b. Loyalty (Targeta de fidelitat) — dins la secció de preus
   ========================================================================== */

.lm-loyalty {
	position: relative;
	display: grid;
	gap: 1rem 3rem;
	align-items: center;
	overflow: hidden;
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
	padding: clamp(1.75rem, 4.5vw, 3.5rem);
	border-radius: clamp(28px, 3vw, 40px);
}

.lm-loyalty > *,
.lm-loyalty__body > * {
	margin-block: 0;
}

.lm-loyalty__body > * + * {
	margin-top: 0.6rem;
}

.lm-loyalty__pct {
	font-size: clamp(5.5rem, 2.5rem + 11vw, 13rem);
	line-height: 0.8;
	letter-spacing: -0.04em;
	white-space: nowrap;
}

.lm-loyalty__title {
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
	line-height: 1.15;
}

.lm-loyalty__main {
	color: var(--lm-tinta);
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
}

.lm-loyalty__text {
	max-width: 34rem;
	color: #2a2a33;
}

.lm-loyalty__note {
	margin-top: 1rem !important;
	color: var(--lm-tinta);
}

/* Targeta de fidelitat: bloc Imatge normal (es pot substituir des de l'editor). */
.lm-loyalty__card {
	width: min(230px, 70%);
	margin: 1rem 0 0.75rem 0.5rem !important;
	transform: rotate(6deg);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lm-loyalty__card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 800 / 493;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: var(--lm-shadow-float);
}

@media (hover: hover) {
	.lm-loyalty:hover .lm-loyalty__card {
		transform: rotate(1deg) translateY(-4px);
	}
}

@media (min-width: 782px) {
	.lm-loyalty {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

@media (min-width: 1024px) {
	.lm-loyalty {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.lm-loyalty__card {
		width: 280px;
		margin-top: 0 !important;
	}
}


/* ==========================================================================
   10c. Business (Empreses i professionals)
   ========================================================================== */

.lm-business {
	padding-bottom: 0;
}

.lm-business__panel {
	position: relative;
	display: grid;
	gap: 2.5rem;
	overflow: hidden;
	padding: clamp(1.75rem, 5vw, 4.5rem);
	border-radius: clamp(28px, 3vw, 40px);
}

.lm-business__panel::after {
	content: "";
	position: absolute;
	right: clamp(1.25rem, 3vw, 2.5rem);
	top: clamp(1.25rem, 3vw, 2.5rem);
	width: clamp(26px, 3vw, 44px);
	aspect-ratio: 1;
	background: var(--lm-groc);
	-webkit-mask: url(assets/images/sparkle.svg) center / contain no-repeat;
	mask: url(assets/images/sparkle.svg) center / contain no-repeat;
}

.lm-business__panel > *,
.lm-business__main > *,
.lm-business__cases > *,
.lm-business__cta > * {
	margin-block: 0;
}

.lm-business__main > * + * {
	margin-top: 1rem;
}

.lm-business__title {
	max-width: 11em;
	line-height: 0.98;
}

.lm-business__offer {
	max-width: 34rem;
	font-size: 1.0625rem;
	opacity: 0.92;
}

.lm-business__cta {
	margin-top: clamp(1.5rem, 3vw, 2.25rem) !important;
}

.lm-business__ask {
	margin-bottom: 0.85rem !important;
	font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
	line-height: 1;
}

.lm-business__cta .lm-btn-row {
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.lm-business__note {
	font-size: 0.9375rem;
	opacity: 0.85;
}

.lm-business__cases-label {
	margin-bottom: 0.5rem !important;
	color: var(--lm-rosa);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lm-case {
	padding-block: 1rem;
	border-top: 1.5px solid rgba(255, 255, 255, 0.28);
}

.lm-case > * {
	margin: 0;
}

.lm-case__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem);
	line-height: 1.2;
}

.lm-case__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.7em;
	aspect-ratio: 1;
	background: var(--lm-rosa);
	-webkit-mask: url(assets/images/sparkle.svg) center / contain no-repeat;
	mask: url(assets/images/sparkle.svg) center / contain no-repeat;
}

.lm-case__text {
	display: none;
	margin-top: 0.3rem !important;
	padding-left: calc(0.7em + 0.6rem);
	opacity: 0.85;
	font-size: 1rem;
	line-height: 1.5;
}

.lm-business__more {
	padding-top: 1rem;
	border-top: 1.5px solid rgba(255, 255, 255, 0.28);
	font-size: 0.9375rem;
	opacity: 0.8;
}

@media (min-width: 600px) {
	.lm-case__text {
		display: block;
	}
}

@media (min-width: 1024px) {
	.lm-business__panel {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: clamp(3rem, 6vw, 6rem);
		align-items: start;
	}

	.lm-business__cases {
		padding-top: 2.5rem;
	}
}


/* ==========================================================================
   11. Blog (Consells de la Miquela)
   ========================================================================== */

.lm-tips__head {
	display: grid;
	gap: 1.5rem;
	align-items: end;
}

.lm-tips__head > *,
.lm-tips__titles > * {
	margin: 0;
}

.lm-tips__titles > * + * {
	margin-top: 0.6rem;
}

.lm-tips__brand {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 1.75rem);
}

.lm-tips__brand > * {
	margin: 0;
}

.lm-tips__kicker {
	font-weight: 600;
}

.lm-tips__intro {
	max-width: 30rem;
	color: var(--lm-tinta-suau);
}

.lm-avatar {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: clamp(64px, 3rem + 5vw, 128px);
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	background: var(--lm-blau);
}

/* Cap de la Miquela amb la cara blanca, sempre sobre cercle blau. */
.lm-avatar img {
	display: block;
	width: 72%;
	height: auto;
}

.lm-query {
	margin-top: clamp(2rem, 4.5vw, 3.75rem) !important;
}

.wp-block-post-template.lm-post-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 2.25rem 1.5rem;
}

.lm-post-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
}

.lm-post-card > * {
	margin: 0;
}

.lm-post-card__img {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--lm-radius-l);
	background: var(--lm-paper);
}

.lm-post-card__img a,
.lm-post-card__img img {
	display: block;
	width: 100%;
	height: 100%;
}

.lm-post-card__img img {
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Si l'article no té imatge destacada, es mostra un fons de marca. */
.lm-post-card:not(:has(.lm-post-card__img))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--lm-radius-l);
	background: var(--lm-blau) url(assets/images/miquela-cap-blanc.svg) center / 30% auto no-repeat;
}

.lm-post-card__title {
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.lm-post-card__title a {
	color: var(--lm-tinta);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size var(--lm-ease), color var(--lm-ease);
}

.lm-post-card:hover .lm-post-card__title a,
.lm-post-card__title a:focus-visible {
	color: var(--lm-blau);
	background-size: 100% 2px;
}

@media (hover: hover) {
	.lm-post-card:hover .lm-post-card__img img {
		transform: scale(1.04);
	}
}

.lm-post-card__excerpt {
	color: var(--lm-tinta-suau);
	font-size: 1rem;
	line-height: 1.55;
}

.lm-post-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.lm-post-card--box {
	overflow: hidden;
	padding-bottom: 1.5rem;
	border-radius: var(--lm-radius-l);
}

.lm-post-card--box > *:not(.lm-post-card__img) {
	padding-inline: 1.5rem;
}

.lm-post-card--box .lm-post-card__img {
	border-radius: 0;
}

.lm-post-card--box:not(:has(.lm-post-card__img))::before {
	border-radius: 0;
}

/* Etiqueta tipus xip (estil del bloc Termes) */
.wp-block-post-terms.is-style-lm-xip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.wp-block-post-terms.is-style-lm-xip a {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: var(--lm-radius-pill);
	background: var(--lm-rosa);
	color: var(--lm-tinta);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color var(--lm-ease), color var(--lm-ease);
}

.wp-block-post-terms.is-style-lm-xip a:hover {
	background: var(--lm-blau);
	color: var(--lm-blanc);
}

.wp-block-post-terms.is-style-lm-xip .wp-block-post-terms__separator {
	display: none;
}

.lm-tips__more {
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}

/* Capçalera de llistats (Consells, categories, cerca) */
.lm-archive-hero {
	padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}

.lm-archive-hero__inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.lm-archive-hero__inner > *,
.lm-archive-hero__text > * {
	margin-block: 0;
}

.lm-archive-hero__text > * + * {
	margin-top: 0.85rem;
}

.lm-archive-hero__text {
	max-width: 50rem;
}

.lm-archive-hero__kicker {
	font-weight: 600;
}

.lm-archive-hero .lm-eyebrow a {
	text-decoration: none;
}

.lm-archive-hero .wp-block-query-title {
	margin: 0;
}

@media (min-width: 782px) {
	.lm-archive-hero__inner {
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: clamp(1.5rem, 3vw, 2.5rem);
	}
}

/* Categories com a xips */
.wp-block-categories.lm-cat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem !important;
	padding: 0;
	list-style: none;
}

.lm-cat-chips li {
	margin: 0;
}

.lm-cat-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.45rem 1.1rem;
	border-radius: var(--lm-radius-pill);
	background: var(--lm-blanc);
	color: var(--lm-tinta);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--lm-ease), color var(--lm-ease);
}

.lm-cat-chips a:hover,
.lm-cat-chips .current-cat > a {
	background: var(--lm-blau);
	color: var(--lm-blanc);
}

/* Paginació */
.lm-pagination {
	gap: 0.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
	font-weight: 600;
}

.lm-pagination .page-numbers,
.lm-pagination .wp-block-query-pagination-previous,
.lm-pagination .wp-block-query-pagination-next {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 0.85rem;
	border-radius: var(--lm-radius-pill);
	text-decoration: none;
}

.lm-pagination .page-numbers.current {
	background: var(--lm-blau);
	color: var(--lm-blanc);
}

.lm-pagination a:hover {
	background: var(--lm-paper);
}

@media (min-width: 782px) {
	.wp-block-post-template.lm-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.lm-tips__head {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		column-gap: 3rem;
	}

	.wp-block-post-template.lm-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   12. Article individual
   ========================================================================== */

.lm-single-hero {
	position: relative;
	overflow: clip;
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

.lm-single-hero::before {
	content: "";
	position: absolute;
	right: 0;
	top: clamp(1.5rem, 4vw, 2.5rem);
	width: min(560px, 45vw);
	aspect-ratio: 4661 / 1420;
	background: url(assets/images/cinta-blanca.svg) center / contain no-repeat;
	opacity: 0.75;
	transform: scaleX(-1);
	pointer-events: none;
}

.lm-single-hero > * {
	position: relative;
}

.lm-single-hero:not(:has(.wp-block-post-featured-image)) {
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lm-breadcrumbs {
	gap: 0.5rem;
	font-size: 0.9rem;
}

.lm-breadcrumbs > * {
	margin: 0;
}

.lm-breadcrumbs > * + *::before {
	content: "›";
	content: "›" / "";
	margin-right: 0.5rem;
	color: var(--lm-tinta-suau);
}

.lm-breadcrumbs a {
	color: var(--lm-tinta);
	text-underline-offset: 0.2em;
}

.lm-breadcrumbs .wp-block-post-terms {
	display: inline;
	font-size: inherit;
	font-weight: 400;
}

.lm-single-hero__title {
	margin-top: 1.25rem;
	font-size: var(--wp--preset--font-size--xxx-large);
}

.lm-single-hero__lead p {
	max-width: 46rem;
	margin: 0;
	color: #2a2a33;
}

.lm-single-hero__meta {
	gap: 0.6rem;
	align-items: center;
	font-size: 0.9375rem;
}

.lm-single-hero__meta > * {
	margin: 0;
	white-space: nowrap;
}

.lm-single-hero .lm-single-hero__meta {
	flex-wrap: wrap;
}

.lm-single-hero__meta .wp-block-post-date {
	color: #2a2a33;
}

.lm-single-hero__meta > p::after {
	content: "·";
	content: "·" / "";
	margin-left: 0.6rem;
}

.lm-single-hero__icon {
	display: grid;
	place-items: center;
	width: 38px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--lm-blau);
}

.lm-single-hero__icon img {
	display: block;
	width: 72%;
	height: auto;
}

.lm-single-hero__image {
	margin-top: clamp(1.75rem, 4vw, 2.75rem) !important;
	margin-bottom: 0;
}

.lm-single-hero__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 0 0;
}

/* Contingut de l'article: lectura còmoda */
.lm-post-content {
	padding-block: clamp(2.5rem, 5vw, 4.5rem) 0.5rem;
	color: #26262e;
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.72;
}

.lm-post-content--full {
	padding-block: 0;
}

.lm-post-content > h2 {
	margin-top: 2.4em;
	font-size: var(--wp--preset--font-size--x-large);
}

.lm-post-content > h3 {
	margin-top: 1.9em;
	font-size: var(--wp--preset--font-size--large);
}

.lm-post-content > h4 {
	margin-top: 1.6em;
}

.lm-post-content :where(ul, ol) {
	padding-left: 1.3em;
}

.lm-post-content li + li {
	margin-top: 0.45em;
}

.lm-post-content li::marker {
	color: var(--lm-blau);
	font-weight: 600;
}

.lm-post-content a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1.5px;
}

.lm-post-content .wp-block-image img {
	border-radius: var(--lm-radius-m);
}

/* Taules (dins d'articles i estil «Taula La Miquela») */
.lm-post-content .wp-block-table table,
.wp-block-table.is-style-lm-taula table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1.5px solid var(--lm-linia);
	border-radius: var(--lm-radius-m);
	font-size: 1rem;
	line-height: 1.5;
}

.lm-post-content .wp-block-table th,
.lm-post-content .wp-block-table td,
.wp-block-table.is-style-lm-taula th,
.wp-block-table.is-style-lm-taula td {
	padding: 0.9rem 1.15rem;
	border: 0;
	text-align: left;
}

.lm-post-content .wp-block-table thead,
.wp-block-table.is-style-lm-taula thead {
	border: 0;
	background: var(--lm-blau);
	color: var(--lm-blanc);
}

.lm-post-content .wp-block-table tbody tr + tr td,
.wp-block-table.is-style-lm-taula tbody tr + tr td {
	border-top: 1.5px solid var(--lm-linia);
}

.lm-post-content .wp-block-table tbody tr:nth-child(even),
.wp-block-table.is-style-lm-taula tbody tr:nth-child(even) {
	background: var(--lm-paper);
}

.wp-block-table figcaption {
	margin-top: 0.6rem;
}

/* Cites */
.lm-post-content .wp-block-quote:not(.is-style-lm-miquela) {
	margin-block: 2em;
	padding-left: 1.4rem;
	border-left: 4px solid var(--lm-blau);
}

.wp-block-quote.is-style-lm-miquela {
	position: relative;
	margin-block: 2em;
	padding: 1.75rem;
	border: 0;
	border-radius: var(--lm-radius-l);
	background: var(--lm-groc);
	color: var(--lm-tinta);
}

.wp-block-quote.is-style-lm-miquela::before {
	content: "";
	display: block;
	width: 56px;
	aspect-ratio: 1;
	margin-bottom: 0.9rem;
	border-radius: 50%;
	background: var(--lm-blau) url(assets/images/miquela-cap-blanc.svg) center / 72% auto no-repeat;
}

.wp-block-quote.is-style-lm-miquela p {
	margin: 0;
	color: var(--lm-blau);
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
	line-height: 1.22;
}

.wp-block-quote.is-style-lm-miquela cite {
	display: block;
	margin-top: 0.85rem;
	color: #2a2a33;
}

.wp-block-quote.is-style-lm-miquela cite::before {
	content: "— ";
}

@media (min-width: 600px) {
	.wp-block-quote.is-style-lm-miquela {
		padding: 2rem 2.25rem 2rem 6.75rem;
	}

	.wp-block-quote.is-style-lm-miquela::before {
		position: absolute;
		left: 2rem;
		top: 2.1rem;
		width: 64px;
		margin: 0;
	}
}

/* Després del contingut */
.lm-article__after {
	padding-top: 1rem;
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.lm-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 2rem !important;
	padding-top: 1.4rem;
	border-top: 1.5px solid var(--lm-linia);
	color: var(--lm-gris);
	font-size: 0.9375rem;
}

.lm-post-tags a {
	padding: 0.3rem 0.75rem;
	border-radius: var(--lm-radius-pill);
	background: var(--lm-paper);
	color: var(--lm-tinta);
	text-decoration: none;
}

.lm-post-tags .wp-block-post-terms__separator {
	display: none;
}

.lm-post-nav {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.5rem !important;
}

.lm-post-nav > * {
	margin: 0;
}

.lm-post-nav .wp-block-post-navigation-link {
	padding: 1.1rem 1.25rem;
	border-radius: var(--lm-radius-m);
	background: var(--lm-paper);
	font-weight: 600;
	line-height: 1.35;
	transition: background-color var(--lm-ease);
}

.lm-post-nav .wp-block-post-navigation-link:hover {
	background: var(--lm-rosa);
}

.lm-post-nav a {
	color: var(--lm-tinta);
	text-decoration: none;
}

.lm-post-nav__next {
	text-align: right;
}

@media (min-width: 600px) {
	.lm-post-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lm-post-nav__next:only-child {
		grid-column: 2;
	}
}

.lm-related__head {
	margin-bottom: 0;
}

.lm-related__head > * {
	margin: 0;
}

.lm-related .lm-query {
	margin-top: 2rem !important;
}


/* ==========================================================================
   13. Location (On som)
   ========================================================================== */

.lm-location__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3rem);
}

.lm-location__grid > *,
.lm-location__info > * {
	margin-block: 0;
}

.lm-location__info > * + * {
	margin-top: 1.25rem;
}

.lm-map {
	overflow: hidden;
	margin: 0;
	border-radius: clamp(24px, 3vw, 36px);
}

.lm-map img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 672 / 640;
	object-fit: cover;
}

.lm-location__seo {
	color: var(--lm-tinta-suau);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.55;
}

.lm-info-grid {
	display: grid;
	gap: 1.25rem;
	padding-block: 1.5rem;
	border-block: 1.5px solid var(--lm-linia);
	margin-top: 1.75rem !important;
}

.lm-info-grid > * {
	margin: 0;
}

.lm-info > * {
	margin: 0;
	line-height: 1.5;
}

.lm-info__label {
	margin-bottom: 0.35rem !important;
	color: var(--lm-gris);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lm-info .wp-block-buttons {
	margin-top: 0.1rem;
}

@media (min-width: 480px) {
	.lm-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lm-info--full {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.lm-location__grid {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		column-gap: clamp(3rem, 6vw, 6rem);
		align-items: center;
	}
}


/* ==========================================================================
   14. Contact (accions de contacte i CTA)
   ========================================================================== */

.lm-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.75rem !important;
}

.lm-actions > * {
	margin: 0;
}

.lm-actions__secondary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
}

.lm-actions__secondary .wp-block-button {
	width: 100%;
}

@media (min-width: 600px) {
	.lm-actions__secondary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Bloc comercial dins d'articles */
.lm-article-cta {
	position: relative;
	overflow: hidden;
	margin-block: 2.5rem 0;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	border-radius: var(--lm-radius-l);
}

.lm-article-cta::after {
	content: "";
	position: absolute;
	right: -22%;
	top: 0;
	width: min(620px, 85%);
	transform: translateY(-58%);
	aspect-ratio: 5314 / 2038;
	background: url(assets/images/cinta-rosa.svg) center / 100% auto no-repeat;
	pointer-events: none;
}

.lm-article-cta > * {
	position: relative;
	z-index: 1;
	margin-block: 0;
}

.lm-article-cta > * + * {
	margin-top: 0.85rem;
}

.lm-article-cta__title {
	max-width: 30rem;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.875rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.lm-article-cta__info {
	gap: 0.25rem 1.5rem;
	font-size: 1rem;
}

.lm-article-cta__info > * {
	margin: 0;
}

.lm-article-cta .lm-btn-row {
	margin-top: 1.25rem;
	align-items: center;
}

/* Franja compacta «Com arribar-hi» */
.lm-cta-strip {
	gap: 1.25rem 2rem;
	align-items: center;
	padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--lm-radius-l);
}

.lm-cta-strip__text > * {
	margin: 0;
}

.lm-cta-strip__title {
	font-size: 1.5rem;
	font-weight: 600;
}


/* ==========================================================================
   15. FAQ
   ========================================================================== */

.lm-faq__grid {
	display: grid;
	gap: 2.5rem;
}

.lm-faq__grid > *,
.lm-faq__aside > * {
	margin-block: 0;
}

.lm-faq__aside > * + * {
	margin-top: 1.25rem;
}

.lm-faq__title {
	line-height: 0.95;
}

.lm-faq__help {
	padding: clamp(1.5rem, 3vw, 1.9rem);
	border-radius: var(--lm-radius-l);
}

.lm-faq__help > * {
	margin-block: 0;
}

.lm-faq__help > * + * {
	margin-top: 0.6rem;
}

.lm-faq__help .lm-btn-row {
	margin-top: 1rem;
}

.lm-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.lm-faq__list > * {
	margin: 0;
}

.lm-faq__item {
	border-radius: var(--lm-radius-m);
	background: var(--lm-blanc);
	transition: box-shadow var(--lm-ease);
}

.lm-faq__item:hover {
	box-shadow: var(--lm-shadow-soft);
}

.lm-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 48px;
	padding: 1.2rem 1.5rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.lm-faq__item summary::-webkit-details-marker {
	display: none;
}

.lm-faq__item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--lm-blau);
	-webkit-mask: url(assets/images/icon-plus.svg) center / contain no-repeat;
	mask: url(assets/images/icon-plus.svg) center / contain no-repeat;
	transition: transform var(--lm-ease);
}

.lm-faq__item[open] summary::after {
	transform: rotate(45deg);
}

.lm-faq__item > :not(summary) {
	margin: 0;
	padding: 0 1.5rem 1.4rem;
	color: var(--lm-tinta-suau);
	line-height: 1.6;
}

.lm-faq__item > .lm-placeholder {
	margin: 0 1.5rem 1.4rem;
	padding: 0.65rem 0.9rem;
}

.lm-article-faq > * {
	margin-block: 0;
}

.lm-article-faq > * + * {
	margin-top: 0.625rem;
}

.lm-article-faq .lm-faq__item {
	background: var(--lm-paper);
}

@media (min-width: 1024px) {
	.lm-faq__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		column-gap: clamp(3rem, 7vw, 7rem);
		align-items: start;
	}

	.lm-faq__aside {
		position: sticky;
		top: 2rem;
	}
}


/* ==========================================================================
   16. Final CTA
   ========================================================================== */

/* Tancament centrat. Les cintes de marca surten per la part inferior, de vora a vora,
   com una onada de bugada que fa de transició cap al peu. */
.lm-final {
	--lm-rib-w: 170vw;
	--lm-rib-h: calc(var(--lm-rib-w) / 2.607);
	--lm-rib-gap: 8vw;
	overflow: clip;
	padding-bottom: calc(var(--lm-rib-h) * 0.7 + var(--lm-rib-gap) + 2.5rem);
	text-align: center;
}

.lm-final::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(var(--lm-rib-h) * -0.3);
	width: var(--lm-rib-w);
	height: calc(var(--lm-rib-h) + var(--lm-rib-gap));
	transform: translateX(-50%);
	background:
		url(assets/images/cinta-groga.svg) center bottom / 100% auto no-repeat,
		url(assets/images/cinta-rosa.svg) center top / 100% auto no-repeat;
	pointer-events: none;
}

.lm-final__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lm-final__inner > * {
	margin-block: 0;
}

.lm-final__inner > * + * {
	margin-top: clamp(1rem, 2vw, 1.75rem);
}

.lm-claim--final {
	text-align: center;
}

.lm-final__steps {
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

.lm-final__steps > p {
	margin: 0;
	font-family: var(--wp--preset--font-family--righteous);
	font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	line-height: 1.1;
}

.lm-final__steps > p + p::before {
	content: "";
	display: inline-block;
	width: 0.55em;
	aspect-ratio: 1;
	margin-right: 1rem;
	vertical-align: 0.1em;
	background: var(--lm-rosa);
	-webkit-mask: url(assets/images/sparkle.svg) center / contain no-repeat;
	mask: url(assets/images/sparkle.svg) center / contain no-repeat;
}

.lm-final__bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-top: clamp(1.75rem, 3.5vw, 2.75rem) !important;
}

.lm-final__bar > *,
.lm-final__info > * {
	margin: 0;
}

.lm-final__info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.25rem;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.lm-final__info > p + p::before {
	content: "·";
	content: "·" / "";
	margin-right: 1.25rem;
}

.lm-final__bar .wp-block-buttons,
.lm-final__contact {
	justify-content: center;
	gap: 0.625rem;
}

@media (min-width: 782px) {
	.lm-final {
		--lm-rib-w: 112vw;
		--lm-rib-gap: 6vw;
	}

	.lm-final__bar {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1.25rem 2rem;
	}
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.lm-footer {
	padding-block: clamp(3rem, 5vw, 4rem) 2.25rem;
	font-size: 0.9375rem;
}

.lm-footer__grid {
	display: grid;
	gap: 2.25rem 1.5rem;
}

.lm-footer__grid > *,
.lm-footer__brand > *,
.lm-footer__col > * {
	margin-block: 0;
}

.lm-footer__brand > * + * {
	margin-top: 0.2rem;
}

.lm-footer__logo {
	margin: 0 0 1rem !important;
}

.lm-footer__logo img {
	display: block;
	width: clamp(170px, 14vw, 210px);
	height: auto;
}

.lm-footer p {
	color: #c9c9d1;
	line-height: 1.6;
}

.lm-footer__label {
	margin-bottom: 0.75rem !important;
	color: #9a9aa6;
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.lm-footer__links,
.lm-footer__legal {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-footer__links li + li {
	margin-top: 0.35rem;
}

.lm-footer__links a,
.lm-footer__legal a {
	display: inline-block;
	padding-block: 0.3rem;
	color: var(--lm-blanc);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.25em;
	transition: text-decoration-color var(--lm-ease), color var(--lm-ease);
}

.lm-footer__links a:hover,
.lm-footer__legal a:hover {
	color: var(--lm-groc);
	text-decoration-color: currentColor;
}

.lm-footer__contact {
	gap: 0;
}

.lm-footer__contact .wp-block-button__link {
	color: var(--lm-blanc);
	font-weight: 500;
}

.lm-footer__phone {
	margin-top: 0.4rem !important;
}

.lm-lang {
	display: inline-flex;
	gap: 0;
	padding: 4px;
	border: 1.5px solid #3a3a44;
	border-radius: var(--lm-radius-pill);
}

.lm-lang__item {
	margin: 0;
	padding: 0.4rem 0.9rem;
	border-radius: var(--lm-radius-pill);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.lm-lang__item abbr {
	text-decoration: none;
}

.lm-lang__item.is-current {
	background: var(--lm-groc);
	color: var(--lm-tinta);
}

.lm-footer .lm-lang__item.is-current {
	color: var(--lm-tinta);
}

.lm-footer__bottom {
	gap: 0.75rem 2rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
	padding-top: 1.4rem;
	border-top: 1px solid #2a2a33;
	font-size: 0.875rem;
}

.lm-footer__bottom > * {
	margin: 0;
}

.lm-footer__bottom p {
	color: #9a9aa6;
}

.lm-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
}

.lm-footer__legal a {
	color: #c9c9d1;
}

@media (min-width: 600px) {
	.lm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.lm-footer__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
	}

	.lm-footer__col--lang {
		justify-self: end;
	}
}


/* ==========================================================================
   18. Mobile bar (barra d'accions mòbil)
   ========================================================================== */

.lm-mobile-bar {
	position: fixed;
	left: 0.75rem;
	right: 0.75rem;
	bottom: max(0.75rem, env(safe-area-inset-bottom));
	z-index: 50;
	margin: 0 auto !important;
	max-width: 480px;
	padding: 6px;
	border-radius: var(--lm-radius-pill);
	background: var(--lm-blanc);
	box-shadow: var(--lm-shadow-float), 0 0 0 1px rgba(17, 17, 20, 0.06);
}

.lm-mobile-bar__buttons {
	gap: 6px;
}

.lm-mobile-bar__buttons > * {
	margin: 0;
}

.lm-mobile-bar__main {
	flex: 1 1 auto;
}

.lm-mobile-bar__main .wp-block-button__link {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	white-space: nowrap;
}

.lm-mobile-bar__main .wp-block-button__link::before {
	color: var(--lm-groc);
}

.lm-mobile-bar__alt {
	flex: 0 0 auto;
}

/* WhatsApp i Trucar: botons rodons amb icona. El text continua dins
   l'enllaç (només ocult visualment), així els lectors de pantalla
   anuncien «WhatsApp» i «Trucar». */
.lm-mobile-bar__alt .wp-block-button__link {
	width: 52px;
	min-height: 52px;
	height: 52px;
	padding: 0;
	gap: 0;
	border-radius: 50%;
	font-size: 0;
	line-height: 0;
}

.lm-mobile-bar__alt .wp-block-button__link::before {
	width: 22px;
	height: 22px;
}

/* Espai perquè la barra no tapi el final de la pàgina. */
body:has(.lm-mobile-bar) {
	--lm-mobile-bar-h: calc(76px + env(safe-area-inset-bottom));
	padding-bottom: var(--lm-mobile-bar-h);
}

@media (min-width: 1024px) {
	.lm-mobile-bar {
		display: none;
	}

	body:has(.lm-mobile-bar) {
		padding-bottom: 0;
	}
}


/* ==========================================================================
   19. Pàgines, cerca i 404
   ========================================================================== */

.lm-page-hero {
	padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.lm-page-hero .wp-block-post-title {
	margin: 0;
}

.lm-page-image {
	margin-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.lm-page-image img {
	border-radius: var(--lm-radius-l);
}

.lm-main--page .lm-post-content {
	padding-bottom: var(--lm-section-y);
}

/* Pàgines legals (Avís legal, Política de privacitat) */
.lm-page-hero .lm-page-hero__title {
	margin: 0;
}

.lm-legal .lm-post-content > h2 {
	margin-top: 2em;
	font-size: var(--wp--preset--font-size--large);
}

.lm-legal .lm-post-content > h2:first-child {
	margin-top: 0;
}

.lm-legal .lm-post-content > .lm-legal__dades {
	padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--lm-radius-m);
	background: var(--lm-paper);
	list-style: none;
}

.lm-legal .lm-legal__dades li + li {
	margin-top: 0.25em;
}

.lm-legal .lm-legal__dades strong {
	color: var(--lm-blau);
	font-weight: 600;
}

.lm-search .wp-block-search__inside-wrapper {
	gap: 0.5rem;
	padding: 0;
	border: 0;
}

.lm-search .wp-block-search__input {
	min-height: 52px;
	padding: 0.75rem 1.25rem;
	border: 1.5px solid var(--lm-linia);
	border-radius: var(--lm-radius-pill);
	background: var(--lm-blanc);
	color: var(--lm-tinta);
	font: inherit;
}

.lm-search .wp-block-search__button {
	margin: 0;
}

.lm-archive-hero .lm-search {
	max-width: 36rem;
}

.lm-404 {
	padding-block: clamp(4rem, 9vw, 7.5rem);
}

.lm-404 > * {
	margin-block: 0;
}

.lm-404 > * + * {
	margin-top: 1.25rem;
}

.lm-404__logo img {
	display: block;
	width: clamp(90px, 10vw, 130px);
	height: auto;
}

.lm-404__code {
	font-size: clamp(5rem, 3rem + 9vw, 11rem);
	line-height: 0.8;
}

.lm-404 .lm-search {
	max-width: 32rem;
}


/* ==========================================================================
   20. Animations
   Només transformacions i opacitat (barates). Sense JavaScript.
   ========================================================================== */

@keyframes lm-rise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes lm-pop {
	from {
		opacity: 0;
		transform: scale(0.92) rotate(-6deg);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	.lm-hero .lm-claim {
		animation: lm-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.lm-hero__media {
		animation: lm-pop 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.lm-hero__content {
		animation: lm-rise 0.8s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	/* Aparicions suaus en fer scroll (només navegadors compatibles). */
	@supports (animation-timeline: view()) {
		.lm-reveal {
			animation: lm-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 70%;
		}
	}
}


/* ==========================================================================
   21. Accessibility
   ========================================================================== */

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--lm-blau);
	outline-offset: 3px;
}

:where(.has-blau-background-color, .has-tinta-background-color, .has-negre-background-color, .lm-mobile-bar__main) :where(a, button, summary, input):focus-visible {
	outline-color: var(--lm-groc);
}

.wp-block-button__link:focus-visible {
	outline-offset: 4px;
}

::selection {
	background: var(--lm-groc);
	color: var(--lm-tinta);
}

/* Àncores: que el contingut no quedi enganxat a dalt en saltar-hi. */
[id] {
	scroll-margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.lm-icon-arrow .wp-block-button__link::after,
	.lm-icon-tel .wp-block-button__link::before,
	.lm-icon-wa .wp-block-button__link::before,
	.lm-icon-pin .wp-block-button__link::before {
		background-color: ButtonText;
	}

	.lm-mobile-bar {
		border: 1px solid CanvasText;
	}
}


/* ==========================================================================
   22. Editor
   A l'editor, la barra mòbil es mostra estàtica perquè es pugui editar,
   i no s'executen les animacions d'aparició.
   ========================================================================== */

.editor-styles-wrapper .lm-mobile-bar,
.block-editor-block-list__layout .lm-mobile-bar {
	position: static;
	display: block;
	margin: 1.5rem auto !important;
}

.editor-styles-wrapper .lm-reveal,
.editor-styles-wrapper .lm-hero .lm-claim,
.editor-styles-wrapper .lm-hero__media,
.editor-styles-wrapper .lm-hero__content {
	animation: none;
}

.editor-styles-wrapper .lm-placeholder {
	background: #fffde0;
}

/* A l'editor de plantilles, les seccions també van enganxades. */
.is-root-container > * + * {
	margin-block-start: 0;
}
