/* ─── Banner offerta (basso a destra) ─── */
.eptmo-banner {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9500;
	max-width: 320px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 14px 36px -10px rgba(14, 46, 75, 0.28);
	border: 1px solid #ebefef;
	animation: eptmoSlideIn 320ms cubic-bezier(0.16, 1, 0.3, 1);
	font-family: var(--font-body, -apple-system, BlinkMacSystemFont, sans-serif);
}
.eptmo-banner[hidden] {
	display: none;
}
@keyframes eptmoSlideIn {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
.eptmo-banner-close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #0e2e4b !important;
	color: #fff !important;
	border: 2px solid #fff !important;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.eptmo-banner-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	text-decoration: none;
	color: inherit;
}
.eptmo-banner-img {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
}
.eptmo-banner-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.eptmo-banner-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.eptmo-banner-badge {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #bc5a29;
}
.eptmo-banner-slogan {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #1c2221;
	font-weight: 600;
}
.eptmo-banner-cta {
	font-size: 0.75rem;
	font-weight: 700;
	color: #134169;
	margin-top: 2px;
}

@media (max-width: 480px) {
	.eptmo-banner {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}
}

/* ─── Nudge dinamici (pagina prodotto / carrello / mini-cart) ─── */
.eptmo-nudge {
	margin: 12px 0;
}
.eptmo-nudge-line {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #134169;
	background: #eff2f5;
	border-left: 3px solid #134169;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 0 0 6px;
}
.eptmo-nudge-line:last-child {
	margin-bottom: 0;
}
.eptmo-nudge-line--unlocked {
	color: #1a7f37;
	background: #eaf7ee;
	border-left-color: #1a7f37;
}
.eptmo-nudge-teaser {
	margin: 12px 0;
	font-size: 0.8125rem;
}
.eptmo-nudge-teaser a {
	color: #a0abab;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.eptmo-nudge-teaser a:hover {
	color: #134169;
}

/* ─── Pagina "Offerte del mese" ([eptamed_offerte_mese]) ───
   Entrambi i blocchi (hero + griglia) usano il trucco "breakout a piena
   larghezza" (margin negativo pari a metà differenza tra viewport e
   contenitore) per uscire da qualunque colonna stretta imposta dal
   template di pagina del tema/OceanWP — la pagina di questo shortcode non
   deve dipendere da quale template di pagina l'admin ha scelto in
   wp-admin. Dentro, un `max-width` centrato tiene comunque il contenuto
   leggibile su schermi larghi. */
.eptmo-offers-hero,
.eptmo-offers-page {
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	box-sizing: border-box;
}

.eptmo-offers-hero {
	background: #0e2e4b;
	padding: 72px 32px 56px;
	text-align: center;
}
.eptmo-offers-eyebrow {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin: 0 0 14px;
}
.eptmo-offers-h1 {
	font-family: var(--font-heading, inherit);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.03em;
	margin: 0 0 14px;
}
.eptmo-offers-sub {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.6);
	max-width: 480px;
	margin: 0 auto;
	line-height: 1.6;
}
.eptmo-offers-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 26px;
	margin-top: 28px;
	border-radius: 999px;
	background: #fff;
	color: #0e2e4b;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 150ms;
}
.eptmo-offers-hero-cta:hover {
	opacity: 0.9;
}

.eptmo-offers-page {
	background: #f8fafa;
	padding: 48px 32px 80px;
}
.eptmo-offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
	max-width: 1180px;
	margin: 0 auto;
}
.eptmo-offers-empty {
	text-align: center;
	color: #a0abab;
	padding: 60px 0;
	font-size: 1rem;
	max-width: 1180px;
	margin: 0 auto;
}
.eptmo-offer-card {
	background: #fff;
	border: 1px solid rgba(19, 65, 105, 0.07);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 28px -18px rgba(14, 46, 75, 0.18);
	transition: transform 200ms, box-shadow 200ms;
}
.eptmo-offer-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px -16px rgba(14, 46, 75, 0.24);
}
.eptmo-offer-card-img img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.eptmo-offer-card-img--placeholder {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #134169 0%, #0e2e4b 100%);
}
.eptmo-offer-card-body {
	padding: 26px 26px 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.eptmo-offer-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.eptmo-badge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	background: #eff2f5;
	color: #134169;
}
.eptmo-badge--ambassador {
	background: #fdf0e7;
	color: #9e4a20;
}
.eptmo-badge--scorte {
	background: #fdf3e0;
	color: #9e6f0a;
}
.eptmo-offer-card-title {
	font-family: var(--font-heading, inherit);
	font-size: 1.3125rem;
	font-weight: 800;
	color: #0e2e4b;
	margin: 4px 0 0;
	line-height: 1.25;
}
.eptmo-offer-card-slogan {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #134169;
	margin: 0;
}
.eptmo-offer-card-desc {
	font-size: 0.875rem;
	line-height: 1.7;
	color: #4e5655;
	margin: 0;
}
.eptmo-offer-card-scadenza {
	font-size: 0.75rem;
	color: #a0abab;
	margin: 0;
}
.eptmo-offer-card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 44px;
	padding: 0 22px;
	margin-top: 12px;
	border-radius: 999px;
	background: #134169;
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	align-self: flex-start;
	transition: background 150ms;
}
.eptmo-offer-card-cta:hover {
	background: #bc5a29;
}

@media (max-width: 600px) {
	.eptmo-offers-hero {
		padding: 52px 20px 40px;
	}
	.eptmo-offers-page {
		padding: 36px 20px 60px;
	}
	.eptmo-offers-page .eptmo-offers-grid {
		grid-template-columns: 1fr;
	}
}
