/**
 * Popup promozionale - hero + copy + CTA
 * Su tutte le pagine.
 */

.hk-promo-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: visibility 0.3s, opacity 0.3s;
}

.hk-promo-popup.is-open {
	display: flex;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.hk-promo-popup-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.hk-promo-popup-modal {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: hidden;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
}

.hk-promo-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	color: #333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.hk-promo-popup-close:hover {
	background: #222;
	color: #fff;
}

/* Hero con immagine - priorità su tema */
.hk-promo-popup .hk-promo-popup-hero {
	flex-shrink: 0 !important;
	width: 100% !important;
	height: 200px !important;
	min-height: 200px !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-color: #e8e8e8 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.hk-promo-popup-body {
	flex-shrink: 0 !important;
	padding: 24px 20px !important;
	display: block !important;
	visibility: visible !important;
}

.hk-promo-popup-body .container {
	display: flex !important;
	flex-wrap: wrap;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	gap: 16px;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.hk-promo-popup-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #111 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block !important;
	visibility: visible !important;
}

/* Bottone CTA - override .btn .btn-light del tema */
.hk-promo-popup .hk-promo-popup-cta,
.hk-promo-popup a.hk-promo-popup-cta,
.hk-promo-popup .btn.hk-promo-popup-cta {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 10px 20px !important;
	background: #E74338 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	visibility: visible !important;
	opacity: 1 !important;
	transition: background 0.2s, opacity 0.2s;
}

.hk-promo-popup .hk-promo-popup-cta:hover,
.hk-promo-popup a.hk-promo-popup-cta:hover {
	background: #c93a30 !important;
	color: #fff !important;
	opacity: 0.95 !important;
}

@media (max-width: 480px) {
	.hk-promo-popup-title {
		font-size: 16px;
	}
}
