@charset "utf-8";
/* ==========================================================================
   Això és Palma – media queries
   Escriptori (barres laterals): ≥ 1024 px · Mòbil/tauleta (capçalera superior): < 1024 px
   Disseny mòbil de referència: 440 px (pages/responsive/NN.jpg)
   ========================================================================== */

/* ---------- escriptori estret (1024–1439) ---------- */
@media (max-width: 1439px) {
    .menu-nav li { font-size: clamp(52px, 4.86vw, 70px); line-height: 1.2; }
    .proj-hero .t-title { font-size: clamp(60px, 5.7vw, 82px); line-height: .83; }
    .fitxa-info { padding-right: 40px; }
    .fitxa-info .breadcrumb { margin-right: -32px; }
    .prog-cal { column-gap: 48px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
    .agenda-item { grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; }
    .agenda-media { width: 140px; height: 140px; }
    .agenda-body { min-height: 140px; padding-right: 0; }
    .agenda-body .chip--sm { position: static; align-self: flex-start; margin-top: 8px; }
    .agenda-title { margin-top: 10px; font-size: 26px; line-height: 25px; }
    .agenda-place { font-size: 18px; line-height: 20px; }
    .prog-cal-main .btn-row { padding-right: 0; }
}

@media (max-width: 1279px) {
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-espais .espais-row, .fitxa-related .espais-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .home-split { grid-template-columns: minmax(0, 1fr); }
    .home-news { padding-right: var(--gut); }
    .mf-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); padding-right: 40px; }
    .prog-cal { column-gap: 40px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
    .prog-cal .cal { padding-left: 16px; padding-right: 16px; }
    .prog-cal-main .btn-row { padding-right: 0; }
    .fitxa-band { column-gap: 40px; }
    .fitxa-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .fitxa-title { font-size: 64px; line-height: 54px; }
    .info-list { grid-template-columns: 132px minmax(0, 1fr); column-gap: 14px; }
    .info-list dt, .info-list dd, .fitxa-desc { font-size: 19px; line-height: 22px; }
    .fitxa-media .sl-prev { left: 12px; }
    .fitxa-media .sl-next { right: 12px; }
    .modal .cal { padding-left: 12px; padding-right: 12px; }
    .modal .cal th { width: auto !important; }
    .modal .cal table { width: 100%; }
    .list-tools { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Mòbil i tauleta: capçalera groga a dalt, sense barres laterals
   ========================================================================== */
@media (max-width: 1023px) {
    :root { --gut: 36px; }
    body { font-size: 18px; line-height: 24px; }
    .site-shell { padding: 0; }
    .site-header { position: sticky; top: 0; bottom: auto; height: var(--topbar-h); }
    .bar { display: none; }
    .topbar { position: relative; display: flex; align-items: center; height: var(--topbar-h); padding: 0 var(--gut); background: var(--yellow); pointer-events: auto; }
    .topbar-logo { display: block; width: 255px; }
    .topbar-logo img { width: 255px; height: auto; }
    .burger--top { top: 20.5px; left: auto; right: calc(var(--gut) - 12.5px); width: 44px; height: 44px; }
    .burger--top .burger-icon, .menu-close .burger-icon { transform: rotate(90deg) scale(.613); }
    main { min-height: calc(100vh - var(--topbar-h)); }

    /* tipografia mòbil */
    .t-title { font-size: 56px; line-height: 47.6px; }
    .t-heading { font-size: 32px; line-height: 27px; }
    .t-destacat { font-size: 26px; line-height: 25px; }
    .t-body { font-size: 18px; line-height: 24px; }
    .t-label { font-size: 16px; line-height: 19.2px; }
    .sec-title { padding-top: 44px; }
    .breadcrumb { padding-top: 35.7px; }
    .breadcrumb ol { font-size: 16.8px; line-height: 15.4px; }
    .page-title { margin-top: 26px; }
    .btn { font-size: 24px; line-height: 15.12px; padding: 9.88px 6px 1px; gap: 8px; }
    .btn svg { width: 14px; height: 14px; margin-top: -9px; }
    .btn--more { padding-top: 11.9px; padding-bottom: 3px; }
    .btn--more svg { width: 15px; height: 15px; margin-top: -8px; }
    .chip { height: 33px; }
    .link-light { font-size: 20px; line-height: 17px; }

    /* menú mòbil: el panell verd entra des de la dreta sota la capçalera */
    .menu-left, .menu-bar { display: none; }
    .menu-top { display: flex; align-items: center; position: absolute; top: 0; left: 0; right: 0; height: var(--topbar-h); padding: 0 var(--gut); background: var(--yellow); z-index: 4; }
    .menu-track { top: var(--topbar-h); transform: translateX(100%); }
    .menu-panel { left: 0; }
    .menu-in { padding: 56px var(--gut) 52px; }
    .menu-nav li { font-size: 42px; line-height: 36px; }
    .menu-nav li + li { margin-top: 25px; }
    .menu-nav a:hover, .menu-nav a[aria-current] { text-decoration-thickness: 2px; text-underline-offset: 5px; }
    .menu-social { position: static; flex-direction: row; margin-top: auto; padding-top: 40px; margin-left: 5px; }
    .menu-social a { margin-top: 0; margin-right: 11px; }
    .menu-social .s-fb img { height: 23px; }
    .menu-social .s-ig img { height: 21px; }
    .menu-social .s-x img { height: 19px; }
    .menu-social .s-yt img { height: 17px; }
    .menu-lang { margin-top: 32px; padding-top: 0; padding-left: 22px; font-size: 32px; line-height: 32px; }
    .menu-lang li + li::before { margin: 0 12px 0 14px; }

    /* inici */
    /* de marge a marge; la imatge només es retalla si amb el títol no hi cabria a la finestra */
    .hero-home { display: block; height: auto; min-height: 0; padding: 32px var(--gut) 45px; }
    .hero-slider { container-type: inline-size; }
    .hero-slider .swiper, .hero-slider .swiper-wrapper, .hero-slide { height: auto; }
    .hero-home .wave--hero img { position: absolute; inset: 0; }
    .hero-slider .wave--hero { aspect-ratio: auto; min-height: 260px; height: min(calc(100cqi * 506 / 364), calc(100vh - 245px)); height: min(calc(100cqi * 506 / 364), calc(100svh - 245px)); --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='728' height='506' viewBox='0 0 728 506' preserveAspectRatio='none'%3E%3Cpath d='M0 80.17C179.92 80.17 181.35 0 364 0C546.65 0 548.08 80.17 728 80.17L728 505.92C523.8 505.92 522.51 419.25 364 419.25C205.49 419.25 204.2 505.92 0 505.92Z'/%3E%3C/svg%3E"); }
    .hero-caption { position: static; width: 238px; margin-top: 34.8px; }
    .hero-caption .t-heading { font-size: 32px; line-height: 27px; }
    .hero-link { margin-top: 0; font-size: 16px; line-height: 16px; }
    .hero-link svg { width: 12px; height: 12px; margin: 2px 0 0; }
    .hero-link::after { inset: -50px 0 0; }
    .hero-next { top: 36%; right: 6px; }
    .hero-next img { width: 28px; height: 27px; }

    .home-acts .sec-title { padding-top: 55.5px; }
    .home-acts .grid-3, .fitxa-related .grid-3 { grid-template-columns: minmax(0, 1fr); row-gap: 42px; margin-top: 17.5px; }
    .home-acts .btn-row { margin-top: 29px; }
    .home-acts { padding-bottom: 74px; }

    .home-manifest .sec-title { padding-top: 44.5px; }
    .mf-carousel { margin-top: 31.5px; }
    .mf-card { width: var(--mf-w, 278px); min-height: 472px; padding: 0 30px 42px 20px; }
    .mf-num { margin-top: 36.4px; font-size: 57.6px; line-height: 24.8px; }
    .mf-title { margin-top: 17.6px; font-size: 28.8px; line-height: 24.8px; }
    .mf-text { font-size: 17.6px; line-height: 19.2px; }
    .mf-next { bottom: 0; height: 40px; }
    .mf-next img { width: 28px; height: 27px; }
    .home-manifest .btn-row { margin-top: 28px; }
    .home-manifest { padding-bottom: 69px; }

    .home-espais .sec-title { padding-top: 35.5px; }
    .home-espais { padding-bottom: 60px; }
    .h-scroll { display: flex !important; gap: 0 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
    .h-scroll::-webkit-scrollbar { display: none; }
    .h-scroll > * { flex: none; width: 214px; scroll-snap-align: start; }
    .home-espais .espais-row { margin-top: 26.5px; }

    .home-split { grid-template-columns: minmax(0, 1fr); }
    .home-news { padding: 0 var(--gut) 71px; }
    .home-news .sec-title { padding-top: 47.5px; }
    .news-list { margin-top: 16.5px; }
    .news-item { grid-template-columns: 135px minmax(0, 1fr); column-gap: 16px; min-height: 101px; }
    .news-item + .news-item { margin-top: 20px; }
    .news-thumb { width: 135px; height: 101px; }
    .news-title { max-width: 183px; font-size: 20px; line-height: 22px; padding-top: 6px; }
    .news-text { margin-top: 5px; font-size: 16px; line-height: 19px; }
    .home-partners { padding: 0 var(--gut) 66px; --bg: var(--green-light); background-color: var(--green-light); }
    .home-partners .sec-title { padding-top: 43.5px; }
    .partners { margin-top: 45.5px; max-width: 368px; aspect-ratio: 368 / 318; }
    .partners .p1 { left: 0; top: 0; width: 22.28%; }
    .partners .p2 { left: 37.23%; top: 2.83%; width: 49.18%; height: 19.81%; }
    .partners .p3 { left: 0; top: 40.57%; width: 44.29%; height: 19.81%; }
    .partners .p4 { left: 60.6%; top: 40.57%; width: 34.51%; height: 19.81%; }
    .partners .p5 { left: 0; top: 75.47%; width: 21.74%; }
    .partners .p6 { left: 33.15%; top: 78.93%; width: 49.18%; height: 19.81%; }

    /* peu */
    .site-footer { min-height: 601px; padding: 62.5px 0 60px; }
    .footer-in { grid-template-columns: 227px minmax(0, 1fr); grid-template-areas: 'contact social' 'links legal'; row-gap: 41px; padding: 0 var(--gut); }
    .f-contact { grid-area: contact; }
    .f-social { grid-area: social; }
    .f-links { grid-area: links; }
    .f-legal { grid-area: legal; max-width: 130px; }
    .f-col address { margin-top: 24px; }
    .f-social ul { margin-top: -12px; }
    .f-col ul { margin-top: 26px; }

    /* el projecte */
    .proj-hero .hero-media { margin-top: 15.6px; }
    .proj-hero .wave--projecte { aspect-ratio: 365 / 532; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='730' height='532' viewBox='0 0 730 532' preserveAspectRatio='none'%3E%3Cpath d='M0 0C187.71 0 196.19 56.73 365 56.73C533.81 56.73 542.29 0 730 0L730 431.94C567.05 431.94 533.81 532 365 532C196.19 532 162.95 431.94 0 431.94Z'/%3E%3C/svg%3E"); }
    .proj-hero .t-title { left: 26px; top: 64px; font-size: 56px; line-height: 47.6px; max-width: 270px; }
    .proj-intro { width: auto; margin-top: 32px; font-size: 18px; line-height: 24px; letter-spacing: 0; }
    .proj-hero { padding-bottom: 37px; }
    .proj-story { display: flex; flex-direction: column-reverse; padding: 35px var(--gut) 59px; }
    .proj-story .wave--historia { width: 100%; aspect-ratio: 365 / 439; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='730' height='439' viewBox='0 0 730 439' preserveAspectRatio='none'%3E%3Cpath d='M0 75.39C168.81 75.39 177.29 0 365 0C552.71 0 561.19 75.39 730 75.39L730 439C561.19 439 527.95 356.43 365 356.43C202.05 356.43 168.81 439 0 439Z'/%3E%3C/svg%3E"); }
    .proj-story .t-heading { padding-top: 47.5px; }
    .proj-story-text { margin-top: 12.5px; font-size: 16px; line-height: 20px; }
    .proj-story-text p + p { margin-top: 20px; }
    .proj-manifest .sec-title { padding-top: 51.5px; }
    .mf-list { margin-top: 37.5px; }
    .mf-row { grid-template-columns: 37px minmax(0, 1fr); padding: 21px 20px 16px; }
    .mf-row-num { padding-top: 0; font-size: 22px; line-height: 21.7px; }
    .mf-row-title { padding: 0; max-width: none; font-size: 22px; line-height: 21.7px; }
    .mf-row-text { grid-column: 2; padding: 12px 0 4px; font-size: 16px; line-height: 20px; }
    .proj-manifest { padding-bottom: 55px; }
    .proj-support { padding: 0 var(--gut) 66px; }
    .proj-support .sec-title { padding-top: 51.5px; }
    .support-logos { position: relative; display: block; width: 100%; max-width: 368px; aspect-ratio: 368 / 192; margin-top: 45.5px; }
    .support-logos li { position: absolute; }
    .support-logos .partner-logo { width: 100%; }
    .support-logos .ph-logo--rect { width: 100%; height: 100%; aspect-ratio: auto; }
    .support-logos li:nth-child(1) { left: 0; top: 0; width: 22.28%; }
    .support-logos li:nth-child(2) { left: 37.23%; top: 4.69%; width: 49.18%; height: 32.81%; }
    .support-logos li:nth-child(3) { left: 0; top: 67.19%; width: 44.29%; height: 32.81%; }
    .support-logos li:nth-child(4) { left: 60.6%; top: 67.19%; width: 34.51%; height: 32.81%; }

    /* llistats */
    .list-tools { margin-top: 30px; }
    .chips { gap: 8px; }
    .cards-grid { margin-top: 36px; row-gap: 42px; }
    .places-grid { margin-top: 40px; row-gap: 40px; }
    .list-page--places .btn-row, .list-page .btn-row { margin-top: 42px; }
    .list-page { padding-bottom: 60px; }
    .view-switch { flex-wrap: wrap; font-size: 20px; }
    .prog-cal { grid-template-columns: minmax(0, 1fr); row-gap: 30px; margin-top: 30px; }
    .prog-cal-side { order: 2; max-width: 414px; }
    .prog-cal-main { display: contents; }
    .prog-cal-main > .view-switch { order: 1; justify-content: flex-start; margin-top: 0; }
    .prog-cal-main > .results-status { order: 3; }
    .prog-list { order: 4; margin-top: 10px; }
    .prog-cal-main > .empty-msg { order: 5; }
    .prog-cal-main > .btn-row { order: 6; margin-top: 30px; }
    .agenda-item { grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; }
    .agenda-media { width: 140px; height: 140px; }
    .agenda-body { min-height: 140px; padding-right: 0; }
    .agenda-body .chip--sm { position: static; align-self: flex-start; margin-top: 8px; }
    .agenda-date { font-size: 16px; line-height: 16px; }
    .agenda-title { margin-top: 10px; font-size: 22px; line-height: 21px; }
    .agenda-place { font-size: 15px; line-height: 18px; }
    .agenda-item + .agenda-item { margin-top: 30px; }

    .modal { padding: 12px; }
    .modal-box { padding: 32px 20px 30px; }
    .modal-title { font-size: 28px; line-height: 26px; padding-right: 50px; }
    .modal-close { top: 18px; right: 12px; }
    .modal-clear { position: static; margin-top: 12px; font-size: 16px; }
    .modal-cals { grid-template-columns: minmax(0, 1fr); row-gap: 20px; margin-top: 20px; padding: 0 28px; }
    .modal .cal { min-height: 0; padding: 24px 10px 14px; }
    .modal .cal-nav-prev { left: -10px; top: 80px; }
    .modal .cal-nav-next { right: -10px; top: 80px; }

    /* fitxes */
    .fitxa-top { display: flex; flex-direction: column-reverse; min-height: 0; }
    .fitxa-media { min-height: 0; height: 576px; }
    .fitxa-media .fitxa-slider { inset: 0; }
    .fitxa-media .sl-prev { left: 8px; top: 39%; }
    .fitxa-media .sl-next { right: 8px; top: 52%; }
    .sl-btn img { width: 28px; height: 27px; }
    .fitxa-info { padding: 0 var(--gut) 55px; }
    .fitxa-info .breadcrumb { margin-right: 0; }
    .fitxa-info .breadcrumb { padding-top: 55.7px; }
    .fitxa-info { display: flex; flex-direction: column; }
    .fitxa-meta { display: contents; }
    .fitxa-meta .chips { order: 1; margin-top: 21px; }
    .fitxa-title { order: 2; margin-top: 59.2px; }
    .places-box { order: 3; align-self: flex-start; margin: 16.5px 0 0; }
    .fitxa-desc { order: 4; }
    .info-box { order: 5; }
    .fitxa--lloc .fitxa-title { margin-top: 40px; }
    .only-mobile { display: flex !important; }
    .fitxa-desc { margin-top: 30px; font-size: 18px; line-height: 24px; }
    .info-box { margin-top: 23px; padding: 17px 17px 19px; max-width: none; border-color: rgba(0, 0, 0, .7); }
    .info-list { grid-template-columns: 145px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
    .info-list dt, .info-list dd { font-size: 15.4px; line-height: 16.8px; }
    .info-box .btn { margin-top: 21px; font-size: 20px; line-height: 12.6px; padding: 8.2px 6px 1.2px; }
    .fitxa--lloc .info-box { margin-top: 30px; }
    .fitxa-band { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding: 30px var(--gut) 40px; min-height: 0; }
    .band-label { font-size: 16px; line-height: 19.2px; }
    .band-block p { font-size: 16px; line-height: 19.2px; }
    .band-block .chips .chip { height: 24px; font-size: 17.28px; line-height: 10.9px; padding: 8.96px 9px 2.14px; border-color: rgba(0, 0, 0, .72); border-radius: 72px; }
    .band-block + .band-block { margin-top: 24px; }
    .fitxa-related .sec-title { padding-top: 47.5px; }
    .fitxa-related { padding-bottom: 60px; }
    .fitxa-related .btn-row { margin-top: 29px; }

    /* preguntes freqüents */
    .faq-search { margin-top: 30px; }
    .faq-search label, .faq-search input { font-size: 22px; }
    .faq-search input { height: 46px; }
    .faq-search label { height: 46px; padding-top: 5px; }
    .faq-search button { width: 44px; height: 44px; }
    .faq-page .chips { margin-top: 24px; }
    .faq-list { margin-top: 40px; }
    .faq-q button { min-height: 60px; padding: 21px 20px 16px; font-size: 22px; line-height: 21.7px; }
    .faq-ico { width: 14px; height: 14px; margin-left: 16px; margin-top: 2px; }
    .faq-ico::before { top: 5.9px; height: 2px; }
    .faq-ico::after { left: 6px; width: 2px; }
    .faq-a p { padding: 14px 20px 22px; font-size: 16px; line-height: 20px; }

    /* inscripció */
    .insc-page, .done-page { min-height: 0; }
    .insc-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 0; }
    .insc-text { padding-top: 34px; padding-right: 0; }
    .insc-text h1 { font-size: 56px; line-height: 47.6px; }
    .insc-copy { max-width: none; margin-top: 24px; font-size: 18px; line-height: 24px; }
    .insc-text .btn { margin-top: 36px; }
    .form-grid { display: flex; flex-direction: column; row-gap: 40px; margin-top: 26px; }
    .form-grid .wave { width: 100%; margin-top: 0; }
    .form-intro { font-size: 18px; line-height: 24px; }
    .form-title { margin-top: 40px; font-size: 32px; line-height: 27px; }
    .form-title--data { margin-top: 44px; }
    .done-page .page-title { margin-top: 26px; }
    .form-page .info-box, .done-page .info-box { max-width: 100%; margin-top: 20px; padding: 17px 12px 19px 17px; }
    .choice { font-size: 18px; }
    .choice--check { font-size: 16px; line-height: 20px; }
    .field input, .field textarea, .field label { font-size: 18px; }
    .form-grid--long .wave { position: static; }
    .form-grid--long .form-intro { margin-bottom: 40px; }
    .insc-form .form-title--sec { margin-top: 44px; }
    .form-question { font-size: 18px; }
    .form-page .btn--send { margin-top: 40px; }
    .done-page .btn { justify-content: space-between; font-size: 22px; line-height: 21px; padding: 8px 8px 3px; }
    .done-page .btn svg { margin-top: -6px; }
    .done-copy { margin-top: 26px; font-size: 18px; line-height: 24px; }
    .done-more { font-size: 18px; }

    /* legal */
    .legal-body h2:first-child { margin-top: 44px; }
    .legal-body h2 { margin-top: 40px; }
    .legal-body p, .legal-data dt, .legal-data dd { font-size: 16px; line-height: 20px; }
    .legal-data { grid-template-columns: 150px minmax(0, 1fr); }
    .legal-page { padding-bottom: 60px; }
}

/* ---------- tauleta (640–1023): dues columnes ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
    .home-acts .grid-3, .fitxa-related .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .proj-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
    .proj-story .wave--historia { order: 2; }
    .fitxa-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; }
}

/* ---------- fotos altes d'inscripció: en tauleta no ocupen tota l'amplada ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
    .wave--insc, .wave--form { max-width: 365px; }
}

/* ---------- mòbil (< 640) ---------- */
@media (max-width: 639px) {
    .field-row, .field-row--2 { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .places-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
}

@media (max-width: 767px) {
    /* acordió del manifest (classe posada pel JS): 0fr → 1fr; visibility amaga el text tancat */
    .mf-list.is-acc .mf-row-text { display: grid; grid-template-rows: 0fr; padding: 0; visibility: hidden; transition: grid-template-rows .45s var(--ease-inout), visibility 0s linear .45s; }
    .mf-list.is-acc .mf-row.is-open .mf-row-text { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease-inout), visibility 0s; }
    .mf-list.is-acc .mf-row-in { min-height: 0; overflow: hidden; }
    .mf-list.is-acc .mf-row-in p { padding: 12px 0 4px; }
    .mf-row-title button { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; cursor: pointer; text-align: left; }
    .mf-row-title .mf-toggle-ico { display: block; position: relative; flex: none; width: 14px; height: 14px; margin: 3px 0 0 12px; }
    .mf-toggle-ico::before, .mf-toggle-ico::after { content: ''; position: absolute; background: var(--black); }
    .mf-toggle-ico::before { left: 0; right: 0; top: 6px; height: 2px; }
    .mf-toggle-ico::after { top: 0; bottom: 0; left: 6px; width: 2px; transition: transform .3s var(--ease-out); }
    .mf-row-title button[aria-expanded="true"] .mf-toggle-ico::after { transform: scaleY(0); }
}

/* ---------- mòbil petit (< 400): capçalera i targetes més compactes ---------- */
@media (max-width: 399px) {
    :root { --gut: 20px; }
    .topbar-logo, .topbar-logo img { width: 210px; }
    .footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
    .menu-nav li { font-size: 36px; line-height: 32px; }
    .t-title { font-size: 44px; line-height: 38px; }
    .proj-hero .t-title { font-size: 42px; line-height: 36px; left: 18px; top: 44px; max-width: 230px; }
    .info-list { grid-template-columns: 110px minmax(0, 1fr); }
    .agenda-item { grid-template-columns: 100px minmax(0, 1fr); }
    .agenda-media { width: 100px; height: 100px; }
    .agenda-body { min-height: 100px; }
    .partners { transform-origin: 0 0; }
    .places-grid { grid-template-columns: minmax(0, 1fr); }
    .news-item { grid-template-columns: 90px minmax(0, 1fr); }
    .news-thumb { width: 90px; height: 90px; }
    .legal-data { grid-template-columns: minmax(0, 1fr); }
    .legal-data dd { margin-bottom: 8px; }
    .chip { font-size: 20px; padding-left: 10px; padding-right: 10px; }
}
