/* =====================================================
   FILE: index.css
   ===================================================== */


/* ============================================================
   VIDEO / HERO CONTAINER
============================================================ */
.video-container {
  margin-top: 50px;
  width: 100%;
  height: calc(100dvh - 85px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

/* fallback */
@supports not (height: 100dvh) {
  .video-container {
    height: calc(100vh - 110px);
  }
}

/* video (attualmente non usato ma lasciato coerente) */
video {
  width: 90%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
  opacity: 0;
  transition: opacity 1s ease-in;
}
video.visible {
  opacity: 1;
}

/* overlay tap (video) */
.tap-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.tap-overlay.show {
  display: flex;
}

.tap-chip {
  pointer-events: auto;
  user-select: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 999px;
  background: rgba(235,219,208,0.92);
  border: 1px solid var(--primary);
  color: var(--primary);
  backdrop-filter: blur(4px);
  transition: transform .2s ease, opacity .2s ease;
}
.tap-chip:active {
  transform: scale(0.98);
  opacity: .9;
}


/* ============================================================
   HERO IMAGE (sostituto video)
============================================================ */
.hero-picture {
  width: 90%;
  height: 100%;
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
  display: block;
}


/* ============================================================
   STRUTTURA GENERALE
============================================================ */
.section {
  width: 90vw;
  margin: 0 auto 10px;
  padding: 20px 0;
}

.section-flex {
  display: flex;
  flex-direction: row;
  width: 100%;
}


/* ============================================================
   TIPOGRAFIA
============================================================ */
.section h2,
.section h3,
.section p {
  margin: 0 0 15px 0;
  color: var(--primary);
}

.section h2 {
  font-family: 'Chopard', serif;
  letter-spacing: -0.25rem;
  font-size: 2rem;
  text-transform: uppercase;
}

.section h3 {
  font-family: 'Chopard', serif;
  letter-spacing: -0.12rem;
  font-size: 1rem;
}

.section p {
  font-family: 'Cormorant', serif;
  font-size: 1.3rem;
  line-height: 1.9rem;
}


/* ============================================================
   SEZIONE — SOLO TESTO
============================================================ */
.section-text-only {
  text-align: center;
}

.section-text-only p {
  width: 80%;
  margin: 0 auto;
}


/* ============================================================
   SEZIONE — IMG ORIZZONTALE
============================================================ */
.section-image-only img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
}


/* ============================================================
   SEZIONE — IMG ORIZZONTALE + TESTI
============================================================ */
.section-horizontal img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
}

.section-horizontal .text-row {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.section-horizontal .text-col {
  width: 50%;
  padding: 40px;
  text-align: center;
}


/* ============================================================
   SEZIONE — VERTICALE DESTRA
============================================================ */
.section-vert-right .text-vertical-left {
  width: 50%;
  display: flex;
  justify-content: center;
}

.section-vert-right .text-half {
  max-width: 520px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.section-vert-right .text-half p {
  text-align: justify;
  hyphens: auto;
}

.section-vert-right .img-vertical-right {
  width: 50%;
}

.section-vert-right .img-vertical-right img {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
}


/* ============================================================
   SEZIONE — VERTICALE SINISTRA
============================================================ */
.section-vert-left .text-vertical-right {
  width: 50%;
  display: flex;
  justify-content: center;
}

.section-vert-left .text-half {
  max-width: 520px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.section-vert-left .text-half p {
  text-align: justify;
  hyphens: auto;
}

.section-vert-left .img-vertical-left {
  width: 50%;
}

.section-vert-left .img-vertical-left img {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
}


/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 900px) {

  /* struttura base */
  .section-flex {
    flex-direction: column;
  }

  /* 🔑 ALTERNANZA EDITORIALE */
  .text-vertical-left,
  .text-vertical-right {
    order: 1;
    width: 100% !important;
  }

  .img-vertical-left,
  .img-vertical-right {
    order: 2;
    width: 100% !important;
  }

  .img-vertical-left img,
  .img-vertical-right img {
    width: 100% !important;
    height: auto !important;
    max-height: 100vh !important;
    object-fit: contain !important;
  }

  .section-horizontal .text-row {
    flex-direction: column;
  }

  .section-horizontal .text-col {
    width: 100%;
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .text-half,
  .text-col {
    padding: 25px 20px;
  }

  /* niente giustificato su mobile */
  .text-half p {
    text-align: left;
    hyphens: none;
  }

  .section h2 { font-size: 2rem; }
  .section h3 { font-size: 1.3rem; }
  .section p  { font-size: 1.2rem; }
}


/* ============================================================
   EXTRA SMALL
============================================================ */
@media (max-width: 480px) {
  .section p {
    font-size: 1.1rem;
  }
}