/* Studio Catarraso — box editoriali v1.2.0.
   Le tre sezioni hanno il medesimo linguaggio visivo e ingombri compatti. */
body.sccv-home #competenze .service-grid,
body.sccv-home .sccv-compact-grid,
body.sccv-servizi .inner-section .inner-cards,
body.sccv-servizi .sccv-compact-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  column-gap:14px !important;
  row-gap:14px !important;
  align-items:stretch !important;
}

/* Icona e titolo sono sulla stessa riga; il paragrafo occupa la riga seguente. */
body.sccv-home #competenze .service-grid > a.service-card,
body.sccv-home .sccv-compact-grid > a.sccv-compact-card,
body.sccv-servizi .inner-section .inner-cards > a.inner-card,
body.sccv-servizi .inner-section .inner-cards > a.sc-competenza-card,
body.sccv-servizi .sccv-compact-grid > a.sccv-compact-card {
  box-sizing:border-box !important;
  position:relative !important;
  display:grid !important;
  grid-template-columns:36px minmax(0,1fr) !important;
  grid-template-rows:auto 1fr !important;
  column-gap:12px !important;
  row-gap:9px !important;
  align-items:center !important;
  align-content:start !important;
  justify-content:initial !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  padding:16px 18px 34px !important;
}

body.sccv-home #competenze .service-grid > a.service-card .card-icon,
body.sccv-home .sccv-compact-card .card-icon,
body.sccv-servizi .inner-section .inner-cards > a .card-icon,
body.sccv-servizi .inner-section .inner-cards > a .mini-index {
  box-sizing:border-box !important;
  display:grid !important;
  place-items:center !important;
  grid-column:1 !important;
  grid-row:1 !important;
  width:36px !important;
  height:36px !important;
  min-width:0 !important;
  min-height:0 !important;
  flex:0 0 36px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:10px !important;
}
body.sccv-home #competenze .service-grid > a.service-card .card-icon svg,
body.sccv-home .sccv-compact-card .card-icon svg,
body.sccv-servizi .inner-section .inner-cards > a .card-icon svg {
  width:19px !important;
  height:19px !important;
}

body.sccv-home #competenze .service-grid > a.service-card h3,
body.sccv-home .sccv-compact-card h3,
body.sccv-servizi .inner-section .inner-cards > a h3 {
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:center !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  font-size:16px !important;
  font-weight:650 !important;
  line-height:1.3 !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
  letter-spacing:-.014em !important;
}

body.sccv-home #competenze .service-grid > a.service-card p,
body.sccv-home .sccv-compact-card p,
body.sccv-servizi .inner-section .inner-cards > a p {
  box-sizing:border-box !important;
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  align-self:start !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  font-size:13.2px !important;
  line-height:1.5 !important;
  flex:none !important;
}

body.sccv-home #competenze .service-grid > a.service-card .arrow,
body.sccv-home .sccv-compact-card .arrow,
body.sccv-servizi .inner-section .inner-cards > a .arrow,
body.sccv-servizi .inner-section .inner-cards > a .inner-arrow {
  display:block !important;
  position:absolute !important;
  right:17px !important;
  bottom:10px !important;
  font-size:17px !important;
  line-height:1 !important;
  align-self:auto !important;
  margin:0 !important;
  padding:0 !important;
  pointer-events:none;
}

/* Trattino superiore delle card Home, coerente con la nuova spaziatura. */
body.sccv-home #competenze .service-grid > a.service-card::after {
  left:18px !important;
  right:18px !important;
}

@media (min-width:761px) and (max-width:1020px) {
  body.sccv-home #competenze .service-grid,
  body.sccv-home .sccv-compact-grid,
  body.sccv-servizi .inner-section .inner-cards,
  body.sccv-servizi .sccv-compact-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:760px) {
  body.sccv-home #competenze .service-grid,
  body.sccv-home .sccv-compact-grid,
  body.sccv-servizi .inner-section .inner-cards,
  body.sccv-servizi .sccv-compact-grid {
    grid-template-columns:minmax(0,1fr) !important;
    gap:11px !important;
  }
  body.sccv-home #competenze .service-grid > a.service-card,
  body.sccv-home .sccv-compact-grid > a.sccv-compact-card,
  body.sccv-servizi .inner-section .inner-cards > a,
  body.sccv-servizi .sccv-compact-grid > a.sccv-compact-card {
    grid-template-columns:34px minmax(0,1fr) !important;
    column-gap:11px !important;
    padding:15px 16px 32px !important;
  }
  body.sccv-home #competenze .service-grid > a.service-card h3,
  body.sccv-home .sccv-compact-card h3,
  body.sccv-servizi .inner-section .inner-cards > a h3 {font-size:16px !important;}
  body.sccv-home #competenze .service-grid > a.service-card p,
  body.sccv-home .sccv-compact-card p,
  body.sccv-servizi .inner-section .inner-cards > a p {font-size:13.4px !important;}
  body.sccv-home #competenze .service-grid > a.service-card .card-icon,
  body.sccv-home .sccv-compact-card .card-icon,
  body.sccv-servizi .inner-section .inner-cards > a .card-icon,
  body.sccv-servizi .inner-section .inner-cards > a .mini-index {
    width:34px !important;
    height:34px !important;
  }
}

/* IT COMPETENZE | Percorsi specialistici. Il markup è diverso dalle altre
   card: 4 servizi senza icona, con un link finale. Impostiamo la stessa
   densità tipografica e verticale, senza tagliare i testi o i collegamenti.
   Scoping stretto: NON modifica i box "Servizi collegati" delle pagine servizio. */
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  align-items:stretch !important;
  gap:14px !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card {
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:8px !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  padding:16px 18px 15px !important;
  border:1px solid #dce8f1 !important;
  border-radius:8px !important;
  background:#fff !important;
  box-shadow:0 7px 22px rgba(35,64,90,.035) !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card h3 {
  margin:0 !important;
  padding:0 !important;
  color:#2a4157 !important;
  font-size:16px !important;
  font-weight:650 !important;
  line-height:1.3 !important;
  letter-spacing:-.014em !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card p {
  margin:0 !important;
  padding:0 !important;
  color:#667d93 !important;
  font-size:13.2px !important;
  line-height:1.5 !important;
  flex:1 1 auto !important;
}
body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card__link {
  margin-top:3px !important;
  font-size:12px !important;
  line-height:1.35 !important;
  font-weight:700 !important;
  padding:0 0 2px !important;
  flex:0 0 auto !important;
}
@media (min-width:761px) and (max-width:1120px) {
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:760px) {
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-services__grid {
    grid-template-columns:minmax(0,1fr) !important;
    gap:11px !important;
  }
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card {
    padding:15px 16px !important;
  }
  body.sccv-servizi section.sc-related-services.sc-related-services--count-4 .sc-related-service-card p {
    font-size:13.4px !important;
  }
}
