/*
 * AMACA Lotteria — pagina pubblica.
 * Stesso linguaggio della pagina gara AmacarUN: tutto sotto .aml per non toccare il tema (Neve);
 * le regole usano almeno due classi per prevalere sugli stili del tema su h2, p, a, button.
 * Font ospitati nel plugin (OFL): Big Shoulders Display, Atkinson Hyperlegible.
 */

@font-face { font-family: "AML Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "AML Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "AML Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "AML Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

/* ---------- Temi: solo colori e decorazione ---------- */
.aml,
.aml.aml-tema-classico {
	--aml-ink: #142A20;
	--aml-park: #1E5B3F;
	--aml-ground: #EEF2EC;
	--aml-line: #CFDACF;
	--aml-muted: #3E5A4C;
	--aml-signal: #FF5A1F;
	--aml-signal-dark: #D9430D;
	--aml-sun: #FFD84D;
	--aml-deco: radial-gradient(circle, rgba(255,255,255,.07) 2px, transparent 2.5px) 0 0 / 22px 22px;
}
.aml.aml-tema-natale {
	--aml-ink: #2B1013;
	--aml-park: #17573A;
	--aml-ground: #F6EFE6;
	--aml-line: #E3D3C2;
	--aml-muted: #5E4440;
	--aml-signal: #C8102E;
	--aml-signal-dark: #9E0B23;
	--aml-sun: #FFD166;
	--aml-deco:
		radial-gradient(circle, rgba(255,255,255,.5) 1.6px, transparent 2.4px) 0 0 / 34px 34px,
		radial-gradient(circle, rgba(255,255,255,.3) 1.2px, transparent 2px) 17px 13px / 34px 34px;
}
.aml.aml-tema-primavera {
	--aml-ink: #3A1426;
	--aml-park: #2F7A3E;
	--aml-ground: #FCEFF3;
	--aml-line: #F1D0DB;
	--aml-muted: #6B4757;
	--aml-signal: #E64980;
	--aml-signal-dark: #C2255C;
	--aml-sun: #FFE066;
	--aml-deco:
		radial-gradient(circle at 92% 22%, rgba(255,255,255,.14) 0 34px, transparent 35px),
		radial-gradient(circle at 80% 80%, rgba(255,255,255,.1) 0 22px, transparent 23px),
		radial-gradient(circle at 98% 70%, rgba(255,255,255,.08) 0 12px, transparent 13px);
}
.aml.aml-tema-carnevale {
	--aml-ink: #241238;
	--aml-park: #5F2AA8;
	--aml-ground: #F2EDFB;
	--aml-line: #DDD0F2;
	--aml-muted: #574873;
	--aml-signal: #E8590C;
	--aml-signal-dark: #C2470A;
	--aml-sun: #FFD43B;
	--aml-deco:
		radial-gradient(circle, rgba(255,212,59,.55) 2.5px, transparent 3px) 0 0 / 46px 38px,
		radial-gradient(circle, rgba(105,219,124,.5) 2.5px, transparent 3px) 23px 19px / 46px 38px,
		radial-gradient(circle, rgba(77,171,247,.5) 2px, transparent 2.5px) 11px 30px / 46px 38px;
}
.aml.aml-tema-estate {
	--aml-ink: #10283A;
	--aml-park: #0B6E99;
	--aml-ground: #FFF5E1;
	--aml-line: #F0DDB8;
	--aml-muted: #4B5D6B;
	--aml-signal: #F76707;
	--aml-signal-dark: #D9480F;
	--aml-sun: #FFD43B;
	--aml-deco:
		radial-gradient(circle at 92% 50%, rgba(255,212,59,.22) 0 46px, transparent 47px),
		repeating-conic-gradient(from 0deg at 92% 50%, rgba(255,212,59,.10) 0 6deg, transparent 6deg 18deg);
}

/* ---------- Base ---------- */
.aml {
	--aml-card: #FFFFFF;
	--aml-display: "AML Display", Impact, "Arial Narrow", sans-serif;
	--aml-text: "AML Text", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--aml-text);
	font-size: 17px;
	line-height: 1.55;
	color: var(--aml-ink);
	background: var(--aml-ground);
	border-radius: 18px;
	padding: 28px;
	margin: 1.5em 0;
	display: flex;
	flex-direction: column;
	gap: 48px;
	box-sizing: border-box;
}
.aml *, .aml *::before, .aml *::after { box-sizing: border-box; }
.aml [hidden] { display: none !important; }
.aml p { margin: 0; }
.aml img { max-width: 100%; height: auto; }
.aml a { color: var(--aml-park); }
.aml a:hover { color: var(--aml-ink); }
.aml.aml--parte { gap: 32px; padding: 24px; }

/* Titolo del tema sulla pagina della lotteria: è già nell'hero. */
body.aml-single .entry-title,
body.aml-single .nv-page-title-wrap,
body.aml-single .wp-block-post-title { display: none; }

/* ---------- Tipografia ---------- */
.aml .aml-h1 {
	margin: 0;
	font-family: var(--aml-display);
	font-weight: 900;
	font-size: clamp(44px, 7vw, 76px);
	line-height: .95;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
	color: inherit;
}
.aml .aml-h2 {
	margin: 0;
	font-family: var(--aml-display);
	font-weight: 900;
	font-size: clamp(32px, 4.5vw, 44px);
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
	color: inherit;
}
.aml .aml-h3 {
	font-family: var(--aml-display);
	font-weight: 900;
	font-size: 26px;
	line-height: 1.05;
	text-transform: uppercase;
	color: inherit;
}
.aml .aml-eyebrow { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--aml-park); }
.aml .aml-kicker { font-family: var(--aml-display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.aml .aml-kicker a { color: var(--aml-park); text-decoration: none; }
.aml .aml-sun { color: var(--aml-sun); }
.aml .aml-lead { font-size: 20px; max-width: 36em; }
.aml .aml-muted { color: var(--aml-muted); }
.aml .aml-small { font-size: 15px; }

/* ---------- Pulsanti ---------- */
.aml .aml-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--aml-signal);
	color: #fff;
	font: 700 17px/1.1 var(--aml-text);
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	text-align: center;
}
.aml .aml-btn:hover { background: var(--aml-signal-dark); color: #fff; }
.aml .aml-btn:focus-visible { outline: 3px solid var(--aml-ink); outline-offset: 2px; }
.aml .aml-btn-ghost { background: transparent; color: var(--aml-ink); box-shadow: inset 0 0 0 2px var(--aml-ink); }
.aml .aml-btn-ghost:hover { background: var(--aml-ink); color: #fff; }
.aml .aml-btn-light { background: #fff; color: var(--aml-ink); }
.aml .aml-btn-light:hover { background: var(--aml-sun); color: var(--aml-ink); }
.aml .aml-btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.aml .aml-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Banner di fase ---------- */
.aml .aml-banner { border-radius: 14px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.aml .aml-banner-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 340px; min-width: 0; }
.aml .aml-banner-title { font-family: var(--aml-display); font-weight: 900; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.aml .aml-b-info { background: #DCEBF7; color: #0F3554; }
.aml .aml-b-warm { background: #FFE9A8; color: #4A3300; }
.aml .aml-b-hot  { background: var(--aml-signal); color: #fff; }
.aml .aml-b-park { background: var(--aml-park); color: #fff; }
.aml .aml-b-ink  { background: var(--aml-ink); color: #fff; }
.aml .aml-clock { display: flex; gap: 10px; }
.aml .aml-clock > div { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.16); }
.aml .aml-clock span { font-family: var(--aml-display); font-weight: 900; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.aml .aml-clock small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Hero ---------- */
.aml .aml-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.aml .aml-hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.aml .aml-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }

/* Biglietto disegnato: matrice + figlia con perforazione e intagli. */
.aml .aml-ticket {
	--hole: var(--aml-ground);
	flex: 1 1 300px;
	max-width: 400px;
	display: flex;
	border-radius: 10px;
	filter: drop-shadow(0 18px 24px rgba(20,42,32,.28));
	transform: rotate(-2.5deg);
	position: relative;
}
.aml .aml-ticket-stub {
	flex: 0 0 74px;
	background: var(--aml-signal);
	color: #fff;
	border-radius: 10px 0 0 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	position: relative;
	border-right: 3px dashed rgba(255,255,255,.75);
}
.aml .aml-ticket-vert {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--aml-display);
	font-weight: 900;
	font-size: 26px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.aml .aml-ticket-no { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.aml .aml-ticket-body {
	flex: 1;
	min-width: 0;
	background: #fff;
	border-radius: 0 10px 10px 0;
	padding: 18px 22px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	/* intagli rotondi sopra e sotto la perforazione */
	-webkit-mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat,
	              radial-gradient(circle 11px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat;
	        mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat,
	              radial-gradient(circle 11px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat;
}
.aml .aml-ticket-org { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aml-park); }
.aml .aml-ticket-big { font-family: var(--aml-display); font-weight: 900; font-size: clamp(96px, 14vw, 150px); line-height: .82; text-align: center; letter-spacing: -.02em; padding-top: 8px; }
.aml .aml-ticket-month { font-family: var(--aml-display); font-weight: 900; font-size: 30px; line-height: 1; text-align: center; text-transform: uppercase; letter-spacing: .06em; color: var(--aml-signal); padding-bottom: 8px; }
.aml .aml-ticket-foot { display: flex; justify-content: space-between; gap: 8px; background: var(--aml-park); color: #fff; border-radius: 4px; padding: 8px 12px; font-weight: 700; font-size: 15px; }

/* ---------- Sezioni e card ---------- */
.aml .aml-section { display: flex; flex-direction: column; gap: 20px; }
.aml .aml-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.aml .aml-card { background: var(--aml-card); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.aml .aml-split { flex-direction: row; flex-wrap: wrap; gap: 32px 48px; }
.aml .aml-split > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- Step "Come funziona" ---------- */
.aml .aml-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.aml .aml-step {
	margin: 0;
	background: var(--aml-card);
	border-radius: 18px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 3px solid transparent;
	position: relative;
}
.aml .aml-step-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.aml .aml-step-num {
	width: 56px; height: 56px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--aml-display); font-weight: 900; font-size: 34px; line-height: 1;
	border: 3px solid var(--aml-ink); color: var(--aml-ink); background: #fff;
}
.aml .aml-step-when { font-weight: 700; color: var(--aml-park); }
.aml .aml-step-tag { display: none; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.aml .aml-step.is-now { border-color: var(--aml-signal); box-shadow: 0 14px 30px -16px rgba(0,0,0,.35); }
.aml .aml-step.is-now .aml-step-num { background: var(--aml-signal); border-color: var(--aml-signal); color: #fff; }
.aml .aml-step.is-now .aml-tag-now { display: inline-block; background: var(--aml-signal); color: #fff; }
.aml .aml-step.is-done { background: transparent; border-color: var(--aml-line); }
.aml .aml-step.is-done .aml-step-num { background: var(--aml-park); border-color: var(--aml-park); color: #fff; }
.aml .aml-step.is-done .aml-tag-done { display: inline-block; background: var(--aml-park); color: #fff; }

/* ---------- Numeri vincenti ---------- */
.aml .aml-winners-head { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; }
.aml .aml-check { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.aml .aml-check-label { font-weight: 700; font-size: 15px; }
.aml .aml-check-row { display: flex; gap: 8px; }
.aml .aml-check-input {
	flex: 1 1 auto; min-width: 0; min-height: 52px;
	border-radius: 999px; border: 2px solid var(--aml-line);
	padding: 0 20px; margin: 0; box-shadow: none;
	font: 900 26px/1 var(--aml-display); letter-spacing: .06em;
	color: var(--aml-ink); background: #fff;
}
.aml .aml-check-input:focus { outline: none; border-color: var(--aml-park); }
.aml .aml-check-result:empty { display: none; }
.aml .aml-check-result { border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.aml .aml-check-result.is-win { background: var(--aml-sun); color: #3A2A00; }
.aml .aml-check-result.is-lose { background: var(--aml-ground); font-weight: 400; }

.aml .aml-wins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.aml .aml-win {
	margin: 0;
	border: 2px dashed var(--aml-line);
	border-radius: 14px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}
.aml .aml-win:first-child { border-style: solid; border-color: var(--aml-signal); }
.aml .aml-win-pos { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aml-muted); }
.aml .aml-win-num { font-family: var(--aml-display); font-weight: 900; font-size: 56px; line-height: .9; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.aml .aml-win-title { font-size: 15px; line-height: 1.3; margin-bottom: 4px; }

.aml .aml-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.aml .aml-badge-ok { background: var(--aml-park); }
.aml .aml-badge-wait { background: var(--aml-signal); }
.aml .aml-badge-off { background: #7A7F7C; }

/* ---------- Premi ---------- */
.aml .aml-prizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.aml .aml-prize { margin: 0; background: var(--aml-card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.aml .aml-prize.is-first { box-shadow: inset 0 0 0 3px var(--aml-signal); }
.aml .aml-prize-img { position: relative; aspect-ratio: 4 / 3; background: var(--aml-line); display: flex; align-items: center; justify-content: center; }
.aml .aml-prize-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aml .aml-prize.is-first .aml-prize-img img { inset: 3px 3px 0; width: calc(100% - 6px); height: calc(100% - 3px); border-radius: 15px 15px 0 0; }
.aml .aml-prize-noimg { font-family: var(--aml-display); font-weight: 900; font-size: 120px; line-height: 1; color: rgba(255,255,255,.75); }
.aml .aml-prize-pos {
	position: absolute; top: 12px; left: 12px;
	padding: 6px 14px; border-radius: 999px;
	background: var(--aml-signal); color: #fff;
	font-family: var(--aml-display); font-weight: 900; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .03em;
}
.aml .aml-prize-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.aml .aml-prize-title { font-size: 20px; line-height: 1.25; }
.aml .aml-donor { font-style: italic; color: var(--aml-muted); }
.aml .aml-prize-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.aml .aml-value { font-family: var(--aml-display); font-weight: 900; font-size: 38px; line-height: 1; color: var(--aml-signal); }
.aml .aml-prize-win { margin: 10px -22px -22px; padding: 12px 22px; background: var(--aml-ground); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.aml .aml-prize-win strong { font-family: var(--aml-display); font-weight: 900; font-size: 26px; letter-spacing: .03em; }

/* ---------- Fascia scura ---------- */
.aml .aml-why { position: relative; isolation: isolate; overflow: hidden; background: var(--aml-ink); color: #fff; border-radius: 18px; padding: 40px 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.aml .aml-why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aml-deco); pointer-events: none; }
.aml .aml-why-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.aml .aml-why-text p { font-size: 19px; max-width: 34em; }
.aml .aml-stat { flex: 1 1 150px; display: flex; flex-direction: column; }
.aml .aml-stat-num { font-family: var(--aml-display); font-weight: 900; font-size: 84px; line-height: .9; color: var(--aml-sun); }

/* ---------- Regolamento (stile FAQ) ---------- */
.aml .aml-faq { max-width: 820px; gap: 12px; }
.aml .aml-faq details { border-top: 2px solid var(--aml-line); border-bottom: 2px solid var(--aml-line); padding: 18px 0; }
.aml .aml-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.aml .aml-rules-body { margin-top: 12px; }
.aml .aml-rules-body ol { margin: 0; padding-left: 1.3em; }
.aml .aml-rules-body li { margin: .5em 0; }

/* ---------- Piede, link finale ---------- */
.aml .aml-foot { border-top: 2px solid var(--aml-line); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.aml .aml-foot > div { display: flex; flex-direction: column; gap: 4px; }
.aml .aml-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.aml .aml-waiting { gap: 10px; }

@media (max-width: 600px) {
	.aml { padding: 16px; gap: 36px; border-radius: 0; font-size: 16px; }
	.aml.aml--parte { padding: 16px; border-radius: 14px; }
	.aml .aml-card, .aml .aml-why { padding: 24px 20px; }
	.aml .aml-ticket { transform: none; max-width: none; }
	.aml .aml-banner-title { font-size: 26px; }
	.aml .aml-clock > div { min-width: 54px; }
	.aml .aml-clock span { font-size: 32px; }
	.aml .aml-wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aml .aml-win-num { font-size: 44px; }
	.aml .aml-check-row { flex-wrap: wrap; }
	.aml .aml-check-row .aml-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.aml .aml-ticket { transform: none; }
}
