/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   ========================================================================== */
:root {
  --primary-color: #c99658; /* Dourado/Caramelo do design */
  --primary-hover: #b58245;
  --text-dark: #333333;
  --text-light: #777777;
  --bg-light: #fbfbfc;
  --white: #ffffff;
  --youtube-red: #ff0000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  padding: 0 40px;
}

/* ==========================================================================
   2. CABEÇALHO (HEADER) E NAVEGAÇÃO
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  background: var(--bg-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 1.3;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
}

.social-icons a {
  color: var(--text-dark);
  margin-left: 15px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   3. BOTÕES GLOBAIS
   ========================================================================== */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.3s,
    transform 0.3s;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-secondary:hover {
  background-color: #f8f8f8;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ==========================================================================
   4. HERO SECTION (Destaque Principal)
   ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.tag {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #222;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 400px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 70%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   5. BARRA DE ESTATÍSTICAS
   ========================================================================== */
.stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.stat-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0px 50px;
}

.stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.stat-item strong,
.stat-number {
  display: block;
  font-size: 1.2rem;
}

.stat-item span,
.stat-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==========================================================================
   6. SEÇÃO DE ÁLBUNS E CARDS (DRIVE)
   ========================================================================== */
.albuns-section {
  padding: 80px 20px;
}

.albuns-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.albuns-header h2 {
  font-size: 2rem;
  color: #222;
}

/* ==========================================================================
   FILTROS DE ÁLBUNS (BOTOES PÍLULA)
   ========================================================================== */
.filtros-albuns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.btn-filtro {
  background-color: var(--white);
  color: var(--text-light);
  border: 2px solid #eaeaea;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-filtro:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-filtro.ativo {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(201, 150, 88, 0.3);
}

.loading-msg {
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--text-light);
}

.grid-albuns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.container-ver-mais {
  text-align: center;
  margin-top: 40px;
}

.card-album {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-album:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-album:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.badge-fotos {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.card-content {
  padding: 25px;
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.card-content h3 {
  margin: 10px 0 20px 0;
  font-size: 1.2rem;
}

.btn-abrir {
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.btn-abrir:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   8. SEÇÃO DE VÍDEOS (YOUTUBE) E CARROSSEL
   ========================================================================== */
.videos-galeria {
  padding: 50px 0;
  background-color: var(--bg-light);
}

.titulo-sessao {
  text-align: center;
  font-size: 2.2rem;
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.titulo-sessao::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 0 20px 0;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.card-video {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-video:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000;
}

.thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-overlay i {
  font-size: 3.5rem;
  color: var(--white);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.card-video:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.card-video:hover .play-overlay i {
  color: var(--youtube-red);
  transform: scale(1.15);
}

.video-info {
  padding: 15px 20px;
}

.video-info h3 {
  font-size: 1rem;
  color: #0f0f0f;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   9. BANNER CALL TO ACTION E RODAPÉ
   ========================================================================== */
.cta-banner {
  background-color: var(--primary-color);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 80px;
}

.cta-text {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.cta-text h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

footer {
  background: var(--white);
  padding: 60px 0 20px 0;
  border-top: 1px solid #eaeaea;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-links a,
.footer-contact p {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ==========================================================================
   GALERIA DE FOTOS INTERNA (ESTILO PINTEREST / MASONRY)
   ========================================================================== */
.grid-fotos-internas {
  column-count: 4; /* Cria 4 colunas verticais */
  column-gap: 15px; /* Espaço entre as colunas */
  width: 100%;
}

.grid-fotos-internas img {
  width: 100%;
  height: auto; /* O SEGREDO: Deixa a foto respeitar o tamanho vertical/horizontal original */
  margin-bottom: 15px; /* Espaço embaixo de cada foto */
  display: block;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.grid-fotos-internas img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Deixa responsivo para telas menores */
@media (max-width: 1024px) {
  .grid-fotos-internas {
    column-count: 3;
  }
}
@media (max-width: 768px) {
  .grid-fotos-internas {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .grid-fotos-internas {
    column-count: 1;
  }
}

/* ==========================================================================
   LIGHTBOX IMERSIVO (TELA CHEIA)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px); /* Efeito de vidro super elegante */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    transparent 100%
  );
}

#lightbox-counter {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.lightbox-actions {
  display: flex;
  gap: 25px;
  align-items: center;
}

.btn-download {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-download:hover {
  background: #fff;
  color: #000;
}

.fechar-lightbox {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.fechar-lightbox:hover {
  transform: scale(1.2) rotate(90deg);
  color: var(--primary-color);
}

.btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}
.btn-prev {
  left: 30px;
}
.btn-next {
  right: 30px;
}

.lightbox-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* A base da animação JavaScript: */
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Classes controladas pelo JavaScript para o efeito de deslizar */
.img-escondida-direita {
  opacity: 0;
  transform: translateX(50px) scale(0.95);
}
.img-escondida-esquerda {
  opacity: 0;
  transform: translateX(-50px) scale(0.95);
}

/* Ajustes no Lightbox para Celular */
@media (max-width: 768px) {
  .lightbox-top-bar {
    padding: 15px 20px;
  }
  .txt-download {
    display: none;
  }
  .btn-download {
    width: 45px;
    height: 45px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
  .fechar-lightbox {
    font-size: 1.8rem;
  }
  .btn-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  .btn-prev {
    left: 10px;
  }
  .btn-next {
    right: 10px;
  }
}

/* ==========================================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================================== */
#btn-voltar-topo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

#btn-voltar-topo.mostrar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#btn-voltar-topo:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
}

/* Ajuste para não atrapalhar a navegação no telemóvel */
@media (max-width: 768px) {
  #btn-voltar-topo {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ==========================================================================
   11. RESPONSIVIDADE GERAL (CELULARES E TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
  .container-fluid {
    padding: 0 20px;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    margin: 0 auto 30px auto;
  }

  /* Estatísticas em Celular */
  .estatisticas {
    padding: 30px 0;
  }

  .stat-container {
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    padding: 10px;
    margin: 0;
  }

  .stat-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
  }
  .stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
  }

  /* Álbuns em Celular */
  .albuns-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Vídeos em Celular */
  .carousel-btn {
    display: none;
  }

  /* Banner e Rodapé em Celular */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .cta-text {
    flex-direction: column;
  }

  /* Modais em Celular */
  .modal-content {
    padding: 30px 20px;
  }
  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    flex-direction: column;
    gap: 20px;
  }

  .img-sobre {
    width: 100%;
    max-height: 300px;
  }

  .modal-texto {
    width: 100%;
  }

  /* Lightbox em Celular */
  .fechar-lightbox {
    top: 15px;
    right: 20px;
    font-size: 2rem;
  }

  .btn-download {
    top: 18px;
    right: 65px;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .txt-download {
    display: none;
  }

  .btn-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .btn-prev {
    left: 10px;
  }
  .btn-next {
    right: 10px;
  }
}
