/* Lorenzo Zugaro — portfolio (mobile first)
   Passo 2: anello di card in vetro attorno alla figura, all'altezza collo-petto.
   Passo 3: logo e menu a scomparsa in alto, frase di sfondo, pulsante Contatti.
   Livelli: frase di sfondo < card dietro < foto < card davanti < barra in alto < menu. */

:root {
  --bg: #ffffff;
  --fg: #0d0d0f;
  --muted: #6e6e75;
  --glass: rgba(255, 255, 255, .42);
  --glass-edge: rgba(255, 255, 255, .85);
  --accent: #45b649;
  --accent-2: #1f8a2c;
  --accent-ink: #1f6b2a;      /* testo colorato su fondo chiaro */
  /* tre macchie di colore sfumate sullo sfondo (trasparenti nella versione originale) */
  --aura-1: transparent;
  --aura-2: transparent;
  --aura-3: transparent;
  color-scheme: light;

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* carattere secondario: lo stesso principale (niente spaziatura fissa); le etichette sono in maiuscolo, più marcate e spaziate */
  --font-mono: var(--font-ui);

  /* misure su smartphone (375 px) */
  --photo-w: min(78vw, 320px, (100svh - 296px) * .667);   /* 28px tenuti liberi in basso per Privacy · Info aziendali */
  --card-w: 112px;
  --card-h: 140px;
  --orbit-y: 69%;            /* altezza del centro dell'anello sulla foto: tra collo e petto */
  --bar-h: 60px;
  --gx: max(16px, env(safe-area-inset-left, 0px));
  --gx-r: max(16px, env(safe-area-inset-right, 0px));
  --backdrop: #ececee;       /* grigio chiaro della frase di sfondo */
}
/* sfondo sempre bianco, anche se il telefono/computer è in modalità scura */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(48vmax 40vmax at 10% 15%, var(--aura-1), transparent 72%),
    radial-gradient(46vmax 42vmax at 95% 35%, var(--aura-2), transparent 72%),
    radial-gradient(52vmax 38vmax at 45% 105%, var(--aura-3), transparent 72%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- barra in alto: logo a sinistra, menu a destra ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: var(--gx);
  padding-right: var(--gx-r);
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.025em;
  color: var(--fg);
  text-decoration: none;
}
.burger {
  width: 44px; height: 44px;
  margin-right: -10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--fg);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }
.logo:focus-visible, .burger:focus-visible, .menu a:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

/* ---------- menu a scomparsa ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: var(--gx);
  padding-right: var(--gx-r);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  opacity: 0;
  transition: opacity .3s ease;
}
.menu[hidden] { display: none; }        /* chiuso: non deve coprire la pagina */
.menu.is-open { opacity: 1; }
.menu__list { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 560px; }
.menu__list li {
  border-bottom: 1px solid rgba(13, 13, 15, .08);
  transform: translateY(12px); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s;
  transition-delay: calc(var(--i, 0) * 40ms);
}
.menu.is-open .menu__list li { transform: none; opacity: 1; }
.menu__list a {
  display: block;
  padding: 14px 0;
  color: var(--fg);
  text-decoration: none;
  font-size: clamp(26px, 8vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.menu__area {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
body.menu-open { overflow: hidden; }

/* ---------- scena ---------- */
.scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;                 /* le card laterali non creano scorrimento orizzontale */
  padding-left: var(--gx);
  padding-right: var(--gx-r);
  padding-block: calc(var(--bar-h) + env(safe-area-inset-top, 0px)) calc(48px + env(safe-area-inset-bottom, 0px));
  touch-action: pan-y;              /* lo scorrimento orizzontale col dito muove le card */
  user-select: none;
  -webkit-user-select: none;
}

/* frase di sfondo: grande, grigio chiaro, dietro a tutto */
/* ogni riga viene allargata da js/main.js fino a riempire la larghezza (blocco giustificato) */
.backdrop {
  position: absolute;
  left: 50%;
  top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 8px);
  transform: translateX(-50%);
  width: calc(100% - var(--gx) - var(--gx-r));
  max-width: 1180px;
  z-index: 0;
  margin: 0;
  text-align: center;
  font-weight: 900;
  font-size: 40px;                   /* valore di partenza, poi adattato riga per riga */
  line-height: .86;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--backdrop);
  pointer-events: none;
}
.backdrop span { display: block; white-space: nowrap; width: max-content; margin-inline: auto; }

/* frase sotto l'anello: cosa faccio, in una riga */
.tagline {
  position: relative;
  z-index: 35;
  margin: 30px 0 0;                    /* più staccata dalle card */
  max-width: 30ch;
  text-align: center;
  font-size: clamp(17px, 4.6vw, 24px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-wrap: balance;
  color: var(--fg);
}

/* Contatti con le icone di LinkedIn e Instagram accanto */
.cta-row { position: relative; z-index: 35; display: inline-flex; }   /* largo quanto il pulsante: resta al centro */
/* le icone stanno a destra del pulsante senza spostarlo dal centro */
.socials { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); display: flex; }
.social {
  /* icone semplici, piccole e grigie: non rubano la scena al pulsante e alla frase */
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease;
}
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social svg.ig { fill: none; stroke: currentColor; stroke-width: 2; }
.social svg.ig .ig__dot { fill: currentColor; stroke: none; }
.social:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .social:hover { color: var(--fg); } }

/* pulsante Contatti sotto l'anello */
.cta {
  position: relative;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  background: linear-gradient(150deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px -12px rgba(13,13,15,.35), inset 0 0 0 1px rgba(13,13,15,.07);
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:active { transform: scale(.97); }
@media (hover: hover) {
  .cta:hover { box-shadow: 0 16px 32px -12px rgba(13,13,15,.45), inset 0 0 0 1px rgba(13,13,15,.12); }
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent), var(--accent-2));
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .menu, .menu__list li, .burger span { transition: none; }
}

.figure {
  position: relative;
  z-index: 1;
  width: var(--photo-w);
  max-width: 100%;
  isolation: isolate;               /* livello unico: card dietro < foto < card davanti */
}
.photo {
  position: relative;
  z-index: 20;                      /* card dietro: 1-19 · card davanti: 21-40 */
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  filter: drop-shadow(0 20px 26px rgba(13, 13, 15, .14));
  pointer-events: none;
  -webkit-user-drag: none;
  /* la foto sfuma nel bianco in basso invece di finire con un taglio dritto */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

/* foto alternativa che compare sopra la principale quando cambia la card davanti */
.photo--over {
  position: absolute; left: 0; top: 0;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.photo--over.is-on { opacity: 1; transform: none; }
.photo.is-under:not(.photo--over) { opacity: 0; }
.photo:not(.photo--over) { transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) { .photo--over { transition: none; } }

/* ombra a terra sotto l'anello: dà l'idea che le card galleggino */
.ground {
  position: absolute;
  left: 50%;
  top: calc(var(--orbit-y) + var(--card-h, 140px) * .62);
  width: calc(var(--ring-w, 360px) * 1.05);
  height: calc(var(--card-h, 140px) * .42);
  transform: translate(-50%, -50%);
  z-index: 25;                       /* sopra la foto, sotto le card davanti */
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(69 182 73 / .38), rgb(69 182 73 / .16) 55%, transparent 100%);
  filter: blur(14px);
  opacity: .9;
}
html.intro .ground { opacity: 0; transition: opacity .7s ease; }
html.intro.p4 .ground { opacity: .9; }

/* ---------- anello (cilindro 3D) ----------
   Due livelli con la stessa prospettiva: le card della metà posteriore stanno nel
   livello sotto la foto, quelle della metà anteriore nel livello sopra.
   Ogni card è tangente al cilindro: rotateX(inclinazione) rotateY(angolo) translateZ(raggio). */
.orbit { display: contents; }
.layer {
  position: absolute;
  left: 50%;
  top: var(--orbit-y);
  width: 0;
  height: 0;
  perspective: var(--persp, 900px);
}
.layer--back  { z-index: 1; }
.layer--front { z-index: 30; }
.card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  margin-top: calc(var(--card-h) / -2);
  padding: 12px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;             /* titolo al centro della card */
  text-align: center;
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
  background:
    linear-gradient(150deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.52) 55%, rgba(255,255,255,.64) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(140%) brightness(1.12);
  backdrop-filter: blur(12px) saturate(140%) brightness(1.12);
  border: 1px solid var(--glass-edge);
  /* ombra a strati: una stretta e scura vicino alla card, poi sempre più larga e morbida,
     come la luce vera. --d (0 dietro → 1 davanti) la rende più forte sulle card vicine. */
  --d: 1;
  box-shadow:
    0 1px 2px rgb(16 60 24 / calc(.10 * var(--d))),
    0 4px 8px -2px rgb(40 130 50 / calc(.16 * var(--d))),
    0 12px 22px -8px rgb(69 182 73 / calc(.26 * var(--d))),
    0 30px 50px -18px rgb(69 182 73 / calc(.42 * var(--d))),
    0 50px 80px -30px rgb(130 210 110 / calc(.30 * var(--d))),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -14px 24px -16px rgb(69 182 73 / .22),
    inset 0 0 0 1px rgb(69 182 73 / .10);
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.card::after {                       /* riflesso di luce */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.55) 0%, transparent 38%);
  pointer-events: none;
}
.card__area {
  position: absolute;                  /* etichetta in alto, centrata */
  left: 8px; right: 8px; top: 10px;
  margin: 0;
  text-align: center;
  line-height: 1.25;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__title {
  margin: 0;
  max-width: 100%;
  overflow-wrap: normal;               /* mai parole spezzate: se serve, js/home.js riduce il carattere */
  word-break: keep-all;
  hyphens: none;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.card__arrow {
  position: absolute;                  /* freccia in basso, centrata */
  left: 50%; bottom: 9px;
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 1;
  opacity: .5;
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.card.is-front { cursor: pointer; }

.scene.is-dragging .card { cursor: grabbing; }

/* tablet */
@media (min-width: 768px) {
  :root { --photo-w: min(420px, (100svh - 326px) * .667); --bar-h: 72px; --gx: max(32px, env(safe-area-inset-left, 0px)); --gx-r: max(32px, env(safe-area-inset-right, 0px)); }
  .logo { font-size: 20px; }
  .card { padding: 14px 9px; border-radius: 16px; }
  .card__area { font-size: 10px; }
  .card__title { font-size: 19px; }
}
/* desktop */
@media (min-width: 1100px) {
  :root { --photo-w: min(480px, (100svh - 338px) * .667); }
  .scene { gap: 26px; }
  .card { padding: 16px 9px; }
  .card__title { font-size: 22px; }
  @media (hover: hover) {
    .card:hover {
      box-shadow:
        0 1px 2px rgb(16 60 24 / .12),
        0 6px 12px -3px rgb(40 130 50 / .2),
        0 16px 28px -8px rgb(69 182 73 / .32),
        0 36px 60px -18px rgb(69 182 73 / .5),
        0 60px 90px -30px rgb(130 210 110 / .36),
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -14px 24px -16px rgb(69 182 73 / .26),
        inset 0 0 0 1px rgb(69 182 73 / .16);
    }
  }
}


/* =====================================================================
   APERTURA ANIMATA DELLA HOME (js/intro.js)
   sale la foto, si apre il cilindro di card, poi barra in alto e Contatti
   Gira una volta per visita; si salta con un tocco, un clic o un tasto.
   ===================================================================== */
html.intro .backdrop {
  color: var(--fg);
  transform: translateX(-50%) translateY(var(--intro-dy, 0px));
  transition: transform 1.1s cubic-bezier(.65,0,.25,1), color 1.1s ease;
}
html.intro .backdrop span {
  clip-path: inset(0 0 100% 0);
  transform: translateY(.3em);
  transition: clip-path .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
html.intro .backdrop span:nth-child(2) { transition-delay: .14s; }
html.intro .backdrop span:nth-child(3) { transition-delay: .28s; }
html.intro .backdrop span:nth-child(4) { transition-delay: .42s; }
html.intro.p1 .backdrop span { clip-path: inset(-20% -5% -20% -5%); transform: none; }
html.intro.p2 .backdrop { color: var(--backdrop); transform: translateX(-50%); }

html.intro .photo:not(.photo--over) {
  opacity: 0;
  transform: translateY(7%) scale(.97);
  filter: blur(14px) drop-shadow(0 20px 26px rgba(13, 13, 15, .14));
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.8,.2,1), filter 1s ease;
}
html.intro.p3 .photo:not(.photo--over) { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 20px 26px rgba(13, 13, 15, .14)); }

html.intro .layer { opacity: 0; transition: opacity .7s ease; }
html.intro.p4 .layer { opacity: 1; }

html.intro .topbar, html.intro .cta-row, html.intro .tagline { opacity: 0; transition: opacity .7s ease; }
html.intro .cta-row, html.intro .tagline { transform: translateY(10px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.intro.p5 .topbar, html.intro.p5 .cta-row, html.intro.p5 .tagline { opacity: 1; }
html.intro.p5 .cta-row, html.intro.p5 .tagline { transform: none; }

/* salto: tutto al suo posto senza transizioni */
html.intro-skip *, html.intro-skip *::before { transition: none !important; }

.skip {
  position: fixed;
  right: var(--gx-r);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  min-height: 36px; padding: 8px 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--font-ui); color: var(--fg);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(13,13,15,.1);
  transition: opacity .4s;
}
.skip:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* etichette piccole in maiuscolo: stesso carattere dei testi, più marcate e spaziate */
:root :is(.card__area, .menu__area, .crumb, .label, .offer__area, .fact__k, .price span, .way__k, .kicker, .result__k, .qmodal__count, .start__meta, .work__kind, .chat__k, .sheet__k, .mark__tag, .qprev__top, .row--head) {
  font-weight: 600; letter-spacing: .06em;
}

/* ---------- Privacy · Info aziendali, in basso al centro ---------- */
.legal {
  position: fixed; z-index: 45;
  left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; color: var(--muted);
}
.legal a, .legal button {
  font: inherit; color: inherit; text-decoration: none; background: none; border: 0; padding: 6px 2px; cursor: pointer;
}
.legal a:hover, .legal button:hover { color: var(--fg); }
.legal a:focus-visible, .legal button:focus-visible { outline: 2px solid #1f8a2c; outline-offset: 2px; border-radius: 4px; }
html.intro .legal { opacity: 0; transition: opacity .7s ease; }
html.intro.p5 .legal { opacity: 1; }

.infobox {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px var(--gx-r) calc(52px + env(safe-area-inset-bottom, 0px)) var(--gx);
  background: rgba(241, 241, 242, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s ease;
}
.infobox[hidden] { display: none; }
.infobox.is-open { opacity: 1; }
.infobox__card {
  width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto;
  border-radius: 22px; padding: 22px 20px 18px;
  transform: translateY(10px); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.infobox.is-open .infobox__card { transform: none; }
.infobox .shbox__x {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--muted); background: rgba(13,13,15,.05); cursor: pointer;
}
.infobox .scheda__k { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1f8a2c; }
.infobox__t { margin: 6px 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.infobox__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; line-height: 1.4; }
.infobox__dl dt { color: var(--muted); }
.infobox__dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.infobox__dl a, .infobox .sh-note a { color: inherit; }
.infobox .sh-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
/* vetro argento anche nella home, che non carica ring-page.css */
.infobox__card { background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(255,255,255,.78));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 2px 4px rgb(16 60 24 / .06), 0 24px 50px -24px rgb(69 182 73 / .35), inset 0 0 0 1px rgba(13,13,15,.07); position: relative; }
@media (prefers-reduced-motion: reduce) { .infobox, .infobox__card { transition: none; } }

/* ---------- i "poteri": icone di vetro alle spalle della foto (solo home) ---------- */
.powers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }   /* sotto le card dietro e sotto la foto */
.power {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--photo-w) * var(--s, .62)); height: auto;
  translate: -50% -50%;
  user-select: none; -webkit-user-drag: none;
  animation: powerFloat var(--t, 7s) ease-in-out var(--dl, 0s) infinite;
}
.power--1 { --x: 13%; --y: 15%; --s: .5;  --t: 7s;   --dl: -1s; }   /* sito: in alto a sinistra */
.power--2 { --x: 88%; --y: 13%; --s: .44; --t: 6.2s; --dl: -3s; }   /* grafica: in alto a destra */
.power--3 { --x: 5%;  --y: 40%; --s: .42; --t: 8s;   --dl: -2s; }   /* IA: a sinistra, sopra le card */
.power--4 { --x: 96%; --y: 38%; --s: .46; --t: 7.4s; --dl: -5s; }  /* documenti: a destra */
@keyframes powerFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (min-width: 768px) {
  .power--1 { --x: -2%; --y: 17%; --s: .6; }
  .power--2 { --x: 102%; --y: 13%; --s: .52; }
  .power--3 { --x: -16%; --y: 45%; --s: .5; }
  .power--4 { --x: 116%; --y: 42%; --s: .56; }
}
@media (prefers-reduced-motion: reduce) { .power { animation: none; } }
/* apertura: compaiono dietro la foto subito dopo di lei, uno alla volta */
html.intro .power { opacity: 0; scale: .6; transition: opacity .7s ease, scale .9s cubic-bezier(.2,.9,.25,1.2); }
html.intro.p3 .power { opacity: 1; scale: 1; }
html.intro.p3 .power--1 { transition-delay: .45s; }
html.intro.p3 .power--2 { transition-delay: .6s; }
html.intro.p3 .power--3 { transition-delay: .75s; }
html.intro.p3 .power--4 { transition-delay: .9s; }
