/* home.css */

/* Ajuste geral do carrossel */
.carousel-item img,
.carousel-item video {
  height: 90vh; /* Tela cheia para o carrossel */
  object-fit: cover;
}

/* Legendas do carrossel */
.carousel-caption {
  padding: 20px;
  border-radius: 10px;
}

.carousel-caption h1 {
  color: #fff;
  font-weight: bold;
  font-size: 2.5rem;
}

.carousel-caption p {
  color: #ddd;
  font-size: 1.2rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .carousel-caption {
    font-size: 0.9rem;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}
/* Títulos da seção */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
  }
  
/* Galeria Dinâmica */
#car-gallery {
    background-color: #696462;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
  }
  
  /* Grade da galeria */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
  }
  
  .gallery-item.large {
    grid-column: span 2; /* Ocupar duas colunas */
    grid-row: span 2;    /* Ocupar duas linhas */
  }
  
  .gallery-item.wide {
    grid-column: span 2; /* Ocupar duas colunas */
  }
  
  .gallery-item:hover img {
    transform: scale(1.1); /* Zoom ao passar o mouse */
  }
  
  /* Sobreposição de texto */
  .gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .gallery-item:hover .overlay {
    opacity: 1;
  }
  
  .gallery-item .overlay h5 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
  }
  
  .gallery-item .overlay p {
    font-size: 1rem;
    color: #ddd;
  }

/* Estilização da Terceira Seção */
#vehicle-carousel {
    background-color: #f9f9f9;
    padding: 50px 0;
  }

  .carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #carousel-content {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding: 0 20px;
  }

  #carousel-content::-webkit-scrollbar {
    display: none;
  }
  .card {
    display: flex;
    flex-direction: column;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }

  .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .card-price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .card-description {
    font-size: 1.1rem;

  }
  .card-button {
    align-self: flex-start;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #fff;
    background-color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .card-button:hover {
    background-color: #969ea7;
  }
  @media (max-width: 768px) {
    .card {
      width: 90%;
    }

    .control-cards-prev {
      left: -30px;
    }

    .control-cards-next {
      right: -30px;
    }
}

/* Estilização da Quarta Seção highlights */

#differentials {
    background-color:#e9e6e3;
  }

  .differential-card {
    position: relative;
    height: 620px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(90%); /* Escurece a imagem para melhorar o contraste do texto */
  }

  .card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    z-index: 2;
  }

  .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .card-description {
    font-size: 1rem;
    line-height: 1.5;
  }

  @media (max-width: 768px) {
    .differential-card {
      height: 550px;
    }

    .card-title {
      font-size: 1.2rem;
    }

    .card-description {
      font-size: 0.9rem;
    }
  }

  /* Estilização do Footer */

  .footer {
    background-color: #f8f9fa;
    color: #333;
  }
  .footer-title {
    font-weight: bold;
    margin-bottom: 1rem;
  }
  .footer-links a {
    color: #333;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
  }
  .footer-links a:hover {
    text-decoration: underline;
  }
  .footer-divider {
    border-color: #ddd;
  }
  .footer-logo {
    max-width: 120px;
  }
  .social-links a {
    color: #333;
    font-size: 1.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
  }
  .social-links a:hover {
    color: #e10a1d;
  }