/* V3: evolução da V2. Documento usa a rolagem natural do navegador. */
.casa-video-slot {
  width: 100%;
}
html,
body {
  height: auto;
  min-height: 100%;
  overflow: visible !important;
}
body {
  padding-bottom: 0;
}
.page-scroll {
  height: auto;
  overflow: visible;
}
.form-input-focused .page-scroll {
  height: auto;
}
html {
  scroll-padding: 24px 0 100px;
  scrollbar-gutter: stable;
}
main {
  min-width: 0;
}
.review-bar {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding-block: 8px;
}
.section {
  padding-block: 48px;
}
.hero {
  padding-block: 40px;
}
.manifesto {
  padding-block: 35px;
}
.site-header {
  padding-block: 20px;
}
.site-header nav {
  gap: 22px;
}
.site-header .nav-contact {
  white-space: nowrap;
}
.brand-slot {
  width: 185px;
}
.official-logo {
  height: 58px;
}
.site-footer {
  padding-bottom: 106px;
}
.small-note {
  color: var(--muted);
}
/* Pílula compacta, sem faixa reservada ou alteração da altura da viewport. */
.contact-dock {
  inset: auto 16px max(14px, env(safe-area-inset-bottom)) auto;
  padding: 0;
  min-height: 0;
  max-height: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  max-width: calc(100% - 32px);
}
.contact-dock button,
.contact-dock a {
  min-height: 44px;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 30px;
  background: var(--deep);
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: 0 3px 16px #0002;
  font-size: 0.75rem;
}
.wa-icon {
  font-size: 1rem;
}
.form-input-focused .contact-dock {
  visibility: hidden;
}
.contact-dock.is-obstructing {
  visibility: hidden;
}
.whatsapp-notice.notice-active {
  bottom: 76px;
  background: var(--panel);
  color: var(--text);
  border-color: var(--gold);
}
/* O gerenciador é modal nativo e só aparece por escolha ou integração ativa. */
dialog.consent-panel:not([open]) {
  display: none;
}
dialog.consent-panel[open] {
  display: block;
  position: fixed;
  inset: auto 16px 20px auto;
  margin: 0;
  width: min(440px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  padding: 28px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
}
dialog::backdrop {
  background: #0005;
}
dialog.consent-panel h2 {
  font: normal 1.6rem var(--serif);
  margin: 0 30px 16px 0;
}
dialog.consent-panel p {
  font-size: 0.875rem;
  color: var(--muted);
}
dialog.consent-panel > a {
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  font-size: 0.875rem;
}
dialog .consent-actions {
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
dialog .consent-actions button {
  flex: 1;
  min-width: 135px;
  border-color: var(--gold);
  color: var(--text);
}
.consent-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.6rem;
}
.project-entry {
  display: grid;
  gap: 24px;
  border-block: 1px solid var(--line);
}
.project-entry h2 {
  font: normal clamp(2.2rem, 4vw, 3.5rem) / 1.15 var(--serif);
  letter-spacing: -0.03em;
}
.project-entry em {
  color: var(--gold);
}
.project-entry .text-link {
  margin-top: 20px;
}
.event-route-note {
  padding: 14px 0;
  margin-bottom: 18px;
  font-size: 0.875rem;
}
.event-route-note a {
  text-decoration: underline;
  color: var(--gold);
}
/* Entrada editorial da submarca dentro da identidade Adapta. */
.casa-entry {
  display: grid;
  gap: 0;
  background: #eee5d5;
  color: #302d28;
  padding: 0;
  margin-block: 24px 40px;
  border: 1px solid #d2c3a7;
}
.casa-entry-copy {
  padding: 32px 25px;
}
.casa-entry .eyebrow {
  color: #745f32;
}
.casa-signature {
  font: normal 1.35rem var(--serif);
  letter-spacing: 0.09em;
  margin-block: 25px 30px;
}
.casa-signature small {
  display: block;
  font: normal 0.6rem var(--sans);
  letter-spacing: 0.14em;
  margin-top: 9px;
}
.casa-entry h2 {
  font: normal clamp(2.4rem, 4vw, 3.5rem) / 1.13 var(--serif);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.casa-entry h2 em {
  color: #7b622f;
}
.casa-entry p:not(.eyebrow, .casa-signature) {
  max-width: 490px;
}
.casa-entry .button {
  margin-top: 26px;
}
.casa-editorial-placeholder {
  min-height: 300px;
  background: #ddd0b9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: #504533;
  position: relative;
  border: 14px solid #e5d9c5;
}
.casa-editorial-placeholder > span,
.casa-editorial-placeholder small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}
.casa-editorial-placeholder > p {
  font: normal 2.5rem/1.15 var(--serif);
}
/* Casa Áurea: a mesma família tipográfica, outra atmosfera. */
.casa-theme {
  --bg: #f5f0e7;
  --deep: #ebe3d5;
  --panel: #eee6d9;
  --text: #302c26;
  --muted: #665d50;
  --gold: #80622c;
  --line: #d5c9b5;
  color-scheme: light;
}
.casa-theme .review-bar {
  background: #e8dfd0;
  color: #635643;
  border-color: var(--line);
}
.casa-theme .wordmark span {
  color: var(--gold);
}
.casa-wordmark {
  position: relative;
  flex-wrap: wrap;
  gap: 0 0.3em;
  padding-bottom: 14px;
  line-height: 1.15;
}
.casa-wordmark small {
  font: normal 0.56rem var(--sans);
  letter-spacing: 0.1em;
  position: absolute;
  bottom: 3px;
  left: 0;
}
.casa-theme .site-header {
  border-color: var(--line);
}
.casa-theme .nav-contact,
.casa-theme .menu-toggle {
  border-color: var(--line);
}
.casa-theme .parent-brand {
  font-size: 0.75rem;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}
.casa-theme .site-footer {
  background: transparent;
}
.casa-theme .site-footer p {
  color: var(--muted);
}
.casa-button {
  background: #80622c;
  color: #fffaf1;
  border: 1px solid #80622c;
  padding: 15px 22px;
}
.casa-button:hover {
  background: #674c21;
  color: white;
}
.casa-theme .text-link {
  color: var(--gold);
}
.casa-hero {
  display: grid;
  gap: 34px;
  padding-block: 40px 44px;
}
.casa-hero h1 {
  font: normal clamp(3.05rem, 7vw, 5.7rem) / 1.04 var(--serif);
  letter-spacing: -0.045em;
  max-width: 820px;
  margin: 23px 0;
}
.casa-hero h1 em {
  color: var(--gold);
}
.casa-hero-copy > p:not(.eyebrow) {
  font-size: 1rem;
  max-width: 465px;
  color: var(--muted);
}
.casa-hero .button {
  margin-top: 28px;
}
.casa-hero .text-link {
  display: flex;
  width: fit-content;
  margin-top: 18px;
  font-size: 0.875rem;
}
.casa-hero-visual {
  min-width: 0;
}
.casa-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #e6ddce;
  border: 1px solid #c9b99e;
}
.casa-media .media-placeholder {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 22px 12px;
  border: 1px solid #b9a789;
  background: transparent;
  min-height: 0;
  color: #6e5e45;
  text-align: center;
}
.casa-media .eyebrow {
  font-size: 0.6rem;
}
.casa-media small {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}
.media-cross {
  font: normal 3.5rem var(--serif);
  color: #947a4e;
}
.casa-media > .loaded-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editorial-caption {
  display: block;
  font: italic 1rem var(--serif);
  padding: 15px 0;
  text-align: right;
  color: var(--muted);
}
.casa-theme h2 em {
  color: var(--gold);
}
.casa-theme .section-heading > .section-description {
  color: var(--muted);
}
.casa-theme .section-heading {
  margin-bottom: 28px;
}
.celebration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.celebration-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 15px;
  min-height: 90px;
  border-bottom: 1px solid var(--line);
  padding: 20px 8px;
}
.celebration-card h3 {
  font: normal 1.45rem/1.2 var(--serif);
}
.card-index {
  font-size: 0.7rem;
  color: var(--gold);
}
.celebration-card:hover,
.celebration-card.is-current {
  background: #e8dec9;
}
.casa-identity {
  background: #e8decd;
  margin-block: 10px;
}
.identity-grid {
  display: grid;
  gap: 28px;
}
.identity-grid h2 {
  font: normal clamp(2.3rem, 4.5vw, 4rem) / 1.12 var(--serif);
  letter-spacing: -0.03em;
  margin-top: 20px;
}
.identity-grid > div > p + p {
  margin-top: 16px;
}
.identity-grid .button {
  margin-top: 24px;
}
.creation-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.creation-list li {
  padding: 19px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.creation-list li > span:last-child {
  color: var(--gold);
}
.casa-gallery {
  display: grid;
  gap: 20px;
}
.casa-video-slot {
  position: relative;
  aspect-ratio: 16/9;
  min-height: 200px;
  margin-top: 24px;
  background: #e8dfd1;
  border: 1px solid var(--line);
}
.casa-video-slot .media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  background: transparent;
  color: var(--muted);
  min-height: 0;
}
.casa-video-slot small {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}
.casa-video-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.casa-process {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
}
.casa-process li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.casa-process li > span {
  font-size: 0.75rem;
  color: var(--gold);
}
.casa-process h3 {
  font: normal 1.45rem var(--serif);
  margin-block: 12px;
}
.casa-process p {
  font-size: 0.875rem;
  color: var(--muted);
}
.casa-final {
  background: #e6d9c2;
  text-align: center;
}
.casa-final h2 {
  font: normal clamp(2.5rem, 5vw, 4.7rem) / 1.12 var(--serif);
  letter-spacing: -0.04em;
  margin: 24px auto;
  max-width: 1000px;
}
.casa-final .button {
  margin-top: 28px;
}
.casa-theme .case-placeholder {
  background: #eee6d9;
}
.casa-theme .case-steps {
  gap: 22px;
}
.casa-theme .case-steps h3 {
  font-size: 1.4rem;
}
/* Campos comuns, visual Casa e seleção múltipla sem bibliotecas. */
.casa-theme .form-surface {
  background: #fbf8f1;
}
.casa-theme input,
.casa-theme textarea,
.casa-theme select {
  background: #fffdf8;
  color: var(--text);
  border-color: #a99a81;
  color-scheme: light;
}
.casa-theme input::placeholder,
.casa-theme textarea::placeholder {
  color: #786e60;
}
.casa-theme input[type="file"]::file-selector-button {
  background: #e6dccb;
  color: var(--text);
  border-color: #a99a81;
}
.casa-theme .local-notice {
  background: #eee4d0;
  color: #665122;
}
.casa-theme .field-error {
  color: #9d2a20;
}
.casa-theme .error-summary {
  border-color: #a7483e;
  color: #842c24;
}
.casa-theme .form-intro h1 {
  font-size: clamp(2.9rem, 5vw, 4.3rem);
}
.interest-fieldset > legend {
  font: normal 0.9375rem var(--sans);
  padding-bottom: 8px;
}
.interest-grid {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.interest-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 0.8125rem;
  min-height: 48px;
  cursor: pointer;
}
.interest-option:has(input:checked) {
  background: #e9ddc8;
  border-color: var(--gold);
}
.interest-option input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}
.interest-fieldset {
  margin-bottom: 24px;
}
.case-card {
  padding: 28px;
  border: 1px solid var(--line);
}
.case-card h4 {
  margin-bottom: 8px;
}
.case-card p {
  color: var(--muted);
}
@media (min-width: 760px) {
  .section {
    padding-block: 60px;
  }
  .casa-entry {
    grid-template-columns: 1.1fr 1fr;
  }
  .casa-entry-copy {
    padding: 42px;
  }
  .casa-editorial-placeholder {
    min-height: 400px;
  }
  .casa-hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 46px;
    align-items: center;
    padding-block: 50px;
  }
  .celebration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .identity-grid,
  .project-entry {
    grid-template-columns: 1fr 1fr;
    gap: 55px;
  }
  .creation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
  .casa-gallery {
    grid-template-columns: 1.25fr 0.8fr;
    align-items: start;
    gap: 32px;
  }
  .casa-gallery .casa-media:nth-child(2) {
    margin-top: 70px;
  }
  .casa-gallery .wide {
    aspect-ratio: 5/4;
  }
  .casa-process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .casa-theme .form-layout {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 38px;
  }
  .casa-hero h1 {
    font-size: clamp(3.1rem, 6vw, 5.6rem);
  }
}
@media (min-width: 1100px) {
  .casa-entry-copy {
    padding: 56px;
  }
  .casa-editorial-placeholder {
    padding: 38px;
  }
  .casa-hero {
    gap: 80px;
  }
  .casa-process {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .celebration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .casa-theme .form-layout {
    gap: 60px;
  }
  .contact-dock {
    right: 22px;
    bottom: 20px;
  }
  .site-header nav {
    gap: 28px;
  }
}
@media (max-width: 759px) {
  .site-header nav {
    background: var(--bg);
  }
  .form-intro {
    position: static;
  }
  .form-layout {
    padding-block: 28px 40px;
    gap: 24px;
  }
  .casa-entry-copy {
    padding: 30px 24px;
  }
  .hero-carousel {
    aspect-ratio: 4/5.2 !important;
  }
  .casa-theme .form-surface {
    padding: 20px;
  }
  .casa-theme .section-description {
    font-size: 1rem;
  }
  .case-steps {
    gap: 22px;
  }
  .contact-dock button,
  .contact-dock a {
    font-size: 0.7rem;
    padding: 8px 12px;
  }
  .casa-theme .form-intro > p {
    font-size: 0.9375rem;
  }
  .section-heading > .section-description {
    padding-left: 14px;
  }
  .gallery-feature .media-slot {
    min-height: 290px;
  }
}
@media (max-width: 380px) {
  .casa-theme .form-surface {
    padding: 16px;
  }
  .casa-wordmark {
    font-size: 1.05rem;
  }
  .casa-hero h1 {
    font-size: 3rem;
  }
  .casa-process {
    gap: 18px;
  }
  .casa-process h3 {
    font-size: 1.25rem;
  }
  .interest-option {
    padding: 10px;
  }
  .casa-hero .button {
    padding-inline: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .carousel-slide {
    transition: none;
  }
}

/* Foto real no destaque Casa Áurea da home */
.casa-editorial-placeholder.has-photo {
  background:
    linear-gradient(180deg, rgba(20, 16, 10, 0.1) 30%, rgba(20, 16, 10, 0.62)),
    url("/assets/fotos/livro-agradecimento-personalizado-800.webp") center 40% / cover;
  color: #f7f1e6;
  min-height: 420px;
}
.casa-editorial-placeholder.has-photo em { color: #e9d3a4; }
.casa-editorial-placeholder.has-photo > p { visibility: hidden; }

/* WhatsApp flutuante — maior e reconhecível */
.contact-dock button, .contact-dock a,
.contact-dock button:hover, .contact-dock a:hover {
  min-height: 56px !important;
  padding: 12px 22px 12px 16px !important;
  font-size: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--gold) !important;
  color: #151615 !important;
  border: 0 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45) !important;
  display: inline-flex; align-items: center; gap: 10px !important;
  text-decoration: none;
}
.casa-theme .contact-dock a, .casa-theme .contact-dock button { background: #80622c !important; color: #fff !important; }
.wa-svg { width: 26px; height: 26px; flex: 0 0 auto; }
