/* ============================================================
   Siti test — stylesheet principale (mobile-first)
   Servito come file statico: dist/assets/styles.css
   ============================================================ */

/* ============ BASE ============ */
:root {
  --bg: #0b0e1a;
  --bg-soft: #11152a;
  --surface: #ffffff;
  --surface-alt: #f4f5fb;
  --text: #1c2033;
  --text-soft: #5a607a;
  --text-inv: #eef0fa;
  --text-inv-soft: #a9afce;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #ec4899;
  --gradient: linear-gradient(120deg, #6366f1, #8b5cf6 50%, #ec4899);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(20, 25, 70, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
img { max-width: 100%; height: auto; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container-narrow { width: min(760px, 92%); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ BOTTONI ============ */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient);
  background-size: 160% 160%;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
}
.btn:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 14px 35px -10px rgba(139, 92, 246, 0.6);
}
.btn-glow { box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.55); animation: pulse-glow 2.6s ease-in-out infinite; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--text-inv);
  box-shadow: none;
}
.btn-ghost:hover { border-color: #fff; box-shadow: none; background: rgba(255, 255, 255, 0.08); }
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-wide { width: 100%; text-align: center; }
.btn-big { padding: 1.1rem 2.6rem; font-size: 1.15rem; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.55); }
  50% { box-shadow: 0 10px 42px -6px rgba(236, 72, 153, 0.65); }
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.15rem; color: var(--text-inv);
}
.brand-logo {
  width: 30px; height: 30px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.12) rotate(-5deg); }
}
.nav-links { display: none; gap: 1.6rem; }
.nav-links a {
  color: var(--text-inv-soft); font-size: 0.95rem; font-weight: 600;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }
@media (min-width: 721px) { .nav-links { display: flex; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 70% -10%, #1d2350 0%, var(--bg) 55%);
  color: var(--text-inv);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 901px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; } }

.hero-sub { margin: 1.2rem 0 1.8rem; font-size: 1.15rem; color: var(--text-inv-soft); max-width: 34rem; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  list-style: none; margin-top: 1.8rem;
  color: var(--text-inv-soft); font-size: 0.95rem; font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c9b8ff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* entrata hero in cascata */
.hero-item {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s ease forwards;
  animation-delay: calc(var(--d, 0) * 0.13s);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* blob animati di sfondo */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 1;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: #6366f1; top: -140px; left: -120px; }
.blob-2 { width: 360px; height: 360px; background: #ec4899; bottom: -160px; right: -100px; animation-delay: -4s; }
.blob-3 { width: 280px; height: 280px; background: #8b5cf6; top: 40%; left: 55%; animation-delay: -8s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -40px) scale(1.15); }
}

/* ---- mock browser ---- */
.hero-visual { position: relative; }
.browser {
  background: #171b33;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.browser-url {
  margin-left: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-inv-soft);
  background: rgba(255, 255, 255, 0.07);
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
}
.browser-body { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 1.1rem; min-height: 240px; }
.mock-sidebar, .mock-content { display: flex; flex-direction: column; gap: 0.7rem; }
.mock-line {
  display: block; height: 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }
.w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.mock-title { display: block; height: 20px; width: 45%; border-radius: 7px; }
.shimmer {
  background: linear-gradient(100deg, rgba(139,92,246,0.35) 30%, rgba(236,72,153,0.6) 50%, rgba(139,92,246,0.35) 70%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.mock-card {
  height: 58px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(236,72,153,0.18));
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 7.5s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.price-chip {
  position: absolute;
  right: -10px; bottom: -26px;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.8rem 1.4rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(236, 72, 153, 0.55);
}
.price-chip strong { font-size: 1.6rem; line-height: 1; }
.price-chip small { font-size: 0.72rem; opacity: 0.9; }

/* ============ SEZIONI ============ */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 0.9rem; color: var(--text-soft); font-size: 1.08rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* reveal allo scroll — gli elementi vengono nascosti SOLO se main.js è in
   esecuzione (aggiunge la classe "js" a <html>): senza JavaScript la pagina
   è interamente visibile, semplicemente senza animazioni di ingresso. */
.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--d, 0) * 0.1s);
}
html.js .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-item { opacity: 1; transform: none; animation: none; transition: none; }
  .float, .float-slow, .blob, .btn-glow, .brand-logo, .shimmer, .price-glow { animation: none; }
}

/* ---- duo sito + corso ---- */
.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: stretch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 801px) { .duo { grid-template-columns: 1fr auto 1fr; } }
.duo-card {
  background: var(--surface);
  border: 1px solid #e6e8f4;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.duo-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -22px rgba(20, 25, 70, 0.45); }
.duo-card p { margin-top: 0.6rem; color: var(--text-soft); }
.duo-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.duo-plus {
  align-self: center;
  font-size: 2.4rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: center;
}

/* ---- feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.feature {
  background: var(--surface);
  border: 1px solid #e6e8f4;
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 22px 45px -20px rgba(99, 102, 241, 0.4);
}
.feature-icon { font-size: 1.9rem; display: inline-block; margin-bottom: 0.7rem; }
.feature p { margin-top: 0.5rem; color: var(--text-soft); font-size: 0.97rem; }

/* ---- timeline corso ---- */
.timeline {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 23px; top: 10px; bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, #6366f1, #ec4899);
  border-radius: 3px;
}
.timeline-item {
  display: flex; gap: 1.4rem;
  padding: 1.1rem 0;
  position: relative;
}
.timeline-num {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 10px 24px -8px rgba(139, 92, 246, 0.6);
  z-index: 1;
}
.timeline-item h3 { margin-bottom: 0.25rem; }
.timeline-item p { color: var(--text-soft); font-size: 0.98rem; }

/* ---- prezzo ---- */
.price-card {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-soft);
  color: var(--text-inv);
  border-radius: 26px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 2.6rem 2.4rem 2.2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 35px 80px -30px rgba(20, 25, 70, 0.6);
}
.price-glow {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(139, 92, 246, 0.35) 80%, rgba(236, 72, 153, 0.35) 90%, transparent 100%);
  animation: spin 8s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.price-card > *:not(.price-glow) { position: relative; z-index: 1; }
.price-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 0.3rem; }
.price-currency { font-size: 1.8rem; font-weight: 700; color: var(--text-inv-soft); }
.price-value {
  font-size: clamp(4rem, 10vw, 5.5rem);
  font-weight: 800; line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-period { font-size: 1.1rem; color: var(--text-inv-soft); font-weight: 600; }
.price-note { margin: 0.8rem 0 1.6rem; color: var(--text-inv-soft); font-size: 0.95rem; }
.price-list {
  list-style: none;
  text-align: left;
  margin-bottom: 1.8rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  font-size: 0.98rem;
}
.price-guarantee { margin-top: 1.1rem; font-size: 0.88rem; color: var(--text-inv-soft); }

/* ---- FAQ ---- */
.faq-item {
  background: var(--surface);
  border: 1px solid #e6e8f4;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 14px 34px -18px rgba(99, 102, 241, 0.4); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { transition: transform 0.3s ease; color: var(--primary-2); }
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }

/* ---- CTA finale ---- */
.final {
  position: relative;
  background: radial-gradient(900px 500px at 50% 120%, #1d2350 0%, var(--bg) 60%);
  color: var(--text-inv);
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.final-inner { position: relative; z-index: 2; }
.final p { margin: 1rem auto 2rem; max-width: 34rem; color: var(--text-inv-soft); font-size: 1.12rem; }
.final strong { color: #fff; }

/* ---- footer ---- */
.footer { background: var(--bg); color: var(--text-inv-soft); font-size: 0.88rem; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand img { width: 20px; height: 20px; }
.footer a:hover { color: #fff; }
