body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #212529;
  justify-content: space-between;
  align-items: center;
}
    
.contatti {
  padding: 2rem;
  background-color: #e2e2e2;
  text-align: center;
}
    
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
  
.custom-card {
  width: 87%;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: white;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
    
.custom-card:hover {
  transform: translateY(-5px);
}
    
.car-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
    
.card-body {
  padding: 1rem;
}
    
.car-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
}
    
.car-subtitle {
  font-size: 0.9rem;
  color: #444;
}
    
.car-info {
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #444;
}
    
.car-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #000;
}
    
.btn-primary {
  background-color: #1a00ff;
  border: none;
}
    
.btn-primary:hover {
  background-color: #0f0080;
}
  
.scrolled {
  background-color: rgba(33, 37, 41, 0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.immagine-miniatura img {
  cursor: pointer;
  border: 2px solid transparent;
}

.immagine-miniatura img:hover {
    border-color: #007bff;
}

.immagine-principale {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.etichetta {
    background-color: #28a745;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 0.3em;
    font-size: 0.8em;
    margin-right: 0.3em;
}

.pulsante-info {
    background-color: #0000ff;
    color: white;
    font-weight: bold;
    padding: 1em 2em;
    border: none;
    border-radius: 0.3em;
    margin-top: 20px;
}

.pulsante-info:hover {
    background-color: #0000cc;
}

.carousel-item img {
  width: 100%;
  height: 500px; /* o un'altezza fissa a tua scelta */
  object-fit: cover;
}