/* =========================================================================
   Alzati e Fattura — sezione 08 PER TE SE
   Desktop 1440×657 · mobile 390×763.
   A sinistra il titolo, a destra quattro profili con la spunta verde.
   ========================================================================= */

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

.aef-perte {
  --ink: #030F0F;
  --green-bright: #00E27B;
  --muted: #C7D2CC;
  --dim: #7A8A82;
  --orange: #FF5C1F;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  /* Contenuto tenuto a 1200px al centro: vedi mercato.css */
  padding: 96px max(120px, (100% - 1200px) / 2);
  background: var(--ink);
  font-family: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
}

.aef-perte__left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 1 389px;
}

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

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

.aef-perte__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 0 1 562px;
}

.aef-perte__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aef-perte__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.aef-perte__check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.aef-perte__label {
  margin: 0 0 4px;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.aef-perte__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Bottone ---------- */
.aef-perte__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.aef-perte__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow:
    0 0 18px 1px rgba(255, 92, 31, 0.65),
    0 0 44px 6px rgba(255, 92, 31, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.28);
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* ---------- Hover del pulsante ----------
   I valori sono quelli del componente «Button / CTA» del Figma, che lo stato
   Hover ce l'ha dichiarato: sfondo #FF5C1F → #FF7A45, bordo bianco dal 40 al
   55%, i due aloni più ampi, luce interna dal 28 al 40%. Prima qui c'era un
   generico `brightness(1.05)`.

   Il colore del testo **non cambia in hover: resta nero**. Chiuso così il
   2026-08-12 dal cliente. Il 10 agosto era stato messo il blu notte #333366,
   letto dallo screenshot del designer; era un equivoco, e le due fonti che
   dicevano il contrario avevano ragione — la didascalia dello screenshot
   («hover dei pulsanti non deve essere blue») e il componente «Button / CTA»
   del Figma, che nello stato Hover ha il testo nero come nello stato normale.

   Il colore va comunque **dichiarato in ogni stato**: senza, quello che si
   vedeva era il #333366 di Elementor per i link, cioè lo stesso colore ma per
   caso e non per scelta — e su :visited restava anche a mouse fermo. */
.aef-perte__btn,
.aef-perte__btn:link,
.aef-perte__btn:visited { color: #030F0F; }

.aef-perte__btn:hover,
.aef-perte__btn:focus,
.aef-perte__btn:active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background: #FF7A45;
  color: #030F0F;
  box-shadow:
    0 0 26px 3px rgba(255, 122, 69, 0.75),
    0 0 60px 10px rgba(255, 122, 69, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.aef-perte__note {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Comparsa ---------- */
.aef-anima .aef-perte .aef-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1);
}
.aef-perte .aef-reveal.is-in { opacity: 1; transform: none; }
.aef-perte__item:nth-child(2) { transition-delay: .07s }
.aef-perte__item:nth-child(3) { transition-delay: .14s }
.aef-perte__item:nth-child(4) { transition-delay: .21s }

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

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

/* =========================================================================
   MOBILE — frame 390×763
   ========================================================================= */
@media (max-width: 767px) {
  .aef-perte {
    flex-direction: column;
    gap: 20px;
    padding: 64px 24px;
  }

  .aef-perte__left,
  .aef-perte__right { flex: 1 1 auto; width: 100%; }

  /* Nel frame telefono il segno di spunta sta più vicino al testo */
  .aef-perte__item { gap: 12px; }

  .aef-perte__eyebrow {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1px;
  }

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

  .aef-perte__label { font-size: 17px; }
  .aef-perte__desc { font-size: 13.5px; }

  .aef-perte__cta { align-items: stretch; }

  .aef-perte__btn {
    padding: 16px 30px;
    font-size: 16px;
    line-height: 20px;
  }

  .aef-perte__note { text-align: center; }
}

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