/* ========================================
   STUDIO DENTISTICO DI BARTOLO - STYLES
   Inspired by premium medical web design
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #0f4c81;
  --primary-light: #1976d2;
  --primary-lighter: #4da6e8;
  --primary-dark: #0a355c;
  --primary-50: #e8f4fd;
  --primary-100: #c5e3f6;
  --primary-200: #8ec8ee;
  --teal: #0097a7;
  --teal-light: #00bcd4;
  --teal-dark: #00838f;
  --accent: #00acc1;
  --dark: #0d1b2a;
  --dark-medium: #1b2d45;
  --dark-light: #274060;
  --text: #1a2332;
  --text-secondary: #546e7a;
  --text-light: #90a4ae;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #edf1f5;
  --gray-200: #dde3ea;
  --gray-300: #c5cdd6;
  --border: #e1e8ef;
  --border-light: #eef2f6;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: var(--font); font-size: inherit; border: none; outline: none; background: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

p { color: var(--text-secondary); line-height: 1.75; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  background: rgba(0,151,167,0.08);
  border-radius: 100px;
  border: 1px solid rgba(0,151,167,0.15);
}

.section-tag i { width: 14px; height: 14px; }

.section-heading {
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 680px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn i, .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15,76,129,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,76,129,0.4);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,151,167,0.3);
}
.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,151,167,0.4);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-white {
  color: var(--white);
  padding: 0.875rem 0;
  font-weight: 500;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  border-radius: 0;
}
.btn-ghost-white:hover {
  border-bottom-color: var(--white);
  padding-bottom: calc(0.875rem);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: #1D334A;
}

.site-header.scrolled {
  background: rgb(26 54 84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header-top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  transition: all 0.4s ease;
}

.site-header.scrolled .header-top-bar {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.header-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-bar a {
  color: rgba(255,255,255,0.75);
}
.header-top-bar a:hover { color: var(--white); }

.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-top-left i,
.header-top-right i {
  width: 14px;
  height: 14px;
  display: inline;
  vertical-align: middle;
  margin-right: 5px;
  color: var(--teal-light);
}

.header-nav {
  padding: 1rem 0;
  transition: var(--transition);
}

.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-icon svg { width: 22px; height: 22px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.logo-subtitle {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.site-header.scrolled .logo-name { color: var(--dark); }
.site-header.scrolled .logo-subtitle { color: var(--text-light); }

/* Navigation */
.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--teal-light);
  border-radius: 2px;
}

.site-header.scrolled .nav-link {
  color: #b0bec5;
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.site-header.scrolled .nav-link.active::after {
  background: var(--primary);
}

.header-cta-wrap { flex-shrink: 0; }
.header-cta-wrap .btn { padding: 0.625rem 1.375rem; font-size: 0.8125rem; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.site-header.scrolled .menu-toggle span { background: #eff4f9;}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 999;
  padding: 10rem 1.75rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav.active { right: 0; }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active { opacity: 1; }

.mobile-nav .nav-list {
  flex-direction: column;
  gap: 0.125rem;
  width: 100%;
}

.mobile-nav .nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  border-radius: var(--radius);
  width: 100%;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.mobile-nav .nav-link.active::after { display: none; }

.mobile-nav-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-cta .btn { width: 100%; }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-medium) 40%, var(--primary-dark) 100%);
  overflow: hidden;
  padding: 12rem 0 8rem;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-shapes .shape-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,151,167,0.12) 0%, transparent 60%);
  border-radius: 50%;
}

.hero-bg-shapes .shape-2 {
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(25,118,210,0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.hero-bg-shapes .shape-3 {
  position: absolute;
  top: 40%;
  right: 25%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: dot-pulse 2s ease infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 .highlight {
  color: var(--teal-light);
  position: relative;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,53,92,0.3) 100%);
  border-radius: var(--radius-2xl);
}

.hero-floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.hero-floating-card.top-card {
  top: -20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.hero-floating-card.bottom-card {
  bottom: 30px;
  left: -30px;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.floating-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card-icon.blue { background: var(--primary-50); color: var(--primary); }
.floating-card-icon.teal { background: rgba(0,151,167,0.1); color: var(--teal); }
.floating-card-icon svg { width: 22px; height: 22px; }

.floating-card-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.floating-card-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--dark);
  font-weight: 700;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  position: relative;
  z-index: 10;
  margin-top: -3rem;
  margin-bottom: 0;
}

.stats-bar-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 5.5rem 0; }
.section-light { background: var(--gray-50); }
.section-dark { background: var(--dark); }
.section-gradient { background: linear-gradient(160deg, var(--dark) 0%, var(--dark-medium) 50%, var(--primary-dark) 100%); }

.section-dark .section-tag { background: rgba(0,188,212,0.12); border-color: rgba(0,188,212,0.2); color: var(--teal-light); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ========================================
   ABOUT / INTRO
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--teal));
  z-index: -1;
}

.about-content h2 { margin-bottom: 1.5rem; }

.about-content > p { margin-bottom: 1rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--primary-200);
  background: var(--primary-50);
}

.about-feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.about-feature-icon svg { width: 18px; height: 18px; }

.about-feature-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.about-feature-text p {
  font-size: 0.8125rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ========================================
   SERVICES
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: var(--white);
  transform: scale(1.05);
}

.service-card-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.service-card p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ========================================
   JOURNEY / PREVENTION
   ======================================== */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.journey-content h2 { margin-bottom: 1.5rem; }

.journey-content > p { margin-bottom: 1rem; }

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}

.journey-step:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.journey-step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--white);
}

.journey-step-text h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.journey-step-text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
}

.journey-image-block {
  position: relative;
}

.journey-image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.journey-image-card img {
  width: 100%;
  height: 900px;
  object-fit: cover;
}

.journey-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,53,92,0.4) 100%);
}

.journey-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.journey-image-badge-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.journey-image-badge-icon svg { width: 24px; height: 24px; }

.journey-image-badge-text h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.journey-image-badge-text p {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========================================
   STAFF
   ======================================== */
.staff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.staff-photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.staff-photo-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.staff-photo-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(13,27,42,0.95) 0%, rgba(13,27,42,0.6) 60%, transparent 100%);
}

.staff-photo-card-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.staff-photo-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.staff-info h2 { margin-bottom: 1.25rem; }

.staff-info > p { margin-bottom: 1rem; }

.staff-creds {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2rem;
}

.staff-cred {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.staff-cred-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.staff-cred-icon svg { width: 18px; height: 18px; }

.staff-cred span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.review-avatar.c1 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.review-avatar.c2 { background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.review-avatar.c3 { background: linear-gradient(135deg, #5c6bc0, #7986cb); }
.review-avatar.c4 { background: linear-gradient(135deg, #26a69a, #4db6ac); }
.review-avatar.c5 { background: linear-gradient(135deg, #42a5f5, #64b5f6); }
.review-avatar.c6 { background: linear-gradient(135deg, #7e57c2, #9575cd); }

.review-author-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0;
}

.review-author-info span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: #f59e0b;
}

.review-stars svg { width: 16px; height: 16px; }

.review-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  font-style: italic;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.review-footer svg { width: 16px; height: 16px; }

.review-footer span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--teal-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: .9rem;
  margin-bottom: 2.5rem;
}

.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--dark);
  color: var(--text-light);
}

.footer-top {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-subtitle { color: var(--text-light); }

.footer-brand > p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-links a svg { width: 14px; height: 14px; opacity: 0.5; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item p,
.footer-contact-item a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-contact-item a:hover { color: var(--white); }

/* Footer Form */
.footer-form-section {
  background: var(--dark-medium);
  padding: 3.5rem 0;
}

.footer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-form-info h3 {
  color: var(--white);
  font-size: 1.625rem;
  margin-bottom: 1rem;
}

.footer-form-info > p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.footer-form-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-form-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-form-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0,188,212,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
}

.footer-form-feature-icon svg { width: 20px; height: 20px; }

.footer-form-feature h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.125rem;
}

.footer-form-feature p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.form-group { margin-bottom: 0.875rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.form-control::placeholder { color: rgba(255,255,255,0.35); }
.form-control:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,188,212,0.12);
}

textarea.form-control { min-height: 90px; resize: vertical; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
  accent-color: var(--teal);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox label a { color: var(--teal-light); text-decoration: underline; }

.form-submit .btn { width: 100%; }

.form-message {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.875rem;
}

.form-message.success { display: block; background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.form-message.error { display: block; background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

/* Map */
.footer-map { width: 100%; height: 380px; border: none; display: block; filter: grayscale(0.2) contrast(1.05); }

/* Footer Bottom */
.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.7); }

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--white); }

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: wa-pulse 2s infinite;
}

.whatsapp-float-btn:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.08);
  animation: none;
}

.whatsapp-float-btn svg { width: 28px; height: 28px; }

.whatsapp-float-tooltip {
  background: var(--white);
  color: var(--text);
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-float-tooltip { opacity: 1; transform: translateX(0); }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }


/* ========================================
   SERVICES GRID 9-COLUMN VARIANT
   ======================================== */
.services-grid-9 {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services-grid-9 .service-card p {
  min-height: 3.5em;
}

@media (max-width: 1023px) {
  .services-grid-9 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid-9 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid-9 .service-card {
    padding: 1.5rem;
  }
}


/* ========================================
   SERVICES GRID 3-COLUMN CENTERED
   ======================================== */
.services-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .services-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid-3 .service-card {
    padding: 1.5rem;
  }
}
/* ============================================
   SERVICE CARD CTA (sesto box)
   ============================================ */

.service-card-cta {
    background: linear-gradient(160deg, #2CBCD4 0%, #196470 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.service-card-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(218,219,237,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-card-cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(218,219,237,0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-card-cta:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(28,63,149,0.35) !important;
    color: #ffffff;
}

.service-card-cta .service-card-icon {
    background: rgba(255,255,255,0.15) !important;
    color: #dadbed !important;
}

.service-card-cta:hover .service-card-icon {
    background: rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
}

.service-card-cta h3 {
    color: #ffffff !important;
}

.service-card-cta p {
    color: rgba(255,255,255,0.80) !important;
}

/* Nascondo il link standard "Scopri di più" e mostro il bottone CTA */
.service-card-cta .service-card-link {
    display: none;
}

.service-card-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 24px;
    background: #ffffff;
    color: #1c3f95;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card-cta:hover .service-card-cta-btn {
    background: #dadbed;
    transform: translateX(4px);
}

.service-card-cta-btn svg {
    transition: transform 0.3s ease;
}

.service-card-cta:hover .service-card-cta-btn svg {
    transform: translateX(3px);
}

/* Se la griglia è a 3 colonne, il CTA si allarga sull'ultima posizione */
@media (min-width: 768px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   ORTHO COMPARISON CARDS
   ======================================== */
.ortho-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.ortho-comparison-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ortho-comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ortho-comparison-card:hover::before {
  transform: scaleX(1);
}

.ortho-comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.ortho-comparison-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.ortho-comparison-card:hover .ortho-comparison-icon {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: var(--white);
  transform: scale(1.05);
}

.ortho-comparison-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.ortho-comparison-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ortho-comparison-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ortho-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.ortho-comparison-card:hover .ortho-tag {
  background: var(--primary-50);
  border-color: var(--primary-200);
}

@media (max-width: 767px) {
  .ortho-comparison {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ortho-comparison-card {
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .header-cta-wrap.desktop { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }

  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-image img { height: 400px; }

  .hero-floating-card.top-card { top: -12px; right: 12px; }
  .hero-floating-card.bottom-card { bottom: 20px; left: 12px; }

  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 2rem; }
  .stat-item:nth-child(2)::after { display: none; }

  .about-grid,
  .journey-grid,
  .staff-layout { grid-template-columns: 1fr; gap: 3rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-form-grid { grid-template-columns: 1fr; gap: 2rem; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 4rem 0; }
  .hero { padding: 12rem 0 3rem; min-height: auto; }
  .hero-btns { flex-direction: column; max-width: 280px; margin: 0 auto; }
  .hero-btns .btn { width: 100%; }
  .hero-image img { height: 500px; }
  .hero-floating-card { display: none; }

  .stats-bar { margin-top: -2rem; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding: 1.5rem; }
  .stat-item::after { display: none; }

  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }

  .about-features { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom .container { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }

  .about-image img { height: 320px; }
  .journey-image-card img { height: 420px; }
  .staff-photo-card img { height: 260px; }

  .whatsapp-float-tooltip { display: none; }

  .header-top-left { display: none; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 479px) {
  .container { padding: 0 1rem; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
}