/* ==========================================================
   FLORANDUM — full d'estils
   ========================================================== */

/* Tipografies allotjades a la mateixa web (sense Google Fonts: més ràpid i
   sense enviar dades de visitants a tercers). Llicència OFL a /assets/fonts. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage-latin.woff2") format("woff2-variations"), url("../fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2-variations"), url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/sourceserif-latin.woff2") format("woff2-variations"), url("../fonts/sourceserif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/sourceserif-latin-ext.woff2") format("woff2-variations"), url("../fonts/sourceserif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("../fonts/sourceserif-latin-italic.woff2") format("woff2-variations"), url("../fonts/sourceserif-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --xiprer: #00594F;   /* verd Florandum (logotip) */
  --xiprer-2: #00473F;
  --ink: #0C3A33;
  --ink-soft: #445E58;
  --paper: #F2F4EC;
  --paper-2: #FAFBF6;
  --salvia: #E2EAD3;
  --brot: #9DC52B;     /* verd llima Florandum (flor) */
  --brot-deep: #5B7A12;
  --bloom: #B3245F;
  --bloom-deep: #8E1A4A;
  --line: rgba(0, 89, 79, .16);
  --line-strong: rgba(0, 89, 79, .32);

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --fs-xs: .8125rem;
  --fs-s: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.4rem + 5vw, 5.25rem);
  --fs-mega: clamp(3rem, 1.2rem + 7.4vw, 8rem);

  --wrap: 1240px;
  --gutter: clamp(1.1rem, .6rem + 2.2vw, 2.5rem);
  --space-s: clamp(1rem, .8rem + .8vw, 1.5rem);
  --space-m: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);
  --space-l: clamp(3.5rem, 2.4rem + 4.5vw, 7rem);
  --radius: 14px;
  --radius-l: 28px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--bloom); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-variation-settings: "wdth" 88;
  text-wrap: balance;
  color: var(--xiprer);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .section--dark h2, .promo h2 { color: inherit; }
h1 { font-size: var(--fs-h1); font-variation-settings: "wdth" 80; letter-spacing: -.022em; line-height: .96; }
h2 { font-size: var(--fs-h2); font-variation-settings: "wdth" 82; letter-spacing: -.018em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -.01em; }
strong { font-weight: 650; }
::selection { background: var(--brot); color: var(--xiprer); }

:focus-visible { outline: 3px solid var(--bloom); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brot); }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--xiprer); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; font-family: var(--f-display); }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lg); line-height: 1.55; }
.muted { color: var(--ink-soft); }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
  padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid var(--xiprer);
  background: var(--xiprer); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1.1;
}
.btn:hover { background: var(--xiprer-2); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { background: transparent; color: var(--xiprer); }
.btn--ghost:hover { background: var(--xiprer); color: var(--paper); }
.btn--bloom { background: var(--bloom); border-color: var(--bloom); color: #fff; }
.btn--bloom:hover { background: var(--bloom-deep); border-color: var(--bloom-deep); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--xiprer); }
.btn--light:hover { background: #fff; }
.btn--small { font-size: .9rem; padding: .6em 1.05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link {
  font-family: var(--f-display); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--brot); text-decoration-thickness: 3px; text-underline-offset: .3em;
}
.link:hover { text-decoration-color: var(--bloom); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--xiprer); color: var(--paper); font-family: var(--f-display); font-size: var(--fs-xs); }
.topbar > .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; justify-content: space-between; min-height: 38px; padding-block: .35rem; }
.topbar__info { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--brot); }
.topbar .ico { display: inline-flex; align-items: center; gap: .45em; }
.topbar svg { width: 14px; height: 14px; color: var(--brot); }
.topbar__social { display: flex; gap: .9rem; }
.topbar__social svg { width: 16px; height: 16px; color: var(--paper); }
@media (max-width: 720px) { .topbar .topbar__addr, .topbar .topbar__social { display: none; } }

/* ---------- Capçalera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header > .wrap { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; margin-right: auto; color: var(--xiprer); }
.brand__logo { height: 34px; width: auto; display: block; overflow: visible; }
.brand__desc { font-family: var(--f-display); font-weight: 400; font-size: .74rem; letter-spacing: .01em; color: var(--ink-soft); padding-left: 2px; line-height: 1; }
.lf-ast, .spin { transform-box: fill-box; transform-origin: 50% 50%; }
.drawer .brand__logo { height: 28px; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.65rem; letter-spacing: -.035em; font-variation-settings: "wdth" 84; line-height: 1; }
.brand__claim { display: block; font-family: var(--f-text); font-style: italic; font-weight: 400; font-size: .78rem; letter-spacing: 0; color: var(--ink-soft); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav > ul { display: flex; list-style: none; gap: .1rem; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: .55em .8em; border-radius: 999px; background: none; border: 0; color: inherit; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--salvia); }
.nav__link[aria-current="page"], .nav__link.is-active { box-shadow: inset 0 -3px 0 var(--brot); border-radius: 0; }
.nav__link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__ram { margin-left: .4rem; }
.lang { display: flex; gap: 2px; margin-left: .5rem; font-family: var(--f-display); font-size: .85rem; font-weight: 700; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.lang a { text-decoration: none; padding: .25em .6em; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--xiprer); color: var(--paper); }
.menu-toggle { display: none; }

/* Megamenú */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(0, 66, 58, .35);
  padding: 2rem 0 2.4rem;
}
.mega[hidden] { display: none; }
.mega__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; }
.mega__col h3 { font-size: 1.15rem; margin-bottom: .6rem; font-variation-settings: "wdth" 90; }
.mega__col h3 a { text-decoration: none; }
.mega__col h3 a:hover { text-decoration: underline; text-decoration-color: var(--brot); text-decoration-thickness: 3px; }
.mega__col img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: .8rem; }
.mega__col ul { list-style: none; display: grid; gap: .25rem; }
.mega__col li a { font-size: .95rem; text-decoration: none; color: var(--ink-soft); }
.mega__col li a:hover { color: var(--xiprer); text-decoration: underline; }
.mega__all { margin-top: 1.4rem; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-weight: 700;
    background: var(--xiprer); color: var(--paper); border: 0; border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
  }
  .menu-toggle svg { width: 18px; height: 18px; }
  .header-call { display: none; }
}

/* Menú mòbil */
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--paper); overflow-y: auto; padding: 1rem var(--gutter) 3rem; }
.drawer[hidden] { display: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: 60px; margin-bottom: 1rem; }
.drawer__close { background: none; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .5rem .9rem; font-family: var(--f-display); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; color: inherit; }
.drawer__close svg { width: 16px; height: 16px; }
.drawer nav > ul { list-style: none; border-top: 1px solid var(--line); }
.drawer nav > ul > li { border-bottom: 1px solid var(--line); }
.drawer__link { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; font-variation-settings: "wdth" 82; padding: .7rem 0; text-decoration: none; }
.drawer details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.drawer details summary::-webkit-details-marker { display: none; }
.drawer details summary svg { width: 18px; height: 18px; transition: transform .2s; }
.drawer details[open] > summary svg { transform: rotate(180deg); }
.drawer__sub { padding: 0 0 1rem 0; display: grid; gap: .9rem; }
.drawer__sub h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.drawer__sub h3 a { text-decoration: none; }
.drawer__sub ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.drawer__sub li a { display: inline-block; font-size: .92rem; padding: .3em .75em; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; }
.drawer__foot { margin-top: 2rem; display: grid; gap: 1rem; }

/* ---------- Seccions ---------- */
.section { padding-block: var(--space-l); }
.section--tight { padding-block: var(--space-m); }
.page-hero + .section--tight:not(.section--salvia) { padding-top: 0; }
.section--salvia { background: var(--salvia); }
.section--dark { background: var(--xiprer); color: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: var(--space-m); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--ink-soft); }

/* ---------- Hero portada ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--space-m); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero__title { font-size: var(--fs-mega); line-height: .92; letter-spacing: -.028em; font-variation-settings: "wdth" 80; margin-bottom: .35em; font-weight: 800; }
.hero__claim { font-family: var(--f-text); font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin-bottom: 1.6rem; }
.ast-mark { display: inline-block; width: .3em; margin-left: .04em; vertical-align: .55em; line-height: 0; color: var(--brot); }
.ast-mark svg { width: 100%; height: auto; display: block; }
h2 .ast-mark { width: .36em; vertical-align: .5em; }
.footnote { display: flex; align-items: baseline; gap: .5rem; margin: 1.3rem 0 0; font-size: 1rem; color: var(--ink-soft); font-style: italic; max-width: 60ch; }
.footnote__mark { flex: none; width: 1em; line-height: 0; color: var(--brot); transform: translateY(.1em); }
.footnote__mark svg { width: 100%; height: auto; }
.footnote--after { margin-top: 1.6rem; font-size: 1.1rem; }
.footnote--big { font-size: clamp(1.05rem, .8rem + 1vw, 1.6rem); color: var(--paper); margin-top: 1rem; }
.hero__flor { position: absolute; right: -5%; top: -6%; width: clamp(96px, 11vw, 168px); color: var(--brot); filter: drop-shadow(0 12px 18px rgba(0, 66, 58, .28)); pointer-events: none; }
.hero__flor svg { width: 100%; height: auto; display: block; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.6rem; font-family: var(--f-display); font-size: .95rem; color: var(--ink-soft); list-style: none; }
.hero__facts li { display: inline-flex; gap: .45em; align-items: center; }
.hero__facts svg { width: 16px; height: 16px; color: var(--brot-deep); }
.hero__media { position: relative; }
.hero__img { border-radius: var(--radius-l) var(--radius-l) var(--radius) var(--radius); aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }
.hero__img-2 { position: absolute; left: -9%; bottom: -7%; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--paper); }

/* Etiqueta de planta (motiu propi) */
.tag {
  --tag-bg: var(--brot);
  position: absolute; right: -2%; top: 10%;
  background: var(--tag-bg); color: var(--xiprer);
  padding: 1rem 2.6rem 1rem 1.2rem;
  clip-path: polygon(0 0, calc(100% - 1.8rem) 0, 100% 50%, calc(100% - 1.8rem) 100%, 0 100%);
  font-family: var(--f-display); line-height: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 66, 58, .25));
  transform: rotate(-4deg);
}
.tag::before { content: ""; position: absolute; left: .7rem; top: 50%; width: .55rem; height: .55rem; margin-top: -.275rem; border-radius: 50%; background: var(--paper); }
.tag__big { display: block; font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -.03em; padding-left: .9rem; }
.tag__small { display: block; font-weight: 600; font-size: .85rem; padding-left: .9rem; margin-top: .25rem; }
.tag--bloom { --tag-bg: var(--bloom); color: #fff; }
.tag--static { position: relative; right: auto; top: auto; display: inline-block; transform: rotate(-2deg); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin-inline: calc(var(--gutter) * -1); }
  .hero__img { border-radius: 0; aspect-ratio: 16 / 11; }
  .hero__img-2 { display: none; }
  .hero__flor { right: var(--gutter); top: auto; bottom: -2.2rem; width: 92px; }
  .hero__media .tag { right: var(--gutter); top: auto; bottom: -1.2rem; }
}

/* 3 accessos */
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: var(--space-m); }
.shortcut { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper-2); transition: border-color .2s; }
.shortcut:hover { border-color: var(--xiprer); }
.shortcut img { width: 96px; height: 80px; object-fit: cover; border-radius: 9px; }
.shortcut__kicker { display: block; font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.shortcut__title { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.01em; }
@media (max-width: 860px) { .shortcuts { grid-template-columns: 1fr; } }

/* Intro portada */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro__photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.intro__photos img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.intro__photos img:nth-child(2) { margin-top: 3rem; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

/* Llista de categories (passadís del mercat) */
.aisle { list-style: none; border-top: 2px solid var(--xiprer); }
.aisle__row { border-bottom: 1px solid var(--line-strong); }
.aisle__link { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 180px; gap: 1.5rem 2.5rem; align-items: center; padding: 1.4rem 0; text-decoration: none; }
.aisle__name { color: var(--xiprer); font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.4rem); line-height: .92; letter-spacing: -.03em; font-variation-settings: "wdth" 80; transition: color .2s; }
.aisle__link:hover .aisle__name { color: var(--bloom); }
.aisle__text { font-size: 1rem; color: var(--ink-soft); margin: 0; }
.aisle__img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.aisle__subs { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .4rem; margin: -.4rem 0 1.4rem; }
.aisle__subs a { display: inline-block; font-family: var(--f-display); font-size: .85rem; font-weight: 500; padding: .28em .8em; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; background: var(--paper-2); }
.aisle__subs a:hover { border-color: var(--xiprer); background: var(--salvia); }
@media (max-width: 860px) {
  .aisle__link { grid-template-columns: 1fr 110px; gap: .6rem 1rem; }
  .aisle__text { grid-column: 1 / -1; grid-row: 2; }
  .aisle__img { width: 110px; grid-column: 2; grid-row: 1; }
}

/* Promos: ram + és el seu dia */
.promos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
.promo { position: relative; border-radius: var(--radius-l); overflow: hidden; padding: clamp(1.6rem, 1rem + 2.4vw, 3rem); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.promo h2 { margin-bottom: .35em; }
.promo p { max-width: 42ch; }
.promo--ram { background: var(--bloom); color: #fff; }
.promo--ram .tag { top: 1.8rem; right: auto; left: clamp(1.6rem, 1rem + 2.4vw, 3rem); --tag-bg: var(--paper); color: var(--bloom); }
.promo--ram .tag::before { background: var(--bloom); }
.promo__art { position: absolute; right: -2rem; top: -1rem; width: 52%; max-width: 330px; opacity: .95; pointer-events: none; }
.promo--day { color: #fff; }
.promo--day img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo--day::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 66, 58, 0) 30%, rgba(0, 66, 58, .88) 100%); }
.promo--day > *:not(img) { position: relative; z-index: 1; }
@media (max-width: 860px) { .promos { grid-template-columns: 1fr; } .promo__art { width: 46%; } }

/* Serveis */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.service__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--salvia); display: grid; place-items: center; margin-bottom: 1rem; }
.section--salvia .service__icon { background: var(--paper); }
.service__icon svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.service p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.perks { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: var(--space-m); }
.perks li { background: var(--paper-2); padding: 1.2rem 1rem; display: flex; gap: .8rem; align-items: center; font-family: var(--f-display); font-weight: 600; font-size: .98rem; line-height: 1.2; }
.perks svg { width: 28px; height: 28px; flex: none; color: var(--brot-deep); }
.perks-title { font-size: var(--fs-h3); margin: var(--space-m) 0 0; }
@media (max-width: 960px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* Calendari del jardí */
.calendar__months { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: .35rem; margin-bottom: 1.6rem; }
.calendar__months button {
  width: 100%; font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
  padding: .7rem .2rem; border: 1.5px solid var(--line-strong); background: transparent; color: inherit; border-radius: 10px; cursor: pointer;
}
.calendar__months button:hover { border-color: var(--xiprer); }
.calendar__months button[aria-selected="true"] { background: var(--xiprer); border-color: var(--xiprer); color: var(--paper); }
.calendar__months button.is-now { position: relative; }
.calendar__months button.is-now::after { content: ""; position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; background: var(--brot); -webkit-mask: url("../img/flor.svg") center / contain no-repeat; mask: url("../img/flor.svg") center / contain no-repeat; }
.month-panel { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.month-panel[hidden] { display: none; }
.month-panel__img { border-radius: var(--radius); aspect-ratio: 17 / 9; object-fit: cover; width: 100%; }
.month-panel__name { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-variation-settings: "wdth" 80; letter-spacing: -.03em; margin: 0 0 .2em; line-height: .9; }
.month-panel__season { font-family: var(--f-display); font-size: .95rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .8rem; display: block; }
.tasklist { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.4rem; }
.tasklist li { font-family: var(--f-display); font-size: .9rem; font-weight: 600; padding: .3em .85em; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .calendar__months { grid-template-columns: repeat(6, 1fr); }
  .month-panel { grid-template-columns: 1fr; }
}

/* Testimonis */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; list-style: none; }
.quote { margin: 0; padding: 1.6rem 1.4rem; background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 3.5rem; line-height: .6; color: var(--brot-deep); margin-bottom: .2rem; }
.quote figcaption { font-family: var(--f-display); font-weight: 700; font-size: .98rem; }
@media (max-width: 1000px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quotes { grid-template-columns: 1fr; } }

/* Visita */
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.visit__map { border-radius: var(--radius-l); overflow: hidden; min-height: 380px; background: var(--salvia); position: relative; }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  background:
    radial-gradient(circle at 70% 40%, rgba(159, 198, 18, .35) 0 8px, transparent 9px),
    repeating-linear-gradient(32deg, transparent 0 46px, rgba(0, 66, 58, .07) 46px 48px),
    repeating-linear-gradient(-58deg, transparent 0 70px, rgba(0, 66, 58, .07) 70px 73px),
    var(--salvia);
}
.map-ph > svg { width: 40px; height: 40px; color: var(--bloom); }
.map-ph p { margin: 0; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.35; }
.map-ph strong { font-size: 1.4rem; }
.map-ph__note { font-family: var(--f-text) !important; font-size: .85rem !important; color: var(--ink-soft); }
.facts { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 1.6rem; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; }
.facts svg { width: 22px; height: 22px; margin-top: .2rem; color: var(--brot-deep); }
.facts strong { display: block; font-family: var(--f-display); font-weight: 700; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-family: var(--f-display); font-size: .98rem; }
.hours td { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.is-today td { font-weight: 700; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit__map { min-height: 300px; } }

/* ---------- Capçalera de pàgines interiors ---------- */
.crumbs { font-family: var(--f-display); font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero { padding-block: clamp(2rem, 1rem + 3vw, 4rem) var(--space-m); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.page-hero__grid--solo { grid-template-columns: 1fr; }
.page-hero h1 { margin-bottom: .4em; }
.page-hero__eyebrow { font-family: var(--f-display); font-weight: 600; color: var(--ink-soft); margin-bottom: .6rem; display: block; }
.page-hero__img { border-radius: var(--radius-l); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.page-hero__banner { margin-top: var(--space-m); border-radius: var(--radius-l); aspect-ratio: 21 / 8; object-fit: cover; width: 100%; }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__banner { aspect-ratio: 16 / 9; }
}

/* Targetes (subcategories, mesos, estacions) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); list-style: none; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.card__img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 1rem; transition: border-radius .3s var(--ease); }
.card:hover .card__img { border-radius: var(--radius-l); }
.card__title { font-size: 1.5rem; margin-bottom: .35rem; font-variation-settings: "wdth" 84; }
.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--brot); text-decoration-thickness: 3px; text-underline-offset: .15em; }
.card__text { font-size: 1rem; color: var(--ink-soft); margin: 0 0 .8rem; }
.card__meta { font-family: var(--f-display); font-size: .9rem; color: var(--ink-soft); display: block; margin-bottom: .25rem; }
.card--season .card__img { aspect-ratio: 1; }
@media (max-width: 960px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards, .cards--4 { grid-template-columns: 1fr; } }

/* Detall de subcategoria */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.detail__photos { display: grid; gap: 1rem; }
.detail__photos--2 { grid-template-columns: 1fr 1fr; }
.detail__photos--3 { grid-template-columns: 1fr 1fr; }
.detail__photos--3 a:first-child { grid-column: 1 / -1; }
.detail__photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail__photos--1 img, .detail__photos--3 a:first-child img { aspect-ratio: 3 / 2; }
.detail__ext { display: inline-flex; gap: .5rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--salvia); font-family: var(--f-display); font-size: .95rem; margin: .4rem 0 1.4rem; }
.detail__ext a { font-weight: 700; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

.siblings { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.siblings a { display: inline-block; font-family: var(--f-display); font-weight: 500; font-size: .95rem; padding: .4em .95em; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; background: var(--paper-2); }
.siblings a:hover { border-color: var(--xiprer); }
.siblings a[aria-current="page"] { background: var(--xiprer); color: var(--paper); border-color: var(--xiprer); }

.ask { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.6rem, 1rem + 2.4vw, 3rem); border-radius: var(--radius-l); background: var(--xiprer); color: var(--paper); }
.ask h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .3em; }
.ask p { margin: 0; max-width: 56ch; opacity: .9; }
@media (max-width: 760px) { .ask { grid-template-columns: 1fr; } }

/* T'oferim */
.svc-list { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--xiprer); }
.svc-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 2.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.svc-row .service__icon { margin: 0; width: 64px; height: 64px; }
.svc-row h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 0; }
.svc-row p { margin: 0; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 56px 1fr; } .svc-row p { grid-column: 1 / -1; } }

/* Idees */
.campaign { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding-block: var(--space-m); border-top: 1px solid var(--line-strong); }
.campaign:first-of-type { border-top: 0; padding-top: 0; }
.campaign:nth-of-type(even) .campaign__media { order: 2; }
.campaign__media { display: grid; gap: 1rem; }
.campaign__media img { border-radius: var(--radius); width: 100%; }
.campaign__sub { font-family: var(--f-text); font-style: italic; font-size: 1.25rem; margin: -.2em 0 .9em; display: block; }
.tips { list-style: none; display: grid; gap: .9rem; margin: 1rem 0 0; }
.tips li { padding-left: 1.7rem; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; background: var(--brot); -webkit-mask: url("../img/flor.svg") center / contain no-repeat; mask: url("../img/flor.svg") center / contain no-repeat; }
.tips strong { font-family: var(--f-display); font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; list-style: none; margin-top: 1.4rem; grid-column: 1 / -1; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform .4s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .campaign { grid-template-columns: 1fr; } .campaign:nth-of-type(even) .campaign__media { order: 0; } .gallery { grid-template-columns: repeat(3, 1fr); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(14, 30, 23, .88); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; background: var(--paper); border: 0; border-radius: 999px; padding: .55rem .9rem; font-family: var(--f-display); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; color: var(--xiprer); }
.lightbox__close svg { width: 16px; height: 16px; }

/* Article mensual */
.article-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.article-head h1 { font-size: clamp(3.5rem, 2rem + 7vw, 8.5rem); font-variation-settings: "wdth" 80; letter-spacing: -.035em; line-height: .88; margin-bottom: .2em; }
.article-head img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 17 / 9; object-fit: cover; }
.season-pill { display: inline-flex; gap: .4rem; align-items: center; font-family: var(--f-display); font-weight: 600; font-size: .92rem; padding: .3em .9em; border-radius: 999px; background: var(--salvia); text-decoration: none; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); }
.article-body .lead { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; font-variation-settings: "wdth" 92; }
.task-dl { margin: 0; border-top: 2px solid var(--xiprer); }
.task-dl div { display: grid; grid-template-columns: 200px 1fr; gap: .5rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-strong); }
.task-dl dt { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.task-dl dd { margin: 0; }
.month-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--space-m); flex-wrap: wrap; }
.month-nav a { display: inline-flex; flex-direction: column; text-decoration: none; padding: 1rem 1.3rem; border: 1px solid var(--line-strong); border-radius: var(--radius); min-width: 200px; }
.month-nav a:hover { border-color: var(--xiprer); }
.month-nav small { font-family: var(--f-display); color: var(--ink-soft); font-size: .85rem; }
.month-nav strong { font-family: var(--f-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.month-nav a:last-child { text-align: right; margin-left: auto; }
@media (max-width: 860px) {
  .article-head, .article-body { grid-template-columns: 1fr; }
  .task-dl div { grid-template-columns: 1fr; }
}

/* Calendari complet (consells) */
.year { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.year a { display: block; background: var(--paper-2); padding: 1.1rem 1.1rem 1.3rem; text-decoration: none; height: 100%; }
.year a:hover { background: var(--salvia); }
.year__n { font-family: var(--f-display); font-size: .85rem; color: var(--ink-soft); }
.year__name { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; font-variation-settings: "wdth" 80; }
.year__ex { display: block; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; margin-top: .3rem; }
.year a.is-now { background: var(--xiprer); color: var(--paper); }
.year a.is-now .year__n, .year a.is-now .year__ex { color: rgba(242, 244, 236, .8); }
@media (max-width: 960px) { .year { grid-template-columns: 1fr 1fr; } }

/* Contacte */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: inherit; padding: .8rem .95rem; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--paper-2); width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--xiprer); box-shadow: 0 0 0 3px rgba(159, 198, 18, .45); }
.field [aria-invalid="true"] { border-color: var(--bloom); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--xiprer); }
.consent { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 10px; padding: .2rem 1rem; background: var(--paper-2); }
.consent summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; padding: .6rem 0; color: var(--xiprer); }
.consent p { margin-bottom: .7em; }
.form__note { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-soft); margin: 0; }
.form__status { grid-column: 1 / -1; font-family: var(--f-display); font-weight: 600; margin: 0; min-height: 1.4em; }
.form__status.is-error { color: var(--bloom); }
.form__status.is-ok { color: var(--brot-deep); }
.form .btn { justify-self: start; }
.counters { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.counters li { border-top: 2px solid var(--xiprer); padding-top: .8rem; }
.counters strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); letter-spacing: -.025em; line-height: 1; font-variation-settings: "wdth" 78; }
.counters span { font-family: var(--f-display); color: var(--ink-soft); }
@media (max-width: 860px) { .contact, .form { grid-template-columns: 1fr; } .counters { grid-template-columns: 1fr; } }

/* Dissenya el teu ram */
.app-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--xiprer); color: var(--paper); aspect-ratio: 16 / 10; }
.app-frame canvas { width: 100%; height: 100%; display: block; background: var(--xiprer); }
.app-frame__placeholder { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; padding: clamp(1.5rem, 1rem + 3vw, 4rem); }
.app-frame__placeholder h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); }
.app-frame__placeholder p { opacity: .9; max-width: 44ch; }
.app-frame__placeholder > svg { width: 100%; max-width: 360px; justify-self: center; }
.app-frame__bar { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); width: min(60%, 360px); height: 6px; border-radius: 99px; background: rgba(242, 244, 236, .2); overflow: hidden; }
.app-frame__bar span { display: block; height: 100%; width: 0; background: var(--brot); transition: width .2s; }
.app-frame__status { position: absolute; left: 0; right: 0; bottom: 3rem; text-align: center; font-family: var(--f-display); }
.app-tools { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .8rem; }
@media (max-width: 760px) {
  .app-frame { aspect-ratio: 3 / 4; }
  .app-frame__placeholder { grid-template-columns: 1fr; text-align: left; align-content: center; }
  .app-frame__placeholder > svg { max-width: 160px; order: -1; justify-self: start; }
}

/* Legal */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; font-variation-settings: "wdth" 90; letter-spacing: -.01em; }
.legal h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.legal h4 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1em; display: grid; gap: .5rem; }
.legal a { word-break: break-word; }
.table-wrap { overflow-x: auto; margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: 10px; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--f-display); background: var(--salvia); }
.legal td:nth-child(2) { word-break: break-all; }

/* ---------- Peu ---------- */
.site-footer { background: var(--xiprer); color: var(--paper); padding-block: var(--space-l) 2rem; margin-top: var(--space-l); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brot); text-decoration: underline; }
.footer__brand { margin-bottom: var(--space-m); color: var(--paper); }
.footer__logo { display: block; width: min(100%, 820px); color: var(--paper); }
.footer__logo .logo { width: 100%; height: auto; display: block; overflow: visible; }
.footer__logo .lf-ast { color: var(--brot); }
.footer__logo:hover { color: var(--paper) !important; text-decoration: none !important; }
.footer__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 1rem + 9vw, 10rem); letter-spacing: -.035em; line-height: .85; font-variation-settings: "wdth" 80; margin: 0 0 var(--space-m); color: var(--paper); }
.footer__big span { color: var(--brot); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: var(--space-m); border-bottom: 1px solid rgba(242, 244, 236, .2); }
.site-footer h2 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 95; letter-spacing: 0; margin-bottom: .9rem; color: var(--brot); }
.site-footer ul { list-style: none; display: grid; gap: .45rem; font-size: .98rem; }
.site-footer .hours td { border-color: rgba(242, 244, 236, .15); }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border: 1.5px solid rgba(242, 244, 236, .35); border-radius: 50%; display: grid; place-items: center; }
.footer__social a:hover { border-color: var(--brot); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.4rem; font-size: .88rem; opacity: .85; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: left; }
.notfound h1 { font-size: var(--fs-mega); }

/* Moviment reduït */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Entrada de la portada: un sol moment orquestrat */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__claim, .hero .btn-row, .hero__facts { animation: rise .8s var(--ease) both; }
  .hero__claim { animation-delay: .08s; }
  .hero .btn-row { animation-delay: .14s; }
  .hero__facts { animation-delay: .2s; }
  .hero__media .tag { animation: tagIn .9s .45s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes tagIn { from { opacity: 0; transform: rotate(-14deg) translateY(-14px); } }
}

@media print {
  .topbar, .site-header, .site-footer, .ask, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Millores de navegació ---------- */

/* Transició suau entre pàgines (Chrome/Edge/Safari recents) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Capçalera amb ombra quan baixes */
.site-header { transition: box-shadow .25s; view-transition-name: capcalera; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 66, 58, .45); }

/* Mentre carreguen, les fotos no deixen forats blancs */
main img { background-color: var(--salvia); }

/* Barra d'accions ràpides (només mòbil) */
.quickbar { display: none; }
@media (max-width: 860px) {
  .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--xiprer); color: var(--paper);
    padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -12px rgba(0, 66, 58, .5);
  }
  .quickbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .2rem; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: .78rem; border-radius: 10px; }
  .quickbar a:active { background: rgba(255, 255, 255, .1); }
  .quickbar svg { width: 21px; height: 21px; color: var(--brot); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .site-footer { margin-bottom: 0; }
}

/* Consells → botiga */
.related { margin-top: var(--space-m); padding: clamp(1.2rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-l); background: var(--salvia); }
.related__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin-bottom: 1rem; font-variation-settings: "wdth" 88; }
.related__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.related__list a { display: grid; grid-template-columns: 56px 1fr; gap: .7rem; align-items: center; padding: .45rem; border-radius: 12px; background: var(--paper-2); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: .95rem; line-height: 1.15; border: 1px solid transparent; }
.related__list a:hover { border-color: var(--xiprer); }
.related__list img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

/* Horaris */
.hours th { text-align: left; font-weight: 500; padding: .4rem 1rem .4rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .4em; vertical-align: -.05em; background: var(--brot); -webkit-mask: url("../img/flor.svg") center / contain no-repeat; mask: url("../img/flor.svg") center / contain no-repeat; }
.site-footer .hours th { border-color: rgba(242, 244, 236, .15); }
.hours-season { font-family: var(--f-display); font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; opacity: .85; }
.hours-other { margin-top: .8rem; font-size: .92rem; }
.hours-other summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; }
.hours-other summary span { font-weight: 400; opacity: .8; }
.hours-other .hours { margin-top: .4rem; opacity: .9; }
.hours-special { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--paper-2); color: var(--ink); }
.hours-special__title { font-family: var(--f-display); font-weight: 700; margin: 0 0 .4rem; color: var(--xiprer); }
.hours-notes { list-style: none; display: grid; gap: .4rem; font-size: .95rem; }
.hours-notes li { display: flex; gap: .5rem; align-items: baseline; }
.hours-notes .footnote__mark { width: .9em; transform: translateY(.08em); }

/* Franja d'avisos d'horari (pròxims canvis) */
.notice { background: var(--brot); color: var(--ink); font-family: var(--f-display); font-size: .92rem; }
.notice ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 2rem; padding: .55rem 0; justify-content: center; }
.notice li { display: inline-flex; align-items: baseline; gap: .45rem; font-weight: 600; }
.notice a { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.notice a:hover { text-decoration-color: var(--xiprer); }
.notice__mark { width: 1em; flex: none; line-height: 0; color: var(--xiprer); transform: translateY(.12em); }
.notice__mark svg { width: 100%; height: auto; }
@media (max-width: 600px) {
  .notice ul { display: grid; gap: .35rem; }
  .notice li { display: block; position: relative; padding-left: 1.45em; line-height: 1.35; }
  .notice__mark { position: absolute; left: 0; top: .22em; transform: none; }
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Preguntes freqüents */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-wrap h2 { margin: 0; }
.faq { border-top: 2px solid var(--xiprer); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.05rem 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--xiprer); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.1rem; height: 1.1rem; background: var(--brot); -webkit-mask: url("../img/flor.svg") center / contain no-repeat; mask: url("../img/flor.svg") center / contain no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(60deg); }
.faq details p { margin: 0 0 1.2rem; max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.btn--on-dark { color: inherit; border-color: currentColor; }
.btn--on-dark:hover { background: var(--paper); color: var(--xiprer); border-color: var(--paper); }
@media (max-width: 860px) { .quickbar { grid-template-columns: repeat(4, 1fr); } }

/* Instagram */
.ig .section-head { margin-bottom: var(--space-s); }
.ig .section-head p { margin-top: .4rem; }
.ig .btn svg { width: 1.1em; height: 1.1em; }
.ig-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.ig-grid a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--salvia); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ig-grid a:hover img { transform: scale(1.05); }
.ig-video { position: absolute; top: .5rem; right: .5rem; font-family: var(--f-display); font-size: .75rem; font-weight: 700; padding: .15em .55em; border-radius: 999px; background: rgba(0, 66, 58, .8); color: var(--paper); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } .ig-grid li:nth-child(n+7) { display: none; } }

/* ═════════════════════════════════════════════════════════════
   NADAL — «Estació Florandum · Pròxima parada: Nadal»
   html.is-nadal s'activa sol entre les dates de content/nadal.mjs
   ═════════════════════════════════════════════════════════════ */
:root {
  --pasqua: #B4232C;       /* vermell flor de Pasqua (xemeneia del tren) */
  --pasqua-deep: #8C1A22;
  --or: #D3A84C;           /* or del rètol i de la locomotora */
  --or-deep: #7E5E17;
  --nit: #0B3A33;          /* verd locomotora */
  --nit-2: #072A25;
  --bitllet: #F4ECD6;      /* paper de bitllet */
  --fusta: #EDE1C6;        /* rètol de fusta de l'estació */
}
html:not(.is-nadal) .nadal-only { display: none !important; }
html.is-nadal .nadal-off { display: none !important; }
.is-nadal, [data-page="nadal"] { --bloom: var(--pasqua); --bloom-deep: var(--pasqua-deep); }
.is-nadal { --brot: var(--or); --brot-deep: var(--or-deep); }
.is-nadal .ast-mark, [data-page="nadal"] .ast-mark { color: var(--pasqua); }
.is-nadal .xhero .ast-mark, .is-nadal .xband .ast-mark, [data-page="nadal"] .xhero .ast-mark { color: var(--or); }
.is-nadal .brand .lf-ast { color: var(--pasqua); }

/* Franja de dalt: vermella, amb el missatge de Nadal (+ avisos d'horari si n'hi ha) */
html:not(.is-nadal) .notice[data-empty] { display: none; }
.notice ul:empty { display: none; }
.notice__nadal { display: flex; justify-content: center; align-items: baseline; gap: .45rem; margin: 0; padding: .55rem 0; font-weight: 600; text-align: center; }
.is-nadal .notice { background: var(--pasqua); color: #fff; }
.is-nadal .notice a { color: #fff; }
.is-nadal .notice a:hover { text-decoration-color: var(--or); }
.is-nadal .notice__mark { color: var(--or); }
.is-nadal .notice ul { padding-top: 0; }
.is-nadal .notice[data-empty] ul { display: none; }
@media (max-width: 600px) { .notice__nadal { display: block; position: relative; padding-left: 1.45em; text-align: left; line-height: 1.35; } .notice__nadal .notice__mark { position: absolute; left: 0; top: .78em; } }

/* Menú: «Nadal» és un bitllet */
.nav__nadal { gap: .4em; background: var(--pasqua); color: #fff; border-radius: 5px; padding: .5em .95em; margin-right: .25rem;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 96%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, transparent 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 96%, #000) right / 51% 100% no-repeat; }
.nav__nadal:hover, .nav__nadal[aria-current="page"] { background: var(--pasqua-deep); box-shadow: none; border-radius: 5px; }
.nav__link.nav__nadal svg { width: .95em; height: auto; color: var(--or); transition: none; }
.drawer__nadal { display: flex !important; align-items: center; gap: .4rem; color: var(--pasqua); }
.drawer__nadal svg { width: .7em; height: auto; color: var(--or); }

/* Botó daurat */
.btn--gold { background: var(--or); border-color: var(--or); color: var(--nit-2); }
.btn--gold:hover { background: #E4BE66; border-color: #E4BE66; }

/* ---------- Portada de Nadal ---------- */
.xhero { position: relative; overflow: hidden; isolation: isolate; background: var(--nit); color: #F5F1E6; padding-block: clamp(1.8rem, 1.2rem + 2vw, 2.8rem) clamp(6.4rem, 5rem + 3vw, 7.2rem); }
.xhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 1; /* la via */
  background:
    linear-gradient(var(--or), var(--or)) 0 4px / 100% 2px no-repeat,
    linear-gradient(var(--or), var(--or)) 0 12px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(211, 168, 76, .55) 0 5px, transparent 5px 22px) 0 1px / 100% 16px no-repeat; }
.xhero h1, .xhero h2 { color: inherit; }
.xhero .crumbs, .xhero .crumbs a { color: rgba(245, 241, 230, .78); }
.xhero .crumbs li + li::before { color: rgba(245, 241, 230, .4); }
.xhero :focus-visible { outline-color: var(--or); }
.xhero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.xhero__title { font-size: clamp(3rem, 1.2rem + 5vw, 5.7rem); line-height: .9; letter-spacing: -.03em; font-variation-settings: "wdth" 78; font-weight: 800; margin: 0 0 .32em; }
.xhero__line { display: block; }
.xhero__title .ast-mark { width: .26em; vertical-align: .6em; }
.xhero__text { font-family: var(--f-text); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; max-width: 40ch; margin-bottom: 1rem; color: rgba(245, 241, 230, .92); }
.xhero .btn-row { margin-top: 1.6rem; }
.xhero__open { margin: 1.4rem 0 0; font-family: var(--f-display); font-size: .98rem; }
.xhero__open a { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: rgba(245, 241, 230, .9); }
.xhero__open a:hover span { text-decoration: underline; text-decoration-color: var(--or); }
.xhero__open svg { width: 16px; height: 16px; color: var(--or); }
.xhero__media { position: relative; padding-bottom: 2.5rem; }

/* Neu d'asteriscs Florandum */
.xhero__snow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.xhero__snow span { position: absolute; left: var(--x); top: var(--y); width: var(--s); color: #fff; opacity: var(--o); line-height: 0; }
.xhero__snow svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .xhero__snow span { top: -40px; animation: florneu var(--t) linear var(--d) infinite; }
  @keyframes florneu { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(3vw, 115vh, 0) rotate(300deg); } }
}

/* Rètol de l'estació (penja de dues cordes i es gronxa en arribar) */
.sign { position: relative; display: inline-block; margin: 2.4rem 0 1.3rem; padding: .7rem 1.5rem .75rem; background: var(--fusta); color: var(--nit); border-radius: 7px; text-align: center;
  box-shadow: inset 0 0 0 3px rgba(11, 58, 51, .16), inset 0 -6px 0 rgba(126, 94, 23, .12), 0 16px 26px -12px rgba(0, 0, 0, .55); transform-origin: 50% -2.4rem; }
.sign::before, .sign::after { content: ""; position: absolute; bottom: 100%; width: 2px; height: 2.4rem; background: linear-gradient(rgba(245, 241, 230, .15), rgba(245, 241, 230, .7)); }
.sign::before { left: 16%; } .sign::after { right: 16%; }
.sign__name { margin: 0; font-family: var(--f-text); font-weight: 700; font-size: clamp(1.1rem, .9rem + .8vw, 1.55rem); letter-spacing: .09em; text-transform: uppercase; line-height: 1.1; }
.sign__sub { margin: .2rem 0 0; font-family: var(--f-text); font-style: italic; font-size: .95rem; color: var(--pasqua-deep); }
@media (prefers-reduced-motion: no-preference) {
  .sign { animation: rotol 2.8s var(--ease) .2s both; }
  @keyframes rotol { 0% { transform: rotate(-8deg); } 28% { transform: rotate(5deg); } 50% { transform: rotate(-2.5deg); } 72% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
}

/* Finestra del tren (vídeo) */
.twindow { position: relative; margin: 0 0 0 auto; width: min(100%, 360px); }
.twindow__frame { position: relative; aspect-ratio: 9 / 14; overflow: hidden; background: var(--nit-2);
  border-radius: 48% 48% 24px 24px / 26% 26% 24px 24px;
  box-shadow: 0 0 0 10px #134A41, 0 0 0 12px var(--or), 0 34px 60px -18px rgba(0, 0, 0, .65); }
.twindow__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.twindow__toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(7, 42, 37, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.twindow__toggle svg { width: 20px; height: 20px; }
.twindow__toggle .i-pause, .twindow.is-playing .twindow__toggle .i-play { display: none; }
.twindow.is-playing .twindow__toggle .i-pause { display: block; }
.twindow__toggle:hover { background: var(--pasqua); border-color: var(--pasqua); }

/* Bitllet d'anada (compte enrere) */
.ticket { --cut: 92px; position: absolute; left: -16%; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr var(--cut); width: min(340px, 92%); background: var(--bitllet); color: var(--nit); border-radius: 10px; transform: rotate(-5deg); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
  -webkit-mask: radial-gradient(circle 11px at calc(100% - var(--cut)) 0, transparent 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - var(--cut)) 100%, transparent 96%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at calc(100% - var(--cut)) 0, transparent 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - var(--cut)) 100%, transparent 96%, #000) bottom / 100% 51% no-repeat; }
.ticket__main { padding: .9rem 1rem .95rem 1.15rem; }
.ticket__kind { margin: 0 0 .5rem; font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: var(--pasqua); }
.ticket__route { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.ticket__route dt { font-family: var(--f-text); font-style: italic; font-size: .8rem; color: #4F625C; }
.ticket__route dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.05; font-variation-settings: "wdth" 85; }
.ticket__left { margin: .65rem 0 0; padding-top: .55rem; border-top: 1px solid rgba(11, 58, 51, .18); font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.ticket__stub { display: grid; place-items: center; align-content: center; gap: .4rem; border-left: 2px dashed rgba(11, 58, 51, .32); font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; text-align: center; padding: .5rem; }
.ticket__stub svg { width: 22px; height: auto; color: var(--pasqua); }
@media (max-width: 860px) {
  .xhero__grid { grid-template-columns: 1fr; }
  .sign { margin-top: 1.9rem; padding: .55rem 1.1rem .6rem; transform-origin: 50% -1.9rem; }
  .sign::before, .sign::after { height: 1.9rem; }
  .xhero__snow span:nth-child(n+9) { display: none; }
  .xhero__media { padding-bottom: 3.2rem; }
  .twindow { margin: .5rem auto 0; width: min(78%, 320px); }
  .ticket { left: 50%; bottom: 0; transform: translateX(-50%) rotate(-3deg); width: min(330px, 94%); }
}

/* ---------- La línia: cinc parades ---------- */
.route { --gap: 1.2rem; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.route__stop { position: relative; padding-top: 2.6rem; }
.route__stop::before { content: ""; position: absolute; top: 11px; left: 0; right: calc(var(--gap) * -1); height: 16px; /* via: dos carrils i travesses */
  background:
    linear-gradient(var(--xiprer), var(--xiprer)) 0 4px / 100% 2px no-repeat,
    linear-gradient(var(--xiprer), var(--xiprer)) 0 11px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(0, 89, 79, .38) 0 5px, transparent 5px 20px) 0 1px / 100% 15px no-repeat; }
.route__stop:last-child::before { right: 0; }
.route__dot { position: absolute; top: 0; left: 0; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 3px solid var(--xiprer); display: grid; place-items: center; }
.route__dot svg { width: 19px; height: auto; color: var(--pasqua); }
.route__link { display: grid; gap: .3rem; text-decoration: none; }
.route__num { font-family: var(--f-text); font-style: italic; font-size: .95rem; color: var(--ink-soft); }
.route__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); letter-spacing: -.025em; line-height: 1; font-variation-settings: "wdth" 82; color: var(--xiprer); transition: color .2s; }
.route__img { order: 3; margin-top: .5rem; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.route__tag { order: 4; font-size: .98rem; color: var(--ink-soft); line-height: 1.4; }
.route__link:hover .route__name { color: var(--pasqua); }
.route__link:hover .route__dot { background: var(--pasqua); border-color: var(--pasqua); }
.route__link:hover .route__dot svg { color: #fff; }
@media (max-width: 960px) {
  .route { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 64%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .route__stop { scroll-snap-align: start; }
}

/* ---------- Pàgina de Nadal: les parades ---------- */
.xstyle { padding-block: var(--space-l); border-top: 1px solid var(--line); }
.xstyle__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.8rem, 5vw, 5rem); align-items: start; }
.xstyle--alt .xstyle__text { order: 2; }
.xstyle__text { position: sticky; top: calc(var(--header-h) + 6rem); }
.xstyle__stop { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; font-family: var(--f-text); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.xstyle__stop .route__dot { position: static; }
.xstyle__name { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); line-height: .9; letter-spacing: -.03em; font-variation-settings: "wdth" 78; font-weight: 800; margin-bottom: .2em; }
.xstyle__tagline { font-family: var(--f-text); font-style: italic; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); margin-bottom: 1.2rem; color: var(--pasqua); }
.xstyle__find { font-size: 1.2rem; margin: 1.6rem 0 0; font-variation-settings: "wdth" 92; }
.xstyle .tips li::before { background: var(--pasqua); }
.xmosaic { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.xmosaic li:first-child { grid-column: 1 / -1; }
.xmosaic a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--salvia); }
.xmosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.xmosaic li:first-child img { aspect-ratio: 4 / 4.2; }
.xmosaic a:hover img { transform: scale(1.03); }
.xmosaic--7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xmosaic--6 li:last-child, .xmosaic--4 li:last-child { grid-column: 1 / -1; }
.xmosaic--6 li:last-child img, .xmosaic--4 li:last-child img { aspect-ratio: 16 / 10; }
.xmosaic--2 li:first-child { grid-column: auto; }
.xmosaic--2 img, .xmosaic--2 li:first-child img { aspect-ratio: 9 / 15; }
@media (max-width: 860px) {
  .xstyle__grid { grid-template-columns: 1fr; }
  .xstyle--alt .xstyle__text { order: 0; }
  .xstyle__text { position: static; }
  .xmosaic--7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* L'Estació */
.xstation__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.8rem, 5vw, 5rem); align-items: center; }
.xstation__photos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.xstation__photos a { display: block; border-radius: var(--radius); overflow: hidden; }
.xstation__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s var(--ease); }
.xstation__photos li:nth-child(2) { transform: translateY(-2rem); }
.xstation__photos a:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .xstation__grid { grid-template-columns: 1fr; } .xstation__photos li:nth-child(2) { transform: none; } }

/* Panell d'horaris de festes (andana) + encàrrecs */
.xboard-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.25rem; }
.board { background: var(--nit-2); color: #F5F1E6; border-radius: var(--radius-l); padding: clamp(1.6rem, 1rem + 2.4vw, 3rem); box-shadow: inset 0 0 0 1px rgba(211, 168, 76, .35), inset 0 0 0 8px var(--nit-2), inset 0 0 0 9px rgba(211, 168, 76, .2); }
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.board__title { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); color: var(--or) !important; }
.board__flor { width: 34px; color: var(--pasqua); line-height: 0; }
.board__flor svg { width: 100%; height: auto; }
.board__intro { color: rgba(245, 241, 230, .82); max-width: 52ch; }
.board__now { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0 1rem; padding: .7rem 1rem; border-radius: 10px; background: rgba(211, 168, 76, .1); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--or); font-variant-numeric: tabular-nums; }
.board__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(211, 168, 76, .2); }
.board__empty { color: rgba(245, 241, 230, .82); font-style: italic; }
.board__table { width: 100%; border-collapse: collapse; font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.board__table th, .board__table td { text-align: left; padding: .7rem 0; border-bottom: 1px dashed rgba(211, 168, 76, .3); vertical-align: top; }
.board__table thead th { font-size: .8rem; font-weight: 600; color: rgba(245, 241, 230, .6); padding-top: 0; }
.board__table tbody th { font-weight: 700; font-size: 1.02rem; }
.board__table tbody th span { display: block; font-family: var(--f-text); font-style: italic; font-weight: 400; font-size: .9rem; color: rgba(245, 241, 230, .7); }
.board__table td { color: var(--or); font-weight: 700; font-size: 1.05rem; text-align: right; }
.board__link { display: inline-block; margin-top: 1.2rem; color: #F5F1E6; }
.xorder { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; background: var(--pasqua); color: #fff; border-radius: var(--radius-l); padding: clamp(1.6rem, 1rem + 2.4vw, 3rem); }
.xorder h2 { color: inherit; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); margin-bottom: .3em; }
.xorder p { max-width: 42ch; }
.xorder__art { position: absolute; right: 1rem; top: .6rem; width: 30%; max-width: 150px; opacity: .95; pointer-events: none; }
.xorder > :not(.xorder__art) { position: relative; z-index: 1; }
.xorder h2 { max-width: 12ch; }
.xorder :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .xboard-row { grid-template-columns: 1fr; } }

/* Consells de desembre */
.xtips { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; padding: .8rem; border-radius: var(--radius-l); background: var(--salvia); text-decoration: none; border: 1px solid transparent; }
.xtips:hover { border-color: var(--xiprer); }
.xtips__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.xtips__title { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.02em; line-height: 1.05; color: var(--xiprer); margin-bottom: .35rem; }
.xtips__text { display: block; color: var(--ink-soft); margin-bottom: .6rem; max-width: 60ch; }
@media (max-width: 600px) { .xtips { grid-template-columns: 1fr; } }

/* Promo de portada i Idees */
.promo--nadal::after { background: linear-gradient(180deg, rgba(7, 42, 37, 0) 8%, rgba(7, 42, 37, .78) 52%, rgba(7, 42, 37, .96) 100%); }

/* Franja «Puja al tren» abans del peu (totes les pàgines) */
.xband { margin-top: var(--space-l); background: var(--nit); color: #F5F1E6; position: relative; overflow: hidden; }
.xband::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background:
    linear-gradient(var(--or), var(--or)) 0 4px / 100% 2px no-repeat,
    linear-gradient(var(--or), var(--or)) 0 12px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(211, 168, 76, .55) 0 5px, transparent 5px 22px) 0 1px / 100% 16px no-repeat; }
.xband__in { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 1.4rem + 2vw, 3.2rem) clamp(5.6rem, 5rem + 1vw, 6.2rem); }
.xband__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 48% 48% 18px 18px / 30% 30% 18px 18px; box-shadow: 0 0 0 6px #134A41, 0 0 0 8px var(--or); }
.xband__title { color: inherit; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-bottom: .3em; }
.xband__copy p { max-width: 46ch; color: rgba(245, 241, 230, .88); }
.xband :focus-visible { outline-color: var(--or); }
.ticket--band { position: relative; left: auto; bottom: auto; width: 320px; transform: rotate(4deg); }
.is-nadal .xband ~ .site-footer { margin-top: 0; }
@media (max-width: 1080px) { .xband__in { grid-template-columns: 200px minmax(0, 1fr); } .ticket--band { display: none; } }
@media (max-width: 640px) { .xband__in { grid-template-columns: 1fr; } .xband__img { width: 62%; justify-self: center; } }

/* Peu: felicitació */
.footer__greeting { display: flex; align-items: baseline; gap: .55rem; margin: 0 0 1.2rem; font-family: var(--f-text); font-style: italic; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); color: #E9C97A; }
.footer__greeting .footnote__mark { color: var(--pasqua); width: .9em; }
.is-nadal .footer__logo .lf-ast { color: var(--or); }

/* ─── Nadal: detalls ─────────────────────────────────────────── */
/* Garlanda de llums sota la capçalera (totes les pàgines) */
.is-nadal .site-header::before, .is-nadal .site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; background-repeat: repeat-x; background-size: 132px 22px; background-position: 50% 0; }
.is-nadal .site-header::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='22' viewBox='0 0 132 22'%3E%3Cpath d='M0 2Q33 15 66 2T132 2' fill='none' stroke='%238A6A22' stroke-width='1.2'/%3E%3Crect x='15.5' y='6.9' width='2' height='2.4' fill='%238A6A22'/%3E%3Cellipse cx='16.5' cy='12.3' rx='2.7' ry='3.5' fill='%23B4232C'/%3E%3Crect x='32' y='8.5' width='2' height='2.4' fill='%238A6A22'/%3E%3Cellipse cx='33' cy='13.9' rx='2.7' ry='3.5' fill='%23D3A84C'/%3E%3Crect x='48.5' y='6.9' width='2' height='2.4' fill='%238A6A22'/%3E%3Cellipse cx='49.5' cy='12.3' rx='2.7' ry='3.5' fill='%232E8A62'/%3E%3Crect x='81.5' y='6.9' width='2' height='2.4' fill='%238A6A22'/%3E%3Cellipse cx='82.5' cy='12.3' rx='2.7' ry='3.5' fill='%23D3A84C'/%3E%3Crect x='98' y='8.5' width='2' height='2.4' fill='%238A6A22'/%3E%3Cellipse cx='99' cy='13.9' rx='2.7' ry='3.5' fill='%23B4232C'/%3E%3Crect x='114.5' y='6.9' width='2' height='2.4' fill='%238A6A22'/%3E%3Cellipse cx='115.5' cy='12.3' rx='2.7' ry='3.5' fill='%232E8A62'/%3E%3C/svg%3E"); }
.is-nadal .site-header::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='22' viewBox='0 0 132 22'%3E%3Ccircle cx='16.5' cy='12.3' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='15.8' cy='11.3' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3Ccircle cx='49.5' cy='12.3' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='48.8' cy='11.3' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3Ccircle cx='99' cy='13.9' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='98.3' cy='12.9' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3C/svg%3E"); z-index: 1; opacity: .8; }
.is-nadal .mega { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .is-nadal .site-header::before { animation: llums 2.6s steps(1) infinite; }
  @keyframes llums { 0% { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='22' viewBox='0 0 132 22'%3E%3Ccircle cx='16.5' cy='12.3' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='15.8' cy='11.3' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3Ccircle cx='49.5' cy='12.3' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='48.8' cy='11.3' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3Ccircle cx='99' cy='13.9' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='98.3' cy='12.9' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3C/svg%3E"); } 50% { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='22' viewBox='0 0 132 22'%3E%3Ccircle cx='33' cy='13.9' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='32.3' cy='12.9' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3Ccircle cx='82.5' cy='12.3' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='81.8' cy='11.3' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3Ccircle cx='115.5' cy='12.3' r='6' fill='%23F5D27A' opacity='.5'/%3E%3Cellipse cx='114.8' cy='11.3' rx='1' ry='1.4' fill='%23fff' opacity='.9'/%3E%3C/svg%3E"); } }
}

/* El tren */
.train { position: absolute; z-index: 3; bottom: 13px; left: max(var(--gutter), calc(50% - 22rem)); width: clamp(150px, 9vw + 70px, 205px); padding: 0; margin: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.train__svg { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.train:focus-visible { outline: 3px solid var(--or); outline-offset: 6px; border-radius: 8px; }
.train--band { left: auto; right: max(var(--gutter), calc(50% - 39rem)); width: 150px; }
.train__wheel, .train__puff { transform-box: fill-box; transform-origin: center; }
.train__puff { opacity: .55; }
@media (max-width: 860px) { .train { left: var(--gutter); } .train--band { left: auto; right: var(--gutter); width: 132px; } }
@media (prefers-reduced-motion: no-preference) {
  .train--wait { visibility: hidden; }
  .train--go { animation: arribada 4.2s cubic-bezier(.16, .7, .22, 1) .3s both; }
  .train--go .train__wheel { animation: rodes 4.2s cubic-bezier(.16, .7, .22, 1) .3s both; }
  @keyframes arribada { from { transform: translateX(calc(-50vw - 110%)); } to { transform: none; } }
  @keyframes rodes { from { transform: rotate(-3240deg); } to { transform: none; } }
  .train__puff { opacity: 0; animation: fum 3.9s ease-out infinite; }
  .train__puff--2 { animation-delay: .55s; } .train__puff--3 { animation-delay: 1.1s; }
  @keyframes fum { 0% { opacity: 0; transform: translate(4px, 6px) scale(.6); } 28% { opacity: .8; } 100% { opacity: 0; transform: translate(-9px, -12px) scale(1.15) rotate(70deg); } }
}

/* Bitllet: via */
.ticket__stub small { font-family: var(--f-text); font-style: italic; font-weight: 400; font-size: .8rem; color: #4F625C; line-height: 1; }

/* Línia de parades de la pàgina de Nadal (s'enganxa sota la capçalera) */
.linebar { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.is-nadal .linebar { padding-top: 12px; }
.linebar__in { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding-block: .85rem .7rem; }
.linebar__title { flex: none; margin: 0; font-family: var(--f-text); font-style: italic; font-size: 1rem; color: var(--pasqua); }
.linebar__stops { flex: 1; min-width: 0; list-style: none; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; }
.linebar__stops::-webkit-scrollbar { display: none; }
.linebar__stops li { flex: 1 0 auto; position: relative; }
.linebar__stops li::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line-strong); }
.linebar__stops li:last-child { flex: 0 0 auto; }
.linebar__stops li:last-child::before { right: auto; width: 14px; }
.linebar__stops a { position: relative; display: block; padding: 20px 1.4rem 2px 0; font-family: var(--f-display); font-weight: 600; font-size: .92rem; line-height: 1.2; text-decoration: none; white-space: nowrap; color: var(--ink-soft); }
.linebar__dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--xiprer); transition: background .2s, border-color .2s, box-shadow .2s; }
.linebar__num { font-variant-numeric: tabular-nums; margin-right: .35em; opacity: .6; }
.linebar__stops a:hover { color: var(--xiprer); }
.linebar__stops a.is-done .linebar__dot { background: var(--xiprer); }
.linebar__stops a.is-current { color: var(--pasqua); font-weight: 800; }
.linebar__stops a.is-current .linebar__dot { background: var(--pasqua); border-color: var(--pasqua); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pasqua) 22%, transparent); }
html:has(.linebar) { scroll-padding-top: calc(var(--header-h) + 5.8rem); }
@media (max-width: 860px) { .linebar__title { display: none; } .linebar__stops { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } .xstyle__text { position: static; } }

/* Parades de la portada: la foto s'aixeca una mica en passar-hi */
.route__img { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.route__link:hover .route__img { transform: translateY(-5px); box-shadow: 0 18px 28px -18px rgba(7, 42, 37, .55); }

/* Peu de foto a les fotos ampliades */
.lightbox figure { margin: 0; }
.lightbox__cap { margin: 0; padding: .75rem 1rem 0; text-align: center; font-family: var(--f-text); font-style: italic; font-size: 1rem; color: #F2F4EC; }

/* Horaris del peu: el dia a dalt i l'hora a sota (no es talla en columnes estretes) */
.site-footer .hours tr { display: block; padding: .4rem 0; border-bottom: 1px solid rgba(242, 244, 236, .15); }
.site-footer .hours th, .site-footer .hours td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; }
.site-footer .hours td { opacity: .92; }

/* Mòbils molt estrets (320 px) */
@media (max-width: 350px) { .site-header > .wrap { gap: .6rem; } .brand__logo { height: 29px; } .menu-toggle { padding: .55rem .8rem; } }

/* Panell de festes: l'horari de la setmana i, a sota, els dies especials */
.board__table tr.is-today th::after { content: ""; display: inline-block; width: .75em; height: .75em; margin-left: .45em; vertical-align: -.03em; background: var(--or); -webkit-mask: url("../img/flor.svg") center / contain no-repeat; mask: url("../img/flor.svg") center / contain no-repeat; }
.board__table tr.is-special th { color: #F2C0C3; }
.board__table tr.is-special:first-of-type th, .board__table tr.is-special:first-of-type td, .board__table tr:not(.is-special) + tr.is-special th, .board__table tr:not(.is-special) + tr.is-special td { border-top: 1px solid rgba(211, 168, 76, .55); }
.board__empty { margin-top: 1rem; font-size: .95rem; }
@media (max-width: 480px) { .board__table td { font-size: .95rem; } .board__table tbody th { font-size: .95rem; padding-right: .6rem; } }

/* ─── Nadal: màgia ───────────────────────────────────────────── */
/* Tren: xiulet en clicar-lo */
.train__big { opacity: 0; transform-box: fill-box; transform-origin: center; }
.train__bubble { position: absolute; right: 2%; bottom: 112%; padding: .35em .7em; border-radius: 999px; background: #F5F1E6; color: var(--pasqua-deep); font-family: var(--f-display); font-weight: 800; font-size: .95rem; white-space: nowrap; opacity: 0; transform: translateY(6px) scale(.8); transition: opacity .2s, transform .3s var(--ease); pointer-events: none; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.train__bubble::after { content: ""; position: absolute; right: 22%; top: 100%; border: 6px solid transparent; border-top-color: #F5F1E6; }
.train.is-toot .train__bubble { opacity: 1; transform: none; }
.train.is-toot .train__big { animation: xiulet 1.3s ease-out both; }
.train.is-toot .train__big--2 { animation-delay: .12s; } .train.is-toot .train__big--3 { animation-delay: .24s; }
@keyframes xiulet { 0% { opacity: 0; transform: translate(6px, 10px) scale(.4); } 25% { opacity: .95; } 100% { opacity: 0; transform: translate(-14px, -22px) scale(1.5) rotate(120deg); } }
@media (hover: hover) { .train:hover .train__svg { transform: translateY(-2px); transition: transform .2s; } }

/* Bitllet: validar (la flor de Florandum fa de forat i surt el segell) */
.ticket__punch { position: absolute; top: 0; right: 0; bottom: 0; width: var(--cut); padding: 0; border: 0; background: none; cursor: pointer; border-radius: 0 10px 10px 0; }
.ticket__punch:focus-visible { outline: 3px solid var(--or); outline-offset: -5px; }
.ticket__stub { position: relative; }
.ticket__hole { position: absolute; left: 50%; top: 76%; width: 18px; transform: translate(-50%, -50%) scale(0); color: var(--nit); line-height: 0; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.ticket__stub .ticket__hole svg { width: 100%; height: auto; color: var(--nit); }
.ticket.is-valid .ticket__hole { transform: translate(-50%, -50%) scale(1); }
.ticket.is-valid .ticket__stub small { opacity: 0; }
.ticket__stamp { position: absolute; left: 62%; top: 77%; display: grid; place-items: center; padding: .25rem .6rem .3rem; border: 2.5px solid currentColor; border-radius: 8px; color: var(--pasqua); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; transform: translate(-50%, -50%) rotate(-14deg) scale(1.8); opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.ticket__stamp b { font-size: .9rem; font-weight: 800; }
.ticket__stamp small { font-size: .62rem; font-weight: 700; letter-spacing: .04em; }
.ticket.is-valid .ticket__stamp { opacity: .82; transform: translate(-50%, -50%) rotate(-14deg) scale(1); transition: transform .28s cubic-bezier(.2, 1.4, .4, 1), opacity .12s; }

/* Rètol: es gronxa si el toques */
.sign { cursor: default; }
.sign.is-swing { animation: rotol2 2.2s var(--ease) both; }
@keyframes rotol2 { 0% { transform: rotate(0); } 18% { transform: rotate(4.5deg); } 40% { transform: rotate(-3deg); } 62% { transform: rotate(1.6deg); } 82% { transform: rotate(-.6deg); } 100% { transform: rotate(0); } }

/* Finestra del tren: vidre glaçat a les cantonades */
.twindow__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 38% 22% at 0 100%, rgba(255, 255, 255, .5), transparent 70%), radial-gradient(ellipse 34% 18% at 100% 100%, rgba(255, 255, 255, .42), transparent 70%), radial-gradient(ellipse 55% 16% at 50% 0, rgba(255, 255, 255, .28), transparent 75%);
  mix-blend-mode: screen; }
.twindow__toggle { z-index: 1; }

/* Botó daurat: una espurna que hi passa de tant en tant */
.btn--gold { position: relative; overflow: hidden; isolation: isolate; }
.btn--gold::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%) skewX(-18deg); }
@media (prefers-reduced-motion: no-preference) { .btn--gold::after { animation: espurna 6.5s ease-in-out 2s infinite; } }
@keyframes espurna { 0%, 78% { transform: translateX(-100%) skewX(-18deg); } 100% { transform: translateX(560%) skewX(-18deg); } }

/* Neu: es mou una mica amb el ratolí */
.xhero__snow { transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .8s var(--ease); }

/* Espurnes (en trobar l'elf, en fer xiular el tren, en validar el bitllet) */
.spark { position: absolute; z-index: 60; width: var(--s, 12px); height: auto; line-height: 0; pointer-events: none; color: var(--c); animation: spark .9s cubic-bezier(.2, .7, .3, 1) both; }
.spark svg { width: 100%; height: auto; }
@keyframes spark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); } }

/* ── L'Elf Trapella ── */
.elf { --w: 66px; position: absolute; z-index: 30; width: var(--w); height: calc(var(--w) * .915); padding: 0; margin: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.elf[data-side="left"] { transform: rotate(-90deg); }
.elf[data-side="right"] { transform: rotate(90deg); }
.elf[hidden] { display: none; }
.elf__clip { position: absolute; inset: 0; overflow: hidden; }
.elf__body { position: absolute; inset: 0; transform: translateY(102%); transition: transform .55s cubic-bezier(.2, 1.3, .4, 1); }
.elf__svg { display: block; width: 100%; height: 100%; }
.elf.is-out .elf__body { transform: translateY(0); }
.elf.is-found .elf__body { animation: elfsalt .5s ease-out; }
@keyframes elfsalt { 0% { transform: translateY(0); } 40% { transform: translateY(-14%) rotate(-6deg); } 100% { transform: translateY(0); } }
.elf.is-gone .elf__body { transform: translateY(102%); transition-duration: .3s; transition-timing-function: ease-in; }
.elf__lids { animation: parpelleja 5s infinite; }
.elf__pupils { transition: transform .15s; }
@keyframes parpelleja { 0%, 94%, 100% { opacity: 0; } 96%, 98% { opacity: 1; } }
.elf__bubble { position: absolute; left: 50%; bottom: 100%; margin-bottom: 8px; padding: .45em .8em; border-radius: 14px; background: #fff; color: var(--pasqua-deep); font-family: var(--f-display); font-weight: 800; font-size: .92rem; line-height: 1.2; white-space: nowrap; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); transform: translateX(-50%) scale(.7); opacity: 0; transition: opacity .15s, transform .3s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.elf__bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
.elf.is-found .elf__bubble { opacity: 1; transform: translateX(-50%) scale(1); }
.elf[data-side="left"] .elf__bubble { transform: translateX(-50%) rotate(90deg) scale(.7); transform-origin: 50% 100%; }
.elf[data-side="left"].is-found .elf__bubble { transform: translateX(-50%) rotate(90deg) scale(1); }
.elf[data-side="right"] .elf__bubble { transform: translateX(-50%) rotate(-90deg) scale(.7); transform-origin: 50% 100%; }
.elf[data-side="right"].is-found .elf__bubble { transform: translateX(-50%) rotate(-90deg) scale(1); }
.elf:focus-visible { outline: 3px solid var(--pasqua); outline-offset: 3px; border-radius: 10px; }
@media (max-width: 600px) { .elf { --w: 56px; } }
@media (prefers-reduced-motion: reduce) {
  .elf__body { transform: none; opacity: 0; transition: opacity .3s; }
  .elf.is-out .elf__body { opacity: 1; }
  .elf.is-gone .elf__body { transform: none; opacity: 0; }
  .elf.is-found .elf__body { animation: none; }
  .elf__lids { animation: none; }
}
@media print { .elf, .elf-toast { display: none !important; } }
.elf-toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 120; display: flex; align-items: center; gap: .8rem; width: max-content; max-width: min(92vw, 30rem); padding: .8rem 1.1rem .8rem .9rem; border-radius: 16px; background: var(--nit); color: #F5F1E6; font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.35; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(211, 168, 76, .4); transform: translate(-50%, 140%); opacity: 0; visibility: hidden; transition: transform .45s cubic-bezier(.2, 1.2, .4, 1), opacity .3s, visibility 0s .45s; }
.elf-toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.elf-toast__elf { flex: none; width: 46px; line-height: 0; }
.elf-toast a { color: var(--or); }
@media (max-width: 860px) { .elf-toast { bottom: calc(4.8rem + env(safe-area-inset-bottom)); } }

/* Pista a la portada i apartat a la pàgina de Nadal */
.xelf-hint { display: flex; align-items: flex-end; gap: .7rem; margin: 1.6rem 0 0; font-family: var(--f-text); font-style: italic; font-size: 1.08rem; color: var(--ink-soft); }
.xelf-hint__elf { flex: none; width: 46px; line-height: 0; border-bottom: 2px solid var(--line-strong); }
.xelf-hint a { font-family: var(--f-display); font-style: normal; font-weight: 700; color: var(--pasqua); }
.xelf__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.8rem, 5vw, 5rem); align-items: center; }
.xelf__art { display: grid; place-items: center; padding: 1.5rem; border-radius: var(--radius-l); background: radial-gradient(circle at 50% 45%, #fff 0, #fff 30%, transparent 62%), var(--salvia); }
.elf-full { width: min(100%, 260px); height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .elf-full__arm { transform-box: fill-box; transform-origin: 10% 90%; animation: saluda 2.4s ease-in-out infinite; }
  @keyframes saluda { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-12deg); } }
  .elf-full__eyes .elf__lids { animation: parpelleja 4.2s infinite; }
}
.xelf__count { display: inline-block; margin-top: .4rem; padding: .55rem .9rem; border-radius: 10px; background: color-mix(in srgb, var(--pasqua) 9%, var(--paper)); font-family: var(--f-display); font-weight: 700; color: var(--pasqua-deep); }
@media (max-width: 860px) { .xelf__grid { grid-template-columns: 1fr; } .elf-full { width: 190px; } }
.xstyle--pasqua .btn-row { margin-top: 1.5rem; }
.xstyle--pasqua .xmosaic li:first-child img { object-position: 50% 22%; }
