/* ================= HERO ================= */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--white);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* immagini di prova */
.slide:nth-child(1) {
  background-image: url("../img/collections/header-SS26.jpg");
}

.slide:nth-child(2) {
  background-image: url("../img/collections/MP5.jpg");
}

.slide:nth-child(3) {
  background-image: url("../img/collections/MP6.jpg");
}

.slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 20px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 72px;
  font-weight: 400;
  letter-spacing: 0.1875em;
}

.hero-subtitle {
  font-size: 1em;
  margin-bottom: 10px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
}

.scroll-arrow:hover {
  opacity: 1;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* ================= INTRO ================= */
.intro {
  padding: 120px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-gray-light);
}

.intro-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 30px;
}

.intro p {
  max-width: 37.5em;
  margin: 0 auto 30px;
  font-size: 15px;
  font-weight: 400;
}

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

/* ================= TREATMENTS SECTION ================= */
.treatments {
  background: var(--color-primary-light);
  padding: 100px 20px;
  text-align: center;
  color: var(--white);
}

.section-title {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

/* ================= TREATMENTS SLIDER ================= */
.treatments-slider {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.swiper-pagination-bullet-active {
  background: var(--white);
}

/* ================= CARD STYLE ================= */
/* La card rimane come prima */
.swiper-slide.card {
  position: relative;
  overflow: hidden;
  height: 220px;
  padding: 0;
  border-radius: var(--radius-md);

  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.swiper-slide.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://picsum.photos/400/220") center/cover no-repeat;
  border-radius: var(--radius-md);
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide.card:hover::before {
  transform: scale(1.1);
}

.swiper-slide.cute::before {
  background: url("/img/treatments/cura-cute.jpeg") center/cover no-repeat;
}

.swiper-slide.lunghezze::before {
  background: url("/img/treatments/cura-lunghezze.jpeg") center/cover no-repeat;
}

.swiper-slide.colorazione::before {
  background: url("/img/treatments/colorazione.jpeg") center/cover no-repeat;
}

.swiper-slide.ricci::before {
  background: url("/img/treatments/riccio.jpeg") center/cover no-repeat;
}

.swiper-slide.extention::before {
  background: url("/img/treatments/extentions/extention1.jpeg") center/cover no-repeat;
}

.swiper-slide.permanente::before {
  background: url("/img/treatments/permanente.jpeg") center/cover no-repeat;
}

.swiper-slide.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(126 126 126 / 18%);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Link che occupa tutta la card */
.card-link {
  display: flex;
  flex: 1; /* occupa tutto lo spazio della card */
  align-items: flex-end;
  justify-content: center;
  padding: 30px 25px; /* padding dentro link */
  text-decoration: none; /* rimuove underline */
  color: var(--white);
  position: relative; /* sopra overlay e immagine */
  z-index: 2;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: transform 0.3s ease;
}

.card-text {
  font-size: 17px;
  text-align: center;
}

/* ================= RESPONSIVE CARD HEIGHT & PADDING ================= */
@media (max-width: 1199px) {
  .swiper-slide.card {
    font-size: 1em;
  }
}

@media (max-width: 991px) {
  .swiper-slide.card {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 45px;
  }

  .intro-title {
    font-size: 45px;
  }

  .treatments {
    padding: 70px 20px;
  }

  .treatments-slider {
    padding: 0;
  }

  .swiper-slide.card {
    font-size: 15px;
  }

  .slider-btn {
    display: none;
  }
}

@media (max-width: 575px) {
  .swiper-slide.card {
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  .swiper-slide.card {
    font-size: 13px;
  }
}
