﻿:root {
  --cor-fundo: #fdf6e3;
  --cor-destaque: #ffd54a;
  --cor-detalhe: #c62828;
  --cor-texto: #2b2b2b;
  --cor-madeira: #3e2416;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
  position: relative;
  isolation: isolate;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(28, 16, 7, 0.95);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 10px 4vw;
  align-items: center;
  z-index: 10;
  border-bottom: 3px solid var(--cor-detalhe);
}

.site-header .logo {
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .logo img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
  padding: 2px;
}

.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

main {
  padding-top: 90px;
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 75vh;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.65)
    ),
    url("img/textura-madeira.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 5vw;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.7) contrast(1.1) brightness(0.6);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 213, 74, 0.2), transparent 60%);
}

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

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 10px;
}

.hero .hero-subtitle {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.hero-figures {
  position: relative;
  display: flex;
  gap: 20px;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.hero-figures img {
  max-height: 220px;
  width: auto;
}

.section {
  padding: 60px 5vw;
}

.section h2 {
  border-left: 6px solid var(--cor-detalhe);
  padding-left: 12px;
  margin-bottom: 30px;
  color: var(--cor-detalhe);
  font-size: 2rem;
}

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

.historia-container .imagem img {
  width: 100%;
  border-radius: 6px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.portfolio-item {
  background: #fff;
  border-radius: 6px;
  padding-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.portfolio-item img {
  width: 100%;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: block;
  height: 220px;
  object-fit: cover;
}

.portfolio-item h3 {
  margin: 10px;
  font-size: 1.2rem;
}

.videos-area {
  margin-top: 40px;
}

.video-note {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

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

.video-card {
  background: #120902;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.video-card iframe {
  width: 100%;
  height: 160px;
  border: none;
  border-radius: 6px;
}

.video-card p {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.videos-vertical-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.vertical-video-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.vertical-frame {
  width: 100%;
  padding-top: 177%; /* 9:16 aspect ratio */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.vertical-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.vertical-video-card p {
  margin-top: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.portfolio-carousel {
  margin-top: 40px;
  position: relative;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px 0;
}

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

.carousel-item {
  min-width: 100%;
  padding: 0 12px;
}

.carousel-item img {
  width: 100%;
  border-radius: 8px;
  height: 200px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(198, 40, 40, 0.85);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-btn:focus {
  outline: 2px solid var(--cor-destaque);
}

.ficha-grupo {
  margin-bottom: 25px;
}

.ficha-grupo h3 {
  margin-bottom: 10px;
}

.ficha-grupo ul {
  list-style: none;
  padding-left: 0;
}

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

.brincante-categoria {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.apresentacoes-lista {
  display: grid;
  gap: 20px;
}

.apresentacao-item {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.galeria-grid img {
  width: 100%;
  border-radius: 6px;
  height: 220px;
  object-fit: cover;
}

.site-footer {
  background: linear-gradient(180deg, #2d1b10, #1a0c05);
  color: #fff;
  padding: 60px 5vw 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

.cultural-objects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.cultural-object {
  position: absolute;
  top: var(--top, 12%);
  left: var(--left, 12%);
  width: var(--size, 140px);
  height: var(--size, 140px);
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.22;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
  animation: drift var(--animation-duration, 30s) ease-in-out infinite,
    culturalGlow 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform-origin: center;
  will-change: transform;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  25% {
    transform: translate3d(12px, -18px, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(-8px, 12px, 0) rotate(4deg);
  }
  75% {
    transform: translate3d(14px, 20px, 0) rotate(-2deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

@keyframes culturalGlow {
  0%,
  100% {
    opacity: 0.18;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
  }
  50% {
    opacity: 0.28;
    transform: scale(1.05);
    filter: drop-shadow(0 15px 35px rgba(198, 40, 40, 0.45));
  }
}

.watermark-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.watermark-image {
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 420px;
  height: 280px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  background-size: cover;
  background-position: center;
  filter: blur(0.5px) contrast(1.2) grayscale(0.25);
  opacity: 0.6;
}

.footer-col h3 {
  margin-top: 0;
  color: var(--cor-destaque);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
}

.apoiadores {
  display: flex;
  gap: 14px;
  align-items: center;
}

.apoiadores img {
  height: 40px;
  width: auto;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 0.9rem;
}

.btn-primario {
  display: inline-block;
  background-color: var(--cor-detalhe);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-primario:hover {
  opacity: 0.92;
}

#voltar-topo {
  position: fixed;
  right: 20px;
  bottom: 28px;
  background: var(--cor-detalhe);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.lightbox-overlay.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 8px;
  }

  .site-header nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

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

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