/* Pagina del singolo viaggio (trips/show): testata a tutta foto, racconto a
   blocchi con immagini alternate, date, programma a timeline, spot, recensioni. */

.tp-section { padding: 90px 0; }
.tp-section--tint { background: #f3f7fa; }
.tp-section--slim { padding: 40px 0 70px; }

.tp-kicker {
    margin: 0 0 8px; color: var(--thm-base); font-family: var(--thm-font);
    font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.tp-h2 {
    margin: 0 0 22px; color: var(--thm-black); font-size: 40px; line-height: 1.12;
    font-weight: 700; letter-spacing: 0; text-transform: none;
}
.tp-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.tp-head .tp-h2 { margin-bottom: 0; }
.tp-head--light .tp-kicker { color: var(--thm-primary); }
.tp-head--light .tp-h2 { color: #fff; }

.tp-prose p { margin: 0 0 16px; color: #4d5a66; font-size: 17px; line-height: 1.75; }
.tp-prose p:last-child { margin-bottom: 0; }
.tp-prose--lead p:first-child { color: var(--thm-black); font-size: 19px; }

.tp-card {
    height: calc(100% - 30px); margin-bottom: 30px; padding: 28px; background: #fff;
    border-radius: 18px; box-shadow: 0 10px 30px rgba(5, 27, 53, .07);
}
.tp-card h3 { margin: 0 0 10px; color: var(--thm-black); font-size: 22px; line-height: 1.25; text-transform: none; }
.tp-card p { margin: 0; color: #5b6772; font-size: 15px; line-height: 1.65; }

/* Pulsanti */
.tp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border: 2px solid transparent; border-radius: 40px; cursor: pointer;
    font-family: var(--thm-font); font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.1;
    text-decoration: none !important; text-transform: uppercase;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tp-btn:hover { transform: translateY(-2px); }
.tp-btn--primary { background: var(--thm-primary); color: var(--thm-black) !important; box-shadow: 0 10px 24px rgba(255, 215, 1, .35); }
.tp-btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff !important; background: rgba(255, 255, 255, .08); }
.tp-btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.tp-btn--light { background: #fff; color: var(--thm-base) !important; }
.tp-btn--whatsapp { background: #25d366; color: #fff !important; box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }
.tp-btn--sm { padding: 11px 20px; font-size: 15px; }

/* Testata */
.tp-hero { position: relative; display: flex; align-items: flex-end; min-height: 88vh; padding: 190px 0 150px; overflow: hidden; background: var(--thm-black); }
.tp-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.tp-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 27, 53, .45) 0%, rgba(5, 27, 53, .15) 35%, rgba(5, 27, 53, .82) 100%);
}
.tp-hero__inner { position: relative; z-index: 1; }
.tp-hero__crumbs { margin-bottom: 26px; }
.tp-hero__kicker { margin: 0 0 12px; color: var(--thm-primary); font-family: var(--thm-font); font-size: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tp-hero__title {
    max-width: 900px; margin: 0 0 18px; color: #fff; font-size: 76px; line-height: 1;
    font-weight: 700; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.tp-hero__tagline { max-width: 680px; margin: 0 0 34px; color: rgba(255, 255, 255, .92); font-size: 21px; line-height: 1.55; }
.tp-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Dati chiave, a cavallo della testata */
.tp-facts {
    position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: -64px 0 0; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(5, 27, 53, .14); overflow: hidden;
}
.tp-facts li { display: flex; flex-direction: column; gap: 2px; padding: 24px 26px; border-right: 1px solid #edf1f4; }
.tp-facts li:last-child { border-right: 0; }
.tp-facts i { margin-bottom: 8px; color: var(--thm-base); font-size: 20px; }
.tp-facts span { color: #8a96a1; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.tp-facts strong { color: var(--thm-black); font-size: 17px; line-height: 1.35; }
.tp-facts__price { background: var(--thm-base); }
.tp-facts__price i, .tp-facts__price span { color: rgba(255, 255, 255, .75); }
.tp-facts__price strong { color: #fff; font-family: var(--thm-font); font-size: 30px; }

/* Introduzione */
.tp-intro { padding-top: 100px; }
.tp-intro__figure { position: relative; margin: 30px 0 0 20px; }
.tp-intro__figure img { width: 100%; border-radius: 22px; box-shadow: 0 24px 50px rgba(5, 27, 53, .18); }
.tp-intro__badge {
    position: absolute; left: -20px; bottom: 28px; padding: 14px 20px; background: var(--thm-primary); border-radius: 14px;
    color: var(--thm-black); font-family: var(--thm-font); font-size: 18px; font-weight: 700; box-shadow: 0 12px 24px rgba(5, 27, 53, .18);
}

/* Punti di forza */
.tp-highlight__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 18px;
    border-radius: 16px; background: linear-gradient(135deg, var(--thm-base), #0c6a99); color: #fff; font-size: 22px;
}

/* Racconto a blocchi */
.tp-story__row { margin-bottom: 90px; }
.tp-story__row:last-child { margin-bottom: 0; }
.tp-story__figure { position: relative; margin: 0; isolation: isolate; }
.tp-story__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px rgba(5, 27, 53, .16); }
.tp-story__row:not(.flex-lg-row-reverse) .tp-story__figure::before,
.tp-story__row.flex-lg-row-reverse .tp-story__figure::before {
    content: ""; position: absolute; z-index: -1; width: 55%; height: 60%; border-radius: 22px; background: var(--thm-primary); opacity: .9;
}
.tp-story__row:not(.flex-lg-row-reverse) .tp-story__figure::before { left: -18px; bottom: -18px; }
.tp-story__row.flex-lg-row-reverse .tp-story__figure::before { right: -18px; top: -18px; }
.tp-story__text { padding: 10px 0 10px 40px; }
.tp-story__row.flex-lg-row-reverse .tp-story__text { padding: 10px 40px 10px 0; }
.tp-story__num { display: block; margin-bottom: 4px; color: rgba(9, 77, 112, .18); font-family: var(--thm-font); font-size: 64px; font-weight: 700; line-height: 1; }

.tp-pullquote { max-width: 820px; margin: 0 auto 90px; padding: 0 20px; text-align: center; }
.tp-pullquote i { color: var(--thm-primary); font-size: 34px; }
.tp-pullquote p { margin: 14px 0; color: var(--thm-black); font-family: var(--thm-font); font-size: 30px; line-height: 1.3; }
.tp-pullquote cite { color: var(--thm-base); font-style: normal; font-weight: 700; }

/* Date */
.tp-dates { background: linear-gradient(180deg, #fff 0%, #f3f7fa 100%); }
.tp-date {
    position: relative; margin-bottom: 30px; padding: 32px 26px 28px; text-align: center; background: #fff;
    border: 2px solid #e6eef3; border-radius: 22px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tp-date:hover { border-color: var(--thm-base); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5, 27, 53, .1); }
.tp-date__month { display: block; color: var(--thm-base); font-family: var(--thm-font); font-size: 40px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.tp-date__year { display: block; margin-top: 2px; color: #8a96a1; font-size: 15px; letter-spacing: .2em; }
.tp-date__label { margin: 16px 0 4px; color: var(--thm-black); font-size: 19px; font-weight: 700; }
.tp-date__meta { margin: 0 0 20px; color: #8a96a1; font-size: 14px; }
.tp-dates__note { margin: 10px 0 0; color: #4d5a66; font-size: 16px; text-align: center; }
.tp-dates__note i, .tp-dates__past i { margin-right: 6px; color: var(--thm-base); }
.tp-dates__past { margin: 14px 0 0; color: #8a96a1; font-size: 14px; text-align: center; }
.tp-dates__past span { white-space: nowrap; }

/* Programma */
.tp-timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 38px; }
.tp-timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 30px; width: 2px; background: linear-gradient(var(--thm-base), rgba(9, 77, 112, .15)); }
.tp-timeline__item { position: relative; }
.tp-timeline__dot { position: absolute; left: -38px; top: 26px; width: 24px; height: 24px; border: 5px solid #fff; border-radius: 50%; background: var(--thm-primary); box-shadow: 0 0 0 2px var(--thm-base); }
.tp-timeline .tp-card { height: auto; }

/* Spot */
.tp-spots { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--thm-base) 0%, #0a6090 100%); }
.tp-spots__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tp-spots__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(5, 27, 53, .85), rgba(9, 77, 112, .7)); }
.tp-spots__inner { position: relative; z-index: 1; }
.tp-spot {
    height: calc(100% - 30px); margin-bottom: 30px; padding: 30px 24px; text-align: center; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tp-spot i { margin-bottom: 14px; color: var(--thm-primary); font-size: 28px; }
.tp-spot h3 { margin: 0 0 8px; color: #fff; font-size: 24px; text-transform: none; }
.tp-spot p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.6; }

/* Prezzo e liste */
.tp-price { margin: 14px 0 0; color: #5b6772; font-size: 18px; }
.tp-price strong { color: var(--thm-base); font-family: var(--thm-font); font-size: 34px; }
.tp-list { height: auto; }
.tp-list h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tp-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f5; color: #4d5a66; font-size: 15px; line-height: 1.55; }
.tp-list li:last-child { border-bottom: 0; }
.tp-list li i { flex: 0 0 auto; margin-top: 4px; }
.tp-list--yes h3, .tp-list--yes li i { color: #2e7d32; }
.tp-list--no h3, .tp-list--no li i { color: #d84315; }
.tp-list--extra h3 { color: var(--thm-base); }
.tp-list--extra li { justify-content: space-between; }
.tp-list--extra li strong { flex: 0 0 auto; color: var(--thm-base); font-size: 17px; }

/* Recensioni */
.tp-review { display: flex; flex-direction: column; }
.tp-review__stars { margin-bottom: 14px; color: #f5b400; font-size: 15px; letter-spacing: 2px; }
.tp-review blockquote { flex: 1; margin: 0 0 18px; }
.tp-review blockquote p { color: #3d4852; font-size: 16px; font-style: italic; line-height: 1.7; }
.tp-review figcaption strong { display: block; color: var(--thm-black); }
.tp-review figcaption span { display: block; color: #8a96a1; font-size: 13px; }
.tp-review__source { margin-top: 4px; }

.tp-rating {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 20px; background: #fff;
    border-radius: 40px; box-shadow: 0 8px 22px rgba(5, 27, 53, .08); color: #5b6772 !important; text-decoration: none !important;
}
.tp-rating strong { color: var(--thm-black); font-family: var(--thm-font); font-size: 24px; line-height: 1; }
.tp-rating .tp-review__stars { margin: 0; }

/* Storie dal blog */
.tp-post { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.tp-post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5, 27, 53, .14); }
.tp-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tp-post__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.tp-post__date { margin-bottom: 6px; color: #8a96a1; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tp-post__body h3 { flex: 1; font-size: 21px; }
.tp-post__more { margin-top: 14px; color: var(--thm-base); font-weight: 700; }

/* Galleria */
.tp-gallery__frame { overflow: hidden; border-radius: 16px; box-shadow: 0 8px 22px rgba(5, 27, 53, .1); }
.tp-gallery__frame img { width: 100%; height: 300px; object-fit: cover; transition: transform .3s ease; }
.gallery-carousel .item:hover img { transform: scale(1.05); }
.gallery-carousel .owl-nav button {
    position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px;
    background: rgba(255, 255, 255, .9) !important; border-radius: 50% !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
    font-size: 18px !important; color: var(--thm-base) !important;
}
.gallery-carousel .owl-nav button.owl-prev { left: -20px; }
.gallery-carousel .owl-nav button.owl-next { right: -20px; }
.gallery-carousel .owl-dots { margin-top: 25px; }
.gallery-carousel .owl-dot span { background: #ccc !important; }
.gallery-carousel .owl-dot.active span { background: var(--thm-base) !important; }

/* Requisiti */
.tp-req { max-width: 860px; height: auto; margin: 0 auto; background: #eaf3fa; box-shadow: none; }
.tp-req h2 { margin: 0 0 14px; color: var(--thm-base); font-size: 26px; text-transform: none; }

/* Invito finale */
.tp-cta { position: relative; padding: 130px 0; overflow: hidden; text-align: center; background: var(--thm-black); }
.tp-cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tp-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 27, 53, .55), rgba(9, 77, 112, .85)); }
.tp-cta__inner { position: relative; z-index: 1; max-width: 760px; }
.tp-cta h2 { margin: 0 0 18px; color: #fff; font-size: 54px; line-height: 1.05; text-transform: uppercase; }
.tp-cta p { margin: 0 0 32px; color: rgba(255, 255, 255, .9); font-size: 19px; line-height: 1.6; }
.tp-cta .tp-hero__ctas { justify-content: center; }

/* Barra fissa su mobile */
.tp-sticky { display: none; }

/* Modale */
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991px) {
    .tp-section { padding: 70px 0; }
    .tp-h2 { font-size: 32px; }
    .tp-hero { min-height: 0; padding: 150px 0 120px; }
    .tp-hero__title { font-size: 52px; }
    .tp-intro__figure { margin: 40px 0 0; }
    .tp-intro__badge { left: 16px; }
    .tp-story__row { margin-bottom: 64px; }
    .tp-story__figure { margin-bottom: 34px; }
    .tp-story__text, .tp-story__row.flex-lg-row-reverse .tp-story__text { padding: 0; }
    .tp-story__figure::before { display: none; }
    .tp-pullquote p { font-size: 24px; }
    .tp-cta h2 { font-size: 40px; }
    .tp-facts li { border-right: 0; border-bottom: 1px solid #edf1f4; }
}

@media (max-width: 767px) {
    .tp-section { padding: 56px 0; }
    .tp-h2 { font-size: 28px; }
    .tp-hero { padding: 130px 0 100px; }
    .tp-hero__title { font-size: 40px; }
    .tp-hero__tagline { font-size: 18px; }
    .tp-hero__ctas .tp-btn { width: 100%; }
    .tp-facts { grid-template-columns: 1fr 1fr; margin-top: -50px; }
    .tp-facts li { padding: 18px; }
    .tp-facts__price strong { font-size: 24px; }
    .tp-prose p { font-size: 16px; }
    .tp-prose--lead p:first-child { font-size: 17px; }
    .tp-story__num { font-size: 48px; }
    .tp-highlight { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; height: auto; margin-bottom: 14px; padding: 20px; }
    .tp-highlight__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; border-radius: 12px; font-size: 18px; }
    .tp-highlight h3 { margin-bottom: 4px; font-size: 19px; }
    .tp-gallery__frame img { height: 240px; }
    .gallery-carousel .owl-nav button.owl-prev { left: 4px; }
    .gallery-carousel .owl-nav button.owl-next { right: 4px; }
    .tp-cta { padding: 90px 0; }
    .tp-cta h2 { font-size: 32px; }

    .tp-sticky {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(5, 27, 53, .14);
        transform: translateY(110%); transition: transform .25s ease;
    }
    .tp-sticky.is-visible { transform: translateY(0); }
    .tp-sticky span { display: block; color: #8a96a1; font-size: 12px; text-transform: uppercase; }
    .tp-sticky strong { color: var(--thm-base); font-family: var(--thm-font); font-size: 22px; line-height: 1; }
}
