
:root {
  --blu-notte: #0A2540;
  --oro: #D4A574;
  --bianco-caldo: #FAFAF7;
  --testo: #1A1A1A;
  --testo-soft: #6B7280;
  --bordo: #E5E7EB;
  --tg-blue: #0088cc;
  --section-py: 100px;
  --section-px: 32px;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--testo);
  background-color: var(--blu-notte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--oro); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blu-notte); }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--bordo);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.header__logo:hover img {
  opacity: 0.85;
}

.header__nav {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 4px 6px;
  box-shadow: 0 1px 8px rgba(10,37,64,0.06);
}

.header__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #000;
  transition: color 0.25s;
  position: relative;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--oro);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header__link:hover {
  color: var(--oro);
  background: rgba(212,165,116,0.08);
}
.header__link:hover::after {
  transform: scaleX(1);
}

.header__cta {
  padding: 8px 16px;
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========== HERO ========== */
.hero {
  background: var(--blu-notte);
  color: #fff;
  padding: 140px var(--section-px) 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.88) 0%, rgba(10,37,64,0.92) 50%, rgba(10,37,64,0.96) 100%), radial-gradient(ellipse at 30% 50%, rgba(212,165,116,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero__title {
  font-family: 'Instrument Serif', serif;
  font-size: 3.75rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 28px;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__badges {
  font-size: 0.875rem;
  color: var(--oro);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ========== SECTIONS (shared) ========== */
.section {
  padding: var(--section-py) var(--section-px);
}

.section--light {
  background: var(--bianco-caldo);
}

.section--dark {
  background: var(--blu-notte);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,165,116,0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.section__container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--oro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section__label--light { color: var(--oro); }

.section__title {
  font-family: 'Instrument Serif', serif;
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--blu-notte);
  letter-spacing: -0.01em;
}
.section__title--light { color: #fff; }

.section__text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--testo-soft);
  max-width: 620px;
}
.section__text--light {
  color: rgba(255,255,255,0.65);
}

/* ========== STATS ========== */
.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--bordo);
}

.stat {
  text-align: center;
  min-width: 160px;
}

.stat__number {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: var(--oro);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--testo-soft);
  line-height: 1.4;
}

/* ========== STEPS ========== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 56px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212,165,116,0.12);
  border: 1px solid rgba(212,165,116,0.20);
  color: var(--oro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
}

.step__body { flex: 1; }

.step__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: #fff;
}

.step__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--oro);
  box-shadow: 0 8px 32px rgba(10,37,64,0.06);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  background: rgba(212,165,116,0.12);
  border-radius: 14px;
  color: var(--oro);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3125rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--blu-notte);
  line-height: 1.3;
}

.card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--testo-soft);
}

/* ========== PRICING ========== */
.pricing__intro {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.pricing__card {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.3s;
}

.pricing__card--featured {
  border-color: var(--oro);
  background: rgba(212,165,116,0.06);
}

.pricing__badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--oro);
  color: var(--blu-notte);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing__tier {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: #fff;
}

.pricing__range {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--oro);
  margin-bottom: 16px;
  line-height: 1.2;
}

.pricing__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

.pricing__incentives {
  font-size: 1rem;
  color: var(--oro);
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
}

/* ========== FORM ========== */
.form {
  max-width: 540px;
  margin-top: 48px;
}

.form__group { margin-bottom: 24px; }

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blu-notte);
}

.form__input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--bordo);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--testo);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form__input:focus {
  outline: none;
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.12);
}

.form__input::placeholder { color: #b0b0b0; }

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--testo-soft);
  cursor: pointer;
  line-height: 1.5;
}

.form__checkbox {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--oro);
}

.form__group--privacy { margin-top: 12px; }

.form__submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.form__alt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--testo-soft);
}

.form__alt a {
  color: var(--tg-blue);
  font-weight: 600;
}
.form__alt a:hover { color: var(--blu-notte); }

/* ========== FOOTER ========== */
.footer {
  background: var(--blu-notte);
  color: rgba(255,255,255,0.65);
  padding: 80px var(--section-px) 40px;
}

.footer__container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer__logo {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.9375rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer__heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oro);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 2;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--oro); }

.footer__detail {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer__legal {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  display: flex;
  gap: 24px;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  :root {
    --section-py: 72px;
    --section-px: 20px;
  }

  .header__cta { display: none !important; }
  .header__tg { display: flex; }
  .header__container { padding: 0 20px; overflow: visible; gap: 8px; }

  .header__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header__hamburger.active span:nth-child(2) { opacity: 0; }
  .header__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 100px 20px 72px; }
  .hero__title { font-size: 2.375rem; }
  .hero__subtitle { font-size: 1.0625rem; }
  .hero__buttons { flex-direction: column; align-items: center; }
  .hero__buttons .btn { width: 100%; max-width: 320px; }

  .section__title { font-size: 2rem; }
  .section__text { font-size: 1rem; }

  .stats { flex-direction: column; align-items: center; gap: 28px; padding-top: 36px; margin-top: 40px; }
  .stat__number { font-size: 2.25rem; }
  .stat__label { font-size: 0.875rem; }

  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 28px 24px; }

  .pricing { grid-template-columns: 1fr; gap: 16px; }
  .pricing__card { padding: 32px 24px; }
  .pricing__range { font-size: 1.5rem; }

  .steps { gap: 36px; margin-top: 40px; }
  .step { gap: 16px; }
  .step__number { width: 48px; height: 48px; font-size: 1.5rem; }
  .step__title { font-size: 1.25rem; }
  .step__text { font-size: 0.9375rem; }

  .form { max-width: 100%; margin-top: 36px; }
  .form__input { padding: 12px 14px; }

  .footer__container { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 20px 32px; }
  .footer__legal { flex-direction: column; gap: 4px; }
}

/* ========== SOCIAL ICONS IN FOOTER ========== */
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 0;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.footer__social-icon:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.footer__social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}


/* Colori ufficiali social */
.footer__social-icon--telegram { background: #0088cc; box-shadow: 0 2px 8px rgba(0,136,204,0.3); }
.footer__social-icon--telegram:hover { background: #006699; box-shadow: 0 4px 14px rgba(0,136,204,0.5); }

.footer__social-icon--instagram { background: #E4405F; box-shadow: 0 2px 8px rgba(228,64,95,0.3); }
.footer__social-icon--instagram:hover { background: #C13584; box-shadow: 0 4px 14px rgba(228,64,95,0.5); }

.footer__social-icon--facebook { background: #1877F2; box-shadow: 0 2px 8px rgba(24,119,242,0.3); }
.footer__social-icon--facebook:hover { background: #1565C0; box-shadow: 0 4px 14px rgba(24,119,242,0.5); }

.footer__social-icon--linkedin { background: #0A66C2; box-shadow: 0 2px 8px rgba(10,102,194,0.3); }
.footer__social-icon--linkedin:hover { background: #004182; box-shadow: 0 4px 14px rgba(10,102,194,0.5); }
.footer__social-icon--tiktok { background: #010101; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.footer__social-icon--tiktok:hover { background: #25F4EE; box-shadow: 0 4px 14px rgba(37,244,238,0.4); }
.footer__social-icon--tiktok:hover svg { fill: #010101; }

@media (max-width: 768px) {
  .footer__social {
    justify-content: center;
  }
}


/* ========== SCROLL ANIMATIONS ========== */
.section,
.rm-cta {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.anim-visible,
.rm-cta.anim-visible {
  opacity: 1;
  transform: none;
}

/* Hero e header sempre visibili */
.hero,
.header,
.rm-hero {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .section,
  .rm-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Back to Top Button ===== */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--oro);
  color: var(--blu-notte);
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 14px rgba(10,37,64,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--blu-notte);
  color: var(--oro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,37,64,0.3);
}

/* ============================================================
   DESIGN POLISH v2 — Miglioramenti grafici 2026-05-11
   ============================================================ */

/* BUTTONS — stili base mancanti nel foglio originale */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: -0.01em;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
              box-shadow 0.25s, transform 0.2s;
}
.btn--oro {
  background: var(--oro);
  color: var(--blu-notte);
  border-color: var(--oro);
  box-shadow: 0 2px 12px rgba(212,165,116,0.20);
}
.btn--oro:hover {
  background: #bf8a52;
  border-color: #bf8a52;
  color: var(--blu-notte);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,165,116,0.40);
}
.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.65);
  color: #fff;
  transform: translateY(-2px);
}

/* HEADER — solido bianco + nasconde hamburger/telegram su desktop */
.header {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 var(--bordo), 0 4px 32px rgba(10, 37, 64, 0.05);
}
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.header__hamburger:hover { background: rgba(10, 37, 64, 0.06); }
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blu-notte);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.header__tg {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--tg-blue);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.header__tg:hover { background: #006eaa; color: #fff; transform: translateY(-1px); }

/* HERO — texture dot grid + subtle glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% 100%, rgba(212,165,116,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: heroPulse 6s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* STATS — card leggera per ciascun numero */
.stat {
  background: rgba(10, 37, 64, 0.022);
  border: 1px solid var(--bordo);
  border-radius: 16px;
  padding: 28px 36px;
}

/* STEPS — linea verticale che connette i cerchi numerati */
.steps { position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: 60px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(212,165,116,0.40) 0%,
    rgba(212,165,116,0.06) 100%
  );
  pointer-events: none;
}

/* CARDS — accent line oro che slide da sinistra su hover */
.card { position: relative; overflow: hidden; }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover::before { transform: scaleX(1); }

/* PRICING — glow sulla card featured + hover sulle altre */
.pricing__card--featured {
  box-shadow: 0 0 0 1px rgba(212,165,116,0.40), 0 12px 40px rgba(212,165,116,0.20);
}
.pricing__card:not(.pricing__card--featured):hover {
  border-color: rgba(212,165,116,0.40);
  background: rgba(255,255,255,0.15);
}

/* FORM — panel card centrato per maggiore gerarchia visiva */
.form {
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(10, 37, 64, 0.06);
}

/* MOBILE — override per nuovi stili */
@media (max-width: 768px) {
  .form { padding: 24px 20px; border-radius: 16px; }
  .stat { padding: 20px 24px; width: 100%; }
  .steps::before { display: none; }
  .header__tg { display: flex; }
  .header__hamburger { display: flex; }
}

/* ============================================================
   TABLET BREAKPOINT (769px – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --section-px: 40px; }

  .hero__title { font-size: 3rem; }
  .hero { padding: 120px 40px 88px; }

  /* Cards: 2 colonne su tablet */
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing: 2 colonne, featured piena larghezza */
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
  .pricing__card--featured {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Footer: 2 colonne */
  .footer__container {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
  }
  .footer__legal { grid-column: 1 / -1; }

  /* Steps: connettore leggermente spostato */
  .steps::before { left: 23px; }
}

/* ============================================================
   MOBILE NAV MODERNO — Drawer da destra
   ============================================================ */
@media (max-width: 768px) {
  .header__nav {
    /* Drawer da destra */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--bianco-caldo);
    padding: 88px 24px 40px;
    gap: 4px;
    transform: translateX(110%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -12px 0 48px rgba(10, 37, 64, 0.18);
    border-left: 1px solid var(--bordo);
    border-radius: 0;
    z-index: 199;
    overflow-y: auto;
  }
  .header__nav.open {
    transform: translateX(0);
  }
  /* Link nel drawer */
  .header__nav.open .header__link {
    padding: 18px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blu-notte);
    border-bottom: 1px solid var(--bordo);
    border-radius: 0;
  }
  .header__nav.open .header__link::after { display: none; }

  /* Hamburger e logo z-index per mobile */
  .header__hamburger { display: flex; z-index: 200; }
  .header__logo { font-size: 1rem; z-index: 200; }
}

/* Body bloccato quando nav mobile aperta */
body.nav-open {
  overflow: hidden;
}

/* Quando nav aperta, logo va sotto il drawer */
body.nav-open .header__logo {
  z-index: 50;
}

/* Overlay backdrop per la nav mobile */
#nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   HEADER SCROLLED — ombra dinamica al scroll
   ============================================================ */
.header--scrolled {
  box-shadow: 0 2px 32px rgba(10, 37, 64, 0.13), 0 1px 0 var(--bordo);
}

/* ============================================================
   HEADER DROPDOWN — menu servizi
   ============================================================ */
.header__dropdown {
  position: relative;
}
.header__link--drop {
  cursor: pointer;
  user-select: none;
}
.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10,37,64,0.15);
  min-width: 280px;
  z-index: 200;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.header__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.header__dropdown:hover .header__dropdown-menu,
.header__dropdown:focus-within .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.header__dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.header__dropdown-item:hover {
  background: var(--grigio-chiaro, var(--bianco-caldo));
}
.header__dropdown-item strong {
  font-size: 0.95rem;
  color: var(--blu-notte);
  font-weight: 600;
}
.header__dropdown-item span {
  font-size: 0.8rem;
  color: var(--grigio-testo, #888);
}
.header__dropdown-item--soon {
  opacity: 0.6;
}
.header__dropdown-item--soon em {
  font-style: normal;
  font-size: 0.7rem;
  background: var(--oro);
  color: var(--blu-notte);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  font-weight: 600;
}

/* ============================================================
   CARDS SERVIZI — sezione 3 servizi homepage
   ============================================================ */
.cards--services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.card--service {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card--service:hover {
  border-color: var(--oro);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.card--service .card__title {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}
.card--service .card__text {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.card--service--featured {
  border-color: var(--oro);
  background: rgba(212,165,116,0.06);
  box-shadow: 0 0 0 1px rgba(212,165,116,0.40), 0 12px 40px rgba(212,165,116,0.20);
}
.card--service--soon {
  opacity: 0.8;
}
.card__service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oro);
}
.card__service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--oro);
  color: var(--blu-notte);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.card__list {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  padding-left: 18px;
  position: relative;
}
.card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--oro);
  font-weight: 700;
}
.card__cta {
  margin-top: 8px;
  text-align: center;
}
.card__cta--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.15);
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .cards--services {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   STEPS IN LIGHT SECTIONS — override colori per sfondo chiaro
   ============================================================ */
.section--light .step__title {
  color: var(--blu-notte);
}
.section--light .step__text {
  color: var(--testo-soft, #555);
}

/* ============================================================
   VISUAL EFFECTS & POLISH
   ============================================================ */

/* Hero glow — merged into hero::above with dot grid */

/* Card hover lift */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10,37,64,0.1);
}

/* Service card enhanced hover */
.card--service {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card--service:hover {
  transform: translateY(-6px);
  border-color: var(--oro);
  box-shadow: 0 16px 48px rgba(212,165,116,0.12), 0 8px 24px rgba(0,0,0,0.2);
}
.card--service .card__icon {
  transition: transform 0.3s ease;
}
.card--service:hover .card__icon {
  transform: scale(1.1);
}

/* Stat card hover */
.stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,37,64,0.08);
}

/* Step number pulse */
.step__number {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover .step__number {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(212,165,116,0.20);
}

/* Button hover shine */
.btn--oro {
  position: relative;
  overflow: hidden;
}
.btn--oro::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn--oro:hover::after {
  left: 100%;
}

/* Staggered fade-in for cards */
.section.anim-visible .card:nth-child(1) { animation: fadeUp 0.5s ease both; animation-delay: 0s; }
.section.anim-visible .card:nth-child(2) { animation: fadeUp 0.5s ease both; animation-delay: 0.1s; }
.section.anim-visible .card:nth-child(3) { animation: fadeUp 0.5s ease both; animation-delay: 0.2s; }
.section.anim-visible .card:nth-child(4) { animation: fadeUp 0.5s ease both; animation-delay: 0.3s; }
.section.anim-visible .card:nth-child(5) { animation: fadeUp 0.5s ease both; animation-delay: 0.4s; }
.section.anim-visible .card:nth-child(6) { animation: fadeUp 0.5s ease both; animation-delay: 0.5s; }
.section.anim-visible .card--service:nth-child(1) { animation-delay: 0s; }
.section.anim-visible .card--service:nth-child(2) { animation-delay: 0.15s; }
.section.anim-visible .card--service:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered fade-in for steps */
.section.anim-visible .step:nth-child(1) { animation: fadeUp 0.5s ease both; animation-delay: 0.1s; }
.section.anim-visible .step:nth-child(2) { animation: fadeUp 0.5s ease both; animation-delay: 0.25s; }
.section.anim-visible .step:nth-child(3) { animation: fadeUp 0.5s ease both; animation-delay: 0.4s; }

/* Pricing card entrance */
.section.anim-visible .pricing__card:nth-child(1) { animation: fadeUp 0.5s ease both; animation-delay: 0s; }
.section.anim-visible .pricing__card:nth-child(2) { animation: fadeUp 0.5s ease both; animation-delay: 0.15s; }
.section.anim-visible .pricing__card:nth-child(3) { animation: fadeUp 0.5s ease both; animation-delay: 0.3s; }

/* Section dividers — oro gradient separator */
.section--light + .section--dark::before,
.section--dark + .section--light::before,
.section--light + .section--light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Dark section — subtle decorative pattern */
.section--dark {
  position: relative;
  overflow: hidden;
}
.section--dark::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,165,116,0.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212,165,116,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.section--dark .section__container,
.section--dark .cards,
.section--dark .steps,
.section--dark .pricing {
  position: relative;
  z-index: 1;
}



/* Footer link hover */
.footer__link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer__link:hover {
  color: var(--oro);
  padding-left: 4px;
}

/* ============================================================
   RESPONSIVE — Tablet (769px – 1024px) extra rules
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .cards--services {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .card--service--soon {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  .header__nav {
    gap: 2px;
  }
  .header__link {
    font-size: 0.75rem;
    padding: 6px 6px;
  }
  .header__cta {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile dropdown in drawer
   ============================================================ */
@media (max-width: 768px) {
  .header__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: auto;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    display: none;
  }
  .header__dropdown-menu::before {
    display: none;
  }
  .header__dropdown.dropdown-open .header__dropdown-menu {
    display: block;
  }
  .header__link--drop--active {
    color: var(--oro, #FFEE58);
  }
  .header__dropdown-item {
    padding: 8px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--bordo);
  }
  .header__dropdown-item:hover {
    background: transparent;
    padding-left: 8px;
  }
  .header__link--drop {
    padding: 18px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blu-notte);
    border-bottom: 1px solid var(--bordo);
    display: block;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  .btn--oro::after { transition: none; }
  .card, .card--service, .stat, .step__number { transition: none; }
  .section.anim-visible .card,
  .section.anim-visible .step,
  .section.anim-visible .pricing__card { animation: none; }
  html { scroll-behavior: auto; }
}

/* Fix grafica v2026-05-25 */
.section--dark .section__title { color: #fff; }
.section--dark .section__text { color: rgba(255,255,255,0.65); }

.section--dark + .section--dark::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.4), transparent);
  z-index: 2; pointer-events: none;
}

@keyframes sectionGlowFloat {
  0%   { transform: scale(1) translateX(0); opacity: 0.6; }
  100% { transform: scale(1.4) translateX(-15%); opacity: 1; }
}
.section--dark::after {
  animation: sectionGlowFloat 10s ease-in-out infinite alternate;
}

.hero__cursor {
  display: inline-block;
  color: var(--oro);
  animation: cursorBlink 0.8s ease-in-out infinite;
  font-weight: 300; margin-left: 1px;
  font-style: normal; font-family: inherit;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .section--dark::after { animation: none; }
  .hero__cursor { animation: none; opacity: 1; }
}

/* ============================================================
   ENHANCEMENT LAYER — Rifinitura grafica & effetti 2026-05-30
   Coerente con: blu-notte #0A2540 · oro #D4A574 · Instrument Serif
   Solo grafica: nessuna modifica a struttura HTML o JS.
   ============================================================ */

:root {
  --oro-soft: #E3C49B;
  --oro-deep: #BF8A52;
  --oro-grad: linear-gradient(135deg, #E3C49B 0%, #D4A574 48%, #BF8A52 100%);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 4px 24px rgba(10,37,64,0.06);
  --shadow-float: 0 18px 50px rgba(10,37,64,0.14);
}

/* ---- Selezione testo in oro brand ---- */
::selection { background: rgba(212,165,116,0.32); color: var(--blu-notte); }
::-moz-selection { background: rgba(212,165,116,0.32); color: var(--blu-notte); }

/* ---- FIX gap: link generici non spariscono su sfondo scuro ----
   (prima :hover virava a blu-notte, invisibile sul dark) */
.section--dark a:not(.btn):hover,
.hero a:not(.btn):hover,
.footer a:not(.btn):hover { color: var(--oro-soft); }

/* ---- Accessibilità & polish: focus visibile coerente ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
.header__link:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---- Scroll progress bar (CSS-only, scroll-driven) ---- */
@supports (animation-timeline: scroll()) {
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--oro-grad);
    box-shadow: 0 0 12px rgba(212,165,116,0.6);
    z-index: 1000;
    animation: scrollProgress linear;
    animation-timeline: scroll(root);
  }
  @keyframes scrollProgress { to { transform: scaleX(1); } }
}

/* ---- BUTTONS: gradiente oro più ricco + lift coerente ---- */
.btn--oro {
  background: var(--oro-grad);
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(212,165,116,0.28);
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), filter 0.25s ease;
}
.btn--oro:hover {
  background: var(--oro-grad);
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212,165,116,0.42);
}
.btn--oro:active { transform: translateY(0); box-shadow: 0 3px 12px rgba(212,165,116,0.35); }

/* ---- HERO: titolo con leggero riflesso oro sui glifi serif ---- */
.hero__title {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #F1DEC4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff; /* fallback */
}
/* il cursore di battitura resta visibile in oro (non eredita il clip) */
.hero__title .hero__cursor {
  -webkit-text-fill-color: var(--oro);
  color: var(--oro);
}
.hero__subtitle { animation: heroFade 0.9s var(--ease-soft) both 0.1s; }
.hero__buttons { animation: heroFade 0.9s var(--ease-soft) both 0.2s; }
.hero__badges {
  animation: heroFade 0.9s var(--ease-soft) both 0.32s;
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid rgba(212,165,116,0.30);
  border-radius: 999px;
  background: rgba(212,165,116,0.07);
  backdrop-filter: blur(2px);
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- STAT: numero con gradiente oro per più profondità ---- */
.stat__number {
  background: var(--oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- SERVICE CARD featured: lieve fluttuazione viva ---- */
.card--service--featured {
  animation: floatSoft 6s ease-in-out infinite;
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.card--service--featured:hover { animation-play-state: paused; }

/* ---- SERVICE CARD: glass più nitido + glow oro su hover ---- */
.card--service {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card--service .card__icon {
  background: var(--oro-grad);
  color: var(--blu-notte);
  box-shadow: 0 6px 18px rgba(212,165,116,0.25);
}

/* ---- STEP number: pallino con gradiente al passaggio ---- */
.step:hover .step__number {
  background: var(--oro-grad);
  color: var(--blu-notte);
  border-color: transparent;
}

/* ---- FORM: rifinitura input + label ---- */
.form__input { transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s ease; }
.form__input:hover { border-color: rgba(212,165,116,0.55); }
.form__submit { letter-spacing: 0.01em; }

/* ---- Divisori di sezione: già presenti, leggera animazione di entrata ---- */
.section.anim-visible .section__label { animation: heroFade 0.6s var(--ease-soft) both; }

/* ---- Riduzione movimento: rispetta le preferenze ---- */
@media (prefers-reduced-motion: reduce) {
  .card--service--featured { animation: none; }
  .hero__subtitle, .hero__buttons, .hero__badges,
  .section.anim-visible .section__label { animation: none; }
  @supports (animation-timeline: scroll()) {
    body::before { animation: none; transform: scaleX(0); }
  }
}

/* ============================================================
   ENHANCEMENT — Coerenza pagine interne (roadmap / live)
   Centralizzato qui per non duplicare CSS inline.
   ============================================================ */

/* Titolo hero roadmap: stesso riflesso oro del titolo home */
.rm-hero__title {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #F1DEC4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

/* Pagina LIVE: card in glass coerente con le card servizi */
.live-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

/* Pagina LIVE: il bottone chiamata ora coerente con .btn--oro
   (prima era oro piatto con solo opacity in hover) */
.live-call-btn {
  background: var(--oro-grad);
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(212,165,116,0.28);
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), filter 0.25s ease;
}
.live-call-btn:hover:not(:disabled) {
  opacity: 1;
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212,165,116,0.42);
}
.live-call-btn:active:not(:disabled) { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .live-call-btn { transition: none; }
}

/* ============================================================
   VIVID LAYER — Rifinitura grafica viva & moderna 2026-06-03
   Coerente con: blu-notte #0A2540 · oro #D4A574 · Instrument Serif
   Solo grafica, additivo: nessuna modifica a struttura HTML o JS.
   Obiettivo: più profondità, più movimento controllato, più "vivo".
   ============================================================ */

:root {
  --oro-glow: rgba(212,165,116,0.45);
  --grad-aurora: radial-gradient(60% 80% at 15% 10%, rgba(212,165,116,0.16) 0%, transparent 60%),
                 radial-gradient(50% 70% at 85% 20%, rgba(99,140,200,0.12) 0%, transparent 60%),
                 radial-gradient(70% 90% at 50% 110%, rgba(212,165,116,0.14) 0%, transparent 55%);
  --ring-oro: linear-gradient(135deg, rgba(227,196,155,0.9), rgba(191,138,82,0.7));
  --shadow-deep: 0 24px 70px rgba(10,37,64,0.18), 0 6px 18px rgba(10,37,64,0.10);
}

/* ---- HERO: aurora mesh animata sopra al pattern esistente ---- */
.hero { isolation: isolate; }
.hero__aurora,
.hero::before { z-index: 0; }
.hero .hero__container { z-index: 2; }
.hero__title,
.hero__subtitle,
.hero__buttons,
.hero__badges { position: relative; z-index: 2; }

.hero::before {
  background:
    linear-gradient(180deg, rgba(10,37,64,0.86) 0%, rgba(10,37,64,0.92) 55%, rgba(10,37,64,0.97) 100%),
    var(--grad-aurora);
  background-size: 100% 100%, 200% 200%;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { background-position: 0 0, 0% 0%; }
  100% { background-position: 0 0, 100% 100%; }
}

/* Bagliore orbitante oro nell'hero per dare vita */
.hero::after {
  background:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(212,165,116,0.16) 0%, transparent 60%);
}

/* ---- SECTION DARK: gradiente vivo a due colori sul glow ---- */
.section--dark::after {
  background:
    radial-gradient(circle at 82% 18%, rgba(212,165,116,0.10) 0%, transparent 48%),
    radial-gradient(circle at 14% 86%, rgba(99,140,200,0.08) 0%, transparent 50%);
}

/* ---- CARDS: bordo luminoso oro che appare su hover (glow ring) ---- */
.card,
.card--service,
.phase__card {
  position: relative;
}
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .card::after,
  .card--service::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--ring-oro);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-soft);
    pointer-events: none;
    z-index: 1;
  }
  .card:hover::after,
  .card--service:hover::after { opacity: 1; }
}
.card:hover,
.card--service:hover { box-shadow: var(--shadow-deep); }

/* Mantiene contenuto sopra al ring */
.card > *,
.card--service > * { position: relative; z-index: 2; }

/* ---- ICONE CARD: alone oro pulsante su hover ---- */
.card__icon { transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft); }
.card:hover .card__icon,
.card--service:hover .card__icon {
  box-shadow: 0 8px 26px rgba(212,165,116,0.40);
}

/* ---- BUTTONS: micro-interazione più viva + pressione elastica ---- */
.btn { transition: transform 0.22s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s ease, color 0.2s ease, border-color 0.25s ease, filter 0.25s ease; }
.btn--oro:hover { transform: translateY(-3px) scale(1.015); }
.btn--oro:active { transform: translateY(-1px) scale(0.99); }
.btn--outline:hover { transform: translateY(-3px); }

/* Freccia che scivola nei bottoni-CTA (link che finiscono con →) */
.btn--oro, .btn--outline { will-change: transform; }

/* ---- SECTION LABEL: kicker con pallino oro animato ---- */
.section__label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oro);
  margin-right: 9px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 var(--oro-glow);
  animation: kickerPulse 2.6s ease-in-out infinite;
}
@keyframes kickerPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--oro-glow); }
  50%      { box-shadow: 0 0 0 6px rgba(212,165,116,0); }
}

/* ---- STAT: lieve riflesso che attraversa il numero ---- */
.stat { overflow: hidden; }
.stat::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(212,165,116,0.10), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-soft);
  pointer-events: none;
}
.stat { position: relative; }
.stat:hover::after { left: 130%; }

/* ---- FORM: focus glow più caldo + submit con bagliore ---- */
.form__input:focus {
  box-shadow: 0 0 0 3px rgba(212,165,116,0.18), 0 6px 20px rgba(212,165,116,0.10);
}
.form__submit { box-shadow: 0 6px 22px rgba(212,165,116,0.30); }

/* ---- STEPS: linea connettrice che "scorre" in oro ---- */
.steps::before {
  background: linear-gradient(to bottom, rgba(212,165,116,0.55) 0%, rgba(212,165,116,0.10) 60%, transparent 100%);
}

/* ---- DROPDOWN MENU: entrata più morbida con scala ---- */
.header__dropdown-menu { transform: translateX(-50%) translateY(8px) scale(0.98); transform-origin: top center; }
.header__dropdown:hover .header__dropdown-menu,
.header__dropdown:focus-within .header__dropdown-menu { transform: translateX(-50%) translateY(0) scale(1); }

/* ---- ROADMAP: card fase con bordo luminoso coerente ---- */
.phase__card { transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), border-color 0.3s ease; }
.phase__card:hover { box-shadow: var(--shadow-deep); }
.phase--active .phase__card {
  box-shadow: 0 0 0 1px rgba(212,165,116,0.30), 0 16px 50px rgba(212,165,116,0.16);
}

/* ---- BACK TO TOP: gradiente oro coerente con i bottoni ---- */
#back-to-top { background: var(--oro-grad); box-shadow: 0 6px 20px rgba(212,165,116,0.40); }
#back-to-top:hover { background: var(--blu-notte); color: var(--oro); }

/* ---- Riduzione movimento: spegne le nuove animazioni ---- */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .section__label::before { animation: none; }
  .stat::after { transition: none; }
  .btn { transition: background 0.2s ease, color 0.2s ease; }
}
