/* Home: conversion paths, product demo and host estimate. */
html[lang="it"] main span[lang="en"], html[lang="it"] header span[lang="en"], html[lang="it"] footer span[lang="en"],
html[lang="en"] main span[lang="it"], html[lang="en"] header span[lang="it"], html[lang="en"] footer span[lang="it"] { display: none; }
#app, #attiva, #hardware, #catalogo, #stima { scroll-margin-top: 5rem; }
.pg-hero { min-height: auto; padding-block: clamp(108px, 10vw, 160px) clamp(56px, 9vw, 112px); }
.pg-kicker { color: var(--lime-deep); font-weight: 700; margin: 0 0 1rem; }
[data-theme="dark"] .pg-kicker { color: var(--lime); }
.pg-hero .how { display: inline-flex; margin-top: 1.5rem; }
.pg-choices, .pg-estimate-grid { display: grid; gap: 1rem; }
.pg-choices article { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 3vw, 32px); }
.pg-choices h3 { margin-bottom: .5rem; }
.pg-choices, .pg-estimate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-choices p { margin-bottom: 1.2rem; }
.pg-choices .pills { margin: 0; }
.pg-estimate-grid { max-width: 55rem; align-items: end; }
.pg-estimate-grid label { display: grid; gap: .45rem; font-weight: 600; }
.pg-estimate-grid input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; color: inherit; background: var(--bg-2); font: inherit; }
.pg-estimate-grid output { grid-column: 1 / -1; font-size: 1.1rem; }
.pg-estimate-grid output:empty { display: none; }
.pg-estimate-note { margin: 1rem 0 0; }
.pg-hardware-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.pg-hardware-grid a { display: grid; align-content: start; gap: .35rem; min-width: 0; padding: 1rem; background: var(--bg-2); border-radius: 20px; border: 1px solid var(--line); }
.pg-hardware-grid img { margin: 0 auto .6rem; width: 100%; height: 8rem; object-fit: contain; }
.pg-hardware-desc { font-size: .95rem; }
#configura { scroll-margin-top: 5rem; }
.ct select { width: 100%; min-height: 48px; border: 1px solid #c6c6cc; border-radius: 14px; padding: .5rem .75rem; background: #f5f5f7; color: #1d1d1f; font: inherit; }
.ct [hidden] { display: none !important; }
#ct-host { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
#ct-f { display: grid; gap: 12px; }
@media (max-width: 680px) {
  .pg-hardware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-choices, .pg-estimate-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-hero .pills { margin-top: 1rem; }
}

.pg-hero .hero2__in { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
.pg-hero h1 { font-size: clamp(2.75rem, 4.5vw, 4.8rem); line-height: 1.02; letter-spacing: -.064em; text-wrap: balance; }
.pg-hero-media, .pg-demo__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 40px);
  background: radial-gradient(ellipse at 56% 64%, #243d30 1%, #152a47 40%, #08142d 76%);
}
.pg-hero-media { min-height: clamp(420px, 39vw, 600px); padding: clamp(25px, 3.5vw, 52px) 18px; }
.pg-hero-media::before, .pg-demo__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1.8;
  border: 1px solid #b5e72045;
  border-radius: 50%;
  transform: rotate(-24deg);
  box-shadow: 0 0 0 32px #b5e72010, 0 0 0 65px #b5e72008;
}
.pg-device {
  position: relative;
  width: min(100%, 226px);
  padding: 5px;
  border: 1px solid #99a4b8;
  border-radius: 15% / 7%;
  background: #050b16;
  box-shadow: 0 25px 54px #010715bb, 0 0 0 2px #030816;
}
.pg-device img { display: block; width: 100%; height: auto; border-radius: 13.5% / 6.5%; }
.pg-hero-media .pg-device { transform: rotate(-8deg); }
.pg-demo__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(22px, 7vw, 120px); align-items: center; }
.pg-demo__copy > h2 { max-width: 13ch; }
.pg-demo__steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.pg-demo__steps { margin: 1.4rem 0 1rem; }
.pg-demo__steps button {
  min-height: 44px;
  border: 1px solid var(--line);
  padding: .55rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 .94rem/1.25 var(--font-b);
  cursor: pointer;
}
.pg-demo__steps button[aria-pressed="true"] { background: var(--lime); color: var(--navy); border-color: transparent; }
#pg-demo-copy { min-height: 3.25rem; margin-bottom: .8rem; color: var(--ink-2); }
.pg-demo__stage { min-height: 480px; padding: 30px 18px; }
.pg-demo__stage .pg-device { width: min(100%, 196px); }
#pg-app-video {
  display: block;
  width: 100%;
  aspect-ratio: 590 / 1278;
  object-fit: contain;
  border-radius: 13.5% / 6.5%;
  background: #050b16;
}
html:has(.pg-app-video-dialog[open]) { overflow: hidden; }
dialog.pg-app-video-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  overflow: hidden;
}
.pg-app-video-dialog::backdrop { background: #000; backdrop-filter: none; }
.pg-app-video-dialog #pg-app-video, #pg-app-video:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}
.pg-app-video-dialog form {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}
.pg-app-video-dialog button {
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid #ffffff64;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.pg-demo__steps button:hover { border-color: currentColor; }
.pg-demo [hidden] { display: none !important; }
.pg-app-film { width: var(--wrap); margin: 0 auto clamp(42px, 6vw, 94px); }
.pg-app-film video {
  display: block;
  width: 100%;
  max-height: 72svh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--navy);
  border-radius: clamp(12px, 2vw, 26px);
}
.pg-app-film figcaption { margin: .6rem 0 0; color: var(--ink-2); font-size: .85rem; }
.pg-featured__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pg-featured__grid article {
  display: grid;
  align-content: space-between;
  color: #fff;
  min-height: 320px;
  padding: clamp(18px, 3vw, 44px);
  border-radius: 24px;
  background: radial-gradient(ellipse at 55% 44%, #344d4a 0%, #132a43 42%, #08142d 75%);
}
.pg-featured__grid article:nth-child(2) { background: radial-gradient(ellipse at 54% 40%, #374967 0%, #172943 45%, #08142d 78%); }
.pg-featured__grid img { height: clamp(175px, 24vw, 340px); width: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px #0107159c); }
.pg-featured__copy { margin-top: 1.5rem; }
.pg-featured__copy h3 { font-size: clamp(25px, 3vw, 44px); }
.pg-featured__copy p { color: #e1e6f0; }
.pg-featured__copy a { display: inline-block; margin-top: .7rem; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .pg-hero .hero2__in { grid-template-columns: minmax(0, 1fr); }
  .pg-hero h1 { font-size: clamp(2.55rem, 8vw, 4.35rem); }
}
@media (max-width: 680px) {
  .pg-hero-media { min-height: 360px; }
  .pg-hero-media .pg-device { width: min(100%, 158px); }
  .pg-demo__grid, .pg-featured__grid { grid-template-columns: minmax(0,1fr); }
  .pg-demo__stage { min-height: 360px; }
  .pg-demo__stage .pg-device { width: min(100%, 155px); }
}


.pg-demo.sec { padding-block: clamp(52px, 6vw, 102px); }
.pg-demo__stage { background: radial-gradient(ellipse at 50% 48%, #d9efa7 0%, #e2e7dc 52%, #e7e9e4 85%); }
.pg-demo__stage::before { border-color: #556d463d; box-shadow: 0 0 0 24px #576d3a0c, 0 0 0 48px #576d3a08; }
[data-theme="dark"] .pg-demo__stage { background: radial-gradient(ellipse at 50% 48%, #374b33 0%, #142539 54%, #091429 86%); }
[data-theme="dark"] .pg-demo__stage::before { border-color: #b5e72045; }
.pg-featured .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 680px) {
  .pg-demo__copy { display: contents; }
  .pg-demo__steps { margin: 0; }
  .pg-demo__stage { grid-row: 3; }
  .pg-demo__grid > .btn { justify-self: start; }
  #pg-demo-copy { min-height: 0; margin: 0; }
}


.pg-net-link {
  display: inline-block;
  margin-top: 1.15rem;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 4px;
  visibility: hidden;
}
.nt.is-on .pg-net-link, .net--static .pg-net-link { visibility: visible; pointer-events: auto; }

.pg-app-film-section:not(.is-scrubbing) { background: transparent; }
.pg-app-film-section.is-scrubbing { height: 520svh; background: var(--navy); }
.pg-app-film-section.is-scrubbing .pg-app-film {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  margin: 0;
}
.pg-app-film-section.is-scrubbing video {
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  pointer-events: none;
}
.pg-app-film-section.is-scrubbing figcaption {
  position: absolute;
  right: var(--gut);
  bottom: max(3rem, env(safe-area-inset-bottom));
  margin: 0;
  padding: .25rem .5rem;
  color: #fff;
  background: #010d28ab;
}
@media (max-aspect-ratio: 1/1) {
  .pg-app-film-section.is-scrubbing { height: 420svh; }
  .pg-app-film-section.is-scrubbing video { object-fit: contain; }
}
