.feature-hero__highlights [data-highlight] {
  opacity: 0;
  transition: opacity .4s ease;
  position: absolute; /* se vuoi tenere lo stesso spazio, usa position: static e min-height calcolata */
  left: 0; right: 0;
}

.feature-hero__highlights [data-highlight].is-active {
  opacity: 1;
  position: static; /* se vuoi che occupi spazio */
}

/* =========================================================
   Feature Hero — Citiculture2026
   Fade highlights + dots a pillola + layout completo
   ========================================================= */

/* Palette & token */
.feature-hero {
  --hero-bg: #0D3B39;
  /* verde scuro */
  --hero-fg: #FFFFFF;
  /* testo principale */
  --brand-orange: #EE7402;
  /* colore brand */
  --dot-inactive: rgba(255, 255, 255, 0.35);
  --dot-active: #FFFFFF;
  /* metti var(--brand-orange) se vuoi attivo arancione */
  --space-y: 80px;
}

/* Wrapper principale */
section.feature-hero {
  position: relative;
  background-color: var(--hero-bg);
  color: var(--hero-fg);
  padding: var(--space-y) 0;
}

/* Contenitore interno */
.feature-hero__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

/* Titolo */
.feature-hero__title {
  margin: 0 0 40px;
  font-weight: 700;
  line-height: 1.2;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 2px;
}

/* Intro */
.feature-hero__intro {
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 500px;
}

/* ===== Area highlights con FADE ===== */
.feature-hero__highlights {
  position: relative;
  min-height: 2.2em;
  /* evita “salti” di layout */
  margin: 8px 0 20px;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 2px;
  left: 50%;
}

/* Frasi: centratura orizzontale, fade controllato via classi */
.feature-hero__highlight {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

/* Stato attivo: visibile e interattivo */
.feature-hero__highlight.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Progressive enhancement:
   prima che il JS parta, mostra SOLO la prima frase */


/* ===== Dots a pillola ===== */
.feature-hero__dots {
  position: relative;
  margin: 12px auto 0;
  width: max-content;
}

.feature-hero__dots .dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--dot-inactive);
  margin: 0 6px;
  transition: all .2s ease;
}

.feature-hero__dots .dot.is-active {
  width: 54px;
  height: 13px;
  border-radius: 999px;
  background: var(--dot-active);
}

/* Area cliccabile maggiore su mobile */
@media (max-width: 575.98px) {
  .feature-hero__dots .dot {
    padding: 6px 2px;
    transform: translateY(2px);
  }
}

/* ===== Testo descrittivo + CTA ===== */
.feature-hero__body {
  margin: 40px auto 24px;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 490px;
}

.feature-hero__cta a {
  display: inline-block;
  border: 1.5px solid #CFE2DE;
  color: #CFE2DE;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.feature-hero__cta a:hover,
.feature-hero__cta a:focus {
  background: #CFE2DE;
  color: var(--hero-bg);
}

/* ===== Responsive ===== */
@media (min-width: 576px) {
  section.feature-hero {
    padding: 90px 0;
  }

  .feature-hero__title {
    font-size: 2.2rem;
  }

  .feature-hero__highlight {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  section.feature-hero {
    padding: 100px 0;
  }

  .feature-hero__title {
    font-size: 2.4rem;
  }

  .feature-hero__intro {
    font-size: 1.05rem;
  }

  .feature-hero__highlight {
    font-size: 1.65rem;
  }
}

@media (min-width: 992px) {
  section.feature-hero {
    padding: 120px 0;
  }

  .feature-hero__title {
    font-size: 2.6rem;
  }

  .feature-hero__highlight {
    font-size: 1.8rem;
  }
}

/* ===== Varianti (se servono) ===== */
/* Sfondi chiari: dots più scuri */
.feature-hero.is-light .feature-hero__dots .dot {
  background: rgba(0, 0, 0, 0.25);
}

.feature-hero.is-light .feature-hero__dots .dot.is-active {
  background: #333;
}

/* Full-bleed forzato (se tema impone container globale) */
/*
.feature-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
*/
