:root {
  --azul: #0077cc;
  --azul-claro: #e9f3fb;
  --cinza: #f5f5f5;
  --texto: #333;
  --branco: #ffffff;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background-color: var(--cinza);
  color: var(--texto);
}

/* Cabeçalho */
.header {
  background-color: var(--azul);
  color: var(--branco);
  padding: 40px 20px;
  text-align: center;
}

.header h1 {
  margin: 0;
  font-size: 32px;
}

.header h2 {
  margin: 10px 0 0;
  font-weight: normal;
  font-size: 18px;
}

/* Conteúdo principal */
.main-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.photo img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bio {
  max-width: 500px;
}

.bio h3 {
  color: var(--azul);
  margin-top: 0;
}

/* Contato */
.contact {
  text-align: center;
  background-color: var(--azul-claro);
  padding: 40px 20px;
}

.contact h3 {
  margin-top: 0;
  color: var(--azul);
}

.contact a {
  color: var(--azul);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* Rodapé */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #ddd;
  font-size: 14px;
  color: #555;
}

/* Responsivo */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    text-align: center;
  }

  .photo img {
    width: 90%;
  }
}

.map-container {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.map-container {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Botão flutuante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  /* deixa o ícone branco */
}

.chat-float {
  position: fixed;
  bottom: 95px;
  /* acima do WhatsApp */
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #0077cc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 998;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.chat-float:hover {
  transform: scale(1.1);
}

.chat-float img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  /* deixa o ícone branco se for escuro */
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 998;
  transition: transform 0.2s ease;
}

.chat-float {
  position: fixed;
  bottom: 95px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #0077cc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 998;
  transition: transform 0.2s ease;
}

.chat-float img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.chat {
  width: 0;
  height: 0;
  visibility: hidden;
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 999;
  background: white;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.chat.shown {
  visibility: visible;
}

@media screen and (max-width: 599px) {
  .chat.shown {
    width: 90%;
    height: 90%;
  }
}

@media screen and (min-width: 600px) and (max-width: 999px) {
  .chat.shown {
    width: 40%;
    height: 75%;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1399px) {
  .chat.shown {
    width: 35%;
    height: 75%;
  }
}

@media screen and (min-width: 1400px) {
  .chat.shown {
    width: 30%;
    height: 75%;
  }
}

.chat-close {
  font-weight: bold;
  padding: 0.4em 0.5em;
  color: white;
  background-color: transparent;
  border-bottom-left-radius: 6px;
  cursor: pointer;
  font-size: 30px;
  z-index: 1000;
  padding-top: 20px;
  padding-right: 20px;

  /* --- Alterações --- */
  position: absolute;
  /* Tira o elemento do fluxo normal */
  top: 0;
  /* Alinha no topo do container pai */
  right: 0;
  /* Alinha à direita do container pai */
}