@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&display=swap');
:root {
  --paper: #fcf7ef;
  --ink: #283126;
  --olive: #49583b;
  --muted: #585b4d;
  --line: #9788784d;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 3% 54%, #e7d1bf 0%, transparent 52%),
    linear-gradient(155deg, #f3e2db, #f6eddf 36%, #f3e5d8 71%, #ecded2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
body::before, body::after, .story::before, .care::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-image: url("aquarela-tons.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
  mix-blend-mode: multiply;
  mask-composite: intersect;
}
body::before {
  inset: 0 auto auto 0;
  width: min(100%, 1500px);
  aspect-ratio: 5 / 4;
  background-position: left top;
  mask-image:
    radial-gradient(ellipse 108% 94% at 0% 0%, #000 25%, transparent),
    linear-gradient(to right, #000 64%, transparent),
    linear-gradient(to bottom, #000 49%, transparent);
  opacity: .8;
}
body::after {
  inset: auto 0 0 auto;
  width: min(100%, 1500px);
  aspect-ratio: 5 / 2;
  background-position: right bottom;
  mask-image:
    radial-gradient(ellipse 96% 95% at 85% 100%, #000 15%, transparent 94%),
    linear-gradient(to left, #000 59%, transparent),
    linear-gradient(to top, #000 41%, transparent);
  opacity: .69;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #7e4935; outline-offset: 5px; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-150%); z-index: 2; padding: .65rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }
.wrap, .site-header { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-block; font: 500 1.55rem/1.1 var(--serif); }
.brand span { display: block; margin-top: .5rem; font: 600 .73rem/1 var(--sans); color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.65rem); font-size: .93rem; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.button { display: inline-flex; align-items: center; min-height: 46px; border: 1px solid var(--olive); border-radius: 100vw; padding: .7rem 1.3rem; background: var(--olive); color: #fffdf4; font: 600 .93rem/1.3 var(--sans); transition: background .2s; }
.button:hover { background: #35442b; text-decoration: none; }
.button.outline { color: var(--olive); background: transparent; min-height: 42px; }
.button.outline:hover { background: #e9eadc; }
.hero { position: relative; display: grid; align-items: center; min-height: min(680px, 78svh); padding-block: clamp(3rem, 8vw, 7rem); }
.intro { align-self: center; padding: 1.7rem 0; }
.swatches { display: flex; gap: 13px; align-items: center; margin-bottom: 1.8rem; padding-left: 2px; }
.swatches i { position: relative; width: 17px; height: 15px; border-radius: 42% 57% 40% 55% / 69% 39% 51% 30%; transform: rotate(-25deg); background: radial-gradient(ellipse at 25% 30%, color-mix(in srgb, var(--pigment), transparent 32%), var(--pigment)); box-shadow: 1px 1px 2px color-mix(in srgb, var(--pigment), transparent 35%); }
.swatches i:nth-child(even) { transform: rotate(22deg) scale(.92); }
.swatches i::before, .swatches i::after { content: ""; position: absolute; background: var(--pigment); opacity: .65; border-radius: 50%; width: 3px; height: 3px; top: -3px; right: -2px; }
.swatches i::after { top: 10px; right: -5px; width: 2px; height: 2px; }
.eyebrow { margin: 0 0 .9rem; color: var(--olive); font: 700 .79rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin-bottom: 1.3rem; font-size: clamp(3.5rem, 6.6vw, 6.6rem); line-height: .99; letter-spacing: -.065em; }
h1 em { color: var(--olive); font-weight: 400; }
h2 { font-size: clamp(2.2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 1rem; }
h3 { font-size: 1.55rem; line-height: 1.2; margin-bottom: .6rem; }
.lead { max-width: 32ch; color: var(--muted); font-size: 1.12rem; margin-bottom: 1.55rem; }
.registration { color: var(--muted); margin: 1.25rem 0 0; font-size: .86rem; }
.tree {
  position: relative;
  z-index: -1;
}
.tree::before {
  content: "";
  position: absolute;
  inset: auto auto 69% 12%;
  width: min(100%, 620px);
  height: max(36rem, calc(min(680px, 78svh) + 8vw));
  background: url("pinceladas-pau-ferro.webp") center bottom / contain no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 34%);
  pointer-events: none;
}
.tree img {
  display: block;
  width: 100%;
  height: auto;
}
.glass { position: relative; isolation: isolate; overflow: hidden; border-radius: 2rem; padding: 1.75rem 2rem; border: 1px solid #fffdf8ed; background: linear-gradient(145deg, #fffdf75c, #fffcf315 68%, #fffdf747); box-shadow: 0 12px 30px #57433220, 0 0 0 1px #826f5826, inset 0 1px 0 #fffdf8ee, inset 0 -1px 0 #fffdf879; backdrop-filter: blur(8px) saturate(1.1); }
.glass p:last-child { margin-bottom: 0; }
.glass p:not(.eyebrow) { color: var(--muted); }
.care {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.care::before {
  inset: 10% 0 auto auto;
  width: min(78%, 760px);
  aspect-ratio: 6 / 5;
  background-position: right bottom;
  mask-image:
    radial-gradient(ellipse 78% 48% at 80% 51%, #000 6%, transparent),
    linear-gradient(to right, transparent, #000 18%, #000 79%, transparent);
  opacity: .56;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.65rem; }
.story {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(1rem, 6vw, 6rem);
}
.story::before {
  inset: 8% auto auto 0;
  width: min(60%, 590px);
  aspect-ratio: 1 / 1;
  background-position: left center;
  mask-image:
    radial-gradient(ellipse 84% 59% at 0% 50%, #000 14%, transparent),
    linear-gradient(to right, transparent, #000 15%, #000 66%, transparent),
    linear-gradient(to bottom, transparent, #000 18%, #000 83%, transparent);
  opacity: .73;
}
.story-copy { padding-block: 1rem; }
.story-copy p:last-child { max-width: 53ch; color: var(--ink); margin-bottom: 0; }
.contact { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.contact .glass { padding: clamp(2rem, 5vw, 4rem); padding-right: max(3.3rem, 5vw); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.footer p { margin: 0; color: var(--muted); font-size: .87rem; }
@media (max-width: 850px) {
  .wrap, .site-header { width: calc(100% - 48px); }
  .cards article { padding-inline: 1.2rem; }
}
@media (max-width: 650px) {
  body::before {
    width: 100%;
    aspect-ratio: 1 / 1;
    opacity: .62;
  }
  body::after { width: 100%; opacity: .52; }
  .story::before { width: 80%; inset-block-start: 2%; }
  .wrap, .site-header { width: calc(100% - 36px); }
  .site-header { flex-wrap: wrap; padding-block: 1rem .8rem; }
  nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .hero { min-height: 0; padding-block: 3.5rem; }
  .story, .cards { grid-template-columns: 1fr; }
  .story { gap: 0; }
  .story-copy { padding-top: 0; }
  .tree { margin-block: -1.25rem; }
  .tree::before { left: 7%; width: 92%; height: clamp(24rem, 115vw, 32rem); }
  .intro { padding: .8rem 0; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Formação, símbolo, blog e contato */
.formacao { margin: 1.4rem 0 1.5rem; border-top: 1px solid var(--line); }
.formacao div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .25rem 1.25rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.formacao dt { color: var(--olive); font: 700 .74rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .14em; }
.formacao dd { margin: 0; }
.story-copy .symbol { max-width: 53ch; color: var(--muted); font-size: .95rem; }
.story-copy .symbol strong { color: var(--ink); font-weight: 600; }
.story-copy .symbol em { font-family: var(--serif); font-weight: 400; }
.notes { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.section-head h2 { margin-bottom: 0; }
.more { color: var(--olive); font-weight: 600; font-size: .93rem; }
.more:hover { text-decoration: underline; text-underline-offset: .35em; }
.note { display: flex; flex-direction: column; gap: .35rem; transition: transform .2s; }
.note:hover { transform: translateY(-3px); }
.note-label { color: #7e4935; font: 700 .74rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.contact .glass .button { margin-top: 1.4rem; }
@media (max-width: 650px) {
  .formacao div { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

/* Retrato e WhatsApp */
.hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); }
.portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 470px); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 12rem 12rem 2rem 2rem; border: 1px solid #fffdf8ed; box-shadow: 0 30px 60px #57433233, 0 0 0 8px #fffdf757; }
.portrait-badge { position: absolute; left: -2.5rem; bottom: 2rem; display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.4rem; border-radius: 1.5rem; background: linear-gradient(145deg, #fffdf7c7, #fffcf38c); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); transition: transform .2s; }
.portrait-badge:hover { transform: translateY(-3px); }
.portrait-badge .eyebrow { margin: 0; font-size: .7rem; }
.portrait-badge strong { font: 400 1.3rem/1.2 var(--serif); color: var(--ink); }
.portrait-badge span:last-child { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.wa-link { color: var(--olive); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; white-space: nowrap; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .portrait { justify-self: center; width: min(100%, 420px); }
  .portrait-badge { left: 1rem; bottom: 1rem; }
}

/* Sobre (sem imagem) */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.about-copy p:last-child { max-width: 42ch; margin-bottom: 0; }
.formacao.glass { margin: 0; padding: .6rem 2rem; border-top: 1px solid #fffdf8ed; }
.formacao.glass div:last-child { border-bottom: 0; }

/* Pau-ferro */
.pauferro { position: relative; padding-block: clamp(3rem, 7vw, 6rem); }
.pf-head { text-align: center; max-width: 30ch; margin: 0 auto clamp(1rem, 3vw, 2rem); }
.pf-head h2 { text-wrap: balance; }
.pf-head h2 em { color: var(--olive); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.25rem, 3.5vw, 3.5rem); align-items: center; }
.pf-text p { color: var(--ink); font-size: 1.02rem; line-height: 1.75; }
.pf-text p:last-child { margin-bottom: 0; }
.pf-left { text-align: right; }
.pf-text em { font-family: var(--serif); }
.pf-tree { margin: 0; z-index: 0; }
.pf-tree::before { inset: auto auto 62% 6%; width: 100%; height: 32rem; }
.pf-tree img { position: relative; }
.pf-afeto { max-width: 760px; margin: clamp(1.5rem, 4vw, 3rem) auto 0; text-align: center; padding: clamp(1.75rem, 4vw, 3rem); }
.pf-afeto p { margin-bottom: 1rem; }
.glass.pf-afeto p:not(.eyebrow) { color: var(--ink); }
.pf-afeto .pf-irma { font: 400 clamp(1.45rem, 2.6vw, 1.95rem)/1.3 var(--serif); font-style: italic; color: var(--olive) !important; margin-block: 1.25rem; text-wrap: balance; }
@media (max-width: 950px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-tree { order: -1; width: min(100%, 440px); justify-self: center; }
  .pf-left { text-align: left; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .formacao.glass { padding: .4rem 1.25rem; }
  .pf-tree::before { height: 22rem; }
}
.pauferro::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 12% 0 auto 0; margin-inline: auto; width: min(90%, 820px); aspect-ratio: 1 / 1;
  background: url("aquarela-tons.webp") center / cover no-repeat;
  mix-blend-mode: multiply; opacity: .45;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 20%, transparent 72%);
}

/* Pau-ferro: texto centralizado */
.pf-tree { width: min(100%, 520px); margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); }
.pf-tree::before { inset: auto auto 62% 8%; width: 92%; height: 30rem; }
.pf-text { max-width: 64ch; margin-inline: auto; text-align: center; }
.pf-text p { font-size: 1.06rem; line-height: 1.85; margin-bottom: 1.3rem; }

/* Marca-texto vinho, irregular, como caneta sobre papel */
mark.hl {
  color: inherit;
  padding: .06em .22em .1em;
  margin-inline: -.12em;
  border-radius: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 11 C38 6 70 9 108 6 S170 8 197 7 L198 15 C196 22 199 27 196 31 C158 35 112 31 70 34 S20 33 3 32 C5 25 1 18 4 11 Z' fill='%237a1f35' fill-opacity='.24'/%3E%3Cpath d='M10 15 C60 12 120 14 190 12 L191 26 C130 28 70 25 9 28 Z' fill='%237a1f35' fill-opacity='.08'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
mark.hl-b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C50 10 96 5 150 9 S190 6 198 10 C197 18 200 24 197 33 C150 30 104 35 56 31 S14 34 4 30 C2 22 5 15 2 8 Z' fill='%237a1f35' fill-opacity='.22'/%3E%3Cpath d='M6 26 C70 23 140 27 194 24 L195 31 C130 33 60 30 6 32 Z' fill='%237a1f35' fill-opacity='.1'/%3E%3C/svg%3E"); }
mark.hl-c { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M6 13 C44 9 92 12 132 8 S182 10 196 12 C199 19 195 25 198 30 C156 33 118 29 74 33 S22 30 2 34 C4 27 2 20 6 13 Z' fill='%237a1f35' fill-opacity='.26'/%3E%3C/svg%3E"); }

/* Agendamento, unidades e pré-natal */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.text-link { color: var(--olive); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { color: #35442b; }
.care-4 .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-lead { max-width: 48ch; font-size: 1.08rem; margin-bottom: 1.4rem; }
.contact .glass .cta-row .button { margin-top: 0; }
.units-title { margin-top: clamp(2rem, 4vw, 2.75rem); }
.units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.unit { padding: 1.2rem 1.3rem; border-radius: 1.4rem; background: #fffdf766; border: 1px solid #fffdf8cc; box-shadow: inset 0 1px 0 #fffdf8ee; }
.unit h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.unit p { font-size: .93rem; margin-bottom: .75rem; }
.glass .unit p:not(.eyebrow) { margin-bottom: .75rem; }
@media (max-width: 1000px) { .care-4 .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .units { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .care-4 .cards { grid-template-columns: 1fr; } }

/* Retrato no enquadramento original */
.portrait { width: min(100%, 500px); }
.portrait img { aspect-ratio: auto; height: auto; object-fit: contain; border-radius: 2.25rem; }

/* Blocos que aparecem ao rolar a página */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .portrait.reveal { transform: translateY(32px) scale(.98); }
.js .portrait.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .portrait.reveal { opacity: 1; transform: none; transition: none; }
}
.js .note.reveal.is-visible:hover { transform: translateY(-3px); transition-delay: 0ms; }

/* Fotografia de infância ao fim do texto do pau-ferro */
.memoria { margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; width: min(100%, 360px); padding: 12px 12px 44px; background: #fffdf8; border-radius: 6px; box-shadow: 0 18px 40px #5743322e, 0 2px 6px #57433222; rotate: -2.5deg; }
.memoria img { display: block; width: 100%; height: auto; border-radius: 2px; }
.js .memoria.reveal { transform: translateY(32px) rotate(2deg); }
.js .memoria.reveal.is-visible { transform: none; }

/* Movimento da aquarela que sobe da copa */
.pf-tree::before,
.pf-tree::after {
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.pf-tree::before { animation: pf-sopro 9s ease-in-out infinite; }
.pf-tree::after {
  content: "";
  position: absolute;
  inset: auto auto 60% 14%;
  width: 84%;
  height: 26rem;
  background: url("pinceladas-pau-ferro.webp") center bottom / contain no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  pointer-events: none;
  opacity: .45;
  scale: -1 1;
  animation: pf-sopro-2 13s ease-in-out infinite;
}
@keyframes pf-sopro {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scaleY(1);       opacity: .85; }
  35%  { transform: translate3d(6px, -12px, 0) rotate(-1.4deg) scaleY(1.04); opacity: 1; }
  70%  { transform: translate3d(-4px, -20px, 0) rotate(.8deg) scaleY(1.07);  opacity: .75; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scaleY(1);       opacity: .85; }
}
@keyframes pf-sopro-2 {
  0%   { transform: translate3d(0, 6px, 0) rotate(.6deg) scaleY(.98);   opacity: .25; }
  50%  { transform: translate3d(-10px, -26px, 0) rotate(-1.8deg) scaleY(1.08); opacity: .55; }
  100% { transform: translate3d(0, 6px, 0) rotate(.6deg) scaleY(.98);   opacity: .25; }
}
@media (max-width: 650px) {
  .pf-tree::after { height: 18rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-tree::before, .pf-tree::after { animation: none; }
}

/* Folhinhas em aquarela: o vento leva grupinhos para o lado e eles pousam no chão */
.pf-tree::before, .pf-tree::after { content: none; display: none; animation: none; }
.pf-head { position: relative; z-index: 2; }
.pf-leaves { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.grp { position: absolute; left: var(--x1); top: var(--yg); width: 0; height: 0; }
.grp b { position: absolute; left: var(--ox); top: var(--oy); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); background: center / contain no-repeat; opacity: .95; }
.grp b.l1 { background-image: url("folha-1.webp"); }
.grp b.l2 { background-image: url("folha-2.webp"); }
.grp b.l3 { background-image: url("folha-3.webp"); }
.grp b.l5 { background-image: url("folha-5.webp"); }
/* com JavaScript: os grupinhos esperam na copa até a árvore aparecer */
.js .pf-tree .grp { left: var(--x0); top: var(--y0); opacity: 0; }
.js .pf-tree.is-visible .grp { animation: vento var(--t) linear calc(var(--d) + .6s) both; }
.js .pf-tree.is-visible .grp b { animation: flutua calc(var(--t) * .5) ease-in-out calc(var(--d) + .6s) 2 alternate both; }
@keyframes vento {
  0%   { left: var(--x0); top: var(--y0); opacity: 0; animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  10%  { opacity: 1; }
  42%  { left: calc(var(--x0) + (var(--x1) - var(--x0)) * .62); top: calc(var(--y0) - var(--lift)); animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  86%  { left: calc(var(--x1) + .6%); top: calc(var(--yg) - .4%); animation-timing-function: ease-out; }
  100% { left: var(--x1); top: var(--yg); opacity: 1; }
}
@keyframes flutua {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(var(--fx), calc(var(--fx) * .4)) rotate(25deg); }
}
@media (prefers-reduced-motion: reduce) {
  .js .pf-tree .grp, .js .pf-tree.is-visible .grp { animation: none; left: var(--x1); top: var(--yg); opacity: 1; }
  .js .pf-tree.is-visible .grp b { animation: none; }
}

/* ===== Página de anotação (post do blog) ===== */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; background: transparent; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), #7a1f35); transform-origin: 0 50%; transform: scaleX(0); }
.post-cover { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); }
.post-cover h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); text-wrap: balance; }
.post-cover .lead { max-width: 44ch; }
.post-meta { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: .93rem; }
.post-meta li { display: flex; flex-direction: column; gap: .1rem; }
.post-meta span { color: var(--olive); font: 700 .7rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.print { margin: 0; padding: 10px; background: #fffdf8; border-radius: 6px; box-shadow: 0 22px 50px #57433233, 0 2px 6px #57433222; }
.print img { display: block; width: 100%; height: auto; border-radius: 3px; }
.print-cover { justify-self: center; width: min(100%, 420px); rotate: 2deg; }
.print-wide { margin: clamp(1.5rem, 4vw, 2.5rem) auto; width: min(100%, 640px); rotate: -1.2deg; }

.post-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; padding-bottom: clamp(3rem, 7vw, 6rem); }
.toc { position: sticky; top: 2rem; padding-top: .5rem; }
.toc-title { color: var(--olive); font: 700 .72rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: flex; gap: .7rem; padding: .55rem 0 .55rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: #8a8576; font-size: .9rem; line-height: 1.35; transition: color .35s, border-color .35s; }
.toc a span { font: 400 .95rem/1.35 var(--serif); min-width: 1.4rem; }
.toc a.read { color: var(--muted); }
.toc a.current { color: var(--ink); border-left-color: #7a1f35; font-weight: 600; }
.toc a:hover { color: var(--ink); }
.toc-chip { display: none; }

.post-body { max-width: 680px; font-size: 1.08rem; line-height: 1.85; }
.post-body p { margin-bottom: 1.25rem; }
.opening { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.dropcap::first-letter { float: left; font: 400 4.2rem/.85 var(--serif); color: var(--olive); padding: .35rem .55rem 0 0; }
.topic { scroll-margin-top: 2rem; padding-top: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.topic h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.4rem; }
.topic h2 .num { color: #7a1f35; font-style: italic; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 1px solid #7a1f3540; }
.timeline li { position: relative; padding-bottom: 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.6rem - 6px); top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: #fffdf8; border: 2px solid #7a1f35; }
.timeline .year { display: block; font: 400 1.5rem/1.2 var(--serif); color: #7a1f35; margin-bottom: .2rem; }
.timeline p { margin: 0; }

.stat { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin: 1.75rem 0; }
.stat-n { margin: 0 !important; font: 400 clamp(3.4rem, 7vw, 5rem)/1 var(--serif); color: var(--olive) !important; white-space: nowrap; }
.stat p:last-child { font-size: 1rem; }

.facts { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .7rem; }
.facts li { position: relative; padding: .9rem 1.1rem .9rem 3rem; border-radius: 1rem; background: #fffdf766; border: 1px solid #fffdf8cc; box-shadow: inset 0 1px 0 #fffdf8ee; font-size: 1rem; line-height: 1.6; }
.facts li::before { position: absolute; left: 1rem; top: .85rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--sans); color: #fffdf8; }
.facts li.sim::before { content: "✓"; background: var(--olive); }
.facts li.nao::before { content: "✕"; background: #7a1f35; }

.pull { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 3px solid #7a1f35; }
.pull p { font: 400 clamp(1.35rem, 2.4vw, 1.65rem)/1.45 var(--serif); color: var(--ink); margin: 0; }
.big-line { font: 400 clamp(1.3rem, 2.3vw, 1.6rem)/1.45 var(--serif); }
.lead-in { margin-bottom: .25rem !important; font-weight: 600; }

.refs { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.refs summary { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--olive); font-weight: 600; letter-spacing: .04em; list-style: none; }
.refs summary::-webkit-details-marker { display: none; }
.refs summary::before { content: "+"; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border: 1px solid var(--olive); border-radius: 50%; font-size: .85rem; transition: transform .3s; }
.refs[open] summary::before { transform: rotate(45deg); }
.refs p { margin: .2rem 0 0; padding-left: 1.7rem; }

.serie { padding: clamp(1.75rem, 4vw, 2.75rem); }
.serie .first { font: 400 1.5rem/1.3 var(--serif); color: var(--olive) !important; margin: 1rem 0 0; }
.post-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

@media (max-width: 950px) {
  .post-cover { grid-template-columns: 1fr; }
  .print-cover { width: min(100%, 360px); }
  .post-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-chip { position: fixed; left: 50%; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: .6rem; max-width: calc(100% - 2rem); padding: .6rem 1.1rem; border-radius: 999px; background: #fffdf7d9; border: 1px solid #fffdf8; box-shadow: 0 10px 30px #57433226; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .86rem; transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2,.65,.25,1); }
  .toc-chip.show { transform: translate(-50%, 0); }
  .chip-n { font: 400 1rem/1 var(--serif); color: #7a1f35; }
  .chip-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 650px) {
  .stat { grid-template-columns: 1fr; gap: .5rem; }
  .post-body { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  .toc-chip { transition: none; }
}

/* Capa do blog na página inicial */
.note-feature { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: center; padding: 1rem; }
.note-feature img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: 1.25rem; }
.note-body { display: flex; flex-direction: column; gap: .4rem; padding: .75rem .75rem .75rem 0; }
.note-more { color: var(--olive); font-weight: 600; font-size: .93rem; margin-top: .3rem; }
.note-soon { opacity: .85; }
@media (max-width: 850px) {
  .note-feature { grid-column: auto; grid-template-columns: 1fr; }
  .note-feature img { max-height: 240px; }
  .note-body { padding: 0 .25rem .5rem; }
}

/* Como é uma consulta comigo */
.consulta { position: relative; padding-block: clamp(3rem, 7vw, 6rem); }
.consulta-head { max-width: 48rem; }
.consulta-head p:not(.eyebrow) { font-size: 1.08rem; line-height: 1.75; }
.consulta-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.25rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.integral { padding: clamp(1.6rem, 3.5vw, 2.4rem); }
.integral h3, .consulta-side h3 { font-size: 1.55rem; margin-bottom: .8rem; }
.c-lead { font-weight: 600; color: var(--ink) !important; margin-bottom: .75rem; }
.contempla { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.contempla li { display: flex; gap: .75rem; align-items: baseline; padding: .8rem 1rem; border-radius: 1rem; background: #fffdf780; border: 1px solid #fffdf8cc; box-shadow: inset 0 1px 0 #fffdf8ee; font-size: .97rem; line-height: 1.45; }
.c-n { font: 400 1.05rem/1 var(--serif); color: #7a1f35; flex: none; }
.consulta-side { display: grid; gap: 1.25rem; }
.consulta-side .glass { padding: clamp(1.5rem, 3vw, 2rem); }
.acesso { border-left: 3px solid #7a1f35; }
.consulta-fim { max-width: 40ch; margin: clamp(2rem, 5vw, 3rem) auto 0; text-align: center; font: 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.4 var(--serif); text-wrap: balance; }
@media (max-width: 950px) {
  .consulta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .contempla { grid-template-columns: 1fr; }
}

/* Teleconsulta e pagamento (Contato) */
.info-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.glass-in { padding: 1.2rem 1.3rem; border-radius: 1.4rem; background: #fffdf766; border: 1px solid #fffdf8cc; box-shadow: inset 0 1px 0 #fffdf8ee; }
.info h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.glass .info p:not(.eyebrow) { font-size: .95rem; margin-bottom: .6rem; }
.info p:last-child { margin-bottom: 0; }
@media (max-width: 850px) { .info-row { grid-template-columns: 1fr; } }

/* ===== Menu em barra lateral ===== */
.sidebar { z-index: 30; }
.sb-top .brand { font-size: 1.35rem; }
.menu-btn { display: none; }
.sb-nav { display: flex; flex-direction: column; gap: .15rem; }
.sb-nav a { position: relative; padding: .55rem .9rem; border-radius: .8rem; font-size: .98rem; font-weight: 500; color: var(--muted); transition: background .25s, color .25s; }
.sb-nav a:hover { background: #fffdf780; color: var(--ink); }
.sb-nav a.active { color: var(--ink); background: #fffdf7a6; box-shadow: inset 0 1px 0 #fffdf8; }
.sb-nav a.active::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; border-radius: 3px; background: #7a1f35; }
.sb-actions { display: grid; gap: .55rem; }
.sb-actions .button { justify-content: center; }
.sb-insta { display: flex; flex-direction: column; gap: .15rem; padding: .85rem .9rem; border-radius: 1rem; border: 1px solid var(--line); font-weight: 600; color: var(--olive); font-size: .95rem; }
.sb-insta span { color: var(--muted); font: 700 .68rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.sb-insta:hover { background: #fffdf780; }

@media (min-width: 1000px) {
  body.has-sidebar { padding-left: 272px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; display: flex; flex-direction: column; gap: 2rem; padding: 2rem 1.4rem 1.6rem; overflow-y: auto;
    background: linear-gradient(180deg, #fffdf785, #fffcf34d); border-right: 1px solid #fffdf8; box-shadow: 1px 0 0 #9788784d, 12px 0 40px #5743320f;
    backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
  .sb-panel { display: flex; flex-direction: column; gap: 1.75rem; flex: 1; }
  .sb-insta { margin-top: auto; }
  .wrap { width: min(1180px, calc(100% - 96px)); }
}
@media (max-width: 999px) {
  .sidebar { position: sticky; top: 0; background: #fbf6eee6; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .sb-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(18px, 4vw, 48px); }
  .sb-top .brand { font-size: 1.15rem; }
  .sb-top .brand span { font-size: .62rem; margin-top: .3rem; }
  .menu-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--olive); border-radius: 999px; background: transparent; color: var(--olive); font: 600 .9rem/1 var(--sans); cursor: pointer; }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .menu-ico { position: relative; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
  .menu-ico::before { top: -5px; } .menu-ico::after { top: 5px; }
  .menu-open .menu-ico { background: transparent; }
  .menu-open .menu-ico::before { transform: translateY(5px) rotate(45deg); }
  .menu-open .menu-ico::after { transform: translateY(-5px) rotate(-45deg); }
  .sb-panel { display: none; padding: .5rem clamp(18px, 4vw, 48px) 1.4rem; gap: 1.1rem; flex-direction: column; max-height: calc(100svh - 70px); overflow-y: auto; }
  .menu-open .sb-panel { display: flex; }
}

/* post: índice lateral só em telas largas (a barra do site ocupa a esquerda) */
@media (max-width: 1300px) {
  .post-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .post-body { margin-inline: auto; }
  .toc-chip { position: fixed; left: 50%; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: .6rem; max-width: calc(100% - 2rem); padding: .6rem 1.1rem; border-radius: 999px; background: #fffdf7d9; border: 1px solid #fffdf8; box-shadow: 0 10px 30px #57433226; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .86rem; transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2,.65,.25,1); }
  .toc-chip.show { transform: translate(-50%, 0); }
  .chip-n { font: 400 1rem/1 var(--serif); color: #7a1f35; }
  .chip-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1000px) and (max-width: 1300px) { .toc-chip { left: calc(50% + 136px); } }
.about { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); }
@media (max-width: 950px) { .about { grid-template-columns: 1fr; } }

/* Celular: sem barra superior; botão de vidro transparente flutuando sobre o texto */
.hero-name { display: none; }
@media (max-width: 999px) {
  .hero-name { display: block; margin: 0 0 .6rem; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
  .sidebar { position: fixed; top: 0; left: 0; right: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
  .sb-top { justify-content: flex-end; padding: .8rem .9rem; }
  .sb-top .brand { display: none; }
  .menu-btn { pointer-events: auto; border: 1px solid #fffdf8; background: #fffdf759; color: var(--ink);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 8px 24px #5743321f, inset 0 1px 0 #fffdf8ee; }
  .menu-open .sidebar { pointer-events: auto; inset: 0; background: #fbf6ee8c; backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15); }
  .menu-open .sb-top .brand { display: inline-block; margin-right: auto; }
  .menu-open .sb-top { justify-content: space-between; }
  .sb-panel { max-height: none; padding: .5rem 1.5rem 2rem; }
  .menu-open .sb-panel { display: flex; }
  .sb-nav a { font: 400 1.6rem/1.25 var(--serif); color: var(--ink); padding: .5rem .2rem; background: none !important; box-shadow: none !important; }
  .sb-nav a.active::before { left: -.7rem; }
}

/* ===== Menu de vidro flutuante em todas as telas (substitui a barra lateral fixa) ===== */
body.has-sidebar { padding-left: 0; }
.wrap { width: min(1280px, calc(100% - 112px)); }
.hero-name { display: block; margin: 0 0 .6rem; font: 500 clamp(1.35rem, 2vw, 1.6rem)/1.2 var(--serif); color: var(--ink); }
.sidebar { position: fixed; inset: 0 0 auto 0; width: auto; display: block; padding: 0; overflow: visible; gap: 0;
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.sb-top { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: clamp(.8rem, 2vw, 1.4rem) clamp(.9rem, 3vw, 2.2rem); }
.sb-top .brand { display: none; }
.menu-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font: 600 .92rem/1 var(--sans); color: var(--ink); border: 1px solid #fffdf8; background: #fffdf759;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 8px 24px #5743321f, inset 0 1px 0 #fffdf8ee; transition: background .25s; }
.menu-btn:hover { background: #fffdf799; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-ico { position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
.menu-ico::before { top: -5px; }
.menu-ico::after { top: 5px; }
.menu-open .menu-ico { background: transparent; }
.menu-open .menu-ico::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-ico::after { transform: translateY(-5px) rotate(-45deg); }
.sb-panel { display: none; }
.menu-open .sidebar { pointer-events: auto; inset: 0; overflow-y: auto; background: #fbf6ee8c; backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15); }
.menu-open .sb-top { justify-content: space-between; }
.menu-open .sb-top .brand { display: inline-block; }
.menu-open .sb-panel { display: flex; flex-direction: column; gap: 1.6rem; width: min(100% - 3rem, 560px); margin: clamp(1rem, 6vh, 4rem) auto 3rem; padding: 0; max-height: none; }
.sb-nav a { font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.25 var(--serif); color: var(--ink); padding: .45rem .2rem; background: none !important; box-shadow: none !important; }
.sb-nav a:hover { color: var(--olive); }
.sb-nav a.active::before { left: -.8rem; }
.sb-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-insta { margin-top: 0; }
@media (max-width: 480px) { .sb-actions { grid-template-columns: 1fr; } }

/* post: índice lateral volta a aparecer em telas largas */
@media (min-width: 951px) {
  .post-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .toc { display: block; }
  .post-body { margin-inline: 0; }
  .toc-chip { display: none; }
}
@media (max-width: 950px) { .toc-chip { left: 50%; } }
