body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
  padding-top: 210px;
    background: 
    linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), /* camada semi-transparente */
    url('fundo.png') no-repeat center center;
  background-size: cover;
  background-repeat: repeat;
}

header {
  background: #004aad;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 22px;
  position: fixed; 
  top: 0;
  left: 0;
  width: 98%;
  z-index: 1000;
}

.redes-sociais{
    text-align: right;
}
.redes-sociais a {
  color: white;
  margin: 0 8px;
  text-decoration: none;
  font-size: 30px;
}

.redes-sociais a:hover {
  color: orange;
  margin: 0 8px;
  text-decoration: none;
  font-size: 35px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

#ticker-container {
  width: 100%;
  overflow: hidden;
  background: darkblue;
  color: #fff;
  padding: 2px -3px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  position: relative;
}

#ticker-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

#ticker-marquee span {
  display: inline-flex;
  align-items: center;
  margin-right: 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



.conversor {
  text-align: center;
  padding: 30px;
  background: white;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.converter-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.converter-box input, 
.converter-box select, 
.converter-box button {
  width: 100%;
  margin: 2px 0;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid darkblue;
  text-align: center;
}

.converter-box button {
  background: #004aad;
  color: white;
  border: none;
  cursor: pointer;
}

.converter-box button:hover {
  background: #0066ff;
}

#resultado {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}

.cotacoes {
  margin: 20px;
  background: darkblue;
  color: #fff;
  padding: 10px;
  font-size: 22px;
}

.noticias {
  margin: 20px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.noticias h2 {
  text-align: center;
  margin-bottom: 15px;
}

/* Container do carrossel */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1600px;
  margin: auto;
}

/* Faixa dos slides */
.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Cada card */
.card-noticia {
  min-width: 250px;
  max-width: 250px;
  margin: 0 10px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.card-noticia img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-noticia .conteudo {
  padding: 10px;
}

.card-noticia h3 {
  font-size: 15px;
  margin: 0 0 10px 0;
}

.card-noticia a {
  display: inline-block;
  margin-top: auto;
  padding: 8px;
  background: #004aad;
  color: white;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  border-radius: 5px;
}

.card-noticia a:hover {
  background: #0066ff;
}

/* Botões do carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Seções escuras (Sobre e Contato) */
.dark-section {
  background: rgb(11, 9, 103);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.dark-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.dark-section p {
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

#sobre {
  background: rgb(64, 114, 158);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.dark-section-sobre h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.dark-sectionSobre p {
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Serviços */
.services-container {
  background: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
}

.services-container h2 {
  margin-bottom: 30px;
  font-size: 40px;
  color: #004aad;
}

.services-container ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
}

.services-container li {
  flex: 1 1 280px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  text-align: center;
}

.services-container i {
  font-size: 48px;
  color: #004aad;
  margin-bottom: 15px;
}

.services-container h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
}

.services-container p {
  font-size: 18px;
  color: darkblue;
  
  line-height: 1.5;
  padding: 25px 30px;
}

/* Formulário de Contato */
.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-container input,
.contact-container textarea {
  padding: 12px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  width: 100%;
}

.contact-container textarea {
  height: 120px;
  resize: none;
}

.contact-container input[type="submit"] {
  background: #004aad;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-container input[type="submit"]:hover {
  background: #0066ff;
}
