/* =========================================================
   COVER testo (posizione)
   ========================================================= */
.cover_text_pos{
  position: absolute;
  top: 14vh;
  left: 4vw;

  width: min(1100px, 30vw);
  margin: 0;
}


/* =========================
   Horizontal scroll — stesso pattern di Orb storyboard
   ========================= */

 .hscroll-wrapper{
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

 .hscroll{
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
 .hscroll::-webkit-scrollbar{ display: none; }

 .hslide{
  flex: 0 0 100vw;
  height: 100%;
  scroll-snap-align: start;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;

  padding: clamp(24px, 4vw, 60px);
  box-sizing: border-box;
}

 .htext h2{
  margin: 9% 0 14px 0;
  font-family: var(--testi-font-family), Helvetica;
  font-weight: var(--testi-font-weight);
  font-style: italic;
  font-size: var(--testi-font-size);
  line-height: 1.1;
  color: var(--neros);
}

 .htext p{
  margin: 0;
  font-family: var(--testi-font-family);
  font-weight: var(--testi-font-weight);
  font-size: var(--testi-font-size);
  letter-spacing: var(--testi-letter-spacing);
  line-height: var(--testi-line-height);
  color: var(--neros);
  opacity: 0.9;
  max-width: 60ch;
}

 .himg{
  width: auto;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  justify-self: center;
}

@media (max-width: 700px){
   .hslide{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
  }
   .himg{ max-height: 25vh; }
   .hscroll-arrow{ right: 18px; top: 35%;}
}

/* =========================
   Device + GIF + texts — “container centrale” come Orb
   ========================= */
 .media{
  margin-top: 0;          /* la gif parte subito, più editoriale */
  margin-bottom: clamp(14px, 3vh, 26px);
  display: grid;
  place-items: center;
}


 .gif{
  width: min(900px, 96vw);
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =========================
   Frames grid (3-up) — come screenshot
   ========================= */

 .frames-grid{
  margin-top: clamp(40px, 8vh, 120px);
}

 .frames-grid-inner{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

 .frame-card{
  margin: 0;
  text-align: center;
}

 .frame-card .frame-label{
  display: block;
  margin: 0 0 12px 0;

  font-family: var(--testi-font-family), Helvetica;
  font-weight: var(--testi-font-weight);

  font-size: var(--testi-font-size);
  color: var(--neros);
  opacity: 0.9;
    /* 🔥 riserva sempre spazio per 2 righe */
  min-height: calc(2 * 1.25em);
}

 .frame-card img{
  width: 100%;
  height: auto;
  display: block;

  /* feeling “monitor grande” */
  max-width: 520px;
  margin-inline: auto;

  border-radius: 0; /* nello screenshot è pulito */
}

/* Responsive: 2 colonne su tablet, 1 su mobile */
@media (max-width: 1100px){
   .frames-grid-inner{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px){
   .frames-grid-inner{
    grid-template-columns: 1fr;
  }

   .frame-card .frame-label{
    font-size: 16px;
    margin-bottom: 10px;
  }
}
