:root {
  --ink: #07172f;
  --navy: #0b1f45;
  --slate: #52637e;
  --muted: #63708a;
  --line: #dce6ff;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --surface-tint: #eef3ff;
  --blue: #4d7cff;
  --blue-light: #6ea8ff;
  --violet: #6d5cf6;
  --cyan: #42d6ff;
  --mint: #8affd2;
  --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --gradient-hero: linear-gradient(135deg, #07172f 0%, #132e70 58%, #6d5cf6 100%);
  --gradient-surface: linear-gradient(180deg, #f7faff 0%, #eef3ff 100%);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --shadow-card: 0 18px 45px rgba(10, 31, 69, .10);
  --shadow-elevated: 0 32px 80px rgba(10, 31, 69, .18);
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(77, 124, 255, .18); }

.content-en { display: none !important; }
.lang-en .content-it { display: none !important; }
.lang-en .content-en { display: inline !important; }
.lang-en .trust-item small.content-en { display: block !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 99;
  background: white;
  color: var(--ink);
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.skip-link:focus { left: 1rem; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 250, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 230, 255, .72);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}
.logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-link img { width: 180px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: .28rem;
}
.nav-menu a {
  padding: .65rem .76rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 760;
  color: #1d2a3e;
}
.nav-menu a:hover { background: white; box-shadow: 0 8px 20px rgba(10,31,69,.07); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.lang-switch {
  display: inline-flex;
  gap: .25rem;
  padding: .18rem;
  border-radius: 999px;
  background: rgba(77,124,255,.08);
}
.lang-switch button {
  border: 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  font-size: .8rem;
  padding: .45rem .54rem;
  border-radius: 999px;
}
.lang-switch button.active {
  color: var(--blue);
  background: white;
  box-shadow: 0 6px 14px rgba(10,31,69,.08);
}
.mobile-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .9rem 1.16rem;
  border-radius: 15px;
  border: 1px solid transparent;
  font-weight: 880;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: var(--gradient-primary);
  box-shadow: 0 16px 35px rgba(77, 124, 255, .25);
}
.btn-secondary {
  color: var(--blue);
  background: white;
  border-color: rgba(77, 124, 255, .24);
  box-shadow: 0 10px 24px rgba(10,31,69,.07);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .72rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #eaf2ff;
  background: rgba(255,255,255,.09);
  font-weight: 780;
  font-size: .88rem;
}
.badge::before {
  content: "";
  width: .56rem;
  height: .56rem;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(138,255,210,.12);
  flex: 0 0 auto;
}

.eyebrow {
  color: var(--blue);
  font-weight: 910;
  letter-spacing: .08em;
  font-size: .78rem;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: .98;
  letter-spacing: -0.04em;
  font-weight: 950;
  margin-bottom: 1.3rem;
}
h1 strong {
  background: linear-gradient(90deg, #ffffff 0%, #c8f7ff 45%, #b8c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}
h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 950;
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  letter-spacing: -.02em;
  line-height: 1.14;
  font-weight: 920;
  margin-bottom: .65rem;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.38rem);
  color: #c9d8ff;
  line-height: 1.58;
  font-weight: 640;
  max-width: 860px;
}
.hero-detail {
  color: #d7e4ff;
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 560;
}
.section-lead {
  color: var(--slate);
  max-width: 790px;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.72;
  font-weight: 560;
}
.dark .section-lead { color: #d7e4ff; }
.section {
  padding: clamp(76px, 9vw, 128px) 0;
}
.section.soft { background: var(--gradient-surface); }
.section.dark {
  color: white;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero {
  color: white;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 10vw, 142px) 0 82px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -12% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(109,92,246,.55), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -16% -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(66,214,255,.22), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  align-items: center;
  gap: clamp(36px, 7vw, 74px);
}
.hero-copy { position: relative; z-index: 2; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 2rem 0 1rem;
}
.hero-actions.centered { justify-content: center; }
.hero-note {
  color: #b8c8e8;
  font-weight: 700;
  font-size: .95rem;
}
.hero-visual {
  position: relative;
  z-index: 1;
  transform: rotate(.4deg);
}
.hero-visual img {
  border-radius: 36px;
  box-shadow: 0 45px 100px rgba(0,0,0,.28);
}
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.2rem;
}

.trust-strip {
  background: #eef3ff;
  border-bottom: 1px solid var(--line);
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border-left: 1px solid var(--line);
}
.trust-item {
  padding: 1.1rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
  font-size: .94rem;
  font-weight: 850;
  color: #11213a;
}
.trust-item small {
  display: block;
  margin-top: .22rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.6rem;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}
.card {
  background: white;
  border: 1px solid rgba(220,230,255,.76);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
}
.card.dark-card {
  color: white;
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.card p { color: var(--slate); line-height: 1.65; margin-bottom: 0; }
.dark .card p, .dark-card p { color: #c7d5f3; }
.problem-comparison { margin-top: 2rem; }
.comparison-title {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .8rem;
}
.comparison-title strong {
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
.comparison-title span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 750;
}
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.bullet-list li {
  position: relative;
  padding-left: 1.55rem;
  margin: .8rem 0;
  color: var(--slate);
  line-height: 1.5;
}
.dark .bullet-list li { color: #d7e4ff; }
.bullet-list li::before {
  content: "";
  width: .56rem;
  height: .56rem;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: .48rem;
  background: var(--gradient-primary);
}
.numbered-steps {
  counter-reset: step;
  display: grid;
  gap: .9rem;
  margin-top: 1.4rem;
}
.step {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem;
  border-radius: 20px;
  background: #f7faff;
  border: 1px solid rgba(220,230,255,.85);
}
.dark .step {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.step::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 950;
}
.step p { margin: .24rem 0 0; color: var(--slate); line-height: 1.55; }
.dark .step p { color: #d7e4ff; }
.visual-card {
  border-radius: var(--radius-xl);
  background: white;
  padding: .5rem;
  box-shadow: var(--shadow-elevated);
}
.visual-card img { border-radius: calc(var(--radius-xl) - 8px); }
.before-after-visual, .modules-visual { margin-top: 2.2rem; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-heading .section-lead { margin-bottom: 0; }
.capability-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.capability-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: #f7faff;
  border: 1px solid var(--line);
}
.capability-card strong { display: block; margin-bottom: .45rem; font-size: 1.05rem; }
.capability-card p { margin: 0; color: var(--slate); line-height: 1.55; }

.modules-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.module-card {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.module-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(77,124,255,.1);
}
.module-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .42rem .62rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  color: var(--blue);
  background: rgba(77,124,255,.09);
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
}
.plan-card.featured { border-color: rgba(77,124,255,.45); box-shadow: var(--shadow-elevated); }
.plan-card .btn { margin-top: auto; }
.plan-tag {
  color: var(--blue);
  font-weight: 930;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.plan-list {
  padding: 0;
  margin: 1rem 0 1.5rem;
  list-style: none;
}
.plan-list li {
  padding-left: 1.45rem;
  position: relative;
  margin: .7rem 0;
  color: var(--slate);
  line-height: 1.42;
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 950;
}
.evaluation-box {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(220,230,255,.72);
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-progress {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.2rem;
}
.progress-step {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 900;
  cursor: pointer;
}
.progress-step.active {
  color: white;
  border-color: transparent;
  background: var(--gradient-primary);
  box-shadow: 0 10px 22px rgba(77,124,255,.22);
}
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: 0;
}
.step-kicker {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 .35rem;
  text-transform: uppercase;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: .86rem;
  font-weight: 850;
  color: var(--ink);
}
input, textarea, select {
  width: 100%;
  border: 1px solid #d3ddf2;
  border-radius: 14px;
  padding: .88rem .95rem;
  color: var(--ink);
  background: #fbfcff;
  outline: 0;
  transition: border .18s ease, box-shadow .18s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(77,124,255,.12);
}
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.use-case-option {
  position: relative;
  display: grid;
  gap: .35rem;
  min-height: 112px;
  padding: .9rem .95rem;
  border: 1px solid #d3ddf2;
  border-radius: 16px;
  background: #fbfcff;
  cursor: pointer;
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}
.use-case-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.use-case-option span {
  font-weight: 900;
  color: var(--ink);
}
.use-case-option small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}
.use-case-option:has(input:checked) {
  border-color: rgba(77,124,255,.62);
  background: #f3f7ff;
  box-shadow: 0 0 0 4px rgba(77,124,255,.1);
}
.diagnosis-panel {
  border: 1px solid rgba(77,124,255,.32);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 1rem;
  margin: 0 0 1rem;
}
.diagnosis-panel strong {
  display: block;
  color: var(--ink);
  margin-bottom: .35rem;
}
.diagnosis-panel p {
  margin: 0;
  color: var(--slate);
  line-height: 1.55;
  font-weight: 650;
}
.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: start;
  margin-top: .85rem;
  color: var(--slate);
  font-size: .9rem;
  line-height: 1.5;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: .16rem;
  accent-color: var(--blue);
}
.checkbox-row a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.privacy-note {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
  flex: 1;
}
.form-message {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--blue);
  font-weight: 800;
}
.form-message.error { color: #bd2333; }
.form-message.success { color: #167a50; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.05rem;
}
.faq-item p {
  color: var(--slate);
  line-height: 1.65;
  margin: .8rem 0 0;
}
.schedule-grid { align-items: start; }
.schedule-card {
  padding: .75rem;
  overflow: hidden;
}
.schedule-card .calendly-inline-widget {
  border-radius: 18px;
  overflow: hidden;
}
.legal-content {
  max-width: 860px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.legal-content h1 {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  letter-spacing: 0;
}
.legal-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0;
  margin-top: 2rem;
}
.legal-content p {
  color: var(--slate);
  line-height: 1.75;
}
.legal-content a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.final-cta {
  text-align: center;
  color: white;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(109,92,246,.5), transparent 70%);
}
.final-cta > * { position: relative; }
.final-cta h2 { margin-inline: auto; }
.final-cta .section-lead { color: #d7e4ff; margin-inline: auto; }
.site-footer {
  background: var(--ink);
  color: white;
  padding: 56px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-grid img { width: 160px; margin-bottom: 1.2rem; }
.footer-grid h4 {
  color: #7ea2ff;
  margin: 0 0 .8rem;
}
.footer-grid a, .footer-grid p {
  display: block;
  color: #c7d5f3;
  margin: .44rem 0;
  font-weight: 700;
}
.footer-grid a:hover { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .nav-menu {
    position: fixed;
    inset: 82px 20px auto 20px;
    display: none;
    padding: 1rem;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-elevated);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-menu.open { display: flex; }
  .mobile-toggle { display: inline-block; }
  .nav-cta { display: none; }
  .hero-grid, .grid-2, .evaluation-box { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .trust-item:last-child { grid-column: 1 / -1; }
  .modules-grid, .grid-3, .capability-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav { min-height: 74px; }
  .logo-link img { width: 148px; }
  .nav-menu { inset: 74px 14px auto 14px; }
  .lang-switch button { padding: .42rem .48rem; }
  h1 { font-size: clamp(2.5rem, 14vw, 4.1rem); letter-spacing: -.03em; }
  h2 { letter-spacing: -.025em; }
  .hero { padding-top: 62px; }
  .hero-actions, .form-footer { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; white-space: normal; text-align: center; }
  .trust-items, .modules-grid, .grid-3, .capability-grid, .form-grid, .use-case-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .field.full { grid-column: auto; }
  .plan-card { min-height: auto; }
}
