/* Shell "template unificato" (mc-unified-template / mc-template-landing-shell),
   usata dalla maggior parte delle pagine dei contenuti (Istituzionale,
   Iscritti, Normativa, Convenzioni, mappa del sito, pulsanti ORDINI...).
   In precedenza mc_unified_template_css() la ristampava come <style>
   inline a ogni esecuzione di shortcode. */
                :root{--ordini-content-max:1140px;--ordini-top-space:30px;--ordini-bottom-space:56px;--ordini-gutter:20px;--ordini-mobile-top-space:24px;--ordini-mobile-bottom-space:40px;--ordini-mobile-gutter:16px}
                .mc-unified-template,.mc-template-landing-shell{box-sizing:border-box!important;width:100%!important;max-width:var(--ordini-content-max)!important;margin:0 auto!important;padding:var(--ordini-top-space) var(--ordini-gutter) var(--ordini-bottom-space)!important}
                .mc-template-landing-shell > .mc-admin-page,.mc-template-landing-shell > .mc-section-page,.mc-template-landing-shell > .mc-topics-landing,.mc-template-landing-shell > .mc-topic-page,.mc-template-landing-shell > .mc-service-category-page,.mc-template-landing-shell > .mc-offices-page,.mc-template-landing-shell > .mc-areas-page,.mc-template-landing-shell > .mc-personnel-page,.mc-template-landing-shell > .mc-places-index,.mc-template-landing-shell > .mc-events-index{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
                .mc-unified-template__header{margin:0 0 34px}.mc-unified-template__header h1{margin:0 0 12px;color:var(--mc-color-text);font-size:clamp(2rem,4vw,3rem);line-height:1.1}.mc-service-status{margin:18px 0 0}.mc-service-status__badge{display:inline-flex;align-items:center;min-height:34px;padding:6px 20px;border-radius:999px;background:var(--mc-color-primary);color:var(--mc-color-surface);font-size:1rem;font-weight:400;line-height:1.2}.mc-unified-template__lead{margin:0;width:100%;max-width:none;color:var(--mc-color-text);font-size:1.15rem;line-height:1.55}
                .mc-unified-template__header--service{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,360px);column-gap:48px;row-gap:26px;align-items:start}.mc-service-header__left{min-width:0}.mc-service-header__right{display:flex;justify-content:flex-end;align-items:flex-start;min-width:0;padding-top:2px}.mc-service-header__lead{grid-column:1 / -1}.mc-unified-template__header--service .mc-service-badges--breadcrumb{margin:0!important}
                .mc-unified-template .mc-breadcrumb-row,.mc-unified-template .mc-landing-breadcrumb-row,.mc-template-landing-shell .mc-breadcrumb-row,.mc-template-landing-shell .mc-landing-breadcrumb-row{margin-top:0!important;margin-bottom:22px!important}
                /* The plugin shell owns spacing; Elementor shortcode hosts must not add a second inset. */
                .elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode > :is(.mc-unified-template--page,.mc-template-landing-shell)),
                .elementor-widget-container:has(> .elementor-shortcode > :is(.mc-unified-template--page,.mc-template-landing-shell)),
                .elementor-column-wrap:has(> .elementor-widget-wrap > .elementor-widget-shortcode > .elementor-widget-container > .elementor-shortcode > :is(.mc-unified-template--page,.mc-template-landing-shell)),
                .elementor-widget-wrap:has(> .elementor-widget-shortcode > .elementor-widget-container > .elementor-shortcode > :is(.mc-unified-template--page,.mc-template-landing-shell)){
                    padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important
                }
                .mc-unified-template--page > .mc-breadcrumb-row,
                .mc-template-landing-shell .mc-landing-breadcrumb-row{
                    display:flex!important;align-items:flex-start!important;gap:20px!important;padding:0!important;margin:0 0 22px!important
                }
                .mc-unified-template--page > .mc-unified-template__header,
                .mc-template-landing-shell .mc-section-page > header{
                    margin-top:0!important;padding-top:0!important
                }
                .mc-unified-template--page > .mc-unified-template__header > h1,
                .mc-template-landing-shell .mc-section-page > header > h1{margin-top:0!important}
                @media(max-width:767px){
                    .mc-unified-template--page .mc-breadcrumb-share{margin-top:0!important}
                }
                .mc-template-page-content{color:var(--mc-color-text)}.mc-template-page-content > :first-child{margin-top:0!important}

                /* Mappa del sito: layout e liste. Lo stile vive nel template,
                 * non dentro lo shortcode, per evitare che the_content/Elementor
                 * trasformino il CSS in testo visibile. */
                .mc-sitemap-page{width:100%}
                .mc-sitemap-page__tools{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
                .mc-sitemap ul{margin:0;padding:0;list-style:none}
                .mc-sitemap__branch-list>li{padding:0 0 10px;margin:0 0 10px;border-bottom:1px solid var(--mc-color-surface-muted)}
                .mc-sitemap__branch-list>li:last-child{margin-bottom:0;border-bottom:0}
                .mc-sitemap details>ul,.mc-sitemap li>ul{margin-top:6px;padding-left:22px;border-left:2px solid var(--mc-color-surface-muted)}
                .mc-sitemap summary,.mc-sitemap a{display:block;padding:7px 4px;line-height:1.45}
                .mc-sitemap summary{color:var(--mc-color-text);font-weight:700;cursor:pointer}
                .mc-sitemap a{color:var(--mc-color-text)!important;text-decoration:underline;text-underline-offset:3px}
                .mc-sitemap a:hover,.mc-sitemap a:focus{text-decoration-thickness:2px}
                .mc-sitemap summary::marker{color:var(--mc-color-primary)}
                .mc-sitemap a:focus-visible,.mc-sitemap summary:focus-visible,.mc-sitemap button:focus-visible{outline:3px solid var(--mc-color-accent);outline-offset:3px}

                /*
                 * Pulsanti ORDINI anche nelle Pagine standard/Schede.
                 * mc_institutional_shell_css() non viene caricato da
                 * [mc_template_pagina], quindi qui imponiamo lo stesso stile
                 * usato dalle CTA della homepage, vincendo anche sui Global
                 * Colors/Button di Elementor.
                 */
                .mc-unified-template .mc-button,
                .mc-unified-template .mc-sitemap__toggle,
                .mc-unified-template button.mc-button,
                .mc-unified-template button.mc-sitemap__toggle,
                .mc-unified-template .mc-site-search__main button[type="submit"],
                .mc-unified-template .mc-news-index-search button[type="submit"],
                .mc-unified-template .mc-places-search button[type="submit"],
                .mc-unified-template .mc-events-search button[type="submit"],
                .mc-unified-template .mc-topics-search button[type="submit"],
                .mc-unified-template .mc-documents-search button[type="submit"],
                .mc-template-landing-shell .mc-button,
                .mc-template-landing-shell button.mc-button{
                    box-sizing:border-box!important;
                    display:inline-flex!important;
                    align-items:center!important;
                    justify-content:center!important;
                    gap:8px!important;
                    min-height:44px!important;
                    padding:10px 18px!important;
                    border:2px solid var(--mc-color-primary)!important;
                    border-radius:4px!important;
                    background:var(--mc-color-surface)!important;
                    background-color:var(--mc-color-surface)!important;
                    color:var(--mc-color-primary)!important;
                    font-family:inherit!important;
                    font-size:inherit!important;
                    font-weight:700!important;
                    line-height:1.2!important;
                    text-decoration:none!important;
                    box-shadow:none!important;
                    cursor:pointer!important;
                    opacity:1!important;
                    -webkit-appearance:none!important;
                    appearance:none!important
                }
                .mc-unified-template .mc-button:hover,
                .mc-unified-template .mc-button:focus,
                .mc-unified-template .mc-sitemap__toggle:hover,
                .mc-unified-template .mc-sitemap__toggle:focus,
                .mc-template-landing-shell .mc-button:hover,
                .mc-template-landing-shell .mc-button:focus{
                    background:var(--mc-color-surface-muted)!important;
                    background-color:var(--mc-color-surface-muted)!important;
                    border-color:var(--mc-color-primary)!important;
                    color:var(--mc-color-primary)!important;
                    text-decoration:underline!important
                }
                .mc-unified-template .mc-button:focus-visible,
                .mc-unified-template .mc-sitemap__toggle:focus-visible,
                .mc-template-landing-shell .mc-button:focus-visible{
                    outline:3px solid var(--mc-color-accent)!important;
                    outline-offset:3px!important
                }
                .mc-unified-template .mc-button:disabled,
                .mc-unified-template .mc-sitemap__toggle:disabled,
                .mc-template-landing-shell .mc-button:disabled{
                    opacity:.55!important;
                    cursor:not-allowed!important;
                    text-decoration:none!important
                }
                @media(max-width:767px){.mc-unified-template,.mc-template-landing-shell{padding:var(--ordini-mobile-top-space) var(--ordini-mobile-gutter) var(--ordini-mobile-bottom-space)!important}.mc-unified-template__header{margin-bottom:28px}.mc-unified-template__header--service{grid-template-columns:1fr;row-gap:20px}.mc-service-header__right{justify-content:flex-start}.mc-service-header__lead{grid-column:1}.mc-service-status{margin-top:14px}.mc-sitemap details>ul,.mc-sitemap li>ul{padding-left:14px}}
            
