/* assets.css */
:root {
  --navy: #061151;
  --cyan: #0b9fda;
  --paper: #f4f3ed;
  --white: #fff;
  --text: #15243a;
  --muted: #66717c;
  --line: #cdd2d2;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
img,
svg {
  -webkit-user-drag: none;
  user-select: none;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}
.wrap {
  width: min(100%, var(--max));
  margin: auto;
  padding-inline: var(--gutter);
}
.micro {
  font: 500 11px/1.45 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.button:after {
  content: "↗";
  font-family: var(--mono);
}
.portal {
  min-height: 100svh;
  background-color: var(--navy);
  color: #fff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  display: grid;
  place-items: center;
  padding: 60px 20px;
}
.portal-box {
  width: min(100%, 680px);
}
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b6c5d2;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.portal-logo img {
  display: block;
  width: 138px;
}
.portal h1 {
  margin: 48px 0 58px;
  font-size: clamp(43px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.portal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.portal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.portal-electric {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(6, 17, 81, 0.74);
}
.portal-digital {
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--navy);
}
.portal-card > *:not(.effect) {
  position: relative;
  z-index: 3;
}
.portal-card h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
.area-index {
  color: #72c8ec;
}
.portal-fields {
  border-top: 1px solid currentColor;
}
.portal-fields li {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid rgba(127, 145, 158, 0.35);
}
.portal-fields b {
  font-weight: 400;
  opacity: 0.55;
}
.portal-electric .portal-fields {
  color: #a8bac9;
}
.portal-digital .portal-fields {
  color: var(--muted);
}
.card-enter {
  display: flex;
  justify-content: space-between;
}
.card-enter i {
  font-style: normal;
  font-size: 17px;
  transition: transform 0.18s;
}
.portal-card:hover .card-enter i {
  transform: translate(3px, -3px);
}
.effect {
  position: absolute;
  pointer-events: none;
}
.electric-current {
  z-index: 2;
  left: -15%;
  top: 31%;
  width: 130%;
  height: 3px;
  background: #dffb72;
  opacity: 0;
  clip-path: polygon(
    0 45%,
    13% 25%,
    19% 65%,
    27% 8%,
    34% 82%,
    44% 32%,
    52% 62%,
    61% 4%,
    70% 78%,
    82% 28%,
    100% 50%,
    82% 57%,
    70% 93%,
    61% 18%,
    52% 74%,
    44% 42%,
    34% 96%,
    27% 19%,
    19% 78%,
    13% 36%,
    0 58%
  );
  filter: drop-shadow(0 -6px 0 rgba(223,251,114,.72)) drop-shadow(0 6px 0 rgba(121,185,237,.62)) drop-shadow(0 0 5px #dffb72) drop-shadow(0 0 14px #79b9ed);
}
.portal-electric:hover .electric-current,
.portal-electric:focus-visible .electric-current {
  animation: electric-pulse 1.15s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.glitch-grid {
  z-index: 1;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(6, 17, 81, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 17, 81, 0.22) 1px, transparent 1px);
  background-size: 40px 40px;
}
.portal-digital:hover .glitch-grid,
.portal-digital:focus-visible .glitch-grid {
  opacity: 0.3;
  animation: grid-drift 2.4s linear infinite;
}
.portal-footer {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #91a3b2;
}
.portal-footer-icon {
  width: 28px;
  opacity: 0.72;
}
@keyframes electric-pulse {
  0% {
    opacity: 0;
    transform: translateX(-6%) scaleY(0.8);
  }
  20% {
    opacity: 0.92;
    transform: translateX(-2%) scaleY(1.15);
  }
  60% {
    opacity: 0.68;
    transform: translateX(4%) scaleY(1.35);
  }
  100% {
    opacity: 0;
    transform: translateX(9%) scaleY(0.9);
  }
}
@keyframes grid-drift {
  to {
    background-position: 40px 40px;
  }
}
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  display: block;
  width: clamp(145px, 14vw, 205px);
  height: 44px;
  background: url("img/elleti-logo-soft.svg") left center/contain
    no-repeat;
}
.back {
  font-size: 11px;
  color: var(--muted);
}
.site-nav .button {
  justify-self: end;
}
.division-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 670px;
  border-bottom: 1px solid var(--line);
}
.division-copy {
  padding: clamp(90px, 10vw, 150px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.division-copy h1 {
  margin-top: 28px;
  font-size: clamp(58px, 7.5vw, 112px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.88;
  color: var(--navy);
}
.division-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 34px;
  color: #46576a;
  font-size: 19px;
}
.division-copy .button {
  align-self: flex-start;
  margin-top: 38px;
}
.division-visual {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: var(--gutter);
  background: #ecece6;
}
.division-visual:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 17, 81, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 17, 81, 0.065) 1px, transparent 1px);
  background-size: 32px 32px;
}
.visual-label {
  position: absolute;
  top: 30px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.single-line {
  position: relative;
  width: 100%;
  padding: 28px 0;
}
.single-line .bus {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}
.single-line .bus:after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(11, 159, 218, 0.14);
}
.energy-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.energy-node {
  width: 64px;
  height: 64px;
  background: var(--paper);
  border: 2px solid var(--navy);
  display: grid;
  place-items: center;
  font: 500 10px var(--mono);
  color: var(--navy);
}
.energy-node:nth-child(2) {
  border-radius: 50%;
}
.energy-node:nth-child(3) {
  transform: rotate(45deg);
}
.energy-node:nth-child(3) span {
  transform: rotate(-45deg);
}
.data-flow {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.packet {
  aspect-ratio: 1;
  border: 1px solid var(--navy);
  background: var(--paper);
  display: grid;
  place-items: center;
  font: 500 9px var(--mono);
  color: var(--navy);
  animation: packet-wave 3s ease-in-out infinite;
}
.packet:nth-child(2) {
  animation-delay: 0.2s;
}
.packet:nth-child(3) {
  animation-delay: 0.4s;
}
.packet:nth-child(4) {
  animation-delay: 0.6s;
}
.packet:nth-child(5) {
  animation-delay: 0.8s;
}
.packet:nth-child(6) {
  animation-delay: 1s;
}
@keyframes packet-wave {
  0%,
  70%,
  100% {
    transform: translateY(0);
    background: var(--paper);
    color: var(--navy);
  }
  35% {
    transform: translateY(-16px);
    background: var(--navy);
    color: #fff;
  }
}
.expertise {
  padding: clamp(80px, 9vw, 125px) 0;
}
.section-title {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 64px;
}
.section-title h2 {
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--navy);
}
.section-title p {
  max-width: 470px;
  color: var(--muted);
  justify-self: end;
}
.route {
  position: relative;
  margin-left: 20px;
}
.route:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 25px;
  bottom: 25px;
  width: 2px;
  background: var(--navy);
}
.area-it .route:before {
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--navy) 0 7px,
    transparent 7px 13px
  );
}
.route-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 29px 0 29px 62px;
  border-top: 1px solid var(--line);
}
.service-card-link {
  position: absolute;
  z-index: 5;
  inset: 0;
  cursor: pointer;
}
.service-card-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}
.route-item:last-child {
  border-bottom: 1px solid var(--line);
}
.route-node {
  position: absolute;
  left: 2px;
  top: 31px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--navy);
  background: var(--paper);
  z-index: 2;
  transition: 0.18s;
}
.area-electric .route-item:hover .route-node {
  background: #dffb72;
  box-shadow: 0 0 0 7px rgba(11, 159, 218, 0.12);
}
.area-it .route-node {
  border-radius: 2px;
}
.area-it .route-item:hover .route-node {
  background: var(--cyan);
  transform: rotate(45deg);
}
.route-code {
  color: var(--cyan);
}
.route-item h3 {
  font-size: 20px;
  color: var(--navy);
}
.route-item p {
  font-size: 14px;
  color: var(--muted);
  max-width: 50ch;
}
.method {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: clamp(75px, 8vw, 110px) 0;
}
.method-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(50px, 9vw, 130px);
}
.method h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--navy);
}
.method-steps {
  border-top: 1px solid var(--navy);
  counter-reset: steps;
}
.method-step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 48px 170px 1fr;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.method-step:before {
  content: "0" counter(steps);
  font: 500 11px var(--mono);
  color: var(--cyan);
}
.method-step span {
  color: var(--muted);
  font-size: 14px;
}
.contact {
  background: var(--paper);
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 9vw, 125px) 0;
}
.contact h2 {
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.contact p {
  margin-top: 26px;
  color: var(--muted);
}
.contact .button {
  margin-top: 32px;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.site-footer {
  background: var(--navy);
  color: #91a3b2;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 24px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .division-hero {
    grid-template-columns: 1fr;
  }
  .division-visual {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 400px;
  }
  .section-title,
  .method-grid {
    grid-template-columns: 1fr;
  }
  .section-title p {
    justify-self: start;
  }
  .route-item {
    grid-template-columns: 55px 1fr;
  }
  .route-item p {
    grid-column: 2;
  }
  .site-nav {
    grid-template-columns: 1fr auto;
  }
  .site-nav .button {
    display: none;
  }
}
@media (max-width: 600px) {
  .portal {
    place-items: start center;
    padding-top: 60px;
  }
  .portal-options {
    grid-template-columns: 1fr;
  }
  .portal-card {
    min-height: 285px;
  }
  .portal h1 {
    margin: 38px 0 44px;
  }
  .portal-footer {
    position: static;
    margin-top: 55px;
  }
  .route {
    margin-left: 0;
  }
  .route-item {
    grid-template-columns: 1fr;
    padding-left: 46px;
  }
  .route-code,
  .route-item p {
    grid-column: 1;
  }
  .route:before {
    left: 9px;
  }
  .route-node {
    left: 0;
    width: 20px;
    height: 20px;
  }
  .method-step {
    grid-template-columns: 40px 1fr;
  }
  .method-step span {
    grid-column: 2;
  }
  .data-flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-footer .wrap {
    display: block;
  }
  .site-footer span {
    display: block;
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .packet,
  .portal-card * {
    animation: none !important;
  }
}
.control-schematic {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 30px 26px 24px;
  border: 1px solid rgba(6, 17, 81, 0.42);
  background: rgba(244, 243, 237, 0.9);
  box-shadow: inset 0 0 0 6px rgba(6, 17, 81, 0.035);
  font-family: var(--mono);
  color: var(--navy);
}
.schematic-supply {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.schematic-supply span {
  padding-bottom: 9px;
  border-bottom: 2px solid var(--navy);
}
.power-lines {
  height: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.power-lines i {
  justify-self: center;
  width: 1px;
  height: 100%;
  background: var(--navy);
}
.protection-bank {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 10% 28px;
}
.protection-bank:after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 13px;
  height: 1px;
  background: var(--cyan);
}
.protection-bank div {
  height: 54px;
  border: 1px solid var(--navy);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
}
.protection-bank b {
  font-size: 10px;
}
.protection-bank small {
  font-size: 8px;
  color: var(--muted);
}
.control-bus {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 20px 16px;
  border: 1px solid rgba(6, 17, 81, 0.24);
  background: rgba(255, 255, 255, 0.55);
}
.bus-label {
  position: absolute;
  left: 8px;
  top: -8px;
  background: var(--paper);
  padding: 0 6px;
  color: var(--cyan);
}
.plc {
  position: relative;
  min-height: 94px;
  border: 2px solid var(--navy);
  padding: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}
.plc small {
  font-size: 8px;
}
.plc b {
  font-size: 11px;
  line-height: 1.15;
}
.plc em {
  position: absolute;
  right: 9px;
  top: 9px;
  font-size: 7px;
  font-style: normal;
  color: #2b7353;
}
.plc em:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #52b77e;
  box-shadow: 0 0 5px #52b77e;
}
.io-bank {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.io-bank i {
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 17, 81, 0.45);
  background: #fff;
  font-size: 8px;
  font-style: normal;
}
.contactors {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 28px 4%;
}
.contactors:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14px;
  height: 1px;
  background: var(--navy);
}
.contactors div {
  height: 45px;
  border: 1px solid var(--navy);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  padding: 7px;
  font-size: 8px;
}
.contactors i {
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}
.terminal-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
}
.terminal-row span {
  padding: 7px 2px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  text-align: center;
  font-size: 7px;
  background: #fff;
}
.schematic-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}
.schematic-output span {
  position: relative;
  padding-top: 15px;
}
.schematic-output span:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 11px;
  background: var(--navy);
}
.control-schematic:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 10px;
  bottom: 10px;
  background: var(--cyan);
  animation: status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse {
  50% {
    opacity: 0.25;
    box-shadow: 0 0 0 7px rgba(11, 159, 218, 0.12);
  }
}
@media (max-width: 600px) {
  .control-schematic {
    padding: 24px 14px 18px;
  }
  .protection-bank {
    padding-inline: 4%;
  }
  .contactors {
    gap: 5px;
  }
  .schematic-output {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .control-schematic:after {
    animation: none;
  }
}
.portal-simple {
  display: block;
  margin-top: 8px;
  color: #dffb72;
  font: inherit;
  font-size: 0.86em;
  letter-spacing: inherit;
  text-transform: none;
}
.portal-digital:hover,
.portal-digital:focus-visible,
.portal-digital.is-glitching {
  transform: none;
  box-shadow: none;
}
.portal-digital:hover .glitch-grid,
.portal-digital:focus-visible .glitch-grid,
.portal-digital.is-glitching .glitch-grid {
  opacity: 0.13;
  animation: none;
}
.portal-digital.is-glitching h2 {
  animation: portal-text-tilt 0.78s steps(2, end) infinite;
  text-shadow: 1px 0 rgba(11, 159, 218, 0.72);
}
.portal-digital:before,
.portal-digital:after {
  content: attr(data-label);
  position: absolute;
  z-index: 2;
  left: 25px;
  top: 35%;
  font: 600 31px/1 var(--sans);
  letter-spacing: -0.035em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.portal-digital.is-glitching:before {
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 159, 218, 0.72);
  animation: card-copy-left 0.78s steps(2, end) infinite;
}
.portal-digital.is-glitching:after {
  color: rgba(6, 17, 81, 0.16);
  animation: card-copy-right 0.78s steps(2, end) infinite;
}
@keyframes card-copy-left {
  0%,
  100% {
    opacity: 0.25;
    transform: translate(-6px, -5px);
  }
  32% {
    opacity: 0.7;
    transform: translate(-13px, -8px);
  }
  66% {
    opacity: 0.42;
    transform: translate(-8px, 4px);
  }
}
@keyframes card-copy-right {
  0%,
  100% {
    opacity: 0.18;
    transform: translate(7px, 6px);
  }
  38% {
    opacity: 0.5;
    transform: translate(15px, 9px);
  }
  72% {
    opacity: 0.3;
    transform: translate(9px, -3px);
  }
}
@keyframes portal-grid-tilt {
  0% {
    transform: translate(0);
  }
  33% {
    transform: translate(4px, -2px);
  }
  66% {
    transform: translate(-3px, 2px);
  }
  100% {
    transform: translate(0);
  }
}
@keyframes portal-text-tilt {
  0%,
  100% {
    transform: translate(0);
    clip-path: inset(0);
  }
  35% {
    transform: translate(2px, -1px);
    clip-path: inset(12% 0 38%);
  }
  70% {
    transform: translate(-2px, 1px);
    clip-path: inset(48% 0 8%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-digital.is-glitching h2 {
    animation: none;
    text-shadow: none;
  }
  .portal-digital.is-glitching:before,
  .portal-digital.is-glitching:after {
    display: none;
  }
}
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .portal-electric .electric-current {
    animation: electric-mobile-demo 7.2s ease-in-out infinite;
  }
  .portal-electric .card-enter i {
    animation: portal-arrow-mobile 7.2s ease-in-out infinite;
  }
  @keyframes electric-mobile-demo {
    0%,
    6%,
    30%,
    100% {
      opacity: 0;
      transform: translateX(-7%);
    }
    11% {
      opacity: 1;
    }
    21% {
      opacity: 0.42;
      transform: translateX(5%) scaleY(1.45);
    }
    27% {
      opacity: 0;
      transform: translateX(9%);
    }
  }
  @keyframes portal-arrow-mobile {
    0%,
    6%,
    30%,
    100% {
      transform: none;
    }
    15%,
    23% {
      transform: translate(3px, -3px);
    }
  }
}
.portal-electric:hover h2,
.portal-electric:focus-visible h2 {
  animation: electric-title-shock 1.15s steps(2, end) infinite;
}
.portal-electric h2 {
  position: relative;
  isolation: isolate;
}
.portal-electric h2:before,
.portal-electric h2:after {
  content: attr(data-shock);
  position: absolute;
  z-index: -1;
  inset: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.portal-electric:hover h2:before,
.portal-electric:focus-visible h2:before {
  color: #dffb72;
  animation: electric-copy-left 1.15s steps(2, end) infinite;
}
.portal-electric:hover h2:after,
.portal-electric:focus-visible h2:after {
  color: #79b9ed;
  animation: electric-copy-right 1.15s steps(2, end) infinite;
}
@keyframes electric-copy-left {
  0%, 17%, 28%, 58%, 69%, 100% { opacity: 0; transform: none; }
  20% { opacity: .72; transform: translate(-9px, -3px) skewX(-6deg); }
  24% { opacity: .36; transform: translate(-5px, 4px); }
  62% { opacity: .52; transform: translate(-6px, 2px); }
  66% { opacity: .24; transform: translate(-3px, -2px); }
}
@keyframes electric-copy-right {
  0%, 17%, 28%, 58%, 69%, 100% { opacity: 0; transform: none; }
  20% { opacity: .42; transform: translate(8px, 4px) skewX(5deg); }
  24% { opacity: .68; transform: translate(11px, -3px); }
  62% { opacity: .3; transform: translate(5px, -2px); }
  66% { opacity: .56; transform: translate(8px, 2px); }
}
@keyframes electric-title-shock {
  0%, 17%, 28%, 58%, 69%, 100% { transform: none; text-shadow: none; }
  20% { transform: translate(-4px, 2px) skewX(-5deg); text-shadow: 3px 0 #dffb72, -3px 0 #79b9ed; }
  24% { transform: translate(4px, -2px) skewX(4deg); text-shadow: -4px 0 rgba(223,251,114,.8), 3px 1px rgba(121,185,237,.75); }
  62% { transform: translate(3px, -1px) skewX(2deg); text-shadow: 2px 0 #dffb72, -2px 0 #79b9ed; }
  66% { transform: translate(-3px, 1px) skewX(-3deg); text-shadow: -3px 0 rgba(223,251,114,.65), 3px 0 rgba(121,185,237,.6); }
}
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .portal-electric h2 { animation: electric-title-mobile 7.2s steps(2, end) infinite; }
  .portal-electric h2:before { color: #dffb72; animation: electric-copy-mobile-left 7.2s steps(2, end) infinite; }
  .portal-electric h2:after { color: #79b9ed; animation: electric-copy-mobile-right 7.2s steps(2, end) infinite; }
  @keyframes electric-title-mobile {
    0%, 8%, 13%, 18%, 23%, 100% { transform: none; text-shadow: none; }
    10% { transform: translate(-4px, 2px) skewX(-5deg); text-shadow: 3px 0 #dffb72, -3px 0 #79b9ed; }
    15% { transform: translate(4px, -2px) skewX(4deg); text-shadow: -4px 0 rgba(223,251,114,.8), 3px 1px rgba(121,185,237,.75); }
    20% { transform: translate(-3px, 1px) skewX(-3deg); text-shadow: -3px 0 rgba(223,251,114,.65), 3px 0 rgba(121,185,237,.6); }
  }
  @keyframes electric-copy-mobile-left {
    0%, 8%, 13%, 18%, 23%, 100% { opacity: 0; transform: none; }
    10% { opacity: .72; transform: translate(-9px, -3px) skewX(-6deg); }
    15% { opacity: .4; transform: translate(-5px, 4px); }
    20% { opacity: .55; transform: translate(-7px, 2px); }
  }
  @keyframes electric-copy-mobile-right {
    0%, 8%, 13%, 18%, 23%, 100% { opacity: 0; transform: none; }
    10% { opacity: .45; transform: translate(8px, 4px) skewX(5deg); }
    15% { opacity: .7; transform: translate(11px, -3px); }
    20% { opacity: .5; transform: translate(7px, 2px); }
  }
}
.portal-digital.is-glitching:after {
  color: rgba(255, 43, 214, .44);
  text-shadow: 0 0 7px rgba(255, 43, 214, .5), 2px 0 rgba(0, 207, 255, .58);
}

/* electric-motion.css */
.protection-bank,
.control-bus,
.contactors,
.terminal-row,
.schematic-output {
  transition:
    opacity 1.1s ease,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s ease;
}
.protection-bank {
  animation: power-focus 25s ease-in-out infinite;
}
.control-bus {
  animation: logic-focus 25s ease-in-out infinite;
}
.contactors {
  animation: field-focus 25s ease-in-out infinite;
}
.terminal-row {
  animation: safety-focus 25s ease-in-out infinite;
}
.schematic-output {
  animation: energy-focus 25s ease-in-out infinite;
}
.power-lines i {
  position: relative;
  overflow: hidden;
}
.power-lines i:after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 45%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: current-flow 1.8s linear infinite;
}
.power-lines i:nth-child(2):after {
  animation-delay: 0.25s;
}
.power-lines i:nth-child(3):after {
  animation-delay: 0.5s;
}
.power-lines i:nth-child(4):after {
  animation-delay: 0.75s;
}
.power-lines i:nth-child(5):after {
  animation-delay: 1s;
}
.io-bank i {
  animation: io-state 2.4s steps(2, end) infinite;
}
.io-bank i:nth-child(2n) {
  animation-delay: 0.6s;
}
.io-bank i:nth-child(3n) {
  animation-delay: 1.2s;
}
.contactors i {
  animation: coil-state 3s ease-in-out infinite;
}
.contactors div:nth-child(2) i {
  animation-delay: 0.7s;
}
.contactors div:nth-child(3) i {
  animation-delay: 1.4s;
}
.contactors div:nth-child(4) i {
  animation-delay: 2.1s;
}
.terminal-row span {
  animation: terminal-scan 4s ease-in-out infinite;
}
.terminal-row span:nth-child(2n) {
  animation-delay: 0.4s;
}
.terminal-row span:nth-child(3n) {
  animation-delay: 0.8s;
}
@keyframes power-focus {
  0%,
  16%,
  100% {
    opacity: 1;
    transform: none;
  }
  22%,
  94% {
    opacity: 0.36;
    transform: scale(0.985);
  }
}
@keyframes logic-focus {
  0%,
  16%,
  40%,
  100% {
    opacity: 0.38;
    transform: scale(0.985);
  }
  22%,
  35% {
    opacity: 1;
    transform: scale(1.015);
    box-shadow: 0 0 0 1px rgba(11, 159, 218, 0.28);
  }
}
@keyframes field-focus {
  0%,
  35%,
  60%,
  100% {
    opacity: 0.38;
    transform: translateY(-3px);
  }
  42%,
  55% {
    opacity: 1;
    transform: none;
  }
}
@keyframes safety-focus {
  0%,
  55%,
  80%,
  100% {
    opacity: 0.38;
  }
  62%,
  75% {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(11, 159, 218, 0.45);
  }
}
@keyframes energy-focus {
  0%,
  75%,
  100% {
    opacity: 0.45;
    transform: none;
  }
  82%,
  95% {
    opacity: 1;
    transform: translateY(3px);
    color: var(--cyan);
  }
}
@keyframes current-flow {
  to {
    transform: translateY(250%);
  }
}
@keyframes io-state {
  50% {
    background: rgba(11, 159, 218, 0.18);
    border-color: var(--cyan);
  }
}
@keyframes coil-state {
  50% {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(11, 159, 218, 0.6);
  }
}
@keyframes terminal-scan {
  45%,
  55% {
    background: rgba(11, 159, 218, 0.18);
    color: var(--cyan);
  }
}
@media (prefers-reduced-motion: reduce) {
  .control-schematic:before,
  .protection-bank,
  .control-bus,
  .contactors,
  .terminal-row,
  .schematic-output,
  .power-lines i:after,
  .io-bank i,
  .contactors i,
  .terminal-row span {
    animation: none;
  }
}

/* electric-scenes.css */
.area-electric .route-item:hover .route-node{background:var(--navy);border-color:var(--navy);box-shadow:0 0 0 7px rgba(11,159,218,.14)}.area-electric .route-item:hover .route-node:after{content:"";position:absolute;inset:5px;background:var(--cyan)}.electric-gallery{position:relative;width:100%;max-width:610px;height:460px;margin:auto;overflow:hidden;background:#fff;border:1px solid rgba(6,17,81,.48);box-shadow:inset 0 0 0 7px rgba(6,17,81,.035)}.electric-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;background:#fff!important;box-shadow:none!important;padding:56px 28px 26px!important;color:var(--navy);font-family:var(--mono);overflow:hidden}.electric-scene .scene-caption{position:absolute;left:28px;top:19px;color:var(--cyan);font-size:9px;letter-spacing:.1em}.electric-scene .scene-code{position:absolute;right:28px;top:19px;color:var(--muted);font-size:9px}.scene-content{position:relative;width:100%;height:100%;overflow:hidden}.security-layout{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;height:100%}.building-map{position:relative;border:2px solid var(--navy);background:linear-gradient(90deg,transparent 58%,var(--navy) 58% calc(58% + 1px),transparent calc(58% + 1px)),linear-gradient(transparent 48%,var(--navy) 48% calc(48% + 1px),transparent calc(48% + 1px))}.building-map .room-name{position:absolute;font-size:7px;color:var(--muted)}.building-map .room-name:nth-of-type(1){left:8%;top:8%}.building-map .room-name:nth-of-type(2){right:8%;top:8%}.building-map .room-name:nth-of-type(3){left:8%;bottom:8%}.device{position:absolute;width:14px;height:14px;border:2px solid var(--cyan);border-radius:50%;animation:sensor-ring 2.6s ease-out infinite}.device.d1{left:20%;top:28%}.device.d2{right:16%;top:27%;animation-delay:.7s}.device.d3{left:32%;bottom:22%;animation-delay:1.4s}.device.d4{right:12%;bottom:18%;animation-delay:2.1s}.security-status{display:grid;grid-template-rows:repeat(4,1fr);gap:8px}.status-unit{border:1px solid var(--navy);padding:10px;display:flex;flex-direction:column;justify-content:space-between;font-size:8px}.status-unit b{font-size:11px}.status-unit em{font-style:normal;color:#2d7353}.domotic-layout{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);height:100%;border-top:1px solid var(--navy);border-left:1px solid var(--navy)}.domotic-zone{position:relative;padding:18px;border-right:1px solid var(--navy);border-bottom:1px solid var(--navy);overflow:hidden}.domotic-zone small{font-size:7px;color:var(--muted)}.domotic-zone strong{display:block;margin-top:18px;font-size:13px}.domotic-zone .value{position:absolute;left:18px;bottom:16px;color:var(--cyan);font-size:9px}.domotic-zone i{position:absolute;right:16px;top:16px;width:9px;height:9px;background:var(--cyan);box-shadow:0 0 0 5px rgba(11,159,218,.1);animation:room-state 3s ease-in-out infinite}.domotic-zone:nth-child(2) i{animation-delay:.7s}.domotic-zone:nth-child(3) i{animation-delay:1.4s}.domotic-zone:nth-child(4) i{animation-delay:2.1s}.solar-layout{height:100%;display:grid;grid-template-columns:1fr 44px .82fr 44px .82fr;align-items:center}.panels{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;transform:skewY(-7deg)}.panels i{aspect-ratio:.68;border:1px solid var(--navy);background:repeating-linear-gradient(90deg,rgba(11,159,218,.18) 0 8px,transparent 8px 10px),repeating-linear-gradient(0deg,transparent 0 12px,var(--navy) 12px 13px)}.flow-wire{position:relative;height:2px;background:var(--navy)}.flow-wire i{position:absolute;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--cyan);animation:wire-flow 1.8s linear infinite}.energy-unit{min-height:145px;border:1px solid var(--navy);padding:15px;display:flex;flex-direction:column;justify-content:space-between;font-size:8px}.energy-unit strong{font-size:17px}.energy-unit .level{height:7px;background:linear-gradient(90deg,var(--cyan) 72%,var(--line) 72%)}.machine-layout{position:relative;height:100%;display:grid;grid-template-columns:1fr 135px;gap:20px;align-items:center}.machine-schematic{position:relative;height:145px;border-top:2px solid var(--navy);border-bottom:2px solid var(--navy)}.machine-product{position:absolute;bottom:37px;width:55px;height:55px;border:2px solid var(--navy);background:#fff;animation:product-move 5.4s ease-in-out infinite}.machine-arm{position:absolute;right:18%;bottom:110px;width:10px;height:95px;background:var(--navy);transform-origin:bottom;animation:arm-work 5.4s ease-in-out infinite}.machine-arm:after{content:"";position:absolute;left:-18px;top:-8px;width:46px;height:17px;border:2px solid var(--cyan)}.rollers{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:space-around}.rollers i{width:18px;height:18px;border:1px solid var(--navy);border-radius:50%;animation:roller-spin 1.5s linear infinite}.machine-panel{border:1px solid var(--navy);padding:15px;font-size:8px}.machine-panel strong{display:block;margin:8px 0 18px;font-size:13px}.machine-panel span{display:block;padding:6px 0;border-top:1px solid var(--line)}@keyframes sensor-ring{80%,100%{box-shadow:0 0 0 20px rgba(11,159,218,0)}}@keyframes room-state{50%{background:var(--navy);box-shadow:0 0 0 8px rgba(11,159,218,.13)}}@keyframes wire-flow{to{transform:translateX(38px)}}@keyframes product-move{0%,15%{left:2%}70%,100%{left:68%}}@keyframes arm-work{0%,45%,100%{transform:rotate(0)}60%,78%{transform:rotate(-28deg)}}@keyframes roller-spin{to{transform:rotate(360deg)}}@media(max-width:600px){.electric-gallery{height:400px}.electric-scene{padding:52px 16px 18px!important}.electric-scene .scene-caption{left:16px}.electric-scene .scene-code{right:16px}.security-layout{grid-template-columns:1fr}.security-status{display:none}.solar-layout{grid-template-columns:1fr 25px .8fr}.solar-layout .energy-unit:last-child,.solar-layout .flow-wire:nth-of-type(2){display:none}.machine-layout{grid-template-columns:1fr}.machine-panel{display:none}}@media(prefers-reduced-motion:reduce){.device,.domotic-zone i,.flow-wire i,.machine-product,.machine-arm,.rollers i{animation:none}}

/* electric-draw.css */
.electric-scene{clip-path:none!important;opacity:0;visibility:hidden;filter:none;transform:translateY(8px) scale(.992);transition:opacity .35s ease,visibility 0s linear .35s,transform .35s ease}.electric-scene.is-active{clip-path:none!important;opacity:1;visibility:visible;transform:none;transition:opacity .7s ease,visibility 0s,transform .9s cubic-bezier(.16,1,.3,1);animation:none}.electric-scene.is-active:after{content:"";position:absolute;z-index:20;top:0;bottom:0;width:2px;background:var(--cyan);box-shadow:0 0 14px var(--cyan);pointer-events:none;animation:drawing-head 1.45s cubic-bezier(.65,0,.2,1) forwards}.electric-scene.is-active>*{animation:detail-ink .9s ease .22s both}.electric-scene.is-active .sensor,.electric-scene.is-active .room i,.electric-scene.is-active .energy-line:after,.electric-scene.is-active .rollers i,.electric-scene.is-active .product,.electric-scene.is-active .machine-arm{animation-delay:1.15s}.control-schematic.electric-scene.is-active .schematic-supply,.control-schematic.electric-scene.is-active .protection-bank,.control-schematic.electric-scene.is-active .control-bus,.control-schematic.electric-scene.is-active .contactors,.control-schematic.electric-scene.is-active .terminal-row{animation-name:detail-ink;animation-duration:.85s;animation-fill-mode:both}.control-schematic.electric-scene.is-active .protection-bank{animation-delay:.18s}.control-schematic.electric-scene.is-active .control-bus{animation-delay:.34s}.control-schematic.electric-scene.is-active .contactors{animation-delay:.5s}.control-schematic.electric-scene.is-active .terminal-row{animation-delay:.66s}@keyframes drawing-head{0%{left:0;opacity:0}8%{opacity:1}92%{opacity:1}100%{left:calc(100% - 2px);opacity:0}}@keyframes detail-ink{0%{opacity:0;filter:blur(2px);transform:translateX(-6px)}100%{opacity:1;filter:none;transform:none}}@media(prefers-reduced-motion:reduce){.electric-scene,.electric-scene.is-active{clip-path:none!important;transform:none;transition:none}.electric-scene.is-active:after,.electric-scene.is-active>*{animation:none}.electric-scene:not(.is-active){opacity:0;visibility:hidden}.electric-scene.is-active{opacity:1;visibility:visible}}

/* electric-board-fit.css */
.control-schematic.electric-scene{padding:45px 24px 16px!important;overflow:hidden}.control-schematic.electric-scene .schematic-supply span{padding-bottom:5px}.control-schematic.electric-scene .power-lines{height:18px}.control-schematic.electric-scene .protection-bank{gap:10px;padding:0 10% 18px}.control-schematic.electric-scene .protection-bank:after{bottom:8px}.control-schematic.electric-scene .protection-bank div{height:42px;padding:6px}.control-schematic.electric-scene .control-bus{gap:12px;padding:14px 12px}.control-schematic.electric-scene .plc{min-height:72px;padding:8px}.control-schematic.electric-scene .io-bank{gap:3px}.control-schematic.electric-scene .contactors{gap:8px;padding:19px 4%}.control-schematic.electric-scene .contactors:before{top:9px}.control-schematic.electric-scene .contactors div{height:36px;padding:5px}.control-schematic.electric-scene .terminal-row span{padding:5px 2px}.control-schematic.electric-scene .schematic-output{margin-top:7px}.control-schematic.electric-scene .schematic-output span{padding-top:11px}.control-schematic.electric-scene .schematic-output span:before{height:8px}@media(max-width:600px){.control-schematic.electric-scene{padding:42px 13px 12px!important}.control-schematic.electric-scene .control-bus{padding:10px 8px}.control-schematic.electric-scene .plc{min-height:65px}.control-schematic.electric-scene .contactors{padding-block:15px}.control-schematic.electric-scene .contactors div{height:32px}}

/* electric-cabins.css */
.cabin-chain{height:100%;display:grid;grid-template-columns:90px 38px 1.15fr 38px 110px 38px 1fr;align-items:center}.pylon{position:relative;height:275px}.pylon .mast{position:absolute;left:50%;top:18px;bottom:0;width:3px;background:var(--navy);transform:translateX(-50%)}.pylon .mast:before,.pylon .mast:after{content:"";position:absolute;left:50%;bottom:0;width:3px;height:235px;background:var(--navy);transform-origin:bottom}.pylon .mast:before{transform:translateX(-50%) rotate(15deg)}.pylon .mast:after{transform:translateX(-50%) rotate(-15deg)}.pylon .cross{position:absolute;left:8px;right:8px;height:2px;background:var(--navy)}.pylon .cross.c1{top:58px}.pylon .cross.c2{top:105px;left:18px;right:18px}.pylon .cross.c3{top:150px;left:27px;right:27px}.pylon .cross i{position:absolute;top:-4px;width:8px;height:10px;border:1px solid var(--cyan);border-radius:50%}.pylon .cross i:first-child{left:0}.pylon .cross i:last-child{right:0}.pylon-label{position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);font-size:7px;white-space:nowrap;color:var(--muted)}.network-line{position:relative;height:2px;background:var(--navy)}.network-line i{position:absolute;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--cyan);animation:network-flow 1.7s linear infinite}.reception-cabin{height:290px;border:2px solid var(--navy);display:grid;grid-template-columns:repeat(3,1fr);background:#fff}.reception-cell{position:relative;padding:12px 8px;border-right:1px solid var(--navy);display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;font-size:7px}.reception-cell:last-child{border-right:0}.reception-cell strong{font-size:9px}.switch-symbol{width:38px;height:25px;border-top:2px solid var(--navy);border-bottom:2px solid var(--navy);position:relative}.switch-symbol:after{content:"";position:absolute;left:3px;top:10px;width:31px;height:2px;background:var(--cyan);transform:rotate(-20deg);transform-origin:left}.breaker-symbol{width:38px;height:38px;border:2px solid var(--cyan);border-radius:50%;display:grid;place-items:center;font-size:7px}.measure-symbol{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:100%}.measure-symbol i{height:24px;border:1px solid var(--navy);display:grid;place-items:center;font-style:normal}.transformer-unit{position:relative;height:240px}.transformer-unit:before,.transformer-unit:after{content:"";position:absolute;top:58px;width:78px;height:78px;border:3px solid var(--navy);border-radius:50%}.transformer-unit:before{left:0}.transformer-unit:after{right:0;border-color:var(--cyan)}.transformer-unit strong{position:absolute;left:0;right:0;bottom:35px;text-align:center;font-size:8px}.transformer-unit small{position:absolute;left:0;right:0;bottom:15px;text-align:center;color:var(--muted);font-size:7px}.lv-board{min-height:245px;border:2px solid var(--navy);padding:14px;display:flex;flex-direction:column;justify-content:space-between;text-align:center;font-size:7px}.lv-board strong{font-size:11px}.lv-bus{height:3px;background:var(--navy);position:relative}.lv-bus:after{content:"";position:absolute;left:15%;right:15%;top:11px;height:65px;background:repeating-linear-gradient(90deg,var(--navy) 0 1px,transparent 1px 24%)}.lv-outputs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.lv-outputs i{height:30px;border:1px solid var(--navy);font-style:normal;display:grid;place-items:center}@keyframes network-flow{to{transform:translateX(34px)}}@media(max-width:700px){.cabin-chain{grid-template-columns:58px 22px 1.15fr 22px 78px}.cabin-chain>.network-line:nth-of-type(3),.cabin-chain>.lv-board{display:none}.pylon{height:235px}.reception-cabin{height:260px}.transformer-unit:before,.transformer-unit:after{width:54px;height:54px}.transformer-unit:before{left:2px}.transformer-unit:after{right:2px}}@media(prefers-reduced-motion:reduce){.network-line i{animation:none}}

/* electric-enhancements.css */
.electric-scene .cabin-chain{grid-template-columns:64px 24px minmax(175px,1.25fr) 24px minmax(115px,.8fr);gap:0}.electric-scene .cabin-chain>.network-line:nth-child(6),.electric-scene .cabin-chain>.lv-board{display:none}.electric-scene .pylon{height:235px}.electric-scene .pylon .mast:before,.electric-scene .pylon .mast:after{height:195px}.electric-scene .pylon .cross.c1{top:55px}.electric-scene .pylon .cross.c2{top:95px}.electric-scene .pylon .cross.c3{top:135px}.electric-scene .reception-cabin{height:250px}.electric-scene .transformer-unit{height:220px}.electric-scene .transformer-unit:before,.electric-scene .transformer-unit:after{width:66px;height:66px}.electric-scene .transformer-unit:before{left:5px}.electric-scene .transformer-unit:after{right:5px}.electric-scene .transformer-unit strong{bottom:31px}.solar-layout{position:relative;overflow:visible}.solar-sun{position:absolute;z-index:4;left:0;top:18px;width:30px;height:30px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 8px rgba(11,159,218,.12),0 0 24px rgba(11,159,218,.4);animation:sun-tour 25s cubic-bezier(.45,0,.55,1) infinite}.solar-rays{position:absolute;inset:-10px;border:1px dashed var(--cyan);border-radius:50%;animation:ray-spin 5s linear infinite}.solar-layout .panels{animation:panel-production 25s ease-in-out infinite}.solar-layout .energy-line,.solar-layout .flow-wire{transition:background .3s}.solar-layout .energy-unit{background:rgba(255,255,255,.88)}.solar-layout .energy-unit strong{font-variant-numeric:tabular-nums}.solar-layout .battery-fill{height:8px;border:1px solid var(--navy);background:linear-gradient(90deg,var(--cyan) var(--charge,0%),transparent var(--charge,0%));transition:background .2s linear}.machine-product{display:none}.metal-sheet{position:absolute;z-index:3;left:-80px;bottom:38px;height:8px;border:1px solid var(--navy);background:linear-gradient(180deg,#fff,#cfd7dc);box-shadow:0 3px 0 rgba(6,17,81,.12);animation:sheet-pass 25s linear infinite}.metal-sheet.s1{width:75px;animation-delay:0s}.metal-sheet.s2{width:110px;height:12px;animation-delay:8.3s}.metal-sheet.s3{width:58px;height:18px;animation-delay:16.6s}.metal-sheet:after{content:"";position:absolute;inset:2px;border-top:1px solid rgba(11,159,218,.5)}.machine-arm{animation:arm-sheet-work 25s ease-in-out infinite}.machine-panel .format-value{color:var(--cyan);font-size:10px}@keyframes sun-tour{0%{left:-5%;top:62%;opacity:.25;transform:scale(.7)}20%{opacity:1}50%{left:48%;top:-8%;transform:scale(1.1)}80%{opacity:1}100%{left:94%;top:62%;opacity:.25;transform:scale(.7)}}@keyframes ray-spin{to{transform:rotate(360deg)}}@keyframes panel-production{0%,100%{filter:brightness(.72)}50%{filter:brightness(1.3);box-shadow:0 0 22px rgba(11,159,218,.25)}}@keyframes sheet-pass{0%{left:-120px;opacity:0}5%{opacity:1}32%{left:44%;opacity:1}38%{left:44%;opacity:1}55%{left:105%;opacity:0}100%{left:105%;opacity:0}}@keyframes arm-sheet-work{0%,23%,43%,56%,76%,89%,100%{transform:rotate(0)}30%,36%,63%,69%,82%,86%{transform:rotate(-28deg)}}@media(max-width:600px){.electric-scene .cabin-chain{grid-template-columns:48px 16px minmax(155px,1fr) 16px 78px}.electric-scene .reception-cabin{height:230px}.electric-scene .transformer-unit:before,.electric-scene .transformer-unit:after{width:48px;height:48px}.electric-scene .transformer-unit:before{left:0}.electric-scene .transformer-unit:after{right:0}.solar-sun{width:24px;height:24px}}@media(prefers-reduced-motion:reduce){.solar-sun,.solar-rays,.solar-layout .panels,.metal-sheet,.machine-arm{animation:none}}

/* electric-timing.css */
.electric-scene:not(.is-active) .solar-sun,.electric-scene:not(.is-active) .solar-rays,.electric-scene:not(.is-active) .panels,.electric-scene:not(.is-active) .metal-sheet,.electric-scene:not(.is-active) .machine-arm,.electric-scene:not(.is-active) .rollers i{animation-play-state:paused}.electric-scene.is-active .solar-sun,.electric-scene.is-active .solar-rays,.electric-scene.is-active .panels,.electric-scene.is-active .metal-sheet,.electric-scene.is-active .machine-arm,.electric-scene.is-active .rollers i{animation-play-state:running}

/* electric-sun-fix.css */
.solar-sun{z-index:2;width:21px;height:21px;left:2%;top:13%;box-shadow:0 0 0 5px rgba(11,159,218,.1),0 0 17px rgba(11,159,218,.34);animation-name:sun-small-arc}.solar-rays{inset:-7px}.solar-layout .panels{position:relative;z-index:1;margin-top:38px}@keyframes sun-small-arc{0%{left:1%;top:17%;opacity:.45;transform:scale(.82)}18%{opacity:1}50%{left:17%;top:1%;opacity:1;transform:scale(1)}82%{opacity:1}100%{left:34%;top:17%;opacity:.45;transform:scale(.82)}}@media(max-width:600px){.solar-sun{width:18px;height:18px}.solar-layout .panels{margin-top:32px}}

/* electric-live.css */
.building-map{overflow:hidden}.building-map:after{content:"SCANSIONE IMPIANTO";position:absolute;z-index:3;left:0;right:0;top:0;height:2px;padding:4px 8px;background:var(--cyan);box-shadow:0 0 14px rgba(11,159,218,.7);color:var(--navy);font:500 6px var(--mono);animation:building-scan 5s ease-in-out infinite}.building-map:before{z-index:1}.device{z-index:4}.device:after{content:"";position:absolute;left:4px;top:4px;width:2px;height:2px;border-radius:50%;background:var(--navy)}.device.d1:before,.device.d2:before{content:"";position:absolute;left:10px;top:3px;width:45px;height:28px;background:linear-gradient(25deg,rgba(11,159,218,.22),transparent 70%);clip-path:polygon(0 45%,100% 0,100% 100%);transform-origin:left;animation:camera-sweep 4s ease-in-out infinite}.device.d2:before{left:auto;right:10px;transform:scaleX(-1);transform-origin:right;animation-delay:1s}.security-status .status-unit{position:relative;overflow:hidden;transition:background .3s}.security-status .status-unit:after{content:"";position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--cyan);animation:status-progress 6.25s ease-in-out infinite}.security-status .status-unit:nth-child(2):after{animation-delay:1.55s}.security-status .status-unit:nth-child(3):after{animation-delay:3.1s}.security-status .status-unit:nth-child(4):after{animation-delay:4.65s}.security-status .status-unit em:before{content:"";display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#2d7353;animation:live-led 1.4s ease-in-out infinite}.domotic-zone{transition:background 1s ease}.domotic-zone:after{content:"";position:absolute;right:20px;bottom:20px;width:46px;height:46px}.domotic-zone:nth-child(1):after{border:1px solid var(--navy);border-radius:50%;background:radial-gradient(circle,var(--cyan) 0 12%,rgba(11,159,218,.18) 13% 48%,transparent 49%);box-shadow:0 0 0 0 rgba(11,159,218,.22);animation:light-dim 6s ease-in-out infinite}.domotic-zone:nth-child(2):after{width:13px;height:55px;border:1px solid var(--navy);border-radius:8px;background:linear-gradient(to top,var(--cyan) var(--temperature,45%),transparent var(--temperature,45%));animation:temperature-level 7s ease-in-out infinite}.domotic-zone:nth-child(2):before{content:"";position:absolute;right:14px;bottom:14px;width:25px;height:25px;border:1px solid var(--navy);border-radius:50%;background:var(--paper)}.domotic-zone:nth-child(3):after{width:56px;height:52px;border:1px solid var(--navy);background:repeating-linear-gradient(0deg,var(--navy) 0 2px,transparent 2px 8px);animation:blinds-move 8s ease-in-out infinite;transform-origin:top}.domotic-zone:nth-child(4):after{width:34px;height:53px;border:2px solid var(--navy);background:linear-gradient(90deg,transparent 76%,var(--cyan) 76% 82%,transparent 82%);animation:door-access 7s ease-in-out infinite;transform-origin:left}.domotic-zone:nth-child(4):before{content:"";position:absolute;z-index:2;right:28px;bottom:42px;width:5px;height:5px;border-radius:50%;background:var(--cyan);box-shadow:0 0 7px var(--cyan)}@keyframes building-scan{0%,100%{top:3%;opacity:.3}50%{top:94%;opacity:1}}@keyframes camera-sweep{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(18deg)}}@keyframes status-progress{0%{width:0}45%,75%{width:100%}100%{width:0}}@keyframes live-led{50%{opacity:.25;box-shadow:0 0 8px #2d7353}}@keyframes light-dim{0%,100%{filter:brightness(.75);box-shadow:0 0 0 0 rgba(11,159,218,.1)}50%{filter:brightness(1.35);box-shadow:0 0 0 16px rgba(11,159,218,.08)}}@keyframes temperature-level{0%,100%{--temperature:32%}50%{--temperature:76%}}@keyframes blinds-move{0%,100%{transform:scaleY(.25)}45%,65%{transform:scaleY(1)}}@keyframes door-access{0%,35%,100%{transform:perspective(90px) rotateY(0)}55%,75%{transform:perspective(90px) rotateY(-48deg);border-color:var(--cyan)}}.electric-scene:not(.is-active) .building-map:after,.electric-scene:not(.is-active) .device:before,.electric-scene:not(.is-active) .status-unit:after,.electric-scene:not(.is-active) .status-unit em:before,.electric-scene:not(.is-active) .domotic-zone:after{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.building-map:after,.device:before,.status-unit:after,.status-unit em:before,.domotic-zone:after{animation:none}}

/* electric-duration.css */
.solar-sun,.solar-layout .panels,.machine-arm{animation-duration:10s}.metal-sheet{animation-duration:10s}.metal-sheet.s1{animation-delay:0s}.metal-sheet.s2{animation-delay:3.3s}.metal-sheet.s3{animation-delay:6.6s}

/* integration-scene.css */
.integration-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 72px 1.08fr;
  gap: 16px;
  align-items: center;
}
.plant-stack {
  display: grid;
  gap: 12px;
}
.plant-unit {
  position: relative;
  min-height: 72px;
  border: 1px solid var(--navy);
  padding: 11px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plant-unit:after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--navy);
}
.plant-unit strong {
  font-size: 10px;
}
.plant-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(11, 159, 218, 0.1);
  animation: plant-state 2s ease-in-out infinite;
}
.plant-unit:nth-child(2) .plant-led {
  animation-delay: 0.65s;
}
.plant-unit:nth-child(3) .plant-led {
  animation-delay: 1.3s;
}
.data-bridge {
  position: relative;
  height: 260px;
  border-left: 1px dashed var(--navy);
  border-right: 1px dashed var(--navy);
}
.data-bridge:before,
.data-bridge:after {
  content: "";
  position: absolute;
  left: -17px;
  right: -17px;
  height: 1px;
  background: var(--navy);
}
.data-bridge:before {
  top: 34%;
}
.data-bridge:after {
  top: 67%;
}
.data-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: bridge-data 3s ease-in-out infinite;
}
.data-pulse.p2 {
  animation-delay: 1s;
}
.data-pulse.p3 {
  animation-delay: 2s;
}
.ai-programmer {
  position: relative;
  height: 300px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #d7f4ff;
  padding: 38px 17px 16px;
  font-family: var(--mono);
  overflow: hidden;
}
.ai-programmer:before {
  content: "Elleti / IA + AUTOMAZIONE";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.ai-programmer:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 29px;
  height: 1px;
  background: rgba(112, 205, 236, 0.28);
}
.code-line {
  height: 10px;
  margin: 10px 0;
  background: linear-gradient(
    90deg,
    var(--cyan) var(--code-width),
    rgba(112, 205, 236, 0.14) var(--code-width)
  );
  transform-origin: left;
  animation: code-write 5s steps(12, end) infinite;
}
.code-line:nth-child(1) {
  --code-width: 78%;
}
.code-line:nth-child(2) {
  --code-width: 52%;
  animation-delay: 0.4s;
}
.code-line:nth-child(3) {
  --code-width: 88%;
  animation-delay: 0.8s;
}
.code-line:nth-child(4) {
  --code-width: 64%;
  animation-delay: 1.2s;
}
.code-line:nth-child(5) {
  --code-width: 72%;
  animation-delay: 1.6s;
}
.ai-decision {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(112, 205, 236, 0.4);
  font-size: 8px;
}
.ai-decision b {
  display: flex;
  justify-content: space-between;
  color: var(--cyan);
  font-weight: 500;
}
.ai-decision span {
  display: block;
  margin-top: 6px;
  color: rgba(215, 244, 255, 0.66);
}
@keyframes plant-state {
  50% {
    background: var(--navy);
    box-shadow: 0 0 0 8px rgba(11, 159, 218, 0.16);
  }
}
@keyframes bridge-data {
  0% {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    left: calc(100% - 4px);
  }
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 8px);
    left: 50%;
    opacity: 0;
  }
}
@keyframes code-write {
  0%,
  10% {
    transform: scaleX(0);
    opacity: 0.25;
  }
  55%,
  85% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0);
    opacity: 0.25;
  }
}
.electric-scene:not(.is-active) .plant-led,
.electric-scene:not(.is-active) .data-pulse,
.electric-scene:not(.is-active) .code-line {
  animation-play-state: paused;
}
@media (max-width: 600px) {
  .integration-layout {
    grid-template-columns: 0.8fr 38px 1.2fr;
    gap: 8px;
  }
  .plant-unit {
    padding: 7px;
    min-height: 62px;
  }
  .plant-unit strong {
    font-size: 8px;
  }
  .ai-programmer {
    height: 270px;
    padding-inline: 10px;
  }
  .ai-decision {
    left: 10px;
    right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plant-led,
  .data-pulse,
  .code-line {
    animation: none;
  }
}

/* electric-cabin-complete.css */
.electric-scene .cabin-chain{display:grid!important;grid-template-columns:10% 4% 31% 4% 17% 4% 30%!important;width:100%;height:100%;padding:0 6px 0 14px;overflow:visible;align-items:center}.electric-scene .cabin-chain>.network-line:nth-child(6){display:block!important}.electric-scene .cabin-chain>.lv-board{display:flex!important}.electric-scene .pylon{height:215px}.electric-scene .pylon .mast:before,.electric-scene .pylon .mast:after{height:175px}.electric-scene .pylon .cross.c1{top:50px}.electric-scene .pylon .cross.c2{top:86px}.electric-scene .pylon .cross.c3{top:122px}.electric-scene .pylon-label{font-size:6px;bottom:2px}.electric-scene .reception-cabin{width:100%;height:225px}.electric-scene .reception-cell{padding:9px 4px;font-size:6px;overflow:hidden}.electric-scene .reception-cell strong{font-size:7px}.electric-scene .switch-symbol{width:28px}.electric-scene .breaker-symbol{width:31px;height:31px}.electric-scene .measure-symbol{gap:2px}.electric-scene .measure-symbol i{height:20px;font-size:6px}.electric-scene .transformer-unit{width:100%;height:190px}.electric-scene .transformer-unit:before,.electric-scene .transformer-unit:after{top:48px;width:52px;height:52px;border-width:2px}.electric-scene .transformer-unit:before{left:0}.electric-scene .transformer-unit:after{right:0}.electric-scene .transformer-unit strong{bottom:27px;font-size:7px}.electric-scene .transformer-unit small{bottom:8px;font-size:6px}.electric-scene .lv-board{width:100%;min-height:215px;padding:10px 7px;font-size:6px}.electric-scene .lv-board strong{font-size:9px}.electric-scene .lv-bus:after{height:54px}.electric-scene .lv-outputs{gap:2px}.electric-scene .lv-outputs i{height:25px;font-size:6px}.electric-scene .network-line{min-width:0}.electric-scene .network-line i{animation-name:network-flow-complete}@keyframes network-flow-complete{from{left:0}to{left:calc(100% - 8px)}}@media(max-width:600px){.electric-scene .cabin-chain{grid-template-columns:9% 3% 34% 3% 18% 3% 30%!important;padding-left:8px}.electric-scene .pylon{height:185px}.electric-scene .reception-cabin{height:205px}.electric-scene .reception-cell span,.electric-scene .reception-cell small{font-size:5px}.electric-scene .transformer-unit:before,.electric-scene .transformer-unit:after{width:38px;height:38px}.electric-scene .lv-board{min-height:190px;padding-inline:4px}}

/* electric-corrections.css */
/* Il foglio tecnico resta bianco pieno, indipendente dallo sfondo della pagina. */
.area-electric .electric-gallery,
.area-electric .electric-gallery .electric-scene {
  background-color: #fff !important;
  background-image: none !important;
}

.area-electric .electric-gallery {
  isolation: isolate;
}

.control-schematic.electric-scene {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.control-schematic.electric-scene .power-lines {
  flex: none;
  margin-bottom: 4px;
}
.control-schematic.electric-scene .protection-bank,
.control-schematic.electric-scene .control-bus {
  flex: none;
  margin-bottom: 5px;
}
.control-schematic.electric-scene .contactors {
  flex: none;
  margin-bottom: 4px;
}
.control-schematic.electric-scene .terminal-row,
.control-schematic.electric-scene .schematic-output {
  flex: none;
}
.electric-scene .cabin-chain {
  grid-template-columns: 13% 5% 28% 4% 17% 4% 29% !important;
  padding-left: 18px;
}
.electric-scene .pylon {
  margin-left: 10px;
  margin-right: 5px;
}
.electric-scene .pylon:before {
  content: "SOSTEGNO MT / CEI";
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--muted);
  font: 500 6px var(--mono);
  letter-spacing: 0.05em;
}
.electric-scene .pylon-label {
  bottom: -16px;
  padding-top: 6px;
  color: var(--navy);
  font-size: 6px;
  letter-spacing: 0.04em;
}
.electric-scene .pylon .cross.c1 {
  left: 50%;
  right: auto;
  width: 0;
  top: 42px;
}
.electric-scene .pylon .cross.c1 i:first-child {
  left: -4px;
}
.electric-scene .pylon .cross.c1 i:last-child {
  display: none;
}
.electric-scene .pylon .cross.c2 {
  left: 8px;
  right: 8px;
  top: 92px;
}
.electric-scene .pylon .cross.c3 {
  display: none;
}
.electric-scene .pylon .mast {
  width: 4px;
  background: linear-gradient(
    90deg,
    var(--navy) 0 1px,
    transparent 1px 3px,
    var(--navy) 3px 4px
  );
}
.electric-scene .pylon .mast:before,
.electric-scene .pylon .mast:after {
  height: 165px;
}
.electric-scene .switch-symbol {
  overflow: visible;
}
.electric-scene .switch-symbol:before {
  content: "CHIUSO · RETE ATTIVA";
  position: absolute;
  left: 50%;
  top: 31px;
  width: 94px;
  transform: translateX(-50%);
  color: var(--cyan);
  font: 500 6px var(--mono);
  letter-spacing: 0.04em;
  animation: switch-status 10s steps(1, end) infinite;
}
.electric-scene .switch-symbol:after {
  animation: switch-blade 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.electric-scene .cabin-chain > .network-line:nth-child(4),
.electric-scene .cabin-chain > .network-line:nth-child(6),
.electric-scene .transformer-unit,
.electric-scene .lv-board {
  animation: downstream-power 10s ease-in-out infinite;
}
.electric-scene .cabin-chain > .network-line:nth-child(4) i,
.electric-scene .cabin-chain > .network-line:nth-child(6) i,
.electric-scene .lv-bus,
.electric-scene .lv-outputs {
  animation: downstream-current 10s ease-in-out infinite;
}
@keyframes switch-blade {
  0%,
  18%,
  62%,
  100% {
    transform: rotate(-20deg);
    background: var(--cyan);
    box-shadow: 0 0 7px rgba(11, 159, 218, 0.55);
  }
  27%,
  52% {
    transform: rotate(-58deg);
    background: var(--navy);
    box-shadow: none;
  }
}
@keyframes switch-status {
  0%,
  22%,
  58%,
  100% {
    content: "CHIUSO · RETE ATTIVA";
    color: var(--cyan);
  }
  27%,
  52% {
    content: "APERTO · VALLE ISOLATA";
    color: var(--muted);
  }
}
@keyframes downstream-power {
  0%,
  20%,
  60%,
  100% {
    opacity: 1;
    filter: none;
  }
  28%,
  52% {
    opacity: 0.3;
    filter: grayscale(1);
  }
}
@keyframes downstream-current {
  0%,
  20%,
  60%,
  100% {
    opacity: 1;
  }
  27%,
  53% {
    opacity: 0;
  }
}
.domotic-zone > i {
  display: none !important;
}
.route-item .service-new {
  position: absolute;
  top: 16px;
  left: 64px;
  z-index: 2;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  opacity: 1;
  pointer-events: none;
  transform: none;
  transform-origin: center;
  text-shadow:
    0 0 4px rgba(57, 255, 20, 0.6),
    0 0 9px rgba(57, 255, 20, 0.28);
}
.area-electric .route-item:hover .route-node {
  border-color: var(--navy);
  border-width: 1px;
  background: var(--cyan);
  transform: rotate(45deg);
  animation: electric-node-pulse 1.65s ease-in-out infinite;
}
.area-electric .route-item:hover .route-node:after {
  display: none;
}
@keyframes electric-node-pulse {
  0%,
  100% {
    filter: brightness(0.92);
    box-shadow: 0 0 0 7px rgba(11, 159, 218, 0.1);
  }
  50% {
    filter: brightness(1.18);
    box-shadow:
      0 0 0 9px rgba(11, 159, 218, 0.14),
      0 0 15px rgba(11, 159, 218, 0.42);
  }
}
@media (max-width: 600px) {
  .route-item .service-new {
    top: 15px;
    left: 48px;
  }
}
.domotic-zone {
  animation: zone-supervision 10s ease-in-out infinite;
}
.domotic-zone:nth-child(2) {
  animation-delay: 0.6s;
}
.domotic-zone:nth-child(3) {
  animation-delay: 1.2s;
}
.domotic-zone:nth-child(4) {
  animation-delay: 1.8s;
}
.domotic-zone:nth-child(1) {
  background: radial-gradient(
    circle at 75% 70%,
    rgba(11, 159, 218, 0.15),
    transparent 34%
  );
}
.domotic-zone:nth-child(2) {
  background: linear-gradient(0deg, rgba(11, 159, 218, 0.08), transparent 55%);
}
.domotic-zone:nth-child(3) {
  background: repeating-linear-gradient(
    0deg,
    rgba(6, 17, 81, 0.055) 0 2px,
    transparent 2px 13px
  );
}
.domotic-zone:nth-child(4) {
  background: linear-gradient(
    90deg,
    transparent 75%,
    rgba(11, 159, 218, 0.08) 75%
  );
}
.electric-scene:not(.is-active) .domotic-zone {
  animation-play-state: paused;
}
@keyframes zone-supervision {
  0%,
  100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.08);
  }
}
@media (max-width: 600px) {
  .electric-scene .cabin-chain {
    grid-template-columns: 12% 4% 30% 4% 17% 4% 29% !important;
    padding-left: 10px;
  }
  .electric-scene .pylon {
    margin-left: 5px;
  }
  .electric-scene .pylon-label {
    bottom: -14px;
    white-space: normal;
    width: 74px;
    text-align: center;
    line-height: 1.25;
  }
  .electric-scene .pylon:before {
    bottom: -34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .area-electric .route-item:hover .route-node {
    animation: none;
  }
  .domotic-zone {
    animation: none;
  }
  .electric-scene .switch-symbol:before,
  .electric-scene .switch-symbol:after,
  .electric-scene .cabin-chain > .network-line:nth-child(4),
  .electric-scene .cabin-chain > .network-line:nth-child(6),
  .electric-scene .transformer-unit,
  .electric-scene .lv-board,
  .electric-scene .cabin-chain > .network-line:nth-child(4) i,
  .electric-scene .cabin-chain > .network-line:nth-child(6) i,
  .electric-scene .lv-bus,
  .electric-scene .lv-outputs {
    animation: none;
  }
}
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .area-electric .route-item .route-node {
    border-color: var(--navy);
    border-width: 1px;
    background: var(--cyan);
    animation: electric-mobile-node 4.8s ease-in-out infinite;
  }
  .area-electric .route-item:nth-child(2n) .route-node {
    animation-delay: 0.8s;
  }
  .area-electric .route-item:nth-child(3n) .route-node {
    animation-delay: 1.6s;
  }
  @keyframes electric-mobile-node {
    0%,
    68%,
    100% {
      transform: rotate(0);
      box-shadow: none;
      filter: brightness(0.94);
    }
    78%,
    90% {
      transform: rotate(45deg);
      box-shadow: 0 0 12px rgba(11, 159, 218, 0.4);
      filter: brightness(1.16);
    }
  }
}

/* legal-center.css */
.legal-trigger {
  position: fixed;
  z-index: 70;
  left: var(--gutter);
  bottom: 20px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(145, 163, 178, 0.65);
  background: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
.legal-trigger img {
  display: block;
  width: 18px;
}
.legal-trigger:hover,
.legal-trigger:focus-visible {
  border-color: #dffb72;
  background: #0a1c66;
  transform: translateY(-2px);
}
.portal-footer-icon {
  visibility: hidden;
}
.legal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(720px, 100%);
  background: rgba(6, 17, 81, 0.46);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0.28s;
}
.legal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.28s ease,
    visibility 0s;
}
.legal-panel {
  grid-column: 2;
  height: 100%;
  overflow: auto;
  background: var(--paper);
  color: var(--text);
  border-left: 1px solid rgba(6, 17, 81, 0.25);
  transform: translateX(35px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.legal-overlay.is-open .legal-panel {
  transform: none;
}
.legal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 243, 237, 0.96);
  backdrop-filter: blur(10px);
}
.legal-head strong {
  font-size: 18px;
  color: var(--navy);
}
.legal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font: 400 22px/1 var(--sans);
  cursor: pointer;
}
.legal-body {
  padding: clamp(30px, 5vw, 58px);
}
.legal-company {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy);
}
.legal-company h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--navy);
}
.legal-company address {
  margin-top: 22px;
  font-style: normal;
  color: var(--muted);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}
.legal-nav a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--navy);
  font: 500 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.legal-section h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.legal-section h4 {
  margin-top: 22px;
  font-size: 14px;
  color: var(--navy);
}
.legal-section p,
.legal-section li {
  margin-top: 10px;
  color: #536171;
  font-size: 14px;
}
.legal-section ul {
  list-style: disc;
  padding-left: 18px;
}
.legal-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}
.legal-note {
  padding: 18px;
  border-left: 2px solid var(--cyan);
  background: #fff;
}
.legal-updated {
  margin-top: 30px;
  color: var(--muted);
  font: 500 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.legal-open {
  overflow: hidden;
}
.cookie-quick {
  position: fixed;
  z-index: 84;
  left: var(--gutter);
  bottom: 66px;
  width: min(390px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid rgba(112, 205, 236, 0.38);
  background: rgba(6, 17, 81, 0.97);
  box-shadow: 0 18px 55px rgba(0, 4, 28, 0.28);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: left bottom;
  transition:
    opacity 0.22s ease,
    visibility 0s linear 0.22s,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-quick.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.22s ease,
    visibility 0s,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-quick > span {
  color: var(--cyan);
}
.cookie-quick > strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}
.cookie-quick > p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
}
.cookie-quick-state {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding: 9px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  font: 500 9px var(--mono);
  text-transform: uppercase;
}
.cookie-quick-state b {
  color: #dffb72;
}
.cookie-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.cookie-quick-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #fff;
  font: 500 9px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.cookie-quick-actions .cookie-quick-advanced {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--navy);
}
.cookie-control-list {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-control-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.cookie-control-list > div > span {
  display: grid;
  gap: 2px;
}
.cookie-control-list b,
.cookie-control-list em {
  font: 500 9px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cookie-control-list b {
  color: #fff;
}
.cookie-control-list em {
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
  font-style: normal;
}
.cookie-control-list > div > strong {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(223, 251, 114, 0.5);
  color: #dffb72;
  font: 500 8px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.cookie-control-list.is-legal {
  border-color: var(--line);
}
.cookie-control-list.is-legal > div {
  border-color: var(--line);
}
.cookie-control-list.is-legal b {
  color: var(--navy);
}
.cookie-control-list.is-legal em {
  color: var(--muted);
}
.cookie-control-list.is-legal > div > strong {
  border-color: var(--cyan);
  background: rgba(11, 159, 218, 0.1);
  color: var(--navy);
}
.company-footer-data {
  text-align: right;
}
@media (max-width: 700px) {
  .legal-trigger {
    left: 18px;
    bottom: 16px;
  }
  .legal-overlay {
    grid-template-columns: 1fr;
  }
  .legal-panel {
    grid-column: 1;
  }
  .legal-body {
    padding-bottom: 90px;
  }
  .company-footer-data {
    text-align: left;
  }
  .portal-footer {
    padding-left: 50px;
  }
  .cookie-quick {
    left: 18px;
    bottom: 66px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .legal-trigger,
  .legal-overlay,
  .legal-panel,
  .cookie-quick {
    transition: none;
    animation: none;
  }
}

/* nav-menu.css */
.site-head {
  padding: 0;
  background: rgba(6, 17, 81, 0.94);
  border-bottom: 1px solid rgba(112, 205, 236, 0.22);
  backdrop-filter: blur(18px);
}
.site-head .brand {
  background-image: url("img/elleti-logo-soft-light.svg");
}
.site-nav {
  position: relative;
  height: 76px;
}
.primary-nav {
  counter-reset: nav-item;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 44px);
  padding: 0;
}
.primary-nav a {
  counter-increment: nav-item;
  position: relative;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.66);
  font: 500 12px/1 var(--sans);
  letter-spacing: -0.01em;
  transition:
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-nav a:before {
  content: "0" counter(nav-item);
  position: absolute;
  left: -20px;
  top: 50%;
  color: var(--cyan);
  font: 500 7px/1 var(--mono);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition:
    opacity 0.22s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}
.primary-nav a:hover:after,
.primary-nav a:focus-visible:after,
.primary-nav a.is-current:after {
  right: 0;
}
.primary-nav a:hover:before,
.primary-nav a:focus-visible:before,
.primary-nav a.is-current:before {
  opacity: 1;
  transform: translate(0, -50%);
}
.primary-nav a.is-current {
  color: #fff;
}
.nav-contact {
  min-height: 0;
  padding: 9px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  background: transparent;
  color: #fff;
  font-size: 11px;
}
.nav-contact:after {
  content: "  ↗";
  color: var(--cyan);
}
.nav-contact:hover {
  background: transparent;
  color: var(--cyan);
}
.nav-toggle {
  display: none;
}
.about-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.about-strip .wrap {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: clamp(28px, 7vw, 100px);
  align-items: start;
  padding-block: clamp(42px, 5vw, 72px);
}
.about-strip .wrap > p:last-child {
  max-width: 830px;
  color: var(--navy);
  font-size: clamp(21px, 2.1vw, 31px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}
@media (max-width: 900px) {
  .site-head {
    padding: 0;
  }
  .site-nav {
    height: 66px;
    grid-template-columns: 1fr auto;
  }
  .nav-toggle {
    justify-self: end;
    display: grid;
    grid-template-columns: 18px auto;
    grid-template-rows: repeat(3, 3px);
    align-items: center;
    column-gap: 8px;
    width: auto;
    min-height: 42px;
    padding: 8px 0 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle span {
    grid-column: 1;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition:
      transform 0.28s ease,
      opacity 0.2s ease;
  }
  .nav-toggle b {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
    font: 500 9px var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }
  .primary-nav {
    position: absolute;
    z-index: 25;
    top: 66px;
    right: 0;
    display: grid;
    width: min(290px, calc(100vw - 40px));
    gap: 0;
    padding: 0;
    border: 1px solid rgba(6, 17, 81, 0.18);
    border-radius: 0;
    background: var(--paper);
    box-shadow: 0 18px 50px rgba(6, 17, 81, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 0.25s ease,
      visibility 0s linear 0.25s,
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s ease,
      visibility 0s,
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .primary-nav a {
    min-width: 0;
    padding: 17px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 12px;
    color: #526071;
  }
  .primary-nav a:before {
    left: auto;
    right: 18px;
    top: 18px;
    opacity: 0.72;
    transform: none;
  }
  .primary-nav a:after {
    left: 18px;
    right: calc(100% - 18px);
    bottom: 11px;
  }
  .primary-nav a:hover:after,
  .primary-nav a:focus-visible:after,
  .primary-nav a.is-current:after {
    right: 18px;
  }
  .primary-nav a:hover,
  .primary-nav a:focus-visible,
  .primary-nav a.is-current {
    color: var(--navy);
  }
  .about-strip .wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary-nav,
  .primary-nav a,
  .primary-nav a:before,
  .nav-toggle span {
    transition: none;
  }
}

/* electric-route-motion.css */
.area-electric .route-item {
  transition: background-color 0.38s ease;
}

.area-electric .route-item:hover {
  background-color: rgba(11, 159, 218, 0.055);
}

.area-electric .route-node {
  overflow: visible;
  transform-origin: center;
  transition:
    border-width 0.28s ease,
    border-color 0.3s ease,
    background-color 0.35s ease,
    box-shadow 0.4s ease,
    filter 0.35s ease,
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1);
}
.area-electric .route-node svg {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  overflow: visible;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.2);
  transition:
    opacity 0.28s ease 0.12s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
}
.area-electric .route-node.is-zapped,
.area-electric .route-item:hover .route-node {
  border-width: 1px;
  border-color: var(--navy);
  border-radius: 0;
  background: var(--cyan);
  box-shadow:
    0 0 0 5px rgba(11, 159, 218, 0.09),
    0 0 14px rgba(11, 159, 218, 0.34);
  filter: brightness(1.1);
  transform: rotate(45deg);
  animation: none !important;
}
.area-electric .route-node.is-zapped svg,
.area-electric .route-item:hover .route-node svg {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg) scale(1);
}
.area-electric .route-node.is-zapped:after,
.area-electric .route-item:hover .route-node:after {
  display: none;
}
@media (max-width: 600px) {
  .area-electric .route-node svg {
    width: 13px;
    height: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .area-electric .route-node {
    transition: none;
  }
}

/* Correzioni applicate sopra gli stili originali. */

:root {
  --cyan-testo: #006d99;
}
html {
  scroll-padding-top: 96px;
}

.salta {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 12px 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  border: 2px solid var(--navy);
}
.salta:focus {
  top: 12px;
}
main:focus {
  outline: none;
}
:focus-visible {
  outline-color: var(--navy);
}
.site-head :focus-visible,
.portal :focus-visible,
.service-method :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* contrasto: il ciano resta per linee e riempimenti, il testo su fondo chiaro usa una tinta più scura */
.eyebrow,
.route-code,
.method-step:before,
.service-method li span {
  color: var(--cyan-testo);
}
.service-method .eyebrow,
.service-method li span,
.site-head .eyebrow {
  color: #70cdec;
}

/* titoli dei servizi: la colonna non si allarga oltre lo spazio disponibile */
.service-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}
.service-hero-copy {
  container-type: inline-size;
}
.service-hero h1 {
  hyphens: manual;
}
@media (max-width: 960px) {
  .service-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* elenco servizi nelle aree */
.route-item h3 a {
  color: inherit;
  text-decoration: none;
}
.route-item .service-new {
  position: absolute;
  top: 16px;
  left: 64px;
  z-index: 2;
  color: var(--cyan-testo);
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.1em;
}
@media (max-width: 600px) {
  .route-item .service-new {
    top: 15px;
    left: 48px;
  }
}

/* ambiti con approfondimento */
.scope-list li {
  list-style: none;
}
.scope-d {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.js .scope-list li.has-detail .scope-d {
  display: none;
}
.scope-apri {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}
.scope-list li.has-detail {
  cursor: default;
}
.scope-list li.has-detail:has(.scope-apri:hover),
.scope-list li.has-detail:has(.scope-apri:focus-visible) {
  padding-left: 48px;
  background: rgba(0, 174, 239, 0.06);
}
.scope-apri::after {
  content: "";
  position: absolute;
  inset: 0;
}
.scope-apri:focus-visible {
  outline: none;
}
.scope-list li.has-detail:has(.scope-apri:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}
.detail-modal.is-open {
  transition: opacity 0.28s ease, visibility 0s;
}
.detail-close {
  position: sticky;
  top: 18px;
  display: block;
  margin: 18px 22px -64px auto;
  float: none;
}
.detail-azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 18px !important;
}
.detail-mail {
  color: var(--navy);
  font-weight: 600;
}

/* contatto: l'indirizzo si legge e si copia */
.contatto-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--navy);
}
.contatto-mail a {
  color: var(--navy);
  font-size: 15px;
}
.contatto-mail a:hover {
  color: var(--cyan-testo);
}
.copia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  font: 500 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.copia:hover {
  border-color: var(--navy);
}
.service-contact .service-wrap > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* domande frequenti */
.service-faq {
  padding: clamp(70px, 8vw, 110px) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.service-faq .service-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
}
.service-faq h2 {
  color: var(--navy);
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-top: 22px;
}
.faq {
  border-top: 1px solid var(--navy);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  color: var(--cyan-testo);
  font: 500 18px var(--mono);
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  max-width: 68ch;
  padding: 0 0 22px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .service-faq .service-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* home: dati societari accanto all'indirizzo, come nel piede originale */
.portal-dati a:hover {
  color: #fff;
}

/* pagine legali */
.legal-page main {
  padding: clamp(60px, 8vw, 120px) 0;
}
.legal-page h1 {
  color: var(--navy);
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin-top: 22px;
}
.legale-lead {
  max-width: 62ch;
  margin-top: 28px;
  font-size: 19px;
  color: #46576a;
}
.legale-data {
  margin-top: 18px;
  color: var(--muted);
}
.legale-griglia {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(50px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.legale-indice {
  position: sticky;
  top: 110px;
  align-self: start;
}
.legale-indice ol {
  list-style: none;
  border-top: 1px solid var(--navy);
}
.legale-indice li {
  border-bottom: 1px solid var(--line);
}
.legale-indice a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--navy);
}
.legale-corpo {
  max-width: 76ch;
}
.legale-corpo section + section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.legale-corpo h2 {
  color: var(--navy);
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.legale-corpo h3 {
  margin: 20px 0 6px;
  color: var(--navy);
  font-size: 17px;
}
.legale-corpo p + p {
  margin-top: 12px;
}
.legale-corpo a {
  color: var(--cyan-testo);
  font-weight: 500;
}
.legale-corpo .scheda > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legale-corpo .scheda {
  border-top: 1px solid var(--navy);
}
.legale-corpo dt {
  font: 500 11px/1.8 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tabella-scorrevole {
  overflow-x: auto;
}
.legale-corpo table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.legale-corpo th {
  padding: 10px 12px;
  background: #ecece6;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}
.legale-corpo td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.errore-link {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .legale-griglia {
    grid-template-columns: minmax(0, 1fr);
  }
  .legale-indice {
    position: static;
  }
}
@media (max-width: 600px) {
  .legale-corpo .scheda > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ex stili in linea delle pagine originali */
.section-title h2,
.method-grid h2 {
  margin-top: 24px;
}
.section-title p.eyebrow {
  justify-self: auto;
  max-width: none;
  color: var(--cyan-testo);
}

/* riga servizio: il titolo è il link e copre tutta la riga */
.route-item h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
}
.route-item h3 a:focus-visible {
  outline: none;
}
.route-item:has(h3 a:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

/* servizi collegati */
.collegati {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 28px;
  color: var(--muted);
}
.collegati a {
  color: var(--navy);
  font-weight: 500;
}
.collegati a:hover {
  color: var(--cyan-testo);
}

/* il loghino fisso del centro legale non deve coprire il piede */
@media (max-width: 700px) {
  .site-footer {
    padding-bottom: 72px;
  }
}


/* prima schermata: occupa l'altezza disponibile, contenuto centrato, pannello sempre intero */
:root {
  --testata: 77px;
  --spazio-pannello: 190px;
}
@media (min-width: 901px) {
  .division-hero {
    min-height: calc(100svh - var(--testata));
  }
  .division-copy {
    padding-block: clamp(40px, 7vh, 110px);
  }
  .division-copy h1 {
    font-size: clamp(52px, min(7.5vw, 13vh), 112px);
  }
  .area-electric .electric-gallery {
    height: clamp(360px, calc(100svh - var(--testata) - var(--spazio-pannello)), 460px);
  }
  .area-it .slide-cornice {
    width: min(100%, 760px, calc((100svh - var(--testata) - var(--spazio-pannello)) * 1.16));
  }
}

/* scene: una sola riga di comando sopra il pannello
   pausa · frecce · contatore · barra di avanzamento · conto alla rovescia */
.slide-cornice {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: auto;
}
.area-electric .slide-cornice {
  max-width: 610px;
}
.slide-cornice .ai-stage {
  max-width: none;
}
.slide-avanzamento {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.slide-freccia {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.18s ease;
}
.slide-freccia svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.18s ease;
}
.slide-freccia:hover,
.slide-freccia:focus-visible {
  color: var(--cyan-testo);
}
.slide-prec:hover svg {
  transform: translateX(-2px);
}
.slide-succ:hover svg {
  transform: translateX(2px);
}
.slide-succ {
  margin-left: -6px;
}
.slide-conta {
  flex: none;
  margin-left: 4px;
  letter-spacing: 0.1em;
}
.slide-conta b {
  color: var(--navy);
  font-weight: 500;
}
.slide-barra {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(6, 17, 81, 0.16);
}
.slide-barra i {
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
}
.slide-barra em {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.slide-barra em b {
  position: absolute;
  left: -3px;
  top: -2px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.slide-barra.in-corsa i {
  animation: slide-riempi var(--durata, 7s) linear forwards;
}
.slide-barra.in-corsa em {
  opacity: 1;
  animation: slide-testa var(--durata, 7s) linear forwards;
}
.slide-avanzamento.is-fermo .slide-barra {
  visibility: hidden;
}
@keyframes slide-riempi {
  to {
    transform: scaleX(1);
  }
}
@keyframes slide-testa {
  to {
    transform: translateX(100%);
  }
}
@media (max-width: 900px) {
  :root {
    --testata: 67px;
  }
  .division-visual:has(.slide-cornice) {
    padding-top: 96px;
  }
}
@media (max-width: 420px) {
  .slide-avanzamento {
    gap: 8px;
  }
}
@media (min-width: 901px) {
  .area-electric .division-visual {
    padding-inline: clamp(16px, 2vw, 32px);
  }
  .division-copy {
    padding-block: clamp(28px, 5vh, 110px) max(84px, clamp(28px, 5vh, 110px));
  }
  .division-copy h1 {
    margin-top: min(28px, 3vh);
  }
  .division-copy > p:not(.eyebrow) {
    margin-top: min(34px, 3.5vh);
    font-size: clamp(16px, 2.4vh, 19px);
  }
  .division-copy .button {
    margin-top: min(38px, 4vh);
  }
  .area-it .division-copy h1 {
    font-size: clamp(48px, min(6.4vw, 10vh), 104px);
  }
}

/* play e pausa nella riga della barra */
.slide-pausa {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(6, 17, 81, 0.48);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.slide-pausa:hover,
.slide-pausa:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.slide-pausa svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.slide-pausa .icona-play,
.slide-pausa.is-play .icona-pausa {
  display: none;
}
.slide-pausa.is-play .icona-play {
  display: inline;
}
.slide-barra.in-pausa i,
.slide-barra.in-pausa em {
  animation-play-state: paused;
}
.slide-avanzamento.is-fermo .slide-pausa {
  display: none;
}

/* la linea che "disegna" la scena attraversa tutto il foglio anche sul Q.E.
   (il quadro usa lo stesso ::after per la spia di stato e ne ereditava altezza e aggancio) */
.control-schematic.electric-scene.is-active::after {
  right: auto;
  bottom: 0;
  height: auto;
}

/* cambio scena: la tavola nuova si scopre alle spalle della linea ciano, la vecchia resta sotto */
@media (prefers-reduced-motion: no-preference) {
  .electric-gallery .electric-scene.is-uscita {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .electric-gallery .electric-scene.is-active {
    z-index: 2;
  }
  .electric-gallery .electric-scene.is-active.is-rivela {
    opacity: 1;
    transform: none;
    transition: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(50% + 3px), transparent calc(50% + 3px));
    mask-image: linear-gradient(90deg, #000 calc(50% + 3px), transparent calc(50% + 3px));
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    animation: scena-rivela 1.45s cubic-bezier(0.65, 0, 0.2, 1) forwards;
  }
}
@keyframes scena-rivela {
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

/* conto alla rovescia alla prossima scena */
.slide-tempo {
  flex: none;
  min-width: 6.2ch;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: right;
}
.slide-avanzamento.is-fermo .slide-tempo {
  display: none;
}
