/* --- Fleet Italia: sfondo della home --- */
/* Sovrascrive l'immagine standard della hero (hero-auto, hero-furgoni, ...) e quelle
   impostate inline o via JS dal motore quando si cambia famiglia o sede. */
#uff {
  background-image: url("../images/home.jpeg") !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  background-color: #000;
}

/* Mobile: il motore cambia immagine e padding sotto i 576px, rimetto la nostra
   centrata così si vedono logo e auto centrali. */
@media (max-width: 576px) {
  #uff {
    background-image: url("../images/home.jpeg") !important;
    background-position: center center !important;
  }
}

/* --- Fleet Italia: immagine "Scopri la nostra flotta" --- */
/* Il motore mette flotta.png standard (anche via JS al cambio famiglia): solo in quel
   caso nascondo il contenuto dell'img e mostro la nostra auto scontornata. Stesse
   proporzioni 16:9 dell'originale, quindi l'impaginazione non cambia. Le immagini delle
   altre famiglie (furgoni, bici, ...) restano quelle del motore. */
#flottaImage[src$="/flotta.png"] {
  object-position: -99999px 0;
  background: url("../images/flotta.png") center / contain no-repeat;
}

/* --- Fleet Italia: slider della home --- */
/* Le immagini dello slider auto (slider-01/02 e versioni mobile) sono sostituite con le
   nostre, che hanno già logo e strisce verdi. Stesse proporzioni delle standard
   (desktop 1920x745 ~ 1600x620, mobile 1200x800). */
#carouselGestirent img[src$="/slider-01.jpg"] { object-position: -99999px 0; background: url("../images/slider-01.jpg") center / cover no-repeat; }
#carouselGestirent img[src$="/slider-02.jpg"] { object-position: -99999px 0; background: url("../images/slider-02.jpg") center / cover no-repeat; }
#carouselGestirent img[src$="/slider-mobile-01.jpg"] { object-position: -99999px 0; background: url("../images/slider-mobile-01.jpg") center / cover no-repeat; }
#carouselGestirent img[src$="/slider-mobile-02.jpg"] { object-position: -99999px 0; background: url("../images/slider-mobile-02.jpg") center / cover no-repeat; }

/* Titolo e sottotitolo sotto il logo, in basso a sinistra, allineati al logo */
#carouselGestirent .carousel-caption {
  top: auto !important;
  bottom: 9% !important;
  transform: none !important;
  left: 5% !important;
}
#carouselGestirent .carousel-caption h1,
#carouselGestirent .carousel-caption blockquote {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

/* Pallini: rettangolino verde per la slide attiva, trattino bianco per le altre */
#carouselGestirent .carousel-indicators { align-items: center; }
#carouselGestirent .carousel-indicators [data-mdb-target] {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background-color: #fff;
  opacity: .9;
}
#carouselGestirent .carousel-indicators .active {
  width: 36px;
  height: 22px;
  border: 3px solid #39c83c;
  border-radius: 6px;
  background-color: transparent;
  opacity: 1;
}

@media (max-width: 991.98px) {
  #carouselGestirent .carousel-caption { left: 8% !important; bottom: 14% !important; }
}
/* Telefono: la slide è alta ~230px, titolo più piccolo e senza sottotitolo per non coprire il logo */
@media (max-width: 767.98px) {
  #carouselGestirent .carousel-caption { bottom: 17% !important; }
  #carouselGestirent .carousel-caption h1 { font-size: 1.3rem; margin-bottom: 0; }
  #carouselGestirent .carousel-caption blockquote { display: none; }
}
