/* ==========================================================================
   ENERGIA SOLARE — Landing Ampliamento v2 (immersive)
   Scope: #am-page · prefisso am- · mobile-first · breakpoints 640/960/1280
   Regola del tema: OGNI selettore di classe è prefissato con #am-page
   (il reset #am-page * e flatsome.css caricato dopo perdono contro 1,1,0).
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
#am-page {
  --am-green: #059669;
  --am-green-dark: #047857;
  --am-green-darker: #064E3B;
  --am-deep: #05231c;          /* atti scuri */
  --am-deep-2: #0a2f26;        /* scuro elevato */
  --am-amber: #F59E0B;         /* CTA / accento */
  --am-amber-dark: #D97706;
  --am-bg: #f7faf9;
  --am-surface: #ffffff;
  --am-text: #16211d;
  --am-text-muted: #5d6b66;
  --am-text-inv: #eef5f2;
  --am-text-inv-muted: #9db4ac;
  --am-danger: #d64545;
  --am-radius: 14px;
  --am-radius-lg: 22px;
  --am-shadow: 0 4px 24px rgba(6, 46, 38, .08);
  --am-shadow-lg: 0 14px 48px rgba(6, 46, 38, .14);
  --am-out: cubic-bezier(.23, 1, .32, 1);
  --am-in-out: cubic-bezier(.77, 0, .175, 1);
  --am-font-h: 'Poppins', sans-serif;
  --am-font-b: 'Open Sans', sans-serif;
  --am-container: 1200px;
  --am-section-pad: clamp(84px, 11vw, 150px);
}

/* ---------- 2. RESET SCOPED ---------- */
#am-page,
#am-page *,
#am-page *::before,
#am-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#am-page {
  font-family: var(--am-font-b);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--am-text);
  background: var(--am-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

#am-page img,
#am-page svg,
#am-page video,
#am-page canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

#am-page ul,
#am-page ol {
  list-style: none;
}

#am-page a {
  color: inherit;
  text-decoration: none;
}

#am-page p a {
  color: var(--am-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#am-page button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

#am-page a:focus-visible,
#am-page button:focus-visible,
#am-page input:focus-visible,
#am-page select:focus-visible,
#am-page textarea:focus-visible {
  outline: 2px solid var(--am-amber);
  outline-offset: 2px;
}

#am-page h1,
#am-page h2,
#am-page h3,
#am-page h4 {
  font-family: var(--am-font-h);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--am-text);
}

#am-page p {
  max-width: 65ch;
}

#am-page .am-container {
  width: 100%;
  max-width: var(--am-container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

#am-page .am-h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 24ch;
}

#am-page .am-h2--inv {
  color: var(--am-text-inv);
}

#am-page .am-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#hero,
#perche-ampliare,
#offerta,
#cosa-aggiungere,
#come-funziona,
#form-contatto,
#domande-frequenti {
  scroll-margin-top: 86px;
}

/* ---------- 3. BOTTONI ---------- */
#am-page .am-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--am-font-h);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: 60px;
  padding: 14px 30px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 200ms var(--am-out),
    box-shadow 200ms var(--am-out),
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

#am-page .am-btn:active {
  transform: translateY(1px) scale(.99);
}

#am-page .am-btn--primary {
  background: var(--am-amber);
  border-color: var(--am-amber);
  color: #201503;
}

@media (hover: hover) and (pointer: fine) {
  #am-page .am-btn--primary:hover {
    background: var(--am-amber-dark);
    border-color: var(--am-amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(245, 158, 11, .38);
  }
}

#am-page .am-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .4);
  color: var(--am-text-inv);
}

@media (hover: hover) and (pointer: fine) {
  #am-page .am-btn--secondary:hover {
    background: var(--am-surface);
    border-color: var(--am-surface);
    color: var(--am-deep);
    transform: translateY(-2px);
  }
}

#am-page .am-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: var(--am-text-inv);
}

@media (hover: hover) and (pointer: fine) {
  #am-page .am-btn--ghost:hover {
    background: var(--am-surface);
    border-color: var(--am-surface);
    color: var(--am-deep);
    transform: translateY(-2px);
  }
}

#am-page .am-btn--sm { padding: 10px 20px; font-size: .9rem; }
#am-page .am-btn--lg { padding: 17px 36px; font-size: 1.05rem; }
#am-page .am-btn--full { width: 100%; }

/* Shine sweep (barrido di luce, lanciato dal JS via --shine-x) */
@property --am-shine-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -120%;
}

#am-page .am-btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 38%,
    rgba(255, 255, 255, .55) 50%,
    transparent 62%);
  transform: translateX(var(--am-shine-x));
  pointer-events: none;
}

#am-page .am-btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(32, 21, 3, .25);
  border-top-color: #201503;
  border-radius: 50%;
  animation: am-spin .7s linear infinite;
}

#am-page .am-btn.is-loading { opacity: .75; pointer-events: none; }
#am-page .am-btn.is-loading .am-btn__spinner { display: inline-block; }

@keyframes am-spin { to { transform: rotate(360deg); } }

/* ---------- 4. MOTION UTILITIES ---------- */
#am-page .am-reveal { display: block; overflow: hidden; }
#am-page .am-reveal__inner { display: block; }

#am-page.am-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--am-out), transform .7s var(--am-out);
  transition-delay: var(--am-reveal-delay, 0s);
}

#am-page.am-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   6. HERO VIDEO
   ========================================================================== */
#am-page .am-hero {
  position: relative;
  min-height: min(96vh, 940px);
  display: flex;
  align-items: flex-end;
  background: var(--am-deep);
  overflow: hidden;
}

@supports (min-height: 96dvh) {
  #am-page .am-hero { min-height: min(96dvh, 940px); }
}

/* Barre cinematografiche: esistono solo con JS attivo (le anima via GSAP) */
#am-page .am-hero__bar {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(38px, 6vh, 64px);
  background: var(--am-deep);
  z-index: 5;
  pointer-events: none;
}

#am-page.am-js .am-hero__bar { display: block; }

#am-page .am-hero__bar--top { top: 0; }
#am-page .am-hero__bar--bottom { bottom: 0; }

#am-page .am-hero__media {
  position: absolute;
  inset: 0;
}

#am-page .am-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#am-page .am-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 35, 28, .42) 0%,
      rgba(5, 35, 28, .16) 40%,
      rgba(5, 35, 28, .78) 80%,
      rgba(5, 35, 28, .95) 100%);
}

#am-page .am-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: clamp(64px, 9vh, 110px);
}

#am-page .am-hero__title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--am-text-inv);
  max-width: 26ch;
}

#am-page .am-hero__subtitle {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--am-text-inv-muted);
  max-width: 52ch;
}

#am-page .am-hero__subtitle strong { color: var(--am-text-inv); }

#am-page .am-hero__cta-group {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

#am-page .am-hero__badges {
  margin-top: clamp(32px, 5vh, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

#am-page .am-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--am-text-inv);
}

#am-page .am-hero__badges svg { color: var(--am-amber); flex: none; }

/* ==========================================================================
   7. TRUST STRIP (odometri)
   ========================================================================== */
#am-page .am-trust {
  background: var(--am-bg);
  padding: clamp(48px, 7vw, 84px) 0;
}

#am-page .am-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}

@media (min-width: 960px) {
  #am-page .am-trust__grid { grid-template-columns: repeat(4, 1fr); }
}

#am-page .am-trust__item {
  text-align: center;
}

#am-page .am-trust__num {
  display: block;
  font-family: var(--am-font-h);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--am-green-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

#am-page .am-trust__label {
  display: block;
  margin-top: 4px;
  color: var(--am-text-muted);
  font-size: .95rem;
}

/* Odometro: cifre a rullo */
#am-page .am-odo {
  display: inline-flex;
  overflow: hidden;
}

#am-page .am-odo__digit {
  display: inline-block;
  height: 1.1em;
  overflow: hidden;
}

#am-page .am-odo__reel {
  display: block;
}

#am-page .am-odo__reel span {
  display: block;
  height: 1.1em;
  line-height: 1.1;
}

/* ==========================================================================
   12. PRICING (glow border cards)
   ========================================================================== */
#am-page .am-pricing {
  padding: var(--am-section-pad) 0;
  background: var(--am-deep);
}

#am-page .am-pricing__lead {
  margin-top: 18px;
  color: var(--am-text-inv-muted);
  max-width: 58ch;
}

#am-page .am-pricing__grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

@media (min-width: 960px) {
  #am-page .am-pricing__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Glow border: doppio strato, luce ambra che segue il cursore (--mx/--my dal JS) */
#am-page .am-price-card {
  --mx: 50%;
  --my: -20%;
  position: relative;
  border-radius: var(--am-radius-lg);
  padding: 1px;
  background:
    radial-gradient(240px circle at var(--mx) var(--my),
      rgba(245, 158, 11, .85), rgba(245, 158, 11, .12) 45%, rgba(255, 255, 255, .08) 70%);
  display: flex;
  flex-direction: column;
}

#am-page .am-price-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--am-radius-lg) - 1px);
  background: var(--am-deep-2);
  z-index: 0;
}

#am-page .am-price-card > * {
  position: relative;
  z-index: 1;
}

#am-page .am-price-card {
  padding: clamp(26px, 3vw, 36px);
}

#am-page .am-price-card--featured {
  --my: 110%;
  background:
    radial-gradient(280px circle at var(--mx) var(--my),
      rgba(245, 158, 11, 1), rgba(245, 158, 11, .25) 45%, rgba(255, 255, 255, .14) 70%);
}

@media (min-width: 960px) {
  #am-page .am-price-card--featured {
    transform: scale(1.04);
  }
}

#am-page .am-price-card__ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--am-amber);
  color: #201503;
  font-family: var(--am-font-h);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 60px;
  padding: 5px 16px;
  white-space: nowrap;
}

#am-page .am-price-card__plan {
  font-family: var(--am-font-h);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--am-amber);
}

#am-page .am-price-card__name {
  margin-top: 8px;
  font-size: 1.22rem;
  color: var(--am-text-inv);
  min-height: 2.6em;
}

#am-page .am-price-card__price {
  margin-top: 14px;
  font-family: var(--am-font-h);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--am-text-inv);
  line-height: 1;
}

#am-page .am-price-card__tax {
  margin-top: 6px;
  font-size: .92rem;
  color: var(--am-text-inv-muted);
}

#am-page .am-price-card__tax strong { color: #4ade80; }

#am-page .am-price-card__features {
  margin-top: 20px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

#am-page .am-price-card__features li {
  position: relative;
  padding-left: 26px;
  color: var(--am-text-inv-muted);
  font-size: .95rem;
  line-height: 1.5;
}

#am-page .am-price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

#am-page .am-price-card__features strong { color: var(--am-text-inv); }

#am-page .am-pricing__disclaimer {
  margin-top: clamp(28px, 4vw, 40px);
  color: var(--am-text-inv-muted);
  font-size: .92rem;
  max-width: 72ch;
}

/* ==========================================================================
   14. TESTIMONIANZE
   ========================================================================== */
#am-page .am-reviews {
  padding: var(--am-section-pad) 0;
  background: var(--am-surface);
}

#am-page .am-reviews__grid {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 960px) {
  #am-page .am-reviews__grid { grid-template-columns: repeat(3, 1fr); }
}

#am-page .am-review {
  background: var(--am-bg);
  border-radius: var(--am-radius-lg);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}

#am-page .am-review__stars {
  color: var(--am-amber);
  letter-spacing: 2px;
  font-size: 1.05rem;
}

#am-page .am-review blockquote {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--am-text);
  flex: 1;
}

#am-page .am-review footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .92rem;
  color: var(--am-text-muted);
}

#am-page .am-review footer strong {
  color: var(--am-text);
  font-family: var(--am-font-h);
}

#am-page .am-review__saving {
  margin-top: 8px;
  align-self: flex-start;
  background: rgba(5, 150, 105, .1);
  color: var(--am-green-dark);
  font-weight: 600;
  font-size: .85rem;
  border-radius: 60px;
  padding: 4px 12px;
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */
#am-page .am-faq {
  padding: var(--am-section-pad) 0;
  background: var(--am-surface);
}

#am-page .am-faq__inner { max-width: 860px; }

#am-page .am-faq__list {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(6, 78, 59, .14);
}

#am-page .am-faq__item {
  border-bottom: 1px solid rgba(6, 78, 59, .14);
}

#am-page .am-faq__q { font-size: 1rem; }

#am-page .am-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font-family: var(--am-font-h);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.4;
  color: var(--am-text);
  padding: 22px 4px;
}

#am-page .am-faq__btn svg {
  flex: none;
  color: var(--am-green-dark);
  transition: transform .35s var(--am-out);
}

#am-page .am-faq__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

#am-page.am-js .am-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--am-in-out);
}

#am-page.am-js .am-faq__item.is-open .am-faq__a { max-height: 420px; }

#am-page .am-faq__a p {
  padding: 0 4px 24px;
  color: var(--am-text-muted);
}

#am-page .am-faq__a strong { color: var(--am-text); }

/* ==========================================================================
   17. CTA FINALE + FORM + CONTATTO DIRETTO
   ========================================================================== */
#am-page .am-cta {
  padding: var(--am-section-pad) 0;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(5, 150, 105, .16), transparent 60%),
    var(--am-deep);
}

#am-page .am-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

@media (min-width: 960px) {
  #am-page .am-cta__grid { grid-template-columns: 5fr 6fr; }
}

#am-page .am-cta__copy > p {
  margin-top: 18px;
  color: var(--am-text-inv-muted);
}

#am-page .am-cta__copy strong { color: var(--am-text-inv); }

#am-page .am-cta__proof {
  font-size: .95rem;
}

#am-page .am-cta__stars {
  color: var(--am-amber);
  letter-spacing: 2px;
  margin-right: 6px;
}

#am-page .am-cta__points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

#am-page .am-cta__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--am-text-inv);
  font-weight: 500;
}

#am-page .am-cta__points svg {
  flex: none;
  margin-top: 4px;
  color: #34d399;
}

#am-page .am-direct-contact {
  margin-top: clamp(32px, 4vw, 44px);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--am-radius-lg);
  padding: clamp(22px, 3vw, 30px);
}

#am-page .am-direct-contact__text h3 {
  font-size: 1.15rem;
  color: var(--am-text-inv);
}

#am-page .am-direct-contact__text p {
  margin-top: 6px;
  color: var(--am-text-inv-muted);
  font-size: .95rem;
}

#am-page .am-direct-contact__buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#am-page .am-direct-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 60px;
  padding: 11px 22px;
  font-size: .92rem;
  line-height: 1.3;
  transition: transform .2s var(--am-out), border-color .2s ease;
}

#am-page .am-direct-contact__btn span {
  display: flex;
  flex-direction: column;
}

#am-page .am-direct-contact__btn strong {
  font-family: var(--am-font-h);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
}

#am-page .am-direct-contact__btn--phone {
  border: 2px solid rgba(255, 255, 255, .35);
  color: var(--am-text-inv);
}

#am-page .am-direct-contact__btn--whatsapp {
  background: #25D366;
  color: #0b2416;
}

@media (hover: hover) and (pointer: fine) {
  #am-page .am-direct-contact__btn:hover { transform: translateY(-2px); }
  #am-page .am-direct-contact__btn--phone:hover { border-color: var(--am-text-inv); }
}

/* Form card */
#am-page .am-form-card {
  background: var(--am-surface);
  border-radius: var(--am-radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--am-shadow-lg);
}

#am-page .am-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#am-page .am-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  #am-page .am-form__row { grid-template-columns: 1fr 1fr; }
}

#am-page .am-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#am-page .am-form__field label {
  font-family: var(--am-font-h);
  font-weight: 600;
  font-size: .9rem;
  color: var(--am-text);
}

#am-page .am-form__field input[type="text"],
#am-page .am-form__field input[type="tel"],
#am-page .am-form__field input[type="email"],
#am-page .am-form__field select {
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--am-text);
  background: var(--am-bg);
  border: 1.5px solid rgba(6, 46, 38, .16);
  border-radius: var(--am-radius);
  padding: 12px 15px;
  width: 100%;
  height: auto; /* Flatsome fissa height sui select: il testo veniva tagliato */
  min-height: 49px;
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease;
}

#am-page .am-form__field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

#am-page .am-form__field input:focus,
#am-page .am-form__field select:focus {
  border-color: var(--am-green);
  background: var(--am-surface);
}

#am-page .am-form__field.has-error input,
#am-page .am-form__field.has-error select {
  border-color: var(--am-danger);
}

#am-page .am-form__error {
  display: none;
  font-size: .85rem;
  color: var(--am-danger);
}

#am-page .am-form__field.has-error .am-form__error { display: block; }

#am-page .am-form__field--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

#am-page .am-form__field--check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--am-green);
  flex: none;
}

#am-page .am-form__field--check label {
  font-family: var(--am-font-b);
  font-weight: 400;
  font-size: .9rem;
  color: var(--am-text-muted);
  flex: 1;
  min-width: 200px;
}

#am-page .am-form__field--check label a {
  color: var(--am-green-dark);
  text-decoration: underline;
}

#am-page .am-form__field--check .am-form__error { flex-basis: 100%; }

#am-page .am-form__msg {
  display: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--am-radius);
}

#am-page .am-form__msg.is-error {
  display: block;
  color: var(--am-danger);
  background: rgba(214, 69, 69, .08);
  border: 1px solid rgba(214, 69, 69, .25);
}

/* ---------- STICKY CTA MOBILE ---------- */
#am-page .am-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  transform: translateY(140%);
  transition: transform .4s var(--am-out);
}

#am-page .am-sticky-cta.is-visible { transform: none; }

@media (min-width: 960px) {
  #am-page .am-sticky-cta { display: none; }
}

/* ==========================================================================
   A1. MANIFESTO (reveal parola per parola) + STATS
   ========================================================================== */
#am-page .am-manifesto {
  padding: var(--am-section-pad) 0;
  background: var(--am-surface);
}

#am-page .am-manifesto__text {
  font-family: var(--am-font-h);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 26ch;
  color: var(--am-text);
}

#am-page .am-manifesto__text .am-w {
  opacity: .14;
  transition: opacity .3s ease;
}

#am-page .am-manifesto__text .am-w.is-on { opacity: 1; }

#am-page .am-manifesto__stats {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  #am-page .am-manifesto__stats { grid-template-columns: repeat(3, 1fr); }
}

#am-page .am-manifesto__stats li {
  border-left: 2px solid rgba(245, 158, 11, .55);
  padding: 4px 0 4px 20px;
  color: var(--am-text-muted);
  font-size: .95rem;
}

#am-page .am-manifesto__num {
  display: block;
  font-family: var(--am-font-h);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--am-green-dark);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   A2. BOLLETTA PRIMA/DOPO (dark)
   ========================================================================== */
#am-page .am-bill {
  padding: var(--am-section-pad) 0;
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(5, 150, 105, .13), transparent 60%),
    var(--am-deep);
}

#am-page .am-bill__grid {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 960px) {
  #am-page .am-bill__grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
}

#am-page .am-bill__card {
  border-radius: var(--am-radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
}

#am-page .am-bill__card--before {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(214, 69, 69, .35);
}

#am-page .am-bill__card--after {
  background: var(--am-green-darker);
  border: 1px solid rgba(52, 211, 153, .4);
  box-shadow: 0 18px 48px rgba(4, 40, 32, .5);
}

#am-page .am-bill__label {
  font-family: var(--am-font-h);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--am-text-inv-muted);
}

#am-page .am-bill__card--after .am-bill__label { color: #6ee7b7; }

#am-page .am-bill__value {
  margin-top: 10px;
  font-family: var(--am-font-h);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 1;
  color: var(--am-text-inv);
  font-variant-numeric: tabular-nums;
}

#am-page .am-bill__value small {
  font-size: .35em;
  font-weight: 600;
  color: var(--am-text-inv-muted);
}

#am-page .am-bill__desc {
  margin-top: 12px;
  color: var(--am-text-inv-muted);
  font-size: .95rem;
}

#am-page .am-bill__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-amber);
}

#am-page .am-bill__arrow svg { transform: rotate(90deg); }

@media (min-width: 960px) {
  #am-page .am-bill__arrow svg { transform: none; }
}

#am-page .am-bill__savings {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--am-text-inv);
  font-weight: 600;
}

#am-page .am-bill__savings svg { color: #34d399; flex: none; }
#am-page .am-bill__savings strong { color: #6ee7b7; }

/* ==========================================================================
   A3. FEATURE BLOCK (lista + media sticky con crossfade)
   ========================================================================== */
#am-page .am-feat {
  padding: var(--am-section-pad) 0;
  background: var(--am-bg);
}

#am-page .am-feat__grid {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 960px) {
  #am-page .am-feat__grid { grid-template-columns: 5fr 6fr; }
}

#am-page .am-feat__item {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 20px 4px 20px 22px;
  border-bottom: 1px solid rgba(6, 78, 59, .12);
  opacity: .55;
  transition: opacity .3s ease;
}

#am-page .am-feat__item.is-active { opacity: 1; }

#am-page .am-feat__bar {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 2px;
  background: rgba(6, 78, 59, .12);
  overflow: hidden;
}

#am-page .am-feat__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--am-green);
  transform: scaleY(0);
  transform-origin: top center;
}

#am-page .am-feat__item h3 {
  font-size: 1.12rem;
}

#am-page .am-feat__item p {
  margin-top: 8px;
  color: var(--am-text-muted);
  font-size: .95rem;
}

#am-page.am-js .am-feat__item p {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--am-in-out);
}

#am-page.am-js .am-feat__item.is-active p { max-height: 180px; }

#am-page .am-feat__stage {
  position: relative;
  min-height: 340px;
  border-radius: var(--am-radius-lg);
  background: var(--am-surface);
  box-shadow: var(--am-shadow-lg);
  overflow: hidden;
}

@media (min-width: 960px) {
  #am-page .am-feat__stage {
    position: sticky;
    top: 14vh;
    min-height: 440px;
  }
}

#am-page .am-feat__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .5s var(--am-out), transform .5s var(--am-out);
}

#am-page .am-feat__visual.is-active {
  opacity: 1;
  transform: none;
}

#am-page .am-feat__visual img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   A4. SCENARI (griglia 6 card)
   ========================================================================== */
#am-page .am-scenarios {
  padding: var(--am-section-pad) 0;
  background: var(--am-surface);
}

#am-page .am-scenarios__lead {
  margin-top: 14px;
  color: var(--am-text-muted);
}

#am-page .am-scenarios__grid {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  #am-page .am-scenarios__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  #am-page .am-scenarios__grid { grid-template-columns: repeat(3, 1fr); }
}

#am-page .am-scenario {
  background: var(--am-bg);
  border-radius: var(--am-radius-lg);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform .3s var(--am-out), box-shadow .3s var(--am-out);
}

@media (hover: hover) and (pointer: fine) {
  #am-page .am-scenario:hover {
    transform: translateY(-5px);
    box-shadow: var(--am-shadow-lg);
  }
}

#am-page .am-scenario svg { color: var(--am-green-dark); }

#am-page .am-scenario h3 {
  margin-top: 14px;
  font-size: 1.08rem;
}

#am-page .am-scenario p {
  margin-top: 8px;
  color: var(--am-text-muted);
  font-size: .94rem;
}

/* ==========================================================================
   A5. CARD STACK — 7 GIORNI (sticky deck)
   ========================================================================== */
#am-page .am-days {
  padding: var(--am-section-pad) 0 clamp(48px, 7vw, 96px);
  background: var(--am-bg);
}

#am-page .am-days__stack {
  margin-top: clamp(28px, 4vw, 44px);
}

#am-page .am-day {
  position: sticky;
  top: 14vh;
  padding-bottom: 22px;
}

#am-page .am-day__inner {
  background: var(--am-deep-2);
  color: var(--am-text-inv);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--am-radius-lg);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 20px 50px rgba(4, 30, 24, .35);
  min-height: 240px;
  transform-origin: center top;
}

#am-page .am-day:nth-child(2) .am-day__inner { background: #0c352b; }
#am-page .am-day:nth-child(3) .am-day__inner { background: #0e3d31; }
#am-page .am-day:nth-child(4) .am-day__inner { background: var(--am-green-darker); }

#am-page .am-day__when {
  font-family: var(--am-font-h);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--am-amber);
}

#am-page .am-day__inner h3 {
  margin-top: 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: var(--am-text-inv);
}

#am-page .am-day__inner p {
  margin-top: 12px;
  color: var(--am-text-inv-muted);
  max-width: 60ch;
}

/* ==========================================================================
   A6. VANTAGGI (griglia compatta)
   ========================================================================== */
#am-page .am-benefits {
  padding: var(--am-section-pad) 0;
  background: var(--am-surface);
}

#am-page .am-benefits__grid {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 40px;
}

@media (min-width: 640px) {
  #am-page .am-benefits__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  #am-page .am-benefits__grid { grid-template-columns: repeat(3, 1fr); gap: 12px 40px; }
}

#am-page .am-benefits__grid li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid rgba(6, 78, 59, .1);
}

#am-page .am-benefits__grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

#am-page .am-benefits__grid h3 {
  font-size: 1.02rem;
}

#am-page .am-benefits__grid p {
  margin-top: 6px;
  color: var(--am-text-muted);
  font-size: .92rem;
}

/* ==========================================================================
   A7. TRUSTPILOT
   ========================================================================== */
#am-page .am-trustpilot {
  margin-top: clamp(40px, 6vw, 64px);
  background: #f0faf5;
  border: 1px solid rgba(0, 182, 122, .18);
  border-radius: var(--am-radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

#am-page .am-trustpilot p { color: var(--am-text-muted); }
#am-page .am-trustpilot p strong { color: var(--am-text); font-family: var(--am-font-h); }

#am-page .am-trustpilot__link {
  display: inline-flex;
  padding: 12px 28px;
  border-radius: 60px;
  background: #00B67A;
  color: #fff;
  font-family: var(--am-font-h);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s var(--am-out), background .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  #am-page .am-trustpilot__link:hover {
    background: #009c69;
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   18. REDUCED MOTION — il CSS dipinge lo stato finale
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #am-page *,
  #am-page *::before,
  #am-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  #am-page.am-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  #am-page.am-js .am-faq__a { max-height: none; }
  #am-page.am-js .am-faq__item:not(.is-open) .am-faq__a { max-height: 0; }

  #am-page .am-btn--shine::after { display: none; }

  #am-page .am-hero__bar { display: none !important; }

  #am-page .am-manifesto__text .am-w { opacity: 1 !important; }

  #am-page.am-js .am-feat__item p { max-height: none; }

  #am-page .am-day { position: static; }
}
