/* ==========================================================================
   CDTH Web · Estils compartits
   Mateixos valors que el redisseny del web (CSS addicional, blocs CDTH):
   Montserrat · vermell #CC0033 · vermell fosc #A3002A · text #1F1A1B ·
   grisos #F5F6F7 / #F2F3F5 / #E6E8EB · radi 10-12 px · filet vermell de 36 px.
   ========================================================================== */

:root {
	--cdth-red: #CC0033;
	--cdth-red-d: #A3002A;
	--cdth-ink: #1F1A1B;
	--cdth-ink-2: #3A3D44;
	--cdth-mute: #5E6168;
	--cdth-bg: #F5F6F7;
	--cdth-bg-h: #F2F3F5;
	--cdth-line: #E6E8EB;
	--cdth-line-2: #E3E5E8;
	--cdth-r: 12px;
	--cdth-font: Montserrat, "Helvetica Neue", Arial, sans-serif;
	--cdth-top: 0px; /* alçada d'una capçalera fixa, si cal */
}

/* ── Peces comunes ─────────────────────────────────────────────────────── */
.cdth-k { margin: 0 0 8px !important; font: 800 13px/1.3 var(--cdth-font) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--cdth-red) !important; }
.cdth-h { margin: 0 0 14px !important; padding: 0 !important; font: 800 clamp(24px, 2.6vw, 32px)/1.15 var(--cdth-font) !important; letter-spacing: -.01em; text-transform: none !important; color: var(--cdth-ink) !important; }
.cdth-h::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 12px; background: var(--cdth-red); }

.cdth-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; background: #FFFFFF; color: var(--cdth-red) !important; font: 800 14px/1 var(--cdth-font); letter-spacing: .03em; text-transform: uppercase; text-decoration: none !important; transition: background .2s; }
.cdth-btn:hover, .cdth-btn:focus-visible { background: var(--cdth-bg-h); }
.cdth-btn--l { background: transparent; color: #FFFFFF !important; border: 2px solid rgba(255,255,255,.75); }
.cdth-btn--l:hover, .cdth-btn--l:focus-visible { background: rgba(255,255,255,.12); }

/* Avís de bloc ocult: només el veuen els editors */
.cdth-ocult { margin: 12px 0; padding: 10px 14px; border: 1px dashed #C9CCD1; border-radius: 8px; background: var(--cdth-bg); font: 500 13.5px/1.5 var(--cdth-font); color: var(--cdth-mute); }
.cdth-ocult b { color: var(--cdth-ink); }
.cdth-ocult a { color: var(--cdth-red); font-weight: 700; }

/* Text pendent: només el veuen els editors */
.cdth-pendent { display: inline; padding: 1px 6px; border-radius: 4px; background: #FFF4CC; box-shadow: inset 0 0 0 1px #F0D77A; font: 600 .86em/1.5 var(--cdth-font); color: #6B5200; }

/* ==========================================================================
   Activitats dirigides  [cdth_dirigides]
   ========================================================================== */
.cdth-dg-wrap { container-type: inline-size; }
.cdth-dg { margin: 0 0 24px; padding: 22px; border: 1px solid var(--cdth-line); border-radius: 14px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(31,26,27,.06); font-family: var(--cdth-font); color: var(--cdth-ink); }
.cdth-dg *, .cdth-dg *::before, .cdth-dg *::after { box-sizing: border-box; }
.cdth-dg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.cdth-dg-lead { max-width: 420px; margin: 0 0 14px !important; font-size: 14.5px; line-height: 1.5; color: var(--cdth-mute); }
.cdth-dg-week { display: grid; grid-template-columns: repeat(var(--cdth-dg-cols, 5), minmax(0, 1fr)); gap: 12px; }
.cdth-dg-day { min-width: 0; padding: 12px; border-radius: 10px; background: var(--cdth-bg); }
.cdth-dg-day.is-today { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--cdth-red); }
.cdth-dg-dayname { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; padding: 0 !important; font: 800 13px/1.3 var(--cdth-font) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--cdth-ink) !important; }
.cdth-dg-dayname em { padding: 2px 7px; border-radius: 999px; background: var(--cdth-red); color: #FFFFFF; font-style: normal; font-size: 10.5px; letter-spacing: .06em; }
.cdth-dg-empty { margin: 0 !important; font-size: 13px; color: var(--cdth-mute); }
.cdth-dg-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.cdth-dg-s { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 10px 10px 10px 13px; border-radius: 9px; background: #FFFFFF; box-shadow: 0 1px 0 var(--cdth-line), 0 0 0 1px var(--cdth-line); overflow: hidden; line-height: 1.3; list-style: none !important; }
.cdth-dg-s::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.cdth-dg-i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #FFFFFF); }
.cdth-dg-ico { width: 20px; height: 20px; }
.cdth-dg-t { display: flex; flex-direction: column; min-width: 0; }
.cdth-dg-t b { font-size: 14px; font-weight: 800; color: var(--cdth-ink); }
.cdth-dg-t time { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--cdth-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cdth-dg-t small { margin-top: 4px; align-self: flex-start; padding: 1px 7px; border-radius: 999px; background: var(--cdth-bg); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cdth-mute); }
.cdth-dg-tabs { display: none; }

/* Amb la imatge de l'horari: bloc de color, com a l'horari de Canva */
.cdth-dg-s--art { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 12px 10px; background: var(--c); box-shadow: none; }
.cdth-dg-s--art::before { display: none; }
.cdth-dg-art { display: block; width: 100% !important; max-width: 190px; height: 52px !important; margin: 0 auto; object-fit: contain; }
.cdth-dg-s--art .cdth-dg-t { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.cdth-dg-s--art .cdth-dg-t time { margin: 0; color: #FFFFFF; font-weight: 800; }
.cdth-dg-s--art .cdth-dg-t small { margin: 0; align-self: center; background: rgba(255,255,255,.22); color: #FFFFFF; }

/* Vista «avui»: llista compacta */
.cdth-dg--avui .cdth-dg-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Segons l'amplada del bloc (no de la pantalla): 3 columnes o pestanyes */
@container (max-width: 900px) and (min-width: 621px) {
	.cdth-dg-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 620px) {
	.cdth-dg { padding: 16px; }
	.cdth-dg.is-js .cdth-dg-tabs { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
	.cdth-dg-tab { flex: 1 0 auto; min-width: 52px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--cdth-line) !important; border-radius: 10px !important; background: #FFFFFF !important; box-shadow: none !important; font: 800 14px/1 var(--cdth-font) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--cdth-ink) !important; cursor: pointer; }
	.cdth-dg-tab abbr { text-decoration: none; border: 0; }
	.cdth-dg-tab[aria-selected="true"] { border-color: var(--cdth-red) !important; background: var(--cdth-red) !important; color: #FFFFFF !important; }
	.cdth-dg-week { grid-template-columns: 1fr; }
	.cdth-dg.is-js .cdth-dg-day { display: none; }
	.cdth-dg.is-js .cdth-dg-day.is-sel { display: block; }
	.cdth-dg.is-js .cdth-dg-dayname { display: none; }
}

/* ==========================================================================
   Taula d'activitats  [cdth_activitats]
   ========================================================================== */
.cdth-act { margin: 0 0 18px; font-family: var(--cdth-font); }
.cdth-act-t { margin: 0 0 8px !important; font-weight: 800; }
.cdth-act-table { width: 100%; margin: 0 !important; border-collapse: separate !important; border-spacing: 0; border: 1px solid var(--cdth-line) !important; border-radius: var(--cdth-r); overflow: hidden; background: #FFFFFF; font-size: 14.5px; line-height: 1.4; }
.cdth-act-table th, .cdth-act-table td { padding: 11px 14px !important; border: 0 !important; border-bottom: 1px solid var(--cdth-line) !important; text-align: left; vertical-align: top; color: var(--cdth-ink-2); background: transparent; }
.cdth-act-table thead th { background: var(--cdth-bg) !important; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cdth-ink) !important; }
.cdth-act-table tbody th { font-weight: 800; color: var(--cdth-ink) !important; }
.cdth-act-table tbody th small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--cdth-mute); }
.cdth-act-table tbody tr:last-child > * { border-bottom: 0 !important; }
.cdth-act-table tbody tr:hover > * { background: var(--cdth-bg-h); }
.cdth-act-table .cdth-pendent { display: inline-block; margin-top: 4px; }
@media (max-width: 760px) {
	.cdth-act-table, .cdth-act-table tbody, .cdth-act-table tr, .cdth-act-table th, .cdth-act-table td { display: block; }
	.cdth-act-table thead { display: none; }
	.cdth-act-table { border: 0 !important; background: transparent; overflow: visible; }
	.cdth-act-table tbody { display: grid; gap: 10px; }
	.cdth-act-table tr { border: 1px solid var(--cdth-line); border-radius: 10px; background: #FFFFFF; overflow: hidden; }
	.cdth-act-table tbody th { padding: 12px 14px 6px !important; border: 0 !important; font-size: 15px; }
	.cdth-act-table td { display: flex; gap: 12px; padding: 4px 14px !important; border: 0 !important; }
	.cdth-act-table td:last-child { padding-bottom: 12px !important; }
	.cdth-act-table td::before { content: attr(data-l); flex: 0 0 72px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cdth-mute); padding-top: 2px; }
	.cdth-act-table tbody tr:hover > * { background: transparent; }
}

/* ==========================================================================
   Guia de benvinguda  [cdth_guia]
   Concepte d'imatge del Welcome Pack i del dossier d'Escoles 2026-27:
   títols condensats en majúscules (Anton), blocs vermells, etiquetes blanques
   sobre foto i fotos grans.
   ========================================================================== */
.cdth-g { --g-disp: Anton, "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-family: var(--cdth-font); color: var(--cdth-ink); line-height: 1.6; font-size: 16px; }
.cdth-g *, .cdth-g *::before, .cdth-g *::after { box-sizing: border-box; }
.cdth-g-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.cdth-g a { color: var(--cdth-red); }
.cdth-g img { max-width: 100%; height: auto; }
.cdth-g h2, .cdth-g h3, .cdth-g h4 { text-transform: none; letter-spacing: 0; }

/* Bandes a tota l'amplada quan la guia és dins d'una pàgina normal */
.cdth-g-hero, .cdth-g-tiles, .cdth-g-nav, .cdth-g-sec, .cdth-g-foot { width: 100vw; margin-left: calc(50% - 50vw); }
body.cdth-guia-full { overflow-x: clip; }
.cdth-guia-page { display: block; width: 100%; margin: 0; padding: 0; }
.cdth-guia-page .cdth-g-hero, .cdth-guia-page .cdth-g-tiles, .cdth-guia-page .cdth-g-nav, .cdth-guia-page .cdth-g-sec, .cdth-guia-page .cdth-g-foot { width: auto; margin-left: 0; }
.cdth-guia-page > p:empty { display: none; }

/* Títol condensat amb «adhesiu» (com al Welcome Pack) */
.cdth-g-title, .cdth-g-h2, .cdth-tab-foto b, .cdth-g-tile b, .cdth-xifres2 b, .cdth-promo-p b, .cdth-valors b { font-family: var(--g-disp) !important; font-weight: 400 !important; text-transform: uppercase !important; letter-spacing: .01em !important; }

/* ── Capçalera amb foto ── */
.cdth-g-hero { position: relative; display: flex; align-items: flex-end; min-height: min(86vh, 760px); padding: 120px 0 56px; background: var(--cdth-red-d); color: #FFFFFF; overflow: hidden; isolation: isolate; }
.cdth-g-hero-f { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 30%; }
.cdth-g-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,26,27,0) 25%, rgba(31,26,27,.35) 55%, rgba(120,0,30,.92) 100%); }
.cdth-g-hero-in { position: relative; width: 100%; }
.cdth-g .cdth-g-kick { display: inline-block; margin: 0 0 18px !important; padding: 7px 12px; background: var(--cdth-red); font: 800 12.5px/1.2 var(--cdth-font); letter-spacing: .16em; text-transform: uppercase; color: #FFFFFF; }
.cdth-g .cdth-g-title { margin: 0 0 18px !important; padding: 0 !important; font-size: clamp(46px, 8.4vw, 116px) !important; line-height: .92 !important; color: #FFFFFF !important; }
.cdth-g-title span { display: block; }
.cdth-g-title span + span { color: #FFFFFF; -webkit-text-stroke: 0; text-shadow: 0 0 0 transparent; }
.cdth-g-title span:last-child { display: inline-block; margin-top: 6px; padding: 2px 14px 0; background: #FFFFFF; color: var(--cdth-red); transform: rotate(-1.5deg); transform-origin: left center; }
.cdth-g-title span:only-child { display: block; padding: 0; background: none; color: #FFFFFF; transform: none; }
.cdth-g .cdth-g-lead { max-width: 560px; margin: 0 0 24px !important; font-size: 18px; font-weight: 500; color: rgba(255,255,255,.94); }
.cdth-g-lead:empty { display: none; }
.cdth-g-search { position: relative; max-width: 520px; margin: 0 0 4px; }
.cdth-g-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--cdth-red); pointer-events: none; }
.cdth-g-search input { width: 100%; height: 58px; margin: 0; padding: 0 18px 0 52px; border: 0 !important; border-radius: 999px; background: #FFFFFF; box-shadow: 0 14px 34px rgba(31,26,27,.28); font: 600 16px var(--cdth-font); color: var(--cdth-ink); }
.cdth-g-search input:focus { outline: 3px solid rgba(255,255,255,.6); outline-offset: 3px; }
.cdth-g-hero-b { margin: 18px 0 0 !important; }
.cdth-g-escut { position: absolute; right: clamp(16px, 4vw, 56px); top: clamp(90px, 12vh, 120px); width: clamp(64px, 8vw, 104px) !important; height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); }

/* ── Mosaic «Què vols saber?» ── */
.cdth-g-tiles { padding: 0 0 8px; background: var(--cdth-red-d); }
.cdth-g-tiles ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; transform: translateY(-28px); margin-bottom: -28px !important; }
.cdth-g-tiles li { margin: 0 !important; list-style: none !important; }
.cdth-g-tiles li[hidden] { display: none; }
.cdth-g-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; padding: 12px 14px; border-radius: 10px; background: var(--cdth-red); overflow: hidden; color: #FFFFFF !important; text-decoration: none !important; isolation: isolate; box-shadow: 0 10px 24px rgba(31,26,27,.18); }
.cdth-g-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.cdth-g-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,26,27,0) 30%, rgba(31,26,27,.78)); transition: background .3s; }
.cdth-g-tile--nofoto { background: var(--cdth-ink); }
.cdth-g-tile--nofoto::before { background: repeating-linear-gradient(-60deg, rgba(255,255,255,0) 0 18px, rgba(255,255,255,.05) 18px 36px); }
.cdth-g-tile:nth-child(3n) .cdth-g-tile--nofoto { background: var(--cdth-red); }
.cdth-g-tile-n { position: absolute; left: 14px; top: 10px; font: 800 12px/1 var(--cdth-font); letter-spacing: .14em; color: rgba(255,255,255,.85); }
.cdth-g-tile b { font-size: clamp(19px, 1.8vw, 26px); line-height: 1; }
.cdth-g-tile:hover img, .cdth-g-tile:focus-visible img { transform: scale(1.06); }
.cdth-g-tile:hover::before, .cdth-g-tile:focus-visible::before { background: linear-gradient(180deg, rgba(204,0,51,.15) 20%, rgba(163,0,42,.9)); }

/* ── Índex enganxós ── */
.cdth-g-nav { position: sticky; top: var(--cdth-top); z-index: 20; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.2) blur(6px); box-shadow: 0 1px 0 var(--cdth-line); }
.cdth-g-nav ul { display: flex; gap: 6px; margin: 0 !important; padding: 10px 0 !important; list-style: none !important; overflow-x: auto; scrollbar-width: none; }
.cdth-g-nav ul::-webkit-scrollbar { display: none; }
.cdth-g-nav li { flex: none; margin: 0 !important; list-style: none !important; }
.cdth-g-nav li[hidden] { display: none; }
.cdth-g-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cdth-ink-2) !important; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s; }
.cdth-g-nav a:hover { background: var(--cdth-bg-h); }
.cdth-g-nav a.is-on { background: var(--cdth-red); color: #FFFFFF !important; }

.cdth-g-noresults { max-width: 1140px; margin: 28px auto !important; padding: 16px 20px; border-radius: 10px; background: var(--cdth-bg); font-weight: 600; }

/* ── Seccions ── */
.cdth-g-sec { position: relative; padding: clamp(56px, 7vw, 96px) 0; background: #FFFFFF; scroll-margin-top: calc(var(--cdth-top) + 60px); }
.cdth-g-sec--gris { background: var(--cdth-bg); }
.cdth-g-sec[hidden] { display: none; }
.cdth-g-sec-h { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.cdth-g-sec-h.has-foto { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.cdth-g-sec-ht { position: relative; }
.cdth-g-num { display: inline-block; margin-bottom: 10px; padding: 4px 10px; background: var(--cdth-red); font: 800 13px/1.2 var(--cdth-font); letter-spacing: .14em; color: #FFFFFF; }
.cdth-g .cdth-g-h2 { margin: 0 0 14px !important; padding: 0 !important; font-size: clamp(38px, 5.4vw, 72px) !important; line-height: .95 !important; color: var(--cdth-ink) !important; }
.cdth-g .cdth-g-h2::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 16px; background: var(--cdth-red); }
.cdth-g .cdth-g-intro { max-width: 560px; margin: 0 !important; font-size: 18px; font-weight: 500; color: var(--cdth-ink-2); }
.cdth-g-edit { display: inline-block; margin-top: 14px; padding: 4px 10px; border: 1px solid var(--cdth-line); border-radius: 6px; background: #FFFFFF; font-size: 12px; font-weight: 700; text-decoration: none !important; }
.cdth-g-sec-f { position: relative; margin: 0; }
.cdth-g-sec-f img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 12px; }
.cdth-g-sec-f::before { content: ""; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 46%; z-index: -0; border-radius: 12px; background: var(--cdth-red); }
.cdth-g-sec-f img { position: relative; z-index: 1; }
.cdth-g-sec:nth-of-type(even) .cdth-g-sec-h.has-foto { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.cdth-g-sec:nth-of-type(even) .cdth-g-sec-f { order: -1; }
.cdth-g-sec:nth-of-type(even) .cdth-g-sec-f::before { left: auto; right: -14px; }

/* Cos */
.cdth-g-body > *:last-child { margin-bottom: 0 !important; }
.cdth-g-body p, .cdth-g-body li { color: var(--cdth-ink-2); }
.cdth-g-body > p, .cdth-g-body > ul:not([class]), .cdth-g-body > details, .cdth-tab-body > p, .cdth-tab-body > details { max-width: 860px; }
.cdth-g-body h3 { display: inline-block; margin: 44px 0 16px !important; padding: 6px 14px 4px !important; background: var(--cdth-ink); font: 400 clamp(22px, 2.4vw, 30px)/1.05 var(--g-disp) !important; text-transform: uppercase !important; letter-spacing: .02em !important; color: #FFFFFF !important; }
.cdth-g-body h3:first-child { margin-top: 0 !important; }
.cdth-g-body h4 { margin: 0 0 6px !important; font: 800 17px/1.3 var(--cdth-font) !important; color: var(--cdth-ink) !important; }
.cdth-g-body .cdth-lead { max-width: 760px; font-size: 19px; font-weight: 600; color: var(--cdth-ink); }
.cdth-g-body .cdth-nota { margin: 10px 0 16px; font-size: 14px; color: var(--cdth-mute); }
.cdth-g-body .cdth-botons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Desplegables */
.cdth-g-body details { margin: 10px 0 0; border: 0; border-radius: 10px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--cdth-line); transition: box-shadow .2s; }
.cdth-g-sec--gris details { box-shadow: none; }
.cdth-g-body details[open] { box-shadow: 0 0 0 2px var(--cdth-red), 0 10px 24px rgba(31,26,27,.08); }
.cdth-g-body summary { position: relative; display: block; padding: 16px 56px 16px 18px; font-weight: 800; color: var(--cdth-ink); cursor: pointer; list-style: none; }
.cdth-g-body summary::-webkit-details-marker { display: none; }
.cdth-g-body summary::after { content: "+"; position: absolute; right: 14px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--cdth-red); font: 700 20px/1 var(--cdth-font); color: #FFFFFF; transition: transform .25s; }
.cdth-g-body details[open] > summary::after { transform: rotate(45deg); }
.cdth-g-body details > :not(summary) { margin: 0 18px 16px !important; }

/* Botons */
.cdth-btn--r { background: var(--cdth-red); color: #FFFFFF !important; }
.cdth-btn--r:hover, .cdth-btn--r:focus-visible { background: var(--cdth-red-d); }
.cdth-btn--o { background: transparent; color: var(--cdth-red) !important; box-shadow: inset 0 0 0 2px var(--cdth-red); }
.cdth-btn--o:hover, .cdth-btn--o:focus-visible { background: var(--cdth-red); color: #FFFFFF !important; }
.cdth-g-body .cdth-btn { margin: 8px 6px 4px 0; }

/* ── Pestanyes per esport ── */
.cdth-tabs { margin: 0 0 8px; }
.cdth-tabs-nav { display: flex; gap: 0; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 3px solid var(--cdth-ink); }
.cdth-tabs-nav::-webkit-scrollbar { display: none; }
.cdth-tabs-nav [role="tab"] { flex: none; margin: 0 !important; padding: 12px 22px 10px !important; border: 0 !important; border-radius: 8px 8px 0 0 !important; background: transparent !important; box-shadow: none !important; font: 400 clamp(20px, 2.2vw, 28px)/1 var(--g-disp) !important; text-transform: uppercase !important; letter-spacing: .02em !important; color: var(--cdth-mute) !important; cursor: pointer; transition: color .2s, background .2s; }
.cdth-tabs-nav [role="tab"]:hover { color: var(--cdth-ink) !important; }
.cdth-tabs-nav [role="tab"][aria-selected="true"] { background: var(--cdth-ink) !important; color: #FFFFFF !important; }
.cdth-tabs-nav [role="tab"]:focus-visible { outline: 3px solid var(--cdth-red); outline-offset: -3px; }
.cdth-tab[hidden] { display: none; }
.cdth-tab--foto { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.cdth-tab-foto { position: sticky; top: calc(var(--cdth-top) + 76px); margin: 0; border-radius: 12px; overflow: hidden; background: var(--cdth-red); }
.cdth-tab-foto img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cdth-tab-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; background: linear-gradient(180deg, transparent, rgba(31,26,27,.8)); color: #FFFFFF; }
.cdth-tab-foto b { display: inline-block; padding: 4px 12px 2px; background: #FFFFFF; color: var(--cdth-red); font-size: 36px !important; line-height: 1 !important; transform: rotate(-2deg); }
.cdth-tab-foto span { display: block; margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cdth-tab-body > *:first-child { margin-top: 0 !important; }

/* ── Dades clau ── */
.cdth-fets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 22px !important; padding: 0 !important; list-style: none !important; }
.cdth-fets li { margin: 0 !important; padding: 14px 16px; border-radius: 10px; background: var(--cdth-bg); list-style: none !important; }
.cdth-g-sec--gris .cdth-fets li { background: #FFFFFF; }
.cdth-fets small { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cdth-red); }
.cdth-fets b { display: block; font-size: 15.5px; line-height: 1.3; color: var(--cdth-ink); }

/* ── Xifres ── */
.cdth-xifres2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 36px !important; padding: 0 !important; list-style: none !important; border-radius: 12px; overflow: hidden; background: var(--cdth-red); }
.cdth-xifres2 li { margin: 0 !important; padding: 24px 22px 22px; list-style: none !important; color: #FFFFFF; }
.cdth-xifres2 li + li { box-shadow: inset 1px 0 0 rgba(255,255,255,.2); }
.cdth-xifres2 li:nth-child(even) { background: var(--cdth-red-d); }
.cdth-xifres2 b { display: inline; font-size: clamp(40px, 4.6vw, 64px) !important; line-height: 1 !important; color: #FFFFFF; }
.cdth-xifres2 em { margin-left: 4px; font: 400 clamp(22px, 2.2vw, 30px)/1 var(--g-disp); font-style: normal; text-transform: uppercase; }
.cdth-xifres2 span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.9); }

/* ── Valors ── */
.cdth-valors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 28px !important; padding: 0 !important; list-style: none !important; counter-reset: v; }
.cdth-valors li { position: relative; margin: 0 !important; padding: 56px 16px 18px; border-radius: 12px; background: var(--cdth-ink); list-style: none !important; color: #FFFFFF; overflow: hidden; }
.cdth-valors li:nth-child(odd) { background: var(--cdth-red); }
.cdth-valors li::before { counter-increment: v; content: counter(v, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font: 800 12px var(--cdth-font); letter-spacing: .14em; color: rgba(255,255,255,.75); }
.cdth-valors b { display: block; font-size: clamp(24px, 2.3vw, 32px) !important; line-height: 1 !important; color: #FFFFFF; }
.cdth-valors span { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.88); }

/* ── Targetes de text a dues columnes ── */
.cdth-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.cdth-card { padding: 22px 24px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--cdth-line); }
.cdth-g-sec--gris .cdth-card { box-shadow: none; }
.cdth-card h3, .cdth-g-body .cdth-card h3 { display: block; margin: 0 0 10px !important; padding: 0 !important; background: none; font: 400 26px/1 var(--g-disp) !important; color: var(--cdth-red) !important; }
.cdth-card ul { margin: 0; padding-left: 18px; }
.cdth-card li { margin-bottom: 4px; }
.cdth-card p:last-child { margin-bottom: 0; }
.cdth-card--app { border-top: 6px solid var(--cdth-red); }

/* ── Fotos ── */
.cdth-fotos { display: grid; gap: 10px; margin: 8px 0 0; }
.cdth-fotos figure { margin: 0; border-radius: 12px; overflow: hidden; }
.cdth-fotos img { display: block; width: 100%; height: 100% !important; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .6s ease; }
.cdth-fotos figure:hover img { transform: scale(1.04); }
.cdth-fotos--2 { grid-template-columns: 1fr 1fr; }
.cdth-fotos--3 { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.cdth-fotos--3 figure:first-child { grid-row: span 2; }
.cdth-fotos--3 figure:first-child img { aspect-ratio: auto; }
.cdth-fotos--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Targetes amb foto (instal·lacions, avantatges) ── */
.cdth-targetes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 22px; }
.cdth-targeta { position: relative; display: flex; flex-direction: column; border-radius: 12px; background: #FFFFFF; overflow: hidden; box-shadow: 0 0 0 1px var(--cdth-line); color: inherit !important; text-decoration: none !important; transition: transform .25s, box-shadow .25s; }
.cdth-g-sec--gris .cdth-targeta { box-shadow: none; }
a.cdth-targeta:hover, .cdth-targeta:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,26,27,.12); }
.cdth-targeta-f { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.cdth-targeta-f img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s; }
.cdth-targeta:hover .cdth-targeta-f img { transform: scale(1.05); }
.cdth-targeta-t { display: block; padding: 14px 16px 16px; }
.cdth-targeta-t b { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--cdth-ink); }
.cdth-targeta-t small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--cdth-mute); }
.cdth-targeta:not(:has(.cdth-targeta-f)) { border-left: 6px solid var(--cdth-red); }
/* Etiqueta blanca sobre la foto, com al dossier */
.cdth-targeta-f + .cdth-targeta-t b { position: absolute; left: 12px; top: 12px; padding: 4px 10px 3px; background: #FFFFFF; font: 400 19px/1 var(--g-disp); text-transform: uppercase; letter-spacing: .02em; color: var(--cdth-red); box-shadow: 0 4px 12px rgba(0,0,0,.15); max-width: calc(100% - 24px); }
.cdth-targeta-f + .cdth-targeta-t small { margin-top: 0; }

/* ── Ruta de l'autocar ── */
.cdth-ruta { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 0 0 18px !important; padding: 0 !important; list-style: none !important; counter-reset: none; }
.cdth-ruta::before { content: ""; position: absolute; left: 7%; right: 7%; top: 15px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--cdth-red) 0 18px, transparent 18px 26px); }
.cdth-ruta li { position: relative; margin: 0 !important; padding: 0 8px; list-style: none !important; text-align: center; }
.cdth-ruta time { display: block; height: 44px; font: 400 26px/44px var(--g-disp); color: var(--cdth-ink); }
.cdth-ruta li::before { content: ""; display: block; width: 28px; height: 28px; margin: 4px auto 14px; border: 6px solid var(--cdth-red); border-radius: 50%; background: #FFFFFF; position: relative; z-index: 1; }
.cdth-ruta b { display: block; font-size: 14.5px; line-height: 1.25; color: var(--cdth-ink); }
.cdth-ruta span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--cdth-mute); }
.cdth-ruta-fi time { color: var(--cdth-red); }
.cdth-ruta-fi::before { width: 40px !important; height: 40px !important; margin-top: -2px !important; margin-bottom: 8px !important; border: 0 !important; background: var(--cdth-red) url("escut.svg") center / 34px no-repeat !important; }

/* ── Calendari ── */
.cdth-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 14px; }
.cdth-cal-mes { padding: 16px 16px 12px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--cdth-line); }
.cdth-g-sec--gris .cdth-cal-mes { box-shadow: none; }
.cdth-cal-mes h4 { margin: 0 0 10px !important; font: 400 24px/1 var(--g-disp) !important; text-transform: uppercase; color: var(--cdth-ink) !important; }
.cdth-cal-mes ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.cdth-cal-mes li { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px !important; list-style: none !important; font-size: 14px; }
.cdth-cal-mes time { flex: none; min-width: 64px; padding: 2px 8px; border-radius: 6px; background: var(--k, var(--cdth-mute)); font-size: 12.5px; font-weight: 800; text-align: center; color: #FFFFFF; }
.cdth-cal-mes span { color: var(--cdth-ink-2); }
.cdth-cal .is-inici, .cdth-cal-ll .is-inici { --k: #1E8E4E; }
.cdth-cal .is-festiu, .cdth-cal-ll .is-festiu { --k: var(--cdth-red); }
.cdth-cal .is-pont, .cdth-cal-ll .is-pont { --k: #E07A00; }
.cdth-cal .is-vacances, .cdth-cal-ll .is-vacances { --k: var(--cdth-ink); }
.cdth-cal .is-campus, .cdth-cal-ll .is-campus { --k: #250779; }
.cdth-cal .is-fi, .cdth-cal-ll .is-fi { --k: #1E8E4E; }
.cdth-cal-ll { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--cdth-mute); }
.cdth-cal-ll i { display: inline-block; width: 12px; height: 12px; margin-right: -10px; border-radius: 3px; background: var(--k); vertical-align: -1px; }

/* ── Promo familiar ── */
.cdth-promo { display: grid; grid-template-columns: 1fr; margin: 0 0 30px; border-radius: 14px; overflow: hidden; background: var(--cdth-red); color: #FFFFFF; }
.cdth-promo:has(figure) { grid-template-columns: 1.2fr 1fr; }
.cdth-promo figure { margin: 0; }
.cdth-promo figure img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.cdth-promo-t { padding: clamp(24px, 4vw, 44px); background: repeating-linear-gradient(-70deg, rgba(255,255,255,0) 0 30px, rgba(255,255,255,.05) 30px 60px); }
.cdth-g .cdth-promo-k { margin: 0 0 6px !important; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.cdth-g .cdth-promo-p { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 12px !important; color: #FFFFFF; }
.cdth-promo-p b { font-size: clamp(88px, 11vw, 148px) !important; line-height: .85 !important; color: #FFFFFF; }
.cdth-promo-p span { padding-bottom: 8px; font: 800 18px/1.15 var(--cdth-font); text-transform: uppercase; }
.cdth-g .cdth-promo-d { max-width: 440px; margin: 0 0 18px !important; font-size: 15.5px; color: rgba(255,255,255,.94); }
.cdth-promo .cdth-btn { margin: 0; }

/* ── Passos ── */
.cdth-passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px !important; padding: 0 !important; list-style: none !important; counter-reset: p; }
.cdth-passos li { position: relative; margin: 0 !important; padding: 20px 20px 18px 74px; border-radius: 12px; background: var(--cdth-bg); list-style: none !important; }
.cdth-g-sec--gris .cdth-passos li { background: #FFFFFF; }
.cdth-passos li::before { counter-increment: p; content: counter(p); position: absolute; left: 18px; top: 16px; font: 400 52px/1 var(--g-disp); color: var(--cdth-red); }
.cdth-passos b { display: block; font-size: 16px; color: var(--cdth-ink); }
.cdth-passos span { display: block; margin-top: 4px; font-size: 14px; color: var(--cdth-mute); }

/* ── Llistes ── */
.cdth-check { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.cdth-check li { position: relative; margin: 0 0 8px !important; padding-left: 30px; list-style: none !important; }
.cdth-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cdth-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.cdth-cats { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.cdth-cats li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--cdth-line); list-style: none !important; }
.cdth-cats li:last-child { border-bottom: 0; }
.cdth-cats b { font: 400 20px/1.1 var(--g-disp); text-transform: uppercase; color: var(--cdth-red); }
.cdth-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.cdth-dir li { display: flex; flex-direction: column; margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--cdth-line); list-style: none !important; }
.cdth-dir b { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cdth-mute); }
.cdth-dir a { font-weight: 700; word-break: break-word; }

/* ── Persones ── */
.cdth-persones { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0 0 10px; }
.cdth-persona { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--cdth-bg); }
.cdth-g-sec--gris .cdth-persona { background: #FFFFFF; }
.cdth-persona-f { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--cdth-red); }
.cdth-persona-f img { width: 100%; height: 100% !important; object-fit: cover; }
.cdth-persona-f--i { font: 400 22px/1 var(--g-disp); color: #FFFFFF; letter-spacing: .04em; }
.cdth-persona:nth-child(even) .cdth-persona-f--i { background: var(--cdth-ink); }
.cdth-persona-t { display: flex; flex-direction: column; min-width: 0; }
.cdth-persona-t b { font-size: 15px; line-height: 1.25; color: var(--cdth-ink); }
.cdth-persona-t small { font-size: 13px; line-height: 1.35; color: var(--cdth-mute); }
.cdth-persona-t a { margin-top: 2px; font-size: 13px; font-weight: 700; word-break: break-word; }

/* ── Taules d'activitats i dirigides dins de la guia ── */
.cdth-g-sec--gris .cdth-act-table { box-shadow: none; }
.cdth-g-body .cdth-act { margin-bottom: 8px; }
.cdth-g-body .cdth-dg { padding: 0; border: 0; box-shadow: none; background: transparent; }
.cdth-g-sec--gris .cdth-dg-day { background: #FFFFFF; }

/* ── Peu ── */
.cdth-g-foot { padding: 34px 0; background: var(--cdth-ink); font-size: 14px; color: rgba(255,255,255,.8); }
.cdth-g-foot .cdth-g-in { display: flex; gap: 18px; align-items: center; }
.cdth-g-foot img { flex: none; width: 56px !important; height: 56px; }
.cdth-g-foot p { margin: 0 !important; color: rgba(255,255,255,.8); }
.cdth-g-foot b { font: 400 22px/1.2 var(--g-disp); text-transform: uppercase; letter-spacing: .02em; color: #FFFFFF; }
.cdth-g-foot a { color: #FFFFFF; font-weight: 700; }

/* Mentre es cerca */
.cdth-g.is-searching .cdth-g-sec { background: #FFFFFF; border-bottom: 1px solid var(--cdth-line); }
.cdth-g.is-searching .cdth-g-tiles { padding-bottom: 0; }

/* Aparició suau */
.cdth-g.has-reveal :is(.cdth-targeta, .cdth-valors li, .cdth-ruta li, .cdth-cal-mes, .cdth-persona, .cdth-fotos figure):not(.is-in) { opacity: 0; transform: translateY(18px); }
.cdth-g.has-reveal :is(.cdth-targeta, .cdth-valors li, .cdth-ruta li, .cdth-cal-mes, .cdth-persona, .cdth-fotos figure) { transition: opacity .6s ease, transform .6s ease; }
.cdth-g.has-reveal .cdth-tab[hidden] * { transition: none; }

/* wpautop: salts de línia entre blocs */
:is(.cdth-persones, .cdth-targetes, .cdth-duo, .cdth-fotos, .cdth-xifres2, .cdth-tabs) > :is(br, p:empty) { display: none; }

/* ── Tauleta ── */
@media (max-width: 1000px) {
	.cdth-g-tiles ul { grid-template-columns: repeat(4, 1fr); }
	.cdth-valors { grid-template-columns: repeat(3, 1fr); }
	.cdth-xifres2 { grid-template-columns: repeat(2, 1fr); }
	.cdth-xifres2 li:nth-child(3) { box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
	.cdth-ruta { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
	.cdth-ruta::before { left: 20px; right: auto; top: 20px; bottom: 30px; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--cdth-red) 0 14px, transparent 14px 22px); }
	.cdth-ruta li { display: grid; grid-template-columns: 46px 80px 1fr; grid-template-rows: auto auto; align-items: baseline; padding: 0 0 18px; text-align: left; }
	.cdth-ruta li::before { grid-row: span 2; margin: 0 0 0 9px; width: 28px; height: 28px; align-self: start; }
	.cdth-ruta time { grid-row: span 2; height: auto; line-height: 1.1; }
	.cdth-ruta b, .cdth-ruta span { grid-column: 3; }
	.cdth-ruta-fi::before { margin: -4px 0 0 3px !important; }
	.cdth-tab--foto { grid-template-columns: 1fr; }
	.cdth-tab-foto { position: relative; top: 0; }
	.cdth-tab-foto img { aspect-ratio: 16 / 9; }
	.cdth-promo:has(figure) { grid-template-columns: 1fr; }
	.cdth-promo figure img { aspect-ratio: 16 / 9; }
}

/* ── Mòbil ── */
@media (max-width: 760px) {
	.cdth-g { font-size: 15.5px; }
	.cdth-g-in { padding: 0 16px; }
	.cdth-g-hero { min-height: 88vh; padding: 100px 0 48px; }
	.cdth-g-escut { top: 84px; }
	.cdth-g-tiles ul { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.cdth-g-tile { aspect-ratio: 16 / 10; }
	.cdth-g-sec-h.has-foto, .cdth-g-sec:nth-of-type(even) .cdth-g-sec-h.has-foto { grid-template-columns: 1fr; }
	.cdth-g-sec:nth-of-type(even) .cdth-g-sec-f { order: 0; }
	.cdth-g-sec-f::before { display: none; }
	.cdth-g-edit { display: none; }
	.cdth-valors { grid-template-columns: repeat(2, 1fr); }
	.cdth-valors li:last-child { grid-column: span 2; }
	.cdth-duo, .cdth-passos { grid-template-columns: 1fr; }
	.cdth-fotos--3 { grid-template-columns: 1fr 1fr; }
	.cdth-fotos--3 figure:first-child { grid-column: span 2; grid-row: auto; }
	.cdth-fotos--3 figure:first-child img { aspect-ratio: 3 / 2; }
	.cdth-targetes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.cdth-targeta-f + .cdth-targeta-t b { font-size: 16px; left: 8px; top: 8px; max-width: calc(100% - 16px); }
	.cdth-targeta-t { padding: 10px 12px 12px; }
	.cdth-targeta-t small { font-size: 13px; }
	.cdth-cats li { grid-template-columns: 1fr; gap: 2px; }
	.cdth-tabs-nav [role="tab"] { padding: 10px 14px 8px !important; }
	.cdth-ruta li { grid-template-columns: 46px 68px 1fr; }
	.cdth-ruta time { font-size: 22px; }
	.cdth-g-foot .cdth-g-in { align-items: flex-start; }
}
@media (max-width: 420px) {
	.cdth-targetes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.cdth-g *, .cdth-dg * { transition: none !important; }
	.cdth-g.has-reveal * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Contacte  [cdth_contacte]
   Mateix sistema que Qui som, Història i Promo (classes .cdth-pp-* del CSS
   addicional). Aquí només hi ha les peces pròpies de la pàgina (.cdth-pc).
   ========================================================================== */
.cdth-pc button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
.cdth-pc svg { flex: none; }
.cdth-pc .cdth-pp-lead { margin-bottom: 32px; }

/* Recepció: la quarta targeta és l'horari, sense enllaç */
.cdth-pc .cdth-pc-hor { cursor: default; }
.cdth-pc .cdth-pc-hor:hover { border-color: #E6E8EB; box-shadow: none; transform: none; }
.cdth-pc-hor dl { width: 100%; margin: 4px 0 0; }
.cdth-pc-hor dl div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #F0F1F3; font-size: 14px; line-height: 1.35; }
.cdth-pc-hor dl div:last-child { border-bottom: 0; }
.cdth-pc-hor dt { margin: 0; color: #3A3D44; }
.cdth-pc-hor dd { margin: 0; font-weight: 800; white-space: nowrap; }
.cdth-pc .cdth-pp-ci em.cdth-ct-estat { display: inline-flex; align-items: center; gap: 7px; padding-top: 10px; color: #5E6168; }
.cdth-pc .cdth-pp-ci em.cdth-ct-estat::after { content: none; }
.cdth-pc .cdth-pp-ci em.cdth-ct-estat[hidden] { display: none; }
.cdth-ct-estat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9AA0A8; }
.cdth-pc .cdth-pp-ci em.cdth-ct-estat.is-obert { color: #11632F; }
.cdth-ct-estat.is-obert::before { background: #1E9E4A; animation: cdthPcPols 2s ease-out infinite; }
@keyframes cdthPcPols { 0% { box-shadow: 0 0 0 0 rgba(30,158,74,.5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(30,158,74,0); } }

/* En què et podem ajudar? */
.cdth-pc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.cdth-pc .cdth-pc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cdth-pc-cards li { margin: 0; }
.cdth-pc .cdth-ct-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; margin: 0; padding: 20px; border: 1px solid #E6E8EB; border-radius: 12px; background: #FFFFFF; color: #1F1A1B; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.cdth-pc .cdth-ct-card:hover { border-color: #CC0033; box-shadow: 0 10px 24px rgba(31,26,27,.1); transform: translateY(-3px); }
.cdth-pc .cdth-ct-card:focus-visible { outline: 3px solid rgba(204,0,51,.35); outline-offset: 2px; }
.cdth-pc .cdth-ct-card[aria-pressed="true"] { border-color: #CC0033; background: #FFF5F7; box-shadow: inset 0 0 0 1px #CC0033; transform: none; }
.cdth-ct-card-i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 50%; background: #CC0033; color: #FFFFFF; }
.cdth-ct-card-i .cdth-ct-ico, .cdth-ct-qui-i .cdth-ct-ico { width: 22px; height: 22px; stroke-width: 2; }
.cdth-ct-card-t { display: flex; flex-direction: column; gap: 4px; }
.cdth-ct-card-t b { font-size: 16px; font-weight: 800; line-height: 1.3; }
.cdth-ct-card-t span { font-size: 14px; line-height: 1.5; color: #5E6168; }

.cdth-ct-panel { position: sticky; top: 24px; scroll-margin-top: 90px; padding: 26px; border: 1px solid #E6E8EB; border-radius: 14px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(31,26,27,.06); }
.cdth-ct-form { display: grid; gap: 16px; margin: 0; }
.cdth-ct-form[hidden], .cdth-ct-done[hidden], .cdth-ct-qui[hidden], .cdth-ct-msg[hidden] { display: none !important; }
.cdth-ct-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.cdth-ct-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cdth-pc .cdth-ct-f label { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5E6168; }
.cdth-ct-f label span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cdth-pc .cdth-ct-f input, .cdth-pc .cdth-ct-f textarea, .cdth-pc .cdth-ct-f select { width: 100%; max-width: none; height: auto; min-height: 48px; margin: 0; padding: 11px 14px; border: 1px solid #D5D8DD; border-radius: 8px; background: #FFFFFF; box-shadow: none; font: 500 16px/1.4 Montserrat, "Helvetica Neue", Arial, sans-serif; color: #1F1A1B; transition: border-color .2s, box-shadow .2s; }
.cdth-pc .cdth-ct-f textarea { min-height: 128px; resize: vertical; }
.cdth-pc .cdth-ct-f input:focus, .cdth-pc .cdth-ct-f textarea:focus, .cdth-pc .cdth-ct-f select:focus { outline: none; border-color: #CC0033; box-shadow: 0 0 0 3px rgba(204,0,51,.14); }
.cdth-ct-sel { position: relative; }
.cdth-ct-sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid #CC0033; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.cdth-pc .cdth-ct-sel select { -webkit-appearance: none; appearance: none; padding-right: 42px; font-weight: 700; cursor: pointer; }
.cdth-pc .is-err input, .cdth-pc .is-err textarea, .cdth-pc .is-err select { border-color: #CC0033; background: #FFF7F9; }
.cdth-ct-check.is-err span { color: #CC0033; }
.cdth-ct-qui { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-left: 3px solid #CC0033; border-radius: 0 10px 10px 0; background: #F5F6F7; animation: cdthPpUp .4s ease both; }
.cdth-ct-qui-i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #CC0033; color: #FFFFFF; }
.cdth-ct-qui-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cdth-ct-qui-t small { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #CC0033; }
.cdth-ct-qui-t b { font-size: 16px; font-weight: 800; }
.cdth-ct-qui-t em { font-size: 14px; font-style: normal; color: #5E6168; }
.cdth-ct-qui-t em:empty { display: none; }
.cdth-pc .cdth-ct-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13.5px; line-height: 1.5; color: #3A3D44; cursor: pointer; }
.cdth-ct-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #CC0033; }
.cdth-ct-check a { font-weight: 700; }
.cdth-ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cdth-pc .cdth-ct-msg, .cdth-pc .cdth-ct-err { margin: 0; padding: 10px 14px; border-radius: 8px; background: #FFF0F3; color: #A3002A; font-size: 14px; font-weight: 600; line-height: 1.45; }
.cdth-pc .cdth-ct-send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 2px 0 0; padding: 0 22px; border: 0; border-radius: 8px; background: #CC0033; color: #FFFFFF; font: 800 14.5px/1 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.cdth-pc .cdth-ct-send:hover, .cdth-pc .cdth-ct-send:focus-visible { background: #A3002A; }
.cdth-ct-send svg { transition: transform .3s; }
.cdth-ct-send:hover svg { transform: translate(3px, -3px); }
.cdth-ct-form.is-sending .cdth-ct-send { opacity: .7; cursor: progress; }
.cdth-ct-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 10px; text-align: center; outline: none; animation: cdthPpUp .5s ease both; }
.cdth-ct-done > svg { width: 56px; height: 56px; color: #CC0033; }
.cdth-ct-done b { font-size: 22px; font-weight: 800; }
.cdth-pc .cdth-ct-done p { max-width: 380px; margin: 0; font-size: 15px; color: #3A3D44; }
.cdth-pc .cdth-ct-again { margin-top: 10px; padding: 12px 18px; border: 2px solid #E6E8EB; border-radius: 8px; background: #FFFFFF; color: #CC0033; font: 800 13px/1 Montserrat, sans-serif; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }

/* Directori de correus: agrupat per esport i serveis, amb el filet vermell de les xifres de Qui som */
.cdth-pc .cdth-pc-dir-h { margin: 34px 0 14px; padding: 0; font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important; font-size: 13px; line-height: 1.3; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5E6168; }
.cdth-pc .cdth-pc-dir-h:first-of-type { margin-top: 0; }
.cdth-pc .cdth-pc-dir { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cdth-pc .cdth-pc-dir--club { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cdth-pc-dir li { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px 20px; border-left: 3px solid #CC0033; border-radius: 0 10px 10px 0; background: #F5F6F7; line-height: 1.35; }
.cdth-pc-dir-t { display: flex; align-items: center; gap: 10px; }
.cdth-pc-dir-t i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #CC0033; color: #FFFFFF; }
.cdth-pc-dir-t .cdth-ct-ico { width: 19px; height: 19px; stroke-width: 2; }
.cdth-pc-dir-t b { font-size: 17px; font-weight: 800; }
.cdth-pc-dir-p { display: flex; flex-direction: column; gap: 1px; }
.cdth-pc-dir-p + .cdth-pc-dir-p { padding-top: 12px; border-top: 1px solid #E3E5E8; }
.cdth-pc-dir-p strong { font-size: 15px; font-weight: 700; color: #1F1A1B; }
.cdth-pc-dir-p small { font-size: 13.5px; color: #5E6168; }
.cdth-pc .cdth-ct-mail { margin-top: 4px; font-size: 14.5px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.cdth-pc .cdth-ct-mail:hover, .cdth-pc .cdth-ct-mail:focus-visible { text-decoration: underline; }

/* Com arribar-hi */
.cdth-pc .cdth-pc-arr { align-items: stretch; }
.cdth-pc .cdth-pc-arr > div { align-self: center; }
.cdth-pc .cdth-pc-adr { display: flex; gap: 14px; margin: 6px 0 24px; font-style: normal; font-size: 16px; line-height: 1.55; }
.cdth-pc-adr i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #CC0033; color: #FFFFFF; }
.cdth-pc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cdth-pc .cdth-pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 8px; background: #CC0033; color: #FFFFFF; font-size: 14.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; transition: background .2s, border-color .2s; }
.cdth-pc .cdth-pc-btn:hover, .cdth-pc .cdth-pc-btn:focus-visible { background: #A3002A; }
.cdth-pc-btn svg { width: 18px; height: 18px; }
.cdth-pc .cdth-pc-btn--o { background: #FFFFFF; color: #CC0033; border: 2px solid #E6E8EB; }
.cdth-pc .cdth-pc-btn--o:hover, .cdth-pc .cdth-pc-btn--o:focus-visible { background: #FFFFFF; border-color: #CC0033; }
.cdth-pc .cdth-pc-mapa { position: relative; min-height: 340px; margin: 0; overflow: hidden; border-radius: 16px; background: #A3002A; box-shadow: 0 18px 40px rgba(31,26,27,.18); }
.cdth-pc .cdth-pc-mapa img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: 50% 30%; animation: cdthPcZoom 26s ease-in-out infinite alternate; }
@keyframes cdthPcZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.cdth-pc-mapa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(20,10,12,.65) 100%); }
.cdth-pc-mapa figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 12px; color: #FFFFFF; line-height: 1.3; }
.cdth-pc-mapa figcaption b { display: block; font-size: 17px; font-weight: 800; }
.cdth-pc-mapa figcaption small { display: block; font-size: 12.5px; font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }
.cdth-pc-pin { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #CC0033; color: #FFFFFF; }
.cdth-pc-pin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #FFFFFF; animation: cdthP74Ring 2.4s ease-out infinite; }

/* Tauleta i mòbil (mateixos punts que les altres pàgines) */
@media (max-width: 63.938em) {
	.cdth-pc-grid { grid-template-columns: 1fr; }
	.cdth-ct-panel { position: static; padding: 22px; }
	.cdth-pc .cdth-pc-dir, .cdth-pc .cdth-pc-dir--club { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cdth-pc .cdth-pc-mapa { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 40em) {
	.cdth-pc .cdth-pc-cards { grid-template-columns: 1fr; gap: 10px; }
	.cdth-pc .cdth-ct-card { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
	.cdth-pc .cdth-ct-card-i { margin: 0; flex: none; }
	.cdth-ct-card-t span { font-size: 13.5px; }
	.cdth-ct-row { grid-template-columns: 1fr; }
	.cdth-ct-panel { padding: 18px; }
	.cdth-pc .cdth-pc-dir, .cdth-pc .cdth-pc-dir--club { grid-template-columns: 1fr; }
	.cdth-pc .cdth-pc-mapa { aspect-ratio: 4 / 3; }
	.cdth-pc-btns .cdth-pc-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.cdth-pc *, .cdth-pc *::before { animation: none !important; transition: none !important; }
}
@media (min-width: 40.0625em) { .cdth-pc .cdth-pc-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Les franges a tota l'amplada (100vw) no han de crear desplaçament horitzontal */
body:has(.cdth-pc) { overflow-x: clip; }
@media (min-width: 64em) { .cdth-pc .cdth-pp-cont:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
