/**
 * 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
 */

 .carousel {    
  margin: 0 0 60px;
  overflow: hidden;
  width: 100%;  
}
.carousel .direction{ 
  position: absolute;
  top: 50%;
  width: 100%;
}
.carousel .carousel-item img{ height: auto;}
.carousel .carousel-item .caption {
  color: #000000;
  top: 0%;
  bottom: 0%;
  left: 13%;
  display: flex;
  align-items: center;
  max-width: 800px;
}
.carousel .carousel-item .caption .slide-text .slidertext1 {
  color: #4e7661;
  font-size: 20px;
  font-weight: 500;  
}
.carousel .carousel-item .caption .slide-text .slidertext2 {
  color: #000000;
  font-size: 58px;
  line-height: 68px;
  font-weight: 500;
  text-transform: capitalize;
  margin: 10px 0px 30px;
}
.carousel .carousel-item .caption .slide-text .slidertext3{
  font-size: 20px;
  line-height: 26px;
  text-transform: capitalize;
  margin: 15px 0px;
}
.carousel .carousel-control.left, .carousel .carousel-control.right {
  top: 50%;
  bottom: auto;
}
.carousel .carousel-item .caption .slide-text a {  
  font-size: 20px;
  color: #000000;
  width: auto;
  padding: 0px;
  background: transparent;
  text-decoration: underline;  
}
.carousel-inner{
  margin: 0px;
  border-radius: 0px;
}
.carousel .carousel-item figure{
  margin: 0px;
}
.carousel .carousel-item figure a{ display: inline-block; width: 100%;}
.carousel-control{
  width: 5%;
}
.carousel-indicators{
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  bottom: 30px;
}
.carousel-indicators li{
  background-color: #ffffff;
  border: none;
  width: 13px;
  height: 13px;
}
.carousel-indicators .active{
  width: 35px;
  height: 13px;
  background-color: #d8cdba;
  border: none;
}
.carousel-control .icon-prev, .carousel-control .icon-next{
  width: 40px;
  height: 40px;
}
.carousel .carousel-control.left, .carousel .carousel-control.right{
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.carousel .carousel-control.left{ left: -50px;}
.carousel .carousel-control.right{ right:  -50px;}
.carousel:hover .carousel-control.right{ right: 30px;}
.carousel:hover .carousel-control.left{ left: 30px;}
.carousel .carousel-control .icon-next::before{
  content: "";
  height: 40px;
  width: 40px;
  display: inline-block;
  vertical-align: top;
  -webkit-mask-image: url(../images/right-arrow.svg);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url(../images/right-arrow.svg);
  mask-position: center;
  mask-repeat: no-repeat;
  background-color: #d1d1d1;
  mask-size: 18px;
  font-size: 18px;
  -webkit-mask-size: 18px;  
} 
.carousel .carousel-control .icon-prev::before{
  content: "";
  height: 40px;
  width: 40px;
  display: inline-block;
  vertical-align: top;
  -webkit-mask-image: url(../images/left-arrow.svg);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url(../images/left-arrow.svg);
  mask-position: center;
  mask-repeat: no-repeat;
  background-color: #d1d1d1;
  mask-size: 18px;
  font-size: 18px;
  -webkit-mask-size: 18px;  
}
.carousel .carousel-control .icon-next:hover::before, 
.carousel .carousel-control .icon-prev:hover::before {
  background-color: #363030;
}
.carousel .carousel-control .icon-prev{ left: 10px;}
.carousel .carousel-control .icon-next { right: 10px;}
.cphomeslider-container {
  margin-bottom: 50px;
  position: relative;
  float: left;
  width: 100%;
}
.cphomeslider {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.cphomeslider li {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.cphomeslider img {
  display: block;
  position: relative;
  z-index: 1;
  height: auto;
  width: 100%;
  border: 0;
}

.cphomeslider .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;
}

.cphomeslider_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("../cphomeslider.gif") no-repeat left top;
  margin-top: -45px;
}

.cphomeslider_nav:active {
  opacity: 1.0;
}

.cphomeslider_nav.next {
  left: auto;
  background-position: right top;
  right: 0;
}

/* =============================================
   DISSOLVENZA (fade) al posto dello slide
   ============================================= */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}
.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
}
.carousel-fade .carousel-inner {
  position: relative;
}

/* =============================================
   IMMAGINI DESKTOP / MOBILE
   ============================================= */
.slider-img--mobile { display: none; }
.slider-img--desktop { display: block; width: 100%; height: auto; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1449px) {
  .carousel .carousel-item .caption .slide-text .slidertext2{ font-size: 50px; line-height: 60px;} 
}
@media (max-width: 1199px) {
  .carousel .carousel-item .caption .slide-text .slidertext2{ font-size: 40px; line-height: 50px; }
}
@media (max-width: 991px) {  
  .carousel {margin: 0 0 40px;}
  .carousel{ width: 100%;}
  .carousel .carousel-item .caption .slide-text .slidertext1 { margin-bottom: 10px; }
  .carousel .carousel-item .caption .slide-text .slidertext2 { font-size: 34px; line-height: 44px;}
}

/* =============================================
   MOBILE: immagine dedicata, niente frecce,
   indicatori ridotti, caption centrata
   ============================================= */
@media (max-width: 767px) {
  /* Switcha le immagini */
  .slider-img--desktop { display: none !important; }
  .slider-img--mobile  { display: block !important; width: 100%; height: auto; }

  /* Carousel senza margine inferiore eccessivo */
  .carousel { margin: 0 0 30px; }

  /* Caption centrata come 50ml */
  .carousel .carousel-item .caption {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0 20px;
  }

  /* Testi ridotti */
  .carousel .carousel-item .caption .slide-text .slidertext1 { font-size: 14px; margin-bottom: 0; }
  .carousel .carousel-item .caption .slide-text .slidertext2 {
    font-size: 20px;
    line-height: 25px;
    margin: 3px 0px 3px;
  }
  .carousel .carousel-item .caption .slide-text a.sliderbutton { font-size: 14px; }

  /* Indicatori in basso */
  .carousel-indicators { bottom: 10px; }

  /* Frecce nascoste su mobile */
  .carousel .direction { display: none !important; }
}

@media (max-width: 480px) {
  .carousel-indicators { display: none; }
  .carousel .carousel-item .caption .slide-text .slidertext1 { font-size: 12px; }
  .carousel .carousel-item .caption .slide-text .slidertext2 { font-size: 14px; line-height: 18px; margin: 0; }
}

.cp-imageslider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cp-imageslider__track {
  position: relative;
  width: 100%;
}

.cp-imageslider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.cp-imageslider__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cp-imageslider__link,
.cp-imageslider__picture {
  display: block;
  width: 100%;
}

.cp-imageslider__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
}

.cp-imageslider,
.cp-imageslider * {
  box-sizing: border-box;
}



.cp-imageslider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cp-imageslider__track {
  position: relative;
  width: 100%;
}

.cp-imageslider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.cp-imageslider__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cp-imageslider__link,
.cp-imageslider__picture {
  display: block;
  width: 100%;
}

.cp-imageslider__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
}

.cp-imageslider,
.cp-imageslider * {
  box-sizing: border-box;
}
