/* =========================================================
   HOME NUMBERS V4 — rifinitura visiva della fascia numeri
   Intervento isolato: non modifica header, agenda, immagini o footer.
   ========================================================= */

html body.path-frontpage .caritas-home-numbers-v2__header {
  margin-bottom: 18px !important;
}

html body.path-frontpage .caritas-home-numbers-v2__strip {
  min-height: 58px !important;
  border-color: rgba(123, 5, 0, 0.16) !important;
  background:
    linear-gradient(
      135deg,
      rgba(123, 5, 0, 0.075) 0%,
      rgba(255, 255, 255, 0.99) 48%,
      rgba(15, 139, 141, 0.055) 100%
    ) !important;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.055) !important;
}

html body.path-frontpage .caritas-home-numbers-v2__title {
  font-size: clamp(1.28rem, 1.48vw, 1.58rem) !important;
  letter-spacing: -0.03em !important;
}

html body.path-frontpage .caritas-home-numbers-v2__subtitle {
  max-width: 930px !important;
  margin-bottom: 14px !important;
  color: #263447 !important;
  font-size: clamp(0.96rem, 1.05vw, 1.04rem) !important;
  line-height: 1.62 !important;
}

html body.path-frontpage .caritas-home-numbers-v2__tags,
html body.path-frontpage .caritas-home-numbers-v2__tags .field,
html body.path-frontpage .caritas-home-numbers-v2__tags .field__items {
  gap: 9px !important;
}

html body.path-frontpage .caritas-home-numbers-v2__tags .field__item,
html body.path-frontpage .caritas-home-numbers-v2__tag {
  min-height: 30px !important;
  padding: 0 14px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

html body.path-frontpage .caritas-home-numbers-v2__grid {
  gap: 20px !important;
}

html body.path-frontpage .caritas-home-slot--numbers .field--name-field-card-numeri > .field__items {
  gap: 20px !important;
}

html body.path-frontpage .caritas-home-numbers-v2-card {
  min-height: 168px !important;
  padding: 27px 28px 25px !important;
  border-radius: 23px !important;
  border-color: rgba(123, 5, 0, 0.15) !important;
  background:
    radial-gradient(circle at 100% 100%, rgba(123, 5, 0, 0.045) 0%, rgba(123, 5, 0, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 252, 251, 0.98) 100%) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.075) !important;
}

html body.path-frontpage .caritas-home-numbers-v2-card::before {
  width: 6px !important;
  background: linear-gradient(180deg, #7b0500 0%, #9d0b04 100%) !important;
}

html body.path-frontpage .caritas-home-numbers-v2-card::after {
  right: -52px !important;
  bottom: -66px !important;
  width: 150px !important;
  height: 150px !important;
  background: rgba(123, 5, 0, 0.04) !important;
}

html body.path-frontpage .caritas-home-numbers-v2-card__value {
  margin-bottom: 7px !important;
  color: #8f0802 !important;
  font-size: clamp(2.25rem, 3.05vw, 3.25rem) !important;
  letter-spacing: -0.06em !important;
}

html body.path-frontpage .caritas-home-numbers-v2-card__label {
  margin-bottom: 8px !important;
  color: #111827 !important;
  font-size: 0.99rem !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
}

html body.path-frontpage .caritas-home-numbers-v2-card__text {
  max-width: 34rem !important;
  color: #263447 !important;
  font-size: 0.89rem !important;
  line-height: 1.48 !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.path-frontpage .caritas-home-numbers-v2-card:hover,
  html body.path-frontpage .caritas-home-numbers-v2-card:focus-within {
    transform: translateY(-3px) !important;
    border-color: rgba(123, 5, 0, 0.24) !important;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12) !important;
  }
}

@media (max-width: 980px) {
  html body.path-frontpage .caritas-home-numbers-v2__grid,
  html body.path-frontpage .caritas-home-slot--numbers .field--name-field-card-numeri > .field__items {
    gap: 16px !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2-card {
    min-height: 160px !important;
  }
}

@media (max-width: 640px) {
  html body.path-frontpage .caritas-home-numbers-v2__header {
    margin-bottom: 18px !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2__strip {
    min-height: 54px !important;
    padding: 14px 16px 14px 22px !important;
    border-radius: 19px !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2__subtitle {
    margin-bottom: 13px !important;
    font-size: 0.98rem !important;
    line-height: 1.56 !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2__tags .field__item,
  html body.path-frontpage .caritas-home-numbers-v2__tag {
    min-height: 29px !important;
    padding: 0 13px !important;
    font-size: 0.76rem !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2__grid,
  html body.path-frontpage .caritas-home-slot--numbers .field--name-field-card-numeri > .field__items {
    gap: 13px !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2-card {
    min-height: 150px !important;
    padding: 21px 22px !important;
    border-radius: 20px !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2-card__value {
    margin-bottom: 8px !important;
    font-size: clamp(2.28rem, 11vw, 2.8rem) !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2-card__label {
    font-size: 1rem !important;
  }

  html body.path-frontpage .caritas-home-numbers-v2-card__text {
    font-size: 0.92rem !important;
    line-height: 1.48 !important;
  }
}
