/* ============================================================
   LiveSofia - invito ad abbonarsi (aggiunto 2026-10-08)
   Finestra con gli abbonamenti (lv-invito.php, js/lv-invito.js). Al centro su computer, dal basso sul telefono.
   ============================================================ */

.lv-invito[hidden] { display: none !important; }
html.lv-invito-open, html.lv-invito-open body { overflow: hidden !important; }

.lv-invito {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: Roboto, Arial, sans-serif;
}
.lv-invito-fondo {
	position: absolute;
	inset: 0;
	background: rgba(5, 5, 8, .78);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .22s ease;
}
.lv-invito-box {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 30px 24px 22px;
	color: #e9eaef;
	text-align: center;
	background: #15151c;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	opacity: 0;
	transform: translateY(18px) scale(.98);
	transition: opacity .22s ease, transform .22s ease;
}
.lv-invito.is-in .lv-invito-fondo { opacity: 1; }
.lv-invito.is-in .lv-invito-box { opacity: 1; transform: none; }

.lv-invito-x {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 24px !important;
	line-height: 36px !important;
	color: #c9ccd4 !important;
	background: rgba(255, 255, 255, .06) !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: pointer;
}
.lv-invito-x:hover { color: #fff !important; background: rgba(255, 255, 255, .12) !important; }

.lv-invito-kicker {
	margin: 0 0 8px !important;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	color: #ff4d79;
}
.lv-invito-titolo {
	margin: 0 0 12px !important;
	padding: 0 18px;
	font-size: 24px;
	line-height: 29px;
	font-weight: 800;
	color: #fff;
}
.lv-invito-plus {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	margin: 0 0 20px !important;
	padding: 0 !important;
	list-style: none !important;
	font-size: 13px;
	line-height: 18px;
	color: #b9bcc6;
}
.lv-invito-plus li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.lv-invito-plus li::before { content: "\2713\00a0"; font-weight: 800; color: #ff4d79; }

.lv-invito-piani { display: grid; gap: 12px; text-align: left; }
.lv-invito-piano {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 13px;
	color: inherit !important;
	text-decoration: none !important;
	background: #1b1b23;
	border: 1px solid #2c2c36;
	border-radius: 14px;
	transition: border-color .15s, background .15s;
}
.lv-invito-piano:hover,
.lv-invito-piano:focus-visible { background: #22222c; border-color: #ef003b; outline: none; }
.lv-invito-piano.is-top { border-color: rgba(239, 0, 59, .65); }
.lv-invito-badge {
	position: absolute;
	top: -9px;
	left: 12px;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 800;
	line-height: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	background: #ef003b;
	border-radius: 999px;
}
.lv-invito-nome { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; line-height: 19px; color: #fff; }
.lv-invito-nome small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 16px; color: #9a9daa; }
.lv-invito-prezzo { flex: 0 0 auto; font-size: 17px; font-weight: 800; line-height: 20px; text-align: right; white-space: nowrap; color: #fff; }
.lv-invito-prezzo s { margin-right: 4px; font-size: 12px; font-weight: 500; color: #8b8e9a; }
.lv-invito-prezzo small { display: block; font-size: 11px; font-weight: 500; line-height: 15px; color: #9a9daa; }
.lv-invito-freccia {
	display: flex;
	flex: 0 0 30px;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-weight: 800;
	color: #fff;
	background: #ef003b;
	border-radius: 50%;
	transition: background .15s;
}
.lv-invito-piano:hover .lv-invito-freccia { background: #ff1f55; }

.lv-invito-tutti {
	display: inline-block;
	margin-top: 16px;
	font-size: 13px;
	font-weight: 700;
	color: #ff4d79 !important;
	text-decoration: none !important;
}
.lv-invito-tutti:hover { color: #fff !important; }
.lv-invito-continua {
	display: block;
	width: 100% !important;
	margin-top: 12px !important;
	padding: 12px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 18px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: #c9ccd4 !important;
	background: transparent !important;
	border: 1px solid #33333e !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	cursor: pointer;
}
.lv-invito-continua:hover { color: #fff !important; border-color: #5a5a66 !important; }
.lv-invito-nota { margin: 12px 0 0 !important; font-size: 11.5px; color: #7d808b; }

/* telefono: finestra dal basso, a tutta larghezza */
@media (max-width: 480px) {
	.lv-invito { align-items: flex-end; padding: 0; }
	.lv-invito-box {
		max-width: none;
		max-height: 92vh;
		padding: 26px 16px 18px;
		border-radius: 20px 20px 0 0;
		transform: translateY(40px);
	}
	.lv-invito-titolo { font-size: 21px; line-height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.lv-invito-fondo, .lv-invito-box { transition: none; }
}
