/* Services overview only. Shared website tokens, header and preferences are preserved. */
.services-overview .content-wrap {
  width: min(1320px, calc(100% - 2 * clamp(16px, 3vw, 32px)));
  padding-inline: 0;
}
.services-overview h1,
.services-overview h2 { text-wrap: balance; }
.services-overview .label { font-size: .8125rem; }
.services-opening { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.services-opening > .label { margin-bottom: 1.25rem; }
.services-opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.services-opening h1 {
  font-size: clamp(2.625rem, 4.7vw, 4.5rem);
  line-height: 1.09;
  letter-spacing: -.055em;
}
.services-opening h1 span { color: var(--cw-color-primary); }
.services-opening-copy > p {
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--cw-color-text-secondary);
}
.services-opening-copy .button { margin-top: 1.5rem; }
.services-overview .button { max-width: 100%; white-space: normal; text-align: left; }
.service-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--cw-color-border-decorative);
}
.service-jump a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  font-weight: 700;
}
.service-jump-number { flex: none; white-space: nowrap; font-size: .8125rem; color: var(--cw-color-text-secondary); }
.service-jump a > .icon { margin-left: auto; transform: rotate(90deg); }
.service-jump a:hover { color: var(--cw-color-link); }
.service-jump a:hover > span:nth-child(2) { text-decoration: underline; text-underline-offset: .25em; }
.service-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  scroll-margin-top: 2rem;
}
.service-story + .service-story { border-top: 1px solid var(--cw-color-border-decorative); }
.service-story-copy > .label { margin-bottom: 1rem; }
.service-number { margin-right: .75rem; }
.service-story h2 {
  max-width: 19ch;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.16;
}
.service-description { margin-top: 1.5rem; color: var(--cw-color-text-secondary); line-height: 1.8; }
.service-example {
  border-left: 2px solid var(--cw-color-border-decorative);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
}
.service-example .label { margin-bottom: .5rem; font-size: .75rem; }
.service-example > p:last-child { line-height: 1.7; }
.service-detail-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  margin-top: 1.5rem;
  color: var(--cw-color-link);
  font-weight: 800;
}
.service-detail-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.service-drawing {
  overflow: hidden;
  border: 1px solid var(--cw-color-border-decorative);
  border-radius: var(--cw-radius-panel);
  background: var(--cw-color-surface);
}
.service-drawing > img {
  width: 100%;
  height: auto;
  max-height: min(52svh, 400px);
  object-fit: contain;
  background: #f5f7fa;
}
.service-drawing figcaption { padding: 1.5rem; }
.service-flow-legend {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
}
.service-flow-legend > span { flex: 1; min-width: 0; text-align: center; }
.service-flow-legend > span + span::before { content: "→"; float: left; margin-left: -.25rem; color: var(--cw-color-primary); }
#evoluzione .service-flow-legend > span + span::before { content: "↔"; }
.service-drawing figcaption > p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cw-color-border-decorative);
  text-align: center;
  color: var(--cw-color-text-secondary);
  font-size: .875rem;
}
.service-story:nth-child(even) .service-story-copy { grid-column: 2; grid-row: 1; }
.service-story:nth-child(even) .service-drawing { grid-column: 1; grid-row: 1; }
.services-method {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-block: 1px solid var(--cw-color-border-decorative);
  background: var(--cw-color-surface);
}
.services-method-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}
.services-method h2, .services-contact h2 { margin-top: 1rem; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.17; max-width: 21ch; }
.services-method-heading > p { color: var(--cw-color-text-secondary); max-width: 34rem; line-height: 1.8; }
.services-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.services-steps li { border-top: 1px solid var(--cw-color-border-decorative); padding-top: 1.5rem; }
.service-step-index { color: var(--cw-color-text-secondary); font-size: .8125rem; }
.services-steps h3 { font-size: 1.25rem; line-height: 1.4; margin-top: .75rem; }
.services-steps p { margin-top: .75rem; color: var(--cw-color-text-secondary); line-height: 1.8; }
.services-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding-block: clamp(3rem, 6vw, 5rem); }
.services-contact-copy { color: var(--cw-color-text-secondary); max-width: 36rem; margin-top: 1.5rem; line-height: 1.8; }
.services-contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-self: end; gap: .5rem; }
.service-email { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; }
.services-contact-actions > p { color: var(--cw-color-text-secondary); }
.services-contact-actions > p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cw-color-text); text-decoration: underline; text-underline-offset: .25em; }
.services-overview :is(a, p, h1, h2, h3, figcaption) { overflow-wrap: anywhere; }
@media (max-width: 60rem) {
  .services-opening-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-opening h1 { max-width: 17ch; font-size: clamp(2.625rem, 7vw, 4rem); }
  .services-opening-copy { display: flex; align-items: center; gap: 2rem; }
  .services-opening-copy .button { margin-top: 0; flex-shrink: 0; max-width: 40%; }
  .service-jump { gap: 1rem; }
  .service-jump a { font-size: .875rem; gap: .5rem; }
  .service-story { gap: 2rem; }
  .service-drawing figcaption { padding: 1rem; }
  .services-method-heading, .services-contact { gap: 2rem; }
  .services-steps { gap: 1.5rem; }
}
@media (max-width: 45rem) {
  .services-opening-copy { display: block; }
  .services-opening-copy .button { margin-top: 1.5rem; max-width: 100%; }
  .service-jump { grid-template-columns: 1fr; gap: .25rem; margin-top: 2rem; padding-block: .75rem; }
  .service-jump a { font-size: 1rem; gap: 1rem; }
  .service-story { grid-template-columns: 1fr; gap: 2rem; }
  .service-story:nth-child(even) .service-story-copy, .service-story:nth-child(even) .service-drawing { grid-column: auto; grid-row: auto; }
  .service-story h2 { max-width: 22ch; }
  .services-method-heading, .services-contact, .services-steps { grid-template-columns: 1fr; }
  .services-steps { margin-top: 2rem; gap: 2rem; }
  .services-contact-actions { justify-self: start; }
}
@media (max-width: 23rem) {
  .service-flow-legend { flex-direction: column; }
  .service-flow-legend > span { width: 100%; }
  .service-flow-legend > span + span::before { content: "↓"; float: none; display: block; margin: 0 0 .5rem; }
  #evoluzione .service-flow-legend > span + span::before { content: "↕"; }
}
