/* ==========================================================================
   VIU LA MUNTANYA — sistema de disseny v2
   Basat directament en el fullet oficial "Perdre't per trobar-te":
   verd viu, crema, groc d'avís i tipografia de pòster.
   ========================================================================== */

:root {
  /* ---- color (extret del fullet) ---- */
  --green-ink:   #142c1d;  /* verd quasi negre: capçalera, peu, text principal */
  --green-dark:  #23522f;  /* verd fosc: targetes i blocs de crida a l'acció */
  --green-mid:   #4c7a3e;  /* verd viu: cercles d'icona, accents, hover */
  --green-mid-dk:#3a5f30;
  --sage:        #adc998;  /* verd clar: fons de secció */
  --sage-soft:   #d3e2c3;  /* verd molt clar: fons alternatiu */
  --cream:       #f3eedb;  /* targetes clares */
  --yellow:      #efc02e;  /* accent d'avís / crida a l'acció */
  --yellow-dark: #d6a913;
  --ink:         #16241a;  /* text sobre fons clar */
  --white:       #ffffff;

  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-body: "Poppins", "Segoe UI", sans-serif;
  --f-hand: "Caveat", cursive;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 18px;
  --shadow-card: 0 14px 30px -14px rgba(20, 44, 29, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 3px;
}

/* pinzellada decorativa (substitueix la textura de mapa) */
.topo-bg { position: relative; }
.topo-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 420px; height: 320px;
  max-width: 60%;
  background-image: url("../assets/topo-light.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top left;
  opacity: 0.5;
  pointer-events: none;
}
.topo-bg--dark::before {
  background-image: url("../assets/topo-dark.svg");
  opacity: 0.4;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 6px;
  border-radius: 4px;
  background: var(--yellow);
  display: inline-block;
}
.eyebrow--onDark { color: var(--cream); }

mark {
  background: var(--yellow);
  color: var(--green-ink);
  padding: 0.02em 0.28em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------------------------------------------------------------------- */
/* Header / navegació                                                       */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
}
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; color: var(--yellow); }
.brand__word {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0;
  line-height: 1.05;
}
.brand__word small {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  text-transform: none;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; align-items: center; gap: 1.4rem; }
.nav__list a {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--white);
  padding: 0.4rem 0.1rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav__list a:hover { border-color: var(--yellow); }
.nav__list a[aria-current="page"] { color: var(--yellow); border-color: var(--yellow); }
.nav__cta {
  background: var(--yellow);
  color: var(--green-ink) !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav__cta:hover { background: var(--yellow-dark); border-color: transparent !important; }

.nav__toggle { display: none; background: none; border: none; color: var(--white); width: 40px; height: 40px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--green-ink);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav__list li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav__list a { display: block; padding: 1rem 0.2rem; border-bottom: none; }
  .nav__cta { margin-top: 1rem; text-align: center; display: block; }
}

/* ---------------------------------------------------------------------- */
/* Hero — fons clar, com el fullet                                         */
/* ---------------------------------------------------------------------- */
.hero {
  background: var(--sage);
  color: var(--ink);
  padding: 4.6rem 0 3.6rem;
  overflow: hidden;
}
.hero--page { padding: 3.4rem 0 2.8rem; }
.hero__coords {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
  color: var(--green-ink);
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.hero__lede {
  font-family: var(--f-body);
  font-size: 1.14rem;
  max-width: 42em;
  color: var(--green-ink);
  opacity: 0.85;
  margin-top: 1.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

@media (max-width: 540px) {
  .hero__linebreak { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 10vw, 2.6rem); line-height: 1.05; }
  mark { padding: 0 0.22em; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--green-ink); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--green-ink); color: var(--white); }
.btn--dark:hover { background: var(--green-dark); }
/* contorn per a fons clars (sage / crema / blanc) */
.btn--outline {
  border-color: var(--green-ink);
  color: var(--green-ink);
  background: transparent;
}
.btn--outline:hover { background: var(--green-ink); color: var(--white); }
/* contorn per a fons foscos (verd fosc) */
.btn--ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------------------------------------------------------------------- */
/* Stats strip                                                              */
/* ---------------------------------------------------------------------- */
.stats { background: var(--cream); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 2.2rem 0; }
.stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.stat__num { font-family: var(--f-display); font-size: 2.3rem; color: var(--green-dark); line-height: 1; }
.stat__label { font-family: var(--f-body); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.03em; color: var(--ink); opacity: 0.75; margin-top: 0.5rem; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------- */
/* Seccions genèriques                                                      */
/* ---------------------------------------------------------------------- */
.section { padding: 4.4rem 0; }
.section--tight { padding: 3rem 0; }
.section--alt { background: var(--sage-soft); }
.section__head { max-width: 42em; margin-bottom: 2.6rem; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--green-ink); text-transform: uppercase; margin-top: 0.6rem; }
.section__head p { color: var(--ink); opacity: 0.78; margin-top: 0.9rem; font-size: 1.05rem; }

.divider-trail { height: 6px; border-radius: 4px; background: var(--yellow); width: 60px; margin: 0 auto; }

/* ---------------------------------------------------------------------- */
/* Icones en cercle — l'element signatura del fullet                       */
/* ---------------------------------------------------------------------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 4px 10px -4px rgba(20,44,29,0.4);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--sm { width: 36px; height: 36px; border-width: 2px; }
.icon-badge--sm svg { width: 17px; height: 17px; }
.icon-badge--onDark { background: var(--sage); color: var(--green-ink); border-color: var(--green-mid); }

/* ---------------------------------------------------------------------- */
/* Targetes "fork in the trail" (públic: escoles / casals)                  */
/* ---------------------------------------------------------------------- */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.fork__card {
  background: var(--green-dark);
  color: var(--white);
  padding: 2.4rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease;
}
.fork__card:nth-child(2) { background: var(--green-mid); }
.fork__card:hover { transform: translateY(-4px); }
.fork__card h3 { font-size: 2rem; text-transform: uppercase; margin: 0.6rem 0 0.7rem; color: var(--white); }
.fork__card p { color: var(--sage-soft); }
.fork__card .btn { margin-top: 1.2rem; }
@media (max-width: 760px) { .fork { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Targetes de ruta (activitats)                                           */
/* ---------------------------------------------------------------------- */
.routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }

.route-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.1rem 2rem 1.8rem;
  position: relative;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 100px;
}
.route-card__badge {
  position: absolute;
  top: -20px;
  left: 1.8rem;
  width: 50px;
  height: 50px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.15rem;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-card);
  transform: rotate(-6deg);
}
.route-card h3 { margin-top: 0.9rem; font-size: 1.6rem; color: var(--green-ink); text-transform: uppercase; }
.route-card__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.9rem 0 1.1rem; }
.route-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: var(--sage-soft);
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
}
.route-card__meta span svg {
  width: 24px; height: 24px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  padding: 5px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.route-card p { color: var(--ink); opacity: 0.85; }
.route-card p:last-child { margin-bottom: 0; }
.route-card strong { color: var(--green-ink); opacity: 1; }

/* ---------------------------------------------------------------------- */
/* Caixa d'informació (a qui / com funcionem / detall)                      */
/* ---------------------------------------------------------------------- */
.infobar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .infobar { grid-template-columns: 1fr; } }
.infobox {
  background: var(--white);
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.infobox h4 {
  font-family: var(--f-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--green-dark);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.contact-info .infobox h4 svg { width: 20px; height: 20px; }
.infobox p { color: var(--ink); opacity: 0.82; font-size: 0.96rem; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Timeline (El projecte)                                                   */
/* ---------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 2.6rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--sage);
}
.timeline__step { position: relative; padding-bottom: 2.4rem; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: 2px;
  width: 24px; height: 24px;
  background: var(--yellow);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green-mid);
}
.timeline__step h4 { font-family: var(--f-display); font-size: 1.35rem; color: var(--green-ink); text-transform: uppercase; }
.timeline__step p { color: var(--ink); opacity: 0.82; margin-top: 0.4rem; }

/* ---------------------------------------------------------------------- */
/* Pilars — imitant la fila d'icones del fullet                             */
/* ---------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  background: var(--white);
  padding: 1.8rem 1.4rem;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.pillar .icon-badge { margin: 0 auto 0.9rem; }
.pillar h4 { font-size: 1.2rem; margin: 0 0 0.4rem; color: var(--green-ink); text-transform: uppercase; }
.pillar p { font-family: var(--f-hand); font-size: 1.25rem; color: var(--green-dark); margin: 0; line-height: 1.25; }

/* ---------------------------------------------------------------------- */
/* Productes                                                                */
/* ---------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.product-card__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; background: var(--sage-soft); }
.product-card__gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.product-card__gallery .stack { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.product-card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.3rem; color: var(--green-ink); text-transform: uppercase; }
.product-card p { color: var(--ink); opacity: 0.8; font-size: 0.92rem; flex: 1; }
.price-tag {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--green-ink);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin: 0.6rem 0 0.9rem;
}

/* ---------------------------------------------------------------------- */
/* Formularis incrustats (contacte / treballa)                              */
/* ---------------------------------------------------------------------- */
.form-frame { background: var(--white); border-radius: var(--radius-md); padding: 0.6rem; box-shadow: var(--shadow-card); }
.form-frame__label { font-family: var(--f-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-dark); padding: 0.6rem 0.8rem 0; }
.form-frame iframe { width: 100%; min-height: 900px; border: none; border-radius: 12px; }
.form-fallback { margin-top: 1rem; font-family: var(--f-body); font-weight: 600; font-size: 0.88rem; }

.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2.4rem; }
@media (max-width: 860px) { .contact-info { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* CTA final                                                                */
/* ---------------------------------------------------------------------- */
.cta-final { background: var(--green-dark); color: var(--white); padding: 4rem 0; text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
.cta-final p { color: var(--sage-soft); max-width: 34em; margin: 1rem auto 2rem; }
.cta-final .hero__actions { justify-content: center; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--green-ink); color: var(--sage); padding: 3rem 0 1.6rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); margin-bottom: 0.8rem; }
.footer__brand svg { width: 30px; height: 30px; color: var(--yellow); }
.footer__brand span { font-family: var(--f-body); font-weight: 800; font-size: 1.2rem; }
.site-footer p { font-size: 0.92rem; max-width: 30em; }
.footer h5 { font-family: var(--f-body); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); margin-bottom: 0.9rem; }
.footer__links li { margin-bottom: 0.55rem; }
.footer__links a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-top: 1.4rem; font-family: var(--f-body); font-weight: 600; font-size: 0.74rem; }

/* ---------------------------------------------------------------------- */
/* Scroll reveal utility — el contingut és visible per defecte;            */
/* només s'anima si JS ha pogut afegir la classe reveal-pending a temps.   */
/* ---------------------------------------------------------------------- */
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* Logo real de la marca (capçalera i peu)                                 */
/* ---------------------------------------------------------------------- */
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand__logo { height: 40px; width: auto; }
.brand__tag {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--sage);
  line-height: 1;
}
.footer__brand img { height: 34px; width: auto; }
@media (max-width: 420px) {
  .brand__logo { height: 34px; }
  .brand__tag { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Galeries de producte — fotos de mostra amb fons blanc                    */
/* ---------------------------------------------------------------------- */
.product-card__gallery--mockup { background: var(--sage-soft); }
.product-card__gallery--mockup img { object-fit: contain; background: var(--white); padding: 6px; }
.product-card__gallery--single { grid-template-columns: 1fr; }
.product-card__gallery--four .stack { grid-template-rows: repeat(3, 1fr); }
.product-card__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
}
.product-card__colors span {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: var(--sage-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ---------------------------------------------------------------------- */
/* Lliga de Verticals — enllaços de recorregut dins de cada targeta         */
/* ---------------------------------------------------------------------- */
.route-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--sage-soft);
}
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }
.btn--track {
  background: var(--sage-soft);
  color: var(--green-ink);
  border-color: transparent;
}
.btn--track:hover { background: var(--sage); }
.btn--track svg { width: 18px; height: 18px; flex-shrink: 0; }
.fork--single { grid-template-columns: 1fr; }

/* ---------------------------------------------------------------------- */
/* Correccions per a mòbil                                                 */
/* ---------------------------------------------------------------------- */

/* 1. Franja de xifres de la portada.
   .stats__grid declarava "padding: 2.2rem 0" i, com que va després de
   .container al full d'estil i té la mateixa especificitat, li anul·lava
   el marge lateral d'1.5rem. Per això les quatre targetes quedaven
   enganxades a la vora de la pantalla. Recuperem el marge lateral. */
.stats__grid { padding: 2.2rem 1.5rem; }

@media (max-width: 560px) {
  .stats__grid { padding: 1.9rem 1.5rem 2.1rem; gap: 0.9rem; }
  .stat { padding: 1.15rem 1.05rem 1.25rem; }
  .stat__num { font-size: 2rem; }
  .stat__label { font-size: 0.72rem; line-height: 1.4; margin-top: 0.45rem; }
}

/* 2. Subratllat groc dels titulars.
   El fons d'un element en línia és tan alt com la caixa de la font
   (a l'Anton, uns 1,36em), no com l'interlineat. Amb line-height 1.05 el
   groc sobresortia ~0.15em per dalt i tapava la línia anterior (per
   exemple la coma d'"Amunt, sempre"). Fent-lo inline-block, l'alçada del
   groc passa a ser la que li indiquem, i deixem prou interlineat al títol.
   Nota: un <mark> inline-block ja no es parteix en dues línies; per a
   paraules soltes com "brúixola" o "amunt" no és cap problema. */
@media (max-width: 860px) {
  .hero h1 { line-height: 1.22; }
  mark { display: inline-block; line-height: 1.04; padding: 0.05em 0.22em; }
}

/* ---------------------------------------------------------------------- */
/* Lliga de Verticals — calendari i fitxa de cada cursa                    */
/* ---------------------------------------------------------------------- */
.calendar { display: grid; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.calendar__row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0.9rem 1.3rem;
  transition: transform 0.14s ease;
}
.calendar__row:hover { transform: translateX(4px); }
.calendar__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--green-ink);
  border-radius: 12px;
  padding: 0.45rem 0.2rem 0.35rem;
  line-height: 1;
}
.calendar__date b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.calendar__date {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.calendar__name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--green-ink);
  line-height: 1.1;
}
.calendar__name:hover { color: var(--green-mid); }
.calendar__note {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .calendar__row { grid-template-columns: 56px 1fr; gap: 0.9rem; padding: 0.8rem 1rem; }
  .calendar__name { font-size: 1.12rem; }
  .calendar__note { grid-column: 2; white-space: normal; }
}

.route-card .eyebrow { margin-top: 0.9rem; }
.route-card .eyebrow + h3 { margin-top: 0.35rem; }

.vertical-facts { display: grid; gap: 0.5rem; margin: 0 0 0.2rem; }
.vertical-facts > div { display: grid; grid-template-columns: 88px 1fr; gap: 0.9rem; }
.vertical-facts dt {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  padding-top: 0.2rem;
}
.vertical-facts dd { margin: 0; font-size: 0.92rem; color: var(--ink); opacity: 0.86; }
.vertical-facts dd a { text-decoration: underline; text-underline-offset: 3px; }
.vertical-facts dd a:hover { color: var(--green-mid); }
@media (max-width: 520px) {
  .vertical-facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
}
#calendari, #verticals { scroll-margin-top: 90px; }

/* Llistes del reglament de la lliga */
.rule-list { display: grid; gap: 0.7rem; margin: 0.2rem 0 0; }
.rule-list li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; line-height: 1.6; opacity: 0.88; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.infobox .price-tag { margin: 0.2rem 0 0.7rem; }

/* Carrusel de fotos de producte (manual, sense rotació automàtica) */
.product-carousel { position: relative; background: var(--white); }
.product-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-carousel__track::-webkit-scrollbar { display: none; }
.product-carousel__track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--white);
  padding: 10px;
  scroll-snap-align: center;
}
.product-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,255,255,0.94);
  color: var(--green-ink);
  box-shadow: 0 2px 10px rgba(20,44,29,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.product-carousel__nav:hover { background: var(--yellow); }
.product-carousel__nav--prev { left: 10px; }
.product-carousel__nav--next { right: 10px; }
.product-carousel__nav[disabled] { opacity: 0.28; cursor: default; }
.product-carousel__nav[disabled]:hover { background: rgba(255,255,255,0.94); }
.product-carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.product-carousel__dots button {
  width: 8px; height: 8px; padding: 0;
  border: none; border-radius: 50%;
  background: var(--sage);
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}
.product-carousel__dots button[aria-selected="true"] { width: 20px; border-radius: 999px; background: var(--green-mid); }
.product-carousel.is-single .product-carousel__nav,
.product-carousel.is-single .product-carousel__dots { display: none; }