.dolcecasa-custom-process {
  --dc-process-accent: #a52e34;
  --dc-process-divider: #e2e2e2;
  width: 100%;
  padding: 120px 80px;
  background: #f9f9f9;
}

.dolcecasa-custom-process,
.dolcecasa-custom-process * {
  box-sizing: border-box;
}

.dolcecasa-custom-process__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
}

.dolcecasa-custom-process__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.dolcecasa-custom-process .dolcecasa-custom-process__heading {
  margin: 0;
  color: #0b1020;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.dolcecasa-custom-process .dolcecasa-custom-process__introduction {
  width: min(100%, 949px);
  color: #0b1020;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.dolcecasa-custom-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.dolcecasa-custom-process__step {
  display: flex;
  min-width: 0;
  min-height: 202px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 33px;
}

.dolcecasa-custom-process__step:nth-child(3n + 2),
.dolcecasa-custom-process__step:nth-child(3n + 3) {
  border-left: 1px solid var(--dc-process-divider);
}

.dolcecasa-custom-process__step:nth-child(-n + 3) {
  border-bottom: 1px solid var(--dc-process-divider);
}

.dolcecasa-custom-process .dolcecasa-custom-process__step-label,
.dolcecasa-custom-process .dolcecasa-custom-process__step-title,
.dolcecasa-custom-process .dolcecasa-custom-process__step-description {
  margin: 0;
}

.dolcecasa-custom-process .dolcecasa-custom-process__step-label {
  color: var(--dc-process-accent);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.dolcecasa-custom-process .dolcecasa-custom-process__step-title {
  color: #000;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.dolcecasa-custom-process .dolcecasa-custom-process__step-description {
  width: min(100%, 262px);
  color: #5c5c5c;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.dolcecasa-custom-process__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dolcecasa-custom-process .dolcecasa-custom-process__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 32px;
  border: 1px solid var(--dc-process-accent);
  background: var(--dc-process-accent);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.dolcecasa-custom-process .dolcecasa-custom-process__button:hover,
.dolcecasa-custom-process .dolcecasa-custom-process__button:focus-visible {
  background: color-mix(in srgb, var(--dc-process-accent) 80%, transparent);
  color: var(--dc-process-button-text, #fff);
}

.dolcecasa-custom-process__arrow {
  display: block;
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  background-color: currentColor;
  -webkit-mask: url("../images/arrow-right.svg") center / 28px 20px no-repeat;
  mask: url("../images/arrow-right.svg") center / 28px 20px no-repeat;
}

.dolcecasa-custom-process .dolcecasa-custom-process__note {
  color: #6e6e6e;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1024px) {
  .dolcecasa-custom-process {
    padding: 88px 40px;
  }

  .dolcecasa-custom-process__inner {
    gap: 52px;
  }

  .dolcecasa-custom-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dolcecasa-custom-process__step:nth-child(n) {
    border: 0;
  }

  .dolcecasa-custom-process__step:nth-child(even) {
    border-left: 1px solid var(--dc-process-divider);
  }

  .dolcecasa-custom-process__step:not(:nth-last-child(-n + 2)) {
    border-bottom: 1px solid var(--dc-process-divider);
  }
}

@media (max-width: 767px) {
  .dolcecasa-custom-process {
    padding: 56px 18px;
  }

  .dolcecasa-custom-process__inner {
    gap: 36px;
  }

  .dolcecasa-custom-process__header {
    gap: 14px;
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__heading {
    max-width: 320px;
    font-size: 32px;
    line-height: 1.05;
    text-wrap: balance;
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__introduction br {
    display: none;
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__introduction {
    max-width: 350px;
    font-size: 13px;
    line-height: 1.65;
  }

  .dolcecasa-custom-process__grid {
    display: flex;
    gap: 23px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .dolcecasa-custom-process__grid::-webkit-scrollbar {
    display: none;
  }

  .dolcecasa-custom-process__step {
    position: relative;
    display: flex;
    flex: 0 0 164px;
    min-height: 130px;
    gap: 8px;
    padding: 16px;
    scroll-snap-align: start;
  }

  .dolcecasa-custom-process__step:nth-child(n) {
    border: 0;
  }

  .dolcecasa-custom-process__step:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -12px;
    width: 1px;
    height: 60px;
    background: var(--dc-process-divider);
    content: "";
    transform: translateY(-50%);
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__step-label {
    font-size: 12px;
    line-height: 1.1;
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__step-title {
    font-size: 16px;
    line-height: 1.1;
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__step-description {
    width: 100%;
    font-size: 12px;
    line-height: 1.4;
  }

  .dolcecasa-custom-process__cta {
    gap: 10px;
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__button {
    width: 100%;
    max-width: 340px;
    min-height: 46px;
    padding: 12px 24px;
  }

  .dolcecasa-custom-process .dolcecasa-custom-process__note {
    max-width: 320px;
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dolcecasa-custom-process .dolcecasa-custom-process__button {
    transition: none;
  }
}
