/* SEZIONE SERVIZI */

.services {
  padding: 4rem 0 2.5rem;
}

/* CARD GENERICA */

.service-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background-color: #000000; /* base nera sotto la parte di testo */
  color: var(--text-light);
  margin-bottom: 1.4rem;
}

/* immagine di sfondo che copre tutta la card */
.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;

  /* immagine visibile a destra, che svanisce verso il nero a sinistra */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 15%,
    rgba(0, 0, 0, 0.7) 45%,
    rgba(0, 0, 0, 1) 80%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 15%,
    rgba(0, 0, 0, 0.7) 45%,
    rgba(0, 0, 0, 1) 80%
  );
}

/* contenuto sopra allo sfondo */
.service-card-inner {
  position: relative;
  z-index: 1;
  padding: 2.1rem 2.5rem;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 38%; /* lascia spazio destro per far vedere la foto */
}

.service-card-text {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* titoli e sottotitoli come nel Figma */

.service-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-subtitle {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* bottone */

.service-btn {
  align-self: flex-start;
}

/* per le card con “bottone vuoto” nel Figma */

.service-btn--empty {
  min-width: 160px;
  min-height: 42px;
  background-color: var(--bg-cream);
  color: transparent;
  cursor: default;
}

/* CARD GIFT – NASTRO + FIOCCO */

.service-card--gift {
  position: relative;
}

/* banda rossa diagonale */
.service-card--gift::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  right: 16%;
  width: 60px;
  background-color: #ff0000;
  transform: rotate(18deg);
  z-index: 1;
}

/* fiocco */
.service-gift-bow {
  position: absolute;
  right: 11%;
  top: 50%;
  transform: translateY(-40%);
  width: 170px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* la banda e il fiocco devono stare sopra la foto ma sotto il testo */
.service-card--gift .service-card-inner {
  z-index: 3;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .service-card-inner {
    padding-right: 2rem;
    min-height: 220px;
  }

  .service-card-bg {
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.6) 55%,
      rgba(0, 0, 0, 1) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.6) 55%,
      rgba(0, 0, 0, 1) 100%
    );
  }

  .service-title {
    font-size: 1.6rem;
  }

  .service-gift-bow {
    right: 6%;
    width: 90px;
  }
}
