/* CTWEB Abstract Lines Hero 1.0.15 - mobile particle intensity fix */
.ctal-hero,
.ctal-hero * {
  box-sizing: border-box;
}

.ctal-hero {
  --ctal-hero-height: 100svh;
  --ctal-content-width: 430px;
  --ctal-left-desktop: 7.5vw;
  --ctal-left-mobile: 24px;
  --ctal-top-desktop: 28vh;
  --ctal-top-mobile: 150px;
  --ctal-overline-desktop: 11px;
  --ctal-overline-mobile: 10px;
  --ctal-title-desktop: 58px;
  --ctal-title-mobile: 46px;
  --ctal-description-desktop: 17px;
  --ctal-description-mobile: 15px;
  --ctal-button-size: 10px;
  --ctal-primary-button-font-size: 18px;
  --ctal-button-bg: #17171c;
  --ctal-button-bg-hover: #24242a;
  --ctal-button-color: #ffffff;
  --ctal-button-color-hover: #ffffff;
  --ctal-button-radius: 10px;
  --ctal-button-padding-y: 18px;
  --ctal-button-padding-x: 28px;
  --ctal-button-gap: 18px;
  --ctal-button-weight: 700;
  --ctal-button-letter-spacing: 0em;
  --ctal-button-transform: none;
  --ctal-button-icon-size: 28px;
  --ctal-button-icon-stroke: 2.2;
  --ctal-button-hover-y: -2px;
  --ctal-nav-size: 11px;
  --ctal-logo-size: 22px;
  --ctal-mobile-particles-width: 480px;
  --ctal-mobile-particles-height: 500px;
  --ctal-mobile-particles-position-x: 0px;
  --ctal-mobile-particles-position-y: 0px;
  --ctal-mobile-particles-opacity: 1;

  position: relative;
  width: 100%;
  min-height: var(--ctal-hero-height);
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  color: #0b0f19;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ctal-particles-viewport {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}

.ctal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 1;
}

.ctal-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 17% 45%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 15%, rgba(255,255,255,0.66) 34%, rgba(255,255,255,0.18) 56%, rgba(255,255,255,0) 78%),
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.88) 20%, rgba(255,255,255,0.12) 48%, rgba(255,255,255,0) 100%);
}

.ctal-nav {
  position: absolute;
  top: clamp(22px, 4vw, 46px);
  left: clamp(24px, 3vw, 58px);
  right: clamp(24px, 3vw, 58px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(55px, 10vw, 170px);
}

.ctal-logo,
.ctal-logo:hover,
.ctal-logo:focus {
  color: #1f2937;
  text-decoration: none;
  font-size: var(--ctal-logo-size);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ctal-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
}

.ctal-nav-links a,
.ctal-nav-links a:hover,
.ctal-nav-links a:focus {
  color: #111827;
  text-decoration: none;
  font-size: var(--ctal-nav-size);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.ctal-nav-links a:hover {
  color: #000;
}

.ctal-content {
  position: relative;
  z-index: 3;
  width: min(var(--ctal-content-width), calc(100vw - 48px));
  padding: 0;
  margin: 0;
  transform: translate(var(--ctal-left-desktop), var(--ctal-top-desktop));
}

.ctal-overline {
  margin: 0 0 20px 0;
  color: #111827;
  font-size: var(--ctal-overline-desktop);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ctal-title {
  margin: 0;
  padding: 0;
  color: #10141d;
  font-size: clamp(36px, 4.4vw, var(--ctal-title-desktop));
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.ctal-title span {
  display: block;
}

.ctal-title-mark {
  width: 21px;
  height: 1px;
  margin: 26px 0 26px 0;
  background: #111827;
  opacity: 0.65;
}

.ctal-description {
  width: min(100%, 390px);
  margin: 0;
  color: #2f3440;
  font-size: var(--ctal-description-desktop);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.025em;
}

.ctal-actions {
  margin-top: 44px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 28px !important;
}

.ctal-actions--custom > * {
  position: relative;
  z-index: 1;
}

.ctal-hero .ctal-free-button,
.ctal-hero .ctal-free-button:hover,
.ctal-hero .ctal-free-button:focus {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 28px;
  border: 0;
  border-radius: 10px;
  background: #17171c;
  color: #fff;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  transition: transform .32s cubic-bezier(.16,1,.3,1), background .32s cubic-bezier(.16,1,.3,1), box-shadow .32s cubic-bezier(.16,1,.3,1);
}

.ctal-hero .ctal-free-button:hover,
.ctal-hero .ctal-free-button:focus {
  background: #24242a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

.ctal-hero .ctal-free-button span {
  display: inline-block;
  color: inherit;
  white-space: nowrap;
}

.ctal-hero .ctal-free-button svg {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctal-hero .ctal-button,
.ctal-hero .ctal-button:hover,
.ctal-hero .ctal-button:focus,
.ctal-secondary,
.ctal-secondary:hover,
.ctal-secondary:focus {
  appearance: none !important;
  -webkit-appearance: none !important;
  text-decoration: none !important;
  outline: none !important;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.ctal-hero .ctal-button::before,
.ctal-hero .ctal-button::after,
.ctal-hero .ctal-button span::before,
.ctal-hero .ctal-button span::after {
  content: none !important;
  display: none !important;
}

.ctal-hero .ctal-button--primary {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--ctal-button-gap) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: var(--ctal-button-padding-y) var(--ctal-button-padding-x) !important;
  border: 0 !important;
  border-radius: var(--ctal-button-radius) !important;
  background: var(--ctal-button-bg) !important;
  background-image: none !important;
  color: var(--ctal-button-color) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.10) !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  cursor: pointer !important;
  transform: translateY(0) !important;
  transition: transform .32s cubic-bezier(.16,1,.3,1), background .32s cubic-bezier(.16,1,.3,1), color .32s cubic-bezier(.16,1,.3,1), box-shadow .32s cubic-bezier(.16,1,.3,1) !important;
}

.ctal-hero .ctal-button--primary span {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: var(--ctal-primary-button-font-size) !important;
  line-height: 1.15 !important;
  font-weight: var(--ctal-button-weight) !important;
  letter-spacing: var(--ctal-button-letter-spacing) !important;
  text-transform: var(--ctal-button-transform) !important;
  white-space: nowrap !important;
}

.ctal-hero .ctal-button--primary svg {
  display: block !important;
  width: var(--ctal-button-icon-size) !important;
  height: var(--ctal-button-icon-size) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 var(--ctal-button-icon-size) !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: var(--ctal-button-icon-stroke) !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  color: inherit !important;
}

.ctal-hero .ctal-button--primary:hover {
  background: var(--ctal-button-bg-hover) !important;
  background-image: none !important;
  color: var(--ctal-button-color-hover) !important;
  transform: translateY(var(--ctal-button-hover-y)) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14) !important;
}

.ctal-secondary {
  color: #111827;
  font-size: var(--ctal-button-size);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 220ms ease;
}

.ctal-secondary:hover {
  color: #111827;
  opacity: 1;
}

@media (max-width: 1024px) {
  .ctal-vignette {
    background:
      radial-gradient(circle at 26% 39%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.84) 28%, rgba(255,255,255,0.24) 56%, rgba(255,255,255,0) 80%),
      linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.66) 40%, rgba(255,255,255,0.06) 100%);
  }

  .ctal-nav {
    gap: 34px;
  }

  .ctal-nav-links {
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .ctal-hero {
    min-height: var(--ctal-hero-height);
  }

  /*
   * Finestra mobile indipendente per particelle e linee.
   * Larghezza e altezza possono essere diverse: il JavaScript
   * ridisegna il canvas sulle dimensioni reali, quindi i punti
   * non vengono stirati e rimangono circolari.
   */
  .ctal-particles-viewport {
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(var(--ctal-mobile-particles-width), 100%);
    height: var(--ctal-mobile-particles-height);
    transform: translate(
      calc(-50% + var(--ctal-mobile-particles-position-x)),
      calc(-50% + var(--ctal-mobile-particles-position-y))
    );
    overflow: hidden;
    opacity: var(--ctal-mobile-particles-opacity);

    /*
     * Sul mobile il canvas deve stare sopra alla vignettatura bianca
     * ma sotto al testo. In precedenza la vignettatura copriva quasi
     * completamente linee e punti proprio nella zona del contenuto.
     */
    z-index: 2;
  }

  .ctal-content {
    width: calc(100vw - 48px);
    transform: translate(var(--ctal-left-mobile), var(--ctal-top-mobile));
    z-index: 3;
  }

  .ctal-overline {
    font-size: var(--ctal-overline-mobile);
    margin-bottom: 16px;
  }

  .ctal-title {
    font-size: var(--ctal-title-mobile);
    letter-spacing: -0.06em;
  }

  .ctal-title-mark {
    margin: 22px 0;
  }

  .ctal-description {
    font-size: var(--ctal-description-mobile);
    line-height: 1.6;
  }

  .ctal-actions {
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 32px;
  }

  .ctal-primary {
    gap: 18px;
  }

  .ctal-nav {
    left: 24px;
    right: 24px;
    top: 26px;
    justify-content: space-between;
  }

  .ctal-nav-links {
    display: none;
  }

  .ctal-vignette {
    z-index: 1;
    background:
      radial-gradient(circle at 35% 38%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.84) 30%, rgba(255,255,255,0.32) 60%, rgba(255,255,255,0) 84%),
      linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.54) 46%, rgba(255,255,255,0.08) 100%);
  }

  .ctal-hide-canvas-mobile .ctal-particles-viewport {
    display: none;
  }
}
