/* Hub /strumenti-gratuiti — layout Wix-style, scope #stage-main .mfw */

body.body-stage-strumenti-hub #stage-main {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

#stage-main .mfw {
  --mfw-blue: #136ef5;
  --mfw-blue-hover: #0f58c4;
  --mfw-deep: #0b4293;
  --mfw-navy: #082c62;
  --mfw-split-panel: #0e3b30;
  --mfw-sky: #b8d3fc;
  --mfw-pale: #e7f0fe;
  --mfw-wash: #f2f6fd;
  --mfw-text: #141414;
  --mfw-text-mid: #3c3c3c;
  --mfw-text-soft: #5e5e5e;
  --mfw-border: #d8d8d8;
  --mfw-gray: #f6f6f6;
  --mfw-max: 1200px;
  --mfw-pad: 32px;
  --mfw-sec-y: 120px;
  --mfw-hero-copy-fs: 18px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--mfw-text);
}

#stage-main .mfw *,
#stage-main .mfw *::before,
#stage-main .mfw *::after {
  box-sizing: border-box;
}

#stage-main .mfw .mfw-wrap {
  width: 100%;
  max-width: var(--mfw-max);
  margin: 0 auto;
  padding: 0 var(--mfw-pad);
}

#stage-main .mfw .mfw-sec {
  padding: var(--mfw-sec-y) 0;
  background: #fff;
}

#stage-main .mfw .mfw-sec--gray {
  background: var(--mfw-gray);
}

#stage-main .mfw .mfw-h1 {
  margin: 0;
  font-size: 60px !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: #fff;
}

#stage-main .mfw .mfw-h2 {
  margin: 0;
  max-width: 560px;
  font-size: 44px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: var(--mfw-text);
}

#stage-main .mfw .mfw-h3 {
  margin: 0;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  color: var(--mfw-text);
}

#stage-main .mfw p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--mfw-text-mid);
}

#stage-main .mfw a {
  text-decoration: none;
}

#stage-main .mfw .mfw-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  width: max-content;
  padding: 0 20px;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

#stage-main .mfw .mfw-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  min-width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

#stage-main .mfw .mfw-btn--primary {
  background: var(--mfw-blue);
  color: #fff;
}

#stage-main .mfw .mfw-btn--primary:hover,
#stage-main .mfw .mfw-btn--primary:focus-visible {
  background: var(--mfw-blue-hover);
  color: #fff;
}

#stage-main .mfw .mfw-feat__item .section-templates__card-link {
  margin-top: auto;
}

/* Hero */
#stage-main .mfw .mfw-hero {
  padding: calc(96px + var(--stage-navbar-height, 4.25rem)) 0 120px;
  background: var(--mfw-navy);
  color: #fff;
}

#stage-main .mfw .mfw-hero__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

#stage-main .mfw .mfw-hero__copy,
#stage-main .mfw .mfw-hero__media {
  min-width: 0;
  max-width: 100%;
}

#stage-main .mfw .mfw-bc {
  margin: 0 0 20px;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mfw-pale);
}

#stage-main .mfw .mfw-bc ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#stage-main .mfw .mfw-bc li {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

#stage-main .mfw .mfw-bc a {
  color: var(--mfw-pale);
}

#stage-main .mfw .mfw-bc a:hover,
#stage-main .mfw .mfw-bc a:focus-visible {
  color: #fff;
}

#stage-main .mfw .mfw-badge {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--mfw-sky);
}

#stage-main .mfw .mfw-hero__lede {
  margin: 20px 0 28px;
  max-width: 440px;
  font-size: var(--mfw-hero-copy-fs);
  line-height: 1.55;
  color: var(--mfw-pale);
}

#stage-main .mfw .mfw-dom {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  height: 46px;
  min-height: 46px;
  padding: 4px 4px 4px 20px;
  border-radius: 9999px;
  background: #fff;
}

#stage-main .mfw .mfw-dom .mfw-btn {
  flex-shrink: 0;
  align-self: center;
  height: 38px;
  min-height: 38px;
  margin: 0;
  border-radius: 9999px;
}

body.body-stage-strumenti-hub #stage-main .mfw .mfw-dom__input {
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: var(--mfw-hero-copy-fs) !important;
  font-weight: 400;
  line-height: 1.55;
  color: var(--mfw-text);
}

body.body-stage-strumenti-hub #stage-main .mfw .mfw-dom__input::placeholder {
  color: var(--mfw-text-soft);
  font-size: inherit;
  line-height: inherit;
}

#stage-main .mfw .mfw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

#stage-main .mfw .mfw-chip {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

#stage-main .mfw .mfw-chip:hover,
#stage-main .mfw .mfw-chip:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#stage-main .mfw .mfw-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* 3 passi */
#stage-main .mfw .mfw-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 64px;
}

#stage-main .mfw .mfw-steps__title {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--mfw-text);
}

/* Panoramica + griglia */
#stage-main .mfw .mfw-panorama {
  display: block;
  width: 100%;
  max-width: var(--mfw-max);
  height: auto;
  margin: 56px 0 64px;
}

#stage-main .mfw .mfw-feat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}

#stage-main .mfw .mfw-feat__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

#stage-main .mfw .mfw-feat__item .mfw-h3 {
  margin-bottom: 8px;
}

#stage-main .mfw .mfw-feat__item p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  flex: 1;
}


/* Split */
#stage-main .mfw .mfw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}

#stage-main .mfw .mfw-split__dark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 48px;
  background: var(--mfw-split-panel);
}

#stage-main .mfw .mfw-split__dark img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
}

#stage-main .mfw .mfw-split__light {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 96px 8vw 96px 72px;
  background: var(--mfw-gray);
}

#stage-main .mfw .mfw-split__light .mfw-h2 {
  max-width: none;
}

#stage-main .mfw .mfw-split__lede,
#stage-main .mfw .mfw-row__lede {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mfw-text-mid);
}

/* Righe alternate */
#stage-main .mfw .mfw-rows {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

#stage-main .mfw .mfw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  min-width: 0;
}

#stage-main .mfw .mfw-row--rev .mfw-row__media {
  order: 2;
}

#stage-main .mfw .mfw-row__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

#stage-main .mfw .mfw-row__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

#stage-main .mfw .mfw-row__text .mfw-h2 {
  max-width: none;
}

/* Perché */
#stage-main .mfw .mfw-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 96px;
  margin-top: 56px;
}

#stage-main .mfw .mfw-why > div {
  padding-top: 20px;
  border-top: 1px solid var(--mfw-border);
}

#stage-main .mfw .mfw-why p {
  margin-top: 8px;
  font-size: 16px;
}

/* Reveal */
#stage-main .mfw .rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

#stage-main .mfw .rv.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  #stage-main .mfw .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 767px) {
  #stage-main .mfw {
    --mfw-pad: 20px;
    --mfw-sec-y: 72px;
    --mfw-hero-copy-fs: 16px;
  }

  #stage-main .mfw .mfw-h1 {
    font-size: 38px !important;
  }

  #stage-main .mfw .mfw-h2 {
    font-size: 30px !important;
  }

  #stage-main .mfw .mfw-hero {
    padding: calc(48px + var(--stage-navbar-height, 4.25rem)) 0 72px;
  }

  #stage-main .mfw .mfw-hero__grid,
  #stage-main .mfw .mfw-row,
  #stage-main .mfw .mfw-split,
  #stage-main .mfw .mfw-why {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Copy + form prima, illustrazione dopo (ordine DOM) */
  #stage-main .mfw .mfw-hero__copy {
    order: 1;
    text-align: center;
  }

  /* base.css (≤56.25rem) forza text-align:left su main h1/p — va ribaltato qui */
  body.body-stage-strumenti-hub #stage-main .mfw .mfw-hero__copy :where(.mfw-h1, .mfw-hero__lede) {
    text-align: center;
  }

  #stage-main .mfw .mfw-hero__media {
    order: 2;
  }

  #stage-main .mfw .mfw-h1 {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  #stage-main .mfw .mfw-hero__lede {
    max-width: 100%;
  }

  #stage-main .mfw .mfw-btn {
    height: 34px;
    min-height: 34px;
  }

  #stage-main .mfw .mfw-dom {
    width: 100%;
    max-width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 4px 4px 4px 16px;
    gap: 8px;
  }

  #stage-main .mfw .mfw-dom .mfw-btn {
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
  }

  body.body-stage-strumenti-hub #stage-main .mfw .mfw-dom__input {
    min-width: 0;
    width: 100%;
  }

  #stage-main .mfw .mfw-chips {
    max-width: 100%;
    justify-content: center;
  }

  #stage-main .mfw .mfw-steps,
  #stage-main .mfw .mfw-feat {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
  }

  #stage-main .mfw .mfw-panorama {
    margin: 40px 0;
  }

  #stage-main .mfw .mfw-rows {
    gap: 72px;
  }

  #stage-main .mfw .mfw-row--rev .mfw-row__media {
    order: 0;
  }

  #stage-main .mfw .mfw-split__dark {
    padding: 56px 20px;
  }

  #stage-main .mfw .mfw-split__light {
    padding: 56px 20px;
  }

  #stage-main .mfw .mfw-split__lede,
  #stage-main .mfw .mfw-row__lede {
    max-width: 100%;
    font-size: 16px;
  }
}
