/* ==============================
   Tema O Lado B Felismente
   Onde trocar imagens e vídeos:
   - Logo: header .brand img  -> assets/img/logo.png
   - Banner/thumbnail (OpenGraph): <meta og:image> -> assets/img/banner1.png
   - Fundo do HERO: :root --hero-bg -> assets/img/banner1.png
   - Vídeos: <video><source src="assets/video/..."></video>
   ============================== */

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

.allpage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

:root {
  --bg: #0e0e10;
  --bg-alt: #17171b;
  --text: #f3f3f5;
  --muted: #c9c9d1;
  --primary: #ff4d5a;
  --accent: #8e24aa;
  --ring: #ffe082;
  --hero-bg: url("../img/banner1.png");
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.pageB p {
  color: var(--ring);
  list-style: none;
  padding: 20px;
  margin: 20px auto;
  text-align: center;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}
.o-lado-b {
  background: url("../img/fundo2.png") no-repeat center center/cover;
  background-attachment: fixed;
  color: #fff;
  padding: 10px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0px;
}
.section {
  padding: 0px 0 0px;
}
.section-narrow {
  padding: 0px 0 0px;
}
.section2section-alt {
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  padding: 0px 0 0px;
}
.section-alt {
  background-attachment: fixed;
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  padding: 0px 0 0px;
}
.section-title {
  background: url("../img/fundo4.png") no-repeat center center/cover;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  margin: 0 0px 0px;
  padding: -200px 0px 0px;
  text-align: center;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    90deg,
    rgba(255, 77, 90, 0.9),
    rgba(142, 36, 170, 0.9)
  );
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand .subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.25s ease;
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-menu a.active {
  color: var(--ring);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s ease;
}

.hero {
  min-height: 88vh;
  background: var(--hero-bg) center/cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75));
}
.hero-overlay {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  background: linear-gradient(90deg, #ff6f61, #ffe082);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 24px;
}
.video-frame {
  max-width: 320px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.btn {
  --_bg: linear-gradient(90deg, var(--primary), var(--accent));
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(255, 77, 90, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--_bg);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 77, 90, 0.5);
}
.center {
  text-align: center;
}
.mt-24 {
  margin-top: 24px;
}

.cards {
  background: url("../img/fundo2.png") no-repeat center center/cover;
  background-attachment: fixed;
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.card {
  background: #1d1d22;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.card h3 {
  margin: 12px 14px 16px;
  font-size: 1.05rem;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
}
.card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}
.card2 {
  background: #1d1d22;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.card2 img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  display: block;
}
.card2 h3 {
  margin: 12px 14px 16px;
  font-size: 1.05rem;
}
.card2:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
}
.card3 {
  background: url("assets/img/banner1.png") no-repeat center center/cover;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 225px; /* Aumentei a largura máxima */
  margin: 0 auto;
  height: 250px; /* Aumentei a altura */
}
.card3 img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Alterado para conter a imagem sem cortar */
  display: block;
}

.card3:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
}
  
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.agenda-card {
  background: url("../img/banner1.png") no-repeat center center/cover;
  background-attachment: fixed;
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
}

.agenda-list {
  list-style: none;
  padding: 20px;
  margin: 20px auto;
  text-align: center;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}
.agenda-list a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}
.agenda-list a:hover {
  background: #ffcc00;
  color: #000;
}
.agenda-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}
.agenda-list li:last-child {
  border-bottom: none;
}
.agenda-note {
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.agenda-note a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.agenda-note a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  padding: 24px;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #111116;
  color: var(--text);
  border-radius: 16px;
  padding: 22px 22px;
  max-width: 560px;
  width: 100%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.footer {
  background: url("../img/fundo4.png") no-repeat center center/cover;
  background-attachment: fixed;
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  border-top: 1px solid rgba(252, 239, 239, 0.08);
  padding: 26px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column:first-child {
  align-items: flex-start;
  text-align: left;
}

.footer-column:nth-child(2) {
  align-items: center;
  text-align: center;
}

.footer-column:last-child {
  align-items: flex-end;
  text-align: right;
}

.footer-logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.footer-list li {
  margin: 6px 0;
}
.footer a {
  color: var(--ring);
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}

.footer-credits {
  text-align: center;
  margin-top: 40px;
  width: 100%;
  grid-column: 1 / -1;
}

.footer-apoio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
  width: 100%;
}

.footer-apoio h4 {
  margin-bottom: 20px;
  width: 100%;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .agenda-list {
    max-width: 90%;
    padding: 15px;
  }
  .agenda-list li {
    font-size: 0.95rem;
  }
  .agenda-note {
    font-size: 1rem;
  }

@media (max-width: 480px) {
  body {
    background-position: top center;
  }
  .agenda-list li {
    font-size: 0.9rem;
  }
  .agenda-note {
    font-size: 0.9rem;
  }
}

/* ===== Menu Overlay para mobile ===== */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 16px;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    padding: 80px 24px 24px;
  }

  .nav-menu.show {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    font-size: 1.4rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.3s ease;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Footer no mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-column:first-child,
  .footer-column:nth-child(2),
  .footer-column:last-child {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 15px;
  }
  
  .footer-apoio {
    margin-top: 20px;
  }
}

/* MELHORIAS GERAIS PARA MOBILE */
@media (max-width: 768px) {
  .section, .section-alt, .section-narrow {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .lead {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-frame {
    max-width: 100%;
  }
}

.no-scroll {
  overflow: hidden;
}