/* RESET básico */
* {
  box-sizing: border-box;
}

/* Corpo e fontes */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Header */
header {
  background: #f5f5f5;
}

.header-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.header-container .logo {
  height: 50px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.area-restrita a {
  display: flex;
  align-items: center;
  border: 1px solid #ff0000;
  padding: 6px 12px;
  border-radius: 8px;
  color: green;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.area-restrita img {
  margin-right: 6px;
  height: 18px;
}

/* Carrossel */
.carrossel-area {
  position: relative;
}

.carrossel-container {
  height: 450px;
  overflow: hidden;
  position: relative;
}

.carrossel-container img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s;
}

.carrossel-container img.active {
  opacity: 1;
}

/* Botões sobrepostos */
.botoes-sobrepostos {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
  justify-content: center;
  text-align: center;
}

.botoes-sobrepostos div {
  background: #4caf50;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  white-space: normal;
}

.botao-esquerdo {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.botao-direito {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.botao-meio {
  border-radius: 0;
}

.botoes-sobrepostos div.selecionado {
  background: #1b5e20;
  font-size: 16px;
  padding: 14px 20px;
}

/* Seção Ensino */
.secao-ensino {
  background: #f8fff8;
  padding: 100px 60px;
  overflow: visible !important;
}

.secao-ensino-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  height: auto !important;
}

.secao-ensino-imagem {
  flex: 0 0 250px;
  max-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secao-ensino-imagem img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.secao-ensino-texto {
  flex: 1 1 300px;
  text-align: left;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: unset !important;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.secao-ensino-texto h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.secao-ensino-texto p {
  margin: 0;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: unset !important;
  line-height: 1.6;
}

/* Alternância */
.alternancia {
  background: #e9fce9;
  padding: 60px 40px;
  text-align: center;
  position: relative;
}

.alternancia-container {
  max-width: 800px;
  margin: 0 auto;
  color: #000;
}

.alternancia-container h2 {
  text-align: center;
  color: #388e3c;
}

.alternancia-container p {
  text-align: left;
  margin-bottom: 0px;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

.badge-excelencia {
  background: #ff6600;
  color: white;
  display: inline-block;
  padding: 10px 80px;
  border-radius: 15px;
  font-weight: bold;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* Indicadores */
.indicadores {
  text-align: center;
  padding: 60px 20px 40px;
}

.indicadores .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.indicador {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 20px;
  width: 240px;
  background: #fff;
}

.indicador img {
  width: 80px;
  margin-bottom: 10px;
}

.indicador p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.indicador p strong {
  font-size: 20px;
  display: block;
  margin-bottom: 1px;
}

/* Footer */
footer {
  background: #4caf50;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.footer-container h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-linhas {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 250px;
  justify-content: flex-start;
  text-align: left;
}

.footer-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-item a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.footer-item a:hover {
  text-decoration: underline;
  color: #e0ffe0;
}

.footer-copy {
  margin-top: 20px;
  font-size: 12px;
}

.footer-copy a {
  color: #fff;
  text-decoration: underline;
}

/* RESPONSIVO GERAL PARA TELAS ATÉ 412px */
@media (max-width: 412px) {

  html,
  body {
    width: 100vw;
    overflow-x: hidden;
  }

  body {
    /* escala proporcional para diminuir toda a página */
    transform: scale(0.4);
    transform-origin: top left;

    /* ajusta altura para evitar corte vertical */
    height: calc(100vh / 0.8);

    overflow-x: hidden;
    margin: 0;
  }
}