/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOUR PAGE — fullscreen storytelling
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Layout containers */
.tp-c { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.tp-w { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Reveal animation specifics for tour page */
.tp-stop[data-reveal]        { opacity: 0; transform: translateY(24px); }
.tp-stop[data-reveal].visible {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

/* ── HERO ────────────────────────────────────────────── */
.tp-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.tp-hero-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}
.tp-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.82) 100%
  );
}
.tp-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: tp-fade-up 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes tp-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tp-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
  animation-delay: 0.2s;
}
.tp-hero-title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}
.tp-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.65);
  margin: 0 0 40px;
  font-weight: 300;
  max-width: 520px;
}
.tp-book-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--c-red);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 32px rgba(230,57,70,0.45);
}
.tp-book-hero:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(230,57,70,0.55); }
.tp-book-hero svg { width: 17px; height: 17px; }

/* Scroll hint */
.tp-scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.tp-scroll-dot {
  width: 2px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.tp-scroll-dot::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 40%;
  background: rgba(255,255,255,0.8);
  border-radius: 1px;
  animation: tp-scroll-anim 2s ease-in-out infinite;
}
@keyframes tp-scroll-anim {
  0%   { top: -40%; }
  100% { top: 140%; }
}

/* ── INTRO ────────────────────────────────────────────── */
.tp-intro {
  padding: 104px 0 80px;
  background: var(--c-bg);
  text-align: center;
}
.tp-tagline {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.4;
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}
.tp-pills {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.tp-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #fff;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-dark);
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.05);
}
.tp-pill svg { width: 15px; height: 15px; color: var(--c-red); }

/* ── STORIA ────────────────────────────────────────────── */
.tp-story {
  padding: 80px 0 96px;
  background: #fff;
}
.tp-story p {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.95;
  color: #4a4a4a;
  margin: 0 0 28px;
}
.tp-story p:last-child { margin: 0; }

/* ── COSA VEDRAI ────────────────────────────────────────── */
.tp-stops-section {
  padding: 104px 0;
  background: var(--c-dark);
}
.tp-s-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin: 0 0 64px;
}
.tp-stops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tp-stop {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.04);
}
.tp-stop:nth-child(3n) { border-right: none; }
.tp-stop-n {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--c-red);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.tp-stop-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  padding-top: 8px;
}

/* ── GALLERY ────────────────────────────────────────────── */
.tp-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 65vh;
  min-height: 380px;
}
.tp-gimg {
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.tp-gallery:hover .tp-gimg { transform: scale(1.025); }

/* ── MAPPA ────────────────────────────────────────────── */
.tp-map-section { padding: 48px 0 64px; background: var(--c-dark); }
.tp-map {
  width: 100%;
  border-radius: 20px;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ── INFO (include + incontro) ─────────────────────────── */
.tp-info-section {
  padding: 88px 0;
  background: #fff;
}
.tp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.tp-info-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.tp-info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.tp-info-block li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}
.tp-info-block li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  flex-shrink: 0;
}
.tp-meeting-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 10px;
}
.tp-info-block p { font-size: 0.93rem; color: #888; line-height: 1.65; margin: 0; }

/* ── PRENOTAZIONE ────────────────────────────────────────── */
.tp-booking-section {
  padding: 120px 0;
  background: #08080f;
  text-align: center;
}
.tp-book-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red);
  margin: 0 0 18px;
}
.tp-book-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tp-book-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.35);
  margin: 0 0 64px;
}
.tp-form { text-align: left; }
.tp-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.tp-fg { display: flex; flex-direction: column; gap: 8px; }
.tp-fg label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.tp-fg input,
.tp-fg textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  -webkit-appearance: none;
  color-scheme: dark;
}
.tp-fg input::placeholder,
.tp-fg textarea::placeholder { color: rgba(255,255,255,0.25); }
.tp-fg input:focus,
.tp-fg textarea:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}
.tp-times { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-time {
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.tp-time:hover { border-color: var(--c-red); color: #fff; background: rgba(230,57,70,0.15); }
.tp-time.active { border-color: var(--c-red); background: var(--c-red); color: #fff; }
.tp-counter {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 22px;
}
.tp-counter button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font);
  line-height: 1;
}
.tp-counter button:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
#pCount { color: #fff; font-size: 1.1rem; font-weight: 700; min-width: 20px; text-align: center; }
.tp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px 48px;
  background: var(--c-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 40px rgba(230,57,70,0.35);
  letter-spacing: 0.01em;
}
.tp-submit:hover { transform: translateY(-3px); box-shadow: 0 14px 48px rgba(230,57,70,0.5); }
.tp-submit:disabled { background: #555; box-shadow: none; transform: none; cursor: default; }
.tp-submit svg { width: 18px; height: 18px; }
.tp-form-note { font-size: 0.78rem; color: rgba(255,255,255,0.25); margin: 0; }

/* ── ALTRI TOUR ────────────────────────────────────────── */
.tp-other-section {
  padding: 96px 0;
  background: var(--c-bg);
}
.tp-other-section .tp-s-title { margin-bottom: 48px; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 860px) {
  .tp-info-grid { grid-template-columns: 1fr; gap: 56px; }
  .tp-stops { grid-template-columns: 1fr 1fr; }
  .tp-stop { border-right: none; }
}
@media (max-width: 640px) {
  .tp-hero-title { font-size: 3rem; }
  .tp-gallery { height: auto; grid-template-columns: 1fr; }
  .tp-gimg { height: 42vw; min-height: 200px; }
  .tp-stops { grid-template-columns: 1fr; }
  .tp-form-row { grid-template-columns: 1fr; }
  .tp-booking-section { padding: 80px 0; }
  .tp-scroll-hint { display: none; }
}

/* ── NOTA PREZZO NEL FORM ───────────────────────────── */
.tp-book-price-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

/* ── STORIA COLLASSABILE (solo mobile) ──────────────── */
.tp-story-toggle { display: none; }

@media (max-width: 640px) {
  .tp-story-inner {
    max-height: 110px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
  }
  .tp-story-inner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .tp-story-inner.open { max-height: 800px; }
  .tp-story-inner.open::after { opacity: 0; }
  .tp-story-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--c-red);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    padding: 0;
  }
  .tp-story-toggle svg {
    width: 16px; height: 16px;
    transition: transform 0.3s;
  }
  .tp-story-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
}


/* ── Didascalia "Il percorso" + tappe collassabili mobile ── */
.tp-map-section .tp-s-title { margin-bottom: 10px; }
.tp-percorso-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 36px;
}
@media (max-width: 768px) {
  .tp-percorso-sub { font-size: 0.88rem; margin-bottom: 28px; }
  .tp-stops-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    padding: 14px 18px;
    cursor: pointer;
    margin-top: 16px;
  }
  .tp-stops-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
  }
  .tp-stops-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .tp-map-stops {
    max-height: 0 !important;
    overflow: hidden !important;
    border-top: none !important;
    margin-top: 0 !important;
    transition: max-height 0.4s ease;
  }
  .tp-map-stops.open {
    max-height: 1200px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    margin-top: 12px !important;
  }
}
@media (min-width: 769px) {
  .tp-stops-toggle { display: none; }
}
