/* ==========================================================================
   Dr. Marcelo Vezzi Muce — Premium Medical Website
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */

:root {
  --ink:    #172b3a;
  --ink-2:  #24465e;
  --muted:  #5d6d78;
  --line:   #dfe9ee;
  --paper:  #ffffff;
  --soft:   #f7fbfd;
  --mist:   #eaf4f8;
  --blue:   #cfe8f3;
  --blue-2: #83b8cf;
  --rose:   #f7e7ea;
  --rose-2: #e7b8c0;
  --wheat:  #f6eddc;
  --gold:   #b68a4a;
  --gold-2: #8f6733;
  --green:  #21bf63;
  --green-2:#15984c;

  --shadow:       0 20px 60px rgba(23, 43, 58, .11);
  --shadow-small: 0 8px 28px rgba(23, 43, 58, .08);
  --shadow-card:  0 2px 12px rgba(23, 43, 58, .07), 0 1px 3px rgba(23, 43, 58, .05);
  --radius:       10px;
  --radius-lg:    16px;
  --max:          1180px;

  --sans:  Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --section-pad:       92px;
  --section-pad-tight: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--gold-2); }

button { font: inherit; }

p { margin-top: 0; }

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(182, 138, 74, .5);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(223, 233, 238, .75);
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(23, 43, 58, .08);
  border-bottom-color: rgba(223, 233, 238, .5);
}

.header-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  font-family: var(--serif);
}

.brand > span {
  display: flex;
  flex-direction: column;
}

.brand span span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 500;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s ease, color .15s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--mist);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color .15s ease;
}

.menu-toggle:hover { border-color: var(--blue-2); }

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle::after  { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(23, 43, 58, .22);
}
.btn-primary:hover { background: #0f2230; color: #fff; box-shadow: 0 8px 24px rgba(23, 43, 58, .28); }

.btn-soft {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
.btn-soft:hover { background: var(--mist); color: var(--ink); border-color: var(--blue-2); }

.btn-whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(33, 191, 99, .25);
}
.btn-whatsapp:hover { background: var(--green-2); color: #fff; box-shadow: 0 8px 26px rgba(33, 191, 99, .35); }

.btn .icon { width: 18px; height: 18px; flex: 0 0 auto; }

.header-cta {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   7. Eyebrow / Label
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   8. Pills / Credential Tags
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .80);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%,  rgba(247, 231, 234, .60) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 5%, rgba(207, 232, 243, .70) 0%, transparent 70%),
    linear-gradient(180deg, #fffef9 0%, #f8fbfd 60%, #ffffff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(182, 138, 74, .28) 40%, rgba(182, 138, 74, .28) 60%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .85fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: 62px;
  letter-spacing: -.02em;
  line-height: 1.04;
  max-width: 820px;
}

.hero h1 span { color: var(--ink-2); }

.hero-lede {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

/* Hero photo */

.hero-figure {
  position: relative;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  height: 620px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(23, 43, 58, .18) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform .5s ease;
}

.hero-photo:hover img { transform: scale(1.02); }

.hero-note {
  position: absolute;
  left: -22px;
  bottom: 28px;
  width: min(320px, calc(100% - 24px));
  padding: 18px 20px;
  border: 1px solid rgba(223, 233, 238, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.hero-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.3;
}

.hero-note span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Section Base
   -------------------------------------------------------------------------- */

.section { padding: var(--section-pad) 0; }
.section-tight { padding: var(--section-pad-tight) 0; }

.section-blue {
  background: linear-gradient(180deg,
    rgba(234, 244, 248, .65) 0%,
    rgba(247, 251, 253, .50) 60%,
    rgba(255, 255, 255, .90) 100%);
}

.section-rose {
  background: linear-gradient(180deg,
    rgba(247, 231, 234, .60) 0%,
    rgba(255, 248, 250, .55) 55%,
    rgba(255, 255, 255, .95) 100%);
}

.section-dark {
  background: linear-gradient(135deg, #132838 0%, #1c3a52 100%);
  color: #fff;
}

/* --------------------------------------------------------------------------
   11. Section Heading
   -------------------------------------------------------------------------- */

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(260px, .62fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading.center {
  display: block;
  max-width: 780px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: 36px;
}

.section-heading h2,
.content h2,
.cta-panel h2,
.page-hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.section-heading p,
.page-hero p,
.content p,
.card p,
.contact-panel p,
.side-panel p {
  color: var(--muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. Cards
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-card);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(23, 43, 58, .11);
  transform: translateY(-3px);
  border-color: rgba(131, 184, 207, .5);
}

.card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.card p {
  margin: 0 0 18px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  transition: gap .15s ease, color .15s ease;
  margin-top: auto;
}

.card-link::after {
  content: "→";
  transition: transform .15s ease;
}

.card-link:hover { color: var(--gold-2); }
.card-link:hover::after { transform: translateX(3px); }

/* Area cards accent borders */
.area-card:nth-child(1) { border-top: 3px solid var(--blue-2); }
.area-card:nth-child(2) { border-top: 3px solid var(--rose-2); }
.area-card:nth-child(3) { border-top: 3px solid var(--gold); }

/* --------------------------------------------------------------------------
   13. Profile Band
   -------------------------------------------------------------------------- */

.profile-band {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.profile-band picture { display: contents; }

.profile-band img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Kicker list */

.kicker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.kicker {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .85);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.kicker:hover {
  border-color: var(--blue-2);
  box-shadow: var(--shadow-card);
}

.kicker strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
  font-family: var(--serif);
}

.kicker span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. Scopo Booking Strip
   -------------------------------------------------------------------------- */

.scopo-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  box-shadow: 0 16px 48px rgba(23, 43, 58, .18);
}

.scopo-strip p {
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

.scopo-strip h2 {
  margin-bottom: 8px;
  font-size: 32px;
  color: #fff;
  line-height: 1.15;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   14b. Consultorio Page
   -------------------------------------------------------------------------- */

.consultorio-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.consultorio-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.clinic-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.address-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  box-shadow: var(--shadow-card);
}

.location-photo {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.location-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.address-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.address-card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.consultorio-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.consultorio-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.consultorio-gallery figure:first-child {
  grid-row: span 2;
}

.consultorio-gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.consultorio-gallery figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consultorio-gallery figure:first-child img {
  min-height: 520px;
}

/* --------------------------------------------------------------------------
   15. About / Sobre Page
   -------------------------------------------------------------------------- */

.about-focus {
  display: grid;
  grid-template-columns: minmax(400px, .85fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: center;
}

.about-photo-large {
  position: relative;
}

.about-photo-large::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid rgba(182, 138, 74, .30);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-photo-large img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-copy h1 {
  margin: 0 0 18px;
  font-size: 56px;
  letter-spacing: -.02em;
}

.about-copy .hero-lede {
  max-width: 680px;
}

.identity-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.identity-panel span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  font-weight: 700;
  font-size: 13.5px;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.timeline-item:hover {
  border-color: var(--blue-2);
  box-shadow: var(--shadow-card);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Media Section
   -------------------------------------------------------------------------- */

.media-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .22s ease, transform .22s ease;
}

.media-card:hover {
  box-shadow: 0 12px 40px rgba(23, 43, 58, .13);
  transform: translateY(-3px);
  color: inherit;
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.media-card:hover .media-thumb img { transform: scale(1.04); }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  transition: transform .2s ease, background .2s ease;
}

.media-card:hover .play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.play::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  border-left: 14px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.media-card h3 {
  margin: 0;
  padding: 16px 18px 5px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.media-card p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   17. FAQ / Accordion
   -------------------------------------------------------------------------- */

.faq-preview,
.faq-list {
  display: grid;
  gap: 8px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: border-color .18s ease;
}

details[open] {
  border-color: var(--blue-2);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
  font-family: var(--sans);
}

details[open] summary::after {
  content: "–";
  background: var(--blue);
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   18. Reviews
   -------------------------------------------------------------------------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow .22s ease, transform .22s ease;
}

.review-card:hover {
  box-shadow: 0 8px 30px rgba(23, 43, 58, .10);
  transform: translateY(-2px);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.review-name {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.2;
}

.review-time {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.stars {
  color: #f6b800;
  letter-spacing: 1.5px;
  font-size: 17px;
  line-height: 1;
}

.review-card blockquote {
  margin: 12px 0 16px;
  padding: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  border: none;
  flex-grow: 1;
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--gold-2);
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
  transition: color .15s ease;
}

.review-source:hover { color: var(--gold); }

.review-disclaimer {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.review-space {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-placeholder {
  min-height: 160px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   19. Floating WhatsApp
   -------------------------------------------------------------------------- */

.float-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 28px rgba(33, 191, 99, .40);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.float-whatsapp:hover {
  color: #fff;
  background: var(--green-2);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 36px rgba(33, 191, 99, .50);
}

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

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 60px 0 0;
  background: #0e2233;
  color: rgba(255, 255, 255, .8);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, .65fr) minmax(220px, .85fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: .9;
}

.footer-brand h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
  line-height: 1.2;
}

.footer-brand p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 12.5px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(241, 216, 179, .85);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li { margin-bottom: 9px; }

.site-footer a:hover { color: #fff; }

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .45);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   21. Diagram Boxes — SVG Diagrams shown, not hidden
   -------------------------------------------------------------------------- */

.diagram-box {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

/* IMPORTANT: .needs-replacement is shown with proper styling, not hidden */
.diagram-box.needs-replacement {
  display: block;
  background: linear-gradient(135deg, var(--soft) 0%, var(--mist) 100%);
  border: 1px solid var(--blue-2);
  padding: 8px;
}

.diagram-box svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
}

.diagram-box img {
  width: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.caption {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.surgery-photo-panel {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-small);
}

.surgery-photo-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: var(--radius);
}

.surgery-photo-panel h3 {
  margin-bottom: 10px;
}

.surgery-photo-panel p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   22. Content / Article Pages
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 58px 0 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg,
    rgba(234, 244, 248, .75) 0%,
    rgba(247, 231, 234, .45) 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
}

.page-hero h1 { margin: 0 0 14px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13.5px;
  align-items: center;
}

.breadcrumbs a { color: var(--ink-2); font-weight: 600; }
.breadcrumbs a:hover { color: var(--gold-2); }

.page-hero-card,
.side-panel,
.contact-panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-card);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.content {
  max-width: 800px;
}

.content h2 {
  margin-top: 46px;
  padding-top: 0;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  margin: 30px 0 8px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.content ul {
  padding-left: 22px;
  color: var(--muted);
}

.content li { margin-bottom: 8px; }

.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--wheat);
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
}

th {
  background: var(--mist);
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .01em;
}

td { color: var(--muted); }

tr:last-child td { border-bottom: none; }

/* Sidebar */

.side-nav {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 14px;
}

.side-panel h3 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.side-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-panel li + li { border-top: 1px solid var(--line); }

.side-panel a {
  display: block;
  padding: 9px 0;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  transition: color .15s ease;
}

.side-panel a:hover { color: var(--gold-2); }

/* --------------------------------------------------------------------------
   23. Contact Page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.contact-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14.5px;
}

.contact-item span {
  color: var(--muted);
  font-size: 14px;
}

.map-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--blue-2);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   24. CTA Panel
   -------------------------------------------------------------------------- */

.cta-panel {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--mist) 0%, rgba(255, 255, 255, .8) 100%);
  border: 1px solid var(--blue-2);
  text-align: center;
}

.cta-panel h2 { margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   25. Social Links
   -------------------------------------------------------------------------- */

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .7);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.social-link svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   26. Responsive — 1080px (tablet landscape)
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero h1 { font-size: 50px; }

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

  .hero-figure {
    max-width: 580px;
  }

  .hero-photo { height: 500px; }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-small);
  }

  .menu-open .primary-nav { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { justify-content: flex-start; width: 100%; padding: 10px 12px; }
  .menu-toggle { display: inline-flex; }

  .media-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-focus { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   27. Responsive — 860px (tablet portrait)
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  :root {
    --section-pad: 64px;
    --section-pad-tight: 48px;
  }

  .container,
  .header-inner {
    width: min(100% - 32px, var(--max));
  }

  .header-cta { display: none; }

  .hero { padding: 50px 0 50px; }
  .hero h1 { font-size: 40px; }
  .hero-lede { font-size: 17px; }
  .hero-photo { height: 440px; }
  .hero-note {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .section-heading,
  .page-hero-grid,
  .content-layout,
  .about-focus,
  .consultorio-hero,
  .clinic-feature,
  .surgery-photo-panel,
  .profile-band,
  .scopo-strip,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .scopo-strip {
    text-align: center;
    justify-items: center;
    padding: 28px 24px;
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .media-list,
  .consultorio-gallery,
  .review-grid,
  .review-space {
    grid-template-columns: 1fr;
  }

  .consultorio-gallery figure:first-child {
    grid-row: auto;
  }

  .consultorio-gallery figure:first-child img {
    min-height: 260px;
  }

  .identity-panel { grid-template-columns: 1fr; }

  .about-copy h1 { font-size: 38px; }
  .kicker-list { grid-template-columns: 1fr; }

  .section-heading h2,
  .content h2,
  .cta-panel h2,
  .page-hero h1 {
    font-size: 32px;
  }

  .side-nav { position: static; }

  .float-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .float-whatsapp svg { width: 22px; height: 22px; }
}

/* --------------------------------------------------------------------------
   28. Responsive — 520px (mobile)
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
  .brand > span { display: none; }
  .brand strong { font-size: 14px; }

  .hero h1 { font-size: 34px; }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-photo { height: 380px; }
  .page-hero { padding: 36px 0 32px; }

  .section-heading h2,
  .content h2,
  .cta-panel h2,
  .page-hero h1 {
    font-size: 28px;
  }

  .scopo-strip h2 { font-size: 26px; }

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

/* --------------------------------------------------------------------------
   29. Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
