/* Andrea Michielan | intensivo/hero | original component stylesheet */
/* =========================================================
   HERO — LAYERS / ESSENZIALE
   Namespace: am-chi-layers-hero
========================================================= */

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

.am-chi-layers-hero {
  --am-chi-hero-bg: var(--am-ds-ivory);
  --am-chi-hero-bg-secondary: var(--am-ds-ivory);

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

  --am-chi-hero-accent: var(--am-ds-brand);
  --am-chi-hero-accent-secondary: var(--am-ds-brand);

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

  --am-chi-hero-border: rgba(0, 0, 0, 0.08);
  --am-chi-hero-border-accent: rgba(127, 167, 160, 0.22);

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

  /*
   * SOSTITUIRE QUESTO URL CON L'IMMAGINE REALE
   */
  

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background: var(--am-chi-hero-bg);
  color: var(--am-chi-hero-text);
  font-family: var(--am-ds-font-body), sans-serif;
}

/* =========================================================
   IMMAGINE
========================================================= */

.am-chi-layers-hero__image {
  position: absolute;
  inset: 0;
  z-index: -5;
  
  filter:
    saturate(0.74)
    contrast(0.92)
    brightness(1.04);
  transform: scale(1.025);
}

.am-chi-layers-hero__image-overlay {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(
      90deg,
      rgba(252, 252, 250, 0.98) 0%,
      rgba(252, 252, 250, 0.94) 36%,
      rgba(252, 252, 250, 0.74) 64%,
      rgba(252, 252, 250, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(252, 252, 250, 0.48) 0%,
      rgba(252, 252, 250, 0.08) 56%,
      rgba(252, 252, 250, 0.68) 100%
    );
}

/* =========================================================
   STRATI
========================================================= */

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

.am-chi-layers-hero__layer {
  position: absolute;
  display: block;
  border: 1px solid var(--am-chi-hero-border-accent);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.48),
      rgba(247, 246, 243, 0.18)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.am-chi-layers-hero__layer--one {
  top: 9%;
  right: 7%;
  width: min(45vw, 690px);
  height: 72%;
  opacity: 0.64;
  transform: rotate(1.5deg);
  animation:
    amChiHeroLayerOne 16s ease-in-out infinite;
}

.am-chi-layers-hero__layer--two {
  top: 18%;
  right: 13%;
  width: min(38vw, 580px);
  height: 61%;
  opacity: 0.58;
  transform: rotate(-1.3deg);
  animation:
    amChiHeroLayerTwo 19s ease-in-out infinite;
}

.am-chi-layers-hero__layer--three {
  top: 27%;
  right: 2%;
  width: min(31vw, 470px);
  height: 48%;
  opacity: 0.48;
  transform: rotate(2.4deg);
  animation:
    amChiHeroLayerThree 18s ease-in-out infinite;
}

.am-chi-layers-hero__layer--four {
  top: 35%;
  right: 18%;
  width: min(24vw, 360px);
  height: 35%;
  border-color: rgba(127, 167, 160, 0.30);
  opacity: 0.42;
  transform: rotate(-2deg);
  animation:
    amChiHeroLayerFour 14s ease-in-out infinite;
}

.am-chi-layers-hero__opening {
  position: absolute;
  top: 39%;
  right: 25%;
  display: block;
  width: min(14vw, 210px);
  aspect-ratio: 1;
  border: 1px solid rgba(127, 167, 160, 0.22);
  background: rgba(252, 252, 250, 0.14);
  box-shadow:
    0 0 0 18px rgba(252, 252, 250, 0.06),
    0 0 0 38px rgba(252, 252, 250, 0.035);
  transform: rotate(1deg);
  animation:
    amChiHeroOpening 13s ease-in-out infinite;
}

/* =========================================================
   PAROLE
========================================================= */

.am-chi-layers-hero__words {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.am-chi-layers-hero__word {
  position: absolute;
  color: var(--am-chi-hero-text);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  opacity: 0.055;
  user-select: none;
}

.am-chi-layers-hero__word--roles {
  top: 14%;
  right: 23%;
  font-size: clamp(72px, 9vw, 150px);
  transform: rotate(-2deg);
}

.am-chi-layers-hero__word--thoughts {
  top: 36%;
  right: -2%;
  font-size: clamp(75px, 10vw, 170px);
  transform: rotate(1deg);
}

.am-chi-layers-hero__word--memory {
  right: 28%;
  bottom: 13%;
  font-size: clamp(68px, 8vw, 130px);
  transform: rotate(-1deg);
}

.am-chi-layers-hero__word--identity {
  top: 9%;
  left: 4%;
  font-size: clamp(54px, 6vw, 100px);
}

.am-chi-layers-hero__word--definitions {
  right: 8%;
  bottom: -2%;
  font-size: clamp(70px, 9vw, 150px);
}

.am-chi-layers-hero__word--expectations {
  top: 61%;
  left: 38%;
  font-size: clamp(47px, 6vw, 94px);
  transform: rotate(-1.5deg);
}

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

.am-chi-layers-hero__container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(180px, 0.25fr);
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
  width: min(calc(100% - 48px), 1380px);
  min-height: max(760px, 100svh);
  margin: 0 auto;
  padding:
    clamp(140px, 15vh, 205px)
    0
    clamp(115px, 13vh, 175px);
}

/* =========================================================
   CONTENUTO
========================================================= */

.am-chi-layers-hero__content {
  width: min(100%, 920px);
}

.am-chi-layers-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 31px;
  color: var(--am-chi-hero-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.am-chi-layers-hero__eyebrow-line {
  display: block;
  width: 45px;
  height: 1px;
  background: var(--am-chi-hero-accent);
}

.am-chi-layers-hero__title {
  margin: 0;
  color: var(--am-chi-hero-text);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.058em;
}

.am-chi-layers-hero__title-small {
  display: block;
  margin: 0 0 19px 7px;
  color: var(--am-chi-hero-text-secondary);
  font-family: var(--am-ds-font-body), sans-serif;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.am-chi-layers-hero__title-main {
  display: block;
  max-width: 900px;
  font-size: clamp(82px, 10.5vw, 164px);
  text-wrap: balance;
}

.am-chi-layers-hero__statement {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 19px;
  align-items: flex-start;
  width: min(100%, 580px);
  margin-top: clamp(37px, 4vw, 55px);
}

.am-chi-layers-hero__statement-mark {
  display: block;
  width: 11px;
  height: 11px;
  margin-top: 10px;
  background: var(--am-chi-hero-accent);
  box-shadow:
    0 0 0 8px rgba(127, 167, 160, 0.09);
}

.am-chi-layers-hero__statement p {
  margin: 0;
  color: var(--am-chi-hero-text);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: clamp(25px, 2.5vw, 37px);
  font-weight: 400;
  line-height: 1.27;
  letter-spacing: -0.02em;
}

.am-chi-layers-hero__description {
  width: min(100%, 650px);
  margin: 28px 0 0 30px;
  color: var(--am-chi-hero-text-secondary);
  font-size: clamp(14px, 1.13vw, 17px);
  font-weight: 400;
  line-height: 1.88;
}

/* =========================================================
   AZIONI
========================================================= */

.am-chi-layers-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px 34px;
  margin: 39px 0 0 30px;
}

.am-chi-layers-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 53px;
  padding: 16px 31px;
  border: 1px solid var(--am-chi-hero-button);
  border-radius: 999px;
  background: var(--am-chi-hero-button);
  box-shadow:
    0 14px 30px rgba(27, 138, 138, 0.18);
  color: var(--am-ds-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.am-chi-layers-hero__button svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.am-chi-layers-hero__button:hover,
.am-chi-layers-hero__button:focus-visible {
  border-color: var(--am-chi-hero-button-hover);
  background: var(--am-chi-hero-button-hover);
  box-shadow:
    0 17px 35px rgba(27, 138, 138, 0.24);
  color: var(--am-ds-white);
  transform: translateY(-2px);
}

.am-chi-layers-hero__button:hover svg,
.am-chi-layers-hero__button:focus-visible svg {
  transform: translateX(4px);
}

.am-chi-layers-hero__button:focus-visible,
.am-chi-layers-hero__secondary-link:focus-visible,
.am-chi-layers-hero__scroll:focus-visible {
  outline: 2px solid var(--am-chi-hero-button);
  outline-offset: 5px;
}

.am-chi-layers-hero__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: var(--am-chi-hero-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.am-chi-layers-hero__secondary-line {
  position: relative;
  display: block;
  width: 44px;
  height: 1px;
  overflow: hidden;
  background: rgba(34, 34, 34, 0.20);
}

.am-chi-layers-hero__secondary-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--am-chi-hero-button);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.am-chi-layers-hero__secondary-link:hover
.am-chi-layers-hero__secondary-line::after,
.am-chi-layers-hero__secondary-link:focus-visible
.am-chi-layers-hero__secondary-line::after {
  transform: translateX(0);
}

/* =========================================================
   NOTA LATERALE
========================================================= */

.am-chi-layers-hero__aside {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 220px);
  margin-bottom: clamp(58px, 8vh, 105px);
}

.am-chi-layers-hero__aside-index {
  color: var(--am-chi-hero-accent);
  font-family: var(--am-ds-font-display), Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.am-chi-layers-hero__aside-line {
  display: block;
  width: 100%;
  height: 1px;
  margin: 17px 0 21px;
  background:
    linear-gradient(
      to right,
      var(--am-chi-hero-accent),
      rgba(127, 167, 160, 0.05)
    );
}

.am-chi-layers-hero__aside-text {
  margin: 0;
  color: var(--am-chi-hero-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
}

/* =========================================================
   SCROLL
========================================================= */

.am-chi-layers-hero__scroll {
  position: absolute;
  right: clamp(24px, 3vw, 52px);
  bottom: clamp(30px, 4vh, 50px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--am-chi-hero-text-secondary);
  text-decoration: none;
}

.am-chi-layers-hero__scroll-text {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.am-chi-layers-hero__scroll-track {
  position: relative;
  display: block;
  width: 1px;
  height: 76px;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(127, 167, 160, 0.12),
      rgba(127, 167, 160, 0.62),
      rgba(127, 167, 160, 0.12)
    );
}

.am-chi-layers-hero__scroll-dot {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--am-chi-hero-button);
  transform: translateX(-50%);
  animation:
    amChiHeroScroll 2.8s ease-in-out infinite;
}

/* =========================================================
   ANIMAZIONI
========================================================= */

@keyframes amChiHeroLayerOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1.5deg);
  }

  50% {
    transform: translate3d(5px, -3px, 0) rotate(1.5deg);
  }
}

@keyframes amChiHeroLayerTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.3deg);
  }

  50% {
    transform: translate3d(-5px, 4px, 0) rotate(-1.3deg);
  }
}

@keyframes amChiHeroLayerThree {
  0%,
  100% {
    opacity: 0.48;
    transform: translate3d(0, 0, 0) rotate(2.4deg);
  }

  50% {
    opacity: 0.62;
    transform: translate3d(4px, 5px, 0) rotate(2.4deg);
  }
}

@keyframes amChiHeroLayerFour {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    opacity: 0.58;
    transform: translate3d(-4px, -5px, 0) rotate(-2deg);
  }
}

@keyframes amChiHeroOpening {
  0%,
  100% {
    transform: scale(1) rotate(1deg);
  }

  50% {
    transform: scale(1.025) rotate(1deg);
  }
}

@keyframes amChiHeroScroll {
  0% {
    top: 0;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 5px);
    opacity: 0;
  }
}

/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1180px) {
  .am-chi-layers-hero__container {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(150px, 0.2fr);
    gap: 55px;
    width: min(calc(100% - 56px), 1180px);
  }

  .am-chi-layers-hero__title-main {
    font-size: clamp(78px, 10.2vw, 125px);
  }

  .am-chi-layers-hero__layer--one {
    right: 2%;
  }

  .am-chi-layers-hero__layer--two {
    right: 7%;
  }
}

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

@media (max-width: 1024px) {
  .am-chi-layers-hero {
    min-height: auto;
  }

  .am-chi-layers-hero__image {
    --am-photo-position: 64% center;
  }

  .am-chi-layers-hero__image-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(252, 252, 250, 0.97) 0%,
        rgba(252, 252, 250, 0.91) 55%,
        rgba(252, 252, 250, 0.60) 100%
      ),
      linear-gradient(
        180deg,
        rgba(252, 252, 250, 0.35),
        rgba(252, 252, 250, 0.58)
      );
  }

  .am-chi-layers-hero__container {
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 56px), 900px);
    min-height: 900px;
    padding:
      155px
      0
      150px;
  }

  .am-chi-layers-hero__content {
    width: min(100%, 770px);
  }

  .am-chi-layers-hero__aside {
    display: none;
  }

  .am-chi-layers-hero__layer--one {
    top: 15%;
    right: -16%;
    width: 65vw;
    height: 68%;
  }

  .am-chi-layers-hero__layer--two {
    top: 23%;
    right: -6%;
    width: 54vw;
    height: 55%;
  }

  .am-chi-layers-hero__layer--three {
    top: 32%;
    right: -12%;
    width: 43vw;
    height: 43%;
  }

  .am-chi-layers-hero__layer--four {
    top: 40%;
    right: 2%;
    width: 31vw;
    height: 30%;
  }

  .am-chi-layers-hero__opening {
    top: 44%;
    right: 10%;
    width: 18vw;
  }

  .am-chi-layers-hero__word--expectations {
    display: none;
  }
}

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

@media (max-width: 767px) {
  .am-chi-layers-hero {
    min-height: 820px;
  }

  .am-chi-layers-hero__image {
    --am-photo-position: 68% center;
    filter:
      saturate(0.65)
      contrast(0.90)
      brightness(1.07);
  }

  .am-chi-layers-hero__image-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(252, 252, 250, 0.96) 0%,
        rgba(252, 252, 250, 0.89) 52%,
        rgba(252, 252, 250, 0.75) 100%
      ),
      linear-gradient(
        90deg,
        rgba(252, 252, 250, 0.96),
        rgba(252, 252, 250, 0.61)
      );
  }

  .am-chi-layers-hero__container {
    display: block;
    width: 100%;
    min-height: 820px;
    padding:
      130px
      20px
      120px;
  }

  .am-chi-layers-hero__content {
    width: 100%;
  }

  .am-chi-layers-hero__eyebrow {
    gap: 12px;
    margin-bottom: 25px;
    font-size: 9px;
    letter-spacing: 0.19em;
  }

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

  .am-chi-layers-hero__title {
    line-height: 0.91;
  }

  .am-chi-layers-hero__title-small {
    margin: 0 0 15px 3px;
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .am-chi-layers-hero__title-main {
    max-width: 100%;
    font-size: clamp(68px, 20vw, 94px);
    line-height: 0.88;
  }

  .am-chi-layers-hero__statement {
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 16px;
    width: min(100%, 480px);
    margin-top: 37px;
  }

  .am-chi-layers-hero__statement-mark {
    width: 9px;
    height: 9px;
    margin-top: 8px;
    box-shadow:
      0 0 0 7px rgba(127, 167, 160, 0.09);
  }

  .am-chi-layers-hero__statement p {
    font-size: clamp(23px, 7vw, 29px);
    line-height: 1.27;
  }

  .am-chi-layers-hero__description {
    width: min(100%, 500px);
    margin: 23px 0 0 25px;
    padding-right: 4px;
    font-size: 14px;
    line-height: 1.8;
  }

  .am-chi-layers-hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin: 32px 0 0 25px;
  }

  .am-chi-layers-hero__button {
    min-height: 51px;
    padding: 15px 24px;
    font-size: 10px;
    letter-spacing: 0.115em;
  }

  .am-chi-layers-hero__secondary-link {
    font-size: 10px;
  }

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

  .am-chi-layers-hero__layer--one {
    top: 8%;
    right: -43%;
    width: 95vw;
    height: 75%;
    opacity: 0.42;
  }

  .am-chi-layers-hero__layer--two {
    top: 17%;
    right: -30%;
    width: 78vw;
    height: 62%;
    opacity: 0.40;
  }

  .am-chi-layers-hero__layer--three {
    top: 29%;
    right: -33%;
    width: 61vw;
    height: 46%;
    opacity: 0.36;
  }

  .am-chi-layers-hero__layer--four {
    top: 39%;
    right: -17%;
    width: 43vw;
    height: 31%;
    opacity: 0.34;
  }

  .am-chi-layers-hero__opening {
    top: 46%;
    right: -1%;
    width: 24vw;
    min-width: 90px;
    opacity: 0.55;
  }

  .am-chi-layers-hero__word {
    opacity: 0.038;
  }

  .am-chi-layers-hero__word--roles {
    top: 8%;
    right: -12%;
    font-size: 85px;
  }

  .am-chi-layers-hero__word--thoughts {
    top: 45%;
    right: -30%;
    font-size: 110px;
  }

  .am-chi-layers-hero__word--memory {
    right: -4%;
    bottom: 11%;
    font-size: 76px;
  }

  .am-chi-layers-hero__word--identity,
  .am-chi-layers-hero__word--definitions,
  .am-chi-layers-hero__word--expectations {
    display: none;
  }

  .am-chi-layers-hero__scroll {
    right: 18px;
    bottom: 25px;
    gap: 11px;
  }

  .am-chi-layers-hero__scroll-track {
    height: 57px;
  }
}

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

@media (max-width: 390px) {
  .am-chi-layers-hero {
    min-height: 790px;
  }

  .am-chi-layers-hero__container {
    min-height: 790px;
    padding:
      120px
      17px
      110px;
  }

  .am-chi-layers-hero__title-main {
    font-size: clamp(61px, 19vw, 74px);
  }

  .am-chi-layers-hero__statement p {
    font-size: 22px;
  }

  .am-chi-layers-hero__description {
    margin-left: 22px;
    font-size: 13px;
  }

  .am-chi-layers-hero__actions {
    margin-left: 22px;
  }

  .am-chi-layers-hero__button {
    padding-right: 21px;
    padding-left: 21px;
  }
}

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

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

.am-chi-layers-hero__image picture,
.am-chi-layers-hero__image img { display: block; width: 100%; height: 100%; }
.am-chi-layers-hero__image img { object-fit: cover; object-position: var(--am-photo-position, center center); }
