/*
Theme Name: FEM Sant Feliu
Author: David González
Description: Tema propi de FEM Sant Feliu basat en la plantilla HTML Pily.
Version: 0.5.33
Requires PHP: 8.2
Text Domain: fem-sant-feliu
*/
:root { --fem-ink: #12385e; --fem-accent: #12385e; }
.fem-channel-section { padding: 80px 0; background: #ffffff; }
.fem-channel-intro { display: flex; align-items: center; gap: 40px; justify-content: space-between; margin-bottom: 40px; }
.fem-channel-intro > div { max-width: 740px; }
.fem-channel-intro .sub-title { color: #12385e; }
.fem-channel-intro h2 { color: #12385e; font-size: 36px; margin: 12px 0 18px; }
.fem-channel-link { flex-shrink: 0; background: #12385e; border-radius: 6px; }
.fem-channel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.fem-channel-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dfe7e3; border-top: 4px solid #12385e; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 25px #38302409; }
.fem-channel-card .fem-video-player { border-radius: 0; box-shadow: none; flex-shrink: 0; }
.fem-channel-card .fem-video-play-icon { width: 55px; height: 55px; }
.fem-channel-body { padding: 24px; display: flex; flex: 1; flex-direction: column; }
.fem-channel-body time { color: #63716c; font-size: 13px; }
.fem-channel-body h3 { font-size: 21px; line-height: 1.4; margin: 14px 0 24px; overflow-wrap: anywhere; }
.fem-channel-body > a { color: #12385e; font-weight: 600; margin-top: auto; }
.fem-channel-note { font-size: 14px; color: #63716c; margin-top: 30px; }
.fem-channel-empty { padding: 65px 25px; text-align: center; background: #edf3f0; border-radius: 12px; }
.fem-channel-empty h3 { font-size: 26px; margin: 20px 0 15px; }
.fem-channel-empty-icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; margin: auto; background: #fff; color: #a7250e; font-size: 45px; }
@media(max-width: 991px) { .fem-channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .fem-channel-intro { display: block; } .fem-channel-link { margin-top: 12px; } }
@media(max-width: 575px) { .fem-channel-section { padding: 50px 0; } .fem-channel-grid { grid-template-columns: 1fr; } .fem-channel-intro h2 { font-size: 29px; } }
.fem-home-video { padding: 85px 0; background: #ffffff; }
.fem-video-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: center; }
.fem-video-eyebrow { display: block; color: #12385e; font-size: 14px; font-weight: 600; margin-bottom: 15px; }
.fem-video-intro h2 { color: var(--fem-ink); font-size: 38px; line-height: 1.15; margin-bottom: 22px; }
.fem-video-intro p { color: #4f5c62; line-height: 1.8; }
.fem-video-external { display: inline-flex; align-items: center; gap: 14px; color: #12385e; font-weight: 600; margin-top: 10px; border-bottom: 1px solid #12385e; padding-bottom: 4px; }
.fem-video-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #dfe9e5; box-shadow: 0 12px 32px #12385e14; }
.fem-video-cover { width: 100%; height: 100%; object-fit: cover; }
.fem-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fem-video-play { position: absolute; inset: 0; width: 100%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: #12385e30; color: white; font-size: 15px; font-weight: 600; text-shadow: 0 1px 5px #000; cursor: pointer; }
.fem-video-play[hidden] { display: none; }
.fem-video-play-icon { width: 74px; height: 74px; border-radius: 50%; background: #a7250e; display: grid; place-items: center; box-shadow: 0 0 0 10px #fff3; }
.fem-video-play-icon svg { width: 29px; height: 29px; }
.fem-video-play:hover .fem-video-play-icon { background: #12385e; }
.fem-video-play:focus-visible { outline: 4px solid white; outline-offset: -8px; }
.fem-video-caption { color: #66706f; font-size: 12px; margin: 12px 0 0; }
@media(max-width: 991px) { .fem-video-layout { grid-template-columns: 1fr; gap: 28px; } .fem-video-intro { max-width: 650px; } }
@media(max-width: 575px) { .fem-home-video { padding: 55px 0; } .fem-video-intro h2 { font-size: 30px; } .fem-video-play-icon { width: 56px; height: 56px; } }
.fem-priorities { padding: 90px 0; background: #edf3f0; }
.fem-priorities .section-title .sub-title { color: #12385e; }
.fem-priorities .section-title { margin-bottom: 40px; }
.fem-priorities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.fem-priority-card { --priority-accent: #378aba; --priority-tint: #e6f0f6; background: #fff; border: 1px solid #dfe7e3; border-top: 4px solid var(--priority-accent); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 25px rgba(56, 48, 36, .035); }
.fem-priority-sand { --priority-accent: #4692d2; --priority-tint: #e8f2fa; }
.fem-priority-clay { --priority-accent: #a7250e; --priority-tint: #f7e9e6; }
.fem-priority-heading { min-height: 116px; padding: 27px 26px 20px; display: flex; align-items: center; gap: 16px; background: transparent; }
.fem-priority-icon { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; color: var(--priority-accent); background: var(--priority-tint); }
.fem-priority-icon svg { display: block; width: 28px; height: 28px; }
.fem-priority-heading h3 { color: var(--fem-ink); font-size: 22px; line-height: 1.3; margin: 0; font-weight: 700; }
.fem-priority-content { padding: 0 26px 30px; color: #4f5c62; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.fem-priority-content ul { padding-left: 20px; margin: 0; list-style: disc; }
.fem-priority-content li { margin-bottom: 12px; padding-left: 3px; }
.fem-priority-content li::marker { color: var(--priority-accent); }
.fem-priority-content li:last-child, .fem-priority-content > :last-child { margin-bottom: 0; }
.fem-priority-content strong { color: var(--fem-ink); font-weight: 700; }
@media (max-width: 991px) { .fem-priorities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .fem-priorities { padding: 55px 0; } .fem-priorities-grid { grid-template-columns: 1fr; gap: 22px; } .fem-priority-heading { min-height: 100px; padding: 22px; gap: 14px; } .fem-priority-heading h3 { font-size: 21px; } .fem-priority-content { padding: 0 22px 26px; } }
.fem-contact .section-title { max-width: 660px; margin-inline: auto; }
.fem-contact .section-title h2 { color: var(--fem-ink); }
.fem-contact #contactForm label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; color: var(--fem-ink); }
.fem-contact #contactForm label span { font-weight: 400; }
.fem-contact #contactForm .form-control { border: 1px solid #dce5ed; background: #f6f8fa; border-radius: 0; padding: 15px 18px; }
.fem-contact #contactForm textarea.form-control { height: auto; }
.fem-contact #contactForm .form-control:disabled { opacity: 1; }
.fem-contact #contactForm button:disabled { cursor: not-allowed; opacity: .6; }
.fem-contact-status { font-size: 14px; color: #59636e; }
.fem-contact .contact-info { background: var(--fem-ink); color: white; margin-left: 18px; padding: 0; }
.fem-contact .contact-info::before { display: none; }
.fem-contact .contact-info h3, .fem-contact .contact-info p, .fem-contact .contact-info a { color: white; }
.fem-contact-email { display: block; margin-bottom: 24px; text-decoration: underline; text-underline-offset: 4px; }
.fem-contact .fem-contact-trap { display: none; }
.fem-contact #contactForm .form-group .form-control:focus { border: 1px solid var(--fem-ink); box-shadow: 0 0 0 2px #12385e22; }
.fem-contact .contact-info .inner { padding: 40px 30px; }
.fem-contact-eyebrow { display: block; font-size: 12px; letter-spacing: .12em; margin-bottom: 20px; }
.fem-contact address { font-style: normal; font-size: 18px; line-height: 1.8; margin: 16px 0 28px; }
.fem-contact-directions { color: white; display: inline-block; border-bottom: 1px solid #ffffff80; padding-bottom: 6px; }
.fem-contact-directions:hover { color: white; border-color: white; }
.fem-contact-directions:focus-visible { outline-color: white; }
.fem-contact-map #map { display: block; width: 100%; height: 420px; border: 0; background: #edf2f6; }
.fem-contact-intro { margin-bottom: 30px; }
@media (max-width: 991px) { .fem-contact .contact-info { margin-left: 0; } }
@media (max-width: 767px) { .fem-contact { padding-top: 45px; padding-bottom: 35px; } .fem-contact-map { padding-bottom: 45px; } .fem-contact-map #map { height: 320px; } }
/* Actualitat: estructura de blog.html i blog-details.html de Pily. */
.fem-news-heading { background: #edf2f6; padding: 65px 0; border-bottom: 1px solid #dce5ed; }
.fem-news-heading h1, .fem-news-section { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.15; color: var(--fem-ink); margin: 0 0 18px; }
.fem-news-heading nav { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.fem-news-heading a { color: var(--fem-ink); }
.fem-news-card { height: 100%; margin: 0; display: flex; flex-direction: column; }
.fem-home-news { background: #ffffff; }
.fem-home-news .section-title .sub-title { color: #12385e; }
.fem-home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 28px; }
.fem-home-news-grid .fem-news-card { min-width: 0; background: #fff; border: 1px solid #dfe7e3; border-top: 4px solid var(--fem-ink); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 25px rgba(56, 48, 36, .035); }
.fem-home-news-grid .fem-news-card .bottom { padding: 24px; }
.fem-home-news-grid .bottom > p { color: #4f5c62; font-size: 15px; line-height: 1.75; margin-bottom: 22px; }
.fem-home-news-grid .fem-news-card .blog-btn { color: #12385e; font-weight: 600; padding-top: 16px; border-top: 1px solid #dfe9e5; width: 100%; }
.fem-home-news-grid .blog-btn:hover, .fem-home-news-grid .bottom h3 a:hover { color: #a7250e; }
.fem-home-news-grid a:focus-visible { outline: 2px solid #12385e; outline-offset: 3px; }
.fem-home-news-grid .top { flex-shrink: 0; aspect-ratio: 1.75; overflow: hidden; }
.fem-home-news-grid .top a { display: block; height: 100%; }
.fem-home-news-grid .top img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fem-home-news-grid .bottom h3 { font-size: 22px; line-height: 1.35; margin: 14px 0; }
.fem-home-news-grid .bottom h3 a { color: var(--fem-ink); }
.fem-home-news .fem-all-news { margin-top: 40px; background: #12385e; border-radius: 6px; }
.fem-home-news .fem-all-news:hover { background: #12385e; }
@media (min-width: 576px) and (max-width: 991px) { .fem-home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .fem-home-news-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .fem-home-news-grid .fem-news-card .bottom { padding: 22px; } }
.fem-news-list > .container > .row { row-gap: 40px; }
.fem-news-card .top img { width: 100%; aspect-ratio: 1.75; height: auto; object-fit: cover; }
.fem-news-card .bottom { flex: 1; display: flex; flex-direction: column; }
.fem-news-card h2 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.3; margin: 14px 0; }
.fem-news-card h2 a { color: var(--fem-ink); }
.fem-news-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fem-news-card .blog-btn { margin-top: auto; align-self: flex-start; }
.fem-news-card .blog-btn span[aria-hidden] { margin-left: 12px; }
.fem-news-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: #555; }
.fem-news-meta a { color: var(--fem-ink); }
.fem-news-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; aspect-ratio: 1.75; background: var(--fem-ink); color: white; font-size: 70px; font-weight: 800; }
.fem-news-placeholder small { font-size: 17px; letter-spacing: .16em; }
.fem-news-list .pagination { display: block; margin-top: 50px; text-align: center; }
.fem-news-list .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.fem-news-list .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 15px; background: #edf2f6; color: var(--fem-ink); border-radius: 4px; }
.fem-news-list .page-numbers.current, .fem-news-list a.page-numbers:hover { background: var(--fem-ink); color: white; }
.fem-news-detail .details-img img { width: 100%; max-height: 580px; object-fit: cover; object-position: center; }
.fem-news-detail .details-info h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; margin-top: 18px; }
.fem-demo-notice { border-left: 3px solid var(--fem-ink); padding: 14px 18px; background: #edf2f6; font-size: 13px; }
.fem-news-body { line-height: 1.85; }
.fem-news-body p, .fem-news-body ul, .fem-news-body ol { margin-bottom: 24px; }
.fem-news-body h2 { font-size: 27px; margin: 35px 0 18px; }
.fem-news-body h3 { font-size: 22px; }
.fem-news-body a { text-decoration: underline; }
.fem-news-body img, .fem-news-body video { max-width: 100%; height: auto; }
.fem-news-body iframe { max-width: 100%; }
.fem-news-body blockquote { margin: 30px 0; padding: 30px; border-left: 4px solid var(--fem-ink); background: #f5f7f9; font-size: 21px; font-style: italic; }
.fem-news-body blockquote p:last-child { margin-bottom: 0; }
.fem-news-detail .widget-area { padding-left: 20px; }
.fem-news-detail .widget-item h2 { font-size: 24px; margin-bottom: 25px; }
.fem-recent-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e3e8ed; }
.fem-recent-item:first-of-type { padding-top: 0; }
.fem-recent-item img { width: 85px; height: 85px; object-fit: cover; flex-shrink: 0; }
.fem-recent-item time { font-size: 12px; color: #555; }
.fem-news-detail .widget-area .fem-recent-item h3 { font-size: 16px; line-height: 1.5; margin: 6px 0 0; }
.fem-news-categories ul { list-style: none; padding: 0; }
.fem-news-categories li { padding: 12px 0; border-bottom: 1px solid #e3e8ed; }
.fem-news-detail .post-navigation { margin: 35px 0; padding: 25px 0; border-block: 1px solid #e3e8ed; }
.fem-news-detail .post-navigation .nav-links { display: flex; gap: 24px; justify-content: space-between; }
.fem-news-detail .post-navigation .nav-links > div { flex: 1; }
.fem-news-detail .post-navigation strong { display: block; margin-top: 8px; font-size: 14px; }
.fem-news-detail .nav-next { text-align: right; }
@media (max-width: 991px) { .fem-news-detail .widget-area { padding-left: 0; } }
@media (max-width: 767px) { .fem-news-heading { padding: 40px 0; } .fem-news-list, .fem-news-detail { padding-top: 45px; padding-bottom: 45px; } .fem-news-body blockquote { padding: 20px; } }
.fem-banner .fem-slide-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner-area-two.three .fem-has-background::before { display: block; z-index: 1; opacity: 1; background: linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.62) 42%, rgba(255,255,255,.12) 75%, transparent 100%); }
.banner-area-two.three .fem-has-background::after { display: none; }
.fem-slider-controls button { min-width: 44px; min-height: 44px; }
@media (max-width: 767px) {
    .banner-area-two.three .fem-has-background::before { background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.68) 40%, rgba(255,255,255,.08) 100%); }
}
.fem-election-countdown { padding-top: 28px; padding-bottom: 20px; background-image: none; background-color: var(--fem-ink); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.fem-election-countdown .countdown-wrap { position: relative; }
.fem-election-countdown h2 { font-size: 20px; margin-bottom: 9.6px; }
.fem-countdown-status { color: white; font-size: 80%; margin-bottom: 14px; }
.fem-election-countdown [role="timer"] { max-width: 640px; margin-inline: auto; }
.fem-election-countdown .coming-inner { margin-bottom: 8px; }
.fem-election-countdown .coming-inner span { display: block; font-size: 48px; line-height: 1.1; margin-bottom: 2px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fem-election-countdown .coming-inner p { font-size: 14.4px; }
.fem-election-countdown .coming-inner::before, .fem-election-countdown .coming-inner::after { width: 6px; height: 6px; right: -15px; }
.fem-election-countdown .coming-inner::before { top: 14px; }
.fem-election-countdown .coming-inner::after { top: 32px; bottom: auto; }
@media (max-width: 767px) {
    .fem-election-countdown h2 { font-size: 16px; }
    .fem-election-countdown .coming-inner span { font-size: 40px; }
    .fem-election-countdown .coming-inner p { font-size: 13.6px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .fem-election-countdown .coming-inner::before, .fem-election-countdown .coming-inner::after { display: none; }
}
body { overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--fem-accent); outline-offset: 5px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip-path: none; padding: 12px; background: white; z-index: 9999; }
.fem-header { padding: 24px 0; border-bottom: 1px solid #e5e7eb; }
.fem-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fem-brand { font-size: 25px; font-weight: 700; color: var(--fem-ink); }
.custom-logo { display: block; max-width: 126px; max-height: 77px; width: auto; height: auto; }
.fem-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.fem-menu a { color: var(--fem-ink); font-weight: 600; }
.fem-header .fem-menu a { position: relative; display: inline-block; transition: color .5s ease; }
.fem-header .fem-menu .fem-menu-incidents > a { padding: 11px 18px; background: #12385e; color: #fff; border-radius: 6px; transition: background .2s ease; }
.fem-header .fem-menu .fem-menu-incidents > a:hover { background: #245580; }
.fem-header .fem-menu .fem-menu-incidents > a::before { display: none; }
.fem-header .fem-menu .fem-menu-incidents > a:focus-visible { outline: 3px solid #4692d2; outline-offset: 3px; }
.fem-header .fem-menu a::before { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #12385e; transition: width .5s ease; }
.fem-header .fem-menu a:hover::before, .fem-header .fem-menu a:focus-visible::before,
.fem-header .fem-menu .current-menu-item > a::before,
.single-post .fem-header .fem-menu .current_page_parent > a::before { width: 25px; }
.fem-content { max-width: 900px; }
.fem-content img { height: auto; }
.fem-content iframe { max-width: 100%; }
.fem-content > * + * { margin-top: 24px; }
.fem-card { border: 1px solid #e5e7eb; padding: 28px; height: 100%; }
.fem-card h2 { font-size: 24px; }
.fem-card img { width: 100%; height: auto; margin-bottom: 20px; }
@media (max-width: 767px) { .fem-menu { gap: 12px 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Pily index-3: capçalera clara, bàner lateral i blocs de la tercera portada. */
.header-area.three.fem-topbar { background: #d7eaf7; padding: 6px 0; color: var(--fem-ink); font-size: 12px; line-height: 1.6; }
.fem-topbar a { color: var(--fem-ink); font-weight: 600; }
.fem-topbar a:hover { color: #12385e; }
.fem-topbar a:focus-visible { outline: 2px solid #12385e; outline-offset: 3px; }
.fem-topbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.fem-topbar-links { display: flex; align-items: center; gap: 16px; }
.fem-header-three { position: sticky; top: 0; z-index: 50; background: white; }
.fem-header-three { transition: box-shadow .5s ease; }
.fem-header-three .custom-logo { transition: max-width .5s ease, max-height .5s ease; }
@media (min-width: 992px) {
    .fem-header-three.menu-shrink { box-shadow: 0 0 20px rgba(221, 221, 221, .31); }
    .fem-header-three.menu-shrink .custom-logo { max-width: 80px; max-height: 66.3px; }
}
.admin-bar .fem-header-three { top: 32px; }
.fem-header-three .fem-header-inner { flex-wrap: nowrap; }
.fem-menu-toggle { display: none; background: white; color: var(--fem-ink); border: 1px solid #dce0e5; padding: 10px 16px; }
.fem-header-cta { flex-shrink: 0; }
.fem-banner .banner-slider-item { height: auto; min-height: 650px; padding: 0; background-image: none; background-color: #f6f5f2; }
.fem-banner .banner-slider-item::before { display: none; }
.fem-banner .banner-slider-item::after { width: 21%; }
.fem-slide-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; min-height: 650px; position: relative; z-index: 2; }
.fem-banner .banner-content { margin: 0; padding: 70px 0; }
.fem-banner .banner-content h1, .fem-banner .fem-slide-title { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.12; text-wrap: balance; color: var(--fem-ink); margin-bottom: 24px; }
.fem-banner .banner-content p { max-width: 540px; font-weight: 400; line-height: 1.8; margin-bottom: 30px; }
.fem-eyebrow { display: block; color: var(--fem-accent); font-size: 13px; font-weight: 700; letter-spacing: .15em; margin-bottom: 24px; }
.fem-banner .slider-img { align-self: end; }
.banner-area-two.three .banner-slider-item .slider-img img { display: block; position: relative; bottom: auto; right: auto; left: auto; max-width: 100%; width: auto; height: 580px; margin-left: auto; object-fit: contain; object-position: bottom right; }
.fem-photo-placeholder { min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #e6e8e9; color: var(--fem-ink); }
.fem-photo-placeholder > span { font: 800 clamp(70px, 8vw, 120px)/1 'Montserrat', sans-serif; letter-spacing: -.06em; }
.fem-photo-placeholder > p { letter-spacing: .18em; font-weight: 600; margin: 8px 0 65px; }
.fem-photo-placeholder small, .fem-about-placeholder small { color: #555c65; font-size: 12px; }
.fem-slider-controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 20px; display: flex; gap: 6px; }
.fem-slider-controls button { border: 0; padding: 16px 8px; background: transparent; }
.fem-slider-controls span { display: block; width: 12px; height: 6px; border-radius: 10px; background: var(--fem-ink); }
.fem-slider-controls button[aria-pressed="true"] span { width: 45px; }
.fem-slide[hidden] { display: none; }
.fem-slider-ready .fem-slides { display: grid; overflow: hidden; }
.fem-slider-ready .fem-slide { grid-area: 1 / 1; width: 100%; }
.fem-slider-ready .is-active { animation: fem-slide-in 1s ease both; }
.fem-slider-ready .is-leaving { animation: fem-slide-out 1s ease both; pointer-events: none; }
.fem-slider-ready .is-active .banner-content h1,
.fem-slider-ready .is-active .fem-slide-title,
.fem-slider-ready .is-active .slider-img img { animation: fem-fade-up 1s .7s both; }
.fem-slider-ready .is-active .banner-content p { animation: fem-fade-down 1s .7s both; }
.fem-slider-controls .fem-slider-playback { color: var(--fem-ink); font-size: 12px; font-weight: 600; padding: 10px; }
@keyframes fem-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fem-slide-out { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes fem-fade-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fem-fade-down { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }
.fem-section-links { background-image: none; background-color: var(--fem-ink); padding: 30px 0; }
.fem-section-links .countdown-wrap { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.fem-section-links a { font-weight: 600; color: white; padding: 6px 0; }
.fem-section-links a span { margin-left: 24px; }
#presentacio { scroll-margin-top: 120px; background-image: none; }
.fem-about-placeholder { min-height: 370px; background: #eef0f1; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 25px; }
.fem-about-placeholder > span { font-size: 12px; letter-spacing: .15em; color: var(--fem-accent); }
.fem-about-placeholder strong { font: 800 44px/1.2 'Montserrat', sans-serif; color: var(--fem-ink); }
.about-img-three > img { width: 100%; height: auto; }
.fem-page-intro { margin-bottom: 25px; }
.fem-footer-three .footer-logo .fem-brand { color: white; display: inline-block; margin-bottom: 20px; }
.fem-footer-three .footer-logo { padding: 30px; }
.fem-footer-three .footer-link h2 { color: white; font-size: 20px; margin-bottom: 25px; }
.fem-footer-three .footer-link a { color: white; }
.fem-footer-three .footer-logo p { max-width: 340px; }
.fem-footer-three .copyright-area { margin-top: 30px; }
.volunteer-area.two h2 { color: white; }
.team-item img, .ideology-item img { width: 100%; height: auto; }
.ideology-area.three { background-image: none; }
.ideology-item .bottom a { color: inherit; }
.blog-side-item .right:only-child { flex: 0 0 100%; max-width: 100%; }
@media (max-width: 991px) {
    .fem-header-three .fem-header-inner { flex-wrap: wrap; }
    .fem-js .fem-menu-toggle { display: block; margin-left: auto; }
    #fem-primary-nav { width: 100%; }
    .fem-js #fem-primary-nav { display: none; }
    .fem-js #fem-primary-nav.is-open { display: block; }
    .fem-menu { flex-direction: column; align-items: flex-start; gap: 18px; }
    .fem-header-cta { display: none; }
    .fem-slide-layout { gap: 25px; min-height: 510px; }
    .fem-banner .banner-slider-item { min-height: 510px; }
    .fem-photo-placeholder { min-height: 400px; }
    .banner-area-two.three .banner-slider-item .slider-img img { height: 440px; }
}
@media (max-width: 767px) {
    .fem-topbar { font-size: 11px; }
    .fem-header { padding: 16px 0; }
    .admin-bar .fem-header-three { top: 46px; }
    .fem-slide-layout { grid-template-columns: 1fr; gap: 0; }
    .fem-banner .banner-content { padding: 50px 0 35px; }
    .fem-banner .banner-slider-item::after { width: 18%; }
    .fem-banner .banner-content p { font-size: 16px; }
    .fem-banner .slider-img { width: 75%; justify-self: end; }
    .fem-photo-placeholder { min-height: 280px; }
    .fem-photo-placeholder > p { margin-bottom: 35px; }
    .banner-area-two.three .banner-slider-item .slider-img img { height: 340px; }
    .fem-section-links .countdown-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; text-align: left; }
    .fem-section-links a { font-size: 13px; }
    .fem-section-links a span { margin-left: 8px; }
    .fem-about-placeholder { min-height: 300px; padding: 25px; }
    .about-area.three .about-img-three::before { width: 70%; }
}
@media (max-width: 600px) { .admin-bar .fem-header-three { top: 0; } }

/* Guia d'identitat FEM: blau #12385E, blanc i Montserrat. */
body, button, input, textarea, select { font-family: 'Montserrat', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 800; }
.fem-header { padding: 4px 0; }
.custom-logo-link { display: inline-block; flex-shrink: 0; padding: 0 4px; }
.fem-banner .banner-slider-item { background-color: #f3f6f9; }
.fem-photo-placeholder { background: var(--fem-ink); }
.banner-area-two.three .banner-slider-item .slider-img .fem-brand-mark { width: 80%; max-width: 360px; height: auto; margin: auto; object-position: center; }
.footer-area.fem-footer-three { --fem-ink: #12385e; background: #fff; color: var(--fem-ink); padding-top: 35px; border-top: 1px solid #e4ebf0; }
.footer-area.fem-footer-three .footer-item .footer-link h2, .footer-area.fem-footer-three .footer-item .footer-link ul li a, .footer-area.fem-footer-three .footer-item .footer-logo p, .fem-footer-three .copyright-area p, .fem-footer-three .copyright-area a { color: var(--fem-ink); }
.footer-area.fem-footer-three .footer-item .footer-link ul li a:hover, .fem-footer-three .copyright-area a:hover { color: var(--fem-ink); text-decoration: underline; text-underline-offset: 4px; letter-spacing: normal; }
.fem-footer-three::before { display: none; }
.footer-area.fem-footer-three .footer-item .footer-logo { background: transparent; padding: 0 30px 30px 0; text-align: left; }
.fem-footer-three .fem-footer-logo { display: inline-block; padding: 0; margin: 0; justify-self: start; }
.fem-footer-logo img { display: block; width: 105px; height: auto; }
.fem-footer-three .copyright-area { background: #f5f8fa; border-top: 1px solid #e4ebf0; padding: 15px 0; margin-top: 0; }
.fem-footer-three .copyright-area p { font-size: 12px; margin: 0; }
.fem-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.fem-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; }
@media (max-width: 767px) {
    .fem-footer-bottom, .fem-footer-legal { justify-content: center; }
}
.fem-footer-main { display: grid; grid-template-columns: 145px 1fr auto; gap: 30px; align-items: center; }
.fem-footer-main h2 { color: var(--fem-ink); font-size: 16px; margin: 0 0 10px; }
.fem-footer-main address { font-size: 13px; font-style: normal; margin: 0 0 5px; }
.fem-footer-main a { color: var(--fem-ink); font-size: 13px; }
.fem-footer-main a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fem-social-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.fem-social-icons .fem-social-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #dce5ed; border-radius: 50%; color: var(--fem-ink); background: #f5f8fa; transition: background .2s, color .2s; }
.fem-social-icons a.fem-social-icon:hover { background: var(--fem-ink); color: #fff; }
.fem-social-icon.is-pending { opacity: .65; }
.fem-topbar .fem-social-icons { gap: 6px; }
.fem-topbar .fem-social-icon { width: 28px; height: 28px; border-color: transparent; background: transparent; }
.fem-topbar .fem-social-icon svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
    .fem-topbar .container { justify-content: center; }
}
.fem-footer-three a:focus-visible { outline: 2px solid var(--fem-ink); outline-offset: 4px; }
.fem-section-links a:focus-visible { outline-color: white; }
@media (max-width: 767px) {
    .custom-logo { max-height: 61.6px; max-width: 91px; }
    .fem-footer-logo img { width: 90px; }
    .fem-footer-main { grid-template-columns: 1fr; gap: 22px; }
}

/* Capçaleres interiors: fotografia configurable. */
.fem-news-heading { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: 320px; padding: 75px 0; background: #12385e; border: 0; text-align: center; }
.fem-news-heading::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(25,34,39,.42); }
.fem-page-header-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fem-news-heading h1, .fem-news-heading .fem-news-section { color: white; }
.fem-news-heading nav { justify-content: center; color: white; }
.fem-news-heading a { color: white; }
.fem-news-heading a:hover { text-decoration: underline; }
.fem-news-heading a:focus-visible { outline-color: white; }
.fem-footer-skyline { margin-top: 25px; margin-bottom: 18px; }
.fem-footer-skyline-art { width: 100%; aspect-ratio: 6140 / 710; background: var(--fem-ink); -webkit-mask: url('assets/brand/skyline-sfg-original-blanc.png') center / contain no-repeat; mask: url('assets/brand/skyline-sfg-original-blanc.png') center / contain no-repeat; }
@media (max-width: 767px) {
    .fem-news-heading { min-height: 240px; padding: 55px 0; }
}

/* Nosaltres: presentació, missió i valors seguint About us de Pily. */
.fem-about-page .fem-about-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; padding-top: 90px; padding-bottom: 90px; }
.fem-about-page h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; color: var(--fem-ink); margin-bottom: 24px; }
.fem-about-page h3 { font-size: 23px; line-height: 1.3; color: var(--fem-ink); }
.fem-about-page p { line-height: 1.85; }
.fem-about-eyebrow { color: var(--fem-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-bottom: 18px; }
.fem-about-signoff { padding: 20px 0 0 24px; border-left: 3px solid var(--fem-ink); margin-top: 30px; }
.fem-about-signoff h3 { margin-bottom: 6px; }
.fem-about-signoff p { font-size: 13px; }
.fem-about-portrait { position: relative; padding: 0 0 25px 25px; }
.fem-about-portrait::before { content: ''; position: absolute; inset: 25px 25px 0 0; border: 10px solid #e3ebf2; z-index: -1; }
.fem-about-page figure { margin: 0; }
.fem-about-portrait img { display: block; width: 100%; height: auto; }
.fem-about-mission { padding: 80px 0; background: #f3f6f9; }
.fem-about-section-title { max-width: 730px; margin: 0 auto 45px; text-align: center; }
.fem-about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fem-about-intro > .wp-block-group__inner-container, .fem-about-grid > .wp-block-group__inner-container { display: contents; }
.fem-about-principle { background: white; padding: 32px; border-bottom: 3px solid var(--fem-ink); }
.fem-about-number { font-size: 36px; font-weight: 800; color: #66829b; margin-bottom: 24px; }
.fem-about-values { padding-top: 90px; padding-bottom: 90px; }
.fem-about-value { border: 1px solid #e3e8ed; }
.fem-about-value img { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.fem-about-value-body { padding: 28px; }
.fem-about-join { padding: 65px 0; text-align: center; background: #edf2f6; }
.fem-about-join p { max-width: 730px; margin: 0 auto 28px; }
.fem-about-join .wp-block-buttons { justify-content: center; }
.fem-about-join .wp-block-button__link { background: var(--fem-ink); border-radius: 0; padding: 16px 30px; font-weight: 600; }
@media (max-width: 991px) { .fem-about-page .fem-about-intro { gap: 30px; } .fem-about-grid { gap: 18px; } .fem-about-principle, .fem-about-value-body { padding: 22px; } }
@media (max-width: 767px) { .fem-about-page .fem-about-intro, .fem-about-grid { grid-template-columns: 1fr; } .fem-about-page .fem-about-intro, .fem-about-mission, .fem-about-values { padding-top: 50px; padding-bottom: 50px; } .fem-about-grid { gap: 24px; } }

/* Equip: targetes de Pily, amb ordre electoral i reserves ampliables. */
.fem-team-intro { max-width: 850px; text-align: center; padding-top: 65px; padding-bottom: 30px; }
.fem-team-section { padding: 30px 0 80px; }
.fem-team-section .section-title { margin-inline: auto; }
.fem-team-section .section-title h2 { color: var(--fem-ink); }
.fem-team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px 28px; }
.fem-team-grid .fem-team-card { margin: 0; background: white; height: 100%; }
.fem-team-card .top { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.fem-team-card .top > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.fem-team-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #edf2f6; color: #b5c6d5; }
.fem-team-number { position: absolute; left: 20px; bottom: 20px; min-width: 48px; padding: 10px; background: var(--fem-ink); color: white; font-size: 19px; font-weight: 800; text-align: center; }
.fem-team-grid .fem-team-card .bottom { padding: 24px 18px; }
.fem-team-grid .fem-team-card .bottom h3 { font-size: 23px; color: var(--fem-ink); }
.fem-team-card .bottom p { margin: 12px 0 0; font-size: 14px; }
.fem-team-reserves { background: #f5f7fa; padding-top: 70px; }
@media(max-width:991px) { .fem-team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 20px; } }
@media(max-width:575px) { .fem-team-grid { grid-template-columns: minmax(0,1fr); } .fem-team-intro { padding-top: 40px; } .fem-team-section { padding-bottom: 45px; } }

/* Programa: targetes de Missions de Pily. */
.fem-programme-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.fem-programme-grid .fem-programme-card { height: 100%; margin: 0; display: flex; flex-direction: column; }
.fem-programme-image { display: block; aspect-ratio: 1.5; overflow: hidden; }
.fem-programme-image img { width: 100%; height: 100%; object-fit: cover; }
.fem-programme-image .fem-news-placeholder { height: 100%; }
.fem-programme-card .bottom { flex: 1; display: flex; flex-direction: column; padding: 28px; }
.fem-programme-card .bottom .common-btn { margin-top: auto; align-self: flex-start; }
.fem-programme-demo { display: inline-block; color: var(--fem-ink); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.fem-programme-list .section-title { margin-inline: auto; }
.fem-programme-list .pagination { display: block; text-align: center; margin-top: 40px; }
.fem-programme-list .page-numbers { display: inline-block; min-width: 44px; padding: 10px 14px; margin: 4px; background: #edf2f6; }
.fem-programme-list .page-numbers.current { background: var(--fem-ink); color: white; }
.fem-programme-detail { max-width: 950px; }
.fem-programme-hero img { display: block; width: 100%; max-height: 480px; object-fit: cover; margin-bottom: 35px; }
.fem-programme-detail h1 { color: var(--fem-ink); font-size: clamp(28px,3vw,42px); margin-bottom: 25px; }
.fem-programme-detail .fem-news-body { margin-bottom: 35px; }
@media(max-width:991px) { .fem-programme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:575px) { .fem-programme-grid { grid-template-columns: minmax(0,1fr); } }

/* Agenda: llistat horitzontal inspirat en Events de Pily. */
.fem-agenda .section-title { margin-inline: auto; }
.fem-agenda-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; }
.fem-agenda-tabs a { padding: 12px 22px; border: 1px solid #dce5ed; color: var(--fem-ink); }
.fem-agenda-tabs a[aria-current] { background: var(--fem-ink); color: white; }
.fem-agenda-card { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 30px; padding: 24px; margin-bottom: 25px; border: 1px solid #e3e8ed; box-shadow: 0 6px 24px #12385e08; }
.fem-agenda-photo { display: block; }
.fem-agenda-photo img { width: 100%; height: 160px; object-fit: cover; }
.fem-agenda-date { min-height: 160px; background: #edf2f6; color: var(--fem-ink); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.fem-agenda-date strong { font-size: 48px; line-height: 1.3; }
.fem-agenda-summary h3 { font-size: 24px; }
.fem-agenda-summary h3 a { color: var(--fem-ink); }
.fem-agenda-summary p { margin: 6px 0; font-size: 14px; }
.fem-agenda-cancelled { color: #8b2532; background: #fff0f2; padding: 10px 15px; font-weight: 600; }
.fem-agenda-empty { background: #f3f6f9; padding: 55px 30px; text-align: center; }
.fem-agenda-empty h3 { color: var(--fem-ink); }
.fem-agenda-empty a { color: var(--fem-ink); text-decoration: underline; text-underline-offset: 4px; }
.fem-event-info { background: #f3f6f9; padding: 25px; margin: 25px 0 35px; }
.fem-event-info dt { color: var(--fem-ink); margin-bottom: 6px; }
.fem-event-info dd { margin-bottom: 18px; }
.fem-event-info dd:last-child { margin-bottom: 0; }
.fem-event-info small { display: block; margin-top: 5px; }
.fem-agenda .pagination { display: block; text-align: center; margin: 30px 0; }
.fem-agenda .page-numbers { display: inline-block; padding: 12px 16px; background: #edf2f6; margin: 3px; }
.fem-agenda .page-numbers.current { background: var(--fem-ink); color: white; }
@media(max-width:991px) { .fem-agenda-card { grid-template-columns: 170px 1fr; } .fem-agenda-card > .common-btn { grid-column: 2; justify-self: start; } }
@media(max-width:575px) { .fem-agenda-card { grid-template-columns: 1fr; padding: 20px; gap: 20px; } .fem-agenda-card > .common-btn { grid-column: 1; } .fem-agenda-tabs a { padding: 12px; font-size: 14px; } }
