* { box-sizing: border-box; }

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 50vw;
  max-height: 400px;
  margin: 50px auto;
  perspective: 1500px;
  overflow: visible;
}

.coverflow-carousel .carousel-wrapper {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.coverflow-carousel .carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  transition: transform 1s ease; /* scorrimento più lento */
}

.coverflow-carousel .carousel-slide {
  position: absolute;
  width: 60%;
  height: 80%;
  border-radius: 10px;
  overflow: hidden;
  transform-origin: center center;
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease; /* più lento */
}

.coverflow-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide centrale */
.coverflow-carousel .carousel-slide.active {
  opacity: 1;
  transform: translateX(0) translateZ(100px) scale(1.2);
  z-index: 3;
}

/* Slide laterali vicine alla centrale */
.coverflow-carousel .carousel-slide.left {
  transform: translateX(-60%) translateY(0) translateZ(0px) rotateY(35deg) scale(0.9);
  opacity: 1;
  z-index: 2;
}

.coverflow-carousel .carousel-slide.right {
  transform: translateX(60%) translateY(0) translateZ(0px) rotateY(-35deg) scale(0.9);
  opacity: 1;
  z-index: 2;
}

/* Ultime slide esterne più vicine e leggermente sotto */
.coverflow-carousel .carousel-slide.left2 {
  transform: translateX(-100%) translateY(15px) translateZ(-30px) rotateY(50deg) scale(0.7);
  opacity: 1;
  z-index: 1;
}

.coverflow-carousel .carousel-slide.right2 {
  transform: translateX(100%) translateY(15px) translateZ(-30px) rotateY(-50deg) scale(0.7);
  opacity: 1;
  z-index: 1;
}

/* Pulsanti */
button.prev, button.next {
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 5;
  color: #fff;
}


/* Pallini */
.carousel-dots {
  display: flex;
  gap: 10px;
  z-index: 5;
  padding: 0 30px;
  margin-top: 13px;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
}
.carousel-dots button.active {
  background: #B84BB4;
}

/* Media Queries per dispositivi piccoli */
@media (min-width:992px) and (max-width: 1199.98px) { 
  .coverflow-carousel .carousel-slide {
    width: 70%;
    height: 80%;
  }
  .coverflow-carousel .carousel-slide.left {
    transform: translateX(-35%) translateY(0) rotateY(25deg) scale(0.75);
  }
  .coverflow-carousel .carousel-slide.right {
    transform: translateX(35%) translateY(0) rotateY(-25deg) scale(0.75);
  }
  .coverflow-carousel .carousel-slide.left2 {
    transform: translateX(-50%) translateY(10px) rotateY(40deg) scale(0.55);
  }
  .coverflow-carousel .carousel-slide.right2 {
    transform: translateX(50%) translateY(10px) rotateY(-40deg) scale(0.55);
  } 
}


@media (max-width: 991.98px) {
  .coverflow-carousel .carousel-slide {
    width: 60%;
    height: 90%;
  }
  .coverflow-carousel .carousel-slide.left {
    transform: translateX(-40%) translateY(0) rotateY(20deg) scale(0.7);
  }
  .coverflow-carousel .carousel-slide.right {
    transform: translateX(40%) translateY(0) rotateY(-20deg) scale(0.7);
  }
  .coverflow-carousel .carousel-slide.left2 {
    transform: translateX(-60%) translateY(8px) rotateY(30deg) scale(0.45);
  }
  .coverflow-carousel .carousel-slide.right2 {
    transform: translateX(60%) translateY(8px) rotateY(-30deg) scale(0.45);
  }
  button.prev, button.next {
    font-size: 1.5em;
  }
  .card-tematiche .card-title{
  	margin-left: 20px;
  }
}


/***********************/
.card-tematiche .card img{
  height: auto;
  width: 64px;
}


#carouselText .carousel-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-carousel .card .icona{
  width: initial !important;
  height: initial !important;
  object-fit: initial !important;
  display: inline-block;
}

#carouselText .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border-top: 0;
  border-bottom: 0;
  opacity: 1 !important;
}
#carouselText .carousel-indicators{
  margin-right: 5px;
  margin-bottom: 0;
  margin-left: 5px;
}

#carouselText .carousel-indicators [data-bs-target].active{
  background-color: #B84BB4;
}

#carouselText .carousel-control-next, 
#carouselText .carousel-control-prev,
#carouselText .carousel-indicators{
  position: relative;
  top: initial;
  right: initial; 
  bottom:initial;
  left: initial;

}

#carouselText .carousel-control-next, 
#carouselText .carousel-control-prev{
  font-size: 1.5em;
  color: #fff;
  opacity: 1;
}



.bg-violet{
	background: #DE4172B2;
	
}


.sessioni .card{
	background: #14A4C999;
}
.laboratori .card{
	background: #32689780;
	display: flex;
    justify-content: center;

}

.laboratori .img-container{
	max-width: 157px;
	min-height: 158px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;   
}

.card-campus .card img{
	    border-radius: 40px;
}

/** accordion luoghi ***/
.accordion-item.custom-item {
  background-color: #564692;;
  border-radius: 40px;
  border: none;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-item .accordion-button:not(.collapsed) {
  background-color: #FFFFFF40;
  color: white;
  box-shadow: none;
  border-radius: 0;
}

.accordion-button::after {
  display: none;
}

.accordion-button.custom-button {
  background-color: transparent;
  color: white;
  font-weight: bold;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  box-shadow: none;
  font-size: 1rem;
}

.accordion-button:focus {
  box-shadow: none;
}

.circle-number {
  width: 35px;
  height: 35px;
  background-color: #4c2f94;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: 1rem;
}

.title-text {
  font-size: 1rem;
}

.accordion-body {
  padding: 1rem 1.5rem 1rem 4.2rem;
}

/* Lista interna (sottopunti) */
.accordion-body ul {
 	list-style: none; 
    padding-left: 0;     
}

.accordion-body li {
	 position: relative;
	 padding-left: 30px; 
	 margin-bottom: 10px;
	 color: #fff;  
}

.accordion-body li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.2em;
      width: 20px;
      height: 18px;
      background-color: currentColor;
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='18' viewBox='0 0 20 18' fill='none'%3E%3Cpath d='M2 16V2L18 7.76471V10.2353L2 16Z' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E");
      -webkit-mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-position: center;
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='18' viewBox='0 0 20 18' fill='none'%3E%3Cpath d='M2 16V2L18 7.76471V10.2353L2 16Z' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E");
      mask-size: contain;
      mask-repeat: no-repeat;
      mask-position: center;
    }

.accordion-collapse.show {
  background-color:  #FFFFFF40;
  padding-bottom: 1rem;
  border-radius: 0 0 20px 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.accordion-button::after {
  display: none;
      --bs-accordion-btn-active-icon: none;
      --bs-accordion-btn-icon: none;
}
.accordion-button.custom-button::after {
	
	display: inline-block;
    vertical-align: middle;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: none;
    content: "\f282";
    justify-content: flex-end;
    font-family: "bootstrap-icons";
    font-size: 1rem;
}

.accordion-button.custom-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

#mappaModal {
    z-index: 999999;
}
.img-modale{
	border-radius: 20px;
    overflow: hidden;
    max-width: 437px;
 
}

.img-modale a{
	display: block;
	z-index: 999;
}

.img-modale a:hover {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0); */
    transition: background-color 0.3s ease;
}

.img-modale a:hover .overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.testo-link {
    position: absolute;
    color: #fff;
    top: 25%;
    left: 50%;
    width: 80%;
    text-align: center;
    text-shadow: 0px 5px 5px #000000;
    font-weight: 600;
    opacity: 0;
    z-index: 99;
    margin-left: -40%;
}

.img-modale a:hover .testo-link{
	opacity: 1;
    transition: 0.8s;
}
