* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e6f7ff;
  line-height: 1.6;
  color: #333;
}

header {
  position: relative;
  background-image: url('../public/imgs/imagem-header.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

header h1, header p {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
  opacity: 0.9;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  background-color: rgba(0, 85, 153, 0.9);
  padding: 10px;
  position: sticky; 
  top: 0;
  z-index: 1000; 
}

nav a {
  flex-shrink: 0; 
  white-space: nowrap; 
  font-size: 1.2em;
  color: white;
  text-decoration: none;
  margin: 0 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
  transform: scale(1.1); 
  background-color: #003366; 
  border-radius: 5px; 
}

section {
  background-color: #e6f7ff;
  padding: 20px;
}

.card {
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
}

.card img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-content h2 {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-content p {
  font-size: 1.2em;
  line-height: 1.5;
  color: #666;
  margin-bottom: 15px;
}

.toggle-btn {
  background-color: #003366;
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.1em;
  transition: background-color 0.3s, transform 0.2s ease;
}

.toggle-btn:hover {
  background-color: #002244;
  transform: scale(1.05);
}

.toggle-btn:active {
  background-color: #001122;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.extra-content {
  display: none;
  opacity: 0;
  height: 0;
  margin-top: 10px;
  padding: 0 15px;
  font-size: 1.2em;
  background-color: #c0e0ff; 
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: opacity 0.5s ease, height 0.5s ease;
}

.extra-content.open {
  display: block;
  opacity: 1;
  height: auto;
  padding: 15px; 
}

.extra-content p {
  animation: fadeInText 1.5s ease-in-out forwards;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

form {
  width: 100%;
  max-width: 500px; 
  margin: 20px auto; 
  display: flex;
  flex-direction: column;
  gap: 15px; 
  padding: 20px;
  border: 2px solid #003366;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #003366; 
  border-radius: 8px;
  font-size: 1em;
  background-color: #f9f9f9;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus, form textarea:focus {
  border-color: #0055aa;
  box-shadow: 0 0 8px rgba(0, 85, 153, 0.3);
  outline: none;
}

form button {
  width: 100%;
  padding: 12px;
  background-color: #0055aa;
  color: white;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

form button:hover {
  background-color: #003366;
  transform: scale(1.02);
}

form button:active {
  background-color: #001122;
}

footer {
  background-color: #003366;
  color: #ccc; 
  text-align: center;
  padding: 20px 10px;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; 
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer p {
  margin: 5px 0;
  letter-spacing: 1px; 
  font-weight: 300; 
  font-size: 0.95em;
}

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

.footer-icons a {
  color: white;
  font-size: 1.5em;
  transition: color 0.3s, transform 0.3s;
}

.footer-icons a:hover {
  color: #00acee; 
  transform: scale(1.2); 
}
@media (max-width: 768px) {
  nav {
    padding: 8px;
    flex-direction:row;
  }
  
  nav a {
    font-size: 1em;
    padding: 8px 10px;
  }
  
  .card {
    margin: 10px;
  }
  
  header h1 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 0.5em; 
    padding: 1px ;
  }
}

nav a.home {
  font-size: 1.2em;
  font-weight: normal;
}

html {
  scroll-behavior: smooth;
}

.media-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.media-wrapper .media,
.media-wrapper .mapa {
  flex: 1;
}
.media-wrapper iframe {
  width: 100%;
  height: 315px;
  border: none;
}
@media (max-width: 768px) {
  .media-wrapper {
    flex-direction: column;
  }
}
