/* Homepage service selection: shared photography, natural copy and aligned prices. */
.rp-services-home {
  padding-block: clamp(52px,5.5vw,88px);
  background: radial-gradient(ellipse at 100% 0,#f10f3609,transparent 50%),#f7f7f9;
}
.rp-home-services-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 18px 36px;
  margin-bottom: 30px;
}
.rp-home-services-intro { grid-column: 1/-1; min-width: 0; }
.rp-home-services-intro .rp-eyebrow { color: var(--rp-red); }
.rp-home-services-intro h2 {
  max-width: none;
  margin: 15px 0 0;
  font-size: clamp(32px,3.1vw,52px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: wrap;
}
.rp-home-services-head > p {
  max-width: none;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rp-muted);
}
.rp-home-services-head > a { min-height: 44px; align-self: center; white-space: nowrap; }
.rp-home-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 20px; align-items: stretch; }
.rp-home-service-card {
  min-width: 0;
  display: flex;
  border: 1px solid #dedee4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px #24202c06;
  transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.rp-home-service-link { display: flex; flex-direction: column; flex: 1; min-width: 0; color: var(--rp-ink); border-radius: inherit; }
.rp-home-service-link:focus-visible { outline: 3px solid var(--rp-red); outline-offset: 4px; }
.rp-home-service-photo { position: relative; aspect-ratio: 16/10; max-height: 220px; overflow: hidden; border-radius: 19px 19px 0 0; background: #dddde3; }
.rp-home-service-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
#promozione-italia .rp-home-service-photo > img { object-position: center 10%; }
#promozione-estero .rp-home-service-photo > img { object-position: 62% 36%; }
.rp-home-service-icon { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff60; border-radius: 11px; color: #fff; background: #1b1b23b8; backdrop-filter: blur(8px); }
.rp-home-service-icon .rp-icon { width: 18px; height: 18px; }
.rp-home-service-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 20px; }
.rp-home-service-tag { font-size: 9px; font-weight: 750; line-height: 1.4; letter-spacing: .11em; text-transform: uppercase; color: var(--rp-red); }
.rp-home-service-body h3 { margin: 9px 0 10px; font-size: clamp(20px,1.65vw,24px); line-height: 1.2; letter-spacing: -.035em; text-wrap: wrap; }
.rp-home-service-body > p { margin: 0 0 20px; color: var(--rp-muted); font-size: 13px; line-height: 1.6; }
.rp-home-service-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: auto; border-top: 1px solid #ededf1; }
.rp-home-service-bottom > div { min-width: 0; }
.rp-home-service-bottom strong { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.035em; line-height: 1.15; }
.rp-home-service-bottom small { display: block; margin-top: 5px; color: #787b85; font-size: 9px; line-height: 1.4; }
.rp-home-service-arrow { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff0f3; color: var(--rp-red); transition: color .2s,background .2s; }
.rp-home-service-arrow .rp-icon { width: 17px; height: 17px; }
@media(hover:hover) {
  .rp-home-service-card:hover { transform: translateY(-4px); border-color: #efb5c2; box-shadow: 0 14px 30px #24202c0c; }
  .rp-home-service-card:hover .rp-home-service-photo > img { transform: scale(1.035); }
  .rp-home-service-card:hover .rp-home-service-arrow { color: #fff; background: var(--rp-red); }
}
@media(max-width:1180px) {
  .rp-home-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rp-home-service-photo { aspect-ratio: 16/9; }
  .rp-home-service-body h3 { font-size: clamp(20px,2.8vw,24px); }
  .rp-home-service-body > p { font-size: 14px; }
  .rp-home-services-head { gap: 16px 24px; }
}
@media(max-width:620px) {
  .rp-home-services-head { grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 24px; }
  .rp-home-services-intro h2 { margin-top: 12px; font-size: clamp(30px,7.8vw,38px); line-height: 1.13; }
  .rp-home-services-head > p { font-size: 14px; }
  .rp-home-services-head > a { justify-self: start; }
  .rp-home-service-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .rp-home-service-photo { aspect-ratio: 16/8; max-height: 220px; }
  .rp-home-service-body { padding: 20px; }
  .rp-home-service-body h3 { font-size: 23px; }
  .rp-home-service-body > p { margin-bottom: 16px; }
}
@media(max-width:360px) {
  .rp-home-service-body { padding: 18px; }
  .rp-home-service-body h3 { font-size: 21px; }
}
@media(prefers-reduced-motion:reduce) {
  .rp-home-service-card,.rp-home-service-photo > img,.rp-home-service-arrow { transition: none; }
}
