/* Studio Catarraso v5.10.20
   Reliable compact cards for HOME specialisations and COMPETENZE intervention areas.
   Specialist pathways (.sc-related-services) are intentionally not selected.
   Only loaded for it/en/es home and servizi pages after the normal theme CSS. */

/* HOME | Specializzazioni: preserve 3/2/1 columns with a calmer, shorter card. */
body #competenze .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body #competenze .service-grid > a.service-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  padding: 21px 22px 18px !important;
}
body #competenze .service-grid > a.service-card::after {
  height: 2px;
  left: 22px;
  right: 22px;
}
body #competenze .service-grid > a.service-card .card-icon {
  box-sizing: border-box;
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px;
  border-radius: 14px;
  margin: 0 0 13px !important;
}
body #competenze .service-grid > a.service-card .card-icon svg {
  width: 22px !important;
  height: 22px !important;
}
body #competenze .service-grid > a.service-card h3 {
  min-height: 0 !important;
  font-size: 16.8px !important;
  font-weight: 650;
  line-height: 1.36;
  margin: 0 0 8px !important;
}
body #competenze .service-grid > a.service-card p {
  font-size: 12.5px !important;
  line-height: 1.62;
  margin: 0 !important;
  flex: 1;
}
body #competenze .service-grid > a.service-card .arrow {
  font-size: 17px;
  padding-top: 10px;
  margin-top: auto;
}

/* COMPETENZE | Ambiti di intervento: handle both imported and already-saved Gutenberg markup. */
body .inner-section .inner-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
body .inner-section .inner-cards > a.inner-card,
body .inner-section .inner-cards > a.sc-competenza-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  padding: 21px 22px 18px !important;
}
body .inner-section .inner-cards > a .card-icon {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  border-radius: 12px;
  margin: 0 !important;
}
body .inner-section .inner-cards > a .card-icon svg {
  width: 21px !important;
  height: 21px !important;
}
body .inner-section .inner-cards > a h3 {
  min-height: 0 !important;
  font-size: 16.8px !important;
  font-weight: 650;
  line-height: 1.36;
  margin: 12px 0 8px !important;
}
body .inner-section .inner-cards > a p {
  font-size: 12.8px !important;
  line-height: 1.62;
  margin: 0 !important;
  flex: 1;
}
body .inner-section .inner-cards > a .arrow,
body .inner-section .inner-cards > a .inner-arrow {
  font-size: 18px;
  margin-top: 10px;
}

/* Tablet: keep the cards comfortable. */
@media (min-width: 761px) and (max-width: 1020px) {
  body #competenze .service-grid,
  body .inner-section .inner-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: one full-width card per row; no fixed height. */
@media (max-width: 760px) {
  body #competenze .service-grid,
  body .inner-section .inner-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }
  body #competenze .service-grid > a.service-card,
  body .inner-section .inner-cards > a.inner-card,
  body .inner-section .inner-cards > a.sc-competenza-card {
    min-height: 0 !important;
    padding: 18px 19px 16px !important;
  }
  body #competenze .service-grid > a.service-card::after {left: 19px;right: 19px;}
  body #competenze .service-grid > a.service-card .card-icon,
  body .inner-section .inner-cards > a .card-icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px;
    margin-bottom: 10px !important;
  }
  body #competenze .service-grid > a.service-card .card-icon svg,
  body .inner-section .inner-cards > a .card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  body #competenze .service-grid > a.service-card h3,
  body .inner-section .inner-cards > a h3 {
    font-size: 17px !important;
    margin-bottom: 7px !important;
  }
  body .inner-section .inner-cards > a h3 {margin-top: 10px !important;}
  body #competenze .service-grid > a.service-card p,
  body .inner-section .inner-cards > a p {
    font-size: 12.7px !important;
  }
  body #competenze .service-grid > a.service-card .arrow {padding-top: 8px;}
  body .inner-section .inner-cards > a .arrow,
  body .inner-section .inner-cards > a .inner-arrow {margin-top: 8px;}
}

/* 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;
  }
}

/* Studio Catarraso 5.10.30 — Refined editorial card system.
 * Final, isolated layer for Home cards and the six "Ambiti di intervento" cards.
 * Does not style "Percorsi specialistici", service details, the blog or portraits.
 * This file loads AFTER the older card layers by design.
 */

/* Shared editorial vocabulary: clear hierarchy, light borders, restrained movement. */
body.sccv-home .service-grid > a.service-card,
body.sccv-home .sc-audience-grid > .sc-audience-card,
body.sccv-home .sc-method-grid > .sc-method-card,
body.sccv-servizi .inner-section .inner-cards > a:is(.inner-card,.sc-competenza-card) {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  color: #2a4056 !important;
  border: 1px solid #dbe6ef !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(27,59,88,.035) !important;
  overflow: hidden !important;
}
body.sccv-home :is(.service-card,.sc-audience-card,.sc-method-card) h3,
body.sccv-servizi .inner-section .inner-cards > a h3 {
  font-family: inherit !important;
  color: #284056 !important;
  font-weight: 650 !important;
  letter-spacing: -.018em !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  text-wrap: pretty;
}
body.sccv-home :is(.service-card,.sc-audience-card,.sc-method-card) p,
body.sccv-servizi .inner-section .inner-cards > a p {
  color: #62798c !important;
  max-width: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

/* HOME — Six expertise cards: icon aligned with title; full-width description. */
body.sccv-home #competenze .service-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 17px !important;
  align-items: stretch !important;
  background: none !important;
  border: 0 !important;
}
body.sccv-home #competenze .service-grid > a.service-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 43px minmax(0,1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 13px !important;
  row-gap: 12px !important;
  align-content: start !important;
  align-items: center !important;
  padding: 22px 23px 42px !important;
  text-decoration: none !important;
  transform: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease !important;
}
body.sccv-home #competenze .service-grid > a.service-card::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: auto !important;
  left: 22px !important;
  right: auto !important;
  width: 42px !important;
  height: 2px !important;
  background: #6299c7 !important;
  border-radius: 0 0 3px 3px !important;
}
body.sccv-home #competenze .service-grid > a.service-card .card-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  place-items: center !important;
  width: 43px !important;
  height: 43px !important;
  min-width: 43px !important;
  min-height: 43px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid #d5e5f3 !important;
  background: linear-gradient(145deg,#f4f9fd,#e8f3fb) !important;
  color: #467eaa !important;
  box-shadow: none !important;
  flex: none !important;
}
body.sccv-home #competenze .service-grid > a.service-card .card-icon svg {
  width: 21px !important;
  height: 21px !important;
  stroke-width: 1.8 !important;
}
body.sccv-home #competenze .service-grid > a.service-card h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-size: 16px !important;
  line-height: 1.33 !important;
  text-wrap: pretty !important;
}
body.sccv-home #competenze .service-grid > a.service-card p {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  padding: 0 !important;
  align-self: start !important;
  font-size: 13.1px !important;
  line-height: 1.66 !important;
  flex: none !important;
}
body.sccv-home #competenze .service-grid > a.service-card .arrow {
  display: grid !important;
  place-items: center !important;
  position: absolute !important;
  right: 18px !important;
  bottom: 12px !important;
  width: 25px !important;
  height: 25px !important;
  border-radius: 50% !important;
  border: 1px solid #d7e6f2 !important;
  background: #f1f7fc !important;
  color: #4b81ac !important;
  font-size: 16px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}
body.sccv-home #competenze .service-grid > a.service-card:hover,
body.sccv-home #competenze .service-grid > a.service-card:focus-visible {
  border-color: #a8c9e0 !important;
  box-shadow: 0 12px 27px rgba(31,67,97,.085) !important;
  transform: translateY(-2px) !important;
}
body.sccv-home #competenze .service-grid > a.service-card:focus-visible,
body.sccv-servizi .inner-section .inner-cards > a:focus-visible {
  outline: 2px solid #5c94c1 !important;
  outline-offset: 3px !important;
}

/* HOME — "A chi ci rivolgiamo": lighter cards, less height. */
body.sccv-home .sc-audience .sc-audience-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 14px !important;
}
body.sccv-home .sc-audience .sc-audience-grid > .sc-audience-card {
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 11px !important;
  row-gap: 11px !important;
  align-content: start !important;
  align-items: center !important;
  padding: 18px 17px 19px !important;
  background: #f7fafc !important;
  border-top: 2px solid #bdd9ec !important;
  transition: border-color .2s ease, background .2s ease !important;
  transform: none !important;
}
body.sccv-home .sc-audience .sc-audience-card .card-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #eaf4fb !important;
  border: 1px solid #d4e6f3 !important;
  box-shadow: none !important;
  color: #4f83ad !important;
}
body.sccv-home .sc-audience .sc-audience-card .card-icon svg {width:19px !important;height:19px !important;}
body.sccv-home .sc-audience .sc-audience-card h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  font-size: 14.7px !important;
  line-height: 1.36 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.sccv-home .sc-audience .sc-audience-card p {
  grid-column: 1/-1 !important;
  grid-row: 2 !important;
  font-size: 12.6px !important;
  line-height: 1.6 !important;
}
body.sccv-home .sc-audience .sc-audience-card:hover {
  border-color: #bdd8eb !important;
  background: #f1f7fc !important;
}

/* HOME — "Il nostro approccio": purposeful step cards. */
body.sccv-home .sc-method .sc-method-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 14px !important;
  border: 0 !important;
}
body.sccv-home .sc-method .sc-method-card,
body.sccv-home .sc-method .sc-method-card:first-child {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 11px !important;
  row-gap: 10px !important;
  align-items: center !important;
  align-content: start !important;
  padding: 19px 17px 20px !important;
  border: 1px solid #e0e9f0 !important;
  border-top: 2px solid #c5ddeb !important;
  margin: 0 !important;
}
body.sccv-home .sc-method .sc-method-card .card-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: #eff6fb !important;
  border: 1px solid #d9e8f3 !important;
  color: #4d82ad !important;
}
body.sccv-home .sc-method .sc-method-card .card-icon svg {width:19px !important;height:19px !important;}
body.sccv-home .sc-method .sc-method-card h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  font-size: 15.4px !important;
  line-height: 1.35 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.sccv-home .sc-method .sc-method-card p {
  grid-column: 1/-1 !important;
  grid-row: 2 !important;
  font-size: 12.7px !important;
  line-height: 1.6 !important;
}

/* HOME — Four values in "Chi siamo": tidy information tiles, not heavy boxes. */
body.sccv-home #studio .values {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 10px !important;
  margin: 22px 0 28px !important;
}
body.sccv-home #studio .values > .value {
  display: grid !important;
  grid-template-columns: 32px minmax(0,1fr) !important;
  gap: 10px !important;
  padding: 13px 10px 12px !important;
  border: 1px solid #e0e9f1 !important;
  border-radius: 8px !important;
  background: #fbfdff !important;
  min-width: 0 !important;
}
body.sccv-home #studio .values > .value .value-icon {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border: 1px solid #dce9f4 !important;
  border-radius: 9px !important;
  background: #f1f7fc !important;
}
body.sccv-home #studio .values > .value .value-icon svg {width:17px !important;height:17px !important;}
body.sccv-home #studio .values > .value b {font-size: 12.6px !important;line-height: 1.35 !important;margin: 0 0 3px !important;color:#284056 !important;}
body.sccv-home #studio .values > .value .value-copy span {font-size: 11.9px !important;line-height: 1.5 !important;color:#687e8f !important;}

/* COMPETENZE — Ambiti di intervento only. Six anchored service cards. */
body.sccv-servizi .inner-section .inner-cards {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 17px !important;
  align-items: stretch !important;
  margin-top: 28px !important;
  border: 0 !important;
  background: none !important;
}
body.sccv-servizi .inner-section .inner-cards > a:is(.inner-card,.sc-competenza-card) {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0,1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 13px !important;
  row-gap: 12px !important;
  align-content: start !important;
  align-items: center !important;
  padding: 22px 23px 43px !important;
  text-decoration: none !important;
  transform: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease !important;
}
/* Both original numerical mini-index and media-library icon variant. */
body.sccv-servizi .inner-section .inner-cards > a .mini-index,
body.sccv-servizi .inner-section .inner-cards > a .card-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #d5e5f2 !important;
  border-radius: 11px !important;
  background: #eef6fc !important;
  color: #4d81ac !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .08em !important;
  box-shadow: none !important;
}
body.sccv-servizi .inner-section .inner-cards > a .card-icon svg {width:20px !important;height:20px !important;}
body.sccv-servizi .inner-section .inner-cards > a h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  font-size: 16px !important;
  line-height: 1.33 !important;
}
body.sccv-servizi .inner-section .inner-cards > a p {
  grid-column: 1/-1 !important;
  grid-row: 2 !important;
  align-self: start !important;
  font-size: 13.1px !important;
  line-height: 1.66 !important;
  flex: none !important;
  padding: 0 !important;
}
body.sccv-servizi .inner-section .inner-cards > a .inner-arrow,
body.sccv-servizi .inner-section .inner-cards > a .arrow {
  display: grid !important;
  place-items: center !important;
  position: absolute !important;
  bottom: 12px !important;
  right: 18px !important;
  width: 25px !important;
  height: 25px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #4b81ac !important;
  background: #f1f7fc !important;
  border: 1px solid #d7e6f2 !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}
body.sccv-servizi .inner-section .inner-cards > a:hover,
body.sccv-servizi .inner-section .inner-cards > a:focus-visible {
  transform: translateY(-2px) !important;
  border-color: #a8c9e0 !important;
  box-shadow: 0 12px 27px rgba(31,67,97,.085) !important;
}

/* Responsive rhythm: 3/2/1 on service grids, 4/2/1 on the supporting grids. */
@media (max-width: 1100px) {
  body.sccv-home .sc-audience .sc-audience-grid,
  body.sccv-home .sc-method .sc-method-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (min-width: 681px) and (max-width: 1020px) {
  body.sccv-home #competenze .service-grid,
  body.sccv-servizi .inner-section .inner-cards {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width: 680px) {
  body.sccv-home #competenze .service-grid,
  body.sccv-home .sc-audience .sc-audience-grid,
  body.sccv-home .sc-method .sc-method-grid,
  body.sccv-servizi .inner-section .inner-cards {grid-template-columns:minmax(0,1fr) !important;gap:11px !important;}
  body.sccv-home #competenze .service-grid > a.service-card,
  body.sccv-servizi .inner-section .inner-cards > a:is(.inner-card,.sc-competenza-card) {padding:18px 18px 39px !important;column-gap:12px !important;row-gap:10px !important;}
  body.sccv-home #competenze .service-grid > a.service-card h3,
  body.sccv-servizi .inner-section .inner-cards > a h3 {font-size:15.7px !important;}
  body.sccv-home #competenze .service-grid > a.service-card p,
  body.sccv-servizi .inner-section .inner-cards > a p {font-size:13px !important;line-height:1.63 !important;}
  body.sccv-home .sc-audience .sc-audience-grid > .sc-audience-card,
  body.sccv-home .sc-method .sc-method-card,
  body.sccv-home .sc-method .sc-method-card:first-child {padding:17px !important;}
  body.sccv-home #studio .values {grid-template-columns:minmax(0,1fr) !important;}
}
@media (prefers-reduced-motion:reduce) {
  body.sccv-home .service-grid > a.service-card,
  body.sccv-servizi .inner-section .inner-cards > a {transition:none !important;transform:none !important;}
}


/* v5.10.30 — A more restrained, institutional visual treatment.
 * No accent bars, no resting shadows, modest typographic weights and
 * very small arrows. Only the Home and six Ambiti di intervento cards.
 */
body.sccv-home #competenze .service-grid > a.service-card,
body.sccv-servizi .inner-section .inner-cards > a:is(.inner-card,.sc-competenza-card) {
  border: 1px solid #e1e8ee !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
body.sccv-home #competenze .service-grid > a.service-card::after {
  content: none !important;
  display: none !important;
}
body.sccv-home .sc-audience .sc-audience-grid > .sc-audience-card,
body.sccv-home .sc-method .sc-method-card,
body.sccv-home .sc-method .sc-method-card:first-child {
  border: 1px solid #e1e8ef !important;
  border-top: 1px solid #e1e8ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.sccv-home #studio .values > .value {
  border: 1px solid #e2eaf1 !important;
  box-shadow: none !important;
  background: #fff !important;
}
body.sccv-home #competenze .service-grid > a.service-card h3,
body.sccv-servizi .inner-section .inner-cards > a h3 {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  letter-spacing: -.011em !important;
  line-height: 1.38 !important;
}
body.sccv-home .sc-audience .sc-audience-grid > .sc-audience-card h3,
body.sccv-home .sc-method .sc-method-card h3 {
  font-weight: 600 !important;
  letter-spacing: -.011em !important;
}
body.sccv-home #competenze .service-grid > a.service-card .card-icon,
body.sccv-servizi .inner-section .inner-cards > a :is(.mini-index,.card-icon),
body.sccv-home .sc-audience .sc-audience-card .card-icon,
body.sccv-home .sc-method .sc-method-card .card-icon {
  background: #f5f9fc !important;
  color: #597d9a !important;
  border-color: #e2eaf2 !important;
  box-shadow: none !important;
}
/* Arrow is a subtle link cue, not a second decorative button. */
body.sccv-home #competenze .service-grid > a.service-card .arrow,
body.sccv-servizi .inner-section .inner-cards > a :is(.inner-arrow,.arrow) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6d91af !important;
  width: 23px !important;
  height: 23px !important;
  right: 17px !important;
  bottom: 12px !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  transition: transform .2s ease, color .2s ease !important;
}
body.sccv-home #competenze .service-grid > a.service-card:hover,
body.sccv-home #competenze .service-grid > a.service-card:focus-visible,
body.sccv-servizi .inner-section .inner-cards > a:hover,
body.sccv-servizi .inner-section .inner-cards > a:focus-visible {
  border-color: #c7d8e5 !important;
  box-shadow: 0 5px 16px rgba(31,60,85,.045) !important;
  transform: translateY(-1px) !important;
}
body.sccv-home #competenze .service-grid > a.service-card:hover .arrow,
body.sccv-home #competenze .service-grid > a.service-card:focus-visible .arrow,
body.sccv-servizi .inner-section .inner-cards > a:hover :is(.inner-arrow,.arrow),
body.sccv-servizi .inner-section .inner-cards > a:focus-visible :is(.inner-arrow,.arrow) {
  transform: translate(2px,-2px) !important;
  color: #477aa1 !important;
}
body.sccv-home .sc-audience .sc-audience-grid > .sc-audience-card:hover,
body.sccv-home .sc-method .sc-method-card:hover {
  border-color: #cddce8 !important;
  background: #fbfdff !important;
  box-shadow: 0 4px 13px rgba(31,60,85,.03) !important;
}

/* Two rows of two cards on mobile for Home's audience and method. 
 * Text is stacked beneath the icon to prevent narrow columns squeezing titles.
 */
@media (max-width: 680px) {
  body.sccv-home .sc-audience .sc-audience-grid,
  body.sccv-home .sc-method .sc-method-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  body.sccv-home .sc-audience .sc-audience-grid > .sc-audience-card,
  body.sccv-home .sc-method .sc-method-card,
  body.sccv-home .sc-method .sc-method-card:first-child {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: 32px auto 1fr !important;
    column-gap: 0 !important;
    row-gap: 8px !important;
    padding: 14px 12px 15px !important;
    align-content: start !important;
    align-items: start !important;
    min-width: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  body.sccv-home .sc-audience .sc-audience-card .card-icon,
  body.sccv-home .sc-method .sc-method-card .card-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }
  body.sccv-home .sc-audience .sc-audience-card .card-icon svg,
  body.sccv-home .sc-method .sc-method-card .card-icon svg {
    width: 17px !important;
    height: 17px !important;
  }
  body.sccv-home .sc-audience .sc-audience-card h3,
  body.sccv-home .sc-method .sc-method-card h3 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
    font-weight: 600 !important;
    overflow-wrap: break-word !important;
  }
  body.sccv-home .sc-audience .sc-audience-card p,
  body.sccv-home .sc-method .sc-method-card p {
    grid-column: 1 !important;
    grid-row: 3 !important;
    align-self: start !important;
    font-size: 12.2px !important;
    line-height: 1.55 !important;
    overflow-wrap: break-word !important;
  }
}
@media (max-width: 360px) {
  body.sccv-home .sc-audience .sc-audience-grid,
  body.sccv-home .sc-method .sc-method-grid {gap: 8px !important;}
  body.sccv-home .sc-audience .sc-audience-grid > .sc-audience-card,
  body.sccv-home .sc-method .sc-method-card,
  body.sccv-home .sc-method .sc-method-card:first-child {padding: 12px 10px 13px !important;row-gap:7px !important;}
  body.sccv-home .sc-audience .sc-audience-card h3,
  body.sccv-home .sc-method .sc-method-card h3 {font-size:12.7px !important;}
  body.sccv-home .sc-audience .sc-audience-card p,
  body.sccv-home .sc-method .sc-method-card p {font-size:12px !important;line-height:1.52 !important;}
}
@media (prefers-reduced-motion:reduce) {
  body.sccv-home #competenze .service-grid > a.service-card,
  body.sccv-servizi .inner-section .inner-cards > a,
  body.sccv-home #competenze .service-grid > a.service-card .arrow,
  body.sccv-servizi .inner-section .inner-cards > a :is(.inner-arrow,.arrow) {
    transition: none !important;
    transform: none !important;
  }
}

/* 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;
  }
}
