/* Container sezione full‑screen */
.studio-section {
  position: relative;
  height: 100vh;
  background-color: #000;
}

/* Wrapper sticky che contiene tutto */
.studio-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Porte iniziali */
.doors {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 10;
}

.door {
  flex: 1;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-size: 5vw;
  overflow: hidden;
  width: 20vw;
}
.door .door-text {
  white-space: nowrap;
  transition: transform 0.3s ease;
}
.door.left .door-text {
  transform: translateX(180%);
}
.door.right .door-text {
  transform: translateX(-100%);
}

/* Pulsante “Tutti i progetti” (pill) */
.all-projects {
  position: absolute;
  top: 5%;
  right: 5%;
  display: inline-block;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: 8px 24px;
  font-size: 16px;
  line-height: 1;
  color: #000;
  background-color: transparent;
  cursor: pointer;
  opacity: 0;        /* gestito da JS/GSAP per fade-in */
  z-index: 15;
}

/* Sfondo dinamico dei portfolio items */
.studio-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 2;
  will-change: opacity, transform;
}

/* Testi sinistro + destro, allineati in basso */
.text-left,
.text-right {
  position: absolute;
  bottom: 10vh;
  opacity: 0;
  z-index: 5;
  overflow: hidden;
}

/* Lato sinistro */
.text-left {
  left: 5%;
  width: 45%;
}
.text-left h3 {
  margin: 0;
  font-family: inherit;
  font-size: 80px;
  line-height: 88px;
  font-weight: 400;
  color: #3c3c3c;
}

/* Lato destro */
.text-right {
  right: 5%;
  max-width: 40%;
  text-align: left;
}
.text-right p {
  margin: 0;
  font-family: inherit;
  font-size: 24px !important;
  line-height: 24px !important;
  font-weight: 400;
  color: #3c3c3c;
}

/* Media queries per mobile */
@media (max-width: 768px) {
  .door {
    font-size: 10vw;
  }
  .door.left .door-text {
    transform: translateX(30%);
  }
  .door.right .door-text {
    transform: translateX(-10%);
  }

  /* Pulsante ridotto */
  .all-projects {
    top: 3%;
    right: 3%;
    padding: 6px 16px;
    font-size: 14px;
  }

  .text-left h3 {
    font-size: 35px;
    line-height: 37px;
  }
  .text-right p {
    font-size: 16px;
    line-height: 16px;
  }
}