.gfrm-value-item__link,.gfrm-what-item__link{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;color:inherit;text-decoration:none}.gfrm-value-item__link:hover,.gfrm-what-item__link:hover{color:inherit}.gfrm-what-item__link{justify-content:center}

/* 0.9.7 — Agenda del mes a amplada completa, sense bloc promocional */
.gfrm-agenda-panel--full{width:100%;min-width: 0}
.gfrm-agenda-panel--full .gfrm-featured-heading{margin-bottom:28px}
.gfrm-agenda-panel--full .gfrm-month-agenda{max-width:none;width:100%}
.gfrm-agenda-panel--full .gfrm-month-agenda-item{min-height:86px}
.gfrm-agenda-panel--full .gfrm-month-agenda-date{min-height:62px}
.gfrm-agenda-panel--full .gfrm-month-agenda-date strong{font-size:24px}
.gfrm-agenda-panel--full .gfrm-month-agenda-main h3{font-size:17px}
@media (max-width: 650px){
  .gfrm-agenda-panel--full .gfrm-month-agenda-item{min-height:auto}
  .gfrm-agenda-panel--full .gfrm-month-agenda-date{min-height:54px}
}


/* 1.1.0 — Programació unificada */
.gfrm-programming-section{padding-top:58px;padding-bottom:68px}
.gfrm-programming-heading{margin-bottom:30px}
.gfrm-programming-heading>div{width:100%}
.gfrm-programming-heading h2{font-size:31px}
.gfrm-programming-fallback{display:grid;grid-template-columns:1fr 1fr;gap:38px}
@media (max-width: 980px){.gfrm-programming-section{padding-top:48px;padding-bottom:56px}.gfrm-programming-fallback{grid-template-columns:1fr}}
@media (max-width: 650px){.gfrm-programming-section{padding-top:40px;padding-bottom:46px}.gfrm-programming-heading{margin-bottom:22px}.gfrm-programming-heading h2{font-size:27px}}


/* 1.1.1 — bloc unificat sense capçalera redundant */
.gfrm-programming-section{
    padding-top:72px;
    padding-bottom:82px;
}
.gfrm-programming-section>.gfrm-shell{
    max-width: 1240px;
}
.gfrm-programming-heading{
    display:none;
}
@media (max-width: 980px){
    .gfrm-programming-section{
        padding-top:58px;
        padding-bottom:66px;
    }
}
@media (max-width: 650px){
    .gfrm-programming-section{
        padding-top:46px;
        padding-bottom:52px;
    }
}


/* 1.1.2 — passada final de poliment del Home */
.gfrm-home .gfrm-what-section{
    padding-top:58px;
    padding-bottom:54px;
}
.gfrm-home .gfrm-programming-section{
    padding-top:56px;
    padding-bottom:60px;
}
.gfrm-home .gfrm-value-strip{
    margin-top:0;
    background:linear-gradient(90deg,#f2f3f4 0%,var(--gfrm-white) 50%,#f2f3f4 100%);
    border-block-color:#e7e9eb;
}
.gfrm-home .gfrm-value-item{
    padding-top:26px;
    padding-bottom:24px;
}
.gfrm-home .gfrm-community-showcase-section{
    padding-top:60px;
    padding-bottom:60px;
}
.gfrm-home .gfrm-community-showcase{
    align-items:start;
}
.gfrm-home .gfrm-month-photo,
.gfrm-home .gfrm-challenge-mosaic{
    align-self:start;
}
.gfrm-home .gfrm-challenge-mosaic{
    height:auto;
}
.gfrm-home .gfrm-challenge-mosaic__grid{
    align-content:start;
}
.gfrm-home .gfrm-community-projects{
    margin-top:28px;
    gap:22px;
}
.gfrm-home .gfrm-community-project{
    min-height:252px;
    padding:26px;
}
.gfrm-home .gfrm-community-project__image{
    right:0;
    width:42%;
    max-height:96%;
}
.gfrm-home .gfrm-community-project__content{
    max-width: 62%;
}
.gfrm-home .gfrm-home-featured-profiles{
    padding-top:54px;
    padding-bottom:58px;
}
.gfrm-home .gfrm-home-featured-profiles>.gfrm-shell{
    width:min(calc(100% - 72px),1560px);
}
.gfrm-home .gfrm-home-featured-profiles__heading{
    margin-bottom:22px;
}
@media (max-width: 1100px){
    .gfrm-home .gfrm-what-section,
    .gfrm-home .gfrm-programming-section,
    .gfrm-home .gfrm-community-showcase-section{
        padding-top:50px;
        padding-bottom:50px;
    }
    .gfrm-home .gfrm-community-project{
        min-height:240px;
    }
}
@media (max-width: 700px){
    .gfrm-home .gfrm-home-featured-profiles>.gfrm-shell{
        width:min(calc(100% - 24px),1560px);
    }
    .gfrm-home .gfrm-community-project{
        min-height:230px;
        padding:22px;
    }
}


/* 1.10.9 — Home: Foto del mes + Repte, sense galeria de resultats */
.gfrm-home .gfrm-community-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.gfrm-home .gfrm-community-focus-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.gfrm-home .gfrm-community-focus-grid__photo,
.gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-showcase,
.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo,
.gfrm-home .gfrm-community-focus-grid__challenge {
    min-width: 0;
    height: 100%;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-showcase--photo-only {
    display: block;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo {
    display: flex;
    flex-direction: column;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__content {
    flex: 1 0 auto;
}

.gfrm-home .gfrm-community-focus-grid__challenge {
    margin: 0;
    min-height: 100%;
}

.gfrm-home .gfrm-community-focus-grid.is-single .gfrm-community-focus-grid__photo {
    max-width: 620px;
}

@media (max-width: 900px) {
    .gfrm-home .gfrm-community-focus-grid {
        grid-template-columns: 1fr;
    }

    .gfrm-home .gfrm-community-focus-grid__challenge {
        min-height: 260px;
    }
}

/* 1.11.1 — Mirades: Foto del mes i Repte com a conceptes independents */
.gfrm-home .gfrm-community-showcase-title {
    display: block;
    max-width: 720px;
    margin-bottom: 28px;
}

.gfrm-home .gfrm-community-showcase-title > h2 {
    margin: 0;
}

.gfrm-home .gfrm-community-showcase-title > p {
    max-width: 560px;
    margin: 11px 0 0;
    color: var(--gfrm-text-muted-1);
    font-size: 14px;
    line-height: 1.6;
}

.gfrm-home .gfrm-community-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, .72fr);
    gap: 22px;
    align-items: stretch;
}

.gfrm-home .gfrm-community-focus-grid.is-single {
    grid-template-columns: minmax(0, 720px);
}

.gfrm-home .gfrm-community-focus-grid__photo,
.gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-showcase,
.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo,
.gfrm-home .gfrm-community-focus-grid__challenge {
    min-width: 0;
    height: 100%;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-showcase--photo-only {
    display: block;
}

/* Foto del mes: peça editorial fotogràfica */
.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gfrm-grey-3);
    border-radius: 14px;
    background: var(--gfrm-white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-block-heading {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    width: auto;
    min-height: 0;
    padding: 9px 12px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    background: rgba(8, 12, 16, .76);
    color: var(--gfrm-white);
    backdrop-filter: blur(8px);
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-block-heading > span {
    display: block;
    margin-bottom: 3px;
    color: var(--gfrm-yellow);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-block-heading h3 {
    margin: 0;
    color: var(--gfrm-white);
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -.015em;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__image {
    position: relative;
    display: block;
    height: 330px;
    overflow: hidden;
    background: #15191e;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4,7,10,.28) 0%, transparent 35%, transparent 100%);
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo:hover .gfrm-month-photo__image img {
    transform: scale(1.018);
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 18px;
    align-items: center;
    min-height: 88px;
    padding: 15px 18px 16px;
    border-top: 0;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__content h4 {
    grid-column: 1;
    overflow: hidden;
    margin: 0;
    color: var(--gfrm-ink-3);
    font-size: 16px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__content p {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
    color: #707780;
    font-size: 11px;
    line-height: 1.4;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__content p span::before {
    content: "·";
    margin-right: 12px;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__link {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    padding: 0;
    color: var(--gfrm-gold-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Repte: CTA independent, no una segona fitxa fotogràfica */
.gfrm-home .gfrm-community-focus-grid__challenge {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 418px;
    overflow: hidden;
    margin: 0;
    padding: 28px 28px 30px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background:
        radial-gradient(circle at 92% 82%, rgba(255,196,0,.11), transparent 30%),
        linear-gradient(145deg, var(--gfrm-ink-3) 0%, #080a0d 100%);
    color: var(--gfrm-white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .075);
}

.gfrm-home .gfrm-challenge-card__topline {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gfrm-home .gfrm-challenge-card__eyebrow {
    color: var(--gfrm-yellow);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.gfrm-home .gfrm-challenge-card__status {
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #e8ebee;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
}

.gfrm-home .gfrm-challenge-card__content {
    position: relative;
    z-index: 3;
    max-width: 88%;
    margin-top: 64px;
}

.gfrm-home .gfrm-challenge-card__content h3 {
    margin: 0 0 15px;
    color: var(--gfrm-white);
    font-size: clamp(30px, 3vw, 44px);
    line-height: .96;
    letter-spacing: -.045em;
}

.gfrm-home .gfrm-challenge-card__content p {
    max-width: 340px;
    margin: 0 0 24px;
    color: #d5dae0;
    font-size: 14px;
    line-height: 1.55;
}

.gfrm-home .gfrm-challenge-card__content .gfrm-button {
    min-height: 39px;
    padding-inline: 15px;
}

.gfrm-home .gfrm-challenge-card__image {
    position: absolute;
    right: -22px;
    bottom: -16px;
    z-index: 1;
    width: 58%;
    max-height: 48%;
    opacity: .42;
    pointer-events: none;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo,
.gfrm-home .gfrm-community-focus-grid__challenge {
    transition: transform .2s ease, box-shadow .2s ease;
}

.gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo:hover,
.gfrm-home .gfrm-community-focus-grid__challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 38px rgba(15, 23, 42, .09);
}

@media (max-width: 980px) {
    .gfrm-home .gfrm-community-focus-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    }

    .gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__image {
        height: 300px;
    }

    .gfrm-home .gfrm-community-focus-grid__challenge {
        min-height: 388px;
        padding: 24px;
    }

    .gfrm-home .gfrm-challenge-card__content {
        margin-top: 48px;
    }
}

@media (max-width: 760px) {
    .gfrm-home .gfrm-community-focus-grid,
    .gfrm-home .gfrm-community-focus-grid.is-single {
        grid-template-columns: 1fr;
    }

    .gfrm-home .gfrm-community-focus-grid__photo,
    .gfrm-home .gfrm-community-focus-grid__challenge {
        width: min(100%, 680px);
    }

    .gfrm-home .gfrm-community-focus-grid__challenge {
        min-height: 330px;
    }

    .gfrm-home .gfrm-challenge-card__content {
        margin-top: 38px;
    }
}

@media (max-width: 560px) {
    .gfrm-home .gfrm-community-showcase-title {
        margin-bottom: 22px;
    }

    .gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__image {
        height: 250px;
    }

    .gfrm-home .gfrm-community-focus-grid__photo .gfrm-community-block-heading {
        top: 14px;
        left: 14px;
    }

    .gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__content {
        grid-template-columns: 1fr;
        padding: 14px 15px 15px;
    }

    .gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__content h4 {
        white-space: normal;
    }

    .gfrm-home .gfrm-community-focus-grid__photo .gfrm-month-photo__link {
        grid-column: 1;
        grid-row: auto;
        margin-top: 4px;
    }

    .gfrm-home .gfrm-community-focus-grid__challenge {
        min-height: 310px;
        padding: 21px 18px 23px;
    }

    .gfrm-home .gfrm-challenge-card__content {
        max-width: 100%;
        margin-top: 34px;
    }

    .gfrm-home .gfrm-challenge-card__content p {
        max-width: 82%;
    }

    .gfrm-home .gfrm-challenge-card__image {
        width: 66%;
        opacity: .24;
    }
}

/* 1.11.2 — Comunitat GFRM: fotografies dels socis integrades amb Foto del mes i Repte */
.gfrm-home .gfrm-community-showcase-title--compact {
    max-width: 720px;
    margin-bottom: 24px;
}

.gfrm-home .gfrm-community-showcase-title--compact > p {
    max-width: 560px;
}

.gfrm-home .gfrm-community-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.82fr);
    gap: 24px;
    align-items: start;
}

.gfrm-home .gfrm-community-home-layout.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.gfrm-home .gfrm-community-photos-card,
.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo,
.gfrm-home .gfrm-community-sidebar__challenge,
.gfrm-home .gfrm-community-sidebar__month .gfrm-community-gallery-empty {
    border: 1px solid var(--gfrm-grey-3);
    border-radius: 14px;
    background: var(--gfrm-white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.gfrm-home .gfrm-community-photos-card {
    padding: 18px;
}

.gfrm-home .gfrm-community-panel-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gfrm-home .gfrm-community-panel-header__eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--gfrm-yellow-dark, var(--gfrm-gold-dark));
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gfrm-home .gfrm-community-panel-header h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--gfrm-ink-2);
}

.gfrm-home .gfrm-community-panel-header__link {
    flex-shrink: 0;
    color: var(--gfrm-ink-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
}

.gfrm-home .gfrm-community-panel-header__link:hover {
    color: var(--gfrm-gold-dark);
}

.gfrm-home .gfrm-community-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gfrm-home .gfrm-community-photo-tile {
    overflow: hidden;
    border: 1px solid #ebedf0;
    border-radius: 12px;
    background: var(--gfrm-white);
}

.gfrm-home .gfrm-community-photo-tile__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0f1317;
}

.gfrm-home .gfrm-community-photo-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gfrm-home .gfrm-community-photo-tile:hover .gfrm-community-photo-tile__image img {
    transform: scale(1.025);
}

.gfrm-home .gfrm-community-photo-tile__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
}

.gfrm-home .gfrm-community-photo-tile__meta strong {
    display: block;
    overflow: hidden;
    color: #161b20;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfrm-home .gfrm-community-photo-tile__meta a {
    flex-shrink: 0;
    color: var(--gfrm-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.gfrm-home .gfrm-community-sidebar {
    display: grid;
    gap: 18px;
}

.gfrm-home .gfrm-community-sidebar__month,
.gfrm-home .gfrm-community-sidebar__challenge {
    min-width: 0;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-showcase--photo-only {
    display: block;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo {
    overflow: hidden;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading {
    min-height: 0;
    padding: 16px 16px 10px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading > span {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--gfrm-yellow-dark, var(--gfrm-gold-dark));
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading h3 {
    margin: 0;
    color: var(--gfrm-ink-2);
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__image {
    height: 198px;
    background: var(--gfrm-ink-2);
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content {
    display: grid;
    gap: 6px;
    padding: 14px 16px 16px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content h4 {
    margin: 0;
    color: #161b20;
    font-size: 15px;
    line-height: 1.35;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    color: #707780;
    font-size: 11px;
    line-height: 1.45;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content p span::before {
    content: '·';
    margin-right: 10px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__link {
    margin-top: 2px;
    color: var(--gfrm-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.gfrm-home .gfrm-community-sidebar__challenge {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 20px 20px 22px;
    border-color: rgba(255,255,255,.06);
    background:
        radial-gradient(circle at 92% 84%, rgba(255,196,0,.10), transparent 30%),
        linear-gradient(145deg, var(--gfrm-ink-3) 0%, #080a0d 100%);
    color: var(--gfrm-white);
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content {
    position: relative;
    z-index: 2;
    max-width: 88%;
    margin-top: 22px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content h3 {
    margin: 0 0 10px;
    color: var(--gfrm-white);
    font-size: clamp(26px, 2vw, 34px);
    line-height: .98;
    letter-spacing: -.04em;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content p {
    margin: 0 0 18px;
    color: #d5dae0;
    font-size: 13px;
    line-height: 1.55;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__image {
    position: absolute;
    right: -8px;
    bottom: -8px;
    z-index: 1;
    width: 48%;
    max-height: 42%;
    opacity: .38;
    pointer-events: none;
}

.gfrm-home .gfrm-community-gallery-empty--soft {
    padding: 18px;
    border: 1px dashed #d7dde2;
    border-radius: 12px;
    background: #fafbfb;
    color: var(--gfrm-text-muted-1);
}

@media (max-width: 980px) {
    .gfrm-home .gfrm-community-home-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .gfrm-home .gfrm-community-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 760px) {
    .gfrm-home .gfrm-community-panel-header {
        flex-direction: column;
        align-items: start;
    }

    .gfrm-home .gfrm-community-photo-grid,
    .gfrm-home .gfrm-community-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .gfrm-home .gfrm-community-photos-card {
        padding: 15px;
    }

    .gfrm-home .gfrm-community-panel-header h3,
    .gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading h3 {
        font-size: 22px;
    }

    .gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__image {
        height: 184px;
    }

    .gfrm-home .gfrm-community-sidebar__challenge {
        padding: 18px 18px 20px;
    }
}

/* 1.11.6 — Composició estable i validada de Comunitat GFRM */
.gfrm-home .gfrm-community-showcase-section > .gfrm-shell,
.gfrm-home .gfrm-home-featured-profiles > .gfrm-shell {
    width: min(calc(100% - 96px), var(--gfrm-shell));
}

.gfrm-home .gfrm-community-showcase-section {
    padding-top: 64px;
    padding-bottom: 34px;
    scroll-margin-top: 96px;
}

.gfrm-home .gfrm-community-showcase-title--compact {
    margin-bottom: 26px;
}

.gfrm-home .gfrm-community-home-layout {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.58fr);
    grid-template-areas: "sidebar photos";
    gap: 22px;
    align-items: stretch;
}

.gfrm-home .gfrm-community-photos-card {
    grid-area: photos;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 18px;
}

.gfrm-home .gfrm-community-sidebar {
    grid-area: sidebar;
    display: grid;
    grid-template-rows: auto minmax(220px, 1fr);
    gap: 18px;
    min-width: 0;
    height: 100%;
}

.gfrm-home .gfrm-community-panel-header {
    min-height: 48px;
    margin-bottom: 14px;
}

.gfrm-home .gfrm-community-panel-header h3 {
    font-size: 24px;
}

.gfrm-home .gfrm-community-photo-grid {
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gfrm-home .gfrm-community-photo-tile {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gfrm-home .gfrm-community-photo-tile__image {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.gfrm-home .gfrm-community-photo-tile__meta {
    min-height: 42px;
    padding: 9px 11px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo {
    height: auto;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading {
    position: static;
    width: auto;
    padding: 15px 16px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    backdrop-filter: none;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading h3 {
    color: var(--gfrm-ink-2);
    font-size: 23px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__image {
    height: auto;
    aspect-ratio: 4 / 3;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content {
    min-height: 82px;
    padding: 12px 15px 14px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content h4 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
}

.gfrm-home .gfrm-community-sidebar__challenge {
    min-height: 220px;
    height: 100%;
    padding: 19px 20px 20px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__topline {
    gap: 8px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content {
    max-width: 82%;
    margin-top: 26px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content h3 {
    font-size: clamp(25px, 2.1vw, 33px);
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__image {
    width: 47%;
    max-height: 44%;
}

.gfrm-home .gfrm-home-featured-profiles {
    padding-top: 22px;
    padding-bottom: 58px;
}

.gfrm-home .gfrm-home-featured-profiles__heading {
    margin-bottom: 20px;
}

.gfrm-home-featured-profiles .gfrm-featured-profiles-module.gfrm-featured-profiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1180px) {
    .gfrm-home .gfrm-community-showcase-section > .gfrm-shell,
    .gfrm-home .gfrm-home-featured-profiles > .gfrm-shell {
        width: min(calc(100% - 64px), var(--gfrm-shell));
    }

    .gfrm-home .gfrm-community-home-layout {
        grid-template-columns: minmax(280px, .78fr) minmax(0, 1.42fr);
    }

    .gfrm-home-featured-profiles .gfrm-featured-profiles-module.gfrm-featured-profiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .gfrm-home .gfrm-community-home-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photos"
            "sidebar";
    }

    .gfrm-home .gfrm-community-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        height: auto;
    }

    .gfrm-home .gfrm-community-sidebar__challenge {
        min-height: 100%;
    }
}

@media (max-width: 620px) {
    .gfrm-home .gfrm-community-showcase-section > .gfrm-shell,
    .gfrm-home .gfrm-home-featured-profiles > .gfrm-shell {
        width: min(calc(100% - 24px), var(--gfrm-shell));
    }

    .gfrm-home .gfrm-community-showcase-section {
        padding-top: 46px;
        padding-bottom: 26px;
    }

    .gfrm-home .gfrm-community-photo-grid,
    .gfrm-home .gfrm-community-sidebar {
        grid-template-columns: 1fr;
    }

    .gfrm-home-featured-profiles .gfrm-featured-profiles-module.gfrm-featured-profiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* 1.11.7 — Sis fotografies compactes al bloc de comunitat */
.gfrm-home .gfrm-community-home-layout {
    align-items: start;
}

.gfrm-home .gfrm-community-photos-card {
    height: auto;
    padding: 16px;
}

.gfrm-home .gfrm-community-photo-grid {
    flex: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 10px;
}

.gfrm-home .gfrm-community-photo-tile {
    min-width: 0;
    min-height: 0;
}

.gfrm-home .gfrm-community-photo-tile__image {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.gfrm-home .gfrm-community-photo-tile__meta {
    min-height: 36px;
    padding: 8px 9px;
}

.gfrm-home .gfrm-community-photo-tile__meta strong {
    font-size: 12px;
}

.gfrm-home .gfrm-community-photo-tile__meta a {
    font-size: 8px;
    letter-spacing: .035em;
}

@media (max-width: 1040px) {
    .gfrm-home .gfrm-community-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .gfrm-home .gfrm-community-photo-grid {
        grid-template-columns: 1fr;
    }

    .gfrm-home .gfrm-community-photo-tile__meta {
        min-height: 40px;
        padding: 9px 10px;
    }

    .gfrm-home .gfrm-community-photo-tile__meta strong {
        font-size: 13px;
    }

    .gfrm-home .gfrm-community-photo-tile__meta a {
        font-size: 9px;
    }
}

/* 1.11.8 — Ajust fi de la columna esquerra: Foto del mes + Repte més compactes */
.gfrm-home .gfrm-community-home-layout {
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.48fr);
    gap: 16px;
}

.gfrm-home .gfrm-community-sidebar {
    gap: 12px;
    align-content: start;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo,
.gfrm-home .gfrm-community-sidebar__challenge {
    border-radius: 12px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading {
    padding: 12px 14px 8px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading h3 {
    font-size: 18px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__image {
    aspect-ratio: 16 / 10;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content {
    min-height: 0;
    gap: 4px;
    padding: 10px 13px 12px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content h4 {
    font-size: 13px;
    line-height: 1.3;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content p {
    font-size: 10px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__link {
    font-size: 9px;
}

.gfrm-home .gfrm-community-sidebar__challenge {
    min-height: 176px;
    padding: 14px 15px 16px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__topline {
    gap: 6px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__eyebrow {
    font-size: 9px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__status {
    font-size: 9px;
    padding: 4px 7px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content {
    max-width: 76%;
    margin-top: 14px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content h3 {
    margin-bottom: 8px;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.02;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content p {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.45;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__image {
    width: 41%;
    max-height: 36%;
    opacity: .32;
}

@media (max-width: 1180px) {
    .gfrm-home .gfrm-community-home-layout {
        grid-template-columns: minmax(240px, .7fr) minmax(0, 1.4fr);
    }
}

@media (max-width: 860px) {
    .gfrm-home .gfrm-community-home-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gfrm-home .gfrm-community-sidebar {
        order: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gfrm-home .gfrm-community-photos-card {
        order: 2;
    }
}

@media (max-width: 620px) {
    .gfrm-home .gfrm-community-sidebar {
        grid-template-columns: 1fr;
    }

    .gfrm-home .gfrm-community-sidebar__challenge {
        min-height: 190px;
    }
}

/* 1.11.9 — Sistema visual unificat del Home */
.gfrm-home {
    --gfrm-home-content-width: 1140px;
    --gfrm-home-section-title-size: 30px;
    --gfrm-home-section-title-weight: 900;
    --gfrm-home-card-title-size: 20px;
    --gfrm-home-card-title-weight: 800;
}

/* Un únic eix de contingut per a totes les seccions principals. */
.gfrm-home .gfrm-what-section > .gfrm-shell,
.gfrm-home .gfrm-programming-section > .gfrm-shell,
.gfrm-home .gfrm-community-showcase-section > .gfrm-shell,
.gfrm-home .gfrm-home-featured-profiles > .gfrm-shell,
.gfrm-home .gfrm-featured-modules-section > .gfrm-shell,
.gfrm-home .gfrm-value-strip > .gfrm-shell,
.gfrm-home .gfrm-value-grid {
    width: min(calc(100% - 64px), var(--gfrm-home-content-width));
    max-width: var(--gfrm-home-content-width);
    margin-inline: auto;
}

/* Títols principals: mateixa escala, pes i firma taronja. */
.gfrm-home .gfrm-section-heading {
    display: block;
    margin-bottom: 28px;
}

.gfrm-home .gfrm-section-heading h2 {
    margin: 0;
    color: var(--gfrm-ink-2);
    font-size: var(--gfrm-home-section-title-size);
    line-height: 1.08;
    font-weight: var(--gfrm-home-section-title-weight);
    letter-spacing: -.025em;
}

.gfrm-home .gfrm-section-heading h2::after,
.gfrm-home .gfrm-section-heading--simple h2::after {
    width: 48px;
    height: 3px;
    margin-top: 10px;
}

.gfrm-home .gfrm-section-heading--simple > p,
.gfrm-home .gfrm-community-showcase-title > p,
.gfrm-home .gfrm-home-featured-profiles__heading > p,
.gfrm-home .gfrm-programming-heading > p {
    max-width: 620px;
    margin: 12px 0 0;
    color: #6c737c;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* Programació recupera capçalera pròpia i jerarquia coherent. */
.gfrm-home .gfrm-programming-heading {
    display: block;
    margin-bottom: 26px;
}

.gfrm-home .gfrm-home-programming {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 32px;
}

.gfrm-home .gfrm-programming-column-head {
    margin-bottom: 14px;
}

.gfrm-home .gfrm-programming-column-head h3 {
    margin: 0;
    color: var(--gfrm-ink-3);
    font-size: var(--gfrm-home-card-title-size);
    line-height: 1.15;
    font-weight: var(--gfrm-home-card-title-weight);
    letter-spacing: -.015em;
}

.gfrm-home .gfrm-programming-column-head h3::after {
    width: 36px;
    height: 2px;
    margin-top: 8px;
}

.gfrm-home .gfrm-programming-card-body h3,
.gfrm-home .gfrm-programming-agenda .gfrm-month-agenda-main h3 {
    font-weight: 800;
}

.gfrm-home .gfrm-programming-card-body h3 {
    font-size: 22px;
}

/* Què fem: menys aire dispers i alineació amb la resta. */
.gfrm-home .gfrm-what-section {
    padding-top: 54px;
    padding-bottom: 48px;
}

.gfrm-home .gfrm-what-grid {
    margin-top: 0;
}

.gfrm-home .gfrm-what-item {
    padding-top: 20px;
    padding-bottom: 16px;
}

.gfrm-home .gfrm-what-item h3 {
    font-weight: 800;
}

/* Ritme vertical consistent. */
.gfrm-home .gfrm-programming-section {
    padding-top: 52px;
    padding-bottom: 58px;
}

.gfrm-home .gfrm-community-showcase-section {
    padding-top: 58px;
    padding-bottom: 34px;
}

.gfrm-home .gfrm-home-featured-profiles {
    padding-top: 30px;
    padding-bottom: 58px;
}

/* Mateixa lectura visual dels títols interns de la comunitat. */
.gfrm-home .gfrm-community-panel-header h3,
.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading h3 {
    font-size: var(--gfrm-home-card-title-size);
    font-weight: var(--gfrm-home-card-title-weight);
    letter-spacing: -.015em;
}

.gfrm-home .gfrm-community-panel-header__eyebrow,
.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading > span,
.gfrm-home .gfrm-challenge-card__eyebrow {
    font-weight: 800;
}

@media (max-width: 980px) {
    .gfrm-home .gfrm-what-section > .gfrm-shell,
    .gfrm-home .gfrm-programming-section > .gfrm-shell,
    .gfrm-home .gfrm-community-showcase-section > .gfrm-shell,
    .gfrm-home .gfrm-home-featured-profiles > .gfrm-shell,
    .gfrm-home .gfrm-featured-modules-section > .gfrm-shell,
    .gfrm-home .gfrm-value-strip > .gfrm-shell,
    .gfrm-home .gfrm-value-grid {
        width: min(calc(100% - 48px), var(--gfrm-home-content-width));
    }

    .gfrm-home .gfrm-home-programming {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 650px) {
    .gfrm-home {
        --gfrm-home-section-title-size: 25px;
        --gfrm-home-card-title-size: 18px;
    }

    .gfrm-home .gfrm-what-section > .gfrm-shell,
    .gfrm-home .gfrm-programming-section > .gfrm-shell,
    .gfrm-home .gfrm-community-showcase-section > .gfrm-shell,
    .gfrm-home .gfrm-home-featured-profiles > .gfrm-shell,
    .gfrm-home .gfrm-featured-modules-section > .gfrm-shell,
    .gfrm-home .gfrm-value-strip > .gfrm-shell,
    .gfrm-home .gfrm-value-grid {
        width: min(calc(100% - 24px), var(--gfrm-home-content-width));
    }

    .gfrm-home .gfrm-section-heading,
    .gfrm-home .gfrm-programming-heading {
        margin-bottom: 22px;
    }
}

/* 1.12.6 — Poliment visual final del Home
 * Ajustos conservadors: ritme vertical, llegibilitat, jerarquia dels CTA,
 * equilibri del bloc Comunitat i capçalera sticky amb barra d'administració.
 */

/* Capçalera fixa: superfície uniforme i separada de la barra de WordPress. */
body.home .gfrm-site-header.is-scrolled {
    background-color: rgba(12, 15, 19, .985);
    background-image: linear-gradient(90deg, rgba(7, 10, 13, .99), rgba(18, 23, 29, .99));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

body.admin-bar.home .gfrm-site-header.is-scrolled {
    top: 32px;
}

/* Hero: botons més pròxims i acció de soci amb menys pes visual. */
.gfrm-home .gfrm-hero-actions {
    gap: 18px;
}

.gfrm-home .gfrm-hero-actions .gfrm-button--hero-secondary.is-member-action {
    background: #2b7b3f !important;
    border-color: #2b7b3f !important;
    box-shadow: 0 6px 18px rgba(18, 92, 42, .18);
}

.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: #236834 !important;
    border-color: #236834 !important;
    box-shadow: 0 9px 24px rgba(18, 92, 42, .24);
}

/* Franja de valors: més llegible sense augmentar-ne l'alçada. */
.gfrm-home .gfrm-value-item {
    padding: 23px 28px 21px;
}

.gfrm-home .gfrm-value-item + .gfrm-value-item::before {
    top: 24px;
    bottom: 24px;
    background: #e3e6e8;
}

.gfrm-home .gfrm-line-icon {
    width: 44px;
    height: 44px;
}

.gfrm-home .gfrm-line-icon svg {
    width: 41px;
    height: 41px;
}

.gfrm-home .gfrm-value-item h3 {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 850;
}

.gfrm-home .gfrm-value-item p {
    max-width: 230px;
    font-size: 13.5px;
    line-height: 1.48;
}

/* Què fem: escala lleugerament més clara i menys buit abans de Programació. */
.gfrm-home .gfrm-what-section {
    padding-top: 46px;
    padding-bottom: 28px;
}

.gfrm-home .gfrm-what-grid {
    margin-top: 2px;
}

.gfrm-home .gfrm-what-item {
    padding: 16px 16px 12px;
}

.gfrm-home .gfrm-what-icon {
    width: 56px;
    height: 56px;
}

.gfrm-home .gfrm-what-icon svg {
    width: 51px;
    height: 51px;
}

.gfrm-home .gfrm-what-item h3 {
    margin-top: 12px;
    padding-bottom: 10px;
    font-size: 13.5px;
    line-height: 1.25;
}

/* Programació: millor continuïtat, targetes més intencionades i CTA visible. */
.gfrm-home .gfrm-programming-section {
    padding-top: 42px;
    padding-bottom: 54px;
}

.gfrm-home .gfrm-programming-heading {
    margin-bottom: 24px;
}

.gfrm-home .gfrm-home-programming {
    gap: 28px;
}

.gfrm-home .gfrm-programming-column-head {
    margin-bottom: 12px;
}

.gfrm-home .gfrm-programming-card,
.gfrm-home .gfrm-programming-agenda,
.gfrm-home .gfrm-month-agenda {
    border-color: #dde2e6;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

/* El fons continua funcionant com a suport quan l'activitat encara no té imatge. */
.gfrm-home .gfrm-programming-card-media,
.gfrm-home .gfrm-programming-card__media,
.gfrm-home .gfrm-programming-featured__media {
    background-color: #151a20;
    background-image:
        radial-gradient(circle at 82% 22%, rgba(255, 196, 0, .08), transparent 30%),
        linear-gradient(145deg, #1c2229 0%, #101419 100%);
}

.gfrm-home .gfrm-programming-card-link,
.gfrm-home .gfrm-programming-card__link,
.gfrm-home .gfrm-programming-card-footer a,
.gfrm-home .gfrm-programming-card-body > a:last-child {
    color: var(--gfrm-ink-3);
    font-weight: 900;
    text-decoration: none;
}

.gfrm-home .gfrm-programming-card-link:hover,
.gfrm-home .gfrm-programming-card__link:hover,
.gfrm-home .gfrm-programming-card-footer a:hover,
.gfrm-home .gfrm-programming-card-body > a:last-child:hover {
    color: var(--gfrm-gold-dark);
}

/* Mirades de la comunitat: columna lateral més compacta i alçades equilibrades. */
.gfrm-home .gfrm-community-showcase-section {
    padding-top: 54px;
    padding-bottom: 24px;
}

.gfrm-home .gfrm-community-showcase-title--compact {
    margin-bottom: 22px;
}

.gfrm-home .gfrm-community-home-layout {
    grid-template-columns: minmax(250px, .68fr) minmax(0, 1.52fr);
    gap: 18px;
}

.gfrm-home .gfrm-community-sidebar {
    grid-template-rows: auto auto;
    gap: 10px;
    height: auto;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading {
    padding: 10px 13px 7px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-community-block-heading h3 {
    font-size: 18px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__image {
    aspect-ratio: 16 / 9;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content {
    gap: 3px;
    padding: 8px 12px 10px;
}

.gfrm-home .gfrm-community-sidebar__month .gfrm-month-photo__content h4 {
    font-size: 12.5px;
}

.gfrm-home .gfrm-community-sidebar__challenge {
    min-height: 190px;
    padding: 13px 14px 14px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content {
    max-width: 78%;
    margin-top: 10px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content h3 {
    margin-bottom: 6px;
    font-size: clamp(16px, 1.45vw, 19px);
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__content p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10.5px;
    line-height: 1.42;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-button {
    min-height: 32px;
    padding-inline: 11px;
}

.gfrm-home .gfrm-community-sidebar__challenge .gfrm-challenge-card__image {
    width: 39%;
    max-height: 34%;
    opacity: .28;
}

/* Perfils destacats: menys separació i peus de targeta uniformes. */
.gfrm-home .gfrm-home-featured-profiles {
    padding-top: 22px;
    padding-bottom: 54px;
}

.gfrm-home-featured-profiles .gfrm-social-card__identity,
.gfrm-home-featured-profiles .gfrm-social-card__footer {
    min-width: 0;
}

.gfrm-home-featured-profiles .gfrm-social-card__footer {
    min-height: 48px;
}

.gfrm-home-featured-profiles .gfrm-social-card__specialties {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gfrm-home-featured-profiles .gfrm-social-card__cta {
    margin-top: auto;
}

/* CTA final: una acció principal i una secundària inequívoca. */
.gfrm-home .gfrm-final-actions {
    gap: 16px;
}

.gfrm-home .gfrm-final-actions .gfrm-button--yellow {
    min-width: 210px;
}

.gfrm-home .gfrm-final-actions .gfrm-button--outline-light {
    min-width: 190px;
    border-color: rgba(255, 255, 255, .68) !important;
    background: rgba(7, 10, 13, .18) !important;
    color: var(--gfrm-white) !important;
    box-shadow: none !important;
}

.gfrm-home .gfrm-final-actions .gfrm-button--outline-light:hover,
.gfrm-home .gfrm-final-actions .gfrm-button--outline-light:focus-visible {
    border-color: var(--gfrm-white) !important;
    background: rgba(255, 255, 255, .11) !important;
    color: var(--gfrm-white) !important;
}

@media (max-width: 1180px) {
    .gfrm-home .gfrm-community-home-layout {
        grid-template-columns: minmax(235px, .7fr) minmax(0, 1.42fr);
    }
}

@media (max-width: 980px) {
    .gfrm-home .gfrm-what-section {
        padding-top: 42px;
        padding-bottom: 24px;
    }

    .gfrm-home .gfrm-programming-section {
        padding-top: 38px;
        padding-bottom: 48px;
    }

    .gfrm-home .gfrm-community-home-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gfrm-home .gfrm-community-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 14px;
    }

    .gfrm-home .gfrm-community-sidebar__challenge {
        min-height: 100%;
    }
}

@media (max-width: 782px) {
    body.admin-bar.home .gfrm-site-header.is-scrolled {
        top: 46px;
    }
}

@media (max-width: 650px) {
    .gfrm-home .gfrm-hero-actions {
        gap: 12px;
    }

    .gfrm-home .gfrm-value-item {
        padding: 21px 18px 19px;
    }

    .gfrm-home .gfrm-what-section {
        padding-top: 38px;
        padding-bottom: 20px;
    }

    .gfrm-home .gfrm-programming-section {
        padding-top: 34px;
        padding-bottom: 42px;
    }

    .gfrm-home .gfrm-community-showcase-section {
        padding-top: 44px;
        padding-bottom: 22px;
    }

    .gfrm-home .gfrm-community-sidebar {
        grid-template-columns: 1fr;
    }

    .gfrm-home .gfrm-community-sidebar__challenge {
        min-height: 182px;
    }

    .gfrm-home .gfrm-final-actions {
        gap: 12px;
    }

    .gfrm-home .gfrm-final-actions .gfrm-button--yellow,
    .gfrm-home .gfrm-final-actions .gfrm-button--outline-light {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    body.admin-bar.home .gfrm-site-header.is-scrolled {
        top: 0;
    }
}

/* 1.14.36 — Home: Mirades de la comunitat en tres blocs editorials */
.gfrm-home .gfrm-home-community-v2 {
    padding-top: 44px;
    padding-bottom: 24px;
}

.gfrm-home .gfrm-home-community-v2 > .gfrm-shell {
    width: min(calc(100% - 48px), 1180px);
}

.gfrm-home-community-v2__heading {
    margin-bottom: 26px;
}

.gfrm-home-community-v2__heading h2 {
    position: relative;
    margin: 0;
    color: #11161b;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.gfrm-home-community-v2__heading h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--gfrm-yellow);
}

.gfrm-home-community-v2__heading p {
    max-width: 760px;
    margin: 13px 0 0;
    color: #727981;
    font-size: .95rem;
    line-height: 1.6;
}

.gfrm-home-community-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.gfrm-home-community-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e6ea;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gfrm-home-community-card:hover {
    border-color: rgba(201, 151, 0, .38);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .11);
    transform: translateY(-3px);
}

.gfrm-home-community-card__header,
.gfrm-home-community-card--month .gfrm-community-block-heading {
    padding: 18px 20px 14px;
}

.gfrm-home-community-card__header > span,
.gfrm-home-community-card--month .gfrm-community-block-heading > span {
    display: block;
    margin-bottom: 5px;
    color: #c28d00;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gfrm-home-community-card__header h3,
.gfrm-home-community-card--month .gfrm-community-block-heading h3 {
    margin: 0;
    color: #11161b;
    font-size: 1.48rem;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.gfrm-home-community-card__media,
.gfrm-home-community-card--month .gfrm-month-photo__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e4e8eb;
}

.gfrm-home-community-card__media img,
.gfrm-home-community-card--month .gfrm-month-photo__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gfrm-home-community-card:hover .gfrm-home-community-card__media img,
.gfrm-home-community-card--month:hover .gfrm-month-photo__image img {
    transform: scale(1.035);
}

.gfrm-home-community-card__content {
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 20px;
}

.gfrm-home-community-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    color: #171b20;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.gfrm-home-community-card__link span {
    color: #b98500;
    font-size: 1rem;
    transition: transform .18s ease;
}

.gfrm-home-community-card__link:hover span,
.gfrm-home-community-card__link:focus-visible span {
    transform: translateX(3px);
}

/* Foto del mes: el shortcode del Core queda encapsulat com una sola targeta. */
.gfrm-home-community-card--month .gfrm-community-showcase,
.gfrm-home-community-card--month .gfrm-community-showcase--photo-only,
.gfrm-home-community-card--month .gfrm-month-photo {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.gfrm-home-community-card--month .gfrm-month-photo__image {
    order: 2;
}

.gfrm-home-community-card--month .gfrm-community-block-heading {
    order: 1;
}

.gfrm-home-community-card--month .gfrm-month-photo__content {
    order: 3;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 205px;
    padding: 20px;
    background: #fff;
}

.gfrm-home-community-card--month .gfrm-month-photo__content h4 {
    margin: 0;
    color: #161b20;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: -.018em;
}

.gfrm-home-community-card--month .gfrm-month-photo__content p {
    display: grid;
    gap: 3px;
    margin: 8px 0 0;
    color: #707981;
    font-size: .82rem;
    line-height: 1.45;
}

.gfrm-home-community-card--month .gfrm-month-photo__content p strong {
    color: #313840;
    font-weight: 800;
}

.gfrm-home-community-card--month .gfrm-month-photo__content p span::before {
    content: none;
}

.gfrm-home-community-card--month .gfrm-month-photo__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    color: #171b20;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.gfrm-home-community-card--month .gfrm-month-photo__link::before {
    content: "◉";
    margin-right: 9px;
    color: #d29d00;
    font-size: .8rem;
}

.gfrm-home-community-card__empty {
    display: grid;
    min-height: 470px;
    align-content: center;
    justify-items: center;
    padding: 34px;
    color: #68717b;
    text-align: center;
}

.gfrm-home-community-card__empty span {
    color: #c28d00;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gfrm-home-community-card__empty h3 {
    margin: 8px 0;
    color: #11161b;
}

.gfrm-home-community-featured__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gfrm-home-community-featured__avatar {
    display: block;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gfrm-yellow), 0 8px 18px rgba(15, 23, 42, .14);
}

.gfrm-home-community-featured__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gfrm-home-community-featured__identity strong {
    display: block;
    color: #14191f;
    font-size: 1.16rem;
    font-weight: 950;
}

.gfrm-home-community-featured__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.gfrm-home-community-featured__tags span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #f2f4f6;
    color: #69717a;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gfrm-home-community-card__content--featured blockquote {
    position: relative;
    margin: 20px 0 22px;
    padding-left: 24px;
    color: #59616a;
    font-size: .94rem;
    font-style: normal;
    line-height: 1.58;
}

.gfrm-home-community-card__content--featured blockquote::before {
    content: "“";
    position: absolute;
    top: -5px;
    left: 0;
    color: var(--gfrm-yellow);
    font-size: 2.3rem;
    font-weight: 950;
    line-height: 1;
}

.gfrm-home-community-card__content--institutional {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px 16px;
    align-items: start;
}

.gfrm-home-community-card__community-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #fff4cf;
    color: #b98500;
}

.gfrm-home-community-card__community-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.gfrm-home-community-card__content--institutional p {
    margin: 1px 0 0;
    color: #4f5861;
    font-size: .96rem;
    line-height: 1.6;
}

.gfrm-home-community-card__content--institutional .gfrm-home-community-card__link {
    grid-column: 1 / -1;
}

@media (max-width: 1020px) {
    .gfrm-home-community-v2__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gfrm-home-community-card--institutional {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .gfrm-home .gfrm-home-community-v2 > .gfrm-shell {
        width: min(calc(100% - 30px), 1180px);
    }

    .gfrm-home-community-v2__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gfrm-home-community-card--institutional {
        grid-column: auto;
    }

    .gfrm-home-community-card__media,
    .gfrm-home-community-card--month .gfrm-month-photo__image {
        aspect-ratio: 16 / 9;
    }

    .gfrm-home-community-card__content,
    .gfrm-home-community-card--month .gfrm-month-photo__content {
        min-height: 180px;
    }
}


/* 1.14.51 · Bloc estacional manual */
.gfrm-seasonal-section{padding:58px 0 66px;background:#f4f5f6}.gfrm-seasonal-card{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);min-height:330px;overflow:hidden;border-radius:22px;background:linear-gradient(135deg,#071018 0%,#111b25 58%,#17293a 100%);color:#fff;box-shadow:0 18px 44px rgba(7,16,24,.16)}.gfrm-seasonal-card.has-image{background-image:var(--gfrm-seasonal-image);background-position:center;background-size:cover}.gfrm-seasonal-card__overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,10,15,.94) 0%,rgba(4,10,15,.78) 42%,rgba(4,10,15,.14) 72%,rgba(4,10,15,.04) 100%)}.gfrm-seasonal-card.has-image .gfrm-seasonal-card__visual{display:none}.gfrm-seasonal-card__content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:52px 54px}.gfrm-seasonal-card__eyebrow{display:inline-flex;align-items:center;gap:10px;color:#ffc400;font-size:.76rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.gfrm-seasonal-card__eyebrow:before{content:"";width:34px;height:2px;background:#ffc400}.gfrm-seasonal-card h2{max-width:690px;margin:15px 0 0;color:#fff;font-size:clamp(2.7rem,4.7vw,5rem);line-height:.95;letter-spacing:-.06em}.gfrm-seasonal-card p{max-width:690px;margin:20px 0 0;color:rgba(255,255,255,.78);font-size:1.08rem;line-height:1.65}.gfrm-seasonal-card__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.gfrm-seasonal-card__actions .gfrm-button{min-height:50px;padding:0 22px;border-radius:10px}.gfrm-seasonal-card__visual{position:relative;z-index:2;min-height:330px}.gfrm-seasonal-card__sun{position:absolute;top:58px;right:72px;width:100px;height:100px;border-radius:50%;background:#ffc400;box-shadow:0 0 0 24px rgba(255,196,0,.09),0 0 80px rgba(255,196,0,.28)}.gfrm-seasonal-card__frame{position:absolute;right:48px;bottom:-42px;width:250px;height:210px;border:3px solid rgba(255,255,255,.18);border-radius:28px;transform:rotate(-8deg)}.gfrm-seasonal-card__frame:before,.gfrm-seasonal-card__frame:after{content:"";position:absolute;border:3px solid rgba(255,255,255,.10);border-radius:28px}.gfrm-seasonal-card__frame:before{inset:24px -46px -24px 46px}.gfrm-seasonal-card__frame:after{inset:48px -92px -48px 92px}.gfrm-button--outline-light{border:1px solid rgba(255,255,255,.24);background:transparent;color:#fff}.gfrm-button--outline-light:hover{border-color:#fff;background:#fff;color:#111820}@media(max-width:820px){.gfrm-seasonal-card{grid-template-columns:1fr}.gfrm-seasonal-card__content{padding:40px 34px}.gfrm-seasonal-card__visual{display:none}}@media(max-width:560px){.gfrm-seasonal-section{padding:36px 0 44px}.gfrm-seasonal-card__content{padding:34px 24px}.gfrm-seasonal-card h2{font-size:2.7rem}.gfrm-seasonal-card__actions{align-items:stretch;flex-direction:column}.gfrm-seasonal-card__actions .gfrm-button{justify-content:center}}


/* 1.14.52 · Mirades de la comunitat amb identitat pròpia per targeta */
.gfrm-home-community-v2__grid{align-items:stretch}

/* Foto del mes: peça editorial clara, accent groc i autoria visible. */
.gfrm-home-community-card--month{border-top:4px solid var(--gfrm-yellow);background:#fff}
.gfrm-home-community-card--month .gfrm-community-block-heading{background:#fffaf0}
.gfrm-home-community-card--month .gfrm-month-photo__image{aspect-ratio:16/9}
.gfrm-home-community-card--month .gfrm-month-photo__content{min-height:220px;background:linear-gradient(180deg,#fff 0%,#fffdf8 100%)}
.gfrm-home-community-card--month .gfrm-month-photo__content h4{display:none}
.gfrm-home-community-card--month .gfrm-month-photo__content p{margin-top:0}
.gfrm-month-photo__author{display:flex;align-items:center;gap:11px;margin-top:13px}
.gfrm-month-photo__avatar{display:block;flex:0 0 auto;width:44px;height:44px;overflow:hidden;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 2px rgba(210,157,0,.38)}
.gfrm-month-photo__avatar img{display:block;width:100%;height:100%;object-fit:cover}
.gfrm-home-community-card--month .gfrm-month-photo__author p{display:grid;gap:2px;margin:0}
.gfrm-home-community-card--month .gfrm-month-photo__author p strong{font-size:.9rem;color:#1b2127}
.gfrm-home-community-card--month .gfrm-month-photo__author p span{font-size:.74rem;color:#7a828a}

/* Fotògraf destacat: tractament més editorial i fosc. */
.gfrm-home-community-card--featured{border-color:#1c252d;background:#10171d;color:#fff}
.gfrm-home-community-card--featured:hover{border-color:#344552}
.gfrm-home-community-card--featured .gfrm-home-community-card__header{background:#10171d}
.gfrm-home-community-card--featured .gfrm-home-community-card__header>span{color:var(--gfrm-yellow)}
.gfrm-home-community-card--featured .gfrm-home-community-card__header h3{color:#fff;font-size:1.62rem}
.gfrm-home-community-card--featured .gfrm-home-community-card__media{aspect-ratio:16/9}
.gfrm-home-community-card--featured .gfrm-home-community-card__content{min-height:220px;background:linear-gradient(160deg,#10171d 0%,#17232c 100%)}
.gfrm-home-community-card--featured .gfrm-home-community-featured__identity strong{color:#fff}
.gfrm-home-community-card--featured .gfrm-home-community-featured__tags span{background:rgba(255,255,255,.09);color:rgba(255,255,255,.72)}
.gfrm-home-community-card--featured .gfrm-home-community-card__content--featured blockquote{color:rgba(255,255,255,.72)}
.gfrm-home-community-card--featured .gfrm-home-community-card__link{color:#fff}

/* Comunitat: targeta institucional més visual, amb imatge més gran i acabat premium. */
.gfrm-home-community-card--institutional{position:relative;border-color:#eadcb3;background:linear-gradient(180deg,#fffdf7 0%,#fff7e7 100%)}
.gfrm-home-community-card--institutional::before{content:"";position:absolute;top:-90px;right:-70px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(242,189,24,.18) 0%,rgba(242,189,24,0) 70%);pointer-events:none}
.gfrm-home-community-card--institutional .gfrm-home-community-card__header{position:relative;z-index:2;background:transparent;padding-bottom:12px}
.gfrm-home-community-card--institutional .gfrm-home-community-card__header h3{font-size:1.56rem}
.gfrm-home-community-card--institutional .gfrm-home-community-card__media{margin:0 18px;width:calc(100% - 36px);aspect-ratio:4/3;border-radius:16px;box-shadow:0 20px 36px rgba(15,23,42,.16)}
.gfrm-home-community-card--institutional .gfrm-home-community-card__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,16,22,.04) 0%,rgba(10,16,22,.18) 42%,rgba(10,16,22,.52) 100%);pointer-events:none}
.gfrm-home-community-card__media--institutional .gfrm-home-community-card__media-badge{position:absolute;z-index:2;left:14px;top:14px;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(255,255,255,.26);border-radius:999px;background:rgba(11,18,24,.72);color:#fff;font-size:.68rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;backdrop-filter:blur(8px);box-shadow:0 10px 22px rgba(0,0,0,.16)}
.gfrm-home-community-card__media--institutional .gfrm-home-community-card__media-badge::before{content:"";display:block;width:8px;height:8px;border-radius:50%;background:#f2bd18;box-shadow:0 0 0 4px rgba(242,189,24,.18)}
.gfrm-home-community-card--institutional .gfrm-home-community-card__content{position:relative;min-height:190px;padding-top:18px;background:transparent}
.gfrm-home-community-card--institutional .gfrm-home-community-card__community-icon{background:#fff;color:#b98500;box-shadow:0 10px 24px rgba(116,87,0,.12)}
.gfrm-home-community-card--institutional .gfrm-home-community-card__content--institutional p{color:#5f5540;font-size:1rem;line-height:1.68}
.gfrm-home-community-card--institutional .gfrm-home-community-card__link{margin-top:6px}

@media(max-width:700px){
 .gfrm-home-community-card--institutional .gfrm-home-community-card__media{margin:0 16px;width:calc(100% - 32px);aspect-ratio:16/10}
 .gfrm-home-community-card__media--institutional .gfrm-home-community-card__media-badge{left:12px;top:12px;padding:7px 11px}
}

/* 1.14.53 · Foto del mes amb autor i distintiu editorial */
.gfrm-home-community-card--month .gfrm-month-photo{position:relative}
.gfrm-month-photo__award{position:absolute;z-index:4;top:14px;right:14px;display:grid;width:34px;height:34px;place-items:center;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:rgba(242,189,24,.94);color:#151a1f;font-size:15px;font-weight:900;box-shadow:0 8px 22px rgba(0,0,0,.2);backdrop-filter:blur(5px)}
.gfrm-home-community-card--month .gfrm-month-photo__author{display:flex!important;align-items:center;gap:11px;margin-top:13px}
.gfrm-home-community-card--month .gfrm-month-photo__avatar{display:block!important;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 2px rgba(210,157,0,.42)}
.gfrm-home-community-card--month .gfrm-month-photo__avatar img{display:block;width:100%;height:100%;object-fit:cover}
.gfrm-home-community-card--month .gfrm-month-photo__author p{display:grid!important;gap:2px;margin:0!important}
.gfrm-home-community-card--month .gfrm-month-photo__author p strong{font-size:.92rem;color:#1b2127}
.gfrm-home-community-card--month .gfrm-month-photo__author p span{font-size:.74rem;color:#7a828a}


/* 1.17.3 · Properes activitats: tres targetes horitzontals i agenda independent */
.gfrm-home .gfrm-upcoming-cards-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
}
.gfrm-home .gfrm-upcoming-cards-heading>div{min-width:0}
.gfrm-home .gfrm-upcoming-all-link{
    flex:0 0 auto;
    padding-bottom:4px;
    color:var(--gfrm-ink-3);
    font-size:12px;
    font-weight:900;
    letter-spacing:.04em;
    text-decoration:none;
    text-transform:uppercase;
}
.gfrm-home .gfrm-upcoming-all-link:hover{color:var(--gfrm-gold-dark)}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-activities-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-activity-card{
    display:flex;
    min-width:0;
    flex-direction:column;
    border:1px solid #dfe3e7;
    background:#fff;
    box-shadow:0 8px 22px rgba(15,23,42,.045);
}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-card-media{aspect-ratio:16/9}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-card-type{
    left:0;
    bottom:0;
    padding:6px 9px;
    font-size:9px;
}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:16px 17px 14px;
}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-card-date{
    margin-bottom:7px;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-card-body h3{
    margin:0 0 9px;
    font-size:18px;
    line-height:1.2;
}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-card-body>p:not(.gfrm-card-date){
    margin:0 0 12px;
    font-size:12px;
}
.gfrm-home .gfrm-home-upcoming-grid .gfrm-card-footer{
    margin-top:auto;
    padding-top:12px;
    font-size:10px;
}
.gfrm-home .gfrm-month-agenda-section{padding-top:50px;padding-bottom:58px}
@media(max-width:900px){
    .gfrm-home .gfrm-home-upcoming-grid .gfrm-activities-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
    .gfrm-home .gfrm-upcoming-cards-heading{display:block}
    .gfrm-home .gfrm-upcoming-all-link{display:inline-flex;margin-top:16px}
    .gfrm-home .gfrm-home-upcoming-grid .gfrm-activities-grid{grid-template-columns:1fr}
}


/* 1.18.2 · Mirades de la comunitat integrada amb perfils i últimes fotos */
.gfrm-home .gfrm-home-community-v2{
    padding-bottom:68px;
}
.gfrm-home-community-v2__subsections{
    margin-top:34px;
    display:grid;
    gap:34px;
}
.gfrm-home-community-subsection{
    min-width:0;
}
.gfrm-home-community-subsection__heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:22px;
    margin-bottom:18px;
}
.gfrm-home-community-subsection__heading h3{
    margin:0;
    color:#111820;
    font-size:clamp(1.85rem,2vw,2.25rem);
    line-height:1.02;
    letter-spacing:-.04em;
    text-transform:uppercase;
}
.gfrm-home-community-subsection__heading p{
    max-width:760px;
    margin:6px 0 0;
    color:var(--gfrm-muted);
    font-size:14px;
    line-height:1.55;
}
.gfrm-home-community-v2__featured-profiles{
    padding:0;
}
.gfrm-home-community-v2__featured-profiles .gfrm-home-featured-profiles__content{
    width:100%;
}
.gfrm-home-community-v2__featured-profiles .gfrm-featured-profiles-module.gfrm-featured-profiles{
    gap:14px;
}
.gfrm-home-community-recent-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:14px;
}
.gfrm-home-community-recent-card{
    min-width:0;
}
.gfrm-home-community-recent-card__link{
    position:relative;
    display:block;
    overflow:hidden;
    aspect-ratio:4 / 5;
    border-radius:16px;
    background:#dfe3e8;
    box-shadow:0 12px 30px rgba(17,24,32,.09);
    isolation:isolate;
    text-decoration:none;
}
.gfrm-home-community-recent-card__image{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .45s ease;
}
.gfrm-home-community-recent-card__overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(10,14,18,.02) 0%,rgba(10,14,18,.08) 42%,rgba(10,14,18,.72) 100%);
    z-index:1;
}
.gfrm-home-community-recent-card__meta{
    position:absolute;
    right:14px;
    bottom:14px;
    left:14px;
    z-index:2;
    display:grid;
    gap:3px;
    color:#fff;
}
.gfrm-home-community-recent-card__meta strong{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    font-size:15px;
    font-weight:800;
    line-height:1.2;
    text-shadow:0 2px 12px rgba(0,0,0,.22);
}
.gfrm-home-community-recent-card__meta span{
    font-size:11px;
    font-weight:700;
    letter-spacing:.03em;
    text-transform:uppercase;
    color:rgba(255,255,255,.88);
}
.gfrm-home-community-recent-card__link:hover .gfrm-home-community-recent-card__image,
.gfrm-home-community-recent-card__link:focus-visible .gfrm-home-community-recent-card__image{
    transform:scale(1.04);
}
.gfrm-home-community-recent-card__link:focus-visible{
    outline:3px solid rgba(255,193,7,.38);
    outline-offset:4px;
}
.gfrm-home-community-v2__footer{
    display:flex;
    justify-content:flex-end;
    padding-top:6px;
}
.gfrm-home-community-v2__footer .gfrm-button{
    min-width:235px;
}
@media (max-width: 1280px){
    .gfrm-home-community-recent-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}
@media (max-width: 860px){
    .gfrm-home-community-v2__subsections{
        margin-top:28px;
        gap:28px;
    }
    .gfrm-home-community-subsection__heading{
        display:block;
    }
    .gfrm-home-community-recent-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .gfrm-home-community-v2__footer{
        justify-content:flex-start;
    }
}
@media (max-width: 620px){
    .gfrm-home .gfrm-home-community-v2{
        padding-bottom:48px;
    }
    .gfrm-home-community-v2__subsections{
        gap:24px;
    }
    .gfrm-home-community-recent-grid{
        gap:10px;
    }
    .gfrm-home-community-recent-card__link{
        border-radius:12px;
    }
    .gfrm-home-community-recent-card__meta{
        right:12px;
        bottom:12px;
        left:12px;
    }
    .gfrm-home-community-recent-card__meta strong{
        font-size:14px;
    }
    .gfrm-home-community-v2__footer .gfrm-button{
        width:100%;
        min-width:0;
    }
}
/* 1.18.4 · Signatura taronja als subtítols de comunitat */
.gfrm-home-community-subsection__heading h3{
    display:flex;
    align-items:center;
    gap:12px;
}
.gfrm-home-community-subsection__heading h3::before{
    content:"";
    flex:0 0 18px;
    width:18px;
    height:3px;
    border-radius:999px;
    background:var(--gfrm-yellow);
}

