/* Statistiche Autismo al lavoro — widget Elementor indipendente */
.coe-impact {
  --coe-i-stage-h: 96.77%;
  --coe-i-stage-number: 96.77;
  --coe-i-sphere-size: 30.2%;
  --coe-i-ring-size: 70.6%;
  --coe-i-ring-x: 40.2%;
  --coe-i-ring-y: 43.55%;
  --coe-i-ring-thickness: 12.65%;
  --coe-i-ring-color: #205FA4;
  --coe-i-sphere-color: #66AFE1;
  --coe-i-text-color: #fff;
  --coe-i-divider-color: rgba(255,255,255,.75);
  width: 100%;
  height: auto;
  /* The normal-flow spacer below establishes the actual height. */
  aspect-ratio: auto;
  min-height: var(--coe-i-measured-height, 0px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  font-family: 'Museo', Georgia, serif;
  box-sizing: border-box;
}
.coe-impact, .coe-impact * { box-sizing: border-box; }
/* True in-flow content: percentage padding is calculated on containing BLOCK WIDTH.
   Unlike aspect-ratio, this works with Elementor flex, grid and nested containers.
   The reserve is not positioned absolute and so pushes the following section down. */
.coe-impact__spacer {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 0;
  padding-top: var(--coe-i-stage-h);
  aspect-ratio: auto;
  pointer-events: none;
}
.coe-impact__ring {
  position: absolute;
  left: var(--coe-i-ring-x);
  top: var(--coe-i-ring-y);
  width: var(--coe-i-ring-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--coe-i-ring-color);
  z-index: 0;
  pointer-events: none;
}
.coe-impact__ring::after {
  content: '';
  position: absolute;
  inset: var(--coe-i-ring-thickness);
  border-radius: 50%;
  background: var(--coe-i-hole-color, #fff);
}
.coe-impact__items { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.coe-impact__item {
  --coe-i-default-x: 50%;
  --coe-i-default-y: 50%;
  --coe-i-default-photo-x: 0%;
  --coe-i-default-photo-y: 0%;
  --coe-i-photo-size: 84.5%;
  position: absolute;
  width: var(--coe-i-sphere-size);
  aspect-ratio: 1;
  left: var(--coe-i-x, var(--coe-i-default-x));
  top: var(--coe-i-y, var(--coe-i-default-y));
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.coe-impact__item:nth-child(1) { --coe-i-default-x: 67.1%; --coe-i-default-y: 19.3%; --coe-i-default-photo-x: 49%; --coe-i-default-photo-y: 54%; }
.coe-impact__item:nth-child(2) { --coe-i-default-x: 34.9%; --coe-i-default-y: 43.8%; --coe-i-default-photo-x: 0%; --coe-i-default-photo-y: 0%; }
.coe-impact__item:nth-child(3) { --coe-i-default-x: 67.3%; --coe-i-default-y: 77.1%; --coe-i-default-photo-x: -78%; --coe-i-default-photo-y: 26%; }
.coe-impact__bubble {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--coe-i-local-color, var(--coe-i-sphere-color));
  color: var(--coe-i-text-color);
  z-index: 2;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.2%;
  overflow: hidden;
}
.coe-impact__number {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: baseline;
  gap: .35cqw;
  font-weight: 900;
  line-height: .95;
  white-space: nowrap;
}
.coe-impact__number-part { font-size: 8.1cqw; font-weight: 900; letter-spacing: -.06em; line-height: .98; }
.coe-impact__number-join { font-size: 2.9cqw; font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.coe-impact__divider { height: 1px; background: var(--coe-i-divider-color); width: 68%; display: block; margin: .25cqw auto .4cqw; flex: 0 0 auto; }
.coe-impact__label { font-weight: 900; font-size: 2.43cqw; line-height: 1.02; letter-spacing: -.025em; text-align: center; overflow-wrap: normal; }
.coe-impact__photo {
  position: absolute;
  z-index: 1;
  left: calc(50% + var(--coe-i-photo-x, var(--coe-i-default-photo-x)));
  top: calc(50% + var(--coe-i-photo-y, var(--coe-i-default-photo-y)));
  transform: translate(-50%, -50%);
  width: var(--coe-i-photo-size);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}
.coe-impact__photo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Quattro o più statistiche: impaginazione alternativa, senza elementi sovrapposti */
.coe-impact--grid { overflow: visible; aspect-ratio: auto; }
.coe-impact--grid .coe-impact__spacer { display: none; }
.coe-impact--grid .coe-impact__ring { display: none; }
.coe-impact--grid .coe-impact__items { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2vw, 36px); pointer-events: auto; }
.coe-impact--grid .coe-impact__item { position: relative; width: 100%; max-width: 380px; left: auto; top: auto; transform: none; margin: 0 auto; }
.coe-impact--grid .coe-impact__photo { display: none; }
.coe-impact--grid .coe-impact__number-part { font-size: clamp(32px, 6cqw, 88px); }
.coe-impact--grid .coe-impact__number-join { font-size: clamp(17px, 2cqw, 35px); }
.coe-impact--grid .coe-impact__label { font-size: clamp(12px, 2.1cqw, 25px); }

@media (max-width: 767px) {
  .coe-impact {
    --coe-i-stage-h: 163.44%;
    --coe-i-stage-number: 163.44;
    --coe-i-sphere-size: 39.8%;
    --coe-i-ring-size: 140%;
    --coe-i-ring-x: 4%;
    --coe-i-ring-y: 53.1%;
    --coe-i-ring-thickness: .34%;
    --coe-i-hole-color: #fff;
    overflow: hidden;
  }
  .coe-impact__item { --coe-i-photo-size: 93%; }
  .coe-impact__item:nth-child(1) { --coe-i-default-x: 41%; --coe-i-default-y: 19.25%; --coe-i-default-photo-x: 70%; --coe-i-default-photo-y: -16%; }
  .coe-impact__item:nth-child(2) { --coe-i-default-x: 74.5%; --coe-i-default-y: 53.6%; }
  .coe-impact__item:nth-child(3) { --coe-i-default-x: 40.5%; --coe-i-default-y: 86.55%; --coe-i-default-photo-x: 74%; --coe-i-default-photo-y: -5%; }
  .coe-impact__number { gap: .28cqw; }
  .coe-impact__number-part { font-size: 12.5cqw; }
  .coe-impact__number-join { font-size: 4cqw; }
  .coe-impact__label { font-size: 3.45cqw; line-height: 1.02; letter-spacing: -.03em; }
  .coe-impact__divider { display: none; }
  .coe-impact__bubble { padding: 5%; }
  .coe-impact--grid .coe-impact__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .coe-impact--grid .coe-impact__number-part { font-size: clamp(25px, 9cqw, 54px); }
  .coe-impact--grid .coe-impact__number-join { font-size: clamp(14px, 3cqw, 21px); }
  .coe-impact--grid .coe-impact__label { font-size: clamp(10px, 2.55cqw, 17px); }
}
@media (prefers-reduced-motion: reduce) { .coe-impact *, .coe-impact *::before, .coe-impact *::after { animation: none !important; transition: none !important; } }
