:root {
  --bg: #fff;
  --panel: #fafafa;
  --panel-2: #f5f5f5;
  --text: #050505;
  --muted: #57515f;
  --line: #e5e2ea;
  --violet: #8f3cff;
  --violet-dark: #3a0a5a;
  --violet-soft: #f6efff;
  --page-x: clamp(24px, 4vw, 64px);
  --section-title-size: 56px;
  --content-max-width: 1700px;
}

.faq-section {
  width: calc(100% - var(--page-x) * 2);
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-block: 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}
.faq-copy h2 { margin: 20px 0 24px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -1px; }
.faq-copy p { color: var(--muted); line-height: 1.75; margin: 0 0 24px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 24px 36px 24px 0; font-weight: 650; font-size: 18px; line-height: 1.45; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 24px; color: var(--violet); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.faq-item p { margin: 0; padding: 0 20px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
@media (max-width: 980px) {
  .faq-section { grid-template-columns: 1fr; gap: 32px; padding-block: 64px; }
}

@media (min-width: 1200px) {
  :root {
    --page-x: clamp(32px, 4vw, 80px);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  margin: 0;
  padding: 16px max(var(--page-x), calc((100% - var(--content-max-width)) / 2));
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
}

.brand-name strong {
  font-weight: 700;
}
.brand-name { line-height: 1.35; }

.brand-initial {
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 44%, 14% 34%, 0 34%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-self: flex-start;
  margin-top: 1px;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.brand-mark path {
  fill: var(--violet);
  stroke: none;
}

.brand-mark .brand-fold {
  opacity: 0.55;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

.nav a {
  position: relative;
  text-decoration: none;
  padding: 12px 0;
  white-space: nowrap;
}

.nav a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a[aria-current="location"]::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.nav .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.nav .nav-contact:hover {
  background: #333;
  color: #fff;
}

.nav svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-submenu-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
}

.nav-submenu-toggle:hover {
  color: var(--violet);
}

.nav-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px #00000012;
}

.nav-submenu[hidden] {
  display: none;
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .nav-submenu::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    height: 13px;
  }
}

.nav .nav-submenu a {
  display: block;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  border-radius: 4px;
}

.nav .nav-submenu a::after {
  display: none;
}

.nav .nav-submenu a:hover {
  color: var(--violet);
  background: #f6f2fa;
}

@media (max-width: 980px) {
  .nav-dropdown-trigger {
    justify-content: space-between;
  }

  .nav-submenu-toggle {
    width: 44px;
  }

  .nav-submenu {
    position: static;
    width: 100%;
    padding: 0 0 0 12px;
    margin: 0 0 12px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
}

.site-header :focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 5px;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 64px;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 64px var(--page-x) 40px;
  overflow: hidden;
  isolation: isolate;
  background: #fcfcfd;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: none;
}

.hero::before {
  top: 118px;
  left: -216px;
  width: 280px;
  height: 320px;
  border-top: 1px solid #e9e6ee;
  border-right: 1px solid #e9e6ee;
  transform: rotate(-28deg);
}

.hero::after {
  top: -78px;
  right: -230px;
  width: 310px;
  height: 430px;
  border-left: 1px solid #dfd5ec;
  border-bottom: 1px solid #e9e6ee;
  transform: rotate(-28deg);
}

@media (max-width: 980px) {
  .hero::before { display: none; }
  .hero::after {
    top: 16px;
    right: -148px;
    width: 180px;
    height: 240px;
    opacity: .55;
  }
}

@media (max-width: 620px) {
  .hero::after { display: none; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-lines {
  --decor-edge: min(120px, max(12px, calc(var(--page-x) - 20px)));
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.section-lines::before,
.section-lines::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-28deg);
}

.section-lines::before {
  top: 72px;
  left: calc(var(--decor-edge) - 339px);
  width: 280px;
  height: 320px;
  border-top: 1px solid #e9e6ee;
  border-right: 1px solid #e9e6ee;
}

.section-lines::after {
  top: 38%;
  right: calc(var(--decor-edge) - 393px);
  width: 310px;
  height: 430px;
  border-left: 1px solid #e1d8ed;
  border-bottom: 1px solid #e9e6ee;
}

.section-lines:nth-child(3n)::before { top: 42%; }
.section-lines:nth-child(3n)::after { top: 48px; }

.site-footer.section-lines { overflow: visible; }
.site-footer.section-lines::before { display: none; }
.site-footer.section-lines::after {
  top: 8px;
  right: 20px;
  width: 64px;
  height: 18px;
  border: 0;
  border-top: 1px solid #e1d8ed;
  border-right: 1px solid #e1d8ed;
  transform: skewX(-28deg);
}

@media (max-width: 980px) {
  .section-lines::before { display: none; }
}

@media (max-width: 620px) {
  .section-lines::after { display: none; }
}

.hero-film-wrap {
  --video-grow: 0;
  position: relative;
  z-index: 1;
  width: calc(100% + var(--page-x) * 2 * var(--video-grow));
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  margin: 0 calc(var(--page-x) * -1 * var(--video-grow));
  border-radius: 24px;
  overflow: hidden;
}

.hero-film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff url("assets/evolvio-gemini-poster.jpg") center / contain no-repeat;
}

.hero h1 {
  max-width: none;
  margin-left: auto;
  margin-bottom: 24px;
  font-size: 96px;
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 .hero-title-line {
  display: block;
  color: inherit;
  white-space: nowrap;
}

.hero .eyebrow {
  max-width: none;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 640px;
  margin-bottom: 28px;
  margin-left: auto;
  color: #383838;
  font-size: 18px;
}

.hero .hero-actions {
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.hero .button.primary {
  min-height: 48px;
  background: #111;
  border-color: #111;
  border-radius: 4px;
  font-weight: 600;
}

.hero .button.primary:hover {
  background: #333;
  border-color: #333;
}

.hero-approach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero-approach:hover {
  color: var(--violet);
}

.hero-approach svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 5px;
}

.film-control {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  font-size: 12px;
  cursor: pointer;
}

.film-control[hidden] {
  display: none;
}

.film-control:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-right: auto;
  margin-bottom: 30px;
  margin-left: auto;
  font-size: clamp(50px, 7.2vw, 92px);
  line-height: 0.98;
  font-weight: 760;
}

h1 span,
h2 span {
  color: var(--violet);
}

.lead {
  max-width: 620px;
  margin-right: auto;
  margin-bottom: 34px;
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--violet);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--violet);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -240px;
  width: 520px;
  min-height: 500px;
  padding: 34px;
  overflow: hidden;
  background: #fbf9ff;
  border: 1px solid var(--line);
  transform: translateY(-50%);
  opacity: 0.72;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 50px;
  border: 1px solid rgba(143, 60, 255, 0.18);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  inset: 72px;
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 56px;
  border: 1px solid rgba(5, 5, 5, 0.06);
  border-radius: 50%;
}

.orbit::after {
  inset: 112px;
  border-color: rgba(143, 60, 255, 0.28);
}

.orbit-point {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(143, 60, 255, 0.85);
}

.orbit-point.one {
  top: 26px;
  left: 50%;
}

.orbit-point.two {
  right: 32px;
  top: 48%;
}

.orbit-point.three {
  left: 54px;
  bottom: 70px;
}

.intro-section,
.impact-section {
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  padding: 118px 0;
}

.intro-section.compact {
  padding-bottom: 24px;
}

.intro-section h2,
.method-copy h2,
.impact-section h2,
.contact-section h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5.6vw, 70px);
  line-height: 1.03;
  font-weight: 760;
}

.intro-section p,
.method-copy p,
.impact-section p,
.contact-box p,
.agency-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.problem-grid article {
  min-height: 260px;
  padding: 30px;
  background: #fff;
}

.problem-grid span {
  display: block;
  margin-bottom: 54px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.problem-grid h3 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.1;
}

.problem-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 36px;
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  padding: 28px 0 88px;
  background: transparent;
  border: 0;
}

.value-card {
  min-width: 0;
  color: var(--text);
}

.service-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f5f5;
}

.service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.value-card:first-child img {
  object-position: center 42%;
}

.value-card:nth-child(2) img {
  object-position: center 58%;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-image:hover img {
    transform: scale(1.025);
  }
}

.service-copy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding-top: 22px;
}

.service-number {
  padding-top: 5px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 600;
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 650;
}

.value-card p {
  margin: 0;
  max-width: 490px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.section-stack > .scroll-panel.services-panel {
  min-height: 0;
}

.services-panel .cards-section {
  padding-bottom: 48px;
  row-gap: 56px;
}

.services-panel .service-image {
  border-radius: 6px;
}

.services-panel .service-copy {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e4e0e8;
  transition: border-color 220ms ease;
}

.services-panel .service-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 40px;
  height: 40px;
  padding-top: 0;
  border-radius: 50%;
  background: #f3ebff;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.services-panel .value-card h3 {
  margin-bottom: 12px;
}

.services-panel .value-card p {
  max-width: 44ch;
  min-height: 3.2em;
}

@media (hover: hover) {
  .services-panel .value-card:hover .service-copy {
    border-color: var(--violet);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .services-panel .value-card:hover .service-image img {
    transform: scale(1.015);
  }
}

@media (max-width: 620px) {
  .services-panel .cards-section { row-gap: 40px; }
  .services-panel .service-copy {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
  }
  .services-panel .value-card p {
    min-height: 0;
    max-width: none;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-panel .service-copy { transition: none; }
}

.sector-links {
  width: calc(100% - var(--page-x) * 2);
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-bottom: 88px;
}

.sector-links h3 {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.sector-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sector-links li {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.sector-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.sector-links a:hover {
  color: var(--violet);
}

.sector-links a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.sector-links svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 620px) {
  .sector-links {
    padding-bottom: 56px;
  }

  .sector-links ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .sector-links a {
    font-size: 18px;
  }
}

#servizi {
  padding-top: 88px;
}

#servizi h2 {
  max-width: 1000px;
  margin-bottom: 0;
  font-size: var(--section-title-size);
  line-height: 1.12;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 78px;
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-copy h2 {
  max-width: 470px;
  font-size: var(--section-title-size);
  line-height: 1.1;
}

.method-copy p {
  max-width: 440px;
  font-size: 18px;
  line-height: 1.65;
}

.method-photo {
  margin: 32px 0 0;
  max-width: 470px;
}

.method-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.method-photo figcaption {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--violet);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.steps {
  --method-progress: 0;
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 38px;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 6px;
  width: 1px;
  height: var(--method-line-length, calc(100% - 66px));
  background: linear-gradient(to bottom, var(--violet) 0%, var(--violet) calc(var(--method-progress) * 100%), var(--line) calc(var(--method-progress) * 100%), var(--line) 100%);
}

.steps::after {
  content: "";
  position: absolute;
  top: calc(27px + var(--method-line-length, 0px) * var(--method-progress));
  left: 0;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--violet);
}

.steps li {
  position: relative;
  padding: 22px 0 28px;
  background: transparent;
}

.steps li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: -38px;
  width: 13px;
  height: 13px;
  border: 1px solid #d3c8df;
  border-radius: 50%;
  background: #fff;
}

.steps li.is-reached::before {
  border-color: var(--violet);
  background: var(--violet-soft);
}

.steps > li > span {
  display: block;
  margin-bottom: 10px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.steps h3 {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.steps .step-result {
  margin-top: 14px;
  color: #675276;
  font-size: 14px;
}

.step-result b {
  font-weight: 600;
}

@media (max-width: 620px) {
  .method-section {
    gap: 28px;
    padding: 56px 0;
  }

  :root {
    --section-title-size: 36px;
  }

  .steps h3 {
    font-size: 22px;
  }
}

.section-stack > .scroll-panel.agency-panel {
  min-height: 0;
}

.agency-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 100px;
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.agency-section h2 {
  margin-bottom: 0;
  font-size: var(--section-title-size);
  line-height: 1.12;
  font-weight: 760;
}

.agency-section h2 span {
  color: var(--violet);
}

.agency-intro {
  margin: 26px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.agency-points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.agency-points li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.agency-points h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.agency-points p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.scroll-panel.issues-panel {
  --bg: #f5f5f6;
  background: var(--bg);
}

.section-stack > .scroll-panel.issues-panel {
  min-height: 0;
}

.issues-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 78px;
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  padding: 88px 0;
}

.issues-copy h2 {
  max-width: 470px;
  margin: 0;
  font-size: var(--section-title-size);
  font-weight: 760;
  line-height: 1.08;
}

.issues-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dcd9e1;
}

.issues-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 12px;
  border-bottom: 1px solid #dcd9e1;
  transition: background-color 180ms ease;
}

@media (hover: hover) {
  .issues-list li:hover {
    background: #eeebf4;
  }
}

.issues-list svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.issues-list h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.issues-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.impact-section {
  text-align: center;
}

.impact-section p {
  margin-right: auto;
  margin-left: auto;
  max-width: 820px;
}

.scroll-panel.contact-panel {
  --bg: #151515;
  --text: #f5f5f5;
  --muted: #bdbac2;
  background: var(--bg);
  color: var(--text);
}

.section-stack > .scroll-panel.contact-panel {
  min-height: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 100px;
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  padding: 96px 0;
}

.contact-section .section-label,
.contact-copy h2 span {
  color: #c098f5;
}

.contact-copy h2 {
  font-size: 56px;
  margin-bottom: 28px;
}

.contact-copy p {
  max-width: 540px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.contact-form {
  min-width: 0;
}

.contact-privacy-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 20px 0 14px;
}

.contact-privacy-field input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
  font-size: 16px;
  accent-color: #b48aee;
  cursor: pointer;
}

.contact-privacy-field label {
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  cursor: pointer;
}

.contact-privacy-field a {
  color: #d2b3fb;
  text-underline-offset: 3px;
}

.contact-field {
  margin-bottom: 26px;
}

.contact-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
}

.contact-field label span {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.contact-field input,
.contact-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #625d68;
  border-radius: 4px;
  background: #1e1e1e;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.contact-field input {
  height: 48px;
}

.contact-field textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form :focus-visible {
  outline: 2px solid #c098f5;
  outline-offset: 4px;
}

.contact-form .button {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
}

.contact-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact-status:empty {
  display: none;
}

.contact-status a,
.contact-email {
  color: #d2b3fb;
  text-underline-offset: 4px;
}

.contact-email {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.site-footer {
  width: calc(100% - (var(--page-x) * 2));
  margin: 0 auto;
  padding: 60px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 64px;
  padding-bottom: 48px;
}

.footer-identity .brand {
  font-size: 32px;
}

.footer-identity p {
  max-width: 340px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 4px 0 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.footer-nav h2,
.footer-contacts h2 {
  margin-bottom: 8px;
}

.site-footer a {
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: var(--violet);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 5px;
}

.footer-placeholder {
  color: #77717d;
  font-size: 13px;
}

.footer-legal {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}

.footer-company,
.footer-bottom,
.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-bottom {
  margin-top: 18px;
  justify-content: space-between;
}

.footer-bottom small {
  font-size: inherit;
}

.footer-policies small {
  color: #77717d;
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .footer-identity {
    grid-column: 1 / -1;
  }
}

.intro-section,
.problem-grid,
.cards-section,
.method-section,
.agency-section,
.issues-section,
.impact-section,
.contact-section,
.site-footer {
  max-width: var(--content-max-width);
}

.section-stack {
  position: relative;
  isolation: isolate;
}

.section-stack > .scroll-panel {
  position: sticky;
  top: var(--panel-top, 0px);
  z-index: var(--panel-layer, 1);
  display: flow-root;
  min-height: calc(100svh - var(--stack-header, 0px));
  background: var(--bg);
}

.section-stack > .scroll-panel + .scroll-panel {
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.04);
}

main section[id] {
  scroll-margin-top: calc(var(--stack-header, 0px) + 20px);
}

.scroll-panel.improvement-panel {
  --bg: #151515;
  --text: #f5f5f5;
  --muted: #bdbac2;
  --violet: #c098f5;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 80px;
}

.section-stack > .scroll-panel.improvement-panel {
  min-height: 0;
}

.improvement-panel #miglioramento {
  padding-top: 88px;
  padding-bottom: 48px;
}

.improvement-panel .intro-section h2 {
  max-width: 1080px;
  font-size: var(--section-title-size);
  line-height: 1.08;
  font-weight: 700;
}

.improvement-panel .intro-section p {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}

.improvement-panel .problem-grid {
  gap: 0;
  background: transparent;
  border: 0;
}

.improvement-panel .problem-grid article {
  min-width: 0;
  min-height: 0;
  padding: 0 40px;
  background: transparent;
}

.improvement-panel .problem-grid article:first-child {
  padding-left: 0;
}

.improvement-panel .problem-grid article:last-child {
  padding-right: 0;
}

.improvement-panel .problem-grid article + article {
  border-left: 1px solid #38363b;
}

.improvement-panel .problem-grid span {
  margin-bottom: 28px;
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
}

.improvement-panel .problem-grid h3 {
  max-width: 310px;
  font-size: 24px;
  line-height: 1.2;
}

.improvement-visual {
  position: relative;
  height: 132px;
  margin: 0 0 28px;
  letter-spacing: 0;
}

.improvement-visual small {
  color: #cbc7d1;
  font-size: 12px;
  line-height: 1.4;
}

.workflow-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.workflow-visual::before,
.workflow-visual::after {
  content: "";
  position: absolute;
  top: 51px;
  right: 16.666%;
  left: 16.666%;
  height: 1px;
  background: #38363b;
}

.workflow-visual::after {
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.workflow-node i {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid #5c4e70;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 8px var(--bg);
  transition: border-color 0.5s, background-color 0.5s;
}

.workflow-node:nth-child(2) i { transition-delay: 0.25s; }
.workflow-node:nth-child(3) i { transition-delay: 0.5s; }

.workflow-visual.is-visible::after { transform: scaleX(1); }
.workflow-visual.is-visible .workflow-node i {
  border-color: var(--violet);
  background-color: var(--violet);
}

.numbers-visual {
  display: grid;
  align-content: center;
  gap: 20px;
}

.metric-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.metric-track {
  height: 6px;
  background: #302d33;
}

.metric-track i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-costs { width: 68%; background: #aaa5b2; }
.metric-track .metric-time { width: 46%; background: #98beb3; transition-delay: 0.12s; }
.metric-track .metric-margin { width: 84%; background: var(--violet); transition-delay: 0.24s; }
.numbers-visual.is-visible .metric-track i { transform: scaleX(1); }

.relations-visual {
  display: grid;
  align-content: center;
  gap: 22px;
  padding-left: 2px;
}

.relations-visual::before,
.relations-visual::after {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 6px;
  width: 1px;
  background: #38363b;
}

.relations-visual::after {
  background: var(--violet);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.relation-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.relation-stage i {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border: 1px solid #706079;
  background: var(--bg);
  transition: background-color 0.45s, border-color 0.45s;
}

.relation-stage:nth-child(2) i { transition-delay: 0.25s; }
.relation-stage:nth-child(3) i { transition-delay: 0.5s; }
.relations-visual.is-visible::after { transform: scaleY(1); }
.relations-visual.is-visible .relation-stage i {
  background: var(--violet);
  border-color: var(--violet);
}

@media (prefers-reduced-motion: reduce) {
  .improvement-visual *,
  .improvement-visual::after {
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .improvement-panel .problem-grid article {
    padding: 28px 0;
  }

  .improvement-panel .problem-grid article + article {
    border-left: 0;
    border-top: 1px solid #38363b;
  }

  .improvement-panel .problem-grid span {
    margin-bottom: 20px;
  }
}

@media (max-width: 620px) {
  .scroll-panel.improvement-panel {
    padding-bottom: 36px;
  }

  .improvement-panel #miglioramento {
    padding-top: 56px;
    padding-bottom: 24px;
  }

  .improvement-panel .intro-section h2 {
    line-height: 1.12;
  }

  .improvement-panel .problem-grid span {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-stack > .scroll-panel {
    position: relative;
    top: auto;
    min-height: 0;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 12px;
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  .menu-close-icon,
  .menu-toggle[aria-expanded="true"] .menu-open-icon {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-close-icon {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px var(--page-x) 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
  }

  .site-header.menu-expanded .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
  }

  .nav .nav-contact {
    margin-top: 12px;
    align-self: flex-start;
  }

  .method-section,
  .contact-section,
  .issues-section,
  .agency-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-copy {
    width: min(600px, 100%);
  }

  .hero h1 {
    font-size: 68px;
  }

  .cards-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .intro-section,
  .cards-section,
  .method-section,
  .impact-section,
  .contact-section,
  .site-footer {
    width: calc(100% - (var(--page-x) * 2));
  }

  h1 {
    font-size: 48px;
  }

  .hero h1 {
    font-size: 44px;
  }

  @media (max-width: 380px) {
    .hero h1 {
      font-size: 36px;
    }
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 32px;
    gap: 44px;
  }

  #miglioramento {
    padding-top: 40px;
  }

  .hero .eyebrow {
    font-size: 11px;
  }

  .hero .button {
    font-size: 13px;
    padding: 0 16px;
  }

  .hero .hero-actions {
    gap: 6px 24px;
  }

  .lead,
  .intro-section p,
  .method-copy p,
  .impact-section p,
  .contact-box p {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 430px;
    padding: 16px;
  }

  .cards-section {
    grid-template-columns: 1fr;
  }

  .problem-grid article {
    min-height: auto;
  }

  .issues-section {
    gap: 32px;
    padding: 56px 0;
  }

  .agency-section {
    padding: 56px 0;
    gap: 32px;
  }

  .contact-section {
    padding: 56px 0;
    gap: 32px;
  }

  .contact-copy h2 {
    font-size: 40px;
  }

  .issues-list li {
    gap: 18px;
    padding: 22px 0;
  }

  .issues-list h3 {
    font-size: 20px;
  }

  .value-card {
    min-height: 0;
  }

  #servizi {
    padding-top: 56px;
  }

  .cards-section {
    gap: 36px;
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .service-copy {
    gap: 12px;
    padding-top: 18px;
  }

  .value-card h3 {
    font-size: 22px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 32px;
  }

  .footer-company,
  .footer-bottom,
  .footer-policies {
    flex-direction: column;
    gap: 8px;
  }
}
/* One-time reveals leave layout and sticky-panel geometry unchanged. */
[data-reveal-state] { --reveal-distance: 20px; }

[data-reveal-state="pending"] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
}

[data-reveal-state="entering"] {
  animation: evolvio-enter 650ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) both;
  will-change: opacity, transform;
}

@keyframes evolvio-enter {
  from { opacity: 0; transform: translate3d(0, var(--reveal-distance), 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 620px) {
  [data-reveal-state] { --reveal-distance: 12px; }
  [data-reveal-state="entering"] { animation-duration: 550ms; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-state] { opacity: 1 !important; transform: none !important; animation: none !important; }
}

@media print {
  [data-reveal-state] { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Standalone error page. */
.not-found { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0; }
.not-found h1 { font-size: 56px; line-height: 1.08; margin: 48px 0 24px; }
.not-found p { max-width: 660px; line-height: 1.7; }
.not-found nav { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
@media (max-width: 620px) { .not-found h1 { font-size: 36px; } }
