/* ============================================================
   Lliga Catalana de Botifarra
   Sistema de disseny "Taula de joc"
   Tema únic: feltre verd fosc + os + accent vermell
   Display: Archivo (expandida) · Cos: Instrument Sans · Xifres: Spline Sans Mono
   ============================================================ */

:root {
  /* Fons feltre */
  --felt-950: #071d15;
  --felt-900: #0b2a1f;
  --felt-850: #0e3225;
  --felt-800: #123c2c;
  --felt-700: #1a4d39;

  /* Tinta os */
  --bone: #f2ede0;
  --bone-80: rgba(242, 237, 224, 0.8);
  --bone-60: rgba(242, 237, 224, 0.62);
  --bone-40: rgba(242, 237, 224, 0.4);
  --line: rgba(242, 237, 224, 0.14);
  --line-soft: rgba(242, 237, 224, 0.08);

  /* Accent vermell (un sol accent a tota la web) */
  --vermell: #e4573d;
  --vermell-bright: #f0684e;
  --vermell-deep: #a63722;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "Consolas", monospace;

  /* Sistema de formes: botons píndola, superfícies 16px */
  --r-pill: 999px;
  --r-card: 16px;

  --nav-h: 68px;
  --maxw: 1280px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--felt-900);
  background-image: radial-gradient(120% 90% at 50% 0%, var(--felt-850) 0%, var(--felt-900) 55%, var(--felt-950) 100%);
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Gra subtil sobre el feltre: capa fixa, mai en contenidors amb scroll */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

/* ------------------------------------------------------------
   Tipografia
   ------------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1.display { font-size: clamp(2.9rem, 6.6vw, 5.9rem); }
h2.display { font-size: clamp(2.2rem, 4.2vw, 3.7rem); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; line-height: 1.3; letter-spacing: 0.02em; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--bone-80); max-width: 34ch; }
.body-dim { color: var(--bone-60); max-width: 58ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--vermell-bright);
  display: inline-block;
  margin-bottom: 14px;
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::selection { background: var(--vermell); color: var(--bone); }

/* ------------------------------------------------------------
   Botons (píndola, un sol registre)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-pill);
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary { background: var(--bone); color: var(--felt-950); }
.btn-primary:hover { background: var(--vermell); color: var(--bone); }

.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--bone-60); }

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ------------------------------------------------------------
   Navegació
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 42, 31, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--vermell);
  color: var(--bone);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.05;
}
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.24em; color: var(--bone-60); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bone-80);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--vermell); text-decoration-thickness: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--bone);
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--felt-950);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a:not(.btn) { display: block; padding: 14px 4px; }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding-block: clamp(36px, 6vh, 72px) 0;
}
.hero > h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); max-width: 24ch; }
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(20px, 3vh, 40px);
}
.hero-copy .lede { max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-visual { position: relative; height: clamp(300px, 30vw, 380px); }

/* Les quatre manilles: ventall de cartes */
.naip {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: clamp(120px, 12.5vw, 165px);
  aspect-ratio: 208 / 319;
  background: var(--bone);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 18, 13, 0.55);
  transform-origin: 50% 140%;
  transform: translateX(calc(-50% + var(--tx, 0px))) rotate(var(--rot));
}
.naip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Desplaçament del ventall (responsive: s'estreny en pantalles petites) */
.hero-visual .naip:nth-child(1) { --tx: -120px; }
.hero-visual .naip:nth-child(2) { --tx: -42px; }
.hero-visual .naip:nth-child(3) { --tx: 38px; }
.hero-visual .naip:nth-child(4) { --tx: 118px; }
@media (max-width: 760px) {
  .hero-visual .naip:nth-child(1) { --tx: -104px; }
  .hero-visual .naip:nth-child(2) { --tx: -37px; }
  .hero-visual .naip:nth-child(3) { --tx: 33px; }
  .hero-visual .naip:nth-child(4) { --tx: 104px; }
}
@media (max-width: 560px) {
  .naip { width: clamp(82px, 23vw, 110px); }
  .hero-visual .naip:nth-child(1) { --tx: -80px; }
  .hero-visual .naip:nth-child(2) { --tx: -29px; }
  .hero-visual .naip:nth-child(3) { --tx: 26px; }
  .hero-visual .naip:nth-child(4) { --tx: 80px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js-anim .naip {
    animation: deal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i) * 90ms + 150ms);
  }
  @keyframes deal {
    from { transform: translateX(-50%) rotate(0deg) translateY(30px); opacity: 0; }
    to { transform: translateX(calc(-50% + var(--tx, 0px))) rotate(var(--rot)) translateY(0); opacity: 1; }
  }
}

/* En fer scroll, el ventall s'obre i cada carta vola a una velocitat
   diferent (paral·laxi). Animació nativa lligada a l'scroll: zero JS.
   Les propietats translate/rotate componen amb el transform base. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .js-anim .naip {
      animation-name: deal, carta-vol;
      animation-duration: 0.9s, auto;
      animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), linear;
      animation-delay: calc(var(--i) * 90ms + 150ms), 0s;
      animation-fill-mode: both, both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 80vh;
    }
    .hero-visual .naip:nth-child(1) { --sx: -170px; --sy: -90px; --srot: -20deg; }
    .hero-visual .naip:nth-child(2) { --sx: -60px; --sy: -170px; --srot: -9deg; }
    .hero-visual .naip:nth-child(3) { --sx: 60px; --sy: -140px; --srot: 10deg; }
    .hero-visual .naip:nth-child(4) { --sx: 170px; --sy: -75px; --srot: 22deg; }
    @keyframes carta-vol {
      to { translate: var(--sx, 0px) var(--sy, -100px); rotate: var(--srot, 8deg); }
    }
  }
}

@media (max-width: 900px) {
  .hero { padding-block: 40px 0; }
  .hero-row { grid-template-columns: 1fr; margin-top: 24px; }
  .hero-visual { height: 280px; order: 2; }
  .naip { bottom: 0; }
}

/* ------------------------------------------------------------
   Marquesina de seus (única a la pàgina)
   ------------------------------------------------------------ */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 16px;
  background: var(--felt-950);
}
.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-60);
  align-items: center;
}
.marquee-track svg { width: 11px; height: 11px; color: var(--vermell); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-anim .marquee-track { animation: slide 36s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* ------------------------------------------------------------
   Seccions
   ------------------------------------------------------------ */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .body-dim { margin-top: 18px; }

/* Format: files d'estadística gran */
.format-rows { border-top: 1px solid var(--line); }
.format-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1.4fr 1.7fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding-block: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}
.format-stat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 6.6vw, 5.6rem);
  line-height: 1;
  color: var(--vermell);
}
.format-stat small { font-family: var(--font-mono); font-size: 0.24em; color: var(--bone-60); font-weight: 400; letter-spacing: 0.08em; margin-left: 6px; white-space: nowrap; }
.format-row h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); text-transform: uppercase; letter-spacing: 0.06em; }
.format-row p { color: var(--bone-60); max-width: 44ch; }

@media (max-width: 768px) {
  .format-row { grid-template-columns: 1fr; gap: 8px; }
}

/* Seus: graella amb fotografia tintada */
.seus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.seu-card {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.seu-card:hover { transform: translateY(-4px); border-color: var(--line); }
.seu-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.seu-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.82) contrast(0.95); }
.seu-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 42, 31, 0.25), rgba(11, 42, 31, 0.72));
}
.seu-body { padding: 18px 18px 20px; }
.seu-body h3 { font-size: 1.15rem; text-transform: uppercase; }
.seu-body .seu-loc { color: var(--bone-60); font-size: 0.9rem; margin-top: 4px; }
.seu-body .seu-dia { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vermell-bright); margin-top: 12px; }

@media (max-width: 1024px) { .seus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .seus-grid { grid-template-columns: 1fr; } }

/* Teaser classificació */
.teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.teaser .btn { margin-top: 28px; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Taules de classificació
   ------------------------------------------------------------ */
.taula-wrap {
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  overflow-x: auto;
}
table.taula {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.taula th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-40);
  text-align: left;
  padding: 16px 14px 12px;
}
.taula td { padding: 13px 14px; border-top: 1px solid var(--line-soft); }
.taula td.num, .taula th.num { text-align: right; font-variant-numeric: tabular-nums; }
.taula td.num { font-family: var(--font-mono); font-size: 0.9rem; color: var(--bone-80); }
.taula td.pts { font-weight: 700; color: var(--bone); }
.taula .pos { color: var(--bone-40); font-family: var(--font-mono); width: 40px; }
.taula .parella { font-weight: 600; }
.taula tr.qualifica td { background: rgba(228, 87, 61, 0.07); }
.taula tr.qualifica td:first-child { box-shadow: inset 3px 0 0 var(--vermell); }

.llegenda {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--bone-60);
}
.llegenda .chip { width: 14px; height: 14px; border-radius: 4px; background: rgba(228, 87, 61, 0.25); box-shadow: inset 2px 0 0 var(--vermell); flex: none; }

/* Selector de seu (píndoles) */
.seu-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.seu-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone-80);
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.seu-tab:hover { border-color: var(--bone-60); }
.seu-tab[aria-selected="true"] { background: var(--bone); color: var(--felt-950); border-color: var(--bone); }

/* ------------------------------------------------------------
   Calendari
   ------------------------------------------------------------ */
.calendari { border-top: 1px solid var(--line); }
.cal-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.cal-row .jornada { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--vermell); }
.cal-row .data { font-weight: 600; }
.cal-row .data small { display: block; font-weight: 400; color: var(--bone-60); font-size: 0.88rem; }
.cal-row .estat { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-40); }
.cal-row.jugada .estat { color: var(--bone-60); }
.cal-row.jugada { opacity: 0.66; }
@media (max-width: 560px) { .cal-row { grid-template-columns: 64px 1fr; } .cal-row .estat { grid-column: 2; } }

/* ------------------------------------------------------------
   Bloc Gran Final (únic canvi de color deliberat de la pàgina)
   ------------------------------------------------------------ */
.final-block {
  background: var(--vermell-deep);
  color: var(--bone);
  border-radius: var(--r-card);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.final-block::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(242, 237, 224, 0.16);
  pointer-events: none;
}
.final-block::after {
  content: "";
  position: absolute;
  right: 2%;
  top: -12%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(242, 237, 224, 0.12);
  pointer-events: none;
}
.final-block h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 14ch; }
.final-block p { margin-top: 20px; max-width: 48ch; color: rgba(242, 237, 224, 0.85); }
.final-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.final-meta span { border-top: 1px solid rgba(242, 237, 224, 0.3); padding-top: 10px; }

/* ------------------------------------------------------------
   CTA final
   ------------------------------------------------------------ */
.cta-final { text-align: center; }
.cta-final h2 { margin-inline: auto; max-width: 18ch; }
.cta-final .btn { margin-top: 34px; }
.cta-final .nota { margin-top: 18px; font-size: 0.9rem; color: var(--bone-60); }

/* ------------------------------------------------------------
   Bracket de playoffs
   ------------------------------------------------------------ */
.bracket {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: stretch;
}
.bracket-col { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bracket-col > h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-40);
  text-align: center;
  margin-bottom: 4px;
}
.match {
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.match .slot {
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bone-80);
}
.match .slot + .slot { border-top: 1px solid var(--line-soft); }
.match .slot small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-40); margin-bottom: 2px; }
.match.final-match { border-color: var(--vermell); background: rgba(228, 87, 61, 0.08); }

@media (max-width: 900px) {
  .bracket { grid-template-columns: 1fr; }
  .bracket-col { gap: 10px; }
}

/* ------------------------------------------------------------
   Capçalera de pàgina interior
   ------------------------------------------------------------ */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-head .nota-mock { margin-top: 16px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-40); }

/* ------------------------------------------------------------
   Peu
   ------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  margin-top: clamp(48px, 6vw, 96px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--bone-60); font-size: 0.92rem; }
.footer-links a:hover { color: var(--bone); }
.footer-note { width: 100%; margin-top: 8px; font-size: 0.82rem; color: var(--bone-40); }

/* ------------------------------------------------------------
   Notícies i cròniques (noticies.html / noticia.html)
   ------------------------------------------------------------ */
.categoria {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--bone-80);
}
.categoria.torneig { color: var(--felt-950); background: var(--vermell); border-color: var(--vermell); }
.categoria.cronica { color: var(--vermell-bright); border-color: rgba(228, 87, 61, 0.4); }
.categoria.anunci { color: var(--bone); }

.data-noticia { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--bone-40); }

/* Destacada */
.noticia-destacada {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.noticia-destacada .nd-foto { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; }
.noticia-destacada .nd-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.noticia-destacada:hover .nd-foto img { transform: scale(1.03); }
.noticia-destacada .meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.noticia-destacada h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
}
.noticia-destacada .resum { color: var(--bone-60); margin-top: 16px; max-width: 46ch; }
.noticia-destacada .llegir { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--vermell-bright); }
@media (max-width: 800px) { .noticia-destacada { grid-template-columns: 1fr; } .noticia-destacada .nd-foto { order: -1; } }

/* Graella de notícies */
.noticies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: clamp(36px, 5vw, 56px);
}
.noticia-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.noticia-card:hover { transform: translateY(-4px); border-color: var(--line); }
.noticia-card .nc-foto { aspect-ratio: 3 / 2; overflow: hidden; }
.noticia-card .nc-foto img { width: 100%; height: 100%; object-fit: cover; }
.noticia-card .nc-cos { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.noticia-card .meta { display: flex; align-items: center; gap: 12px; }
.noticia-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.noticia-card .resum { color: var(--bone-60); font-size: 0.92rem; margin-top: auto; }
@media (max-width: 900px) { .noticies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .noticies-grid { grid-template-columns: 1fr; } }

/* Article de notícia */
.noticia-article { max-width: 72ch; margin-inline: auto; }
.noticia-article .meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.noticia-article > h1 { margin-bottom: 10px; }
.noticia-article .signatura { color: var(--bone-60); font-size: 0.92rem; margin-bottom: 28px; }
.noticia-hero {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.noticia-hero img { width: 100%; height: 100%; object-fit: cover; }
.noticia-cos p { color: var(--bone-80); margin-bottom: 1.15em; font-size: 1.08rem; line-height: 1.7; }
.noticia-cos p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--vermell);
}
.noticia-cos h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 1.4em 0 0.5em;
}
.noticia-peu { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* Teaser de notícies a la portada */
.home-noticies { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 900px) { .home-noticies { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Reglament (reglament.html)
   ------------------------------------------------------------ */
.reglament-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 52px);
}
.reglament-index {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reglament-index a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--bone-60);
  font-size: 0.92rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.15s ease;
}
.reglament-index a:hover { color: var(--bone); }
.reglament-index a .n { font-family: var(--font-mono); color: var(--vermell); font-size: 0.8rem; flex: none; }

.reglament-articles { max-width: 68ch; }
.article { padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-soft); }
.article:last-child { border-bottom: none; }
.article > .art-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vermell-bright);
  display: block;
  margin-bottom: 10px;
}
.article > h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.article p { color: var(--bone-80); margin-bottom: 1em; }
.article p:last-child { margin-bottom: 0; }
.article ul { list-style: none; margin: 0 0 1em; display: grid; gap: 10px; }
.article ul li {
  position: relative;
  padding-left: 26px;
  color: var(--bone-80);
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--vermell);
}
.article strong { color: var(--bone); font-weight: 600; }

@media (max-width: 860px) {
  .reglament-layout { grid-template-columns: 1fr; }
  .reglament-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .reglament-index a { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; font-size: 0.82rem; }
  .reglament-index a .n { color: var(--vermell-bright); }
}

/* ------------------------------------------------------------
   Patrocinadors (portada)
   ------------------------------------------------------------ */
.patro-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: var(--felt-850);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 52px);
  margin-top: clamp(28px, 4vw, 40px);
}
.patro-principal .tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermell-bright);
}
.patro-principal .marca {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--bone);
  letter-spacing: 0.01em;
}
.patro-principal .marca small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.24em; color: var(--bone-40); margin-top: 8px; }

.patrocinadors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 720px) { .patrocinadors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .patrocinadors-grid { grid-template-columns: 1fr; } }

.patro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 108px;
  padding: 20px;
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--bone-60);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.patro:hover { color: var(--bone); }
.patro small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-40); margin-top: 8px; }

.patro-join {
  text-decoration: none;
  border: 1px dashed rgba(228, 87, 61, 0.5);
  color: var(--vermell-bright);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.patro-join:hover { border-color: var(--vermell); background: rgba(228, 87, 61, 0.07); color: var(--vermell-bright); }

/* ------------------------------------------------------------
   Seus per província (seus.html)
   ------------------------------------------------------------ */
.provincia { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.provincia:first-child { border-top: none; padding-top: clamp(24px, 3vw, 36px); }
.provincia-cap { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(24px, 3vw, 32px); }
.provincia-cap .foto { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; flex: none; }
.provincia-cap .foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.85) contrast(0.95); }
.provincia-cap h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.provincia-cap .compte { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-60); margin-top: 8px; }
@media (max-width: 480px) { .provincia-cap .foto { width: 64px; height: 64px; } }

.pobles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .pobles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pobles-grid { grid-template-columns: 1fr; } }

.poble {
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poble .nom { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.poble .bar { color: var(--bone-60); font-size: 0.92rem; flex: 1; }
.poble .bar.buit { color: var(--bone-40); font-style: italic; }

.estat {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.estat.confirmada { background: var(--vermell); color: var(--bone); }
.estat.prevista { border-color: var(--line); color: var(--bone-60); }
.estat.converses { border-color: rgba(228, 87, 61, 0.45); color: var(--vermell-bright); }
.estat.oberta { border-color: var(--line-soft); color: var(--bone-40); }

/* Llegenda d'estats */
.estats-llegenda { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.estats-llegenda span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--bone-60); }
.estats-llegenda .punt { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.estats-llegenda .punt.confirmada { background: var(--vermell); }
.estats-llegenda .punt.prevista { border: 1.5px solid var(--bone-60); }
.estats-llegenda .punt.converses { border: 1.5px solid var(--vermell-bright); }
.estats-llegenda .punt.oberta { border: 1.5px solid var(--line); }

/* Índex de províncies (píndoles) a dalt de seus.html */
.prov-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.prov-tab {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bone-80);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.prov-tab:hover { border-color: var(--bone-60); color: var(--bone); background: rgba(242, 237, 224, 0.05); }

/* ------------------------------------------------------------
   Fitxa de seu (seu.html)
   ------------------------------------------------------------ */
.mos-de-pa {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-40);
  padding-top: clamp(24px, 4vw, 40px);
}
.mos-de-pa a { color: var(--bone-60); text-decoration: none; }
.mos-de-pa a:hover { color: var(--bone); }
.mos-de-pa span { margin: 0 6px; }

.mini-titol {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--bone-80);
}

.seu-detall-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  margin-top: clamp(32px, 5vw, 52px);
}
.seu-detall-foto {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 280px;
  margin: 0;
}
.seu-detall-foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.85) contrast(0.95); }
/* Fotos reals de seu: en color, sense filtre unificador */
.seu-detall-foto.es-real img { filter: none; }
.seu-detall-foto figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 18px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(180deg, transparent, rgba(7, 29, 21, 0.88));
}
.seu-detall-foto figcaption .cap-credit {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--bone-40);
}
.seu-detall-info {
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}
.seu-detall-info .mini-titol { margin-bottom: 18px; }
.dades-seu { display: grid; gap: 0; margin-bottom: 28px; }
.dades-seu > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}
.dades-seu > div:first-child { border-top: none; }
.dades-seu dt { color: var(--bone-60); font-size: 0.9rem; }
.dades-seu dd { font-weight: 600; text-align: right; }
.seu-detall-info .btn { margin-top: auto; justify-content: center; }
@media (max-width: 860px) { .seu-detall-grid { grid-template-columns: 1fr; } .seu-detall-foto { aspect-ratio: 16 / 9; min-height: 0; } }

.mapa-wrap {
  position: relative;
  margin-top: 18px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.mapa {
  display: block;
  width: 100%;
  height: clamp(300px, 42vw, 460px);
  border: 0;
  filter: saturate(0.82) brightness(0.94);
}
.mapa-obrir {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--felt-950);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.mapa-obrir:hover { background: var(--vermell-deep); border-color: var(--vermell-deep); }

.seu-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.seu-chip {
  text-decoration: none;
  color: var(--bone-80);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.seu-chip:hover { border-color: var(--bone-60); color: var(--bone); background: rgba(242, 237, 224, 0.05); }

/* ------------------------------------------------------------
   FAQ: acordió natiu (details/summary), zero JS
   ------------------------------------------------------------ */
.faq-llista { border-top: 1px solid var(--line); max-width: 76ch; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--vermell-bright); }
.faq-item summary .icona {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
}
.faq-item summary .icona::before,
.faq-item summary .icona::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--vermell);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.faq-item summary .icona::before { width: 100%; height: 2px; }
.faq-item summary .icona::after { width: 2px; height: 100%; }
.faq-item[open] summary .icona::after { transform: rotate(90deg); opacity: 0; }
.faq-item .faq-resposta { padding: 0 4px 26px; color: var(--bone-80); max-width: 66ch; }
.faq-item .faq-resposta p { margin-bottom: 0.9em; }
.faq-item .faq-resposta p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-resposta { animation: faq-obre 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes faq-obre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

.faq-contacte {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.faq-contacte .txt { color: var(--bone-80); }

/* Enllaços de contacte amb icona */
.contacte-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contacte-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.contacte-link:hover { border-color: var(--bone-60); background: rgba(242, 237, 224, 0.05); }
.contacte-link svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------
   Segell de marca: el logo com una cartolina sobre el feltre
   ------------------------------------------------------------ */
.segell-wrap { display: flex; justify-content: center; margin-bottom: clamp(36px, 5vw, 60px); }
.segell {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 34px 80px rgba(4, 18, 13, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: rotate(-1.6deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.segell:hover { transform: rotate(0deg) scale(1.015); }
@media (prefers-reduced-motion: reduce) { .segell { transition: none; } .segell:hover { transform: rotate(-1.6deg); } }

/* Marca petita derivada del logo (capçalera/peu) */
.brand-logo {
  width: auto;
  height: 42px;
  padding: 0;
  background: #f4efe4;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.brand-logo img { height: 100%; width: auto; display: block; }

/* ------------------------------------------------------------
   El projecte: la història i els impulsors
   ------------------------------------------------------------ */
.projecte-historia {
  columns: 2;
  column-gap: clamp(32px, 5vw, 72px);
  max-width: 100ch;
}
.projecte-historia p { break-inside: avoid; margin-bottom: 1.2em; color: var(--bone-80); }
.projecte-historia p:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--bone);
}
@media (max-width: 900px) { .projecte-historia { columns: 1; } }

.fundadors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}
.fundador {
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 26px 22px;
  text-align: center;
}
.fundador-mono {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--felt-950);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  box-shadow: 0 0 0 2px var(--vermell);
}
.fundador h3 { font-size: 1.05rem; }
.fundador p { color: var(--bone-60); font-size: 0.88rem; margin-top: 6px; }
.fundador p svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; color: var(--vermell-bright); }
@media (max-width: 1024px) { .fundadors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .fundadors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .fundadors { grid-template-columns: 1fr; } }

/* Lead centrat de la secció */
.projecte-lead {
  max-width: 60ch;
  margin: 18px auto 0;
  text-align: center;
  color: var(--bone-80);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

/* Mur de veus dels fundadors */
.veus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 52px);
}
.veu {
  flex: 1 1 300px;
  max-width: 360px;
  margin: 0;
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.veu::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--vermell);
  opacity: 0.5;
}
.veu blockquote {
  margin: 0;
  padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.42;
  color: var(--bone);
}
.veu-peu { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.veu-mono {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--bone);
  color: var(--felt-950);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 0 0 2px var(--vermell);
  overflow: hidden;
}
.veu-mono img { width: 100%; height: 100%; object-fit: cover; }
.veu-nom { display: block; font-weight: 700; font-size: 0.98rem; line-height: 1.15; }
.veu-rol { display: block; color: var(--bone-60); font-size: 0.82rem; }

/* ------------------------------------------------------------
   Estadístiques: scouting de la temporada
   ------------------------------------------------------------ */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-tile {
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 24px 22px;
}
.stat-tile .valor {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  color: var(--vermell);
}
.stat-tile .qui { font-weight: 700; margin-top: 10px; }
.stat-tile .que { color: var(--bone-60); font-size: 0.88rem; margin-top: 2px; }
@media (max-width: 1024px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

th.ordenable { cursor: pointer; user-select: none; }
th.ordenable:hover { color: var(--bone-80); }
th.ordenable[aria-sort]:not([aria-sort="none"]) { color: var(--vermell-bright); }
th.ordenable[aria-sort="descending"]::after { content: " ↓"; }
th.ordenable[aria-sort="ascending"]::after { content: " ↑"; }

.eines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1024px) { .eines { grid-template-columns: 1fr; } }

.eina {
  background: var(--felt-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 32px);
}
.eina > h3 { text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; margin-bottom: 18px; }

.select-fosc {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--bone);
  background-color: var(--felt-900);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 40px 11px 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f2ede0' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select-fosc:focus-visible { outline: none; border-color: var(--bone-60); box-shadow: 0 0 0 3px rgba(242, 237, 224, 0.15); }

.fitxa-cos { margin-top: 20px; }
.fitxa-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.fitxa-cap .nom { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.fitxa-cap .seu-de { color: var(--bone-60); font-size: 0.95rem; }
.fitxa-dades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.fitxa-dada { border-top: 1px solid var(--line); padding-top: 10px; }
.fitxa-dada .v { font-family: var(--font-mono); font-weight: 700; font-size: 1.35rem; }
.fitxa-dada .k { color: var(--bone-60); font-size: 0.78rem; }
@media (max-width: 560px) { .fitxa-dades { grid-template-columns: repeat(2, 1fr); } }

.jornades-seq { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.jseq {
  width: 46px;
  border-radius: 10px;
  padding: 8px 0 9px;
  text-align: center;
  font-family: var(--font-mono);
}
.jseq .jn { display: block; font-size: 0.62rem; letter-spacing: 0.08em; opacity: 0.75; }
.jseq .gp { display: block; font-weight: 700; font-size: 1rem; margin-top: 2px; }
.jseq-g { background: var(--vermell); color: var(--bone); }
.jseq-p { background: transparent; color: var(--bone-60); border: 1px solid var(--line); }
.jseq-f { background: transparent; color: var(--bone-40); border: 1px dashed var(--line-soft); }

.h2h-taula { width: 100%; border-collapse: collapse; margin-top: 20px; }
.h2h-taula td { padding: 10px 8px; border-top: 1px solid var(--line-soft); text-align: center; }
.h2h-taula td.centre { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-40); width: 34%; }
.h2h-taula td.costat { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.h2h-taula td.guanya { color: var(--vermell-bright); }
.h2h-cap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h2h-vs { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--felt-900); border: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--bone-80); }

/* ------------------------------------------------------------
   Pagament dins la butlleta
   ------------------------------------------------------------ */
.pagament fieldset { border: none; display: grid; gap: 10px; }
.pagament legend { font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 2px; }
.pagament .preu {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(7, 29, 21, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.pagament .preu strong { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.pagament .preu small { color: rgba(7, 29, 21, 0.55); }
.opcio-pagament {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(7, 29, 21, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.opcio-pagament:hover { border-color: rgba(7, 29, 21, 0.45); }
.opcio-pagament input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--felt-800); flex: none; }
.opcio-pagament .op-nom { font-weight: 700; font-size: 0.95rem; }
.opcio-pagament .op-com { color: rgba(7, 29, 21, 0.6); font-size: 0.85rem; margin-top: 1px; }
.opcio-pagament:has(input:checked) { border-color: var(--felt-800); background: rgba(18, 60, 44, 0.07); }

/* ------------------------------------------------------------
   Modal d'inscripció: la "butlleta" de paper sobre el feltre
   Formes: botons píndola, targeta 16px, camps 10px
   ------------------------------------------------------------ */
dialog.modal {
  width: min(600px, calc(100vw - 32px));
  max-height: min(88dvh, 860px);
  border: none;
  border-radius: var(--r-card);
  background: var(--bone);
  color: var(--felt-950);
  padding: 0;
  margin: auto;
  box-shadow: 0 40px 120px rgba(4, 18, 13, 0.6);
}
dialog.modal::backdrop {
  background: rgba(7, 29, 21, 0.72);
  backdrop-filter: blur(4px);
}
body:has(dialog.modal[open]) { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  dialog.modal[open] { animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}

.modal-inner { padding: clamp(28px, 5vw, 44px); overflow-y: auto; max-height: inherit; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(7, 29, 21, 0.18);
  background: transparent;
  color: var(--felt-950);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--felt-950); color: var(--bone); }

.modal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.05;
}
.modal-sub { margin-top: 8px; color: rgba(7, 29, 21, 0.65); font-size: 0.97rem; }

.modal form { margin-top: 26px; display: grid; gap: 18px; }
.camp { display: grid; gap: 7px; }
.camp-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .camp-fila { grid-template-columns: 1fr; } }

.camp label { font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em; }
.camp label small { font-weight: 400; color: rgba(7, 29, 21, 0.55); margin-left: 6px; }

.camp input[type="text"],
.camp input[type="email"],
.camp input[type="tel"],
.camp select,
.camp textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--felt-950);
  background: #fdfcf8;
  border: 1px solid rgba(7, 29, 21, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.camp textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.camp input::placeholder, .camp textarea::placeholder { color: rgba(7, 29, 21, 0.4); }
.camp select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23071d15' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.camp input:focus-visible, .camp select:focus-visible, .camp textarea:focus-visible {
  outline: none;
  border-color: var(--felt-800);
  box-shadow: 0 0 0 3px rgba(18, 60, 44, 0.22);
}
.camp.invalid input, .camp.invalid select, .camp.invalid textarea { border-color: var(--vermell-deep); }
.camp .error { color: var(--vermell-deep); font-size: 0.85rem; margin: 0; }

.condicions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(7, 29, 21, 0.8);
  cursor: pointer;
}
.condicions input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--felt-800); flex: none; }
.condicions a { color: var(--felt-950); }
.camp-condicions.invalid .condicions { color: var(--vermell-deep); }

/* Enllaços legals dins la casella d'acceptació */
.enllac-legal {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: var(--felt-950);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--vermell);
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.enllac-legal:hover { color: var(--vermell-deep); }

/* Pop-up legal (per damunt de la butlleta) */
.modal-legal { width: min(560px, calc(100vw - 32px)); }
.modal-legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  padding-right: 40px;
}
.modal-legal .legal-cos { margin-top: 18px; }
.modal-legal .legal-cos p { color: rgba(7, 29, 21, 0.8); margin-bottom: 0.9em; font-size: 0.97rem; line-height: 1.6; }
.modal-legal .legal-cos p:last-child { margin-bottom: 0; }
.modal-legal .legal-cos a { color: var(--felt-950); text-decoration-color: var(--vermell); }
.modal-legal .legal-cos ul { list-style: none; margin: 0 0 0.9em; display: grid; gap: 10px; }
.modal-legal .legal-cos li {
  position: relative;
  padding-left: 22px;
  color: rgba(7, 29, 21, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}
.modal-legal .legal-cos li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--vermell);
}
.modal-legal .legal-cos strong { color: var(--felt-950); font-weight: 600; }

.btn-submit {
  background: var(--felt-900);
  color: var(--bone);
  justify-content: center;
  width: 100%;
}
.btn-submit:hover { background: var(--vermell-deep); }
.btn-submit[disabled] { opacity: 0.7; cursor: wait; }

.modal-nota { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(7, 29, 21, 0.45); text-align: center; }

/* Estat d'èxit */
.modal-exit { text-align: center; padding-block: 18px 8px; }
.modal-exit svg { width: 46px; height: 46px; color: var(--vermell); margin-bottom: 18px; }
.modal-exit h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.1;
}
.modal-exit p { margin: 14px auto 26px; max-width: 40ch; color: rgba(7, 29, 21, 0.75); }
.modal-exit .btn { background: var(--felt-900); color: var(--bone); }
.modal-exit .btn:hover { background: var(--vermell-deep); }

/* ------------------------------------------------------------
   Aparició en scroll (progressive enhancement: visible per defecte)
   ------------------------------------------------------------ */
.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 2px solid var(--vermell-bright); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
