:root { 
  --f1-red: #FF1E00; 
  --f1-black: #15151E; 
  --f1-white: #FFFFFF;
 } 
  
body { 
 margin: 0;
 font-family: Arial, Helvetica, sans-serif; 
 background-color: var(--f1-black); 
 color: var(--f1-white);
  } 

   a {
  cursor: url("cursor-f1.png") 16 16, pointer;
}
     
.topbar { width: 100%;
  background-color: #1c1c1c;
  padding: 15px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  } 
         
.topbar nav ul { list-style: none; 
  display: flex;
  justify-content: center; 
  gap: 40px; 
  margin: 0; 
  padding: 0; 
} 

.topbar nav ul li a { 
  text-decoration: none; 
  color: var(--f1-white); 
  font-weight: bold; 
  transition: color 0.3s ease; 
} 

.topbar nav ul li a:hover { 
  color: var(--f1-red); 
} 

.content { 
  display: flex; 
  justify-content: 
  center; padding: 40px 20px; 
} 

.gallery { 
  display: flex; 
  flex-direction: column; 
  gap: 30px; width: 100%; 
  max-width: 1200px; margin: 0 auto; 
} 

.car-card { 
  position: relative; 
  width: 50%; 
  margin: 0 auto; 
  overflow: hidden; 
  border-radius: 12px; 
  cursor: pointer; 
  background-color: var(--f1-black); 
} 

.car-card img { 
  width: 100%; 
  height: auto; 
  display: block; 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
} 

.car-card:hover img { 
  transform: scale(1.03); 
  box-shadow: 0 10px 25px rgba(255, 30, 0, 0.5); 
} 

.car-card h1 { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  color: var(--f1-red); 
  font-size: 36px; 
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
  pointer-events: none; 
} 

@media (max-width: 900px) { 
  .car-card { width: 70%; } 
} 

@media (max-width: 600px) { 
  .car-card { width: 90%; 
} 
  .car-card h1 { 
    font-size: 22px;
 } 
 
 .topbar nav ul { 
  flex-direction: column; 
  gap: 15px; } }

.carro-container {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.carro-img {
  width: 90%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: auto;
  transition: transform 0.25s ease;
}

.carro-img:hover {
  transform: scale(1.03);
}



.pilotos-equipa {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  padding: 20px;
  flex-wrap: wrap;
}

.piloto-equipa-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.piloto-equipa-card:hover {
  transform: scale(1.05);
}

.piloto-equipa-img {
  width: 100%;
  max-width: 320px;
  height: auto;
}


@media (max-width: 700px) {
  .pilotos-equipa {
    gap: 30px;
  }

  .piloto-equipa-img {
    max-width: 260px;
  }
}

.equipa-info {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 30px;
}

.equipa-titulo {
  font-size: 36px;
  font-weight: bold;
  color: var(--f1-red);
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
}

.equipa-titulo::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background-color: var(--f1-red);
  margin-top: 10px;
}

.equipa-texto {
  font-size: 19px;
  line-height: 1.8;
  color: #e0e0e0;
  text-align: justify;
  max-width: 950px;
}

.noticias-index {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 30px;
}

.noticia-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
}

.noticia-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.noticia-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.2)
  );
  display: flex;
  align-items: flex-end;
  padding: 30px;
}


.noticia-titulo {
  font-size: 32px;
  color: var(--f1-white);
  font-weight: bold;
  max-width: 800px;
  line-height: 1.2;
}

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

.noticia-card:hover .noticia-titulo {
  color: var(--f1-red);
}


@media (max-width: 768px) {
  .noticia-img {
    height: 260px;
  }

  .noticia-titulo {
    font-size: 22px;
  }
}

  .noticia-container {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 25px;
    color: var(--f1-white);
  }

  .noticia-titulo-principal {
    font-size: 38px;
    font-weight: bold;
    color: var(--f1-red);
    margin-bottom: 20px;
    text-align: center;
  }

  .noticia-data {
    text-align: center;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
  }

  .noticia-imagem {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
  }

  .noticia-texto {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 25px;
  }

  .noticia-video {
    width: 100%;
    margin: 40px 0;
    display: flex;
    justify-content: center;
  }

  .noticia-video iframe {
    width: 640px;
    height: 360px;
    border: none;
    border-radius: 10px;
  }

  .noticia-rodape {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #2a2a2a;
    font-size: 16px;
    color: #aaa;
  }

  @media (max-width: 768px) {
    .noticia-video iframe {
      height: 280px;
    }
    .noticia-titulo-principal {
      font-size: 30px;
    }
  }
