/* Blocchi delle pagine generati dal gestionale (nuovo editor) */
.cms-immagine { margin: 1.5rem 0; }
.cms-immagine figcaption, .cms-mappa figcaption, .cms-galleria figcaption, .cms-video figcaption { color: #5c6f82; font-size: .875rem; margin-top: .35rem; }
.cms-documento small { color: #5c6f82; }
.cms-link { margin-bottom: 1rem; }
.cms-link a { font-weight: 600; }
.cms-link small { color: #5c6f82; display: inline-block; margin-top: .15rem; }
.cms-mappa { margin: 1.5rem 0; }
.cms-mappa-area { width: 100%; min-height: 200px; border-radius: 6px; background: #eef1f4; display: flex; align-items: center; justify-content: center; z-index: 0; }
.cms-mappa-area.leaflet-container { display: block; }
.cms-mappa-errore { color: #a61919; font-size: .875rem; margin: .5rem 0 0; }
.cms-galleria { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.5rem 0; }
.cms-galleria-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cms-galleria-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cms-galleria figure { margin: 0; }
.cms-galleria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.cms-galleria a:focus-visible img { outline: 3px solid #0066cc; outline-offset: 2px; }
aside .cms-galleria, .cmp-navscroll .cms-galleria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
aside .cms-immagine img { width: 100%; }
@media (max-width: 575px) {
    .cms-galleria-3, .cms-galleria-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
