/* ===== Design tokens ===== */
:root {
  --bg: #0e0824;
  --bg-2: #150c33;
  --surface: #1b1140;
  --surface-2: #241653;
  --text: #f4f0ff;
  --text-muted: #b1a6d6;
  --pink: #ff5ea8;
  --violet: #8b5cff;
  --cyan: #34e0d6;
  --amber: #ffc861;
  --line: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(120deg, #ff5ea8 0%, #8b5cff 55%, #34e0d6 120%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 26px 70px -24px rgba(139, 92, 255, 0.55);
  --maxw: 1180px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); margin-bottom: 16px;
}
.eyebrow-light { color: var(--cyan); }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px; border-radius: 999px; font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--grad); color: #fff; background-size: 160% 160%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(255, 94, 168, 0.6); background-position: 100% 0; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-3px); }
.btn-light { background: #fff; color: #17102f; }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0,0,0,0.4); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { padding: 12px 0; background: rgba(14, 8, 36, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.brand-text em { font-style: normal; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s ease; position: relative; }
.main-nav a:not(.nav-cta):hover { color: #fff; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width 0.25s ease; border-radius: 2px; }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 10px 22px; background: var(--grad); color: #fff; border-radius: 999px; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255,94,168,0.6); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(680px 520px at 78% 18%, rgba(255, 94, 168, 0.4), transparent 60%),
    radial-gradient(620px 520px at 12% 78%, rgba(52, 224, 214, 0.28), transparent 60%),
    radial-gradient(700px 600px at 45% 45%, rgba(139, 92, 255, 0.35), transparent 62%);
  animation: heroPulse 14s ease-in-out infinite;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
}
@keyframes heroPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
.hero-content { position: relative; z-index: 2; padding: 150px 24px 100px; max-width: 940px; }
.hero-content h1 { margin-bottom: 26px; }
.hero-lead { font-size: 1.18rem; color: var(--text-muted); max-width: 620px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 58px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 48px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.hero-note { font-size: 0.75rem; color: var(--text-muted); opacity: 0.7; margin-top: 18px; }

/* ===== Marquee ===== */
.marquee-wrap { background: var(--grad); padding: 16px 0; overflow: hidden; }
.marquee { display: flex; }
.marquee-track { display: flex; align-items: center; gap: 26px; white-space: nowrap; animation: marquee 24s linear infinite; padding-right: 26px; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.marquee-track span:nth-child(even) { color: rgba(255,255,255,0.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Section base ===== */
.section { padding: 110px 0; }
.section-dark { background: var(--bg-2); }
.section-soft { background: var(--bg-2); }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.05rem; }

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

/* ===== Service cards ===== */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px 32px; overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ===== Metodo / steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 34px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s ease; }
.step:hover { transform: translateY(-6px); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff;
  background: var(--grad); margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* ===== Agenzia ===== */
.agenzia { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.agenzia-text h2 { margin-bottom: 22px; }
.agenzia-text p { color: var(--text-muted); margin-bottom: 18px; }
.check-list { margin: 26px 0 34px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.agenzia-visual { position: relative; min-height: 420px; }
.orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.85; }
.orb-a { width: 240px; height: 240px; top: 6%; right: 10%; background: radial-gradient(circle at 35% 35%, var(--pink), transparent 70%); animation: floatOrb 9s ease-in-out infinite; }
.orb-b { width: 200px; height: 200px; bottom: 4%; left: 6%; background: radial-gradient(circle at 35% 35%, var(--cyan), transparent 70%); animation: floatOrb 9s ease-in-out infinite 2s; }
@keyframes floatOrb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.agenzia-card {
  position: absolute; z-index: 2; background: rgba(27, 17, 64, 0.85); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
}
.agenzia-card span { font-size: 1.7rem; }
.ac-1 { top: 12%; left: 0; animation: floatCard 6s ease-in-out infinite; }
.ac-2 { top: 46%; right: 0; animation: floatCard 6s ease-in-out infinite 1.5s; }
.ac-3 { bottom: 8%; left: 18%; animation: floatCard 6s ease-in-out infinite 3s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Risultati ===== */
.results { grid-template-columns: repeat(4, 1fr); margin-bottom: 52px; }
.result { text-align: center; padding: 34px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s ease, border-color 0.3s ease; }
.result:hover { transform: translateY(-6px); border-color: rgba(255,94,168,0.4); }
.result-icon { font-size: 2.4rem; margin-bottom: 16px; }
.result h3 { margin-bottom: 8px; }
.result p { color: var(--text-muted); font-size: 0.94rem; }

.big-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: var(--grad); border-radius: var(--radius-lg); padding: 48px; color: #fff;
}
.big-cta h3 { font-size: 1.7rem; margin-bottom: 8px; }
.big-cta p { color: rgba(255,255,255,0.9); }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-block h4 { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; font-weight: 700; }
.contact-block p { color: var(--text); font-size: 1.05rem; }
.contact-block a { color: var(--text); border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; word-break: break-all; }
.contact-block a:hover { color: var(--pink); border-color: var(--pink); }
.contact-actions { margin-top: 4px; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-family: var(--font-sans); font-size: 0.98rem; resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 94, 168, 0.18); }
.field select { appearance: none; cursor: pointer; }
.form-note { font-size: 0.9rem; text-align: center; min-height: 20px; }
.form-note.ok { color: var(--cyan); font-weight: 600; }
.form-note.err { color: #ff8497; }

/* ===== Footer ===== */
.site-footer { background: #090514; border-top: 1px solid var(--line); padding-top: 58px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 38px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand strong { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.82rem; max-width: var(--maxw); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: repeat(2, 1fr); }
  .agenzia { grid-template-columns: 1fr; gap: 60px; }
  .agenzia-visual { min-height: 340px; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 24px; padding: 40px;
    background: var(--bg-2); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 95; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 78px 0; }
  .services, .steps, .results { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 1.9rem; }
  .big-cta { padding: 32px; }
  .contact-form { padding: 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
