/* ============================================================
   Riparazioni-Elettrodomestici-Hogas — shared structural motion
   Thin progress rail, section rules, active nav state.
   Loaded after each demo stylesheet.
   ============================================================ */

.structure-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1200;
  pointer-events: none;
}

.structure-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--structure-accent, var(--accent, currentColor));
  box-shadow: 0 0 16px var(--structure-accent, var(--accent, transparent));
  transition: transform 0.08s linear;
  will-change: transform;
}

.structure-section {
  position: relative;
}

.structure-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: currentColor;
  opacity: 0.18;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.structure-section.is-visible > .structure-rule {
  transform: scaleX(1);
}

header a.is-current {
  color: var(--structure-accent, var(--accent, currentColor)) !important;
}

@media (prefers-reduced-motion: reduce) {
  .structure-progress span,
  .structure-rule {
    transition: none;
  }

  .structure-rule {
    transform: scaleX(1);
  }
}
