/* ================================================================
   styles.css — Veterans Bàsquet Sitges
   Mobile-first · Design tokens · Sense framework
   ================================================================ */

/* ================================================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */
:root {
  /* Colors */
  --color-primary:    #2D6A4F;   /* Verd esmeralda */
  --color-primary-d:  #1f4f39;   /* Verd fosc (hover) */
  --color-primary-l:  #40916c;   /* Verd clar */
  --color-accent:     #D4A843;   /* Daurat/ambre */
  --color-accent-l:   #E8C266;   /* Daurat clar (gradients) */
  --color-accent-d:   #b8912e;   /* Daurat fosc */
  --color-dark:       #141613;   /* Negre profund amb matís verd */
  --color-dark-2:     #1e211d;   /* Negre secundari */
  --color-club-red:   #C0392B;   /* Vermell CBS */
  --color-club-red-d: #a93226;
  --color-white:      #FFFFFF;
  --color-bg-alt:     #F6F7F5;   /* Gris clar càlid */
  --color-bg-alt2:    #ECEEEA;
  --color-text:       #151814;
  --color-text-muted: #67706A;
  --color-text-light: #9CA3AF;
  --color-border:     #E5E8E3;

  /* Gradients */
  --gradient-gold:  linear-gradient(115deg, #F0D080 0%, #D4A843 55%, #C79A35 100%);
  --gradient-green: linear-gradient(135deg, var(--color-primary-l), var(--color-primary));

  /* Typography */
  --font-title: 'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;
  --fw-extrabold: 800;

  /* Spacing & Layout */
  --section-padding: clamp(3.5rem, 9vw, 7rem);
  --container-max:   1200px;
  --container-pad:   clamp(1rem, 4vw, 2rem);
  --radius-sm:  10px;
  --radius:     14px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  /* Transitions */
  --ease:            cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition:      0.3s var(--ease);
  --transition-fast: 0.18s var(--ease);

  /* Shadows — suaus, en capes, amb matís verdós */
  --shadow-sm:  0 1px 2px rgba(15,22,17,0.05), 0 3px 10px rgba(15,22,17,0.05);
  --shadow:     0 2px 6px rgba(15,22,17,0.06), 0 12px 32px rgba(15,22,17,0.10);
  --shadow-lg:  0 4px 12px rgba(15,22,17,0.07), 0 24px 56px rgba(15,22,17,0.14);
  --shadow-xl:  0 8px 24px rgba(15,22,17,0.10), 0 36px 88px rgba(15,22,17,0.22);

  /* Nav */
  --nav-height: 88px;
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) - 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(212, 168, 67, 0.35);
  color: var(--color-dark);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg), 2vw, var(--text-2xl)); }

p {
  line-height: 1.75;
  color: var(--color-text-muted);
}

strong { font-weight: var(--fw-semibold); color: var(--color-text); }

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-red { color: var(--color-club-red); }
.text-muted { color: var(--color-text-muted); }

/* Accessible: només per a lectors de pantalla i motors de cerca */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   4. LAYOUT UTILITIES
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.875rem;
  padding: 0.35rem 1rem;
  background: rgba(45, 106, 79, 0.07);
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: 999px;
}

.section__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.section__eyebrow--accent {
  color: var(--color-accent);
  background: rgba(212, 168, 67, 0.08);
  border-color: rgba(212, 168, 67, 0.3);
}

.section__eyebrow--red {
  color: var(--color-club-red);
  background: rgba(192, 57, 43, 0.07);
  border-color: rgba(192, 57, 43, 0.2);
}

.section__title {
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Grid genèric */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox helpers */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: var(--gradient-green);
  color: var(--color-white);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(45, 106, 79, 0.35);
}

.btn--accent {
  background: var(--gradient-gold);
  color: var(--color-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 28px rgba(212, 168, 67, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

.btn--red {
  background-color: var(--color-club-red);
  color: var(--color-white);
}
.btn--red:hover {
  background-color: var(--color-club-red-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(192, 57, 43, 0.35);
}

.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--color-white);
  background-color: rgba(10, 12, 9, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 10px 28px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn--outline:hover {
  border-color: var(--color-white);
  background-color: rgba(10, 12, 9, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), 0 16px 40px rgba(0, 0, 0, 0.25);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-base);
}

/* ================================================================
   6. BADGE
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--green { background: rgba(45, 106, 79, 0.15); color: var(--color-primary); }
.badge--gold  { background: rgba(212, 168, 67, 0.2);  color: var(--color-accent-d); }
.badge--red   { background: rgba(192, 57, 43, 0.15); color: var(--color-club-red); }
.badge--white { background: rgba(255,255,255,0.2); color: var(--color-white); }
.badge--raised {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  padding: 0.5rem 1.25rem;
  font-weight: var(--fw-bold);
}

/* ================================================================
   7. NAVIGATION
   ================================================================ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition), box-shadow var(--transition), height 0.3s ease;
}

#main-nav.nav--scrolled {
  height: 64px;
}

#main-nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Transparent sobre el hero */
#main-nav:not(.nav--scrolled) {
  background-color: transparent;
}

/* Vidre glacejat en fer scroll */
#main-nav.nav--scrolled {
  background-color: rgba(16, 18, 15, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
}

.nav-logo__placeholder {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  transition: width 0.3s ease, height 0.3s ease;
}

#main-nav.nav--scrolled .nav-logo__placeholder {
  width: 44px;
  height: 44px;
}

.nav-logo__text {
  font-family: var(--font-title);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--color-white);
  line-height: 1.2;
}

.nav-logo__sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* Menu desktop */
#nav-menu {
  display: none;
}

@media (min-width: 768px) {
  #nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.nav-link--cta {
  background: var(--gradient-gold);
  color: var(--color-dark);
  font-weight: var(--fw-semibold);
  margin-left: 0.5rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(212, 168, 67, 0.3);
}

.nav-link--cta:hover {
  color: var(--color-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 168, 67, 0.45);
}

/* Selector d'idioma */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 1rem;
  padding: 0.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.lang-btn:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.lang-btn--active {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

/* Hamburger */
#nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1010;
}

@media (min-width: 768px) {
  #nav-burger { display: none; }
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

#nav-burger.is-active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-burger.is-active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#nav-burger.is-active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 990;
  backdrop-filter: blur(4px);
}

#nav-overlay.is-visible { display: block; }

/* Menú mòbil */
@media (max-width: 767px) {
  #nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--color-dark);
    padding: calc(var(--nav-height) + 1.5rem) 1.5rem 2rem;
    gap: 0.25rem;
    z-index: 1000;
    transition: right var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }

  #nav-menu.is-open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: var(--text-base);
    border-radius: var(--radius);
  }

  .nav-lang {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    padding: 0.5rem;
  }

  .lang-btn {
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
  }
}

/* ================================================================
   8. HERO
   ================================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-sitges.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  z-index: 0;
}

/* Variant mobile per al hero (estalvia ~200 KB en mòbils) */
@media (max-width: 900px) {
  .hero-bg {
    background-image: url('../img/hero-sitges-mobile.webp');
    background-attachment: scroll;
  }
}

/* Fallback si no hi ha imatge */
.hero-bg--placeholder {
  background: linear-gradient(135deg, #1a2a1f 0%, #0d1a14 40%, #1a1a2e 100%);
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 55%, rgba(8, 10, 8, 0.55), transparent 75%),
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(31, 79, 57, 0.45), transparent 60%),
    linear-gradient(
      to bottom,
      rgba(10, 12, 9, 0.72) 0%,
      rgba(10, 12, 9, 0.45) 45%,
      rgba(10, 12, 9, 0.85) 100%
    );
  backdrop-filter: blur(3px) saturate(0.8);
  -webkit-backdrop-filter: blur(3px) saturate(0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--container-pad);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-l);
  margin-bottom: 1.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(10, 12, 9, 0.45);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeSlideUp 0.7s 0.2s forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 14px 32px rgba(0, 0, 0, 0.4));
  opacity: 0;
  animation: fadeSlideUp 0.7s 0.35s forwards;
}

.hero-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  color: rgba(255,255,255,0.95);
  font-weight: var(--fw-regular);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s 0.5s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideUp 0.7s 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll__arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   9. VETERANS
   ================================================================ */
#veterans {
  background: var(--color-white);
}

.veterans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .veterans-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.veterans-info {}

.veterans-description {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Valors */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  border-color: rgba(45, 106, 79, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.value-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-green);
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
  font-size: 1.25rem;
  transition: var(--transition);
}

.value-card:hover .value-card__icon {
  transform: scale(1.08) rotate(-3deg);
}

.value-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card__text {
  font-family: var(--font-title);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.4;
}

/* Foto equip */
.veterans-photo {
  position: relative;
}

.veterans-photo__img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.photo-placeholder {
  background: linear-gradient(135deg, var(--color-primary-d) 0%, var(--color-dark-2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.photo-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

.photo-placeholder--hero {
  min-height: 380px;
}

.photo-placeholder--sm {
  min-height: 160px;
}

.photo-placeholder--md {
  min-height: 220px;
}

.veterans-photo__caption {
  position: absolute;
  bottom: -0.75rem;
  left: 1.5rem;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* Patrocinadors anuals */
.sponsors-annual {
  margin-top: 3rem;
}

.sponsors-annual__title {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.sponsor-logo {
  height: 56px;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  transition: var(--transition);
}

.sponsor-logo:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.sponsor-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.sponsor-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.sponsor-logo--featured {
  height: 72px;
  padding: 0.75rem 2rem;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.sponsor-logo--featured img {
  height: 48px;
  filter: grayscale(0%);
  opacity: 1;
}

.sponsor-placeholder {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ================================================================
   10. TORNEIG SOLIDARI — INTRO + TIMELINE
   ================================================================ */
#torneig {
  background: var(--color-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

#torneig::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.torneig-intro {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}

.torneig-intro p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  padding-left: 2rem;
}

@media (min-width: 768px) {
  .timeline {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-left: 0;
    padding-top: 2rem;
  }
}

/* Línia horitzontal de connexió */
@media (min-width: 768px) {
  .timeline::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary-l), var(--color-accent));
    z-index: 0;
  }
}

/* Línia vertical mòbil */
@media (max-width: 767px) {
  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.1rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary-l), var(--color-accent));
    z-index: 0;
  }
}

.timeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0 1rem 2rem;
  flex: 1;
  text-align: center;
  transition: var(--transition);
}

@media (max-width: 767px) {
  .timeline-node {
    flex-direction: row;
    align-items: center;
    padding: 0 0 2rem 1rem;
    text-align: left;
    gap: 1.5rem;
  }
}

.timeline-node:hover .timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(45, 106, 79, 0.25);
}

.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark-2);
  border: 2px solid var(--color-primary-l);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-title);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--color-white);
  transition: var(--transition);
}

.timeline-node--next .timeline-dot {
  background: var(--gradient-gold);
  border-color: var(--color-accent);
  color: var(--color-dark);
  width: 56px;
  height: 56px;
  font-size: var(--text-base);
  box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.25), 0 0 28px rgba(212, 168, 67, 0.35);
  animation: glowPulse 2.6s var(--ease) infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.25), 0 0 20px rgba(212, 168, 67, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(212, 168, 67, 0.18), 0 0 36px rgba(212, 168, 67, 0.5); }
}

.timeline-year {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  line-height: 1;
}

.timeline-node--next .timeline-year {
  color: var(--color-accent);
}

.timeline-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.timeline-node--next .timeline-label {
  color: rgba(212, 168, 67, 0.8);
}

.timeline-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

/* Contador total recaptat */
.raised-counter {
  text-align: center;
  margin: 3rem 0 3.5rem;
  padding: 2rem;
  display: inline-block;
  width: 100%;
}

.raised-counter__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  line-height: 1;
}

.raised-counter__number {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.raised-counter__symbol {
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: var(--fw-bold);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}

.raised-counter__label {
  margin-top: 0.5rem;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ================================================================
   11. EDICIONS DEL TORNEIG
   ================================================================ */
.editions-section {
  background: var(--color-bg-alt);
}

.edition-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
  transition: var(--transition);
}

.edition-card:last-child { margin-bottom: 0; }

.edition-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.edition--highlighted {
  box-shadow: 0 0 0 3px var(--color-accent), var(--shadow-lg) !important;
}

.edition-header {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse 60% 120% at 85% 50%, rgba(45, 106, 79, 0.35), transparent 70%),
    linear-gradient(120deg, var(--color-dark), var(--color-dark-2));
  color: var(--color-white);
  overflow: hidden;
}

.edition-header__left {
  position: relative;
  z-index: 1;
}

/* Any com a marca d'aigua tipogràfica */
.edition-header__year {
  display: block;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-title);
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.edition-header__num {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.edition-header__title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.edition-header__lema {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.edition-raised {
  background: var(--gradient-green);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.35);
}

.edition-raised__amount {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  display: block;
  line-height: 1;
}

.edition-raised__label {
  font-size: var(--text-xs);
  opacity: 0.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Body de la card: 2 columnes */
.edition-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 900px) {
  .edition-body {
    grid-template-columns: 1fr 1fr;
  }
}

.edition-info {
  padding: 2rem;
  border-right: 1px solid var(--color-border);
}

.edition-gallery {
  padding: 2rem;
}

/* Foundation */
.edition-foundation {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}

.foundation-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--color-white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  border: 1px solid var(--color-border);
  padding: 0.25rem;
}

.foundation-info__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.foundation-info__name {
  font-family: var(--font-title);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.3;
}

/* Causa */
.edition-cause {
  margin-bottom: 1.5rem;
}

.edition-cause__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.edition-cause__text {
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Testimoni */
.edition-testimonial {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.06), rgba(212, 168, 67, 0.06));
  border-left: 3px solid var(--color-accent);
}

.edition-testimonial blockquote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.edition-testimonial cite {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  font-style: normal;
}

/* Equips */
.edition-teams {
  margin-bottom: 1.5rem;
}

.edition-teams__title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.teams-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  transition: var(--transition-fast);
}

.team-item:hover {
  background: var(--color-bg-alt2);
}

.team-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  filter: grayscale(80%);
  transition: var(--transition);
  background: var(--color-white);
  padding: 2px;
  border: 1px solid var(--color-border);
}

.team-logo:hover { filter: grayscale(0%); }

.team-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--color-primary-d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Galeria */
.edition-gallery__title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.15);
}

.gallery-placeholder {
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 10px;
  text-align: center;
  padding: 0.5rem;
}

.gallery-placeholder svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.4;
}

/* ================================================================
   12. SECCIO 2026 — HERO SECUNDARI (secció destacada)
   ================================================================ */
#section-2026 {
  background: #0c110d;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  padding: var(--section-padding) 0;
}

/* Aurora decorativa */
#section-2026::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 60% at 12% 30%, rgba(45, 106, 79, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 15%, rgba(212, 168, 67, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 75% 95%, rgba(31, 79, 57, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.next2026-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .next2026-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

/* Cartell */
.next2026-poster {
  position: relative;
}

.next2026-poster__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(212, 168, 67, 0.2);
  position: relative;
}

.next2026-poster__img-wrap img {
  width: 100%;
  display: block;
}

.next2026-poster__placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(to bottom, rgba(45,106,79,0.3), rgba(26,26,26,0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.3);
  font-size: var(--text-sm);
  text-align: center;
  padding: 2rem;
}

.next2026-poster__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(212,168,67,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Info 2026 */
.next2026-info {}

.next2026-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.next2026-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-dark);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.next2026-title {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.next2026-date {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.next2026-location {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.next2026-description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Causa */
.next2026-cause {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.next2026-cause__title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.next2026-cause__name {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.next2026-cause__foundation {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

/* Equips 2026 */
.next2026-teams {
  margin-bottom: 2.5rem;
}

/* teams-list sobre fons fosc (secció 2026) */
.next2026-teams .team-item {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.next2026-teams .team-item:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.next2026-teams .team-logo {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  filter: grayscale(40%);
}

.next2026-teams .team-item:hover .team-logo {
  filter: grayscale(0%);
}

.next2026-teams__title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.teams-grid-2026 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .teams-grid-2026 { grid-template-columns: repeat(3, 1fr); }
}

.team-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.75);
  transition: var(--transition-fast);
}

.team-chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,168,67,0.3);
  color: var(--color-white);
}

.team-chip__logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: var(--fw-bold);
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  overflow: hidden;
}

.team-chip__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(60%);
  transition: var(--transition);
}

.team-chip:hover .team-chip__logo img {
  filter: grayscale(0%);
}

.next2026-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================================
   13. ACTIVITATS SOLIDARIES
   ================================================================ */
.activities-section {
  background: var(--color-white);
}

.activities-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .activities-list { grid-template-columns: repeat(2, 1fr); }
}

.activity-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.activity-card:hover {
  border-color: rgba(45, 106, 79, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.activity-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(45,106,79,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.activity-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.activity-card__date {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.activity-card__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

/* ================================================================
   14. FOOTER
   ================================================================ */
#footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo__placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-club-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-xs);
  color: var(--color-white);
  flex-shrink: 0;
}

.footer-logo__name {
  font-family: var(--font-title);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.2;
}

.footer-logo__sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  color: rgba(255,255,255,0.4);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.footer-rights {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-links { align-items: flex-end; }
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  transition: var(--transition);
  text-decoration: none;
}

.footer-instagram:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.2);
}

.footer-instagram svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-handle {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

/* ================================================================
   15. LIGHTBOX
   ================================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

#lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 960px);
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(90svh - 3rem);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ================================================================
   16. ANIMATION HELPERS
   ================================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respecta les preferències d'accessibilitat de moviment */
@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;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    opacity: 1;
  }
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ================================================================
   17. RESPONSIVE — breakpoints addicionals
   ================================================================ */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edition-header {
    flex-direction: column;
  }

  .edition-raised {
    align-self: flex-start;
  }

  .teams-grid-2026 {
    grid-template-columns: 1fr;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

@media (min-width: 768px) {
  .edition-body {
    gap: 0;
  }
}

/* ================================================================
   17b. COL·LABORADORS — Secció dedicada
   ================================================================ */
.collaborators-section {
  background: var(--color-bg-alt);
}

.collaborators-section .section__intro {
  max-width: 640px;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--color-text-muted);
}

.collaborators-section .section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.collabs-premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.collabs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.collab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.collab-card:hover {
  border-color: rgba(45, 106, 79, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: var(--color-primary);
}

.collab-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
}

.collab-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: var(--transition);
}

.collab-card:hover .collab-card__media img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Logos pensats per a fons fosc — els invertim sobre fons blanc */
.collab-card__media img[src*="casino-prado"] {
  filter: grayscale(100%) invert(1);
}

.collab-card:hover .collab-card__media img[src*="casino-prado"] {
  filter: invert(1);
}

.collab-card__name {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Premium — més grans i destacats */
.collab-card--premium {
  padding: 2rem 1.5rem;
  border-color: rgba(212, 168, 67, 0.45);
  box-shadow: var(--shadow-sm), 0 0 0 3px rgba(212, 168, 67, 0.08);
}

.collab-card--premium:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow), 0 0 0 4px rgba(212, 168, 67, 0.12);
}

.collab-card--premium .collab-card__media {
  height: 110px;
}

.collab-card--premium .collab-card__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

@media (max-width: 960px) {
  .collabs-premium {
    grid-template-columns: repeat(2, 1fr);
  }
  .collabs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .collabs-premium {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .collabs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .collab-card {
    padding: 1rem 0.5rem;
  }
  .collab-card--premium {
    padding: 1.25rem 1rem;
  }
  .collab-card--premium .collab-card__media {
    height: 80px;
  }
  .collab-card__media {
    height: 55px;
  }
}

/* ================================================================
   18. PRINT (per si de cas)
   ================================================================ */
@media print {
  #main-nav,
  #nav-burger,
  .hero-scroll,
  #lightbox { display: none !important; }
  body { color: #000; }
}
