:root {
  --night: #0a1230;
  --night-2: #111c44;
  --panel: #16224f;
  --line: rgba(140, 158, 210, 0.18);
  --gold: #e9c46a;
  --gold-soft: #f4e1ab;
  --text: #e6ebfa;
  --muted: #a7b2d6;
  --copper: #c98a5e;
  --ok: #7fd1a3;
  --radius: 16px;
  --max: 1180px;
  --font: "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(233,196,106,0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(94,118,200,0.14), transparent 55%),
    var(--night);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #1a1405;
  box-shadow: 0 10px 30px rgba(233,196,106,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(233,196,106,0.35); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 18, 48, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .5px; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, #1b2a52, #0a1230);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--gold); font-size: 18px;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.menu { display: flex; gap: 28px; }
.menu a { color: var(--muted); font-size: 15px; transition: color .2s; }
.menu a:hover { color: var(--gold-soft); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.orbits { position: absolute; right: -160px; top: -60px; width: 620px; height: 620px; opacity: .5; pointer-events: none; }
.orbits span {
  position: absolute; border: 1px solid var(--line); border-radius: 50%;
  inset: 0; animation: spin 60s linear infinite;
}
.orbits span:nth-child(2) { inset: 70px; border-color: rgba(233,196,106,0.18); animation-duration: 90s; }
.orbits span:nth-child(3) { inset: 150px; border-color: rgba(140,158,210,0.22); animation-duration: 120s; }
.orbits b { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); top: 6px; left: 50%; box-shadow: 0 0 14px var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats div span { display: block; font-size: 30px; font-weight: 800; color: var(--gold-soft); }
.hero-stats div small { color: var(--muted); font-size: 13px; }

.hero-card {
  background: linear-gradient(180deg, var(--panel), var(--night-2));
  border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4); position: relative;
}
.hero-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 18px; }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi {
  background: rgba(10,18,48,.55); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.kpi b { display: block; color: var(--gold-soft); font-size: 24px; }
.kpi small { color: var(--muted); font-size: 12px; }
.spark { height: 64px; margin-top: 18px; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.4px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.card {
  background: linear-gradient(180deg, rgba(22,34,79,.7), rgba(17,28,68,.5));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(233,196,106,0.4); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(233,196,106,0.12); color: var(--gold); font-size: 22px; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.feature-img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.checklist { list-style: none; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--muted); }
.checklist li::before { content: "✦"; color: var(--gold); margin-top: 2px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: rgba(17,28,68,.5); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step .n { font-size: 13px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.step h4 { margin: 10px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: linear-gradient(180deg, rgba(22,34,79,.7), rgba(17,28,68,.55));
  border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--gold); box-shadow: 0 24px 60px rgba(233,196,106,0.16); position: relative; }
.plan.featured::after {
  content: "Più scelto"; position: absolute; top: -13px; right: 24px;
  background: linear-gradient(135deg, var(--gold), var(--copper)); color: #1a1405;
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--gold-soft); margin: 14px 0 4px; }
.plan .price span { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; min-height: 42px; }
.plan ul { list-style: none; margin: 18px 0 26px; flex: 1; }
.plan ul li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; gap: 10px; }
.plan ul li::before { content: "✓"; color: var(--ok); }
.plan .btn { width: 100%; text-align: center; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: rgba(17,28,68,.5); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.quote p { font-style: italic; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; font-size: 14px; }
.quote .who small { color: var(--muted); font-size: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info p { color: var(--muted); margin: 10px 0; display: flex; gap: 12px; align-items: flex-start; }
.contact-info .ico { color: var(--gold); }
form { background: rgba(17,28,68,.5); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; background: rgba(10,18,48,.6);
  border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(127,209,163,.12); border: 1px solid rgba(127,209,163,.4); color: var(--ok); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: rgba(7,13,36,.6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--muted); padding: 6px 0; font-size: 14px; }
.foot-grid a:hover { color: var(--gold-soft); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }

/* Cookie banner */
.cookie {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 560px; margin: 0 auto;
  background: var(--night-2); border: 1px solid var(--gold); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); z-index: 100; display: none;
}
.cookie.show { display: block; }
.cookie p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 18px; font-size: 14px; }

/* Legal pages */
.legal { padding: 64px 0; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; color: var(--gold-soft); }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a.back { display: inline-block; margin-top: 30px; color: var(--gold); }

@media (max-width: 900px) {
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .quotes, .pricing { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu, .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .menu.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--night-2); padding: 20px; border-bottom: 1px solid var(--line); }
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .orbits { display: none; }
}
@media (max-width: 540px) {
  .steps, .foot-grid { grid-template-columns: 1fr; }
}
