:root {
  --fx-ease-out: cubic-bezier(.16, 1, .3, 1);
  --fx-ease-io: cubic-bezier(.76, 0, .24, 1);
}
html.fx-precarica::after,
html.fx-coperta::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  animation: fx-salvavita .4s 3s forwards;
}
html.fx-precarica::after { background: var(--antracite); }
html.fx-coperta::after { background: var(--verde); }
@keyframes fx-salvavita { to { opacity: 0; visibility: hidden; } }
.fx-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html.fx-blocco, html.fx-blocco body { overflow: hidden; }
.fx-pre {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  pointer-events: none;
}
.fx-pre__pan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--antracite);
  color: var(--verde);
}
.fx-pre__in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.2vw, 36px);
}
.fx-pre__par {
  display: block;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(104px, 30vh, 340px);
  line-height: .8;
  transform: translateY(-.05em);
}
.fx-pre__segno { display: block; width: clamp(62px, 12.5vh, 148px); }
.fx-pre__segno svg { display: block; width: 100%; height: auto; overflow: visible; }
.fx-pre__segno path { transform-box: fill-box; transform-origin: 50% 50%; }
.fx-pre__ast { display: block; font: 600 clamp(80px, 18vh, 200px)/.8 var(--f-sans); text-align: center; }
.fx-pre__num {
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  bottom: clamp(22px, 5vh, 60px);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 128px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.fx-pre__linea {
  position: absolute;
  left: clamp(16px, 4vw, 64px);
  right: clamp(16px, 4vw, 64px);
  bottom: clamp(12px, 2.6vh, 30px);
  height: 1px;
  background: color-mix(in srgb, var(--lavanda) 28%, transparent);
}
.fx-pre__linea i {
  position: absolute;
  inset: 0;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.fx-tenda {
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  visibility: hidden;
  pointer-events: none;
}
.fx-tenda.fx-attiva { visibility: visible; }
.fx-tenda__pan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--verde);
  color: var(--antracite);
}
.fx-tenda__logo { width: min(60vw, 520px); }
.fx-tenda__logo svg { display: block; width: 100%; height: auto; overflow: hidden; }
.fx-tenda__logo path {
  transform-box: fill-box;
  transform: translateY(118%);
  transition: transform .4s var(--fx-ease-out);
  transition-delay: calc(.04s + var(--i, 0) * .03s);
}
.fx-tenda--logo .fx-tenda__logo path { transform: none; }
.fx-tenda--subito .fx-tenda__logo path { transition: none; }
.fx-tenda__testo { font: 600 clamp(40px, 9vw, 120px)/1 var(--f-sans); letter-spacing: .02em; }
.fx-bordo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; pointer-events: none; }
.fx-bordo path { fill: none; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.fx-pre .fx-bordo path { stroke: var(--verde); }
.fx-tenda .fx-bordo path { stroke: var(--antracite); }
html.fx-cursore,
html.fx-cursore * { cursor: url("../assets/svg/cursore.svg") 12 12, default !important; }
html.fx-cursore :is(input:not([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="image"]), textarea, [contenteditable]:not([contenteditable="false"])),
html.fx-cursore :is(input:not([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="image"]), textarea, [contenteditable]:not([contenteditable="false"])) * { cursor: text !important; }
html.fx-cursore select { cursor: default !important; }
.cur {
  --cur-c: var(--verde);
  --cur-t: var(--antracite);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483600;
  pointer-events: none;
}
.cur[data-tema="verde"],
.cur[data-tema="chiaro"] { --cur-c: var(--antracite); --cur-t: var(--verde); }
.cur[data-tema="oliva"] { --cur-c: var(--bianco); --cur-t: var(--antracite); }
.cur-anello,
.cur-onda {
  position: fixed;
  left: 0;
  top: 0;
  will-change: transform;
  transition: opacity .25s ease;
}
.cur-anello { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cur-anello > i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--cur-c);
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cur-t) 22%, transparent);
  transition: transform .35s var(--fx-ease-out), background-color .25s, border-color .25s;
}
.cur-onda { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1.5px solid var(--cur-c); animation: cur-onda .55s var(--fx-ease-out) forwards; }
@keyframes cur-onda { from { opacity: .9; scale: .4; } to { opacity: 0; scale: 1.9; } }
.cur-etichetta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cur-t);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s, transform .45s var(--fx-ease-out);
}
.cur--link .cur-anello > i { transform: scale(1.5); background: color-mix(in srgb, var(--cur-c) 16%, transparent); }
.cur--etichetta .cur-anello > i { transform: scale(2.25); background: var(--cur-c); border-color: transparent; }
.cur--etichetta .cur-etichetta { opacity: 1; transform: none; }
.cur--giu .cur-anello > i { transform: scale(.78); }
.cur--giu.cur--link .cur-anello > i { transform: scale(1.25); }
.cur--giu.cur--etichetta .cur-anello > i { transform: scale(2); }
.cur--spento .cur-anello,
.cur--fuori .cur-anello,
.cur--testo .cur-anello { opacity: 0; }
.fx-w { display: inline-block; clip-path: inset(-.4em -.3em -.2em -.3em); }
.fx-split.fx-fatto .fx-w { clip-path: none; }
.fx-ch { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js [data-fx~="split"]:not(.fx-split) { visibility: hidden; }
  html.js:not(.fx-on) [data-fx~="split"] { animation: fx-salva-vis 0s 3s forwards; }
  html.js .fx-split .fx-ch {
    opacity: 0;
    transform: translate3d(0, 112%, 0) rotate(7deg);
    transform-origin: 0 100%;
    transition: transform 1s var(--fx-ease-out), opacity .45s linear;
    transition-delay: calc(var(--fx-d, 0s) + var(--i, 0) * var(--fx-passo, 24ms));
  }
  html.js .fx-split.fx-in .fx-ch { opacity: 1; transform: none; }
}
@keyframes fx-salva-vis { to { visibility: visible; } }
@media (prefers-reduced-motion: no-preference) {
  html.js [data-fx~="reveal"] { --fx-rv: 0; --fx-clip: initial; }
  html.js [data-fx~="reveal"].fx-in { --fx-rv: 1; }
  html.js [data-fx~="reveal"].fx-fatto { --fx-clip: none; }
  html.js:not(.fx-on) [data-fx~="reveal"] { animation: fx-salva-rv 0s 3s forwards; }
  html.js :is([data-fx~="reveal"][data-reveal="clip"], [data-fx~="reveal"][data-reveal="wipe"], [data-fx~="reveal"]:not([data-reveal]):has(img, video, picture, canvas)) > * {
    clip-path: var(--fx-clip, inset(calc((1 - var(--fx-rv)) * 100%) 0 0 0));
    transition: clip-path 1.2s var(--fx-ease-io) calc(var(--fx-d, 0s) + var(--fx-d2, 0s));
  }
  html.js :is([data-fx~="reveal"][data-reveal="clip"], [data-fx~="reveal"][data-reveal="wipe"], [data-fx~="reveal"]:not([data-reveal]):has(img, video, picture, canvas)) :is(img, video) {
    scale: calc(1.16 - var(--fx-rv) * .16);
    transition: scale 1.8s var(--fx-ease-out) calc(var(--fx-d, 0s) + var(--fx-d2, 0s));
  }
  html.js [data-fx~="reveal"][data-reveal="wipe"] { --fx-d2: .45s; position: relative; }
  html.js [data-fx~="reveal"][data-reveal="wipe"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--fx-passata, var(--verde));
    transform: scaleY(0);
    transform-origin: 50% 100%;
  }
  html.js [data-fx~="reveal"][data-reveal="wipe"].fx-in::after { animation: fx-passata 1.15s var(--fx-ease-io) var(--fx-d, 0s) both; }
  html.js :is([data-fx~="reveal"][data-reveal="fade"], [data-fx~="reveal"]:not([data-reveal]):not(:has(img, video, picture, canvas))) > * {
    opacity: var(--fx-rv);
    translate: 0 calc((1 - var(--fx-rv)) * 36px);
    transition: opacity .9s ease, translate 1.1s var(--fx-ease-out);
    transition-delay: calc(var(--fx-d, 0s) + var(--fx-k, 0) * 90ms);
  }
}
@keyframes fx-salva-rv { to { --fx-rv: 1; } }
@keyframes fx-passata {
  0% { transform: scaleY(0); transform-origin: 50% 100%; }
  42% { transform: scaleY(1); transform-origin: 50% 100%; }
  50% { transform: scaleY(1); transform-origin: 50% 0%; }
  100% { transform: scaleY(0); transform-origin: 50% 0%; }
}
.fx-num { font-variant-numeric: tabular-nums; }
:where([data-fx~="marquee"]) { overflow: hidden; }
.fx-mq { white-space: nowrap; }
.fx-mq__track { display: flex; width: max-content; will-change: transform; }
.fx-mq__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--mq-gap, 0px);
  padding-right: var(--mq-gap, 0px);
}
.fx-pin { position: relative; height: calc(100vh * (1 + var(--pin-len, 1))); }
.fx-pin > .fx-pin__in { position: sticky; top: 0; height: 100vh; height: 100svh; }
:where(.fx-pin > .fx-pin__in) { overflow: clip; }
:where([data-fx~="hscroll"]) [data-hs="track"] {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
:where([data-fx~="hscroll"]) [data-hs="track"]::-webkit-scrollbar { display: none; }
:where([data-fx~="hscroll"]) [data-hs="track"] > * { flex: 0 0 auto; scroll-snap-align: start; }
.fx-hs--pin { position: relative; }
.fx-hs--pin .fx-hs__frame { position: sticky; top: 0; height: 100vh; overflow: clip; }
:where(.fx-hs--pin .fx-hs__frame) { display: flex; flex-direction: column; justify-content: center; }
.fx-hs--pin .fx-hs__track { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }
:where(.hdr[data-fx-tema="scuro"]) { --hdr-fg: var(--bianco); --hdr-accento: var(--verde); }
:where(.hdr[data-fx-tema="oliva"]) { --hdr-fg: var(--bianco); --hdr-accento: var(--verde); }
:where(.hdr[data-fx-tema="verde"]) { --hdr-fg: var(--antracite); --hdr-accento: var(--antracite); }
:where(.hdr[data-fx-tema="chiaro"]) { --hdr-fg: var(--antracite); --hdr-accento: var(--antracite); }
@media (prefers-reduced-motion: reduce) {
  .fx-pre, .fx-tenda, .cur { display: none !important; }
}
@media print {
  .fx-pre, .fx-tenda, .cur { display: none !important; }
  [data-fx] * { clip-path: none !important; opacity: 1 !important; transform: none !important; translate: none !important; }
}
