:root {
  --vermelho: #c00000;
  --vermelho-hover: #900000;
  --preto: #111111;
  --preto-fundo: #1a1a1a;
  --branco: #ffffff;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: var(--branco);
  color: var(--preto);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

h1{
  color: var(--branco);
}

h2, h3 {
  color: var(--vermelho);
}

/* Banner / Hero */
.hero {
  background: url('imagens/banner.jpeg') center/cover no-repeat;
  height: 75vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--branco);
  position: relative;
  margin-top: 60px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero h1, .hero p, .hero .buttons {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3em;
  margin: 0 20px;
}

.hero p {
  font-size: 1.3em;
  margin: 15px 20px;
}

.buttons {
  margin-top: 350px;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 6px;
  margin: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn.primary {
  background: var(--preto);
  color: var(--branco);
}

.btn.primary:hover {
  color: var(--vermelho);
}

.btn.secondary {
  background: var(--branco);
  color: var(--preto);
}

.btn.secondary:hover {
  background: #888;
}

.btn-menu-aluno {
  background: var(--preto);
  color: var(--branco) !important;
  padding: 10px 18px 12px 18px; /* Top, Right, Bottom, Left */
  border-radius: 6px;
  font-size: 0.95em;
  line-height: 1.2;
  display: inline-block;
}

.btn-menu-aluno:hover {
  background: var(--vermelho);
}

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.section {
  padding: 40px 20px; /* Antes era 60px */
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

/* Modalidades */
.modalidade-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 20px; /* Antes era 30px */
}

.modalidade-card {
  flex: 1 1 320px;
  max-width: 500px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  background: #fdfdfd;
  transition: box-shadow 0.3s ease;
  max-height: 380px; /* Limita altura */
}

.modalidade-card p {
  text-align: justify;
  font-size: 0.95em;
  line-height: 1.5;
  margin-top: 10px;
  color: #555;
}

.modalidade-card h3 {
  font-size: 1.5em;
  margin-top: 0;
}

/* Horários */
.horario-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.horario-table th,
.horario-table td {
  padding: 16px;
  border: 1px solid #ccc;
}

.horario-table th {
  background: var(--vermelho);
  color: var(--branco);
}

.horario-table td {
  color: #333;
}

/* Galeria */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.03);
}

/* Menu fixo (opcional) */
nav.site-menu {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  padding: 15px 20px;
  transition: background 0.4s ease;
  z-index: 1000;
}

nav.site-menu.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav.site-menu a {
  color: #fff;
  margin: 0 15px;
  font-weight: bold;
}

nav.site-menu.scrolled a {
  color: #003366;
}

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.85);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.navbar .menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  gap: 16px;
}

.navbar .menu li {
  display: inline-block;
  white-space: nowrap;
}

.navbar .menu li a {
  color: var(--branco);
  font-weight: bold;
  padding: 10px;
  transition: color 0.3s;
}

.navbar .menu li a:hover {
  color: var(--vermelho);
}

.navbar .btn-menu-aluno {
  white-space: nowrap;
}

/* Scrollbar discreta */
.navbar .menu::-webkit-scrollbar {
  height: 6px;
}
.navbar .menu::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

.logo img {
  height: 40px;
  background: var(--branco);
}

.menu {
  list-style: none;
  display: flex;
  gap:15px;
}

.menu li a {
  color: #fff;
  font-weight: bold;
  padding: 10px;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #ffd700;
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
   
   
  .hero {
    background-image: url('imagens/banner-mobile.png');
    background-position: center top;
    background-size: cover;

    min-height: 65vh;   /* altura boa para mobile */
    height: auto;       /* evita forçar proporção */
    padding-bottom: 120px; /* espaço para os botões respirarem */
  }

  
  .buttons {
    position: absolute;
    bottom: -280px;          /* distância do fundo do banner */
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 260px;
    margin: 0;             /* remove margens antigas */
  }
   
  /* Navbar no mobile não deve ter scroll horizontal */
  .navbar {
    overflow-x: visible;     /* mata o scroll do nav */
    white-space: normal;     /* desfaz nowrap do desktop */
  }

  .navbar .container {
    overflow: visible;       /* não corta dropdown */
    position: relative;      /* âncora do menu absoluto */
  }

  /* Botão hamburger TEM que aparecer */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 4000;           /* fica acima do menu */
  }

  /* Menu começa escondido (de verdade) */
  .navbar .menu {
    display: none;           /* aqui vence o display:flex do desktop */
    position: absolute;
    top: 100%;
    right: 12px;

    width: min(320px, 86vw);
    background: #000;
    flex-direction: column;
    padding: 12px;
    border-radius: 10px;
    gap: 10px;

    overflow: visible;       /* mata overflow-x do desktop */
    white-space: normal;     /* mata nowrap do desktop */
    z-index: 3000;
  }

  /* Quando o JS adiciona .show */
  .navbar .menu.show {
    display: flex;
  }
}

/* Compensar altura do nav para hero */
.hero {
  margin-top: 60px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Rodapé */
footer {
  background: var(--preto-fundo);
  color: var(--branco);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}


/* Carrosel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 720px; /* tamanho ideal proporcional aos cards */
  height: 400px; /* altura ajustada */
  margin: 40px auto 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--vermelho);
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Fundo escuro */
#drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 998;
}

/* Drawer lateral */
#drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
  border-radius: 8px 0 0 8px;

  transform: translateX(100%);   /* ESCONDIDO */
  transition: transform 0.35s ease-out;
}

#drawer.open {
  transform: translateX(0);      /* VISÍVEL */
}

#drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  float: right;
  cursor: pointer;
}

/* Botão Leia Mais */
.btn-leia-mais {
  margin-top: 10px;
  background: #173f74;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.25s;
}

.btn-leia-mais:hover {
  background: #0f2d52;
}

/* Mobile */
@media (max-width: 480px) {
  #drawer {
    width: 90%;
  }
}
