body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f5f8fa;
  color: #333;
}

header {
  background-color: #0a2c56;
  height: 6rem;
  padding: 0 2rem 0 0rem;
  display: flex;
  align-items: center;
  
  justify-content: space-between;
}

.logo-nav {
  max-height: 9rem;
  
  object-fit: contain;
}

nav.menu-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem 0;
}
nav.menu-scroll::-webkit-scrollbar {
  display: none;
}
nav.menu-scroll a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 0.3125rem;
}
nav.menu-scroll a:hover {
  background-color: #1d4e89;
}

.intro {
  background-color: #e3ecf5;
  padding: 2rem;
  text-align: center;
}

h1, h2 {
  color: #0a2c56;
}

.filtros {
  background-color: #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50rem;
  margin: 2rem auto;
}

.filtros select, .filtros button {
  padding: 0.75rem;
  border-radius: 6.1875rem;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.filtros button {
  background-color: #0a2c56;
  color: white;
  cursor: pointer;
}
.filtros button:hover {
  background-color: #123d75;
}

.resultados, #posto-mais-proximo {
  max-width: 50rem;
  margin: 2rem auto;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.625rem rgba(0,0,0,0.05);
}

#map {
  height: 25rem;
  margin: 2rem auto;
  max-width: 90%;
  border: 0.125rem solid #0a2c56;
  border-radius: 0.5rem;
}

#btn-mais-proximo {
  margin: 1rem auto;
  display: block;
  background-color: #0a2c56;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}
#btn-mais-proximo:hover {
  background-color: #123d75;
}

.cuidados {
  background-color: #e3ecf5;
  padding: 2rem;
  text-align: center;
}
.cuidados ul {
  list-style: none;
  padding: 0;
}
.cuidados li {
  margin: 0.5rem 0;
}
.cuidados .leia-mais {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #0a2c56;
  color: white;
  border-radius: 0.375rem;
  text-decoration: none;
}
.cuidados .leia-mais:hover {
  background-color: #123d75;
}

footer {
  background-color: #0a2c56;
  color: white;
  text-align: center;
  padding: 2rem;
}
footer p, footer h3 {
  margin: 0.5rem 0;
}

main.conteudo {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: Arial, sans-serif;
}

.intro {
  text-align: left;
  max-width: 50rem;
  margin: 0 auto 2rem auto;
}

.bloco-dica {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 0.625rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
}

.bloco-dica img {
  flex: 1 1 18.75rem;
  max-width: 100%;
  border-radius: 0.5rem;
}

.bloco-dica-texto {
  flex: 2 1 25rem;
}

.bloco-dica h2, .bloco-dica h3 {
  color: #054b8b;
}

.bloco-dica ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.bloco-dica p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

a {
  color: #054b8b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#postos-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem;
}

@media screen and (min-width: 48rem) {
  #postos-container {
    grid-template-columns: 1fr 1fr;
  }
}

.posto {
  background-color: #fff;
  border: 0.0625rem solid #ccc;
  border-radius: 0.3125rem;
  padding: 1rem;
  box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.posto h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #0a2c56;
}

.posto p {
  margin: 0.25rem 0;
  line-height: 1.5;
}

.posto:hover {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  border-color: #0a2c56;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

.card {
  background: var(--secondary);
  border-radius: 0.625rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  
}

.card h2 {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text);
  margin-bottom: 1rem;
}
.card .btn-cta {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  text-decoration: none;
  display: inline-block;
}
.card .btn-cta:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.missao-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.missao-texto {
  flex: 2 1 350px;
  min-width: 300px;
}
.missao-texto h1 {
  color: #0a2c56;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.missao-texto h2 {
  color: #054b8b;
  font-size: 1.3rem;
  margin-top: 1.5rem;
}
.missao-texto ul {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 1.2rem;
  list-style: disc;
}
.missao-fotos {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  min-width: 260px;
}
.foto-grande {
  width: 100%;
  max-width: 320px;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  object-fit: cover;
}
.fotos-menores {
  display: flex;
  gap: 1rem;
  width: 100%;
}
.fotos-menores img {
  width: 48%;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  object-fit: cover;
}
.missao-fotos-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  min-width: 260px;
  max-width: 500px;
}
.missao-img-grande {
  grid-row: span 2;
  width: 100%;
  max-width: 220px;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  object-fit: cover;
}
.missao-img-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  justify-content: center;
}
.missao-img-pequena {
  width: 100px;
  height: 100px;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  object-fit: cover;
}
@media (max-width: 900px) {
  .missao-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0.5rem;
  }
  .missao-fotos {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
  }
  .foto-grande {
    max-width: 60%;
  }
  .fotos-menores {
    flex-direction: column;
    width: 40%;
    gap: 1rem;
  }
  .fotos-menores img {
    width: 100%;
  }
  .missao-fotos-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    max-width: 100%;
  }
  .missao-img-grande {
    max-width: 100%;
  }
  .missao-img-pequena {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 600px) {
  .missao-layout {
    padding: 0.5rem 0.2rem;
  }
  .missao-fotos {
    flex-direction: column;
    align-items: stretch;
  }
  .foto-grande, .fotos-menores img {
    max-width: 100%;
    width: 100%;
  }
  .fotos-menores {
    flex-direction: row;
    gap: 0.5rem;
  }
  .missao-fotos-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.5rem;
  }
  .missao-img-grande, .missao-img-pequena {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  .missao-img-col {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }
  .card {
    padding: 1rem;
  }
}
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    margin: 1rem 0;
  }
  .card {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

.card, .bloco-dica, .missao-texto, .missao-layout section, .missao-layout main, .filtro-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.card.visible, .bloco-dica.visible, .missao-texto.visible, .missao-layout section.visible, .missao-layout main.visible, .filtro-item.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .card, .bloco-dica, .missao-texto, .missao-layout section, .missao-layout main, .filtro-item {
    transition: none !important;
  }
}
