/* FARAFINA · estils del plugin (src/plugin/farafina/farafina.css, generat per src/build.py des de src/farafina.template.css).
   Estructura que pinta el plugin a les pàgines Elementor Canvas amb un contenidor «ff-page»:
     div.ff-site > .ff-logo + nav.ff-menu + [contingut d'Elementor] + footer.ff-footer
   Portada: contenidor «ff-page» amb la tira («ff-strip») i el manifest («ff-manifest»).
   Pàgines interiors: contenidor «ff-page ff-sub» amb entrada («ff-intro»), text («ff-body») i foto («ff-photo»). */

@font-face { font-family: 'DIN Next Heavy Cond'; src: url(fonts/DINNextLTPro-HeavyCondensed.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'DIN Mittelschrift'; src: url(fonts/DINMittelschriftStd.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DIN Next Cond FF'; src: url(fonts/DINNextLTPro-Condensed.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DIN Next Medium Cond'; src: url(fonts/DINNextLTPro-MediumCond.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }

/* MÒBIL PRIMER: les regles base són per a mòbil; a partir de 768px s'aplica la composició del PDF.
   CONTENIDOR: màx. 1920px centrat (amplada del PDF). --ff-vw és 1vw fins a 1920px i després queda fix. */
:root {
  --ff-vw: min(1vw, 19.2px);
  --ff-bg: #D5D9DA;
  --ff-ink: #000;
  --ff-green: #A1C430;
  --ff-mark: #92B521; /* subratllat orgànic del manifest (PDF final) */
  --ff-grey: #85857D; /* peu i fons de les pàgines interiors */
  --ff-gutter: max(16px, calc(3.1 * var(--ff-vw)));
  --ff-font-manifest: 'DIN Next Heavy Cond', 'Arial Narrow', sans-serif;
  --ff-font-strip: 'DIN Mittelschrift', 'Arial Narrow', sans-serif;
  --ff-font-small: 'DIN Next Cond FF', 'Arial Narrow', sans-serif; /* menú, correu, any, textos de les pàgines */
  --ff-font-bold: 'DIN Next Medium Cond', 'Arial Narrow', sans-serif; /* "Associació…", requadre d'ACCIONS */
  --ff-size-small: 1.0625rem;
  --ff-size-menu: var(--ff-size-small); /* MANIFEST · ACCIONS: mida del PDF (45px a 1920) */
  --ff-size-tiny: 0.8125rem;
  --ff-size-strip: 1.125rem;
  --ff-size-manifest: calc(12.5 * var(--ff-vw));
}
@media (min-width: 768px) {
  :root {
    --ff-size-small: max(1rem, calc(2.35 * var(--ff-vw)));
    --ff-size-strip: calc(3.2 * var(--ff-vw));
    --ff-size-tiny: max(.8125rem, calc(1.5625 * var(--ff-vw)));
  }
}
html, body { margin: 0; background: var(--ff-bg); overflow-x: clip; }
html:has(.ff-sub), body:has(.ff-sub) { background: var(--ff-grey); }

/* Contenidor de tot (el pinta el plugin). */
.ff-site {
  --ff-top: var(--wp-admin--admin-bar--height, 0px);
  --ff-menu-top: max(8px, calc(1.2 * var(--ff-vw)));
  --ff-strip-mt: max(20px, calc(4 * var(--ff-vw))); --ff-strip-mt-menu: max(42px, calc(6.1 * var(--ff-vw)));
  --ff-strip-top: calc(2.4vw + 6px);
  /* Amb menú, la tira s'enganxa just sota la barra compacta (2 × --ff-menu-top + línia del menú); girada, l'extrem
     esquerre puja ≈ 2.4vw. */
  --ff-strip-top-menu: calc(2 * var(--ff-menu-top) + 1.2 * var(--ff-size-menu) + 2.4vw);
  --ff-page-bg: var(--ff-bg);
  width: 100%; max-width: 1920px; margin-inline: auto;
  background: var(--ff-bg); color: var(--ff-ink);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
/* Barra d'admin de WordPress (sessió iniciada): a ≤600px no és fixa (puja amb la pàgina), així que no compta. */
@media (max-width: 600px) { .ff-site { --ff-top: 0px; } }
.ff-site:has(> .ff-menu) { --ff-strip-mt: var(--ff-strip-mt-menu); --ff-strip-top: var(--ff-strip-top-menu); }
.ff-site:has(.ff-sub) { background: var(--ff-grey); --ff-page-bg: var(--ff-grey); }
.ff-site, .ff-site * { box-sizing: border-box; }
.ff-site > .elementor { width: 100%; }
.ff-site a { color: inherit; }
.ff-site p { margin: 0; }
.ff-site a:focus-visible, .ff-site button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ff-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Contenidor d'Elementor de la portada i de les pàgines */
.ff-site .elementor .ff-page {
  --gap: 0px; gap: 0; padding: 0; width: 100%; max-width: none !important; margin: 0 !important;
  color: var(--ff-ink); overflow: visible; display: flex; flex-direction: column;
}
.ff-site .elementor .ff-page, .ff-site .elementor .ff-page * { box-sizing: border-box; }
.ff-site .elementor .ff-page > .elementor-element { margin: 0; width: 100%; min-width: 0; }
.ff-site .elementor .ff-page .elementor-widget-container { margin: 0; padding: 0; }
.ff-site .elementor .ff-page a { color: inherit; }
.ff-site .elementor .ff-page p { margin: 0; }
.ff-site .elementor .ff-page a:focus-visible { outline: 2px solid var(--ff-ink); outline-offset: 3px; }

.ff-site .ff-logo { position: relative; z-index: 2; margin: 0; padding: max(16px, calc(3.3 * var(--ff-vw))) max(16px, calc(3.8 * var(--ff-vw))) 0; line-height: 0; }
.ff-site .ff-logo a { display: block; color: var(--ff-ink); }
.ff-site .ff-logo svg { width: 100%; height: auto; display: block; }

/* Tira: widget Títol (classe "ff-strip"), en moviment. Ocupa tota l'amplada de la pantalla.
   Sticky (PO, 28/10/2026): en fer scroll la tira i el menú es queden enganxats a dalt.
   --ff-strip-top: on s'enganxa la tira; girada, a l'esquerra puja 50vw·tan(2.75°) ≈ 2.4vw. Amb menú, prou avall
   perquè el costat dret de la tira (que baixa ≈ 2.2vw) no el tapi. --ff-top: la barra d'admin si hi és. */
.ff-site .elementor .ff-page .ff-strip {
  width: 110vw; max-width: none !important;
  margin: var(--ff-strip-mt) 0 max(22px, calc(4.9 * var(--ff-vw))) calc(50% - 55vw);
  background: var(--ff-green); transform: rotate(2.75deg); overflow: hidden;
  position: sticky; top: calc(var(--ff-top) + var(--ff-strip-top)); z-index: 1;
  /* Ombra del color del fons cap amunt: tapa el manifest que passa per sobre de la tira enganxada. */
  box-shadow: 0 -100vmax 0 100vmax var(--ff-bg);
}
.ff-site .elementor .ff-page .ff-strip .elementor-heading-title {
  font-family: var(--ff-font-strip); font-weight: 500; color: var(--ff-ink);
  font-size: var(--ff-size-strip); white-space: nowrap;
  /* Banda 1.79em com al PDF. La font porta les mateixes mètriques a totes les plataformes: línia base a 1.19em. */
  line-height: 1.79;
  text-transform: none; letter-spacing: normal;
}
.ff-site .elementor .ff-page .ff-strip .elementor-heading-title > a,
.ff-site .elementor .ff-page .ff-strip .elementor-heading-title:not(:has(a)) {
  display: inline-block; padding-left: 100%; text-decoration: none;
  animation: ff-marquee 22s linear -8s infinite;
}
@media (min-width: 768px) {
  .ff-site .elementor .ff-page .ff-strip .elementor-heading-title > a,
  .ff-site .elementor .ff-page .ff-strip .elementor-heading-title:not(:has(a)) { animation-duration: 28s; animation-delay: -12s; }
}
.ff-site .elementor .ff-page .ff-strip:hover .elementor-heading-title > a { animation-play-state: paused; }
@keyframes ff-marquee { to { transform: translateX(-100%); } }
/* Bucle continu (classe ff-loop, la posa l'script): el text es repeteix seguit, sense buits (PO, 28/10/2026). */
html .ff-site .elementor .ff-page .ff-strip .ff-loop { padding-left: 0; animation: ff-loop var(--ff-loop-dur, 30s) linear infinite; }
/* Entre repetició i repetició, un punt volat just al mig. "/ ''": els lectors de pantalla no el llegeixen. */
.ff-site .elementor .ff-page .ff-strip .ff-loop > span { display: inline-block; }
.ff-site .elementor .ff-page .ff-strip .ff-loop > span::after { content: "\00B7"; content: "\00B7" / ""; display: inline-block; width: 2.4em; text-align: center; font-size: 1.25em; line-height: 0; }
@keyframes ff-loop { to { transform: translateX(calc(-100% / var(--ff-loop-n, 2))); } }
@media (prefers-reduced-motion: reduce) {
  .ff-site .elementor .ff-page .ff-strip .elementor-heading-title > a { animation: none; padding-left: 5vw; }
  html .ff-site .elementor .ff-page .ff-strip .ff-loop { animation: none; padding-left: 5vw; }
  .ff-site .elementor .ff-page .ff-strip .ff-loop > [aria-hidden] { display: none; }
  .ff-site .elementor .ff-page .ff-strip .ff-loop > span::after { content: none; }
}

/* Textos petits: menú i peu */
.ff-site .ff-menu,
.ff-site .ff-footer {
  font-family: var(--ff-font-small); font-weight: 400; color: var(--ff-ink);
  font-size: var(--ff-size-small); line-height: 1.2; letter-spacing: normal; text-transform: none;
}

/* Menú (Aparença → Menús, ubicació «Menú Farafina») sota la "NA" del logo, alineat a la dreta.
   El marge inferior negatiu fa que el menú no empenyi el contingut: l'espai el deixa la tira o la pàgina. */
.ff-site .ff-menu {
  --mt: max(10px, calc(2.5 * var(--ff-vw)));
  position: sticky; top: calc(var(--ff-top) + var(--ff-menu-top)); z-index: 3;
  margin: var(--mt) 0 calc(-1 * (var(--mt) + 1.2 * var(--ff-size-menu)));
  font-size: var(--ff-size-menu);
  min-height: 1.2em; /* alçada d'una línia encara que el menú sigui buit (totes les pàgines en esborrany) */
  padding: 0 max(16px, calc(3.8 * var(--ff-vw))); /* el mateix que el logo: els % de sota són de l'amplada del logo */
}
.ff-site .ff-menu ul { list-style: none; margin: 0; padding: 0; }
.ff-site .ff-menu li { margin: 0; padding: 0; }
/* Barra compacta: quan el logo gran surt de la pantalla (l'script posa .ff-stuck a .ff-site), el menú enganxat porta
   una franja del color del fons a tota l'amplada i el logo petit a l'esquerra (enllaç a l'inici). */
.ff-site .ff-menu .ff-mini {
  position: absolute; left: max(16px, calc(3.8 * var(--ff-vw))); top: 50%; transform: translateY(-50%);
  width: 5.88em; line-height: 0; color: var(--ff-ink); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
}
.ff-site .ff-menu .ff-mini svg { width: 100%; height: auto; display: block; }
.ff-site .ff-menu::before {
  content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%);
  top: calc(-1 * (var(--ff-menu-top) + var(--ff-top))); bottom: calc(-1 * var(--ff-menu-top)); /* + barra d'admin (al mòbil no és fixa) */
  background: var(--ff-page-bg); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
}
.ff-site.ff-stuck .ff-menu .ff-mini, .ff-site.ff-stuck .ff-menu::before { visibility: visible; opacity: 1; }
/* MANIFEST sota la N i ACCIONS sota l'última A del logo (PO, 28/10/2026), sigui quina sigui la mida de la lletra:
   cada element fa 0 d'ample i el text queda centrat en aquest punt. Al PDF, centres a x=1519 i 1777 de 1920 →
   81,52% i 96,07% de l'amplada del logo (viewBox 73,3–1846,7). Pensat per a 2 elements; un 3r aniria a continuació. */
.ff-site .ff-menu > ul { display: flex; }
.ff-site .ff-menu > ul > li { flex: none; width: 0; display: flex; justify-content: center; white-space: nowrap; }
/* Mòbil estret (< ~480px): no hi caben tots dos sota la N i l'A; ACCIONS es queda sota l'A i MANIFEST es desplaça
   a l'esquerra el mínim perquè hi hagi 4em entre centres (≈1em de blanc entre les paraules). */
.ff-site .ff-menu > ul > li:nth-child(1) { margin-left: min(81.52%, calc(96.07% - 4em)); }
.ff-site .ff-menu > ul > li:nth-child(2) { margin-left: max(14.55%, 4em); }
.ff-site .ff-menu > ul > li:nth-child(n+3) { margin-left: 6em; }
.ff-site .ff-menu .sub-menu li { white-space: normal; }
.ff-site .ff-menu a {
  text-transform: uppercase; text-decoration: none;
  text-decoration-thickness: max(1px, .06em); text-underline-offset: .13em;
}
/* Subratllat (negre i prim, com al PDF final) només en passar-hi per sobre, amb el focus, a la pàgina actual o amb el desplegable obert. */
.ff-site .ff-menu a:hover,
.ff-site .ff-menu a:focus-visible,
.ff-site .ff-menu a[aria-current="page"],
.ff-site .ff-menu .current-menu-ancestor > a,
.ff-site .ff-menu .ff-open > a { text-decoration-line: underline; text-decoration-color: currentColor; }

/* Requadre d'ACCIONS (PDF final, pàg. 2): el submenú és un requadre negre arrodonit que va de x=840 fins a la
   dreta de la pantalla, 15px sota el menú; enllaços en DIN Next Medium Cond 130px gris clar; X a dalt a la dreta.
   Va enganxat al menú (sticky). Alçada segons el contingut (màx. la pantalla, si no hi cap fa scroll per dins);
   lletra més petita que al PDF (130px) perquè cada enllaç càpiga en una línia a totes les pantalles (Andreu, 06/11).
   Sense JS s'obre amb hover/focus; amb JS (classe ff-js) s'obre i es tanca amb clic, hover, la X o Esc. */
.ff-site .ff-menu .sub-menu {
  display: none; position: absolute; z-index: 4;
  top: calc(100% + max(8px, calc(.75 * var(--ff-vw))));
  left: max(16px, 8vw); right: min(0px, calc((100% - 100vw) / 2));
  max-height: calc(100vh - var(--ff-top) - var(--ff-menu-top) - 1.2 * var(--ff-size-menu) - 2 * max(8px, calc(.75 * var(--ff-vw))));
  max-height: calc(100svh - var(--ff-top) - var(--ff-menu-top) - 1.2 * var(--ff-size-menu) - 2 * max(8px, calc(.75 * var(--ff-vw))));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ff-ink); color: var(--ff-bg); border-radius: max(12px, calc(1.4 * var(--ff-vw))) 0 0 max(12px, calc(1.4 * var(--ff-vw)));
  font-family: var(--ff-font-bold); font-weight: 500;
  font-size: clamp(1.375rem, 6.5vw, 1.75rem); line-height: 1.15;
  padding: 1.7em 1.2em 1.2em .9em;
}
@media (min-width: 768px) {
  .ff-site .ff-menu .sub-menu { left: calc(43.75 * var(--ff-vw)); font-size: max(1.5rem, min(calc(4.6 * var(--ff-vw)), 8svh)); padding: 1.5em 1.5em 1.3em .885em; }
}
/* ↑ Lletra proporcional a l'amplada perquè els enllaços omplin el requadre (~70% a partir de 1300px); l'enllaç més
   llarg (~8,6em) encara cap en una línia (8,6em + marges ≤ 56,25vw). Limitada per l'alçada de la pantalla (8svh). */
.ff-site .ff-menu:not(.ff-js) li:hover > .sub-menu,
.ff-site .ff-menu:not(.ff-js) li:focus-within > .sub-menu,
.ff-site .ff-menu .ff-open > .sub-menu { display: block; }
.ff-site .ff-menu .sub-menu li + li:not(.ff-close-li) { margin-top: .4em; }
.ff-site .ff-menu .sub-menu a { display: inline; color: var(--ff-bg); hyphens: none; -webkit-hyphens: none; }
.ff-site .ff-menu .sub-menu a:hover,
.ff-site .ff-menu .sub-menu a:focus-visible,
.ff-site .ff-menu .sub-menu a[aria-current="page"] { text-decoration-thickness: max(2px, .05em); text-underline-offset: .12em; }
.ff-site .ff-menu .ff-close-li { position: absolute; top: .6em; right: .8em; margin: 0; }
.ff-site .ff-menu .ff-close {
  font: inherit; font-family: var(--ff-font-small); font-weight: 400; font-size: .77em; line-height: 1; color: var(--ff-bg);
  background: none; border: 0; padding: .15em .25em; margin: -.15em -.25em; cursor: pointer;
}
.ff-site .ff-menu .ff-close:hover { color: var(--ff-green); }

/* Manifest: Editor de text (classe "ff-manifest"). Justificat; els guionets de partició els posa l'script.
   La mida és relativa a l'amplada del text → mateixes línies que al PDF a totes les amplades. */
.ff-site .elementor .ff-page .ff-manifest { padding: 0 var(--ff-gutter) max(28px, calc(4.17 * var(--ff-vw))); container-type: inline-size; position: relative; z-index: 0; }
.ff-site .elementor .ff-page .ff-manifest p {
  font-family: var(--ff-font-manifest); font-weight: 800; color: var(--ff-ink);
  font-size: var(--ff-size-manifest); line-height: 1; letter-spacing: normal;
  font-size: 13.333cqw; /* 240/1801 del PDF */
  text-transform: uppercase; text-align: justify; text-align-last: left; word-spacing: -.1em;
  hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal;
}
.ff-site .elementor .ff-page .ff-manifest p + p { margin-top: .4em; }
.ff-site .elementor .ff-page .ff-manifest .ff-sp { word-spacing: normal; }
.ff-site .elementor .ff-page .ff-manifest.ff-fit p { text-align: left; word-spacing: normal; }
/* Subratllat orgànic (PDF final, pàg. 1): el que està en negreta a l'editor surt amb una taca verda darrere.
   Forma extreta del PDF (quadrilàter una mica tort, cantons arrodonits), estirada a la mida de les paraules:
   alçada 68,6% de la caixa del text, desplaçada avall; sobresurt .2em per l’esquerra i .1em per la dreta (no tapa el punt de "DIGNES.") sense moure el text.
   z-index -1 dins del manifest (que fa de context): la taca queda per sota de totes les lletres. */
.ff-site .elementor .ff-page .ff-manifest strong,
.ff-site .elementor .ff-page .ff-manifest b {
  font-weight: inherit; position: relative; z-index: -1;
  padding: 0 .1em 0 .2em; margin: 0 -.1em 0 -.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1015 190%22 preserveAspectRatio=%22none%22%3E%3Cpath fill=%22%2392B521%22 d=%22M960 173.6C978.7 173.2 1016.1 174.7 1014.7 152.4L1012.4 20C1012.2 7 999 0 975.9 .4L36 16.8C12.9 17.2 0 24.7 .2 37.6L2.5 170C2.8 182.9 14.5 190 39 189.6Z%22/%3E%3C/svg%3E") 0 45% / 100% 68.6% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Pàgines interiors (PDF final, pàg. 3): contenidor «ff-page ff-sub», fons gris com el peu.
   1920: entrada (Editor de text «ff-intro») a x=78, 60px; text («ff-body») a x=1015, 45px, partit amb guionets;
   foto («ff-photo», Imatge) de x=40 a 1887, 74px sota el text i 64px sobre el peu. Mòbil: tot en una columna. */
.ff-site .elementor .ff-page.ff-sub {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  row-gap: max(20px, calc(2 * var(--ff-vw)));
  padding: max(64px, calc(8.7 * var(--ff-vw))) var(--ff-gutter) max(32px, calc(3.33 * var(--ff-vw)));
  font-family: var(--ff-font-small); font-weight: 400; line-height: 1.2;
}
.ff-site .elementor .ff-page.ff-sub > .elementor-element { width: auto; }
.ff-site .elementor .ff-page.ff-sub .ff-intro { font-size: max(1.375rem, calc(3.125 * var(--ff-vw))); } /* 60px a 1920, com al PDF */
.ff-site .elementor .ff-page.ff-sub .ff-body { font-size: max(1.0625rem, calc(2.34 * var(--ff-vw))); /* 45px a 1920 */ hyphens: manual; -webkit-hyphens: manual; }
.ff-site .elementor .ff-page.ff-sub .ff-intro, .ff-site .elementor .ff-page.ff-sub .ff-body { font-family: var(--ff-font-small); color: var(--ff-ink); line-height: 1.2; }
.ff-site .elementor .ff-page.ff-sub .ff-intro *, .ff-site .elementor .ff-page.ff-sub .ff-body * { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
.ff-site .elementor .ff-page.ff-sub .ff-intro p + p, .ff-site .elementor .ff-page.ff-sub .ff-body p + p { margin-top: .38em; }
.ff-site .elementor .ff-page.ff-sub .ff-body a { text-decoration: underline; text-underline-offset: .15em; }
.ff-site .elementor .ff-page.ff-sub .ff-photo { margin-top: max(12px, calc(1.85 * var(--ff-vw))); width: auto !important; max-width: none !important; margin-inline: calc(-1 * var(--ff-gutter) + max(8px, calc(2.08 * var(--ff-vw)))); }
.ff-site .elementor .ff-page.ff-sub .ff-photo img { display: block; width: 100%; height: auto; max-width: none; border-radius: 0; }
.ff-site .elementor .ff-page.ff-sub .ff-photo + .ff-photo { margin-top: 0; }
@media (min-width: 768px) {
  .ff-site .elementor .ff-page.ff-sub {
    grid-template-columns: minmax(0, 1fr) calc(45.05 * var(--ff-vw)); column-gap: calc(3.9 * var(--ff-vw));
    padding: calc(8.7 * var(--ff-vw)) calc(2.1 * var(--ff-vw)) calc(3.33 * var(--ff-vw)) calc(4.06 * var(--ff-vw));
  }
  .ff-site .elementor .ff-page.ff-sub .ff-intro { grid-column: 1; }
  .ff-site .elementor .ff-page.ff-sub .ff-body { grid-column: 2; margin-top: calc(.68 * var(--ff-vw)); }
  .ff-site .elementor .ff-page.ff-sub > .elementor-element:not(.ff-intro):not(.ff-body) { grid-column: 1 / -1; }
  .ff-site .elementor .ff-page.ff-sub .ff-photo { margin: calc(3.85 * var(--ff-vw) - max(20px, calc(2 * var(--ff-vw)))) calc(-.36 * var(--ff-vw)) 0 calc(-1.98 * var(--ff-vw)); }
}

/* Peu (el pinta el plugin): 4 paràgrafs: associació · correu · Instagram (icona) · "2026 Badalona".
   Banda gris amb els tres primers en línia i, a sota, el mosaic de FARAFINA (::before); el 4t és la franja negra.
   Tot a tota l'amplada de la pantalla (box-shadow + clip-path). margin-top:auto: sempre a baix de tot. */
.ff-site .ff-footer {
  --pat-row: max(22px, calc(3.417 * var(--ff-vw)));
  margin-top: auto; background: var(--ff-grey); color: var(--ff-ink);
  box-shadow: 0 0 0 100vmax var(--ff-grey); clip-path: inset(0 -100vmax);
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1em; row-gap: .25em;
  padding: max(16px, calc(1.2 * var(--ff-vw))) var(--ff-gutter) 0;
}
.ff-site .ff-footer p { white-space: nowrap; min-width: 0; margin: 0; }
.ff-site .ff-footer p:nth-child(1) { font-family: var(--ff-font-bold); font-weight: 500; font-size: .97em; grid-area: 1 / 1; }
.ff-site .ff-footer p:nth-child(2) { grid-area: 2 / 1; }
.ff-site .ff-footer p:nth-child(3) { grid-area: 1 / 2 / 3 / 3; justify-self: end; line-height: 0; }
.ff-site .ff-footer::before {
  content: ""; grid-area: 3 / 1 / 4 / -1; width: 100vw; margin-left: calc(50% - 50vw);
  height: calc(6 * var(--pat-row)); margin-top: max(14px, calc(.42 * var(--ff-vw)));
  margin-bottom: max(4px, calc(.13 * var(--ff-vw)));
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 xmlns:xlink=%22http://www.w3.org/1999/xlink%22 viewBox=%220 0 1786 1276%22%3E%3Cdefs%3E%3Cg id=%22l%22 transform=%22translate%28-73.3 -64%29%22%3E%3Cpath transform=%22matrix%281,0,0,-1,1798.0396,64%29%22 d=%22M0 0H-116.275C-122.735 0-126.611-3.014-127.472-9.904L-139.099-129.624C-139.961-136.515-143.836-139.529-150.296-139.529H-154.172C-161.062-139.529-164.938-143.405-164.938-150.295V-216.185C-164.938-223.074-161.924-226.95-156.756-226.95-151.588-226.95-148.573-231.257-149.865-238.147L-158.048-290.256C-159.34-297.146-155.033-301.452-147.712-301.452H-76.656C-69.765-301.452-66.32-297.576-65.889-290.687L-63.736-237.717C-63.305-230.826-61.583-226.95-58.138-226.95-54.693-226.95-52.97-230.826-52.539-237.717L-50.386-290.687C-49.955-297.576-46.51-301.452-39.62-301.452H31.437C38.758-301.452 43.064-297.146 41.772-290.256L33.59-238.147C32.298-231.257 35.313-226.95 40.48-226.95 45.648-226.95 48.663-223.074 48.663-216.185V-150.295C48.663-143.405 44.787-139.529 37.897-139.529H34.021C27.561-139.529 23.685-136.515 22.824-129.624L11.197-9.904C10.335-3.014 6.459 0 0 0M-637.358 0H-819.952C-826.843 0-830.719-3.875-830.719-10.766V-290.687C-830.719-297.576-826.843-301.452-819.952-301.452H-740.713C-733.823-301.452-729.947-297.576-729.947-290.687V-237.717C-729.947-230.826-726.071-226.95-719.181-226.95H-645.54C-638.65-226.95-634.774-223.074-634.774-216.185V-136.945C-634.774-130.055-642.956-126.18-645.54-126.18H-719.181C-726.071-126.18-729.947-123.596-729.947-119.72-729.947-115.844-726.071-113.69-719.181-113.69H-637.358C-630.468-113.69-626.592-109.814-626.592-102.924V-10.766C-626.592-3.875-630.468 0-637.358 0M-597.308-301.452H-412.991C-406.101-301.452-402.225-297.576-402.225-290.687V-211.447C-402.225-204.558-406.101-200.682-412.991-200.682H-443.998C-450.888-200.682-454.764-196.806-454.764-189.915V-111.537C-454.764-104.646-450.888-100.771-443.998-100.771H-412.991C-406.101-100.771-402.225-96.895-402.225-90.005V-10.766C-402.225-3.875-406.101 0-412.991 0H-597.308C-604.198 0-608.074-3.875-608.074-10.766V-90.005C-608.074-96.895-604.198-100.771-597.308-100.771H-566.301C-559.411-100.771-555.535-104.646-555.535-111.537V-189.915C-555.535-196.806-559.411-200.682-566.301-200.682H-597.308C-604.198-200.682-608.074-204.558-608.074-211.447V-290.687C-608.074-297.576-604.198-301.452-597.308-301.452M-372.941-301.452H-310.927C-304.037-301.452-300.161-297.576-300.161-290.687V-226.95C-300.161-218.338-289.826-216.615-288.534-225.228L-278.198-292.409C-277.337-298.868-272.169-301.452-266.14-301.452H-194.653C-187.762-301.452-183.887-297.576-183.887-290.687V-10.766C-183.887-3.875-187.762 0-194.653 0H-254.513C-261.403 0-265.279-3.875-265.279-10.766V-62.443C-265.279-73.21-275.615-75.363-277.768-65.458L-291.118-8.182C-292.41-2.583-297.577 0-303.606 0H-372.941C-379.831 0-383.707-3.444-383.707-10.766V-290.687C-383.707-298.007-379.831-301.452-372.941-301.452M-1341.035 0H-1457.31C-1463.77 0-1467.646-3.014-1468.507-9.904L-1480.135-129.624C-1480.996-136.515-1484.872-139.529-1491.331-139.529H-1495.207C-1502.097-139.529-1505.973-143.405-1505.973-150.295V-216.185C-1505.973-223.074-1502.959-226.95-1497.791-226.95-1492.623-226.95-1489.609-231.257-1490.901-238.147L-1499.083-290.256C-1500.375-297.146-1496.068-301.452-1488.748-301.452H-1417.691C-1410.8-301.452-1407.355-297.576-1406.924-290.687L-1404.771-229.104C-1404.341-222.213-1402.618-218.338-1399.173-218.338-1395.728-218.338-1394.005-222.213-1393.574-229.104L-1391.421-290.687C-1390.99-297.576-1387.545-301.452-1380.655-301.452H-1309.598C-1302.277-301.452-1297.971-297.146-1299.263-290.256L-1307.445-238.147C-1308.737-231.257-1305.722-226.95-1300.555-226.95-1295.387-226.95-1292.372-223.074-1292.372-216.185V-150.295C-1292.372-143.405-1296.248-139.529-1303.138-139.529H-1307.014C-1313.474-139.529-1317.35-136.515-1318.211-129.624L-1329.839-9.904C-1330.7-3.014-1334.576 0-1341.035 0M-1512.864 0H-1713.976C-1720.866 0-1724.742-3.875-1724.742-10.766V-290.687C-1724.742-297.576-1720.866-301.452-1713.976-301.452H-1623.971C-1617.08-301.452-1613.205-297.576-1613.205-290.687V-237.717C-1613.205-230.826-1609.329-226.95-1602.438-226.95H-1536.119C-1529.228-226.95-1525.353-223.074-1525.353-216.185V-136.945C-1525.353-130.055-1529.228-126.18-1536.119-126.18H-1606.745C-1613.635-126.18-1617.511-123.596-1617.511-119.72-1617.511-115.844-1613.635-113.69-1606.745-113.69H-1512.864C-1505.973-113.69-1502.097-109.814-1502.097-102.924V-10.766C-1502.097-3.875-1505.973 0-1512.864 0M-894.024 0H-1010.298C-1016.758 0-1020.634-3.014-1021.495-9.904L-1033.123-129.624C-1033.984-136.515-1037.86-139.529-1044.32-139.529H-1048.195C-1055.086-139.529-1058.961-143.405-1058.961-150.295V-216.185C-1058.961-223.074-1055.947-226.95-1050.779-226.95-1045.611-226.95-1042.597-231.257-1043.889-238.147L-1052.071-290.256C-1053.363-297.146-1049.057-301.452-1041.736-301.452H-970.679C-963.789-301.452-960.343-297.576-959.913-290.687L-957.759-229.104C-957.329-222.213-955.606-218.338-952.161-218.338-948.716-218.338-946.993-222.213-946.563-229.104L-944.409-290.687C-943.979-297.576-940.534-301.452-933.643-301.452H-862.586C-855.266-301.452-850.959-297.146-852.251-290.256L-860.433-238.147C-861.725-231.257-858.711-226.95-853.543-226.95-848.375-226.95-845.361-223.074-845.361-216.185V-150.295C-845.361-143.405-849.236-139.529-856.127-139.529H-860.003C-866.462-139.529-870.338-136.515-871.199-129.624L-882.827-9.904C-883.688-3.014-887.564 0-894.024 0M-1266.964-301.452H-1196.338C-1189.448-301.452-1185.572-298.007-1185.572-290.687L-1184.71-229.104C-1184.71-221.782-1182.557-218.338-1179.543-218.338-1176.528-218.338-1174.806-221.782-1173.944-228.673L-1167.915-291.117C-1167.485-297.576-1163.178-301.452-1156.719-301.452H-1086.954C-1079.202-301.452-1076.618-296.716-1078.341-288.964L-1095.136-206.71C-1097.72-194.222-1092.552-194.222-1088.676-194.222-1077.479-194.222-1077.91-178.718-1077.91-171.397V-19.378C-1077.91-13.35-1076.618 0-1089.537 0H-1266.964C-1273.854 0-1277.73-3.875-1277.73-10.766V-290.687C-1277.73-297.576-1273.854-301.452-1266.964-301.452%22/%3E%3C/g%3E%3C/defs%3E%3Cuse xlink:href=%22%23l%22 x=%22-893%22 y=%220%22/%3E%3Cuse xlink:href=%22%23l%22 x=%22893%22 y=%220%22/%3E%3Cuse xlink:href=%22%23l%22 x=%22-1339.5%22 y=%22319%22/%3E%3Cuse xlink:href=%22%23l%22 x=%22446.5%22 y=%22319%22/%3E%3Cuse xlink:href=%22%23l%22 x=%220%22 y=%22638%22/%3E%3Cuse xlink:href=%22%23l%22 x=%221786%22 y=%22638%22/%3E%3Cuse xlink:href=%22%23l%22 x=%22-446.5%22 y=%22957%22/%3E%3Cuse xlink:href=%22%23l%22 x=%221339.5%22 y=%22957%22/%3E%3C/svg%3E") left top / calc(var(--pat-row) * 1786 / 319) calc(4 * var(--pat-row)) repeat;
}
.ff-site .ff-footer p:nth-child(4) {
  grid-area: 4 / 1 / 5 / -1; font-size: var(--ff-size-tiny); color: var(--ff-bg);
  background: var(--ff-ink); box-shadow: 0 0 0 100vmax var(--ff-ink); clip-path: inset(0 -100vmax);
  padding: max(18px, calc(2.5 * var(--ff-vw))) 0;
}
@media (min-width: 768px) {
  .ff-site .ff-footer { grid-template-columns: calc(48.125 * var(--ff-vw)) 1fr auto; column-gap: 0; }
  .ff-site .ff-footer p:nth-child(2) { grid-area: 1 / 2; }
  .ff-site .ff-footer p:nth-child(3) { grid-area: 1 / 3; margin-right: calc(1.56 * var(--ff-vw)); transform: translateY(-.2em); }
  .ff-site .ff-footer::before { grid-area: 2 / 1 / 3 / -1; }
  .ff-site .ff-footer p:nth-child(4) { grid-area: 3 / 1 / 4 / -1; }
}
.ff-site .ff-footer a { display: inline-block; padding: .5em 0; margin: -.5em 0; text-decoration: none; }
.ff-site .ff-footer a:hover, .ff-site .ff-footer a:focus-visible { text-decoration: underline; }
/* Enllaç a Instagram → icona. El text de l'enllaç ("Instagram") queda per a lectors de pantalla. */
.ff-site .ff-footer p:nth-child(3) a { display: inline-flex; vertical-align: middle; width: 1.5em; padding: .3em 0; margin: -.3em 0; overflow: hidden; }
.ff-site .ff-footer p:nth-child(3) a::before {
  content: ""; flex: none; width: 1.5em; height: 1.5em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='2' y='2' width='20' height='20' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3Ccircle cx='17.7' cy='6.3' r='1.4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='2' y='2' width='20' height='20' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3Ccircle cx='17.7' cy='6.3' r='1.4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ff-site .ff-footer p:nth-child(3) a:hover::before { opacity: .65; }
