/* Racconto del tour sulle schede /viaggi (spec 2026-11-14-0830-scheda-tour-racconto).
   Stile della scheda HoEscape: riquadri .vd-section-card, titoli .vd-h2, colori --sv2-*.
   Niente pillole né badge (owner). */
.tr-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.tr-sec { min-width: 0; }
.tr-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.tr-facts li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; color: #14213d; font-size: 15px; line-height: 1.45; }
.tr-facts .bi { color: var(--sv2-blue, #1f4fa3); font-size: 18px; line-height: 1.2; }
.tr-onsite { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #eef1f5; font-size: 14px; color: var(--sv2-muted, #5b6880); }
.tr-onsite .bi { font-size: 16px; }

.tr-hl { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px 0 0; padding: 2px 0 4px; scrollbar-width: none; }
.tr-hl::-webkit-scrollbar { display: none; }
.tr-card { flex: 0 0 72%; max-width: 260px; scroll-snap-align: start; border: 1px solid #e9ecef; border-radius: 14px; overflow: hidden; background: #fff; }
.tr-pic { aspect-ratio: 16 / 10; background: var(--sv2-blue-soft, #eaf1fc); position: relative; display: flex; }
.tr-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-noimg { margin: auto; color: var(--sv2-blue, #1f4fa3); font-size: 34px; opacity: .45; }
.tr-cb { padding: 10px 14px 12px; }
.tr-cn { margin: 0; font-weight: 800; color: var(--sv2-navy, #1e3a70); font-size: 16px; line-height: 1.25; }
.tr-cl { margin: 3px 0 0; font-size: 14px; color: var(--sv2-muted, #5b6880); line-height: 1.4; }
.tr-cd { margin: 6px 0 0; font-size: 13px; color: var(--sv2-blue, #1f4fa3); font-weight: 700; }
/* Autore delle foto CC BY dell'archivio dei luoghi (owner 15/11/2026). */
.tr-credit { margin: 6px 0 0; font-size: 11px; line-height: 1.35; color: var(--sv2-muted, #5b6880); overflow-wrap: anywhere; }
.tr-credit a { color: inherit; text-decoration: underline; }

.tr-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tr-days { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.tr-days::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 24px; width: 2px; background: var(--sv2-blue-soft, #eaf1fc); }
.tr-day { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; position: relative; }
.tr-day:last-child { padding-bottom: 0; }
.tr-dn { width: 36px; height: 36px; border-radius: 50%; background: var(--sv2-navy, #1e3a70); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; position: relative; z-index: 1; }
.tr-db { min-width: 0; }
.tr-dl { margin: 0; font-size: 13px; color: var(--sv2-muted, #5b6880); font-weight: 600; }
.tr-dt { margin: 1px 0 0; font-weight: 800; color: #14213d; font-size: 17px; line-height: 1.3; }
.tr-dp { margin: 2px 0 0; font-size: 14px; color: var(--sv2-blue, #1f4fa3); }
.tr-dm { margin: 2px 0 0; font-size: 13px; color: var(--sv2-muted, #5b6880); }
.tr-dx { margin: 6px 0 0; font-size: 15px; color: #334155; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere;
         display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-dx.is-open { display: block; -webkit-line-clamp: unset; }
.tr-more { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--sv2-blue, #1f4fa3); font: inherit; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tr-notes { margin-top: 16px; padding-top: 12px; border-top: 1px solid #eef1f5; font-size: 14px; color: var(--sv2-muted, #5b6880); white-space: pre-line; }
.tr-notes p { margin: 0 0 8px; }

.tr-map { border: 1px solid #e9ecef; border-radius: 14px; overflow: hidden; background: #eef3f8; margin-top: 10px; }
.tr-map svg { display: block; width: 100%; height: auto; }
.tr-map-route { fill: none; stroke: var(--sv2-blue, #1f4fa3); stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linejoin: round; }
.tr-map-dot { fill: var(--sv2-navy, #1e3a70); stroke: #fff; stroke-width: 2; }
.tr-map-num { fill: #fff; font-size: 9.5px; font-weight: 800; }
.tr-map-name { fill: #14213d; font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: #eef3f8; stroke-width: 4px; }
.tr-sub { font-size: 17px !important; margin-top: 16px; }
.tr-stays { list-style: none; margin: 10px 0 0; padding: 0; }
.tr-stays li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.tr-stays li:last-child { border-bottom: 0; }
.tr-stays li > span { min-width: 0; }
.tr-stays b { display: block; color: #14213d; font-size: 15px; }
.tr-stays span span { color: var(--sv2-muted, #5b6880); font-size: 14px; }
.tr-stays em { font-style: normal; font-weight: 700; color: var(--sv2-navy, #1e3a70); font-size: 14px; white-space: nowrap; }

.tr-two + .tour-section, .tr-two + section { margin-top: 16px; }

@media (min-width: 768px) {
    .tr-facts { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
    .tr-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 0; padding: 0; overflow: visible; }
    .tr-card { max-width: none; }
}
@media (min-width: 992px) {
    .tr-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
    .tr-two--one { grid-template-columns: minmax(0, 1fr); }
}

/* Senza partenza scelta (owner 14/11/2026: il tour può avere durate diverse) niente
   durata, giorni né percorso: restano Itinerario e Posizione di oggi (.tr-ripiego).
   viaggi-detail.js cambia .vd-senza-partenza quando il cliente sceglie la data. */
.vd-page.vd-senza-partenza .tr-two,
.vd-page.vd-senza-partenza .tr-fact--durata { display: none; }
.vd-page:not(.vd-senza-partenza) .tr-ripiego { display: none; }

/* Al telefono la testata sta 28 px più su delle foto (top: -28px) e lasciava un
   vuoto sopra «Il tour in breve» (owner 14/11/2026): restano 12 px. */
@media (max-width: 767.98px) {
    html.scheda-v2 body .vd-page:has(.tr-top) .vd-hero--foto .vd-head--hero { margin-bottom: -16px !important; }
}
