/* DESIGN-DENTISTA.md — Studio Odontoiatrico design system */
:root {
  --d-ink: #0A2540;
  --d-body: #33546E;
  --d-body-strong: #173049;
  --d-muted: #6C8AA0;
  --d-muted-soft: #9BB6C7;
  --d-hairline: #C9DEE8;
  --d-hairline-soft: #DCEEF5;
  --d-canvas: #F5FAFC;
  --d-surface-soft: #EAF4F8;
  --d-surface-card: #DCEEF5;
  --d-surface-strong: #C3E2ED;
  --d-primary: #0B4F73;
  --d-primary-active: #093D5A;
  --d-primary-disabled: #B7CFDA;
  --d-on-primary: #FFFFFF;
  --d-profondo: #0B4F73;
  --d-cobalto: #1E5F8C;
  --d-cielo: #4FB8E8;
  --d-polvere: #A9D3E5;
  --d-ghiaccio: #DCF1F7;
  --d-ciano: #00B4D8;
  --d-success: #2E9E6C;
  --d-warning: #E0A73E;
  --d-error: #D65A5A;

  --d-r-xs: 6px;
  --d-r-sm: 10px;
  --d-r-md: 14px;
  --d-r-lg: 20px;
  --d-r-xl: 28px;
  --d-r-pill: 9999px;

  --d-section: 88px;
  --d-max: 1200px;
  --d-shadow: 0 12px 32px rgba(11, 79, 115, 0.08);
  --d-font-display: "Space Grotesk", Inter, sans-serif;
  --d-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --d-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

.dent-page {
  background: var(--d-canvas);
  color: var(--d-ink);
  font-family: var(--d-font-body);
  -webkit-font-smoothing: antialiased;
}
.dent-page * { box-sizing: border-box; }

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

/* Typography */
.dent-display-xl {
  font-family: var(--d-font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--d-ink);
}
.dent-display-lg {
  font-family: var(--d-font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--d-ink);
}
.dent-display-md {
  font-family: var(--d-font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--d-ink);
}
.dent-title-md {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
}
.dent-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--d-body);
}
.dent-body-sm {
  font-size: 14px;
  line-height: 1.55;
  color: var(--d-muted);
}
.dent-mono {
  font-family: var(--d-font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.dent-caption-up {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--d-muted);
}
.dent-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--d-body-strong);
  text-decoration: none;
  padding: 8px 12px;
}
.dent-nav-link:hover { color: var(--d-primary); }
.dent-link {
  color: var(--d-ciano);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Arc underline on keyword */
.dent-arc-word {
  position: relative;
  display: inline-block;
}
.dent-arc-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none'%3E%3Cpath d='M2 8 C 30 2, 90 2, 118 8' stroke='%2300B4D8' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Buttons — always pill */
.dent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 14px 26px;
  border-radius: var(--d-r-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.dent-btn-primary {
  background: var(--d-primary);
  color: var(--d-on-primary);
}
.dent-btn-primary:hover { background: var(--d-primary-active); }
.dent-btn-secondary {
  background: transparent;
  color: var(--d-primary);
  border-color: var(--d-primary);
}
.dent-btn-on-color {
  background: var(--d-on-primary);
  color: var(--d-primary);
}

/* Badge */
.dent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--d-r-pill);
  background: var(--d-ghiaccio);
  color: var(--d-profondo);
  font-size: 13px;
  font-weight: 500;
}
.dent-badge-live {
  background: color-mix(in srgb, var(--d-ciano) 14%, white);
  color: var(--d-primary);
}
.dent-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--d-ciano);
}

/* Aligner card — signature */
.dent-aligner {
  position: relative;
  border-radius: 0 0 var(--d-r-lg) var(--d-r-lg);
  background: color-mix(in srgb, var(--d-surface-card) 55%, white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--d-hairline);
  border-top: none;
  padding: 28px 24px 24px;
  box-shadow: var(--d-shadow);
  clip-path: path("M 0,28 C 40,4 60,4 100,4 C 140,4 160,4 200,28 L 200,1000 L 0,1000 Z");
}
/* CSS clip-path with path needs fixed coords — use SVG mask via border-radius trick instead */
.dent-aligner {
  clip-path: none;
  border-radius: var(--d-r-lg);
  overflow: hidden;
}
.dent-aligner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--d-ghiaccio) 80%, transparent), transparent),
    radial-gradient(120% 100% at 50% -20%, transparent 55%, var(--d-canvas) 56%);
  pointer-events: none;
  z-index: 1;
}
.dent-aligner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: var(--d-r-pill);
  background: linear-gradient(90deg, transparent, var(--d-ghiaccio), var(--d-ciano), var(--d-ghiaccio), transparent);
  opacity: 0.9;
  z-index: 2;
}

/* Service color cards */
.dent-svc {
  border-radius: var(--d-r-md);
  padding: 28px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--d-shadow);
}
.dent-svc-cobalto { background: var(--d-cobalto); color: var(--d-on-primary); }
.dent-svc-cielo { background: var(--d-cielo); color: var(--d-on-primary); }
.dent-svc-polvere { background: var(--d-polvere); color: var(--d-ink); }
.dent-svc-ghiaccio { background: var(--d-ghiaccio); color: var(--d-ink); }
.dent-svc .dent-svc-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.92;
}
.dent-svc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--d-r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 16px;
}
.dent-svc-polvere .dent-svc-icon,
.dent-svc-ghiaccio .dent-svc-icon {
  background: rgba(11, 79, 115, 0.1);
  color: var(--d-primary);
}

/* Arch divider */
.dent-arch {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--d-hairline);
  background: var(--d-canvas);
}
.dent-arch svg { display: block; width: 100%; height: 100%; }

.dent-section { padding: var(--d-section) 0; }
.dent-section-soft { background: var(--d-surface-soft); }

.dent-hero-panel {
  border-radius: var(--d-r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--d-surface-soft);
  box-shadow: var(--d-shadow);
}

.dent-stat {
  background: white;
  border: 1px solid var(--d-hairline);
  border-radius: var(--d-r-md);
  padding: 18px 16px;
  text-align: center;
}
.dent-stat-value {
  font-family: var(--d-font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--d-primary);
}
.dent-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--d-muted);
}

.dent-testimonial {
  position: relative;
  border-radius: var(--d-r-lg);
  background: color-mix(in srgb, var(--d-surface-card) 70%, white);
  border: 1px solid var(--d-hairline);
  padding: 28px 24px 24px;
  box-shadow: var(--d-shadow);
  overflow: hidden;
}
.dent-testimonial::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: var(--d-r-pill);
  background: linear-gradient(90deg, transparent, var(--d-ghiaccio), var(--d-ciano), var(--d-ghiaccio), transparent);
}

.dent-stars { color: var(--d-ciano); font-size: 14px; letter-spacing: 2px; }

.dent-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: var(--d-r-sm);
  border: 1px solid var(--d-hairline);
  background: white;
  color: var(--d-ink);
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
.dent-input:focus {
  border-color: var(--d-ciano);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-ciano) 20%, transparent);
}
.dent-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border-radius: var(--d-r-sm);
  border: 1px solid var(--d-hairline);
  background: white;
  color: var(--d-ink);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}
.dent-textarea:focus {
  border-color: var(--d-ciano);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-ciano) 20%, transparent);
}
.dent-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--d-body-strong);
}

.dent-booking {
  position: relative;
  border-radius: var(--d-r-xl);
  background: color-mix(in srgb, var(--d-surface-card) 65%, white);
  backdrop-filter: blur(12px);
  border: 1px solid var(--d-hairline);
  padding: 32px 28px;
  box-shadow: var(--d-shadow);
  overflow: hidden;
}
.dent-booking::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: var(--d-r-pill);
  background: linear-gradient(90deg, transparent, var(--d-ghiaccio), var(--d-ciano), var(--d-ghiaccio), transparent);
}

.dent-map {
  border-radius: var(--d-r-xl);
  overflow: hidden;
  border: 1px solid var(--d-hairline);
  min-height: 280px;
  box-shadow: var(--d-shadow);
}

.dent-topnav {
  height: 72px;
  background: var(--d-canvas);
  position: sticky;
  top: 0;
  z-index: 50;
}
.dent-topnav.is-stuck {
  border-bottom: 1px solid var(--d-hairline-soft);
  box-shadow: 0 4px 20px rgba(11, 79, 115, 0.04);
}

.dent-footer {
  background: var(--d-profondo);
  color: var(--d-on-primary);
  padding: 64px 0 48px;
}
.dent-footer a {
  color: var(--d-ghiaccio);
  text-decoration: none;
}
.dent-footer a:hover { color: white; text-decoration: underline; }
.dent-footer-muted { color: var(--d-polvere); font-size: 14px; line-height: 1.55; }

.dent-float-card {
  position: absolute;
  bottom: -14px;
  left: -10px;
  background: white;
  border: 1px solid var(--d-hairline);
  border-radius: var(--d-r-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
  box-shadow: var(--d-shadow);
}

@media (max-width: 767px) {
  :root { --d-section: 64px; }
}
@media (min-width: 768px) {
  .dent-desktop-nav { display: flex !important; }
  .dent-mobile-nav { display: none !important; }
  .dent-hero-grid,
  .dent-about-grid,
  .dent-loc-grid,
  .dent-contact-grid {
    grid-template-columns: 1fr 1fr !important;
    align-items: center;
  }
  .dent-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .dent-why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .dent-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .dent-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .dent-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
