/* Library tokens mapped to Webflow Variables, with fallbacks */
:host,
:host {
  --hu-color-foreground: var(--huniverse--foreground, #140240);
  --hu-color-primary: var(--huniverse--primary-base, #642ece);
  --hu-color-white: var(--huniverse--white, #ffffff);
  --hu-color-secondary: var(--huniverse--secondary, #f3f5fb);
  --hu-color-accent-soft: var(--_design-tokens---colors--accent--soft, #e8deff);
  --hu-color-accent-faint: var(--_design-tokens---colors--accent--faint, #fdf1ff);
  --hu-color-text-muted: var(--_design-tokens---colors--text--muted, #7b7a8e);
  --hu-color-border-default: var(--_design-tokens---colors--border--default, #d9d9d9);
  --hu-color-border-input: var(--_design-tokens---colors--border--input, #e4e6f0);

  --hu-font-body: var(--_design-tokens---typography--body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif);

  --hu-nav-height: var(--_design-tokens---size--80, 80px);

  --hu-radius-6: var(--_design-tokens---radius--6, 6px);
  --hu-radius-16: var(--_design-tokens---radius--16, 16px);
  --hu-radius-20: var(--_design-tokens---radius--20, 20px);
  --hu-duration-fast: 160ms;
  --hu-duration-state: 320ms;
  --hu-duration-slow: 420ms;
  --hu-ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);

  --hu-shadow-panel:
    0 60px 120px -70px color-mix(in srgb, var(--hu-color-foreground) 50%, transparent),
    0 24px 48px -36px color-mix(in srgb, var(--hu-color-foreground) 20%, transparent);
  --hu-shadow-panel-hero:
    0 80px 160px -80px color-mix(in srgb, var(--hu-color-foreground) 50%, transparent),
    0 30px 60px -40px color-mix(in srgb, var(--hu-color-foreground) 24%, transparent),
    0 0 0 1px color-mix(in srgb, var(--hu-color-foreground) 3%, transparent);

  /* Product-only colors */
  --hu-product-fit-mid: var(--hv-success, #1d7a55);
  --hu-product-fit-mid-fg: var(--hv-success, #176b4a);
  --hu-product-area-adattamento: #c4761a;
}

/* Fills its container; min-height comes from the minHeightVh prop */
.Nvcge4RAlE1_u0OYgo1t {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: var(--hu-topography-min-height, 100svh);
  /* No overflow: it would clip enlarged slot text */
  background: var(--hu-topography-bg);

  /* Theme colors follow the inherited color-scheme, so the server markup is already right */
  --hu-topography-bg: var(--hu-topography-bg-light, #ffffff);
  --hu-torch-color: var(--hu-torch-color-light, #ffffff);
  --hu-grid-color: var(--hu-grid-line-light, transparent);
}

@supports (color: light-dark(#000, #fff)) {
  .Nvcge4RAlE1_u0OYgo1t {
    --hu-topography-bg: light-dark(var(--hu-topography-bg-light, #ffffff), var(--hu-color-white));
    --hu-torch-color: light-dark(var(--hu-torch-color-light, #ffffff), var(--hu-color-white));
    --hu-grid-color: light-dark(var(--hu-grid-line-light, transparent), var(--hu-grid-line-dark, transparent));
  }
}

/* Same, for browsers without light-dark(), once the theme is read */
.Nvcge4RAlE1_u0OYgo1t[data-tema="scuro"] {
  --hu-topography-bg: var(--hu-color-white);
  --hu-torch-color: var(--hu-color-white);
  --hu-grid-color: var(--hu-grid-line-dark, transparent);
}

/* Canvas layer faded on all four edges, more at the top */
.YQt2Poc_s4xuiFofOyd_ {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;

  --hu-canvas-mask:
    linear-gradient(
      to right,
      rgb(0 0 0 / 0) 0%,
      rgb(0 0 0) var(--hu-canvas-fade, 25%),
      rgb(0 0 0) calc(100% - var(--hu-canvas-fade, 25%)),
      rgb(0 0 0 / 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgb(0 0 0 / 0) 0%,
      rgb(0 0 0) var(--hu-canvas-fade-top, 38%),
      rgb(0 0 0) calc(100% - var(--hu-canvas-fade, 25%)),
      rgb(0 0 0 / 0) 100%
    );

  -webkit-mask-image: var(--hu-canvas-mask);
  -webkit-mask-composite: source-in;
  mask-image: var(--hu-canvas-mask);
  mask-composite: intersect;
}

.v4UTFx0lnj7xRxdehDvw {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Fades in on the first drawn frame */
.v4UTFx0lnj7xRxdehDvw[data-ready] {
  opacity: 1;
}

/* Veil and grid, cut by the torch via a radial mask with bell-shaped stops */
.NGg_4NJZdRTHKqMywls5 {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: clip;
  pointer-events: none;
  opacity: var(--hu-torch-veil, 1);

  --hu-torch-r: calc(var(--hu-torch-radius, 240px) * var(--hu-torch-open, 0));
  --hu-torch-s: var(--hu-torch-softness, 100%);
  --hu-torch-a0: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 0.0) * 100%);
  --hu-torch-a1: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 0.05) * 100%);
  --hu-torch-a2: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 0.15) * 100%);
  --hu-torch-a3: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 0.32) * 100%);
  --hu-torch-a4: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 0.52) * 100%);
  --hu-torch-a5: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 0.72) * 100%);
  --hu-torch-a6: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 0.9) * 100%);
  --hu-torch-a7: calc((var(--hu-torch-core, 0.2) + (1 - var(--hu-torch-core, 0.2)) * 1.0) * 100%);

  -webkit-mask-image: radial-gradient(
    circle var(--hu-torch-r) at var(--hu-torch-x, 50%) var(--hu-torch-y, 50%),
    rgb(0 0 0 / var(--hu-torch-a0)) 0%,
    rgb(0 0 0 / var(--hu-torch-a0)) calc(100% - var(--hu-torch-s)),
    rgb(0 0 0 / var(--hu-torch-a1)) calc(100% - var(--hu-torch-s) * 0.88),
    rgb(0 0 0 / var(--hu-torch-a2)) calc(100% - var(--hu-torch-s) * 0.75),
    rgb(0 0 0 / var(--hu-torch-a3)) calc(100% - var(--hu-torch-s) * 0.6),
    rgb(0 0 0 / var(--hu-torch-a4)) calc(100% - var(--hu-torch-s) * 0.45),
    rgb(0 0 0 / var(--hu-torch-a5)) calc(100% - var(--hu-torch-s) * 0.3),
    rgb(0 0 0 / var(--hu-torch-a6)) calc(100% - var(--hu-torch-s) * 0.15),
    rgb(0 0 0 / var(--hu-torch-a7)) 100%
  );
  mask-image: radial-gradient(
    circle var(--hu-torch-r) at var(--hu-torch-x, 50%) var(--hu-torch-y, 50%),
    rgb(0 0 0 / var(--hu-torch-a0)) 0%,
    rgb(0 0 0 / var(--hu-torch-a0)) calc(100% - var(--hu-torch-s)),
    rgb(0 0 0 / var(--hu-torch-a1)) calc(100% - var(--hu-torch-s) * 0.88),
    rgb(0 0 0 / var(--hu-torch-a2)) calc(100% - var(--hu-torch-s) * 0.75),
    rgb(0 0 0 / var(--hu-torch-a3)) calc(100% - var(--hu-torch-s) * 0.6),
    rgb(0 0 0 / var(--hu-torch-a4)) calc(100% - var(--hu-torch-s) * 0.45),
    rgb(0 0 0 / var(--hu-torch-a5)) calc(100% - var(--hu-torch-s) * 0.3),
    rgb(0 0 0 / var(--hu-torch-a6)) calc(100% - var(--hu-torch-s) * 0.15),
    rgb(0 0 0 / var(--hu-torch-a7)) 100%
  );
}

.CAMVaxHCoYCUS_VMfnKS {
  position: absolute;
  inset: 0;
  background-color: var(--hu-torch-color, #ffffff);
}

/* Grid faded on all four edges */
.dF3aOQrPUKB0v7lINtNq {
  position: absolute;
  inset: 0;

  /* Cell size from column/row count, clamped so cells keep their shape */
  --hu-grid-inset-x: 4%;
  --hu-grid-inset-y: 5%;
  --hu-grid-cell-w: clamp(
    200px,
    calc((100% - 2 * var(--hu-grid-inset-x)) / var(--hu-grid-cols, 5)),
    560px
  );
  --hu-grid-cell-h: clamp(
    180px,
    calc((100% - 2 * var(--hu-grid-inset-y)) / var(--hu-grid-rows, 3)),
    460px
  );

  background-image:
    linear-gradient(to right, var(--hu-grid-color, transparent) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--hu-grid-color, transparent) 0 1px, transparent 1px);
  background-size:
    var(--hu-grid-cell-w) 100%,
    100% var(--hu-grid-cell-h);
  background-position: center center;
  background-repeat: repeat;

  --hu-grid-mask:
    linear-gradient(
      to right,
      rgb(0 0 0 / 0) 0%,
      rgb(0 0 0) var(--hu-grid-fade, 25%),
      rgb(0 0 0) calc(100% - var(--hu-grid-fade, 25%)),
      rgb(0 0 0 / 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgb(0 0 0 / 0) 0%,
      rgb(0 0 0) var(--hu-grid-fade, 25%),
      rgb(0 0 0) calc(100% - var(--hu-grid-fade, 25%)),
      rgb(0 0 0 / 0) 100%
    );

  -webkit-mask-image: var(--hu-grid-mask);
  -webkit-mask-composite: source-in;
  mask-image: var(--hu-grid-mask);
  mask-composite: intersect;
}

/* Torch off: solid veil */
.NGg_4NJZdRTHKqMywls5[data-torch="off"] {
  -webkit-mask-image: none;
  mask-image: none;
}

.H9bDcWgHchIh7QtbRyfw {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  color: inherit;
}

/* Forced colors: hide the decoration */
@media (forced-colors: active) {
  .YQt2Poc_s4xuiFofOyd_,
  .NGg_4NJZdRTHKqMywls5 {
    display: none;
  }
}

/* Torch radius on narrow screens */
@media (max-width: 760px) {
  .NGg_4NJZdRTHKqMywls5 {
    --hu-torch-r: calc(
      var(--hu-torch-radius-mobile, 140px) * var(--hu-torch-open, 0)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .v4UTFx0lnj7xRxdehDvw {
    transition: none;
  }
}

