/*
 * Nome File: assets/banner.css
 * Versione: 1.0.0.0
 * Log Modifiche:
 * - 1.0.0.0: Banner orizzontale 300x130 (stesse misure della vecchia vetrina) e
 *            verticale 150x260 (stessa superficie). Misure fisse: il riquadro non
 *            cresce anche se il titolo e' lungo (al massimo 2 righe).
 */

.sn-ai {
	display: flex;
	justify-content: center;
	clear: both;
	margin: 0 0 6px;
	padding: 0;
	line-height: 1.2;
}

.sn-ai a.sn-ai__box,
.sn-ai a.sn-ai__box:hover,
.sn-ai a.sn-ai__box:visited {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	column-gap: 10px;
	width: 300px;
	max-width: 100%;
	height: 130px;
	padding: 8px 10px;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #dbe3ea;
	border-radius: 8px;
	color: #14304d;
	text-decoration: none !important;
	box-shadow: none;
	font-family: inherit;
	font-weight: 400;
}
.sn-ai a.sn-ai__box:hover { border-color: #f5a623; }

.sn-ai .sn-ai__foto {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 112px;
	overflow: hidden;
	background: #fff;
}
.sn-ai .sn-ai__foto img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.sn-ai .sn-ai__sconto {
	position: absolute;
	top: 0;
	left: 0;
	padding: 1px 5px;
	border-radius: 3px;
	background: #cc0c39;
	color: #fff;
	font-size: 11px;
	line-height: 15px;
	font-weight: 700;
}

.sn-ai .sn-ai__testo {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 112px;
	overflow: hidden;
}
.sn-ai .sn-ai__etichetta {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 9.5px;
	line-height: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a949c;
}
.sn-ai .sn-ai__titolo {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 32px;
	margin-top: 1px;
	font-size: 13px;
	line-height: 16px;
	font-weight: 700;
	color: #14304d;
}
.sn-ai .sn-ai__stelle {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 3px;
	font-size: 11px;
	line-height: 13px;
	color: #5f6b75;
	white-space: nowrap;
}
.sn-ai .sn-ai__voto {
	position: relative;
	display: inline-block;
	color: #d5d9dd;
	font-size: 11px;
	letter-spacing: 0;
}
.sn-ai .sn-ai__voto-pieno {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #de7921;
}
.sn-ai .sn-ai__prezzi {
	margin-top: 2px;
	font-size: 11px;
	line-height: 18px;
	color: #8a949c;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sn-ai .sn-ai__prezzi strong {
	font-size: 16px;
	font-weight: 700;
	color: #14304d;
}
.sn-ai .sn-ai__prezzi s { color: #8a949c; }
.sn-ai .sn-ai__bottone {
	align-self: flex-start;
	margin-top: auto;
	padding: 3px 12px;
	border-radius: 999px;
	background: #ffd814;
	color: #0f1111;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	white-space: nowrap;
}
.sn-ai a.sn-ai__box:hover .sn-ai__bottone { background: #f7ca00; }

/* --- Verticale: 150 x 260 (stessa superficie dell'orizzontale) --- */
.sn-ai--v a.sn-ai__box,
.sn-ai--v a.sn-ai__box:hover,
.sn-ai--v a.sn-ai__box:visited {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: 104px minmax(0, 1fr);
	row-gap: 6px;
	width: 150px;
	height: 260px;
	padding: 8px;
}
.sn-ai--v .sn-ai__foto { width: 100%; height: 104px; }
.sn-ai--v .sn-ai__testo { height: auto; }
.sn-ai--v .sn-ai__etichetta { white-space: normal; }
.sn-ai--v .sn-ai__titolo { font-size: 12px; line-height: 15px; max-height: 30px; }
.sn-ai--v .sn-ai__bottone { align-self: stretch; text-align: center; }

/* Frase di affiliazione in fondo all'articolo */
.sn-ai-nota {
	margin: 1em 0 0;
	font-size: 11px;
	line-height: 1.4;
	color: #8a949c;
	font-style: italic;
}
