
:root {
  --bg: #fffdf8;
  --white: #fff;
  --cream: #fbf3df;
  /*--gold: #fabf35;*/
  --gold: #fabf35;  
  --gold-dark: #fabf35;
  --brown: #3b2418;
  --text: #3a2b24;
  --muted: #7b6f68;
  --line: #eadcc4;
  --shadow: 0 18px 50px rgba(91, 61, 30, .10);
  --radius: 22px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat';
  line-height: 1.65
}

img {
  max-width: 100%;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

.container {
  width: min(1180px, 92%);
  margin: auto
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(14px);
  /*border-bottom: 1px solid rgba(232, 165, 27, .16)*/
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 28px
}

.logo img {
  width: 175px;
  height: auto
}

.menu {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 14px;
  font-weight: 700
}

.menu a {
  position: relative
}

.menu a.active,
.menu a:hover {
  color: var(--gold-dark)
}

.menu a.active:after,
.menu a:hover:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 2px;
  background: var(--gold)
}

.btn {
  border: 0;
  background: var(--gold);
  color: white;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(232, 165, 27, .25);
  transition: .25s ease
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-dark)
}

.btn.outline {
  background: white;
  color: var(--brown);
  border: 1px solid var(--gold);
  box-shadow: none
}

.btn.small {
  padding: 10px 18px;
  font-size: 13px
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--brown)
}

.hero {
  position: relative;
  overflow: hidden;
  /*background: linear-gradient(90deg, rgba(255, 253, 248, 1) 0%, rgba(255, 253, 248, .92) 42%, rgba(255, 253, 248, .12) 70%), url('https://images.unsplash.com/photo-1581579438747-104c53d7fbc4?auto=format&fit=crop&w=1600&q=80') center right/cover no-repeat;*/
  min-height: 640px
}

.hero-content {
  padding: 92px 0 120px;
  max-width: 560px
}

.eyebrow {
  color: #fabf35;
  font-weight: 800;
  /*font-family: 'Cinzel Decorative';*/
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .14em
}

h1,
h2,
h3 {
  line-height: 1.13;
  color: var(--brown);
  margin: 0 0 18px;
  font-weight: 900
}

h1 {
  font-size: clamp(38px, 5vw, 70px)
}

h2 {
  font-size: clamp(28px, 3vw, 46px)
}

h3 {
  font-size: 22px
}

.highlight {
  color: var(--gold-dark)
}

.lead {
  font-size: 18px;
  color: #4f3c32;
  max-width: 680px
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px
}

.filter-box {
  position: relative;
  margin-top: -58px;
  z-index: 20;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px
}

.filter-field {
  display: flex;
  gap: 14px;
  align-items: center;
  border-right: 1px solid var(--line);
  padding-right: 18px
}

.filter-field:last-child {
  border-right: 0
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff5da;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-size: 20px;
  flex: none
}

label {
  font-size: 13px;
  font-weight: 800;
  color: var(--brown);
  display: block;
  margin-bottom: 5px
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dccdb6;
  background: transparent;
  padding: 10px 0;
  font-family: inherit;
  outline: none;
  color: var(--text)
}

textarea {
  min-height: 118px;
  resize: vertical;
  border: 1px solid #dccdb6;
  border-radius: 12px;
  padding: 14px;
  background: white
}

.section {
  padding: 84px 0
}

.section.center {
  text-align: center
}

.subtitle {
  color: var(--muted);
  margin-top: -6px
}

.story-carousel {
  position: relative;
  margin-top: 36px
}

.carousel-track {
  display: flex;
  gap: 22px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 6px 2px 20px
}

.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 165, 27, .15)
}

.story-card {
  min-width: 220px;
  flex: 0 0 calc(20% - 18px)
}

.story-card img {
  height: 235px;
  width: 100%;
  object-fit: cover
}

.card-body {
  padding: 18px
}

.meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600
}

.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 0;
  box-shadow: var(--shadow);
  font-size: 26px;
  color: var(--gold-dark);
  cursor: pointer;
  z-index: 2
}

.carousel-arrow.left {
  left: -24px
}

.carousel-arrow.right {
  right: -24px
}

.stats {
  background: linear-gradient(90deg, #f0bf6c, #f0bf6c, #f0bf6c);
  padding: 30px 0;
  margin-top: 20px
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.stat {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(88, 52, 20, .18)
}

.stat:last-child {
  border-right: 0
}

.stat strong {
  font-size: 38px;
  /*font-family: 'Cinzel Decorative';*/
  color: var(--brown);
  line-height: 1
}

.stat span {
  font-size: 13px;
  font-weight: 700
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}

.photo-frame img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  height: 430px;
  width: 100%;
  object-fit: cover
}

.participate {
  background: linear-gradient(90deg, #fff7e8, #fff, #fff1cd);
  border: 1px solid rgba(232, 165, 27, .18);
  border-radius: 20px;
  padding: 34px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow)
}

.participate h3 {
  margin-bottom: 8px
}

.footer {
  /*background: #fffaf0;*/
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding-top: 36px
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 30px
}

.footer-logo {
  width: 145px
}

.footer h4 {
  margin: 0 0 14px;
  color: var(--brown)
}

.footer a,
.footer p {
  display: block;
  color: #5a4a40;
  font-size: 14px;
  margin: 7px 0
}

.social {
  display: flex;
  gap: 10px
}

.social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: white;
  font-weight: 900
}

.copy {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 18px;
  margin-top: 28px;
  font-size: 13px;
  color: #6a5b52
}

.page-hero {
  padding: 70px 0 46px;
  background: linear-gradient(180deg, #fff7e9, #fffdf8)
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px
}

.grid {
  display: grid;
  gap: 26px
}

.stories-grid {
  grid-template-columns: repeat(4, 1fr)
}

.homes-grid {
  grid-template-columns: repeat(4, 1fr)
}

.profile-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 42px;
  align-items: start
}

.profile-main-img {
  border-radius: 18px;
  height: 440px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow)
}

.info-card {
  align-self: start;
  position: sticky;
  top: 120px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
}

.info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px;
  padding: 5px 0;
  border-bottom: 1px solid #f0e5d3;
  font-size: 14px
}

.info-row:last-child {
  border-bottom: 0
}

.quote {
  font-weight: 800;
  color: var(--gold-dark);
  font-size: 18px;
  margin: 20px 0
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px
}

.gallery-grid img {
  height: 135px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: .25s
}

.gallery-grid img:hover {
  transform: scale(1.03);
  filter: brightness(.92)
}

.home-cover {
  height: 360px;
  border-radius: 18px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow)
}

.clinic-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px
}

.residents-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px
}

.resident-mini img {
  height: 145px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0
}

.form-box {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 28px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.form-grid .full {
  grid-column: 1/-1
}

.form-note {
  display: none;
  margin-top: 18px;
  background: #fff4d7;
  color: #5b3b0c;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 17, 14, .9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px
}

.lightbox.open {
  display: flex
}

.lightbox img {
  max-height: 82vh;
  max-width: 82vw;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35)
}

.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .13);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer
}

.lightbox .close {
  top: 24px;
  right: 24px
}

.lightbox .prev {
  left: 28px
}

.lightbox .next {
  right: 28px
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all .8s ease
}

.reveal.from-left {
  transform: translateX(-45px)
}

.reveal.from-right {
  transform: translateX(45px)
}

.reveal.zoom {
  transform: scale(.94)
}

.reveal.visible {
  opacity: 1;
  transform: none
}

@media(max-width:1000px) {
  .menu {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line)
  }

  .menu.open {
    display: flex
  }

  .mobile-toggle {
    display: block
  }

  .filter-box,
  .split,
  .participate,
  .profile-layout,
  .clinic-layout {
    grid-template-columns: 1fr
  }

  .story-card {
    flex-basis: calc(50% - 12px)
  }

  .stats-grid,
  .stories-grid,
  .homes-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .residents-row,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:640px) {
  .nav {
    min-height: 86px
  }

  .logo img {
    width: 120px
  }

  .hero {
    min-height: auto;
    background-position: center
  }

  .hero-content {
    padding: 64px 0 92px
  }

  .filter-box {
    margin-top: -35px
  }

  .stats-grid,
  .footer-grid,
  .stories-grid,
  .homes-grid,
  .form-grid {
    grid-template-columns: 1fr
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(88, 52, 20, .18);
    padding-bottom: 14px
  }

  .story-card {
    flex-basis: 82%
  }

  .carousel-arrow.left {
    left: 0
  }

  .carousel-arrow.right {
    right: 0
  }
}

/* ===== V3 refinements ===== */
body:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:
    radial-gradient(circle at 12% 18%, rgba(232,165,27,.10), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(191,123,7,.08), transparent 28%),
    linear-gradient(180deg,#fffdf8,#fffaf0 55%,#fffdf8);
}
/*.header{box-shadow:0 8px 30px rgba(59,36,24,.05)}*/
.logo img{filter:drop-shadow(0 8px 18px rgba(59,36,24,.08))}
.card{transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease}
.card:hover{transform:translateY(-7px);box-shadow:0 24px 60px rgba(91,61,30,.15);border-color:rgba(232,165,27,.35)}
.story-card strong{display:block;font-size:16px;color:var(--brown);margin-bottom:4px}
.story-card p,.card-body p{color:var(--muted);font-size:14px}
.story-card .btn{margin-top:14px;width:100%}
.participate{position:relative;overflow:hidden}
.participate:after{content:"";position:absolute;right:-70px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(232,165,27,.13)}
.gallery-grid img,.profile-main-img,.home-cover,.photo-frame img{transition:transform .35s ease, filter .35s ease}
.gallery-grid img:hover{transform:scale(1.045);filter:saturate(1.05) brightness(.95)}
.footer{margin-top:30px}
.stories-grid .story-card{min-width:0;flex:initial}
.stories-grid .story-card img{height:270px;width:100%;object-fit:cover}
.homes-grid .card img{display:block}
.home-cover{height:430px}
@media(max-width:640px){.home-cover{height:280px}.stories-grid .story-card img{height:250px}}


/* ===== AJUSTES SOLICITADOS - HERO ESTÁTICA + CARROSSEL + MENU ===== */
.menu{
  text-transform:uppercase;
  font-weight:500;
  letter-spacing:.08em;
  font-size:12px;
}
.menu .btn,
.menu a.btn{
  font-weight:600;
  letter-spacing:.06em;
}
.hero.hero-static{
  background:
    radial-gradient(circle at 78% 32%, rgba(232,165,27,.18), transparent 32%),
    linear-gradient(180deg,#fffdf8 0%,#fff8e9 100%);
  min-height:650px;
  padding:34px 0 72px;
  display:flex;
  align-items:center;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:64px;
  align-items:center;
}
.hero-copy{
  max-width:570px;
}
.hero-copy h1{
  font-size:clamp(40px,5vw,68px);
  line-height:1.05;
  margin:12px 0 20px;
}
.hero-copy .lead{
  font-size:18px;
  line-height:1.8;
  color:#5f493d;
  max-width:570px;
}
.hero-img{
  border-radius:34px;
  overflow:hidden;
  box-shadow:var(--shadow);
  height:560px;
}
.hero-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.story-carousel{
  overflow:visible;
}
.carousel-track{
  min-height:390px;
  display:flex;
  gap:22px;
  overflow-x:hidden;
  overflow-y:visible;
  scroll-behavior:smooth;
  padding:8px 2px 28px;
}
.carousel-track .story-card{
  display:block;
  flex:0 0 calc(20% - 18px);
  min-width:220px;
  opacity:1;
}
.carousel-track .story-card img{
  height:245px;
  width:100%;
  object-fit:cover;
}
.carousel-track .story-card .card-body{
  text-align:left;
}
.carousel-track .story-card.visible{
  opacity:1;
  transform:none;
}
.carousel-arrow{
  z-index:15;
}
@media(max-width:1100px){
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .hero-img{height:430px}
  .carousel-track .story-card{flex-basis:calc(33.33% - 16px)}
}
@media(max-width:760px){
  .hero.hero-static{padding:28px 0 56px}
  .hero-img{height:340px;border-radius:24px}
  .carousel-track .story-card{flex-basis:78%;min-width:250px}
  .menu{font-size:12px}
}



/* ===== ENTRE VIDAS V4 - HERO PREMIUM COM FADE ===== */
.hero.hero-v4-fade{
  position:relative;
  min-height:690px;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding:0;
  background:#fff;
}

.hero-v4-fade .hero-bg-slider{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.hero-v4-fade .hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center right;
  background-repeat:no-repeat;
  opacity:0;
  transform:scale(1.055);
  transition:
    opacity 1.75s ease-in-out,
    transform 7.5s ease;
  will-change:opacity, transform;
}

.hero-v4-fade .hero-bg.is-active{
  opacity:1;
  transform:scale(1);
}

.hero-v4-fade .hero-bg-1{
  background-image:url('../img/seu-carlos.jpg?auto=format&fit=crop&w=1800&q=85?auto=format&fit=crop&w=1800&q=85');
}
.hero-v4-fade .hero-bg-2{
  background-image:url('../img/dona-lourdes.jpg?auto=format&fit=crop&w=1800&q=85?auto=format&fit=crop&w=1800&q=85');
}
.hero-v4-fade .hero-bg-3{
  background-image:url('../img/dona-tereza.jpg?auto=format&fit=crop&w=1800&q=85?auto=format&fit=crop&w=1800&q=85');
}
.hero-v4-fade .hero-bg-4{
  background-image:url('../img/seu-joao.jpg?auto=format&fit=crop&w=1800&q=85?auto=format&fit=crop&w=1800&q=85');
}

.hero.hero-v4-fade:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(255,253,248,1) 0%,
      rgba(255,253,248,.98) 28%,
      rgba(255,253,248,.80) 48%,
      rgba(255,253,248,.34) 72%,
      rgba(255,253,248,.08) 100%),
    radial-gradient(circle at 18% 50%,
      rgba(255,248,229,.92) 0%,
      rgba(255,248,229,.58) 28%,
      rgba(255,248,229,0) 56%);
}

.hero.hero-v4-fade:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:155px;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,253,248,0), var(--bg));
}

.hero-v4-fade .hero-content{
  position:relative;
  z-index:3;
  max-width:540px;
  padding:52px 0 150px;
  margin-left:0;
  /*transform:translateX(-60px);*/
}

.hero-v4-fade .hero-content h1{
  font-size:clamp(32px,5.45vw,60px);
  line-height:1.04;
  letter-spacing:-.035em;
  margin:12px 0 22px;
}

.hero-v4-fade .hero-content .lead{
  max-width:560px;
  font-size:18px;
  line-height:1.45;
  color:#5a4539;
}

.hero-v4-fade .actions{
  margin-top:34px;
}

/* neutraliza hero lateral antiga quando index tiver sobras */
.hero-v4-fade .hero-grid,
.hero-v4-fade .hero-img{
  display:none;
}

.filter-box{
  margin-top:-72px;
}

@media(max-width:1000px){
  .hero.hero-v4-fade{
    min-height:620px;
  }
  .hero-v4-fade .hero-bg{
    background-position:center;
  }
  .hero.hero-v4-fade:before{
    background:
      linear-gradient(90deg,
        rgba(255,253,248,.98) 0%,
        rgba(255,253,248,.94) 54%,
        rgba(255,253,248,.55) 100%);
  }
}

@media(max-width:640px){
  .hero.hero-v4-fade{
    min-height:570px;
  }
  .hero-v4-fade .hero-content{
    padding:76px 0 118px;
  }
  .hero-v4-fade .hero-content h1{
    font-size:clamp(35px,11vw,52px);
  }
  .filter-box{
    margin-top:-42px;
  }
}

/* AJUSTE FINAL HERO - ALINHAR COM A LOGO */
.hero-v4-fade .hero-content{
  width:min(1180px, 92%);
  max-width:1180px;
  margin:0 auto;
  padding:52px 0 150px;
  transform:none;
}

.hero-v4-fade .hero-content h1,
.hero-v4-fade .hero-content .lead,
.hero-v4-fade .hero-content .actions,
.hero-v4-fade .hero-content .eyebrow{
  max-width:600px;
}

.hero-v4-fade .hero-content h1{
  font-size:clamp(36px, 4.4vw, 58px);
}