/* 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);
}

/* 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;
  }
}

/* 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;
}
