.agency-overview {
  align-self: center;
  width: min(100%, 1536px);
  box-sizing: border-box;
  padding: clamp(24px, 4vw, 68px);
  scroll-margin-top: clamp(105px, 8.2vw, 170px);
  border: 1px solid #c7a7ff40;
  border-radius: 14px;
  background: radial-gradient(ellipse at 52% 0%, #322644 0%, transparent 65%), #1b1822;
  color: #f5f0e7;
}

.agency-overview-intro { text-align: center; }

.agency-overview h2 {
  margin: 0;
  color: inherit;
  font: 900 clamp(30px, 3.3vw, 60px)/1.08 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.agency-overview h2 span { display: block; color: #c7a7ff; }

.agency-overview p {
  max-width: 66ch;
  margin: 20px auto 0;
  color: #e5deef;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
}

.agency-overview strong { color: #f5f0e7; }

.agency-overview h3 {
  margin: clamp(30px, 4vw, 56px) 0 16px;
  color: inherit;
  font: 800 clamp(26px, 2.6vw, 44px)/1 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.04em;
}

.agency-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #c7a7ff38;
  border-radius: 10px;
  background: #c7a7ff38;
}

.agency-services article {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 12px;
  padding: clamp(16px, 1.65vw, 28px);
  background: #201b29;
}

.agency-services h4 {
  display: flex;
  align-items: flex-start;
  gap: .5em;
  margin: 0;
  color: inherit;
  font: 800 clamp(19px, 1.38vw, 24px)/1.15 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.025em;
}

.agency-service-icon {
  flex: none;
  font: 400 1.4em/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.agency-services ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  margin: 0;
  padding-left: 1.2em;
  color: #e5deef;
  font-size: clamp(15px, 1.03vw, 18px);
  line-height: 1.45;
}

.agency-services li::marker { color: #c7a7ff; }

.agency-overview a.agency-overview-cta {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  margin: 24px 0 0 auto;
  padding: 10px 24px;
  border-radius: 100px;
  background: #d42d13;
  color: #fff;
  font: 600 18px/1.25 "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
}

.agency-overview a.agency-overview-cta:hover { background: #b92610; color: #fff; }
.agency-overview a.agency-overview-cta:focus-visible { outline: 2px solid #c7a7ff; outline-offset: 4px; }

@media (max-width: 1050px) {
  .agency-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
}

@media (max-width: 620px) {
  .agency-services { grid-template-columns: minmax(0, 1fr); }
  .agency-services article {
    grid-row: auto;
    grid-template-rows: auto auto;
  }
}

.theone-service-links { scroll-margin-top: clamp(105px, 8.2vw, 170px); }
.theone-service-links .elementor-heading-title { text-transform: uppercase; }
.theone-service-links > .e-con > .elementor-widget-heading { flex: 1 1 0; min-width: 0; }
.theone-service-links > .e-con > .elementor-widget-button { flex: 0 0 auto; }

.theone-service-links .service-label {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  text-wrap: balance;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.theone-service-links .service-arrow { cursor: default; }
.theone-service-links .service-toggle { cursor: pointer; }
.theone-service-links .service-toggle:focus-visible { outline: 2px solid #c7a7ff; outline-offset: 5px; }
.theone-service-links .service-toggle[aria-expanded="true"] svg { rotate: 90deg; }

.web-service[hidden] { display: none; }

.web-service {
  width: min(100%, 1536px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(26px, 5vw, 86px);
  padding: clamp(24px, 5vw, 86px);
  scroll-margin-top: clamp(105px, 8.2vw, 170px);
  border: 1px solid #c7a7ff40;
  border-radius: 14px;
  background: radial-gradient(ellipse at 85% 50%, #332643, transparent 63%), #1b1822;
  color: #f5f0e7;
}

.web-service h3 {
  margin: 0 0 22px;
  color: inherit;
  font: 900 clamp(28px, 3.5vw, 62px)/1 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.05em;
}

.web-service p {
  max-width: 52ch;
  margin: 0 0 16px;
  color: #e5deef;
  font-size: clamp(16px, 1.65vw, 24px);
  line-height: 1.5;
}

.web-service strong { color: #f5f0e7; }
.web-service .service-more {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 100px;
  background: #c7a7ff;
  color: #161322;
  font: 700 15px/1.25 Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  opacity: 1;
}

.web-service .service-more:disabled { cursor: default; }
.web-service a.service-more:hover { background: #dac5ff; color: #161322; }
.web-service a.service-more:focus-visible { outline: 2px solid #c7a7ff; outline-offset: 4px; }

.web-service figure {
  margin: 0;
  padding: clamp(14px, 2.6vw, 34px);
  border-radius: 10px;
  background: #f6f1fb;
}

.web-service img { display: block; width: 100%; height: auto; }
.service-art--ai img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: right center;
  border-radius: 6px;
}

.service-art--apps img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 820px) {
  .web-service { grid-template-columns: minmax(0, 1fr); }
  .web-service figure { width: min(100%, 470px); margin-inline: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(#servizi:target) { scroll-behavior: smooth; }

  .web-service :is(figure, img:not(figure img)) {
    transform: var(--service-art-movement, none);
  }
}
