/* ============================================
   AUTO.CSS — pagina vetture disponibili
   ============================================ */

/* Navbar sempre solida su questa pagina */
.navbar {
  position: fixed;
  background: var(--viola-scuro) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-attivo {
  background: var(--giallo) !important;
  color: var(--viola-scuro) !important;
  border-color: var(--giallo) !important;
}

/* ============================================
   HEADER PAGINA
   ============================================ */

.auto-page-header {
  background: var(--viola-scuro);
  color: white;
  padding: 9rem 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.auto-page-header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(245, 197, 24, 0.1);
  pointer-events: none;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--giallo);
}

.auto-page-titolo {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.auto-page-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 480px;
  padding-top:2rem;
}

/* ============================================
   GRIGLIA AUTO
   ============================================ */

.auto-page-main {
  padding: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* ============================================
   CARD AUTO
   ============================================ */

.auto-item {
  background: white;
  border-radius: 20px;
  border: 1px solid #E8E0F0;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.auto-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(107, 63, 160, 0.13);
}

.auto-item-foto-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--viola-chiaro);
  overflow: hidden;
}

.auto-item-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auto-item-foto-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

.auto-item-foto-wrap:not(.no-foto) .auto-item-foto-placeholder {
  display: none;
}

.auto-item-foto-wrap.no-foto .auto-item-foto {
  display: none;
}

.auto-item-info {
  padding: 1.5rem;
}

.auto-item-nome {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--viola-scuro);
  margin-bottom: 0.75rem;
}

.auto-item-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.auto-item-badge {
  background: var(--viola-chiaro);
  color: var(--viola-scuro);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.auto-item-badge--prezzo {
  background: transparent;
  color: var(--viola);
  border: 1px solid var(--viola-chiaro);
}

.auto-item-desc {
  font-size: 0.88rem;
  color: var(--testo-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.auto-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auto-item-prezzo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--viola-scuro);
}

.btn-whatsapp--sm {
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
}

/* ============================================
   STATO VUOTO
   ============================================ */

.auto-vuoto {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--testo-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.auto-vuoto p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .auto-page-header {
    padding: 8rem 1.5rem 2.5rem;
  }

  .auto-page-titolo {
    font-size: 2rem;
  }

  .auto-page-main {
    padding: 2rem 1.5rem;
    grid-template-columns: 1fr;
  }
}
