/* Search Section */
.search-section {
  margin-top: -80px;
  position: relative;
  z-index: 100;
  padding-bottom: 40px;
}

.search-bar {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  padding: 32px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
  border: 1px solid #dc2626;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.search-field select {
  background-color: #000;
  border: 1px solid #333;
  color: white;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.search-field select:focus {
  outline: none;
  border-color: #dc2626;
}

.search-btn {
  margin-top: 26px;
  font-size: 16px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 12px;
  transition: all 0.4s ease;
  border: 1px solid #222;
}

.feature-card:hover {
  border-color: #dc2626;
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

.feature-icon {
  font-size: 60px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: #999;
  line-height: 1.6;
}

/* Promozioni */
.promozioni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.promo-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  transition: all 0.4s ease;
}

.promo-card:hover {
  border-color: #dc2626;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

.promo-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.promo-card:hover .promo-image img {
  transform: scale(1.1);
}

.promo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.promo-content {
  padding: 24px;
}

.promo-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.promo-model {
  color: #999;
  margin-bottom: 16px;
  font-size: 16px;
}

.promo-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.price-label {
  color: #999;
  font-size: 14px;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: #dc2626;
}

.promo-content button {
  width: 100%;
}

/* Modelli */
.modelli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.modello-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid #222;
  cursor: pointer;
}

.modello-card:hover {
  border-color: #dc2626;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.modello-image {
  height: 180px;
  overflow: hidden;
}

.modello-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modello-card:hover .modello-image img {
  transform: scale(1.1);
}

.modello-info {
  padding: 20px;
  text-align: center;
}

.modello-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modello-info p {
  color: #999;
}

/* Categorie */
.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.categoria-card {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.4s ease;
}

.categoria-card:hover {
  transform: scale(1.02);
}

.categoria-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.categoria-card:hover img {
  transform: scale(1.1);
}

.categoria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: white;
}

.categoria-overlay h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.categoria-overlay p {
  font-size: 16px;
  color: #e5e5e5;
  margin-bottom: 16px;
}

.categoria-cta {
  color: #dc2626;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.categoria-card:hover .categoria-cta {
  transform: translateX(10px);
  display: inline-block;
}

@media (max-width: 768px) {
  .search-bar {
    grid-template-columns: 1fr;
  }

  .search-btn {
    margin-top: 0;
  }

  .categorie-grid {
    grid-template-columns: 1fr;
  }
}

/* 2.1.11 - Unified purchase + rental search */
.vrauto-unified-search-shell {
  display: grid;
  gap: 0;
}

.vrauto-search-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.vrauto-search-intro h2 {
  margin: 4px 0 0;
  color: #101216;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.04em;
}

.vrauto-search-intro p {
  margin: 0;
  color: #737780;
  font-size: 12px;
}

.vrauto-search-intro p strong {
  color: #111318;
  font-size: 20px;
}

.vrauto-unified-search {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.vrauto-unified-search[data-catalog-scope="tutte"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vrauto-catalog-switcher {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 3px;
  padding: 0;
  border: 0;
}

.vrauto-catalog-switcher legend {
  margin: 0 0 8px;
  color: #747982;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.vrauto-catalog-switcher__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #e2e4e7;
  border-radius: 12px;
  background: #f3f4f5;
}

.vrauto-catalog-switcher__option {
  min-width: 0;
  cursor: pointer;
}

.vrauto-catalog-switcher__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vrauto-catalog-switcher__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 12px;
  border-radius: 9px;
  color: #666b73;
  font-size: 12px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.vrauto-catalog-switcher__option span small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e4e6e9;
  color: #70757d;
  font-size: 9px;
}

.vrauto-catalog-switcher__option input:checked + span {
  background: #101216;
  color: #fff;
  box-shadow: 0 7px 18px rgba(0,0,0,.14);
}

.vrauto-catalog-switcher__option input:checked + span small {
  background: rgba(237,34,40,.20);
  color: #ff5e63;
}

.search-field {
  display: grid;
  gap: 7px;
}

.search-field label {
  color: #747982;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.search-field input,
.search-field select {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #dcdfe3;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #111318;
  font: inherit;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-field input:focus,
.search-field select:focus {
  border-color: #ed2228;
  box-shadow: 0 0 0 3px rgba(237,34,40,.09);
}

.search-field input::placeholder {
  color: #a2a6ad;
}

.vrauto-unified-search__action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
}

.vrauto-unified-search__action .search-btn {
  min-height: 50px;
  margin: 0;
  padding-inline: 20px;
  border: 0;
  white-space: nowrap;
}

.vrauto-unified-search__action > a {
  color: #737780;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.vrauto-unified-search__action > a:hover {
  color: #111318;
}

[data-vrauto-scope-field][hidden] {
  display: none !important;
}

@media (max-width: 1150px) {
  .vrauto-unified-search,
  .vrauto-unified-search[data-catalog-scope="tutte"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .vrauto-search-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .vrauto-unified-search,
  .vrauto-unified-search[data-catalog-scope="tutte"] {
    grid-template-columns: 1fr;
  }

  .vrauto-catalog-switcher__option span {
    min-height: 40px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .vrauto-catalog-switcher__option span small {
    display: none;
  }

  .vrauto-unified-search__action {
    align-items: stretch;
    flex-direction: column;
  }

  .vrauto-unified-search__action .search-btn {
    width: 100%;
  }

  .vrauto-unified-search__action > a {
    text-align: center;
  }
}
