/* ========== Services Carousel Styles ========== */

#servicesCarousel .carousel-indicators li::marker {
  display: none !important;
  content: none !important;
}

#servicesCarousel {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#servicesCarousel .carousel-item img {
  height: 400px;
  object-fit: cover;
  object-position: center;
}

#servicesCarousel .carousel-control-prev,
#servicesCarousel .carousel-control-next {
  font-size: 50px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: transparent;
  border-radius: 0;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  opacity: 1;
  z-index: 1;
  transition: all 0.35s ease-in-out;
  -webkit-transition: all 0.35s ease-in-out;
  -moz-transition: all 0.35s ease-in-out;
  -ms-transition: all 0.35s ease-in-out;
  -o-transition: all 0.35s ease-in-out;
  box-shadow: none;
  color: #222;
  border: none;
  padding: 0;
}

#servicesCarousel .carousel-control-prev {
  left: -50px;
}
#servicesCarousel:hover .carousel-control-prev {
  left: 0;
}

#servicesCarousel .carousel-control-next {
  right: -50px;
}
#servicesCarousel:hover .carousel-control-next {
  right: 0;
}

#servicesCarousel .carousel-control-prev:hover,
#servicesCarousel .carousel-control-next:hover {
  color: #000;
  background: transparent;
}

#servicesCarousel .carousel-indicators {
  bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#servicesCarousel .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #fff;
  opacity: 0.4;
  border: none;
  margin: 0;
  transition: opacity 0.3s, background 0.3s;
  box-shadow: none;
  position: relative;
}

#servicesCarousel .carousel-indicators .active {
  opacity: 1;
  background: #222;
}


.pf-item:hover .editable-wrapper .edit-btn,
.pf-item:hover .thumb > .edit-btn {
            opacity: 1 !important;
            pointer-events: auto !important;
            z-index: 2000; /* Assicurati che sia sopra l'overlay */
}




/* Responsive per mobile */
@media (max-width: 768px) {
  #servicesCarousel,
  #servicesCarousel .carousel-inner,
  #servicesCarousel .carousel-item {
    height: 250px !important;
    margin-top: 2px;
  }
  
  #servicesCarousel .carousel-item img {
    height: 250px !important;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* ========== Categorie in Evidenza ========== */
.categorie-evidenza-area {
  padding: 60px 0 30px;
}

.categoria-evidenza-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.30s cubic-bezier(.22,.68,0,1.2), box-shadow 0.30s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.categoria-evidenza-card .edit-btn {
  z-index: 10 !important;
}

.categoria-evidenza-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 22px 48px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.12);
}

/* Stacking: link = sizing container, bg + overlay both absolute inside */
.categoria-evidenza-link {
  display: block;
  text-decoration: none;
  position: relative;
  height: 210px;
}

.categoria-evidenza-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.40s ease;
}

.categoria-evidenza-card:hover .categoria-evidenza-bg {
  transform: scale(1.05);
}

.categoria-evidenza-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 14px;
}

.categoria-evidenza-title {
  color: #fff;
  font-size: 1.0rem;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(0,0,0,0.55);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.categoria-evidenza-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .categorie-evidenza-area {
    padding: 30px 0 10px;
  }
  /* 1 per riga su mobile */
  .categorie-evidenza-area .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .categoria-evidenza-link {
    height: 110px;
  }
  .categoria-evidenza-title {
    font-size: 0.9rem;
  }
  .categoria-evidenza-desc {
    display: none;
  }
}