/* Débora Eulálio · paleta medida em estudo/paleta.md.
   O retrato entregue é 2268 × 3024 (3:4), não o 1440 × 1778 do template.
   O viewport nativo .site-shell reserva o rodapé da privacidade: nenhum
   conteúdo fica atrás do cartão. A altura é medida pelo ResizeObserver. */
@font-face {
  font-family: "Editorial";
  src: url("../assets/fonts/LiberationSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Editorial";
  src: url("../assets/fonts/LiberationSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Humanist";
  src: url("../assets/fonts/LiberationSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --fundo: #221B18;
  --superficie: #342823;
  --fundo-profundo: #291711;
  --titulo: #F3E9DD;
  --corpo: #D0C0B2;
  --acento: #D4B499;
  --acento-escuro: #C08973;
  --acento-claro: #E6CFBA;
  --texto-botao: #221B18;
  --linha: #7E5F47;
  --linha-forte: #D4B499;
  --glow-rose: #D29A83;
  --grad-dark: linear-gradient(165deg, #342823 0%, #221B18 45%, #291711 100%);
  --grad-hero: linear-gradient(130deg, #342823 0%, #221B18 46%, #291711 100%);
  --grad-soft: linear-gradient(130deg, #221B18 0%, #342823 46%, #291711 100%);
  --grad-metal: linear-gradient(115deg, #D4B499 0%, #E6CFBA 38%, #F3E9DD 68%, #E6CFBA 100%);
  --grad-accent: linear-gradient(115deg, #C08973 0%, #D4B499 45%, #E6CFBA 85%);
  --grad-line: linear-gradient(90deg, transparent 0%, #7E5F47 18%, #D4B499 55%, transparent 100%);
  --serif: "Editorial", Georgia, serif;
  --sans: "Humanist", Arial, sans-serif;
  --cookie-h: 0px;
  --cookie-bottom: 16px;
  --cookie-space: 0px;
  --header-h: 96px;
  --section-space: clamp(48px, 6vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--grad-dark);
  color: var(--corpo);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .15vw, 1.0625rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}
body:has(.cookie-bar:not([hidden])) {
  --cookie-space: calc(var(--cookie-h) + var(--cookie-bottom) + 16px);
}
.site-shell {
  height: calc(100vh - var(--cookie-space));
  height: calc(100svh - var(--cookie-space));
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: 24px;
  isolation: isolate;
}
[hidden] { display: none !important; }
.cookie-bar[hidden] { display: none !important; }
a { color: var(--acento); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--titulo); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--linha);
  border-radius: 6px;
  color: var(--titulo);
  background: var(--grad-dark);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
button:hover { border-color: var(--acento); }
button:disabled { opacity: .55; cursor: not-allowed; }
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--acento-claro);
  outline-offset: 4px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--titulo); }
h1 { font-size: clamp(2.25rem, 4.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin: 18px 0 24px; max-width: 850px; text-wrap: balance; }
h3 { font-size: clamp(1.375rem, 1.1rem + .55vw, 1.75rem); margin: 0 0 16px; }
p { margin: 0 0 20px; }
figure, blockquote { margin: 0; }
address { font-style: normal; }
img { display: block; max-width: 100%; width: 100%; height: auto; }
em { color: var(--acento); }
small, .caption, .credentials { font-size: clamp(.8125rem, .78rem + .15vw, .875rem); }
.caption { line-height: 1.5; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-space); background: var(--grad-dark); }
.section:nth-child(even) { background: var(--grad-soft); }
.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--grad-line);
  pointer-events: none;
}
.section-num, .eyebrow {
  font-family: var(--sans);
  font-size: clamp(.6875rem, .64rem + .2vw, .8125rem);
  font-weight: 400;
  letter-spacing: .13em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--acento);
}
.section-intro { max-width: 740px; }
.split-grid, .hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
:where(.split-grid, .hero-grid, .footer-grid) > * { min-width: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--acento-claro);
  border-radius: 6px;
  background: var(--grad-metal);
  color: var(--texto-botao);
  font-size: clamp(.875rem, .82rem + .2vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(29 5 6 / .18), inset 0 1px 0 rgb(243 233 221 / .5);
  transition: transform .25s, box-shadow .25s;
}
.button:hover {
  color: var(--texto-botao);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgb(29 5 6 / .32), inset 0 0 0 1px var(--fundo);
}
.button:focus-visible { box-shadow: inset 0 0 0 2px var(--fundo); }
.button:disabled { transform: none; }
.button-small { padding: 10px 18px; min-height: 44px; }
.text-link { display: inline-block; padding-block: 12px; min-height: 44px; }
.text-link span { display: inline-block; transition: transform .25s; }
.text-link:hover span { transform: translateX(5px); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 18px max(32px, calc((100% - 1200px) / 2));
  background: linear-gradient(130deg, rgb(52 40 35 / .96), rgb(34 27 24 / .96) 46%, rgb(41 23 17 / .96));
  border-bottom: 1px solid rgb(126 95 71 / .3);
  backdrop-filter: blur(16px);
  transition: transform .3s, padding .3s, box-shadow .3s;
}
.site-header.is-scrolled { padding-block: 10px; box-shadow: 0 6px 24px rgb(29 5 6 / .15); }
.site-header.is-hidden { transform: translateY(-105%); }
.site-header:focus-within,
.site-header.is-menu-open,
.site-header:has([aria-expanded="true"]) { transform: none !important; }
.brand { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + .5vw, 1.625rem); color: var(--titulo); text-decoration: none; line-height: 1.25; }
.brand small { display: block; font-family: var(--sans); margin-top: 5px; color: var(--corpo); font-size: clamp(.6875rem, .65rem + .15vw, .8125rem); letter-spacing: .09em; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { font-size: clamp(.8125rem, .75rem + .15vw, .9375rem); text-decoration: none; padding-block: 12px; }
.menu-toggle { display: none; }
.hero {
  isolation: isolate;
  overflow: clip;
  background: var(--grad-hero);
  min-height: min(780px, 88svh);
  padding-block: clamp(40px, 6svh, 72px);
}
.hero::before, .agendar::before {
  content: "";
  position: absolute;
  inset: -64px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 440px 340px at 24% 35%, rgb(210 154 131 / .18) 0%, transparent 70%), radial-gradient(ellipse 540px 480px at 78% 46%, rgb(212 180 153 / .22) 0%, transparent 70%);
  filter: blur(48px);
  opacity: .6;
  animation: glowBreath 8s ease-in-out infinite alternate;
}
.hero-grid { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 32px; }
.hero-copy { max-width: 520px; animation: contentReveal .5s ease-out both; }
.hero .eyebrow { margin: 22px 0 0; }
.hero h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.08; margin-top: 14px; }
.hero h2 em { background: var(--grad-metal); background-clip: text; -webkit-background-clip: text; color: transparent; }
.lead { font-size: clamp(1rem, .92rem + .25vw, 1.125rem); line-height: 1.65; max-width: 470px; }
/* Corps/titre: contraste 9.5839/14.1445 = 32.24% de moins, sans opacité. */
.hero .lead { color: var(--corpo); }
.hero-portrait { width: min(100%, 486px); justify-self: end; }
.hero-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  border-radius: 45% 45% 8px 8px / 30% 30% 8px 8px;
  /* Fondu périphérique uniquement: centre, visage et mains restent opaques. */
  mask-image: linear-gradient(90deg, transparent, #fff 2%, #fff 98%, transparent), linear-gradient(#fff 96%, transparent);
  mask-composite: intersect;
}
.rating-badge {
  display: table;
  padding: 9px 15px;
  border: 1px solid rgb(212 180 153 / .58);
  border-radius: 8px;
  background: linear-gradient(165deg, rgb(52 40 35 / .65), rgb(34 27 24 / .72) 45%, rgb(41 23 17 / .65));
  color: var(--acento-claro);
  font-size: clamp(.8125rem, .75rem + .2vw, .9375rem);
  backdrop-filter: blur(8px);
}
.rating-badge span { font-size: clamp(.75rem, .7rem + .15vw, .8125rem); margin-left: 6px; color: var(--corpo); }
.hero .button { position: relative; }
.hero .button::after { content: ""; position: absolute; bottom: 6px; left: 22px; right: 22px; height: 1px; background: var(--linha); transform: scaleX(0); transform-origin: left; }
.hero .button:hover::after { animation: ctaLine .9s ease both; }
.contact-line { margin: 14px 0 0; font-size: clamp(.8125rem, .76rem + .15vw, .875rem); }
.steps, .treatment-grid, .aftercare-list { display: grid; list-style: none; padding: 0; gap: 24px; margin: 36px 0 24px; }
.steps, .treatment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aftercare-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { counter-reset: step; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 24px; color: var(--acento); font-size: clamp(.8125rem, .75rem + .2vw, 1rem); }
.steps li, .aftercare-list li { border-top: 1px solid var(--linha); padding-top: 24px; }
.steps p, .aftercare-list p { font-size: clamp(.9375rem, .9rem + .1vw, 1rem); }
.treatment-grid li, .address-card { position: relative; padding: 28px; border: 1px solid rgb(126 95 71 / .6); border-radius: 8px; background: var(--grad-dark); }
.treatment-grid li { display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.treatment-grid li:hover { border-color: var(--acento); transform: translateY(-4px); }
.treatment-grid h3 { font-size: clamp(1.25rem, 1.05rem + .4vw, 1.5rem); margin-top: 22px; }
.treatment-grid p, .treatment-grid a { font-size: clamp(.875rem, .82rem + .15vw, .9375rem); }
.treatment-grid a { margin-top: auto; min-height: 44px; display: flex; align-items: center; }
.card-num { font-size: clamp(.6875rem, .64rem + .2vw, .8125rem); color: var(--acento); }
.address-card .button { margin-top: 24px; }
.address-card .caption { margin: 16px 0 0; }
#cena-3d { min-width: 0; width: min(100%, 560px); justify-self: center; }
#cena-3d canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.scene-fallback { position: relative; min-height: clamp(260px, 38svh, 420px); display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--linha); border-radius: 48% 48% 8px 8px / 35% 35% 8px 8px; background: var(--grad-hero); }
.scene-fallback p:last-child { font-family: var(--serif); font-size: clamp(1.625rem, 2.5vw, 2.125rem); line-height: 1.25; color: var(--titulo); }
#cena-caption { margin: 14px 0 0; }
/* Livres Zanetti: dimensions naturelles, projection et ombres réservées. */
#estante, .shelf-stage, .shelf-row { overflow: visible; }
.shelf-stage { position: relative; perspective: 1600px; min-width: 0; padding: 32px 28px; scroll-margin-block: 24px; }
.shelf-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; min-width: 0; }
.book-card { min-width: 0; perspective: 1600px; }
.book-toggle { display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 2px; background: none; text-align: left; }
.book { display: block; position: relative; width: 100%; aspect-ratio: 2 / 3; transform-style: preserve-3d; }
.book-back, .page-block, .front-cover, .book-shadow { position: absolute; inset: 0; border-radius: 2px 5px 5px 2px; }
.book-shadow { box-shadow: 7px 10px 14px rgb(29 5 6 / .32); transform: translateZ(-3px); }
.book-back { background: linear-gradient(115deg, var(--cover-color), var(--fundo)); border: 1px solid var(--linha); }
.page-block { inset: 4px -4px 4px 5px; background: repeating-linear-gradient(90deg, #D0C0B2 0 1px, #F3E9DD 1px 3px); }
.front-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--linha);
  background: linear-gradient(165deg, rgb(34 27 24 / .65), rgb(34 27 24 / .92)), var(--cover-img) center / cover, var(--grad-dark);
  color: var(--titulo);
  transform: translateZ(8px);
  transform-origin: left center;
  transition: transform .5s;
  backface-visibility: hidden;
  box-shadow: inset 5px 0 8px rgb(29 5 6 / .35);
}
.book-toggle:hover .front-cover { transform: translateZ(12px) rotateY(-12deg); }
.book-number { font-size: clamp(.625rem, .57rem + .18vw, .75rem); letter-spacing: .08em; line-height: 1.3; color: var(--acento-claro); }
.book-title { font-family: var(--serif); font-size: clamp(1rem, 1.55vw, 1.375rem); line-height: 1.2; }
.page-fan { position: absolute; inset: 4px 0 4px 5px; transform-style: preserve-3d; opacity: 0; transition: opacity .4s; pointer-events: none; }
.page-fan i { position: absolute; inset: 0; background: linear-gradient(90deg, #D0C0B2, #F3E9DD 40%, #E6CFBA); border: 1px solid #D4B499; transform-origin: left center; transition: transform .5s; box-shadow: 2px 0 3px rgb(41 23 17 / .15); }
#estante[data-mode="detail"] .shelf-stage { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 48px; align-items: center; }
#estante[data-mode="detail"] .shelf-row { grid-template-columns: minmax(0, 1fr); }
#estante[data-mode="detail"] .book-card:not(.is-selected) { display: none; }
#estante[data-mode="detail"] .is-selected .front-cover { transform: translate3d(0, 0, 18px) rotateY(-29deg); }
#estante[data-mode="detail"] .is-selected .page-fan { opacity: 1; }
.is-selected .page-fan i:nth-child(1) { transform: rotateY(-4deg); }
.is-selected .page-fan i:nth-child(2) { transform: rotateY(-8deg); }
.is-selected .page-fan i:nth-child(3) { transform: rotateY(-12deg); }
.is-selected .page-fan i:nth-child(4) { transform: rotateY(-16deg); }
.book-panel { position: relative; min-width: 0; height: auto; padding: 28px; border: 1px solid var(--linha); border-radius: 8px; background: var(--grad-soft); scroll-margin-block: 24px; }
#estante[data-mode="detail"] .book-panel:not([hidden]) { display: block; animation: contentReveal .5s ease both; }
.book-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; font-size: clamp(1.5rem, 2vw, 1.875rem); }
.book-panel h3 { padding-right: 44px; margin-top: 6px; }
.book-panel p { font-size: clamp(.9375rem, .9rem + .15vw, 1.0625rem); }
.book-panel .text-link { font-size: clamp(.875rem, .8rem + .2vw, 1rem); }
.book-texts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.book-texts article { border-top: 1px solid var(--linha); padding-top: 20px; }
body:has(#estante[data-mode="detail"]) .site-header:not(.is-menu-open):not(:focus-within) { transform: translateY(-105%); }
.reviews-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 24px; }
.reviews-source a { font-size: clamp(.875rem, .8rem + .2vw, 1rem); }
.testi-track { display: flex; gap: 24px; padding: 8px 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--linha) var(--fundo); }
.testi-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; scroll-snap-align: start; padding: 28px; border: 1px solid var(--linha); border-radius: 8px; background: var(--grad-dark); }
.testi-slide blockquote { font-family: var(--serif); font-size: clamp(1.1875rem, 1.1rem + .2vw, 1.375rem); line-height: 1.5; color: var(--titulo); }
.testi-slide figcaption { color: var(--acento); font-size: clamp(.8125rem, .75rem + .15vw, .9375rem); margin-top: 20px; }
.testi-controls, .testi-dots { display: flex; align-items: center; justify-content: center; gap: 4px; }
.testi-controls { margin-top: 16px; }
.testi-prev, .testi-next { width: 44px; height: 44px; padding: 0; font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
.testi-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.testi-dots button::after { content: ""; display: block; width: 8px; height: 8px; margin: auto; border: 1px solid var(--acento); border-radius: 50%; transition: transform .2s; }
.testi-dots button[aria-current="true"]::after { background: var(--acento); transform: scale(1.4); }
.about-photos { display: grid; gap: 24px; }
.about-photos img { aspect-ratio: 1728 / 691; object-fit: contain; border-radius: 8px; }
.about-photos figcaption { font-size: clamp(.75rem, .7rem + .15vw, .8125rem); margin-top: 8px; }
.doctor-quote { padding-left: 24px; border-left: 1px solid var(--linha); font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.35; color: var(--acento); margin-top: 28px; }
.faq-container { max-width: 850px; }
details { border-bottom: 1px solid var(--linha); padding: 6px 0; }
summary { padding: 18px 28px 18px 0; color: var(--titulo); font-size: clamp(1.0625rem, 1rem + .2vw, 1.25rem); }
details[open] { background: linear-gradient(130deg, rgb(52 40 35 / .25), rgb(34 27 24 / .1)); }
details p { padding: 0 24px; }
.agendar { isolation: isolate; overflow: clip; background: var(--grad-dark); }
.contact-form { padding: 32px; border: 1px solid var(--linha); border-radius: 8px; background: var(--grad-dark); }
#form-help, .consent-field, .form-status { font-size: clamp(.8125rem, .76rem + .15vw, .9375rem); line-height: 1.55; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; color: var(--titulo); margin-bottom: 6px; font-size: clamp(.875rem, .82rem + .15vw, 1rem); }
input:not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 5px; background: var(--grad-hero); color: var(--titulo); font-size: clamp(1rem, .95rem + .15vw, 1.0625rem); }
select option { color: var(--titulo); background: var(--fundo); }
input:user-invalid, select:user-invalid { border-color: var(--acento-escuro); outline: 1px solid var(--acento-escuro); }
.form-field small { display: block; margin-top: 6px; }
.consent-field { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0; }
.consent-field input { flex: 0 0 24px; width: 24px; height: 24px; accent-color: var(--acento); margin: 3px 0; }
.consent-field label { min-height: 44px; }
.contact-form .button { width: 100%; }
.form-status { margin: 14px 0 0; }
.form-status:empty { margin: 0; }
#form-retry { display: inline-block; margin-top: 16px; }
.contact-phone { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem); }
.site-footer { padding-block: clamp(40px, 6svh, 64px) max(96px, 12svh); background: var(--grad-dark); border-top: 1px solid var(--linha); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.site-footer p, .site-footer address, .site-footer nav { font-size: clamp(.875rem, .82rem + .15vw, 1rem); }
.site-footer p.brand { font-size: clamp(1.5rem, 2vw, 1.875rem); }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-credit { position: relative; margin-top: 32px; padding-top: 24px; }
.footer-credit::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-line); }
.site-footer .footer-credit { font-size: clamp(.75rem, .7rem + .15vw, .8125rem); }
.footer-credit a { color: inherit; }
.cookie-bar {
  position: fixed;
  z-index: 60;
  bottom: 16px;
  bottom: var(--cookie-bottom);
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: var(--grad-dark);
  box-shadow: 0 8px 28px rgb(29 5 6 / .3);
}
.cookie-bar p { margin: 0; min-width: 0; font-size: clamp(.75rem, .71rem + .12vw, .8125rem); line-height: 1.4; }
.cookie-actions { display: flex; flex-shrink: 0; gap: 6px; }
.cookie-actions button { font-size: clamp(.75rem, .7rem + .1vw, .8125rem); padding: 8px 10px; white-space: nowrap; }
.cookie-actions button:first-child { color: var(--texto-botao); background: var(--grad-metal); }
.cookie-actions button:focus-visible { outline-offset: 2px; }
.whatsapp-fab { position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--acento-claro); border-radius: 50%; background: var(--grad-accent); color: var(--texto-botao); box-shadow: 0 6px 22px rgb(29 5 6 / .3); transition: transform .2s, box-shadow .2s; }
body:has(.cookie-bar:not([hidden])) .whatsapp-fab { bottom: calc(var(--cookie-h) + var(--cookie-bottom) + 16px); }
.whatsapp-fab svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.whatsapp-fab:hover { color: var(--texto-botao); transform: translateY(-3px); box-shadow: 0 10px 28px rgb(29 5 6 / .4); }
.whatsapp-fab:focus-visible { outline-offset: 4px; box-shadow: inset 0 0 0 2px var(--fundo); }
body.shelf-in-view .whatsapp-fab, body:has(#estante[data-mode="detail"]) .whatsapp-fab { visibility: hidden; pointer-events: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px; color: var(--titulo); background: var(--grad-dark); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.legal-main { max-width: 850px; min-height: 70svh; padding-block: clamp(40px, 7svh, 72px); }
.legal-main h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); margin-top: 36px; }
.legal-main li { margin-bottom: 12px; }
code { font-size: clamp(.875rem, .82rem + .2vw, 1rem); }
@keyframes glowBreath { from { opacity: .48; } to { opacity: .6; } }
@keyframes contentReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes areasMarquee { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes ctaLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tratamentos::after { background-size: 200% 100%; animation: areasMarquee 38s linear infinite alternate; }
/* 8 seuils de largeur, plus hauteur, tactile et mouvement réduit. */
@media (min-width: 1600px) {
  .hero-portrait { width: min(100%, 520px); }
  .hero { padding-block: clamp(56px, 7svh, 80px); }
}
@media (max-width: 1279px) {
  .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .book-card { width: min(100%, 240px); justify-self: center; }
  .book-title { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
  .front-cover { padding: 20px; }
  .treatment-grid li { padding: 22px; }
  .site-header nav { gap: 20px; }
}
@media (min-width: 1024px) {
  .testi-slide { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 1023px) {
  .hero-grid, .split-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { max-width: 640px; }
  .hero h2 { max-width: 620px; }
  .hero-portrait { width: min(100%, 440px); justify-self: center; }
  .steps, .treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header nav { gap: 14px; }
  #estante[data-mode="detail"] .shelf-stage { gap: 32px; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); padding-inline: 20px; }
}
@media (max-width: 767px) {
  :root { --header-h: 80px; --fab-space: 84px; }
  /* Faixa livre para o FAB: texto e cards terminam 16px antes dele. */
  body:has(.cookie-bar:not([hidden])) { --fab-space: 68px; }
  .site-shell {
    height: calc(100vh - var(--cookie-space) - var(--fab-space));
    height: calc(100svh - var(--cookie-space) - var(--fab-space));
  }
  .container { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; gap: 12px; flex-wrap: wrap; }
  .site-header nav { width: 100%; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
  .js .menu-toggle { display: block; font-size: clamp(.8125rem, 2vw, .9375rem); }
  .js .site-header nav { display: none; flex-direction: column; align-items: stretch; padding-block: 8px; max-height: calc(80svh - var(--cookie-space) - var(--header-h)); overflow-y: auto; }
  .js .site-header.is-menu-open nav { display: flex; }
  .site-header nav a { min-height: 44px; }
  .hero { min-height: 0; padding-block: clamp(32px, 5svh, 48px); }
  .hero::before, .agendar::before { background: radial-gradient(ellipse 280px 240px at 30% 22%, rgb(210 154 131 / .18), transparent 70%), radial-gradient(ellipse 320px 360px at 55% 74%, rgb(212 180 153 / .22), transparent 70%); filter: blur(32px); }
  .hero-portrait { width: min(100%, 400px); }
  .aftercare-list, .footer-grid, .book-texts, .about-photos { grid-template-columns: minmax(0, 1fr); }
  .shelf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .shelf-stage { padding: 28px 20px; }
  .front-cover { padding: 12px; }
  .book-title { font-size: clamp(1.0625rem, 3vw, 1.375rem); }
  #estante[data-mode="detail"] .shelf-stage { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-inline: 0; }
  #estante[data-mode="detail"] .shelf-row { width: min(220px, calc(100% - 56px)); margin-inline: auto; }
  #estante[data-mode="detail"] .book-title { font-size: clamp(1.375rem, 5vw, 1.625rem); }
  .book-panel { padding: 24px; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .cookie-actions { gap: 6px; }
  .cookie-actions button { flex: 1; padding: 6px; }
  .contact-form { padding: 24px; }
  .whatsapp-fab { width: 52px; height: 52px; right: 20px; }
}
@media (max-width: 575px) {
  .steps, .treatment-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: 1 / 3; }
  .steps p { grid-column: 2; }
  .treatment-grid li { padding: 24px; }
  .testi-slide { padding: 24px; }
  .testi-controls { flex-wrap: wrap; column-gap: 16px; }
  .testi-dots { order: 2; flex-basis: 100%; }
  .address-card { padding: 24px; }
}
@media (max-width: 420px) {
  .front-cover { padding: 10px; }
  .book-title { font-size: clamp(1rem, 4.25vw, 1.125rem); }
  .book-number { letter-spacing: .02em; }
  .hero .button { width: 100%; }
  .contact-form { padding: 20px; }
  .book-panel { padding: 20px; }
  .book-panel h3 { padding-right: 42px; }
  .rating-badge { padding-inline: 12px; }
}
@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .brand { font-size: clamp(1.0625rem, 5vw, 1.25rem); }
  .shelf-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .book-card { width: min(100%, 200px); }
  .book-title { font-size: clamp(1.25rem, 5vw, 1.375rem); }
  .book-panel, .contact-form, .address-card { padding: 16px; }
}
@media (max-height: 600px) and (min-width: 768px) {
  .hero { min-height: 0; padding-block: 32px; }
  .site-header { --header-h: 72px; padding-block: 10px; }
}
@media (hover: none) {
  .button:hover, .treatment-grid li:hover, .whatsapp-fab:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-copy, .book-panel { opacity: 1; transform: none; }
  .hero::before, .agendar::before { opacity: .6; }
}

/* Estados do job 04: o scroll principal é o shell, não apenas o body. */
body.menu-open { overflow: hidden; }
body.menu-open .site-shell { overflow-y: hidden; }
.js .reveal { opacity: 0; transition: opacity .5s ease; }
.js .reveal.is-visible, .js .reveal:focus-within { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
}
