/* -- Estilo Geral  -- */
body {
  margin: 0;
  padding: 0;
  background-color: #b4bfd0;
  color: #315d64;
  
  background-size: cover;
  font-family: "Roboto Mono", monospace;
  line-height: 1.6;
}

/* -- Reseta margens e estilos de lista -- */
* {
  box-sizing: border-box;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* -- Cabeçalho -- */

header {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px 40px;
  border-radius: 10px;
  max-width: 900px;
  margin: 30px auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative; /* necessário para posicionar a imagem */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* -- Imagem do Cabeçalho (no canto direito do site) -- */
.img-cabecalho {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.img-cabecalho:hover {
  transform: scale(1.05);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #20454d;
  text-align: left;
}

/* -- Menu em Cards -- */
nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

nav li {
  list-style: none;
}

nav a {
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  padding: 5px 10px;
  background-color: #58a5a9;
  color: #fff;
  border-radius: 8px;
  text-align: center;
}

nav a:hover {
  background-color: #3d7d80;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* -- Banner (ínicio) -- */
.banner {
  text-align: center;
  padding: 140px 20px;
  color: #407986;
  text-shadow: 1px 1px 3px rgba(71, 70, 56, 0.2);
  background: linear-gradient(
      rgba(49, 93, 100, 0.7),
      rgba(49, 93, 100, 0.7)
    ),
}

.banner h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  background-color: #58a5a9;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s, transform 0.2s ease;
}

.btn:hover {
  background-color: #3d7d80;
  transform: translateY(-2px);
}

/* -- Seções Gerais -- */
section {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  min-width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px;
}

.carousel-slide img {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1;
  font-size: 1.5rem;
  color: #333;
  border-radius: 50%;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}


section h2 {
  text-align: center;
  color: #20454d;
  margin-bottom: 20px;
}

/* -- Como Ajudar -- */
#ajudar ul li {
  background: #e4eff1;
  margin: 10px 0;
  padding: 10px 15px;
  border-left: 5px solid #58a5a9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#ajudar ul li:hover {
  background: #d6e8ea;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ajuda-msg {
  margin-top: 20px;
  font-weight: 500;
  text-align: center;
  color: #315d64;
}

/* -- Formulário de Contato -- */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea, button {
  font-family: inherit;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background-color: #58a5a9;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s ease;
}

button:hover {
  background-color: #3d7d80;
  transform: translateY(-2px);
}

/* -- Rodapé -- */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(49, 93, 100, 0.9);
  color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
}

footer p {
  margin: 0 0 15px 0;
  font-size: 1rem;
}

footer a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

/* -- Ícones sociais -- */
footer .social-icons {
  margin-top: 15px;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 10px;
  border-radius: 50%;
  font-size: 28px;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* -- Cores específicas por rede social --  */
footer .social-icons a:nth-child(1) {
  background-color: #E1306C; /* Instagram */
}

footer .social-icons a:nth-child(2) {
  background-color: #25D366; /* WhatsApp */
}

footer .social-icons a:nth-child(3) {
  background-color: #EA4335; /* E-mail */
}

footer .social-icons a:nth-child(4) {
  background-color: #2f518c; /* Facebook */
}

/* -- Efeito ao passar o mouse -- */
footer .social-icons a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* -- POPUP de Formulário -- */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.popup-content input,
.popup-content select {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.botoes-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.botoes-form button {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background-color: #58a5a9;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.botoes-form button:hover {
  background-color: #3d7d80;
}

/* -- Formulário de Cadastro -- */
fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

legend {
  font-weight: bold;
  color: #20454d;
  padding: 0 10px;
  font-size: 1.2rem;
}

/* Estilo para select */
select {
  font-family: inherit;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Alinhamento de campos lado a lado */
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.form-row > div {
  flex: 1;
  min-width: 250px;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Checkbox página cadastro */

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #58a5a9;
  cursor: pointer;
}

.checkbox-container label {
  font-weight: 500;
  color: #20454d;
  cursor: pointer;
}

/* Checkbox alinhado */
input[type="checkbox"] {
  margin-right: 10px;
}

/* -- Responsivo -- */
@media (max-width: 600px) {
  footer .social-icons a {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

#btn-topo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 16px;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  background-color: #58a5a9;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: none; /* inicialmente escondido */
  z-index: 1000; /* fica acima de outros elementos */
}

#btn-topo:hover {
  background-color: #3d7d80;
  transform: scale(1.1);
  transition: 0.3s;
}
