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

:root {
  --bg:              #0a0d12;
  --bg-card:         #111520;
  --bg-card-2:       #161c2a;
  --accent:          #b8f0d8;
  --accent-dim:      rgba(184,240,216,0.12);
  --accent-border:   rgba(184,240,216,0.28);
  --text-1:          #f0f4ff;
  --text-2:          #b0bcd4;
  --text-3:          #7a8ba3;
  --border:          rgba(255,255,255,0.07);
  --r-sm:            8px;
  --r-md:            14px;
  --r-lg:            20px;
  --glow:            0 0 48px rgba(184,240,216,0.07);
}

html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
}
.btn-lg { padding: 14px 30px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: #0a0d12;
  font-weight: 600;
}
.btn-primary:hover {
  background: #cbf5e6;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(184,240,216,0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--text-1);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  width: 100%;
}
.btn-outline:hover { background: var(--accent-dim); }

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10,13,18,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}
.logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text-1); }

.nav-cta { margin-left: auto; }

@media (max-width: 680px) {
  .nav-links { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(184,240,216,0.055) 0%, transparent 68%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 24px;
  max-width: 820px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-preview {
  margin-top: 72px;
  width: 100%;
  max-width: 880px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.hero-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184,240,216,0.5), transparent);
  z-index: 2;
}

/* ─── Wizard Carousel ────────────────────────────────────────────── */
.wizard-swiper {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.wizard-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 32px;
  min-height: 340px;
  gap: 0;
  user-select: none;
}
.ws-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.ws-mock {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 28px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.ws-mock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  color: var(--accent);
}
.ws-mock-icon svg { width: 26px; height: 26px; }
.ws-mock-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--text-1);
  margin-bottom: 8px;
}
.ws-mock-hint {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 300;
  margin-bottom: 18px;
}
.ws-mock-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ws-opt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  transition: border-color .15s, color .15s;
}
.ws-opt.active {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}
.ws-caption {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

/* Swiper nav overrides */
.wizard-swiper .swiper-button-prev,
.wizard-swiper .swiper-button-next {
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  top: 50%;
  transform: translateY(-50%);
}
.wizard-swiper .swiper-button-prev::after,
.wizard-swiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}
.wizard-swiper .swiper-button-prev { left: 12px; }
.wizard-swiper .swiper-button-next { right: 12px; }

.wizard-swiper .swiper-pagination {
  bottom: 12px;
}
.wizard-swiper .swiper-pagination-bullet {
  background: var(--text-3);
  opacity: 1;
  width: 7px;
  height: 7px;
}
.wizard-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 600px) {
  .wizard-slide { padding: 32px 16px 28px; min-height: 300px; }
  .ws-mock { padding: 20px 16px 16px; }
  .wizard-swiper .swiper-button-prev,
  .wizard-swiper .swiper-button-next { display: none; }
}

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.stats-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-item { text-align: center; padding: 12px; }
.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

/* ─── Section header ─────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.65;
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features-section { padding: 100px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── How it works ───────────────────────────────────────────────────────── */
.how-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(184,240,216,0.018), transparent);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-border) 20%, var(--accent-border) 80%, transparent 100%);
  z-index: 0;
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid::before { display: none; }
}
.step-item { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 auto 20px;
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── Privacy section ───────────────────────────────────────────────────── */
.privacy-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(184,240,216,0.018), transparent);
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.privacy-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* ─── Pricing privacy row ────────────────────────────────────────────────── */
.pricing-privacy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 300;
}

/* ─── Map opt-in note ────────────────────────────────────────────────────── */
.map-optin-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ─── Language switcher ─────────────────────────────────────────────────── */
.lang-form { display:inline-flex; align-items:center; }
.lang-select {
  appearance:none; -webkit-appearance:none;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238892a4'/%3E%3C/svg%3E") no-repeat right 6px center;
  border:1px solid var(--border);
  border-radius:6px;
  color:var(--text-2);
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  padding:4px 22px 4px 8px;
  transition:border-color .15s,color .15s;
}
.lang-select:hover { border-color:var(--accent-border); color:var(--text-1); }
.lang-select:focus { outline:none; border-color:var(--accent-border); }
.lang-select option { background:#111520; color:var(--text-1); }
.lang-select-footer { font-size:11px; padding:3px 20px 3px 7px; }

/* ─── Footer tech line ───────────────────────────────────────────────────── */
.footer-tech {
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  width: 100%;
  letter-spacing: 0.01em;
}

/* ─── Map ────────────────────────────────────────────────────────────────── */
.map-section { padding: 100px 0; }
#map-placeholder {
  width: 100%;
  height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: 48px;
  /* Fork-7: Google Maps viene montato qui */
}
.map-wrap {
  position: relative;
  margin-top: 48px;
}
.map-coming-soon {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(10,13,18,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  pointer-events: none;
}
.map-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  animation: badge-pulse 3s ease-in-out infinite;
}
.map-coming-soon-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--text-1);
  text-align: center;
  line-height: 1.2;
}
.map-coming-soon-sub {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  max-width: 340px;
  line-height: 1.6;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,240,216,0); }
  50%       { box-shadow: 0 0 18px 4px rgba(184,240,216,0.15); }
}

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing-section { padding: 100px 0; }

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
}
.tog-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tog-btn.active {
  background: var(--accent);
  color: #0a0d12;
}
.tog-save {
  background: rgba(10,13,18,.25);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  letter-spacing: .04em;
}
.price-orig {
  font-size: 22px;
  color: var(--text-3);
  text-decoration: line-through;
  margin-right: 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
}
.price-equiv {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
}
.price-founding {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  margin: 6px 0 14px;
  letter-spacing: .01em;
}
.iva-tag {
  font-size: 11px;
  font-weight: 400;
  opacity: .55;
  margin-top: 4px;
  margin-bottom: 8px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 20px;
  align-items: start;
  justify-content: center;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(155deg, rgba(184,240,216,0.04) 0%, var(--bg-card) 60%);
  transform: scale(1.025);
  box-shadow: 0 0 64px rgba(184,240,216,0.09);
  position: relative;
  z-index: 2;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0a0d12;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}
.pricing-price {
  font-family: 'Instrument Serif', serif;
  font-size: 54px;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price .price-period {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
}
.pricing-desc {
  font-size: 13px;
  color: var(--text-2);
  margin: 14px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 300;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 1px;
}
.pricing-features li.no::before {
  content: '–';
  color: var(--text-3);
}
.pricing-features li.no { color: var(--text-3); }

.pricing-cta-wrap { text-align: center; }

/* ─── CTA Strip ──────────────────────────────────────────────────────────── */
.cta-strip {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(184,240,216,0.065) 0%, transparent 65%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 36px;
  line-height: 1.15;
}
.cta-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--text-1); }

/* ─── Clinnova bar ───────────────────────────────────────────────────────── */
.clinova-bar {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.clinova-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.clinova-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.clinova-brand img {
  height: 26px;
  width: auto;
  display: block;
}
.clinova-brand-label {
  font-size: 12px;
  color: var(--text-3);
}
.clinova-info {
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  line-height: 1.6;
}

/* ─── Map fallback (no API key) ──────────────────────────────────────────── */
#clinics-map {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-size: 14px;
}
