html{
  overflow-x: hidden;
}
/* --- Títols amb línia daurada (reutilització de styles) --- */
.gradient-title,
.gradient-title-alt {
  position: relative;
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.gradient-title::after,
.gradient-title-alt::after {
  content: "";
  display: block;
  width: clamp(220px, 45%, 420px);
  height: 4px;
  margin-top: 0.45rem;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    var(--color-gold) 0%,
    rgba(183, 154, 84, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 6px 20px rgba(183, 154, 84, 0.28);
  margin-right: auto;
}

/* Modificador d'alineació per al títol */
.gradient-title--center::after,
.gradient-title-alt--center::after {
  margin-left: auto;
  margin-right: auto;
}

.gradient-title-alt--end::after {
  margin-left: auto;
  margin-right: 0;
}

/* --- Animacions Fade-in amb Scroll (reutilització) --- */
.fade-section {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Botons --- */


.button {
  background: none;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.button:hover {
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-2px);
}

/* ==========================================================================
  Layout de seccions
  ========================================================================== */

section {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
}

/* --- SEC1: HERO CURSOS I ACTIVITATS --- */
.cursos-hero {
  position: relative;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Overlay fosc per millorar la llegibilitat del text */
.cursos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* Posicionar el contingut sobre l'overlay */
.cursos-hero .container {
  position: relative;
  z-index: 2;
}

/* Estil del glass-box ja definit a quisom.css, el reutilitzem */
.glass-box {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  border-radius: 12px;
}

/* Títol */
.cursos-hero h1 {
  background-image: linear-gradient(to right, var(--color-gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* --- SEC2: L'ART DE L'EXPRESSIÓ CORPORAL --- */
.cursos-sec2 h2 {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dansa-list {
  list-style: none;
  padding: 0;
}
.dansa-list li {
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.dansa-list li::before {
  content: '✨';
  position: absolute;
  left: 0;
  top: 0.05rem;
  line-height: 1;
}

/* --- Seccions de contingut alternat (sec3 i sec4) --- */

.sec3 {
  background: var(--color-black) !important;
  color: var(--color-white) !important;
}

.sec4 {
  background: var(--color-white) !important;
  color: var(--color-black) !important;
}

.sec3 h2,
.sec4 h2 {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-shadow: 0 0 10px rgba(183, 154, 84, 0.45);
}

.sec3 h2 {
  color: var(--color-white);
}

.sec4 h2 {
  color: var(--color-black);
}

.sec3 h3,
.sec4 h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.sec3 ul,
.sec4 ul {
  padding-left: 1rem;
  list-style: none;
}

.sec3 ul li,
.sec4 ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.sec3 ul li::before,
.sec4 ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  font-size: 0.8rem;
  color: var(--color-gold);
}


/* --- SEC-CTA: crida a l'acció (reutilització) --- */
.sec-cta {
  background-image: var(--cta-img) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  color: var(--color-white) !important;
}

.sec-cta .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

.sec-cta .container {
  position: relative;
  z-index: 1;
}

/* Títols a la secció CTA */
.sec-cta h2 {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-white);
  text-shadow: 0 0 10px rgba(183, 154, 84, 0.45);
}

.sec-cta p {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--color-white);
  text-shadow: 0 0 10px rgba(183, 154, 84, 0.45);
}

/* ==========================================================================
  Reducció de moviment per a usuaris amb preferències
  ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cursos-hero,
  .sec-cta,
  .fade-section {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .cursos-hero, .sec-cta {
    background-attachment: scroll !important;
  }
}

@media (max-width: 991.98px){
  .cursos-hero{ background-attachment: scroll; }
  .sec-cta{ background-attachment: scroll !important; }
}

