/* =============================================
   ROTARACT IGUALADA — CSS RESPONSIU COMPLET
   Refactoritzat per: Enginyer Front-End Senior
   ─────────────────────────────────────────────
   Índex de seccions:
   1.  Variables & Reset
   2.  Header
   3.  Nav Desktop (dropdowns)
   4.  Hamburger Button
   5.  Mobile Nav Drawer
   6.  Hero (hero-section)
   7.  About Us
   8.  Instagram Section
   9.  Contact Section
   10. Footer
   11. Galeria
   12. Media Queries
============================================= */

/* ─────────────────────────────────────────────
   1. VARIABLES & RESET
───────────────────────────────────────────── */
:root {
  --blue:         rgb(47, 47, 150);
  --pink:         #DA1A5D;
  --pink-dark:    #c51651;

  --primary:      rgb(47, 47, 150);
  --primary-dark: #1e1e6e;
  --accent:       #DA1A5D;
  --accent-hover: #c42d60;

  --text:         #1a1a1a;
  --text-light:   #6b7280;
  --bg-light:     #f8f9fc;
  --bg-white:     #ffffff;
  --subtle:       #f5f5f5;

  --radius:       16px;
  --radius-sm:    10px;
  --shadow-sm:    0 2px 8px rgba(47, 47, 150, 0.06);
  --shadow-md:    0 4px 20px rgba(47, 47, 150, 0.10);
  --header-shadow:0 6px 24px rgba(47, 47, 150, 0.08);
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 3000;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

::selection { background: rgba(218, 26, 93, 0.18); color: var(--text); }

/* ─────────────────────────────────────────────
   2. HEADER
───────────────────────────────────────────── */
.header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 2rem;
  gap: 1.5rem;
}

.header__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo {
  width: clamp(120px, 12.5vw, 150px);
  height: clamp(44px, 4.8vw, 58px);
  object-fit: cover;
  object-position: center;
  padding-top: 6px;
}

.header__cta {
  text-decoration: none;
  background: var(--pink);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(218, 26, 93, 0.18);
}

.header__cta:hover,
.header__cta:focus-visible {
  background: var(--pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(218, 26, 93, 0.28);
}

/* ─────────────────────────────────────────────
   3. NAV DESKTOP (dropdowns)
───────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex: 1;
}

.nav > a,
.nav__link--parent {
  position: relative;
  text-decoration: none;
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav > a::after,
.nav__link--parent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav > a:hover,
.nav > a:focus-visible,
.nav__item--dropdown:hover .nav__link--parent {
  color: var(--pink);
}

.nav > a:hover::after,
.nav > a:focus-visible::after {
  width: 100%;
}

.nav__item--dropdown:hover .nav__link--parent::after {
  width: 100%;
}

.nav__item {
  position: relative;
}

.nav__item--dropdown {
  display: flex;
  align-items: center;
}

.nav__link--parent {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: 1px;
}

.nav__item--dropdown:hover .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(47, 47, 150, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  min-width: 210px;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  border-top: 3px solid var(--pink);
  z-index: 999;
}

.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 6px solid var(--pink);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
  white-space: nowrap;
}

.nav__dropdown li a:hover {
  color: var(--pink);
  background: rgba(218, 26, 93, 0.05);
  padding-left: 26px;
}

/* ─────────────────────────────────────────────
   4. HAMBURGER BUTTON
───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(218, 26, 93, 0.06);
}

.hamburger__bar {
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger__bar:nth-child(1) { width: 22px; }
.hamburger__bar:nth-child(2) { width: 16px; }
.hamburger__bar:nth-child(3) { width: 22px; }

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  width: 22px;
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────
   5. MOBILE NAV DRAWER
───────────────────────────────────────────── */
body.nav-open {
  overflow: hidden;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.is-open {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 1002;
  padding: 1.5rem 1.75rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -8px 0 40px rgba(47, 47, 150, 0.15);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(218, 26, 93, 0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--pink);
  margin-left: auto;
  margin-bottom: 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-nav__close:hover {
  background: var(--pink);
  color: #fff;
  transform: rotate(90deg);
}

.mobile-nav__close svg {
  width: 18px;
  height: 18px;
}

.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav__link {
  display: block;
  color: var(--blue);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(47, 47, 150, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav__link:hover {
  color: var(--pink);
  padding-left: 0.5rem;
}

.mobile-nav__group {
  border-bottom: 1px solid rgba(47, 47, 150, 0.08);
}

.mobile-nav__group-label {
  display: block;
  color: var(--blue);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0 0.4rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav__group-label:hover {
  color: var(--pink);
  padding-left: 0.5rem;
}

.mobile-nav__sub {
  list-style: none;
  padding: 0 0 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mobile-nav__sublink {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.mobile-nav__sublink:hover {
  color: var(--pink);
  padding-left: 0.4rem;
}

.mobile-nav__cta {
  display: block;
  text-align: center;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  margin-top: 1.25rem;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 18px rgba(218, 26, 93, 0.25);
}

.mobile-nav__cta:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   6. HERO — hero-section
───────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url('sopar.jpg');
  background-size: cover;
  background-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero__title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 5vw + 0.5rem, 3rem);
  font-weight: 800;
  letter-spacing: clamp(0.02em, 0.08em, 0.08em);
  text-transform: uppercase;
  line-height: 1.1;
}

.hero__text {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  max-width: 580px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--pink);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(218, 26, 93, 0.35);
}

.hero__cta:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(218, 26, 93, 0.45);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("sopar.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(20%);
  z-index: 0;
}

#hero_background {
  display: none;
}

/* ─────────────────────────────────────────────
   7. ABOUT US
───────────────────────────────────────────── */
.aboutus-section {
  width: 100%;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 1.5rem);
  background:
    radial-gradient(circle at top left, rgba(218, 26, 93, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.aboutus__container {
  max-width: 1200px;
  margin: 0 auto;
}

.aboutus__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.aboutus__content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.aboutus__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(218, 26, 93, 0.08);
  color: var(--pink);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aboutus__eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--pink);
}

.aboutus__title {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.aboutus__lead {
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.95rem, 1.7vw, 1.04rem);
  line-height: 1.85;
  max-width: 58ch;
}

.aboutus__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.35rem;
}

.aboutus__pillar {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid rgba(47, 47, 150, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aboutus__pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(218, 26, 93, 0.18);
  box-shadow: 0 10px 24px rgba(47, 47, 150, 0.08);
}

.aboutus__pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(47, 47, 150, 0.08);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aboutus__pillar-icon svg {
  width: 21px;
  height: 21px;
}

.aboutus__pillar h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.aboutus__pillar p {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-light);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* Invitació (text del fulletó «Què és Rotaract?» del Districte 2202) */
.aboutus__invite {
  max-width: 58ch;
  margin: 0.35rem 0 0;
  padding: 0.95rem 1.15rem;
  border-left: 4px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: rgba(218, 26, 93, 0.06);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 0.98rem);
  font-weight: 500;
  line-height: 1.7;
}

.aboutus__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.aboutus__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.aboutus__cta--primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(218, 26, 93, 0.18);
}

.aboutus__cta--primary:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(218, 26, 93, 0.28);
}

.aboutus__cta--secondary {
  background: rgba(47, 47, 150, 0.06);
  color: var(--blue);
}

.aboutus__cta--secondary:hover {
  background: rgba(47, 47, 150, 0.12);
  transform: translateY(-2px);
}

.aboutus__visual {
  display: flex;
  justify-content: center;
}

.aboutus__panel {
  width: 100%;
  max-width: 520px;
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(218, 26, 93, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(47, 47, 150, 0.08);
  box-shadow: 0 18px 50px rgba(47, 47, 150, 0.12);
}

.aboutus__panel::before {
  content: '';
  position: absolute;
  inset: auto -45px -45px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(218, 26, 93, 0.08);
  filter: blur(1px);
}

.aboutus__panel::after {
  content: '';
  position: absolute;
  top: -70px;
  left: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(47, 47, 150, 0.06);
}

.aboutus__panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.aboutus__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 47, 150, 0.08);
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.aboutus__panel-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.aboutus__panel-text {
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.94rem;
  line-height: 1.8;
  max-width: 46ch;
}

.aboutus__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.aboutus__stat {
  padding: 1rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(47, 47, 150, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.aboutus__stat strong {
  display: block;
  color: var(--pink);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.aboutus__stat span {
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
}

.aboutus__list {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(47, 47, 150, 0.08);
}

.aboutus__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
}

.aboutus__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(218, 26, 93, 0.12);
}

.aboutus__content.reveal-left,
.aboutus__visual.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.aboutus__content.reveal-left {
  transform: translateX(-40px);
}

.aboutus__visual.reveal-right {
  transform: translateX(40px);
}

.aboutus__content.reveal-left.active,
.aboutus__visual.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ─────────────────────────────────────────────
   8. INSTAGRAM SECTION
───────────────────────────────────────────── */
.instagram-section {
  width: 100%;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 1.5rem);
  background: var(--subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.instagram-section__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  width: 100%;
}

.instagram-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.instagram-section__eyebrow svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

.instagram-section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--text);
}

.instagram-section__title span {
  color: var(--accent);
}

.instagram-section__divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
}

.instagram-section__subtitle {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 300;
  color: #666;
  max-width: 420px;
  line-height: 1.6;
}

.instagram-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 99px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 18px rgba(221, 53, 110, 0.35);
}

.instagram-section__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(221, 53, 110, 0.45);
  background: var(--accent-hover);
}

.instagram-section__cta svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

.instagram-section__embeds {
  width: 100%;
  max-width: min(1080px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  justify-items: center;
}

.instagram-section__embeds iframe,
.instagram-section__embeds blockquote {
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Targetes buides mentre no hi ha posts reals d'Instagram */
.instagram-section__empty {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  border-radius: 18px;
  border: 2px dashed rgba(107, 114, 128, 0.45);
  background: linear-gradient(160deg, #f8f9fc 0%, #eef1f8 100%);
  color: var(--text-light);
}

.instagram-section__empty svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}

.instagram-section__empty p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.instagram-section__follow {
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  .instagram-section__embeds {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .instagram-section__embeds {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   9. CONTACT SECTION
───────────────────────────────────────────── */
.contact {
  background: var(--bg-light);
  padding: clamp(3.5rem, 8vw, 6.25rem) clamp(1rem, 4vw, 1.5rem);
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__eyebrow-dot {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  flex-shrink: 0;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.section__title span { color: var(--accent); }

.section__desc {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.7;
}

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

.contact__info h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact__info > p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact__channel:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.contact__channel-icon {
  width: 40px;
  height: 40px;
  background: rgba(47, 47, 150, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__channel-text h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.contact__channel-text a {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  word-break: break-all;
}

.contact__channel-text a:hover { color: var(--accent); }

.contact__form {
  background: var(--bg-white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-form__recipient {
  background: var(--bg-light);
  border: 1px solid rgba(47, 47, 150, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin: 0 0 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
}

.contact-form__recipient strong {
  color: var(--blue);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(47, 47, 150, 0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(47, 47, 150, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox a {
  color: var(--primary);
  text-decoration: none;
}

.form-checkbox a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(47, 47, 150, 0.25);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47, 47, 150, 0.35);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
  background: rgba(47, 47, 150, 0.05);
  border-radius: var(--radius-sm);
}

.form-field-error {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--pink);
  font-weight: 600;
}

.input-invalid {
  border-color: var(--pink) !important;
}

.form-submit-error {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(211, 56, 98, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(211, 56, 98, 0.08);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--pink);
}

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.subject-pill {
  cursor: pointer;
}

.subject-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.subject-pill span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(47, 47, 150, 0.14);
  background: rgba(47, 47, 150, 0.05);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.subject-pill:hover span {
  border-color: rgba(47, 47, 150, 0.3);
}

.subject-pill input:checked + span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Focus de teclat a les «pastilles» d'assumpte: el radio és invisible,
   així que el mateix indicador de focus del lloc es mostra a la pastilla. */
.subject-pill input:focus-visible + span {
  outline: 3px solid rgba(218, 26, 93, 0.35);
  outline-offset: 3px;
}

.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left         { transform: translateX(-40px); }
.reveal-right        { transform: translateX(40px); }
.reveal-left.active,
.reveal-right.active { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
   10. FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 1.5rem) 2rem;
  font-family: 'Poppins', sans-serif;
}

.footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__social a,
.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.footer__social a:hover,
.footer__social a:focus-visible {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer__social-link--disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-block;
}

.footer__links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition);
  word-break: break-word;
}

.footer__contact-item a:hover { color: #fff; }

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy,
.footer__made {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ─────────────────────────────────────────────
   11. GALERIA
───────────────────────────────────────────── */
.galeria-section {
  width: 100%;
  padding: 80px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.galeria__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.galeria__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}

.galeria__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--text);
}

.galeria__title span {
  color: var(--pink);
}

.galeria__divider {
  width: 48px;
  height: 3px;
  background: var(--pink);
  border-radius: 99px;
}

.galeria__subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: #666;
  max-width: 420px;
  line-height: 1.6;
}

.galeria__grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.galeria__item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #e8e8f0;
  cursor: pointer;
}

.galeria__item--wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .galeria__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .galeria__item--wide {
    grid-column: span 1;
  }
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Estat buit mentre no hi ha fotos d'activitats */
.galeria__empty {
  width: 100%;
  max-width: 1100px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 18px;
  border: 2px dashed rgba(107, 114, 128, 0.45);
  background: linear-gradient(160deg, #f8f9fc 0%, #eef1f8 100%);
  color: var(--text-light);
}

.galeria__empty svg {
  width: 3rem;
  height: 3rem;
  fill: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}

.galeria__empty p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 420px;
}

@media (max-width: 520px) {
  .galeria__empty {
    min-height: 220px;
    padding: 2rem 1.25rem;
  }
}

.galeria__item:hover img {
  transform: scale(1.06);
}

.galeria__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.galeria__item:hover .galeria__caption {
  transform: translateY(0);
}

/* ── Mosaic de la galeria ──────────────────────
   Escriptori: 4 columnes; la foto destacada ocupa 2×2,
   les verticals 1×2 i les horitzontals 2×1.            */
.galeria__grid--mosaic {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
}

.galeria__grid--mosaic .galeria__item {
  display: block;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(47, 47, 150, 0.10);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.galeria__item--featured { grid-column: span 2; grid-row: span 2; }
.galeria__item--tall     { grid-row: span 2; }
.galeria__grid--mosaic .galeria__item--wide { grid-column: span 2; }

/* Marc de color que apareix en passar el ratolí / amb focus */
.galeria__grid--mosaic .galeria__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--pink);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.galeria__grid--mosaic .galeria__item:hover,
.galeria__grid--mosaic .galeria__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(47, 47, 150, 0.18);
}

.galeria__grid--mosaic .galeria__item:hover::after,
.galeria__grid--mosaic .galeria__item:focus-visible::after {
  box-shadow: inset 0 0 0 3px var(--pink);
}

.galeria__grid--mosaic .galeria__item:focus-visible {
  outline: 3px solid rgba(218, 26, 93, 0.35);
  outline-offset: 3px;
}

.galeria__grid--mosaic .galeria__item:focus-visible img {
  transform: scale(1.06);
}

.galeria__grid--mosaic .galeria__item:focus-visible .galeria__caption {
  transform: translateY(0);
}

.galeria__grid--mosaic .galeria__caption {
  padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(20, 20, 70, 0.85), rgba(20, 20, 70, 0));
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.galeria__item--featured .galeria__caption {
  font-size: 1.05rem;
  padding: 60px 24px 20px;
}

/* Icona d'ampliar */
.galeria__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.galeria__zoom svg { width: 18px; height: 18px; }

.galeria__item:hover .galeria__zoom,
.galeria__item:focus-visible .galeria__zoom {
  opacity: 1;
  transform: scale(1);
}

/* Pantalles tàctils: sense hover, els peus de foto es veuen sempre */
@media (hover: none) {
  .galeria__grid--mosaic .galeria__caption { transform: translateY(0); }
  .galeria__zoom { opacity: 1; transform: scale(1); width: 32px; height: 32px; }
  .galeria__zoom svg { width: 15px; height: 15px; }
}

/* Entrada escalonada (galeria.js afegeix .galeria__grid--anim) */
.galeria__grid--anim .galeria__item {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}

.galeria__grid--anim .galeria__item.is-visible {
  opacity: 1;
  transform: none;
}

.galeria__grid--anim .galeria__item.is-visible:hover,
.galeria__grid--anim .galeria__item.is-visible:focus-visible {
  transform: translateY(-4px);
  transition-delay: 0s;
}

@media (max-width: 1024px) {
  .galeria__grid--mosaic { grid-auto-rows: 180px; }
}

@media (max-width: 768px) {
  .galeria__grid--mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }
}

@media (max-width: 520px) {
  .galeria__grid--mosaic { grid-auto-rows: 150px; gap: 10px; }
  .galeria__item--featured { grid-row: span 2; }
  .galeria__item--featured .galeria__caption { font-size: 0.95rem; padding: 40px 16px 14px; }
  .galeria__grid--mosaic .galeria__caption { font-size: 0.8rem; padding: 32px 12px 10px; }
}

/* ── Visor de fotos (lightbox) ────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 72px 32px;
  background: rgba(14, 14, 48, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Tancat: fora del document (galeria.js commuta l'atribut hidden;
   només l'opacitat s'anima) */
.lightbox[hidden] { display: none; }

.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}

.lightbox__img {
  display: block;
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}

.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__img.is-loading { opacity: 0.35; }

.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.lightbox__counter {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lightbox__btn {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__btn svg { width: 22px; height: 22px; }

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: var(--pink);
  transform: scale(1.06);
}

.lightbox__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev  { left: 16px; top: 50%; margin-top: -24px; }
.lightbox__next  { right: 16px; top: 50%; margin-top: -24px; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .lightbox { padding: 64px 12px 24px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 18px; margin-top: 0; width: 44px; height: 44px; }
  .lightbox__img { max-height: calc(100vh - 210px); max-height: calc(100svh - 210px); }
  .lightbox { padding-bottom: 84px; }
  .lightbox__caption { font-size: 0.85rem; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .galeria__grid--anim .galeria__item { opacity: 1; transform: none; transition: none; }
  .lightbox, .lightbox__img { transition: none; }
}

/* ─────────────────────────────────────────────
   12. MEDIA QUERIES
───────────────────────────────────────────── */
@media (min-width: 1600px) {
  .header__inner {
    max-width: 1400px;
  }

  .container,
  .footer__grid,
  .footer__bottom {
    max-width: 1400px;
  }

  .hero__title {
    font-size: 3rem;
  }
}

@media (max-width: 1200px) {
  .header__inner {
    padding: 0.5rem 1.5rem;
    gap: 1.25rem;
  }

  .nav {
    gap: 1.2rem;
  }

  .nav > a,
  .nav__link--parent {
    font-size: 0.9rem;
  }

  .footer__grid {
    gap: 2rem;
  }

  .aboutus__pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .nav,
  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header__inner {
    padding: 0.5rem 1.25rem;
    min-height: 68px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .aboutus__grid {
    grid-template-columns: 1fr;
  }

  .aboutus__content {
    order: 2;
  }

  .aboutus__visual {
    order: 1;
  }

  .aboutus__title {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .instagram-section {
    gap: 2rem;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .hero-section {
    min-height: 400px;
    height: clamp(400px, 70vw, 600px);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .aboutus-section {
    padding: 3.5rem 1rem;
  }

  .aboutus__stats {
    grid-template-columns: 1fr;
  }

  .aboutus__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .aboutus__cta {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .instagram-section {
    padding: 3rem 1rem;
    gap: 1.75rem;
  }

  .instagram-section__cta {
    width: 100%;
    justify-content: center;
  }

  .contact {
    padding: 3rem 1rem;
  }

  .contact__form {
    padding: 1.25rem;
  }

  .contact__channel {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer__social {
    gap: 0.6rem;
  }

  .hero__content {
    padding: 0 1.25rem;
    gap: 0.9rem;
  }

  .hero__title {
    letter-spacing: 0.03em;
    line-height: 1.35;
    font-size: 1.45rem;
  }

  .hero__text {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .hero__cta {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    text-align: center;
  }

  .hero-section {
    min-height: 650px;
    height: clamp(650px, 70vw, 800px);
  }

  .aboutus__panel {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .aboutus__pillar {
    padding: 1rem;
  }

  .aboutus__pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .header__inner {
    padding: 0.4rem 0.875rem;
    min-height: 60px;
  }

  .header__logo {
    width: 110px;
    height: 42px;
  }

  .mobile-nav {
    width: 100vw;
    padding: 1.25rem 1.25rem 2rem;
  }

  .contact__channel-text a {
    font-size: 0.75rem;
  }

  .btn {
    font-size: 0.82rem;
    padding: 0.75rem 1.25rem;
  }

  .footer {
    padding: 2rem 0.875rem 1.5rem;
  }

  .hero__content {
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .hero__cta {
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
  }

  .hero__title {
    font-size: 1.45rem;
    letter-spacing: 0.02em;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
  }

  .aboutus__eyebrow {
    letter-spacing: 0.12em;
  }
}

/* Link actiu a la nav (pàgina actual) */
.nav__link--active {
  color: var(--pink) !important;
}
.nav__link--active::after {
  width: 100% !important;
}

/* ── Hero Nosaltres ── */
.nosaltres-hero {
  width: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a1a6e 60%, #3a0a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Cercles decoratius de fons */
.nosaltres-hero::before,
.nosaltres-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}
.nosaltres-hero::before {
  width: 500px; height: 500px;
  top: -200px; right: -100px;
}
.nosaltres-hero::after {
  width: 300px; height: 300px;
  bottom: -150px; left: -50px;
}

.nosaltres-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
}

.nosaltres-hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.nosaltres-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.nosaltres-hero__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 500px;
  margin-top: 0.25rem;
}

/* ── Main wrapper ── */
.nosaltres-main {
  width: 100%;
}

/* ── Blocs alternats ── */
.nosaltres-bloc {
  width: 100%;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem);
  background: #fff;
}

.nosaltres-bloc--alt {
  background: var(--bg-light);
}

.nosaltres-bloc__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Inversió de columnes per blocs alternats */
.nosaltres-bloc__inner--reverse {
  direction: rtl;
}
.nosaltres-bloc__inner--reverse > * {
  direction: ltr;
}

/* ── Text del bloc ── */
.nosaltres-bloc__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.nosaltres-bloc__inner--reverse .nosaltres-bloc__text {
  transform: translateX(30px);
}

.nosaltres-bloc__text.nos-visible {
  opacity: 1;
  transform: translateX(0);
}

.nosaltres-bloc__tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(218, 26, 93, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

.nosaltres-bloc__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.nosaltres-bloc__divider {
  width: 40px;
  height: 3px;
  background: var(--pink);
  border-radius: 99px;
}

.nosaltres-bloc__body {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.8;
}

.nosaltres-bloc__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--pink);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
  transition: gap 0.2s ease, color 0.2s ease;
  gap: 4px;
}

.nosaltres-bloc__link:hover {
  color: var(--pink-dark);
  gap: 8px;
}

/* Contacte del Districte 2202 (bloc «Rotaract Internacional i Districte») */
.nosaltres-contacte {
  margin: 0.4rem 0 0.2rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(47, 47, 150, 0.05);
  border: 1px solid rgba(47, 47, 150, 0.08);
}

.nosaltres-contacte__title {
  margin: 0 0 0.65rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.nosaltres-contacte__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.nosaltres-contacte__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.nosaltres-contacte__item:hover,
.nosaltres-contacte__item:focus-visible {
  color: var(--pink);
}

.nosaltres-contacte__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--pink);
  box-shadow: 0 2px 8px rgba(47, 47, 150, 0.08);
}

.nosaltres-contacte__icon svg { width: 16px; height: 16px; }

/* ── Visual / Imatge del bloc ── */
.nosaltres-bloc__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.nosaltres-bloc__inner--reverse .nosaltres-bloc__visual {
  transform: translateX(-30px);
}

.nosaltres-bloc__visual.nos-visible {
  opacity: 1;
  transform: translateX(0);
}

.nosaltres-bloc__img-wrap {
  position: relative;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #ececf5, #f5f5fb);
  box-shadow: 0 12px 40px rgba(47,47,150,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosaltres-bloc__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Placeholder quan no hi ha imatge */
.nosaltres-bloc__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(47,47,150,0.35);
  text-align: center;
  line-height: 1.5;
  font-size: 1.8rem;
  background: repeating-linear-gradient(
    45deg,
    #ececf5,
    #ececf5 10px,
    #f5f5fb 10px,
    #f5f5fb 20px
  );
  pointer-events: none;
}

/* Amaga el placeholder quan la img carrega bé */
.nosaltres-bloc__img-wrap img[src]:not([src=""]) + .nosaltres-bloc__img-placeholder {
  display: none;
}

/* ── Responsive Nosaltres ── */
@media (max-width: 768px) {
  .nosaltres-bloc__inner,
  .nosaltres-bloc__inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .nosaltres-bloc__text,
  .nosaltres-bloc__inner--reverse .nosaltres-bloc__text {
    transform: translateY(20px);
  }

  .nosaltres-bloc__visual,
  .nosaltres-bloc__inner--reverse .nosaltres-bloc__visual {
    transform: translateY(20px);
    order: -1; /* La imatge va primer en mòbil */
  }

  .nosaltres-bloc__img-wrap {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .nosaltres-hero {
    padding: 4rem 1.5rem 3rem;
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .nosaltres-bloc {
    padding: 2.5rem 1.25rem;
  }
}

/* ============================================ */
/* MODAL AVÍS LEGAL - estils                     */
/* ============================================ */

/* Capa de fons (overlay) — compartit pels 3 modals */
.legal-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Quan el modal està actiu */
.legal-modal-overlay.active {
  display: flex;
}

/* Caixa de contingut del modal */
.legal-modal-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 20px 10px;
  box-shadow: var(--shadow-md);
  animation: legalModalFadeIn 0.25s ease-out;
}

@keyframes legalModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botó de tancar */
.legal-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 10px 10px 0 0;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.legal-modal-close:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ============================================ */
/* CONTINGUT DELS DOCUMENTS LEGALS               */
/* (avís legal, privacitat, cookies)             */
/* ============================================ */

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.7;
}

.legal-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  color: var(--primary);
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.legal-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--accent);
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  text-align: justify;
}

.legal-section p {
  margin: 0 0 10px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 10px 20px;
}

.legal-section a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.legal-section a:hover {
  color: var(--accent);
}

/* Taula de cookies */
.legal-table-wrapper {
  overflow-x: auto;
  margin: 12px 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--subtle);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  min-width: 480px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--subtle);
}

.legal-table th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* ============================================ */
/* RESPONSIVE                                    */
/* ============================================ */

@media (max-width: 600px) {
  .legal-modal-content {
    max-height: 90vh;
    padding: 16px 8px;
  }

  .legal-container {
    padding: 0 14px 24px;
  }

  .legal-container h1 {
    font-size: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.08rem;
  }
}

/* Camp ocult antispam (honeypot) dels formularis */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.legal-section .cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 0.85rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid rgba(47, 47, 150, 0.15);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: rgba(47, 47, 150, 0.06);
  font-weight: 700;
}

@media (max-width: 640px) {
  .legal-section .cookie-table {
    font-size: 0.78rem;
  }
}