@charset "utf-8";
/* ==========================================================================
   Això és Palma – estils base
   Disseny de referència: 1440 px (pages/desktop/NN.jpg) i 440 px (pages/responsive/NN.jpg)
   Mides i posicions extretes del fitxer Figma (figma/*.fig); colors, de les captures JPG.
   Founders Grotesk: cap-height = ascendent = 0,63 em. Per col·locar el text al píxel:
   posició CSS de la caixa = alçada de majúscula de Figma − (line-height − font-size) / 2
   ========================================================================== */

:root {
    --yellow: #f9b820;
    --green: #1bad6f;
    --green-light: #9dd278;
    --blue: #58aae6;
    --salmon: #ef986b;
    --pink: #ffc0cb;
    --sky: #90c8d5;
    --black: #000000;
    --bg: var(--green);              /* color de fons de la secció (el fan servir xips i botons actius) */
    --bar: 90px;                     /* barres grogues laterals */
    --gut: 30px;                     /* marge interior entre barres i contingut (1200 px de contingut a 1440) */
    --topbar-h: 72px;                /* capçalera mòbil */
    --ease-out: cubic-bezier(0, 0, .58, 1);      /* Figma OUT_CUBIC (smart animate) */
    --ease-inout: cubic-bezier(.42, 0, .58, 1);  /* Figma INOUT_CUBIC */
    --menu-t: .6s;                   /* obertura del menú (Figma: smart animate 600 ms) */
}

/* ---------- reset (com exemple) ---------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body { padding: 0; margin: 0; background: var(--blue); color: var(--black); font-family: var(--ff-sans); font-weight: 400; font-size: 22px; line-height: 24px; letter-spacing: .01em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-kerning: normal; }
article, aside, details, figcaption, figure, footer, header, main, nav, section { display: block; margin: 0; padding: 0; }
img, svg { border: 0; max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { padding: 0; margin: 0; font-weight: 400; }
ul, ol { list-style: none; padding: 0; margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; }
input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
html.dialog-open { overflow: hidden; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.upper { text-transform: uppercase; }

/* ---------- focus ---------- */
:focus:not(:focus-visible) { outline-color: transparent; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; box-shadow: 0 0 0 6px #ffffff; }
.skip-link { position: absolute; left: 16px; top: -120px; z-index: 1000; background: var(--black); color: #ffffff; padding: 12px 20px; font-size: 20px; line-height: 24px; }
.skip-link:focus { top: 0; }
h2[tabindex="-1"]:focus, .act-card[tabindex="-1"]:focus, .espai-card[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* ---------- colors de secció ---------- */
.bg-green { --bg: var(--green); background-color: var(--green); }
.bg-green-light { --bg: var(--green-light); background-color: var(--green-light); }
.bg-blue { --bg: var(--blue); background-color: var(--blue); }
.bg-salmon { --bg: var(--salmon); background-color: var(--salmon); }
.bg-pink { --bg: var(--pink); background-color: var(--pink); }
.bg-sky { --bg: var(--sky); background-color: var(--sky); }
.bg-yellow { --bg: var(--yellow); background-color: var(--yellow); }

/* ==========================================================================
   Estructura: barres grogues laterals + contingut + peu
   ========================================================================== */
#page { position: relative; min-height: 100vh; background: var(--blue); }
.site-shell { position: relative; padding: 0 var(--bar); }
.site-header { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.bar { position: absolute; top: 0; bottom: 0; width: var(--bar); background: var(--yellow); pointer-events: auto; }
.bar--left { left: 0; }
.bar--right { right: 0; }
.bar-in { position: sticky; top: 0; height: 100vh; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.bar-logo { display: block; width: 74px; margin-left: -2px; }
.bar-logo img { width: 74px; height: auto; }
.bar-palma { width: 58px; height: auto; margin-right: 2px; }
.topbar { display: none; }

/* botó hamburguesa: tres columnes (Figma «stat=columns») que es transformen en X («stat=x») */
.burger { position: absolute; top: 24px; left: 8px; width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.burger-icon { position: relative; display: block; width: 31px; height: 31px; }
.burger-icon i { position: absolute; top: 0; left: 0; width: 5px; height: 31px; background: currentColor; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.burger-icon i:nth-child(2) { left: 13px; }
.burger-icon i:nth-child(3) { left: 26px; }
.burger:hover .burger-icon i { background: currentColor; }
.is-x .burger-icon i:nth-child(1) { transform: translateX(13px) rotate(-45deg); }
.is-x .burger-icon i:nth-child(2) { opacity: 0; }
.is-x .burger-icon i:nth-child(3) { transform: translateX(-13px) rotate(45deg); }
html.menu-open .site-header .burger { visibility: hidden; }

main { display: block; position: relative; }
.wrap { padding-left: var(--gut); padding-right: var(--gut); }
.sec { position: relative; z-index: 0; }

/* ---------- tipografia (TIPO DESK de Figma) ---------- */
.t-title { font-size: 82px; line-height: 68px; letter-spacing: -.03em; text-transform: uppercase; }
.t-heading { font-size: 48px; line-height: 40px; letter-spacing: -.03em; text-transform: uppercase; }
.t-destacat { font-size: 36px; line-height: 33px; letter-spacing: 0; text-transform: uppercase; }
.t-body { font-size: 22px; line-height: 24px; letter-spacing: .01em; }
.t-label { font-size: 22px; line-height: 24px; letter-spacing: 0; text-transform: uppercase; }
.t-compl { font-size: 24px; line-height: 22px; letter-spacing: 0; text-transform: uppercase; }
.t-small { font-size: 18px; line-height: 19px; letter-spacing: 0; }
.sec-title { padding-top: 68px; }

/* ---------- molla de pa ---------- */
.breadcrumb { padding-top: 40px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: 24px; line-height: 22px; text-transform: uppercase; }
.breadcrumb li { display: flex; align-items: center; min-width: 0; }
/* la fletxa va centrada a l'alçada de majúscula (Founders Grotesk té les majúscules baixes dins la caixa) */
.breadcrumb li + li::before { content: ''; flex: none; width: .625em; height: .625em; margin: 0 .42em; transform: translateY(-.2em); background: url('../images/ico-arrow.svg') center / contain no-repeat; }
.breadcrumb a { display: inline-block; padding: 1px 0; }
.breadcrumb a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-title { margin-top: 33px; }

/* ---------- botons ---------- */
/* «button»: vora d'1 px; en hover s'omple de negre i el text agafa el color del fons (Figma: blend multiply) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--black); padding: 12.55px 7px 1.45px; font-size: 30px; line-height: 18.9px; letter-spacing: .02em; text-transform: uppercase; color: var(--black); background: transparent; transition: background-color .3s var(--ease-inout), color .3s var(--ease-inout); white-space: nowrap; }
.btn svg { flex: none; width: 17px; height: 17px; margin-top: -11px; fill: currentColor; }
.btn:hover { background: var(--black); color: var(--bg); }
.btn:focus-visible { outline-offset: 3px; }
.btn--more { gap: 6px; padding-top: 14.55px; padding-bottom: 3.45px; }
.btn--more svg { width: 19px; height: 19px; margin-top: -10px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; }
.btn-row--center { justify-content: center; }
.only-mobile { display: none !important; }

/* enllaç «Apunta-t’hi» (button-light) */
.link-light { position: relative; z-index: 2; display: inline-block; font-weight: 300; font-size: 24px; line-height: 20px; letter-spacing: 0; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; padding: 2px 0; }
.link-light:hover { text-decoration-thickness: 2px; }

/* xips (filtres i etiquetes) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; height: 33px; border: 1px solid var(--black); border-radius: 100px; padding: 12.44px 12px 3.56px; font-size: 24px; line-height: 15.12px; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; transition: background-color .3s var(--ease-inout), color .3s var(--ease-inout); }
button.chip:hover, a.chip:hover { background: rgba(0, 0, 0, .12); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--black); color: var(--bg); }
.chip--sm { height: 23px; padding: 8.96px 8px 2.04px; font-size: 16px; line-height: 10.08px; border-color: rgba(0, 0, 0, .72); border-radius: 72px; }

/* ---------- onades (camí exacte de Figma, repetit en mirall: un període = 2 amplades) ----------
   Només les cards la mouen: en hover la màscara es desplaça un període (Figma: 3 s, ease-in-out) i torna igual de lenta */
.wave { position: relative; overflow: hidden; -webkit-mask-image: var(--wave); mask-image: var(--wave); -webkit-mask-size: 200% 100%; mask-size: 200% 100%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: 0 0; mask-position: 0 0; }
.wave--card, .wave--espai { transition: -webkit-mask-position 3s var(--ease-inout), mask-position 3s var(--ease-inout); }
.wave picture { display: block; height: 100%; }
.wave img { width: 100%; height: 100%; object-fit: cover; }
.wave--hero { aspect-ratio: 1198 / 899; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2396' height='899' viewBox='0 0 2396 899' preserveAspectRatio='none'%3E%3Cpath d='M0 145.83C592.15 145.83 596.88 0 1198 0C1799.12 0 1803.85 145.83 2396 145.83L2396 899C1723.93 899 1719.68 712.15 1198 712.15C676.32 712.15 672.07 899 0 899Z'/%3E%3C/svg%3E"); }
.wave--projecte { aspect-ratio: 1200 / 751; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='751' viewBox='0 0 2400 751' preserveAspectRatio='none'%3E%3Cpath d='M0 128.98C555 128.98 582.86 0 1200 0C1817.14 0 1845 128.98 2400 128.98L2400 751C1845 751 1735.71 609.74 1200 609.74C664.29 609.74 555 751 0 751Z'/%3E%3C/svg%3E"); }
.wave--historia { aspect-ratio: 488 / 711; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='976' height='711' viewBox='0 0 976 711' preserveAspectRatio='none'%3E%3Cpath d='M0 122.05C225.7 122.05 237.03 0 488 0C738.97 0 750.3 122.05 976 122.05L976 710.66C750.3 710.66 705.86 576.99 488 576.99C270.14 576.99 225.7 710.66 0 710.66Z'/%3E%3C/svg%3E"); }
.wave--espai { aspect-ratio: 285 / 348; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='570' height='348' viewBox='0 0 570 348' preserveAspectRatio='none'%3E%3Cpath d='M0 0C146.57 0 153.19 59.79 285 59.79C416.81 59.79 423.43 0 570 0L570 282.67C442.77 282.67 416.81 348.16 285 348.16C153.19 348.16 127.23 282.67 0 282.67Z'/%3E%3C/svg%3E"); }
.wave--card { aspect-ratio: 387 / 460; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='774' height='460' viewBox='0 0 774 460' preserveAspectRatio='none'%3E%3Cpath d='M0 67.14C182.98 67.14 193.06 0 387 0C580.94 0 591.02 67.14 774 67.14L774 460C578.67 460 569.52 399.19 387 399.19C204.48 399.19 195.33 460 0 460Z'/%3E%3C/svg%3E"); }
.wave--insc { aspect-ratio: 590 / 793; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1180' height='793' viewBox='0 0 1180 793' preserveAspectRatio='none'%3E%3Cpath d='M0 136C271.4 136 283.2 0 590 0C896.8 0 908.6 136 1180 136L1180 793C908.6 793 849.6 644 590 644C330.4 644 271.4 793 0 793Z'/%3E%3C/svg%3E"); }
.wave--form { aspect-ratio: 407 / 775; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='814' height='775' viewBox='0 0 814 775' preserveAspectRatio='none'%3E%3Cpath d='M0 133C187.22 133 195.36 0 407 0C618.64 0 626.78 133 814 133L814 775C626.78 775 586.08 629.5 407 629.5C227.92 629.5 187.22 775 0 775Z'/%3E%3C/svg%3E"); }
@media (hover: hover) {
    .act-card:hover .wave, .espai-card:hover .wave { -webkit-mask-position: 200% 0; mask-position: 200% 0; }
}
.act-card:focus-within .wave, .espai-card:focus-within .wave { -webkit-mask-position: 200% 0; mask-position: 200% 0; }

/* ---------- targeta d'activitat (Activitat:content, 387 × 613; s'escala amb l'amplada) ---------- */
.act-card { --u: calc(100cqi / 387); position: relative; display: flow-root; min-height: calc(613 * var(--u)); }
.act-wrap { container-type: inline-size; }
.act-media { margin-top: calc(7 * var(--u)); }
.act-date { position: absolute; top: calc(15 * var(--u)); left: calc(6 * var(--u)); z-index: 1; font-weight: 300; font-size: max(14px, calc(20 * var(--u))); line-height: max(14px, calc(20 * var(--u))); letter-spacing: 0; }
.act-cat { position: absolute; top: calc(440 * var(--u)); right: calc(14 * var(--u)); z-index: 1; font-weight: 300; font-size: max(14px, calc(20 * var(--u))); line-height: max(14px, calc(20 * var(--u))); letter-spacing: 0; text-transform: uppercase; text-align: right; }
.act-title { margin-top: calc(17.5 * var(--u)); max-width: calc(368 * var(--u)); font-size: max(22px, calc(36 * var(--u))); line-height: max(20px, calc(33 * var(--u))); letter-spacing: 0; text-transform: uppercase; }
.act-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.act-place { font-size: max(15px, calc(22 * var(--u))); line-height: max(16px, calc(24 * var(--u))); letter-spacing: 0; text-transform: uppercase; }
.act-card .link-light { margin-top: calc(9 * var(--u)); font-size: max(16px, calc(24 * var(--u))); line-height: max(14px, calc(20 * var(--u))); }

/* ---------- targeta d'espai / lloc (Component 3, 285 × 492) ---------- */
.espai-wrap { container-type: inline-size; }
.espai-card { --u: calc(100cqi / 285); position: relative; }
.espai-type { position: relative; margin-top: calc(-21 * var(--u)); font-size: max(15px, calc(22 * var(--u))); line-height: max(16px, calc(24 * var(--u))); letter-spacing: 0; text-transform: uppercase; }
.espai-title { margin-top: calc(15.5 * var(--u)); font-size: max(22px, calc(36 * var(--u))); line-height: max(20px, calc(33 * var(--u))); letter-spacing: 0; text-transform: uppercase; }
.espai-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.espai-card:hover .espai-title a, .espai-title a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.espai-text { margin-top: calc(7 * var(--u)); max-width: calc(249 * var(--u)); font-size: max(14px, calc(18 * var(--u))); line-height: max(15px, calc(19 * var(--u))); letter-spacing: 0; }

/* graelles de targetes */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }

/* ==========================================================================
   Peu
   ========================================================================== */
.site-footer { position: relative; z-index: 41; background: var(--blue); min-height: 338px; padding: 25.5px 0 40px; }
.footer-in { display: grid; grid-template-columns: 25.58% 25.17% 25.42% 1fr; padding: 0 calc(var(--bar) + var(--gut)); font-size: 18px; line-height: 19px; letter-spacing: 0; }
.f-title { font-size: 18px; line-height: 19px; text-transform: uppercase; }
.f-col ul { margin-top: 19px; }
.f-col a { display: inline-block; padding: 3px 0; }
.f-col a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.f-col address { margin-top: 22px; }
.f-col address a { padding: 0; }
.f-addr { display: block; }
.f-addr a { display: inline-block; min-height: 19px; }
.f-col address .f-line { display: block; margin-top: 6px; }
.f-social a { display: inline-flex; align-items: center; gap: 10px; padding: 3px 0; }
.f-social img { width: 17px; height: 17px; }
.f-social ul { margin-top: 19px; }

/* ==========================================================================
   Menú (diàleg): el panell verd entra des de la dreta i la barra «PALMA» llisca
   fins a tocar la barra «AIXÒ ÉS» (Figma Nav.2: smart animate 600 ms, ease-out)
   ========================================================================== */
.menu { position: fixed; inset: 0; z-index: 200; overflow: hidden; }
.menu-left { position: absolute; top: 0; bottom: 0; left: 0; width: var(--bar); background: var(--yellow); display: flex; align-items: center; justify-content: center; z-index: 3; }
.menu-left img { width: 74px; margin-left: -2px; }
.menu-track { position: absolute; inset: 0; transform: translateX(calc(100% - 178px)); transition: transform var(--menu-t) var(--ease-out); }
.menu.is-open .menu-track { transform: translateX(0); }
.menu-bar { position: absolute; top: 0; bottom: 0; left: 88px; width: var(--bar); background: var(--yellow); display: flex; align-items: center; justify-content: center; z-index: 2; }
.menu-bar img { width: 58px; margin-right: 2px; }
.menu-panel { position: absolute; top: 0; bottom: 0; left: 115px; right: 0; background: var(--green); overflow-y: auto; overscroll-behavior: contain; }
.menu-in { position: relative; min-height: 100%; padding: 61px 0 54px 119px; display: flex; flex-direction: column; }
.menu-nav li { font-size: 70px; line-height: 84px; letter-spacing: 0; text-transform: uppercase; }
.menu-nav a { display: inline-block; transition: opacity .3s var(--ease-inout); }
.menu-nav a:hover, .menu-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu-lang { margin-top: auto; padding-top: 40px; display: flex; align-items: center; font-size: 40px; line-height: 40px; text-transform: uppercase; padding-left: 6px; }
.menu-lang ul { display: flex; align-items: center; }
.menu-lang li + li::before { content: '|'; display: inline-block; margin: 0 14px 0 17px; }
.menu-lang a { display: inline-block; padding: 2px 0; }
.menu-lang a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.menu-lang a[aria-current] { text-decoration: none; }
.menu-lang a:not([aria-current]) { opacity: .999; }
.menu-social { position: absolute; right: 43px; bottom: 63px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.menu-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 23px; }
.menu-social li:first-child a { margin-top: 0; }
.menu-social img { width: auto; }
.menu-social .s-fb img { height: 30px; }
.menu-social .s-ig img { height: 28px; }
.menu-social .s-x img { height: 24px; }
.menu-social .s-yt img { height: 21px; }
.menu-social a:hover { transform: scale(1.1); }
.menu-top { display: none; }
.menu-close { position: absolute; z-index: 5; }
.menu :focus-visible { outline-color: var(--black); box-shadow: 0 0 0 6px var(--yellow); }

/* ==========================================================================
   Inici
   ========================================================================== */
/* com la landing de manteniment, el hero fa l'alçada de la finestra; l'amplada sempre va de marge a marge
   (la imatge i l'onada s'estiren per omplir la caixa i el títol s'escala amb la mida més petita) */
.hero-home { display: flex; height: 100vh; height: 100dvh; min-height: 480px; padding: 30px var(--gut); }
.hero-slider { position: relative; flex: 1 1 auto; min-width: 0; container-type: size; }
.hero-slider .swiper, .hero-slider .swiper-wrapper { height: 100%; }
.hero-slider .swiper { overflow: hidden; }
.hero-slide { position: relative; height: 100%; }
.hero-slider .wave--hero { aspect-ratio: auto; height: 100%; }
.hero-next { position: absolute; z-index: 3; top: 38.43%; right: 3.55%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease-out); }
.hero-next img { width: max(24px, 2.92cqi); height: auto; }
.hero-next:hover { transform: translateX(6px); }
.hero-next:focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 6px var(--black); }
.hero-caption { --u: min(calc(100cqi / 1198), calc(100cqh / 899)); position: absolute; right: calc(19 * var(--u)); bottom: calc(4 * var(--u)); width: calc(348 * var(--u)); z-index: 2; }
.hero-caption .t-heading { display: block; font-size: calc(48 * var(--u)); line-height: .8334; }
.hero-link { display: flex; align-items: flex-start; justify-content: space-between; margin-top: calc(1 * var(--u)); font-size: max(13px, calc(22 * var(--u))); line-height: max(15px, calc(24 * var(--u))); letter-spacing: .01em; }
.hero-link svg { flex: none; width: max(10px, calc(16 * var(--u))); height: max(10px, calc(16 * var(--u))); margin: calc(6 * var(--u)) calc(3 * var(--u)) 0 0; }
.hero-link:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-link::after { content: ''; position: absolute; inset: -60px 0 0; }

.home-acts .grid-3 { margin-top: 49px; }
.home-acts .btn-row { margin-top: 51px; }
.home-acts { padding-bottom: 105px; }

/* manifest: carrusel de targetes. El JS ajusta l'amplada perquè sempre quedi un tros de la targeta següent, i la fletxa
   va dins d'aquest tros, a la franja buida de sota: mai tapa el bloc que es llegeix ni cap text */
.home-manifest { padding-bottom: 124px; }
.mf-carousel { position: relative; margin-top: 49px; margin-right: calc(-1 * var(--gut)); overflow: hidden; }
.mf-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mf-track::-webkit-scrollbar { display: none; }
.mf-track:focus-visible { outline-offset: -3px; }
.mf-card { scroll-snap-align: start; }
.mf-card { position: relative; flex: none; width: var(--mf-w, 348px); min-height: 590px; padding: 0 37px 52px 25px; display: flex; flex-direction: column; }
.mf-card:nth-child(4n+1) { background: var(--yellow); }
.mf-card:nth-child(4n+2) { background: var(--green-light); }
.mf-card:nth-child(4n+3) { background: var(--salmon); }
.mf-card:nth-child(4n+4) { background: var(--pink); }
.mf-num { margin-top: 45.5px; font-weight: 300; font-size: 72px; line-height: 31px; letter-spacing: -.03em; }
.mf-title { margin-top: 22px; font-size: 36px; line-height: 31px; letter-spacing: -.03em; text-transform: uppercase; }
.mf-text { margin-top: auto; padding-top: 20px; font-size: 22px; line-height: 24px; letter-spacing: .01em; }
.mf-next { position: absolute; z-index: 3; bottom: 4px; right: calc(var(--mf-peek, 190px) / 2 - 22px); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mf-next img { width: 35px; height: 34px; }
.mf-next[disabled] { display: none; }
.home-manifest .btn-row { margin-top: 54px; }

.home-espais { padding-bottom: 105px; }
.home-espais .espais-row { margin-top: 67px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }

.home-split { display: grid; grid-template-columns: 629fr 631fr; }
.home-news { padding: 0 var(--gut) 83px; }
.news-list { margin-top: 34px; }
.news-item { position: relative; display: grid; grid-template-columns: 183px minmax(0, 1fr); column-gap: 21px; min-height: 120px; }
.news-item + .news-item { margin-top: 16px; }
.news-thumb { width: 183px; height: 120px; background: var(--yellow); }
.news-title { margin-top: 0; max-width: 309px; font-size: 24px; line-height: 22px; letter-spacing: 0; text-transform: uppercase; padding-top: 1px; }
.news-title a::after { content: ''; position: absolute; inset: 0; }
.news-item:hover .news-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-text { margin-top: 3.5px; max-width: 309px; font-size: 18px; line-height: 19px; letter-spacing: 0; }
.home-partners { padding: 0 var(--gut) 60px; }
/* logotips: posicions de Figma en % d'una caixa de 421 × 320 perquè escalin amb l'amplada */
.partners { position: relative; margin-top: 34px; width: 100%; max-width: 421px; aspect-ratio: 421 / 320; }
.partners li { position: absolute; }
.partner-logo { width: 82px; }
.partners .partner-logo { width: 100%; }
.ph-logo { display: block; width: 100%; height: 100%; background: var(--black); }
.ph-logo--rect { width: 181px; height: 63px; }
.partners .ph-logo--rect { width: 100%; height: 100%; }
.ph-logo--circle { width: 80px; height: 80px; border-radius: 50%; }
.partners .ph-logo--circle { width: 100%; height: auto; aspect-ratio: 1; }
.partners .p1 { left: 0; top: 0; width: 19.48%; }
.partners .p2 { left: 35.63%; top: 2.81%; width: 42.99%; height: 19.69%; }
.partners .p3 { left: .48%; top: 40.31%; width: 42.99%; height: 19.69%; }
.partners .p4 { left: 57.01%; top: 40.31%; width: 42.99%; height: 19.69%; }
.partners .p5 { left: .48%; top: 75%; width: 19%; }
.partners .p6 { left: 30.64%; top: 78.44%; width: 42.99%; height: 19.69%; }

/* ==========================================================================
   El projecte
   ========================================================================== */
.proj-hero { padding-bottom: 45px; }
.proj-hero .hero-media { position: relative; margin-top: 28.5px; }
.proj-hero .t-title { position: absolute; left: 6.833%; top: 23.7%; z-index: 2; max-width: 620px; }
.proj-intro { width: 590px; max-width: 100%; margin: -1px 0 0 auto; font-size: 22px; line-height: 24px; letter-spacing: .01em; }

.proj-story { display: grid; grid-template-columns: minmax(0, 594fr) minmax(0, 488fr); column-gap: 118px; align-items: start; padding: 55px var(--gut) 44px; }
.proj-story .t-heading { padding-top: 177px; }
.proj-story-text { margin-top: 26px; }
.proj-story-text p + p { margin-top: 24px; }


.proj-manifest { padding-bottom: 134px; }
.proj-manifest .sec-title { padding-top: 110px; }
.mf-list { margin-top: 43px; }
.mf-row { display: grid; grid-template-columns: 64px minmax(0, 510fr) minmax(0, 506fr); column-gap: 0; padding: 0 82px 0 38px; }
.mf-row:nth-child(4n+1) { background: var(--yellow); }
.mf-row:nth-child(4n+2) { background: var(--green-light); }
.mf-row:nth-child(4n+3) { background: var(--pink); }
.mf-row:nth-child(4n+4) { background: var(--sky); }
.mf-row-num { padding-top: 51.5px; font-size: 48px; line-height: 31px; letter-spacing: -.03em; }
.mf-row-title { padding-top: 52.5px; padding-right: 24px; padding-bottom: 31px; max-width: 410px; font-size: 36px; line-height: 31px; letter-spacing: -.03em; text-transform: uppercase; }
.mf-row-title button { text-align: left; text-transform: inherit; letter-spacing: inherit; cursor: default; }
.mf-row-text { grid-column: 3; padding-top: 49px; padding-bottom: 41.5px; }
.mf-row-title .mf-toggle-ico { display: none; }

.proj-support { padding: 0 var(--gut) 99px; }
.proj-support .sec-title { padding-top: 70px; }
.support-logos { display: grid; grid-template-columns: 98px repeat(3, minmax(0, 217px)); column-gap: clamp(30px, 8.33vw, 120px); align-items: center; margin-top: 58px; }
.support-logos .partner-logo { width: 98px; }
.support-logos .ph-logo--rect { width: 100%; height: auto; aspect-ratio: 217 / 76; }

/* ==========================================================================
   Programa i llocs (llistats)
   ========================================================================== */
.list-page { padding-bottom: 69px; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin-top: 35px; }
.view-switch { display: flex; align-items: center; gap: 0; font-size: 24px; line-height: 22px; text-transform: uppercase; }
.view-switch a, .view-switch button, .view-switch span { display: inline-flex; align-items: center; min-height: 33px; }
.view-switch [aria-current] { opacity: .3; }
.view-switch a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dates-btn { margin-right: 19px; gap: 6px; text-transform: uppercase; }
.dates-btn svg { width: 11px; height: 6px; margin-top: -9px; }
.dates-btn:hover .dates-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.view-switch .vs-list { margin-right: 16px; }
.cards-grid { margin-top: 46px; row-gap: 53px; }
.cards-grid .act-wrap { min-width: 0; }
.list-page .btn-row { margin-top: 54px; }
.results-status { margin-top: 20px; font-size: 18px; line-height: 22px; }
.places-grid { margin-top: 90px; row-gap: 57px; }
.list-page--places { padding-bottom: 82px; }
.list-page--places .btn-row { margin-top: 90px; }
.empty-msg { margin-top: 40px; }

/* calendari (vista calendari i diàleg de dates) */
.cal { border: .8px solid var(--black); }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-month { font-size: 28.8px; line-height: 26.4px; text-transform: uppercase; letter-spacing: 0; }
.cal-nav { display: flex; gap: 0; }
.cal-nav button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.cal-nav svg { width: 8px; height: 14px; }
.cal-nav .cal-next svg { transform: scaleX(-1); }
.cal table { border-collapse: collapse; margin-top: 27px; }
.cal th { padding: 0 0 22px; width: 51.3px; font-weight: 400; font-size: 17.6px; line-height: 19.2px; letter-spacing: .01em; text-align: center; }
.cal th abbr { text-decoration: none; }
.cal td { padding: 0; height: 35px; text-align: center; vertical-align: middle; }
.cal-day { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 17.6px; line-height: 19.2px; letter-spacing: .01em; padding-top: 3px; border: .8px solid transparent; }
.cal-day:hover { border-color: var(--black); }
.cal-day.is-today { border-color: var(--black); }
.cal-day[aria-pressed="true"] { background: var(--black); color: var(--bg); border-color: var(--black); }
.cal-day.is-range { background: rgba(0, 0, 0, .14); }

.prog-cal { display: grid; grid-template-columns: minmax(0, 414px) minmax(0, 1fr); column-gap: 94px; margin-top: 43px; align-items: start; }
.prog-cal .cal { padding: 41.6px 27.4px 31.4px 29.8px; }
.prog-cal .cal-head { padding-left: 8.4px; }
.prog-cal .cal-head { margin-top: 0; }
.prog-cal .cal-nav { margin-right: -14px; }
.prog-cal .cal table { margin-top: 25.4px; }
.cal th { padding-bottom: 12.4px !important; width: 50.8px !important; }

.type-filter { margin-top: 23px; }
.type-filter-btn { display: inline-flex; align-items: center; gap: 15px; font-size: 24px; line-height: 22px; text-transform: uppercase; padding: 3px 0; margin-left: -2px; }
.type-filter-btn svg { width: 11px; height: 6px; margin-top: -8px; transition: transform .3s var(--ease-out); }
.type-filter-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.type-filter-btn:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.type-filter fieldset { border: 0; margin: 14px 0 0; padding: 0; }
.type-filter label { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 20px; line-height: 22px; text-transform: uppercase; cursor: pointer; }
.type-filter input { width: 20px; height: 20px; margin: 0; accent-color: var(--black); }
.prog-cal-main > .view-switch { justify-content: flex-end; margin-top: -4.5px; }
.prog-list { margin-top: 41.5px; }
.agenda-item { position: relative; display: grid; grid-template-columns: 206px minmax(0, 1fr); column-gap: 20px; }
.agenda-item + .agenda-item { margin-top: 42px; }
.agenda-media { width: 206px; height: 206px; overflow: hidden; }
.agenda-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.agenda-item:hover .agenda-media img, .agenda-item:focus-within .agenda-media img { transform: scale(1.08); }
.agenda-body { position: relative; display: flex; flex-direction: column; min-height: 206px; padding-right: 102px; }
.agenda-date { font-size: 20px; line-height: 20px; letter-spacing: 0; padding-left: 2px; }
.agenda-body .chip--sm { position: absolute; top: 0; right: 102px; }
.agenda-title { margin-top: auto; margin-bottom: 5.5px; padding-left: 2px; font-size: 36px; line-height: 33px; text-transform: uppercase; max-width: 364px; }
.agenda-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.agenda-item:hover .agenda-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.agenda-place { margin-top: 0; padding-left: 2px; font-size: 22px; line-height: 24px; letter-spacing: 0; text-transform: uppercase; }
.agenda-body .link-light { margin-top: 5px; align-self: flex-start; margin-bottom: -1px; }
.prog-cal-main .btn-row { margin-top: 50px; padding-right: 102px; }

/* diàleg de dates */
/* centrat en totes dues direccions; margin: auto no retalla el diàleg si no hi cap */
.modal { position: fixed; inset: 0; z-index: 210; display: flex; overflow-y: auto; background: rgba(0, 0, 0, .5); padding: 16px; }
.modal-box { position: relative; flex: none; width: 960px; max-width: 100%; margin: auto; padding: 52.2px 47px 44px; }
.modal-title { font-size: 38.4px; line-height: 32px; letter-spacing: -.03em; text-transform: uppercase; }
.modal-close { position: absolute; top: 37px; right: 39px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 24px; height: 24px; }
.modal-cals { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 414px)); column-gap: 37px; margin-top: 28.8px; }
.modal .cal { padding: 43.4px 27.4px 21.4px 29.8px; min-height: 361px; }
.modal .cal-head { padding-left: 8.4px; }
.modal .cal table { margin-top: 26.6px; }
.modal .cal-nav-prev, .modal .cal-nav-next { position: absolute; top: 50%; width: 30px; height: 44px; display: flex; align-items: center; justify-content: center; margin-top: -22px; }
.modal .cal-nav-prev { left: -40px; }
.modal .cal-nav-next { right: -41px; }
.modal .cal-nav-prev svg, .modal .cal-nav-next svg { width: 7px; height: 13px; }
.modal .cal-nav-next svg { transform: scaleX(-1); }
.modal-clear { position: absolute; top: 49px; right: 100px; font-size: 20px; line-height: 22px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.modal :focus-visible { box-shadow: 0 0 0 6px var(--salmon); }

/* ==========================================================================
   Fitxes (activitat i lloc)
   ========================================================================== */
.fitxa-top { display: grid; grid-template-columns: minmax(0, 630fr) minmax(0, 632fr); min-height: 960px; }
.fitxa-info { padding: 0 62px 44px var(--gut); }
.fitxa-info .breadcrumb { margin-right: -54px; }
.fitxa-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 26px; }
.places-box { display: inline-block; border: 1px solid var(--black); padding: 11px 11px 3px; margin-right: -11px; font-size: 22px; line-height: 14px; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; margin-top: 0; }
.fitxa-title { margin-top: 35px; }
.fitxa-desc { margin-top: 1px; max-width: 499px; }
.fitxa-desc p + p { margin-top: 0; }
.info-box { margin-top: 93px; border: 1px solid var(--black); padding: 23px 16px 24px 24px; max-width: 538px; }
.info-list { display: grid; grid-template-columns: 158px minmax(0, 1fr); column-gap: 23px; row-gap: 6px; }
.info-list dt { font-size: 22px; line-height: 24px; text-transform: uppercase; letter-spacing: 0; }
.info-list dd { font-size: 22px; line-height: 24px; letter-spacing: .01em; overflow-wrap: anywhere; }
.info-list dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.info-list dd a:hover { text-decoration-thickness: 2px; }
.info-box .btn { margin-top: 31px; }
.fitxa-media { position: relative; min-height: 100%; }
.fitxa-media .swiper, .fitxa-media .swiper-wrapper, .fitxa-media .swiper-slide { height: 100%; }
.fitxa-media .fitxa-slider { position: absolute; inset: 0 -2px 0 0; overflow: hidden; }
.fitxa-media img { width: 100%; height: 100%; object-fit: cover; }
.sl-btn { position: absolute; z-index: 3; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease-out); }
.sl-btn img { width: 35px; height: 34px; }
.sl-prev img { transform: scaleX(-1); }
.fitxa-media .sl-prev { left: 41.5px; top: 351px; }
.fitxa-media .sl-next { right: 55.5px; top: 443.5px; }
.sl-prev:hover { transform: translateX(-6px); }
.sl-next:hover { transform: translateX(6px); }
.sl-btn:focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 6px var(--black); }
.sl-btn.swiper-button-disabled { opacity: .35; cursor: default; }
.sl-pause { position: absolute; z-index: 3; bottom: 16px; right: 16px; }

.fitxa-band { display: grid; grid-template-columns: minmax(0, 610fr) minmax(0, 590fr); min-height: 400px; padding: 32px var(--gut) 40px; }
.band-block + .band-block { margin-top: 31px; }
.band-label { font-size: 22px; line-height: 24px; letter-spacing: 0; text-transform: uppercase; }
.band-block p { margin-top: 6px; max-width: 488px; }
.band-block .chips { margin-top: 11px; }
.map-box { position: relative; display: block; margin-top: 6px; border: 1px solid var(--black); aspect-ratio: 590 / 297; overflow: hidden; }
.map-box img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.map-box .map-pin { position: absolute; left: 50%; top: 39.4%; width: 28px; height: 37px; margin-left: -14px; mix-blend-mode: normal; object-fit: contain; }
.map-box:hover { outline: 1px solid var(--black); }
.fitxa-related { padding-bottom: 75px; }
.fitxa-related .sec-title { padding-top: 44px; }
.fitxa-related .grid-3 { margin-top: 29px; }
.fitxa-related .espais-row { margin-top: 42px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
.fitxa--lloc .fitxa-desc { margin-top: 4px; }
.fitxa--lloc .info-box { margin-top: 37px; padding-bottom: 20px; }
.fitxa--lloc .fitxa-band { padding-bottom: 26px; }
.fitxa--lloc .map-box { margin-top: 20px; }
.fitxa--lloc .fitxa-related { padding-bottom: 71px; }

/* ==========================================================================
   Preguntes freqüents
   ========================================================================== */
.faq-page { padding-bottom: 64px; }
.faq-search { position: relative; margin-top: 39px; max-width: 836px; }
.faq-search label { position: absolute; left: 8px; top: 0; height: 52px; display: flex; align-items: center; padding-top: 7px; font-size: 30px; line-height: 30px; text-transform: uppercase; letter-spacing: .02em; pointer-events: none; transition: opacity .2s; }
.faq-search input { display: block; width: 100%; height: 52px; border: 1px solid var(--black); background: transparent; padding: 7px 60px 0 8px; font-size: 30px; line-height: 30px; letter-spacing: .02em; border-radius: 0; -webkit-appearance: none; appearance: none; }
.faq-search input:focus { outline: none; border-width: 3px; padding-left: 6px; padding-right: 58px; }
.faq-search input:focus-visible { box-shadow: none; }
.faq-search.has-value label, .faq-search input:focus + label { opacity: 0; }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search button { position: absolute; right: 1px; top: 1px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.faq-search button svg { width: 17px; height: 17px; }
.faq-page .chips { margin-top: 33px; }
.faq-list { margin-top: 71px; }
.faq-item:nth-child(3n+1) { background: var(--yellow); }
.faq-item:nth-child(3n+2) { background: var(--green-light); }
.faq-item:nth-child(3n+3) { background: var(--sky); }
.faq-q button { position: relative; display: flex; justify-content: space-between; align-items: flex-start; width: 100%; min-height: 85px; padding: 31.5px 31px 22.5px 41px; text-align: left; font-size: 36px; line-height: 31px; letter-spacing: -.03em; text-transform: uppercase; }
.faq-q button:focus-visible { outline-offset: -6px; box-shadow: inset 0 0 0 9px #ffffff; }
.faq-ico { position: relative; flex: none; width: 19px; height: 19px; margin: 1px 0 0 30px; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; background: var(--black); }
.faq-ico::before { left: 0; right: 0; top: 7.96px; height: 2.52px; }
.faq-ico::after { top: 0; bottom: 0; left: 7.92px; width: 2.52px; transition: transform .3s var(--ease-out); }
.faq-q button[aria-expanded="true"] .faq-ico::after { transform: scaleY(0); }
/* desplegable animat: 0fr → 1fr; visibility amaga la resposta tancada del teclat i dels lectors de pantalla */
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease-inout), visibility 0s linear .45s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease-inout), visibility 0s; }
.faq-a-in { min-height: 0; overflow: hidden; }
.faq-a p { max-width: 549px; padding: 40.5px 41px 32px; box-sizing: content-box; }
.faq-empty { margin-top: 40px; }

/* ==========================================================================
   Pàgines legals
   ========================================================================== */
.legal-page { padding-bottom: 93px; }
.legal-body p { max-width: 813px; }
.legal-body h2 { margin-top: 52px; max-width: 830px; }
.legal-body h2:first-child { margin-top: 64px; }
.legal-body h2.is-narrow { max-width: 440px; }
.legal-body h2 + p, .legal-body h2 + .legal-p { margin-top: 9px; }
.legal-body p { font-size: 22px; line-height: 24px; letter-spacing: .01em; }
.legal-data { display: grid; grid-template-columns: 181px minmax(0, 1fr); row-gap: 6px; margin-top: 28px; }
.legal-data dt { font-size: 22px; line-height: 24px; text-transform: uppercase; letter-spacing: 0; }
.legal-data dd { font-size: 22px; line-height: 24px; letter-spacing: .01em; }
.legal-data dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-data .dt-2 { align-self: start; }
.legal-data .dd-2 { align-self: end; }

/* ==========================================================================
   Inscripció
   ========================================================================== */
.insc-page { min-height: 930px; padding-bottom: 47px; }
.insc-grid { display: grid; grid-template-columns: minmax(0, 610fr) minmax(0, 590fr); align-items: start; margin-top: 26px; }
.insc-text { padding-top: 91px; padding-right: 30px; }
.insc-text h1 { font-size: clamp(56px, 5.7vw, 82px); line-height: .83; max-width: 560px; }
.insc-copy { margin-top: 16px; max-width: 460px; }
.insc-copy p + p { margin-top: 24px; }
.insc-text .btn { margin-top: 69px; padding-left: 11px; padding-right: 11px; }

.form-page { padding-bottom: 76px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 692fr) minmax(0, 407fr); column-gap: 8.4%; align-items: start; margin-top: 23px; }
.form-intro p { max-width: 672px; }
.form-intro p + p { margin-top: 24px; }
.form-title { margin-top: 63px; font-size: 36px; line-height: 31px; letter-spacing: -.03em; text-transform: uppercase; }
.form-page .info-box, .done-page .info-box { margin-top: 13px; max-width: 540px; padding: 18px 10px 19px 24px; }
.form-page .info-list dd, .done-page .info-list dd { letter-spacing: 0; }
.form-title--data { margin-top: 80px; }
.form-grid .wave { margin-top: 3px; }
.choice-group { border: 0; margin: 0; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; column-gap: 30px; }
.choice { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: 20px; line-height: 24px; letter-spacing: .01em; cursor: pointer; }
.choice input { flex: none; -webkit-appearance: none; appearance: none; width: 13px; height: 13px; margin: -6px 0 0; border: 1px solid var(--black); background: transparent; cursor: pointer; }
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="radio"]:checked { background: radial-gradient(circle, var(--black) 0 3.5px, transparent 4px); }
.choice input[type="checkbox"]:checked { background: linear-gradient(var(--black), var(--black)) center / 7px 7px no-repeat; }
.choice--check { align-items: flex-start; gap: 12px; font-size: 18px; }
.choice--check input { margin-top: 2px; }
.form-age { margin-top: 12px; }
.field { position: relative; margin-top: 14px; }
.form-age + .field { margin-top: 21px; }
.field input, .field textarea { display: block; width: 100%; height: 43px; border: 1px solid var(--black); border-radius: 0; background: transparent; padding: 8px 7px 0; font-size: 22px; line-height: 24px; letter-spacing: 0; -webkit-appearance: none; appearance: none; transition: box-shadow .25s var(--ease-out); }
.field label { position: absolute; left: 7px; top: 0; height: 43px; display: flex; align-items: center; padding-top: 8px; font-size: 22px; line-height: 24px; text-transform: uppercase; color: rgba(0, 0, 0, .62); pointer-events: none; transition: top .25s var(--ease-out), left .25s var(--ease-out), height .25s var(--ease-out), padding .25s var(--ease-out), font-size .25s var(--ease-out), line-height .25s var(--ease-out), color .25s var(--ease-out), background-color .25s var(--ease-out); }
/* etiqueta flotant: sobre la vora quan hi ha text o focus */
.field input:focus ~ label, .field textarea:focus ~ label, .field.has-value label, .field--float label { top: -6px; left: 28px; height: 13px; padding: 4px 11px 0; font-size: 15px; line-height: 13px; color: var(--black); background: var(--bg); }
/* focus-within: els camps de data i hora de Chrome tenen el focus dins de cada segment */
.field input:focus, .field input:focus-visible, .field input:focus-within, .field input[aria-invalid="true"], .field textarea:focus, .field textarea:focus-visible, .field textarea[aria-invalid="true"] { outline: none; box-shadow: inset 0 0 0 2px var(--black); }
.field textarea { height: auto; min-height: 150px; padding: 12px 7px 6px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.field-row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.choice-group + .field-row { margin-top: 12px; }
.insc-form .form-title { margin-top: 0; }
.insc-form .form-title + .field { margin-top: 18px; }
.insc-form .form-title--sec { margin-top: 56px; }
.field--file { margin-top: 18px; }
.field--file label { position: static; display: block; height: auto; padding: 0; color: var(--black); font-size: 20px; }
.field--file input { height: auto; margin-top: 8px; padding: 8px 7px 5px; font-size: 18px; }
.field--file input::file-selector-button { margin-right: 12px; padding: 5px 8px 1px; border: 1px solid var(--black); background: transparent; color: var(--black); font: inherit; text-transform: uppercase; cursor: pointer; }
.field--file input::file-selector-button:hover { background: var(--black); color: var(--bg); }
.field-hint { margin-top: 4px; font-size: 18px; line-height: 20px; }
.form-grid--long .form-intro { margin-bottom: 63px; }
.form-grid--long .wave { position: sticky; top: 30px; }
.field-error { margin-top: 4px; font-size: 18px; line-height: 20px; }
.field-error::before { content: '✕ '; }
.field + .choice-group { margin-top: 18px; }
.form-question { padding: 0; font-size: 18px; line-height: 24px; letter-spacing: .01em; }
.form-checks { margin-top: 20px; }
.form-checks > .choice + .choice { margin-top: 10px; }
.form-checks > .choice { display: flex; }
.form-page .btn--send { margin-top: 76px; min-width: 204px; }
.form-grid--long .btn--send { margin-top: 56px; padding-left: 11px; padding-right: 11px; }
.form-status { margin-top: 16px; font-size: 18px; line-height: 22px; }
.form-status:empty { display: none; }

.done-page { min-height: 930px; padding-bottom: 60px; }
.done-page .page-title { margin-top: 40px; }
.done-copy { margin-top: 38px; }
.done-page .info-box { margin-top: 20px; }
.done-page .btn { margin-top: 27px; white-space: normal; text-align: left; }
.done-page .btn svg { width: 19px; height: 21px; margin-top: -12px; }
.done-more { margin-top: 39px; font-size: 24px; line-height: 24px; letter-spacing: .01em; }
.done-more a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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