/* Studio Catarraso v5.10.31 — specialist pathways + mobile About tiles.
   Carefully scoped: no changes to the six intervention cards, service details,
   blog, professionisti, or existing compact audience/method grids. */

/* Competenze (IT) — two carefully balanced columns, with a clear reading order. */
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 {
  padding: clamp(48px,5.2vw,68px) 0 !important;
  background: #f7fafd !important;
  border-top: 1px solid #e4edf4 !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 > .wrap {
  box-sizing: border-box !important;
  width: min(1200px,calc(100% - 48px)) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__head {
  max-width: 820px !important;
  margin-bottom: 25px !important;
}
/* The small eyebrow repeats the main heading verbatim in the original markup. */
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__head > .eyebrow {
  display: none !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__head h2 {
  margin: 0 0 10px !important;
  font-size: clamp(28px,3.1vw,40px) !important;
  font-weight: 350 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
  color: #293f55 !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__head p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #667b8d !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  counter-reset: sc-pathway !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card {
  counter-increment: sc-pathway !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  column-gap: 14px !important;
  row-gap: 10px !important;
  align-items: start !important;
  align-content: start !important;
  justify-content: stretch !important;
  padding: 22px 24px 20px !important;
  border: 1px solid #dfe8f0 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card::before {
  content: counter(sc-pathway,decimal-leading-zero) !important;
  display: grid !important;
  place-items: center !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 37px !important;
  height: 37px !important;
  box-sizing: border-box !important;
  border-radius: 9px !important;
  border: 1px solid #e0eaf3 !important;
  background: #f4f8fb !important;
  color: #6389a8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .03em !important;
  line-height: 1 !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: clamp(16px,1.45vw,18px) !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: -.014em !important;
  color: #293f55 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card h3 a {
  color: inherit !important;
  text-decoration: none !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card p {
  grid-column: 1/-1 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: initial !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #63798b !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card .sc-related-service-card__link {
  grid-column: 1/-1 !important;
  grid-row: 3 !important;
  justify-self: start !important;
  align-self: end !important;
  margin: 6px 0 0 !important;
  padding: 0 0 3px !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
  color: #4b7da6 !important;
  border-bottom: 1px solid #bbd1e2 !important;
  text-decoration: none !important;
  background: transparent !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card:hover {
  border-color: #bfcedd !important;
  box-shadow: 0 6px 18px rgba(38,67,93,.045) !important;
  transform: translateY(-1px) !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card a:focus-visible {
  outline: 2px solid #568eb9 !important;
  outline-offset: 3px !important;
}

/* Home — the four Chi siamo values become a balanced 2 × 2 matrix on phones. */
@media (max-width: 700px) {
  body.sccv-home #studio .values {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 18px 0 26px !important;
  }
  body.sccv-home #studio .values > .value {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 13px 12px 14px !important;
    border-radius: 8px !important;
  }
  body.sccv-home #studio .values > .value .value-icon {
    display: grid !important;
    place-items: center !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    min-height: 29px !important;
    flex: 0 0 29px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }
  body.sccv-home #studio .values > .value .value-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  body.sccv-home #studio .values > .value .value-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.sccv-home #studio .values > .value .value-copy b {
    display: block !important;
    margin: 0 !important;
    font-size: 12.3px !important;
    line-height: 1.34 !important;
    font-weight: 650 !important;
    overflow-wrap: anywhere !important;
  }
  body.sccv-home #studio .values > .value .value-copy span {
    display: block !important;
    margin: 0 !important;
    font-size: 11.3px !important;
    line-height: 1.48 !important;
    overflow-wrap: break-word !important;
  }
  /* Long descriptions benefit from the full column width on phones. */
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
  }
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card {
    padding: 19px 18px 18px !important;
  }
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 > .wrap {
    width: calc(100% - 36px) !important;
  }
}
@media (max-width: 360px) {
  body.sccv-home #studio .values {gap: 8px !important;}
  body.sccv-home #studio .values > .value {padding: 11px 9px 12px !important;gap: 7px !important;}
  body.sccv-home #studio .values > .value .value-copy b {font-size: 11.9px !important;}
  body.sccv-home #studio .values > .value .value-copy span {font-size: 11px !important;}
}
@media (prefers-reduced-motion: reduce) {
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card {
    transition: none !important;
    transform: none !important;
  }
}
