:root {
  --es3d-ink: #101411;
  --es3d-green: #1f6a4f;
  --es3d-green-dark: #0f3d2c;
  --es3d-coral: #ea6c5b;
  --es3d-paper: #f3f0e8;
  --es3d-line: rgba(16, 20, 17, 0.22);
  --es3d-radius: 1.25rem;
  --es3d-shadow: 0 1.25rem 4rem rgba(16, 20, 17, 0.12);
}

.es3d-journey,
.es3d-formabrace {
  color: var(--es3d-ink);
  font-family: inherit;
}

.es3d-journey {
  width: min(100% - 2rem, 1240px);
  margin: clamp(3.5rem, 7vw, 8rem) auto;
}

.es3d-journey--stampa {
  width: 100%;
  margin-top: 0;
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.es3d-journey__header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
  gap: 1.5rem clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.es3d-journey__header .es3d-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.es3d-journey__header h2,
.es3d-formabrace h1 {
  margin: 0;
  color: var(--es3d-green-dark);
  font-size: clamp(2.7rem, 6vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.es3d-journey__header > p:last-child,
.es3d-formabrace__lead {
  margin: 0;
  color: rgba(16, 20, 17, 0.76);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  line-height: 1.5;
}

.es3d-eyebrow,
.es3d-step__status {
  color: var(--es3d-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.es3d-steps {
  display: grid;
  gap: clamp(4rem, 8vw, 9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.es3d-step {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.8fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.es3d-step--reverse .es3d-step__visual {
  order: 2;
}

.es3d-step__visual {
  margin: 0;
}

.es3d-step__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--es3d-radius);
  box-shadow: var(--es3d-shadow);
}

.es3d-step__visual figcaption {
  margin-top: 0.75rem;
  color: rgba(16, 20, 17, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.es3d-step__content {
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--es3d-line);
}

.es3d-step__number {
  position: absolute;
  top: -0.65em;
  right: 0;
  margin: 0;
  color: rgba(31, 106, 79, 0.13);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
}

.es3d-step__status {
  position: relative;
  margin: 0 0 0.85rem;
}

.es3d-step__content h3,
.es3d-catalog h3,
.es3d-next h2,
.es3d-disclaimer h2 {
  position: relative;
  margin: 0 0 1rem;
  color: var(--es3d-green-dark);
  font-size: clamp(2rem, 3.8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.es3d-step__content > p:not([class]) {
  position: relative;
  margin: 0 0 1.6rem;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.62;
}

.es3d-text-link,
.es3d-next__links a {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  color: var(--es3d-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.es3d-text-link:focus-visible,
.es3d-next__links a:focus-visible,
.es3d-button:focus-visible,
.es3d-gate__close:focus-visible,
.es3d-app-shell__bar a:focus-visible {
  outline: 3px solid var(--es3d-coral);
  outline-offset: 4px;
}

.es3d-catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-top: clamp(4rem, 9vw, 10rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--es3d-radius);
  background: var(--es3d-paper);
}

.es3d-catalog h3 {
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.es3d-catalog p:last-child {
  max-width: 48rem;
  margin: 0;
  line-height: 1.55;
}

.es3d-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--es3d-green-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--es3d-green-dark);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.es3d-button--primary {
  background: var(--es3d-green-dark);
  color: #fff;
}

.es3d-button--quiet {
  border-color: transparent;
  background: var(--es3d-paper);
}

.es3d-formabrace {
  width: min(100% - 2rem, 1440px);
  margin: clamp(2.5rem, 6vw, 7rem) auto;
}

.es3d-formabrace__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 5rem);
}

.es3d-formabrace__lead {
  max-width: 62rem;
  margin-top: 1.6rem;
}

.es3d-status {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--es3d-line);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
}

.es3d-status span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--es3d-coral);
}

.es3d-disclaimer {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--es3d-radius);
  background: var(--es3d-paper);
}

.es3d-disclaimer h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

.es3d-disclaimer p {
  margin: 0;
  line-height: 1.55;
}

.es3d-app-shell {
  overflow: hidden;
  border: 1px solid var(--es3d-line);
  border-radius: var(--es3d-radius);
  background: #101411;
  box-shadow: var(--es3d-shadow);
}

.es3d-app-shell__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1.2rem;
  color: #fff;
}

.es3d-app-shell__bar p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.es3d-app-shell__bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.es3d-app-frame {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  min-height: 680px;
  border: 0;
  background: #fff;
}

.es3d-next {
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--es3d-line);
}

.es3d-next h2 {
  max-width: 54rem;
}

.es3d-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.es3d-gate {
  width: min(92vw, 650px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--es3d-radius);
  color: var(--es3d-ink);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.3);
}

.es3d-gate::backdrop {
  background: rgba(8, 13, 10, 0.72);
  backdrop-filter: blur(4px);
}

.es3d-gate__panel {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  background: #fff;
}

.es3d-gate__panel h2 {
  margin: 0 2rem 1rem 0;
  color: var(--es3d-green-dark);
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.es3d-gate__panel > p:not([class]) {
  font-size: 1.08rem;
  line-height: 1.55;
}

.es3d-gate__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--es3d-line);
  border-radius: 50%;
  background: #fff;
  color: var(--es3d-ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.es3d-gate__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.es3d-gate__note {
  margin: 1.5rem 0 0;
  color: rgba(16, 20, 17, 0.65);
  font-size: 0.84rem;
  line-height: 1.45;
}

.es3d-menu-item--catalog {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}

body.home .esh-three-d[data-es3d-journey="home"] .es3d-home-step {
  margin: 0 0 0.45rem;
  color: #91b7a2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.home .esh-three-d[data-es3d-journey="home"] .es3d-home-catalog {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: clamp(4.5rem, 7vw, 7rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 244, 239, 0.22);
  color: rgba(246, 244, 239, 0.67);
  font-size: 0.88rem;
  line-height: 1.5;
}

body.home .esh-three-d[data-es3d-journey="home"] .es3d-home-catalog a {
  flex: 0 0 auto;
  color: #91b7a2;
  font-weight: 700;
  text-decoration: none;
}

body.home .esh-three-d[data-es3d-journey="home"] .es3d-home-catalog a:hover,
body.home .esh-three-d[data-es3d-journey="home"] .es3d-home-catalog a:focus-visible {
  color: #f6f4ef;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 860px) {
  .es3d-journey__header,
  .es3d-step,
  .es3d-formabrace__hero,
  .es3d-disclaimer {
    grid-template-columns: 1fr;
  }

  .es3d-step--reverse .es3d-step__visual {
    order: 0;
  }

  .es3d-formabrace__hero {
    align-items: start;
  }

  .es3d-status {
    justify-self: start;
  }

  .es3d-app-frame {
    height: 76vh;
    min-height: 620px;
  }
}

@media (max-width: 600px) {
  .es3d-journey,
  .es3d-formabrace {
    width: min(100% - 2rem, 1240px);
  }

  .es3d-journey__header h2,
  .es3d-formabrace h1 {
    font-size: clamp(2.55rem, 14vw, 4.3rem);
  }

  .es3d-step__content h3 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .es3d-catalog {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .es3d-button {
    width: 100%;
  }

  .es3d-app-shell__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .es3d-app-frame {
    height: 72vh;
    min-height: 560px;
  }

  .es3d-next__links {
    align-items: flex-start;
    flex-direction: column;
  }

  body.home .esh-three-d[data-es3d-journey="home"] .es3d-home-step {
    margin-bottom: 0.3rem;
    font-size: 0.59rem;
  }

  body.home .esh-three-d[data-es3d-journey="home"] .es3d-home-catalog {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .es3d-journey *,
  .es3d-formabrace *,
  .es3d-gate * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

