/* --- 1. FONT UNICO DEL SITO ---
   Helvetica Neue ovunque. "Icons" resta nello stack perché è il font
   di icone di Cargo (simboli social ecc.) e si attiva solo sui glifi
   speciali, non tocca il testo normale. */
:root {
    --gray: #a1a1a1;
    --main: #000;
    --font-main: "Helvetica Neue", Helvetica, Icons, Arial, sans-serif;
}



.event-box {
	padding: 8px;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.event-box:hover {
	background-color: #000;
}
.event-box:hover, .event-box:hover * {
	color: #fff !important;
}



[local-style="38488424"] .page {
  position: relative;
	background-color: initial /*!page_bgcolor*/;
}

[local-style="38488424"] a[href="Convergenze-Festival"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
}





/* --- 2. RESET & ELEMENTI BASE --- */
* {
    box-sizing: border-box;
    margin-right: 0px;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: #333;
    background-color: #fff;
}

p {
    color: inherit;
    margin-top: 12px;
    font-family: var(--font-main);
}

b, strong { font-weight: 800; }
i, em { font-style: italic; }
s { text-decoration: line-through; }

sub {
    position: relative;
    vertical-align: baseline;
    top: 0.3em;
}

sup {
    position: relative;
    vertical-align: baseline;
    top: -0.4em;
}

ul, ol {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    list-style-type: none;
}

blockquote {
    margin: 0;
    padding: 0 0 0 1em;
}

hr {
    background: rgba(0, 0, 0, 1);
    border: 0;
    height: 0px;
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
}

img {
    border: 0;
    padding: 0;
    top: 0;
    bottom: 0;
    left: 0;
}

mark {
    background-color: #fff;
    color: #fff;
    padding: 2px 4px;
    border-radius: 1px;
}

/* --- 3. LAYOUT & CONTAINERS --- */
[grid-col] {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

[data-css-preset] .container {
    max-width: 1400px;
    margin-left: auto /*!content_center*/;
    margin-right: auto /*!content_center*/;
    margin-bottom: 0.0rem;
    padding-bottom: 0px;
    margin-top: 0rem;
    padding-top: 0;
    text-align: left;
}

[data-css-preset] .container_width {
    max-width: 1400px;
    height: 100%;
	width: 100% /*!content_center*/;
}

[data-css-preset] .content_padding {
    width: 100% !important;
}



/* --- MOBILE OVERRIDES --- */
@media (max-width: 767px) {

    /* Padding del contenitore principale */
    [data-css-preset] .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
        width: 100% !important;
    }

    /* Reset dei padding delle colonne per non sommarli ai 12px */
    [grid-col] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
}

.page-header.page-detail {
    padding-bottom: 60px;
    padding-top: 120px;
}

@media (max-width: 767px) {

   .page-header.page-detail {
    padding-bottom: 20px;
    padding-top: 68px;}

    
}





[local-style="35449641"] .page_background {
    background-color: #fff;
}

[data-predefined-style="true"] [local-style="37146116"] .page {
    background-color: initial;
}

[data-css-preset] .page {
    background-color: initial;
}

.home .page_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.paddi { padding-top: 8rem; }
.spanna { min-height: 60vh; }
.contain { backdrop-filter: blur(8px); }

.content img {
    float: none;
    margin-bottom: 0rem;
    vertical-align: bottom;
    position: relative;
}

.content img.image-zoom:active { opacity: .7; }

/* --- 4. TIPOGRAFIA (scala fluida, una regola per stile) ---
   clamp(min mobile, fluido, max desktop): niente più versioni
   body.mobile separate. I link ereditano misura e interlinea. */

:root {
    --fs-small:   clamp(13px, 0.75rem + 0.2vw, 14px);
    --fs-body:    clamp(17px, 0.95rem + 0.45vw, 21px);
    --fs-subhead: clamp(24px, 16px + 1.6vw, 38px);
    --fs-dropdown: clamp(32px, 1.2rem + 3.6vw, 60px);
    --fs-h2:      clamp(40px, 1rem + 6vw, 110px);
    --fs-h1:      clamp(44px, 20px + 5.5vw, 100px);
    --lh-tight: 0.9;
    --lh-body:  1.25;
    --lh-small: 1.35;
}

a {
    text-decoration: none;
}

/* --- BODYCOPY --- */
[data-predefined-style="true"] bodycopy {
    display: block;
    font-family: var(--font-main) !important;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: -0.015em;
    color: #000;
}

/* --- H1 --- */
[data-predefined-style="true"] h1 {
    font-family: var(--font-main) !important;
    font-size: var(--fs-h1);
    line-height: 0.88;
    letter-spacing: -0.045em;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 2px -0.03em;
}

/* --- H2 --- */
[data-predefined-style="true"] h2 {
    font-family: var(--font-main) !important;
    font-size: var(--fs-h2);
    line-height: var(--lh-tight);
    letter-spacing: -0.04em;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* --- SUBHEAD --- */
[data-predefined-style="true"] subhead {
    display: block;
    font-family: var(--font-main) !important;
    font-size: var(--fs-subhead);
    line-height: var(--lh-tight);
    letter-spacing: -0.035em;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
}

/* --- SMALL --- */
[data-predefined-style="true"] small {
    display: block;
    font-family: var(--font-main) !important;
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    letter-spacing: 0;
    font-weight: 700;
    font-style: normal;
    color: #000;
}

/* --- LINK DENTRO I TESTI: stessa misura del testo che li contiene --- */
[data-predefined-style="true"] bodycopy a,
[data-predefined-style="true"] small a,
[data-predefined-style="true"] subhead a,
[data-predefined-style="true"] h1 a,
[data-predefined-style="true"] h2 a {
    font-family: var(--font-main) !important;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font-weight: inherit;
    text-transform: inherit;
}

[data-predefined-style="true"] bodycopy a { color: var(--gray); }
[data-predefined-style="true"] h2 a { color: var(--gray); }
[data-predefined-style="true"] h1 a { color: #000; }
[data-predefined-style="true"] small a,
[data-predefined-style="true"] subhead a { color: #000; display: block; }


/* --- MOBILE: stessi valori, ma con la priorità che serve
   a battere le misure in rem impostate pagina per pagina --- */
[data-predefined-style="true"] body.mobile bodycopy { font-size: var(--fs-body); line-height: var(--lh-body); }
[data-predefined-style="true"] body.mobile h1 { font-size: var(--fs-h1); line-height: 0.88; }
[data-predefined-style="true"] body.mobile h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
[data-predefined-style="true"] body.mobile subhead { font-size: var(--fs-subhead); line-height: var(--lh-tight); }
[data-predefined-style="true"] body.mobile small { font-size: var(--fs-small); line-height: var(--lh-small); }


/* --- GERARCHIA UNICA: annulla la tipografia degli stili locali di pagina ---
   (restano colori, sfondi e padding impostati pagina per pagina) */
[data-predefined-style="true"] body [local-style] bodycopy {
    font-family: var(--font-main) !important;
    font-size: var(--fs-body) !important;
    line-height: var(--lh-body) !important;
    letter-spacing: -0.015em !important;
}
[data-predefined-style="true"] body [local-style] h1 {
    font-family: var(--font-main) !important;
    font-size: var(--fs-h1) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.045em !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
[data-predefined-style="true"] body [local-style] h2 {
    font-family: var(--font-main) !important;
    font-size: var(--fs-h2) !important;
    line-height: var(--lh-tight) !important;
    letter-spacing: -0.04em !important;
}
[data-predefined-style="true"] body [local-style] subhead {
    font-family: var(--font-main) !important;
    font-size: var(--fs-subhead) !important;
    line-height: var(--lh-tight) !important;
    letter-spacing: -0.035em !important;
}
[data-predefined-style="true"] body [local-style] small {
    font-family: var(--font-main) !important;
    font-size: var(--fs-small) !important;
    line-height: var(--lh-small) !important;
    letter-spacing: 0 !important;
}
/* il menu mantiene la sua misura */
[data-predefined-style="true"] body [local-style] .menu-item small {
    font-size: inherit !important;
    line-height: inherit !important;
}
/* i link ereditano dal testo che li contiene */
[data-predefined-style="true"] body [local-style] bodycopy a,
[data-predefined-style="true"] body [local-style] h1 a,
[data-predefined-style="true"] body [local-style] h2 a,
[data-predefined-style="true"] body [local-style] subhead a,
[data-predefined-style="true"] body [local-style] small a {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

/* --- SCHEDE SPETTACOLO IN HOME: stesso titolo delle pagine (max 100px) --- */
[data-predefined-style="true"] body [local-style] subhead h1 {
    font-size: var(--fs-h1) !important;
}

/* --- ETICHETTE TENDINE (Tournee, Rassegna stampa...): max 60px --- */
[data-predefined-style="true"] body [local-style] .dropdown label h2 {
    font-size: var(--fs-dropdown) !important;
    line-height: 1 !important;
}


/* --- ANNI DEL CALENDARIO (2024, 2025...): misura dei sottotitoli --- */
[data-predefined-style="true"] body [local-style] details summary h1 {
    font-size: var(--fs-subhead) !important;
    line-height: var(--lh-tight) !important;
    letter-spacing: -0.035em !important;
    margin: 0;
}

.premio {
    text-align: justify;
    text-justify: inter-word;
}

body .premio {
    font-size: 1.4rem;
    letter-spacing: 0.0rem;
}

/* --- 5. HEADER & NAVIGAZIONE PRINCIPALE --- */
.header-wrap {
    position: fixed;
    top:0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background-color: #000;
    z-index: 999999;
    padding: 0 8px;
    overflow: visible !important;
    margin-top: 10px;
}

.header-wrap [grid-row] {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    overflow: visible !important;
}

.header-logo {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1000001;
}

.header-logo a {
    text-decoration: none;
    color: #fff !important;
}

.menu-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    overflow: visible !important;
}

.menu-item {
    position: relative;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    padding: 10px 10px;
    display: inline-block; 
}

.menu-item small {
    display: block !important; 
    font-size: inherit !important;
    font-family: inherit !important;
    color: inherit !important;
}

.menu-item a { text-decoration: none; color: #fff !important; }

/* Cargo Site Menu Button & Wrapper */
#site_menu {
    font-family: var(--font-main);
    font-size: 20px;
    margin: 1rem;
    color: #fff;
    max-width: 1000px;
    min-width: 400px;
    text-align: right;
    background: rgba(25, 25, 25, 1);
    justify-content: center;
    position: fixed;
}

#site_menu .page-link a,
#site_menu .set-link > a {
    font-family: var(--font-main);
    font-size: 28px;
    padding-bottom: 1rem;
    padding-top: 1rem;
    line-height: 0.6;
    letter-spacing: -0.1rem;
    font-style: normal;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
}

#site_menu .close {
    color: #fff;
    font-size: 45px;
    position: absolute;
    padding-top: 1rem;
    padding-right: 1rem;
    font-weight: 200;
    line-height: 28px;
}

#site_menu a.active { color: #fff; }

[data-css-preset] #site_menu_button {
    color: rgba(0, 0, 0, 1);
    font-size: 28px;
    line-height: 28px;
    position: fixed;
    right: 0rem;
    top: 0rem;
    margin: 2rem;
    text-align: right;
    background-color: #fff;
    z-index: 999999;
}

#site_menu_button.custom_icon { width: 80px; height: auto; }
#site_menu_button.active { display: none; }

.homepage a#site_menu_button {
    color: #000;
    padding: 2px;
    margin: 2rem;
}

[data-predefined-style="true"] [local-style="27997947"] #site_menu_button a {
    display: none;
}

.site_menu div a.active { background-color: transparent; }

/* Header Menu Toggles */
.header-menu {
    background-color: #fff;
    font-family: var(--font-main);
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.header-menu-items, .header-menu-itemz {
    display: none;
    z-index: 1;
    font-weight: 400;
    padding-top: 20px;
    padding-bottom: 40px;
}

.header-menu-items hr { display: none; }
#toggle-menu, #toggle-menu1 { display: none; }
#toggle-menu:checked ~ .header-menu-items { display: block; }
#toggle-menu1:checked ~ .header-menu-itemz { display: block; }
#toggle-menu ~ label .hide, #toggle-menu1 ~ label .hide { display: none; }
#toggle-menu:checked ~ label .show, #toggle-menu1:checked ~ label .show { display: none; }
#toggle-menu:checked ~ label .hide, #toggle-menu1:checked ~ label .hide { display: inline; }




/* --- 6. INTERACTIVE ELEMENTS: DROPDOWNS & ACCORDIONS --- */

/* Dropdown Desktop (Hover) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%; 
    background-color: #000 !important;
    list-style: none !important;
    padding: 5px 10px;
    text-align: left;
    z-index: 9999999 !important;
    overflow: hidden;
}

.menu-item:hover .dropdown-content {
    display: block !important;
}

.dropdown-content li {
    padding: 4px 0 !important;
    margin: 0 !important;
    width: 100%;
}

.dropdown-content li a {
    color: #fff !important;
    font-size: 15px;
    font-family: var(--font-main);
    font-weight: bold;
    text-transform: none;
    line-height: 14px;
    display: block;
    white-space: normal; 
}

.dropdown-content li a:hover {
    color: #a5a5a5 !important;
}

/* Accordion Style (Checkbox Hack) */
.dropdown {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto clamp(8px, 1vw, 16px) !important;
    font-family: var(--font-main);
    background: transparent !important;
    text-align: center;
}

.dropdown input[type="checkbox"] { display: none; }

.dropdown label h2 { line-height: 1; padding: 0.1em 0; }

.dropdown label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: black;
    flex-direction: row;
    justify-content: space-between;
}

body.mobile dropdown label {
    color: black;
    flex-direction: row;
    size: 8px;
}

.dropdown label h2,
.dropdown label small {
    margin: 0;
    color: black;
}

.dropdown label::after {
    content: "+";
    font-weight: 200;
    font-size: 50px;
    transition: transform 0.2s ease;
    color: black;
    line-height: 1;
}

.dropdown input[type="checkbox"]:checked + label::after {
    content: "–";
}

.dropdown .content {
    display: none;
    margin: 1rem 0 4rem 0;
}

.dropdown input[type="checkbox"]:checked + label + .content {
    display: block;
}

.dropdown .content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown .content li {
    margin: 0.5rem 0;
    line-height: 1.5;
    text-align: left;
}

.dropdown .content a {
    color: black;
    text-decoration: none;
}

/* Custom Dropdown Toggles */
.dropdown-toggle {
    width: 100% !important;
    padding: 4px 0px;
    background: transparent !important;
    color: #000 !important;
    border: none !important;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.dropdown-toggle .icon {
    position: absolute;
    right: 0em;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    transition: transform 0.2s;
    color: #000 !important;
}

.dropdown-menu {
    display: none !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 0.3em;
    background: #fff !important;
    border: none !important;
    text-align: left;
    overflow: hidden;
}

.dropdown.open .dropdown-menu { display: block !important; }

.dropdown-menu h2,
.dropdown-menu h2 a {
    margin: 0;
    padding: 0;
    font-weight: normal;
    color: #000 !important;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center !important;
}

/* Native Details/Summary */
details summary {
    font-size: 30px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

details summary::after {
    content: "+";
    font-size: 1.2em;
    transition: transform 0.25s ease, content 0.25s ease;
}

details[open] summary::after { content: "–"; }

/* --- 7. THUMBNAILS & GALLERIES --- */
div[thumbnails] {
    background-color: #fff;
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
}

[data-css-preset] .thumbnails {
    background-color: transparent;
    margin-bottom: 0rem;
}

[data-css-preset] .thumbnails_width { max-width: 1400px; }
[data-css-preset] [thumbnails-pad] { padding-bottom: 40px; }

.thumbnail a.image-link {
    display: flex !important;
    flex-direction: column !important;
}

.thumbnails .title {
    order: 1 !important;
    position: relative;
    color: #000;
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 800;
    font-size: 60px;
    letter-spacing: -0.056em;
    text-transform: uppercase;
    line-height: 52px;
    display: block;
    margin-bottom: 8px;
}

.thumbnails .thumb_image {
    order: 2 !important;
    -webkit-filter: brightness(95%);
    transition: all 0.6s ease;
    display: block;
    width: 100%;
}

.thumbnails .thumb_image:hover { -webkit-filter: brightness(110%); }

.thumbnails .tags {
    order: 3 !important;
    margin-top: 1.0rem;
    margin-bottom: 1.0rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
    font-family: var(--font-main);
    text-transform: capitalize;
}

.thumbnails .tags a { border-bottom: 0; color: inherit; text-decoration: none; }


.image-gallery {
    margin-bottom: 40px !important; /* Crea spazio fisico per i quadratini */
    overflow: visible !important;   /* Permette ai quadratini di uscire dai bordi */
}



/* --- 8. SHOP & PRODUCTS --- */
[data-css-preset] #shop_button {
    color: rgba(0, 0, 0, 0.85);
    background: transparent;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    position: fixed;
    padding: 6px;
    top: 1rem;
    left: 1.5rem;
}

#shop_button.text {
    font-size: 1.6rem;
    color: rgba(0, 0, 0, 0.75);
    font-family: var(--font-main);
    padding: 0;
    line-height: 1.3;
}

#shop_button.custom_icon { width: 40px; height: auto; }

.shop_product {
    width: 100%;
    max-width: 22rem;
    position: relative;
    display: block;
}

.shop_product .price {
    font-family: var(--font-main);
    font-size: 2.0rem;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.75);
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.shop_product .dropdown {
    font-family: var(--font-main);
    font-size: 2.0rem;
    display: inline-block;
    width: 100%;
    border: 1px solid rgba(0,0,0,.2);
    background: white url(https://static.cargo.site/assets/images/select-line-arrows.svg) no-repeat right;
    margin-bottom: 1rem;
    line-height: 1.2;
    padding: .7rem 2.5rem .7rem 1rem;
    color: rgba(0, 0, 0, 0.75);
}

.shop_product .button {
    font-family: var(--font-main);
    font-size: 2.0rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    flex: 0 0 50%;
    text-align: left;
    display: inline-block;
    line-height: 1.2;
    padding: .8rem 1rem .9rem;
    font-weight: 500;
}

/* 1. Blocca la navigazione sotto l'immagine */




/* 4. Nasconde i link "Prev" e "Next" se non vuoi i quadratini anche per loro */
/* (Opzionale: se vedi due quadratini in più all'inizio e alla fine, usa questo) */
.slideshow-nav a.prev, 
.slideshow-nav a.next {
    display: none !important;
}




/* --- 10. PROGRAMMA LIST --- */
ul.programma {
    list-style: none;
    padding-top: 50px;
    padding-bottom: 100px;
    margin: 0;
}

ul.programma li {
    display: grid;
    grid-template-columns: 4fr 4fr 2fr;
    gap: 1rem;
    padding: 10px 10px;
    border-bottom: 1px solid #000;
    font-size: 18px;
    position: relative;
    cursor: pointer;
}

ul.programma li:hover { background-color: black; color: white; }
ul.programma li span { position: relative; z-index: 2; }

ul.programma .luogo,
ul.programma .data {
    font-size: 16px;
    letter-spacing: 0.00em;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-main);
    font-style: normal;
    font-weight: bold;
}

ul.programma .titolo {
    font-size: 16px;
    letter-spacing: 0.00em;
    color: inherit;
    font-family: var(--font-main);
    font-weight: bold;
    text-transform: capitalize;
}

/* --- 11. UTILITIES & MISC --- */
.text-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: start;
}

.titlean { text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

.typewriteran {
    overflow: hidden;
    border-right: 0.15em solid black;
    white-space: nowrap;
    animation: typing 3s steps(40, end) forwards;
}

.social img {
    max-width: 25px;
    margin: 0 1rem;
    opacity: 1;
    max-height: 7rem;
}

#toolset, .search, .search-icon { display: none; }

.material-symbols-outlined { scale: 1.6; margin-top: 0px; }

.cky-btn { font-family: var(--font-main); }

body div#eu_cookie_notification {
    background: white;
    color: #4c3f36;
}


/* Responsive Overrides (Media Queries) */
@media (max-width: 767px) {
    .header-wrap { top: 0rem; }

    .mobile-menu-trigger {
        display: block;
        color: #fff;
        font-family: var(--font-main);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 14px;
        cursor: pointer;
        z-index: 1000001;
    }

    .menu-container {
        display: none !important; 
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: #000;
        padding: 40px;
        gap: 25px;
    }

    #mobile-menu-check:checked ~ .menu-container { display: flex !important; }

    #mobile-menu-check:checked ~ .mobile-menu-trigger::before {
        content: "CHIUDI";
        position: fixed;
        right: 20px;
        top: 20px;
    }
    
    #mobile-menu-check:checked ~ .mobile-menu-trigger { font-size: 0; }

    .menu-item { font-size: 28px; width: 100%; }

    .dropdown-content {
        display: block !important;
        position: static;
        padding: 10px 0 0 15px !important;
        background: transparent !important;
        border: none !important;
    }

    .dropdown-content li a {
        font-size: 14px !important;
        opacity: 0.6;
    }

    [data-css-preset] [responsive-layout] [thumbnails-pad] {
        padding-top: 0;
        margin-right: 0.0rem;
        margin-left: 0px;
        margin-bottom: 40px;
    }

    [data-css-preset] [responsive-layout] [thumbnails-gutter] {
        justify-content: center;
        margin-top: 0.0rem;
    }

    .thumbnails .title {
        font-size: 40px !important;
        line-height: 35px;
        padding-bottom: 0px;
        max-width: 80%;
        white-space: pre-wrap;
    }
}

@media (max-width: 991px) {
    ul.programma li {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    ul.programma .titolo {
        grid-column: 1; grid-row: 1;
        font-size: 18px;
    }

    ul.programma .luogo {
        grid-column: 2; grid-row: 1;
        text-align: right;
        display: block;
        margin-bottom: 0.2rem;
    }

    ul.programma .data {
        grid-column: 2; grid-row: 2;
        text-align: right;
        font-size: 16px;
        margin-top: 0.2rem;
    }
}

/* --- SPAZIO TITOLO UNIFORME in tutte le pagine (tranne la home) ---
   la prima riga della pagina riceve lo spazio che prima dava solo .page-detail */
body:not(.homepage) .page_content > [grid-row]:first-child {
    padding-top: 120px;
    padding-bottom: 60px;
}
.page-header.page-detail {
    padding-top: 0;
    padding-bottom: 0;
}
@media (max-width: 767px) {
    body:not(.homepage) .page_content > [grid-row]:first-child {
        padding-top: 68px;
        padding-bottom: 20px;
    }
    .page-header.page-detail {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* le pagine fissate (header e footer del sito) restano senza spazio extra */
body:not(.homepage) .pinned .page_content > [grid-row]:first-child {
    padding-top: 0;
    padding-bottom: 0;
}

/* --- EVIDENZIAZIONE giallo su nero: padding ai lati e altezza ridotta --- */
span[style*="background-color: #000"],
span[style*="background-color: rgb(0, 0, 0)"] {
    background-color: transparent !important;
    background-image: linear-gradient(#000, #000);
    background-repeat: no-repeat;
    background-size: 100% 0.96em;
    background-position: 0 58%;
    padding: 0 0.12em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
