:root {
  --cor-primaria: #004a99;
  --cor-secundaria: #ddd;
  --cor-destaque: #ffffff;
  --cor-menu: #004a998f;
  --cor-seta: #04305edf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

header {
  background-color: var(--cor-primaria);
  color: var(--cor-destaque);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.nome-escola {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
}

.logo-central {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.logo-central img {
  width: 125px;
  height: 125px;
  object-fit: contain;
}

/* MENU LATERAL */
#menu-lateral {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: var(--cor-menu);
  transition: left 0.3s ease-in-out;
  padding-top: 5rem;
  z-index: 999;
}

#menu-lateral.show {
  left: 0;
}

#menu-lateral ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

#menu-lateral a {
  text-decoration: none;
  color: var(--cor-destaque);
  font-weight: bold;
}

/* MENU TOPO */
.menu-topo {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.menu-topo ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu-topo a {
  text-decoration: none;
  color: var(--cor-destaque);
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}

.menu-topo a:hover {
  color: var(--cor-destaque);
}

/* BOTÃO HAMBÚRGUER */
.hamburguer {
  width: 40px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  z-index: 1001;
}

.hamburguer span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: var(--cor-secundaria);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburguer.ativo span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburguer.ativo span:nth-child(2) {
  opacity: 0;
}

.hamburguer.ativo span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO BANNER ==================== */
.hero {
  width: 100%;
  min-width: 100vw;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-width: 100% !important;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #001f3f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.hero-btn:hover {
  background: #003366;
}

/* ===== Seções ===== */
section {
  padding: 80px 1px;
  margin: auto;
}

/* ========================================= */
/* === SEÇÃO SOBRE A ESCOLA (AJUSTADA) ==== */
/* ========================================= */

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.about-content img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

/* Nova caixa que evita corte no mobile */
.about-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: justify;
  line-height: 1.8;
  color: #333;
}

.about-box h3 {
  color: #001f3f;
  margin-bottom: 15px;
  text-align: center;
}

/* Responsividade */
@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-content img {
    width: 90%;
    max-width: 350px;
  }

  .about-box {
    padding: 18px;
    margin: 0 10px;
    font-size: 0.95rem;
    text-align: justify;
  }
}

/* Contato */
.contact {
  text-align: center;
}

.contact-boxes {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.contact-box {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 15px;
  padding: 30px;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-box:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.contact-box h4 {
  color: #001f3f;
  margin-bottom: 10px;
}

/* Mapa */
.map-container {
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Regimento */
.regimento {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: justify;
  line-height: 1.8;
}

.regimento h3 {
  color: #001f3f;
  margin-bottom: 20px;
  text-align: center;
}

.btn-center {
  text-align: center;
}

.btn-regimento {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #001f3f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn-regimento:hover {
  background: #003366;
}

/* FOOTER */
footer {
  background: var(--cor-primaria);
  color: var(--cor-destaque);
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer-conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-logo {
  width: 70px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-nome {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--cor-destaque);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  transform: scale(1.1);
  color: #ffdd57;
}

.direitos {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ==================== MOBILE HEADER ==================== */
@media (max-width: 600px) {
  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem 2.5rem;
    position: relative;
  }

  .hamburguer {
    width: 35px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin: 0;
    order: 0;
  }

  .hamburguer span {
    height: 5px;
    border-radius: 3px;
  }

  .nome-escola {
    font-size: 1rem;
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
  }

  .logo-central {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-central img {
    width: 100px;
    height: 100px;
  }

  .menu-topo {
    display: block;
    width: 100%;
    margin-top: 70px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    background-color: var(--cor-primaria);
    padding: 0.1rem 0;
    line-height: 1;
  }

  .menu-topo::-webkit-scrollbar {
    display: none;
  }

  .menu-topo ul {
    display: inline-flex;
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .menu-topo a {
    display: inline-block;
    color: var(--cor-destaque);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
  }

  .menu-topo a:hover {
    color: #ffdd57;
  }

  #menu-lateral {
    width: 200px;
  }
}



html {
  scroll-behavior: smooth;
}

/* Botão Voltar ao Topo */
#btn-topo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--cor-seta);
  color: white;
  border: none;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease, transform 0.3s ease, visibility 0.4s;
  z-index: 1000;
}

#btn-topo.show {
  opacity: 1;
  visibility: visible;
}

#btn-topo:hover {
  background: #000000;
  transform: scale(1.1);
}

#endereco {
  padding-top: 0px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--cor-primaria);
}

body {
  padding-top: 100px;
}
