/* Modello unico per gli articoli, indipendente dagli stili HTML di WordPress.
   Il titolo H1 e la struttura del post stanno in ContentPage.astro; il corpo
   e' preparato da pulisciArticolo() in src/data/site/articoli.ts. */
.single-post .fx-ph-t-d .fx-ph-sc { padding-top: 26px; padding-bottom: 46px; }
.single-post .fx-ph-sc { max-width: 920px; }
.single-post .fx-ph-t { font-size: clamp(32px, 4vw, 46px); line-height: 1.2; font-weight: 600; }
.single-post .fx-mc { max-width: 920px; margin-inline: auto; }
.single-post .fx-mc-w_i.article-body { padding-top: 24px; padding-bottom: 24px; color: #56595c; font-size: 16px; line-height: 1.7; }
.single-post .article-body > * { margin-top: 0; }
.single-post .article-body > * + * { margin-top: 1.35em; }
.single-post .article-body :is(h2, h3, h4, h5, h6) {
  clear: both; color: #292b2d; font-weight: 600; letter-spacing: normal;
  line-height: 1.3; text-align: left;
}
.single-post .article-body :is(h2, h3, h4, h5, h6) + * { margin-top: .7em; }
.single-post .article-body h2 { font-size: clamp(25px, 3vw, 30px); }
.single-post .article-body h3 { font-size: clamp(21px, 2.6vw, 24px); }
.single-post .article-body h4 { font-size: 20px; }
.single-post .article-body :is(h5, h6) { font-size: 17px; text-transform: none; }
.single-post .article-body :is(h2, h3, h4, h5, h6):not(:first-child) { margin-top: 1.75em; }
.single-post .article-body h2::after {
  content: ''; display: block; width: 42px; height: 2px; margin-top: 10px;
  border-radius: 2px; background: #94212c;
}
.single-post .article-body .article-lead { font-size: 18px; font-weight: 500; line-height: 1.55; }
.single-post .article-body .article-notice {
  border-left: 4px solid #94212c; border-radius: 4px;
  background: #f8f3f3; padding: 18px 22px;
}
.single-post .article-body .article-notice p { margin: 0; }
.single-post .article-body .article-notice p + p { margin-top: 8px; }
.single-post .article-body .article-notice strong { color: #292b2d; }
.single-post .article-body a { color: #94212c; text-decoration: underline; text-underline-offset: 3px; }
.single-post .article-body a:not(:has(> img)) { display: inline; }
.single-post .article-body p > a:has(> img) { display: block; width: 100%; }
.single-post .article-body img { display: block; max-width: 100%; height: auto; margin: 24px auto; }
.single-post .article-body > .articolo-foto { width: auto; max-width: 100%; margin: 0 auto 30px; }
.single-post .article-body :is(ul, ol) { padding-left: 22px; list-style-position: outside; }
.single-post .article-body :is(ul, ol) li { margin-block: 6px; }
.single-post .article-body blockquote { border-left: 3px solid #94212c; padding-left: 20px; font-style: italic; }
.single-post .article-body :is(iframe, table) { max-width: 100%; }
.single-post .article-body figure { margin-inline: 0; }
.single-post .article-body figure img { margin: 0 auto; border-radius: 6px; }
.single-post .article-body figcaption { margin-top: 8px; font-size: 14px; font-style: italic; line-height: 1.5; }
.single-post .article-body .articolo-riepilogo { width: 100%; border-collapse: collapse; }
.single-post .article-body .articolo-riepilogo :is(th, td) { padding: 10px 8px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
.single-post .article-body .articolo-riepilogo th { width: 34%; color: #94212c; font-weight: 600; }
.single-post .article-body .articolo-prenota { text-align: center; }
.single-post .article-body .articolo-prenota a {
  display: inline-block; padding: 16px 28px; border-radius: 6px; background: #94212c;
  color: #fff; font-size: 19px; font-weight: 600; text-decoration: none;
}
.single-post .article-body .articolo-prenota a:hover { background: #7a1b24; }
.single-post .article-related { padding-top: 0; padding-bottom: 24px; }
.single-post .article-context-links { margin-top: 20px; padding-top: 24px; border-top: 1px solid #e3e3e3; }
.single-post .article-context-links h2 { margin: 0 0 8px; font-size: 22px; }
.single-post .article-context-links p { margin: 0 0 10px; }
.single-post .article-context-links ul { margin: 0; padding-left: 22px; list-style-position: outside; }
.single-post .article-context-links li + li { margin-top: 4px; }
.single-post .article-context-links a { display: inline; color: #94212c; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .single-post .fx-ph-t-d .fx-ph-sc { padding-top: 18px; padding-bottom: 32px; }
  .single-post .fx-ph-sc { padding-inline: 20px; }
  .single-post .fx-mc-w_i.article-body { padding: 18px 20px 24px; }
  .single-post .article-body .article-lead { font-size: 17px; }
}
