/* Hesperia Tours — frontend */

.hesperia-tour-page #secondary,
.hesperia-tour-page .widget-area,
.hesperia-tour-page .sidebar,
.hesperia-tour-page aside#secondary {
	display: none !important;
}

.hesperia-tour-page #primary,
.hesperia-tour-page .content-area,
.hesperia-tour-page .site-main {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ht-tour,
.ht-archive {
	--ht-ink: #1c1917;
	--ht-muted: #57534e;
	--ht-line: #e7e5e4;
	--ht-surface: #fafaf9;
	--ht-accent: #8b6914;
	--ht-accent-dark: #6b4f0e;
	--ht-ok: #3f6212;
	--ht-out: #9a3412;
	--ht-serif: "Cormorant Garamond", Georgia, serif;
	--ht-header-offset: 124px;
}
	--ht-sans: "Source Sans 3", system-ui, sans-serif;
	font-family: var(--ht-sans);
	color: var(--ht-ink);
	background: #fff;
}

.ht-tour *,
.ht-tour *::before,
.ht-tour *::after,
.ht-archive *,
.ht-archive *::before,
.ht-archive *::after {
	box-sizing: border-box;
}

/* Gallery */
.ht-gallery {
	position: relative;
	background: #0c0a09;
}

.ht-gallery__track {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 0;
	height: min(58vh, 560px);
	min-height: 420px;
	max-height: 580px;
}

.ht-gallery__item {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: #1c1917;
	min-height: 0;
}

.ht-gallery__item.is-primary {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.ht-gallery__item:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

.ht-gallery__item:nth-child(3) {
	grid-column: 2;
	grid-row: 2;
}

.ht-gallery__item:nth-child(n + 4) {
	display: none;
}

.ht-gallery__link {
	position: absolute;
	inset: 0;
	display: block;
	height: 100%;
	width: 100%;
}

.ht-gallery__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.5s ease;
}

.ht-gallery__link:hover .ht-gallery__img {
	transform: scale(1.04);
}

/* Una sola immagine: full bleed */
.ht-gallery__track:has(.ht-gallery__item:only-child) {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.ht-gallery__track:has(.ht-gallery__item:only-child) .ht-gallery__item.is-primary {
	grid-column: 1;
	grid-row: 1;
}

/* Due immagini: metà e metà */
.ht-gallery__track:has(.ht-gallery__item:nth-child(2):last-child) {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
}

.ht-gallery__track:has(.ht-gallery__item:nth-child(2):last-child) .ht-gallery__item.is-primary {
	grid-column: 1;
	grid-row: 1;
}

.ht-gallery__track:has(.ht-gallery__item:nth-child(2):last-child) .ht-gallery__item:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

.ht-gallery__open {
	position: absolute;
	right: 1.25rem;
	bottom: 1.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 0;
	border-radius: 999px;
	padding: 0.55rem 1rem;
	background: rgba(255, 255, 255, 0.94);
	color: var(--ht-ink);
	font: 600 0.85rem/1 var(--ht-sans);
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ht-gallery__open-icon {
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-radius: 2px;
	position: relative;
}

.ht-gallery__open-icon::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border: 2px solid currentColor;
	border-radius: 2px;
	top: -5px;
	right: -5px;
	background: #fff;
}

/* Layout */
.ht-tour {
	/* Compensa header fixed su pagine interne */
	padding-top: var(--ht-header-offset, 88px);
}

.ht-tour__container {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 2.5rem 0 4rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	grid-template-areas:
		"title title"
		"main sidebar";
	gap: 1.75rem 2.5rem;
	align-items: start;
}

.ht-tour__header {
	grid-area: title;
}

.ht-tour__sidebar {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-self: stretch;
}

.ht-tour__price {
	margin: 0;
	position: sticky;
	top: 1.25rem;
	z-index: 2;
}

.ht-tour__main {
	grid-area: main;
	min-width: 0;
}

.ht-tour__aside {
	display: grid;
	gap: 1.25rem;
}

.ht-tour__title-wrap {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.ht-tour__title {
	font-family: var(--ht-serif);
	font-weight: 600;
	font-size: clamp(1.85rem, 3.2vw, 2.65rem);
	line-height: 1.15;
	margin: 0;
	letter-spacing: -0.01em;
}

.ht-tour__badges {
	display: flex;
	gap: 0.6rem;
	flex-shrink: 0;
}

.ht-badge {
	width: 72px;
	height: 72px;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.ht-badge--solid {
	background: var(--ht-accent);
	color: #fff;
}

.ht-badge--outline {
	background: #fff;
	color: var(--ht-accent);
	border: 2px solid var(--ht-accent);
}

.ht-badge__num {
	font-family: var(--ht-serif);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.ht-badge__label {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 0.15rem;
}

/* Facts */
.ht-facts {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.35rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem 1.5rem;
	border: 1px solid var(--ht-line);
	border-radius: 16px;
	background: var(--ht-surface);
}

.ht-facts__label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ht-muted);
	margin-bottom: 0.25rem;
}

.ht-facts__value {
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.4;
}

.ht-facts__value a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(139, 105, 20, 0.35);
	text-underline-offset: 2px;
}

.ht-facts--compact {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 1rem 1.15rem;
	border: 1px solid var(--ht-line);
	border-radius: 12px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	background: var(--ht-surface);
}

.ht-facts--compact li {
	margin: 0;
	padding: 0;
}

.ht-facts--compact li span {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ht-muted);
	font-weight: 600;
	margin-bottom: 0.2rem;
}

.ht-facts--compact li strong {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
}

/* Tabs */
.ht-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	border-bottom: 1px solid var(--ht-line);
	margin-bottom: 1.75rem;
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	z-index: 5;
	padding-top: 0.35rem;
}

.ht-tabs__link {
	padding: 0.85rem 0;
	color: var(--ht-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.ht-tabs__link:hover,
.ht-tabs__link.is-active {
	color: var(--ht-ink);
	border-bottom-color: var(--ht-accent);
}

/* Sections */
.ht-section {
	margin-bottom: 2.75rem;
	scroll-margin-top: 5rem;
}

.ht-section__title {
	font-family: var(--ht-serif);
	font-size: 1.85rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.ht-prose {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #292524;
}

.ht-prose p {
	margin: 0 0 1rem;
}

.ht-prose p:last-child {
	margin-bottom: 0;
}

/* Itinerary */
.ht-itinerary {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.ht-itinerary__day {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--ht-line);
	border-radius: 14px;
	background: #fff;
}

.ht-itinerary__marker span {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
	font-family: var(--ht-serif);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--ht-accent);
}

.ht-itinerary__title {
	font-family: var(--ht-serif);
	font-size: 1.25rem;
	margin: 0.15rem 0 0.5rem;
	font-weight: 600;
}

/* Costs / checklists — fix lista spezzata */
.ht-costs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.ht-costs__col {
	padding: 1.35rem 1.4rem;
	border-radius: 16px;
	border: 1px solid var(--ht-line);
	background: var(--ht-surface);
}

.ht-costs__col h3 {
	font-family: var(--ht-serif);
	font-size: 1.35rem;
	margin: 0 0 1rem;
}

.ht-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.ht-checklist li {
	position: relative;
	padding-left: 1.55rem;
}

.ht-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35rem;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	border: 2px solid currentColor;
}

.ht-checklist--in {
	color: var(--ht-ok);
}

.ht-checklist--in li::before {
	background: var(--ht-ok);
	border-color: var(--ht-ok);
	box-shadow: inset 0 0 0 2px #fff;
}

.ht-checklist--out {
	color: var(--ht-out);
}

.ht-checklist__text {
	display: block;
	color: var(--ht-ink);
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.4;
}

.ht-checklist__note {
	display: block;
	margin-top: 0.2rem;
	color: var(--ht-muted);
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
}

.ht-card {
	border: 1px solid var(--ht-line);
	border-radius: 18px;
	padding: 1.5rem;
	background: #fff;
	box-shadow: 0 12px 40px rgba(28, 25, 23, 0.06);
}

.ht-card__price {
	margin: 0 0 1.1rem;
}

.ht-card__price-value {
	display: block;
	font-family: var(--ht-serif);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
}

.ht-card__price-unit {
	color: var(--ht-muted);
	font-size: 0.9rem;
}

.ht-card__price-note {
	margin: 0.35rem 0 0.85rem;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--ht-muted);
}

.ht-card__cta {
	margin-top: 0.85rem;
}

/* Group pricing — sotto il prezzo in sidebar */
.ht-group-pricing {
	margin: 0 0 0.35rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--ht-line);
}

.ht-group-pricing__privacy {
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.75rem;
	border-left: 2px solid #b8945a;
	background: #f7f3ec;
	font-family: var(--ht-serif);
	font-size: 0.9rem;
	font-style: italic;
	line-height: 1.35;
	color: #3d2f1f;
}

.ht-group-pricing__title {
	margin: 0 0 0.2rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ht-muted);
}

.ht-group-pricing__lead {
	margin: 0 0 0.75rem;
	font-family: var(--ht-serif);
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.3;
	color: #3d2f1f;
}

.ht-group-pricing__table-wrap {
	display: grid;
	gap: 0;
	border-top: 1px solid rgba(61, 47, 31, 0.14);
}

.ht-group-pricing__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	align-items: baseline;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(61, 47, 31, 0.12);
	font-size: 0.88rem;
	color: #3d2f1f;
}

.ht-group-pricing__row--head {
	padding-top: 0.15rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ht-muted);
}

.ht-group-pricing__tier {
	font-family: var(--ht-serif);
	font-size: 0.98rem;
	font-weight: 600;
	color: #8a6a3a;
	white-space: nowrap;
}

.ht-group-pricing__contact {
	color: #8a6a3a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ht-group-pricing__contact:hover,
.ht-group-pricing__contact:focus {
	color: #3d2f1f;
}

.ht-group-pricing__note {
	margin: 0.65rem 0 0;
	font-size: 0.72rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--ht-muted);
}

.ht-card__hint {
	margin: 0.85rem 0 0;
	font-size: 0.82rem;
	color: var(--ht-muted);
	line-height: 1.4;
	text-align: center;
}

/* Sticky CTA mobile (nascosto su desktop) */
.ht-sticky-cta {
	display: none;
}

/* Related tours (sidebar) */
.ht-related {
	margin-top: 1.25rem;
}

.ht-related__title {
	margin: 0 0 0.85rem;
	font-family: var(--ht-serif);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.25;
}

/* Sidebar destination CTAs (prima di Altri tour) */
.ht-sidebar-ctas {
	margin-top: 1.25rem;
}

.ht-sidebar-ctas__list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-sidebar-ctas__link {
	display: block;
	padding: 0.8rem 0.95rem;
	text-align: center;
	text-decoration: none;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
	line-height: 1.35;
	border: 1px solid var(--ht-line, #e5e0d6);
	background: #fff;
	color: var(--ht-ink, #3d2f1f);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ht-sidebar-ctas__link:hover {
	background: var(--ht-ink, #3d2f1f);
	border-color: var(--ht-ink, #3d2f1f);
	color: #fff;
}

.ht-sidebar-ctas__link--request {
	background: transparent;
	border-color: var(--ht-accent, #b8945a);
	color: var(--ht-ink, #3d2f1f);
}

.ht-sidebar-ctas__link--request:hover {
	background: var(--ht-ink, #3d2f1f);
	border-color: var(--ht-ink, #3d2f1f);
	color: #fff;
}

.ht-related__list {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-related__item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 0.75rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--ht-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ht-related__item:hover {
	border-color: rgba(184, 148, 90, 0.45);
	box-shadow: 0 8px 20px rgba(45, 36, 28, 0.08);
	transform: translateY(-2px);
}

.ht-related__media {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: #e7e5e4;
}

.ht-related__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ht-related__body {
	padding: 0.55rem 0.7rem 0.55rem 0;
	min-width: 0;
}

.ht-related__name {
	margin: 0;
	font-family: var(--ht-serif);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ht-related__meta {
	margin: 0.25rem 0 0;
	font-size: 0.78rem;
	color: var(--ht-muted);
	font-weight: 600;
}

.ht-related__all {
	margin: 0.85rem 0 0;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
}

.ht-related__all a {
	color: var(--ht-ink, #3d2f1f);
	text-decoration: none;
	border-bottom: 1px solid var(--ht-accent, #b8945a);
	padding-bottom: 1px;
}

.ht-related__all a:hover {
	color: var(--ht-accent, #b8945a);
}

.ht-related--news {
	margin-top: 1.5rem;
}

.ht-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.95rem 1.25rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

.ht-btn--primary {
	background: var(--ht-accent);
	color: #fff !important;
}

.ht-btn--primary:hover {
	background: var(--ht-accent-dark);
	color: #fff !important;
}

.ht-btn--ghost {
	width: auto;
	padding: 0.55rem 1rem;
	border-color: var(--ht-line);
	color: var(--ht-ink) !important;
	background: #fff;
}

.ht-btn--ghost:hover {
	border-color: var(--ht-accent);
	color: var(--ht-accent) !important;
}

/* Enquiry */
.ht-enquiry {
	padding: 1.75rem;
	border-radius: 18px;
	background: var(--ht-surface);
	border: 1px solid var(--ht-line);
}

.ht-enquiry__intro {
	margin: 0 0 1.25rem;
	color: var(--ht-muted);
}

.ht-enquiry__form .wpcf7-form p {
	margin-bottom: 0.85rem;
}

.ht-enquiry__form .ht-cf7-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}

@media (max-width: 640px) {
	.ht-enquiry__form .ht-cf7-grid {
		grid-template-columns: 1fr;
	}
}

.ht-enquiry__form label {
	font-weight: 600;
	font-size: 0.9rem;
}

.ht-enquiry__form input[type="text"],
.ht-enquiry__form input[type="email"],
.ht-enquiry__form input[type="tel"],
.ht-enquiry__form input[type="number"],
.ht-enquiry__form select,
.ht-enquiry__form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--ht-line);
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	font: inherit;
	background: #fff;
}

.ht-enquiry__form input[type="submit"],
.ht-enquiry__form .wpcf7-submit {
	background: var(--ht-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0.85rem 1.5rem !important;
	font-weight: 700 !important;
	cursor: pointer;
}

/* Lightbox */
.ht-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(12, 10, 9, 0.92);
	display: grid;
	place-items: center;
	padding: 2rem;
}

.ht-lightbox[hidden] {
	display: none !important;
}

.ht-lightbox__img {
	max-width: min(1100px, 92vw);
	max-height: 86vh;
	object-fit: contain;
	border-radius: 8px;
}

.ht-lightbox__close,
.ht-lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
}

.ht-lightbox__close {
	top: 1rem;
	right: 1rem;
}

.ht-lightbox__nav--prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.ht-lightbox__nav--next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

/* Archive */
.ht-archive__container {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 2.5rem 0 4rem;
}

.ht-archive__title {
	font-family: var(--ht-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 0 1.75rem;
}

.ht-archive__grid {
	display: grid;
	grid-template-columns: repeat(var(--ht-cols, 3), minmax(0, 1fr));
	gap: 1.5rem;
}

@media (max-width: 1100px) {
	.ht-archive__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 800px) {
	.ht-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 520px) {
	.ht-archive__grid {
		grid-template-columns: 1fr !important;
	}
}

.ht-card-tour {
	border: 1px solid rgba(61, 47, 31, 0.12);
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 10px 28px rgba(45, 36, 28, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ht-card-tour:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 40px rgba(45, 36, 28, 0.14);
	border-color: rgba(184, 148, 90, 0.45);
}

.ht-card-tour__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e7e5e4;
}

.ht-card-tour__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.55s ease;
}

/* Amalfi: ritaglio sul paese/mare (foto verticale con cielo in alto) */
.ht_destination-costiera-amalfitana .ht-card-tour__media img {
	object-position: center 88%;
}

.ht-card-tour:hover .ht-card-tour__media img {
	transform: scale(1.05);
}

.ht-card-tour__body {
	padding: 1.25rem 1.3rem 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
	min-height: 168px;
}

.ht-card-tour__title {
	font-family: var(--ht-serif);
	font-size: 1.35rem;
	margin: 0;
	line-height: 1.25;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ht-card-tour__title a {
	color: inherit;
	text-decoration: none;
}

.ht-card-tour__meta {
	margin: 0;
	color: var(--ht-muted);
	font-size: 0.88rem;
	font-weight: 600;
}

.ht-card-tour__excerpt {
	margin: 0;
	color: var(--ht-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.ht-card-tour__footer {
	margin-top: auto;
	padding-top: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.ht-card-tour__footer .ht-btn {
	border-radius: 4px;
	margin-left: auto;
	margin-right: 0;
}

.ht-card-tour__price {
	font-family: var(--ht-serif);
	font-weight: 700;
	font-size: 1.2rem;
	margin-right: auto;
}

@media (max-width: 1024px) {
	.ht-tour {
		--ht-header-offset: 80px;
	}
}

@media (max-width: 960px) {
	.ht-tour__container {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	.ht-tour__sidebar {
		display: contents;
		position: static;
	}

	.ht-tour__header {
		order: 1;
	}

	.ht-tour__price {
		order: 2;
	}

	.ht-tour__main {
		order: 3;
	}

	.ht-tour__aside {
		order: 4;
	}

	/* CTA in card nascosto: resta sticky in basso */
	.ht-card__cta {
		display: none !important;
	}

	.ht-sticky-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 45;
		padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-top: 1px solid var(--ht-line);
		box-shadow: 0 -8px 28px rgba(28, 25, 23, 0.1);
	}

	.ht-sticky-cta .ht-btn {
		width: 100%;
		border-radius: 8px;
		margin: 0;
	}

	.ht-tour {
		padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
	}

	.ht-gallery__track {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		height: auto;
		min-height: 0;
		max-height: none;
	}

	.ht-gallery__item.is-primary {
		grid-column: 1 / -1;
		grid-row: 1;
		min-height: 260px;
		aspect-ratio: 16 / 10;
	}

	.ht-gallery__item:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
		min-height: 180px;
		aspect-ratio: 4 / 3;
	}

	.ht-gallery__item:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
		min-height: 180px;
		aspect-ratio: 4 / 3;
	}

	.ht-costs,
	.ht-archive__grid,
	.ht-facts {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.ht-tour__title-wrap {
		flex-direction: column;
	}

	.ht-gallery__track {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.ht-gallery__item.is-primary,
	.ht-gallery__item:nth-child(2),
	.ht-gallery__item:nth-child(3) {
		grid-column: 1;
		grid-row: auto;
		min-height: 220px;
		aspect-ratio: 16 / 10;
	}

	.ht-gallery__item:nth-child(n + 3) {
		display: none;
	}
}
