/* Variante richiesta: schermate originali in portatile e smartphone CSS. */
.hero-devices {
  width: 102%;
  margin-left: 0;
}
.device-composition {
  position: relative;
  width: 100%;
  aspect-ratio: 1.18;
  perspective: 1400px;
}
.device-laptop {
  position: absolute;
  top: 2%;
  left: 3%;
  width: 85%;
  padding: 0;
  background: none;
  transform: rotateY(-9deg) rotateZ(-3deg);
  transition: transform .65s var(--ease);
}
.laptop-display {
  display: block;
  position: relative;
  padding: 12px 10px 15px;
  background: #161b22;
  border: 2px solid #737c88;
  border-radius: 14px 14px 5px 5px;
  box-shadow: 0 18px 28px -18px #0d1c3690;
}
.laptop-display::before {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #414b58;
}
.laptop-display img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 2px; }
.laptop-base {
  display: block;
  position: relative;
  /* Il bordo posteriore SVG (868/1000) coincide con lo schermo. */
  width: 115.207373%;
  height: auto;
  margin-left: -7.603687%;
  background: none;
  filter: drop-shadow(0 14px 9px #122f4430);
  margin-top: -1px;
}
.laptop-base::before {
  content: none;
  position: absolute;
  top: 0;
  left: 42%;
  width: 16%;
  height: 4px;
  background: #929ca8;
  border-radius: 0 0 8px 8px;
}
.laptop-keyboard { display: block; width: 100%; height: auto; }
.device-phone {
  position: absolute;
  right: 2%;
  bottom: 9%;
  width: 24%;
  padding: 7px;
  background: #161b22;
  border: 2px solid #7b8590;
  border-radius: 26px;
  box-shadow: 8px 17px 23px -12px #112f4475;
  transform: rotateZ(5deg);
  transition: transform .65s var(--ease);
}
.phone-display {
  display: block;
  overflow: hidden;
  border-radius: 17px;
}
.phone-display img { width: 100%; height: auto; }
.hero-devices figcaption { margin-top: 14px; padding-right: 6%; }
@media (hover: hover) and (pointer: fine) {
  .device-laptop:hover { transform: rotateY(-3deg) rotateZ(-1deg) translateY(-6px); }
  .device-phone:hover { transform: rotateZ(1deg) translateY(-8px); }
}
.device-laptop:focus-visible, .device-phone:focus-visible {
  outline: 3px solid #e48c00;
  outline-offset: 8px;
}
@media (max-width: 960px) {
  .hero-devices { width: 85%; margin: 50px 2% 0 auto; }
}
@media (max-width: 760px) {
  .hero-devices { width: 100%; margin: 38px 0 0; }
  .laptop-display { padding: 7px 5px 8px; border-width: 1px; border-radius: 8px 8px 3px 3px; }
  .laptop-display::before { width: 2px; height: 2px; top: 2px; left: calc(50% - 1px); }
  .laptop-base { height: auto; }
  .laptop-base::before { height: 3px; }
  .device-phone { padding: 4px; border-width: 1px; border-radius: 15px; }
  .phone-display { border-radius: 10px; }
  .hero-devices figcaption { margin-top: 12px; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .device-laptop, .device-phone,
  .device-laptop:hover, .device-phone:hover { transform: none; }
}
html[data-motion="off"] .device-laptop,
html[data-motion="off"] .device-phone { transform: none; }
