/*
 * Happy Camper Promozioni
 * Usa le variabili --hc-* del tema Happy Camper quando presenti.
 */
.hcp-page, .hcp-grid, .hcp-ticket, .hcp-empty, .hcp-card, .hcp-windows, .hcp-window {
	--p-bg: var(--hc-bg, #f3ecdd);
	--p-paper: var(--hc-paper, #fbf7ef);
	--p-ink: var(--hc-ink, #142321);
	--p-muted: var(--hc-muted, #3d4b48);
	--p-line: var(--hc-line, rgb(20 35 33 / .14));
	--p-r: var(--hc-radius, 24px);
	--p-display: var(--hc-font-display, inherit);
	--p-shadow: var(--hc-shadow, 0 18px 40px -18px rgb(15 61 58 / .3));
	--p-ease: cubic-bezier(.16, 1, .3, 1);
}
/* Colori della promo: superficie e testo fissi (indipendenti dal tema chiaro/scuro). */
.hcp-c--sunset { --c-bg: var(--hc-orange, #de8a2c); --c-fg: #142321; --c-btn: #142321; --c-btn-fg: #f3ecdd; --c-sticker: #142321; --c-sticker-fg: var(--hc-mustard, #d9b437); }
.hcp-c--ocean { --c-bg: var(--hc-teal, #2e6a66); --c-fg: #f3ecdd; --c-btn: var(--hc-mustard, #d9b437); --c-btn-fg: #142321; --c-sticker: var(--hc-mustard, #d9b437); --c-sticker-fg: #142321; }
.hcp-c--mustard { --c-bg: var(--hc-mustard, #d9b437); --c-fg: #142321; --c-btn: #142321; --c-btn-fg: #f3ecdd; --c-sticker: var(--hc-red, #cf3f2b); --c-sticker-fg: #fff7ec; }
.hcp-c--arancio { --c-bg: #ff8a2b; --c-fg: #142321; --c-btn: #142321; --c-btn-fg: #fff7ec; --c-sticker: #142321; --c-sticker-fg: #ffd23d; }
.hcp-c--rosa { --c-bg: #ff9fc6; --c-fg: #142321; --c-btn: #142321; --c-btn-fg: #fff7ec; --c-sticker: #e3177d; --c-sticker-fg: #fff7ec; }
.hcp-c--giallo { --c-bg: #ffd23d; --c-fg: #142321; --c-btn: #142321; --c-btn-fg: #fff7ec; --c-sticker: #e3177d; --c-sticker-fg: #fff7ec; }
.hcp-c--fucsia { --c-bg: #e3177d; --c-fg: #fff7ec; --c-btn: #ffd23d; --c-btn-fg: #142321; --c-sticker: #ffd23d; --c-sticker-fg: #142321; }
.hcp-c--red { --c-bg: var(--hc-red, #cf3f2b); --c-fg: #fff7ec; --c-btn: #fff7ec; --c-btn-fg: #142321; --c-sticker: var(--hc-mustard, #d9b437); --c-sticker-fg: #142321; }

.hcp-icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.hcp-wrap { width: 100%; max-width: calc(1320px + 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.hcp-page { padding-bottom: clamp(48px, 6vw, 96px); color: var(--p-ink); }
.hcp-head { padding: 48px 0 24px; }
.hcp-head h1 { font-family: var(--p-display); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .95; margin: 0 0 12px; }
.hcp-h2 { margin: 0 0 20px; font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1; }

.hcp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .75em 1.35em;
	border: 2px solid transparent; border-radius: 999px;
	background: var(--c-btn, var(--hc-accent, #de8a2c)); color: var(--c-btn-fg, #142321);
	font-weight: 700; font-size: .98rem; line-height: 1.1; white-space: nowrap; text-decoration: none;
	transition: transform .35s var(--p-ease), box-shadow .35s var(--p-ease);
}
.hcp-btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 24px -14px rgb(0 0 0 / .6); }
.hcp-btn:active { transform: scale(.98); }
.hcp-btn .hcp-icon { font-size: 1.15em; transition: transform .35s var(--p-ease); }
.hcp-btn:hover .hcp-icon { transform: translateX(3px); }
.hcp-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.hcp-btn--lg { min-height: 56px; padding: .9em 1.6em; font-size: 1.05rem; }

/* Adesivo */
.hcp-sticker {
	position: absolute; top: 16px; right: 16px; z-index: 2;
	display: grid; place-items: center;
	width: 92px; aspect-ratio: 1; border-radius: 50%;
	background: var(--c-sticker, #142321); color: var(--c-sticker-fg, #d9b437);
	transform: rotate(-12deg);
	box-shadow: 0 10px 22px -10px rgb(0 0 0 / .55);
	font-family: var(--p-display); font-weight: 800; font-stretch: 75%;
	font-size: 1.45rem; line-height: .95; text-align: center;
	padding: 10px;
	transition: transform .5s var(--p-ease);
}
.hcp-sticker span { display: block; max-width: 100%; overflow-wrap: anywhere; }
.hcp-card:hover .hcp-sticker, .hcp-ticket:hover .hcp-sticker { transform: rotate(0deg) scale(1.06); }
.hcp-sticker--lg { width: 130px; font-size: 2rem; top: 22px; right: 22px; }

/* Prezzo */
.hcp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; line-height: 1; }
.hcp-price__pre { font-weight: 700; font-size: .95rem; }
.hcp-price__val { font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: 2.6rem; letter-spacing: -.01em; }
.hcp-price__full { font-size: 1rem; opacity: .75; }
.hcp-price--lg .hcp-price__val { font-size: clamp(3rem, 5vw, 4.4rem); }
.hcp-price--ticket .hcp-price__val { font-size: clamp(2.8rem, 4vw, 3.6rem); }
.hcp-validity { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: .92rem; }
.hcp-validity--lg { font-size: 1.02rem; margin: 14px 0 22px; padding: .5em 1em; border-radius: 999px; background: var(--p-paper); }

/* Griglia card */
.hcp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: clamp(16px, 2vw, 24px); }
.hcp-card {
	position: relative; display: flex; flex-direction: column;
	border-radius: var(--p-r); overflow: hidden;
	background: var(--c-bg); color: var(--c-fg);
	box-shadow: var(--p-shadow);
	transition: transform .5s var(--p-ease);
}
.hcp-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.hcp-card__media { position: relative; aspect-ratio: 16 / 10; background: rgb(0 0 0 / .12); overflow: hidden; }
.hcp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--p-ease); }
.hcp-card:hover .hcp-card__img { transform: scale(1.05); }
.hcp-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 24px; }
.hcp-card__service { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hcp-card__service a { color: inherit; }
.hcp-card__title { margin: 0; font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: 1.9rem; line-height: .98; }
.hcp-card__title a { color: inherit; text-decoration: none; }
.hcp-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hcp-card__text { margin: 0; opacity: .9; }
.hcp-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 2px dashed currentColor; border-top-color: color-mix(in srgb, currentColor 35%, transparent); }
.hcp-card .hcp-btn { position: relative; z-index: 2; }

/* Biglietto */
.hcp-ticket {
	position: relative;
	border-radius: var(--p-r);
	background: var(--c-bg); color: var(--c-fg);
	box-shadow: var(--p-shadow);
	overflow: hidden;
	isolation: isolate;
}
.hcp-ticket::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: repeating-linear-gradient(-45deg, transparent 0 18px, rgb(255 255 255 / .06) 18px 36px);
}
.hcp-ticket__top { position: relative; padding: 26px 28px 22px; padding-right: 128px; }
.hcp-ticket__label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hcp-ticket__label .hcp-icon { font-size: 1.3em; }
.hcp-ticket__title { margin: 0 0 8px; font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: .96; }
.hcp-ticket__title a { color: inherit; text-decoration: none; }
.hcp-ticket__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.hcp-ticket__text { margin: 0; opacity: .9; font-size: .98rem; }
.hcp-sticker--ticket { top: 22px; right: 22px; width: 96px; }
.hcp-ticket__cut { position: relative; height: 0; border-top: 2px dashed color-mix(in srgb, currentColor 40%, transparent); margin: 0 22px; }
.hcp-ticket__cut::before, .hcp-ticket__cut::after { content: ""; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-bg, #f3ecdd); }
.hcp-ticket__cut::before { left: -36px; }
.hcp-ticket__cut::after { right: -36px; }
.hcp-ticket__bottom { display: grid; gap: 12px; padding: 22px 28px 26px; }
.hcp-ticket__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.hcp-ticket__all { font-weight: 700; color: inherit; text-underline-offset: .2em; }

/* Finestrelle (fascia Promozioni della home) */
.hcp-windows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.hcp-windows--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hcp-windows--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hcp-windows--1 { grid-template-columns: minmax(0, 420px); }
.hcp-window {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	padding: 14px 14px 22px; border-radius: var(--p-r);
	background: var(--c-bg); color: var(--c-fg);
	box-shadow: 0 24px 40px -30px rgb(20 35 33 / .9);
	transition: transform .45s var(--p-ease), box-shadow .45s var(--p-ease);
}
.hcp-window:nth-child(odd) { --tilt: -1.2deg; }
.hcp-window:nth-child(even) { --tilt: 1.2deg; }
.hcp-window:hover { transform: translateY(-8px) rotate(var(--tilt)); box-shadow: 0 34px 50px -30px rgb(20 35 33 / .95); }
.hcp-window__frame { position: relative; aspect-ratio: 4 / 3; border-radius: 999px 999px 18px 18px; overflow: hidden; background: rgb(0 0 0 / .12); }
.hcp-window__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--p-ease); }
.hcp-window:hover .hcp-window__img { transform: scale(1.06); }
.hcp-sticker--window { top: 6px; right: 6px; width: 84px; font-size: 1.4rem; transform: rotate(10deg); }
.hcp-window:hover .hcp-sticker--window { transform: rotate(0deg) scale(1.06); }
.hcp-window__body { display: flex; flex-direction: column; flex: 1; padding: 18px 8px 0; }
.hcp-window__kicker { margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.hcp-window__title { margin: 0 0 .45em; font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.5rem, 1.1rem + .9vw, 1.95rem); line-height: .98; }
.hcp-window__title a { color: inherit; text-decoration: none; }
.hcp-window__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.hcp-window__text { margin: 0 0 18px; font-size: .95rem; line-height: 1.45; opacity: .92; }
.hcp-window__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; }
.hcp-window__price { margin: 0; line-height: 1; }
.hcp-window__price b { font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: 2.3rem; }
.hcp-window__price s { margin-left: 6px; font-size: .95rem; opacity: .7; }
.hcp-window__pre { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hcp-window__date { width: 100%; margin: 0; display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; opacity: .85; }
.hcp-window__btn { width: 100%; margin-top: 6px; }
.hcp-window__btn:focus-visible { outline: 3px solid var(--c-fg); outline-offset: 3px; }
@media (max-width: 1180px) {
	.hcp-windows, .hcp-windows--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.hcp-windows, .hcp-windows--3, .hcp-windows--2 {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(320px, 82vw);
		overflow-x: auto; scroll-snap-type: x mandatory;
		margin-inline: calc(clamp(16px, 4vw, 40px) * -1);
		padding: 10px clamp(16px, 4vw, 40px) 22px;
		scroll-padding-inline: clamp(16px, 4vw, 40px);
		scrollbar-width: none;
	}
	.hcp-windows::-webkit-scrollbar { display: none; }
	.hcp-windows--1 { grid-template-columns: 1fr; }
	.hcp-window { scroll-snap-align: start; }
	.hcp-window:hover { transform: none; }
}

/* Vuoto */
.hcp-empty { padding: clamp(28px, 5vw, 56px); border: 2px dashed var(--p-line); border-radius: var(--p-r); text-align: center; color: var(--p-muted); }
.hcp-empty__title { font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: 1.8rem; color: var(--p-ink); margin-bottom: 8px; }

/* Singola */
.hcp-single { padding-top: clamp(20px, 3vw, 36px); }
.hcp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .9rem; color: var(--p-muted); }
.hcp-crumbs a { color: inherit; text-decoration: none; }
.hcp-crumbs a:hover { text-decoration: underline; }
.hcp-notice { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; padding: 14px 18px; border-radius: 16px; background: var(--hc-mustard, #d9b437); color: #142321; font-weight: 600; }
.hcp-notice p { margin: 0; }
.hcp-notice a { color: inherit; margin-left: 6px; }
.hcp-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hcp-single__media { position: relative; border-radius: 999px 999px var(--p-r) var(--p-r); aspect-ratio: 4 / 5; background: var(--c-bg); box-shadow: var(--p-shadow); }
.hcp-single__img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.hcp-single__media .hcp-sticker--lg { top: auto; right: auto; left: -14px; bottom: 36px; }
.hcp-single__title { margin: 6px 0 18px; font-family: var(--p-display); font-weight: 800; font-stretch: 75%; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .92; }
.hcp-single__body .hcp-card__service { color: var(--hc-teal, #2e6a66); opacity: 1; }
@media (prefers-color-scheme: dark) { .hcp-single__body .hcp-card__service { color: var(--hc-mustard, #d9b437); } }
.hcp-prose { color: var(--p-muted); font-size: 1.08rem; max-width: 60ch; }
.hcp-terms { margin: 22px 0 0; padding: 18px 20px; border-left: 6px solid var(--hc-mustard, #d9b437); background: var(--p-paper); border-radius: 0 16px 16px 0; }
.hcp-terms__title { margin: 0 0 4px; font-weight: 800; }
.hcp-terms p:last-child { margin-bottom: 0; color: var(--p-muted); }
.hcp-single__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hcp-single__actions .hcp-btn { --c-btn: var(--hc-accent, #de8a2c); --c-btn-fg: #142321; }
.hcp-single__actions .hcp-btn--ghost { color: var(--p-ink); }
.hcp-more { margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) {
	.hcp-single__grid { grid-template-columns: 1fr; }
	.hcp-single__media { aspect-ratio: 4 / 3; border-radius: var(--p-r); }
}
@media (max-width: 420px) {
	.hcp-ticket__top { padding-right: 28px; padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
	.hcp-card, .hcp-card__img, .hcp-btn, .hcp-sticker, .hcp-window, .hcp-window__img { transition: none; }
	.hcp-card:hover, .hcp-window:hover { transform: none; }
}
