/* =========================================================================
   Alzati e Fattura — sezione 05 IL MERCATO È CAMBIATO
   Desktop 1440×560 · mobile 390×667.
   Due colonne: a sinistra occhiello e titolo, a destra il testo lungo.
   ========================================================================= */

.aef-mercato,
.aef-mercato *,
.aef-mercato *::before,
.aef-mercato *::after { box-sizing: border-box; }

.aef-mercato {
  --ink: #030F0F;
  --green-bright: #00E27B;
  --muted: #C7D2CC;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  /* Fino a 1440px vale il margine del Figma (120px). Oltre, il margine cresce
     da solo e tiene il contenuto largo 1200px al centro: senza questo, su uno
     schermo largo le due colonne si allontanano all'infinito. */
  padding: 96px max(120px, (100% - 1200px) / 2);
  background: var(--ink);
  font-family: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
}

.aef-mercato__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 1 421px;
}

.aef-mercato__eyebrow {
  margin: 0;
  color: var(--green-bright);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 2.5px;
}

.aef-mercato__title {
  margin: 0;
  color: #FFFFFF;
  font-size: 42px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.aef-mercato__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 1 520px;
}

.aef-mercato__body {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 30px;
}

/* I capoversi del Figma sono righe vuote dentro un unico blocco di testo */
.aef-mercato__body p { margin: 0 0 1.4em; }
.aef-mercato__body p:last-child { margin-bottom: 0; }

.aef-mercato__claim {
  margin: 0;
  color: var(--green-bright);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

/* ---------- Comparsa allo scroll ---------- */
.aef-anima .aef-mercato .aef-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1);
}
.aef-mercato .aef-reveal.is-in { opacity: 1; transform: none; }
.aef-mercato__right .aef-reveal { transition-delay: .1s; }

body.elementor-editor-active .aef-mercato .aef-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .aef-mercato { gap: 48px; padding: 72px 40px; }
  .aef-mercato__title { font-size: 34px; line-height: 40px; }
  .aef-mercato__body { font-size: 17px; line-height: 28px; }
}

/* =========================================================================
   MOBILE — frame 390×667: le due colonne si impilano
   ========================================================================= */
@media (max-width: 767px) {
  .aef-mercato {
    flex-direction: column;
    gap: 20px;
    padding: 64px 24px;
  }

  .aef-mercato__left,
  .aef-mercato__right { flex: 1 1 auto; width: 100%; }

  .aef-mercato__eyebrow {
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 1px;
  }

  .aef-mercato__title {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.3px;
  }

  .aef-mercato__body {
    font-size: 16px;
    line-height: 26px;
  }

  .aef-mercato__claim {
    font-size: 17px;
    line-height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aef-mercato .aef-reveal { opacity: 1; transform: none; transition: none; }
}
