/* ================================
   RESET / BASE
================================ */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background: white;
}

/* ================================
   HEADER
================================ */
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;
}

/* ================================
   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;
}


/* ================================
   TÍTULO
================================ */
#tituloPagina {
  text-align: center;
  margin: 40px auto 20px;
}

/* ================================
   MAPA
================================ */
.mapa {
  width: 100%;
  text-align: center;
  margin: 40px 0;
}

.mapa-img {
  width: 100%;
  max-width: 700px;
}

/* ================================
   BOTÕES (ANIMAÇÃO DO PRIMEIRO)
================================ */
button,
.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-externo:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ================================
   BOTÕES DAS SALAS
================================ */
.botoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

/* ================================
   PAINEL DE INFORMAÇÃO
   ⚠️ NÃO ALTERADO VISUALMENTE
================================ */
.info {
  width: 95%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: #761011;
  color: white;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
}

.conteudo {
  display: none;
  gap: 35px;
  align-items: center;
  width: 100%;
}

.info:not(.empty) .conteudo {
  display: flex;
}

.info img {
  width: 420px;
  max-width: 100%;
  border-radius: 12px;
}

/* ================================
   TEXTO
================================ */
.texto-wrapper {
  flex: 1;
  max-width: 720px;
  margin-left: 30px;
  text-align: left;
}

.texto-wrapper h2 {
  font-size: 17px;
  margin-bottom: 15px;
}

.texto-wrapper p {
  font-size: 17px;
  line-height: 1.55;
}

/* ================================
   PLACEHOLDER
================================ */
.placeholder {
  text-align: center;
  font-size: 16px;
}

.info.empty .placeholder { display: block; }
.info.empty .conteudo { display: none; }
.info:not(.empty) .placeholder { display: none; }

/* ================================
   LINKS EXTERNOS
================================ */
.links-externos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

/* ================================
   FOOTER
================================ */
footer {
  width: 100%;
  background: #761011;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 8px;
}

footer img {
  width: 400px;
  max-width: 90%;
  display: block;
  margin: 0 auto;
}

/* ================================
   SALA 13
================================ */
.info.sala13 .conteudo {
  flex-direction: column;
  align-items: center;
}

.caixa-texto-13 {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255,255,255,0.95);
  color: #761011;
  padding: 18px 22px;
  border-radius: 12px;
  max-width: 330px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.botao-voltar {
  padding: 10px 18px;
  font-size: 18px;
  border-radius: 10px;
  background: #761011;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.botao-voltar:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.voltar-container {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  margin-top: 10px; /* espaço por baixo do header */
}

.visita-container {
  max-width: 1100px;
  margin: 50px 0;
  padding: 0 10px;
}

.visita-container a {
  color: #761011;
  font-weight: bold;
  text-decoration: underline;
}


/* ================================
   RESPONSIVO
================================ */
@media (max-width: 768px) {

  .conteudo {
    flex-direction: column;
  }

  .info img {
    max-width: 350px;
    margin-bottom: 20px;
  }

  .texto-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }

  .botoes button {
    padding: 7px 9px;
    font-size: 14px;
    min-width: 42px;
  }

  .lang-switcher {
    top: 8px;
    right: 8px;
    padding: 6px 8px;
    gap: 6px;
  }

  .lang-switcher button {
    font-size: 14px;
    padding: 4px 7px;
  }

  .caixa-texto-13 {
    position: static;
    max-width: 100%;
    margin-bottom: 15px;
  }
}
