/*{
  outline: 1px solid red;
}*/

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

.hero {
  width: 100vw;
  max-width: 100%;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== VARIÁVEIS ===== */
:root {
  --azul-escuro: #0a2540;
  --azul-medio: #1a4a7a;
  --azul-claro: #4da6ff;
  --azul-suave: rgba(255,255,255,0.88);
  --branco: #ffffff;
  --cinza: #666;
}

/* ===== BODY ===== */
body:not(.historia) {
  font-family: 'Lato', sans-serif;
  color: #333;
  background: url('/assets/ceu.jpeg') no-repeat center/cover;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 14px 40px;
  background: rgba(10, 37, 64, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.6s ease, backdrop-filter 0.6s ease, box-shadow 0.6s ease;
}

.navbar.visivel {
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 40px;
  position: relative;
}

.nav-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-container {
  padding-left: 0; /* ← remove padding extra da esquerda */
  padding-right: 0;
}

/* fallback se não tiver logo */
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: white;
  letter-spacing: 2px;
}

/* ===== MENU BTN (HAMBURGUER) ===== */
.menu-btn {
  position: relative;
  height: 27px;
  width: 20px;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.25s ease;
}

.menu-btn:hover {
  opacity: 0.7;
}

.menu-btn span {
  background: white;
  border: none;
  height: 2px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.35s ease;
  cursor: pointer;
  border-radius: 2px;
}

.menu-btn span:nth-of-type(2) {
  top: 8px;
}

.menu-btn span:nth-of-type(3) {
  top: 16px;
}

.menu-btn.active .hamburguer-1 {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.active .hamburguer-2 {
  opacity: 0;
}

.menu-btn.active .hamburguer-3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== OVERLAY FULLSCREEN ===== */
.overlay.open {
  opacity: 1;
  visibility: visible;
  height: 100%;
}

/* ===== MENU LATERAL ===== */
.menu-lateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--azul-escuro);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 60px 40px 40px;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.menu-lateral.open {
  transform: translateX(0);
}

.menu-lateral-fechar {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
}

.menu-lateral-fechar:hover {
  color: white;
  transform: rotate(90deg);
}

.menu-lateral nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-lateral nav ul li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-lateral.open li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.10s; }
.menu-lateral.open li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.15s; }
.menu-lateral.open li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.20s; }
.menu-lateral.open li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.25s; }
.menu-lateral.open li:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.30s; }
.menu-lateral.open li:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.35s; }

.menu-lateral nav ul li a {
  display: block;
  padding: 12px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.3s, padding-left 0.3s;
}

.menu-lateral nav ul li a:hover {
  color: var(--azul-claro);
  padding-left: 8px;
}

.menu-lateral-rodape {
  margin-top: auto;
  opacity: 0.35;
}

.menu-lateral-rodape p {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
}

.menu-lateral-rodape em {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: white;
}

/* ===== BACKDROP ===== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  transform: translateX(-50%);
  height: 1px;
  background: var(--azul-claro);
  transition: width 0.35s ease;
}

.overlay-menu a:hover {
  color: var(--azul-claro);
}

.overlay-menu a:hover::after {
  width: 100%;
}

@keyframes fadeInRight {
  0%   { opacity: 0; left: 20%; }
  100% { opacity: 1; left: 0; }
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  background: url('assets/ceu.jpeg') no-repeat center/cover;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8vw;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 0;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
}

.hero-tag {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeSubir 1s ease forwards;
  animation-delay: 0.2s;
}

.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeSubir 1s ease forwards;
  animation-delay: 0.5s;
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  opacity: 0;
  margin-bottom: 32px;
  animation: fadeSubir 1s ease forwards;
  animation-delay: 0.8s;
  line-height: 1.6;
}

/* BOTÕES HERO */
.hero-botoes {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSubir 1s ease forwards;
  animation-delay: 1.1s;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--azul-claro);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #2e8fe0;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: var(--azul-medio);
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1.5px solid var(--azul-medio);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn-outline:hover {
  background: var(--azul-medio);
  color: white;
  transform: translateY(-2px);
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0.7;
}

.scroll-hint p {
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.wheel {
  width: 3px;
  height: 7px;
  background: white;
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@keyframes fadeSubir {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SEÇÕES ===== */
section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: 40px auto;
  background: var(--azul-suave);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(10,37,64,0.1);
}

/* CABEÇALHO DE SEÇÃO */
.secao-header {
  text-align: center;
  margin-bottom: 40px;
}

.secao-tag {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--azul-claro);
  display: block;
  margin-bottom: 10px;
}

.secao-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--azul-escuro);
  margin-bottom: 12px;
}

.secao-linha {
  width: 50px;
  height: 2px;
  background: var(--azul-claro);
  margin: 12px auto;
}

.secao-desc {
  color: var(--cinza);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== TIMELINE ===== */
.tl-wrap {
  overflow-x: auto;
  padding: 24px 0 16px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tl-wrap::-webkit-scrollbar {
  display: none;
}

.tl-wrap.arrastando {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.tl-wrap.arrastando .tl-item {
  pointer-events: none;
}

.tl-track {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  padding: 0 24px;
}

.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  flex-shrink: 0;
  text-align: center;
  padding: 0 14px;
}

.tl-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--azul-escuro);
  margin-bottom: 14px;
}

.tl-line-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
}

.tl-line {
  flex: 1;
  height: 1px;
  background: rgba(10, 37, 64, 0.12);
}

.tl-heart {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--azul-claro);
  opacity: 0.85;
}

.tl-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--cinza);
}

.tl-text strong {
  color: var(--azul-escuro);
  font-weight: 600;
}

.tl-item:first-child .tl-line:first-child,
.tl-item:last-child .tl-line:last-child {
  background: transparent;
}

/* ===== BANNERS ===== */
.banners-wrap {
  overflow: hidden;
  padding: 8px 0 16px;
  cursor: grab;
}

.banners-wrap::-webkit-scrollbar {
  display: none;
}

.banners-wrap.arrastando {
  cursor: grabbing;
  user-select: none;
}

.banners-wrap.arrastando .banner-item {
  pointer-events: none;
}

.banners-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-item {
  width: 100%;
  height: 320px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .banner-item {
    height: 220px;
  }
}

.banners-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.banners-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--azul-claro);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.3s, width 0.3s;
}

.banners-dots .dot.active {
  opacity: 1;
  width: 24px;
  border-radius: 5px;
}

/* ===== HORÁRIOS ===== */
.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.horario-card {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(10,37,64,0.07);
  border-top: 3px solid var(--azul-claro);
  transition: transform 0.3s, box-shadow 0.3s;
}

.horario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10,37,64,0.12);
}

.horario-card.destaque {
  border-top-color: #7aa2ff;
  background: white;
}

.horario-dia {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-escuro);
}

.horario-hora {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul-claro);
}

.horario-desc {
  font-size: 0.85rem;
  color: var(--cinza);
  line-height: 1.5;
}

/* ===== BAZARES ===== */
.bazar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.bazar-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(10,37,64,0.07);
  transition: transform 0.3s;
}

.bazar-item:hover {
  transform: translateY(-3px);
}

.data-box {
  background: #e8f2ff;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}

.dia {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--azul-escuro);
  line-height: 1;
}

.mes {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--azul-claro);
}

.bazar-info {
  font-size: 0.8rem;
  color: var(--cinza);
}

/* ===== DOAÇÕES ===== */
.doacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.doacao-lista {
  list-style: none;
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(10,37,64,0.07);
}

.doacao-lista li {
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.doacao-lista li i {
  color: var(--azul-claro);
  margin-right: 8px;
  font-size: 0.8rem;
}

.doacao-lista li:last-child {
  border-bottom: none;
}

/* ===== MAPA ===== */
.localizacao-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  align-items: stretch;
}

.localizacao-card {
  background: var(--azul-escuro);
  border-radius: 12px;
  padding: 32px 28px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.localizacao-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: white;
}

.local-tipo {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  margin-top: -14px;
}

.local-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.local-info i {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-top: 3px;
  min-width: 16px;
}

.btn-maps {
  display: inline-block;
  margin-top: auto;
  padding: 10px 18px;
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s;
  text-align: center;
}

.btn-maps:hover {
  background: rgba(255,255,255,0.2);
}

.localizacao-mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
}

/* ===== CONTATO ===== */
.contato-info {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.contato-info p {
  font-size: 1rem;
  color: #444;
}

.contato-info p i {
  color: var(--azul-claro);
  margin-right: 8px;
  width: 16px;
}

.redes-sociais {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.rede-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
  color: white;
}

.rede-btn i {
  font-size: 1.1rem;
  vertical-align: middle;
  line-height: 1;
}

.rede-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.rede-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.rede-btn.whatsapp {
  background: #25d366;
}

.rede-btn.youtube {
  background: #FF0000;
}

/* ===== LIVROS ===== */
/* ===== ESTUDO E REFLEXÃO ===== */
.estudo-bloco {
  margin-top: 40px;
}

.estudo-subtitulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--azul-escuro);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.estudo-subtitulo i {
  color: var(--azul-claro);
  font-size: 1.2rem;
}

/* PALESTRAS */
.palestras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.palestra-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(10,37,64,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.palestra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10,37,64,0.12);
}

.palestra-thumb {
  height: 120px;
  background: var(--azul-escuro);
  position: relative;
  overflow: hidden;
}

.palestra-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.palestra-card:hover .palestra-thumb img {
  transform: scale(1.05);
}

.palestra-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  pointer-events: none;
}

.palestra-info {
  padding: 14px 16px;
}

.palestra-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--azul-escuro);
  margin-bottom: 4px;
}

.palestra-info span {
  font-size: 12px;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TEXTOS PARA REFLEXÃO */
.textos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.texto-card {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(10,37,64,0.07);
  border-left: 3px solid var(--azul-claro);
}

.texto-trecho {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--azul-escuro);
  line-height: 1.6;
}

.texto-fonte {
  font-size: 12px;
  color: var(--cinza);
  letter-spacing: 0.5px;
}

.texto-link {
  font-size: 13px;
  color: var(--azul-claro);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.3s;
}

.texto-link:hover {
  gap: 10px;
}

/* ===== BIBLIOTECA ===== */

.livros-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
  margin-top:40px;
}

.livro-card{
  background:#fff;
  border-radius:20px;
  padding:20px;
  text-align:center;

  box-shadow:0 10px 25px rgba(0,0,0,.08);

  transition:.3s ease;
}

.livro-card:hover{
  transform:translateY(-6px);
}

.livro-card img{
  width:100%;
  height:280px;
  object-fit:contain;
  margin-bottom:15px;
}

.livro-card h3{
  font-size:1rem;
  min-height:50px;
  color:#31594d;
}

.btn-resenha{
  margin-top:10px;
  border:none;
  padding:10px 18px;
  border-radius:30px;
  cursor:pointer;

  background:#d8ece5;
  color:#31594d;

  transition:.3s;
}

.btn-resenha:hover{
  transform:scale(1.05);
}

.modal-livro{
  display:none;
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.55);

  justify-content:center;
  align-items:center;

  z-index:9999;
  padding:20px;
}

.modal-conteudo{
  background:#fff;

  width:100%;
  max-width:700px;

  padding:30px;

  border-radius:20px;

  max-height:80vh;
  overflow-y:auto;
}

.fechar-modal{
  float:right;
  font-size:30px;
  cursor:pointer;
}

#modalTitulo{
  margin-bottom:20px;
  color:#31594d;
}

#modalResenha{
  line-height:1.8;
  color:#555;
}

/* ===== ESCONDER ===== */
.livros-container{
position: relative;
margin-top: 40px;
}

.livros-grid{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 25px;

max-height: 700px;
overflow: hidden;

transition: max-height .8s ease;
}

.livros-grid.expandido{
max-height: 5000px;
}

/* Card do livro */
.livro-card{
background: #fff;
border-radius: 20px;
padding: 20px;
text-align: center;

box-shadow: 0 10px 25px rgba(0,0,0,.08);

transition: .3s ease;
}

.livro-card{
transform: translateY(-6px);
}

.livro-card img{
width: 100%;
height: 280px;
object-fit: contain;
margin-bottom: 15px;
}

.livro-card h3{
font-size: 1rem;
min-height: 50px;
color: #31594d;
margin-bottom: 15px;
}

/* Botão de resenha */
.btn-resenha{
border: none;
padding: 10px 18px;
border-radius: 30px;
cursor: pointer;

background: #d8ece5;
color: #31594d;

transition: .3s;
}

.btn-resenha{
transform: scale(1.05);
}

/* Gradiente indicando mais conteúdo */
.fade-livros{
position: absolute;
left: 0;
right: 0;
bottom: 0;

height: 120px;

background: linear-gradient(
to bottom,
rgba(255,255,255,0),
rgba(255,255,255,1)
);

pointer-events: none;
transition: .4s ease;
}

.fade-livros.oculto{
opacity: 0;
}

/* Botão Ver Mais */
.btn-ver-mais{
display: block;

margin: 35px auto 0;

border: none;
cursor: pointer;

padding: 14px 28px;

border-radius: 999px;

background: #d8ece5;
color: #31594d;

font-size: 1rem;
font-weight: 600;

transition: .3s;
}

.btn-ver-mais{
transform: translateY(-2px);
}

/* Mobile */
@media (max-width:768px){

.livros-grid{
grid-template-columns: repeat(2, 1fr);
gap: 15px;

max-height: 620px;

}

.livro-card{
padding: 15px;
}

.livro-card img{
height: 220px;
}

.livro-card h3{
font-size: .9rem;
}

}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 24px 20px;
  background: rgba(10, 37, 64, 0.85);
  color: rgba(255,255,255,0.7);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.horario-card, .bazar-item, .doacao-lista {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.horario-card.visivel,
.bazar-item.visivel,
.doacao-lista.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVO TABLET ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }

  .localizacao-container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 0 6vw;
    justify-content: center;
    text-align: center;
  }

  .hero-overlay {
    background: rgba(0,0,0,0.6);
  }

  .hero-botoes {
    justify-content: center;
  }

  .doacao-grid {
    grid-template-columns: 1fr;
  }

  section {
    margin: 20px 12px;
    padding: 40px 20px;
  }
}

/* ===== RESPONSIVO MOBILE ===== */
@media (max-width: 480px) {
  .horarios-grid {
    grid-template-columns: 1fr;
  }

  .bazar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sobre-valores {
    gap: 24px;
  }

  .contato-info {
    flex-direction: column;
    align-items: center;
  }

  .redes-sociais {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== CORREÇÃO SAFARI / MOBILE ===== */
@supports (-webkit-touch-callout: none) {
  body:not(.historia) {
    background-attachment: scroll;
  }

  .hero {
    background-attachment: scroll;
    background-position: center center;
  }
}