/**
 * Polo Core — elenco eventi. Colori del tema con valori di riserva.
 * Versione 0.7.0 DI: GDL for COOBURN srl ©
 */
.polo-eventi-blocco {
	--pe-ink: var(--wp--preset--color--ink, #1e1b17);
	--pe-soft: var(--wp--preset--color--ink-soft, #5b554c);
	--pe-line: var(--wp--preset--color--stone, #e4dcc9);
	--pe-museo: var(--wp--preset--color--terracotta, #a63d2f);
	--pe-museo-deep: var(--wp--preset--color--terracotta-deep, #7c2c21);
	--pe-biblio: var(--wp--preset--color--blue, #1f3a5f);
	--pe-polo: var(--wp--preset--color--gold-text, #6b4f26);
	--pe-focus: var(--wp--preset--color--blue, #1f3a5f);
}
.polo-eventi-blocco *, .polo-eventi-blocco *::before, .polo-eventi-blocco *::after { box-sizing: border-box; }
.polo-evento__body { min-width: 0; }
.polo-eventi-blocco .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.polo-eventi__filtri { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.polo-eventi__filtro {
	min-height: 40px; padding: 8px 18px;
	font: inherit; font-size: 14px; font-weight: 600;
	color: var(--pe-ink); background: transparent;
	border: 1px solid #8a8378; border-radius: 999px; cursor: pointer;
}
.polo-eventi__filtro:hover { border-color: var(--pe-ink); }
.polo-eventi__filtro[aria-pressed="true"] { color: #fff; background: var(--pe-ink); border-color: var(--pe-ink); }
.polo-eventi__filtro:focus-visible { outline: 3px solid var(--pe-focus); outline-offset: 2px; }

.polo-eventi__lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pe-line); }
.polo-evento {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 0 24px;
	margin: 0;
	padding: 22px 0;
	border-bottom: 1px solid var(--pe-line);
}
.polo-evento[hidden] { display: none; }

.polo-evento__data {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 84px; padding: 8px 4px;
	text-align: center;
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid var(--pe-line);
	border-top: 3px solid var(--pe-polo);
}
.polo-evento.is-museo .polo-evento__data { border-top-color: var(--pe-museo); }
.polo-evento.is-biblioteca .polo-evento__data { border-top-color: var(--pe-biblio); }
.polo-evento__giorno { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 32px; line-height: 1; font-weight: 500; }
.polo-evento__mese { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.polo-evento__dow,
.polo-evento__al { margin-top: 2px; font-size: 12px; color: var(--pe-soft); }

.polo-evento__body > * { margin: 0; }
.polo-evento__tags { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.polo-evento__dove { color: var(--pe-polo); }
.polo-evento.is-museo .polo-evento__dove { color: var(--pe-museo-deep); }
.polo-evento.is-biblioteca .polo-evento__dove { color: var(--pe-biblio); }
.polo-evento__live { padding: 2px 8px; border-radius: 999px; background: #e3f0e6; color: #1e4d2b; letter-spacing: .04em; }
.polo-evento__titolo { margin-top: 6px !important; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: clamp(19px, 2vw, 22px); font-weight: 500; line-height: 1.25; }
.polo-evento__quando { margin-top: 6px !important; font-size: 15px; color: var(--pe-soft); }
.polo-evento__quando time::first-letter { text-transform: uppercase; }
.polo-evento__desc { margin-top: 10px !important; max-width: 68ch; font-size: 16px; line-height: 1.55; }
.polo-evento__azione { margin-top: 14px !important; }
.polo-evento__btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 10px 18px;
	font-size: 15px; font-weight: 700; text-decoration: none;
	color: var(--pe-ink);
	border: 1px solid var(--pe-ink); border-radius: 2px;
	transition: background-color .15s, color .15s;
}
.polo-evento__btn:hover { background: var(--pe-ink); color: #fff; }
.polo-evento__btn:focus-visible { outline: 3px solid var(--pe-focus); outline-offset: 2px; }
.polo-evento__arrow { transition: transform .15s; }
.polo-evento__btn:hover .polo-evento__arrow { transform: translateX(3px); }

.polo-evento.is-passato { opacity: .78; }
.polo-evento.is-passato .polo-evento__data { border-top-color: var(--pe-line); }

.polo-eventi__vuoto { margin: 0; padding: 22px 24px; background: var(--wp--preset--color--surface, #faf9f6); border-left: 3px solid var(--pe-polo); }

.polo-eventi__passati { margin-top: 32px; }
.polo-eventi__passati summary {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px; padding: 8px 0;
	font-weight: 700; cursor: pointer; list-style: none;
}
.polo-eventi__passati summary::-webkit-details-marker { display: none; }
.polo-eventi__passati summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid #8a8378; border-radius: 50%; font-weight: 400; }
.polo-eventi__passati[open] summary::before { content: "−"; }
.polo-eventi__passati summary:focus-visible { outline: 3px solid var(--pe-focus); outline-offset: 2px; }
.polo-eventi__passati .polo-eventi__lista { margin-top: 12px; }

@media (max-width: 600px) {
	.polo-evento { grid-template-columns: 64px 1fr; gap: 0 14px; padding: 18px 0; }
	.polo-evento__data { min-height: 70px; }
	.polo-evento__giorno { font-size: 26px; }
	.polo-evento__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.polo-evento__btn, .polo-evento__arrow { transition: none; }
}
