/*
 * GFRM Theme — tokens i breakpoints de referència
 * XS: 480px · SM: 640px · MD: 768px · LG: 1024px · XL: 1280px · XXL: 1480px
 * La migració completa dels media queries es farà per components per evitar regressions.
 */
:root { --gfrm-dark-gradient: radial-gradient(circle at 82% 20%, rgba(70,82,96,.30) 0%, rgba(36,43,52,.16) 25%, transparent 52%), linear-gradient(120deg,#05070a 0%,#11161c 48%,#202933 100%);
    --gfrm-yellow: #ffc400;
    --gfrm-yellow-dark: #e9a900;
    --gfrm-black: #0c0d0f;
    --gfrm-charcoal: #191c20;
    --gfrm-white: #ffffff;
    --gfrm-light: #f4f5f6;
    --gfrm-border: #e2e4e7;
    --gfrm-muted: #6d737c;
    --gfrm-shell: 1480px;
    --gfrm-shell-wide: 1600px;
    --gfrm-radius: 3px;
    --gfrm-shadow: 0 14px 38px rgba(13, 16, 20, .10);
    --gfrm-focus: #ffbf00;

    /* Tokens consolidats (auditoria CSS) — mateixos valors que abans, ara centralitzats. */
    --gfrm-ink-1: #111418;
    --gfrm-ink-2: #11161c;
    --gfrm-ink-3: #171b20;
    --gfrm-ink-4: #111;
    --gfrm-grey-1: #eceef0;
    --gfrm-grey-2: #edf0f2;
    --gfrm-grey-3: #e1e5e8;
    --gfrm-grey-4: #e0e4e8;
    --gfrm-grey-5: #e0e3e6;
    --gfrm-grey-6: #dce1e6;
    --gfrm-grey-7: #f7f8f9;
    --gfrm-grey-8: #f8f9fa;
    --gfrm-text-muted-1: #687079;
    --gfrm-text-muted-2: #68717a;
    --gfrm-gold-dark: #946a00;
    --gfrm-yellow-alt: #f4bf19;
    --gfrm-cream: #fffaf0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--gfrm-white); color: #17191d; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; }

/* 1.18.18 · Sticky footer global.
   Manté el peu de pàgina enganxat a la part inferior del viewport quan una
   pantalla té poc contingut (p. ex. Activitats sense programació o Lliga
   Social sense convocatòries), evitant la franja blanca sota el footer. */
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body.admin-bar {
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
}
.gfrm-site-footer { margin-top: auto; }
@media (max-width: 782px) {
    body.admin-bar {
        min-height: calc(100vh - 46px);
        min-height: calc(100dvh - 46px);
    }
}

body.gfrm-menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
svg { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.gfrm-shell { width: min(calc(100% - 96px), var(--gfrm-shell)); margin-inline: auto; }
.gfrm-shell-wide { width: min(calc(100% - 96px), var(--gfrm-shell-wide)); margin-inline: auto; }
.gfrm-main { min-height: 65vh; }
.gfrm-section { padding: 44px 0; }
.gfrm-skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--gfrm-white); color: var(--gfrm-ink-4); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* Focus de teclat global i consistent */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid var(--gfrm-focus);
    outline-offset: 3px;
}


/* Capçalera */
.gfrm-site-header { position: relative; z-index: 1000; width: 100%; transition: background .25s ease, box-shadow .25s ease; }
.gfrm-site-header.is-overlay { position: absolute; inset: 0 0 auto; background: linear-gradient(180deg, rgba(5,8,11,.84), rgba(5,8,11,.18) 72%, transparent); color: var(--gfrm-white); }
.gfrm-site-header.is-solid, .gfrm-site-header.is-scrolled { background: rgba(12,13,15,.98); color: var(--gfrm-white); box-shadow: 0 8px 25px rgba(0,0,0,.16); }
.gfrm-site-header.is-scrolled { position: fixed; inset: 0 0 auto; }
.gfrm-header-inner { min-height: 96px; display: flex; align-items: center; gap: 38px; }
.gfrm-brand { flex: 0 0 auto; }
.gfrm-brand .custom-logo-link { display: block; }
.gfrm-brand .custom-logo { width: auto; max-width: 320px; max-height: 68px; }
.gfrm-brand-fallback { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 7px; color: var(--gfrm-white); }
.gfrm-brand-mark { width: 42px; color: var(--gfrm-white); transform: rotate(-8deg); }
.gfrm-brand-mark svg { width: 42px; height: 42px; }
.gfrm-brand-word { color: var(--gfrm-yellow); font-weight: 900; font-size: 38px; line-height: 1; letter-spacing: -.045em; }
.gfrm-brand-name { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.38); font-size: 12px; line-height: 1.25; font-weight: 800; }
.gfrm-header-navigation { margin-left: auto; display: flex; align-items: center; gap: 38px; }
.gfrm-menu { display: flex; align-items: center; gap: clamp(20px, 1.65vw, 34px); list-style: none; margin: 0; padding: 0; }
.gfrm-menu > li { position: relative; }
.gfrm-menu a { display: block; padding: 37px 0 34px; font-size: 13px; font-weight: 850; color: var(--gfrm-white); white-space: nowrap; letter-spacing: .01em; }
.gfrm-menu > li.current-menu-item > a, .gfrm-menu > li.current_page_item > a, .gfrm-menu > li > a:hover { color: var(--gfrm-yellow); }
.gfrm-menu > li.current-menu-item > a::after, .gfrm-menu > li.current_page_item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 2px; background: var(--gfrm-yellow); }
.gfrm-menu .sub-menu { display: none; position: absolute; top: calc(100% - 16px); left: -18px; min-width: 220px; margin: 0; padding: 10px; list-style: none; background: var(--gfrm-ink-1); box-shadow: var(--gfrm-shadow); }
.gfrm-menu li:hover > .sub-menu, .gfrm-menu li:focus-within > .sub-menu { display: block; }
.gfrm-menu .sub-menu a { padding: 11px 13px; }
.gfrm-header-actions { display: flex; align-items: center; gap: 26px; }
.gfrm-members-link { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 850; color: var(--gfrm-white); white-space: nowrap; }
.gfrm-members-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid currentColor; border-radius: 50%; }
.gfrm-members-icon svg { width: 15px; height: 15px; }
.gfrm-menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.gfrm-menu-toggle span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; margin: 6px 0; background: var(--gfrm-white); }

/* Botons */
.gfrm-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 31px; border: 1px solid transparent; border-radius: var(--gfrm-radius); font-size: 12px; font-weight: 900; letter-spacing: .015em; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.gfrm-button:hover { transform: translateY(-2px); }
.gfrm-button--yellow { background: var(--gfrm-yellow); color: #0e1012; }
.gfrm-button--yellow:hover { background: #ffd42d; color: #0e1012; }
.gfrm-button--outline-light { border-color: rgba(255,255,255,.72); color: var(--gfrm-white); background: rgba(0,0,0,.12); }
.gfrm-button--outline-light:hover { border-color: var(--gfrm-white); background: rgba(255,255,255,.09); color: var(--gfrm-white); }
.gfrm-button--small { min-height: 44px; padding-inline: 21px; }

/* Hero */
.gfrm-hero { position: relative; min-height: clamp(640px, 43vw, 780px); display: flex; align-items: center; color: var(--gfrm-white); overflow: hidden; background: #151a20; }
.gfrm-hero-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.gfrm-hero-media__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gfrm-hero-overlay { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(5,8,11,.90) 0%, rgba(5,8,11,.61) 43%, rgba(5,8,11,.10) 77%), linear-gradient(0deg, rgba(0,0,0,.66), transparent 54%); }
.gfrm-hero-content { position: relative; z-index: 2; padding-top: 98px; padding-bottom: 28px; }
.gfrm-hero h1 { max-width: 850px; margin: 0; font-size: clamp(54px, 4.1vw, 80px); line-height: .98; letter-spacing: -.04em; font-weight: 900; }
.gfrm-hero p { margin: 22px 0 34px; font-size: clamp(20px, 1.45vw, 27px); }
.gfrm-hero-actions { display: flex; flex-wrap: wrap; gap: 30px; }
.gfrm-hero-actions .gfrm-button { min-width: 230px; min-height: 54px; }
.gfrm-hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; color: var(--gfrm-white); font-size: 38px; transform: translateX(-50%); }

/* Capçaleres de secció */
.gfrm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.gfrm-section-heading h2 { position: relative; margin: 0; font-size: 28px; line-height: 1.2; font-weight: 900; }
.gfrm-section-heading h2::after { content: ""; display: block; width: 76px; height: 3px; margin-top: 9px; background: var(--gfrm-yellow); }
.gfrm-section-heading a { color: #df8f00; font-size: 13px; font-weight: 900; }
.gfrm-section-heading a span, .gfrm-text-link span { margin-left: 8px; font-size: 19px; }
.gfrm-section-heading--simple { justify-content: flex-start; }
.gfrm-section-heading--simple h2::after { display: none; }

/* Activitats · integració GFRM Core */
.gfrm-events-section { padding-top: 34px; padding-bottom: 38px; }
.gfrm-events-section .gfrm-events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.gfrm-events-section .gfrm-event-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--gfrm-border); background: var(--gfrm-white); box-shadow: 0 4px 14px rgba(0,0,0,.035); }
.gfrm-events-section .gfrm-event-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 8.1; background: var(--gfrm-grey-1); }
.gfrm-events-section .gfrm-event-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gfrm-events-section .gfrm-event-card:hover .gfrm-event-card__image { transform: scale(1.025); }
.gfrm-events-section .gfrm-event-card__date { position: absolute; left: 20px; bottom: 16px; display: flex; min-width: 64px; min-height: 64px; padding: 9px 11px; flex-direction: column; align-items: center; justify-content: center; background: rgba(4,5,6,.90); color: var(--gfrm-white); text-align: center; text-transform: uppercase; }
.gfrm-events-section .gfrm-event-card__day { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.gfrm-events-section .gfrm-event-card__month { margin-top: 3px; font-size: 11px; font-weight: 850; letter-spacing: .06em; }
.gfrm-events-section .gfrm-event-card__body { display: flex; flex: 1; flex-direction: column; padding: 21px 23px 23px; }
.gfrm-events-section .gfrm-event-card__title { margin: 0 0 9px; font-size: 19px; line-height: 1.25; }
.gfrm-events-section .gfrm-event-card__title a:hover { color: #d88d00; }
.gfrm-events-section .gfrm-event-card__location { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #34383e; font-size: 14px; }
.gfrm-events-section .gfrm-event-card__location-mark { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--gfrm-yellow); }
.gfrm-events-section .gfrm-event-card__link { align-self: flex-start; margin-top: auto; color: #df8f00; font-size: 13px; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; }
.gfrm-events-section .gfrm-event-card__link span { margin-left: 8px; font-size: 19px; }
.gfrm-events-section .gfrm-events-empty { margin: 0; padding: 22px 24px; border: 1px solid var(--gfrm-border); background: var(--gfrm-light); color: var(--gfrm-muted); }

/* Franja de valors */
.gfrm-value-strip { margin-top: 12px; background: linear-gradient(90deg, var(--gfrm-light), var(--gfrm-white), var(--gfrm-light)); border-block: 1px solid var(--gfrm-grey-1); }
.gfrm-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gfrm-value-item { position: relative; text-align: center; padding: 30px 38px 26px; }
.gfrm-value-item + .gfrm-value-item::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: #dfe1e4; }
.gfrm-line-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; color: #eea400; }
.gfrm-line-icon svg { width: 46px; height: 46px; stroke-width: 1.7; }
.gfrm-value-item h3 { margin: 10px 0 5px; font-size: 14px; }
.gfrm-value-item p { max-width: 245px; margin: 0 auto; font-size: 14px; line-height: 1.42; }

/* Què fem */
.gfrm-what-section { padding-top: 34px; padding-bottom: 30px; }
.gfrm-what-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gfrm-what-item { position: relative; text-align: center; padding: 18px 20px 8px; }
.gfrm-what-item + .gfrm-what-item::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 11px; width: 1px; background: #dfe1e4; }
.gfrm-what-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; color: var(--gfrm-ink-4); }
.gfrm-what-icon svg { width: 50px; height: 50px; stroke-width: 1.7; }
.gfrm-what-item h3 { display: inline-block; margin: 14px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--gfrm-yellow); font-size: 13px; }

/* Galeria */
.gfrm-gallery-section { padding-top: 25px; padding-bottom: 30px; }
.gfrm-photo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.gfrm-photo-tile { display: block; overflow: hidden; background: #ddd; aspect-ratio: 1.5 / 1; }
.gfrm-photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.gfrm-photo-tile:hover img { transform: scale(1.045); filter: contrast(1.04); }

/* Mòduls destacats */
.gfrm-featured-section { padding-top: 18px; padding-bottom: 34px; }
.gfrm-featured-heading { margin-bottom: 18px; }
.gfrm-featured-grid { display: grid; grid-template-columns: 1.25fr 1.1fr 1fr; gap: 14px; }
.gfrm-feature-slot { position: relative; min-height: 255px; overflow: hidden; padding: 26px; border: 1px solid #e4e5e7; }
.gfrm-feature-slot--dark { background: var(--gfrm-black); color: var(--gfrm-white); }
.gfrm-feature-slot--light { background: #f2f2f2; color: var(--gfrm-ink-4); }
.gfrm-card-kicker { display: inline-block; margin: 0 0 15px; padding-bottom: 6px; border-bottom: 2px solid var(--gfrm-yellow); font-size: 14px; font-weight: 900; }
.gfrm-card-label { margin: 0; font-size: 12px; font-weight: 850; }
.gfrm-feature-slot h2 { position: relative; z-index: 2; margin: 5px 0 10px; color: var(--gfrm-yellow); font-size: 29px; line-height: 1; }
.gfrm-feature-slot--light h2 { color: var(--gfrm-ink-4); font-size: 34px; }
.gfrm-feature-slot h3 { position: relative; z-index: 2; max-width: 64%; margin: 0 0 20px; font-size: 17px; line-height: 1.18; }
.gfrm-feature-slot p { position: relative; z-index: 2; max-width: 66%; font-size: 12px; font-weight: 750; line-height: 1.45; }
.gfrm-feature-stats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 15px; margin: 24px 0 18px; font-size: 11px; }
.gfrm-feature-slot .gfrm-button { position: relative; z-index: 3; }
.gfrm-feature-image { position: absolute; right: 10px; bottom: 0; width: 42%; max-height: 88%; object-fit: contain; }
.gfrm-feature-image--person { width: 43%; right: 0; }

/* Instagram */
.gfrm-instagram-section { padding-top: 4px; padding-bottom: 38px; }
.gfrm-instagram-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.gfrm-instagram-grid a { aspect-ratio: 1.5 / 1; overflow: hidden; background: #ddd; }
.gfrm-instagram-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gfrm-instagram-grid a:hover img { transform: scale(1.05); }

/* Pre-footer */
.gfrm-final-cta { min-height: 220px; display: flex; align-items: center; background-image: linear-gradient(90deg, rgba(5,7,10,.95) 0%, rgba(12,16,21,.82) 48%, rgba(25,31,39,.58) 100%), var(--gfrm-cta-image); background-size: cover; background-position: center; color: var(--gfrm-white); }
.gfrm-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.gfrm-final-cta h2 { margin: 0; font-size: clamp(29px, 2.1vw, 38px); line-height: 1.14; letter-spacing: -.02em; }
.gfrm-final-cta h2 span { color: var(--gfrm-yellow); }
.gfrm-final-actions { display: flex; gap: 24px; }
.gfrm-final-actions .gfrm-button { min-width: 210px; min-height: 52px; }

/* Footer */
.gfrm-site-footer { background: var(--gfrm-dark-gradient); color: #d7dade; border-top: 1px solid #24272c; }
.gfrm-footer-main { display: grid; grid-template-columns: minmax(300px, 1.4fr) repeat(3, minmax(150px, .72fr)); gap: clamp(42px, 5vw, 90px); padding-top: 66px; padding-bottom: 58px; }
.gfrm-footer-logo .custom-logo-link { display: inline-block; }
.gfrm-footer-logo .custom-logo { display: block; width: auto !important; height: auto !important; max-width: 285px; max-height: 72px; object-fit: contain; }
.gfrm-footer-brand-lockup { width: max-content; max-width: 100%; }
.gfrm-footer-brand-lockup .gfrm-brand-mark,
.gfrm-footer-brand-lockup .gfrm-brand-mark svg { width: 36px; height: 36px; }
.gfrm-footer-brand-lockup .gfrm-brand-word { font-size: 32px; }
.gfrm-footer-brand-lockup .gfrm-brand-name { font-size: 10px; }
.gfrm-footer-wordmark { color: var(--gfrm-yellow); font-size: 38px; font-weight: 900; letter-spacing: -.04em; }
.gfrm-footer-description { max-width: 420px; margin: 22px 0 24px; color: #aeb4bc; font-size: 15px; line-height: 1.65; }
.gfrm-footer-contact { display: grid; gap: 11px; color: #c9cdd2; font-size: 14px; }
.gfrm-footer-contact span, .gfrm-footer-contact a { display: flex; align-items: center; gap: 9px; }
.gfrm-footer-contact svg { width: 17px; height: 17px; color: var(--gfrm-yellow); }
.gfrm-footer-social { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--gfrm-white); font-size: 14px; font-weight: 750; }
.gfrm-footer-social svg { width: 23px; height: 23px; color: var(--gfrm-yellow); }
.gfrm-footer-column h2 { margin: 5px 0 22px; color: var(--gfrm-white); font-size: 14px; font-weight: 900; letter-spacing: .035em; }
.gfrm-footer-column h2::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 10px; background: var(--gfrm-yellow); }
.gfrm-footer-menu { display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; color: #aeb4bc; font-size: 14px; }
.gfrm-footer-menu a { transition: color .18s ease, transform .18s ease; }
.gfrm-footer-menu a:hover { color: var(--gfrm-yellow); }
.gfrm-footer-bottom { border-top: 1px solid #24272c; background: #07080a; }
.gfrm-footer-legal { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #858c95; font-size: 12px; }
.gfrm-footer-legal nav { display: flex; flex-wrap: wrap; gap: 22px; }
.gfrm-footer-legal a:hover { color: var(--gfrm-yellow); }

/* Pàgines interiors */
.gfrm-page-hero { padding: 150px 0 68px; background: linear-gradient(135deg, #101318, #22272e); color: var(--gfrm-white); }
.gfrm-page-hero h1 { max-width: 1050px; margin: 0; font-size: clamp(40px, 4vw, 64px); line-height: 1.05; }
.gfrm-page-hero--single { padding-bottom: 52px; }
.gfrm-eyebrow { margin: 0 0 8px; color: #d99100; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.gfrm-entry-content { padding-top: 55px; padding-bottom: 80px; }
.gfrm-entry-content--narrow { max-width: 900px; }
.gfrm-entry-content--profile-settings {
    padding-top: 52px;
    padding-bottom: 90px;
}
.gfrm-page--profile-settings {
    background: var(--gfrm-grey-7);
}
.gfrm-entry-content > *:first-child { margin-top: 0; }
.gfrm-entry-content a { text-decoration: underline; text-decoration-color: #d99100; text-underline-offset: 3px; }
.gfrm-single-cover { margin: 0 0 38px; }
.gfrm-content-layout { padding-top: 145px; padding-bottom: 80px; }
.gfrm-page-header { margin-bottom: 34px; }
.gfrm-page-header h1 { margin: 0; font-size: 48px; }
.gfrm-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.gfrm-post-card { border: 1px solid var(--gfrm-border); background: var(--gfrm-white); }
.gfrm-post-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.gfrm-post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.gfrm-post-card-body { padding: 24px; }
.gfrm-post-card-body h2 { margin: 0 0 12px; font-size: 23px; }
.gfrm-empty-state, .gfrm-error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 145px 20px 80px; }
.gfrm-error-code { margin: 0; color: var(--gfrm-yellow); font-size: 104px; line-height: 1; font-weight: 900; }
.gfrm-fullscreen-app { min-height: 100vh; }
.gfrm-member-area { padding: 145px 0 80px; background: var(--gfrm-light); }
.gfrm-member-shell { max-width: 1050px; }
.gfrm-member-heading { margin-bottom: 28px; }
.gfrm-member-heading h1 { margin: 0; font-size: 46px; }
.gfrm-member-content { padding: 34px; background: var(--gfrm-white); box-shadow: var(--gfrm-shadow); }
.gfrm-feature-stats span, .gfrm-feature-meta span { display: inline-flex; align-items: center; gap: 6px; }
.gfrm-feature-stats svg, .gfrm-feature-meta svg { width: 14px; height: 14px; flex: 0 0 auto; }
.gfrm-feature-meta { display: grid; gap: 6px; }

/* Perfils destacats: contenidor provisional sense alterar la graella global. */

/* Mirades de la comunitat: Foto del mes + galeria */
.gfrm-community-showcase-section { padding-top: 34px; padding-bottom: 34px; }
.gfrm-community-showcase-title { margin-bottom: 20px; }
.gfrm-community-showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
.gfrm-month-photo,
.gfrm-challenge-mosaic { min-width: 0; border: 1px solid #e4e6e8; background: var(--gfrm-white); }
.gfrm-community-block-heading { padding: 20px 22px 15px; }
.gfrm-community-block-heading > span,
.gfrm-community-block-heading > div > span { display: block; margin-bottom: 5px; color: #d88d00; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.gfrm-community-block-heading h3 { margin: 0; font-size: 24px; line-height: 1.05; }
.gfrm-month-photo__image { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--gfrm-ink-4); }
.gfrm-month-photo__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.gfrm-month-photo__image:hover img { transform: scale(1.025); }
.gfrm-month-photo__content { padding: 17px 22px 20px; }
.gfrm-month-photo__content h4 { margin: 0 0 5px; font-size: 18px; }
.gfrm-month-photo__content p { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0; color: #636971; font-size: 13px; }
.gfrm-month-photo__content p span::before { content: "·"; margin-right: 10px; }
.gfrm-community-block-heading--gallery { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gfrm-community-block-heading--gallery p { margin: 6px 0 0; color: #61666d; font-size: 14px; }
.gfrm-community-block-heading--gallery > a { flex: 0 0 auto; color: #d88d00; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.gfrm-challenge-mosaic__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0 4px 4px; }
.gfrm-challenge-mosaic__item { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; background: #ddd; }
.gfrm-challenge-mosaic__item > a { display: block; width: 100%; height: 100%; }
.gfrm-challenge-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.gfrm-challenge-mosaic__item:hover img { transform: scale(1.04); filter: contrast(1.04); }
.gfrm-challenge-mosaic__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: var(--gfrm-white); font-size: 10px; opacity: 0; transition: opacity .2s ease; }
.gfrm-challenge-mosaic__item:hover figcaption { opacity: 1; }

/* Agenda automàtica dins dels mòduls destacats */
.gfrm-feature-slot--agenda { padding: 0; }
.gfrm-next-talk-card { position: relative; min-height: 253px; height: 100%; overflow: hidden; }
.gfrm-next-talk-card__content { position: relative; z-index: 2; padding: 26px; max-width: 70%; }
.gfrm-next-talk-card h2 { margin: 4px 0 13px; color: var(--gfrm-ink-4); font-size: 30px; line-height: 1.02; }
.gfrm-next-talk-card__meta { display: grid; gap: 6px; margin: 0 0 20px; color: #333; font-size: 12px; font-weight: 750; }
.gfrm-next-talk-card__image { position: absolute; right: 0; top: 0; width: 38%; height: 100%; object-fit: cover; }
.gfrm-next-talk-card::after { content: ""; position: absolute; inset: 0 24% 0 45%; background: linear-gradient(90deg, #f2f2f2, rgba(242,242,242,.2)); pointer-events: none; }
.gfrm-next-talk-empty { padding: 28px; color: #555; }

/* Agenda editorial: tres blocs homogenis */
.gfrm-featured-heading > p,
.gfrm-community-showcase-title > p {
    margin: 7px 0 0;
    color: #626870;
    font-size: 14px;
}
.gfrm-agenda-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gfrm-agenda-grid .gfrm-feature-slot {
    min-height: 275px;
}
.gfrm-agenda-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.gfrm-agenda-card .gfrm-button {
    margin-top: auto;
}
.gfrm-agenda-card--workshop {
    background: linear-gradient(145deg, #0b0d10 0%, #15191f 100%);
}
.gfrm-agenda-card--outing {
    background: linear-gradient(145deg, #f7f7f7 0%, #eceeef 100%);
}
.gfrm-agenda-card--outing h2,
.gfrm-agenda-card--outing h3 {
    color: var(--gfrm-ink-4);
}

/* Projectes dins Mirades de la comunitat */
.gfrm-community-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}
.gfrm-community-project {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    padding: 30px;
    background: var(--gfrm-black);
    color: var(--gfrm-white);
}
.gfrm-community-project--challenge {
    background: linear-gradient(145deg, #14171b 0%, #090a0c 100%);
}
.gfrm-community-project__content {
    position: relative;
    z-index: 2;
    max-width: 64%;
}
.gfrm-community-project h3 {
    margin: 7px 0 12px;
    color: var(--gfrm-yellow);
    font-size: clamp(28px, 2.3vw, 38px);
    line-height: 1;
}
.gfrm-community-project__content > p:not(.gfrm-card-kicker):not(.gfrm-card-label) {
    max-width: 430px;
    margin: 0 0 20px;
    color: #d9dde2;
    font-size: 14px;
    line-height: 1.55;
}
.gfrm-community-project__image {
    position: absolute;
    right: 8px;
    bottom: 0;
    width: 38%;
    max-height: 92%;
    object-fit: contain;
    opacity: .9;
}
.gfrm-month-photo__link{display:inline-flex;margin-top:14px;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;color:var(--gfrm-ink-4)}.gfrm-month-photo__link:hover{color:#b97800}


/* Agenda del mes: substitueix els tres mòduls editorials antics */
.gfrm-month-agenda-section .gfrm-featured-heading{margin-bottom:28px}
.gfrm-month-agenda-section .gfrm-month-agenda{max-width:none}
.gfrm-month-agenda-section .gfrm-empty-state{padding:28px;border:1px solid #e2e3e5;background:var(--gfrm-white)}


/* Shared GFRM dark surface */
.gfrm-dark-surface,
.gfrm-home .gfrm-final-cta,
.gfrm-site-footer {
    background-color: #0b0e12;
}
.gfrm-site-footer {
    background-image: var(--gfrm-dark-gradient);
}
.gfrm-site-header:not(.is-overlay) {
    background-image: var(--gfrm-dark-gradient);
}


/* 1.0.3 — forced shared dark gradient */
.gfrm-site-header:not(.is-overlay),
.gfrm-site-footer,
.gfrm-dark-surface{
    background-color:#090c10 !important;
    background-image:
        radial-gradient(circle at 88% 18%, rgba(91,111,133,.42) 0%, rgba(48,59,72,.22) 27%, rgba(18,23,29,0) 56%),
        linear-gradient(112deg,#030507 0%,#0b0f14 42%,#222c37 100%) !important;
    background-repeat:no-repeat !important;
    background-size:cover !important;
}

/* Preserve the Home footer/CTA photograph and place the shared gradient over it. */
.gfrm-home .gfrm-final-cta{
    background-color:#090c10 !important;
    background-image:
        radial-gradient(circle at 88% 18%, rgba(91,111,133,.34) 0%, rgba(48,59,72,.18) 27%, rgba(18,23,29,0) 56%),
        linear-gradient(90deg,rgba(3,5,7,.94) 0%,rgba(11,15,20,.76) 48%,rgba(34,44,55,.48) 100%),
        var(--gfrm-cta-image) !important;
    background-repeat:no-repeat !important;
    background-size:cover !important;
    background-position:center !important;
}


/* 1.0.5 — same photographic background as the Home CTA, footer only */
.gfrm-site-footer{
    position:relative;
    isolation:isolate;
    background-color:#080b0f;
    background-image:
        linear-gradient(90deg,rgba(4,6,8,.95) 0%,rgba(9,13,18,.84) 52%,rgba(20,28,36,.72) 100%),
        var(--gfrm-footer-image,none);
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center 58%;
}
.gfrm-site-footer::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.32));
    pointer-events:none;
}
.gfrm-footer-main,.gfrm-footer-bottom{position:relative;z-index:1}
.gfrm-footer-bottom{background:rgba(3,5,7,.48)}


/* 1.0.9 · restauració visual del mockup original */
.gfrm-site-header .gfrm-header-inner{
    width:calc(100% - 112px);
    max-width:none;
    margin-inline:auto;
}
.gfrm-brand .custom-logo{max-width: 360px;max-height:72px}
.gfrm-header-navigation{gap:30px}
.gfrm-menu{gap:clamp(20px,1.55vw,31px)}
.gfrm-menu a{text-transform:uppercase}
.gfrm-home .gfrm-hero-content{
    width:auto;
    max-width: 780px;
    margin-left:clamp(54px,3.5vw,72px);
    margin-right:auto;
    padding-left:0;
    padding-right:0;
    text-align:left;
}
.gfrm-home .gfrm-hero h1,
.gfrm-home .gfrm-hero p{text-align:left}
.gfrm-home .gfrm-hero-actions{justify-content:flex-start}
.gfrm-home .gfrm-hero-actions .gfrm-button--outline-light{
    background:rgba(0,0,0,.12)!important;
    border-color:rgba(255,255,255,.78)!important;
    color:var(--gfrm-white)!important;
}
.gfrm-home .gfrm-hero-actions .gfrm-button--outline-light:hover{
    background:rgba(255,255,255,.09)!important;
    border-color:var(--gfrm-white)!important;
}
@media (max-width: 1100px){
    .gfrm-site-header .gfrm-header-inner{width:calc(100% - 48px)}
    .gfrm-home .gfrm-hero-content{margin-left:24px;max-width: 720px}
}
@media (max-width: 650px){
    .gfrm-site-header .gfrm-header-inner{width:calc(100% - 24px)}
    .gfrm-home .gfrm-hero-content{margin-left:12px;margin-right:12px;max-width:none}
}


/* 1.0.10 · reequilibri de capçalera i hero */
@media (min-width: 1201px){
    .gfrm-site-header .gfrm-header-inner{
        width:min(calc(100% - 96px),1560px);
        display:grid;
        grid-template-columns:minmax(280px,340px) minmax(0,1fr);
        gap:28px;
        margin-inline:auto;
    }
    .gfrm-brand{
        margin-left:18px;
    }
    .gfrm-brand .custom-logo{
        max-width: 330px;
        max-height:66px;
    }
    .gfrm-header-navigation{
        min-width: 0;
        margin-left:0;
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        align-items:center;
        gap:28px;
    }
    .gfrm-primary-nav{
        justify-self:center;
    }
    .gfrm-menu{
        gap:clamp(18px,1.35vw,28px);
    }
    .gfrm-menu a{
        font-size:12px;
    }
    .gfrm-header-actions{
        justify-self:end;
        gap:22px;
    }

    .gfrm-home .gfrm-hero{
        min-height:clamp(500px,34vw,610px);
        align-items:center;
    }
    .gfrm-home .gfrm-hero-content{
        width:auto;
        max-width: 900px;
        margin-left:clamp(82px,6vw,118px);
        margin-right:auto;
        padding-top:82px;
        padding-bottom:42px;
    }
    .gfrm-home .gfrm-hero h1{
        max-width: 820px;
        font-size:clamp(62px,4.65vw,86px);
        line-height:.96;
    }
    .gfrm-home .gfrm-hero p{
        margin:24px 0 32px;
        font-size:clamp(21px,1.45vw,27px);
    }
    .gfrm-home .gfrm-hero-actions{
        gap:24px;
    }
    .gfrm-home .gfrm-hero-actions .gfrm-button{
        min-width: 215px;
        min-height:52px;
    }
}
@media (min-width: 1201px) and (max-width: 1450px){
    .gfrm-site-header .gfrm-header-inner{
        width:calc(100% - 56px);
        grid-template-columns:minmax(235px,285px) minmax(0,1fr);
        gap:18px;
    }
    .gfrm-brand{margin-left:8px}
    .gfrm-brand .custom-logo{max-width: 270px;max-height:58px}
    .gfrm-header-navigation{gap:18px}
    .gfrm-menu{gap:16px}
    .gfrm-menu a{font-size:11px}
    .gfrm-header-actions{gap:14px}
    .gfrm-header-join{padding-inline:20px}
    .gfrm-home .gfrm-hero-content{margin-left:72px}
}


/* 1.0.11 · escala responsive calibrada per 1920×1080 i 2560×1440 */
@media (min-width: 1201px){
    .gfrm-site-header .gfrm-header-inner{
        width:min(calc(100% - 96px),1960px);
        grid-template-columns:minmax(285px,350px) minmax(0,1fr);
        gap:30px;
    }
    .gfrm-brand{margin-left:0}
    .gfrm-brand .custom-logo{max-width: 340px;max-height:68px}
    .gfrm-header-navigation{gap:30px}
    .gfrm-primary-nav{justify-self:center}
    .gfrm-menu{gap:clamp(18px,1.25vw,30px)}
    .gfrm-menu a{font-size:clamp(11px,.68vw,13px)}
    .gfrm-header-actions{gap:22px}

    .gfrm-home .gfrm-hero{
        min-height:clamp(510px,30vw,590px);
        align-items:center;
    }
    .gfrm-home .gfrm-hero-content{
        width:min(calc(100% - 112px),1960px);
        max-width:none;
        margin-inline:auto;
        padding:92px 0 42px;
    }
    .gfrm-home .gfrm-hero h1{
        max-width: 880px;
        font-size:clamp(62px,4vw,84px);
        line-height:.96;
    }
    .gfrm-home .gfrm-hero p{
        max-width: 650px;
        margin:22px 0 32px;
        font-size:clamp(20px,1.25vw,26px);
    }
    .gfrm-home .gfrm-hero-actions{gap:24px}
    .gfrm-home .gfrm-hero-actions .gfrm-button{
        min-width: 220px;
        min-height:52px;
    }
}
@media (min-width: 2200px){
    .gfrm-site-header .gfrm-header-inner,
    .gfrm-home .gfrm-hero-content{width:min(calc(100% - 160px),2080px)}
    .gfrm-brand .custom-logo{max-width: 360px;max-height:72px}
    .gfrm-menu a{font-size:13px}
    .gfrm-home .gfrm-hero{min-height:590px}
    .gfrm-home .gfrm-hero h1{font-size:88px;max-width: 920px}
    .gfrm-home .gfrm-hero p{font-size:27px}
}
@media (min-width: 1201px) and (max-width: 1600px){
    .gfrm-site-header .gfrm-header-inner{
        width:calc(100% - 56px);
        grid-template-columns:minmax(235px,290px) minmax(0,1fr);
        gap:18px;
    }
    .gfrm-brand .custom-logo{max-width: 275px;max-height:58px}
    .gfrm-header-navigation{gap:18px}
    .gfrm-menu{gap:15px}
    .gfrm-menu a{font-size:11px}
    .gfrm-header-actions{gap:14px}
    .gfrm-header-join{padding-inline:20px}
    .gfrm-home .gfrm-hero-content{width:calc(100% - 112px)}
    .gfrm-home .gfrm-hero h1{font-size:clamp(58px,4.6vw,76px)}
}


/* 1.0.12 · poliment visual del Home */
/* Hero una mica més lluminós sense perdre llegibilitat. */
.gfrm-home .gfrm-hero-overlay{
    background:
        linear-gradient(90deg,rgba(5,8,11,.76) 0%,rgba(5,8,11,.48) 42%,rgba(5,8,11,.06) 78%),
        linear-gradient(0deg,rgba(0,0,0,.48),transparent 56%);
}

/* Mateixa signatura taronja a tots els títols principals. */
.gfrm-home .gfrm-section-heading h2::after,
.gfrm-home .gfrm-section-heading--simple h2::after{
    content:"";
    display:block;
    width:54px;
    height:3px;
    margin-top:9px;
    background:var(--gfrm-yellow);
}

/* Capçalera de Properes activitats: títol a l'esquerra i acció al final. */
.gfrm-home .gfrm-events-section .gfrm-section-heading{
    width:100%;
    align-items:flex-end;
}
.gfrm-home .gfrm-events-section .gfrm-section-heading>a{
    margin-left:auto;
    flex:0 0 auto;
    text-align:right;
}

/* Hover del botó secundari del Hero més clar i elegant. */
.gfrm-home .gfrm-hero-actions .gfrm-button--outline-light{
    background:rgba(255,255,255,.035)!important;
    border-color:rgba(255,255,255,.82)!important;
    color:var(--gfrm-white)!important;
}
.gfrm-home .gfrm-hero-actions .gfrm-button--outline-light:hover,
.gfrm-home .gfrm-hero-actions .gfrm-button--outline-light:focus-visible{
    background:rgba(255,255,255,.18)!important;
    border-color:var(--gfrm-white)!important;
    color:var(--gfrm-white)!important;
    box-shadow:0 8px 22px rgba(0,0,0,.16);
}

@media (max-width: 650px){
    .gfrm-home .gfrm-hero-overlay{
        background:
            linear-gradient(90deg,rgba(5,8,11,.82),rgba(5,8,11,.34)),
            linear-gradient(0deg,rgba(0,0,0,.55),transparent 58%);
    }
    .gfrm-home .gfrm-events-section .gfrm-section-heading>a{
        margin-left:0;
        text-align:left;
    }
}


/* 1.0.13 · més aire entre blocs i accions ben alineades */
.gfrm-home .gfrm-section{
    padding-top:68px;
    padding-bottom:68px;
}
.gfrm-home .gfrm-events-section{
    padding-top:58px;
    padding-bottom:76px;
}
.gfrm-home .gfrm-what-section{
    padding-top:64px;
    padding-bottom:66px;
}
.gfrm-home .gfrm-month-agenda-section{
    padding-top:62px;
    padding-bottom:74px;
}
.gfrm-home .gfrm-community-showcase-section{
    padding-top:70px;
    padding-bottom:78px;
}
.gfrm-home .gfrm-section-heading{
    position:relative;
    margin-bottom:34px;
}
.gfrm-home .gfrm-section-heading--simple{
    gap:34px;
}
.gfrm-home .gfrm-section-heading--simple>p{
    max-width: 520px;
    margin:0 0 2px;
    line-height:1.55;
    color:var(--gfrm-muted);
}

/* L'acció de Properes activitats queda realment al marge dret del contenidor. */
.gfrm-home .gfrm-events-section .gfrm-section-heading{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:36px;
}
.gfrm-home .gfrm-events-section .gfrm-section-heading>a{
    justify-self:end;
    margin:0;
    padding-bottom:5px;
    white-space:nowrap;
    text-align:right;
}

/* Més separació interna a Què fem i a l'Agenda. */
.gfrm-home .gfrm-what-grid{
    margin-top:8px;
}
.gfrm-home .gfrm-what-item{
    padding-top:24px;
    padding-bottom:18px;
}
.gfrm-home .gfrm-agenda-panel--full .gfrm-featured-heading{
    margin-bottom:34px;
}
.gfrm-home .gfrm-month-agenda{
    margin-top:4px;
}
.gfrm-home .gfrm-community-showcase-title{
    margin-bottom:32px;
}
.gfrm-home .gfrm-community-showcase{
    gap:34px;
}
.gfrm-home .gfrm-community-projects{
    margin-top:34px;
}

@media (max-width: 900px){
    .gfrm-home .gfrm-section{
        padding-top:52px;
        padding-bottom:52px;
    }
    .gfrm-home .gfrm-events-section .gfrm-section-heading{
        grid-template-columns:1fr;
        gap:14px;
    }
    .gfrm-home .gfrm-events-section .gfrm-section-heading>a{
        justify-self:start;
        padding-bottom:0;
        text-align:left;
    }
    .gfrm-home .gfrm-section-heading--simple{
        gap:14px;
    }
}
@media (max-width: 650px){
    .gfrm-home .gfrm-section{
        padding-top:42px;
        padding-bottom:42px;
    }
    .gfrm-home .gfrm-section-heading{
        margin-bottom:26px;
    }
}


/* 1.1.4 — CTA adaptatiu segons sessió, només canvi de colors */
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary{
    background:var(--gfrm-white)!important;
    border-color:var(--gfrm-white)!important;
    color:var(--gfrm-ink-1)!important;
    box-shadow:0 8px 22px rgba(0,0,0,.16);
}
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary:hover,
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary:focus-visible{
    background:var(--gfrm-yellow)!important;
    border-color:var(--gfrm-yellow)!important;
    color:var(--gfrm-ink-1)!important;
    box-shadow:0 10px 26px rgba(0,0,0,.20);
}
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary.is-member-action{
    background:var(--gfrm-white)!important;
    border-color:var(--gfrm-white)!important;
    color:var(--gfrm-ink-1)!important;
}
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary.is-member-action:hover,
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary.is-member-action:focus-visible{
    background:var(--gfrm-yellow)!important;
    border-color:var(--gfrm-yellow)!important;
    color:var(--gfrm-ink-1)!important;
}


/* 1.1.6 — estat connectat en verd */
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary.is-member-action{
    background:#2e8540!important;
    border-color:#2e8540!important;
    color:var(--gfrm-white)!important;
    box-shadow:0 8px 22px rgba(18,92,42,.24);
}
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary.is-member-action:hover,
.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary.is-member-action:focus-visible{
    background:#246d34!important;
    border-color:#246d34!important;
    color:var(--gfrm-white)!important;
    box-shadow:0 10px 26px rgba(18,92,42,.30);
}

/* 1.2.2 — Fons geomètric exacte del hero dels perfils públics */
body:not(.home) .gfrm-page-hero,
body:not(.home) .gfrm-archive-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 250px;
    padding: 108px 0 42px;
    display: flex;
    align-items: center;
    color: var(--gfrm-white);
    background-color: #090d11;
    background-image: url("../images/hero-placeholder.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

body:not(.home) .gfrm-page-hero::before,
body:not(.home) .gfrm-archive-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(4, 8, 11, .90) 0%,
            rgba(4, 8, 11, .70) 40%,
            rgba(4, 8, 11, .25) 74%,
            rgba(4, 8, 11, .08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .48),
            transparent 62%
        );
    pointer-events: none;
}

body:not(.home) .gfrm-page-hero::after,
body:not(.home) .gfrm-archive-header::after {
    content: none;
}

body:not(.home) .gfrm-page-hero > .gfrm-shell,
body:not(.home) .gfrm-archive-header > .gfrm-shell {
    position: relative;
    z-index: 1;
}

body:not(.home) .gfrm-page-hero h1,
body:not(.home) .gfrm-archive-header h1 {
    max-width: 760px;
    margin: 6px 0 10px;
    color: var(--gfrm-white);
    font-size: clamp(42px, 3.7vw, 60px);
    line-height: 1;
    letter-spacing: -.035em;
}

body:not(.home) .gfrm-page-hero p,
body:not(.home) .gfrm-archive-header .gfrm-shell > p:last-child {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.5;
}

body:not(.home) .gfrm-archive-header .gfrm-eyebrow {
    margin: 0 0 15px;
    color: #f4d000;
}

@media (max-width: 782px) {
    body:not(.home) .gfrm-page-hero,
    body:not(.home) .gfrm-archive-header {
        min-height: 225px;
        padding: 94px 0 36px;
        background-size: auto 100%;
        background-position: center right;
    }

    body:not(.home) .gfrm-page-hero::before,
    body:not(.home) .gfrm-archive-header::before {
        background:
            linear-gradient(
                90deg,
                rgba(4, 8, 11, .95) 0%,
                rgba(4, 8, 11, .78) 58%,
                rgba(4, 8, 11, .28) 100%
            ),
            linear-gradient(
                0deg,
                rgba(0, 0, 0, .48),
                transparent 62%
            );
    }
}

@media (max-width: 560px) {
    body:not(.home) .gfrm-page-hero,
    body:not(.home) .gfrm-archive-header {
        min-height: 205px;
        padding: 82px 0 30px;
        background-size: auto 100%;
        background-position: 64% center;
    }

    body:not(.home) .gfrm-page-hero h1,
    body:not(.home) .gfrm-archive-header h1 {
        font-size: clamp(36px, 11vw, 47px);
    }
}


/* 1.2.3 — Força el mateix hero dels perfils també a Activitats i altres headers de plugins */
body:not(.home) .gfrm-archive-header,
body:not(.home) .gfrm-activity-header,
body:not(.home) .gfrm-agenda-single > header,
body:not(.home) .gfrm-capacity-highlight,
body:not(.home) .gfrm-presenter-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #090d11 !important;
    background-image: url("../images/hero-placeholder.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    color: var(--gfrm-white);
}

body:not(.home) .gfrm-archive-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 118px 0 52px !important;
}

body:not(.home) .gfrm-activity-header {
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 84px 0 46px !important;
}

body:not(.home) .gfrm-archive-header::before,
body:not(.home) .gfrm-activity-header::before,
body:not(.home) .gfrm-agenda-single > header::before,
body:not(.home) .gfrm-capacity-highlight::before,
body:not(.home) .gfrm-presenter-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,8,11,.94) 0%, rgba(4,8,11,.72) 44%, rgba(4,8,11,.25) 76%, rgba(4,8,11,.12) 100%),
                linear-gradient(0deg, rgba(0,0,0,.86), transparent 58%);
    pointer-events: none;
    z-index: 0;
}

body:not(.home) .gfrm-archive-header::after,
body:not(.home) .gfrm-activity-header::after,
body:not(.home) .gfrm-agenda-single > header::after,
body:not(.home) .gfrm-capacity-highlight::after,
body:not(.home) .gfrm-presenter-card::after {
    content: none !important;
}

body:not(.home) .gfrm-archive-header > .gfrm-shell,
body:not(.home) .gfrm-activity-header > .gfrm-shell,
body:not(.home) .gfrm-agenda-single > header > .gfrm-shell,
body:not(.home) .gfrm-capacity-highlight > *,
body:not(.home) .gfrm-presenter-card > * {
    position: relative;
    z-index: 1;
}

body:not(.home) .gfrm-archive-header h1,
body:not(.home) .gfrm-activity-header h1 {
    color: var(--gfrm-white);
}

body:not(.home) .gfrm-archive-header .gfrm-eyebrow,
body:not(.home) .gfrm-activity-header .gfrm-eyebrow {
    color: var(--gfrm-yellow, #f4d000);
}

@media (max-width: 980px) {
    body:not(.home) .gfrm-archive-header {
        min-height: 260px;
        padding: 96px 0 46px !important;
    }
    body:not(.home) .gfrm-activity-header {
        min-height: 280px;
        padding: 72px 0 40px !important;
    }
}

@media (max-width: 650px) {
    body:not(.home) .gfrm-archive-header {
        min-height: 230px;
        padding: 74px 0 38px !important;
        background-position: 64% center !important;
    }
    body:not(.home) .gfrm-activity-header {
        min-height: 240px;
        padding: 60px 0 32px !important;
        background-position: 64% center !important;
    }
}

/* 1.14.19 — control de visibilitat ràpid a "El meu perfil" */
.gfrm-profile-settings-header-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.gfrm-profile-settings-visibility-control {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.gfrm-profile-settings-visibility-control[hidden] {
    display: none !important;
}

.gfrm-profile-settings-visibility-form {
    margin: 0;
}

.gfrm-profile-settings-visibility-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid #d8dde2;
    border-radius: 8px;
    background: var(--gfrm-white);
    color: var(--gfrm-ink-3);
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.gfrm-profile-settings-visibility-button:hover,
.gfrm-profile-settings-visibility-button:focus-visible {
    border-color: #b7bec5;
    background: var(--gfrm-grey-7);
    transform: translateY(-1px);
}

.gfrm-profile-settings-visibility-button.is-make-public {
    border-color: #f0c933;
    background: #f7d648;
    color: var(--gfrm-ink-3);
}

.gfrm-profile-settings-visibility-button.is-make-public:hover,
.gfrm-profile-settings-visibility-button.is-make-public:focus-visible {
    border-color: #d8ad00;
    background: #f4c928;
}

.gfrm-profile-settings-visibility-button__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #9aa3ab;
    box-shadow: 0 0 0 4px rgba(154, 163, 171, .12);
}

.gfrm-profile-settings-visibility-button.is-make-public .gfrm-profile-settings-visibility-button__dot {
    background: #2f8d52;
    box-shadow: 0 0 0 4px rgba(47, 141, 82, .13);
}

.gfrm-profile-settings-visibility-message {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #eaf6ee;
    color: #306944;
    font-size: .72rem;
    font-weight: 800;
}

.gfrm-profile-settings-visibility-message.is-error {
    background: #f8eaea;
    color: #8b3c3c;
}

.gfrm-profile-settings-visibility-control.is-fallback {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

@media (max-width: 680px) {
    .gfrm-profile-settings-header-actions {
        justify-content: flex-start;
    }

    .gfrm-profile-settings-visibility-control {
        width: 100%;
        flex-wrap: wrap;
    }

    .gfrm-profile-settings-visibility-form,
    .gfrm-profile-settings-visibility-button {
        width: 100%;
    }
}

/* 1.14.21 — evita duplicar el control públic/privat dins les dades del perfil */
.gfrm-profile-settings-duplicate-visibility {
    display: none !important;
}


/* 1.14.94 — Accés destacat a l'Àrea de socis. */
.gfrm-site-header .gfrm-members-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 15px !important;
    border: 1px solid rgba(255, 196, 0, .58);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
    color: var(--gfrm-white) !important;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gfrm-site-header .gfrm-members-link .gfrm-members-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.gfrm-site-header .gfrm-members-link .gfrm-members-icon svg { width: 14px; height: 14px; }
.gfrm-site-header .gfrm-members-link:hover,
.gfrm-site-header .gfrm-members-link:focus-visible {
    border-color: var(--gfrm-yellow);
    background: var(--gfrm-yellow);
    color: #111820 !important;
    box-shadow: 0 8px 20px rgba(255, 196, 0, .18);
    transform: translateY(-1px);
}
.gfrm-site-header .gfrm-members-link:hover .gfrm-members-icon,
.gfrm-site-header .gfrm-members-link:focus-visible .gfrm-members-icon {
    border-color: rgba(17, 24, 32, .5);
    background: rgba(17, 24, 32, .06);
    color: #111820;
}
.gfrm-site-header .gfrm-members-link:focus-visible {
    outline: 3px solid rgba(255, 196, 0, .3);
    outline-offset: 3px;
}
@media (min-width: 1201px) {
    .gfrm-site-header .gfrm-members-link {
        font-size: 11px !important;
        font-weight: 900 !important;
        letter-spacing: .025em;
    }
}
@media (max-width: 1200px) {
    .gfrm-site-header .gfrm-members-link {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
        padding: 12px 16px !important;
    }
}


/* 1.15.33 · capçalera fixa estable a totes les pàgines */
body.gfrm-header-is-fixed .gfrm-site-header.is-scrolled {
    position: fixed !important;
    top: var(--gfrm-fixed-header-top, 0px) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 100000 !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
.gfrm-header-spacer { width: 100%; pointer-events: none; }


/* 1.18.16 — elimina els controls ràpids antics de públic/privat.
   La visibilitat es gestiona només dins el bloc premium del formulari del perfil. */
.gfrm-member-visibility-form,
.gfrm-profile-settings-visibility-control,
[data-gfrm-profile-settings-visibility] {
    display: none !important;
}
