/**
 * Stili del testo degli articoli. Valgono sul sito (.ms-prose), nell'editor a
 * blocchi (.editor-styles-wrapper) e nell'editor classico (.mce-content-body).
 * :where() tiene a zero la specificità, così i componenti la sovrascrivono.
 */

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) {
	min-width: 0;
	color: var(--ms-body-text);
	line-height: 1.85;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) :where(h2, h3, h4) {
	margin: 40px 0 18px;
	color: var(--ms-primary);
	line-height: 1.3;
	letter-spacing: -.6px;
	font-weight: 550;
	scroll-margin-top: calc(var(--ms-header-h) + 22px);
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) h2 {
	font-size: 30px;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) h3 {
	font-size: 25px;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) h4 {
	font-size: 20px;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) p {
	margin: 0 0 22px;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) :where(ul, ol) {
	margin: 0 0 22px;
	padding-left: 25px;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) li {
	margin-bottom: 13px;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) strong {
	color: var(--ms-body-strong);
	font-weight: 650;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) a {
	color: var(--ms-primary-hover);
	text-decoration: underline;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) :where(p, figure, a) > img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 25px auto;
	border: 1px solid var(--ms-line);
	border-radius: 10px;
	background: var(--ms-white);
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) table {
	min-width: 540px;
	border-collapse: collapse;
	font-size: 14px;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) :where(td, th) {
	padding: 15px;
	border: 1px solid var(--ms-line);
	text-align: left;
	vertical-align: top;
}

.ms-table-scroll {
	margin: 25px 0;
	overflow-x: auto;
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) blockquote {
	margin: 25px 0;
	padding: 15px 25px;
	border-left: 3px solid var(--ms-accent);
	background: var(--ms-white);
}

:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) hr {
	margin: 40px 0;
	border: 0;
	border-top: 1px solid var(--ms-line);
}

/* Blocco Dettagli come FAQ espandibile. */

:where(.ms-prose, .editor-styles-wrapper) details {
	margin-bottom: 14px;
	padding: 20px;
	border: 1px solid var(--ms-line);
	border-radius: 9px;
	background: var(--ms-white);
	font-size: 16px;
}

:where(.ms-prose, .editor-styles-wrapper) summary {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	color: var(--ms-primary);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
}

:where(.ms-prose, .editor-styles-wrapper) summary::-webkit-details-marker {
	display: none;
}

:where(.ms-prose, .editor-styles-wrapper) summary::after {
	content: "+";
	flex: none;
	font-size: 22px;
	line-height: 1.1;
	transition: transform .23s ease;
}

:where(.ms-prose, .editor-styles-wrapper) details[open] > summary::after {
	transform: rotate(45deg);
}

:where(.ms-prose, .editor-styles-wrapper) details > :not(summary) {
	margin: 17px 0 0;
	font-size: 16px;
	animation: ms-fade-down .25s ease both;
}

/* Nota (nota di disponibilità e stile "Nota" dei paragrafi, valido in qualsiasi pagina). */

.ms-note,
.is-style-ms-note {
	padding: 18px 22px;
	border-left: 3px solid var(--ms-accent);
	border-radius: 0 8px 8px 0;
	background: var(--ms-tint);
	font-size: 14px;
	line-height: 1.7;
}

@media (max-width: 720px) {
	:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) h2 {
		font-size: 27px;
	}

	:where(.ms-prose, .editor-styles-wrapper, .mce-content-body) h3 {
		font-size: 23px;
	}
}
