/* Andrea Michielan | intensivo/experience | original component stylesheet */
/* =========================================================
   SEZIONE 03 — L’ESPERIENZA
   Identità: Layers / Essenziale
   Namespace: am-chi-experience
========================================================= */

.am-chi-experience,
.am-chi-experience * {
  box-sizing: border-box;
}

.am-chi-experience {
  --am-experience-bg: var(--am-ds-ivory);
  --am-experience-bg-light: var(--am-ds-ivory);

  --am-experience-text: var(--am-ds-ink);
  --am-experience-text-secondary: var(--am-ds-body);

  --am-experience-accent: var(--am-ds-brand);
  --am-experience-accent-secondary: var(--am-ds-brand);

  --am-experience-button: var(--am-ds-brand);
  --am-experience-button-hover: var(--am-ds-primary);

  --am-experience-border: rgba(0, 0, 0, 0.08);
  --am-experience-border-accent: rgba(127, 167, 160, 0.25);

  --am-experience-shadow:
    0 30px 80px rgba(0, 0, 0, 0.08);

  --am-experience-shadow-small:
    0 12px 35px rgba(0, 0, 0, 0.07);

  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding:
    clamp(105px, 11vw, 170px)
    0
    clamp(110px, 11vw, 175px);
  background: var(--am-experience-bg);
  color: var(--am-experience-text);
  font-family: var(--am-ds-font-body), sans-serif;
}

/* =========================================================
   SFONDO
========================================================= */

.am-chi-experience__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.am-chi-experience__background-word {
  position: absolute;
  top: 10%;
  right: -2%;
  color: var(--am-experience-text);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: clamp(110px, 15vw, 245px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.065em;
  opacity: 0.025;
  white-space: nowrap;
}

.am-chi-experience__background-line {
  position: absolute;
  top: 0;
  right: 17%;
  width: 1px;
  height: 100%;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(127, 167, 160, 0.17) 15%,
      rgba(127, 167, 160, 0.17) 85%,
      transparent
    );
}

.am-chi-experience__background-plane {
  position: absolute;
  display: block;
  border: 1px solid rgba(127, 167, 160, 0.12);
  background: rgba(252, 252, 250, 0.19);
}

.am-chi-experience__background-plane--one {
  top: 31%;
  left: -9%;
  width: 34vw;
  height: 40%;
  transform: rotate(-2deg);
}

.am-chi-experience__background-plane--two {
  right: -11%;
  bottom: 8%;
  width: 31vw;
  height: 28%;
  transform: rotate(1.5deg);
}

/* =========================================================
   CONTAINER
========================================================= */

.am-chi-experience__container {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
}

/* =========================================================
   INTRODUZIONE
========================================================= */

.am-chi-experience__intro {
  display: grid;
  grid-template-columns:
    minmax(205px, 0.32fr)
    minmax(0, 1fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: start;
  margin-bottom: clamp(80px, 9vw, 135px);
}

.am-chi-experience__intro-side {
  padding-top: 14px;
}

.am-chi-experience__eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  color: var(--am-experience-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.am-chi-experience__index {
  color: var(--am-experience-button);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.am-chi-experience__eyebrow-line {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--am-experience-accent);
}

.am-chi-experience__side-note {
  width: min(100%, 215px);
  margin: 43px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--am-experience-border);
  color: var(--am-experience-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.78;
}

.am-chi-experience__intro-content {
  width: min(100%, 960px);
}

.am-chi-experience__title {
  max-width: 950px;
  margin: 0;
  color: var(--am-experience-text);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: clamp(56px, 6.8vw, 103px);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.am-chi-experience__title em {
  display: block;
  margin-top: 8px;
  color: var(--am-experience-accent);
  font-weight: 400;
}

.am-chi-experience__lead {
  width: min(100%, 680px);
  margin: clamp(35px, 4vw, 52px) 0 0;
  color: var(--am-experience-text-secondary);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.85;
}

/* =========================================================
   PERCORSO
========================================================= */

.am-chi-experience__journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.5vw, 38px);
}

.am-chi-experience__journey::before {
  content: "";
  position: absolute;
  top: 212px;
  left: 16%;
  right: 16%;
  z-index: -1;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(127, 167, 160, 0.32) 18%,
      rgba(127, 167, 160, 0.32) 82%,
      transparent
    );
}

.am-chi-experience__step {
  position: relative;
  min-width: 0;
}

/* =========================================================
   VISUAL DEGLI STRATI
========================================================= */

.am-chi-experience__step-visual {
  position: relative;
  width: 100%;
  height: 430px;
  margin-bottom: 40px;
}

.am-chi-experience__sheet {
  position: absolute;
  display: block;
  border: 1px solid var(--am-experience-border-accent);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.70),
      rgba(252, 252, 250, 0.35)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.am-chi-experience__step--one
.am-chi-experience__sheet--a {
  top: 7%;
  left: 2%;
  width: 82%;
  height: 78%;
  opacity: 0.48;
  transform: rotate(-2.4deg);
}

.am-chi-experience__step--one
.am-chi-experience__sheet--b {
  top: 12%;
  left: 8%;
  width: 82%;
  height: 77%;
  opacity: 0.58;
  transform: rotate(1.9deg);
}

.am-chi-experience__step--one
.am-chi-experience__sheet--c {
  top: 18%;
  left: 14%;
  width: 79%;
  height: 72%;
  opacity: 0.68;
  transform: rotate(-1.1deg);
}

.am-chi-experience__step--one
.am-chi-experience__sheet--d {
  top: 25%;
  left: 22%;
  width: 69%;
  height: 64%;
  opacity: 0.80;
  transform: rotate(1.2deg);
}

.am-chi-experience__step--two
.am-chi-experience__sheet--a {
  top: 5%;
  left: 3%;
  width: 80%;
  height: 74%;
  opacity: 0.44;
  transform: translateX(-15px) rotate(-2deg);
}

.am-chi-experience__step--two
.am-chi-experience__sheet--b {
  top: 16%;
  left: 15%;
  width: 78%;
  height: 70%;
  opacity: 0.61;
  transform: translateX(7px) rotate(1.5deg);
}

.am-chi-experience__step--two
.am-chi-experience__sheet--c {
  top: 28%;
  left: 26%;
  width: 65%;
  height: 58%;
  opacity: 0.78;
  transform: translateX(16px) rotate(-0.7deg);
}

.am-chi-experience__visual-opening {
  position: absolute;
  top: 39%;
  left: 39%;
  z-index: 2;
  display: block;
  width: 36%;
  aspect-ratio: 1 / 1.08;
  border: 1px solid rgba(27, 138, 138, 0.24);
  background: rgba(252, 252, 250, 0.76);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.04),
    0 0 0 13px rgba(252, 252, 250, 0.15);
}

.am-chi-experience__step--three
.am-chi-experience__sheet--a {
  top: 8%;
  left: 0;
  width: 69%;
  height: 69%;
  opacity: 0.38;
  transform: translateX(-21px) rotate(-2.2deg);
}

.am-chi-experience__step--three
.am-chi-experience__sheet--b {
  top: 25%;
  right: 0;
  width: 62%;
  height: 60%;
  opacity: 0.57;
  transform: translateX(12px) rotate(1.4deg);
}

.am-chi-experience__visual-space {
  position: absolute;
  top: 24%;
  left: 24%;
  z-index: 3;
  display: block;
  width: 49%;
  aspect-ratio: 1;
  border: 1px solid rgba(27, 138, 138, 0.27);
  background:
    linear-gradient(
      145deg,
      rgba(252, 252, 250, 0.96),
      rgba(252, 252, 250, 0.64)
    );
  box-shadow:
    0 23px 60px rgba(0, 0, 0, 0.045),
    0 0 0 17px rgba(252, 252, 250, 0.16),
    0 0 0 35px rgba(252, 252, 250, 0.07);
}

/* =========================================================
   CONTENUTO DELLE FASI
========================================================= */

.am-chi-experience__step-content {
  position: relative;
  min-height: 320px;
  padding:
    37px
    clamp(24px, 2.5vw, 35px)
    32px;
  border-top: 1px solid var(--am-experience-border-accent);
  background:
    linear-gradient(
      180deg,
      rgba(252, 252, 250, 0.53),
      rgba(252, 252, 250, 0.18)
    );
}

.am-chi-experience__step-number {
  position: absolute;
  top: -14px;
  left: clamp(24px, 2.5vw, 35px);
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  background: var(--am-experience-bg);
  color: var(--am-experience-button);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.am-chi-experience__step-title {
  margin: 0;
  color: var(--am-experience-text);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: clamp(35px, 3.4vw, 49px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.am-chi-experience__step-content p {
  margin: 25px 0 0;
  color: var(--am-experience-text-secondary);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.84;
}

.am-chi-experience__step-keyword {
  position: absolute;
  right: clamp(24px, 2.5vw, 35px);
  bottom: 30px;
  left: clamp(24px, 2.5vw, 35px);
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--am-experience-border);
  color: var(--am-experience-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* =========================================================
   CHIUSURA
========================================================= */

.am-chi-experience__closing {
  display: grid;
  grid-template-columns:
    minmax(270px, 0.55fr)
    minmax(0, 1fr);
  gap: clamp(55px, 9vw, 145px);
  align-items: center;
  margin-top: clamp(95px, 10vw, 150px);
  padding-top: clamp(65px, 7vw, 100px);
  border-top: 1px solid var(--am-experience-border);
}

.am-chi-experience__closing-symbol {
  position: relative;
  width: min(100%, 330px);
  height: 185px;
}

.am-chi-experience__closing-symbol span {
  position: absolute;
  top: 50%;
  display: block;
  width: 58%;
  height: 68%;
  border: 1px solid var(--am-experience-border-accent);
  background: rgba(252, 252, 250, 0.42);
}

.am-chi-experience__closing-symbol span:nth-child(1) {
  left: 0;
  opacity: 0.38;
  transform: translateY(-50%) rotate(-2deg);
}

.am-chi-experience__closing-symbol span:nth-child(2) {
  left: 22%;
  opacity: 0.58;
  transform: translateY(-50%) rotate(1.2deg);
}

.am-chi-experience__closing-symbol span:nth-child(3) {
  right: 0;
  border-color: rgba(27, 138, 138, 0.25);
  background: rgba(252, 252, 250, 0.77);
  transform: translateY(-50%);
}

.am-chi-experience__closing-content {
  width: min(100%, 750px);
}

.am-chi-experience__closing-label {
  margin: 0 0 25px;
  color: var(--am-experience-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.am-chi-experience__quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.am-chi-experience__quote p {
  margin: 0;
  color: var(--am-experience-text);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

/* =========================================================
   HOVER DESKTOP
========================================================= */

@media (hover: hover) {
  .am-chi-experience__step-visual {
    transition: transform 0.45s ease;
  }

  .am-chi-experience__step:hover
  .am-chi-experience__step-visual {
    transform: translateY(-5px);
  }

  .am-chi-experience__step-content {
    transition:
      background-color 0.35s ease,
      border-color 0.35s ease;
  }

  .am-chi-experience__step:hover
  .am-chi-experience__step-content {
    border-color: rgba(27, 138, 138, 0.32);
    background:
      linear-gradient(
        180deg,
        rgba(252, 252, 250, 0.78),
        rgba(252, 252, 250, 0.28)
      );
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
  .am-chi-experience {
    padding:
      115px
      0
      125px;
  }

  .am-chi-experience__container {
    width: min(calc(100% - 56px), 900px);
  }

  .am-chi-experience__intro {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 45px;
    margin-bottom: 90px;
  }

  .am-chi-experience__side-note {
    font-size: 11px;
  }

  .am-chi-experience__journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 70px;
  }

  .am-chi-experience__journey::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
    background:
      linear-gradient(
        180deg,
        transparent,
        rgba(127, 167, 160, 0.22) 12%,
        rgba(127, 167, 160, 0.22) 88%,
        transparent
      );
  }

  .am-chi-experience__step {
    display: grid;
    grid-template-columns:
      minmax(290px, 0.82fr)
      minmax(0, 1fr);
    gap: 55px;
    align-items: center;
  }

  .am-chi-experience__step:nth-child(even)
  .am-chi-experience__step-visual {
    order: 2;
  }

  .am-chi-experience__step:nth-child(even)
  .am-chi-experience__step-content {
    order: 1;
  }

  .am-chi-experience__step-visual {
    height: 360px;
    margin-bottom: 0;
  }

  .am-chi-experience__step-content {
    min-height: 310px;
  }

  .am-chi-experience__closing {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 65px;
  }

  .am-chi-experience__closing-symbol {
    height: 160px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .am-chi-experience {
    padding:
      88px
      0
      95px;
  }

  .am-chi-experience__background-word {
    top: 5%;
    right: -35%;
    font-size: 105px;
  }

  .am-chi-experience__background-line {
    right: 20px;
    opacity: 0.65;
  }

  .am-chi-experience__background-plane--one {
    top: 27%;
    left: -45%;
    width: 95vw;
    height: 26%;
  }

  .am-chi-experience__background-plane--two {
    right: -47%;
    bottom: 8%;
    width: 90vw;
    height: 20%;
  }

  .am-chi-experience__container {
    width: 100%;
    padding: 0 20px;
  }

  .am-chi-experience__intro {
    display: block;
    margin-bottom: 65px;
  }

  .am-chi-experience__intro-side {
    padding-top: 0;
  }

  .am-chi-experience__eyebrow {
    font-size: 9px;
  }

  .am-chi-experience__index {
    font-size: 21px;
  }

  .am-chi-experience__eyebrow-line {
    width: 31px;
  }

  .am-chi-experience__side-note {
    display: none;
  }

  .am-chi-experience__intro-content {
    margin-top: 25px;
  }

  .am-chi-experience__title {
    font-size: clamp(47px, 13.5vw, 67px);
    line-height: 0.99;
  }

  .am-chi-experience__lead {
    margin-top: 29px;
    font-size: 15px;
    line-height: 1.82;
  }

  .am-chi-experience__journey {
    gap: 78px;
  }

  .am-chi-experience__journey::before {
    display: none;
  }

  .am-chi-experience__step {
    display: block;
  }

  .am-chi-experience__step:nth-child(even)
  .am-chi-experience__step-visual,
  .am-chi-experience__step:nth-child(even)
  .am-chi-experience__step-content {
    order: initial;
  }

  .am-chi-experience__step-visual {
    width: min(100%, 410px);
    height: 340px;
    margin: 0 auto 34px;
  }

  .am-chi-experience__sheet {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .am-chi-experience__step-content {
    min-height: 290px;
    padding:
      34px
      24px
      28px;
  }

  .am-chi-experience__step-number {
    left: 24px;
  }

  .am-chi-experience__step-title {
    font-size: 39px;
  }

  .am-chi-experience__step-content p {
    font-size: 14px;
    line-height: 1.82;
  }

  .am-chi-experience__step-keyword {
    right: 24px;
    bottom: 26px;
    left: 24px;
    font-size: 8px;
  }

  .am-chi-experience__closing {
    display: block;
    margin-top: 90px;
    padding-top: 67px;
  }

  .am-chi-experience__closing-symbol {
    width: min(100%, 300px);
    height: 155px;
    margin-bottom: 50px;
  }

  .am-chi-experience__closing-label {
    font-size: 9px;
  }

  .am-chi-experience__quote p {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.3;
  }
}

/* =========================================================
   MOBILE PICCOLO
========================================================= */

@media (max-width: 390px) {
  .am-chi-experience__container {
    padding: 0 17px;
  }

  .am-chi-experience__title {
    font-size: 45px;
  }

  .am-chi-experience__step-visual {
    height: 305px;
  }

  .am-chi-experience__step-content {
    min-height: 305px;
    padding-right: 21px;
    padding-left: 21px;
  }

  .am-chi-experience__step-number,
  .am-chi-experience__step-keyword {
    left: 21px;
  }

  .am-chi-experience__step-keyword {
    right: 21px;
  }

  .am-chi-experience__quote p {
    font-size: 27px;
  }
}

/* =========================================================
   ACCESSIBILITÀ — RIDUZIONE MOVIMENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .am-chi-experience *,
  .am-chi-experience *::before,
  .am-chi-experience *::after {
    animation: none !important;
    transition: none !important;
  }
}
