/* ==========================================================================
   Service — mobile first (valori Figma × --figma-px)
   ========================================================================== */

.service-section {
  background-color: var(--color-white);
  border-top-left-radius: calc(var(--figma-px) * 30.44);
  border-top-right-radius: calc(var(--figma-px) * 30.44);
}

.service-section__label {
  margin: 0 0 25px;
  padding-bottom: calc(var(--figma-px) * 16);
  border-bottom: calc(var(--figma-px) * 13) solid var(--color-border-gray);
  font-family: var(--font-heading);
  font-size: min(114.59px, 16.37vw);
  font-size: calc(var(--figma-px) * 114.59);
  font-weight: 700;
  line-height: calc(var(--figma-px) * 103.13);
  text-transform: uppercase;
  letter-spacing: calc(var(--figma-px) * -5);
  color: var(--color-nolves-blue);
}

.service-section__header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.service-section__title {
  margin-bottom: 25px;
  font-family: var(--font-heading);
  font-size: var(--fs-48-min);
  font-size: var(--fs-48);
  font-weight: 700;
  line-height: var(--lh-heading-section-desktop);
  color: var(--color-nolves-blue);
}

.service-section__description {
  margin-top: 25px;
  font-family: var(--font-body);
  font-size: var(--fs-32-min);
  font-size: var(--fs-32);
  font-weight: 400;
  line-height: var(--lh-32-body);
  color: var(--color-oxford-blue);
}

.service-section__header .service-section__title {
  margin-bottom: 0;
}

.service-section__header .service-section__description {
  margin-top: 0;
}

.service-section__content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  min-width: 0;
}

.service-section__cards {
  display: flex;
  gap: 10px;
  width: 100%;
  min-width: 0;
  /* Sinistra: allineata al testo del container; destra: bleed per scroll orizzontale */
  margin-inline-start: 0;
  margin-inline-end: calc(-1 * var(--container-padding-x));
  padding-inline-start: 0;
  padding-inline-end: var(--container-padding-x);
}

.service-section__slide {
  flex: 0 0 calc(var(--figma-px) * 455.97);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Service card
   -------------------------------------------------------------------------- */

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: calc(var(--figma-px) * 298);
  padding: calc(var(--figma-px) * 16);
  background-color: var(--color-athens-gray-2);
  border: calc(var(--figma-px) * 0.98) solid var(--color-border-gray);
  border-radius: calc(var(--figma-px) * 28.5);
  color: inherit;
  text-decoration: none;
}

.service-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: calc(var(--figma-px) * 71.24);
  height: calc(var(--figma-px) * 71.24);
  border-radius: calc(var(--figma-px) * 21.37);
}

.service-card__icon img {
  display: block;
}

.service-card__title {
  padding-top: var(--gap-32);
  font-family: var(--font-heading);
  font-size: var(--fs-32-min);
  font-size: var(--fs-32);
  font-weight: 700;
  line-height: var(--fs-32);
  color: var(--color-ebony);
}

.service-card__text {
  padding-top: calc(var(--figma-px) * 24);
  font-family: var(--font-body);
  font-size: var(--fs-22-min);
  font-size: var(--fs-22);
  font-weight: 400;
  line-height: var(--lh-22);
  color: var(--color-oxford-blue);
}

.service-card__arrow {
  display: block;
  margin-top: auto;
  padding-top: var(--gap-32);
}

.service-card__arrow img {
  display: block;
  width: calc(var(--figma-px) * 28.49);
  height: calc(var(--figma-px) * 28.49);
}

.service-section__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-nolves-blue);
  font-family: var(--font-body);
  font-weight: var(--fw-cta-desktop);
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
}

@media (max-width: 767px) {
  .service-section__cta {
    width: 100%;
    min-height: var(--btn-min-h);
    padding-inline: var(--btn-padding-inline);
    padding-block: var(--btn-padding-block);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size-min);
    font-size: var(--btn-font-size);
    line-height: var(--btn-line-height);
  }
}

/* Desktop — min-width 768px
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .service-section {
    gap: 0;
    padding-inline: 0;
    border-radius: 0;
    overflow: visible;
  }

  .service-section__header {
    gap: 24px;
    max-width: var(--content-max-width-editorial);
    margin-bottom: 35px;
  }

  .service-section__label {
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom-width: 8px;
    font-size: 70px;
    line-height: 0.9;
    letter-spacing: 0;
  }

  .service-section__title {
    margin-bottom: 35px;
    font-size: var(--fs-heading-section-desktop);
    line-height: var(--lh-heading-section-desktop);
  }

  .service-section__description {
    margin-top: 35px;
    font-size: var(--fs-body-desktop);
    line-height: var(--lh-body-desktop);
  }

  .service-section__content {
    gap: 35px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .service-section__panel {
    min-width: 0;
    overflow: visible;
  }

  .service-section__cards {
    margin-inline: 0;
    padding-inline: 0;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    padding-bottom: 10px;
    margin-bottom: -10px;
  }

  .service-section__cards::-webkit-scrollbar {
    display: none;
  }

  .service-section__cards.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    scroll-behavior: auto;
  }

  .service-section__slide {
    display: flex;
    flex: 0 0 270px;
    min-width: 0;
  }

  .service-card {
    width: 100%;
    min-width: 0;
    min-height: 191px;
    padding: 8px;
    border-width: 0.98px;
    border-radius: 20px;
  }

  .service-card__icon {
    width: 35px;
    height: 35px;
    border-radius: 10.51px;
  }

  .service-card__title {
    padding-top: 17px;
    font-size: 16px;
    line-height: 16px;
  }

  .service-card__text {
    padding-top: 10px;
    font-size: var(--fs-body-desktop);
    line-height: var(--lh-body-desktop);
  }

  .service-card__arrow {
    margin-top: auto;
    padding-top: 12px;
  }

  .service-card__arrow img {
    width: 28.49px;
    height: 28.49px;
  }
}
