/* ============================================================
   FUTBOLBOTONS.CAT — Stylesheet
   ============================================================ */

/* --- Fonts (self-hosted, no Google CDN) -------------------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Variables -------------------------------------------- */
:root {
  --color-dark:    #0d2240;
  --color-dark-2:  #0a1a30;
  --color-gold:    #c8952a;
  --color-gold-lt: #e0b050;
  --color-light:   #f7f6f1;
  --color-white:   #ffffff;
  --color-text:    #1c1c2e;
  --color-muted:   #6b6a72;
  --color-border:  #e0dbd0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 68px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --gap: 24px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --trans: 0.3s var(--ease);
  --trans-slow: 0.6s var(--ease);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Utilities --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-body {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 56ch;
}

.section--dark .section-body,
.section--dark .eyebrow { color: rgba(255,255,255,0.55); }
.section--dark .eyebrow { color: var(--color-gold); }
.section--dark .section-title { color: #fff; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--trans);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-gold);
  color: #fff;
}
.btn--primary:hover { background: var(--color-gold-lt); transform: translateY(-1px); }
.btn--outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--dark {
  background: var(--color-dark);
  color: #fff;
}
.btn--dark:hover { background: var(--color-dark-2); transform: translateY(-1px); }
.btn--header {
  background: var(--color-gold);
  color: #fff;
  padding: 9px 22px;
  font-size: 0.875rem;
  border-radius: 100px;
}
.btn--header:hover { background: var(--color-gold-lt); }

/* --- Header / Nav ------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(13, 34, 64, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--trans);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.header-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.header-logo span { color: var(--color-gold); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: color var(--trans);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.site-nav a:hover,
.site-nav a.active { color: #fff; }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--trans);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sections (shared) ------------------------------------- */
/*
  Optical centering with a fixed header:
  The visible area starts at header-height (68px). Geometric center
  of the visible area = 50vh + header/2. But the human eye perceives
  balance ~20px above geometric center (optical center principle).
  To achieve this: padding-bottom must exceed the non-header portion
  of padding-top. Here: top-buffer=18px, bottom=60px → content sits
  ~20px above geometric visual center → optically balanced.
*/
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(14px, 2vh, 24px)) 0 clamp(52px, 7vh, 80px);
}

.section--dark { background: var(--color-dark); color: #fff; }
.section--light { background: var(--color-light); color: var(--color-text); }
.section--white { background: var(--color-white); color: var(--color-text); }

/* two-column inner */
.section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.section-inner--60-40 { grid-template-columns: 1.5fr 1fr; }
.section-inner--40-60 { grid-template-columns: 1fr 1.5fr; }

/* Fade-in animation */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate].in-view { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  animation: bounceDown 2.2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero-section {
  padding-top: var(--header-h);
  padding-bottom: clamp(32px, 5vh, 64px);
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.78;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(13,34,64,0.97) 0%,
    rgba(13,34,64,0.82) 55%,
    rgba(13,34,64,0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--color-gold);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 50ch;
}
.hero-body {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   SECTION 2 — L'ESPORT
   ============================================================ */
.esport-section { background: var(--color-white); }
.esport-section .section-body { color: var(--color-muted); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.feature-block {
  background: var(--color-light);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--color-border);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.feature-block:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(200,149,42,0.12);
}
.feature-icon {
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: 10px;
  display: block;
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.feature-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.why-card {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-top: 12px;
}
.why-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 10px;
}
.why-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

.section-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
}
.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  height: clamp(220px, 28vw, 400px);
}
.image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.image-wrapper--tall { height: clamp(260px, 33vw, 460px); }

/* ============================================================
   SECTION 3 — COM ES JUGA
   ============================================================ */
.com-es-juga-section { background: var(--color-dark-2); }

.com-es-juga-section .section-body { color: rgba(255,255,255,0.6); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.how-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: background var(--trans), border-color var(--trans);
}
.how-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,149,42,0.4);
}
.how-card-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.how-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.how-card-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.highlight-sentence {
  margin-top: 36px;
  padding: 20px 24px;
  border-left: 3px solid var(--color-gold);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   SECTION 4 — FITES
   ============================================================ */
.fites-section { background: var(--color-light); }

.timeline {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin: 28px 0 20px;
}
.timeline-track {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  height: 2px;
  background: var(--color-border);
}
.timeline-progress {
  height: 100%;
  background: var(--color-gold);
  width: 0;
  transition: width 1.2s var(--ease);
}
.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.timeline-dot {
  width: 20px; height: 20px;
  background: var(--color-gold);
  border: 3px solid var(--color-light);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-gold);
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: transform var(--trans);
}
.timeline-item:hover .timeline-dot { transform: scale(1.2); }
.timeline-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text);
  max-width: 110px;
  line-height: 1.4;
}
.timeline-label strong {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.fites-note {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--color-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  margin-top: 4px;
}

/* ============================================================
   SECTION 5 — CLUBS
   ============================================================ */
.clubs-section { background: var(--color-dark); }
.clubs-section .section-body { color: rgba(255,255,255,0.55); }

.clubs-header { margin-bottom: 24px; }

/* Carousel */
.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 12px 0;
}
.carousel-wrapper:active { cursor: grabbing; }

@media (min-width: 769px) {
  .carousel-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  }
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 0;
  will-change: transform;
}

.carousel-item {
  flex-shrink: 0;
  width: 140px;
  margin-right: 20px;
  transition: transform var(--trans), opacity var(--trans);
}
.carousel-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: background var(--trans), border-color var(--trans);
  height: 130px;
  justify-content: center;
}
.carousel-item.is-active .carousel-card {
  background: rgba(200,149,42,0.12);
  border-color: var(--color-gold);
  box-shadow: 0 0 24px rgba(200,149,42,0.2);
}
.carousel-card img {
  width: 60px; height: 60px;
  object-fit: contain;
  border-radius: 6px;
}
.carousel-abbr {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.carousel-item.is-active .carousel-abbr { color: var(--color-gold); }

/* Club detail panel */
.club-detail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  min-height: 110px;
  transition: var(--trans);
}
.club-detail.is-linked {
  cursor: pointer;
}
.club-detail.is-linked:hover {
  border-color: var(--color-gold);
  background: rgba(200,149,42,0.07);
}
.club-detail-logo {
  width: 80px; height: 80px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}
.club-detail-info { text-align: left; }
.club-detail-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  transition: opacity 0.25s ease;
}
.club-detail-location {
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-top: 4px;
  transition: opacity 0.25s ease;
}
.club-detail-instagram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.club-detail-instagram:hover {
  color: #fff;
}

.clubs-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ============================================================
   SECTION 6 — COMPETICIONS
   ============================================================ */
.competicions-section { background: var(--color-white); }

.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.comp-card {
  background: var(--color-dark);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(13,34,64,0.2);
}
.comp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-gold);
}
.comp-card-icon {
  font-size: 1.75rem;
  margin-bottom: 20px;
  display: block;
  color: var(--color-gold);
}
.comp-card-icon--img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}
.comp-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.comp-card-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.comp-disclaimer {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  font-style: italic;
}

.comp-link {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.comp-link p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.comp-photos {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(260px, 33vw, 460px);
}
.comp-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.comp-photo.is-active {
  opacity: 1;
}

/* ============================================================
   SECTION 9 — XARXES SOCIALS
   ============================================================ */
/* Fons fosc — coherent amb Clubs */
.xarxes-section { background: var(--color-dark-2); }
.xarxes-section .section-title { color: #fff; }

/* Mode estàtic (pocs ítems) */
.carousel-static {
  overflow: visible;
  cursor: default;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.carousel-static .carousel-track {
  position: static;
  display: flex;
  justify-content: center;
  width: 100%;
  transform: none !important;
}
.carousel-static .carousel-item { cursor: pointer; }

/* Thumbnail + badge de plataforma */
.social-card-media {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.social-card-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}
.social-card-platform-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Icona gran quan no hi ha thumbnail */
.social-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.social-detail-icon-el {
  font-size: 4.5rem;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

#social-detail .club-detail-name { font-size: 1.15rem; }

/* ============================================================
   SECTION 7 — CALENDARI
   ============================================================ */
.calendari-section .section-body { color: rgba(255,255,255,0.6); max-width: 60ch; }

.calendar-wrapper {
  margin-top: 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.calendar-wrapper iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: none;
}

@media (max-width: 768px) {
  .calendar-wrapper iframe { height: 420px; }
}

/* ============================================================
   SECTION 8 — TROBA EL TEU CLUB
   ============================================================ */
.troba-section { background: var(--color-dark-2); }
.troba-section .section-body { color: rgba(255,255,255,0.6); }

.troba-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.search-module {
  margin-top: 20px;
}
.search-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--trans);
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-input:focus { border-color: var(--color-gold); }
.search-secondary {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

.info-card {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(200,149,42,0.08);
  border: 1px solid rgba(200,149,42,0.25);
  border-radius: var(--radius-md);
}
.info-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
}
.info-card-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

/* Map */
.map-container {
  height: clamp(360px, 45vw, 520px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
/* Custom Leaflet marker */
.club-marker-dot {
  width: 14px; height: 14px;
  background: var(--color-gold);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform 0.2s;
}
.leaflet-marker-icon:hover .club-marker-dot { transform: scale(1.4); }
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
  font-family: var(--font-body) !important;
}
.popup-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.popup-location { font-size: 0.8rem; color: var(--color-muted); }
.popup-address, .popup-phone, .popup-hours { font-size: 0.78rem; color: var(--color-muted); margin-top: 2px; }
.popup-email, .popup-website { font-size: 0.8rem; color: var(--color-dark); margin-top: 4px; }
.popup-email a, .popup-website a { color: var(--color-gold); text-decoration: none; }
.popup-email a:hover, .popup-website a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--color-dark-2);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo span { color: var(--color-gold); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.4; max-width: 28ch; }

.footer-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color var(--trans); }
.footer-nav a:hover { color: var(--color-gold); }

.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  transition: var(--trans);
}
.footer-social-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-links-sm { display: flex; gap: 20px; }
.footer-links-sm a { font-size: 0.8rem; color: rgba(255,255,255,0.35); transition: color var(--trans); }
.footer-links-sm a:hover { color: var(--color-gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .section-inner,
  .section-inner--60-40,
  .section-inner--40-60 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .image-wrapper,
  .image-wrapper--tall { height: clamp(220px, 45vw, 380px); }

  .comp-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }

  .troba-inner { grid-template-columns: 1fr; }
  .map-container { height: 320px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,26,48,0.98);
    backdrop-filter: blur(12px);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    z-index: 99;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a {
    display: block;
    padding: 12px clamp(20px, 5vw, 60px);
    font-size: 1rem;
  }
  .site-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .btn--header { display: none; }

  .hero-title { font-size: clamp(2.2rem, 10vw, 4rem); }
  .hero-ctas { flex-direction: column; gap: 12px; }

  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }

  .timeline { flex-direction: column; gap: 0; }
  .timeline-track { display: none; }
  .timeline-item { flex-direction: row; align-items: flex-start; gap: 16px; text-align: left; width: 100%; padding: 12px 0; border-left: 2px solid var(--color-border); padding-left: 20px; }
  .timeline-item:first-child { border-top: none; }
  .timeline-dot { margin-bottom: 0; margin-top: 2px; flex-shrink: 0; }
  .timeline-label { max-width: none; }

  .carousel-item { width: 120px; margin-right: 16px; }
  .carousel-card { height: 110px; }
  .carousel-card img { width: 48px; height: 48px; }


  .search-row { flex-direction: column; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
