/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */

.advancedslider-container {
  margin-bottom: 50px;
  position: relative;
  float: left;
  width: 100%;
  /* Rimuovi min-height fisso - lascia che si adatti all'immagine */
  overflow: hidden;
}

/* Responsive images - desktop by default */
.advancedslider .img-mobile {
  display: none;
}

.advancedslider .img-desktop {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 1199px) {
  .advancedslider .img-desktop {
    display: none !important;
  }

  .advancedslider .img-mobile {
    display: block !important;
    width: 100%;
    height: auto;
    /* RIMUOVI object-fit: cover per evitare il taglio */
    object-fit: contain;
  }
}

.advancedslider {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
  /* Rimuovi height: 100% per lasciare che si adatti al contenuto */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.advancedslider.rslides {
  opacity: 1 !important;
}

.advancedslider li {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.advancedslider img {
  display: block;
  position: relative;
  z-index: 1;
  height: auto;
  width: 100% !important;
  border: 0;
}

.advancedslider .caption {
  display: block;
  position: absolute;
  z-index: 2;
  font-size: 1em;
  text-shadow: none;
  color: #fff;
  background: #000;
  background: rgba(0, 0, 0, .6);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 20px;
  margin: 0;
  max-width: none;
}

.advancedslider_nav {
  position: absolute;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  top: 52%;
  left: 0;
  opacity: 0.7;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  height: 61px;
  width: 38px;
  background: transparent url("../advancedslider.gif") no-repeat left top;
  margin-top: -45px;
}

.advancedslider_nav:active {
  opacity: 1.0;
}

.advancedslider_nav.next {
  left: auto;
  background-position: right top;
  right: 0;
}