/* ==========================================================================
   UltimaPassione Landing — CSS
   All selectors prefixed with `up-` to avoid BeTheme collisions.
   ========================================================================== */

:root {
	--up-bg: #FAFAF8;
	--up-bg-alt: #F2F0EC;
	--up-text: #1A1A1A;
	--up-text-muted: #6B6560;
	--up-red: #a01830;
	--up-red-light: #c82040;
	--up-gold: #d4a843;
	--up-gold-light: #e8c96e;
	--up-card: #FFFFFF;
	--up-card-border: #E8E4DE;
	--up-shadow: rgba(160, 24, 48, 0.08);
}

.up-landing {
	background: var(--up-bg);
	min-height: 100vh;
	font-family: 'DM Sans', sans-serif;
	color: var(--up-text);
	-webkit-font-smoothing: antialiased;
}

/* ---------- Divider ---------- */

.up-divider {
	height: 1px;
	max-width: 1000px;
	margin: 0 auto;
	background: linear-gradient(to right, transparent, var(--up-card-border), transparent);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.up-hero {
	position: relative;
	padding: 70px 20px 56px;
	text-align: center;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 60%), var(--up-bg);
}

.up-spark-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.up-hero__inner {
	position: relative;
	z-index: 3;
	max-width: 720px;
	margin: 0 auto;
}

/* --- Animated Logo --- */

.up-logo {
	display: flex;
	justify-content: center;
	flex-wrap: nowrap;
}

.up-logo__letter {
	display: inline-block;
	font-family: 'Russo One', sans-serif;
	font-size: clamp(2.2rem, 6vw, 4.5rem);
	letter-spacing: 0.07em;
	line-height: 1;
	opacity: 0;
	transform: translateY(40px) scale(0.7);
	animation:
		logoReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s) forwards,
		var(--glow-name, glowGold) 2.5s var(--glow-delay, 1.2s) ease-in-out infinite alternate;
}

.up-logo__letter--g {
	color: var(--up-gold);
}

.up-logo__letter--r {
	color: var(--up-red);
}

/* --- Hero text --- */

.up-hero__title {
	font-size: clamp(18px, 3.5vw, 28px);
	font-weight: 800;
	color: var(--up-text);
	margin-top: 20px;
	line-height: 1.35;
	font-family: 'DM Sans', sans-serif;
	opacity: 0;
	animation: fadeUp 0.6s 0.7s ease forwards;
}

.up-hero__subtitle {
	font-size: clamp(13px, 2vw, 16px);
	color: var(--up-text-muted);
	margin-top: 10px;
	font-weight: 500;
	line-height: 1.6;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0;
	animation: fadeUp 0.6s 0.9s ease forwards;
}

.up-hero__subtitle strong {
	color: var(--up-red);
}

/* --- Pillars --- */

.up-hero__pillars {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 28px;
	opacity: 0;
	animation: fadeUp 0.6s 1.1s ease forwards;
}

.up-hero__pillar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.up-hero__pillar-icon {
	font-size: 32px;
}

.up-hero__pillar-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--up-text);
}

.up-hero__pillar-desc {
	font-size: 11px;
	color: var(--up-text-muted);
	font-weight: 500;
}

/* --- ITA badge --- */

.up-hero__ita-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 6px 16px;
	border-radius: 20px;
	background: rgba(0, 140, 69, 0.07);
	border: 1px solid rgba(0, 140, 69, 0.15);
	opacity: 0;
	animation: fadeUp 0.6s 1.2s ease forwards;
}

.up-hero__ita-badge > span:first-child {
	font-size: 16px;
}

.up-hero__ita-badge > span:last-child {
	font-size: 12px;
	font-weight: 600;
	color: #006B35;
}

/* --- Hero CTA --- */

.up-hero__cta-wrap {
	margin-top: 28px;
	opacity: 0;
	animation: fadeUp 0.6s 1.3s ease forwards;
}

.up-hero__disclaimer {
	font-size: 11px;
	color: var(--up-text-muted);
	margin-top: 10px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.up-btn {
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	border: none;
	outline: none;
}

.up-btn--primary {
	padding: 16px 44px;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--up-red), var(--up-red-light));
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.04em;
	box-shadow: 0 4px 20px rgba(160, 24, 48, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.up-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(160, 24, 48, 0.4);
}

.up-btn--outline {
	display: block;
	margin: 28px auto 0;
	padding: 10px 28px;
	border-radius: 24px;
	border: 2px solid var(--up-red);
	background: transparent;
	color: var(--up-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: all 0.2s ease;
}

.up-btn--outline:hover {
	background: var(--up-red);
	color: #fff;
}

.up-btn--pricing {
	width: 100%;
	padding: 15px;
	border-radius: 14px;
	letter-spacing: 0.03em;
	box-shadow: 0 4px 16px rgba(160, 24, 48, 0.25);
}

.up-btn--pricing:hover {
	box-shadow: 0 6px 24px rgba(160, 24, 48, 0.35);
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.up-content-section {
	padding: 48px 20px 24px;
	max-width: 1100px;
	margin: 0 auto;
}

.up-content-section__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}

.up-content-section__icon {
	font-size: 24px;
}

.up-content-section__title {
	font-size: 22px;
	font-weight: 800;
	color: var(--up-text);
	margin: 0;
	font-family: 'Russo One', sans-serif;
	letter-spacing: 0.02em;
}

.up-content-section__subtitle {
	font-size: 13px;
	color: var(--up-text-muted);
	margin-bottom: 14px;
	line-height: 1.4;
}

/* --- Slider --- */

.up-slider {
	margin-top: 16px;
	overflow: hidden;
	padding-bottom: 4px;
}

.up-slider .swiper-slide {
	height: auto;
}

/* --- Slider Nav --- */

.up-slider__nav {
	display: flex;
	gap: 6px;
	margin-left: auto;
}

.up-slider__prev,
.up-slider__next {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--up-card-border);
	background: var(--up-card);
	color: var(--up-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
	flex-shrink: 0;
}

.up-slider__prev:hover,
.up-slider__next:hover {
	border-color: var(--up-red);
	color: var(--up-red);
	box-shadow: 0 2px 8px var(--up-shadow);
}

.up-slider__prev.swiper-button-disabled,
.up-slider__next.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

/* --- Card --- */

.up-card {
	cursor: pointer;
	transition: transform 0.25s ease;
}

.up-card:hover {
	transform: translateY(-4px);
}

.up-card__cover-wrap {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px var(--up-shadow);
	transition: box-shadow 0.25s ease;
}

.up-card:hover .up-card__cover-wrap {
	box-shadow: 0 8px 24px var(--up-shadow), 0 0 0 2px rgba(160, 24, 48, 0.13);
}

.up-card__cover {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 2 / 3;
	background: #1a1a1a;
}

.up-card__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-card__cover-fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
	pointer-events: none;
}

.up-card__info {
	padding: 8px 2px 0;
}

.up-card__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--up-text);
	line-height: 1.3;
}

/* --- Badge --- */

.up-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.up-badge--nuovo {
	background: var(--up-red);
	color: #fff;
}

.up-badge--popolare {
	background: var(--up-gold);
	color: #1A1A1A;
}

.up-badge--esclusivo {
	background: #1A1A1A;
	color: var(--up-gold);
}

/* --- ITA flag on card --- */

.up-ita-flag {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	width: 24px;
	height: 16px;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	display: flex;
}

.up-ita-flag__green { flex: 1; background: #008C45; }
.up-ita-flag__white { flex: 1; background: #F4F5F0; }
.up-ita-flag__red   { flex: 1; background: #CD212A; }

/* --- Play icon --- */

.up-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	z-index: 2;
}

/* --- Duration --- */

.up-duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	z-index: 2;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.up-how-section {
	padding: 56px 20px;
	max-width: 1100px;
	margin: 0 auto;
}

.up-how-section__title {
	font-size: 22px;
	font-weight: 800;
	color: var(--up-text);
	text-align: center;
	margin-bottom: 36px;
	font-family: 'Russo One', sans-serif;
	letter-spacing: 0.02em;
}

.up-how-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.up-how-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 28px 20px;
	background: var(--up-card);
	border-radius: 16px;
	border: 1px solid var(--up-card-border);
	box-shadow: 0 2px 12px var(--up-shadow);
	opacity: 0;
	animation: fadeUp 0.5s ease forwards;
}

.up-how-card__icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(160, 24, 48, 0.07), rgba(212, 168, 67, 0.13));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 14px;
	border: 1px solid var(--up-card-border);
}

.up-how-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--up-text);
	margin-bottom: 6px;
}

.up-how-card__desc {
	font-size: 13px;
	color: var(--up-text-muted);
	line-height: 1.5;
}

/* ==========================================================================
   PRICING
   ========================================================================== */

.up-pricing {
	padding: 56px 20px 70px;
	text-align: center;
	background: linear-gradient(180deg, var(--up-bg) 0%, var(--up-bg-alt) 100%);
}

.up-pricing__heading {
	font-size: 22px;
	font-weight: 800;
	color: var(--up-text);
	margin-bottom: 8px;
	font-family: 'Russo One', sans-serif;
	letter-spacing: 0.02em;
}

.up-pricing__subheading {
	font-size: 14px;
	color: var(--up-text-muted);
	margin-bottom: 32px;
}

.up-pricing__card {
	max-width: 360px;
	margin: 0 auto;
	background: var(--up-card);
	border-radius: 20px;
	padding: 36px 28px;
	border: 2px solid rgba(160, 24, 48, 0.13);
	box-shadow: 0 8px 40px var(--up-shadow), 0 0 0 1px var(--up-card-border);
	position: relative;
	overflow: hidden;
}

.up-pricing__card-stripe {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(to right, var(--up-gold), var(--up-red));
}

.up-pricing__price {
	font-size: 48px;
	font-weight: 900;
	color: var(--up-text);
	line-height: 1;
}

.up-pricing__price span {
	font-size: 18px;
	font-weight: 600;
	color: var(--up-text-muted);
}

.up-pricing__features {
	margin: 24px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
}

.up-pricing__feature {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--up-text);
	font-weight: 500;
}

.up-pricing__check {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(160, 24, 48, 0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--up-red);
}

.up-pricing__disclaimer {
	font-size: 11px;
	color: var(--up-text-muted);
	margin-top: 12px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes logoReveal {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes glowGold {
	0% {
		text-shadow: 0 0 4px rgba(212, 168, 67, 0.3), 0 0 12px rgba(212, 168, 67, 0.1);
	}
	100% {
		text-shadow: 0 0 8px rgba(212, 168, 67, 0.6), 0 0 24px rgba(212, 168, 67, 0.25), 0 0 48px rgba(232, 101, 46, 0.1);
	}
}

@keyframes glowRed {
	0% {
		text-shadow: 0 0 4px rgba(160, 24, 48, 0.3), 0 0 12px rgba(160, 24, 48, 0.1);
	}
	100% {
		text-shadow: 0 0 10px rgba(160, 24, 48, 0.5), 0 0 28px rgba(232, 60, 30, 0.3), 0 0 56px rgba(232, 101, 46, 0.12);
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 768px) {
	.up-how-grid {
		flex-direction: row;
		gap: 20px;
	}
	.up-how-grid > * {
		flex: 1;
	}
}

@media (min-width: 1024px) {
	.up-content-section {
		padding: 56px 40px 32px;
	}
}

/* Hide scrollbar on pill containers (future category filters) */
.up-landing ::-webkit-scrollbar {
	display: none;
}
.up-landing {
	scrollbar-width: none;
}
