/* ===============================
   GRIGLIA OFFERTE AUTO
=============================== */

.offer-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* ===============================
   HEADER: PREZZO + BADGE
=============================== */

.offer-header {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 5;
  padding: 0 10px;
}


/* Prezzo sempre fisso a destra */
.offer-price {
  position: absolute;
  top: 0;
  right: 5px;
  text-align: right;    
  font-size: 22px;
  font-weight: bold;
  color: #990000;    
  padding-right: 5px; 
  padding-top:0;
}


.offer-price span {
  font-size: 11px;
  font-weight: normal;
  display: block;
  color: #19305c;
}

.badge-fast,
.badge-time {
  position: absolute;
  top: 0;
  left: 10px;
  padding: 5px 8px;
  font-size: 10px;
  background-color: #19305c;    
  border-radius: 5px;
  color: white;
  font-weight: bold;
}



/* ===============================
   IMMAGINE AUTO
=============================== */

.offer-img {
  position: relative;
  padding-top: 15px;
  text-align: center;
}

.car-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Logo sopra */
.logo-overlay {
  position: absolute;
  top: 15px; /* stesso punto dove parte la foto */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 260px; /* uguale alla foto */
  opacity: 0.80; /* watermark elegante */
  z-index: 2;
  pointer-events: none;
}



/* ===============================
   TESTO SOTTO IMMAGINE
=============================== */

.offer-card h4 {
  margin: 0!important;
  padding: 0!important;     
  line-height: 13px!important;    
  font-size: 15px;
  font-weight: 700;
  color: #19305c; 
  z-index: 5;    
}

.offer-version {
  font-size: 12px;
  color: #19305c;
  margin: 0!important;
  padding: 0!important;  
}

.offer-config {
  font-size: 11px;
  color: #19305c;
  margin-top: 0!important;
  padding-top: 0!important;
  margin-bottom: 6px;
}

/* ===============================
   PAGINAZIONE
=============================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Link normali */
.pagination a {
  background: #f4f4f4;
  color: #333;
  border: 1px solid #ddd;
}

/* Hover */
.pagination a:hover {
  background: #222;
  color: #fff;
  border-color: #222;
  transform: translateY(-2px);
}

/* Pagina attiva */
.pagination .current-page {
  background: #19305c;
  color: #fff;
  border: 1px solid #19305c;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

/* Frecce */
.pagination a:first-child,
.pagination a:last-child {
  font-size: 18px;
  font-weight: bold;
}

/* Mobile */
@media (max-width: 600px) {
  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
  }
}


/* ===============================
   FILTRI BOX
=============================== */

.filter-box {
  background: #fff;
  padding: 18px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group {
  margin-bottom: 5px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #222;
}

.slider-value {
  font-size: 13px;
  margin-top: 6px;
  color: #444;
}


/* ===============================
   SLIDER noUi (MANIGLIE PICCOLE)
=============================== */

.noUi-target {
  height: 6px;
  border-radius: 10px;
  border: none;
  background: #e6e6e6;
  margin-top: 8px;
}

.noUi-connect {
  background: #111;
}

.noUi-handle {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50%;
  border: 2px solid #111;
  background: #fff;
  cursor: pointer;
  top: -6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.noUi-handle:before,
.noUi-handle:after {
  display: none !important;
}

.noUi-handle:hover {
  transform: scale(1.1);
}


/* ===============================
   SELECT MODERNI
=============================== */

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: #111;
}

.filter-select:focus {
  outline: none;
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}


/* SCHEDA AUTO */
.car-gallery {
  display: flex;
  gap: 15px; 
/*  max-width: 800px;  */
  margin: auto;
}

/* Immagine grande */
.main-image img {
 /* width: 500px;*/
  height: auto;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Miniature */
.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbnails img {
  width: 120px;
 /* height: 75px;*/
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: 0.3s;
}

/* Hover effetto */
.thumbnails img:hover {
  transform: scale(1.05);
  border-color: #555;
}

/* Miniatura attiva */
.thumbnails img.active {
  border-color: red;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .car-gallery {
    flex-direction: column;
    align-items: center;
  }

  .main-image img {
    width: 100%;
    max-width: 400px;
  }

  .thumbnails {
    flex-direction: row;
    justify-content: center;
  }

  .thumbnails img {
    width: 80px;
    height: 60px;
  }
}

/* Contenitore immagine principale */
.main-image {
  position: relative;
  display: inline-block;
}

/* Filigrana */
.main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/img/noleggiofast_wmk.webp');
  background-repeat: no-repeat;
  background-position: bottom 15px right 15px;
  background-size: 400px;
  opacity: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .main-image::after {
    background-size: 200px;   /* regola a piacere */
    background-position: bottom 20px right 10px;
  }
}

.off-riepilogo { 
   margin-bottom:20px !important;
   border-radius: 5px;    
}

.option-group { margin-bottom:20px; }
.option-title { font-weight:bold; margin-bottom:8px; }

.option-btn {
  display:inline-block;
  padding:10px 16px;
  margin:5px;
  border:2px solid #ddd;
  border-radius:5px;
  cursor:pointer;
  background:#fff;
  transition:0.2s;
  font-size:14px;
}

.option-btn:hover {
  border-color:#19305c;
}

.option-btn.active {
  background:#19305c;
  color:#fff;
  border-color:#111;
}

.service-btn {
  border-style: dashed;
  font-size: 13px;
}


.car-tabs {
    margin-top: 40px;
}

/* NAV */
.car-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    gap: 10px;
}

.car-tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
}

.car-tab-btn:hover {
    color: #000;
}

.car-tab-btn.active {
    color: #000;
    border-bottom: 3px solid #e60023;
}

/* PANELS */
.car-tabs-content {
    padding-top: 25px;
}

.car-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.car-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Mobile */
@media (max-width: 768px) {
    .car-tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .car-tab-btn {
        flex: 0 0 auto;
    }
}

/* GRID */
.car-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.car-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

/* CARD */
.car-service-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.car-equipment-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    
}

.car-service-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

/* HEADER */
.car-service-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.car-service-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.car-service-title {
    font-weight: 600;
    font-size: 15px;
}

/* DESCRIPTION */
.car-service-description {
    text-align: left;
    font-size: 14px;
    margin: 15px 0;
    color: #555;
    flex-grow: 1;
}

/* PRICE */
.car-service-price {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: #e60023;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .car-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .car-equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .car-services-grid {
        grid-template-columns: 1fr;
    }
     .car-equipment-grid {
        grid-template-columns: 1fr;
    }
}
