:root {
  --color-green-dark: #387f22;
  --color-green: #AAC737;
  --color-green-moss: #A4C130;
  --color-green-bright: #a7d326;
  --color-green-deep: #2f711d;
  --color-yellow: #ffbf0b;
  --color-yellow-soft: #fff2b0;
  --color-text: #292929;
  --color-muted: #68656b;
  --color-soft: #f2f2ef;
  --color-blue: #86bdea;
  --shadow-soft: 0 1rem 2rem rgba(37, 35, 42, 0.12);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-pill: 999rem;
}

/* Global */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--color-text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  overflow-x: hidden;
}

header {
  text-align: center;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.quebra-linha {
    display: inline-block;
}

.mobile-shell {
  max-width: 98%;
}

.section-space {
  padding-block: 2.1rem;
}

.marker-underline {
  background-image: linear-gradient(var(--color-green), var(--color-green));
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 100% 0.15em;
}

.marker-line {
  background-image: linear-gradient(var(--color-green), var(--color-green));
  background-position: 0 75%;
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
}

.marker-line-light {
  background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75));
}

.section-heading h2,
.section-heading h3 {
  margin-bottom: 0.5em;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  color: #292929;
  font-size: clamp(1.5rem, 8vw, 2.05rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: 0;
}

.heading-with-icon {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.heading-icon {
  display: inline;
  flex: 0 0 auto;
  width: 2.7rem;
  margin-top: 0.2rem;
  margin-right: 8%;
}

.heading-icon-dark {
  background: var(--color-text);
  color: var(--color-green-bright);
}

.btn-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  min-height: 2.45rem;
  padding: 0.72rem 1.35rem;
  border: 0;
  border-radius: var(--radius-pill);
  border: 0.1em solid #fff;
  background: var(--color-yellow);
  color: #4E3A00;
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0.55rem 1.2rem rgba(255, 191, 11, 0.32);
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-yellow);
  z-index: -1;
  animation: cta-pulse 2s ease-out infinite;
}

@keyframes cta-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.2); }
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: #ffd044;
  color: #201f1b;
}

.btn-cta img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  aspect-ratio: 1;
}

.btn-cta-wide,
.btn-cta-block {
  width: 100%;
}

/* Header */
.site-header {
  position: relative;
  padding-top: 1.25rem;
  padding-bottom: 2.7rem;
  background: #fff;
}

.brand-logo {
  display: inline;
  width: 35%;
}

.intro-title {
  color: #292929;
  padding-top: 2rem;
  margin-bottom: 0;
  font-size: 3em;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Hero */
.hero-section {
  padding-top: 0.35rem;
  margin: 0 1em;
  background-image: url('../img/banner_familia_vertical.png');
  background-size: cover;
  background-position: center top;
  border-radius: 1em;
  min-height: 54em;
  display: flex;
  flex-direction: column;
}

.hero-section > .container {
  display: block;
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::after,
.service-panel::after,
.history-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-panel picture,
.hero-panel > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-panel > picture img {
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  min-height: 54em;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1rem 2rem;
}

.hero-copy {
  margin-inline: auto;
  color: #fff;
}

.hero-copy p {
  margin: 0;
  font-weight: 400;
  font-size: 1.5em;
}

.hero-actions {
  display: grid;
  margin-top: auto;
  gap: 0.8rem;
}

.hero-actions .btn-cta:first-child {
  
  margin-inline: auto;
}

.care-card {
  width: 100%;
  margin-inline: auto;
  padding: 1.5em;
  border: 0.1em solid #fff;
  border-radius: var(--radius-md);
  background: rgba(28, 28, 28, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.care-card-title {
  text-align: left;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 0.95;
}

.care-card-content {
  font-weight: 200;
  font-size: 1.2em;
  color: #fff;
}

.reasons {
  width: 100%;
  margin-bottom: 1em;
}

.reason-stack {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.85rem;
  width: 100%;
  margin: -1.35rem auto 0;
  padding-inline: 1rem;
}

.reason-card {
  position: relative;
  min-height: 5.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  line-height: 1.02;
  align-content: center;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reason-card p {
  margin: 0;
}

.reason-card > img:not(.reason-icon-left):not(.reason-icon-right) {
  flex-shrink: 0;
}

.reason-card-light {
  background-color: #fff;
  background-image: 
    linear-gradient(to right, rgba(168, 207, 45, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 207, 45, 0.08) 1px, transparent 1px);
  background-size: 1.5em 1.5em;
  width: 50%;
  padding: 1.45rem 1rem 0.8rem;
  border: 1px solid var(--color-green);
  color: var(--color-green);
  text-align: center;
}

.reason-card-light::after {
  content: url('../img/svg/seta-curva.svg');
  position: absolute;
  right: -1.5rem;
  bottom: 1rem;
  width: 1rem;
  height: 2rem;
}

.reason-card-green {
  width: 100%;
  margin-left: auto;
  padding: 1.25rem 1rem;
  background-color: var(--color-green-moss);
  background-image:
    linear-gradient(to right, rgb(99, 117, 28, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(99, 117, 28, 0.08) 1px, transparent 1px);
  background-size: 1.5em 1.5em;
  border: 0.1em solid var(--color-green-moss);
  color: #fff;
  text-align: center;
}

.reason-icon-left {
  position: absolute;
  top: -0.3rem;
  left: -0.35rem;
  width: 1.6rem;
}

.reason-icon-right {
  position: absolute;
  top: -0.3rem;
  right: -0.35rem;
  width: 1.6rem;
}

/* Depoimentos */
.testimonial-section {
  padding-top: 1.6rem;
}

.testimonial-card {
  width: 80%;
  height: 13rem;
  margin-top: 3rem;
  margin-inline: auto;
  padding: 1.8rem 1rem 2rem 0rem;
  border: 1px solid var(--color-green);
  border-radius: var(--radius-sm);
  background: #fff;
  position: relative;
  overflow: visible;
}

.testimonial-card-person {
  position: absolute;
  top: 0;
  transform: translate(-10%, -45%);
  left: 0;
}

.testimonial-avatar {
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.testimonial-card h3 {
  margin: 0;
  margin-top: 1.5em;
  color: #292929;
  background-color: #FFF;
  font-size: 1rem;
  font-weight: 700;
}

.testimonial-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.72rem;
}

.stars {
  color: var(--color-yellow);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.testimonial-card blockquote {
  position: relative;
  width: 100%;
  margin: 1.1rem 0 0.85rem 0;
  text-align: justify;
  color: #292929;
  margin: 1em;
  padding: 1em;
  font-size: 0.72rem;
  line-height: 1.3;
}

.carousel-nav-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  bottom: 0.1rem;
  width: 100%;
}

.carousel-control-custom {
  border: none;
  background: transparent;
  color: #777;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}

.carousel-indicators-custom {
  position: static;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-indicators-custom [data-bs-target] {
  width: 1rem;
  height: 1rem;
  border: none;
  border-radius: 50%;
  background-color: #eee;
  opacity: 1;
  padding: 0;
  margin: 0;
}

.carousel-indicators-custom .active {
  background-color: #a4c130;
}

/* Benefícios */
.budget-section {
  padding-top: 0.9rem;
  margin-bottom: 1em;
  background: url('../img/background_cinza.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.timeline-card {
  position: relative;
  width: 100%;
  min-height: 20rem;
  max-width: 23rem;
  margin-inline: auto;
  padding-left: 2.15rem;
}

.benefit-timeline {
  position: relative;
  margin-top: 1em;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
  padding-left: 2.15rem;
}

.timeline-steps {
  position: relative;
}

.timeline-steps::before,
.benefit-timeline::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 0.28rem;
  border-radius: var(--radius-pill);
  background: #dededb;
}

.timeline-steps::before {
  left: -1.37rem;
}

.benefit-timeline::before {
  left: 0.78rem;
}

.timeline-step {
  position: relative;
  padding-bottom: 1.05rem;
}

.timeline-number {
  position: absolute;
  top: 0.2rem;
  left: -2.15rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.timeline-step:not(.active) .timeline-number {
  background: #eef6d3;
  color: var(--color-green-bright);
}

.timeline-segment-fill {
  position: absolute;
  left: -1.37rem;
  top: 1.85rem;
  bottom: 0;
  width: 0.28rem;
  border-radius: var(--radius-pill);
  background: var(--color-green-bright);
  z-index: 1;
  transform: scaleY(0);
  transform-origin: top;
  transition: none;
}

.timeline-step.active .timeline-segment-fill {
  transform: scaleY(1);
  transition: transform 5s linear;
}


.timeline-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding-top: 0;
}

.timeline-step.active .timeline-body {
  max-height: 30rem;
  padding-top: 0.2rem;
}


.timeline-body p {
  max-width: 20rem;
  margin: 0 0 0.9rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 1s ease 0.35s, transform 0.6s ease 0.35s;
}

.timeline-step.active .timeline-body p {
  opacity: 1;
  transform: translateX(0);
}

.timeline-body strong {
  color: var(--color-text);
  font-weight: 800;
}

.timeline-body img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* Atendimento */
.service-section {
  background: url('../img/atendimento.png');
  background-repeat: no-repeat;
  background-position: center top;
  border-radius: 1em;
  margin: 0 1em;
  background-size: cover;
  padding-top: 0.1rem;
}

.service-panel {
  position: relative;
  width: 100%;
  max-width: 23rem;
  min-height: 32rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-panel::after {
  background: none;
}

.service-copy {
  position: relative;
  z-index: 2;
  margin: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-copy h2 {
  margin: 0 0 1.1rem;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.08;
}

.service-copy h2 span {
  color: var(--color-green);
  font-weight: 800;
}

.service-copy p {
  max-width: 18rem;
  margin: 0;
  padding-left: 0.75rem;
  border-left: 0.28rem solid var(--color-green);
  color: #292929;
  font-size: 0.98rem;
  line-height: 1.2;
}

/* Família */
.ease-section {
  padding-top: 1.4rem;
}

.ease-section .container {
  position: relative;
  z-index: 1;
}

.ease-title {
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.55rem, 7vw, 2.05rem);
  font-weight: 500;
  line-height: 1.02;
}

.ease-image-wrap {
  position: relative;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
}

.ease-image-wrap-desktop {
  position: relative;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
}

.ease-image-wrap img {
  width: 75%;
  border-radius: var(--radius-sm);
}

.ease-image-wrap-desktop img {
  width: 75%;
  transition: opacity 0.3s ease;
}

.ease-image-wrap-desktop .img-branca {
  position: absolute;
  opacity: 0;
}

.benefit-card-desktop:hover .img-colorida {
  opacity: 0;
}

.benefit-card-desktop:hover .img-branca {
  opacity: 1;
}

.ease-tags {
  position: absolute;
  top: 1.4rem;
  right: 0;
  display: grid;
  gap: 0.8rem;
  width: 40%;
}

.ease-tags span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.6rem;
  padding: 1.2em;
  border-radius: var(--radius-sm);
  background: var(--color-green);
  color: #fff;
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.05;
}

.ease-tags i {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-15%, -15%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-green);
  font-size: 1.2rem;
  font-style: normal;
}

.focus-card {
  position: relative;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.focus-card > img {
  width: 100%;
}

.focus-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.focus-card p {
  position: absolute;
  z-index: 2;
  left: 0.9rem;
  bottom: 0.9rem;
  width: min(45%, 13rem);
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.focus-card p img {
  width: 1.625rem;
}

.ease-section .btn-cta-block {
  width: 100%;
  max-width: 23rem;
  margin: 1.1rem auto 0;
}

/* Saúde */
.health-section {
  position: relative;
  overflow: hidden;
  background: url('../img/svg/background_logo_pax.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.health-section-desktop {
  position: relative;
  overflow: hidden;
  background: url('../img/svg/background_logo_pax.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.health-intro {
  position: relative;
  z-index: 1;
  text-align: center;
}

.health-intro > p {
  margin: 0 0 0.4rem;
  color: var(--color-text);
  font-size: 1.2rem;
}

.health-intro h2 {
  margin: 0 0 2rem;
  color: var(--color-green);
  font-size: clamp(1.8rem, 8.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.02;
}

.health-intro .section-heading {
  text-align: left;
}

.health-intro h3 {
  color: #292929;
  font-size: 1.7rem;
  font-weight: 500;
}

.benefit-timeline {
  display: grid;
  gap: 0.75rem;
}

.benefit-card {
  position: relative;
  min-height: 4.7rem;
  padding: 2rem 1rem 0.8rem;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 0.35rem 1rem rgba(37, 35, 42, 0.13);
  transition: min-height 0.35s ease;
}

.benefit-card-desktop {
  position: relative;
  min-height: 4.7rem;
  padding: 2rem 1rem 0.8rem;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 0.35rem 1rem rgba(37, 35, 42, 0.13);
  transition: min-height 0.35s ease;
}

.benefit-card-desktop:hover {
  background: var(--color-green);
}

.benefit-card-desktop:hover .benefit-label-desktop {
  display: none;
}

.benefit-card-desktop:hover p {
  color: #FFF;
}

.benefit-card .timeline-number {
  top: 50%;
  transform: translateY(-50%);
}

.benefit-card .ease-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: 4rem;
  margin: 0;
}

.benefit-card-desktop .ease-image-wrap-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: 4rem;
  margin: 0;
}

.benefit-card .ease-image-wrap img {
  width: auto;
  max-width: 60%;
  max-height: 3.5rem;
  border-radius: 0;
}

.benefit-card-desktop .ease-image-wrap-desktop img {
  width: auto;
  max-width: 60%;
  max-height: 3.5rem;
  border-radius: 0;
}

.benefit-card p {
  width: min(100%, 17rem);
  max-height: 0;
  overflow: hidden;
  margin: 0 auto;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.2s ease, transform 0.2s ease,
              max-height 0.35s ease, margin 0.35s ease;
}

.benefit-card-desktop p {
  width: min(100%, 17rem);
  overflow: hidden;
  margin-top: 0.5em;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  color: #292929;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.benefit-card.active p {
  max-height: 6rem;
  margin: 0.5rem auto 0.3rem;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s,
              max-height 0.35s ease, margin 0.35s ease;
}

.benefit-card.active {
  min-height: 9.1rem;
  background: linear-gradient(180deg, #A8C537, #88AC00);
}

.benefit-label {
  position: absolute;
  left: 0.85rem;
  top: 0.55rem;
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.benefit-label-desktop {
  position: absolute;
  left: 0.85rem;
  top: 0.55rem;
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.benefit-card.active .benefit-label {
  background: rgba(255, 255, 255, 0.28);
}

.benefit-progress-fill {
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: 0.78rem;
  width: 0.28rem;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  z-index: 1;
  transform: scaleY(0);
  transform-origin: top;
}

/* Planos */
.price-section {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background: #fff;
}

.price-card {
  position: relative;
  width: 80%;
  margin-inline: auto;
  padding: 4.2rem 1.35rem 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #A8C537, #88AC00);
  color: #fff;
}

.price-kit {
  position: absolute;
  top: 0;
  right: 0;
  width: 47%;
  transform: translate(15%, -50%);
}

.price-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.02;
}

.price-card > p {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 400;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 17rem);
  min-height: 10rem;
  border-radius: var(--radius-sm);
  background: #F0FBC9;
  color: #346D1E;
  line-height: 1;
  margin-bottom: 2rem;
}

.price-box span:first-child {
  align-self: flex-start;
  margin-top: 2.3rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.price-box strong {
  font-size: clamp(5rem, 25vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
}

.price-box span:last-child {
  font-size: 1.8rem;
  font-weight: 900;
}

.price-box small {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-note {
  width: min(100%, 17rem);
  margin: 2rem 0 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}

.price-section .btn-cta-block {
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
}

/* História */
.history-section {
  overflow: hidden;
  background: url('../img/sede.png');
  background-position: center;
  background-size: cover;
  min-height: 50em;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: stretch;
  position: relative;
}

.history-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
}

.history-section .container {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.history-copy {
  width: 100%;
  margin-inline: auto;
}

.history-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.02;
}

.history-copy p {
  width: 100%;
  margin: 1.15rem auto 1.4rem;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.16;
}

.history-main {
  position: relative;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.history-main::after {
  background:
    radial-gradient(circle at 87% 65%, transparent 0 17%, rgba(255, 255, 255, 0.9) 17.4% 18.7%, transparent 19%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(35, 81, 116, 0.12));
}

/* Gallery Carousel */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 0;
  margin-top: auto;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.gallery-slide {
  flex: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  opacity: 0.6;
  transition: opacity 0.35s;
  outline: none;
}

.gallery-slide:focus-visible {
  border-color: white;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 9em;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
  color: var(--color-text);
  padding: 0;
}

.gallery-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.gallery-btn-prev { left: 0.5rem; }
.gallery-btn-next { right: 0.5rem; }

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.open {
  display: flex;
}

.lightbox-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  line-height: 0;
}

.lightbox-img-wrap img {
  max-width: min(90vw, 900px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0;
  z-index: 10001;
}

.lightbox-close:hover { color: white; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  color: white;
  font-size: 2.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Despedida */
.dignity-section {
  background: #fff;
  background: url('../img/background_cinza.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.dignity-figure {
  width: 100%;
  max-width: 23rem;
  margin: 0 auto;
  text-align: center;
}

.dignity-figure > img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.caption-dignidade {
  margin-top: 1.2rem;
  color: var(--color-text);
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.caption-dignidade-desktop {
  margin-top: 1.2rem;
  color: var(--color-text);
  text-align: left;
  font-size: 1.5rem;
  font-weight: 500;
}

/* Deck Carousel (seção Dignidade) */
.deck-carousel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  overflow: hidden;
}

.deck-btn {
  display: none;
}

.deck-stage {
  position: relative;
  height: 290px;
  overflow: hidden;
  cursor: grab;
}

.deck-stage:active {
  cursor: grabbing;
}

.deck-stage.deck-dragging .deck-card {
  transition: transform 150ms ease-out, opacity 120ms ease-out !important;
}

.deck-stage.deck-dragging .deck-card.deck-out,
.deck-stage.deck-dragging .deck-card.deck-out-left {
  transition: none !important;
}

.deck-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 175px;
  height: 248px;
  margin-top: -124px;
  margin-left: -87.5px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  will-change: transform, opacity;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.45s ease;
  outline: none;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.deck-card:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 4px 18px rgba(0, 0, 0, 0.18);
}

.deck-card.deck-left {
  transform: translateX(-44%) rotate(-9deg) scale(0.87);
  z-index: 1;
  opacity: 0.82;
}

.deck-card.deck-center {
  transform: none;
  z-index: 3;
  opacity: 1;
}

.deck-card.deck-right {
  transform: translateX(44%) rotate(9deg) scale(0.87);
  z-index: 1;
  opacity: 0.82;
}

.deck-card.deck-exiting {
  transform: translateX(-130%) rotate(-14deg) scale(0.72);
  z-index: 0;
  opacity: 0;
}

.deck-card.deck-exit-right {
  transform: translateX(130%) rotate(14deg) scale(0.72);
  z-index: 0;
  opacity: 0;
}

.deck-card.deck-out {
  transform: translateX(130%) rotate(14deg) scale(0.72);
  z-index: 0;
  opacity: 0;
  transition: none;
}

.deck-card.deck-out-left {
  transform: translateX(-130%) rotate(-14deg) scale(0.72);
  z-index: 0;
  opacity: 0;
  transition: none;
}

/* Contato */
.contact-section {
  padding-top: 0.5rem;
}

.contact-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: 100%;
  margin-inline: auto;
  min-height: 30rem;
  padding: 1.9rem 1.35rem;
  border-radius: var(--radius-sm);
  background: #46812B;
  color: #fff;
}

.contact-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.contact-card p {
  max-width: 15rem;
  margin: -0.55rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.contact-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--color-green-dark);
  font-size: 1.8rem;
  font-weight: 900;
}

.contact-card .form-control {
  min-height: 3.2rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: #f2f2f2;
  color: #8f8c91;
  font-size: 1.2rem;
}

.contact-card .form-control::placeholder {
  color: #8f8c91;
}

.contact-card .form-select-city {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238f8c91' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  cursor: pointer;
}

.contact-card .form-select-city option[value=""] {
  color: #8f8c91;
}

.contact-card .btn-cta {
  box-shadow: none;
}

/* Rodapé */
.site-footer {
  padding: 1.8rem 0 2.7rem;
  background: #fff;
  color: var(--color-muted);
  text-align: center;
}

.footer-logo {
  width: min(12rem, 54vw);
  margin-inline: auto;
}

.footer-tagline {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.74rem;
}

.footer-phone {
  display: inline-grid;
  gap: 0.1rem;
  color: var(--color-green-bright);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
}

.footer-phone span {
  display: inline-flex;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.5em;
  border-radius: var(--radius-pill);
  background: var(--color-green-dark);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 200;
}

.footer-legal {
  margin: 2rem 0 0;
  color: #b5b2b7;
  font-size: 0.68rem;
  line-height: 1.45;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

/* Responsividade */
@media (min-width: 576px) {
  .mobile-shell {
    max-width: 28rem;
  }

  .hero-section {
    background-position: center;
  }

  .hero-copy p {
    font-size: 2rem;
  }

  .care-card-title {
    font-size: 2rem;
  }

  .care-card-content {
    font-size: 1.5rem;
  }

  .testimonial-card {
    width: min(100%, 20rem);
  }

  .hero-panel,
  .hero-content {
    min-height: 42rem;
  }
}

@media (max-width: 768px) {
  .btn-cta-desktop {
    display: none;
  }

  .budget-section-desktop-content {
    display: none;
  }
}

@media (max-width: 992px) {
  .show-desktop-only {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-section > .container {
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding-inline: 8rem;
  }

  .hero-section > .container > .row {
    margin-inline: 0;
  }

  .hero-actions .btn-cta-wide {
    width: 80%;
  }

  .section-space {
    padding-block: 3.6rem;
  }

  .brand-logo {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .intro-title {
    display: none;
  }

  .hero-section {
    background-image: url('../img/banner_familia_horizontal_esticado_left.png');
    padding-block: 1rem 2rem;
    background-position: right top;
    min-height: 20em;
    margin: 0 0;
    border-radius: 0;
  }

  .hero-panel,
  .hero-content {
    min-height: 42rem;
  }

  .hero-copy p {
    display: none;
  }

  .reason-card-light {
    width: 60%;
  }

  .reason-card-light::after {
    content: none;
  }

  .budget-section {
    margin-bottom: 0;
  }

  .budget-section-desktop-content {
    max-width: 30rem;
    margin: 15% 0 25% 0.9rem;
    color: var(--color-muted);
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: justify;
  }

  .testimonial-card blockquote {
    font-size: 1rem;
  }

  .testimonial-card h3 {
    font-size: 1.2rem;
  }

  .testimonial-card p {
    font-size: 1rem;
  }

  .history-section {
    background: url('../img/sede_horizontal.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top; 
    min-height: 25em;
  }

  .history-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
  }

  .stars {
    font-size: 1rem;
  }

  .care-card {
    position: absolute;
    transform: translateY(25%);
    top: 0;
    border: none;
    background: none;
  }

  .care-card-title {
    font-size: 2.5rem;
    margin-bottom: 1em;
  }

  .care-card-content {
    font-size: 2rem;
  }

  .care-card h2 {
    font-size: 1.55rem;
  }

  .service-section {
    background: url('../img/atendimento_horizontal.png');
    background-position: center top;
    background-repeat: no-repeat;
    margin: 0 0;
    border-radius: 0;
    background-size: cover;
  }

  .timeline-card,
  .benefit-timeline,
  .service-panel,
  .ease-image-wrap,
  .focus-card,
  .price-card,
  .history-copy,
  .history-main,
  .dignity-figure {
    max-width: 30rem;
  }


  .contact-card {
    padding: 2.4rem;
  }
}

@media (min-width: 992px) {
  .hide-on-desktop-only {
    display: none;
  }

  .site-header {
    width: 100%;
  }

  .hero-section {
    padding-block: 1rem 2rem;
  }

  .hero-panel,
  .hero-content {
    min-height: 42rem;
  }

  .reason-stack {
    margin-top: 0;
    padding-inline: 0;
  }

  .reason-card {
    font-size: 1.5rem;
  }

  .testimonial-card {
    margin-inline: auto;
    width: 85%;
  }

  .budget-section .section-heading h2,
  .dignity-section .section-heading h2 {
    font-size: 2.5rem;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }

  .timeline-card {
    max-width: 39rem;
    min-height: 35rem;
  }

  .timeline-body p {
    font-size: 1.5em;
  }

  .timeline-body img {
    width: 50%;
  }

  .service-panel {
    max-width: none;
    width: 100%;
    min-height: 31rem;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
  }

  .service-panel > img {
    object-position: center;
  }

  .service-copy {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: var(--radius-md);
    padding: 2.5rem;
  }

  .service-copy h2 {
    font-size: 2.5rem;
  }

  .service-copy p {
    margin-top: 3em;
    font-size: 1.5rem;
    max-width: 36rem;
  }

  .ease-title {
    max-width: 38rem;
    font-size: 2.25rem;
    text-align: left;
    margin-left: 0;
    color: #FFF;
  }

  .ease-image-wrap,
  .focus-card {
    max-width: 34rem;
  }

  .focus-card-subtitle-desktop {
    z-index: 2;
    left: 0.9rem;
    bottom: 0.9rem;
    margin-top: 1em;
    color: #FFF;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
  }

  .health-intro {
    text-align: left;
  }

  .benefit-timeline {
    max-width: 38rem;
  }

  .deck-carousel {
    max-width: 30rem;
    overflow: visible;
  }

  .deck-btn {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.2s;
    color: var(--color-text);
    padding: 0;
  }

  .deck-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
  }

  .deck-btn-prev { left: -2.75rem; }
  .deck-btn-next { right: -2.75rem; }

  .deck-stage {
    height: 450px;
  }

  .deck-card {
    height: 350px;
  }

  .price-card {
    max-width: 32rem;
    min-height: 32rem;
    padding-inline: 2rem;
  }

  .price-card h2 {
    max-width: 17rem;
    font-size: 2.2rem;
  }

  .history-copy,
  .history-main {
    max-width: 58rem;
  }

  .gallery-carousel {
    max-width: 60%;
    margin-inline: auto;
  }

  .gallery-slide img {
    width: 100%;
    height: 18em;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }

  .health-section {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
  }

  .health-section-desktop {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
  }

  .ease-section {
    position: relative;
    background-image: url('../img/familia-desktop.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
  }

  .ease-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
  }

  .ease-tags-desktop {
    top: 1.4rem;
    right: 0;
    display: grid;
    width: 30%;
  }

  .ease-tags-desktop span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 3.6rem;
    padding: 1.2em;
    border-radius: var(--radius-sm);
    background: var(--color-green);
    color: #fff;
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1.05;
  }

  .ease-tags-desktop i {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-15%, -15%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-text);
    color: var(--color-green);
    font-size: 1.2rem;
    font-style: normal;
  }
}

@media (min-width: 1200px) {
  .hero-panel,
  .hero-content {
    min-height: 42rem;
  }
}
