/* Base: utilities, typography, core blocks. Loaded on every page. */

/* Utilities (used as "Additional CSS class" in the block editor). */
.nascondi {
	display: none !important;
}

ul.nolist {
	padding-left: 0;
	list-style-type: none;
}

/* Keyboard focus: visible ring on links, buttons and fields (mouse clicks unaffected). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--mspr-grigio);
	outline-offset: 3px;
}

/* News card titles (home Query Loop, news archives): tighter tracking than the 4px heading default. */
.wp-block-query .wp-block-post-title,
.entry-card .entry-title {
	--theme-letter-spacing: 0.06em;
	letter-spacing: 0.06em;
}

/* Headings */
.entry-content h2 {
	margin-bottom: 2rem;
}

#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6 {
	line-height: 120% !important;
}

.caps,
.site-main h1,
.site-main h2,
.site-main h3 {
	text-transform: uppercase;
}

h3 {
	margin-top: 0 !important;
	font-size: 1.25rem;
	text-transform: initial !important;
}

.entry-content h4 {
	font-size: 1.25rem;
}

hr {
	background: var(--mspr-grigio);
}

/* Pullquote: centred, no decorative quote mark. */
.wp-block-pullquote::after {
	opacity: initial;
}

figure.wp-block-pullquote p {
	text-align: center;
}

.wp-block-pullquote blockquote::before {
	display: none;
}

/* Buttons */
div:not(.is-style-outline) > .wp-block-button__link:hover {
	background-color: var(--theme-button-background-initial-color);
}

@media (max-width: 900px) {
	.wp-block-buttons.is-content-justification-center,
	.wp-block-button.has-custom-width.wp-block-button__width-25 {
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		margin: 0.25rem 0;
	}
}

/*
 * FIXME (audit 2026-11-27): this bare `article` rule still gives the mobile home page
 * 160px padding (Blocksy overrides it elsewhere), squeezing the newsletter form.
 * Kept verbatim in the move from Customizer CSS; fix as a separate, visible change.
 */
article {
	padding: 10rem;
	border: 0 solid;
	border-top: none;
	border-bottom: none;
	border-color: var(--cat-trattamenti);
	margin: 0 auto !important;
}

/* Spaced uppercase section headings on phones: the 4 px tracking made short titles wrap
   ("PULIZIA VISO – METODO / MEDISPA") and read as separate letters. */
@media (max-width: 689.98px) {
	.entry-content h2.wp-block-heading {
		--theme-letter-spacing: 0.12em;
		letter-spacing: 0.12em;
	}
}
