/* Mercè Armengol: CSS del projecte (carregat per inc/mm-site.php) */

/* Eslògan manuscrit ("Missé, la tendresa d'una dolça abraçada!").
   L'original feia servir Mistral, una font de sistema de Windows/Office: Caveat és l'equivalent web lliure. */
@font-face {
	font-family: 'Caveat';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/caveat-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Caveat';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/caveat-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
.mm-tagline {
	font-family: 'Caveat', cursive;
	font-weight: 500;
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
	line-height: 1.2;
	color: #87a3c7;
	margin-top: 0.5em;
}

/* Capçalera (estil Missé): barra superior amb xarxes, icones sense fons */
.site-top-header-wrap .header-social-wrap .social-button {
	background: transparent;
	border: 0;
	padding: 0.2em;
}

/* Logo segons la secció: el de Missé és un dibuix vertical, el dimensionem per alçada */
body.mm-misse .site-branding a.brand img {
	max-width: none;
	width: auto;
	height: 92px;
}
body.mm-misse .mobile-site-branding a.brand img {
	height: 60px;
}

/* Graella de productes: text centrat sota la foto, sense caixa, com la botiga original */
.woocommerce ul.products li.product.content-bg,
.woocommerce ul.products li.product .product-details.content-bg {
	background: transparent;
	box-shadow: none;
}
.woocommerce ul.products li.product .product-details {
	text-align: center;
	padding: 1em 0 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
	color: var(--global-palette1);
}
.woocommerce ul.products li.product .product-action-wrap {
	justify-content: center;
}
.woocommerce ul.products li.product .woocommerce-loop-image-link img {
	background: #fff;
}

/* ── Portada i seccions ──────────────────────────────── */
.mm-eyebrow {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6f8fb4;
	margin-bottom: 0.4em;
}
.mm-center-text {
	text-align: center;
}
.wp-block-buttons.mm-center {
	justify-content: center;
	margin-top: 1.5em;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--global-palette1);
	color: var(--global-palette1);
	background: transparent;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--global-palette1);
	color: #fff;
}
.mm-portrait img {
	box-shadow: 0 16px 40px rgba(40, 55, 75, 0.18);
}
/* Targetes Pintura / Projectes / Llibres */
.mm-card-img {
	margin-bottom: 1em;
	overflow: hidden;
}
.mm-card-img img {
	transition: transform 0.5s ease;
}
.mm-card-img a:hover img {
	transform: scale(1.03);
}
.entry-content h3 a {
	color: inherit;
	text-decoration: none;
}
.entry-content h3 a:hover {
	color: var(--global-palette1);
}
/* En mòbil, targetes apaïsades i retrat més petit: la portada no s'allarga tant */
@media (max-width: 767px) {
	.mm-card-img img {
		aspect-ratio: 4 / 3 !important;
		object-position: 50% 15%; /* conserva el títol de les portades */
	}
	.mm-portrait {
		max-width: 300px;
		margin-inline: auto;
	}
}
/* Cita final */
.mm-quote {
	font-family: 'Caveat', cursive;
	font-weight: 500;
	font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
	line-height: 1.2;
	color: #5d7fa8;
	text-align: center;
	max-width: 900px;
	margin: 0 auto 0.3em;
}
.mm-quote-author {
	text-align: center;
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette5);
}

/* ── Peu ─────────────────────────────────────────────── */
.site-footer {
	color: #4a4f56; /* més fosc que la paleta: contrast AA sobre el blau clar */
}
.site-footer a {
	color: #3d5d82;
}
.site-footer a:hover {
	color: var(--global-palette1);
}
/* Fila superior: avantatges */
.mm-trust-bar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	padding: 0.5rem 0;
}
.mm-trust-item {
	display: flex;
	gap: 0.9rem;
	align-items: center;
	text-align: left;
	font-size: 0.9rem;
	line-height: 1.45;
}
.mm-trust-item strong {
	display: block;
	font-weight: 600;
	color: var(--global-palette3);
	margin-bottom: 0.15em;
}
.mm-trust-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--global-palette8);
	color: #6f8fb4;
}
@media (max-width: 1024px) {
	.mm-trust-bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.mm-trust-bar {
		grid-template-columns: 1fr;
	}
}
/* Fila central: columnes */
.mm-footer-title {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--global-palette3);
	margin-bottom: 0.9em;
}
.site-footer .mm-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-footer .mm-footer-links li {
	margin: 0 0 0.45em;
}
.site-footer .mm-footer-links a {
	color: #4a4f56;
	text-decoration: none;
}
.site-footer .mm-footer-links a:hover {
	color: var(--global-palette1);
	text-decoration: underline;
}
.site-footer .mm-footer-logo {
	margin-bottom: 0.8em;
}
.site-footer .wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid currentColor;
	color: #3d5d82;
	background: transparent;
	padding: 0.5em 1.4em;
	border-radius: 2px;
}
.site-footer .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #3d5d82;
	color: #fff;
}
/* Fila inferior: línia fina de separació i text petit */
.site-bottom-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
}

/* Portades dels llibres: lleugera ombra com a l'original */
.mm-cover img {
	box-shadow: 0 10px 28px rgba(40, 55, 75, 0.16);
}

/* Imatges dins del text: centrades (com a l'original) i amb separació regular */
.entry-content .wp-block-image {
	margin-bottom: 1.5em;
}
.entry-content .wp-block-image:not(.alignleft):not(.alignright) img {
	display: block;
	margin-inline: auto;
}
