/* ============================================================
   daritrives.cat — main.css (versió consolidada)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #F7F5F0;
  --ink:    #0D0D0D;
  --muted:  #6B6B6B;   /* abans #888: contrast insuficient (WCAG AA) */
  --terra:  #A8482F;   /* accent terracota, només per a elements destacats */
  --crema:  #F7F5F0;
  --light:  #555;
  --serif:  'Playfair Display', Georgia, serif;
  --mono:   'Space Mono', 'Courier New', monospace;
  --border: 1.5px solid #0D0D0D;
  --pad:    28px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--mono); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── NAV ─────────────────────────────────────── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad); border-bottom: var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 100;
}
.nav-logo { font-family: var(--serif); font-size: 17px; font-style: italic; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: opacity .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: .4; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

/* ── UTILITATS ───────────────────────────────── */
.label {
  font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.tag {
  border: 1px solid var(--ink); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px;
}
.btn {
  display: inline-block; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 10px 18px; border: none; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .75; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-size: 11px; padding: 10px 18px; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.about-link { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: opacity .15s; }
.about-link:hover { opacity: .5; }
.mid-link { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: opacity .15s; }
.mid-link:hover { opacity: .5; }

/* ── PORTADA / HERO AUTORA ───────────────────── */
.hero-autor {
  display: grid; grid-template-columns: 1fr 1.4fr;
  border-bottom: var(--border); min-height: 480px;
}
.hero-autor-foto { border-right: var(--border); overflow: hidden; }
.hero-autor-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hero-autor-ini {
  width: 100%; height: 100%; min-height: 480px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; color: var(--bg); font-size: 96px;
}
.hero-autor-text { padding: var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero-autor-nom { font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); font-weight: 700; line-height: .95; letter-spacing: -.02em; }
.hero-autor-bio { font-size: 13px; color: #444; line-height: 1.85; max-width: 420px; }
.hero-autor-accions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ── HERO CLÀSSIC (pàgina llibre) ───────────── */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; border-bottom: var(--border); }
.hero-left { border-right: var(--border); padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.hero-title { font-family: var(--serif); font-size: clamp(48px, 7vw, 80px); font-weight: 700; line-height: .9; letter-spacing: -.02em; }
.hero-title em { font-style: italic; font-weight: 400; }
.hero-tagline { font-size: 11px; color: var(--light); line-height: 1.7; white-space: pre-line; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hero-right { display: grid; grid-template-rows: 1fr 1fr; }

/* ── PORTADA LLIBRE ──────────────────────────── */
.book-zone { border-bottom: var(--border); padding: var(--pad); display: flex; align-items: center; gap: 20px; }
.book-cover { width: 90px; height: 126px; flex-shrink: 0; overflow: hidden; box-shadow: 4px 4px 0 #aaa; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-fallback {
  width: 90px; height: 126px; background: var(--ink); flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; box-shadow: 4px 4px 0 #aaa;
}
.book-cover-fallback .bc-title { font-family: var(--serif); font-size: 13px; font-style: italic; color: var(--bg); line-height: 1.2; margin-bottom: 4px; }
.book-cover-fallback .bc-author { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #aaa; }
.book-info { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.book-info-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.book-info-pub { font-size: 13px; color: #333; line-height: 1.5; }

/* ── FRAGMENT POÈTIC ─────────────────────────── */
.poem-zone { padding: var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.poem-text { font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.9; color: #222; border-left: 2px solid var(--ink); padding-left: 14px; }
.poem-ref { font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ── AUTORA STRIP ────────────────────────────── */
.author-strip { display: grid; grid-template-columns: auto 1fr; border-bottom: var(--border); }
.author-left { border-right: var(--border); padding: 20px var(--pad); display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.author-avatar-ini { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: var(--bg); font-size: 20px; flex-shrink: 0; }
.author-name { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.author-role { font-size: 11px; color: #666; letter-spacing: .06em; margin-top: 2px; }
.author-right { padding: 20px var(--pad); display: flex; align-items: center; }
.author-bio { font-size: 13px; color: #444; line-height: 1.75; }

/* ── PULLQUOTE ───────────────────────────────── */
.pullquote-strip { border-bottom: var(--border); background: var(--ink); padding: 56px var(--pad); display: flex; justify-content: center; }
.pullquote-inner { max-width: 640px; text-align: center; }
.pullquote-mark { font-family: var(--serif); font-size: 80px; line-height: .6; color: #444; margin-bottom: 20px; }
.pullquote-text { font-family: var(--serif); font-size: clamp(20px, 2.8vw, 32px); font-style: italic; font-weight: 400; line-height: 1.5; color: var(--bg); }
.pullquote-ref { margin-top: 20px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #A8A8A8; }

/* ── MID GRID ────────────────────────────────── */
.mid-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--border); }

.actes-home { border-bottom: var(--border); padding: var(--pad); }
.actes-home-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.actes-home-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.actes-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.actes-home-card { display: block; border: 1px solid #e2e2e2; transition: border-color .15s; }
.actes-home-card:hover { border-color: var(--ink); }
.actes-home-card img { width: 100%; height: 100px; object-fit: cover; display: block; border-bottom: var(--border); }
.actes-home-card-cos { padding: 14px; }
.actes-home-card-titol { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.25; margin: 6px 0 4px; }
.mid-quadern { border-right: var(--border); padding: var(--pad); }
.mid-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.mid-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.mid-nota { padding: 16px 0; border-bottom: 0.5px solid #ccc; }
.mid-nota:last-child { border-bottom: none; }
.mid-nota-data { font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.mid-nota-text { font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.75; color: #222; }
.mid-empty { font-size: 12px; color: var(--muted); }
.mid-llibre { padding: var(--pad); display: flex; flex-direction: column; }
.mid-llibre-text { font-size: 13px; color: #444; line-height: 1.85; margin-bottom: 12px; }

/* ── PREMSA STRIP (portada) ──────────────────── */
.premsa-strip { border-bottom: var(--border); }
.premsa-strip-header { display: flex; justify-content: space-between; align-items: baseline; padding: 16px var(--pad); border-bottom: var(--border); }
.premsa-strip-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }

/* ── PREMSA (pàgina premsa) ──────────────────── */
.premsa-list { border-bottom: var(--border); }
.premsa-item { border-bottom: var(--border); padding: 18px var(--pad); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; transition: background .15s; }
.premsa-item:hover { background: rgba(0,0,0,.03); }
.premsa-mitja { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 110px; flex-shrink: 0; }
.premsa-titol { font-family: var(--serif); font-size: 15px; font-style: italic; flex: 1; }
.premsa-data { font-size: 11px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.premsa-item--compact { padding: 14px 0; }

/* ── CTA FINAL ───────────────────────────────── */
.cta-strip { border-bottom: var(--border); padding: 36px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cta-text { display: flex; flex-direction: column; gap: 4px; }
.cta-serif { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 42px); font-style: italic; font-weight: 700; line-height: 1; }
.cta-mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── LLIBRE SECUNDARI ────────────────────────── */
.llibre-secundari { display: grid; grid-template-columns: 160px 1fr; border-bottom: var(--border); align-items: center; }
.llibre-sec-portada { border-right: var(--border); padding: var(--pad); }
.llibre-sec-portada img { width: 100%; box-shadow: 4px 4px 0 #bbb; }
.llibre-sec-info { padding: var(--pad); display: flex; flex-direction: column; gap: 10px; }
.llibre-sec-titol { font-family: var(--serif); font-size: clamp(22px, 3vw, 36px); font-style: italic; font-weight: 700; line-height: 1; }
.llibre-sec-edit { font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.llibre-sec-accions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ── PÀGINES INTERIORS ───────────────────────── */
.page-header { padding: var(--pad); border-bottom: var(--border); display: flex; align-items: baseline; gap: 20px; }
.page-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.page-header h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1; }
.page-header h1 em { font-style: italic; font-weight: 400; }
.page-body { padding: var(--pad); max-width: 680px; }
.page-body p { font-size: 13px; color: #333; line-height: 1.85; margin-bottom: 1rem; }
.page-body em { font-family: var(--serif); font-style: italic; }

/* ── SOBRE MI ────────────────────────────────── */
.sobre-grid { display: grid; grid-template-columns: 1fr 1.6fr; border-bottom: var(--border); }
.sobre-foto-col { border-right: var(--border); padding: var(--pad); }
.sobre-foto { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.sobre-text-col { padding: var(--pad); }
.sobre-text-col h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1; margin-bottom: 6px; }
.sobre-rol { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.sobre-text-col p { font-size: 13px; color: #333; line-height: 1.85; margin-bottom: 1rem; }

/* ── LLIBRE (pàgina) ─────────────────────────── */
.llibre-grid { display: grid; grid-template-columns: 220px 1fr; border-bottom: var(--border); }
.llibre-portada-col { border-right: var(--border); padding: var(--pad); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.llibre-portada { width: 100%; box-shadow: 6px 6px 0 #bbb; }
.llibre-text-col { padding: var(--pad); display: flex; flex-direction: column; gap: 20px; }
.llibre-text-col h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1; }
.llibre-text-col h1 em { font-style: italic; font-weight: 400; }
.llibre-sinopsi p { font-size: 13px; color: #333; line-height: 1.85; margin-bottom: .8rem; }
.llibre-fragment { border-top: var(--border); padding-top: 20px; }
.fitxa { display: flex; flex-direction: column; gap: 0; border-top: var(--border); padding-top: 20px; }
.fitxa-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 0.5px solid #ddd; align-items: baseline; }
.fitxa-row:last-child { border-bottom: none; }
.fitxa-clau { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 90px; flex-shrink: 0; }
.fitxa-val { font-size: 12px; color: var(--ink); }

/* ── QUADERN (pàgina) ────────────────────────── */
/* ── QUADERN (llistat + entrada) ─────────────── */
.quadern-list { border-bottom: var(--border); }

/* Destacat: l'última nota, a tot l'ample */
.qd-destacat { display: flex; border-bottom: var(--border); transition: background .2s; }
.qd-destacat:hover { background: #EFEBE2; }
.qd-destacat-img { flex: 0 0 38%; border-right: var(--border); overflow: hidden; background: #E6E1D6; }
.qd-destacat-img img { width: 100%; height: 100%; min-height: 220px; max-height: 280px; object-fit: cover; object-position: center 35%; }
.qd-destacat-body { flex: 1; padding: 28px var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.qd-destacat .qd-titol { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.08; }
.qd-destacat .qd-extracte { font-size: 16px; max-width: 640px; }

/* Resta: graella de 3 columnes */
.qd-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.qd-card { display: flex; flex-direction: column; border-right: var(--border); border-bottom: var(--border); transition: background .2s; }
.qd-card:nth-child(3n) { border-right: none; }
.qd-card:hover { background: #EFEBE2; }
.qd-card-img { display: block; overflow: hidden; border-bottom: var(--border); aspect-ratio: 16 / 10; background: #E6E1D6; }
.qd-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .5s ease; }
.qd-card:hover .qd-card-img img { transform: scale(1.03); }
.qd-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.qd-card--sense-img .qd-card-body { padding-top: 28px; }

/* Elements comuns */
.qd-data { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.qd-titol { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.qd-titol a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.qd-extracte { font-family: var(--serif); font-size: 15px; line-height: 1.7; color: #333; }
.qd-mes { margin-top: auto; padding-top: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.qd-mes span { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

@media (max-width: 960px) {
  .qd-grid { grid-template-columns: repeat(2, 1fr); }
  .qd-card:nth-child(3n) { border-right: var(--border); }
  .qd-card:nth-child(2n) { border-right: none; }
}

/* Els <nav> interns no han d'heretar la barra superior enganxosa */
nav.qd-nav, nav.vd-cats { position: static; z-index: auto; padding: 0; background: none; align-items: stretch; justify-content: normal; }

/* Entrada individual */
.qd-ruta { padding: 14px var(--pad); border-bottom: var(--border); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.qd-ruta a { border-bottom: 1px solid var(--ink); }
.qd-article { padding: 60px var(--pad) 56px; }
.qd-cap { max-width: 680px; margin: 0 auto 40px; }
.qd-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }
.qd-meta .sep { color: var(--muted); }
.qd-cap h1 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; line-height: 1.03; letter-spacing: -.02em; text-wrap: balance; }
.qd-fig { max-width: 1040px; margin: 0 auto 56px; border: var(--border); background: #E6E1D6; }
.qd-fig img { display: block; width: 100%; aspect-ratio: 21 / 10; object-fit: cover; object-position: center 35%; }
.qd-fig--vertical { max-width: 480px; }
.qd-fig--vertical img { aspect-ratio: auto; max-height: 640px; object-fit: contain; }
.qd-fig figcaption { padding: 10px 14px; font-size: 11px; letter-spacing: .04em; line-height: 1.5; color: var(--muted); border-top: 1px solid #D8D3C7; background: var(--bg); }
.qd-cos { max-width: 680px; margin: 0 auto; font-family: var(--serif); font-size: 19px; line-height: 1.8; color: #1a1a1a; }
.qd-cos p { margin: 0 0 1.15em; }
.qd-cos > p:first-child { font-size: 22px; line-height: 1.65; color: #000; }
.qd-cos h2, .qd-cos h3 { font-weight: 700; line-height: 1.2; margin: 2em 0 .6em; }
.qd-cos h2 { font-size: 28px; }
.qd-cos h3 { font-size: 21px; }
.qd-cos blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-style: italic; font-size: 22px; line-height: 1.55; }
.qd-cos a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.qd-cos ul, .qd-cos ol { margin: 0 0 1.15em 1.3em; }
.qd-cos li { margin-bottom: .4em; }
.qd-cos img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; }
.qd-cos hr { border: 0; border-top: 1px solid var(--ink); width: 64px; margin: 2.2em 0; }
.qd-cos em { font-style: italic; }
.qd-final { max-width: 680px; margin: 52px auto 0; padding-top: 22px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.qd-signatura { font-family: var(--serif); font-style: italic; font-size: 20px; }
.qd-comparteix-grup { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.qd-cmp { background: none; border: 1.5px solid var(--ink); color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; cursor: pointer; transition: background .2s, color .2s; }
.qd-cmp:hover, .qd-cmp:focus-visible { background: var(--ink); color: var(--bg); }
.qd-avis { max-width: 680px; margin: 10px auto 0; min-height: 1.4em; font-size: 12px; line-height: 1.5; color: var(--terra); text-align: right; }

/* Comentaris */
.qd-comentaris { max-width: 680px; margin: 56px auto 0; padding-top: 28px; border-top: var(--border); }
.qd-comentaris h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.15; margin-bottom: 22px; }
.qd-com { padding: 20px 0; border-bottom: 1px solid #D8D3C7; }
.qd-com-cap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.qd-com-cap strong { color: var(--ink); letter-spacing: .06em; }
.qd-com-text { font-family: var(--serif); font-size: 17px; line-height: 1.7; color: #1a1a1a; overflow-wrap: anywhere; }
.qd-com-resposta { margin: 14px 0 0 14px; padding: 10px 0 2px 18px; border-left: 3px solid var(--terra); }
.qd-form-com { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.qd-form-com h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.qd-camp { display: flex; flex-direction: column; gap: 6px; }
.qd-camp label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.qd-camp input, .qd-camp textarea { font-family: var(--serif); font-size: 17px; line-height: 1.6; padding: 11px 13px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); width: 100%; border-radius: 0; }
.qd-camp textarea { resize: vertical; }
.qd-camp input:focus, .qd-camp textarea:focus { outline: 2px solid var(--terra); outline-offset: 1px; }
.qd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.6; }
.qd-consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.qd-consent a { text-decoration: underline; text-underline-offset: 2px; }
.qd-form-com .btn { align-self: flex-start; cursor: pointer; }
.qd-nota-mod { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.qd-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qd-errors { list-style: none; border-left: 3px solid var(--terra); background: #F6ECE9; padding: 10px 14px; font-size: 13px; line-height: 1.6; }
.qd-avis-ok { margin-top: 28px; border: 1.5px solid var(--ink); background: #EFEBE2; padding: 14px 16px; font-size: 13px; line-height: 1.6; }
.qd-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--border); border-bottom: var(--border); }
.qd-nav a { padding: 24px var(--pad); display: flex; flex-direction: column; gap: 6px; transition: background .2s; }
.qd-nav a:hover { background: #EFEBE2; }
.qd-nav a + a { border-left: var(--border); text-align: right; }
.qd-nav .label { font-size: 10px; }
.qd-nav-titol { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.2; }
.qd-nav-buit { padding: 24px var(--pad); }
.qd-tornar { padding: 18px var(--pad); }

/* ── CONTACTE ────────────────────────────────── */
.contacte-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--border); }
.contacte-left { border-right: var(--border); padding: var(--pad); }
.contacte-left h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1; margin-bottom: 20px; }
.contacte-left p { font-size: 13px; color: #444; line-height: 1.8; margin-bottom: 20px; }
.contacte-dades { display: flex; flex-direction: column; gap: 10px; }
.contacte-dada { display: flex; gap: 12px; align-items: baseline; font-size: 12px; }
.contacte-dada .label { width: 60px; flex-shrink: 0; font-size: 10px; }
.contacte-right { padding: var(--pad); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-group input,
.form-group textarea,
.form-group select { background: transparent; border: none; border-bottom: 1px solid var(--ink); padding: 8px 0; font-family: var(--mono); font-size: 13px; color: var(--ink); outline: none; transition: border-color .15s; width: 100%; }
.form-group input:focus, .form-group textarea:focus { border-bottom-width: 2px; }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── GALERIA ─────────────────────────────────── */
.galeria-publica { border-bottom: var(--border); }
.galeria-header { padding: 16px var(--pad); border-bottom: var(--border); }
.galeria-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.galeria-item { border-right: var(--border); border-bottom: var(--border); overflow: hidden; }
.galeria-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity .2s; }
.galeria-item:hover img { opacity: .88; }
.galeria-peu { padding: 8px var(--pad); font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; border-top: 0.5px solid #ddd; }

/* ── DOSSIER ─────────────────────────────────── */
.dossier-bloc { border-bottom: var(--border); }
.dossier-bloc-header { padding: 14px var(--pad); border-bottom: var(--border); }
.dossier-bloc-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.dossier-grid { display: grid; grid-template-columns: 200px 1fr; }
.dossier-col-foto { border-right: var(--border); padding: var(--pad); }
.dossier-foto { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.dossier-foto-placeholder { width: 100%; aspect-ratio: 3/4; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: var(--bg); font-size: 48px; }
.dossier-portada { width: 100%; box-shadow: 4px 4px 0 #bbb; }
.dossier-portada-placeholder { width: 100%; aspect-ratio: 2/3; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; box-shadow: 4px 4px 0 #bbb; }
.dossier-col-text { padding: var(--pad); display: flex; flex-direction: column; gap: 20px; }
.dossier-nom { font-family: var(--serif); font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; line-height: 1; }
.dossier-titol-llibre { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 30px); font-weight: 700; line-height: 1; }
.dossier-col-text p { font-size: 13px; color: #444; line-height: 1.8; margin-bottom: 8px; }
.dossier-fitxa { display: flex; flex-direction: column; }
.dossier-fitxa-row { display: flex; gap: 12px; padding: 6px 0; border-bottom: 0.5px solid #ddd; align-items: baseline; }
.dossier-fitxa-row:last-child { border-bottom: none; }
.dossier-fitxa-clau { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 70px; flex-shrink: 0; }
.dossier-fitxa-val { font-size: 13px; color: var(--ink); line-height: 1.5; }
.dossier-sinopsi p, .dossier-fragment p { font-size: 13px; color: #444; line-height: 1.8; margin-bottom: 6px; }
.dossier-contacte-row { display: flex; justify-content: space-between; align-items: flex-end; padding: var(--pad); gap: 20px; }
.dossier-contacte-info { flex: 1; }
.dossier-download { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }

/* ── FOOTER ──────────────────────────────────── */
footer { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); }
.footer-left { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-credit { opacity: .75; }
.footer-credit a { color: var(--muted); border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.footer-credit a:hover { color: var(--ink); border-color: var(--ink); }
.footer-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-cookies-btn { background: none; border: none; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; padding: 0; transition: color .15s; }
.footer-cookies-btn:hover { color: var(--ink); }

/* ── GESTOR DE CONSENTIMENT (pop-up) ─────────── */
html.cm-lock { overflow: hidden; }
.cm-ov { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(13,13,13,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.cm-ov[hidden] { display: none; }
.cm-ov.cm-ov-vis { opacity: 1; }
.cm-pop { display: flex; flex-direction: column; width: 100%; max-width: 580px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  background: var(--bg); border: 1px solid #0D0D0D; border-radius: 6px; overflow: hidden; outline: none;
  box-shadow: 0 32px 80px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.18); transform: translateY(14px) scale(.985); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.cm-ov-vis .cm-pop { transform: none; }
.cm-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 24px; border-bottom: 1px solid #dcd7cc; flex-shrink: 0; }
.cm-brand { display: flex; align-items: center; gap: 10px; }
.cm-ico { display: inline-flex; color: var(--terra); }
.cm-lbl { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cm-cls { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 4px; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.cm-cls:hover { background: rgba(13,13,13,.07); color: var(--ink); }
.cm-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.cm-body { padding: 26px 24px 10px; }
.cm-titol { font-family: var(--serif); font-size: clamp(22px, 3.6vw, 27px); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.cm-text { font-size: 12.5px; line-height: 1.85; color: #2b2b2b; }
.cm-legal { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.cm-legal a { color: var(--ink); border-bottom: 1px solid #bdb8ac; }
.cm-legal a:hover { border-color: var(--ink); }
.cm-det { padding: 6px 24px 20px; }
.cm-det[hidden] { display: none; }
.cm-cat { border-top: 1px solid #dcd7cc; padding: 16px 0 12px; }
.cm-cat-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cm-cat-nom { font-family: var(--serif); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cm-cat-desc { font-size: 11.5px; line-height: 1.7; color: #4a4a4a; }
.cm-fixa { flex-shrink: 0; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid #cfcabd; border-radius: 20px; padding: 5px 10px; white-space: nowrap; }
.cm-tog { position: relative; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; display: block; }
.cm-tog input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cm-sl { position: absolute; inset: 0; border-radius: 24px; background: #c9c4b8; transition: background .2s; }
.cm-sl::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.cm-tog input:checked + .cm-sl { background: var(--ink); }
.cm-tog input:checked + .cm-sl::before { transform: translateX(20px); }
.cm-tog input:focus-visible + .cm-sl, .cm-btn:focus-visible, .cm-cls:focus-visible, .cm-cookies summary:focus-visible, .cm-legal a:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.cm-cookies { margin-top: 10px; }
.cm-cookies summary { display: inline-block; cursor: pointer; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); list-style: none; padding: 2px 0; }
.cm-cookies summary::-webkit-details-marker { display: none; }
.cm-cookies summary::before { content: '+ '; }
.cm-cookies[open] summary::before { content: '− '; }
.cm-cookies summary:hover { color: var(--ink); }
.cm-cookies table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 10.5px; line-height: 1.5; }
.cm-cookies th { text-align: left; font-weight: 400; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 4px 0; border-bottom: 1px solid #dcd7cc; }
.cm-cookies td { padding: 7px 8px 7px 0; border-bottom: 1px solid #ece8de; vertical-align: top; color: #333; }
.cm-cookies code { font-family: var(--mono); font-size: 10.5px; background: rgba(13,13,13,.06); padding: 1px 5px; border-radius: 3px; }
.cm-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 24px; border-top: 1px solid #dcd7cc; background: #EFECE3; flex-shrink: 0; }
.cm-accions { display: flex; gap: 10px; }
.cm-btn { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.cm-btn-main { min-height: 44px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); font-weight: 700; white-space: nowrap; }
.cm-btn-main:hover { background: rgba(13,13,13,.08); }
.cm-btn-ok { background: var(--ink); color: var(--bg); }
.cm-btn-ok:hover { background: #2a2a2a; }
.cm-btn-lnk { background: none; border: none; padding: 8px 2px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #aaa49a; }
.cm-btn-lnk:hover { text-decoration-color: var(--ink); }
.cm-btn[hidden] { display: none; }
@media (max-width: 560px) {
  .cm-ov { align-items: flex-end; padding: 0; }
  .cm-pop { max-width: none; border-radius: 14px 14px 0 0; border-left: none; border-right: none; border-bottom: none; max-height: 92vh; max-height: 92dvh; transform: translateY(40px); }
  .cm-head { padding-left: 18px; }
  .cm-body, .cm-det { padding-left: 18px; padding-right: 18px; }
  .cm-foot { flex-direction: column-reverse; align-items: stretch; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); gap: 6px; }
  .cm-accions { flex-direction: column; }
  .cm-accions .cm-btn-main { width: 100%; }
  .cm-btn-lnk { text-align: center; }
  .cm-cookies table, .cm-cookies tbody, .cm-cookies tr, .cm-cookies td { display: block; }
  .cm-cookies thead { display: none; }
  .cm-cookies tr { padding: 8px 0; border-bottom: 1px solid #ece8de; }
  .cm-cookies td { border: none; padding: 1px 0; }
  .cm-cookies td::before { content: attr(data-l) ': '; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .cm-ov, .cm-pop, .cm-sl, .cm-sl::before { transition: none; } }

/* ── RESPONSIVE ──────────────────────────────── */
/* Actes */
.actes-bloc-header { padding: 16px var(--pad) 0; }
.actes-bloc-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.actes-list { border-bottom: var(--border); }
.acte-item { border-bottom: var(--border); padding: var(--pad); display: grid; grid-template-columns: 100px 1fr; gap: 24px; align-items: start; }
.acte-item--proxim { border-top: 3px solid var(--ink); background: rgba(13,13,13,.02); }
.acte-proxim-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 2px 7px; }
.acte-item--passat { padding: 14px var(--pad); grid-template-columns: 100px 1fr; gap: 16px; }
.acte-img { width: 100px; height: 100px; object-fit: cover; }
.acte-img--sm { width: 100px; height: 100px; }
.acte-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.acte-tipus { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 8px; }
.acte-data { font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.acte-titol { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
.acte-titol--sm { font-size: 16px; font-style: italic; font-weight: 400; }
.acte-lloc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.acte-desc { font-family: var(--serif); font-size: 14px; line-height: 1.7; color: #333; }
.acte-accions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.acte-accio { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: all .15s; }
.acte-accio:hover { background: var(--ink); color: var(--bg); }

/* Galeria d'actes */
.galeria-actes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; border-bottom: var(--border); }
.galeria-actes-foto { display: block; }
.galeria-actes-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity .15s; }
.galeria-actes-foto:hover img { opacity: .75; }
.lightbox { position: fixed; inset: 0; background: rgba(13,13,13,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1000; padding: 40px 20px; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-peu { color: #fff; font-size: 12px; margin-top: 14px; text-align: center; max-width: 600px; }
.lightbox-tancar { position: absolute; top: 20px; right: 20px; background: none; border: 1px solid #fff; color: #fff; width: 36px; height: 36px; cursor: pointer; font-family: var(--mono); font-size: 16px; }
.lightbox[hidden] { display: none; }   /* sense això, «display:flex» anul·la «hidden» i el visor surt obert i buit */

.acte-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: var(--pad); }
.acte-video-marc { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.acte-video-marc iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.acte-video-titol { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

@media (max-width: 720px) {
  .acte-item { grid-template-columns: 1fr; }
  :root { --pad: 18px; }

  nav { flex-wrap: wrap; }
  .nav-links { display: none; flex-direction: column; width: 100%; gap: 14px; padding: 16px 0; border-top: var(--border); margin-top: 12px; }
  body.menu-obert .nav-links { display: flex; }
  .nav-burger { display: flex; }

  .hero, .hero-autor, .sobre-grid, .llibre-grid, .contacte-grid { grid-template-columns: 1fr; }
  .hero-left, .hero-autor-foto, .sobre-foto-col, .llibre-portada-col, .contacte-left { border-right: none; border-bottom: var(--border); }
  .hero-right { grid-template-rows: auto auto; }
  .hero-autor { min-height: auto; }
  .hero-autor-foto { max-height: 300px; }
  .hero-autor-ini { min-height: 200px; font-size: 64px; }

  .author-strip { grid-template-columns: 1fr; }
  .author-left { border-right: none; border-bottom: var(--border); }

  .mid-grid { grid-template-columns: 1fr; }
  .mid-quadern { border-right: none; border-bottom: var(--border); }

  .llibre-secundari { grid-template-columns: 1fr; }
  .llibre-sec-portada { border-right: none; border-bottom: var(--border); }
  .llibre-sec-portada img { max-width: 120px; }
  .llibre-portada { max-width: 160px; }

  .qd-grid { grid-template-columns: 1fr; }
  .qd-card, .qd-card:nth-child(n) { border-right: none; }
  .qd-destacat { flex-direction: column; }
  .qd-destacat-img { flex: none; border-right: none; border-bottom: var(--border); }
  .qd-destacat-body { padding: var(--pad); }
  .qd-article { padding: 36px var(--pad) 36px; }
  .qd-cap { margin-bottom: 28px; }
  .qd-fig { margin-bottom: 36px; }
  .qd-fig img { aspect-ratio: 4 / 3; }
  .qd-fig--vertical img { aspect-ratio: auto; }
  .qd-cos { font-size: 18px; line-height: 1.75; }
  .qd-cos > p:first-child { font-size: 20px; }
  .qd-cos blockquote { font-size: 20px; }
  .qd-final { flex-direction: column; align-items: flex-start; }
  .qd-comparteix-grup { justify-content: flex-start; }
  .qd-avis { text-align: left; }
  .qd-nav { grid-template-columns: 1fr; }
  .qd-nav a + a { border-left: none; border-top: var(--border); text-align: left; }
  .premsa-item { flex-direction: column; gap: 4px; }
  .cta-strip { flex-direction: column; align-items: flex-start; }

  .dossier-grid { grid-template-columns: 1fr; }
  .dossier-col-foto { border-right: none; border-bottom: var(--border); max-width: 200px; }
  .dossier-contacte-row { flex-direction: column; align-items: flex-start; }
  .dossier-download { align-items: flex-start; }

  .galeria-grid { grid-template-columns: repeat(2, 1fr); }

  footer { flex-direction: column; gap: 8px; text-align: center; }
  .footer-links { justify-content: center; }

}


/* ============================================================
   ACCESSIBILITAT (afegit setembre 2026)
   ============================================================ */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: top .15s; }
.skip-link:focus { top: 12px; }
main { display: block; }
a:focus-visible, button:focus-visible, summary:focus-visible,
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible,
.form-check input:focus-visible {
  outline: 2px solid var(--terra); outline-offset: 3px;
}
.nav-links a { padding: 6px 0; }
.nav-links { flex-wrap: wrap; gap: 6px 20px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
/* El menú passa a hamburguesa abans, perquè hi ha una entrada més */
@media (max-width: 960px) {
  nav { flex-wrap: wrap; }
  .nav-links { display: none; flex-direction: column; width: 100%; gap: 6px; padding: 12px 0 4px; border-top: var(--border); margin-top: 12px; }
  body.menu-obert .nav-links { display: flex; }
  .nav-burger { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-links a { display: block; padding: 10px 0; }
}

/* ============================================================
   PORTADA: subtítol i text complementari
   ============================================================ */
.hero-autor-subtitol { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); font-style: italic; line-height: 1.35; color: #222; max-width: 460px; }
.hero-autor-lead { font-size: 13px; color: #444; line-height: 1.85; max-width: 420px; }
.hero-autor-lead + .hero-autor-bio { margin-top: -6px; }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { opacity: .88; }

/* Bloc de la portada: Literatura i cultura als barris */
.cultura-home { border-bottom: var(--border); display: grid; grid-template-columns: 1fr 1.4fr; }
.cultura-home-titol { padding: var(--pad); border-right: var(--border); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.cultura-home-titol h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.05; }
.cultura-home-sub { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: #333; }
.cultura-home-cos { padding: var(--pad); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.cultura-home-cos p { font-size: 13px; color: #333; line-height: 1.85; max-width: 520px; }
.cultura-home-llista { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.cultura-home-llista li { border-top: 0.5px solid #ccc; }
.cultura-home-llista a { display: block; padding: 10px 0; font-family: var(--serif); font-size: 15px; font-style: italic; }
.cultura-home-llista a:hover { color: var(--terra); }
.cultura-home-accions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   PÀGINA: LITERATURA I CULTURA ALS BARRIS
   ============================================================ */
.act-header { padding: var(--pad); border-bottom: var(--border); display: flex; flex-direction: column; gap: 14px; }
.act-header .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.act-header h1 { font-family: var(--serif); font-size: clamp(32px, 5.4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.act-subtitol { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.2vw, 22px); color: #333; line-height: 1.4; }
.act-intro { padding: var(--pad); border-bottom: var(--border); display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.act-intro-text { max-width: 680px; }
.act-intro-text p { font-size: 13px; color: #333; line-height: 1.9; margin-bottom: 1rem; }
.act-intro-text p:first-child { font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.6; color: var(--ink); }
.act-intro-text p:last-child { margin-bottom: 0; }
.act-nav { list-style: none; display: flex; flex-direction: column; gap: 0; align-self: start; }
.act-nav li { border-top: 0.5px solid #ccc; }
.act-nav li:last-child { border-bottom: 0.5px solid #ccc; }
.act-nav a { display: block; padding: 9px 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #333; }
.act-nav a:hover { color: var(--terra); }

.act-llista { border-bottom: var(--border); }
.act-item { display: grid; grid-template-columns: 96px 1fr; border-bottom: var(--border); scroll-margin-top: 76px; }
.act-item:last-child { border-bottom: none; }
.act-num { padding: var(--pad); border-right: var(--border); font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--terra); }
.act-cos { padding: var(--pad); display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.act-cos h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.1; }
.act-cos p { font-size: 13px; color: #333; line-height: 1.9; }
.act-cos p:first-of-type { font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.65; color: var(--ink); }
.act-enllac { align-self: flex-start; margin-top: 4px; }

.act-altres { padding: var(--pad); border-bottom: var(--border); display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.act-altres h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.15; }
.act-altres p { font-size: 13px; color: #333; line-height: 1.9; max-width: 640px; margin-bottom: .8rem; }
.act-altres p:last-child { margin-bottom: 0; }

.act-cta { background: var(--terra); color: #fff; padding: 48px var(--pad); border-bottom: var(--border); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.act-cta-text { max-width: 620px; display: flex; flex-direction: column; gap: 10px; }
.act-cta h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); font-style: italic; font-weight: 700; line-height: 1.1; }
.act-cta p { font-size: 13px; line-height: 1.85; color: #fff; }
.act-cta .btn { background: var(--crema); color: var(--ink); }
.act-cta .btn:hover { opacity: 1; background: #fff; }
.act-cta a:focus-visible { outline-color: #fff; }

/* Buit elegant a Actes */
.actes-buit { padding: var(--pad); display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.actes-buit p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.65; color: #222; }
.actes-buit-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }

/* ============================================================
   FORMULARI DE CONTACTE (millores)
   ============================================================ */
.form-group .opc { text-transform: none; letter-spacing: 0; color: var(--muted); }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 12px; color: #333; line-height: 1.7; }
.form-check input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--ink); }
.form-check a { border-bottom: 1px solid var(--ink); }
.form-nota { font-size: 11px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.form-nota a { border-bottom: 1px solid var(--muted); }
.form-errors { margin-bottom: 18px; padding: 12px 14px; border: 1.5px solid #8B2E2E; color: #8B2E2E; font-size: 12px; line-height: 1.7; }
.form-errors strong { display: block; margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.form-ok { border: 1.5px solid var(--ink); padding: 24px; font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.7; color: #222; }
.form-ok small { display: block; margin-top: 12px; font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--muted); }
.camp-ocult { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contacte-motius { list-style: none; margin-top: 20px; border-top: 0.5px solid #ccc; }
.contacte-motius li { padding: 10px 0; border-bottom: 0.5px solid #ccc; font-size: 12px; color: #333; line-height: 1.6; }
.contacte-motius strong { display: block; font-family: var(--serif); font-size: 14px; }

/* Premsa: bloc dossier */
.premsa-dossier { padding: var(--pad); border-bottom: var(--border); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.premsa-dossier p { font-size: 13px; color: #333; line-height: 1.8; max-width: 520px; }
.premsa-dossier-accions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .cultura-home, .act-intro, .act-altres { grid-template-columns: 1fr; }
  .cultura-home-titol { border-right: none; border-bottom: var(--border); }
  .cultura-home-llista { grid-template-columns: 1fr; }
  .act-intro, .act-altres { gap: 18px; }
  .act-item { grid-template-columns: 1fr; }
  .act-num { border-right: none; border-bottom: var(--border); padding: 14px var(--pad); font-size: 34px; }
  .act-cta { flex-direction: column; align-items: flex-start; padding: 36px var(--pad); }
  .btn, .btn-outline { padding: 13px 18px; }
}

/* Actes anteriors a la portada i enllaç «Veure'n més» de premsa */
.actes-home-header--passats { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e2e2e2; }
.actes-home-grid--passats .actes-home-card img { filter: grayscale(.35); }
.mid-link--mes { display: inline-block; margin-top: 16px; }

/* Última aparició (quan no hi ha actes pròxims) */
.ultima-aparicio { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 24px; align-items: start; }
.ultima-aparicio-acte img { height: 160px; }
.ultima-aparicio-premsa .premsa-item--compact { border-bottom: var(--border); }
@media (max-width: 720px) { .ultima-aparicio { grid-template-columns: 1fr; } }

/* Butlletí */
.butleti { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px var(--pad); border-top: var(--border); background: #efece4; }
.butleti-titol { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin: 8px 0 10px; }
.butleti-text p { font-size: 13px; color: #333; line-height: 1.7; max-width: 46ch; margin: 0; }
.butleti-form { display: flex; flex-direction: column; gap: 10px; }
.butleti-lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.butleti-fila { display: flex; gap: 8px; }
.butleti-fila input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--ink); background: #fff; font: inherit; font-size: 14px; }
.butleti-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: #333; }
.butleti-consent input { margin-top: 3px; }
.butleti-consent a { border-bottom: 1px solid var(--ink); }
.butleti-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.butleti-estat { padding: var(--pad); max-width: 680px; }
.butleti-estat h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.butleti-estat ul { padding-left: 18px; }
@media (max-width: 720px) { .butleti { grid-template-columns: 1fr; } .butleti-fila { flex-direction: column; } }

/* On comprar-lo */
.on-comprar { margin: 28px 0; }
.on-comprar-llista { list-style: none; padding: 0; margin: 10px 0 0; border-top: var(--border); }
.on-comprar-llista li { border-bottom: var(--border); }
.on-comprar-llista a, .on-comprar-sense-enllac { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; }
.on-comprar-nom { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.on-comprar-det { font-size: 12px; color: var(--muted); text-align: right; }
.on-comprar-nota { font-size: 12px; color: #444; margin-top: 10px; }
.on-comprar-nota a { border-bottom: 1px solid var(--ink); }

/* Llibres: índex amb targetes i «Pròximament» */
.llibres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: var(--border); }
.llibre-card { display: flex; flex-direction: column; border-right: var(--border); border-bottom: var(--border); padding: 24px var(--pad) 24px; transition: background .15s; }
a.llibre-card:hover { background: #efece4; }
.llibre-card--prox { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0,0,0,.025) 10px 20px); }
.llibre-card-portada { aspect-ratio: 2/3; margin-bottom: 16px; box-shadow: 5px 5px 0 #bbb; background: var(--ink); overflow: hidden; }
.llibre-card-portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.llibre-card-ph { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 14px; }
.llibre-card-ph span { font-family: var(--serif); font-style: italic; color: #F7F5F0; font-size: 16px; line-height: 1.2; }
.llibre-card-ph--prox { background: transparent; border: 1px dashed var(--muted); align-items: center; justify-content: center; box-sizing: border-box; }
.llibre-card-ph--prox span { color: var(--muted); }
.llibre-card-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.llibre-card-tag--prox { color: #8B2E2E; font-weight: 700; }
.llibre-card-titol { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.15; }
.llibre-card-det { font-size: 12px; color: #444; margin-top: 4px; }
.llibre-card--prox .llibre-card-portada { background: transparent; box-shadow: none; }

/* ── VÍDEOS (canal de YouTube) ───────────────── */
.vd-intro { display: grid; grid-template-columns: 1fr 1.4fr; border-bottom: var(--border); }
.vd-intro-text { padding: var(--pad); border-right: var(--border); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.vd-intro-text p { font-family: var(--serif); font-size: 18px; line-height: 1.7; max-width: 46ch; }
.vd-cats { display: grid; grid-template-columns: 1fr 1fr; }
.vd-cat { padding: var(--pad); display: flex; flex-direction: column; gap: 10px; transition: background .2s; }
.vd-cat + .vd-cat { border-left: var(--border); }
.vd-cat:hover { background: #EFEBE2; }
.vd-cat[aria-current="true"] { background: var(--ink); color: var(--bg); }
.vd-cat-nom { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.1; }
.vd-cat-text { font-family: var(--serif); font-size: 15px; line-height: 1.6; opacity: .85; }
.vd-cat-n { margin-top: auto; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.vd-cat[aria-current="true"] .vd-cat-n { color: var(--bg); opacity: .7; }
.vd-filtre { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px var(--pad); border-bottom: var(--border); font-family: var(--serif); font-size: 17px; }
.vd-filtre a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.vd-buit { padding: 48px var(--pad); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; font-family: var(--serif); font-size: 18px; }

.vd-thumb { position: relative; aspect-ratio: 16 / 9; }
.vd-thumb-text { position: absolute; inset: 0; background: var(--ink); color: var(--bg); display: flex; align-items: flex-start; padding: 18px 18px 64px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; }
.vd-play { position: absolute; left: 0; bottom: 0; width: 48px; height: 48px; background: var(--ink); border-top: var(--border); border-right: var(--border); transition: background .2s; }
.vd-play::after { content: ""; position: absolute; left: 19px; top: 14px; border-left: 14px solid var(--bg); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vd-card:hover .vd-play { background: var(--terra); }

.vd-dialog { border: var(--border); background: var(--bg); color: var(--ink); padding: 0; width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; }
.vd-dialog::backdrop { background: rgba(13,13,13,.72); }
.vd-dialog-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: var(--border); }
.vd-dialog-cap h2 { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.2; }
.vd-tancar { background: none; border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.vd-tancar:hover, .vd-tancar:focus-visible { background: var(--ink); color: var(--bg); }
.vd-marc { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vd-marc iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-dialog-peu { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-top: var(--border); font-size: 11px; color: var(--muted); }
.vd-dialog-peu a { color: var(--ink); border-bottom: 1px solid var(--ink); }

@media (max-width: 960px) {
  .vd-intro { grid-template-columns: 1fr; }
  .vd-intro-text { border-right: none; border-bottom: var(--border); }
}
@media (max-width: 640px) {
  .vd-cats { grid-template-columns: 1fr; }
  .vd-cat + .vd-cat { border-left: none; border-top: var(--border); }
  .vd-intro-text p { font-size: 17px; }
}

/* ── MULTIMÈDIA: pòdcast propi i pestanyes ───── */
.vd-botons { display: flex; gap: 10px; flex-wrap: wrap; }
.vd-tabs { display: flex; gap: 0; border-bottom: var(--border); }
.vd-tabs a { padding: 14px var(--pad); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-right: var(--border); transition: background .2s; }
.vd-tabs a:hover { background: #EFEBE2; }
.vd-tabs a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.vd-badge { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.pd-audio { width: 100%; height: 40px; margin-top: 4px; }
.pd-rss { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px var(--pad); border-bottom: var(--border); }
.pd-rss-text { display: flex; flex-direction: column; gap: 4px; max-width: 520px; font-size: 12px; line-height: 1.6; }
.pd-rss-text strong { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pd-rss-camp { display: flex; flex: 1; min-width: 260px; max-width: 520px; }
.pd-rss-camp input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; padding: 11px 12px; border: 1.5px solid var(--ink); border-right: none; background: transparent; color: var(--ink); }
.pd-rss-camp button { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 0 18px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; }
.pd-rss-camp button:hover { background: var(--terra); border-color: var(--terra); }
@media (max-width: 640px) { .vd-tabs a { flex: 1; text-align: center; padding: 12px 8px; } }
.vd-intro-formats { font-size: 15px !important; color: #333; }
.vd-intro-formats strong { font-weight: 700; }

/* ── ACTES ANTERIORS (home): estil d'arxiu, amb fotos i vídeos ───── */
.actes-arxiu { margin: 40px calc(-1 * var(--pad)) calc(-1 * var(--pad)); border-top: var(--border); background: #EFEBE2; }
.actes-arxiu-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding: 20px var(--pad); border-bottom: 1px solid #CFC9BC; }
.actes-arxiu-cap .label { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: .18em; }
.actes-arxiu-llista { list-style: none; margin: 0; padding: 0; }
.actes-arxiu-llista li + li { border-top: 1px solid #CFC9BC; }
.acte-arxiu { position: relative; display: grid; grid-template-columns: 104px 76px minmax(0, 1fr) auto auto; gap: 8px 26px; align-items: center; padding: 18px var(--pad); transition: background .2s; }
.acte-arxiu:hover, .acte-arxiu:focus-within { background: var(--bg); }
.acte-arxiu-data { display: flex; flex-direction: column; gap: 8px; line-height: 1; }
.acte-arxiu-data b { font-family: var(--serif); font-size: 46px; font-weight: 700; letter-spacing: -.02em; }
.acte-arxiu-data i { font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acte-arxiu-cartell { display: block; width: 76px; height: 96px; object-fit: cover; object-position: 50% 20%; border: var(--border); filter: grayscale(.5); transition: filter .25s; }
.acte-arxiu:hover .acte-arxiu-cartell, .acte-arxiu:focus-within .acte-arxiu-cartell { filter: none; }
.acte-arxiu-cos { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.acte-arxiu-enllac::after { content: ""; position: absolute; inset: 0; }   /* tota la fila és clicable */
.acte-arxiu-titol { font-family: var(--serif); font-size: clamp(18px, 1.9vw, 23px); font-weight: 700; line-height: 1.2; }
.acte-arxiu:hover .acte-arxiu-titol { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.acte-arxiu-lloc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.acte-arxiu-fletxa { font-size: 20px; transition: transform .2s, color .2s; }
.acte-arxiu:hover .acte-arxiu-fletxa { transform: translateX(5px); color: var(--terra); }

/* Fotos i vídeos a la dreta de la fila (per sobre de l'enllaç de la fila) */
.acte-arxiu-mitjans { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; }
.acte-mini { position: relative; display: block; width: 56px; height: 56px; border: var(--border); overflow: hidden; background: #D9D4C8; }
.acte-mini img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.acte-mini:hover img, .acte-mini:focus-visible img { transform: scale(1.1); }
.acte-mini-mes { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(13,13,13,.62); color: var(--bg); font-size: 12px; letter-spacing: .06em; }
.acte-chip { display: inline-flex; align-items: center; height: 56px; padding: 0 14px; background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: background .2s, border-color .2s; }
.acte-chip:hover, .acte-chip:focus-visible { background: var(--terra); border-color: var(--terra); }

/* Visor de fotos i vídeos */
.hv { border: var(--border); background: var(--ink); color: var(--bg); padding: 0; width: min(1080px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; overflow: hidden; }
.hv::backdrop { background: rgba(13,13,13,.8); }
.hv-tanca { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
.hv-tanca:hover, .hv-tanca:focus-visible { background: var(--terra); color: var(--bg); }
.hv-fila { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; min-height: 320px; }
.hv-cos { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hv-cos img { display: block; max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.hv--video .hv-cos { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); background: #000; }
.hv--video .hv-cos iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hv-nav { height: 100%; min-height: 80px; background: none; border: none; color: var(--bg); font-size: 28px; cursor: pointer; transition: color .2s, background .2s; }
.hv-nav:hover, .hv-nav:focus-visible { background: rgba(247,245,240,.12); color: var(--terra); }
.hv-nav[hidden] { display: block; visibility: hidden; }
.hv-peu { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid #333; font-size: 12px; line-height: 1.5; }
.hv-cnt { color: #A8A8A8; letter-spacing: .1em; white-space: nowrap; }

@media (max-width: 960px) {
  .acte-arxiu { grid-template-columns: 96px 76px minmax(0, 1fr) auto; }
  .acte-arxiu-fletxa { display: none; }
}
@media (max-width: 720px) {
  .acte-arxiu { grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: start; }
  .acte-arxiu-cartell { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 84px; }
  .acte-arxiu-data { grid-column: 2; grid-row: 1; flex-direction: row; align-items: baseline; gap: 8px; }
  .acte-arxiu-data b { font-size: 30px; }
  .acte-arxiu-cos { grid-column: 2; grid-row: 2; }
  .acte-arxiu-mitjans { grid-column: 2; grid-row: 3; margin-top: 8px; flex-wrap: wrap; }
  .hv-fila { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .hv-nav { font-size: 22px; }
}
.actes-arxiu-enllacos { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }

/* ── GALERIA «AMB LECTORS I AUTORS» ───────────── */
.fl-intro { padding: var(--pad); padding-bottom: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; max-width: 680px; color: #333; }
.fl-grid { column-count: 3; column-gap: 20px; padding: var(--pad); }
.fl-foto { break-inside: avoid; margin: 0 0 20px; border: var(--border); background: var(--bg); }
.fl-foto a { display: block; overflow: hidden; background: #E6E1D6; }
.fl-foto img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.fl-foto a:hover img, .fl-foto a:focus-visible img { transform: scale(1.03); }
.fl-foto figcaption { padding: 10px 12px 12px; border-top: var(--border); font-family: var(--serif); font-size: 15px; line-height: 1.5; }
.fl-meta { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.fl-strip { border-bottom: var(--border); }
.fl-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fl-strip-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-right: var(--border); background: #E6E1D6; }
.fl-strip-grid a:last-child { border-right: none; }
.fl-strip-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fl-strip-grid a:hover img, .fl-strip-grid a:focus-visible img { transform: scale(1.05); }
@media (max-width: 960px) { .fl-grid { column-count: 2; } }
@media (max-width: 560px) { .fl-grid { column-count: 1; } .fl-strip-grid { grid-template-columns: repeat(2, 1fr); } .fl-strip-grid a:nth-child(2n) { border-right: none; } .fl-strip-grid a:nth-child(-n+2) { border-bottom: var(--border); } }

/* ── GALERIA: portal i secció destacada de la home ───── */
.gh-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--border); margin-top: 24px; }
.gh-card { position: relative; display: flex; flex-direction: column; border-bottom: var(--border); transition: background .2s; }
.gh-card + .gh-card { border-left: var(--border); }
.gh-card:hover, .gh-card:focus-within { background: #EFEBE2; }
.gh-mosaic { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--border); }
.gh-mosaic > div { aspect-ratio: 4 / 3; overflow: hidden; background: #E6E1D6; }
.gh-mosaic > div:nth-child(odd) { border-right: var(--border); }
.gh-mosaic > div:nth-child(-n+2) { border-bottom: var(--border); }
.gh-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gh-card:hover .gh-mosaic img { transform: scale(1.04); }
.gh-buida { display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gh-cos { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px var(--pad) 32px; }
.gh-titol { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.gh-enllac::after { content: ""; position: absolute; inset: 0; }
.gh-text { font-family: var(--serif); font-size: 16px; line-height: 1.65; color: #333; max-width: 46ch; }
.gh-n { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.gh-cta { margin-top: auto; padding-top: 8px; align-self: flex-start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }

@media (max-width: 720px) {
  .gh-grid { grid-template-columns: 1fr; }
  .gh-card + .gh-card { border-left: none; }
}

/* ── Galeria a la home: franja baixa i compacta ───── */
.home-galeria { border-bottom: var(--border); }
.hg-mosaic { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: clamp(150px, 16vw, 210px); }
.hg-n3, .hg-n4, .hg-n5 { grid-auto-columns: auto; grid-template-columns: 1.6fr repeat(var(--n-resta, 4), 1fr); }
.hg-n3 { --n-resta: 2; } .hg-n4 { --n-resta: 3; } .hg-n5 { --n-resta: 4; }
.hg-foto { display: block; min-width: 0; overflow: hidden; background: #E6E1D6; }
.hg-foto + .hg-foto { border-left: var(--border); }
.hg-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hg-foto:hover img, .hg-foto:focus-visible img { transform: scale(1.05); }
.hg-enllacos { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 12px var(--pad); border-top: var(--border); }
@media (max-width: 720px) {
  .hg-mosaic, .hg-n3, .hg-n4, .hg-n5 { display: flex; grid-template-columns: none; height: 150px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .hg-foto { flex: 0 0 62%; scroll-snap-align: start; }
  .hg-n1 .hg-foto { flex-basis: 100%; }
  .hg-n2 .hg-foto { flex-basis: 50%; }
}

/* ── PRÒXIMS ACTES (home): targetes compactes amb el cartell sencer ───── */
.actes-home-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.actes-home-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; }
.actes-home-card img { width: 100%; height: 100%; min-height: 144px; max-height: 176px; object-fit: cover; object-position: top; border-bottom: none; border-right: var(--border); }
.actes-home-card-cos { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ultima-aparicio { grid-template-columns: minmax(300px, 400px) 1fr; }
.ultima-aparicio-acte img { height: 100%; }
@media (max-width: 720px) {
  .actes-home-grid { grid-template-columns: 1fr; }
  .actes-home-card { grid-template-columns: 84px minmax(0, 1fr); }
  .actes-home-card img { min-height: 126px; }
  .ultima-aparicio { grid-template-columns: 1fr; }
}
