/*
 * Tema Lyceum – stili che theme.json non copre.
 * I colori passano SEMPRE dalle variabili --wp--preset--color--*: così la modalità scura (scuro.css)
 * li sostituisce tutti in un colpo solo.
 */

/* ---------- Base ---------- */

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, .wp-block-post-title, .wp-block-query-title {
	text-wrap: balance;
	overflow-wrap: anywhere;
}

p, li, dd, figcaption {
	overflow-wrap: break-word;
}

/* Foto: in modalità scura vengono leggermente attenuate (variabile impostata in scuro.css). */
.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-gallery img,
.wp-block-cover img,
.wp-block-media-text img {
	filter: brightness(var(--lyceum-luminosita-foto, 1));
}

/* ---------- Accessibilità ---------- */

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	clip: auto;
	height: auto;
	width: auto;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--blu);
	color: var(--wp--preset--color--su-pulsante);
	border-radius: var(--wp--custom--radius--pill);
	font-weight: 600;
	text-decoration: none;
	z-index: 100000;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--corallo-profondo);
	outline-offset: 3px;
	border-radius: 4px;
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
.lyceum-selettore-tema:focus-visible {
	border-radius: var(--wp--custom--radius--pill);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ---------- Intestazione ---------- */

.lyceum-header {
	position: relative;
	z-index: 10;
}

.lyceum-header .wp-block-site-logo img {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

/* Sottotitolo: su due righe accanto allo stemma («Acireale» solo dove c'è spazio). */
.lyceum-header .lyceum-sottotitolo {
	margin: 0;
	max-width: 16.5rem;
	color: var(--wp--preset--color--testo-secondario);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	text-wrap: balance;
}

.lyceum-sottotitolo__luogo {
	white-space: nowrap;
}

.lyceum-header .wp-block-site-title {
	line-height: 1.1;
}

@media (max-width: 599px) {
	.lyceum-header .wp-block-site-logo img {
		width: 44px;
		height: 44px;
	}

	.lyceum-header .wp-block-site-title {
		font-size: clamp(1rem, 4.6vw, 1.25rem);
	}

	.lyceum-header .lyceum-sottotitolo {
		max-width: 12rem;
		font-size: 0.75rem;
		line-height: 1.25;
	}

	.lyceum-sottotitolo__luogo {
		display: none;
	}

	/* Sui telefoni il selettore chiaro/scuro sta nel menu, per lasciare spazio al nome della scuola. */
	.lyceum-header-nav > .lyceum-selettore-tema {
		display: none;
	}
}

/* Le voci del menu non vanno a capo al loro interno. */
.lyceum-header .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Menu: pulsante a panino fino a 1139px (WordPress lo mostrerebbe solo fino a 599px): sotto questa larghezza
   il menu completo non sta accanto allo stemma e al sottotitolo. */
.lyceum-header .wp-block-navigation__responsive-container-open,
.lyceum-header .wp-block-navigation__responsive-container-close {
	padding: 10px;
	border-radius: var(--wp--custom--radius--pill);
}

.lyceum-header .wp-block-navigation__responsive-container-open svg,
.lyceum-header .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

@media (min-width: 600px) and (max-width: 1139.98px) {
	.lyceum-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.lyceum-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* ---------- Menu su mobile (parte di template «menu-mobile», aperta dal pulsante a panino) ---------- */

.lyceum-menu-mobile {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	padding: var(--wp--preset--spacing--30) clamp(1rem, 4vw, 2.5rem) var(--wp--preset--spacing--50);
}

.lyceum-menu-mobile > * {
	margin-block: 0;
}

.lyceum-menu-mobile__barra .wp-block-site-logo img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.lyceum-menu-mobile__barra .wp-block-site-title {
	font-size: clamp(1.0625rem, 4.6vw, 1.25rem);
	white-space: nowrap;
}

/* Il pulsante di chiusura viene prima nel codice (riceve il focus all'apertura) ma si vede a destra. */
.lyceum-menu-mobile__azioni {
	flex-direction: row-reverse;
}

.lyceum-menu-mobile .wp-block-navigation-overlay-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--testo);
	cursor: pointer;
}

.lyceum-menu-mobile .wp-block-navigation-overlay-close:hover {
	background: var(--wp--preset--color--azzurro);
}

.lyceum-menu-mobile .wp-block-navigation-overlay-close svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

/* Voci: a tutta larghezza, allineate a sinistra, separate da una linea sottile. */
.lyceum-menu-mobile__voci,
.lyceum-menu-mobile__voci .wp-block-navigation__container {
	width: 100%;
	align-items: stretch;
	gap: 0;
}

.lyceum-menu-mobile__voci .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--linee);
}

.lyceum-menu-mobile__voci .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.8rem 0;
	color: var(--wp--preset--color--blu);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: normal;
}

.lyceum-menu-mobile__voci .wp-block-navigation-item__content:focus-visible {
	outline-offset: -2px;
}

/* Iscrizioni: pillola a tutta larghezza, staccata dalle altre voci. */
.lyceum-menu-mobile__voci .wp-block-navigation-item.is-style-pulsante {
	border-bottom: 0;
	padding-top: var(--wp--preset--spacing--40);
}

.lyceum-menu-mobile__voci .wp-block-navigation-item.is-style-pulsante > .wp-block-navigation-item__content {
	display: flex;
	justify-content: center;
	min-height: 52px;
	padding: 0 1.5rem;
	color: var(--wp--preset--color--su-pulsante);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1.125rem;
	font-weight: 600;
}

.lyceum-menu-mobile__voci .wp-block-navigation-item.is-style-pulsante > .wp-block-navigation-item__content:focus-visible {
	outline-offset: 3px;
}

/* Recapiti della segreteria in fondo al pannello. */
.lyceum-menu-mobile__contatti {
	margin-top: auto !important;
	color: var(--wp--preset--color--testo-secondario);
	font-size: var(--wp--preset--font-size--small);
}

.lyceum-menu-mobile__contatti p {
	margin: 0;
}

.lyceum-menu-mobile__contatti .lyceum-etichetta {
	color: var(--wp--preset--color--blu);
	margin-bottom: 0.25rem;
}

.lyceum-menu-mobile__contatti a {
	color: var(--wp--preset--color--blu);
}

/* Voce di menu «Pulsante» (Iscrizioni): pillola corallo. */
.wp-block-navigation-item.is-style-pulsante > .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.375rem;
	background: var(--wp--preset--color--corallo-profondo);
	color: var(--wp--preset--color--su-pulsante);
	border-radius: var(--wp--custom--radius--pill);
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.wp-block-navigation-item.is-style-pulsante > .wp-block-navigation-item__content:hover,
.wp-block-navigation-item.is-style-pulsante > .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--su-pulsante);
	text-decoration: none;
	filter: brightness(0.92);
}

/* Voce di menu corrente: sottolineatura in corallo. */
.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content:not(:hover) {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--corallo);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.wp-block-navigation-item.is-style-pulsante.current-menu-item > .wp-block-navigation-item__content {
	text-decoration: none;
}

/* ---------- Mappa della scuola (blocco «Mappa della scuola», dati © OpenStreetMap) ---------- */

.lyceum-mappa {
	margin: 0;
}

.lyceum-mappa__link {
	display: block;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--linee);
	border-radius: var(--wp--custom--radius--l);
	text-decoration: none;
}

.lyceum-mappa__link:focus-visible {
	outline-offset: 4px;
	border-radius: var(--wp--custom--radius--l);
}

.lyceum-mappa__svg {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 15 / 8;
}

@media (max-width: 599px) {
	.lyceum-mappa__svg {
		aspect-ratio: 4 / 5;
	}

	.lyceum-mappa__svg .m-laterale {
		display: none;
	}

	/* Sul telefono la mappa è rimpicciolita: testi un po' più grandi. */
	.lyceum-mappa .m-via { font-size: 19px; }
	.lyceum-mappa .m-nome { font-size: 29px; }
	.lyceum-mappa .m-nota { font-size: 19px; }
}

.lyceum-mappa__credito {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--testo-secondario);
	font-size: 0.8125rem;
	text-align: right;
}

.lyceum-mappa__credito a {
	color: inherit;
}

.lyceum-mappa .m-terra { fill: var(--wp--preset--color--base); }
.lyceum-mappa .m-parco { fill: color-mix(in srgb, var(--wp--preset--color--ocra) 22%, var(--wp--preset--color--base)); }
.lyceum-mappa .m-ferrovia { fill: none; stroke: var(--wp--preset--color--testo-secondario); stroke-width: 3; stroke-dasharray: 10 8; opacity: 0.55; }
.lyceum-mappa .m-sentiero { fill: none; stroke: var(--wp--preset--color--testo-secondario); stroke-width: 2; stroke-dasharray: 4 5; opacity: 0.45; }
.lyceum-mappa .m-bordo,
.lyceum-mappa .m-strada { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lyceum-mappa .m-bordo { stroke: var(--wp--preset--color--linee); }
.lyceum-mappa .m-strada { stroke: var(--wp--preset--color--superficie); }
.lyceum-mappa .m-bordo.m-p { stroke-width: 22; }
.lyceum-mappa .m-strada.m-p { stroke-width: 18; }
.lyceum-mappa .m-bordo.m-t { stroke-width: 22; }
.lyceum-mappa .m-strada.m-t { stroke-width: 18; }
.lyceum-mappa .m-bordo.m-r { stroke-width: 16; }
.lyceum-mappa .m-strada.m-r { stroke-width: 12.5; }
.lyceum-mappa .m-bordo.m-pe { stroke-width: 13; }
.lyceum-mappa .m-strada.m-pe { stroke-width: 10; stroke: color-mix(in srgb, var(--wp--preset--color--superficie) 55%, var(--wp--preset--color--base)); }
.lyceum-mappa .m-bordo.m-s { stroke-width: 9; }
.lyceum-mappa .m-strada.m-s { stroke-width: 6.5; }
.lyceum-mappa text { font-family: var(--wp--preset--font-family--dm-sans); paint-order: stroke; stroke: var(--wp--preset--color--base); stroke-linejoin: round; }
.lyceum-mappa .m-via { fill: var(--wp--preset--color--testo-secondario); font-size: 16px; font-weight: 500; stroke-width: 5px; letter-spacing: 0.01em; }
.lyceum-mappa .m-via-principale { fill: var(--wp--preset--color--testo); font-weight: 600; }
.lyceum-mappa .m-parco-nome { fill: var(--wp--preset--color--testo-secondario); font-size: 16px; font-style: italic; stroke-width: 5px; }
.lyceum-mappa .m-scuola { fill: var(--wp--preset--color--corallo-profondo); stroke: var(--wp--preset--color--superficie); stroke-width: 3; }
.lyceum-mappa .m-scuola-centro { fill: var(--wp--preset--color--superficie); }
.lyceum-mappa .m-nome { fill: var(--wp--preset--color--blu); font-family: var(--wp--preset--font-family--fraunces); font-size: 26px; font-weight: 600; stroke-width: 7px; }
.lyceum-mappa .m-ingresso { fill: var(--wp--preset--color--ocra); stroke: var(--wp--preset--color--superficie); stroke-width: 3; }
.lyceum-mappa .m-ingresso-p { fill: var(--wp--preset--color--blu-profondo); font-size: 19px; font-weight: 700; stroke: none; }
.lyceum-mappa .m-nota { fill: var(--wp--preset--color--testo); font-size: 17px; font-weight: 600; stroke-width: 6px; }

/* ---------- Selettore chiaro/scuro ---------- */

.lyceum-selettore-tema {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--linee);
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--blu);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lyceum-selettore-tema:hover {
	background: var(--wp--preset--color--azzurro);
	border-color: var(--wp--preset--color--azzurro);
}

.lyceum-selettore-tema__luna {
	display: var(--lyceum-mostra-luna, inline-block);
}

.lyceum-selettore-tema__sole {
	display: var(--lyceum-mostra-sole, none);
}

/* Senza JavaScript il pulsante non può funzionare: resta nascosto (lo script in testa aggiunge .lyceum-js). */
html:not(.lyceum-js):not(.block-editor-iframe__html) .lyceum-selettore-tema {
	display: none;
}

/* ---------- Pulsanti ---------- */

.wp-block-button__link,
.wp-element-button {
	transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wp-block-button__link:hover,
.wp-block-file .wp-block-file__button:hover {
	filter: brightness(0.92);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	filter: none;
	background: var(--wp--preset--color--azzurro);
	color: var(--wp--preset--color--blu);
}

/* Pulsante con freccia: il testo che finisce con «→» viene staccato un po' dalla freccia. */
.wp-block-button__link {
	word-spacing: 0.02em;
}

/* Chip con icona di download (scorciatoie ai documenti). */
.wp-block-button.is-style-chip .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 1.125rem;
	background: var(--wp--preset--color--superficie);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--linee);
	color: var(--wp--preset--color--blu);
	font-size: 0.9375rem;
	font-weight: 600;
	text-align: left;
}

/* Su una scheda bianca il chip diventa avorio, come nel riquadro «Avvisi per le famiglie». */
:is(.has-superficie-background-color, .is-style-scheda, .lyceum-scheda) .wp-block-button.is-style-chip .wp-block-button__link {
	background: var(--wp--preset--color--base);
	box-shadow: none;
}

.wp-block-button.is-style-chip .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-button.is-style-chip .wp-block-button__link:hover {
	filter: none;
	background: var(--wp--preset--color--azzurro);
}

/* Blocco File: il pulsante «Scarica» segue lo stile dei pulsanti. */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--superficie);
	border-radius: var(--wp--custom--radius--s);
}

.wp-block-file a:first-child {
	font-weight: 600;
}

.wp-block-file .wp-block-file__button {
	margin-left: auto;
	padding: 0.55rem 1.125rem;
	font-size: 0.9375rem;
}

/* ---------- Titoli ---------- */

/* Stile «Parola in corsivo sottolineata»: la parte in corsivo perde il corsivo e riceve il tratto a mano in corallo. */
.is-style-sottolineato em,
.is-style-sottolineato i {
	font-style: normal;
	background-image: var(--wp--custom--sottolineatura);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 0.22em;
	padding-bottom: 0.1em;
}

/* Titoli dentro il testo delle pagine: più aria sopra e un gradino più piccoli dei titoli di sezione della home. */
:is(.wp-block-post-content, .is-root-container) > h2:not(:first-child, .lyceum-etichetta + h2),
:is(.wp-block-post-content, .is-root-container) .is-layout-constrained > h2:not(:first-child, .lyceum-etichetta + h2) {
	margin-block-start: var(--wp--preset--spacing--60);
}

:is(.wp-block-post-content, .is-root-container) > h3:not(:first-child),
:is(.wp-block-post-content, .is-root-container) .is-layout-constrained > h3:not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--50);
}

:is(.wp-block-post-content, .is-root-container) > :is(h2, h3) + *,
:is(.wp-block-post-content, .is-root-container) .is-layout-constrained > :is(h2, h3) + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

:is(.wp-block-post-content, .is-root-container) > h2.wp-block-heading:not([class*="-font-size"]),
:is(.wp-block-post-content, .is-root-container) .is-layout-constrained > h2.wp-block-heading:not([class*="-font-size"]) {
	font-size: var(--wp--preset--font-size--x-large);
}

:is(.wp-block-post-content, .is-root-container) > h3.wp-block-heading:not([class*="-font-size"]),
:is(.wp-block-post-content, .is-root-container) .is-layout-constrained > h3.wp-block-heading:not([class*="-font-size"]) {
	font-size: 1.5rem;
}

/* Etichetta in maiuscoletto sopra un titolo (usata nei pattern). */
.lyceum-etichetta {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---------- Motivi: bollino ocra e foto con bollino ---------- */

.lyceum-foto-bollino {
	position: relative;
	padding: 0 0 24px 24px;
}

.lyceum-foto-bollino > .wp-block-image {
	margin: 0;
}

.lyceum-bollino {
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 132px;
	height: 132px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ocra);
	color: var(--wp--preset--color--blu-profondo);
	text-align: center;
	line-height: 1.1;
	box-shadow: var(--wp--preset--shadow--morbida);
}

.lyceum-bollino > * {
	margin: 0;
	color: inherit;
}

.lyceum-bollino__sopra {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding-bottom: 4px;
}

.lyceum-bollino__cifra {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 2.25rem;
	font-weight: 500;
	line-height: 1;
}

@media (max-width: 599px) {
	.lyceum-foto-bollino {
		padding: 0 0 18px 18px;
	}

	.lyceum-bollino {
		width: 104px;
		height: 104px;
	}

	.lyceum-bollino__cifra {
		font-size: 1.75rem;
	}
}

/* ---------- Schede ---------- */

/* Scheda con foto a filo: la foto perde gli angoli propri e viene ritagliata dalla scheda. */
.lyceum-scheda {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--superficie);
}

.lyceum-scheda > .wp-block-image,
.lyceum-scheda > .wp-block-image img,
.lyceum-scheda > .wp-block-post-featured-image,
.lyceum-scheda > .wp-block-post-featured-image img {
	border-radius: 0;
	margin: 0;
}

.lyceum-scheda .wp-block-image img,
.lyceum-scheda .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

/* Scheda interamente cliccabile quando contiene un solo link in evidenza (.lyceum-link-scheda). */
.lyceum-scheda {
	position: relative;
}

.lyceum-scheda .lyceum-link-scheda a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* News senza immagine: riquadro azzurro con lo stemma (vedi functions.php). */
.lyceum-immagine-segnaposto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 0 var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--azzurro);
	border-radius: var(--wp--custom--radius--m);
}

.lyceum-immagine-segnaposto__stemma {
	width: 26%;
	height: auto;
	opacity: 0.9;
}

/* Riquadro Open Day nella pagina Iscrizioni: scheda bianca leggermente sollevata. */
.lyceum-open-day {
	box-shadow: var(--wp--preset--shadow--morbida);
}

/* Link «→» nel piè di pagina. */
.lyceum-footer .lyceum-footer-link a {
	font-weight: 600;
}

/* Link con freccia (testo in corallo profondo, senza sottolineatura). */
.lyceum-link-freccia a,
a.lyceum-link-freccia {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	min-height: 44px;
	color: var(--wp--preset--color--corallo-profondo);
	font-weight: 600;
	text-decoration: none;
}

.lyceum-link-freccia a:hover,
a.lyceum-link-freccia:hover {
	text-decoration: underline;
}

/* ---------- Elenchi di contenuti (news, avvisi, documenti) ---------- */

.wp-block-post-template,
.wp-block-query .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Avvisi compatti: data in corallo e titolo, separati da linee sottili. */
.lyceum-avvisi .wp-block-post-template > li {
	border-top: 1px solid var(--wp--preset--color--linee);
	padding: 0.85rem 0;
}

.lyceum-avvisi .wp-block-post-template > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--linee);
}

.lyceum-avvisi .wp-block-post-date {
	flex: none;
	width: 4rem;
	padding-top: 0.3rem;
	font-weight: 700;
}

.lyceum-avvisi .wp-block-post-title {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	color: var(--wp--preset--color--testo);
}

.lyceum-avvisi .wp-block-post-title a {
	color: var(--wp--preset--color--testo);
}

/* Bacheca: ogni avviso con data, titolo e testo. */
.lyceum-bacheca .wp-block-post-template > li {
	padding: var(--wp--preset--spacing--50) 0;
	border-top: 1px solid var(--wp--preset--color--linee);
}

.lyceum-bacheca .wp-block-post-template > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--linee);
}

.lyceum-bacheca .wp-block-post-content > :first-child {
	margin-top: 0;
}

.lyceum-bacheca .wp-block-post-content > :last-child {
	margin-bottom: 0;
}

/* Elenco dei documenti (Download). */
.lyceum-documenti .wp-block-post-template > li {
	padding: var(--wp--preset--spacing--40) 0;
	border-top: 1px solid var(--wp--preset--color--linee);
}

.lyceum-documenti .wp-block-post-template > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--linee);
}

/* Schede delle news in griglia: titolo in Fraunces, estratto in grigio. */
.lyceum-news .wp-block-post-title {
	font-size: 1.5rem;
	line-height: 1.2;
}

.lyceum-news .wp-block-post-excerpt__more-link {
	font-weight: 600;
	color: var(--wp--preset--color--corallo-profondo);
	text-decoration: none;
}

.lyceum-news .wp-block-post-excerpt__more-link:hover {
	text-decoration: underline;
}

/* Paginazione. */
.wp-block-query-pagination {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--linee);
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0 0.5rem;
	border-radius: var(--wp--custom--radius--pill);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--blu);
	color: var(--wp--preset--color--su-pulsante);
}

/* ---------- Contenuti delle pagine ---------- */

.wp-block-gallery .wp-block-image img,
.wp-block-gallery.has-nested-images figure.wp-block-image img {
	border-radius: var(--wp--custom--radius--s);
}

/* Gallerie di foto (Chi siamo, Photogallery): riquadri tutti uguali in 4:3, anche con foto verticali. */
.lyceum-galleria.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	aspect-ratio: 4 / 3;
	height: auto;
}

.lyceum-galleria.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	padding-bottom: 0.6rem;
}

.wp-block-image figcaption {
	margin-top: 0.5rem;
	text-align: left;
}

.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table th {
	background: var(--wp--preset--color--azzurro);
	color: var(--wp--preset--color--blu);
	font-weight: 600;
	text-align: left;
}

.wp-block-table td,
.wp-block-table th {
	padding: 0.6rem 0.9rem;
	border-color: var(--wp--preset--color--linee);
}

.wp-block-separator {
	opacity: 1;
}

hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 100%;
}

/* Elenchi puntati: puntino in ocra. */
.entry-content ul:not([class]) li::marker,
.wp-block-list:not([class]) li::marker,
ul.wp-block-list > li::marker {
	color: var(--wp--preset--color--corallo-profondo);
}

ol.wp-block-list > li::marker {
	color: var(--wp--preset--color--corallo-profondo);
	font-weight: 600;
}

/* Moduli (per una futura pagina Contatti). */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
	font: inherit;
	color: var(--wp--preset--color--testo);
	background: var(--wp--preset--color--superficie);
	border: 1px solid var(--wp--preset--color--linee);
	border-radius: var(--wp--custom--radius--s);
	padding: 0.7rem 1rem;
	max-width: 100%;
}

/* ---------- Piè di pagina ---------- */

.lyceum-footer {
	font-size: 0.96875rem;
}

.lyceum-footer h2,
.lyceum-footer h3 {
	color: var(--wp--preset--color--su-blu);
}

.lyceum-footer a {
	color: var(--wp--preset--color--su-blu);
	text-decoration: none;
}

.lyceum-footer a:hover,
.lyceum-footer a:focus {
	color: var(--wp--preset--color--su-blu);
	text-decoration: underline;
}

.lyceum-footer .wp-block-site-logo img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.lyceum-footer .wp-block-site-title,
.lyceum-footer .wp-block-site-title a {
	color: var(--wp--preset--color--su-blu);
	font-size: 1.375rem;
}

.lyceum-footer .lyceum-footer-titolo {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
}

.lyceum-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lyceum-footer .lyceum-footer-colophon {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.84375rem;
	color: var(--wp--preset--color--su-blu-tenue);
}

/* ---------- Stampa ---------- */

@media print {
	.lyceum-selettore-tema,
	.wp-block-navigation,
	.skip-link {
		display: none !important;
	}
}
