/* ==========================================================================
   Hospitalitat de Lourdes — estils del tema
   Valors del disseny (design/design_handoff_web_hospitalitat/README.md).
   Els tokens de color, tipografia i espai són a theme.json (--wp--preset--*).
   ========================================================================== */

:root {
	--h-az-900: var(--wp--preset--color--azulejo-900);
	--h-az-800: var(--wp--preset--color--azulejo-800);
	--h-az-700: var(--wp--preset--color--azulejo-700);
	--h-az-600: var(--wp--preset--color--azulejo-600);
	--h-az-300: var(--wp--preset--color--azulejo-300);
	--h-az-200: var(--wp--preset--color--azulejo-200);
	--h-az-100: var(--wp--preset--color--azulejo-100);
	--h-az-50: var(--wp--preset--color--azulejo-50);
	--h-ta-700: var(--wp--preset--color--taronja-700);
	--h-ta-600: var(--wp--preset--color--taronja-600);
	--h-ta-500: #E07A34; /* només decoratiu, mai text */
	--h-ta-200: var(--wp--preset--color--taronja-200);
	--h-ta-100: var(--wp--preset--color--taronja-100);
	--h-cal-900: var(--wp--preset--color--cal-900);
	--h-cal-700: var(--wp--preset--color--cal-700);
	--h-cal-300: var(--wp--preset--color--cal-300);
	--h-cal-200: var(--wp--preset--color--cal-200);
	--h-cal-100: var(--wp--preset--color--cal-100);
	--h-azahar: var(--wp--preset--color--azahar);
	--h-blanc: #fff;
	--h-line-soft: var(--h-az-200);
	--h-line-hair: var(--h-cal-300);
	--h-line-inv: rgba(253, 251, 246, .32);
	--h-r-s: 4px;
	--h-r-m: 8px;
	--h-r-media: 10px;
	--h-r-l: 14px;
	--h-r-pill: 999px;
	--h-sh-1: var(--wp--preset--shadow--1);
	--h-sh-2: var(--wp--preset--shadow--2);
	--h-sh-3: var(--wp--preset--shadow--3);
	--h-sh-4: var(--wp--preset--shadow--4);
	--h-focus: 0 0 0 3px rgba(71, 121, 143, .30);
	--h-ease: cubic-bezier(.32, .72, .35, 1);
	--h-t: color 160ms var(--h-ease), background-color 160ms var(--h-ease), border-color 160ms var(--h-ease), box-shadow 160ms var(--h-ease), transform 160ms var(--h-ease);
	--h-display: var(--wp--preset--font-family--display);
	--h-accent: var(--wp--preset--font-family--accent);
	--h-body: var(--wp--preset--font-family--body);
	--h-ok: #6F9A7E; --h-ok-bg: #E7F0E9; --h-ok-tx: #3E6650;
	--h-warn: #C4A469; --h-warn-bg: #F6EEDE; --h-warn-tx: #7A5C1E;
	--h-err: #A65F5A; --h-err-bg: #F9ECEA;
	--h-info: #47798F; --h-info-bg: #E1EBF0;
	--h-header-top: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
::selection { background: var(--h-az-200); color: var(--h-az-900); }
img { max-width: 100%; height: auto; }

a { text-decoration-color: var(--h-az-300); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: var(--h-t); }
a:hover { text-decoration-color: var(--h-az-600); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--h-focus); border-radius: var(--h-r-s); }

.wp-site-blocks > * + * { margin-block-start: 0; }
main#contingut { display: block; }
main#contingut:focus { outline: none; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

.hosp-skip { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--h-az-900); color: var(--h-azahar); font-weight: 700; border-radius: var(--h-r-pill); text-decoration: none; }
.hosp-skip:focus { top: calc(var(--h-header-top) + 8px); color: var(--h-azahar); }

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

/* ---------- Botons ---------- */
.wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; text-decoration: none; white-space: normal; text-align: center;
	transition: var(--h-t);
}
.wp-block-button__link:active { transform: scale(.982); background-color: var(--h-az-800); border-color: var(--h-az-800); }
.wp-block-button.is-style-secundari .wp-block-button__link {
	background: transparent; color: var(--h-az-700); border-color: var(--h-az-300);
}
.wp-block-button.is-style-secundari .wp-block-button__link:hover { background: var(--h-az-50); border-color: var(--h-az-600); color: var(--h-az-700); }
.wp-block-button.is-style-secundari .wp-block-button__link:active { background: var(--h-az-100); color: var(--h-az-800); }
.wp-block-button.is-style-fantasma .wp-block-button__link { background: transparent; color: var(--h-az-700); border-color: transparent; }
.wp-block-button.is-style-fantasma .wp-block-button__link:hover { background: var(--h-az-50); }
.wp-block-buttons.is-style-grans .wp-block-button__link { min-height: 56px; padding-inline: 40px; font-size: 18px; }
@media (max-width: 560px) { .wp-block-buttons.is-style-grans .wp-block-button__link { padding-inline: 24px; } }
.wp-block-button.is-style-secundari.has-blanc-background-color .wp-block-button__link { background: var(--h-blanc); }
.wp-block-button__width-100 .wp-block-button__link { width: 100%; }
.wp-block-button__link[aria-disabled="true"] { opacity: .42; cursor: not-allowed; pointer-events: none; }

/* ---------- Text ---------- */
.is-style-antetitol { font-family: var(--h-accent); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; }
.is-style-antetitol:not(.has-text-color) { color: var(--h-az-700); }
.is-style-entradeta { font-size: 20px; line-height: 1.6; }
.is-style-meta { font-size: 15px; color: var(--h-cal-700); }
.is-style-etiqueta { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--h-az-700); line-height: 1.4; }
.is-style-xifra { font-family: var(--h-display); font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; color: var(--h-az-700); line-height: 1; letter-spacing: 0; }
.is-style-telefon-gran { font-family: var(--h-display); font-size: clamp(32px, 3.4vw, 40px); font-weight: 600; line-height: 1.2; }
.is-style-telefon-gran a { text-decoration: none; display: inline-flex; align-items: center; gap: 14px; }
.is-style-enllac-fort { font-weight: 700; }
p.is-style-enllac-fort a { display: inline-flex; align-items: center; gap: 6px; }
.has-azahar-color a, .is-style-panell-fosc a, .is-style-celosia a, .hosp-footer a { color: var(--h-azahar); text-decoration-color: rgba(253, 251, 246, .5); }
.has-azahar-color a:hover, .is-style-panell-fosc a:hover, .is-style-celosia a:hover { color: var(--h-azahar); text-decoration-color: var(--h-azahar); }

/* Distintius d'estat (píndola, sempre amb text) */
.is-style-badge, .is-style-badge-neutre, .is-style-badge-obert, .is-style-badge-avis, .hosp-badge {
	display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0;
	padding: 4px 12px; border-radius: var(--h-r-pill);
	font-family: var(--h-body); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5;
	background: var(--h-info-bg); color: var(--h-az-800);
}
.is-style-badge-neutre, .hosp-badge--neutre { background: var(--h-cal-100); color: var(--h-cal-700); }
.is-style-badge-obert, .hosp-badge--obert { background: var(--h-ok-bg); color: var(--h-ok-tx); }
.is-style-badge-avis, .hosp-badge--avis { background: var(--h-warn-bg); color: var(--h-warn-tx); }

/* Títols de targeta i de bloc */
h2.is-style-titol-targeta, h3.is-style-titol-targeta, .is-style-titol-targeta { font-family: var(--h-display); font-weight: 600; font-size: clamp(26px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }
.is-style-titol-bloc { font-family: var(--h-body) !important; font-weight: 700 !important; font-size: 20px !important; letter-spacing: 0 !important; line-height: 1.3 !important; }

/* ---------- Seccions ---------- */
.hosp-seccio { padding-block: var(--wp--preset--spacing--seccio); }
.is-style-celosia { background-color: var(--h-az-800); background-image: repeating-linear-gradient(60deg, rgba(253,251,246,.07) 0 1px, transparent 1px 22px), repeating-linear-gradient(-60deg, rgba(253,251,246,.07) 0 1px, transparent 1px 22px); color: var(--h-azahar); }
.is-style-celosia :where(h1, h2, h3) { color: var(--h-azahar); }

/* ---------- Targetes i panells ---------- */
.is-style-targeta, .is-style-targeta-linia, .is-style-targeta-enllac, .is-style-panell-taronja, .is-style-panell-fosc, .is-style-panell-gris, .is-style-document {
	border-radius: var(--h-r-l);
}
.is-style-targeta { background: var(--h-blanc); border: 1px solid var(--h-line-soft); box-shadow: var(--h-sh-2); padding: 28px; }
.is-style-targeta-linia { background: var(--h-blanc); border: 1px solid var(--h-line-hair); padding: 24px; }
.is-style-panell-taronja { background: var(--h-ta-100); border: 1px solid var(--h-ta-200); padding: 28px 24px; }
.is-style-panell-fosc { background: var(--h-az-800); color: var(--h-azahar); padding: 28px; }
.is-style-panell-fosc :where(h1, h2, h3, h4) { color: var(--h-azahar); }
.is-style-panell-gris { background: var(--h-cal-100); padding: 32px; }

/* Targeta que és un enllaç sencer (perfils): l'enllaç del peu cobreix tota la targeta */
.is-style-targeta-enllac {
	position: relative; background: var(--h-blanc); border: 1px solid var(--h-line-soft); box-shadow: var(--h-sh-2);
	padding: 28px 24px; transition: var(--h-t);
}
.is-style-targeta-enllac:hover { transform: translateY(-2px); box-shadow: var(--h-sh-3); }
.is-style-targeta-enllac > :last-child { margin-top: auto !important; }
.is-style-targeta-enllac > :last-child a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.is-style-targeta-enllac > :last-child a::after { content: ""; position: absolute; inset: 0; border-radius: var(--h-r-l); }
.is-style-targeta-enllac:focus-within { box-shadow: var(--h-focus), var(--h-sh-3); }
.is-style-targeta-enllac > :last-child a:focus-visible { box-shadow: none; }
.is-style-targeta-enllac :where(h2, h3) { font-family: var(--h-display); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--h-az-900); }

/* Fletxa després d'un enllaç (Què he de fer →) */
.hosp-fletxa::after, .is-style-targeta-enllac > :last-child a::before {
	content: ""; width: 18px; height: 18px; background: currentColor; order: 2;
	-webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat; mask: url(../icons/arrow-right.svg) center / contain no-repeat;
}
.is-style-targeta-enllac > :last-child a::before { position: static; }

/* Opcions sobre fons fosc (Col·labora a la portada) */
.is-style-opcio-fosca {
	position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--h-r-l);
	background: rgba(253, 251, 246, .08); border: 1px solid var(--h-line-inv); color: var(--h-azahar); transition: var(--h-t);
}
.is-style-opcio-fosca:hover { background: rgba(253, 251, 246, .14); }
.is-style-opcio-fosca > .hosp-icona:last-child { margin-left: auto; }
.is-style-opcio-fosca p { margin: 0; font-size: 16px; opacity: .92; }
.is-style-opcio-fosca p:first-child, .is-style-opcio-fosca strong { font-size: 19px; opacity: 1; font-weight: 700; }
.is-style-opcio-fosca a { text-decoration: none; color: var(--h-azahar); }
.is-style-opcio-fosca a::after { content: ""; position: absolute; inset: 0; border-radius: var(--h-r-l); }
.is-style-opcio-fosca:focus-within { box-shadow: 0 0 0 3px rgba(253, 251, 246, .5); }
.is-style-opcio-fosca a:focus-visible { box-shadow: none; }

/* ---------- Avisos (Toast) ---------- */
.is-style-avis-exit, .is-style-avis-avis, .is-style-avis-info, .is-style-avis-error {
	position: relative; border-radius: var(--h-r-m); padding: 16px 20px 16px 39px; box-shadow: var(--h-sh-3);
	background: var(--h-info-bg); --barra: var(--h-info);
}
.is-style-avis-exit { background: var(--h-ok-bg); --barra: var(--h-ok); }
.is-style-avis-avis { background: var(--h-warn-bg); --barra: var(--h-warn); }
.is-style-avis-error { background: var(--h-err-bg); --barra: var(--h-err); }
.is-style-avis-exit::before, .is-style-avis-avis::before, .is-style-avis-info::before, .is-style-avis-error::before {
	content: ""; position: absolute; left: 20px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--barra);
}
[class*="is-style-avis-"] > * { margin-block: 0 !important; }
[class*="is-style-avis-"] > * + * { margin-top: 2px !important; }
:where(.is-style-avis-exit, .is-style-avis-avis, .is-style-avis-info, .is-style-avis-error) > :first-child { font-weight: 600; color: var(--h-az-900); font-size: 18px; }
:where(.is-style-avis-exit, .is-style-avis-avis, .is-style-avis-info, .is-style-avis-error) > :not(:first-child) { font-size: 16px; line-height: 1.5; }

/* ---------- Icones ---------- */
.hosp-ic { display: block; flex: 0 0 auto; }
.hosp-icona { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 0; }
.hosp-icona--cercle { width: 56px; height: 56px; border-radius: var(--h-r-pill); background: var(--h-ta-100); color: var(--h-ta-700); }
.hosp-icona--caixa { width: 52px; height: 52px; border-radius: var(--h-r-media); background: var(--h-az-50); color: var(--h-az-700); }
.hosp-icona--taronja { color: var(--h-ta-600); }
.hosp-icona--blava { color: var(--h-az-600); }

/* ---------- Descàrrega de document ---------- */
.is-style-document {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 20px;
	background: var(--h-blanc); border: 1px solid var(--h-line-soft);
}
.is-style-document > * { margin: 0 !important; }
.is-style-document > .wp-block-group { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.is-style-document > .wp-block-group > :first-child { font-size: 19px; font-weight: 700; color: var(--h-az-900); line-height: 1.35; }
.is-style-document > .wp-block-group > :last-child:not(:first-child) { font-size: 16px; color: var(--h-cal-700); }

/* ---------- Xifres de la portada (<dl> visual) ---------- */
.is-style-xifres {
	display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px !important;
	background: var(--h-line-hair); border: 1px solid var(--h-line-hair); border-radius: var(--h-r-l); overflow: hidden;
}
.is-style-xifres > * { background: var(--h-blanc); padding: 24px; margin: 0 !important; }
.is-style-xifres > * > * { margin: 0; }
.is-style-xifres > * > * + * { margin-top: 8px; font-size: 17px; }

/* ---------- Files clau · valor (junta, preus, dades clau) ---------- */
.wp-block-table.is-style-files table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-files :where(td, th) { border: 0; border-bottom: 1px solid var(--h-line-hair); padding: 14px 0; vertical-align: top; }
.wp-block-table.is-style-files td:first-child, .wp-block-table.is-style-files th:first-child { color: var(--h-cal-700); font-weight: 400; text-align: left; padding-right: 16px; }
.wp-block-table.is-style-files td:last-child { font-weight: 700; color: var(--h-az-900); text-align: right; }
.wp-block-table.is-style-files thead { display: none; }
.wp-block-table.is-style-files figcaption { text-align: left; }
.is-style-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--h-line-hair); }
.is-style-fila > * { margin: 0 !important; }
.is-style-fila > :first-child { color: var(--h-cal-700); }
.is-style-fila > :last-child { font-weight: 700; color: var(--h-az-900); }

/* ---------- Llistes ---------- */
:where(.wp-block-list[class*="is-style-"]) { list-style: none; padding: 0; margin-left: 0; }

/* Checks (perfils: taronja; què inclou: verd) */
.is-style-checks, .is-style-checks-verds { display: flex; flex-direction: column; gap: 12px; }
.is-style-checks > li, .is-style-checks-verds > li { position: relative; padding-left: 32px; }
.is-style-checks > li::before, .is-style-checks-verds > li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; background: var(--h-ta-600);
	-webkit-mask: url(../icons/check.svg) center / contain no-repeat; mask: url(../icons/check.svg) center / contain no-repeat;
}
.is-style-checks-verds > li::before { background: var(--h-ok); }

/* Passos numerats (com inscriure's): <ol>, número en cercle taronja i icona a la dreta */
ol.is-style-passos { counter-reset: pas; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
ol.is-style-passos > li {
	counter-increment: pas; position: relative; display: block;
	padding: 104px 24px 28px; background: var(--h-blanc); border: 1px solid var(--h-line-hair); border-radius: var(--h-r-l); box-shadow: var(--h-sh-1);
	font-size: 17px; margin: 0;
}
ol.is-style-passos > li::before {
	content: counter(pas); position: absolute; left: 24px; top: 28px; width: 60px; height: 60px; border-radius: var(--h-r-pill);
	background: var(--h-ta-600); color: #fff; font-family: var(--h-display); font-size: 32px; font-weight: 600;
	display: flex; align-items: center; justify-content: center; line-height: 1;
}
ol.is-style-passos > li::after {
	content: ""; position: absolute; right: 24px; top: 40px; width: 36px; height: 36px; background: var(--h-az-600);
	-webkit-mask: var(--pas-ic, url(../icons/file-down.svg)) center / contain no-repeat; mask: var(--pas-ic, url(../icons/file-down.svg)) center / contain no-repeat;
}
ol.is-style-passos > li:nth-child(2) { --pas-ic: url(../icons/pen-line.svg); }
ol.is-style-passos > li:nth-child(3) { --pas-ic: url(../icons/printer.svg); }
ol.is-style-passos > li:nth-child(4) { --pas-ic: url(../icons/map-pin.svg); }
ol.is-style-passos > li > strong:first-child { display: block; font-size: 21px; font-weight: 700; color: var(--h-az-900); line-height: 1.3; margin-bottom: 14px; }
ol.is-style-passos > li > br { display: none; }
ol.is-style-passos > li > br { display: none; }

/* Passos mini (bloc lateral) */
ol.is-style-passos-mini { counter-reset: pas; display: flex; flex-direction: column; gap: 10px; }
ol.is-style-passos-mini > li { counter-increment: pas; display: flex; gap: 12px; align-items: center; font-size: 17px; margin: 0; }
ol.is-style-passos-mini > li::before {
	content: counter(pas); flex: 0 0 32px; height: 32px; border-radius: var(--h-r-pill); background: var(--h-ta-600); color: #fff;
	font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* Llista numerada amb cercles blaus (santuari) */
ol.is-style-numerada { counter-reset: n; }
ol.is-style-numerada > li { counter-increment: n; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--h-line-hair); margin: 0; font-size: 17px; }
ol.is-style-numerada > li::before {
	content: counter(n); position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: var(--h-r-pill); background: var(--h-az-700); color: var(--h-azahar);
	font-weight: 700; display: flex; align-items: center; justify-content: center;
}
ol.is-style-numerada > li strong { color: var(--h-az-900); font-size: 18px; }

/* Programa dia a dia: cursiva = dia, negreta = títol de la jornada */
ol.is-style-programa { counter-reset: dia; display: flex; flex-direction: column; }
ol.is-style-programa > li {
	counter-increment: dia; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 4px;
	padding: 20px 0; border-top: 1px solid var(--h-line-hair); margin: 0;
}
ol.is-style-programa > li::before {
	content: counter(dia); grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: var(--h-r-pill); border: 2px solid var(--h-az-600);
	color: var(--h-az-700); display: flex; align-items: center; justify-content: center; font-family: var(--h-display); font-size: 24px; font-weight: 600;
}
ol.is-style-programa > li > em:first-child { font-style: normal; font-size: 15px; font-weight: 700; color: var(--h-cal-700); text-transform: uppercase; letter-spacing: .08em; }
ol.is-style-programa > li > strong { font-size: 20px; font-weight: 700; color: var(--h-az-900); line-height: 1.3; }
ol.is-style-programa > li > br { display: none; }

/* Línia de temps (història) */
.is-style-historia { border-left: 2px solid var(--h-az-300); margin-left: 7px !important; }
.is-style-historia > li { position: relative; padding: 0 0 28px 28px; margin: 0; }
.is-style-historia > li::before { content: ""; position: absolute; left: -8px; top: 12px; width: 14px; height: 14px; border-radius: var(--h-r-pill); background: var(--h-ta-600); }
.is-style-historia > li > strong:first-child { display: block; font-family: var(--h-display); font-size: 30px; font-weight: 600; color: var(--h-az-700); line-height: 1.4; }
.is-style-historia > li > br:nth-child(2) { display: none; }

/* ---------- Imatges ---------- */
.wp-block-image.is-style-arc img { border-radius: 999px 999px 2px 2px; box-shadow: var(--h-sh-3); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.is-style-arc-suau img { border-radius: 999px 999px 8px 8px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.is-style-arrodonida img { border-radius: var(--h-r-l); }
.wp-block-image.is-style-arc, .wp-block-image.is-style-arc-suau { max-width: 460px; margin-inline: auto; }

/* ---------- Preguntes freqüents (Details natiu) ---------- */
.is-style-faq { border-top: 1px solid var(--h-line-soft); }
.is-style-faq > * { margin: 0 !important; }
.wp-block-details { border-bottom: 1px solid var(--h-line-soft); }
.wp-block-details > summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0;
	font-size: 19px; font-weight: 700; color: var(--h-az-900); cursor: pointer; list-style: none; line-height: 1.35;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
	content: ""; flex: 0 0 22px; height: 22px; background: currentColor; transition: transform 160ms var(--h-ease);
	-webkit-mask: url(../icons/chevron-down.svg) center / contain no-repeat; mask: url(../icons/chevron-down.svg) center / contain no-repeat;
}
.wp-block-details[open] > summary::after { transform: rotate(180deg); }
.wp-block-details > :not(summary) { max-width: 62ch; margin-top: 0; }
.wp-block-details > :last-child:not(summary) { padding-bottom: 20px; }

/* ---------- Gruta en directe ---------- */
.is-style-directe { position: relative; border-radius: var(--h-r-l); overflow: hidden; background: var(--h-az-900); aspect-ratio: 16 / 9; }
.is-style-directe > * { margin: 0 !important; }
.is-style-directe .wp-block-image, .is-style-directe .wp-block-image img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.is-style-directe .hosp-directe__etiqueta {
	position: absolute; left: 16px; top: 16px; background: #B3261E; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em;
	padding: 6px 12px; border-radius: var(--h-r-pill); line-height: 1.3;
}
.is-style-directe .hosp-icona { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: var(--h-r-pill); background: var(--h-azahar); color: var(--h-az-800); }
.is-style-directe .hosp-directe__enllac a { position: absolute; inset: 0; font-size: 0; color: transparent; }
.is-style-directe:focus-within { box-shadow: var(--h-focus); }

/* ---------- Cita ---------- */
.wp-block-quote > p { margin: 0; }
.wp-block-quote cite { display: block; margin-top: 8px; font-family: var(--h-body); font-size: 16px; color: var(--h-cal-700); font-style: normal; }

/* ---------- Pestanyes (enllaços: perfils i anys de galeria) ---------- */
.hosp-tabs { overflow-x: auto; }
.hosp-tabs ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--h-line-hair); min-width: max-content; }
.hosp-tabs a {
	display: flex; align-items: center; min-height: 48px; padding-bottom: 10px; margin-bottom: -1px; text-decoration: none;
	font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--h-cal-700); border-bottom: 2px solid transparent;
}
.hosp-tabs a[aria-current] { color: var(--h-az-800); border-bottom-color: var(--h-az-600); }
.hosp-tabs a:hover { color: var(--h-az-800); }

/* ---------- Formularis (camps base; formularis concrets a la fase 5) ---------- */
.hosp-form { display: flex; flex-direction: column; gap: 18px; }
.hosp-field { display: flex; flex-direction: column; gap: 8px; }
.hosp-field label { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--h-cal-700); }
.hosp-field .hosp-req { color: #A65F5A; }
.hosp-field :where(input, select, textarea) {
	width: 100%; font: 400 18px/1.5 var(--h-body); color: var(--h-cal-900); background: var(--h-blanc);
	min-height: 48px; padding: 0 16px; border-radius: var(--h-r-s); border: 1px solid var(--h-line-hair); transition: var(--h-t);
}
.hosp-field textarea { padding: 12px 16px; resize: vertical; }
.hosp-field :where(input, select, textarea):focus { border-color: var(--h-az-600); box-shadow: var(--h-focus); outline: none; }
.hosp-field .hosp-hint { font-size: 15px; color: var(--h-cal-700); }
.hosp-field .hosp-error { font-size: 15px; color: #A65F5A; }
.hosp-field [aria-invalid="true"] { border-color: #A65F5A; }

/* ==========================================================================
   Capçalera
   ========================================================================== */
.hosp-header-part { position: sticky; top: var(--h-header-top); z-index: 40; }
.hosp-header {
	background: rgba(253, 251, 246, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--h-line-hair);
}
.hosp-header__in { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.hosp-brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; color: var(--h-az-900); text-decoration: none; }
.hosp-brand:hover { color: var(--h-az-900); }
.hosp-brand__logo { width: 46px; height: auto; border-radius: 6px; flex: 0 0 auto; }
.hosp-brand__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.hosp-brand__nom { font-family: var(--h-display); font-weight: 600; font-size: 21px; }
.hosp-brand__sub { font-size: 13px; color: var(--h-cal-700); letter-spacing: .02em; white-space: nowrap; margin-top: 2px; }

.hosp-nav { display: none; }
.hosp-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hosp-nav a {
	display: flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 17px; font-weight: 600; white-space: nowrap;
	color: var(--h-az-700); text-decoration: none; border-bottom: 3px solid transparent;
}
.hosp-nav a:hover { color: var(--h-az-900); }
.hosp-nav a[aria-current] { color: var(--h-az-900); border-bottom-color: var(--h-ta-500); }

.hosp-lang { display: flex; flex: 0 0 auto; border: 1px solid var(--h-az-300); border-radius: var(--h-r-pill); padding: 3px; }
.hosp-lang a {
	display: flex; align-items: center; justify-content: center; min-height: 42px; min-width: 44px; padding: 0 10px;
	border-radius: var(--h-r-pill); font: 600 15px var(--h-body); color: var(--h-az-800); text-decoration: none;
}
.hosp-lang a:hover { background: var(--h-az-50); }
.hosp-lang a[aria-current] { background: var(--h-az-700); color: var(--h-azahar); }

.hosp-menu-btn {
	display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; flex: 0 0 auto; cursor: pointer;
	border: 1px solid var(--h-az-600); border-radius: var(--h-r-pill); background: var(--h-az-600); color: var(--h-azahar);
	font: 600 16px var(--h-body); transition: var(--h-t);
}
.hosp-menu-btn:hover { background: var(--h-az-700); border-color: var(--h-az-700); }
.hosp-menu-btn .hosp-menu-btn__tanca, .hosp-menu-btn[aria-expanded="true"] .hosp-menu-btn__obre { display: none; }
.hosp-menu-btn[aria-expanded="true"] .hosp-menu-btn__tanca { display: block; }

.hosp-panel { border-top: 1px solid var(--h-line-hair); background: var(--h-azahar); padding: 8px 20px 24px; max-height: calc(100dvh - 80px - var(--h-header-top)); overflow-y: auto; }
.hosp-panel[hidden] { display: none; }
.hosp-panel ul { margin: 0; padding: 0; list-style: none; }
.hosp-panel__principal a {
	display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-size: 20px; font-weight: 600;
	color: var(--h-az-900); text-decoration: none; border-bottom: 1px solid var(--h-line-hair);
}
.hosp-panel__principal a[aria-current] { color: var(--h-az-700); }
.hosp-panel__secundari { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; font-size: 17px; }
.hosp-panel__secundari a { display: inline-flex; min-height: 44px; align-items: center; }
.hosp-panel__tel { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; text-decoration: none; min-height: 48px; }

@media (min-width: 1180px) {
	.hosp-nav { display: block; }
	.hosp-menu-btn, .hosp-panel { display: none !important; }
	.hosp-brand { flex: 0 1 auto; margin-right: auto; }
}
@media (max-width: 560px) {
	.hosp-header__in { padding: 10px 14px; gap: 8px; }
	.hosp-brand__logo { width: 38px; }
	.hosp-brand__nom { font-size: 18px; }
	.hosp-brand__sub { display: none; }
	.hosp-menu-btn { padding: 0 14px; }
	.hosp-panel { padding-inline: 14px; }
}

/* ==========================================================================
   Peu
   ========================================================================== */
.hosp-footer { background: var(--h-az-900); color: var(--h-azahar); padding: 56px 20px 32px; }
.hosp-footer__in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.hosp-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.hosp-footer__marca { display: flex; flex-direction: column; gap: 14px; }
.hosp-footer__marca img { width: 84px; border-radius: 8px; }
.hosp-footer__marca p { font-size: 16px; margin: 0; }
.hosp-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 17px; align-items: flex-start; }
.hosp-footer__col p { margin: 0; }
.hosp-footer__tit { font-family: var(--h-body); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--h-azahar); margin: 0 0 4px; line-height: 1.4; }
.hosp-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.hosp-footer nav a, .hosp-footer__xarxes a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hosp-footer nav a:hover, .hosp-footer__xarxes a:hover { text-decoration: underline; }
.hosp-footer__xarxes a { gap: 12px; }
.hosp-footer__legal { border-top: 1px solid var(--h-line-inv); padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; opacity: .92; }
.hosp-footer__legal a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.hosp-footer__legal a:hover { text-decoration: underline; }
.hosp-footer__autor { margin-left: auto; }
.hosp-footer__autor a { text-decoration: underline; }

/* ==========================================================================
   Llistats (notícies) i article
   ========================================================================== */
.hosp-noticies .wp-block-post-template { gap: 32px 24px; }
.hosp-noticia { display: flex; flex-direction: column; gap: 12px; position: relative; }
.hosp-noticia > * { margin: 0 !important; }
.hosp-noticia .wp-block-post-featured-image { border-radius: var(--h-r-l); overflow: hidden; background: var(--h-cal-200); aspect-ratio: 3 / 2; }
.hosp-noticia .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.hosp-noticia .wp-block-post-title { font-family: var(--h-display); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.hosp-noticia .wp-block-post-title a { color: var(--h-az-900); text-decoration: none; }
.hosp-noticia .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hosp-noticia:hover .wp-block-post-title a { text-decoration: underline; text-decoration-color: var(--h-az-600); }
.hosp-noticia:focus-within { box-shadow: var(--h-focus); border-radius: var(--h-r-l); }
.hosp-noticia .wp-block-post-title a:focus-visible { box-shadow: none; }
.hosp-noticia .wp-block-post-excerpt { font-size: 17px; }
.hosp-noticia .wp-block-post-excerpt__more-link { display: none; }
.hosp-noticia__meta { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 15px; color: var(--h-cal-700); }
.hosp-noticia__meta > * { margin: 0 !important; }
.hosp-noticia__meta .wp-block-post-terms a { color: inherit; text-decoration: none; position: relative; z-index: 1; }

.hosp-article .wp-block-post-featured-image img { border-radius: var(--h-r-l); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hosp-article .wp-block-post-excerpt { font-size: 21px; }
.hosp-article .wp-block-post-excerpt__more-link { display: none; }
.hosp-tornar a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }

.wp-block-query-pagination { gap: 8px; font-weight: 600; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: var(--h-r-pill); border: 1px solid var(--h-az-300); text-decoration: none; }
.wp-block-query-pagination .page-numbers.current { background: var(--h-az-700); color: var(--h-azahar); border-color: var(--h-az-700); }

/* Galeria */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--h-r-media); }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--h-cal-700); font-size: 15px; padding: 6px 0 0; text-align: left; text-shadow: none; max-height: none; }

/* Taules normals (contingut) */
.wp-block-table:not(.is-style-files) :where(td, th) { border-color: var(--h-line-hair); padding: 10px 12px; }

/* Editor: el bloc de capçalera no ha de ser enganxós dins de l'editor */
.editor-styles-wrapper .hosp-header-part { position: static; }

/* ==========================================================================
   Peces dels patrons
   ========================================================================== */
.hosp-34ch { max-width: 34ch; }
.hosp-42ch { max-width: 42ch; }
.hosp-62ch { max-width: 62ch; }
.hosp-seccio--capcalera { padding-top: var(--wp--preset--spacing--capcalera); }
.hosp-seccio--hero { padding-block: clamp(32px, 6vw, 80px); }
.wp-block-columns.hosp-hero { gap: clamp(32px, 5vw, 72px); }
.hosp-encap-centre { align-items: center !important; text-align: center; max-width: 720px; margin-inline: auto; }
.hosp-encap-centre .is-style-entradeta { max-width: 46ch; }
.hosp-frase { font-family: var(--h-display); font-weight: 500; line-height: 1.3; }
.hosp-targeta-peu > .wp-block-buttons:last-child, .hosp-targeta-peu > p:last-child { margin-top: auto !important; padding-top: 4px; }

/* Bloc de data (activitats) */
.hosp-data { flex: 0 0 72px; height: 80px; border-radius: var(--h-r-media); background: var(--h-az-700); color: var(--h-azahar); align-items: center !important; justify-content: center !important; line-height: 1; }
.hosp-data > * { margin: 0 !important; }
.hosp-data__dia { font-family: var(--h-display); font-size: 36px; font-weight: 600; line-height: 1; }
.hosp-data__mes { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1; }
.hosp-esdeveniment { padding: 22px; }
.hosp-esdeveniment__tit { font-family: var(--h-body) !important; font-size: 19px !important; font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1.3 !important; }

/* IBAN */
.hosp-iban { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: var(--h-az-900); letter-spacing: .04em; padding: 10px 14px; background: var(--h-az-50); border-radius: var(--h-r-m); width: fit-content; max-width: 100%; overflow-wrap: anywhere; }

/* Les columnes del tema es parteixen a 782 px (com el disseny: graelles auto-fit de 420–440 px) */
.wp-block-columns { gap: 40px 48px; }
a[href^="tel:"] { white-space: nowrap; }

/* Capçalera de pàgina seguida d'una secció sense fons: 32 px entre totes dues, com al disseny */
.hosp-seccio--capcalera:has(+ .hosp-seccio:not(.has-background)) { padding-bottom: 0; }
.hosp-seccio--capcalera + .hosp-seccio:not(.has-background) { padding-top: 32px; }

/* WP 6.9 posa container-type:inline-size a les graelles; dins d'una pila (flex vertical) Chrome en calcula
   l'alçada amb amplada zero i les targetes surten altíssimes. No fem servir consultes de contenidor. */
.wp-block-group.is-layout-grid, .wp-block-post-template.is-layout-grid { container-type: normal; }

/* ==========================================================================
   Blocs dinàmics (fase 3)
   ========================================================================== */
.hosp-graella { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hosp-graella--240 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.hosp-graella--260 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.hosp-graella--320 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.hosp-graella > * { margin: 0; }
.hosp-ssr { pointer-events: none; }

/* Hero de la portada */
.hosp-propera { padding-inline: var(--wp--style--root--padding-right, 20px); }
.hosp-propera__in { max-width: 1200px; margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hosp-propera__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hosp-propera__text > * { margin: 0; }
.hosp-propera__titol { font-size: var(--wp--preset--font-size--display-xl); line-height: 1.04; }
.hosp-propera__estat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; color: var(--h-cal-700); }
.hosp-propera__text .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hosp-propera__foto { margin: 0 auto; width: 100%; max-width: 460px; }
.hosp-propera__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 2px 2px; box-shadow: var(--h-sh-3); display: block; }

/* Filtres (Tag) */
.hosp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hosp-tag { font: 600 16px var(--h-body); min-height: 44px; padding: 6px 18px; border-radius: var(--h-r-pill); border: 1px solid var(--h-az-200); background: transparent; color: var(--h-az-700); cursor: pointer; transition: var(--h-t); }
.hosp-tag:hover { background: var(--h-az-50); }
.hosp-tag[aria-pressed="true"] { background: var(--h-az-600); border-color: var(--h-az-600); color: var(--h-azahar); }

/* Targeta de peregrinació */
.hosp-pere { display: flex; flex-direction: column; background: var(--h-blanc); border: 1px solid var(--h-line-hair); border-radius: var(--h-r-l); box-shadow: var(--h-sh-2); overflow: hidden; }
.hosp-pere[hidden] { display: none; }
.hosp-pere__img { aspect-ratio: 16 / 10; background: var(--h-cal-200); }
.hosp-pere__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hosp-pere__cos { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hosp-pere__cos > * { margin: 0; }
.hosp-pere__titol { font-size: 30px; font-weight: 600; line-height: 1.15; }
.hosp-pere__dates { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--h-az-800); }
.hosp-pere__meta { font-size: 17px; color: var(--h-cal-700); }
.hosp-pere__nota { font-size: 16px; padding: 10px 14px; border-radius: var(--h-r-m); background: var(--h-cal-100); }
.hosp-pere__boto { margin-top: auto !important; padding-top: 8px; }

/* Calendari */
.hosp-calendari > h2 { margin: 0 0 20px; }
.hosp-mes { padding: 18px 20px; background: var(--h-blanc); border: 1px solid var(--h-line-hair); border-radius: var(--h-r-l); display: flex; flex-direction: column; gap: 10px; }
.hosp-mes__nom { font-family: var(--h-body); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--h-az-700); margin: 0; line-height: 1.4; }
.hosp-mes ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hosp-mes li { display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.hosp-mes li strong { flex: 0 0 auto; min-width: 28px; color: var(--h-ta-700); }
.hosp-mes li.is-destacada span { font-weight: 700; color: var(--h-az-900); }
.hosp-mes__buit { margin: 0; font-size: 16px; color: var(--wp--preset--color--cal-700); }

/* Activitats */
.hosp-esdeveniment { display: flex; gap: 18px; align-items: flex-start; }
.hosp-esdeveniment p.hosp-data { display: flex; flex-direction: column; margin: 0; gap: 4px; }
.hosp-esdeveniment > div > * { margin: 0; }
.hosp-esdeveniment__lloc { font-size: 16px; color: var(--h-cal-700); margin-top: 4px !important; }

/* Delegacions */
.hosp-cerca { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: end; margin-bottom: 24px; }
.hosp-cerca select { appearance: none; background: var(--h-blanc) url(../icons/chevron-down.svg) no-repeat right 14px center / 18px; padding-right: 44px; cursor: pointer; }
.hosp-mapa { height: clamp(280px, 34vw, 420px); border-radius: var(--h-r-l); border: 1px solid var(--h-line-soft); overflow: hidden; margin-bottom: 24px; background: var(--h-az-50); z-index: 0; position: relative; }
.hosp-pin { background: none; border: 0; }
.hosp-deleg { display: flex; flex-direction: column; gap: 10px; transition: box-shadow 400ms var(--h-ease); }
.hosp-deleg[hidden] { display: none; }
.hosp-deleg.is-ressaltada { box-shadow: 0 0 0 3px var(--h-ta-200); }
.hosp-deleg > * { margin: 0; }
.hosp-deleg__nom { font-size: 28px; font-weight: 600; line-height: 1.15; }
.hosp-deleg__fila { display: flex; gap: 10px; align-items: flex-start; }
.hosp-deleg__fila .hosp-ic { margin-top: 5px; color: var(--h-az-600); }
.hosp-deleg__tel { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 6px !important; border: 1px solid var(--h-az-300); border-radius: var(--h-r-pill); font-weight: 700; text-decoration: none; transition: var(--h-t); }
.hosp-deleg__tel:hover { background: var(--h-az-50); border-color: var(--h-az-600); }
.hosp-cerca__buit { padding: 16px 20px; background: var(--h-cal-100); border-radius: var(--h-r-m); }

/* IBAN */
.hosp-iban-panell { display: flex; flex-direction: column; gap: 20px; }
.hosp-iban-panell > * { margin: 0; }
.hosp-iban-panell dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hosp-iban-panell dd { margin: 2px 0 0; font-size: 19px; }
.hosp-iban-fila { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px !important; }
.hosp-copiar { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--h-r-pill); border: 1px solid var(--h-az-600); background: var(--h-az-600); color: var(--h-azahar); font: 600 16px var(--h-body); cursor: pointer; transition: var(--h-t); }
.hosp-copiar:hover { background: var(--h-az-700); border-color: var(--h-az-700); }
.hosp-copiar .hosp-copiar__ok, .hosp-copiar.is-copiat .hosp-copiar__ic { display: none; }
.hosp-copiar.is-copiat .hosp-copiar__ok { display: block; }
.hosp-copiar__msg { font-size: 16px; color: var(--h-ok-tx); min-height: 1.7em; }

/* Documents: variant compacta del bloc lateral */
.hosp-doc-mini { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; background: var(--h-blanc); border: 1px solid var(--h-line-soft); border-radius: var(--h-r-media); text-decoration: none; color: var(--h-az-900); transition: var(--h-t); }
.hosp-doc-mini:hover { border-color: var(--h-az-600); color: var(--h-az-900); }
.hosp-doc-mini > span { display: flex; flex-direction: column; line-height: 1.3; }
.hosp-doc-mini strong { font-size: 17px; }
.hosp-doc-mini span span { font-size: 14px; color: var(--h-cal-700); }
.hosp-document .wp-block-buttons { margin: 0; }

/* Fitxa de peregrinació */
.hosp-fitxa-cap { position: relative; min-height: clamp(320px, 40vw, 460px); display: flex; align-items: flex-end; background: var(--h-az-900); overflow: hidden; }
.hosp-fitxa-cap__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hosp-fitxa-cap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,59,73,0) 20%, rgba(30,59,73,.88) 100%); }
.hosp-fitxa-cap__in { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 40px 20px; color: var(--h-azahar); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hosp-fitxa-cap__in > * { margin: 0; }
.hosp-fitxa-cap h1 { color: var(--h-azahar); }
.hosp-fitxa-cap__dates { font-size: 22px; font-weight: 600; }
.hosp-fitxa-cap__tornar { color: var(--h-azahar); text-decoration-color: rgba(253,251,246,.5); font-size: 16px; }
.hosp-fitxa-cap__tornar:hover { color: var(--h-azahar); }
.hosp-fets { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.hosp-fets > div { padding: 16px 18px; border: 1px solid var(--h-line-soft); border-radius: var(--h-r-l); background: var(--h-blanc); }
.hosp-fets dt { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--h-az-700); }
.hosp-fets dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; color: var(--h-az-900); line-height: 1.35; }
.hosp-fitxa-cos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
.hosp-fitxa-cos > * { margin: 0 !important; min-width: 0; }
.hosp-fitxa-principal > * + * { margin-top: 48px !important; }
.hosp-inscriute { position: sticky; top: calc(var(--h-header-top) + 100px); }
.hosp-inscriute > * { margin: 0 !important; }
.hosp-inscriute > * + * { margin-top: 18px !important; }
.hosp-inscriute h2 { font-size: 32px; font-weight: 600; }
@media (max-width: 900px) {
	.hosp-fitxa-cos { grid-template-columns: 1fr; }
	.hosp-inscriute { position: static; }
}

/* Àlbums */
.hosp-albums .hosp-tabs { margin-bottom: 24px; }
.hosp-album { margin: 0; }
.hosp-album a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--h-az-900); }
.hosp-album__img { display: block; aspect-ratio: 1 / 1; border-radius: var(--h-r-media); overflow: hidden; background: var(--h-cal-200); }
.hosp-album__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms var(--h-ease); }
.hosp-album a:hover img { transform: scale(1.03); }
.hosp-album figcaption { display: flex; flex-direction: column; font-size: 16px; line-height: 1.35; }
.hosp-album figcaption span { font-size: 15px; color: var(--h-cal-700); }
.hosp-avis + .hosp-avis { margin-top: 12px; }

/* Formularis */
.hosp-form { display: flex; flex-direction: column; gap: 18px; }
.hosp-form > * { margin: 0 !important; }
.hosp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hosp-field--check label { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 400; color: var(--h-cal-900); cursor: pointer; }
.hosp-field--check input { appearance: auto; width: 22px; height: 22px; min-height: 0; flex: 0 0 auto; margin-top: 3px; accent-color: var(--h-az-600); }
.hosp-form button.wp-block-button__link { cursor: pointer; width: 100%; }
.hosp-form__estat:empty { display: none; }
.hosp-field select { appearance: none; background: var(--h-blanc) url(../icons/chevron-down.svg) no-repeat right 14px center / 18px; padding-right: 44px; }

/* Avís de galetes */
.hosp-galetes { position: sticky; bottom: 0; z-index: 50; padding: 12px; }
.hosp-galetes[hidden] { display: none; }
.hosp-galetes__in { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 24px; background: var(--h-blanc); border: 1px solid var(--h-line-soft); border-radius: var(--h-r-l); box-shadow: var(--h-sh-4); }
.hosp-galetes__in p { flex: 1 1 320px; margin: 0; font-size: 17px; }
.hosp-galetes__botons { display: flex; flex-wrap: wrap; gap: 10px; }
.hosp-galetes__b { min-height: 48px; min-width: 170px; padding: 0 24px; border-radius: var(--h-r-pill); border: 1px solid var(--h-az-600); background: var(--h-az-600); color: var(--h-azahar); font: 600 16px var(--h-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: var(--h-t); }
.hosp-galetes__b:hover { background: var(--h-az-700); }
.hosp-galetes__b--sec { background: var(--h-blanc); color: var(--h-az-700); border-color: var(--h-az-600); }
.hosp-galetes__b--sec:hover { background: var(--h-az-50); }

/* Textos de contingut migrat amb adreces o cadenes llargues sense espais: que no desbordin la graella */
.wp-block-post-template > li, .hosp-noticia { min-width: 0; }
.hosp-noticia, .wp-block-post-content, .wp-block-post-excerpt { overflow-wrap: anywhere; }
