/* Estil propi sobre la base responsive de Bootstrap 5.3.8. */
:root {
  --paper: #f8f7f2;
  --paper-deep: #eeeee5;
  --ink: #303a2c;
  --olive: #414d39;
  --olive-dark: #303b29;
  --ochre: #a67342;
  --muted: #686c60;
  --line: #dbded2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
}
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; font-size: 0.9375rem; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
::selection { color: white; background: var(--olive); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--olive); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ochre); outline-offset: 5px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(2.5rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 0; }
h2 em, h1 em { font-weight: 400; }
.container { max-width: 1240px; padding-left: 32px; padding-right: 32px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 300; top: -80px; left: 16px; background: var(--olive); color: white; padding: 14px 24px; }
.skip-link:focus { top: 12px; color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 17px 24px; min-height: 54px; background: var(--olive); border: 1px solid var(--olive); color: white; border-radius: 4px; font-size: 0.8125rem; font-weight: 500; transition: background .2s, transform .2s; white-space: nowrap; }
.button:hover { background: var(--olive-dark); color: white; transform: translateY(-2px); }
.button .icon { width: 18px; height: 18px; }
.button-small { min-height: 44px; padding: 12px 17px; gap: 11px; font-size: 0.75rem; }
.button-light { color: var(--olive); background: var(--paper); border-color: var(--paper); }
.button-light:hover { color: var(--olive); background: #e7e6db; }
.text-link { display: inline-flex; align-items: center; gap: 13px; font-size: 0.8125rem; font-weight: 500; min-height: 44px; text-decoration: underline; text-decoration-color: #b4b8a8; text-underline-offset: 6px; }
.text-link .icon { width: 17px; height: 17px; transition: transform .2s; }
.text-link:hover .icon { transform: translate(2px, -2px); }
.icon-button { border: 1px solid var(--line); background: transparent; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; color: var(--olive); flex: 0 0 auto; }
.icon-button:hover { background: var(--paper-deep); }
.eyebrow { font-size: 0.75rem; letter-spacing: .17em; font-weight: 600; line-height: 1.6; color: var(--ochre); margin-bottom: 18px; }
.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: var(--ochre); vertical-align: middle; margin-right: 10px; }

/* Navegació */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,247,242,.97); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 3px 18px #303a2c06; }
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 100px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--olive); line-height: 1.03; font-family: var(--serif); font-size: 1.5625rem; font-weight: 600; letter-spacing: -.025em; }
.brand-place { display: block; font-size: 1.4375rem; font-weight: 500; }
.brand-icon { width: 35px; height: 47px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 33px; }
.main-nav > a:not(.button) { font-size: 0.75rem; color: #565d4f; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.main-nav > a:not(.button)::after { content: ''; position: absolute; bottom: 7px; left: 0; right: 100%; height: 1px; background: var(--olive); transition: right .2s; }
.main-nav > a:hover::after { right: 0; }
.menu-toggle { display: none; }

/* Portada */
.hero { padding: 28px 0 57px; overflow: clip; }
.hero-row { min-height: 613px; }
.hero-copy { padding-top: 30px; padding-bottom: 22px; }
.hero-copy .eyebrow { margin-bottom: 28px; }
h1 { font-size: clamp(4.5rem, 7.15vw, 6.4rem); line-height: .95; letter-spacing: -.054em; margin: 0 0 30px; }
h1 em { color: var(--olive); white-space: nowrap; }
.hero-description { font-size: 0.9375rem; line-height: 1.9; color: var(--muted); margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.hero-parishes { display: flex; flex-wrap: wrap; gap: 8px 15px; max-width: 420px; margin-top: 48px; font-size: 0.75rem; color: var(--muted); }
.hero-parishes span { white-space: nowrap; }
.hero-parishes span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ochre); margin-right: 7px; vertical-align: middle; }
.hero-visual { position: relative; padding-left: 50px; padding-right: 18px; }
.hero-frame { position: relative; height: 613px; border-radius: 260px 260px 5px 5px; isolation: isolate; }
.hero-frame::before { content: ''; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid #bec2af; border-radius: inherit; z-index: -1; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; border-radius: inherit; }
.hero-photo-caption { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fffdf6; padding: 85px 18px 24px; background: linear-gradient(transparent, #161b15aa); border-radius: 0 0 5px 5px; font-size: 0.75rem; letter-spacing: .035em; }
.caption-cross { font-size: 1.125rem; color: #e9c995; }
.hero-side-note { position: absolute; right: -13px; top: 46%; writing-mode: vertical-rl; font-size: 0.75rem; letter-spacing: .19em; color: #7e826e; }
.hero-seal { position: absolute; left: -2px; bottom: 48px; width: 113px; height: 113px; background: var(--paper); border: 1px solid #d4d7c9; border-radius: 50%; box-shadow: 0 4px 20px #22281c08; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.hero-seal .icon { width: 26px; height: 31px; }
.hero-seal span { font-size: 0.75rem; text-align: center; letter-spacing: .17em; line-height: 1.7; }

/* Accès ràpid */
.quick-links { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 26px; padding-bottom: 26px; }
.quick-links-grid > a { display: flex; align-items: center; gap: 17px; padding: 4px 26px; border-right: 1px solid var(--line); transition: color .2s; min-height: 52px; }
.quick-links-grid > a:first-child { padding-left: 0; }
.quick-links-grid > a:last-child { padding-right: 0; border-right: 0; }
.quick-links-grid > a > .icon:first-child { color: #6b7959; width: 26px; height: 26px; }
.quick-links-grid > a > span { display: block; font-size: 0.8125rem; font-weight: 500; }
.quick-links-grid > a > span > span { display: block; margin-top: 5px; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.quick-arrow { margin-left: auto; width: 16px; height: 16px; color: #7c836e; transition: transform .2s; }
.quick-links-grid > a:hover .quick-arrow { transform: translate(3px, -3px); }

/* Horaris */
.section { padding: 94px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 37px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading > p { color: var(--muted); font-size: 0.8125rem; line-height: 1.8; margin-bottom: 3px; max-width: 370px; }
.parish-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.parish-tabs button { padding: 17px 26px 19px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 0.75rem; transition: color .2s, background .2s; }
.parish-tabs button[aria-selected="true"] { border-color: var(--olive); color: var(--olive); background: #edefe6; font-weight: 600; }
.parish-tabs button:hover { color: var(--olive); background: #f0f0e8; }
.selected-parish { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; color: var(--muted); margin: 25px 0 17px; }
.selected-parish .icon { width: 14px; height: 14px; }
.schedule-card { background: #fffefa; border: 1px solid var(--line); border-radius: 5px; padding: 24px; min-height: 245px; height: 100%; display: flex; flex-direction: column; scroll-margin-top: 116px; transition: border-color .2s; }
.schedule-card:target { border-color: var(--ochre); box-shadow: 0 0 0 2px #a673421f; }
.service-top { display: flex; justify-content: space-between; align-items: center; color: #667555; margin-bottom: 23px; }
.service-top .icon { width: 26px; height: 26px; }
.service-top > span { font-family: var(--serif); font-size: 1rem; color: #9fa58f; }
.schedule-card h3 { font-size: 1.9375rem; letter-spacing: -.025em; margin-bottom: 7px; }
.service-description { font-size: 0.75rem; color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.service-times { margin-top: auto; padding-top: 17px; border-top: 1px solid #e6e7de; }
.pending-label { font-size: 0.75rem; color: #707365; line-height: 1.8; display: block; }
.pending-label::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #aa946b; margin-right: 6px; vertical-align: middle; }
.schedule-entry { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 0.75rem; padding: 8px 0; border-bottom: 1px solid #eee; }
.schedule-entry:last-child { border-bottom: 0; }
.schedule-entry strong { font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.schedule-entry small { flex: 0 0 100%; font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.schedule-note { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 0.75rem; line-height: 1.8; margin: 23px 0 0; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ochre); flex-shrink: 0; }

/* Tauler d’anuncis */
.notices { background: var(--paper-deep); }
.notices .section-heading { margin-bottom: 18px; }
.sample-notice { font-size: 0.75rem; color: var(--muted); margin-bottom: 27px; line-height: 1.8; }
.poster-button { display: block; text-align: left; padding: 0; border: 0; width: 100%; color: inherit; background: transparent; }
.poster-frame { position: relative; border: 1px solid #cdd1c0; border-radius: 4px; padding: 10px; background: #f8f7f0; transition: transform .3s, box-shadow .3s; }
.poster-button:hover .poster-frame { transform: translateY(-5px); box-shadow: 0 15px 25px #303a2c0b; }
.poster-art { aspect-ratio: 4 / 4.85; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden; isolation: isolate; text-align: center; width: 100%; }
.poster-art img { width: 100%; height: 100%; object-fit: contain; }
.poster-tag { position: absolute; z-index: 2; left: 20px; top: 20px; padding: 5px 9px; border-radius: 2px; color: var(--olive); background: #fbfaf4f0; font-size: 0.75rem; letter-spacing: .1em; }
.poster-open { position: absolute; z-index: 2; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f8f7f2ed; color: var(--olive); transition: background .2s; }
.poster-open .icon { width: 15px; height: 15px; }
.poster-meta { padding: 20px 0 0; }
.poster-meta .category { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .13em; color: #747b66; margin-bottom: 6px; }
.poster-meta h3 { font-size: 1.6875rem; letter-spacing: -.02em; margin-bottom: 5px; }
.poster-meta .poster-location { color: var(--muted); font-size: 0.75rem; }
.poster-art .poster-brand { position: relative; font-size: 0.75rem; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; z-index: 1; }
.poster-art .poster-title { position: relative; font-family: var(--serif); font-size: clamp(38px, 4.5vw, 60px); line-height: .94; letter-spacing: -.035em; font-weight: 500; z-index: 1; }
.poster-art .poster-subtitle { position: relative; font-size: 0.75rem; line-height: 1.7; letter-spacing: .025em; z-index: 1; }
.poster-art .poster-bottom { position: relative; font-size: 0.75rem; letter-spacing: .15em; z-index: 1; }
.poster-art .poster-cross { position: relative; width: 28px; height: 36px; z-index: 1; }
.poster-photo { color: #fffaed; padding: 42px 25px 27px; background: #3d3a28; }
.poster-photo > img { position: absolute; inset: 0; z-index: -2; object-fit: cover; object-position: 50% 20%; filter: brightness(.68); }
.poster-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#1a281b18 20%, #172518b8); }
.poster-photo .poster-title { margin-top: auto; margin-bottom: 18px; }
.poster-photo .poster-bottom { margin-top: 24px; padding-top: 14px; border-top: 1px solid #ddd3a455; width: 70%; }
.poster-arches { background: #e4cba2; color: #4e4934; padding: 33px 20px 28px; }
.poster-arches::before, .poster-arches::after { content: ''; position: absolute; width: 79%; height: 91%; left: 10.5%; top: 19%; border: 1px solid #9f8858aa; border-radius: 50% 50% 0 0; z-index: -1; }
.poster-arches::after { width: 67%; left: 16.5%; height: 83%; top: 27%; }
.poster-arches .poster-cross { width: 22px; height: 26px; margin-top: 21px; }
.poster-arches .poster-title { margin: 13px 0; }
.poster-arches .poster-bottom { margin-top: 30px; }
.poster-olive { padding: 33px 25px 28px; background: #414d39; color: #f6f0dc; }
.poster-olive::before { content: ''; position: absolute; left: 11%; right: 11%; top: 10%; bottom: 10%; border: 1px solid #b8be9770; border-radius: 50% 50% 0 0; z-index: -1; }
.poster-olive .poster-sun { width: 42px; height: 42px; margin-top: 21px; color: #dec48b; stroke-width: .8; }
.poster-olive .poster-title { margin: 14px 0; }
.poster-olive .poster-bottom { margin-top: 25px; }
.notices-footnote { display: flex; justify-content: center; align-items: center; gap: 12px; color: #6f765f; font-size: 0.75rem; margin-top: 38px; }
.notices-footnote .icon { width: 13px; height: 13px; }
.thin-rule { width: 55px; height: 1px; background: #cbd0be; }
.empty-announcements { border: 1px solid #cdd1c0; border-radius: 5px; padding: 45px; color: var(--muted); text-align: center; }

/* Comunitat */
.community { padding-top: 110px; padding-bottom: 115px; }
.community-pictures { position: relative; min-height: 480px; }
.community-photo { position: absolute; width: 47%; overflow: hidden; margin: 0; border-radius: 160px 160px 3px 3px; }
.community-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-one { left: 24px; top: 0; height: 390px; }
.photo-one img { object-position: 50% 48%; }
.photo-two { right: 12px; top: 85px; height: 350px; border: 7px solid var(--paper); }
.photo-two img { object-position: 50% 40%; }
.photo-caption { position: absolute; left: 28px; bottom: 8px; font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: #747c65; }
.community-copy { padding-left: 65px; }
.community-copy .eyebrow { font-size: 0.75rem; margin-bottom: 17px; }
.community-copy h2 { margin-bottom: 25px; }
.community-copy > p:not(.eyebrow) { font-size: 0.8125rem; line-height: 1.9; color: var(--muted); max-width: 420px; }
.parish-list { margin-top: 26px; }
.parish-list > a { display: flex; align-items: center; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.parish-list > a:first-child { border-top: 1px solid var(--line); }
.parish-list > a > span:not(.parish-number) { font-family: var(--serif); font-size: 1.4375rem; line-height: 1.1; }
.parish-number { color: #869177; font-size: 0.75rem; }
.parish-list small { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); margin-top: 7px; }
.parish-list .icon { width: 18px; height: 18px; margin-left: auto; color: var(--olive); transition: transform .2s; }
.parish-list a:hover .icon { transform: translate(2px, -2px); }
.welcome-band { background: var(--olive); color: #f7f4e9; padding: 38px 0; }
.welcome-band > .container { display: flex; align-items: center; gap: 26px; }
.welcome-band > .container > .icon { width: 32px; height: 43px; stroke-width: 1; color: #d0d3b9; }
.welcome-band p { font-family: var(--serif); font-size: 2rem; letter-spacing: -.025em; margin: 0; line-height: 1.25; }
.welcome-band .button { margin-left: auto; }
.mobile-break { display: none; }

/* Peu de pàgina */
.site-footer { padding: 44px 0 20px; }
.footer-top { display: flex; align-items: center; gap: 25px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-top .brand { font-size: 1.375rem; }
.footer-top .brand-place { font-size: 1.3125rem; }
.footer-top .brand-icon { width: 29px; height: 40px; }
.footer-top > p { margin: 0 0 0 auto; font-size: 0.75rem; color: var(--muted); }
.back-to-top { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; flex-shrink: 0; }
.back-to-top:hover { background: var(--paper-deep); }
.back-to-top .icon { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--muted); padding-top: 22px; }
.footer-bottom p { margin: 0; }

/* Visor accessible de cartells. El dialog natiu gestiona el focus i la tecla Esc. */
.poster-dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 22px; max-width: 630px; width: calc(100% - 32px); max-height: 92dvh; overscroll-behavior: contain; }
.poster-dialog::backdrop { background: #1a211bd9; backdrop-filter: blur(5px); }
.dialog-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dialog-toolbar .eyebrow { font-size: 0.75rem; margin-bottom: 5px; }
.dialog-toolbar h2 { font-size: 1.75rem; }
.dialog-art { max-width: 390px; margin: 0 auto; }
.dialog-art .poster-title { font-size: 3.875rem; }
.dialog-art > img { width: 100%; height: auto; border-radius: 2px; }
.dialog-description { font-size: 0.75rem; color: var(--muted); line-height: 1.8; white-space: pre-line; margin: 17px 0; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; }
.dialog-footer > span { font-size: 0.75rem; color: var(--muted); }
.dialog-footer .text-link { font-size: 0.75rem; }
.arrow-back { transform: rotate(180deg); }

/* Entrée discrète, sans masquer le contenu. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive .75s ease both; }
  .hero-visual { animation: arrive .95s .08s ease both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 1440px) { .container { max-width: 1280px; } .hero-frame { height: 641px; } .hero-row { min-height: 641px; } }
@media (max-width: 1199.98px) {
  .main-nav { gap: 23px; }
  .hero-visual { padding-left: 37px; }
  .hero-frame { height: 567px; }
  .hero-row { min-height: 567px; }
  .hero-actions { gap: 20px; }
  .hero-actions .button { padding: 16px 19px; gap: 15px; }
  .quick-links-grid > a { padding-left: 20px; padding-right: 20px; gap: 12px; }
  .quick-links-grid > a > span { font-size: 0.75rem; }
  .quick-links-grid > a > span > span { font-size: 0.75rem; }
  .schedule-card { padding: 20px; }
  .pending-label { font-size: 0.75rem; }
  .community-copy { padding-left: 45px; }
  .welcome-band p { font-size: 1.8125rem; }
}
@media (max-width: 991.98px) {
  .site-nav { min-height: 86px; }
  .brand { font-size: 1.4375rem; }
  .brand-place { font-size: 1.3125rem; }
  .main-nav { gap: 23px; }
  .main-nav .button { display: none; }
  .hero { padding-top: 16px; }
  .hero-row { align-items: center; }
  .hero-copy { width: 53%; }
  .hero-visual { width: 47%; padding-left: 10px; }
  h1 { font-size: 4.0625rem; }
  .hero-copy .eyebrow { font-size: 0.75rem; margin-bottom: 22px; }
  .hero-frame { height: 498px; }
  .hero-description { font-size: 0.8125rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .hero-parishes { margin-top: 25px; gap: 6px 10px; font-size: 0.75rem; }
  .hero-seal { width: 88px; height: 88px; left: -17px; bottom: 48px; }
  .hero-seal .icon { width: 20px; height: 26px; }
  .hero-seal span { font-size: 0.75rem; }
  .hero-photo-caption { font-size: 0.75rem; gap: 5px; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); padding-top: 11px; padding-bottom: 11px; }
  .quick-links-grid > a { padding: 20px 0; margin-right: 24px; }
  .quick-links-grid > a:nth-child(2n) { border-right: 0; margin-right: 0; margin-left: 0; padding-left: 20px; }
  .quick-links-grid > a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quick-links-grid > a .quick-arrow { margin-right: 24px; }
  .quick-links-grid > a:nth-child(2n) .quick-arrow { margin-right: 0; }
  .quick-links-grid > a > span { font-size: 0.8125rem; }
  .quick-links-grid > a > span > span { font-size: 0.75rem; }
  .section { padding: 73px 0; }
  .section-heading { gap: 20px; }
  .section-heading > p { font-size: 0.75rem; }
  .parish-tabs button { padding: 17px 20px; font-size: 0.75rem; }
  .schedule-card { min-height: 230px; padding: 24px; }
  .pending-label { font-size: 0.75rem; }
  .notices .row { --bs-gutter-x: 18px; }
  .poster-frame { padding: 7px; }
  .poster-art .poster-title { font-size: 2.3125rem; }
  .poster-art .poster-brand { font-size: 0.75rem; }
  .poster-art .poster-bottom { font-size: 0.75rem; margin-top: 13px; }
  .poster-art .poster-subtitle { font-size: 0.75rem; }
  .poster-photo, .poster-arches, .poster-olive { padding: 26px 14px 20px; }
  .poster-arches .poster-cross { margin-top: 14px; }
  .poster-olive .poster-sun { margin-top: 12px; height: 30px; width: 30px; }
  .poster-meta h3 { font-size: 1.4375rem; }
  .poster-tag { font-size: 0.75rem; left: 14px; top: 14px; }
  .poster-open { right: 14px; bottom: 14px; }
  .community-pictures { min-height: 475px; max-width: 590px; margin-left: auto; margin-right: auto; }
  .community-copy { padding-left: 24px; }
  .community-copy > p:not(.eyebrow) { max-width: 540px; }
  .community-copy h2 { font-size: 3rem; }
  .welcome-band p { font-size: 1.5625rem; }
  .welcome-band > .container { gap: 19px; }
  .welcome-band .button { padding: 15px 18px; font-size: 0.75rem; gap: 13px; }
  .footer-top > p { max-width: 285px; line-height: 1.9; }
  .dialog-art .poster-title { font-size: 3.875rem; }
  .dialog-art .poster-art { padding: 33px 25px 28px; }
  .dialog-art .poster-brand { font-size: 0.75rem; }
  .dialog-art .poster-subtitle { font-size: 0.75rem; }
  .dialog-art .poster-bottom { font-size: 0.75rem; }
}
@media (max-width: 767.98px) {
  html { scroll-padding-top: 96px; }
  .container { padding-left: 23px; padding-right: 23px; }
  .site-nav { min-height: 80px; flex-wrap: wrap; }
  .brand { font-size: 1.375rem; gap: 10px; }
  .brand-place { font-size: 1.25rem; }
  .brand-icon { width: 29px; height: 39px; }
  .main-nav { width: 100%; flex-wrap: wrap; gap: 10px 25px; padding: 7px 0 17px; }
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; padding: 16px 0 23px; gap: 2px; }
  .main-nav > a:not(.button) { font-size: 0.875rem; padding: 8px 2px; }
  .main-nav > a:not(.button)::after { display: none; }
  .main-nav .button { display: inline-flex; margin-top: 13px; }
  .hero { padding-top: 15px; padding-bottom: 39px; }
  .hero-copy { width: 100%; padding-top: 19px; padding-bottom: 34px; }
  .hero-copy .eyebrow { font-size: 0.75rem; margin-bottom: 23px; }
  .eyebrow-line { width: 23px; }
  h1 { font-size: clamp(61px, 12.5vw, 84px); letter-spacing: -.045em; line-height: .95; margin-bottom: 23px; }
  .hero-description { font-size: 0.875rem; line-height: 1.8; margin-bottom: 24px; }
  .desktop-break { display: none; }
  .hero-actions { flex-direction: row; align-items: center; gap: 21px; }
  .hero-actions .button { font-size: 0.75rem; padding: 15px 17px; gap: 14px; min-height: 49px; }
  .hero-actions .text-link { font-size: 0.75rem; gap: 7px; }
  .hero-parishes { margin-top: 26px; font-size: 0.75rem; gap: 7px 13px; max-width: 350px; }
  .hero-visual { width: 100%; padding: 12px 17px 0 26px; max-width: 530px; margin-left: auto; margin-right: auto; }
  .hero-frame { height: 490px; border-radius: 250px 250px 4px 4px; }
  .hero-image { object-position: 50% 47%; }
  .hero-frame::before { inset: -9px 9px 9px -9px; }
  .hero-seal { left: -2px; bottom: 47px; width: 93px; height: 93px; }
  .hero-side-note { right: -3px; font-size: 0.75rem; }
  .hero-photo-caption { font-size: 0.75rem; padding-bottom: 20px; }
  .quick-links-grid { padding-top: 10px; padding-bottom: 10px; }
  .quick-links-grid > a { gap: 11px; margin-right: 10px; padding: 17px 0; }
  .quick-links-grid > a:nth-child(2n) { padding-left: 11px; }
  .quick-links-grid > a > .icon:first-child { width: 22px; height: 22px; }
  .quick-links-grid > a > span { font-size: 0.75rem; }
  .quick-links-grid > a > span > span { font-size: 0.75rem; margin-top: 4px; }
  .quick-arrow { display: none; }
  .section { padding: 60px 0; }
  h2 { font-size: 2.4375rem; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { font-size: 0.75rem; margin-top: 16px; }
  .section-heading > p br { display: none; }
  .eyebrow { font-size: 0.75rem; }
  .parish-tabs { gap: 0; justify-content: stretch; }
  .parish-tabs button { flex: 1; padding: 14px 8px; font-size: 0.75rem; line-height: 1.7; }
  .parish-tabs button span { display: block; font-size: 0.75rem; }
  .selected-parish { margin-top: 22px; }
  .schedule-card { min-height: 224px; padding: 23px; scroll-margin-top: 99px; }
  .schedule-note { font-size: 0.75rem; margin-top: 20px; }
  .schedule-grid { --bs-gutter-y: 12px; --bs-gutter-x: 12px; }
  .notices .section-heading { margin-bottom: 15px; }
  .sample-notice { font-size: 0.75rem; margin-bottom: 23px; }
  .notices .row { --bs-gutter-y: 32px; }
  .poster-frame { padding: 9px; }
  .poster-art { aspect-ratio: 4 / 4.65; }
  .poster-art .poster-title { font-size: clamp(50px, 11vw, 64px); }
  .poster-art .poster-brand { font-size: 0.75rem; }
  .poster-art .poster-subtitle { font-size: 0.75rem; }
  .poster-art .poster-bottom { font-size: 0.75rem; margin-top: 24px; }
  .poster-photo, .poster-arches, .poster-olive { padding: 35px 25px 27px; }
  .poster-tag { left: 19px; top: 19px; font-size: 0.75rem; }
  .poster-open { right: 19px; bottom: 19px; }
  .poster-olive .poster-sun { width: 40px; height: 40px; margin-top: 20px; }
  .poster-arches .poster-cross { width: 27px; height: 34px; margin-top: 22px; }
  .poster-meta { padding-top: 15px; }
  .poster-meta h3 { font-size: 1.8125rem; }
  .poster-meta .category { font-size: 0.75rem; }
  .poster-meta .poster-location { font-size: 0.75rem; }
  .notices-footnote { font-size: 0.75rem; gap: 9px; margin-top: 33px; }
  .thin-rule { width: 20px; }
  .community { padding: 68px 0; }
  .community .row { --bs-gutter-y: 40px; }
  .community-pictures { min-height: 385px; }
  .community-photo { width: 49%; }
  .photo-one { left: 12px; height: 300px; }
  .photo-two { right: 5px; top: 64px; height: 281px; }
  .photo-caption { font-size: 1.0625rem; left: 13px; bottom: 3px; }
  .community-copy { padding-left: 24px; }
  .community-copy .eyebrow { font-size: 0.75rem; }
  .community-copy h2 { font-size: 2.6875rem; margin-bottom: 19px; }
  .community-copy > p:not(.eyebrow) { font-size: 0.8125rem; }
  .parish-list > a > span:not(.parish-number) { font-size: 1.375rem; }
  .welcome-band { padding: 33px 0; }
  .welcome-band > .container { flex-wrap: wrap; gap: 17px; }
  .welcome-band > .container > .icon { width: 27px; height: 38px; }
  .welcome-band p { font-size: 1.75rem; flex: 1; }
  .mobile-break { display: inline; }
  .welcome-band .button { margin: 2px 0 0 44px; font-size: 0.75rem; }
  .site-footer { padding-top: 34px; }
  .footer-top { flex-wrap: wrap; row-gap: 23px; padding-bottom: 24px; }
  .footer-top > p { order: 3; margin: 0; max-width: 280px; font-size: 0.75rem; }
  .footer-top .back-to-top { margin-left: auto; }
  .footer-bottom { gap: 17px; font-size: 0.75rem; align-items: flex-start; }
  .poster-dialog { padding: 17px; width: calc(100% - 22px); max-height: 94dvh; }
  .dialog-toolbar h2 { font-size: 1.5625rem; }
  .dialog-description { font-size: 0.75rem; }
  .dialog-art .poster-title { font-size: clamp(44px, 12vw, 62px); }
}
@media (max-width: 575.98px) {
  .schedule-grid > div { width: 50%; }
  .schedule-card { min-height: 245px; padding: 19px 15px; }
  .schedule-card h3 { font-size: 1.75rem; }
  .service-top { margin-bottom: 20px; }
  .service-description { font-size: 0.75rem; min-height: 34px; margin-bottom: 14px; }
  .pending-label { font-size: 0.75rem; }
  .pending-label::before { display: none; }
  .service-times { padding-top: 13px; }
  .poster-col { max-width: 440px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 359.98px) {
  .container { padding-left: 19px; padding-right: 19px; }
  h1 { font-size: 3.4375rem; }
  .hero-actions { flex-wrap: wrap; gap: 11px; }
  .hero-frame { height: 425px; }
  .quick-links-grid > a > span { font-size: 0.75rem; }
  .quick-links-grid > a { gap: 8px; }
  .schedule-grid > div { width: 100%; }
  .schedule-card { min-height: 205px; }
  .service-description { min-height: 0; }
  .welcome-band p { font-size: 1.5625rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .hero, .quick-links, .notices, .community, .welcome-band, .site-footer, .poster-dialog, .schedule-note, .parish-tabs { display: none !important; }
  .section { padding: 20px 0; }
  .schedule-grid > div { width: 25%; }
  .schedule-card { break-inside: avoid; }
  body { background: white; }
}

/* Llegibilitat dels continguts i controls habituals. */
body { font-size: 1rem; }
.hero-description, .community-copy > p:not(.eyebrow), .section-heading > p { font-size: 1rem; }
.main-nav > a:not(.button), .button, .text-link, .parish-tabs button, .quick-links-grid > a > span { font-size: 0.875rem; }
.pending-label, .schedule-entry, .schedule-note, .dialog-description { font-size: 0.875rem; }
.service-description { font-size: 0.875rem; }
.schedule-card { min-height: 285px; }
.hero-parishes { max-width: 500px; }
.hero-actions { gap: 20px; flex-wrap: wrap; }
.hero-seal { display: none; }
.poster-art .poster-brand, .poster-art .poster-bottom { font-size: 0.75rem; letter-spacing: .07em; }
.poster-art .poster-subtitle { font-size: 0.875rem; }
@media (max-width: 1199.98px) { .quick-links-grid > a { padding-left: 15px; padding-right: 15px; gap: 10px; } }
@media (max-width: 991.98px) { .main-nav { gap: 18px; } .poster-art .poster-brand, .poster-art .poster-bottom { font-size: 0.75rem; } .poster-art .poster-subtitle { font-size: 0.8125rem; } }
@media (max-width: 767.98px) { .hero-actions .button, .hero-actions .text-link { font-size: 0.875rem; } .quick-links-grid > a { padding-left: 0; } .quick-links-grid > a > span > span { font-size: 0.75rem; } .hero-copy .eyebrow { font-size: 0.75rem; } .hero-parishes { font-size: 0.75rem; } .parish-tabs button { font-size: 0.875rem; } .parish-tabs button span { font-size: 0.75rem; } .schedule-note { font-size: 0.8125rem; } }
@media (max-width: 575.98px) { .schedule-card { min-height: 290px; } .service-description { min-height: 48px; } .pending-label { font-size: 0.8125rem; } }

/* Contacte parroquial i horaris confirmats. */
.footer-contact { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.footer-contact h2 { font-size: 2rem; margin-bottom: 10px; }
.footer-contact p { color: var(--muted); font-size: .875rem; margin-bottom: 0; line-height: 1.8; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.contact-email { font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.schedule-entry > span { flex: 1 1 100%; line-height: 1.5; }
.schedule-entry strong { line-height: 1.5; }
.schedule-entry small { font-size: .8125rem; }
@media (max-width: 991.98px) { .footer-contact { align-items: flex-start; flex-direction: column; } .contact-links { justify-content: flex-start; } }
@media (max-width: 575.98px) { .contact-links { align-items: flex-start; flex-direction: column; width: 100%; } .contact-links .button { white-space: normal; } }
