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

:root {
  --navy:       #1A3C6E;
  --navy-light: #2D5BA3;
  --green:      #00A878;
  --green-light:#E6F7F2;
  --blue:       #4A90D9;
  --blue-light: #EBF4FF;
  --red-light:  #FFF5F5;
  --bg:         #FFFFFF;
  --bg-alt:     #F7F9FC;
  --bg-light:   #F0F4F8;
  --text:       #1A1A2E;
  --text-muted: #6B7280;
  --border:     #E2E8F0;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 32px rgba(26,60,110,.12);
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; cursor: pointer;
  border: none; border-radius: 50px; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-sm  { font-size: 13px; padding: 8px 18px; }
.btn-lg  { font-size: 16px; padding: 14px 28px; }
.btn:not(.btn-sm):not(.btn-lg) { font-size: 14px; padding: 10px 22px; }

.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 14px rgba(26,60,110,.25);
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,60,110,.3); }

.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-white {
  background: #fff; color: var(--navy);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.btn-white:hover { background: #F0F4F8; transform: translateY(-1px); }

.btn-outline-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { display: flex; }
.logo-icon-sm { display: flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 700; font-size: 16px; color: var(--navy); }
.logo-sub  { font-size: 11px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--navy); }

.nav-cta { margin-left: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a { padding: 14px 24px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { margin: 16px 24px 16px; border-radius: 50px; justify-content: center; }
.mobile-menu.open { display: flex; }

/* ── Hero ── */
.hero {
  position: relative; padding-top: 120px; padding-bottom: 0;
  background: linear-gradient(160deg, #EBF4FF 0%, #F7F9FC 40%, #E6F7F2 100%);
  overflow: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
}
.hero-blob-1 {
  width: 600px; height: 600px; top: -100px; right: -100px;
  background: radial-gradient(circle, #4A90D9 0%, transparent 70%);
}
.hero-blob-2 {
  width: 400px; height: 400px; bottom: 100px; left: -100px;
  background: radial-gradient(circle, #00A878 0%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .4;
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding-top: 60px; padding-bottom: 80px;
  position: relative; z-index: 1;
  flex: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0,168,120,.2);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--green); }

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

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-trust { display: flex; align-items: center; gap: 24px; }
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1; }
.trust-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Card */
.hero-visual { position: relative; }

.hero-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px;
  border: 1px solid var(--border);
  animation: floatCard 4s ease-in-out infinite;
}
.hero-card-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.hc-dot { width: 10px; height: 10px; border-radius: 50%; }
.hc-dot-red    { background: #FF5F57; }
.hc-dot-yellow { background: #FFBD2E; }
.hc-dot-green  { background: #28C840; }
.hc-title { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-muted); }

.hero-card-body { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hc-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hc-info { flex: 1; }
.hc-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.hc-spec { font-size: 13px; color: var(--text-muted); }
.hc-badge-confirmed {
  background: #F0FFF4; color: #38A169;
  border: 1px solid #C6F6D5;
  border-radius: 50px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}

.hc-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.hc-detail-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.hc-detail-row svg { flex-shrink: 0; color: var(--navy); }

.hc-email-sent {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-light); border-radius: 8px;
  padding: 10px 14px; font-size: 12px; color: var(--blue);
  font-weight: 500;
}

.sara-bubble {
  position: absolute; bottom: -24px; left: -40px;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 280px; border: 1px solid var(--border);
}
.sara-orb {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  flex-shrink: 0; margin-top: 2px;
}
.sara-bubble p { font-size: 13px; line-height: 1.5; color: var(--text); }

.hero-wave {
  position: relative; z-index: 1;
  height: 80px; margin-top: auto;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ── Sections ── */
.section { padding: 96px 0; }
.section-alt  { background: var(--bg-alt); }
.section-light { background: var(--bg-light); }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy); margin-bottom: 16px; line-height: 1.2;
}
.section-subtitle { font-size: 17px; color: var(--text-muted); line-height: 1.7; }

/* ── Specialists Grid ── */
.specialists-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.doctor-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,60,110,.15);
}
.doctor-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg, #F7F9FC);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doctor-info { flex: 1; }
.doctor-name { font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.doctor-spec {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--navy-light); background: var(--blue-light);
  border-radius: 50px; padding: 3px 10px; margin-bottom: 10px;
}
.doctor-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.doctor-cta {
  font-size: 13px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 4px;
  margin-top: auto; transition: gap var(--transition);
}
.doctor-cta:hover { gap: 8px; color: var(--navy-light); }

/* ── Steps ── */
.steps-grid {
  display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0; align-items: center; margin-bottom: 60px;
}
.step-card {
  background: white; border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  font-size: 48px; font-weight: 800;
  color: var(--blue-light); line-height: 1;
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-serif);
}
.step-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow { display: flex; justify-content: center; }

/* Sara CTA banner */
.sara-cta-banner {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px 36px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: var(--shadow);
}
.sara-cta-orb {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(6,182,212,.4);
  animation: pulse-orb 2s infinite;
}
.sara-cta-title { font-weight: 700; font-size: 17px; color: var(--navy); }
.sara-cta-sub { font-size: 14px; color: var(--text-muted); }
.sara-cta-banner .btn { margin-left: auto; flex-shrink: 0; }

/* ── Insurance ── */
.insurance-legend {
  display: flex; gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-muted);
}
.legend-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; border-radius: 50px;
  padding: 3px 10px; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.legend-direct  { background: #E6F7F2; color: #00A878; border: 1px solid #B2EBD9; }
.legend-rimborso { background: #FFF8E6; color: #B7791F; border: 1px solid #F6E5B0; }

.insurance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 32px;
}
.insurance-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.insurance-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ins-sigla {
  width: 48px; height: 48px; border-radius: 10px;
  color: white; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: .02em;
}
.ins-info { flex: 1; min-width: 0; }
.ins-nome { font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-tipo { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.insurance-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--blue-light); border-radius: var(--radius);
  padding: 16px 20px; font-size: 14px; color: var(--navy);
  border: 1px solid #BFD9F5;
}
.insurance-note svg { flex-shrink: 0; margin-top: 1px; }

/* ── CTA Section ── */
.section-cta { background: var(--navy); padding: 80px 0; }
.cta-box {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
}
.cta-bg-blob {
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(0,168,120,.15); pointer-events: none;
}
.cta-content { text-align: center; padding: 20px; }
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  color: white; margin-bottom: 16px; line-height: 1.2;
}
.cta-sub { font-size: 18px; color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-orb {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  flex-shrink: 0;
}

/* ── Contacts ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contact-title {
  font-family: var(--font-serif);
  font-size: 32px; color: var(--navy); margin-bottom: 36px; margin-top: 8px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contact-value { font-size: 16px; color: var(--navy); line-height: 1.5; }
.contact-value a { color: var(--navy-light); }
.contact-value a:hover { text-decoration: underline; }

.orari-box {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 32px;
  box-shadow: var(--shadow);
}
.orari-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.orari-list { display: flex; flex-direction: column; gap: 0; }
.orario-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.orario-row:last-child { border-bottom: none; }
.orario-giorno { font-size: 15px; color: var(--text); font-weight: 500; }
.orario-ore { font-size: 15px; font-weight: 700; color: var(--navy); }
.orario-chiuso .orario-ore { color: var(--text-muted); font-weight: 400; }

.sara-available {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 14px;
  background: var(--green-light); border-radius: 10px;
  font-size: 13px; color: #00875D; font-weight: 500;
}
.sara-dot-small {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* ── Footer ── */
.footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 40px 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-name { display: block; font-weight: 700; font-size: 15px; color: white; }
.footer-address { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,168,120,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,168,120,0); }
}
@keyframes pulse-orb {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(6,182,212,0); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .specialists-grid { grid-template-columns: repeat(2, 1fr); }
  .insurance-grid   { grid-template-columns: repeat(2, 1fr); }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-arrow { transform: rotate(90deg); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .hero-visual { display: none; }
  .hero-trust  { flex-wrap: wrap; gap: 16px; }

  .specialists-grid  { grid-template-columns: 1fr; }
  .insurance-grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid      { grid-template-columns: 1fr; gap: 40px; }

  .sara-cta-banner { flex-direction: column; text-align: center; }
  .sara-cta-banner .btn { margin: 0 auto; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .insurance-grid { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; }
  .cta-actions    { flex-direction: column; align-items: center; }
}
