/* ============================================================
   LA PISCINA DE LA SELVA — v2.0
   Estètica: B/N editorial + accents corporatius
   Referència visual: posts Instagram (imatge B/N + accent color)
   ============================================================ */

/* NOTA: les fonts Bebas Neue i Sora s'autohost des de /fonts/fonts.css
   (es carrega com a <link> separat a cada pàgina, abans de style.css) */

:root {
  /* Brand — accents only */
  /* Llima és ara el color d'acció principal */
  --green: #bbce06;
  --green-dark: #9aab00;
  --blue: #52b1e9;
  --blue-dark: #3a8fc4;
  --lime: #bbce06;
  --lime-dark: #9aab00;
  /* Verd original — detall fi (fletxes, línies, underlines) */
  --green-orig:      #3aa036;
  --green-orig-dark: #2d7d2a;

  /* CTA buttons — blau corporatiu */
  --cta:      #40b4e6;
  --cta-dark: #2d9acc;

  /* Core palette: B/N driven */
  --black: #0a0a0a;
  --black-soft: #141414;
  --gray-950: #1a1a1a;
  --gray-900: #222222;
  --gray-800: #333333;
  --gray-600: #666666;
  --gray-400: #999999;
  --gray-200: #e0e0e0;
  --gray-100: #f2f2f2;
  --white: #ffffff;
  --off-white: #f8f8f6;

  /* Functional */
  --text: var(--black);
  --text-muted: var(--gray-600);
  --text-light: var(--gray-400);
  --accent: var(--green);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Sora', sans-serif;

  /* Spacing */
  --s-xs: 0.5rem;
  --s-sm: 1rem;
  --s-md: 1.5rem;
  --s-lg: 2.5rem;
  --s-xl: 4rem;
  --s-2xl: 6rem;
  --s-3xl: 8rem;

  /* Layout */
  --container: 1240px;
  --nav-h: 72px;
  --radius: 0px;
  --radius-sm: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
  --dur-fast: 0.25s;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: var(--nav-h, 70px); }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
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; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: 0.04em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
/* h2 dins contenidors meitat: font reduïda perquè càpiguen sense salt */
.split__content h2,
.parallax-section h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
/* Leds també balancejats */
.lead { text-wrap: balance; }
h3 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h4 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
p { font-size: 0.95rem; }
.lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }
.lead--light { color: var(--gray-400); }

/* Accent line on headings */
.h-accent { position: relative; display: inline-block; }
.h-accent::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 50px; height: 3px; background: var(--green-orig); }

/* === Layout === */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-md); }
.section { padding: var(--s-3xl) 0; position: relative; }
.section--sm { padding: var(--s-xl) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--black { background: var(--black-soft); color: var(--white); }
.section--gray { background: var(--gray-100); }
.section--offwhite { background: var(--off-white); }

/* === Parallax Sections === */
.parallax-section {
  position: relative;
  padding: var(--s-3xl) 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
}
.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.7);
  z-index: 1;
}
.parallax-section > .container { position: relative; z-index: 2; }
/* B/N filter on parallax backgrounds */
.parallax-section { filter: none; }
.parallax-section--bw { background-blend-mode: luminosity; background-color: #333; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.btn--primary { background: var(--cta); color: var(--white); }
.btn--primary:hover { background: var(--cta-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(64,180,230,0.35); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--gray-900); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn--outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--outline-dark { background: transparent; color: var(--black); border: 2px solid var(--gray-200); }
.btn--outline-dark:hover { border-color: var(--black); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 2.8rem; font-size: 0.88rem; }
.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.75rem; }
.btn-group { display: flex; gap: var(--s-sm); flex-wrap: wrap; }

/* === Navigation === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--dur) var(--ease);
}
.nav--transparent { background: transparent; }
.nav--solid { background: rgba(10,10,10,0.95); backdrop-filter: blur(20px); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--s-xl);
}
.nav__logo img { height: 36px; filter: brightness(0) invert(1); transition: all var(--dur-fast); }
.nav__links { display: flex; align-items: center; gap: 0; }
.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  color: rgba(255,255,255,0.85);
  transition: color var(--dur-fast);
}
.nav__link:hover, .nav__link--active { color: var(--lime); }
.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 1001; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: all var(--dur-fast); }

/* Mobile */
.nav__mobile {
  display: none; position: fixed; inset: 0;
  background: var(--black); z-index: 999;
  padding: calc(var(--nav-h) + 2rem) var(--s-md) var(--s-lg);
  flex-direction: column; gap: 0.15rem; overflow-y: auto;
}
.nav__mobile.active { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  padding: 0.3rem 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-900);
  transition: color var(--dur-fast);
}
.nav__mobile a:hover { color: var(--green); }
.nav__mobile .btn { margin-top: var(--s-sm); justify-content: center; }

/* === Hero with Video === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--s-3xl);
  overflow: hidden;
  background: #000; /* fons negre durant la càrrega del primer slide */
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000; /* sense flash gris quan canvien slides */
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* B/N treatment */
  filter: grayscale(100%) contrast(1.1);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.5) 40%,
    rgba(10,10,10,0.2) 70%,
    rgba(10,10,10,0.4) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--s-md);
}
.hero__badge::before { content: ''; width: 30px; height: 2px; background: var(--lime); }
.hero h1 { margin-bottom: var(--s-md); }
.hero h1 .accent { color: var(--lime); }
.hero .lead { color: rgba(255,255,255,0.5); margin-bottom: var(--s-lg); max-width: 550px; }
.hero__scroll {
  position: absolute;
  bottom: var(--s-lg);
  right: var(--s-md);
  z-index: 2;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

/* === Stats === */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gray-900); }
.stats.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  padding: var(--s-lg) var(--s-md);
  text-align: center;
  border-right: 1px solid var(--gray-900);
}
.stat:last-child { border-right: none; }
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat__number .accent { color: var(--lime); }
.stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* === Section Headers === */
.sh { margin-bottom: var(--s-xl); }
.sh--center { text-align: center; }
.sh__overline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s-sm);
}
.sh__overline::before { content: ''; width: 24px; height: 2px; background: var(--green-orig); }
.section--dark .sh__overline { color: var(--lime); }
.section--gray .sh__overline { color: var(--blue); }
.section--gray .sh__overline::before { background: var(--blue); }
.section--dark .sh__overline::before { background: var(--lime); }
.sh h2 { margin-bottom: var(--s-sm); }
.sh .lead { max-width: 600px; }
.sh--center .lead { margin: 0 auto; }

/* === Grid === */
.grid { display: grid; gap: var(--s-md); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* === Feature Split === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}
.split__image {
  position: relative;
  overflow: hidden;
}
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: filter var(--dur) var(--ease);
}
.split:hover .split__image img { filter: grayscale(0%); }
.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-xl);
}
.split--dark .split__content { background: var(--black); color: var(--white); }
.split--gray .split__content { background: var(--gray-100); }
.split--reverse .split__image { order: 1; }

/* === Cards — minimal, B/N forward === */
.card {
  background: var(--white);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: transparent; }
.card__img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(60%);
  transition: all var(--dur) var(--ease);
}
.card:hover .card__img img { filter: grayscale(0%); transform: scale(1.04); }
.card__body { padding: var(--s-md); }
.card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.card__tag--blue { color: var(--blue); }
.card__tag--green { color: var(--green-orig); }
.card__tag--red { color: #d94f4f; }
.card__tag--new { background: var(--lime); color: var(--black); padding: 0.15rem 0.5rem; font-size: 0.6rem; }

/* ── Quotes (quotes.html) ── */
/* Cards superiors — 3 quotes destacades */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  max-width: 1100px;
  margin: 0 auto;
}
.pc {
  background: var(--white);
  padding: var(--s-lg) var(--s-md) var(--s-md);
  border-top: 4px solid var(--lime);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pc__nom {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}
.pc__preu {
  font-family: var(--font-display);
  font-size: 3.6rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--black);
}
.pc__preu sup {
  font-size: 0.4em;
  vertical-align: super;
  margin-right: 0.05em;
  color: var(--text-muted);
  font-weight: 400;
}
.pc__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pc__list {
  list-style: none;
  padding: 0;
  margin: var(--s-sm) 0 var(--s-md);
  display: grid;
  gap: 0.4rem;
  flex: 1;
}
.pc__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--gray-900);
}
.pc__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-orig);
  font-weight: 700;
}

/* Blocs de la taula — Horaris reduïts, Familiars, Especials, etc. */
.q-bloc {
  margin-bottom: var(--s-lg);
}
.q-bloc-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--black);
}
.q-cap-cols {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.q-cap-cols .q-cap-col {
  text-align: right;
}
.q-cap-cols .q-cap-col:first-child {
  text-align: left;
  visibility: hidden; /* placeholder per a la primera columna */
}
.q-taula {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}
.q-taula tr {
  border-bottom: 1px solid var(--gray-200);
}
.q-taula tr:last-child {
  border-bottom: none;
}
.q-taula td {
  padding: 0.7rem 0;
  vertical-align: middle;
}
.q-nom {
  width: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}
.q-nom small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.q-preu {
  width: 90px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--black);
}
.q-preu-sem {
  width: 90px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.q-nota {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.6rem;
  padding: 0.4rem 0;
}

/* Bloc Matrícula i taxes — layout diferent (no taula) */
.q-taxes {
  display: grid;
  gap: 0;
}
.q-taxa {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--s-md);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.q-taxa:last-child {
  border-bottom: none;
}
.q-taxa--dest {
  border-bottom: 2px solid var(--black);
}
.q-taxa--dest .q-taxa-nom {
  font-weight: 700;
  color: var(--black);
}
.q-taxa-nom {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}
.q-taxa-nom small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.q-taxa-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--black);
  text-align: right;
  white-space: nowrap;
}
.q-taxa-val small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 0.25rem;
}

.q-peu {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--s-md);
  padding-top: var(--s-md);
  border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
  .price-cards { grid-template-columns: 1fr; max-width: 420px; }
  .q-cap-cols { grid-template-columns: 1fr 70px; font-size: 0.58rem; }
  .q-preu, .q-preu-sem { width: 70px; font-size: 1rem; }
  .q-nom { font-size: 0.85rem; }
  .q-nom small { font-size: 0.72rem; }
  .q-bloc-title { font-size: 1.1rem; }
  .q-taxa { grid-template-columns: 1fr auto; gap: 0.6rem; align-items: baseline; }
  .q-taxa-nom { font-size: 0.85rem; }
  .q-taxa-nom small { font-size: 0.7rem; }
  .q-taxa-val { text-align: right; font-size: 1.15rem; white-space: nowrap; }
  .q-taxa-val small { display: inline; font-size: 0.65rem; margin-left: 0.2rem; }
}

@media (max-width: 480px) {
  .q-cap-cols { grid-template-columns: 1fr 60px; }
  .q-preu, .q-preu-sem { width: 60px; }
  .q-taxa-val { font-size: 1rem; }
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.card__text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* === Overlay Cards (instal·lacions) === */
.ocard {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ocard img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(70%);
  transition: all 0.7s var(--ease);
}
.ocard:hover img { filter: grayscale(0%); transform: scale(1.05); }
.ocard:hover .ocard__title { color: var(--lime); }
.ocard__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-lg) var(--s-md) var(--s-md);
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
  color: var(--white);
}
.ocard__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.3rem;
}
.ocard__title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ocard__sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* === Pricing === */
.price-card {
  padding: var(--s-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--dur) var(--ease);
  position: relative;
  background: var(--white);
}
.price-card:hover { border-color: var(--cta); transform: translateY(-4px); }
/* price-card--pop removed: totes les targetes iguals */
.price-card__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.price-card__amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--black);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.price-card__amount .eur { font-size: 1.5rem; }
.price-card__per { font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--s-md); text-transform: uppercase; letter-spacing: 0.1em; }
.price-card__list { text-align: left; margin-bottom: var(--s-md); }
.price-card__list li {
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.price-card__list li:last-child { border-bottom: none; }
.price-card__list li::before { content: '→'; color: var(--green-orig); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* === Schedule/Table === */
.table-wrap {
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  text-align: left;
}
.table-wrap td { padding: 0.75rem 1rem; font-size: 0.88rem; border-bottom: 1px solid var(--gray-100); }
.table-wrap tr:hover { background: var(--gray-100); }

/* === Info boxes === */
.ibox {
  display: flex;
  gap: var(--s-md);
  align-items: flex-start;
  padding: var(--s-md);
  background: var(--gray-100);
  transition: background var(--dur-fast);
}
.ibox:hover { background: var(--gray-200); }
.ibox__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ibox__icon--green { background: var(--green); color: var(--black); }
.ibox__icon--blue { background: var(--blue); }
.ibox h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; text-transform: none; letter-spacing: 0; margin-bottom: 0.15rem; }
.ibox p { font-size: 0.85rem; color: var(--text-muted); }

/* === Accordion === */
.acc-item { border-bottom: 1px solid var(--gray-200); }
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--s-md) 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.acc-header:hover { color: var(--blue); }
.acc-header .icon { font-size: 1.2rem; transition: transform var(--dur-fast); color: var(--blue); }
.acc-item.active .acc-header .icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.acc-item.active .acc-body { max-height: 600px; }
.acc-body__inner { padding-bottom: var(--s-md); color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* === Form === */
.form-group { margin-bottom: var(--s-sm); }
.form-group label { display: block; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--black); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-sm); }

/* === Iframe responsive === */
.iframe-wrap {
  position: relative;
  width: 100%;
  min-height: 700px;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.iframe-wrap iframe {
  width: 100%;
  height: 700px;
  border: none;
}

/* === Deporsite (iframe extern integrat) === */
.section--deporsite {
  background: #fff;
  padding: var(--s-2xl) 0 var(--s-xl);
}
.section--deporsite .sh__overline { color: var(--blue); }
.section--deporsite .sh__overline::before { background: var(--blue); }
/* Default: contenidor a tot l'ample del viewport (per activitats.html, fora de container) */
.deporsite-wrap {
  position: relative;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
}
/* Override: quan el wrap està dins d'un container o panell amb ample propi, no trencar */
.container .deporsite-wrap,
.oc-panel .deporsite-wrap {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.deporsite-wrap iframe {
  display: block;
  width: 100%;
  height: 1600px; /* alt suficient per contenir agenda setmanal sense scroll intern */
  border: none;
  background: #fff;
}
.deporsite-fallback {
  display: none;
  text-align: center;
  padding: var(--s-xl) var(--s-md);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
}
.deporsite-fallback__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-md);
  background: var(--lime);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.deporsite-fallback__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: var(--s-sm);
}
.deporsite-fallback__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto var(--s-md);
}
.deporsite-fallback__note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: var(--s-sm);
}
@media (max-width: 768px) {
  /* En mòbil amaguem l'iframe i mostrem el fallback amb el botó */
  .deporsite-wrap iframe { display: none; }
  .deporsite-wrap.cc-managed .cc-placeholder { display: none; }
  .deporsite-fallback { display: block; }
}

/* === Map === */
.map-wrap { height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; filter: grayscale(100%) contrast(1.1); transition: filter var(--dur); }
.map-wrap:hover iframe { filter: grayscale(0%); }

/* === Page Header === */
.page-header {
  background: var(--black);
  padding: calc(var(--nav-h) + var(--s-2xl)) 0 var(--s-2xl);
  position: relative;
  overflow: hidden;
}
.page-header__bg { position: absolute; inset: 0; opacity: 0.15; }
.page-header__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.page-header__content { position: relative; z-index: 2; color: var(--white); }
.page-header .breadcrumbs { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-bottom: var(--s-sm); letter-spacing: 0.05em; }
.page-header .breadcrumbs a { color: rgba(255,255,255,0.3); }
.page-header .breadcrumbs a:hover { color: var(--lime); }
.page-header .sh__overline { color: var(--lime); }
.page-header .sh__overline::before { background: var(--lime); }
.page-header h1 { max-width: 1100px; }
.page-header .lead { color: rgba(255,255,255,0.4); max-width: 550px; }

/* === Footer — old grid styles removed, see v10 redisseny below === */
.footer__social { display: flex; gap: var(--s-sm); }
.footer__social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--gray-900); color: var(--gray-600); font-size: 1rem; padding: 0; transition: all var(--dur-fast); }
.footer__social a:hover { background: var(--blue); color: var(--white); }

/* === Floating CTAs === */
.floating-cta { position: fixed; bottom: var(--s-md); right: var(--s-md); z-index: 900; display: flex; flex-direction: column; gap: 0.6rem; }
.fcta {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all var(--dur-fast);
}
.fcta:hover { transform: scale(1.1); }
.fcta--wa { background: #25D366; }
.fcta--phone { background: var(--black); }
@media (max-width: 768px) {
  .floating-cta { bottom: 0.8rem; right: 0.8rem; gap: 0.4rem; }
  .fcta { width: 44px; height: 44px; font-size: 1.1rem; opacity: 0.92; }
}

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(25px); transition: all 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* Gallery */
.gallery { columns: 4; column-gap: 3px; }
.gallery__item { break-inside: avoid; overflow: hidden; margin-bottom: 3px; display: block; }
.gallery__item img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(80%); transition: all 0.6s var(--ease); }
.gallery__item:hover img { filter: grayscale(0%); transform: scale(1.04); }
.gallery__item--wide { column-span: all; }
.gallery__item--wide img { max-height: 380px; object-fit: cover; }

/* === Responsive === */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split__image { aspect-ratio: 16/9; }
  .split--reverse .split__image { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* stats--3 manté 3 columnes en tablet — hi caben bé */
  /* En graella 2x2, treure la línia vertical dels senars de cada fila */
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--gray-900); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --s-xl: 3rem; --s-2xl: 4rem; --s-3xl: 5rem; }
  .container { padding: 0 1.1rem; }
  .hero__inner { padding: 0 1.1rem; padding-right: 75px; }
  .nav__inner { padding: 0 0.8rem; }
  .nav__links, .nav__cta--desktop { display: none; }
  .nav__toggle { display: flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats.stats--3 { grid-template-columns: 1fr; }
  .stats.stats--3 .stat { border-right: none; border-bottom: 1px solid var(--gray-900); }
  .stats.stats--3 .stat:last-child { border-bottom: none; }
  .gallery { columns: 2; }
  .gallery__item--wide { column-span: none; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .footer__bottom { flex-direction: column; gap: var(--s-sm); text-align: center; }
  .hero { min-height: 100svh; align-items: flex-end; padding-bottom: var(--s-xl); }
  .hero__logo-intro { display: none !important; } /* Hide logo on mobile */
  .hero__scroll { display: none; }
  .parallax-section { background-attachment: scroll; } /* Fix iOS */
  .split__content { padding: var(--s-lg) 0.4rem; }
  .iframe-wrap, .iframe-wrap iframe { min-height: 500px; height: 500px; }
  /* Fix inline grids — collapse 2-col layouts whether they use spaces or not */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Si encara queda un grid inline amb 1fr 1fr, fora el gap exagerat */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { gap: var(--s-md) !important; }
  .map-wrap { aspect-ratio: 4/3; }
  .map-wrap iframe { width: 100%; height: 100%; }
  /* Inscripció sidebar */
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Accordion més compacte a mòbil */
  .acc-header { font-size: 1.15rem; padding: var(--s-sm) 0; }
  .acc-body__inner { font-size: .88rem; }
  /* Pàgines senceres: títols més continguts */
  .page-header { padding: calc(var(--nav-h) + var(--s-lg)) 0 var(--s-lg); }
}
@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group .btn { max-width: 280px; justify-content: center; }
  /* Plugin ocupació piscina petita — 2 columnes a mòbils petits */
  .oc-petita-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Utilities */
.text-center { text-align: center; }
.tc-green { color: var(--green); }
.tc-lime { color: var(--lime); }
.tc-blue { color: var(--blue); }
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }

/* ── FOOTER REDISSENY v10 — fons negre amb imatge B/N ── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 0;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('imatges/piscina_carrils_01.webp') center/cover no-repeat;
  filter: grayscale(100%) brightness(0.3);
  opacity: 0.4;
  z-index: 0;
}
.footer__top, .footer__bottom {
  position: relative;
  z-index: 1;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: var(--s-xl) var(--s-xl);
  border-bottom: 1px solid var(--gray-900);
}
.footer__contact-left,
.footer__contact-right {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer__contact-right { align-items: flex-end; text-align: right; }
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer__contact-item:hover { color: var(--lime); }
.footer__contact-item i {
  color: var(--lime);
  width: 18px;
  text-align: center;
  font-size: 1.1rem;
}
.footer__contact-right .footer__contact-item {
  flex-direction: row-reverse;
}
.footer__logo-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.footer__logo-center img {
  width: 120px;
  height: auto;
}
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.2rem var(--s-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 1rem;
  color: var(--white);
  gap: var(--s-md);
}
.footer__by {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--gray-600);
  justify-self: start;
}
.footer__by img {
  height: 34px; /* abans 28px → +20% */
  width: auto;
  opacity: .6;
  transition: opacity var(--dur-fast);
}
.footer__by:hover img { opacity: 1; }
.footer__legal {
  display: flex;
  gap: 1.5rem;
  justify-self: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__legal a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: .75rem;
  transition: color var(--dur-fast);
}
.footer__legal a:hover { color: var(--lime); }
/* Espai a la dreta del bottom — buit, però manté l'equilibri visual */
.footer__bottom::after {
  content: '';
  justify-self: end;
}
/* Eliminar estils old footer__grid */
.footer__grid { display: none; }

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: var(--s-lg) 0.4rem;
    justify-items: center;
  }
  .footer__contact-left { order: 1; align-items: center; text-align: center; }
  .footer__logo-center { order: 2; align-items: center; justify-content: center; }
  .footer__contact-right { order: 3; align-items: center; text-align: center; }
  .footer__contact-left .footer__contact-item,
  .footer__contact-right .footer__contact-item {
    flex-direction: row;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: .04em;
  }
  .footer__contact-item i { font-size: 1rem; }
  .footer__bottom {
    grid-template-columns: 1fr;
    gap: .9rem;
    padding: 1.1rem 0.4rem 6.5rem; /* marge per floating CTAs */
    text-align: center;
    justify-items: center;
  }
  .footer__by { justify-self: center; }
  .footer__legal { justify-self: center; justify-content: center; gap: 1rem .9rem; }
  .footer__bottom::after { display: none; }
}

/* ── HERO REDISSENY v9 — vídeos rotatius ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background .9s ease;
}
.hero__overlay--dark {
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.1)  40%,
    rgba(10,10,10,0.55) 100%);
}
.hero__overlay--light {
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.0) 40%,
    rgba(10,10,10,0.2)   100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--s-xl);
  max-width: 100%;
}
.hero__content {
  max-width: 640px;
}
/* Text sobre fons fosc */
.hero__content--dark h1,
.hero__content--dark .hero__badge { color: #fff; }
.hero__content--dark .lead { color: rgba(255,255,255,0.7); }
.accent-v { color: var(--lime); }
/* Text sobre fons clar (vídeo aqua) */
.hero__content--light h1,
.hero__content--light .hero__badge { color: var(--black); }
.hero__content--light .lead { color: var(--gray-600); }
.accent-dark { color: var(--green-dark, #2d7d2a); }
/* Botó outline sobre fons clar */
.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border: 2px solid rgba(0,0,0,0.4);
}
.btn--outline-dark:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* Barra de progrés */
.hero__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 3;
}
.hero__progress-bar {
  height: 100%;
  background: var(--lime);
  width: 0%;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 1.8rem; right: var(--s-xl);
  color: rgba(255,255,255,0.4);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 3;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.3);
  margin: .5rem auto 0;
}

/* Stats bar widescreen */
.stats { padding: var(--s-md) var(--s-xl); }

/* Sections widescreen */
.section { padding: var(--s-3xl) var(--s-xl); }
.section--sm { padding: var(--s-xl) var(--s-xl); }
.parallax-section { padding: var(--s-3xl) var(--s-xl); }

/* Nav logo mida */
.nav__logo img { height: 36px; filter: brightness(0) invert(1); }

/* ── FIX HERO FULLWIDTH ── */
.hero {
  position: relative !important;
  width: 100% !important;
  left: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}
.hero__media {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
}
.hero__media video {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.hero__overlay {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ── HERO logo intro ── */
.hero__logo-intro {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  z-index: 3;
  text-align: center;
  transition: opacity 1.2s ease;
}
.hero__logo-intro img {
  width: 320px;
  height: auto;
  filter: none;
  opacity: 0.9;
  margin: 0 auto;
}
.hero__logo-intro p {
  display: none;
}

/* Animació d'entrada — reveal vertical com l'aigua que puja */
.hero__logo-intro.is-revealing img {
  animation: logoRevealUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes logoRevealUp {
  0% {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    transform: translateY(8px);
  }
  60% {
    opacity: 0.9;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* ── Hero overlay aqua ── */
.hero__overlay--aqua {
  background: linear-gradient(to bottom,
    rgba(82,177,233,0.35) 0%,
    rgba(58,160,54,0.15)  50%,
    rgba(10,10,10,0.55)   100%);
}

/* ── Secció nom complet ── */
.section-nom-centre {
  background: var(--black);
  padding: var(--s-xl) var(--s-xl);
}
.nom-centre__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-xl);
}
.nom-centre__tagline {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: .5rem;
}
.nom-centre__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: .04em;
}
.nom-centre__desc {
  max-width: 480px;
  text-align: right;
}
.nom-centre__desc p {
  font-size: .85rem;
  color: var(--gray-400);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .nom-centre__inner { flex-direction: column; text-align: center; }
  .nom-centre__desc { text-align: center; }
  .section-nom-centre { padding: 3% 0.4rem !important; }
}

/* ── Plugin gran 2 columnes ── */
.oc-gran-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.oc-gran-col-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white, #fff);
  background: #0a0a0a;
  padding: .3rem .6rem;
  margin-bottom: .4rem;
  display: inline-block;
}
@media (max-width: 700px) {
  .oc-gran-2col { grid-template-columns: 1fr; }
}

/* ── Galeria homogènia ── */
.gallery {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 3px !important;
  columns: unset !important;
}
.gallery__item {
  aspect-ratio: 4/3 !important;
  overflow: hidden;
  break-inside: unset !important;
  margin-bottom: 0 !important;
}
.gallery__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.gallery__item--wide {
  grid-column: unset !important;
  column-span: unset !important;
  aspect-ratio: 4/3 !important;
}
.gallery__item--wide img { max-height: unset !important; }

@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr) !important; }
  .hero__logo-intro img { width: 200px; }
  .nom-centre__title { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr !important; }
}

/* ── Footer logo gran ── */
.footer__logo-center img {
  width: 240px !important;
  filter: none;
}

/* ── Favicon via CSS (el real va al <head>) ── */

/* ── FOOTER tipografia — FORÇAT !important ── */
.footer__contact-item {
  font-family: var(--font-display) !important;
  font-size: 1.8rem !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  gap: .7rem !important;
}
.footer__contact-item i {
  color: var(--lime) !important;
  font-size: 1.4rem !important;
  width: 24px !important;
}
@media (max-width: 1024px) {
  .footer__contact-item { font-size: 1.2rem !important; gap: .5rem !important; }
  .footer__contact-item i { font-size: 1rem !important; width: 18px !important; }
}
@media (max-width: 480px) {
  .footer__contact-item { font-size: 0.95rem !important; gap: .4rem !important; letter-spacing: .04em !important; }
  .footer__contact-item i { font-size: 0.9rem !important; width: 16px !important; }
}
.footer__legal a {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  letter-spacing: .04em !important;
  color: #ffffff !important;
}
.footer__legal a:hover { color: var(--lime) !important; }
.footer__by {
  font-family: var(--font-display) !important;
  font-size: 1.2rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
}
.footer__bottom {
  padding: 1.2rem var(--s-xl) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
}
.footer__by img { height: 34px !important; } /* +20% sobre 28px */
@media (max-width: 768px) {
  .footer__bottom {
    padding: 1.1rem 0.4rem 6.5rem !important; /* marge per floating CTAs */
  }
}

/* Hero logo intro — logo en COLOR, gran, semi-transparent */
.hero__logo-intro img {
  filter: none !important;
  width: 320px;
  opacity: 0.9;
}
.hero__logo-intro p {
  display: none;
}

/* DOCUMENTS LEGALS */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--gray-900);
}
.legal-doc .legal-update {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-lg);
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--black);
  margin: var(--s-lg) 0 var(--s-sm);
  padding-left: .8rem;
  border-left: 3px solid var(--lime);
}
.legal-doc h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--black);
  margin: var(--s-md) 0 .5rem;
}
.legal-doc p { margin-bottom: var(--s-sm); }
.legal-doc ul {
  list-style: none;
  margin-bottom: var(--s-sm);
  padding-left: 0;
}
.legal-doc ul:not(.legal-data) li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .35rem;
  font-size: .92rem;
}
.legal-doc ul:not(.legal-data) li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-orig);
  font-weight: 700;
}
.legal-doc .legal-data {
  background: var(--gray-100);
  padding: var(--s-md);
  margin: var(--s-sm) 0 var(--s-md);
}
.legal-doc .legal-data li {
  padding: .35rem 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-200);
}
.legal-doc .legal-data li:last-child { border-bottom: none; }
.legal-doc a {
  color: var(--green-orig);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gray-200);
  text-underline-offset: 3px;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.legal-doc a:hover {
  color: var(--black);
  text-decoration-color: var(--lime);
}
.legal-doc strong { color: var(--black); font-weight: 700; }

/* Taula de cookies */
.legal-table-wrap {
  overflow-x: auto;
  margin: var(--s-md) 0;
  border: 1px solid var(--gray-200);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.legal-table th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem .8rem;
  text-align: left;
  font-weight: 400;
}
.legal-table td {
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  font-size: .85rem;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover { background: var(--gray-100); }

@media (max-width: 768px) {
  .legal-doc { font-size: .9rem; }
  .legal-doc h2 { font-size: 1.4rem; }
  .legal-doc h3 { font-size: .95rem; }
  .legal-table th, .legal-table td { padding: .55rem .5rem; font-size: .78rem; }
}

/* BANNER DE CONSENTIMENT DE COOKIES */
/* Placeholders que substitueixen iframes bloquejats per falta de consentiment */
.cc-managed { position: relative; }
.cc-placeholder {
  padding: var(--s-lg) var(--s-md);
  background: var(--off-white);
  border: 1px dashed var(--gray-200);
  text-align: center;
}
.cc-placeholder p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: var(--s-sm);
}
.cc-placeholder p strong {
  display: block;
  font-size: 1rem;
  color: var(--black);
  font-weight: 700;
}
.map-wrap.cc-managed .cc-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.deporsite-wrap.cc-managed .cc-placeholder {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 520px;
}

/* Override del tema de CookieConsent — versió FOSCA, integrada amb la web.
   IMPORTANT: els vars han d'anar dins #cc-main (no a :root) perquè
   CookieConsent v3 els defineix al seu propi scope. */
#cc-main, .cc--darkmode {
  --cc-bg: #0a0a0a;
  --cc-primary-color: #ffffff;
  --cc-secondary-color: rgba(255,255,255,0.7);
  --cc-btn-primary-bg: #bbce06;
  --cc-btn-primary-color: #0a0a0a;
  --cc-btn-primary-hover-bg: #9aab00;
  --cc-btn-primary-hover-color: #0a0a0a;
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: #ffffff;
  --cc-btn-secondary-border-color: rgba(255,255,255,0.3);
  --cc-btn-secondary-hover-bg: rgba(255,255,255,0.08);
  --cc-btn-secondary-hover-color: #ffffff;
  --cc-btn-secondary-hover-border-color: #ffffff;
  --cc-toggle-on-bg: #bbce06;
  --cc-toggle-off-bg: rgba(255,255,255,0.25);
  --cc-toggle-readonly-bg: rgba(255,255,255,0.15);
  --cc-toggle-readonly-icon-color: rgba(255,255,255,0.4);
  --cc-toggle-on-knob-bg: #0a0a0a;
  --cc-toggle-off-knob-bg: #ffffff;
  --cc-section-category-border: rgba(255,255,255,0.1);
  --cc-cookie-category-block-bg: rgba(255,255,255,0.04);
  --cc-cookie-category-block-border: rgba(255,255,255,0.1);
  --cc-cookie-category-block-bg-hover: rgba(255,255,255,0.08);
  --cc-cookie-category-block-border-hover: rgba(255,255,255,0.2);
  --cc-cookie-category-expanded-block-bg: rgba(255,255,255,0.04);
  --cc-cookie-category-expanded-block-hover-bg: rgba(255,255,255,0.06);
  --cc-separator-border-color: rgba(255,255,255,0.1);
  --cc-modal-border-radius: 0;
  --cc-btn-border-radius: 0;
  --cc-pm-toggle-border-radius: 0;
  --cc-font-family: 'Sora', sans-serif;
  --cc-overlay-bg: rgba(10,10,10,0.85);
  --cc-link-color: #bbce06;
  --cc-link-hover-color: #ffffff;
}

/* Hard-overrides: alguns estils interns de CookieConsent usen colors
   hardcoded fora de variables. Els forcem aquí. */
#cc-main .cm, #cc-main .pm {
  background: #0a0a0a !important;
  color: #ffffff !important;
}
#cc-main .cm *, #cc-main .pm * { color: inherit; }
#cc-main .cm__desc, #cc-main .pm__section-desc, #cc-main .pm__section-title {
  color: rgba(255,255,255,.85) !important;
}
#cc-main .pm__section { background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,.1) !important; }
#cc-main .pm__section-title { color: #fff !important; }

/* Reforços específics del banner */
#cc-main .cm__title,
#cc-main .pm__title { font-family: 'Bebas Neue', sans-serif; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
#cc-main .cm__btn,
#cc-main .pm__btn { font-family: 'Bebas Neue', sans-serif; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
#cc-main .cm--box { max-width: 420px; }
#cc-main .cm__desc,
#cc-main .pm__section-desc { font-size: .82rem; line-height: 1.55; }

/* Mòbil — banner full-width amb marges menors */
@media (max-width: 640px) {
  #cc-main .cm--box {
    max-width: calc(100vw - 1rem) !important;
    width: calc(100vw - 1rem) !important;
    inset: auto .5rem .5rem !important;
  }
  #cc-main .cm__title { font-size: 1.3rem !important; }
  #cc-main .cm__desc { font-size: .78rem !important; }
  #cc-main .cm__btns { flex-direction: column; gap: .4rem; }
  #cc-main .cm__btn { width: 100%; }
}
