
/* ============================================================
   Dr. Rafael Viterbo — Urologia
   Design tokens espelhados do site atual (Wix)
============================================================ */
:root {
  --c-primary: #0E4D45;
  --c-primary-2: #1A6B60;
  --c-primary-dark: #0A3A34;
  --c-accent: #25D366;
  --c-text: #1A2322;
  --c-text-soft: #3C4846;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F3F0EA;
  --c-bg-cream: #FAF6EE;
  --c-border: #D9D3C7;
  --c-shadow: 0 2px 14px rgba(14, 77, 69, 0.08);
  --c-shadow-lg: 0 6px 24px rgba(14, 77, 69, 0.12);

  --f-title: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", serif;
  --f-body: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- HEADER ---------- */
.site-header {
  background: var(--c-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--c-shadow);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Brand: logo pequeno + nome */
.brand {
  color: #fff;
  font-weight: 600;
  line-height: 1.15;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.brand:hover { text-decoration: none; opacity: .92; }
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #064848;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-logo.is-fallback::before {
  content: "RV";
  font-family: var(--f-title);
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-line2 { font-weight: 400; opacity: .9; font-size: 14px; }

/* Navegação */
.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav > a,
.nav-dropdown-toggle {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color .15s ease;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav > a:hover,
.nav-dropdown-toggle:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.main-nav > a.is-active { background: rgba(255,255,255,.14); }
.nav-dropdown.is-active-parent > .nav-dropdown-toggle { background: rgba(255,255,255,.14); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-caret { font-size: 11px; transition: transform .15s ease; line-height: 1; }
.nav-dropdown.is-open .nav-caret,
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(14, 77, 69, 0.18);
  border: 1px solid var(--c-border);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 400;
  border-radius: 0;
}
.nav-dropdown-menu a:hover {
  background: var(--c-bg-cream);
  color: var(--c-primary);
  text-decoration: none;
}
.nav-dropdown-menu a.is-active {
  background: var(--c-bg-cream);
  color: var(--c-primary);
  font-weight: 600;
}

/* CTA WhatsApp */
.nav-cta {
  background: var(--c-accent);
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: var(--r-md);
  font-weight: 600 !important;
  margin-left: 4px;
}
.nav-cta:hover {
  background: #1ebe5a;
  text-decoration: none !important;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--c-bg-cream);
  padding: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.hero-text {
  padding: 72px 48px 72px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-text h1 {
  font-family: var(--f-title);
  font-weight: 400;
  color: var(--c-primary);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-lead {
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--c-text);
}
.hero-location {
  font-weight: 600;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-media {
  background: #064848; /* mesmo fundo do logo — transição invisível */
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  min-height: 520px;
}

/* RV badge — ocupa toda a metade do hero */
.rv-badge {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.rv-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* preenche toda a área, recortando discretamente se necessário */
  object-position: center;
}
.rv-fallback {
  display: none; /* só aparece se a imagem falhar */
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.rv-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rv-circle::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--c-accent);
  border-right-color: var(--c-accent);
  transform: rotate(-45deg);
}
.rv-letters {
  font-family: var(--f-title);
  font-size: 118px;
  line-height: 1;
  color: #fff;
  letter-spacing: -4px;
}
.rv-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 3px;
  font-size: 22px;
  text-align: center;
}
.rv-caption .rv-sub { letter-spacing: 8px; font-size: 14px; opacity: .85; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: .2px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--c-shadow); }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--c-primary-2); }
.btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-secondary:hover { background: var(--c-primary); color: #fff; }
.btn-large { padding: 18px 36px; font-size: 17px; }

/* ---------- SEÇÕES DE CONTEÚDO ---------- */
.content-section {
  padding: 56px 0 8px;
}
.content-section:nth-of-type(even) {
  background: var(--c-bg-soft);
}
.content-section h2 {
  font-family: var(--f-title);
  color: var(--c-primary);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  margin: 0 0 22px;
  line-height: 1.2;
}
.content-section p {
  margin: 0 0 14px;
  color: var(--c-text);
}
.content-section .outro {
  margin-top: 18px;
  color: var(--c-text-soft);
  font-style: italic;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.bullet-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--c-text);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--c-primary);
  border-radius: 50%;
}

.subsection {
  background: #fff;
  padding: 20px 24px;
  border-left: 4px solid var(--c-primary);
  margin: 16px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--c-shadow);
}
.content-section:nth-of-type(even) .subsection { background: #fff; }
.subsection h3 {
  margin: 0 0 10px;
  color: var(--c-primary);
  font-size: 18px;
  font-weight: 600;
  font-family: var(--f-body);
}
.subsection p { margin: 0; }

/* ---------- SEÇÃO SOBRE O DR. (foto ao lado do texto) ---------- */
.about-section {
  background: var(--c-bg-cream);
}
.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--c-shadow);
}
.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-bg-soft);
  flex-shrink: 0;
  border: 4px solid var(--c-primary);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-text p {
  margin: 0 0 12px;
}
.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
  .about-photo {
    margin: 0 auto;
    width: 180px;
    height: 180px;
  }
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--c-bg-cream);
  padding: 56px 0;
}
.faq-section h2 {
  font-family: var(--f-title);
  color: var(--c-primary);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  margin: 0 0 22px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--c-shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--c-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--c-primary);
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 22px 22px;
  margin: 0;
  color: var(--c-text);
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  background: var(--c-primary);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-final p {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 19px;
  line-height: 1.6;
}
.cta-final .btn-primary {
  background: #fff;
  color: var(--c-primary);
}
.cta-final .btn-primary:hover { background: var(--c-bg-soft); }

/* ---------- RELACIONADOS ---------- */
.related-section {
  background: var(--c-bg-soft);
  padding: 56px 0;
}
.related-section h2 {
  font-family: var(--f-title);
  color: var(--c-primary);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  margin: 0 0 22px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-grid-wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1100px; margin: 0 auto; }
.related-card {
  background: #fff;
  padding: 20px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--c-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--c-primary);
  font-weight: 600;
  transition: transform .08s ease, box-shadow .2s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--c-shadow-lg);
  text-decoration: none;
}
.related-arrow { color: var(--c-primary-2); font-size: 20px; }

/* ---------- BLOG CTA (dentro de .related-section) ---------- */
.blog-cta-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
}
.blog-cta-button {
  text-align: center;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--c-primary-dark);
  color: #E8F0EE;
  padding: 40px 0 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-brand strong { display: block; font-size: 18px; color: #fff; }
.footer-brand span { opacity: .8; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #E8F0EE; }
.footer-meta { opacity: .7; font-size: 14px; }

/* ---------- WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 100;
  transition: transform .08s ease;
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 980px) {
  .header-inner { padding: 12px 20px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--c-primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 18px;
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    z-index: 55;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a,
  .nav-dropdown-toggle {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    text-align: left;
    justify-content: space-between;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.06);
    margin-top: 4px;
    padding: 4px 0;
  }
  .nav-dropdown-menu a { color: #fff; padding: 10px 22px; }
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a.is-active { background: rgba(255,255,255,.12); color: #fff; }
  .nav-cta { margin: 8px 0 0 0; text-align: center; justify-content: center; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding: 56px 24px; }
  .hero-media { min-height: 340px; }
  .rv-circle { width: 180px; height: 180px; }
  .rv-letters { font-size: 84px; }
  .related-grid { g