/* =========================
   VARIÁVEIS
========================= */
:root {
  --primary: #ff7a00;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #121212;
  --bg: #f4f6f9;
  --radius: 16px;
}

/* =========================
   RESET ESSENCIAL
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* impede corte lateral */
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  background: url("https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4") center / cover no-repeat;
  color: #fff;
  padding: 40px 0 30px;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-text {
  text-align: center;
}

.hero-media {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
  width: 100%;
}

.live-badge {
  background: red;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.radio-player {
  background: rgba(0,0,0,.55);
  padding: 15px 20px;
  border-radius: 12px;
  max-width: 420px;
}

.radio-player audio {
  width: 100%;
}

/* =========================
   SEÇÕES
========================= */
.section {
  padding: 40px 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 30px;
}

/* =========================
   CARROSSEL
========================= */
.carousel-item img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.carousel-indicators button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* =========================
   CARDS
========================= */
.card-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 12px;
  height: 100%;
}

/* =========================
   NOTÍCIAS
========================= */
.news-feature img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

.news-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item img,
.news-list-item video {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-date {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

/* =========================
   EVENTOS
========================= */
.event-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card img {
  width: 100%;
  object-fit: contain;
}

.event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================
   BOTÃO WHATSAPP (FIX DEFINITIVO)
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px; /* entra mais para dentro da tela */
  width: 56px;
  height: 56px;

  background: #25d366;
  color: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  line-height: 1;
  text-decoration: none;

  box-shadow: 0 8px 25px rgba(0,0,0,.3);
  z-index: 9999;
}

.whatsapp-float i {
  text-decoration: none; /* remove traço do ícone */
}

.whatsapp-float:hover {
  transform: scale(1.05);
  color: #fff;
}

/* =========================
   FOOTER (SEM CORTES)
========================= */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 50px 0 80px; /* espaço extra p/ WhatsApp */
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Texto do footer */
.footer-copy p {
  margin: 0 0 8px;
}

/* Desenvolvedor */
.developer-name {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.developer-name:hover {
  color: #ffb066;
}

/* Redes sociais */
.footer-social {
  margin-top: 15px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 6px;
  border-radius: 50%;
  background: #1f1f1f;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
  .hero-content {
    padding: 70px 15px;
    text-align: center;
  }

  footer {
    padding-bottom: 100px; /* garante espaço no mobile */
  }
}

/* =========================
   RESPONSIVO ADICIONAL
========================= */
@media (max-width: 768px) {
  .hero-content {
    padding: 40px 15px;
    text-align: center;
    flex-direction: column;
  }
  
  .hero-media {
    flex-direction: column;
    gap: 20px;
  }
  
  footer {
    padding-bottom: 100px; /* garante espaço no mobile */
  }
  
  .sermon-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .lesson-item .btn {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .notice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .pastoral-card {
    margin-bottom: 20px;
  }
  
  .tour-360-container {
    height: 250px; /* altura reduzida no mobile */
  }
  
  .tour-overlay {
    padding: 15px; /* padding reduzido no mobile */
  }
  
  .tour-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .tour-controls .btn {
    width: 100%; /* botões largura total no mobile */
  }
}

/* =========================
   ESTILOS DAS NOVAS FUNCIONALIDADES
========================= */

/* BANNERS */
.mass-booking-banner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mass-booking-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--primary);
}

.baptism-banner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baptism-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--primary);
}

.mass-item {
  padding: 10px 0;
}

.mass-schedule .badge {
  font-size: 12px;
}

/* TRANSMISSÕES AO VIVO */
.live-indicator {
  display: flex;
  align-items: center;
}

.live-badge {
  background: red;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  animation: none;
}

.live-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.live-active h4 {
  color: var(--primary);
  font-weight: 700;
}

.live-schedule .live-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.live-schedule .live-item:last-child {
  border-bottom: none;
}

/* HOMILIAS */
.sermon-card {
  text-align: center;
}

.sermon-date {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
}

.sermon-actions {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* SACRAMENTOS */
.baptism-banner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baptism-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(111, 66, 193, 0.3);
}

.confession-schedule .confession-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.confession-schedule .confession-item:last-child {
  border-bottom: none;
}

/* CATEQUESE */
.catechist-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.catechist-item:last-child {
  border-bottom: none;
}

.lesson-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item .btn {
  margin-right: 8px;
}

/* PASTORAIS */
.pastoral-card {
  text-align: center;
}

.pastoral-icon {
  margin-bottom: 15px;
}

/* DÍZIMO */
.progress-item {
  margin-bottom: 20px;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
}

.progress-bar {
  border-radius: 4px;
}

/* MURAL DE RECADOS */
.notice-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notice-date {
  font-size: 12px;
  color: #888;
}

.notice-category {
  font-size: 11px;
}

.category-filters .btn {
  margin-bottom: 8px;
}

/* SANTO DO DIA */
.saint-prayer {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.saint-prayer .italic {
  font-style: italic;
}

.liturgy-section .liturgy-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.liturgy-section .liturgy-item:last-child {
  border-bottom: none;
}

/* TOUR VIRTUAL */
.tour-placeholder {
  min-height: 300px;
}

.tour-360.hero-content {
  position: relative;
  z-index: 2;
}

.tour-360-container {
  overflow: hidden;
  border-radius: 8px;
}

.tour-image {
  transition: transform 0.5s ease;
}

.tour-video {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-indicator, .image-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-indicator {
  background: var(--danger);
  color: white;
}

.image-indicator {
  background: var(--info);
  color: white;
}

.tour-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 20px;
  color: white;
}

.tour-info h5 {
  margin-bottom: 5px;
  font-weight: 600;
}

.tour-info p {
  margin: 0;
  font-size: 14px;
}

.tour-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.tour-controls .btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tour-controls .btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.tour-controls span {
  font-size: 14px;
  font-weight: 500;
}

/* ANIMAÇÕES E TRANSIÇÕES */

/* ANIMAÇÕES E TRANSIÇÕES */
/* =========================
   ESTILOS DA LOGO
========================= */
.hero-content .img-fluid {
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* =========================
   RESPONSIVO ADICIONAL
========================= */

.card-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* ESTADOS DE FOCO */
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* MELHORIAS DE ACESSIBILIDADE */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* PERFORMANCE OTIMIZADA */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* IMPRESSÃO OTIMIZADA */
@media print {
  .navbar,
  .whatsapp-float,
  .btn:not(.btn-print),
  footer {
    display: none !important;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .card-box {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
