/* ==========================================================================
   Q4 2026 ROAS — OPT-IN
   style.css — foglio di stile unico, mobile first.
   Ricostruito dal design del vecchio opt-in Q2, senza ClickFunnels.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --green-500: #8cc126;
  --green-600: #4e912d;
  --green-700: #3a7020;
  --green-300: #a0d636;
  --green-100: #d4eda8;
  --green-050: #f0f9e8;

  --gold-300: #f5e27a;
  --gold-500: #e5c547;
  --gold-600: #c9a220;
  --gold-700: #a88510;
  --gold-900: #3a2a05;

  --red-500: #dc2626;
  --red-700: #991b1b;
  --red-050: #fef2f2;

  --ink-900: #0f172a;
  --ink-800: #1a1a1a;
  --ink-600: #334155;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --line: #e2e8f0;
  --page-bg: #f8fafc;

  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: 800px;
  --gutter: 18px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--page-bg);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-modal-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container > section {
  padding: 20px 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 20px 0;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.top-bar {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.top-bar__date {
  white-space: nowrap;
}

/* Mobile: etichetta sopra, data intera su una sola riga sotto */
@media (max-width: 600px) {
  .top-bar {
    padding: 12px 12px;
    line-height: 1.3;
  }

  .top-bar__label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
  }

  .top-bar__date {
    display: block;
    font-size: clamp(0.95rem, 4.6vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0;
  }
}

/* --------------------------------------------------------------------------
   Titoli
   -------------------------------------------------------------------------- */

.big-headline {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sub-headline {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.section-heading {
  text-align: center;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 24px 0 14px;
}

.shine-text {
  background: linear-gradient(
    90deg,
    var(--green-600) 0%,
    var(--green-500) 25%,
    #d4f07a 50%,
    var(--green-500) 75%,
    var(--green-600) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: text-shine 3s ease-in-out infinite;
}

@keyframes text-shine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 0 0 30px;
}

.hero .flash-label {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1.5px solid var(--gold-500);
}

.hero .flash-label .emoji {
  font-size: 1.1rem;
}

.hero-headline-forced {
  font-size: clamp(2.5rem, 12vw, 6rem);
  width: 100%;
}

.hero-subheadline-forced {
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-subheadline-forced span {
  white-space: nowrap;
}

.hero .description {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 8px;
}

.hero .description .highlight {
  color: var(--green-600);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-question {
  font-size: clamp(2.5rem, 12vw, 6rem);
  margin-bottom: 10px;
}

.pre-headline {
  display: inline-block;
  background: var(--ink-900);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 9999px;
  margin: 24px 0 14px;
}

.hero .pre-headline + .flash-label {
  display: table;
  margin: 0 auto 16px;
}

/* --------------------------------------------------------------------------
   VSL (opt-in + thank-you)
   Contenitore 16:9 pronto per l'embed Vidalytics: sostituire
   .vsl-placeholder con il codice embed.
   -------------------------------------------------------------------------- */

.vsl-section {
  padding-top: 0;
}

.vsl-frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  border: 3px solid var(--green-500);
}

.vsl-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e293b, var(--ink-900));
}

.vsl-placeholder svg {
  width: 64px;
  height: 64px;
  padding: 18px 16px 18px 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  fill: #fff;
  box-shadow: 0 8px 24px rgba(78, 145, 45, 0.5);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta-wrapper {
  text-align: center;
  margin: 20px 0;
}

.cta-button {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--green-300), var(--green-500) 40%, var(--green-600));
  color: #fff;
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  padding: 22px 20px;
  border-radius: 9999px;
  border: none;
  border-bottom: 6px solid var(--green-700);
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 30px rgba(78, 145, 45, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  animation: pulse 2s ease-in-out infinite;
  transition: transform 0.15s, box-shadow 0.15s, border-bottom 0.15s;
}

.cta-button:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(78, 145, 45, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(3px) scale(0.98);
  border-bottom-width: 2px;
  box-shadow: 0 4px 12px rgba(78, 145, 45, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-button small {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.cta-note {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-600);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Form d'iscrizione (hero + popup)
   -------------------------------------------------------------------------- */

.signup-form-wrapper {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  border-radius: 20px;
  padding: 32px 22px;
  margin: 0 auto 40px;
  max-width: 500px;
  box-shadow: 0 12px 40px rgba(78, 145, 45, 0.35);
}

.signup-form-wrapper h3 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.signup-form-wrapper h3 span {
  color: var(--gold-300);
  font-style: italic;
}

.intro-form .signup-form-wrapper h3 {
  font-size: clamp(1.3rem, 4.2vw, 1.75rem);
  margin-bottom: 14px;
}

.form-intro {
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 22px;
}

.signup-form .form-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.signup-form .form-field:focus-within {
  border-color: var(--gold-300);
  background: rgba(255, 255, 255, 0.22);
}

.signup-form .form-field.is-invalid {
  border-color: #ffb4b4;
  background: rgba(220, 38, 38, 0.18);
}

.signup-form .form-field__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: rgba(255, 255, 255, 0.6);
}

.signup-form .form-field input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  width: 100%;
  min-width: 0;
}

.signup-form .form-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* Prefisso internazionale: la select nativa copre il pill "+39", così su
   mobile si apre il picker di sistema senza librerie esterne. */
.form-field--phone {
  gap: 8px;
}

.phone-prefix {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.phone-prefix__value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.phone-prefix__value::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.8);
}

.phone-prefix select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px; /* evita lo zoom automatico su iOS */
}

.form-error {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-700);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 14px;
  text-align: left;
}

.form-submit {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 40%, var(--gold-600));
  color: var(--gold-900);
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  padding: 22px 20px;
  border-radius: 9999px;
  border: none;
  border-bottom: 5px solid var(--gold-700);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(201, 162, 32, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse 2s ease-in-out infinite;
  transition: transform 0.15s, box-shadow 0.15s, border-bottom 0.15s;
}

.form-submit:hover:not(:disabled) {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(201, 162, 32, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.form-submit:active:not(:disabled) {
  transform: translateY(3px) scale(0.98);
  border-bottom-width: 2px;
  box-shadow: 0 4px 12px rgba(201, 162, 32, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.form-submit:disabled {
  cursor: progress;
  opacity: 0.85;
  animation: none;
  transform: none;
  font-size: 1.3rem;
}

.form-submit small {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
  color: #5a4210;
}

.form-submit__spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  border: 3px solid rgba(58, 42, 5, 0.25);
  border-top-color: var(--gold-900);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-note {
  color: #fff;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 20px;
}

.form-note .underline-green {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.cta-note--on-green {
  color: var(--gold-300);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Modal d'iscrizione (aperto dalle CTA)
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px var(--gutter);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: auto;
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal__close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink-900);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.modal__headline {
  text-align: center;
  padding: 18px 8px 16px;
}

.modal__headline p {
  margin: 0;
}

.modal__headline-big {
  font-size: clamp(2.1rem, 9vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.modal__headline-sub {
  margin-top: 10px !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-600);
  line-height: 1.3;
}

.modal__headline-sub span {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.modal__headline-question {
  margin-top: 8px !important;
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.modal .signup-form-wrapper {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Card benefici
   -------------------------------------------------------------------------- */

.benefit-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 16px 0 20px;
}

.benefit-card {
  background: var(--green-050);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.benefit-card-img {
  background: var(--green-100);
  min-height: 140px;
}

.benefit-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.benefit-card-body {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.benefit-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 4px;
  fill: var(--green-600);
}

.benefit-card-body p {
  font-size: 1.3rem;
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.benefit-card-body p strong {
  color: var(--green-600);
  font-size: 1.35em;
  line-height: 1.2;
  display: inline-block;
}

.bio-cards .benefit-card-body p strong,
.inline-strong-cards .benefit-card-body p strong {
  font-size: inherit;
  line-height: inherit;
  display: inline;
}

.benefit-emoji {
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  margin-top: 4px;
}

.benefit-card-body p strong {
  overflow-wrap: anywhere;
}

.bio-photo {
  text-align: center;
  margin: 24px 0 30px;
}

.bio-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Step cards (verdi / rosse)
   -------------------------------------------------------------------------- */

.green-steps,
.red-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 30px;
}

.green-step-card,
.red-step-card {
  border-radius: 14px;
  padding: 28px 24px 28px 82px;
  position: relative;
  overflow: hidden;
}

.green-step-card {
  background: var(--green-050);
}

.red-step-card {
  background: var(--red-050);
}

.green-step-number,
.red-step-number {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.green-step-number {
  color: rgba(78, 145, 45, 0.15);
}

.red-step-number {
  color: rgba(220, 38, 38, 0.1);
}

.green-step-card p,
.red-step-card p {
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  line-height: 1.6;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.green-step-card p {
  color: var(--ink-800);
}

.green-step-card p strong {
  color: var(--green-600);
}

.red-step-card p {
  color: var(--red-700);
}

.red-step-card p strong {
  color: var(--red-500);
}

.green-step-card .step-title {
  display: block;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Blocchi di testo
   -------------------------------------------------------------------------- */

.text-section {
  margin: 16px 0;
}

.text-section p {
  font-size: 1.05rem;
  color: var(--ink-600);
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: left;
}

.text-section p:last-child {
  margin-bottom: 0;
}

.text-section p strong {
  color: var(--ink-900);
}

.text-big p {
  font-size: clamp(1.5rem, 4.5vw, 1.6rem);
  line-height: 1.7;
}

.text-big p strong {
  color: var(--green-600);
}

.text-bold {
  font-weight: 700;
  color: var(--ink-900) !important;
}

.text-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.text-check svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  fill: var(--green-600);
}

.flash-warning {
  color: var(--red-500) !important;
  font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  text-align: center !important;
  animation: flash-blink 1.2s ease-in-out infinite;
  margin: 20px 0 !important;
}

@keyframes flash-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.section-green {
  background: var(--green-050);
  padding: 24px var(--gutter);
  margin: 30px calc(var(--gutter) * -1);
  overflow: hidden;
}

/* Sottotitoli lunghi: stessa gerarchia, corpo più piccolo per non spezzare
   male su mobile. */
.sub-headline--sm {
  font-size: clamp(1.45rem, 4.8vw, 2.3rem);
}

.headline-tail {
  text-align: center;
  font-size: clamp(1.35rem, 4.2vw, 1.8rem);
  font-weight: 700;
  color: var(--ink-600);
  line-height: 1.35;
  margin-top: 12px;
}

.headline-tail strong {
  color: var(--green-600);
}

.question-label {
  text-align: center;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  font-weight: 800;
  color: var(--ink-600);
  margin-bottom: 14px;
}

.callout {
  background: var(--ink-900);
  color: #fff;
  border-radius: 20px;
  border-left: 6px solid var(--gold-500);
  padding: 28px 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.25);
}

.callout p {
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 14px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout p strong {
  color: var(--gold-300);
}

.callout .callout__title {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-300);
}

/* --------------------------------------------------------------------------
   Blocco data evento
   -------------------------------------------------------------------------- */

.event-date-section {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  border-radius: 20px;
  padding: 40px 24px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 12px 40px rgba(78, 145, 45, 0.35);
}

.event-date-section .event-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.event-date-section .event-title .highlight-gold {
  color: var(--gold-300);
  font-style: italic;
}

.event-date-card {
  display: inline-block;
  background: #fff;
  border-radius: 16px;
  padding: 20px 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.event-date-card .day-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-900);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  display: inline-block;
  padding: 4px 16px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.event-date-card .day-number {
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 900;
  color: var(--ink-800);
  line-height: 1;
  margin-bottom: 2px;
}

.event-date-card .day-month {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.event-date-card .day-time {
  font-size: 0.9rem;
  color: #888;
  margin-top: 4px;
}

.event-date-section .form-submit {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Slider testimonianze
   -------------------------------------------------------------------------- */

.slider-wrapper {
  overflow: hidden;
  position: relative;
  margin: 30px calc(var(--gutter) * -1);
}

.slider-wrapper::before,
.slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--green-050), transparent);
}

.slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--green-050), transparent);
}

.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.slider-track img {
  height: 320px;
  width: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

.slider-top {
  animation: scroll-left 30s linear infinite;
  margin-bottom: 16px;
}

.slider-bottom {
  animation: scroll-right 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-section {
  margin: 24px 0 30px;
}

details {
  background: linear-gradient(180deg, var(--green-300), var(--green-500) 40%, var(--green-600));
  border: none;
  border-radius: 8px;
  border-bottom: 4px solid var(--green-700);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(78, 145, 45, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

details:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(78, 145, 45, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

details[open] {
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: none;
}

summary {
  padding: 20px 24px;
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

details[open] summary {
  color: var(--green-600);
  text-shadow: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

details[open] summary::after {
  content: '–';
  color: var(--green-600);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: clamp(1.15rem, 3vw, 1.25rem);
  color: var(--ink-600);
  line-height: 1.7;
  text-align: left;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Countdown (opzionale — attivabile da js/config.js)
   -------------------------------------------------------------------------- */

.countdown-section {
  text-align: center;
  margin: 30px 0;
}

.countdown-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-400);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown {
  display: inline-flex;
  gap: 12px;
}

.countdown-block {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 60px;
  text-align: center;
}

.countdown-block .number {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.countdown-block .label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: var(--ink-300);
}

/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */

.alert-bar {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #fff;
  text-align: center;
  padding: 18px var(--gutter);
  font-size: clamp(1.15rem, 3.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.alert-bar strong {
  color: var(--gold-300);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.text-alert {
  color: var(--red-500);
  font-weight: 900;
}

.step-heading {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.step-heading span {
  color: var(--green-600);
}

.thankyou {
  text-align: center;
  padding: 40px 0 20px;
}

.thankyou__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  box-shadow: 0 12px 34px rgba(78, 145, 45, 0.4);
  margin-bottom: 24px;
}

.thankyou__badge svg {
  width: 46px;
  height: 46px;
  fill: #fff;
}

.thankyou__lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-600);
  max-width: 560px;
  margin: 18px auto 0;
}

.thankyou-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 30px 0;
  text-align: left;
}

.thankyou-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.thankyou-step__number {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.thankyou-step h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.thankyou-step p {
  font-size: 1.1rem;
  color: var(--ink-600);
  line-height: 1.65;
}

.thankyou-step p strong {
  color: var(--ink-900);
}

.cta-button--step,
.form-submit--step {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  padding: 18px 18px;
  margin-top: 20px;
  text-align: center;
}

/* Link non ancora forniti (vedi TODO in grazie.html): niente cursore
   "cliccabile" finché manca l'href. */
.cta-button[aria-disabled="true"],
.form-submit[aria-disabled="true"] {
  cursor: default;
}

/* --------------------------------------------------------------------------
   Desktop / tablet
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
  :root {
    --gutter: 24px;
  }

  .container > section {
    padding: 20px 0;
  }

  .hero {
    padding: 0 0 50px;
  }

  .divider {
    margin: 50px 0;
  }

  .section-heading {
    margin: 60px 0 30px;
  }

  .text-section {
    margin: 40px 0;
  }

  .cta-wrapper {
    margin: 40px 0;
  }

  .cta-button {
    font-size: clamp(2rem, 6vw, 3rem);
    padding: 26px 24px;
  }

  .form-submit {
    font-size: 1.6rem;
    padding: 24px 28px;
  }

  .benefit-cards {
    grid-template-columns: repeat(2, 1fr);
    margin: 30px 0 40px;
  }

  .benefit-card-body p {
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  }

  .section-green {
    padding: 50px 36px;
  }

  .signup-form-wrapper {
    padding: 40px 30px;
  }

  .slider-track img {
    height: 450px;
  }

  .faq-section {
    margin: 50px 0 60px;
  }

  .thankyou-step {
    padding: 28px 30px;
  }

  .callout {
    padding: 36px 36px;
  }

  .countdown-block {
    padding: 14px 18px;
    min-width: 72px;
  }

  .countdown-block .number {
    font-size: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibilità: rispetta prefers-reduced-motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
