* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #111;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navbar */

.navbar {
  background-color: #000;
  border-bottom: 2px solid #b30000;
  position: relative;
  z-index: 10;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #f5f5f5;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #ff3333;
  border-bottom: 2px solid #ff3333;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #f5f5f5;
}

/* Hero */

.hero {
  position: relative;
  /* se quiser imagem de fundo, descomente a linha abaixo e ajuste o caminho: */
  /* background: url('../img/bg.jpg') center/cover no-repeat fixed; */
  background-color: #111;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-inner {
  position: relative;
  z-index: 2;              /* fica acima do overlay */
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  max-width: 600px;
}

.hero-com-logo {
  text-align: left;
}

.hero-com-logo .hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-com-logo .hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-logo-wrapper {
  flex: 0 0 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 220px;
  max-height: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #fff;      /* opcional, só se quiser fundo branco */
  padding: 0.75rem;            /* opcional */
  border-radius: 8px;          /* opcional */
  border: 2px solid #b30000;   /* opcional, combina com o tema */
}

.btn-primary {
  display: inline-block;
  background-color: #b30000;
  color: #f5f5f5;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #ff3333;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-com-logo {
    text-align: center;
  }

  .hero-logo-wrapper {
    margin-top: 1rem;
  }
}

/* Sections */

.section {
  padding: 3rem 0;
  background-color: #111;
}

.section:nth-of-type(even) {
  background-color: #181818;
}

.section h1,
.section h2 {
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: #1f1f1f;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #333;
}

/* Perfil professor */

.profile {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}

.profile-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #b30000;
}

.profile + .profile {
  margin-top: 1.5rem;
}

/* Tabela horários */

.tabela-horarios {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.tabela-horarios th,
.tabela-horarios td {
  border: 1px solid #333;
  padding: 0.75rem;
  text-align: left;
}

.tabela-horarios thead {
  background-color: #b30000;
}

.tabela-horarios tbody tr:nth-child(even) {
  background-color: #222;
}

/* Planos */

.plano-card .price {
  font-size: 1.6rem;
  margin: 0.5rem 0 1rem;
  color: #ff6666;
}

.plano-card ul {
  list-style: disc;
  margin-left: 1rem;
}

.plano-card.destaque {
  border: 2px solid #ff3333;
}

/* Contato */

.form-contato {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-contato input,
.form-contato textarea {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #333;
  background-color: #222;
  color: #f5f5f5;
}

.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert.success {
  background-color: #1f4f1f;
  border: 1px solid #3f8f3f;
}

.alert.error {
  background-color: #4f1f1f;
  border: 1px solid #8f3f3f;
}

.contato-info {
  margin-top: 2rem;
}

/* Footer */

.footer {
  background-color: #000;
  padding: 1rem 0;
  margin-top: 2rem;
}

.footer-container {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsivo */

@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }

  .profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    right: 0;
    background-color: #000;
    flex-direction: column;
    width: 200px;
    padding: 0.75rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}

.section-foto-equipe {
  background-color: #181818;
}

.foto-equipe-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.foto-equipe-wrapper {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.foto-equipe {
  max-width: 100%;
  width: 420px;
  border-radius: 8px;
  border: 3px solid #b30000;
  object-fit: cover;
}

.texto-equipe {
  flex: 1 1 260px;
}

.texto-equipe h2 {
  margin-bottom: 1rem;
}

.texto-equipe p {
  font-size: 1rem;
  color: #ddd;
}

/* Responsivo */
@media (max-width: 768px) {
  .foto-equipe-container {
    flex-direction: column;
    text-align: center;
  }

  .texto-equipe {
    order: 2;
  }

  .foto-equipe-wrapper {
    order: 1;
  }
}

/* ====================== */
/* FILIAIS                */
/* ====================== */

.filial-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #1f1f1f;
  border-radius: 6px;
  border: 1px solid #333;
}

.filial-imagens {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.filial-logo-wrapper,
.filial-professor-wrapper {
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.filial-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #fff;
  border-radius: 8px;
  padding: 0.5rem;
}

.filial-professor-foto {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #b30000;
}

.filial-info {
  flex: 1 1 260px;
}

.filial-info h2 {
  margin-bottom: 0.5rem;
}

.filial-endereco {
  margin-bottom: 1rem;
  color: #ddd;
}

.filial-horarios {
  list-style: disc;
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.filial-professor-nome {
  font-weight: bold;
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
  .filial-card {
    flex-direction: column;
  }

  .filial-imagens {
    flex-direction: row;
    justify-content: center;
  }

  .filial-logo-wrapper,
  .filial-professor-wrapper {
    width: 120px;
    height: 120px;
  }

  .filial-professor-foto {
    width: 120px;
    height: 120px;
  }
}

/* ====================== */
/* GALERIA                */
/* ====================== */

/* GALERIA - fotos menores e SEM cortes */
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* miniaturas menores */
  gap: 1rem;
  margin-top: 1.5rem;
}

.galeria-item {
  border-radius: 6px;
  border: 1px solid #333;
  background-color: #1f1f1f;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Padrão:
   - Não corta a imagem (contain)
   - Limita tamanho visual
   - Mantém proporção original */
.galeria-img {
  max-width: 100%;     /* nunca passa da largura do card */
  max-height: 140px;   /* controla a ALTURA máxima -> fotos menores */
  width: auto;
  height: auto;
  object-fit: contain; /* NÃO corta: mostra a imagem inteira */
  display: block;
  transition: transform 0.2s ease;
}

.galeria-item:hover .galeria-img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .galeria-fotos {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .galeria-img {
    max-height: 150px; /* um pouco maior no celular */
  }
}

/* ========= GALERIA DE VÍDEOS ========= */

.galeria-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-item {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* proporção 16:9 */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-legenda {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: #ddd;
  text-align: center;
}

/* Caso use vídeos locais */

.video-local {
  width: 100%;
  border-radius: 6px;
  outline: none;
}

/* ====================== */
/* PRODUTOS               */
/* ====================== */

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.produto-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.produto-img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.produto-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* NÃO cortar, mostra inteira */
  transition: transform 0.2s ease;
}

.produto-card:hover .produto-img {
  transform: scale(1.03);
}

.produto-card h3 {
  margin-bottom: 0.5rem;
}

.produto-desc {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 0.5rem;
}

.produto-preco {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff6666;
  margin-bottom: 0.25rem;
}

.produto-info {
  font-size: 0.9rem;
  color: #ccc;
}

/* ========= TRANSPARÊNCIA ========= */

.diretoria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.diretor-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.diretor-foto-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diretor-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diretor-foto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
}

.diretor-cargo {
  font-weight: bold;
  color: #ff6666;
  margin-bottom: 0.5rem;
}

.diretor-funcao {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 0.5rem;
}

.diretor-contato {
  font-size: 0.9rem;
}

/* ========= PARCEIROS ========= */

.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.parceiro-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.25rem;
}

.parceiro-logo-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
  background-color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parceiro-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.parceiro-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}

.parceiro-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.parceiro-descricao {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 0.75rem;
}

.parceiro-contatos {
  font-size: 0.9rem;
}

.parceiro-links .parceiro-link {
  color: #ff6666;
  margin-right: 0.75rem;
  text-decoration: none;
}

.parceiro-links .parceiro-link:hover {
  text-decoration: underline;
}

.site-footer {
  background-color: #000;
  border-top: 1px solid #333;
  padding: 1rem 0;
  color: #ccc;
  font-size: 0.9rem;
}

.site-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer .footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer .footer-right span {
  margin-right: 0.5rem;
}

.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer .social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: brightness(1.1);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.site-footer .social-link:hover .social-icon {
  transform: scale(1.1);
  filter: brightness(1.4);
}

/* ========= GALERIA ADMIN (com botão excluir) ========= */

.galeria-fotos-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.galeria-item-admin {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.galeria-thumb-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #000;
}

.galeria-img-admin {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria-info-admin {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-danger {
  background-color: #c0392b;
  border: none;
  color: #fff;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-danger:hover {
  background-color: #e74c3c;
}

.btn-danger {
  background-color: #c0392b;
  border: none;
  color: #fff;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-danger:hover {
  background-color: #e74c3c;
}

/* ====== FAIXAS-PRETAS NA HOME ====== */

.faixas-pretas-home {
  margin-top: 3rem;
  text-align: center;
}

.faixas-pretas-home h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.faixas-pretas-subtitle {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.faixas-pretas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.faixa-preta-card {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.faixa-preta-foto-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e53935; /* vermelho da equipe */
  background-color: #000;
}

.faixa-preta-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faixa-preta-card h3 {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #fff;
}

.faixa-preta-graduacao {
  margin: 0;
  font-size: 0.9rem;
  color: #e0e0e0;
}