/* Services Page */
.page-header .page-title { font-size: clamp(2.5rem, 6vw, 3.2rem); margin-bottom: 1rem; }
.page-header .page-description { font-size: 1.1rem; color: var(--bs-secondary); max-width: 700px; margin: 0 auto; }

/* Service Cards */
.service-card { border: none; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: var(--bs-white); cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(var(--bs-accent-rgb), 0.1) 0%, transparent 70%); opacity: 0; transition: opacity 0.3s ease; z-index: 1; }
.service-card:hover::before { opacity: 1; }
.service-card .service-img-container { position: relative; z-index: 2; }
.service-card a { text-decoration: none !important; color: inherit !important; }
.service-card .service-content ul { margin-bottom: 1rem; }
.service-card .service-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; gap: 1rem; }
.service-card .service-details { margin-top: 0.75rem; }
.service-card .service-img-container { height: 200px; overflow: hidden; border-radius: 10px 10px 0 0; }
.service-card .service-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-img-container img { transform: scale(1.05); }
.card-title { font-family: var(--font-display); }
.service-book-action { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--bs-accent); padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.05); transition: color 0.2s ease, transform 0.2s ease; }
.service-card:hover .service-book-action { color: var(--bs-dark); transform: translateY(-3px); }
.service-book-action i { margin-left: 0.5rem; font-size: 1.1rem; transition: transform 0.2s ease; }
.service-card:hover .service-book-action i { transform: translateX(5px); }

/* Collaborations grid */
.collaborations-section { background: transparent; }
.collaborations-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 2.5rem); }
@media (min-width: 992px) { .collaborations-grid { grid-template-columns: 1fr 1fr; } }

.services-carousel.is-swiper-active .swiper-slide {
  width: 85%;
}

.services-carousel.is-swiper-active .swiper-slide-next,
.services-carousel.is-swiper-active .swiper-slide-prev {
  opacity: 0.85;
}

.collaboration-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(140deg, rgba(255,255,255,0.98) 0%, rgba(245,248,255,0.95) 65%, rgba(229,243,235,0.92) 100%);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.collaboration-card::before,
.collaboration-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
}

.collaboration-card::before {
  width: 240px;
  height: 240px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle at center, rgba(var(--bs-accent-rgb), 0.28) 0%, rgba(var(--bs-accent-rgb), 0) 65%);
}

.collaboration-card::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  left: -70px;
  background: radial-gradient(circle at center, rgba(13,110,253,0.2) 0%, rgba(13,110,253,0) 70%);
}

.collaboration-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.collaboration-card__heading {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.collaboration-card__badge {
  align-self: flex-start;
  background: rgba(var(--bs-accent-rgb), 0.12);
  color: var(--bs-accent);
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--bs-accent-rgb), 0.25);
}

.collaboration-card__subtitle {
  color: rgba(28, 32, 38, 0.75);
  max-width: 32rem;
  margin-bottom: 0;
}

.collaboration-card__layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.collaboration-card__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.collaboration-card__details p { margin-bottom: 0; }

.collaboration-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .collaboration-card__layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
  }

  .collaboration-card__visual {
    justify-content: flex-end;
  }
}

.collaboration-pill-list {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .collaboration-pill-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.carrozzeria-description,
.keyevolution-description {
  color: rgba(18, 23, 28, 0.8);
  line-height: 1.7;
  max-width: 38rem;
}

.carrozzeria-logo-container,
.keyevolution-logo-container {
  position: relative;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.88);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.carrozzeria-logo,
.keyevolution-logo {
  display: block;
  max-height: 100px;
  width: auto;
  transition: transform 0.3s ease;
  filter: saturate(1.05);
}

.carrozzeria-logo:hover,
.keyevolution-logo:hover {
  transform: scale(1.05);
}

.carrozzeria-services-list,
.keyevolution-services-list {
  margin-bottom: 0;
}

.carrozzeria-service-item,
.keyevolution-service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carrozzeria-service-item i,
.keyevolution-service-item i {
  font-size: 1.25rem;
  color: var(--bs-accent);
}

.carrozzeria-service-item span,
.keyevolution-service-item span {
  font-weight: 600;
  color: rgba(18, 23, 28, 0.82);
}

.carrozzeria-service-item:hover,
.keyevolution-service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.15);
}

.carrozzeria-service-item.much-more,
.keyevolution-service-item.much-more {
  background: rgba(13,110,253,0.08);
  border-color: rgba(13,110,253,0.2);
  color: #0d6efd;
}

.collaboration-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.collaboration-cta__single {
  justify-content: flex-start;
}

.collaboration-cta .btn {
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(25, 135, 84, 0.22);
  transition: transform 0.25s ease;
}

.collaboration-cta .btn:hover {
  transform: translateY(-2px);
}

.collaboration-card .carrozzeria-title,
.collaboration-card .keyevolution-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  margin-bottom: 0;
  color: rgba(18, 23, 28, 0.95);
}

/* Services carousel mobile tweaks */
@media (max-width: 767.98px) {
  .services-carousel {
    padding-bottom: 2.75rem;
  }

  .services-carousel .service-card {
    padding: 1.5rem 1.25rem 1.75rem;
    min-height: auto;
  }

  .services-carousel .service-img-container {
    height: 180px;
  }

  .services-carousel .service-content h3 {
    font-size: 1.3rem;
  }

  .services-carousel .service-content p {
    font-size: 0.95rem;
  }

  .services-carousel .service-details ul {
    font-size: 0.95rem;
  }

  .services-carousel .service-card .btn {
    width: 100%;
    margin-top: 0.75rem;
  }

  .services-carousel .swiper-pagination-progressbar {
    position: static;
    width: 70%;
    height: 4px;
    margin: 1.5rem auto 0;
    background: rgba(15, 23, 42, 0.12);
    border-radius: 999px;
  }

  .services-carousel .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: linear-gradient(90deg, rgba(var(--bs-accent-rgb), 0.95) 0%, rgba(13,110,253,0.8) 100%);
    border-radius: inherit;
  }

  .services-carousel .swiper-button-next,
  .services-carousel .swiper-button-prev {
    width: 44px;
    height: 44px;
    top: 48%;
  }
}

@media (max-width: 575.98px) {
  .services-carousel .service-card {
    padding: 1.35rem 1.1rem 1.6rem;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  }

  .services-carousel .service-img-container {
    height: 165px;
  }

  .services-carousel .service-content {
    gap: 0.75rem;
  }

  .services-carousel .swiper-button-next,
  .services-carousel .swiper-button-prev {
    width: 40px;
    height: 40px;
    top: 50%;
  }
}

/* Collaboration cards mobile adjustments */
@media (max-width: 767.98px) {
  .collaboration-card {
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  }

  .collaboration-card::before,
  .collaboration-card::after {
    opacity: 0.35;
  }

  .collaboration-card__layout {
    grid-template-columns: 1fr;
  }

  .collaboration-card__visual {
    order: -1;
    justify-content: flex-start;
  }

  .carrozzeria-logo-container,
  .keyevolution-logo-container {
    margin-bottom: 1rem;
    width: 100%;
    justify-content: center;
  }

  .carrozzeria-description,
  .keyevolution-description {
    max-width: 100%;
  }

  .collaboration-card__badge {
    font-size: 0.75rem;
  }

  .collaboration-cta,
  .collaboration-cta__single {
    justify-content: center;
  }

  .collaboration-cta .btn {
    width: 100%;
    min-width: 0;
    box-shadow: 0 14px 30px rgba(25, 135, 84, 0.22);
  }
}

@media (max-width: 575.98px) {
  .collaboration-card {
    padding: 2rem 1.5rem;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
  }

  .carrozzeria-logo,
  .keyevolution-logo {
    max-height: 84px;
  }
}

/* Services Carousel (Swiper) */
.services-overview-section { position: relative; }
.services-carousel .swiper-slide {
  height: auto; /* Ensure slides have consistent height */
  display: flex;
  justify-content: center;
}

.services-carousel .service-card {
  width: 100%;
}

/* Restore grid layout on desktop and hide Swiper elements */
@media (min-width: 768px) {
  .services-carousel:not(.is-swiper-active) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-carousel:not(.is-swiper-active) .service-card .service-details,
  .service-card .service-details {
    margin-top: auto;
  }

  .services-carousel:not(.is-swiper-active) .swiper-button-next,
  .services-carousel:not(.is-swiper-active) .swiper-button-prev,
  .services-carousel:not(.is-swiper-active) .swiper-pagination {
    display: none;
  }
}

@media (min-width: 992px) {
  .services-carousel:not(.is-swiper-active) .swiper-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Custom styles for Swiper navigation buttons */
.services-carousel .swiper-button-next,
.services-carousel .swiper-button-prev {
  position: absolute;
  color: var(--bs-white);
  background: linear-gradient(145deg, rgba(var(--bs-accent-rgb), 0.95) 0%, rgba(13, 110, 253, 0.85) 100%);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.services-carousel .swiper-button-next,
.services-carousel .swiper-button-prev {
  top: 45%;
}

.services-carousel .swiper-button-next:hover,
.services-carousel .swiper-button-prev:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.32);
  opacity: 1;
}

.services-carousel .swiper-button-next:active,
.services-carousel .swiper-button-prev:active {
  transform: translateY(0) scale(0.96);
}

.services-carousel .swiper-button-next:focus-visible,
.services-carousel .swiper-button-prev:focus-visible {
  outline: 2px solid rgba(var(--bs-accent-rgb), 0.4);
  outline-offset: 4px;
}

.services-carousel .swiper-button-next::after,
.services-carousel .swiper-button-prev::after {
  font-size: 1.3rem;
  font-weight: 600;
}


.services-carousel .swiper-pagination-bullet-active {
  background-color: var(--bs-accent);
}
