/**
 * pnb-a11y.css
 *
 * Override accessibilità per il carosello immagini.
 * Caricato dopo pnb.css — ha specificità sufficiente a prevalere.
 *
 * Conformità WCAG 2.2:
 *   2.2.2  Pause, Stop, Hide    (A)  — bottone pausa sempre visibile
 *   2.1.1  Keyboard             (A)  — frecce visibili al focus
 *   2.4.3  Focus Order          (A)  — gestita in JS (tabindex -1 su slide nascoste)
 *   2.4.7  Focus Visible        (AA) — outline ad alto contrasto
 *   1.4.11 Non-text Contrast    (AA) — controlli su sfondo ad alto contrasto
 *   1.4.13 Content on Hover/Focus(AA)— frecce e pausa visibili anche via :focus-within
 *   2.5.8  Target Size          (AA) — minimo 44×44 px per tutti i controlli
 *   4.1.2  Name, Role, Value    (A)  — gestita in JS (aria-* attributes)
 */

/* ================================================================
   1. FRECCE: target size 44×44px + visibili su :focus-within
   ================================================================ */

/* Override del display:none!important — mostrate anche quando un
   elemento figlio dello slider ha il focus (navigazione da tastiera). */
.block-slider-image:focus-within .slick-arrow {
    display: block !important;
}

/* Target size minimo 44×44px per tutte le frecce Slick e controlli (2.5.8) */
.slick-prev,
.slick-next {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
}

.block-slider-image .slick-arrow,
.block-events.with-image .slick-arrow {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99990;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.68) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.block-slider-image .slick-arrow:hover,
.block-slider-image .slick-arrow:focus-visible,
.block-events.with-image .slick-arrow:hover,
.block-events.with-image .slick-arrow:focus-visible {
    background: rgba(0, 0, 0, 0.88) !important;
    border-color: #fff !important;
}

.block-slider-image .slick-prev {
    left: 12px !important;
}

.block-slider-image .slick-next {
    right: 12px !important;
}

/* Centratura e dimensione dei simboli nelle frecce */
.slick-prev:before,
.slick-next:before {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 30px !important;
}

.block-slider-image .slick-arrow:before,
.block-events.with-image .slick-arrow:before {
    color: #fff !important;
    background: transparent !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

/* Focus outline ad alto contrasto sulle frecce (2.4.7) */
.slick-arrow:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 2px !important;
}

/* Frecce disabilitate ai bordi del carosello non-infinito (4.1.2) */
.slick-arrow[aria-disabled="true"] {
    opacity: 0.35 !important;
    pointer-events: none;
}

/* ================================================================
   1B. DOTS / PALLINI: bottoni veri, target comodo, stato visibile
   ================================================================ */

.block-slider-image .slick-dots,
.block-events .slick-dots,
.slider-bandi-avvisi .slick-dots,
.scheduled-events .slick-dots {
    bottom: 16px;
    display: flex !important;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0 72px;
    pointer-events: none;
}

.block-events .slick-dots,
.slider-bandi-avvisi .slick-dots,
.scheduled-events .slick-dots {
    position: static;
    padding: 8px 0 0;
}

.block-slider-image .slick-dots li,
.block-events .slick-dots li,
.slider-bandi-avvisi .slick-dots li,
.scheduled-events .slick-dots li {
    width: 44px;
    height: 44px;
    margin: 0;
}

.block-slider-image .slick-dots li button,
.block-events .slick-dots li button,
.slider-bandi-avvisi .slick-dots li button,
.scheduled-events .slick-dots li button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    pointer-events: auto;
}

.block-slider-image .slick-dots li button:before,
.block-events .slick-dots li button:before,
.slider-bandi-avvisi .slick-dots li button:before,
.scheduled-events .slick-dots li button:before {
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    color: transparent;
    opacity: 1;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    transform: translate(-50%, -50%);
}

.block-events .slick-dots li button:before,
.slider-bandi-avvisi .slick-dots li button:before,
.scheduled-events .slick-dots li button:before {
    border-color: #0c6596;
    background: #fff;
}

.block-slider-image .slick-dots li.slick-active button:before,
.block-events .slick-dots li.slick-active button:before,
.slider-bandi-avvisi .slick-dots li.slick-active button:before,
.scheduled-events .slick-dots li.slick-active button:before {
    background: #0c6596;
    border-color: #fff;
}

.block-events .slick-dots li.slick-active button:before,
.slider-bandi-avvisi .slick-dots li.slick-active button:before,
.scheduled-events .slick-dots li.slick-active button:before {
    border-color: #0c6596;
}

.block-slider-image .slick-dots li button:focus-visible,
.block-events .slick-dots li button:focus-visible,
.slider-bandi-avvisi .slick-dots li button:focus-visible,
.scheduled-events .slick-dots li button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 0;
}

.block-events .slick-dots li button:focus-visible,
.slider-bandi-avvisi .slick-dots li button:focus-visible,
.scheduled-events .slick-dots li button:focus-visible {
    outline-color: #0c6596;
}

/* ================================================================
   2. BOTTONE PAUSA — SEMPRE VISIBILE (2.2.2 + 1.4.13)
   ================================================================
   Non usiamo opacity:0 + hover: i controlli interattivi devono
   essere trovabili senza mouse (1.4.13 "Persistent").
   Il bottone è sempre nel DOM e sempre visibile. */

.block-slider-image .pnb-slider-toggle {
    /* Layout */
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 99999;

    /* 2.5.8 Target Size: minimo 44×44px (forma circolare) */
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;

    /* Stile: contrasto garantito su immagini sia scure sia chiare */
    border: 2px solid rgba(255, 255, 255, 0.75);
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: inherit;
    cursor: pointer;

    /* Rimozione opacity:0 e transition opacità — il bottone è SEMPRE visibile */
    opacity: 1 !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.block-slider-image .pnb-slider-toggle:hover {
    background-color: rgba(0, 0, 0, 0.82);
    border-color: #fff;
}

/* 2.4.7 / 1.4.11 — Outline ad alto contrasto, garantito su qualsiasi sfondo */
.block-slider-image .pnb-slider-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    background-color: rgba(0, 0, 0, 0.82);
}

/* 4.1.2 — Stato "in pausa" comunicato anche visivamente */
.block-slider-image .pnb-slider-toggle[aria-pressed="true"] {
    background-color: rgba(0, 0, 0, 0.85);
    border-color: #fff;
}

/* Icona interna (caratteri Unicode ▶ / ⏸) */
.block-slider-image .pnb-slider-toggle [aria-hidden="true"] {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

/* Nasconde visivamente il testo lasciando solo l'icona (per rendere il pulsante discreto) */
.block-slider-image .pnb-slider-toggle .pnb-toggle-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.block-slider-image .link-slide {
    z-index: 100000;
}

.block-slider-image .link-slide a {
    position: relative;
    z-index: 1;
}

.block-slider-image .pnb-slide-clickable {
    cursor: pointer;
}

.block-events.with-image .events.slick-slider {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 8px;
}

.block-events.with-image .events.slick-slider > .slick-list {
    flex: 0 0 100%;
    max-width: 100%;
    order: 1;
}

.block-events.with-image .events.slick-slider > .slick-dots {
    flex: 0 1 auto;
    order: 2;
    width: auto;
}

.block-events.with-image .events.slick-slider > .pnb-slider-toggle {
    position: static;
    order: 2;
    z-index: 1;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 8px 0 0;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid #0c6596;
    border-radius: 0;
    background-color: #fff;
    color: #0c6596;
    font-family: inherit;
    cursor: pointer;
    opacity: 1 !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.block-events.with-image .events.slick-slider > .pnb-slider-toggle:hover,
.block-events.with-image .events.slick-slider > .pnb-slider-toggle:focus-visible,
.block-events.with-image .events.slick-slider > .pnb-slider-toggle[aria-pressed="true"] {
    background-color: #0c6596;
    border-color: #0c6596;
    color: #fff;
}

.block-events.with-image .events.slick-slider > .pnb-slider-toggle:focus-visible {
    outline: 3px solid #0c6596;
    outline-offset: 2px;
}

.block-events.with-image .events.slick-slider > .pnb-slider-toggle [aria-hidden="true"] {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.block-events.with-image .events.slick-slider > .pnb-slider-toggle .pnb-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.entry-content .horizontal-menu-block.section_colection {
    padding: 26px 20px 32px;
}

.entry-content .horizontal-menu-block.section_colection .wrp-title {
    width: 100%;
    margin: 0 auto 18px;
}

.entry-content .horizontal-menu-block.section_colection .box-title {
    margin: 0;
}

.entry-content .horizontal-menu-block.section_colection .title-url.title {
    display: inline-block;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.05;
    color: #111;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu.flex {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image {
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #c9cccf;
    border-radius: 6px;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image:hover,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image:focus-visible {
    transform: translateY(-2px);
    border-color: #111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image:focus-visible {
    outline: 3px solid #0c6596;
    outline-offset: 3px;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .column-image-wrap {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d9dcde;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .column-image-wrap img {
    width: 100% !important;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image:hover .column-image-wrap img,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image:focus-visible .column-image-wrap img {
    transform: scale(1.035);
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h3,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h5,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h3,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h5,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .hori_menu_title {
    margin: 0;
    color: #111 !important;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.08;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h3,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h5,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .hori_menu_title,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .normal-text-block {
    padding: 18px 18px 0;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .normal-text-block {
    margin-top: 10px !important;
    padding-top: 0;
    padding-bottom: 18px;
    color: #222 !important;
}

.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h5::after,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h5::after,
.entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .hori_menu_title::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 12px;
    background: #111;
}

.block-events.eventi.with-image .events-with-image .slick-track {
    display: flex;
    align-items: stretch;
}

.block-events.eventi.with-image .events-with-image .slick-slide {
    height: auto;
    padding: 0 9px;
}

.block-events.eventi.with-image .events-with-image .slick-slide > div,
.block-events.eventi.with-image .events-with-image .event {
    height: 100%;
}

.block-events.eventi.with-image .events-with-image .event {
    padding: 0;
}

.block-events.eventi.with-image .slick-arrow {
    top: calc(50% - 52px) !important;
}

.block-events.eventi.with-image .slick-prev {
    left: 0 !important;
}

.block-events.eventi.with-image .slick-next {
    right: 0 !important;
}

.block-events.eventi.with-image .line-down {
    display: none;
}

.block-events.eventi.with-image .events-with-image .event > a {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #c9cccf;
    border-radius: 6px;
    background: #fff;
    color: #111;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.block-events.eventi.with-image .events-with-image .event > a:hover,
.block-events.eventi.with-image .events-with-image .event > a:focus-visible {
    transform: translateY(-2px);
    border-color: #111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.block-events.eventi.with-image .events-with-image .event > a:focus-visible {
    outline: 3px solid #0c6596;
    outline-offset: 3px;
}

.block-events.eventi.with-image .events-with-image .event-image {
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d9dcde;
}

.block-events.eventi.with-image .events-with-image .event-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.block-events.eventi.with-image .events-with-image .event > a:hover .event-image img,
.block-events.eventi.with-image .events-with-image .event > a:focus-visible .event-image img {
    transform: scale(1.035);
}

.block-events.eventi.with-image .events-with-image .event h5 {
    margin: 0;
    padding: 16px 18px 18px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #111;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.08;
}

.block-events.eventi.with-image .events-with-image .event h5::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 12px;
    background: #111;
    flex: 0 0 auto;
}

.wp-block-group.is-layout-flex:has(> .block-highlighted-post) {
    position: relative;
    z-index: 2;
    gap: 18px;
    align-items: stretch !important;
    overflow: visible;
}

.wp-block-group.is-layout-flex > .block-highlighted-post {
    position: relative;
    z-index: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border: 1px solid #c9cccf;
    border-radius: 6px;
    background: #fff !important;
    color: #111;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wp-block-group.is-layout-flex > .block-highlighted-post:hover,
.wp-block-group.is-layout-flex > .block-highlighted-post:focus-within {
    z-index: 3;
    transform: translateY(-2px);
    border-color: #111;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.block-highlighted-post .highlighted-post-link:focus-visible,
.block-highlighted-post .post-link:focus-visible {
    outline: 3px solid #0c6596;
    outline-offset: 3px;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .wrp-title {
    padding: 18px 20px 0;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .line-up {
    display: none;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .line-down {
    display: none;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .box-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.05;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .posts {
    margin-top: 0 !important;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .post {
    padding: 0 !important;
    border: 1px solid #d7d9db !important;
    border-radius: 4px;
    background: #fff;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .post:first-child {
    border-top: 1px solid #d7d9db !important;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .post-link {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    color: #111;
    text-decoration: none !important;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .post:hover,
.wp-block-group.is-layout-flex > .block-highlighted-post .post:focus-within {
    transform: translateY(-2px);
    border-color: #111 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.wp-block-group.is-layout-flex > .block-highlighted-post .title-article {
    display: block;
    font-family: 'DeAetna PNB', Fallback, sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.08;
    color: #111;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .post-link:hover .title-article,
.wp-block-group.is-layout-flex > .block-highlighted-post .post-link:focus-visible .title-article {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .post p {
    margin: 8px 0 0;
    max-width: 64ch;
    color: #333;
    font-size: 16px;
    line-height: 1.45;
}

.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .highlighted-post-link {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    color: #111;
    text-decoration: none !important;
}

.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .highlighted-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap !important;
    align-items: stretch;
    height: auto !important;
    max-height: none !important;
    padding: 18px 20px 20px;
    gap: 18px;
    overflow: hidden;
    box-sizing: border-box;
}

.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .content {
    flex: 0 0 auto;
    margin-top: 0 !important;
    color: #333;
    font-size: 16px;
    line-height: 1.45;
}

.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .content p {
    margin: 0 0 12px;
}

.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .wrap-thumbnail {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    align-self: stretch;
    flex: 0 0 auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: auto !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d9dcde;
}

.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .wrap-thumbnail img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 !important;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow:hover .wrap-thumbnail img,
.wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow:focus-within .wrap-thumbnail img {
    transform: scale(1.035);
}

.wp-block-group.is-layout-flex > .block-highlighted-post .highlighted-post-cta,
.wp-block-group.is-layout-flex > .block-highlighted-post .post-link-cta,
.section-highlighted-posts .highlighted-post-cta,
.section-highlighted-posts .post-link-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    min-height: 40px;
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid #111;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .highlighted-post-cta,
.section-highlighted-posts .highlighted-post .highlighted-post-cta {
    margin: 8px 20px 20px;
}

.wp-block-group.is-layout-flex > .block-highlighted-post .highlighted-post-cta::after,
.wp-block-group.is-layout-flex > .block-highlighted-post .post-link-cta::after,
.section-highlighted-posts .highlighted-post-cta::after,
.section-highlighted-posts .post-link-cta::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    flex: 0 0 auto;
}

.wp-block-group.is-layout-flex > .block-highlighted-post:hover .highlighted-post-cta,
.wp-block-group.is-layout-flex > .block-highlighted-post:focus-within .highlighted-post-cta,
.wp-block-group.is-layout-flex > .block-highlighted-post .post:hover .post-link-cta,
.wp-block-group.is-layout-flex > .block-highlighted-post .post:focus-within .post-link-cta,
.section-highlighted-posts .highlighted-post:hover .highlighted-post-cta,
.section-highlighted-posts .highlighted-post:focus-within .highlighted-post-cta,
.section-highlighted-posts .post:hover .post-link-cta,
.section-highlighted-posts .post:focus-within .post-link-cta {
    background: #fff;
    color: #111;
    transform: translateX(2px);
}

.section-highlighted-posts {
    gap: 18px;
    align-items: stretch;
    overflow: visible !important;
}

.section-highlighted-posts .highlighted-events,
.section-highlighted-posts .highlighted-post {
    position: relative;
    overflow: hidden;
    border: 1px solid #c9cccf;
    border-radius: 6px;
    background: #fff !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-highlighted-posts .highlighted-events:hover,
.section-highlighted-posts .highlighted-events:focus-within,
.section-highlighted-posts .highlighted-post:hover,
.section-highlighted-posts .highlighted-post:focus-within {
    transform: translateY(-2px);
    border-color: #111;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.section-highlighted-posts .highlighted-post-link,
.section-highlighted-posts .post-link {
    display: flex;
    flex-direction: column;
    color: #111;
    text-decoration: none !important;
}

.section-highlighted-posts .post-link {
    min-height: 100%;
}

.section-highlighted-posts .highlighted-post-link:focus-visible,
.section-highlighted-posts .post-link:focus-visible {
    outline: 3px solid #0c6596;
    outline-offset: 3px;
}

.section-highlighted-posts .post {
    border-bottom: 1px solid #d7d9db;
}

.section-highlighted-posts .post:last-child {
    border-bottom: 0;
}

.section-highlighted-posts .post-link {
    padding: 16px 0;
}

.section-highlighted-posts .bar-article {
    display: none;
}

.section-highlighted-posts .excerpt-article {
    margin-top: 8px;
    color: #333;
    font-size: 16px;
    line-height: 1.45;
}

body.high-contrast .horizontal-menu-block.section_colection,
body.high-contrast .horizontal-menu-block.section_colection .horizontal-menu,
body.high-contrast .horizontal-menu-block.section_colection .link-image,
body.high-contrast .horizontal-menu-block.section_colection .text-content,
body.high-contrast .horizontal-menu-block.section_colection .text-content h3,
body.high-contrast .horizontal-menu-block.section_colection .text-content h5,
body.high-contrast .horizontal-menu-block.section_colection .text-content div,
body.high-contrast .horizontal-menu-block.section_colection .badge_text {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .horizontal-menu-block.section_colection a,
body.high-contrast .horizontal-menu-block.section_colection a *,
body.high-contrast .horizontal-menu-block.section_colection .title-url {
    color: #ffff00 !important;
}

body.high-contrast .horizontal-menu-block.section_colection .link-image {
    border: 2px solid #fff !important;
}

body.high-contrast .entry-content .horizontal-menu-block.section_colection,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .link-image,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .text-content,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .text-content h3,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .text-content h5,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .text-content div,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .badge_text,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .hori_menu_title,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .normal-text-block {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .entry-content .horizontal-menu-block.section_colection a,
body.high-contrast .entry-content .horizontal-menu-block.section_colection a *,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .title-url {
    color: #ffff00 !important;
}

body.high-contrast .entry-content .horizontal-menu-block.section_colection .link-image {
    border-color: #fff !important;
    box-shadow: none !important;
}

body.high-contrast .entry-content .horizontal-menu-block.section_colection .text-content h5::after {
    background: #fff !important;
}

body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h3,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h5,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content div,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .badge_text,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h3,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h5,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .hori_menu_title,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .normal-text-block {
    color: #fff !important;
}

body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h5::after,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h5::after,
body.high-contrast .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .hori_menu_title::after {
    background: #fff !important;
}

body.high-contrast .block-events.eventi.with-image,
body.high-contrast .block-events.eventi.with-image .events-with-image .event,
body.high-contrast .block-events.eventi.with-image .events-with-image .event > a,
body.high-contrast .block-events.eventi.with-image .events-with-image .event h5 {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .block-events.eventi.with-image .events-with-image .event > a {
    border-color: #fff !important;
    box-shadow: none !important;
}

body.high-contrast .block-events.eventi.with-image .events-with-image .event h5::after {
    background: #fff !important;
}

body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .wrp-title,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .posts,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .post,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .highlighted-wrap,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .content,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .wrap-thumbnail {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post {
    border-color: #fff !important;
    box-shadow: none !important;
}

body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .box-title,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .title-article,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .post p,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .content,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .content p {
    color: #fff !important;
}

body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post a,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post a * {
    color: #ffff00 !important;
}

body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .post {
    border-color: #fff !important;
    background-color: #000 !important;
    box-shadow: none !important;
}

body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .post:hover,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .post:focus-within {
    border-color: #ffff00 !important;
}

body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .highlighted-post-cta,
body.high-contrast .wp-block-group.is-layout-flex > .block-highlighted-post .post-link-cta,
body.high-contrast .section-highlighted-posts .highlighted-post-cta,
body.high-contrast .section-highlighted-posts .post-link-cta {
    border-color: #ffff00 !important;
    background: #000 !important;
    color: #ffff00 !important;
}

@media (max-width: 860px) {
    .wp-block-group.is-layout-flex:has(> .block-highlighted-post) {
        gap: 14px;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post {
        width: 100% !important;
        transform: none;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post:hover,
    .wp-block-group.is-layout-flex > .block-highlighted-post:focus-within {
        transform: none;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .wrp-title {
        padding: 16px 18px 0 !important;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .line-up {
        margin-bottom: 12px;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .box-title {
        font-size: 24px;
        line-height: 1.08;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .posts {
        padding: 16px 18px 18px !important;
        gap: 10px;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .post {
        padding: 0 !important;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .post:hover,
    .wp-block-group.is-layout-flex > .block-highlighted-post .post:focus-within {
        transform: none;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .post-link {
        padding: 14px;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .highlighted-post-cta,
    .wp-block-group.is-layout-flex > .block-highlighted-post .post-link-cta,
    .section-highlighted-posts .highlighted-post-cta,
    .section-highlighted-posts .post-link-cta {
        width: 100%;
        font-size: 13px;
        text-align: center;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .highlighted-post-cta,
    .section-highlighted-posts .highlighted-post .highlighted-post-cta {
        width: auto;
        margin-right: 18px;
        margin-left: 18px;
    }

    .section-highlighted-posts .highlighted-events:hover,
    .section-highlighted-posts .highlighted-events:focus-within,
    .section-highlighted-posts .highlighted-post:hover,
    .section-highlighted-posts .highlighted-post:focus-within {
        transform: none;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .title-article {
        font-size: 19px;
        line-height: 1.12;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post .post p,
    .wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .content {
        font-size: 16px;
        line-height: 1.45;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .highlighted-wrap {
        padding: 16px 18px 18px !important;
        gap: 14px;
    }

    .wp-block-group.is-layout-flex > .block-highlighted-post.bgyellow .wrap-thumbnail {
        aspect-ratio: 4 / 3;
        margin-top: 14px !important;
    }

    .entry-content .horizontal-menu-block.section_colection {
        padding: 22px 20px 28px;
    }

    .entry-content .horizontal-menu-block.section_colection .horizontal-menu.flex {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image:has(.column-image-wrap) {
        display: grid;
        grid-template-columns: minmax(112px, 38%) 1fr;
        align-items: stretch;
    }

    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .column-image-wrap {
        aspect-ratio: auto;
        min-height: 118px;
    }

    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content {
        min-height: 118px;
        padding: 14px;
    }

    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h3,
    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .text-content h5,
    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h3,
    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image > h5,
    .entry-content .horizontal-menu-block.section_colection .horizontal-menu .link-image .hori_menu_title {
        font-size: 20px;
    }

    .block-slider-image .slick-arrow,
    .block-events.with-image .slick-arrow {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-width: 2px !important;
        background: rgba(0, 0, 0, 0.54) !important;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
    }

    .block-slider-image .slick-arrow:before,
    .block-events.with-image .slick-arrow:before {
        width: 40px !important;
        height: 40px !important;
        font-size: 25px !important;
    }

    .block-slider-image .slick-prev {
        left: 8px !important;
    }

    .block-slider-image .slick-next {
        right: 8px !important;
    }

    .block-slider-image .slick-arrow[aria-disabled="true"],
    .block-events.with-image .slick-arrow[aria-disabled="true"] {
        display: none !important;
    }

    .block-slider-image .pnb-slider-toggle {
        bottom: 9px;
        left: 10px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.58);
    }

    .block-slider-image .pnb-slider-toggle [aria-hidden="true"] {
        font-size: 14px;
    }

    .block-slider-image .pnb-slider-toggle .pnb-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .block-slider-image .slick-dots {
        bottom: 11px;
        left: 58px;
        right: auto;
        width: auto;
        padding: 0;
        gap: 2px;
        justify-content: flex-start;
    }

    .block-slider-image .slick-dots li,
    .block-slider-image .slick-dots li button {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .block-slider-image .slick-dots li button:before {
        width: 11px;
        height: 11px;
    }

    .block-slider-image .link-slide {
        max-width: calc(100% - 145px);
    }
}

/* ================================================================
   3. NEUTRALIZZA .pnb-slider-controls (non più usato nel DOM)
   ================================================================ */
.pnb-slider-controls {
    display: none !important;
}

/* ================================================================
   4. SINGLE EVENT & EXHIBITION BODY REFRESH (layout6 / prose)
   - Tipografia editoriale, gerarchia proporzionata e misura di lettura
   - Pillola data, bottoni CTA ed elementi grafici
   ================================================================ */

/* Contenitore e pillola data mostra */
.single-event #primary.layout6 .event-meta-badge-wrap {
    margin: -4px 0 24px;
}

.single-event #primary.layout6 .event-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f5;
    color: #1a202c;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    border: 1px solid #d0d5dd;
    letter-spacing: 0.02em;
}

.single-event #primary.layout6 .event-date-pill .event-meta-icon {
    flex-shrink: 0;
    color: #000;
}

/* Tipografia del body per template eventi: allineamento a colonna intera (100%) */
.single-event #primary.layout6 .entry-content.prose > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.single-event #primary.layout6 .entry-content.prose > p {
    font-family: 'Inter', sans-serif;
    font-size: 16.5px;
    line-height: 1.76;
    color: #24292f;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Paragrafo guida / incipit (Lead paragraph) */
.single-event #primary.layout6 .entry-content.prose > p.lead,
.single-event #primary.layout6 .entry-content.prose > p.has-large-font-size {
    font-size: clamp(18.5px, 1.4vw, 21px) !important;
    line-height: 1.68 !important;
    color: #0d1117 !important;
    font-weight: 450 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Gerarchia delle intestazioni proporzionata e scandita */
.single-event #primary.layout6 .entry-content.prose h2,
.single-event #primary.layout6 .entry-content.prose h2.wp-block-heading,
.single-event #primary.layout6 .entry-content.prose .tipo-di-titolo h2 {
    font-family: 'DeAetna PNB', Fallback, serif;
    font-size: clamp(28px, 2.4vw, 36px) !important;
    font-weight: 700;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
    color: #0b1520;
    margin-top: 40px !important;
    margin-bottom: 18px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #000000;
    max-width: 100% !important;
    width: 100% !important;
}

.single-event #primary.layout6 .entry-content.prose h3,
.single-event #primary.layout6 .entry-content.prose h3.wp-block-heading,
.single-event #primary.layout6 .entry-content.prose .tipo-di-titolo h3 {
    font-family: 'DeAetna PNB', Fallback, serif;
    font-size: clamp(22px, 1.8vw, 28px) !important;
    font-weight: 700;
    line-height: 1.25 !important;
    color: #1a202c;
    margin-top: 32px !important;
    margin-bottom: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.single-event #primary.layout6 .entry-content.prose h4,
.single-event #primary.layout6 .entry-content.prose h4.wp-block-heading,
.single-event #primary.layout6 .entry-content.prose .tipo-di-titolo h4 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.3vw, 18px) !important;
    font-weight: 700;
    line-height: 1.35 !important;
    color: #111827;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.single-event #primary.layout6 .entry-content.prose h5,
.single-event #primary.layout6 .entry-content.prose h5.wp-block-heading {
    font-family: 'Inter', sans-serif;
    font-size: 15px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
    margin-top: 20px !important;
    margin-bottom: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Liste ed elenchi puntati */
.single-event #primary.layout6 .entry-content.prose ul.wp-block-list {
    max-width: 100% !important;
    width: 100% !important;
    margin: 16px 0 24px 0 !important;
    padding-left: 24px !important;
    padding-right: 0 !important;
    line-height: 1.68;
    color: #2b3440;
    list-style-type: disc;
    box-sizing: border-box !important;
}

.single-event #primary.layout6 .entry-content.prose ul.wp-block-list li {
    margin-bottom: 8px;
}

.single-event #primary.layout6 .entry-content.prose ul.wp-block-list li strong {
    color: #111827;
}

.single-event #primary.layout6 .entry-content.prose ul.wp-block-list li ul {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 20px;
    list-style-type: circle;
}

/* Pulsanti e Call-to-action */
.single-event #primary.layout6 .entry-content.prose .wp-block-buttons {
    margin-top: 24px;
    margin-bottom: 12px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.single-event #primary.layout6 .entry-content.prose .wp-block-button__link {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

.single-event #primary.layout6 .entry-content.prose .wp-block-button__link:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Separatori */
.single-event #primary.layout6 .entry-content.prose hr.wp-block-separator {
    margin: 36px 0 !important;
    border-color: #e2e8f0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Immagine visual mostra e banner sponsor */
.single-event #primary.layout6 .entry-content.prose figure.wp-block-image.event-featured-visual {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
}

.single-event #primary.layout6 .entry-content.prose figure.wp-block-image.event-featured-visual img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    width: 100% !important;
    max-height: 640px;
    object-fit: cover;
    display: block;
}

.single-event #primary.layout6 .entry-content.prose figure.wp-block-image.event-partners-banner {
    margin: 32px 0 20px 0 !important;
    padding: 18px 24px !important;
    background: #fafafa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.single-event #primary.layout6 .entry-content.prose figure.wp-block-image.event-partners-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ================================================================
   5. STILIZZAZIONE COMPLETA GUTENBERG TABS (.wp-block-tabs)
   Conformità accessibilità, layout pulito e reattivo
   ================================================================ */
.single-event #primary.layout6 .wp-block-tabs,
.wp-block-tabs {
    margin: 28px 0;
    width: 100%;
    max-width: 960px;
}

.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list,
.wp-block-tabs .wp-block-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list button[role="tab"],
.wp-block-tabs .wp-block-tab-list button[role="tab"] {
    background: #f7f9fa;
    border: 1px solid #d0d5dd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 12px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
    position: relative;
    text-transform: uppercase;
}

.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list button[role="tab"]:hover,
.wp-block-tabs .wp-block-tab-list button[role="tab"]:hover {
    color: #000;
    background: #edf2f7;
}

.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list button[role="tab"][aria-selected="true"],
.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list button[role="tab"].is-active,
.wp-block-tabs .wp-block-tab-list button[role="tab"][aria-selected="true"],
.wp-block-tabs .wp-block-tab-list button[role="tab"].is-active {
    color: #000000;
    background: #ffffff;
    border-color: #000000;
    border-top: 3px solid #000000;
    border-bottom: 2px solid #ffffff;
    font-weight: 700;
    z-index: 2;
}

.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list button[role="tab"]:focus-visible,
.wp-block-tabs .wp-block-tab-list button[role="tab"]:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-panel,
.wp-block-tabs .wp-block-tab-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 28px 32px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.single-event #primary.layout6 .wp-block-tabs .wp-block-tab-panel:focus,
.wp-block-tabs .wp-block-tab-panel:focus {
    outline: none;
}

@media (max-width: 768px) {
    .single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list,
    .wp-block-tabs .wp-block-tab-list {
        flex-direction: column;
        gap: 6px;
        border-bottom: none;
    }

    .single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list button[role="tab"],
    .wp-block-tabs .wp-block-tab-list button[role="tab"] {
        border-radius: 4px;
        border-bottom: 1px solid #d0d5dd;
        width: 100%;
        text-align: left;
    }

    .single-event #primary.layout6 .wp-block-tabs .wp-block-tab-list button[role="tab"][aria-selected="true"],
    .wp-block-tabs .wp-block-tab-list button[role="tab"][aria-selected="true"] {
        border-top: 1px solid #000;
        border-left: 4px solid #000;
        border-bottom: 1px solid #000;
    }

    .single-event #primary.layout6 .wp-block-tabs .wp-block-tab-panel,
    .wp-block-tabs .wp-block-tab-panel {
        border-top: 1px solid #e2e8f0;
        padding: 20px 18px;
    }
}

/* ==========================================================================
   EVENT-V2 TEMPLATE SYSTEM (Pinacoteca Nazionale di Bologna)
   Inspired by single-artwork.php editorial standard
   ========================================================================== */

.single-event #primary.layout6 {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 64px;
}

.event-v2-container {
    width: 100%;
    margin: 0;
    color: #1a1a1a;
}

/* Reset duplicate list bullet artifacts from theme global styles */
.event-v2-container ul li::before,
.event-v2-container ol li::before {
    content: none !important;
    display: none !important;
}

.event-v2-hero {
    margin-bottom: 28px;
}

.event-v2-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 18px;
}

.event-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.event-chip-dark {
    background: #000000;
    color: #ffffff;
}

.event-chip-date {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

.event-chip-icon {
    display: inline-block;
    vertical-align: middle;
}

.event-chip-light {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.event-chip-share {
    margin-left: auto;
}

.hero-share-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.hero-share-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.hero-share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.event-v2-title {
    font-family: 'DeAetna PNB', Georgia, serif !important;
    font-size: clamp(32px, 3.5vw, 48px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
    text-transform: none !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

/* Two-column Layout */
.event-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
}

/* Layout automatico a larghezza intera quando la barra laterale (Informazioni Visita) è assente o disattivata */
.event-v2-layout:not(:has(.event-v2-sidebar)),
.event-v2-layout.event-v2-layout-single-col,
.event-v2-layout.no-sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.event-v2-layout:not(:has(.event-v2-sidebar)) .event-v2-content,
.event-v2-layout.event-v2-layout-single-col .event-v2-content,
.event-v2-layout.no-sidebar .event-v2-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.event-inline-contact {
    margin-top: 40px;
    padding: 20px 24px;
    background: #f8fafc;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.event-inline-contact-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 6px;
}

.event-inline-contact p {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
}

.event-inline-contact a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: underline;
}

/* Left Column: Curatorial Body */
.event-v2-content.entry-content.prose {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    color: #27272a;
}

/* Reset intrusive .entry-content > * side padding and margins */
.event-v2-content > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.event-v2-content .event-featured-visual {
    margin: 0 0 32px 0 !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid #e4e4e7;
    background: #f4f4f5;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.event-v2-content .event-featured-visual img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Typography polish */
.event-v2-content p.lead,
.event-v2-content p.has-large-font-size {
    font-size: 18.5px !important;
    line-height: 1.68 !important;
    color: #18181b !important;
    font-weight: 450 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: -0.01em;
}

.event-v2-content p {
    font-size: 16.5px !important;
    line-height: 1.76 !important;
    color: #334155 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.event-v2-content p strong,
.event-v2-content p b {
    color: #09090b;
    font-weight: 650;
}

.event-v2-content .event-partners-banner {
    margin: 36px 0 40px 0;
    padding: 18px 24px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    text-align: center;
}

.event-v2-content .event-partners-banner img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Activities & Education Section */
.event-v2-content .titolazioni {
    margin-top: 48px;
    margin-bottom: 20px;
}

.event-v2-content .wp-block-buttons {
    margin-top: 24px;
}

.event-v2-content .wp-block-button__link {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.event-v2-content .wp-block-button__link:hover {
    background: #27272a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-v2-content .wp-block-tab-panel h3 {
    font-family: 'DeAetna PNB', serif !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.02em !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
}

.event-v2-content .wp-block-tab-panel h4 {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
}

/* Right Column: Sticky Sidebar Panel */
.event-v2-sidebar {
    width: 100%;
}

.event-sidebar-sticky {
    position: sticky;
    top: 24px;
}

.event-info-panel {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.event-panel-header {
    border-bottom: 2px solid #000000;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.event-panel-tag {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 4px;
}

.event-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: #09090b;
    margin: 0;
    line-height: 1.2;
}

.event-panel-item {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f4f4f5;
}

.event-panel-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.event-panel-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 6px;
}

.event-panel-val {
    font-size: 15px;
    line-height: 1.5;
    color: #18181b;
}

.event-panel-val strong {
    color: #09090b;
    font-weight: 600;
}

.event-panel-sub {
    font-size: 13.5px;
    color: #71717a;
}

.event-panel-note {
    font-size: 13px;
    color: #71717a;
    display: inline-block;
    margin-top: 4px;
}

.event-panel-prices {
    list-style: none;
    margin: 8px 0 16px 0;
    padding: 0;
}

.event-panel-prices li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-size: 14.5px;
    border-bottom: 1px dashed #e4e4e7;
    color: #3f3f46;
}

.event-panel-prices li:last-child {
    border-bottom: none;
}

.event-panel-prices li strong {
    font-weight: 700;
    color: #09090b;
}

.event-panel-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: #000000;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 650;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.event-panel-cta-btn:hover {
    background: #27272a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.event-panel-concessions details {
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
}

.event-panel-concessions details + details {
    margin-top: 10px;
}

.event-panel-concessions summary {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #3f3f46;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.event-panel-concessions summary::-webkit-details-marker {
    display: none;
}

.event-panel-concessions .chevron {
    transition: transform 0.2s ease;
    display: inline-block;
}

.event-panel-concessions details[open] .chevron {
    transform: rotate(180deg);
}

.event-panel-concessions details[open] summary {
    border-bottom: 1px solid #e4e4e7;
    background: #f4f4f5;
    color: #09090b;
}

.event-panel-concessions .concessions-dropdown {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #52525b;
}

.event-panel-concessions .concessions-dropdown p {
    margin: 0 0 8px 0;
}

.event-panel-concessions .concessions-dropdown ul {
    margin: 0;
    padding-left: 18px;
}

.event-panel-concessions .concessions-dropdown li {
    margin-bottom: 4px;
}

.event-panel-contact p {
    margin: 0;
    font-size: 13.5px;
}

.event-panel-contact a {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.event-panel-contact a:hover {
    color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .event-v2-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .event-sidebar-sticky {
        position: static;
    }

    .event-v2-sidebar {
        order: 2;
    }
}

@media (max-width: 640px) {
    .event-v2-title {
        font-size: 28px;
    }

    .event-v2-hero {
        margin-bottom: 24px;
    }

    .event-info-panel {
        padding: 20px 18px;
    }
}

