/* Home: linguagem editorial do Blog, com foco em acolhimento pediátrico. */
body.home-editorial {
  --home-night: #17212b;
  --home-paper: #f8f4ec;
  --home-paper-muted: rgba(248, 244, 236, 0.72);
  --home-gold: #d8bd83;
  --home-blue: #2f5567;
  --home-sage: #9eaa99;
  --home-line: rgba(47, 85, 103, 0.18);
  color: var(--ink);
  background: #fbfaf7;
}

body.home-editorial > nav {
  background: var(--home-night);
  border-bottom: 1px solid rgba(245, 239, 227, 0.14);
  box-shadow: none;
}

body.home-editorial.home-cinematic > nav.is-scrolled {
  background: rgba(23, 33, 43, 0.82);
  border-bottom-color: rgba(245, 239, 227, 0.12);
  box-shadow: 0 12px 38px rgba(13, 21, 28, 0.14);
  -webkit-backdrop-filter: saturate(145%) blur(22px);
  backdrop-filter: saturate(145%) blur(22px);
}

body.home-editorial .nav-links > li > a,
body.home-editorial .nav-dropdown-trigger,
body.home-editorial .nav-search-trigger {
  color: rgba(245, 239, 227, 0.82);
}

body.home-editorial .nav-links > li > a:hover,
body.home-editorial .nav-dropdown-trigger:hover,
body.home-editorial .nav-search-trigger:hover {
  color: var(--home-gold);
}

body.home-editorial .nav-dropdown-arrow {
  stroke: currentColor;
}

body.home-editorial .nav-whatsapp {
  color: var(--home-gold);
  border-color: rgba(245, 239, 227, 0.24);
}

body.home-editorial .nav-whatsapp:hover {
  background: rgba(245, 239, 227, 0.08);
  border-color: var(--home-gold);
}

body.home-editorial .nav-cta {
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.home-editorial .nav-hamburger span {
  background: var(--home-paper);
}

body.home-editorial .hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--home-night);
  color: var(--home-paper);
}

body.home-editorial .hero-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 67%;
  width: min(620px, 76vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--home-gold);
  opacity: 0.06;
  pointer-events: none;
  -webkit-mask: url(/img/favicon-512.png) center / contain no-repeat;
  mask: url(/img/favicon-512.png) center / contain no-repeat;
}

body.home-editorial .hero-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 194, 138, 0.58), transparent);
}

body.home-editorial .hero {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
  padding: 54px 28px 68px;
}

body.home-editorial .hero-text {
  max-width: 540px;
}

body.home-editorial .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--home-paper-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

body.home-editorial .hero-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--home-gold);
  opacity: 0.6;
}

body.home-editorial .hero h1 {
  max-width: 560px;
  margin-bottom: 20px;
  color: var(--home-paper);
  font-size: clamp(46px, 5.2vw, 68px);
  line-height: 0.99;
  letter-spacing: -0.02em;
}

body.home-editorial .hero h1 em {
  display: block;
  color: var(--home-gold);
  font-style: italic;
  font-weight: 400;
}

body.home-editorial .hero-title-line {
  display: block;
}

body.home-editorial .hero-section.is-intro-visible h1 [data-sc-kinetic].sc-is-split .sc-split__i {
  animation: home-hero-line-in 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home-editorial .hero-section.is-intro-visible .hero-title-line .sc-split--line:nth-of-type(2) .sc-split__i {
  animation-delay: 90ms;
}

body.home-editorial .hero-section.is-intro-visible h1 em .sc-split__i {
  animation-delay: 180ms;
}

@keyframes home-hero-line-in {
  from {
    opacity: 0;
    transform: translate3d(0, 72%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body.home-editorial .hero-sub {
  max-width: 480px;
  color: var(--home-paper-muted);
  font-size: 15px;
  line-height: 1.65;
}

body.home-editorial .hero-payment-note,
body.home-editorial .hero-appointment-note {
  color: var(--home-paper-muted);
}

body.home-editorial .hero-trust-line {
  color: var(--home-paper);
}

body.home-editorial .hero-trust-line a:hover,
body.home-editorial .hero-link {
  color: var(--home-gold);
}

body.home-editorial .hero-trust-stars {
  color: var(--home-gold);
}

body.home-editorial .hero-link:hover {
  color: var(--home-paper);
}

body.home-editorial .hero-modalidades a {
  min-height: 42px;
  border-color: rgba(245, 239, 227, 0.18);
  border-radius: 5px;
  background: rgba(245, 239, 227, 0.06);
  color: rgba(245, 239, 227, 0.88);
}

body.home-editorial .hero-modalidades a:hover {
  border-color: var(--home-gold);
  background: rgba(245, 239, 227, 0.1);
  color: var(--home-gold);
}

body.home-editorial .hero-modalidades svg {
  stroke: var(--home-gold);
}

body.home-editorial .btn-primary {
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

body.home-editorial .hero-photo-wrap {
  width: min(100%, 500px);
}

body.home-editorial .hero-photo-bg {
  border-radius: 12px;
  background: var(--home-gold);
  opacity: 0.28;
}

body.home-editorial .hero-photo {
  border: 1px solid rgba(245, 239, 227, 0.24);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

body.home-editorial .hero-badge {
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

body.home-editorial .section-title {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

body.home-editorial .section-title em {
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 400;
}

body.home-editorial .section-dark {
  background: var(--home-night);
}

body.home-editorial .section-dark .section-title em {
  color: var(--home-gold);
}

body.home-editorial .section-dark::before {
  background: linear-gradient(90deg, transparent, rgba(217, 194, 138, 0.45), transparent);
}

body.home-editorial .section-alt {
  background: var(--warm-mid);
}

body.home-editorial .home-intent {
  padding-top: clamp(72px, 9vw, 124px);
  padding-bottom: clamp(72px, 9vw, 116px);
  background: #fbfaf7;
}

body.home-editorial .home-intent-grid {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
}

body.home-editorial .home-intent-card,
body.home-editorial .cond-card,
body.home-editorial .atend-card {
  border-radius: 10px;
  background: #FFFEFC;
  box-shadow: none;
}

body.home-editorial .home-intent-card {
  border: 0;
  box-shadow: 0 1px 0 rgba(23, 33, 43, 0.08), 0 16px 40px rgba(23, 33, 43, 0.07);
}

body.home-editorial .home-intent-card:hover {
  box-shadow: 0 1px 0 rgba(23, 33, 43, 0.1), 0 22px 52px rgba(23, 33, 43, 0.11);
}

body.home-editorial .cond-card:hover {
  box-shadow: 0 16px 36px rgba(26, 23, 20, 0.08);
}

body.home-editorial .cond-grid article:nth-child(n) .cond-card {
  border-left: 2px solid var(--home-gold);
}

body.home-editorial .cond-grid article:nth-child(n) .cond-card:hover {
  border-left-color: var(--gold-deep);
}

body.home-editorial .home-blog-featured {
  border-radius: 14px;
}

body.home-editorial .home-blog-card {
  border-radius: 10px;
}

/* Scroll Craft: cenas conectadas por uma linha de cuidado discreta. */
body.home-editorial .care-thread {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin-top: 34px;
  color: #52616a;
}

body.home-editorial .care-thread-mark {
  position: relative;
  display: block;
  height: 1px;
  overflow: visible;
  background: var(--home-line);
}

body.home-editorial .care-thread-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #fbfaf7;
  border-radius: 50%;
  background: var(--home-blue);
  box-shadow: 0 0 0 1px var(--home-line);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-editorial[data-care-active] .care-thread-mark::after {
  transform: translateX(55px);
}

body.home-editorial .care-thread p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

body.home-editorial .care-thread-label {
  display: block;
  margin-bottom: 3px;
  color: var(--home-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.home-editorial .care-thread strong {
  color: #23333c;
  font-weight: 500;
}

body.home-editorial .home-intent-card[aria-current="step"] {
  outline: 1px solid rgba(47, 85, 103, 0.32);
  outline-offset: 4px;
}

body.home-editorial [data-care-stage] {
  position: relative;
}

body.home-editorial[data-care-active] [data-care-stage]::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: max(18px, calc((100vw - 1320px) / 2));
  width: 1px;
  height: 0;
  background: linear-gradient(var(--home-blue), rgba(47, 85, 103, 0.08));
  transition: height 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body.home-editorial[data-care-active] [data-care-stage].is-care-visible::after {
  height: clamp(48px, 8vw, 92px);
}

/* Pico emocional: uma única imagem recebe escala, respiro e silêncio. */
body.home-editorial .section-peak {
  overflow: hidden;
  padding-top: clamp(104px, 13vw, 180px);
  padding-bottom: clamp(104px, 13vw, 180px);
  background:
    radial-gradient(circle at 72% 34%, rgba(216, 189, 131, 0.18), transparent 34%),
    #f3ede3;
}

body.home-editorial .section-peak .section-inner {
  max-width: 1280px;
}

body.home-editorial .section-peak .sobre-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(58px, 8vw, 112px);
  align-items: center;
}

body.home-editorial .section-peak .sobre-content {
  position: relative;
  z-index: 2;
  max-width: 510px;
}

body.home-editorial .section-peak .sobre-content p {
  color: #4b565c;
  font-size: 15px;
  line-height: 1.78;
}

body.home-editorial .section-peak .sobre-cred-line {
  color: #69757b;
  border-color: rgba(47, 85, 103, 0.16);
}

body.home-editorial .section-peak .sobre-formacao {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 18px 0;
  border-top: 1px solid rgba(47, 85, 103, 0.16);
  border-bottom: 1px solid rgba(47, 85, 103, 0.16);
}

body.home-editorial .section-peak .sobre-formacao p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0;
  line-height: 1.45;
}

body.home-editorial .section-peak .sobre-formacao strong {
  color: var(--home-blue);
  font-size: 12px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.home-editorial .section-peak .sobre-formacao span {
  color: #4b565c;
  font-family: var(--serif);
  font-size: 16px;
}

body.home-editorial .section-peak .sobre-photo-wrap {
  width: min(100%, 620px);
  margin: 0;
}

body.home-editorial .section-peak .sobre-photo-bg {
  inset: -18px 18px 18px -18px;
  border-radius: 28px;
  background: rgba(216, 189, 131, 0.28);
}

body.home-editorial .section-peak .sobre-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 24px;
  object-fit: cover;
  object-position: center 44%;
  box-shadow: 0 34px 80px rgba(57, 45, 31, 0.18);
}

body.home-editorial .section-peak figcaption {
  max-width: 460px;
  margin: 18px 0 0 18px;
  color: #5d686e;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: italic;
  line-height: 1.45;
}

body.home-editorial .section-peak .social-btn {
  color: var(--home-blue);
  border-color: rgba(47, 85, 103, 0.22);
}

body.home-editorial .section-peak .social-btn:hover {
  color: #fff;
  border-color: var(--home-blue);
  background: var(--home-blue);
}

@media (min-width: 961px) and (min-height: 780px) and (prefers-reduced-motion: no-preference) {
  body.home-cinematic .section-peak.sc-act--pinned {
    overflow: clip;
    padding: 0;
  }

  body.home-cinematic .section-peak .sc-stage {
    display: flex;
    width: min(1280px, calc(100% - 64px));
    max-width: none;
    align-items: center;
    padding: 78px 0 24px;
  }

  body.home-cinematic .section-peak .sobre-grid {
    width: 100%;
  }

  body.home-cinematic .section-peak .sobre-content {
    opacity: calc(1 - var(--sc-p, 0) * 0.24);
    transform: translate3d(0, calc(var(--sc-p, 0) * -18px), 0);
    will-change: transform, opacity;
  }

  body.home-cinematic .section-peak .sobre-image-col {
    transform: scale(calc(0.94 + var(--sc-p, 0) * 0.1));
    transform-origin: 58% 50%;
    will-change: transform;
  }

  body.home-cinematic .section-peak .sobre-photo-wrap {
    width: min(100%, 56vh);
  }

  body.home-cinematic .section-peak .sobre-photo {
    max-height: 66vh;
    clip-path: inset(calc(var(--sc-p, 0) * 1.5%) round calc(24px - var(--sc-p, 0) * 10px));
    will-change: clip-path;
  }

  body.home-cinematic .section-peak .sobre-photo-bg {
    opacity: calc(1 - var(--sc-p, 0) * 0.48);
    transform: translate3d(calc(var(--sc-p, 0) * 14px), calc(var(--sc-p, 0) * -10px), 0);
    will-change: transform, opacity;
  }
}

body.home-editorial #especialidades {
  padding-bottom: clamp(96px, 12vw, 156px);
}

body.home-editorial #atendimento {
  padding-top: clamp(88px, 11vw, 136px);
}

body.home-editorial .cta-band {
  background: var(--home-night);
}

@media (max-width: 960px) {
  body.home-editorial .section-peak .sobre-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  body.home-editorial .section-peak .sobre-image-col {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    order: -1;
  }

  body.home-editorial .section-peak .sobre-content {
    max-width: 680px;
  }
}

@media (max-width: 960px) {
  body.home-editorial .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding: 46px 24px 62px;
  }

  body.home-editorial .hero-text {
    max-width: 680px;
  }

  body.home-editorial .hero h1 {
    max-width: 640px;
    font-size: clamp(48px, 8vw, 62px);
  }

  body.home-editorial .hero-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  body.home-editorial .hero {
    gap: 30px;
    padding: 38px 20px 54px;
  }

  body.home-editorial .hero h1 {
    font-size: clamp(30px, 9.5vw, 38px);
  }

  body.home-editorial .hero-sub {
    font-size: 14.5px;
  }

  body.home-editorial .hero-modalidades {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.home-editorial .hero-modalidades a {
    min-height: 48px;
    align-items: flex-start;
    padding: 9px 10px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  body.home-editorial .hero-photo-wrap {
    width: min(100%, 420px);
  }

  body.home-editorial .hero-badge {
    left: 8px;
    bottom: -14px;
    padding: 11px 14px;
  }

  body.home-editorial .section-title {
    font-size: clamp(32px, 8vw, 40px);
  }

  body.home-editorial .care-thread {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-top: 26px;
  }

  body.home-editorial[data-care-active] .care-thread-mark::after {
    transform: translateX(33px);
  }

  body.home-editorial[data-care-active] [data-care-stage]::after {
    left: 12px;
  }

  body.home-editorial .section-peak {
    padding-top: 88px;
    padding-bottom: 92px;
  }

  body.home-editorial .section-peak .sobre-photo-bg {
    inset: -10px 10px 10px -10px;
    border-radius: 20px;
  }

  body.home-editorial .section-peak .sobre-photo {
    border-radius: 18px;
  }

  body.home-editorial .section-peak figcaption {
    margin: 14px 4px 0;
    font-size: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.home-editorial .care-thread-mark::after,
  body.home-editorial[data-care-active] [data-care-stage]::after {
    transition: none;
  }

  body.home-editorial .hero h1 .sc-split__i {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
