/* PragaWeb – foglio di stile del sito
   Colori, font e raggio arrivano da variabili CSS impostate dal pannello (Aspetto). */

:root {
  --c-primary: #640190;
  --c-secondary: #4200BC;
  --c-ink: #1A0B2E;
  --c-paper: #FBFAFE;
  --c-surface: #F1EAFB;
  --c-deep: #2B0748;
  --c-muted: color-mix(in oklab, var(--c-ink) 70%, var(--c-paper));
  --c-line: color-mix(in oklab, var(--c-ink) 14%, transparent);
  --c-white: #fff;
  --c-err: #B3261E;
  --c-ok: #106B3A;
  --f-display: 'Unbounded', ui-rounded, system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --w-display: 500;
  --fs-base: 1.0625rem;
  --r: 22px;
  --hdr-h: 76px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sec: clamp(4.5rem, 3rem + 6vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--c-primary); color: #fff; }

:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 100; background: var(--c-ink); color: #fff; padding: .75rem 1.1rem; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }

.ico { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 1.15em; height: 1.15em; stroke-width: 2.2; }

/* ---------- Tipografia ---------- */
.h2, .phead__title, .hero__title, .statement__text, .ftr__title, .nf__code {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 { font-size: clamp(1.75rem, 1.05rem + 2.3vw, 3.1rem); line-height: 1.06; }
.h2 a { text-decoration: none; }
.h2 a:hover { color: var(--c-primary); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.55rem;
  border: 1.5px solid var(--c-primary); border-radius: 999px;
  background: var(--c-primary); color: #fff;
  font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover { background: var(--c-secondary); border-color: var(--c-secondary); }
.btn:hover .ico { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: color-mix(in oklab, var(--c-ink) 35%, transparent); }
.btn--ghost:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn--light { background: #fff; color: var(--c-deep); border-color: #fff; }
.btn--light:hover { background: var(--c-surface); border-color: var(--c-surface); color: var(--c-deep); }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .95rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--c-primary); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--c-paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--c-line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; gap: 1.5rem; height: var(--hdr-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand__mark, .brand__img { width: 40px; height: 40px; }
.brand__mark .lg-a { stroke: var(--c-primary); }
.brand__mark .lg-b { stroke: var(--c-secondary); }
.brand--light { color: #fff; }
.brand--light .brand__mark .lg-a { stroke: #fff; }
.brand--light .brand__mark .lg-b { stroke: color-mix(in oklab, var(--c-surface) 70%, var(--c-secondary)); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border: 0; border-radius: 999px; background: none;
  font-weight: 500; text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--c-surface); }
.nav__link[aria-current="page"] { color: var(--c-primary); }
.nav__chev { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__aside { display: flex; align-items: center; gap: 1rem; }

.langs { display: flex; gap: .15rem; font-size: .85rem; font-weight: 600; }
.langs a { padding: .4rem .55rem; border-radius: 8px; text-decoration: none; color: var(--c-muted); }
.langs a[aria-current] { color: var(--c-ink); background: var(--c-surface); }
.langs a:hover { color: var(--c-primary); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-paper); border-bottom: 1px solid var(--c-line);
  box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--c-deep) 35%, transparent);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.mega.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega__in { max-width: 1320px; margin-inline: auto; padding: 2.25rem var(--gut) 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 2.5rem; }
.mega__head { display: flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; color: var(--c-primary); margin-bottom: .8rem; }
.mega__head:hover { text-decoration: underline; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mega__col li a { display: block; padding: .3rem 0; text-decoration: none; color: var(--c-ink); }
.mega__col li a:hover { color: var(--c-primary); text-decoration: underline; }
.mega__all { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--c-primary); text-decoration: none; padding-top: 1.25rem; border-top: 1px solid var(--c-line); width: 100%; }
.mega__all:hover { text-decoration: underline; }

.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--c-surface); cursor: pointer; position: relative; }
.burger__lines, .burger__lines::before, .burger__lines::after { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .3s var(--ease), opacity .2s; content: ""; }
.burger__lines { top: 23px; }
.burger__lines::before { top: -6px; left: 0; right: 0; }
.burger__lines::after { top: 6px; left: 0; right: 0; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 1.5rem var(--gut) 2.5rem; overflow-y: auto;
    background: var(--c-paper);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .nav-open .hdr { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-paper); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--c-line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1.05rem 0; border-radius: 0; font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.5rem; letter-spacing: -0.02em; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: none; color: var(--c-primary); }
  .mega { position: static; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; transform: none; transition: none; background: none; }
  .mega.is-open { display: block; }
  .mega__in { padding: 0 0 1.25rem; grid-template-columns: 1fr; gap: 1.25rem; }
  .nav__aside { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nav__aside .btn { width: 100%; justify-content: center; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { padding-top: 1.25rem; font-size: .9rem; color: var(--c-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/" / ""; margin-right: .35rem; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.crumbs [aria-current] { color: var(--c-ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .6fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(calc(100svh - var(--hdr-h)), 900px);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero__title { font-size: clamp(2.4rem, 1rem + 5vw, 6rem); line-height: .98; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 34ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--c-muted); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero__mark { justify-self: end; width: 100%; max-width: 520px; }
.mark { width: 100%; height: auto; overflow: visible; }
.mark circle, .mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mark__ring, .mark__stem { stroke: var(--c-primary); stroke-width: 36; }
.mark__zig { stroke: var(--c-primary); stroke-width: 42; }
.mark__lead { stroke: var(--c-secondary); stroke-width: 42; }

@media (prefers-reduced-motion: no-preference) {
  .anim .hero__title .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
  .anim .hero__lead, .anim .hero__ctas { opacity: 0; animation: fade .9s var(--ease) .65s forwards; }
  .anim .mark__ring { stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .1s forwards; }
  .anim .mark__stem { stroke-dashoffset: 1; animation: draw .7s var(--ease) 1.25s forwards; }
  .anim .mark__lead { stroke-dashoffset: 1; animation: draw .45s var(--ease) .55s forwards; }
  .anim .mark__zig { stroke-dashoffset: 1; animation: draw 1.05s cubic-bezier(.6, .1, .3, 1) .85s forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero__mark { order: -1; justify-self: start; max-width: 132px; }
}

/* ---------- Sezioni home ---------- */
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 54rem; }
.sec-head__intro { font-size: 1.15rem; color: var(--c-muted); max-width: 60ch; }
.sec-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; }

.statement { padding-block: var(--sec) calc(var(--sec) * .7); }
.statement__text { max-width: 24ch; font-size: clamp(1.7rem, 1rem + 2.9vw, 3.6rem); line-height: 1.12; font-weight: calc(var(--w-display) - 100); }

.svc-index { padding-block: calc(var(--sec) * .5) var(--sec); }
.rows { border-top: 1px solid var(--c-ink); }
.row { border-bottom: 1px solid var(--c-line); padding-bottom: 1.5rem; }
.row__link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.4rem) 0 1rem; text-decoration: none;
}
.row__link::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -.5); z-index: -1; border-radius: var(--r); background: var(--c-surface); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.row__link:hover::before, .row__link:focus-visible::before { transform: scaleX(1); }
.row__icon { display: grid; place-items: center; width: clamp(3rem, 2.4rem + 2vw, 4.25rem); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--c-primary); color: var(--c-primary); }
.row__title { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.row__sum { display: block; margin-top: .55rem; max-width: 62ch; color: var(--c-muted); }
.row__go { display: grid; place-items: center; width: 3.25rem; aspect-ratio: 1; border-radius: 50%; background: var(--c-ink); color: #fff; transition: background-color .3s, transform .4s var(--ease); }
.row__link:hover .row__go { background: var(--c-primary); transform: rotate(-45deg); }
.row__tags { display: flex; flex-wrap: wrap; gap: .5rem; padding-left: calc(clamp(3rem, 2.4rem + 2vw, 4.25rem) + clamp(1rem, 3vw, 2.5rem)); }
.row__tags a { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--c-line); border-radius: 999px; font-size: .9rem; text-decoration: none; transition: border-color .2s, color .2s; }
.row__tags a:hover { border-color: var(--c-primary); color: var(--c-primary); }
@media (max-width: 640px) {
  .row__link { grid-template-columns: minmax(0, 1fr) auto; }
  .row__icon { display: none; }
  .row__tags { padding-left: 0; }
}

.problems { background: var(--c-surface); padding-block: var(--sec); border-radius: clamp(24px, 4vw, 56px); margin-inline: clamp(8px, 1.2vw, 20px); }
.problems__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.problem { padding-top: 1.5rem; border-top: 1px solid color-mix(in oklab, var(--c-primary) 40%, transparent); }
.problem__title { font-size: 1.3rem; line-height: 1.25; margin-bottom: .75rem; font-weight: 600; }
.problem p { color: var(--c-muted); }

.method { padding-block: var(--sec); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); counter-reset: s; }
.step { position: relative; }
.step__n { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c-primary); color: var(--c-primary); font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.35rem; background: var(--c-paper); position: relative; z-index: 1; }
.step::before { content: ""; position: absolute; top: 2rem; left: 4rem; right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)); height: 2px; background: color-mix(in oklab, var(--c-primary) 30%, transparent); }
.step:last-child::before { display: none; }
.step__title { margin: 1.5rem 0 .6rem; font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
.step p { color: var(--c-muted); }
@media (max-width: 760px) { .step::before { display: none; } }

.stats { padding-block: 0 var(--sec); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.stats__grid div { display: flex; flex-direction: column-reverse; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-ink); }
.stats__grid dd { margin: 0; font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--c-primary); }
.stats__grid dt { color: var(--c-muted); }

.news-strip { padding-block: calc(var(--sec) * .6) var(--sec); }

/* ---------- Card news ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2.75rem 2rem; }
.card { display: flex; flex-direction: column; gap: 1.25rem; }
.card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--c-surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__ph { width: 100%; height: 100%; transition: transform .7s var(--ease); }
.card:hover .card__ph { transform: scale(1.04); }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; color: var(--c-muted); }
.card__cat { color: var(--c-primary); font-weight: 600; }
.card__title { font-size: 1.3rem; line-height: 1.25; font-weight: 600; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--c-primary); }
.card__text { margin-top: .6rem; color: var(--c-muted); }

/* ---------- FAQ ---------- */
.faq { padding-block: calc(var(--sec) * .5) var(--sec); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__list { border-top: 1px solid var(--c-ink); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.faq__icon { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--c-line); flex: none; transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.faq__item summary:hover .faq__q { color: var(--c-primary); }
.faq__a { padding: 0 3.5rem 1.6rem 0; color: var(--c-muted); max-width: 68ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Testate di pagina ---------- */
.phead { padding-block: clamp(2.5rem, 5vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); }
.phead__over { margin-bottom: 1.25rem; }
.phead__over a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--c-primary); text-decoration: none; }
.phead__over a:hover { text-decoration: underline; }
.phead__title { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; }
.phead__title--post { font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); max-width: 22ch; }
.phead__lead { margin-top: 1.5rem; max-width: 58ch; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--c-muted); text-wrap: pretty; }
.phead .btn { margin-top: 2rem; }

.tldr { margin-top: 2rem; max-width: 68ch; padding: 1.35rem 1.6rem; border-radius: var(--r); background: var(--c-surface); border-left: 4px solid var(--c-primary); }
.tldr__h { font-size: 1rem; font-weight: 700; color: var(--c-primary); margin-bottom: .35rem; }
.tldr p { font-size: 1.1rem; }

.svc__media, .post__media { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc__media img, .post__media img { width: 100%; border-radius: var(--r); max-height: 640px; object-fit: cover; }

/* ---------- Contenuti editoriali ---------- */
.prose-layout { padding-bottom: calc(var(--sec) * .6); }
.prose-layout.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr-h) + 1.5rem); font-size: .95rem; }
.toc__h { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--c-line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--c-muted); }
.toc a:hover, .toc a.is-active { color: var(--c-primary); border-left-color: var(--c-primary); }
@media (max-width: 960px) { .prose-layout.has-toc { grid-template-columns: 1fr; } .toc { position: static; } }

.prose { max-width: 70ch; font-size: 1.075em; line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.05rem); line-height: 1.15; letter-spacing: -0.025em; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 650; margin-top: 1.8em; }
.prose h4 { font-size: 1.1rem; font-weight: 700; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--c-primary); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-primary); }
.prose blockquote { padding: .25em 0 .25em 1.25em; border-left: 3px solid var(--c-primary); font-size: 1.15em; color: var(--c-ink); }
.prose img { border-radius: calc(var(--r) * .7); }
.prose figure figcaption { margin-top: .6em; font-size: .9em; color: var(--c-muted); }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .7em .9em; border-bottom: 1px solid var(--c-line); }
.prose th { font-weight: 700; }
.prose code { font-size: .9em; background: var(--c-surface); padding: .1em .35em; border-radius: 6px; }
.prose pre { background: var(--c-deep); color: #fff; padding: 1.25em; border-radius: calc(var(--r) * .6); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: calc(var(--r) * .7); }
.prose--sm { font-size: 1em; margin-top: 2rem; }

/* ---------- Servizi ---------- */
.svc-all { padding-bottom: var(--sec); }
.svc-macro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 2rem clamp(2rem, 5vw, 6rem); padding-block: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--c-ink); }
.svc-macro__head { align-self: start; position: sticky; top: calc(var(--hdr-h) + 1.5rem); display: grid; gap: 1rem; }
.svc-macro__head p { color: var(--c-muted); max-width: 44ch; }
.svc-macro__icon { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; border-radius: 50%; background: var(--c-primary); color: #fff; }
.svc-macro__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2.5rem 2rem; }
.svc-cat__title { font-size: 1.25rem; line-height: 1.25; font-weight: 650; margin-bottom: .5rem; }
.svc-cat__title a { text-decoration: none; }
.svc-cat__title a:hover { color: var(--c-primary); text-decoration: underline; }
.svc-cat > p { color: var(--c-muted); }
.svc-cat__subs { margin-top: .9rem; display: grid; gap: .1rem; }
.svc-cat__subs a { display: inline-flex; padding: .2rem 0; color: var(--c-primary); text-decoration: none; font-weight: 500; }
.svc-cat__subs a:hover { text-decoration: underline; }
@media (max-width: 860px) { .svc-macro { grid-template-columns: 1fr; } .svc-macro__head { position: static; } }

.sub-grid { padding-block: calc(var(--sec) * .4) calc(var(--sec) * .6); }
.sub-grid .h2 { margin-bottom: 2rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.tile { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; transition: border-color .25s, background-color .25s; }
.tile:hover { border-color: var(--c-primary); background: var(--c-surface); }
.tile__title { font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.02em; }
.tile__title a { text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile__title a:focus-visible { outline: none; }
.tile:has(a:focus-visible) { outline: 3px solid var(--c-secondary); outline-offset: 3px; }
.tile p { color: var(--c-muted); flex: 1; }
.tile__foot { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--c-primary); font-weight: 600; }

.siblings { padding-bottom: var(--sec); }
.siblings__h { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.siblings ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.siblings a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; }
.siblings a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- News ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filters a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; font-weight: 500; }
.filters a:hover { border-color: var(--c-primary); }
.filters a[aria-current] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.empty { padding: 3rem 0 var(--sec); color: var(--c-muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding-block: 3rem var(--sec); }
.pager a { font-weight: 600; color: var(--c-primary); }
.post__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.post__meta a { color: var(--c-primary); font-weight: 600; text-decoration: none; }
.post__author { margin-top: 1.25rem; font-weight: 600; }
.post__updated { font-size: .9em; color: var(--c-muted); }

/* ---------- Contatti ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(2.5rem, 6vw, 6rem); padding-bottom: var(--sec); align-items: start; }
.contact__info { display: grid; gap: 1.75rem; }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; }
.cinfo > .ico { color: var(--c-primary); margin-top: .15rem; }
.cinfo__h { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.cinfo a { font-size: 1.15rem; text-decoration-color: color-mix(in oklab, var(--c-primary) 50%, transparent); }
.cinfo address { font-style: normal; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.5rem; }
.form > .btn { justify-self: start; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; }
.field { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; }
.req { font-weight: 400; color: var(--c-muted); font-size: .9em; }
.field__hint { font-size: .92rem; color: var(--c-muted); margin-top: -.2rem; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea {
  width: 100%; min-height: 54px; padding: .85rem 1rem;
  border: 1.5px solid color-mix(in oklab, var(--c-ink) 22%, transparent); border-radius: 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-primary) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--c-err) !important; }
.field__err { color: var(--c-err); font-size: .92rem; font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .3rem .8rem; }
.field--check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--c-primary); }
.field--check label { font-weight: 400; }
.field--check label a { color: var(--c-primary); }
.field--check .field__err { grid-column: 2; }
.chips legend { margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem 1.05rem; border: 1.5px solid color-mix(in oklab, var(--c-ink) 22%, transparent); border-radius: 999px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--c-secondary); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1.25rem 1.5rem; border-radius: var(--r); margin-bottom: 1.5rem; }
.notice--ok { background: color-mix(in oklab, var(--c-ok) 10%, #fff); border: 1.5px solid var(--c-ok); }
.notice--err { background: color-mix(in oklab, var(--c-err) 8%, #fff); border: 1.5px solid var(--c-err); color: var(--c-err); font-weight: 600; }
.notice__h { font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.5rem; margin-bottom: .4rem; color: var(--c-ok); }

/* ---------- 404 ---------- */
.nf { padding-bottom: var(--sec); }
.nf__code { font-size: clamp(5rem, 3rem + 10vw, 12rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--c-primary); margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.ftr { background: var(--c-deep); color: color-mix(in oklab, #fff 82%, var(--c-deep)); margin-top: calc(var(--sec) * .3); border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; }
.ftr a:not(.btn) { color: #fff; }
.ftr__cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: end; padding-block: var(--sec) calc(var(--sec) * .75); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ftr__title { color: #fff; font-size: clamp(2.1rem, 1.1rem + 3.8vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; }
.ftr__cta-side { display: grid; gap: 1.5rem; justify-items: start; }
.ftr__cta-side p { font-size: 1.15rem; max-width: 40ch; }
.ftr__mail { font-family: var(--f-display); font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); text-decoration: none; border-bottom: 1.5px solid rgba(255, 255, 255, .4); word-break: break-all; }
.ftr__mail:hover { border-bottom-color: #fff; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 4rem; }
.ftr__brand p { margin-top: 1.25rem; max-width: 36ch; }
.ftr__h { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.ftr__list { display: grid; gap: .55rem; }
.ftr__list a, .ftr__social a, .ftr__base a { text-decoration: none; }
.ftr__list a:hover, .ftr__social a:hover, .ftr__base a:hover { text-decoration: underline; }
.ftr__social { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.25rem; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem 2.25rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; }
.ftr__base ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ftr :focus-visible { outline-color: #fff; }
@media (max-width: 900px) { .ftr__cta { grid-template-columns: 1fr; } .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

.preview-bar { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 90; padding: .55rem 1rem; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: .85rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.preview-bar a { color: #fff; font-weight: 700; margin-left: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  .hdr, .ftr, .crumbs, .toc, .hero__mark, .btn { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   Immagini in homepage e servizi
   ========================================================= */
.hero__mark { position: relative; }
.hero__photo { position: absolute; left: 13.5%; top: 6.2%; width: 75.5%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--c-surface); }
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; }
.hero--photo .mark__ring { stroke-width: 30; }
@media (max-width: 860px) { .hero--photo .hero__mark { max-width: 220px; } }

.showcase { margin: 0 clamp(8px, 1.2vw, 20px) var(--sec); }
.showcase__frame { position: relative; overflow: hidden; border-radius: clamp(24px, 4vw, 56px); aspect-ratio: 21 / 9; background: var(--c-surface); max-width: 100%; }
.showcase__frame picture, .showcase__frame img { width: 100%; height: 100%; }
.showcase__frame img { object-fit: cover; transform: translateY(var(--py, 0)) scale(1.12); will-change: transform; }
.showcase__cap { margin-top: 1rem; color: var(--c-muted); font-size: .95rem; }
@media (max-width: 700px) { .showcase__frame { aspect-ratio: 4 / 3; } }

.row__thumb { display: none; }
@media (hover: none), (pointer: coarse) {
  .row__thumb { display: block; margin: 0 0 1rem; border-radius: calc(var(--r) * .8); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(240px, 22vw, 360px); aspect-ratio: 3 / 2;
  border-radius: calc(var(--r) * .9); overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate3d(var(--hx, 0), var(--hy, 0), 0) scale(.85) rotate(-3deg);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
  box-shadow: 0 30px 60px -25px color-mix(in oklab, var(--c-deep) 55%, transparent);
}
.hover-preview.is-on { opacity: 1; transform: translate3d(var(--hx, 0), var(--hy, 0), 0) scale(1) rotate(0); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

.problems__head { display: grid; gap: 2rem clamp(2rem, 5vw, 5rem); }
.problems--photo .problems__head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.problems--photo .problems__head .sec-head { margin-bottom: 0; }
.problems__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.problems__img picture, .problems__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .problems--photo .problems__head { grid-template-columns: 1fr; } }

.svc-macro__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; margin-top: .5rem; max-width: 100%; }
.svc-macro__img img, .svc-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-cat__img { display: block; border-radius: calc(var(--r) * .8); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 1rem; max-width: 100%; }
.svc-cat:hover .svc-cat__img img { transform: scale(1.05); }
.tile--img { padding-top: 1rem; }
.tile__img { margin: 0 -.75rem .25rem; border-radius: calc(var(--r) * .75); overflow: hidden; aspect-ratio: 16 / 10; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); }
.svc__media { overflow: hidden; }
.svc__media-in { border-radius: var(--r); overflow: hidden; }
.svc__media-in img { transform: translateY(var(--py, 0)) scale(1.08); }
.cards__cell { display: flex; }
.cards__cell > .card { flex: 1; }

/* =========================================================
   Nastro scorrevole
   ========================================================= */
.ticker { overflow: hidden; border-block: 1px solid var(--c-line); padding-block: 1.1rem; margin-top: clamp(1rem, 3vw, 2rem); }
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; flex: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.1rem, .9rem + 1vw, 1.7rem); letter-spacing: -0.02em; white-space: nowrap; }
.ticker__item::after { content: ""; width: .55em; height: .55em; border-radius: 50%; border: 2px solid var(--c-primary); }
.ticker__item:nth-child(3n+2) { color: var(--c-primary); }
.fx .ticker__track { animation: ticker 50s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   Animazioni allo scroll (attive solo con JS e movimento consentito)
   ========================================================= */
.motion [data-reveal].rv-wait { opacity: 0; transform: translateY(28px); }
.motion [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion [data-reveal="clip"].rv-wait { opacity: 1; transform: none; clip-path: inset(18% 8% 18% 8% round var(--r)); }
.motion [data-reveal="clip"] { clip-path: inset(0 0 0 0 round 0); }
.motion [data-reveal="clip"].rv-wait img { transform: scale(1.15); }
.motion [data-reveal="clip"] img { transition: transform 1.4s var(--ease); }
.motion [data-reveal="words"].rv-wait { opacity: 1; transform: none; }
.motion [data-reveal="words"] .w { display: inline-block; transition: color .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--wi) * 32ms); }
.motion [data-reveal="words"].rv-wait .w { color: color-mix(in oklab, var(--c-ink) 55%, var(--c-paper)); transform: translateY(.18em); }

.motion .step::before { transform-origin: left; transition: transform 1s var(--ease) .3s; }
.motion .step.rv-wait::before { transform: scaleX(0); }

.mark { transition: transform .6s var(--ease); }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--c-secondary); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { background: var(--c-primary); }
.btn--ghost::before { background: var(--c-ink); }
.btn--ghost:hover { background: transparent; }
.btn--light::before { background: var(--c-surface); }
.btn--light:hover { background: #fff; }

.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; background: var(--c-primary); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none !important; }
  .showcase__frame img, .svc__media-in img { transform: none !important; }
  .scroll-progress { display: none; }
}

/* =========================================================
   Prodotti
   ========================================================= */
.stage { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .01em; background: var(--c-surface); color: var(--c-primary); }
.stage::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.stage--beta { background: #E5F0FF; color: #0B4A9E; }
.stage--live { background: #DCF2E4; color: var(--c-ok); }
@media (prefers-reduced-motion: no-preference) { .stage--dev::before { animation: pulse 2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }
.prod__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.prod__cat { font-size: .9rem; font-weight: 600; color: var(--c-muted); }

.prods { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: calc(var(--sec) * .6); }
.prod { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--c-line); }
.prod--flip .prod__vis { order: -1; }
.prod__text { display: grid; gap: 1rem; justify-items: start; }
.prod__name { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; }
.prod__name a { text-decoration: none; }
.prod__name a:hover { color: var(--c-primary); }
.prod__tag { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 600; line-height: 1.35; max-width: 34ch; }
.prod__sum { color: var(--c-muted); max-width: 58ch; }
.prod__aud { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .25rem 0 0; }
.prod__aud li { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--c-line); font-size: .88rem; }
.prod__aud--lg li { font-size: 1rem; padding: .55rem 1.1rem; background: #fff; }
.prod__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
@media (max-width: 900px) { .prod { grid-template-columns: 1fr; } .prod--flip .prod__vis { order: 0; } }

.prods-note { display: grid; gap: 1rem; justify-items: start; padding-block: calc(var(--sec) * .4) var(--sec); max-width: 1320px; }
.prods-note p { max-width: 60ch; color: var(--c-muted); font-size: 1.1rem; }

/* Illustrazioni dei prodotti (decorative) */
.pvis { position: relative; border-radius: calc(var(--r) * .9); background: var(--c-deep); color: #fff; padding: 1rem 1.1rem 1.4rem; aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 40px 60px -40px color-mix(in oklab, var(--c-deep) 70%, transparent); }
.pvis::after { content: ""; position: absolute; inset: auto -20% -45% 30%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--c-secondary) 70%, transparent), transparent); pointer-events: none; }
.pvis__bar { display: flex; align-items: center; gap: .35rem; margin-bottom: 1rem; font-size: .8rem; }
.pvis__bar span { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pvis__bar b { margin-left: .5rem; font-family: var(--f-display); font-weight: var(--w-display); letter-spacing: -.01em; opacity: .9; }
.pvis__gantt { position: relative; display: grid; gap: .55rem; }
.pvis__row { display: grid; grid-template-columns: 18% 1fr; align-items: center; gap: .6rem; height: 1.6rem; }
.pvis__row i { height: .45rem; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.pvis__task { position: relative; display: block; height: 1.15rem; border-radius: 6px; margin-left: var(--x); width: var(--w); background: var(--c-primary); }
.pvis__task--a { background: color-mix(in oklab, var(--c-primary) 75%, #fff); }
.pvis__task--b { background: color-mix(in oklab, var(--c-secondary) 70%, #fff); }
.pvis__task--c { background: #fff; }
.pvis__today { position: absolute; top: -.4rem; bottom: -.4rem; left: 58%; width: 2px; background: #FFD25E; border-radius: 2px; }
.pvis__audit { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: center; height: calc(100% - 2.5rem); }
.pvis__ring { width: 100%; max-width: 170px; }
.pvis__ring circle { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 11; }
.pvis__ring .pvis__ring-val { stroke: #7BE0A5; stroke-linecap: round; stroke-dasharray: 82 100; transform: rotate(-90deg); transform-origin: center; }
.pvis__ring text { fill: #fff; font: 600 26px var(--f-display); }
.pvis__checks { display: grid; gap: .6rem; }
.pvis__checks li { display: grid; grid-template-columns: 1rem 1fr; gap: .6rem; align-items: center; }
.pvis__checks i { width: 1rem; height: 1rem; border-radius: 50%; background: #7BE0A5; }
.pvis__checks .warn i { background: #FFD25E; }
.pvis__checks .err i { background: #FF8A80; }
.pvis__checks span { height: .5rem; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.pvis__checks li:nth-child(2n) span { width: 70%; }
.pvis__vault { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: center; height: calc(100% - 2.5rem); }
.pvis__shield { width: 100%; max-width: 150px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.pvis__shield .pvis__lock { stroke: #7BE0A5; }
.pvis__files { display: grid; gap: .55rem; }
.pvis__files li { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 10px; background: rgba(255, 255, 255, calc(.16 - var(--i) * .03)); }
.pvis__files i { height: 1.4rem; border-radius: 4px; background: color-mix(in oklab, var(--c-primary) 60%, #fff); }
.pvis__files span { height: .45rem; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.pvis__files b { font-size: .75rem; opacity: .75; }
.pvis__generic { display: grid; place-items: center; height: 70%; }
.pvis__generic .ico { width: 5rem; height: 5rem; }
.motion .pvis__task { transition: width 1s var(--ease); }
.motion [data-reveal].rv-wait .pvis__task { width: 0; }

/* Scheda prodotto */
.pdp__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 5vw, 5rem); }
.pdp__intro { display: grid; gap: 1rem; justify-items: start; }
.pdp__intro .phead__over { margin-bottom: 0; }
.pdp__intro .phead__lead { margin-top: 0; }
.pdp__intro .tldr { margin-top: .5rem; }
.pdp__intro .hero__ctas { margin-top: 1rem; }
.pdp__img { border-radius: var(--r); overflow: hidden; }
@media (max-width: 900px) { .pdp__head { grid-template-columns: 1fr; } }
.feats { padding-block: calc(var(--sec) * .4) calc(var(--sec) * .6); }
.feats .h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.feats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.feat { padding: 1.75rem; border-radius: var(--r); background: #fff; border: 1px solid var(--c-line); display: grid; gap: .6rem; align-content: start; }
.feat__n { font-family: var(--f-display); font-weight: var(--w-display); color: var(--c-primary); font-size: 1.05rem; }
.feat__title { font-size: 1.2rem; line-height: 1.3; font-weight: 650; }
.feat p { color: var(--c-muted); }
.aud { padding-bottom: calc(var(--sec) * .6); display: grid; gap: 1.25rem; }
.aud__h { font-size: 1.25rem; font-weight: 700; }
.pdp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-block: 0 calc(var(--sec) * .5); padding: clamp(2rem, 4vw, 3.25rem); border-radius: clamp(24px, 3vw, 40px); background: var(--c-primary); color: #fff; max-width: calc(1320px - 2 * var(--gut)); width: calc(100% - 2 * var(--gut)); }
.pdp-cta__h { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: .6rem; max-width: 24ch; }
.pdp-cta p { max-width: 52ch; color: color-mix(in oklab, #fff 88%, var(--c-primary)); }
.pdp-cta :focus-visible { outline-color: #fff; }

/* Prodotti in homepage */
.home-prods { padding-block: calc(var(--sec) * .2) var(--sec); }
.home-prods .sec-head--row .sec-head { margin-bottom: 0; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2.5rem 1.5rem; }
.hp-card { position: relative; display: grid; gap: .75rem; align-content: start; }
.hp-card__vis { margin-bottom: .5rem; transition: transform .5s var(--ease); }
.hp-card:hover .hp-card__vis { transform: translateY(-6px); }
.hp-card__name { font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.025em; }
.hp-card__name a { text-decoration: none; }
.hp-card__name a::after { content: ""; position: absolute; inset: 0; }
.hp-card:has(a:focus-visible) { outline: 3px solid var(--c-secondary); outline-offset: 6px; border-radius: var(--r); }
.hp-card__name a:focus-visible { outline: none; }
.hp-card > p:last-child { color: var(--c-muted); }

.ftr__h--gap { margin-top: 2rem; }
.ftr__addr { font-style: normal; }

/* =========================================================
   Assistente virtuale
   ========================================================= */
.chat { position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 70; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: .75rem; }
.chat__fab { display: inline-flex; align-items: center; gap: .55rem; min-height: 56px; padding: .5rem 1.15rem .5rem .55rem; border: 0; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 16px 34px -14px color-mix(in oklab, var(--c-deep) 80%, transparent); transition: background-color .25s, transform .3s var(--ease); }
.chat__fab:hover { background: var(--c-secondary); transform: translateY(-2px); }
.chat__fab-ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat.is-open .chat__fab-label { display: none; }
.chat.is-open .chat__fab { padding-right: .55rem; }
.chat__panel { width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100svh - 110px)); display: flex; flex-direction: column; background: #fff; color: var(--c-ink); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px -20px color-mix(in oklab, var(--c-deep) 60%, transparent), 0 0 0 1px var(--c-line); }
.chat__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .chat__panel:not([hidden]) { animation: chatIn .35s var(--ease); } }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chat__head { display: flex; align-items: center; gap: .7rem; padding: .85rem .85rem .85rem 1rem; background: var(--c-deep); color: #fff; }
.chat__avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.chat__avatar svg { width: 28px; height: 28px; stroke: var(--c-primary); }
.chat__who { flex: 1; min-width: 0; }
.chat__title { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.chat__status { font-size: .8rem; color: color-mix(in oklab, #fff 80%, var(--c-deep)); }
.chat__close { border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; cursor: pointer; min-height: 36px; }
.chat__reset { border: 0; background: none; padding: 0; margin-left: .35rem; font-size: .75rem; color: var(--c-primary); text-decoration: underline; cursor: pointer; }
.chat__close { display: grid; place-items: center; width: 36px; }
.chat__close:hover { background: rgba(255, 255, 255, .24); }
.chat__head :focus-visible { outline-color: #fff; }
.chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--c-paper); overscroll-behavior: contain; }
.msg { display: grid; gap: .45rem; max-width: 88%; }
.msg--bot { align-self: flex-start; }
.msg--user { align-self: flex-end; justify-items: end; }
.msg__bubble { padding: .7rem .95rem; border-radius: 18px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg--bot .msg__bubble { background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 6px; }
.msg--user .msg__bubble { background: var(--c-primary); color: #fff; border-bottom-right-radius: 6px; }
.msg__links { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.msg__links a { display: inline-block; padding: .35rem .7rem; border-radius: 999px; background: var(--c-surface); color: var(--c-primary); font-size: .85rem; font-weight: 600; text-decoration: none; }
.msg__links a:hover { text-decoration: underline; }
.chat__typing { padding: 0 1rem .5rem; background: var(--c-paper); }
.chat__typing[hidden] { display: none; }
.chat__typing > span { display: inline-flex; gap: 4px; padding: .7rem .9rem; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); }
@media (prefers-reduced-motion: no-preference) { .chat__typing i { animation: blink 1.2s infinite; } .chat__typing i:nth-child(2) { animation-delay: .2s; } .chat__typing i:nth-child(3) { animation-delay: .4s; } }
@keyframes blink { 50% { opacity: .25; } }
.chat__quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .25rem 1rem .6rem; background: var(--c-paper); }
.chat__quick:empty { display: none; }
.chat__chip { border: 1.5px solid color-mix(in oklab, var(--c-primary) 45%, transparent); background: #fff; color: var(--c-primary); border-radius: 999px; padding: .4rem .8rem; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.chat__chip:hover { background: var(--c-primary); color: #fff; }
.chat__form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--c-line); background: #fff; }
.chat__form[hidden] { display: none; }
.chat__form input { flex: 1; min-width: 0; min-height: 46px; padding: .6rem .95rem; border: 1.5px solid color-mix(in oklab, var(--c-ink) 25%, transparent); border-radius: 999px; background: #fff; }
.chat__form input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-primary) 20%, transparent); }
.chat__send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--c-primary); color: #fff; cursor: pointer; }
.chat__send:hover { background: var(--c-secondary); }
.chat__note { padding: .1rem 1rem .7rem; font-size: .75rem; color: var(--c-muted); background: #fff; }
.chat__note a { color: var(--c-primary); }
.chat__lead { padding: .75rem 1rem 1rem; background: #fff; border-top: 1px solid var(--c-line); max-height: 62%; overflow-y: auto; }
.chat__lead[hidden] { display: none; }
.lead { display: grid; gap: .7rem; }
.lead__h { font-size: 1rem; font-weight: 700; }
.lead__h:focus { outline: none; }
.lead__f { display: grid; gap: .25rem; }
.lead__f label { font-size: .85rem; font-weight: 600; }
.lead__f input, .lead__f textarea { width: 100%; min-height: 42px; padding: .5rem .75rem; border: 1.5px solid color-mix(in oklab, var(--c-ink) 25%, transparent); border-radius: 12px; background: #fff; font-size: .95rem; }
.lead__f textarea { resize: vertical; min-height: 64px; }
.lead__f input:focus, .lead__f textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-primary) 20%, transparent); }
.lead [aria-invalid="true"] { border-color: var(--c-err); }
.lead__err, .lead__msg { color: var(--c-err); font-size: .83rem; font-weight: 600; }
.lead__err[hidden], .lead__msg[hidden] { display: none; }
.lead__c { display: grid; grid-template-columns: auto 1fr; gap: .2rem .55rem; align-items: start; font-size: .83rem; }
.lead__c input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--c-primary); }
.lead__c a { color: var(--c-primary); }
.lead__c .lead__err { grid-column: 2; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__act { display: flex; flex-wrap: wrap; gap: .5rem; }
.lead__send { min-height: 44px; padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 600; cursor: pointer; }
.lead__send:hover { background: var(--c-secondary); }
.lead__send:disabled { opacity: .7; cursor: progress; }
.lead__cancel { min-height: 44px; padding: .55rem 1rem; border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; }
@media (max-width: 520px) {
  .chat { right: 10px; bottom: 10px; left: auto; }
  .chat.is-open { left: 10px; top: 10px; }
  .chat.is-open .chat__panel { width: 100%; height: auto; flex: 1; }
  .chat__fab-label { display: none; }
  .chat__fab { padding-right: .55rem; }
}
.preview-bar { left: 1rem; transform: none; }
@media print { .chat { display: none !important; } }

/* =========================================================
   Prodotti per categoria, in caroselli
   ========================================================= */
.pfam-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.pfam-nav[hidden] { display: none; }
.pfam-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pfam-nav button { font: inherit; cursor: pointer; color: var(--c-ink); }
.pfam-nav a, .pfam-nav button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.1rem; border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.pfam-nav a:hover, .pfam-nav button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pfam-nav button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pfam-nav button[aria-pressed="true"] .pfam-nav__n { background: rgba(255, 255, 255, .2); color: #fff; }
.pfam-nav__n { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--c-surface); color: var(--c-primary); font-size: .8rem; }
.pfam { padding-block: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--c-line); scroll-margin-top: calc(var(--hdr-h) + 1rem); }
.pfam:first-child { border-top: 0; padding-top: 0; }
.pfam__h { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.25rem; padding-right: 7rem; }

.car { position: relative; }
.car__ctrl { position: absolute; right: 0; top: calc(-1.25rem - 2.6rem); display: flex; gap: .5rem; }
.car__ctrl[hidden] { display: none; }
.home-prods .car__ctrl { position: static; justify-content: flex-end; margin: -.5rem 0 1rem; }
.car__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--c-ink) 30%, transparent); background: #fff; color: var(--c-ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.car__btn:hover:not(:disabled) { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.car__btn:disabled { opacity: .35; cursor: default; }
.car__btn[data-car-prev] .ico { transform: rotate(180deg); }
.car__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 3 * 1.25rem) / 4)); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; list-style: none; margin: 0; padding: .35rem .2rem 1rem; scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--c-primary) 40%, transparent) transparent; }
.car__item { scroll-snap-align: start; display: flex; }
@media (max-width: 1100px) { .car__track { grid-auto-columns: minmax(240px, calc((100% - 2 * 1.25rem) / 3)); } }
@media (max-width: 900px) { .car__track { grid-auto-columns: minmax(230px, 46%); } }
@media (max-width: 560px) { .car__track { grid-auto-columns: 82%; } .pfam__h { padding-right: 0; } .car__ctrl { position: static; justify-content: flex-end; margin-bottom: .75rem; } }

.pcard { position: relative; flex: 1; display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: calc(var(--r) * .9); background: #fff; overflow: hidden; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.pcard:hover { border-color: var(--c-primary); transform: translateY(-3px); box-shadow: 0 18px 34px -24px color-mix(in oklab, var(--c-deep) 70%, transparent); }
.pcard:has(a:focus-visible) { outline: 3px solid var(--c-secondary); outline-offset: 3px; }
.pcard__vis { padding: .75rem .75rem 0; }
.pcard__vis .pvis { aspect-ratio: 2 / 1; padding: .6rem .75rem .9rem; font-size: .85em; box-shadow: none; }
.pcard__vis .pvis__bar { margin-bottom: .55rem; }
.pcard__vis .pvis__row { height: 1.05rem; gap: .45rem; }
.pcard__vis .pvis__gantt { gap: .3rem; }
.pcard__vis .pvis__task { height: .75rem; }
.pcard__vis .pvis__checks { gap: .35rem; }
.pcard__vis .pvis__files { gap: .3rem; }
.pcard__vis .pvis__files li { padding: .25rem .45rem; }
.pcard__vis .pvis__files i { height: .9rem; }
.pcard__vis .pvis__ring { max-width: 96px; }
.pcard__vis .pvis__shield { max-width: 80px; }
.pcard__img { border-radius: calc(var(--r) * .7); overflow: hidden; aspect-ratio: 2 / 1; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.15rem 1.25rem; flex: 1; }
.pcard__name { font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.2rem; line-height: 1.1; letter-spacing: -0.02em; }
.pcard__name a { text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; }
.pcard__name a:focus-visible { outline: none; }
.pcard__tag { color: var(--c-muted); font-size: .95rem; flex: 1; }
.pcard__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .25rem; font-size: .9rem; font-weight: 600; color: var(--c-primary); }
.pcard:hover .pcard__more .ico { transform: translateX(3px); }
.pcard__more .ico { transition: transform .3s var(--ease); }
.prods .car__ctrl { position: static; justify-content: flex-end; margin: -1rem 0 .75rem; }
.car[hidden], .car__item[hidden] { display: none; }
.pf-empty { display: grid; gap: .6rem; justify-items: start; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1.5px dashed color-mix(in oklab, var(--c-primary) 40%, transparent); border-radius: var(--r); background: #fff; max-width: 560px; }
.pf-empty[hidden] { display: none; }
.pf-empty__t { font-family: var(--f-display); font-weight: var(--w-display); font-size: 1.35rem; }
.pf-empty p:not(.pf-empty__t) { color: var(--c-muted); }
@media (max-width: 760px) { .pfam-nav { padding-right: 0; } .prods .car__ctrl { position: static; justify-content: flex-end; margin-bottom: .75rem; } }
.pfam-nav button[aria-pressed="true"]:hover { color: #fff; border-color: var(--c-ink); }
.pcard__vis .pvis__gantt { gap: .15rem; } .pcard__vis .pvis__row { height: .8rem; } .pcard__vis .pvis__task { height: .55rem; } .pcard__vis .pvis__checks { gap: .2rem; } .pcard__vis .pvis__checks i { width: .7rem; height: .7rem; } .pcard__vis .pvis__files { gap: .15rem; } .pcard__vis .pvis__files li { padding: .12rem .4rem; } .pcard__vis .pvis__files i { height: .6rem; } .pcard__vis .pvis__ring { max-width: 70px; } .pcard__vis .pvis__shield { max-width: 56px; } .pcard__vis .pvis__audit, .pcard__vis .pvis__vault { height: calc(100% - 1.6rem); gap: .75rem; }
.pfam-nav__n--soon { font-size: .72rem; font-weight: 600; }
.pcard__vis .pvis__files li:nth-child(4) { display: none; }

/* =========================================================
   Scene 3D decorative della home (CSS 3D + SVG, nessuna libreria)
   ========================================================= */
.s3 { position: relative; container-type: inline-size; aspect-ratio: 1; perspective: 1400px; perspective-origin: 50% 45%; user-select: none; pointer-events: none; }
.js .s3:not(.is-ready) { opacity: 0; }
.s3.is-ready { opacity: 1; transition: opacity 1s var(--ease) .2s; }
.s3__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate(var(--px, 0), var(--py, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.s3__l { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--z, 0) * .2cqw)); }
.s3__pos { inset: auto; left: var(--x); top: var(--y); width: var(--w); }
.s3__float { transform: rotate(var(--r, 0deg)); animation: s3float 8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes s3float {
  0%, 100% { transform: rotate(var(--r, 0deg)) translate3d(0, 0, 0); }
  33% { transform: rotate(calc(var(--r, 0deg) + 1.5deg)) translate3d(.6cqw, -1.8cqw, 0); }
  66% { transform: rotate(calc(var(--r, 0deg) - 1deg)) translate3d(-.5cqw, .9cqw, 0); }
}
.s3.is-paused *, .s3.is-paused *::before, .s3.is-paused *::after { animation-play-state: paused !important; }

/* anello e satelliti */
.s3__orbit { display: grid; place-items: center; }
.s3__ring { position: relative; width: 104%; aspect-ratio: 1; border-radius: 50%; border: 2.4cqw solid var(--c-primary); transform: rotateX(62deg) rotateZ(0deg); animation: s3spin 26s linear infinite; box-shadow: 0 0 6cqw -1cqw color-mix(in oklab, var(--c-primary) 55%, transparent); }
.s3__sat { position: absolute; top: -3.4cqw; left: calc(50% - 2.2cqw); width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: var(--c-secondary); box-shadow: 0 0 3cqw color-mix(in oklab, var(--c-secondary) 70%, transparent); }
.s3__sat--b { top: auto; bottom: -3.4cqw; background: #fff; border: .8cqw solid var(--c-primary); }
@keyframes s3spin { to { transform: rotateX(62deg) rotateZ(360deg); } }

/* collegamenti */
.s3__links { width: 100%; height: 100%; overflow: visible; }
.s3__links path { fill: none; stroke: color-mix(in oklab, var(--c-primary) 55%, transparent); stroke-width: 1.6; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; stroke-linecap: round; animation: s3flow 1.6s linear infinite; }
@keyframes s3flow { to { stroke-dashoffset: -16; } }
.s3__links--flow path { stroke: var(--c-primary); stroke-width: 2.4; stroke-dasharray: 5 7; }
.s3__links .s3__broken { stroke: #D14343; stroke-dasharray: 2 4; animation: none; opacity: .8; }

/* chip centrale */
.s3__core { position: absolute; left: 29%; top: 29%; width: 42%; aspect-ratio: 1; filter: drop-shadow(0 4cqw 5cqw color-mix(in oklab, var(--c-deep) 45%, transparent)); }
.s3__core svg { width: 100%; height: 100%; overflow: visible; }
.s3__pins path { stroke: color-mix(in oklab, var(--c-primary) 70%, #fff); stroke-width: 3.2; stroke-linecap: round; }
.s3__die { fill: var(--c-primary); }
.s3__die-in { fill: var(--c-deep); stroke: color-mix(in oklab, var(--c-secondary) 70%, #fff); stroke-width: 1.2; }
.s3__logo { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.s3__logo circle { stroke-width: 4; stroke: color-mix(in oklab, #fff 85%, var(--c-secondary)); stroke-dasharray: 150.8; stroke-dashoffset: 0; animation: s3draw 6s var(--ease) infinite; }
@keyframes s3draw { 0% { stroke-dashoffset: 150.8; } 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -150.8; } }
.s3__core::after { content: ""; position: absolute; inset: 14%; border-radius: 22%; box-shadow: 0 0 9cqw 1cqw color-mix(in oklab, var(--c-secondary) 55%, transparent); z-index: -1; animation: s3glow 3.5s ease-in-out infinite; }
@keyframes s3glow { 50% { opacity: .45; } }

/* schede */
.s3__card { background: #fff; border: 1px solid color-mix(in oklab, var(--c-ink) 10%, transparent); border-radius: 3cqw; padding: 2.2cqw; box-shadow: 0 3.5cqw 7cqw -3cqw color-mix(in oklab, var(--c-deep) 45%, transparent); }
.s3__bar { display: flex; align-items: center; gap: .9cqw; margin-bottom: 1.6cqw; font-size: 2.4cqw; font-weight: 600; color: var(--c-muted); white-space: nowrap; overflow: hidden; }
.s3__bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: color-mix(in oklab, var(--c-ink) 18%, transparent); flex: none; }
.s3__bar i:first-child { background: #FF6B6B; } .s3__bar i:nth-child(2) { background: #FFC94D; } .s3__bar i:nth-child(3) { background: #5BD08A; }
.s3__bar b { margin-left: 1cqw; overflow: hidden; text-overflow: ellipsis; }
.s3__code svg { width: 100%; display: block; }
.s3__lines .c1 { fill: var(--c-primary); } .s3__lines .c2 { fill: var(--c-secondary); opacity: .75; } .s3__lines .c3 { fill: #E36FA8; } .s3__lines .c4 { fill: color-mix(in oklab, var(--c-ink) 22%, transparent); }
.s3__caret { fill: var(--c-ink); animation: s3blink 1.1s steps(1) infinite; }
@keyframes s3blink { 50% { opacity: 0; } }

.s3__chart-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.6cqw; }
.s3__chart-h b { font-family: var(--f-display); font-weight: var(--w-display); font-size: 3.8cqw; color: var(--c-ink); }
.s3__live { display: inline-flex; align-items: center; gap: .8cqw; font-size: 2.2cqw; font-weight: 700; color: #1A7A48; text-transform: uppercase; letter-spacing: .05em; }
.s3__live::before { content: ""; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #2DBE6C; animation: s3glow 1.6s ease-in-out infinite; }
.s3__bars { display: flex; align-items: flex-end; gap: 1.4cqw; height: 15cqw; }
.s3__bars i { flex: 1; height: var(--h); border-radius: 1cqw 1cqw .4cqw .4cqw; background: linear-gradient(to top, var(--c-secondary), var(--c-primary)); transform-origin: bottom; animation: s3bar 4.5s var(--ease) infinite; animation-delay: calc(var(--i) * .12s); }
.s3__bars i:last-child { background: linear-gradient(to top, var(--c-primary), #E36FA8); }
@keyframes s3bar { 0%, 100% { transform: scaleY(.35); } 40%, 70% { transform: scaleY(1); } }

.s3__badge { aspect-ratio: 1; display: grid; place-items: center; padding: 2cqw; border-radius: 4cqw; }
.s3__badge svg { width: 78%; fill: none; stroke: var(--c-primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.s3__up { animation: s3up 2.4s ease-in-out infinite; }
@keyframes s3up { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-3px); } }
.s3__db svg { stroke: var(--c-secondary); }

.s3__pill { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.6cqw 2.6cqw; border-radius: 999px; background: var(--c-deep); color: #fff; font: 600 3cqw/1 ui-monospace, Menlo, Consolas, monospace; box-shadow: 0 3cqw 6cqw -2cqw color-mix(in oklab, var(--c-deep) 60%, transparent); white-space: nowrap; }
.s3__pill i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #2DBE6C; animation: s3glow 1.4s ease-in-out infinite; }
.s3__pill b { color: #7BE0A5; }
.s3__gear-w { aspect-ratio: 1; }
.s3__gear { width: 100%; fill: color-mix(in oklab, var(--c-primary) 35%, transparent); animation: s3rot 12s linear infinite; }
@keyframes s3rot { to { transform: rotate(360deg); } }

/* scena "da Excel a software" */
.s3--flow { aspect-ratio: 5 / 4; }
.s3__sheet { padding: 1.6cqw; }
.s3__file { display: flex; align-items: center; gap: 1cqw; margin-bottom: 1.4cqw; font-size: 2.3cqw; font-weight: 600; color: var(--c-muted); white-space: nowrap; overflow: hidden; }
.s3__file b { overflow: hidden; text-overflow: ellipsis; }
.s3__xls { display: grid; place-items: center; flex: none; width: 3.4cqw; height: 3.4cqw; border-radius: .8cqw; background: #1F7A4A; color: #fff; font: 700 2.2cqw/1 var(--f-body); font-style: normal; }
.s3__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 0; border: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); border-radius: .8cqw; overflow: hidden; }
.s3__grid i { height: 3.6cqw; border-right: 1px solid color-mix(in oklab, var(--c-ink) 10%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--c-ink) 10%, transparent); font: 700 1.9cqw/3.6cqw ui-monospace, Menlo, monospace; font-style: normal; text-align: center; overflow: hidden; }
.s3__grid i.h { background: #E3F3E9; }
.s3__grid i.err { color: #C62828; background: #FDECEC; animation: s3blink 1.6s steps(1) infinite; }
.s3__sheet--b { filter: saturate(.7); }
.s3__keys { display: inline-flex; align-items: center; gap: .9cqw; white-space: nowrap; }
.s3__keys kbd { display: inline-grid; place-items: center; min-width: 5cqw; height: 5cqw; padding: 0 1.2cqw; border-radius: 1.2cqw; background: #fff; border: 1px solid color-mix(in oklab, var(--c-ink) 18%, transparent); border-bottom-width: .7cqw; font: 700 2.4cqw/1 var(--f-body); color: var(--c-ink); box-shadow: 0 2cqw 3cqw -2cqw rgba(0, 0, 0, .35); }
.s3__keys kbd:nth-of-type(2) { animation: s3press 2.4s ease-in-out infinite; }
.s3__keys kbd:nth-of-type(3) { animation: s3press 2.4s ease-in-out 1.2s infinite; }
.s3__keys span { font-size: 3cqw; color: var(--c-muted); }
@keyframes s3press { 0%, 20%, 100% { transform: translateY(0); border-bottom-width: .7cqw; } 10% { transform: translateY(.5cqw); border-bottom-width: .2cqw; } }
.s3__tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 3cqw; background: #fff; border: 1px dashed color-mix(in oklab, var(--c-ink) 28%, transparent); box-shadow: 0 2.5cqw 5cqw -3cqw rgba(0, 0, 0, .3); }
.s3__tile svg { width: 56%; fill: none; stroke: color-mix(in oklab, var(--c-ink) 55%, transparent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.s3__app { padding: 1.8cqw; border: 2px solid var(--c-primary); box-shadow: 0 0 0 1.2cqw color-mix(in oklab, var(--c-primary) 12%, transparent), 0 4cqw 8cqw -3cqw color-mix(in oklab, var(--c-deep) 55%, transparent); }
.s3__app .s3__bar b { color: var(--c-primary); }
.s3__app-body { display: grid; grid-template-columns: 16% 1fr; gap: 1.6cqw; }
.s3__side { display: grid; gap: 1.2cqw; align-content: start; padding: 1.2cqw; border-radius: 1.4cqw; background: var(--c-surface); }
.s3__side i { height: 2.2cqw; border-radius: .7cqw; background: color-mix(in oklab, var(--c-primary) 22%, transparent); }
.s3__side i.on { background: var(--c-primary); }
.s3__rows { display: grid; gap: 1.2cqw; }
.s3__row { display: flex; align-items: center; justify-content: space-between; gap: 1.2cqw; padding: 1cqw 1.2cqw; border-radius: 1.2cqw; background: color-mix(in oklab, var(--c-surface) 60%, #fff); animation: s3row 6s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }
.s3__row span { height: 1.8cqw; border-radius: .6cqw; background: color-mix(in oklab, var(--c-ink) 18%, transparent); }
.s3__row b { flex: none; width: 3cqw; height: 3cqw; border-radius: 50%; }
.s3__row b.ok { background: #2DBE6C; box-shadow: inset 0 0 0 .7cqw #2DBE6C; position: relative; }
.s3__row b.ok::after { content: ""; position: absolute; left: 35%; top: 22%; width: 26%; height: 44%; border: solid #fff; border-width: 0 .55cqw .55cqw 0; transform: rotate(45deg); }
.s3__row b.run { border: .6cqw solid color-mix(in oklab, var(--c-primary) 25%, transparent); border-top-color: var(--c-primary); animation: s3rot 1s linear infinite; }
@keyframes s3row { 0%, 8% { opacity: 0; transform: translateX(-2cqw); } 16%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.s3__spark svg { width: 100%; height: 6cqw; display: block; overflow: visible; }
.s3__spark path { fill: none; stroke: var(--c-primary); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; animation: s3line 6s var(--ease) infinite; }
@keyframes s3line { 0%, 15% { stroke-dashoffset: 140; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* impaginazione */
.hero__mark.s3 { max-width: 600px; justify-self: end; }
.statement--scene { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.statement--scene .statement__text { max-width: 20ch; font-size: clamp(1.6rem, 1rem + 2vw, 2.9rem); }
@media (max-width: 860px) {
  .hero__mark.s3 { order: 0; justify-self: center; width: 100%; max-width: 380px; margin-top: -.5rem; }
  .statement--scene { grid-template-columns: 1fr; }
  .statement--scene .s3 { width: 100%; max-width: 480px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .s3__stage { transform: none !important; }
}

/* =========================================================
   Mini scene delle aree di servizio (anteprima al passaggio del mouse)
   ========================================================= */
.s3--mini { aspect-ratio: 3 / 2; perspective: 900px; }
.js .s3--mini:not(.is-ready) { opacity: 1; }
.hover-preview--scene { width: clamp(260px, 21vw, 340px); aspect-ratio: 3 / 2; overflow: visible; border-radius: calc(var(--r) * 1.1); background: radial-gradient(120% 120% at 30% 20%, #fff, var(--c-surface)); border: 1px solid color-mix(in oklab, var(--c-primary) 18%, transparent); box-shadow: 0 30px 60px -28px color-mix(in oklab, var(--c-deep) 55%, transparent); }
.hover-preview--scene .s3--mini { position: absolute; inset: 7% 6%; display: none; aspect-ratio: auto; }
.hover-preview--scene .s3--mini.is-shown { display: block; }
.hover-preview--scene .s3__stage { transition: transform .5s var(--ease); }
.hover-preview:not(.is-on) .s3--mini * { animation-play-state: paused !important; }
@media (hover: none), (pointer: coarse) {
  .row__thumb { aspect-ratio: 3 / 2; max-width: 420px; padding: 6% 6%; background: radial-gradient(120% 120% at 30% 20%, #fff, var(--c-surface)); border: 1px solid color-mix(in oklab, var(--c-primary) 15%, transparent); overflow: visible; }
}

/* software */
.s3__editor { padding: 2.6cqw; }
.s3__editor .s3__bar { font-size: 3.2cqw; }
.s3__editor svg { width: 100%; display: block; }
.s3__chipm { aspect-ratio: 1; filter: drop-shadow(0 4cqw 4cqw color-mix(in oklab, var(--c-deep) 45%, transparent)); }
.s3__chipm svg { width: 100%; overflow: visible; }
.s3--mini .s3__pill { font-size: 3.6cqw; padding: 2cqw 3cqw; }
.s3--mini .s3__pill i { width: 2cqw; height: 2cqw; }

/* siti ed e-commerce */
.s3__browser { padding: 2cqw; }
.s3__url { display: flex; align-items: center; gap: 1.2cqw; margin-bottom: 2cqw; }
.s3__url i { width: 2cqw; height: 2cqw; border-radius: 50%; background: color-mix(in oklab, var(--c-ink) 18%, transparent); }
.s3__url i:first-child { background: #FF6B6B; } .s3__url i:nth-child(2) { background: #FFC94D; } .s3__url i:nth-child(3) { background: #5BD08A; }
.s3__url span { flex: 1; margin-left: 1cqw; padding: .8cqw 2cqw; border-radius: 999px; background: var(--c-surface); font: 600 2.8cqw/1.2 var(--f-body); color: var(--c-muted); }
.s3__web-hero { display: grid; gap: 1.4cqw; padding: 3cqw; border-radius: 2cqw; background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); margin-bottom: 2cqw; }
.s3__web-hero b { height: 2.6cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .9); width: 70%; }
.s3__web-hero b + b { width: 46%; background: rgba(255, 255, 255, .55); }
.s3__web-hero span { width: 26%; height: 3.6cqw; border-radius: 999px; background: #fff; animation: s3glow 2.4s ease-in-out infinite; }
.s3__web-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.s3__web-grid i { aspect-ratio: 1; border-radius: 1.6cqw; background: var(--c-surface); position: relative; overflow: hidden; }
.s3__web-grid i::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 14%; height: 12%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-primary) 35%, transparent); }
.s3__web-grid i:nth-child(2)::after { background: color-mix(in oklab, #E36FA8 55%, transparent); }
.s3__badge { position: relative; }
.s3__count { position: absolute; top: -2.4cqw; right: -2.4cqw; display: grid; place-items: center; min-width: 6cqw; height: 6cqw; padding: 0 1cqw; border-radius: 999px; background: #E3367B; color: #fff; font: 700 3cqw/1 var(--f-body); font-style: normal; animation: s3pop 2.6s var(--ease) infinite; }
@keyframes s3pop { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.35); } 80% { transform: scale(.9); } }
.s3__pay b { color: #7BE0A5; }
.s3__gauge { aspect-ratio: 1; padding: 1.2cqw; border-radius: 50%; display: grid; place-items: center; }
.s3__gauge svg { width: 100%; }
.s3__gauge circle { fill: none; stroke: #DCF2E4; stroke-width: 6; }
.s3__gauge .s3__gauge-v { stroke: #1F9D57; stroke-linecap: round; stroke-dasharray: 100; transform: rotate(-90deg); transform-origin: center; animation: s3gauge 5s var(--ease) infinite; }
.s3__gauge text { fill: #127A41; font: 700 15px var(--f-body); }
@keyframes s3gauge { 0% { stroke-dashoffset: 100; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .4; } }

/* marketing */
.s3__post { padding: 2cqw; }
.s3__post-h { display: flex; align-items: center; gap: 1.6cqw; margin-bottom: 1.6cqw; }
.s3__post-h i { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: linear-gradient(135deg, #F7B733, #E3367B, var(--c-secondary)); }
.s3__post-h span { flex: 1; height: 2cqw; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 15%, transparent); max-width: 50%; }
.s3__post-img { border-radius: 1.6cqw; overflow: hidden; background: linear-gradient(160deg, color-mix(in oklab, var(--c-secondary) 35%, #fff), var(--c-surface)); }
.s3__post-img svg { width: 100%; height: 14cqw; display: block; }
.s3__post-img path { fill: color-mix(in oklab, var(--c-primary) 55%, transparent); }
.s3__post-img circle { fill: #FFC94D; }
.s3__post-f { display: flex; align-items: center; gap: 1.6cqw; margin-top: 1.6cqw; }
.s3__post-f b { color: #E3367B; font-size: 4cqw; line-height: 1; animation: s3pop 2s var(--ease) infinite; }
.s3__post-f span { height: 2cqw; width: 40%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 12%, transparent); }
.s3__hearts { position: absolute; left: 6%; bottom: 14%; width: 20%; height: 0; }
.s3__hearts i { position: absolute; left: 0; bottom: 0; color: #E3367B; font-style: normal; font-size: 4cqw; opacity: 0; animation: s3heart 3s ease-out infinite; }
.s3__hearts i:nth-child(2) { left: 30%; animation-delay: 1s; font-size: 3cqw; }
.s3__hearts i:nth-child(3) { left: 60%; animation-delay: 2s; }
@keyframes s3heart { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(4cqw, -24cqw) scale(1.1); } }
.s3__trend { padding: 2cqw 2.4cqw; }
.s3__trend .s3__chart-h b { font-size: 4cqw; }
.s3__trend .s3__live { font-size: 2.6cqw; }
.s3__trend svg { width: 100%; height: 12cqw; display: block; overflow: visible; }
.s3__area { fill: color-mix(in oklab, var(--c-primary) 14%, transparent); }
.s3__trend-l { fill: none; stroke: var(--c-primary); stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; animation: s3line 5s var(--ease) infinite; }
.s3__search { background: #fff; color: var(--c-ink); border: 1px solid color-mix(in oklab, var(--c-ink) 12%, transparent); font-family: var(--f-body); font-weight: 500; }
.s3__search svg { width: 4cqw; flex: none; fill: none; stroke: var(--c-primary); stroke-width: 2.6; stroke-linecap: round; }
.s3__typing { display: inline-block; overflow: hidden; white-space: nowrap; border-right: .4cqw solid var(--c-primary); animation: s3type 5s steps(18) infinite, s3caret .8s steps(1) infinite; max-width: 100%; }
@keyframes s3type { 0% { width: 0; } 45%, 85% { width: 100%; } 100% { width: 100%; } }
@keyframes s3caret { 50% { border-right-color: transparent; } }

/* =========================================================
   Pagine curate: intestazione con scena 3D, blocchi arrotondati
   ========================================================= */
.xhead { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 4.5vw, 4.5rem) clamp(2.5rem, 5vw, 5rem); }
.xhead__txt { display: grid; justify-items: start; min-width: 0; }
.xhead .phead__title { max-width: 16ch; }
.xhead .tldr { margin-top: 1.75rem; }
.xhead .hero__ctas { margin-top: 2rem; }
.xhead--sm { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.scene-panel { position: relative; isolation: isolate; padding: clamp(1rem, 3vw, 2.5rem); border-radius: clamp(28px, 3.4vw, 48px); background: radial-gradient(120% 100% at 18% 8%, #fff 0%, var(--c-surface) 62%, color-mix(in oklab, var(--c-surface) 82%, var(--c-primary)) 100%); border: 1px solid color-mix(in oklab, var(--c-primary) 14%, transparent); box-shadow: 0 50px 90px -60px color-mix(in oklab, var(--c-deep) 60%, transparent); }
.scene-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(color-mix(in oklab, var(--c-primary) 22%, transparent) 1.2px, transparent 1.6px) 0 0 / 22px 22px; -webkit-mask: radial-gradient(70% 70% at 60% 50%, #000, transparent 75%); mask: radial-gradient(70% 70% at 60% 50%, #000, transparent 75%); }
.s3--topic { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .xhead { grid-template-columns: 1fr; }
  .xhead__vis { width: 100%; max-width: 520px; justify-self: center; }
}

/* testo a blocchi */
.prose-layout--blocks .prose { max-width: none; }
.prose--blocks { counter-reset: pb; font-size: 1.05em; }
.prose--blocks > * + * { margin-top: clamp(1rem, 2vw, 1.5rem); }
.pb { padding: clamp(1.4rem, 3vw, 2.75rem); border-radius: clamp(22px, 2.6vw, 36px); background: #fff; border: 1px solid var(--c-line); }
.pb > * + *, .pb__head > * + *, .pb__rest > * + * { margin-top: 1.1em; }
.pb p { max-width: 72ch; }
.pb h2 { margin-top: 0; max-width: 30ch; }
.pb:not(.pb--intro) { counter-increment: pb; }
.pb h2::before { content: counter(pb, decimal-leading-zero); content: counter(pb, decimal-leading-zero) / ""; display: table; margin-bottom: .7rem; padding: .35em .75em; border-radius: 999px; background: var(--c-primary); color: #fff; font: 700 .9rem/1 var(--f-body); letter-spacing: .04em; }
.pb--intro { padding: 0 0 .25rem; border: 0; background: none; border-radius: 0; }
.pb--intro p:first-child { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.55; color: var(--c-ink); max-width: 62ch; }
.pb--alt { background: var(--c-surface); border-color: transparent; }
.pb--scene .pb__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.pb__vis { min-width: 0; padding: 3% 4%; }
.pb__rest { margin-top: 1.5rem; }
@media (max-width: 760px) {
  .pb--scene .pb__top { grid-template-columns: 1fr; }
  .pb__vis { width: 100%; max-width: 420px; justify-self: center; }
}

/* elenchi puntati: spunte su fondino arrotondato */
.pb ul.pl { list-style: none; padding: 0; display: grid; gap: .6rem; }
.pb ul.pl > li { position: relative; margin: 0; padding: .8rem 1rem .8rem 3rem; border-radius: 16px; background: var(--c-surface); }
.pb--alt ul.pl > li { background: #fff; }
.pb ul.pl > li::before { content: ""; position: absolute; left: .95rem; top: .95rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 72% no-repeat; }
/* elenchi con titoletto in grassetto: schede */
.pb ul.pl:has(> li > strong:first-child) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .9rem; }
.pb ul.pl:has(> li > strong:first-child) > li { padding: 1.3rem 1.3rem 1.4rem; border-radius: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pb ul.pl:has(> li > strong:first-child) > li::before { position: static; display: block; width: 2.4rem; height: 2.4rem; margin-bottom: .9rem; border-radius: 12px; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--c-primary), var(--c-secondary)); background-size: 55%, 100%; background-position: center; background-repeat: no-repeat; }
.pb ul.pl:has(> li > strong:first-child) > li:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px color-mix(in oklab, var(--c-deep) 55%, transparent); }
.pb ul.pl > li > strong:first-child { display: block; margin-bottom: .3rem; font-size: 1.08em; line-height: 1.3; color: var(--c-ink); }
.pb ul.pl:not(:has(> li > strong:first-child)) > li > strong:first-child { display: inline; }
/* elenchi numerati: passi */
.pb ol.pl { list-style: none; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .9rem; }
.pb ol.pl > li { counter-increment: st; position: relative; margin: 0; padding: 3.7rem 1.3rem 1.4rem; border-radius: 22px; background: var(--c-surface); }
.pb--alt ol.pl > li { background: #fff; }
.pb ol.pl > li::before { content: counter(st); content: counter(st) / ""; position: absolute; left: 1.3rem; top: 1.2rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c-deep); color: #fff; font: 700 .95rem/1 var(--f-body); }
.pb ol.pl > li::after { content: ""; position: absolute; left: 3.9rem; right: 1.3rem; top: 2.25rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in oklab, var(--c-primary) 45%, transparent), transparent); }
.pb ol.pl > li > strong:first-child { display: block; margin-bottom: .3rem; font-size: 1.08em; color: var(--c-ink); }
/* invito finale */
.pb-cta { margin-top: 1.75rem !important; padding: 1.4rem 1.6rem; border-radius: 22px; background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); color: #fff; max-width: none !important; }
.pb-cta a { color: #fff !important; font-weight: 700; text-underline-offset: .2em; }
.pb-cta a:focus-visible { outline-color: #fff; }

/* sottoservizi con mini scena */
.tiles--scene { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile--scene { padding-top: 1rem; border-radius: clamp(22px, 2.4vw, 30px); }
.tile__vis { margin: 0 -.25rem .35rem; padding: 6% 7%; border-radius: calc(var(--r) * .9); background: radial-gradient(120% 120% at 25% 15%, #fff, var(--c-surface)); border: 1px solid color-mix(in oklab, var(--c-primary) 12%, transparent); transition: background-color .3s; }
.tile--scene:hover .tile__vis { background: #fff; }

/* prodotto */
.pdp__vis .scene-panel { width: 100%; }
.feat { background: var(--c-surface); border-color: transparent; border-radius: clamp(22px, 2.4vw, 30px); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px color-mix(in oklab, var(--c-deep) 55%, transparent); }
.feat__n { justify-self: start; padding: .35em .75em; border-radius: 999px; background: var(--c-primary); color: #fff; font: 700 .9rem/1 var(--f-body); }
.aud { padding: clamp(1.4rem, 3vw, 2.5rem); margin-bottom: calc(var(--sec) * .5); border-radius: clamp(22px, 2.6vw, 36px); background: var(--c-surface); max-width: calc(1320px - 2 * var(--gut)); width: calc(100% - 2 * var(--gut)); }

/* ---------- componenti delle scene ---------- */
.s3__bl, .s3__pl, .s3__doc-l, .s3__ai-lines { display: grid; gap: 1.2cqw; }
.s3__bl span, .s3__pl span, .s3__doc-l span, .s3__ai-lines span, .s3__letter span { display: block; height: 1.7cqw; width: var(--w, 80%); border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 13%, transparent); }
.s3__pill--light { background: #fff; color: var(--c-ink); border: 1px solid color-mix(in oklab, var(--c-ink) 12%, transparent); font-family: var(--f-body); }
.s3__pill--light b { color: #1F9D57; }
.s3__ver { font: 700 2.2cqw/1 ui-monospace, Menlo, monospace; color: var(--c-primary); padding: .8cqw 1.4cqw; border-radius: 999px; background: var(--c-surface); }
.s3__browser { position: relative; }
@keyframes s3reveal { 0%, 10% { transform: scaleX(0); } 40%, 90% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .4; } }
@keyframes s3fill { 0% { transform: scaleX(0); } 35%, 90% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .5; } }
@keyframes s3notif { 0%, 6% { opacity: 0; transform: translateY(-3cqw) scale(.96); } 14%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s3bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4cqw); } }
@keyframes s3pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes s3tag { 0%, 20%, 100% { background: #fff; color: var(--c-ink); } 5%, 15% { background: var(--c-primary); color: #fff; } }

/* kpi */
.s3__kpi { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .6cqw 1.4cqw; padding: 2.2cqw 2.6cqw; }
.s3__kpi span { grid-column: 1 / -1; font: 600 2.4cqw/1.2 var(--f-body); color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__kpi b { font-family: var(--f-display); font-weight: var(--w-display); font-size: 6cqw; line-height: 1; letter-spacing: -.02em; color: var(--c-ink); white-space: nowrap; }
.s3__kpi em { font-style: normal; color: #1F9D57; font-size: 3cqw; animation: s3up 2.4s ease-in-out infinite; }

/* browser: varianti */
.s3__web-hero--cta { position: relative; }
.s3__web-hero .s3__ctab { width: auto; height: auto; justify-self: start; padding: 1.3cqw 2.4cqw; font: 700 2.4cqw/1 var(--f-body); color: var(--c-primary); white-space: nowrap; animation: s3click 4s var(--ease) infinite; }
@keyframes s3click { 0%, 46% { transform: none; } 52% { transform: scale(.9); } 60%, 100% { transform: none; } }
.s3__cursor { position: absolute; left: 44cqw; top: 26cqw; width: 5cqw; fill: var(--c-ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; animation: s3cursor 4s var(--ease) infinite; }
@keyframes s3cursor { 0%, 8% { transform: translate(0, 0); } 44%, 62% { transform: translate(-31cqw, -6cqw); } 92%, 100% { transform: translate(0, 0); } }
.s3__langs { display: flex; gap: 1cqw; margin-bottom: 1.6cqw; }
.s3__langs i { font: 700 2.2cqw/1 var(--f-body); font-style: normal; padding: .9cqw 1.6cqw; border-radius: 999px; background: var(--c-surface); color: var(--c-muted); animation: s3tag 8s ease-in-out infinite; animation-delay: calc(var(--i) * 2s); }
.s3__a11y { position: relative; display: grid; gap: 1.6cqw; padding: 1cqw; }
.s3__a11y-r { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; height: 7cqw; padding: 0 1.6cqw; border-radius: 1.4cqw; background: var(--c-surface); }
.s3__a11y-r b { height: 2cqw; width: 52%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 60%, transparent); }
.s3__a11y-r span { width: 22%; height: 3.6cqw; border-radius: 999px; background: var(--c-primary); }
.s3__focus { position: absolute; left: .4cqw; right: .4cqw; top: .4cqw; height: 8.2cqw; border-radius: 1.8cqw; border: .6cqw solid #FFB020; box-shadow: 0 0 0 .6cqw rgba(255, 176, 32, .3); animation: s3focus 4.5s var(--ease) infinite; }
@keyframes s3focus { 0%, 25% { transform: none; } 33%, 58% { transform: translateY(8.6cqw); } 66%, 92% { transform: translateY(17.2cqw); } 100% { transform: none; } }
.s3__shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.s3__prod { display: grid; gap: 1cqw; padding: 1.2cqw; border-radius: 1.6cqw; background: var(--c-surface); }
.s3__prod i { aspect-ratio: 1; border-radius: 1.2cqw; background: linear-gradient(150deg, color-mix(in oklab, var(--c-secondary) 30%, #fff), color-mix(in oklab, #E36FA8 40%, #fff)); }
.s3__prod:nth-child(2) i { background: linear-gradient(150deg, #FFE3B3, #FFC94D); }
.s3__prod:nth-child(3) i { background: linear-gradient(150deg, #D5F2E0, #7BD4A0); }
.s3__prod span { height: 1.5cqw; width: 80%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 15%, transparent); }
.s3__prod b { font: 700 2.4cqw/1 var(--f-body); color: var(--c-ink); }
.s3__prod:nth-child(2) { animation: s3pick 4s var(--ease) infinite; }
@keyframes s3pick { 0%, 30%, 100% { transform: none; box-shadow: none; } 40%, 70% { transform: translateY(-1.4cqw); box-shadow: 0 0 0 .5cqw var(--c-primary); } }
.s3__dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; margin-bottom: 1.8cqw; }
.s3__dk { display: grid; gap: 1cqw; padding: 1.4cqw; border-radius: 1.4cqw; background: var(--c-surface); }
.s3__dk b { height: 3cqw; width: 70%; border-radius: 1cqw; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); }
.s3__dk span { height: 1.4cqw; width: 50%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 15%, transparent); }
.s3__bars--sm { height: 11cqw; }
.s3__login { display: grid; gap: 1.4cqw; padding: 1.6cqw; justify-items: center; }
.s3__login-ico { display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--c-surface); }
.s3__login-ico svg { width: 60%; fill: none; stroke: var(--c-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s3__in { width: 100%; height: 4.4cqw; border-radius: 1.2cqw; border: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); background: #fff; }
.s3__in--pw { display: flex; align-items: center; padding-left: 1.6cqw; font: 700 2.4cqw/1 ui-monospace, Menlo, monospace; color: var(--c-ink); letter-spacing: .2em; }
.s3__login b { width: 100%; text-align: center; padding: 1.4cqw; border-radius: 1.2cqw; background: var(--c-primary); color: #fff; font: 700 2.4cqw/1 var(--f-body); animation: s3pulse 3s ease-in-out infinite; }

/* telefono */
.s3__phone { position: relative; aspect-ratio: 9 / 18.5; padding: 1.4cqw; border-radius: 5cqw; background: #1A0B2E; box-shadow: 0 5cqw 9cqw -4cqw color-mix(in oklab, var(--c-deep) 60%, transparent); }
.s3__notch { position: absolute; z-index: 2; top: 2.2cqw; left: 35%; width: 30%; height: 2.2cqw; border-radius: 999px; background: #1A0B2E; }
.s3__screen { position: relative; display: flex; flex-direction: column; gap: 1.6cqw; height: 100%; padding: 5cqw 2cqw 2cqw; border-radius: 3.8cqw; background: #fff; overflow: hidden; }
.s3__phone--dark .s3__screen { background: #24123D; }
.s3__ph-h { display: flex; justify-content: space-between; align-items: center; }
.s3__ph-h b { width: 50%; height: 2.4cqw; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 80%, transparent); }
.s3__ph-h i { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); }
.s3__ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; }
.s3__ph-tiles i { aspect-ratio: 1.3; border-radius: 2cqw; background: var(--c-surface); }
.s3__ph-tiles i:first-child { background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); }
.s3__ph-tiles i:nth-child(4) { background: color-mix(in oklab, #E36FA8 35%, #fff); }
.s3__ph-list { display: grid; gap: 1.2cqw; }
.s3__ph-list span { height: 3.6cqw; border-radius: 1.4cqw; background: var(--c-surface); animation: s3row 6s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }
.s3__ph-tab { display: flex; justify-content: space-around; margin-top: auto; padding-top: 1.4cqw; border-top: 1px solid color-mix(in oklab, var(--c-ink) 10%, transparent); }
.s3__ph-tab i { width: 2.6cqw; height: 2.6cqw; border-radius: .9cqw; background: color-mix(in oklab, var(--c-ink) 18%, transparent); }
.s3__ph-tab i.on { background: var(--c-primary); }
.s3__phone--dark .s3__ph-tiles i:not(:first-child), .s3__phone--dark .s3__ph-list span, .s3__phone--dark .s3__ph-tab i:not(.on) { background: rgba(255, 255, 255, .1); }
.s3__phone--dark .s3__ph-h b { background: rgba(255, 255, 255, .75); }
.s3__phone .s3__post-img svg { height: 18cqw; }
.s3__phone .s3__web-hero { padding: 2cqw; }
.s3__purl { padding: 1cqw 1.6cqw; border-radius: 999px; background: var(--c-surface); font: 600 2cqw/1.2 var(--f-body); color: var(--c-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__install { margin-top: auto; padding: 1.8cqw; border-radius: 999px; background: var(--c-primary); color: #fff; text-align: center; font: 700 2.2cqw/1 var(--f-body); animation: s3pulse 2.4s ease-in-out infinite; }

/* notifica e fumetti */
.s3__notif { display: flex; align-items: center; gap: 1.8cqw; padding: 2cqw 2.4cqw; border-radius: 3.2cqw; animation: s3notif 6s var(--ease) infinite; }
.s3__notif > i { flex: none; display: grid; place-items: center; width: 6.4cqw; height: 6.4cqw; border-radius: 1.8cqw; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); }
.s3__notif > i svg { width: 60%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s3__notif > div { display: grid; gap: .6cqw; min-width: 0; }
.s3__notif b { font: 700 2.8cqw/1.15 var(--f-body); color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__notif span { font: 500 2.3cqw/1.2 var(--f-body); color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__bubble { display: inline-block; padding: 1.8cqw 2.6cqw; border-radius: 3cqw 3cqw 3cqw .6cqw; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); color: #fff; font: 700 2.8cqw/1.25 var(--f-body); box-shadow: 0 3cqw 6cqw -3cqw color-mix(in oklab, var(--c-deep) 60%, transparent); animation: s3notif 7s var(--ease) infinite; }
.s3__bubble--alt { background: #fff; color: var(--c-ink); border: 1px solid color-mix(in oklab, var(--c-ink) 12%, transparent); border-radius: 3cqw 3cqw .6cqw 3cqw; animation-delay: 1.4s; }

/* calendario, kanban, contatto */
.s3__cal { padding: 2.4cqw; }
.s3__cal-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.8cqw; }
.s3__cal-h b { font-family: var(--f-display); font-weight: var(--w-display); font-size: 3.6cqw; line-height: 1; color: var(--c-ink); }
.s3__cal-h span { color: var(--c-muted); font-size: 3cqw; }
.s3__cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1cqw; }
.s3__cal-g i { aspect-ratio: 1; border-radius: 1.2cqw; background: var(--c-surface); }
.s3__cal-g i.on { background: color-mix(in oklab, var(--c-primary) 70%, #fff); }
.s3__cal-g i.new { background: #E3367B; box-shadow: 0 0 0 .8cqw color-mix(in oklab, #E3367B 25%, transparent); animation: s3pop 2.6s var(--ease) infinite; }
.s3__kan { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; padding: 2.2cqw; }
.s3__kc { display: grid; gap: 1.2cqw; align-content: start; min-height: 29cqw; padding: 1.4cqw; border-radius: 1.8cqw; background: var(--c-surface); }
.s3__kc b { font: 700 2.2cqw/1 var(--f-body); color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__kc i { height: 6.5cqw; border-radius: 1.4cqw; background: #fff; border-left: .8cqw solid color-mix(in oklab, var(--c-primary) 60%, #fff); box-shadow: 0 .6cqw 1.4cqw -.6cqw rgba(0, 0, 0, .2); }
.s3__kc:nth-child(3) i { border-left-color: #2DBE6C; }
.s3__kmove { position: absolute; left: 3.6cqw; top: 22.4cqw; width: calc((100% - 7.6cqw) / 3 - 2.8cqw); height: 6.5cqw; border-radius: 1.4cqw; background: #fff; border-left: .8cqw solid #E3367B; box-shadow: 0 2cqw 3cqw -1cqw color-mix(in oklab, var(--c-deep) 45%, transparent); animation: s3kan 7s var(--ease) infinite; }
@keyframes s3kan { 0%, 12% { transform: none; opacity: 1; } 30%, 46% { transform: translateX(calc(100% + 4.4cqw)); } 64%, 88% { transform: translateX(calc(200% + 8.8cqw)); border-left-color: #2DBE6C; opacity: 1; } 96%, 100% { transform: translateX(calc(200% + 8.8cqw)); opacity: 0; } }
.s3__contact { display: grid; gap: 1.8cqw; padding: 2.4cqw; }
.s3__ct-h { display: flex; align-items: center; gap: 1.6cqw; }
.s3__ct-h i { flex: none; display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 50%; background: linear-gradient(135deg, #E36FA8, var(--c-primary)); color: #fff; font: 700 2.6cqw/1 var(--f-body); font-style: normal; }
.s3__ct-h div { flex: 1; display: grid; gap: 1cqw; }
.s3__ct-h b { height: 2.2cqw; width: 80%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 70%, transparent); }
.s3__ct-h span { height: 1.6cqw; width: 55%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 15%, transparent); }
.s3__ct-tags { display: flex; gap: 1cqw; }
.s3__ct-tags em { padding: 1cqw 1.6cqw; border-radius: 999px; background: var(--c-surface); color: var(--c-primary); font: 700 2.1cqw/1 var(--f-body); font-style: normal; }
.s3__ct-tags em.hot { background: #FDE7F0; color: #B8235F; animation: s3pop 3s var(--ease) infinite; }

/* magazzino */
.s3__stock { display: grid; gap: 1.4cqw; padding: 2.4cqw; }
.s3__stock .s3__chart-h { margin-bottom: .4cqw; }
.s3__stk { display: grid; grid-template-columns: 4cqw 1fr 5cqw; gap: 1.4cqw; align-items: center; }
.s3__stk i { aspect-ratio: 1; border-radius: 1cqw; background: linear-gradient(135deg, #F7C873, #D99A3B); }
.s3__stk span { height: 2.2cqw; border-radius: 999px; background: var(--c-surface); overflow: hidden; }
.s3__stk em { display: block; width: var(--v); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-secondary), var(--c-primary)); transform-origin: left; animation: s3fill 5s var(--ease) infinite; animation-delay: calc(var(--i) * .2s); }
.s3__stk b { font: 700 2.4cqw/1 ui-monospace, Menlo, monospace; color: var(--c-ink); text-align: right; }
.s3__stk.low em { background: #E5484D; }
.s3__stk.low b { color: #C62828; animation: s3blink 1.4s steps(1) infinite; }
.s3__barcode { display: grid; gap: 1.4cqw; justify-items: center; padding: 2.4cqw; }
.s3__bc { position: relative; display: flex; justify-content: center; gap: .7cqw; width: 100%; height: 12cqw; }
.s3__bc i { width: calc(var(--b) * .7cqw); background: var(--c-ink); }
.s3__laser { position: absolute; left: -4%; right: -4%; top: 0; height: .6cqw; border-radius: 999px; background: #FF3B3B; box-shadow: 0 0 2cqw .6cqw rgba(255, 59, 59, .55); animation: s3scan 2.6s ease-in-out infinite; }
@keyframes s3scan { 0%, 100% { top: 0; } 50% { top: calc(100% - .6cqw); } }
.s3__barcode > b { font: 700 2.4cqw/1 ui-monospace, Menlo, monospace; color: var(--c-muted); letter-spacing: .1em; }

/* nodi e pacchetti di dati */
.s3__node { display: grid; justify-items: center; gap: 1.2cqw; padding: 2.4cqw 1.6cqw; text-align: center; }
.s3__node svg { width: 8cqw; height: 8cqw; fill: none; stroke: var(--c-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s3__node b { max-width: 100%; font: 700 2.5cqw/1.15 var(--f-body); color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__node--main { border: 0; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); box-shadow: 0 0 0 1.4cqw color-mix(in oklab, var(--c-primary) 14%, transparent), 0 4cqw 8cqw -3cqw color-mix(in oklab, var(--c-deep) 55%, transparent); }
.s3__node--main svg { stroke: #fff; }
.s3__node--main b { color: #fff; }
.s3__packet { display: inline-block; padding: 1.2cqw 2cqw; border-radius: 999px; background: #FFC94D; color: #3A2400; font: 700 2.4cqw/1 ui-monospace, Menlo, monospace; white-space: nowrap; box-shadow: 0 2cqw 3cqw -1cqw rgba(0, 0, 0, .3); animation: s3packet 3.6s ease-in-out infinite; }
@keyframes s3packet { 0% { transform: translate(0, 0) scale(.8); opacity: 0; } 12% { opacity: 1; transform: translate(0, 0) scale(1); } 75% { opacity: 1; transform: translate(var(--dx), var(--dy)); } 90%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.8); } }

/* assistente AI */
.s3__ai { display: grid; gap: 1.8cqw; padding: 2.4cqw; }
.s3__ai-q { justify-self: end; max-width: 86%; padding: 1.4cqw 2cqw; border-radius: 2.4cqw 2.4cqw .6cqw 2.4cqw; background: var(--c-surface); font: 600 2.5cqw/1.3 var(--f-body); color: var(--c-ink); }
.s3__ai-a { display: flex; gap: 1.6cqw; align-items: flex-start; }
.s3__ai-ico { flex: none; display: grid; place-items: center; width: 5.4cqw; height: 5.4cqw; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), #E36FA8); color: #fff; font-style: normal; font-size: 3cqw; }
.s3__ai-lines { flex: 1; padding-top: .6cqw; }
.s3__ai-lines span, .s3__doc-l span { transform-origin: left; animation: s3reveal 6s var(--ease) infinite; animation-delay: calc(var(--i) * .45s); }
.s3__ai-src { display: inline-flex; align-items: center; gap: 1cqw; justify-self: start; padding: 1cqw 1.8cqw; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--c-primary) 30%, transparent); background: color-mix(in oklab, var(--c-primary) 6%, #fff); font: 700 2.3cqw/1 var(--f-body); color: var(--c-primary); animation: s3pulse 3s ease-in-out infinite; }
.s3__ai-src svg { width: 3cqw; height: 3cqw; fill: none; stroke: var(--c-primary); stroke-width: 2; }

/* software datato, server */
.s3__retro { padding: .8cqw; border-radius: 1cqw; background: #C9C9C9; border: .5cqw solid; border-color: #F2F2F2 #6E6E6E #6E6E6E #F2F2F2; box-shadow: 0 3cqw 6cqw -3cqw rgba(0, 0, 0, .5); }
.s3__retro-bar { padding: 1cqw 1.4cqw; background: linear-gradient(90deg, #00007B, #1084D0); color: #fff; font: 700 2.4cqw/1 ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; }
.s3__retro-b { display: grid; align-content: start; min-height: 20cqw; margin-top: .8cqw; padding: 1.6cqw; background: #0B0B0B; color: #33FF66; font: 600 2.4cqw/1.5 ui-monospace, Menlo, monospace; }
.s3__retro-b span { white-space: nowrap; overflow: hidden; }
.s3__retro-c { animation: s3blink 1s steps(1) infinite; }
.s3__srv { display: grid; gap: 1.4cqw; padding: 2.4cqw; border: 0; background: linear-gradient(#2B0748, #1A0B2E); }
.s3__su { display: flex; align-items: center; gap: 1.2cqw; padding: 1.8cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
.s3__su i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #2DBE6C; animation: s3blink 1.2s steps(1) infinite; animation-delay: calc(var(--i) * .3s); }
.s3__su i + i { background: #FFC94D; animation-duration: 2.1s; }
.s3__su span { flex: 1; height: 1.6cqw; border-radius: 1cqw; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 .6cqw, transparent .6cqw 1.4cqw); }
.s3__srv > b { padding-top: .4cqw; text-align: center; color: #7BE0A5; font: 700 2.4cqw/1 ui-monospace, Menlo, monospace; }

/* risultati di ricerca, mappa */
.s3__serp { display: grid; gap: 1.8cqw; padding: 2.4cqw; }
.s3__serp-q { display: flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 2cqw; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--c-ink) 14%, transparent); font: 500 2.6cqw/1.2 var(--f-body); color: var(--c-ink); overflow: hidden; }
.s3__serp-q svg { flex: none; width: 3.4cqw; fill: none; stroke: var(--c-primary); stroke-width: 2.6; stroke-linecap: round; }
.s3__serp-r { display: grid; gap: 1.2cqw; }
.s3__res { position: relative; display: flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw; border-radius: 1.6cqw; background: var(--c-surface); }
.s3__res em { flex: none; display: grid; place-items: center; width: 4cqw; height: 4cqw; border-radius: 50%; background: #fff; color: var(--c-muted); font: 700 2.2cqw/1 var(--f-body); font-style: normal; }
.s3__res div { flex: 1; display: grid; gap: .8cqw; min-width: 0; }
.s3__res b { font: 700 2.4cqw/1.1 var(--f-body); color: var(--c-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__res:not(.me) b { width: 50%; height: 2cqw; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 22%, transparent); }
.s3__res span { height: 1.5cqw; width: 80%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 12%, transparent); }
.s3__res.me { z-index: 1; background: color-mix(in oklab, var(--c-primary) 10%, #fff); box-shadow: inset 0 0 0 .4cqw color-mix(in oklab, var(--c-primary) 40%, transparent); animation: s3rank 7s var(--ease) infinite; }
.s3__res.me em { background: var(--c-primary); color: #fff; }
.s3__res.o1, .s3__res.o2 { animation: s3rankb 7s var(--ease) infinite; }
@keyframes s3rank { 0%, 20% { transform: translateY(calc(200% + 2.4cqw)); } 45%, 100% { transform: none; } }
@keyframes s3rankb { 0%, 20% { transform: translateY(calc(-100% - 1.2cqw)); } 45%, 100% { transform: none; } }
.s3__map { position: relative; aspect-ratio: 5 / 4; padding: 0; overflow: hidden; }
.s3__map-bg { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 46%, #fff 46% 51%, transparent 51%), linear-gradient(20deg, transparent 60%, #fff 60% 63%, transparent 63%), linear-gradient(90deg, transparent 28%, #fff 28% 31%, transparent 31%), radial-gradient(circle at 78% 24%, #CFEBD6 0 16%, transparent 16.5%), radial-gradient(circle at 18% 80%, #CFE3F5 0 14%, transparent 14.5%), #ECEFF6; }
.s3__mpin { position: absolute; left: 50%; top: 50%; width: 11cqw; fill: #E3367B; stroke: none; transform: translate(-50%, -100%); animation: s3drop 3.2s var(--ease) infinite; }
.s3__mpin circle { fill: #fff; }
.s3__pulse { position: absolute; left: 50%; top: 50%; width: 10cqw; height: 4cqw; margin: -2cqw 0 0 -5cqw; border-radius: 50%; background: rgba(227, 54, 123, .35); animation: s3ripple 3.2s ease-out infinite; }
.s3__map-l { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 1cqw 2cqw; border-radius: 999px; background: #fff; color: var(--c-ink); font: 700 2.4cqw/1 var(--f-body); white-space: nowrap; box-shadow: 0 1.4cqw 3cqw -1.4cqw rgba(0, 0, 0, .35); }
@keyframes s3drop { 0% { transform: translate(-50%, -190%); opacity: 0; } 15% { opacity: 1; } 30% { transform: translate(-50%, -100%); } 38% { transform: translate(-50%, -114%); } 46%, 100% { transform: translate(-50%, -100%); } }
@keyframes s3ripple { 0%, 30% { transform: scale(.4); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.s3__stars b { color: #F5A623; letter-spacing: .1em; font-family: var(--f-body); }
.s3__stars span { font-weight: 700; }

/* video, foto, grafica, testi */
.s3__video { display: grid; gap: 1.4cqw; padding: 2cqw; }
.s3__vid { position: relative; aspect-ratio: 16 / 9; border-radius: 1.8cqw; overflow: hidden; background: linear-gradient(160deg, #3B1066, var(--c-primary) 60%, #E36FA8); }
.s3__vid svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }
.s3__vid path { fill: rgba(255, 255, 255, .18); }
.s3__play { position: absolute; left: 50%; top: 50%; width: 10cqw; height: 10cqw; margin: -5cqw; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1.6cqw rgba(255, 255, 255, .25); animation: s3pulse 2.4s ease-in-out infinite; }
.s3__play::after { content: ""; position: absolute; left: 40%; top: 30%; border-style: solid; border-width: 2cqw 0 2cqw 3.2cqw; border-color: transparent transparent transparent var(--c-primary); }
.s3__rec { position: absolute; left: 2cqw; top: 2cqw; display: inline-flex; align-items: center; gap: .8cqw; color: #fff; font: 700 2.2cqw/1 ui-monospace, Menlo, monospace; }
.s3__rec::before { content: ""; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #FF3B3B; animation: s3blink 1.2s steps(1) infinite; }
.s3__vbar { height: 1.4cqw; border-radius: 999px; background: var(--c-surface); overflow: hidden; }
.s3__vbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), #E36FA8); transform-origin: left; animation: s3fill 6s linear infinite; }
.s3__vt { display: flex; justify-content: space-between; color: var(--c-muted); font: 700 2.2cqw/1 ui-monospace, Menlo, monospace; }
.s3__photos { position: relative; aspect-ratio: 4 / 3; }
.s3__photo { position: absolute; left: 0; top: 0; width: 82%; height: 82%; padding: 1.6cqw 1.6cqw 5cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 3cqw 6cqw -3cqw color-mix(in oklab, var(--c-deep) 50%, transparent); transform: translate(calc(var(--i) * 4cqw), calc(var(--i) * 2.6cqw)) rotate(var(--r)); }
.s3__photo svg { display: block; width: 100%; height: 100%; border-radius: .8cqw; background: linear-gradient(160deg, color-mix(in oklab, var(--c-secondary) 35%, #fff), #FFD9A8); }
.s3__photo path { fill: color-mix(in oklab, var(--c-primary) 55%, transparent); }
.s3__photo circle { fill: #FFC94D; }
.s3__flash { position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(#fff, transparent 60%); opacity: 0; animation: s3flash 4s ease-out infinite; }
@keyframes s3flash { 0%, 70% { opacity: 0; } 74% { opacity: .95; } 100% { opacity: 0; } }
.s3__art { padding: 2.2cqw; }
.s3__art-c { position: relative; aspect-ratio: 16 / 9; border-radius: 1.4cqw; overflow: hidden; background: repeating-conic-gradient(#F4F1FA 0 25%, #fff 0 50%) 0 0 / 3cqw 3cqw; }
.s3__art-c .c { position: absolute; left: 10%; top: 16%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #E36FA8; animation: s3bob 5s ease-in-out infinite; }
.s3__art-c .r { position: absolute; right: 12%; top: 12%; width: 30%; height: 44%; border-radius: 1.4cqw; background: var(--c-secondary); transform: rotate(8deg); }
.s3__art-c .t { position: absolute; left: 40%; bottom: 10%; width: 0; height: 0; border-left: 6cqw solid transparent; border-right: 6cqw solid transparent; border-bottom: 9cqw solid #FFC94D; }
.s3__art-c svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s3__pen-path { fill: none; stroke: var(--c-ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 140; animation: s3line 5s var(--ease) infinite; }
.s3__sw { display: flex; gap: 1.2cqw; margin-top: 1.6cqw; }
.s3__sw i { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: var(--c-primary); box-shadow: inset 0 0 0 .3cqw rgba(0, 0, 0, .08); }
.s3__sw i:nth-child(2) { background: var(--c-secondary); }
.s3__sw i:nth-child(3) { background: #E36FA8; animation: s3pop 3s var(--ease) infinite; }
.s3__sw i:nth-child(4) { background: #FFC94D; }
.s3__sw i:nth-child(5) { background: #2DBE6C; }
.s3__doc { padding: 2.4cqw; }
.s3__doc-h { display: block; height: 3.2cqw; width: 62%; margin-bottom: 2cqw; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 75%, transparent); }
.s3__doc-l { gap: 1.4cqw; }
.s3__doc-l span { animation-duration: 7s; }

/* email, annuncio, bersaglio */
.s3__mail { position: relative; aspect-ratio: 4 / 3; }
.s3__env-b { position: absolute; inset: 30% 0 0; border-radius: 2cqw; background: color-mix(in oklab, var(--c-primary) 80%, #000); }
.s3__letter { position: absolute; left: 8%; right: 8%; top: 12%; height: 62%; display: grid; gap: 1.2cqw; align-content: start; padding: 2.4cqw; border-radius: 1.6cqw; background: #fff; box-shadow: 0 2cqw 4cqw -2cqw rgba(0, 0, 0, .3); animation: s3letter 5s var(--ease) infinite; }
.s3__letter b { height: 3cqw; width: 60%; border-radius: 1cqw; background: var(--c-primary); }
.s3__letter em { justify-self: start; margin-top: .6cqw; padding: 1cqw 2.4cqw; border-radius: 999px; background: #E36FA8; color: #fff; font: 700 2.2cqw/1 var(--f-body); font-style: normal; }
.s3__env-f { position: absolute; inset: 30% 0 0; border-radius: 2cqw; background: linear-gradient(160deg, var(--c-primary), var(--c-secondary)); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
@keyframes s3letter { 0%, 10% { transform: translateY(32%); } 40%, 85% { transform: translateY(-8%); } 100% { transform: translateY(32%); } }
.s3__ad { display: grid; gap: 1.4cqw; padding: 2cqw; }
.s3__ad .s3__post-h { margin-bottom: 0; }
.s3__ad .s3__post-h em { margin-left: auto; color: var(--c-muted); font: 600 2cqw/1 var(--f-body); font-style: normal; }
.s3__ad-f { display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; }
.s3__ad-f span { flex: 1; height: 1.8cqw; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 14%, transparent); }
.s3__ad-f b { padding: 1.2cqw 2cqw; border-radius: 999px; background: var(--c-primary); color: #fff; font: 700 2.2cqw/1 var(--f-body); white-space: nowrap; animation: s3pulse 3s ease-in-out infinite; }
.s3__target .s3__bull { fill: #E3367B; stroke: none; }
.s3__target .s3__arrow { stroke: var(--c-ink); animation: s3hit 3s var(--ease) infinite; }
@keyframes s3hit { 0% { transform: translate(8px, -8px); opacity: 0; } 20% { opacity: 1; } 40%, 90% { transform: none; opacity: 1; } 100% { opacity: 0; } }

/* etichette, interruttore, aggiornamento */
.s3__tags { display: flex; flex-wrap: wrap; gap: 1.2cqw; }
.s3__tags i { padding: 1.4cqw 2.2cqw; border-radius: 999px; background: #fff; border: 1px solid color-mix(in oklab, var(--c-ink) 12%, transparent); color: var(--c-ink); font: 700 2.6cqw/1 var(--f-body); font-style: normal; box-shadow: 0 2cqw 3cqw -2cqw color-mix(in oklab, var(--c-deep) 40%, transparent); animation: s3tag 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
.s3__tgl { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 2.2cqw 2.6cqw; }
.s3__tgl span { font: 700 2.8cqw/1.1 var(--f-body); color: var(--c-ink); white-space: nowrap; }
.s3__tgl i { position: relative; flex: none; width: 9cqw; height: 5cqw; border-radius: 999px; background: color-mix(in oklab, var(--c-ink) 25%, transparent); animation: s3tglbg 5s var(--ease) infinite; }
.s3__tgl i::after { content: ""; position: absolute; top: .6cqw; left: .6cqw; width: 3.8cqw; height: 3.8cqw; border-radius: 50%; background: #fff; box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .3); animation: s3tgl 5s var(--ease) infinite; }
@keyframes s3tgl { 0%, 30% { transform: none; } 40%, 85% { transform: translateX(4cqw); } 95%, 100% { transform: none; } }
@keyframes s3tglbg { 0%, 30% { background: color-mix(in oklab, var(--c-ink) 25%, transparent); } 40%, 85% { background: #1F9D57; } 95%, 100% { background: color-mix(in oklab, var(--c-ink) 25%, transparent); } }
.s3__upd { display: grid; gap: 1.6cqw; padding: 2.4cqw; }
.s3__upd .s3__chart-h { margin-bottom: 0; }
.s3__prog { height: 1.8cqw; border-radius: 999px; background: var(--c-surface); overflow: hidden; }
.s3__prog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-secondary), var(--c-primary)); transform-origin: left; animation: s3fill 5s var(--ease) infinite; }

/* passi, Europa, squadra */
.s3__steps { position: relative; padding: 3cqw 2.6cqw; }
.s3__steps ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; margin: 0; padding: 0; list-style: none; }
.s3__steps li { display: grid; justify-items: center; gap: 1.4cqw; text-align: center; }
.s3__steps li i { position: relative; z-index: 1; display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; border: .5cqw solid #fff; background: var(--c-surface); color: var(--c-primary); font: 700 3.4cqw/1 var(--f-body); font-style: normal; box-shadow: 0 0 0 .4cqw color-mix(in oklab, var(--c-primary) 25%, transparent); animation: s3step 8s var(--ease) infinite; animation-delay: calc(var(--i) * 1.6s); }
.s3__steps li b { font: 700 2.6cqw/1.1 var(--f-body); color: var(--c-ink); }
.s3__steps-l { position: absolute; left: calc(2.6cqw + (100% - 5.2cqw) * .125); right: calc(2.6cqw + (100% - 5.2cqw) * .125); top: 6.5cqw; height: 1cqw; border-radius: 999px; background: var(--c-surface); }
.s3__steps-l span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); transform-origin: left; animation: s3steps 8s linear infinite; }
@keyframes s3steps { 0% { transform: scaleX(0); } 60%, 90% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes s3step { 0%, 5% { background: var(--c-surface); color: var(--c-primary); } 10%, 70% { background: var(--c-primary); color: #fff; } 90%, 100% { background: var(--c-surface); color: var(--c-primary); } }
.s3__eu { position: relative; aspect-ratio: 1; }
.s3__eu::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; background: radial-gradient(color-mix(in oklab, var(--c-primary) 30%, transparent) 18%, transparent 22%) 0 0 / 3.4cqw 3.4cqw; -webkit-mask: radial-gradient(circle, #000 50%, transparent 72%); mask: radial-gradient(circle, #000 50%, transparent 72%); }
.s3__eu-l { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s3__eu-l path { fill: none; stroke: var(--c-primary); stroke-width: 1.6; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .75; animation: s3flow 1.6s linear infinite; }
.s3__city { position: absolute; display: grid; justify-items: center; gap: .8cqw; transform: translate(-50%, -1.3cqw); }
.s3__city i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--c-secondary); box-shadow: 0 0 0 .8cqw color-mix(in oklab, var(--c-secondary) 20%, transparent); animation: s3glow 3s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
.s3__city b { padding: .6cqw 1.2cqw; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--c-ink); font: 700 2.3cqw/1 var(--f-body); white-space: nowrap; }
.s3__city.hq { z-index: 2; transform: translate(-50%, -2.5cqw); }
.s3__city.hq i { width: 5cqw; height: 5cqw; background: var(--c-primary); box-shadow: 0 0 0 1.6cqw color-mix(in oklab, var(--c-primary) 18%, transparent), 0 0 0 3.2cqw color-mix(in oklab, var(--c-primary) 8%, transparent); animation: s3pulse 2.4s ease-in-out infinite; }
.s3__city.hq b { background: var(--c-primary); color: #fff; font-size: 2.8cqw; }
.s3__team { display: flex; justify-content: center; }
.s3__team i { display: grid; place-items: end center; width: 13cqw; height: 13cqw; margin-left: -3cqw; overflow: hidden; border-radius: 50%; border: .8cqw solid #fff; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 2.4cqw 4cqw -2cqw color-mix(in oklab, var(--c-deep) 50%, transparent); animation: s3bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
.s3__team i:first-child { margin-left: 0; }
.s3__team svg { width: 80%; fill: rgba(255, 255, 255, .92); stroke: none; }

/* prodotti */
.s3__gantt { position: relative; display: grid; gap: 1.2cqw; padding: 2.4cqw; }
.s3__gantt .s3__bar { margin-bottom: .6cqw; }
.s3__gr { display: grid; grid-template-columns: 12cqw 1fr; gap: 1.4cqw; align-items: center; }
.s3__gr b { font: 600 2.2cqw/1 var(--f-body); color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3__gr span { position: relative; height: 3.4cqw; border-radius: 1cqw; background: repeating-linear-gradient(90deg, var(--c-surface) 0 calc(20% - 1px), color-mix(in oklab, var(--c-ink) 10%, transparent) 0 20%); }
.s3__gr i { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: 1cqw; background: var(--c-primary); transform-origin: left; animation: s3fill 6s var(--ease) infinite; animation-delay: calc(var(--i) * .25s); }
.s3__gr i.b { background: var(--c-secondary); }
.s3__gr i.c { background: #E36FA8; }
.s3__today { position: absolute; top: 8cqw; bottom: 2cqw; left: 58%; width: .5cqw; border-radius: 999px; background: #E3367B; animation: s3today 8s ease-in-out infinite; }
@keyframes s3today { 0%, 100% { transform: translateX(-6cqw); } 50% { transform: translateX(6cqw); } }
.s3__checks { display: grid; gap: 1.3cqw; padding: 2.4cqw; }
.s3__checks .s3__chart-h { margin-bottom: .2cqw; }
.s3__ck { display: flex; align-items: center; gap: 1.6cqw; animation: s3row 7s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }
.s3__ck i { flex: none; display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; color: #fff; font: 700 2.4cqw/1 var(--f-body); font-style: normal; }
.s3__ck.ok i { background: #2DBE6C; } .s3__ck.ok i::after { content: "✓"; }
.s3__ck.warn i { background: #F0A010; } .s3__ck.warn i::after { content: "!"; }
.s3__ck.err i { background: #E5484D; } .s3__ck.err i::after { content: "×"; }
.s3__ck span { height: 1.8cqw; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 15%, transparent); }
.s3__files { display: grid; gap: 1.2cqw; padding: 2.4cqw; }
.s3__files .s3__chart-h { margin-bottom: .2cqw; }
.s3__fl { display: flex; align-items: center; gap: 1.4cqw; padding: 1.2cqw 1.4cqw; border-radius: 1.4cqw; background: var(--c-surface); animation: s3row 7s var(--ease) infinite; animation-delay: calc(var(--i) * .4s); }
.s3__fl i { flex: none; width: 3.4cqw; height: 4.2cqw; border-radius: .6cqw; background: linear-gradient(160deg, var(--c-secondary), var(--c-primary)); clip-path: polygon(0 0, 70% 0, 100% 28%, 100% 100%, 0 100%); }
.s3__fl span { flex: 1; height: 1.8cqw; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 15%, transparent); }
.s3__fl b { color: var(--c-primary); font: 700 2.2cqw/1 ui-monospace, Menlo, monospace; }
.s3__shield { position: relative; aspect-ratio: 1; filter: drop-shadow(0 4cqw 5cqw color-mix(in oklab, var(--c-deep) 45%, transparent)); }
.s3__shield svg { width: 100%; overflow: visible; }
.s3__sh { fill: var(--c-primary); stroke: color-mix(in oklab, var(--c-secondary) 60%, #fff); stroke-width: .8; }
.s3__lk { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.s3__shield::after { content: ""; position: absolute; inset: 18%; z-index: -1; border-radius: 50%; box-shadow: 0 0 9cqw 1cqw color-mix(in oklab, var(--c-secondary) 55%, transparent); animation: s3glow 3.5s ease-in-out infinite; }
.s3__wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.s3__win { display: grid; justify-items: start; gap: 1.4cqw; padding: 2.8cqw 2.4cqw; animation: s3bob 5s ease-in-out infinite; }
.s3__win:nth-child(2) { animation-delay: -1.6s; } .s3__win:nth-child(3) { animation-delay: -3.2s; }
.s3__win svg { width: 8cqw; height: 8cqw; padding: 1.6cqw; border-radius: 2cqw; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s3__win b { font-family: var(--f-display); font-weight: var(--w-display); font-size: 3cqw; line-height: 1.1; color: var(--c-ink); }
.s3__win span { height: 1.6cqw; width: 90%; border-radius: 1cqw; background: color-mix(in oklab, var(--c-ink) 13%, transparent); }
.s3__win span + span { width: 60%; }
@media (prefers-reduced-motion: reduce) {
  .s3 *, .s3 *::before, .s3 *::after { animation: none !important; }
}
.prose .s3 li { margin: 0; }
.prose .s3 ol, .prose .s3 ul { padding: 0; }
.prods > * { min-width: 0; }
.pb table { display: table; table-layout: auto; overflow-wrap: anywhere; }