/* ==========================================================================
   tour-archivio.css
   Stili aggiuntivi per i tour con tour_attivo = false
   Da accodare al foglio di stile principale o caricare separatamente.
   Chiamata in functions.php:
     wp_enqueue_style( 'ohayo-tour-archivio', get_template_directory_uri() . '/css/tour-archivio.css', array('ohayo-style'), _S_VERSION );
   ========================================================================== */


/* --------------------------------------------------------------------------
   STICKY BAR — stato archivio
   Quando tour_attivo = false la sticky bar mostra solo il bottone archivio,
   centrato e senza prezzo né stickybuttons.
   -------------------------------------------------------------------------- */

.sticky-bar--archivio {
  justify-content: center;
}

.sticky-btn-archivio {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans, sans-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 28px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  margin: 10px 0px;
}

.sticky-btn-archivio:hover {
  border-color: var(--secondary, rgba(255, 255, 255, 0.6));
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}


/* --------------------------------------------------------------------------
   GALLERY ARCHIVE HEADER
   Intestazione mostrata sopra la galleria quando tour_attivo = false
   -------------------------------------------------------------------------- */

.tour-gallery--archivio {
  padding-top: 0;
}

.gallery-archive-header {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 64px 24px 0;
  text-align: center;
}

.gallery-archive-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, rgba(255, 255, 255, 0.4));
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 14px;
}

.gallery-archive-title {
  margin: 0 0 20px;
  color: var(--slate, #000);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
}

.gallery-archive-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted, rgba(255, 255, 255, 0.45));
  margin: 0;
  font-style: italic;
}


/* --------------------------------------------------------------------------
   SEZIONE MAPPA PERCORSO
   Visibile solo su tour archiviati con tour_mostra_mappa = true
   -------------------------------------------------------------------------- */

.tour-mappa__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted, rgba(255, 255, 255, 0.45));
  max-width: 640px;
  margin: 0 0 32px;
  font-style: italic;
}

.tour-mappa__embed {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.tour-mappa__embed iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  filter: grayscale(0.25) brightness(0.9);
  transition: filter 0.3s ease;
}

.tour-mappa__embed:hover iframe {
  filter: grayscale(0) brightness(1);
}

@media (max-width: 680px) {
  .tour-mappa__embed iframe {
    height: 320px;
  }
}


/* --------------------------------------------------------------------------
   FASCIA "VEDI LE FOTO DEI TOUR PRECEDENTI"
   Visibile solo su tour attivi con un tour passato collegato della stessa serie.
   Si posiziona subito dopo il manifesto, prima del season-stripe.
   Layout orizzontale: testo a sinistra, bottone a destra.
   -------------------------------------------------------------------------- */

.tour-prev-gallery-band {
  padding: 36px 40px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tour-prev-gallery-band__inner {
  max-width: var(--content-wide, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tour-prev-gallery-band__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour-prev-gallery-band__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
	font-weight: 800;
  color: var(--muted, rgba(255, 255, 255, 0.35));
}

.tour-prev-gallery-band__title {
  font-family: var(--serif, serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  color:  rgba(255, 255, 255, 0.85);
  margin: 0;
  font-style: italic;
}

.tour-prev-gallery-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--paper-dark);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}


.tour-prev-gallery-band__btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tour-prev-gallery-band__btn svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tour-prev-gallery-band__btn:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .tour-prev-gallery-band {
    padding: 28px 24px;
  }

  .tour-prev-gallery-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tour-prev-gallery-band__btn {
    width: 100%;
    justify-content: center;
  }
}


/* --------------------------------------------------------------------------
   CTA "PRENOTA IL PROSSIMO TOUR"
   Visibile solo su tour passati con un tour attivo collegato della stessa serie.
   Si posiziona subito prima della final-cta.
   -------------------------------------------------------------------------- */

.tour-next-cta {
  padding: 80px 24px;
  text-align: center;
  background: var(--primary, #9E2B1A);
  position: relative;
  overflow: hidden;
}

/* Kanji decorativo di sfondo */
.tour-next-cta::before {
  content: '次';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(160px, 25vw, 280px);
  color: rgba(255, 255, 255, 0.04);
  font-family: serif;
  pointer-events: none;
  line-height: 1;
}

.tour-next-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
}

.tour-next-cta__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
}

.tour-next-cta__title {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
}

.tour-next-cta__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 36px;
  line-height: 1.6;
}

.tour-next-cta__btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--primary, #9E2B1A);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tour-next-cta__btn:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SOLD OUT
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ribbon diagonale sull'hero */
.soldout-ribbon {
  position: absolute;
  top: 40px;
  right: -36px;
  z-index: 20;
  background: #C0392B;
  color: white;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 64px;
  transform: rotate(35deg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  pointer-events: none;
}

/* Badge nella sticky bar (desktop) */
.sticky-soldout-badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  background: #C0392B;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Blocco waitlist nella sezione #info */
.soldout-cta-block {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 28px 24px;
  text-align: center;
}

.soldout-cta-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C0392B;
  margin-bottom: 10px;
}

.soldout-cta-text {
  font-family: 'Crimson Pro', serif;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-waitlist {
  width: 100%;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-waitlist:hover {
  border-color: white;
  background: rgba(255,255,255,0.06);
}

/* Bottone waitlist nella final-cta */
.final-btn-waitlist {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 18px 48px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.final-btn-waitlist:hover {
  border-color: white;
  background: rgba(255,255,255,0.06);
}

