/* ============================================================
   LiveSofia - footer ridisegnato - aggiunto 2026-09-30
   Caricato su tutte le pagine da functions.php (lv-footer).
   Prefooter (.ax-prefooter, 4 colonne): marchio | Popular Scenes |
   Our Models | Live show (lv_footer_live_html). Barra finale .ax-footer.
   ============================================================ */

/* ---------- Sfondo: quasi nero come il resto del sito, linea pink in alto ---------- */
.ax-prefooter > .ax-row-background,
.ax-footer > .ax-row-background { background: #0b0b10 !important; }
.ax-prefooter .ax-current-background { background-color: #0b0b10 !important; }
.ax-prefooter {
	position: relative;
	border-top: 1px solid rgba(239, 0, 59, .45);
}
.ax-prefooter::before { /* bagliore pink appena sotto la linea */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 160px;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(60% 100% at 50% 0%, rgba(239, 0, 59, .13) 0%, rgba(239, 0, 59, 0) 70%);
}

/* ---------- Griglia a 4 colonne centrata (max 1600px) ---------- */
.ax-prefooter > .ax-row-inner {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 44px;
	max-width: 1600px !important;
	margin: 0 auto !important;
	padding: 52px 24px 40px !important;
	box-sizing: border-box;
}
.ax-prefooter > .ax-row-inner > .ax-column {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	min-width: 0;
}
.ax-prefooter .widget { margin: 0 0 22px !important; padding: 0 !important; text-align: left; }
.ax-prefooter .widget:last-child { margin-bottom: 0 !important; }

/* Titoli delle colonne: a sinistra con barra pink, come "SCENES" */
.ax-prefooter .widgettitle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	letter-spacing: 2px !important;
	line-height: 1.2 !important;
	text-align: left !important;
	color: #fff !important;
}
.ax-prefooter .widgettitle::before {
	content: "";
	flex: 0 0 4px;
	height: 16px;
	border-radius: 2px;
	background: #ef003b;
	box-shadow: 0 0 10px rgba(239, 0, 59, .6);
}
.ax-prefooter .widgettitle::after,
.ax-prefooter .widgettitle > span::before,
.ax-prefooter .widgettitle > span::after { content: none !important; display: none !important; }
.ax-prefooter .widgettitle > span { padding: 0 !important; border: 0 !important; }

/* ---------- Colonna marchio (widget di testo text-2 / text-3) ---------- */
.ax-prefooter .widget_text .textwidget {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	font-size: 13px;
	line-height: 1.55;
	color: #a9adb8;
	text-align: left;
}
.ax-prefooter .widget_text .textwidget > p {
	flex: 0 0 100%;
	margin: 0 !important;
	text-align: left !important;
}
.ax-prefooter .widget_text .textwidget > p:first-child { font-size: 13px; }
.ax-prefooter .widget_text .textwidget > p:first-child strong,
.ax-prefooter .widget_text .textwidget > p:first-child {
	color: #fff;
}
.ax-prefooter .widget_text .textwidget > p:first-child strong { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.ax-prefooter .widget_text .textwidget > p:first-child::first-line { font-size: 17px; font-weight: 800; color: #fff; } /* il testo per tablet/cellulare non ha il grassetto */
.ax-prefooter .widget_text .textwidget a { color: #ff4d79; text-decoration: none; transition: color .2s ease; }
.ax-prefooter .widget_text .textwidget a:hover { color: #fff; }
/* "Richiedi eliminazione video": discreto */
.ax-prefooter .widget_text .textwidget a[href*="reports"] { color: #8c909b; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ax-prefooter .widget_text .textwidget a[href*="reports"]:hover { color: #ff4d79; }
/* "Partner": piccola etichetta */
.ax-prefooter .widget_text .textwidget > p:has(> strong:only-child):not(:first-child) {
	margin-top: 6px !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #6f7380;
}
.ax-prefooter .widget_text .textwidget > p:has(> strong:only-child):not(:first-child) strong { font-weight: 800; color: #6f7380; }
/* banner dei partner affiancati */
.ax-prefooter .widget_text .textwidget > p:has(> a > img) { flex: 1 1 0; min-width: 0; max-width: 150px; line-height: 0; }
.ax-prefooter .widget_text .textwidget > p:has(> a > img) img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	opacity: .85;
	transition: opacity .2s ease, transform .2s ease;
}
.ax-prefooter .widget_text .textwidget > p:has(> a > img) a:hover img { opacity: 1; transform: translateY(-2px); }
.ax-prefooter .widget_text .textwidget > p:has(> img:only-child) { line-height: 0; } /* icone delle carte */
.ax-prefooter .widget_text .textwidget > p:has(> img:only-child) img { opacity: .8; }
.ax-prefooter .widget_text .textwidget > p:empty,
.ax-prefooter .widget_text .textwidget > p:last-child:not(:has(*)) { display: none; } /* paragrafo vuoto (&nbsp;) finale */

/* ---------- Popular Scenes: stesso stile delle card delle scene ---------- */
.ax-prefooter .widget_axtheme_widget_posts .ax-collection,
.ax-prefooter .widget_axtheme_widget_posts .ax-collection-viewport { margin: 0 !important; padding: 0 !important; } /* margini negativi del tema */
.ax-prefooter .widget_axtheme_widget_posts .ax-collection-items {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 14px;
	margin: 0 !important;
	padding: 0 !important;
}
.ax-prefooter .widget_axtheme_widget_posts .ax-collection-items::before,
.ax-prefooter .widget_axtheme_widget_posts .ax-collection-items::after { content: none !important; }
.ax-prefooter .widget_axtheme_widget_posts .ax-collection-item {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}
.ax-prefooter article.entry-tpl-grid-xxs { margin: 0 !important; text-align: left; }
.ax-prefooter article.entry-tpl-grid-xxs .entry-featured-media {
	margin: 0 0 8px !important;
	border-radius: 10px;
	overflow: hidden;
	isolation: isolate;
	background: #15151b;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
	transition: box-shadow .25s ease;
}
.ax-prefooter article.entry-tpl-grid-xxs .ax-frame { display: block; }
.ax-prefooter article.entry-tpl-grid-xxs .ax-frame-inner {
	position: relative;
	aspect-ratio: 16 / 9;
	height: auto !important;
	padding: 0 !important;
	overflow: hidden;
}
.ax-prefooter article.entry-tpl-grid-xxs .ax-frame-inner > img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform .45s ease;
}
.ax-prefooter article.entry-tpl-grid-xxs .ax-frame-icon {
	z-index: 2;
	opacity: 0;
	transform: scale(.85);
	transition: opacity .2s ease, transform .2s ease;
}
@media (hover: hover) {
	.ax-prefooter article.entry-tpl-grid-xxs:hover .entry-featured-media { box-shadow: 0 0 0 2px #ef003b, 0 8px 22px rgba(239, 0, 59, .28); }
	.ax-prefooter article.entry-tpl-grid-xxs:hover .ax-frame-inner > img { transform: scale(1.06); }
	.ax-prefooter article.entry-tpl-grid-xxs:hover .ax-frame-icon { opacity: 1; transform: scale(1); }
}
.ax-prefooter article.entry-tpl-grid-xxs .entry-body { padding: 0 2px !important; text-align: left; }
.ax-prefooter article.entry-tpl-grid-xxs .entry-title {
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
.ax-prefooter article.entry-tpl-grid-xxs .entry-title a { color: #e9eaef; text-decoration: none; transition: color .2s ease; }
.ax-prefooter article.entry-tpl-grid-xxs .entry-title a:hover { color: #ff4d79; }

/* ---------- Our Models: 3 per riga, foto rotonde con nome ---------- */
.ax-prefooter .widget_author_avatars .author-list {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 12px;
	margin: 0;
}
.ax-prefooter .widget_author_avatars .author-list::before,
.ax-prefooter .widget_author_avatars .author-list::after { content: none !important; }
.ax-prefooter .widget_author_avatars .user {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	text-align: center;
}
.ax-prefooter .widget_author_avatars .user a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	text-decoration: none;
}
.ax-prefooter .widget_author_avatars .avatar {
	display: block;
	width: 100%;
	max-width: 92px;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
	transition: box-shadow .25s ease;
}
.ax-prefooter .widget_author_avatars .avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	transition: transform .4s ease;
}
.ax-prefooter .widget_author_avatars .name {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #c9ccd4;
	transition: color .2s ease;
}
@media (hover: hover) {
	.ax-prefooter .widget_author_avatars .user a:hover .avatar { box-shadow: 0 0 0 2px #ef003b, 0 6px 18px rgba(239, 0, 59, .35); }
	.ax-prefooter .widget_author_avatars .user a:hover .avatar img { transform: scale(1.08); }
	.ax-prefooter .widget_author_avatars .user a:hover .name { color: #ff4d79; }
}
/* "Tutte le modelle →" (subito sotto le foto, anche su cellulare dove segue il testo) */
.ax-prefooter .ax-column:has(> .widget_author_avatars) { display: flex; flex-direction: column; }
.ax-prefooter .ax-column:has(> .widget_author_avatars) > .widget_author_avatars { order: 1; margin-bottom: 12px !important; }
.ax-prefooter .ax-column:has(> .widget_author_avatars) > .lv-fm-all { order: 2; }
.ax-prefooter .ax-column:has(> .widget_author_avatars) > .widget_text { order: 3; margin-top: 22px !important; }
.ax-prefooter .lv-fm-all { margin: 0 !important; text-align: left; }
.ax-prefooter .lv-fm-all a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(239, 0, 59, .45);
	color: #ff4d79;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.ax-prefooter .lv-fm-all a:hover { background: #ef003b; color: #fff; }

/* ---------- Live show: prossimo show + link rapidi ---------- */
.lv-footlive { margin: 0 0 16px; }
.lv-fl-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 18px;
	border-radius: 14px;
	background: linear-gradient(145deg, #1b0812 0%, #120a14 55%, #0e0e14 100%);
	border: 1px solid rgba(239, 0, 59, .35);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	color: #e9eaef !important;
	text-decoration: none !important;
	transition: border-color .2s ease, transform .2s ease;
}
.lv-fl-card:hover { border-color: #ef003b; transform: translateY(-2px); }
.lv-fl-title { font-size: 17px; font-weight: 800; line-height: 1.25; color: #fff; }
.lv-fl-when { margin-top: -6px; font-size: 13px; color: #a9adb8; }
.lv-footlive .lv-tb-count { flex-wrap: wrap; }
.lv-footlive .lv-tb-cta { display: inline-block !important; margin-top: 2px; } /* la barra in alto lo nasconde su cellulare */
.lv-fl-card:hover .lv-tb-cta { background: #c60031; transform: translateY(-1px); }
/* in onda: riquadro rosso come la barra */
.lv-footlive.lv-topbar-live .lv-fl-card {
	background: linear-gradient(145deg, #7a0022 0%, #ef003b 60%, #9e0029 100%);
	border-color: #ff2d55;
}
.lv-footlive.lv-topbar-live .lv-fl-when { color: #ffe3ea; }
.lv-footlive.lv-topbar-live .lv-fl-card:hover .lv-tb-cta { background: #ffe3ea; }
.lv-footlive-none .lv-fl-card { border-color: rgba(255, 255, 255, .12); }

.lv-fl-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lv-fl-links a {
	display: block;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .08);
	color: #c9ccd4 !important;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lv-fl-links a:hover { background: rgba(239, 0, 59, .12); border-color: rgba(239, 0, 59, .45); color: #fff !important; }

/* ---------- Barra finale: © anno + link ---------- */
.ax-footer { border-top: 1px solid rgba(255, 255, 255, .07); }
.ax-footer > .ax-row-inner {
	max-width: 1600px !important;
	margin: 0 auto !important;
	padding: 18px 24px !important;
	box-sizing: border-box;
}
.ax-footer > .ax-row-inner > .ax-column {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
	width: 100%;
	padding: 0 !important;
}
.ax-footer .ax-footer-text {
	flex: 0 0 auto;
	width: auto !important; /* il tema dà il 50% a testo e menu: il menu andava su due righe */
	float: none !important;
	margin: 0 !important;
	font-size: 12.5px !important;
	color: #8c909b !important;
}
.ax-footer .ax-footer-nav { flex: 1 1 auto; width: auto !important; min-width: 0; float: none !important; }
.ax-footer .ax-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 20px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.ax-footer .ax-footer-nav li { margin: 0 !important; padding: 0 !important; float: none !important; }
.ax-footer .ax-footer-nav li::before,
.ax-footer .ax-footer-nav li::after { content: none !important; }
.ax-footer .ax-footer-nav a {
	font-size: 12.5px !important;
	color: #a9adb8 !important;
	text-decoration: none;
	text-transform: none;
	transition: color .2s ease;
}
.ax-footer .ax-footer-nav a:hover { color: #ff4d79 !important; }

/* ---------- Tablet: 2 colonne ---------- */
@media (max-width: 1199px) {
	.ax-prefooter > .ax-row-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; padding: 40px 20px 32px !important; }
	/* senza il testo "marchio" desktop (nascosto dal tema su tablet) la prima colonna resta vuota: la tolgo */
	.ax-prefooter > .ax-row-inner > .ax-column:not(:has(> *:not(.extendedwopts-tablet):not(script))) { display: none; }
	/* Live show su tutta la riga: riquadro e link affiancati */
	.ax-prefooter > .ax-row-inner > .ax-column:has(.lv-fl-widget) { grid-column: 1 / -1; }
	.lv-fl-widget { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
	.lv-fl-widget > header { grid-column: 1 / -1; }
	.lv-fl-widget .lv-footlive { margin: 0; }
}

/* ---------- Cellulare: tutto più compatto ---------- */
@media (max-width: 767px) {
	.ax-prefooter::before { height: 110px; }
	.ax-prefooter > .ax-row-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 16px 24px !important; }
	.ax-prefooter > .ax-row-inner > .ax-column:not(:has(> *:not(.extendedwopts-mobile):not(script))) { display: none; }
	.ax-prefooter .widgettitle { margin-bottom: 12px !important; font-size: 13px !important; }
	/* Live show per primo: è ciò che porta alla pagina Live */
	.ax-prefooter > .ax-row-inner > .ax-column:has(.lv-fl-widget) { order: -1; }
	.lv-fl-widget { display: block; }
	.lv-fl-widget .lv-footlive { margin: 0 0 10px; }
	.lv-fl-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; }
	.lv-fl-card .lv-tb-badge { flex: 0 0 100%; }
	.lv-fl-title { flex: 1 1 auto; min-width: 0; font-size: 15px; }
	.lv-fl-when { flex: 0 0 100%; order: 3; margin-top: -4px; font-size: 12px; }
	.lv-footlive .lv-tb-count { display: none; } /* il conto alla rovescia è già nella barra in alto */
	.lv-footlive .lv-tb-cta { margin: 0; padding: 6px 12px; font-size: 11px; }
	.lv-fl-links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.lv-fl-links a { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 4px; font-size: 11px; line-height: 1.2; text-align: center; white-space: normal; overflow: visible; }
	/* Popular Scenes e modelle: strisce scorrevoli in orizzontale (la card successiva si vede a metà) */
	.ax-prefooter .widget_axtheme_widget_posts .ax-collection-items,
	.ax-prefooter .widget_author_avatars .author-list {
		grid-template-columns: none !important;
		grid-auto-flow: column;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.ax-prefooter .widget_axtheme_widget_posts .ax-collection-items::-webkit-scrollbar,
	.ax-prefooter .widget_author_avatars .author-list::-webkit-scrollbar { display: none; }
	.ax-prefooter .widget_axtheme_widget_posts .ax-collection-items { grid-auto-columns: 58%; gap: 10px; }
	.ax-prefooter .widget_axtheme_widget_posts .ax-collection-item,
	.ax-prefooter .widget_author_avatars .user { scroll-snap-align: start; }
	.ax-prefooter article.entry-tpl-grid-xxs .entry-title { font-size: 12px !important; }
	.ax-prefooter .widget_author_avatars .author-list { grid-auto-columns: 72px; gap: 10px; }
	.ax-prefooter .widget_author_avatars .avatar { max-width: 64px; }
	.ax-prefooter .widget_author_avatars .name { font-size: 11px; }
	.ax-prefooter .ax-column:has(> .widget_author_avatars) > .widget_text { margin-top: 18px !important; }
	.ax-prefooter .widget_text .textwidget { gap: 6px 10px; font-size: 12px; }
	.ax-prefooter .widget_text .textwidget > p:has(> strong:only-child):not(:first-child) { display: none; } /* etichetta "Partner" */
	.ax-prefooter .widget_text .textwidget > p:has(> a > img) { max-width: 130px; }
	.ax-footer > .ax-row-inner { padding: 16px !important; }
	.ax-footer > .ax-row-inner > .ax-column { flex-direction: column-reverse; justify-content: center; text-align: center; gap: 12px; }
	.ax-footer .ax-footer-nav ul { justify-content: center; gap: 4px 14px; }
	.ax-footer .ax-footer-nav a { font-size: 11.5px !important; }
}
