/* ================================
   RESET / BASE
================================ */
{
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

/* ================================
   CABEÇALHO
================================ */
header {
  width: 100%;
  background: #761011;
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
}

header img {
  width: 400px;
  max-width: 90%;
  display: block;
  margin: 0 auto;
}

/* ================================
   TÍTULO
================================ */
#tituloPagina {
  text-align: center;
  margin: 40px auto 20px;
  max-width: 1100px;
  padding: 0 20px;
}

/* ================================
   MAPA
================================ */
.mapa {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 40px 0;
}

.mapa-img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto;
}

/* ================================
   BOTÕES (ANIMAÇÃO ORIGINAL)
================================ */
button,
.botao-voltar,
.botao-externo {
  padding: 10px 18px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: #761011;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button:hover,
.botao-voltar:hover,
.botao-externo:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ================================
   SWITCHER DE LÍNGUA – TAMANHO FIXO
================================ */
.lang-switcher {
  position: fixed;
  top: 15px;
  right: 15px;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  display: flex;
  gap: 6px;
  z-index: 9999;
}

.lang-switcher button {
  width: 48px;        /* largura fixa */
  height: 32px;       /* altura fixa */
  padding: 0;         /* remove padding herdado */
  font-size: 14px;
  font-weight: bold;

  border: 2px solid #761011;
  background: white;
  color: #761011;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher button.active {
  background: #761011;
  color: white;
}


/* ================================
   LINKS EXTERNOS
================================ */
.links-externos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

/* ================================
   PAINEL DE INFORMAÇÃO
================================ */
.info {
  width: 95%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: #f8f8f8;
  border-radius: 14px;
  border-left: 10px solid #761011;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
}

.info.empty .placeholder { display: block; }
.info.empty .conteudo { display: none; }

.info:not(.empty) .placeholder { display: none; }

}

.conteudo img {
  width: 420px;
  max-width: 100%;
  border-radius: 12px;
}

/* ================================
   PLACEHOLDER
================================ */
.placeholder {
  font-size: 16px;
}

/* ================================
   ANIMAÇÕES FADE
================================ */
.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fade-in {
  opacity: 1 !important;
  transition: opacity 0.25s ease;
}

/* ================================
   BOTÃO VOLTAR
================================ */
.voltar-container {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

/* ================================
   SALA 13 – LAYOUT ESPECIAL
================================ */
.info.sala13 .conteudo {
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.caixa-texto-13 {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ffffff;
  color: #761011;
  padding: 18px 22px;
  border-radius: 12px;
  max-width: 330px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  z-index: 20;
}

/* ================================
   RODAPÉ
================================ */
footer {
  width: 100%;
  background: #761011;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 10px;
}

footer img {
  width: 400px;
  max-width: 90%;
  display: block;
  margin: 0 auto;
}

/* ================================
   RESPONSIVO
================================ */


  .texto-wrapper {
    margin-left: 0px;
    margin-right: 0px;
  }

  .lang-switcher {
    top: 8px;
    right: 8px;
    padding: 6px 8px;
    gap: 6px;
  }

  .lang-switcher button {
    font-size: 14px;
    padding: 4px 7px;
  }
}

/* CORREÇÃO IMAGEM + TEXTO */
.info .conteudo {
  align-items: flex-start;
}

.info .conteudo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* garante que o texto não é esmagado */
.texto-wrapper {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 768px) {
  .info .conteudo {
    flex-direction: column;
  }

  .info .conteudo img {
    max-width: 100%;
  }
}

/* ================================
   BOTÕES DAS SALAS – IGUAIS EM TODO O LADO
================================ */
.botoes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto;
}

.botoes button {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 16px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
}
/* ================================
   IMAGEM EM CIMA, TEXTO EM BAIXO
================================ */


.info .conteudo img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 12px;
}

.info .conteudo h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.info .conteudo p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}

@media (max-width: 768px) {

  /* PAINEL IGUAL À IMAGEM 1 */
  .info {
    background: #f8f8f8;
    color: black;
    border-left: none;
    padding: 30px 20px;
  }

  /* layout em coluna */
  .info .conteudo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .info .conteudo img {
    display: block;
    margin: 0 auto 15px auto;
    width: 100%;
    max-width: 350px; /* opcional – controla o tamanho */
  }


  /* texto */
  .texto-wrapper {
    margin: 0;
    max-width: 100%;
  }

  .texto-wrapper h2 {
    font-size: 17px;
    margin-bottom: 12px;
    color: black;
  }

  .texto-wrapper p {
    font-size: 17px;
    line-height: 1.55;
    color: black;
  }

  /* remover estilos herdados que atrapalham */
  .info .conteudo h2,
  .info .conteudo p {
    text-align: left;
  }
}



