/* Sandbox /stage — sfondo (--color-stage-bg in color.css) */
html:has(body.body-stage) {
  background-color: var(--color-stage-bg);
}

body.body-stage {
  background-color: var(--color-stage-bg);
  min-height: 100vh;
  color: #000;
  /* Stage spacing system (desktop-first, reusable across all sections) */
  --stage-space-section-y: 128px;
  --stage-space-layout: 64px;
  --stage-space-text: 16px;
  --stage-space-cta: 32px;
}

@media (max-width: 56.25rem) {
  body.body-stage {
    --stage-space-section-y: 64px;
  }

  /* Regola globale mobile: testo sempre allineato a sinistra nello stage */
  body.body-stage main :where(h1, h2, h3, h4, h5, h6, p, li, a, label, span, small, strong, em) {
    text-align: left;
  }

  body.body-stage main .text-center {
    text-align: left;
  }

  body.body-stage .section-hero-center-wrapper {
    align-items: flex-start;
  }

  body.body-stage .section-hero-button-wrapper {
    justify-content: flex-start;
  }

}

/* Reusable section vertical rhythm: 128px top / bottom */
body.body-stage .stage-section {
  padding-block: var(--stage-space-section-y);
}

/* Reusable inner layout spacing: 64px between columns/rows */
body.body-stage .stage-layout-gap {
  gap: var(--stage-space-layout);
}

/* Reusable text flow: intro -> title -> description -> CTA */
body.body-stage .stage-copy-flow {
  display: flex;
  flex-direction: column;
}

body.body-stage .stage-copy-flow > * {
  margin: 0;
}

body.body-stage .stage-copy-flow > * + * {
  margin-top: var(--stage-space-text);
}

body.body-stage .stage-copy-flow > .stage-copy-cta {
  margin-top: var(--stage-space-cta);
}

/* Subtle scroll-in for selected stage copy (opt-in via data-stage-reveal) */
body.body-stage [data-stage-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.body-stage [data-stage-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.body-stage [data-stage-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

