/*
 * Popup "Fast Track": card in basso a destra (non è un overlay a schermo intero),
 * divisa in due zone -> rossa sopra (eyebrow + titolo) e navy sotto (statistica,
 * descrizione, CTA, link "no grazie"). Non oscura il resto della pagina, quindi
 * l'utente può continuare a leggere/navigare mentre il popup è visibile.
 */

/* Card principale: posizione fissa in basso a destra dello schermo. */
.stfr-ftpopup {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	width: 340px;
	max-width: calc(100vw - 32px);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	font-family: inherit;

	/* Animazione di ingresso: leggero slide-up + dissolvenza. */
	transform: translateY(24px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Finché ha l'attributo "hidden" (gestito dal JS) resta completamente invisibile. */
.stfr-ftpopup[hidden] {
	display: none;
}

.stfr-ftpopup.is-visible {
	transform: translateY(0);
	opacity: 1;
}

/* Pulsante di chiusura "x", in alto a destra sopra la zona rossa. */
.stfr-ftpopup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.stfr-ftpopup__close:hover {
	background: rgba(255, 255, 255, 0.32);
}

/* --- ZONA ROSSA (sopra): eyebrow + titolo grande --- */

.stfr-ftpopup__zone-red {
	position: relative;
	overflow: hidden;
	background: #e01e25;
	padding: 28px 24px 34px;
}

/* Cerchi decorativi (blob) sullo sfondo della zona rossa, solo effetto grafico. */
.stfr-ftpopup__blob {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.stfr-ftpopup__blob--1 {
	width: 180px;
	height: 180px;
	top: -70px;
	right: -60px;
}

.stfr-ftpopup__blob--2 {
	width: 120px;
	height: 120px;
	bottom: -60px;
	left: -40px;
	background: rgba(0, 0, 0, 0.08);
}

.stfr-ftpopup__eyebrow {
	position: relative;
	margin: 0 0 14px;
	padding-bottom: 8px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Piccola lineetta arancione sotto l'eyebrow, come nel mockup. */
.stfr-ftpopup__eyebrow::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	background: #ff9800;
	border-radius: 2px;
}

.stfr-ftpopup__headline {
	position: relative;
	margin: 0;
	color: #fff;
	line-height: 1;
}

.stfr-ftpopup__headline-l1 {
	display: block;
	margin-bottom: 2px;
	font-size: 20px;
	font-weight: 400;
}

.stfr-ftpopup__headline-l2 {
	display: block;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

/* --- ZONA NAVY (sotto): statistica, descrizione, CTA, dismiss --- */

.stfr-ftpopup__zone-navy {
	background: #272d40;
	padding: 24px;
}

.stfr-ftpopup__stat {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 14px;
}

.stfr-ftpopup__stat-num {
	color: #ff8a3d;
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
}

.stfr-ftpopup__stat-label {
	color: #c7cad6;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	max-width: 140px;
}

.stfr-ftpopup__desc {
	margin: 0 0 20px;
	color: #d6d9e2;
	font-size: 14px;
	line-height: 1.5;
}

.stfr-ftpopup__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #fff;
	color: #e01e25;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 14px 20px;
	border-radius: 999px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.stfr-ftpopup__cta:hover {
	background: #f2f2f2;
	color: #e01e25;
	transform: translateY(-1px);
}

.stfr-ftpopup__dismiss {
	display: block;
	margin-top: 14px;
	color: #9ba0b0;
	text-align: center;
	text-decoration: underline;
	font-size: 13px;
}

.stfr-ftpopup__dismiss:hover {
	color: #fff;
}

/* Su schermi piccoli: card ancorata in basso, larga quasi tutto lo schermo. */
@media (max-width: 480px) {
	.stfr-ftpopup {
		right: 16px;
		left: 16px;
		bottom: 16px;
		width: auto;
		max-width: none;
	}

	.stfr-ftpopup__headline-l2 {
		font-size: 34px;
	}
}
