/* Calendario Eventi — public views.
 * Customise with CSS variables, e.g.  :root { --cem-accent: #2271b1; --cem-font: Georgia, serif; } */
.cem, .ce-single, .cem-tipbox, .cef{
  --cem-accent:#e09900; --cem-accent-dark:#b87a00; --cem-accent-soft:#fdf3df; --cem-text:#3f3b33; --cem-muted:#7a766c;
  --cem-line:#ebe6db; --cem-bg:#fff; --cem-radius:14px; --cem-font:inherit; --cem-font-heading:inherit; --cem-cancel:#b3261e;
  --cem-gold:#e09900; --cem-gold-ink:#3a2700; --cem-live:#2e7d32; --cem-postponed:#b35400; --cem-ended:#6b675f;
}
.cem{max-width:1180px;margin:0 auto;font-family:var(--cem-font);color:var(--cem-text)}
.cem *,.cem *::before,.cem *::after{box-sizing:border-box}
.cem .screen-reader-text,.cem-tipbox .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* search bar and views */
.cem-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 24px;padding:0 0 0 14px;border:1px solid var(--cem-line);border-radius:8px;background:var(--cem-bg)}
.cem-search{display:flex;align-items:center;gap:10px;flex:1 1 320px;min-width:0;color:var(--cem-muted);margin:0}
.cem-search input[type=search]{flex:1;min-width:0;border:0;background:transparent;padding:14px 4px;font-weight:400;font-size:15px;font-family:var(--cem-font);color:var(--cem-text);outline:0;box-shadow:none;-webkit-appearance:none}
.cem-search input[type=search]:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:-2px;border-radius:4px}
.cem-searchbtn{border:0;background:var(--cem-accent);color:#fff;font-weight:700;font-size:14px;line-height:1;font-family:var(--cem-font);padding:14px 22px;cursor:pointer;border-radius:0 6px 6px 0;white-space:nowrap}
.cem-searchbtn:hover,.cem-searchbtn:focus-visible{background:var(--cem-accent-dark)}
.cem-views{display:flex;gap:4px;padding:0 14px}
.cem-view{padding:14px 12px;font-weight:600;font-size:14px;line-height:1;font-family:var(--cem-font);color:var(--cem-text);border:0;border-bottom:2px solid transparent;background:none;border-radius:0;cursor:pointer}
.cem-view:not(.is-active):hover{color:var(--cem-accent-dark)}
.cem-view:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:-2px}
.cem-view.is-active{font-weight:700;border-bottom-color:var(--cem-text)}
.cem.is-busy .cem-body{opacity:.5;transition:opacity .15s}
.cem-found{margin:-8px 0 18px;color:var(--cem-text);font-size:14px}
.cem-clear{border:0;background:none;padding:0;color:var(--cem-accent-dark);font:inherit;text-decoration:underline;cursor:pointer}
.cem-empty,.cem-none{text-align:center;padding:30px 0;color:var(--cem-muted)}

/* list */
.cem-month-h{display:flex;align-items:center;gap:14px;margin:34px 0 18px;padding:0;border:0;font-weight:400;font-size:14px;line-height:1.4;font-family:var(--cem-font);color:var(--cem-text)}
.cem-month-h:after{content:"";flex:1;height:1px;background:var(--cem-line)}
.cem-year{font-weight:400;font-size:28px;line-height:1.3;font-family:var(--cem-font-heading);margin:52px 0 0;padding:0}
.cem-h{font-weight:400;font-size:32px;line-height:1.3;font-family:var(--cem-font-heading);margin:60px 0 14px;padding:0}
.cem-card{position:relative;display:block;min-height:230px;margin:0 0 18px;border:1px solid var(--cem-line);border-radius:var(--cem-radius);overflow:hidden;background:var(--cem-bg);box-shadow:0 2px 8px rgba(0,0,0,.04);transition:box-shadow .2s,transform .2s;cursor:pointer}
.cem-card:hover{box-shadow:0 8px 20px rgba(184,122,0,.16);transform:translateY(-2px)}
.cem-poster{position:absolute;right:0;top:0;bottom:0;width:55%;margin:0;padding:0}
.cem-poster .cem-img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center top}
.cem-card:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,var(--cem-bg) 0%,var(--cem-bg) 46%,rgba(255,255,255,.72) 62%,rgba(255,255,255,0) 100%)}
.cem-card--noimg:before{display:none}
.cem-cbody{position:relative;z-index:2;width:62%;padding:22px 26px;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:230px}
.cem-card--noimg .cem-cbody{width:100%}
.cem-dt{font-weight:700;font-size:13px;line-height:1.4;font-family:var(--cem-font);letter-spacing:.06em;text-transform:uppercase;color:var(--cem-accent-dark);margin:0 0 4px}
.cem .cem-title{margin:0 0 2px;padding:0;font-weight:700;font-size:22px;line-height:1.3;font-family:var(--cem-font-heading);color:var(--cem-text)}
.cem .cem-title a{color:inherit;text-decoration:none}
.cem .cem-title a:hover{color:var(--cem-accent-dark)}
.cem .cem-link:after{content:"";position:absolute;inset:0;z-index:3}
.cem-venue{color:var(--cem-muted);font-size:14px;font-weight:600;margin:0}
.cem-next{color:var(--cem-muted);font-size:13px}
.cem .cem-desc{margin:6px 0 0;padding:0;font-size:15px;line-height:1.55;color:var(--cem-text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cem-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.cem-chip{display:inline-block;padding:3px 9px;border-radius:999px;background:var(--cem-accent-soft);color:#8a5a00;font-weight:600;font-size:11px;line-height:1.5;font-family:var(--cem-font);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.cem-card .cem-cbody a:not(.cem-link),.cem-card .cem-cbody button{position:relative;z-index:4}
.cem-btn{display:inline-block;border:1px solid var(--cem-accent);color:var(--cem-accent-dark);background:var(--cem-bg);padding:11px 28px;font-weight:600;font-size:15px;line-height:1.2;font-family:var(--cem-font);text-decoration:none;cursor:pointer;white-space:nowrap;border-radius:6px}
.cem-btn:hover,.cem-btn:focus-visible{background:var(--cem-accent);color:#fff}
.cem-btn[disabled]{opacity:.6;cursor:wait}
.cem-nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0 6px;padding:12px 14px;background:var(--cem-bg);border:1px solid var(--cem-line);border-radius:var(--cem-radius);box-shadow:0 2px 8px rgba(0,0,0,.04)}
.cem-nav-l{font-weight:700;color:var(--cem-accent-dark);text-transform:uppercase;letter-spacing:.06em;font-size:13px;margin-right:4px}
.cem-nav select{padding:9px 12px;border:1px solid var(--cem-line);border-radius:8px;background:var(--cem-bg);font-weight:400;font-size:14px;font-family:var(--cem-font);min-width:160px;color:var(--cem-text)}
.cem-nav select:disabled{opacity:.5}
.cem-more{display:flex;gap:16px;align-items:center;justify-content:center;margin:30px 0 10px;flex-wrap:wrap}
.cem-more[hidden]{display:none}
.cem-count{font-size:13px;color:var(--cem-muted)}

/* month and day: navigation */
.cem-navbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:0 0 16px}
.cem-navbtns{display:flex;gap:6px;align-items:center}
.cem-navbtn,.cem-today{border:1px solid var(--cem-line);background:var(--cem-bg);color:var(--cem-text);border-radius:8px;cursor:pointer;font-weight:600;font-size:14px;line-height:1;font-family:var(--cem-font);padding:10px 12px}
.cem-navbtn{font-size:20px;line-height:1;padding:7px 13px}
.cem-navbtn:hover,.cem-today:hover{border-color:var(--cem-accent);color:var(--cem-accent-dark)}
.cem-navbtn:focus-visible,.cem-today:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:2px}
.cem .cem-navtitle{margin:0;padding:0;font-weight:400;font-size:26px;line-height:1.2;font-family:var(--cem-font-heading);color:var(--cem-text)}

/* month grid */
.cem-grid{border:1px solid var(--cem-line);border-radius:8px;overflow:hidden;background:var(--cem-bg)}
.cem-dow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#faf8f2;border-bottom:1px solid var(--cem-line)}
.cem-dow span{padding:9px 8px;font-weight:700;font-size:12px;line-height:1;font-family:var(--cem-font);text-transform:uppercase;letter-spacing:.06em;color:var(--cem-muted)}
.cem-week{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--cem-line)}
.cem-week:last-child{border-bottom:0}
.cem-cell{grid-row:1/-1;border-right:1px solid var(--cem-line);z-index:0}
.cem-cell:nth-child(14n+13),.cem-cell:last-of-type{border-right:0}
.cem-cell.is-out{background:#faf8f2}
.cem-cell.is-today{background:var(--cem-accent-soft)}
.cem-num{grid-row:1;z-index:1;padding:4px 6px 2px;font-weight:600;font-size:14px;line-height:1;font-family:var(--cem-font);color:var(--cem-text);pointer-events:none}
.cem-num span{display:inline-block;min-width:24px;padding:3px 5px;border-radius:999px;text-align:center}
.cem-num .cem-dbtn{pointer-events:auto;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;border-radius:999px}
.cem-num .cem-dbtn:hover span{background:var(--cem-accent-soft);color:var(--cem-accent-dark)}
.cem-num .cem-dbtn:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:1px}
.cem-num .cem-dbtn.is-picked span{background:var(--cem-text);color:#fff}
.cem-num.is-out{color:#b4b0a5}
.cem-num.is-today span{background:var(--cem-accent);color:#fff}
.cem-items{z-index:1;padding:0 4px 6px;display:flex;flex-direction:column;gap:3px;min-width:0}
.cem-item,.cem-span{display:block;min-width:0;text-decoration:none;color:var(--cem-text);font-weight:400;font-size:12px;line-height:1.35;font-family:var(--cem-font);border-radius:5px}
.cem-item{padding:3px 6px;background:var(--cem-accent-soft);border-left:3px solid var(--cem-accent);overflow:hidden}
.cem-item .cem-time{display:block;font-weight:700;font-size:11px;color:var(--cem-accent-dark)}
.cem-item .cem-t{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cem-item:hover,.cem-item:focus-visible{background:var(--cem-accent);color:#fff;outline:0}
.cem-item:hover .cem-time,.cem-item:focus-visible .cem-time{color:#fff}
.cem-span{z-index:1;margin:2px 3px;padding:3px 8px;background:#e6e1f3;color:#2f2a4a;border-left:3px solid #7a6ab8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cem-span.is-cl{margin-left:0;border-radius:0 5px 5px 0;border-left:0}
.cem-span.is-cr{margin-right:0;border-radius:5px 0 0 5px}
.cem-span.is-cl.is-cr{border-radius:0}
.cem-span:hover,.cem-span:focus-visible{background:#7a6ab8;color:#fff;outline:0}
.cem-item.is-cancelled,.cem-span.is-cancelled{opacity:.65}
.cem-item.is-cancelled .cem-t,.cem-span.is-cancelled .cem-t{text-decoration:line-through}

/* month grid: past dates and state of the event */
.cem-item.is-past,.cem-span.is-past{opacity:.72;filter:saturate(.2)}
.cem-item.has-tag-live{border-left-color:var(--cem-live)}
.cem-item.has-tag-postponed,.cem-span.has-tag-postponed{border-left-color:var(--cem-postponed)}
.cem-item.has-tag-cancelled,.cem-span.has-tag-cancelled{border-left-color:var(--cem-cancel)}
.cem-item.has-tag-cancelled .cem-t,.cem-span.has-tag-cancelled .cem-t{text-decoration:line-through}

/* month: small calendar (phones) */
.cem-mini{display:none}
@media (max-width:760px){
  .cem-grid{display:none}
  .cem-mini{display:block;border:1px solid var(--cem-line);border-radius:12px;background:var(--cem-bg);padding:8px 6px 10px;margin:0 0 20px}
  .cem .cem-navtitle{font-size:22px}
}
.cem-mini-dow,.cem-mini-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.cem-mini-dow span{padding:4px 0 8px;font:700 11px/1 var(--cem-font);text-transform:uppercase;letter-spacing:.06em;color:var(--cem-muted)}
.cem-mday{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-height:46px;padding:5px 0 4px;margin:1px;border:0;border-radius:10px;background:none;font:600 15px/1.2 var(--cem-font);color:var(--cem-text);cursor:pointer}
.cem-mday[disabled]{cursor:default;color:#9b978e;font-weight:400}
.cem-mday.is-past.has-ev{color:var(--cem-muted)}
.cem-mday.is-today .cem-mnum{background:var(--cem-accent);color:#fff;border-radius:999px;padding:2px 7px}
.cem-mday.has-ev:hover{background:var(--cem-accent-soft)}
.cem-mday.is-picked{background:var(--cem-text);color:#fff}
.cem-mday.is-picked .cem-dots i{background:#fff}
.cem-mday:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:1px}
.cem-dots{display:flex;gap:3px;height:6px}
.cem-dots i{display:block;width:6px;height:6px;border-radius:50%;background:var(--cem-accent)}
.cem-mday.is-past .cem-dots i{background:#b4b0a5}

/* month: cards of the month */
.cem-month-empty{margin:4px 0 18px;padding:22px 16px;border:1px dashed var(--cem-line);border-radius:12px;background:#fdfcf8}
.cem-mcards{margin:28px 0 0}
.cem-ml-grid .cem-mcards{margin-top:0}
@media (min-width:761px){.cem-mcards--small{display:none}}
.cem-pick{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 14px;font-weight:600}
.cem-pick[hidden]{display:none}
.cem-pick-all{border:1px solid var(--cem-line);background:var(--cem-bg);border-radius:999px;padding:5px 14px;font:600 13px/1.3 var(--cem-font);color:var(--cem-accent-dark);cursor:pointer}
.cem-pick-all:hover{border-color:var(--cem-accent)}
.cem-mgrid{display:grid;grid-template-columns:repeat(var(--cem-cols,3),minmax(0,1fr));gap:20px}
.cem-cols-2{--cem-cols:2}.cem-cols-3{--cem-cols:3}.cem-cols-4{--cem-cols:4}
@media (max-width:1000px){.cem-mgrid{--cem-cols:2}}
@media (max-width:600px){.cem-mgrid{--cem-cols:1}}
.cem-gcard{position:relative;display:flex;flex-direction:column;border:1px solid var(--cem-line);border-radius:var(--cem-radius);background:var(--cem-bg);overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04);transition:box-shadow .2s,transform .2s;cursor:pointer}
.cem-gcard[hidden]{display:none}
.cem-gcard:hover{box-shadow:0 8px 20px rgba(184,122,0,.16);transform:translateY(-2px)}
.cem-gcard:focus-within{outline:2px solid var(--cem-accent-dark);outline-offset:2px}
.cem-gpic{aspect-ratio:4/3;background:#f3efe6;overflow:hidden}
.cem-gpic img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center top}
.cem-gpic-ph{display:flex;align-items:center;justify-content:center;height:100%;font:700 44px/1 var(--cem-font-heading);color:var(--cem-accent)}
.cem-gbody{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px;flex:1}
.cem .cem-gtitle{margin:0;padding:0;font:700 18px/1.3 var(--cem-font-heading);color:var(--cem-text)}
.cem .cem-gtitle a{color:inherit;text-decoration:none}
.cem .cem-gtitle a:hover{color:var(--cem-accent-dark)}
.cem-gcard .cem-chips{margin-top:auto;padding-top:8px}
.cem-gcard .cem-dt{margin:0}
.cem-gcard.is-ended{background:#faf9f6;box-shadow:none}
.cem-gcard.is-ended .cem-gpic img{filter:saturate(.12) brightness(.98);opacity:.78}
.cem-gcard.is-ended .cem-gtitle{color:#68645b}.cem-gcard.is-ended .cem-dt{color:#8d8677}
.cem-gcard.is-ended .cem-chip{background:#efede8;color:#7d7a70}
/* compact cards: small poster at the side, date and title */
.cem-cards-compact .cem-mgrid{gap:12px}
.cem-cards-compact .cem-gcard{flex-direction:row;align-items:stretch;min-height:96px}
.cem-cards-compact .cem-gpic{flex:0 0 84px;aspect-ratio:auto}
.cem-cards-compact .cem-gpic-ph{font-size:28px}
.cem-cards-compact .cem-gbody{padding:10px 12px;justify-content:center}
.cem-cards-compact .cem-gtitle{font-size:15px}
.cem-cards-compact .cem-dt{font-size:11px}
.cem-cards-compact .cem-tag{font-size:11px;padding:4px 10px 4px 8px}

/* tags on the cards: a coloured strip with white text, like a sticker */
.cem-tag{position:absolute;top:14px;left:0;z-index:5;padding:7px 15px 7px 12px;border-radius:0 6px 6px 0;background:var(--cem-ended);color:#fff;font:700 13px/1.25 var(--cem-font,inherit);letter-spacing:.08em;text-transform:uppercase;box-shadow:0 2px 8px rgba(0,0,0,.25);pointer-events:none}
.cem-tag--tr{left:auto;right:0;border-radius:6px 0 0 6px;padding:7px 12px 7px 15px}
.cem-tag--bl{top:auto;bottom:14px}
.cem-tag--br{top:auto;bottom:14px;left:auto;right:0;border-radius:6px 0 0 6px;padding:7px 12px 7px 15px}
.cem-tag--live{background:var(--cem-live)}
.cem-tag--live::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#fff;vertical-align:1px;animation:cem-pulse 1.6s ease-in-out infinite}
.cem-tag--postponed{background:var(--cem-postponed)}
.cem-tag--cancelled{background:var(--cem-cancel)}
.cem-tag--ended{background:var(--cem-ended)}
.cem-tag--inline{position:static;display:inline-block;margin:0 8px 4px 0;border-radius:4px;box-shadow:none;vertical-align:2px;font-size:12px;padding:4px 10px}
.cem-card:has(>.cem-tag--tl,>.cem-tag--tr) .cem-cbody{padding-top:52px}
.cem-card:has(>.cem-tag--bl,>.cem-tag--br) .cem-cbody{padding-bottom:52px}
@keyframes cem-pulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.cem-tag--live::before{animation:none}}

/* month: title with the quick month choice */
.cem-navt{position:relative}
.cem-mp-btn{display:inline-flex;align-items:center;gap:6px;margin:0 0 0 -8px;padding:4px 8px;border:0;border-radius:8px;background:none;font:inherit;color:inherit;cursor:pointer}
.cem-mp-btn:hover,.cem-mp-btn[aria-expanded=true]{background:var(--cem-accent-soft)}
.cem-mp-btn:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:2px}
.cem-caret{flex:0 0 auto;padding:3px;border-radius:50%;border:1px solid var(--cem-line);box-sizing:content-box;color:var(--cem-accent-dark);transition:transform .2s}
.cem-mp-btn[aria-expanded=true] .cem-caret{transform:rotate(180deg)}
.cem-mp{position:absolute;z-index:60;top:calc(100% + 8px);left:0;width:300px;max-width:calc(100vw - 32px);padding:12px;background:#fff;border:1px solid var(--cem-line);border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.16)}
.cem-mp[hidden]{display:none}
.cem-mp-y{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.cem-mp-y strong{font:700 17px/1 var(--cem-font)}
.cem-mp-y button{width:34px;height:34px;border:1px solid var(--cem-line);border-radius:8px;background:#fff;font-size:20px;line-height:1;color:var(--cem-text);cursor:pointer}
.cem-mp-y button:disabled{opacity:.35;cursor:default}
.cem-mp-m{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.cem-mp-mo{position:relative;padding:11px 4px;border:1px solid transparent;border-radius:9px;background:#faf8f2;font:600 14px/1 var(--cem-font);color:var(--cem-text);text-transform:capitalize;cursor:pointer}
.cem-mp-mo:hover,.cem-mp-mo:focus-visible{border-color:var(--cem-accent);outline:0}
.cem-mp-mo.is-now{border-color:var(--cem-line);background:#fff}
.cem-mp-mo.is-cur{background:var(--cem-accent-dark);color:#fff}
.cem-mp-mo.has-ev::after{content:"";position:absolute;left:50%;bottom:4px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--cem-accent)}
.cem-mp-mo.is-cur.has-ev::after{background:#fff}

/* category filters and «Follow the calendar» on one row */
.cem-filters{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 16px;margin:-12px 0 22px}
.cem-filters .cem-cats{flex:1 1 300px;margin:0}
.cem-follow{position:relative;margin-left:auto}
/* white text on a darker amber: #fff on #8a5a00 ≈ 6:1 (WCAG AA); square corners like «Search» */
.cem-follow-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid #8a5a00;border-radius:6px;background:#8a5a00;color:#fff;font:700 13px/1.3 var(--cem-font);cursor:pointer;white-space:nowrap;box-shadow:0 2px 6px rgba(138,90,0,.25)}
.cem-follow-btn:hover,.cem-follow-btn[aria-expanded=true]{background:#6b4500;border-color:#6b4500;color:#fff}
.cem-follow-btn:focus-visible{outline:2px solid var(--cem-text);outline-offset:2px}
.cem-follow-pop{position:absolute;z-index:60;right:0;top:calc(100% + 8px);width:290px;max-width:calc(100vw - 32px);padding:14px 16px;background:#fff;border:1px solid var(--cem-line);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.16);font-size:13px;color:var(--cem-muted)}
.cem-follow-pop[hidden]{display:none}
.cem-follow-pop p{margin:0 0 10px;padding:0}
.cem-follow-pop ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.cem-follow-pop li{margin:0;padding:0}
.cem-follow-pop a,.cem-follow-pop button{display:block;width:100%;padding:8px 10px;border:0;border-radius:8px;background:#faf8f2;color:var(--cem-text);font:600 14px/1.3 var(--cem-font);text-align:left;text-decoration:none;cursor:pointer}
.cem-follow-pop a:hover,.cem-follow-pop button:hover,.cem-follow-pop a:focus-visible,.cem-follow-pop button:focus-visible{background:var(--cem-accent-soft);color:var(--cem-accent-dark);outline:0}
@media (max-width:600px){.cem-follow{margin-left:0}.cem-follow-pop{left:0;right:auto}}
/* «Filters» drop-down: replaces the category buttons on small screens */
.cem-fbox{display:none;position:relative}
.cem-fbtn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid var(--cem-line);border-radius:6px;background:var(--cem-bg);color:var(--cem-text);font:700 13px/1.3 var(--cem-font);cursor:pointer;white-space:nowrap}
.cem-fbtn:hover,.cem-fbtn[aria-expanded=true]{border-color:var(--cem-accent-dark)}
.cem-fbtn.is-active{border-color:var(--cem-accent-dark);color:var(--cem-accent-dark)}
.cem-fbtn:focus-visible{outline:2px solid var(--cem-text);outline-offset:2px}
.cem-fcount{display:inline-block;min-width:20px;padding:1px 6px;border-radius:10px;background:var(--cem-accent-dark);color:#fff;font-size:12px;line-height:18px;text-align:center}
.cem-fcount[hidden]{display:none}
.cem-fpop{position:absolute;z-index:60;left:0;top:calc(100% + 8px);width:280px;max-width:calc(100vw - 32px);padding:12px 14px;background:#fff;border:1px solid var(--cem-line);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.16)}
.cem-fpop[hidden]{display:none}
.cem-fpop fieldset{border:0;margin:0;padding:0;min-width:0}
.cem-fpop legend{padding:0;margin:0 0 6px;font:700 12px/1.4 var(--cem-font);letter-spacing:.05em;text-transform:uppercase;color:var(--cem-muted)}
.cem-fpop ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.cem-fpop li{margin:0;padding:0}
.cem-fpop label{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:8px;font:600 15px/1.3 var(--cem-font);color:var(--cem-text);cursor:pointer}
.cem-fpop label:hover{background:var(--cem-accent-soft)}
.cem-fpop input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:var(--cem-accent-dark);flex:0 0 auto}
.cem-fpop-act{display:flex;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--cem-line)}
.cem-fpop-act button{padding:8px 12px;border:0;border-radius:6px;background:none;color:var(--cem-accent-dark);font:700 14px/1.2 var(--cem-font);cursor:pointer}
.cem-fpop-act .cem-fdone{background:#8a5a00;color:#fff}
.cem-fpop-act button:focus-visible{outline:2px solid var(--cem-text);outline-offset:2px}
@media (max-width:700px){
  .cem-filters{align-items:center}
  .cem-filters .cem-cats{display:none}
  .cem-fbox{display:block}
  .cem-follow{margin-left:auto}.cem-follow-pop{left:auto;right:0}
}

/* day */
.cem-daylist{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.cem-dayitem{display:grid;grid-template-columns:130px 1fr;gap:14px;padding:16px 18px;border:1px solid var(--cem-line);border-left:4px solid var(--cem-accent);border-radius:10px;background:var(--cem-bg)}
.cem-daytime{font-weight:700;color:var(--cem-accent-dark)}
.cem-daylink{font-weight:700;font-size:18px;line-height:1.3;font-family:var(--cem-font-heading);color:var(--cem-text);text-decoration:none}
.cem-daylink:hover{color:var(--cem-accent-dark)}
.cem-dayitem.is-cancelled .cem-daylink{text-decoration:line-through;opacity:.7}
.cem-dayitem em{font-size:12px;color:var(--cem-cancel);font-style:normal;font-weight:700;margin-left:6px}
@media (max-width:560px){.cem-dayitem{grid-template-columns:1fr;gap:4px}}

/* floating preview (month) */
.cem-tipbox{position:fixed;z-index:99999;width:380px;max-width:calc(100vw - 16px);background:#fff;border:1px solid var(--cem-line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.2);overflow:hidden;pointer-events:none;font-family:var(--cem-font);color:var(--cem-text)}
.cem-tipbox[hidden]{display:none!important} /* !important: .has-img (display:flex) is more specific and kept the card visible */
.cem-tipbox.has-img{display:flex;align-items:stretch}
.cem-tip-img{display:block;flex:0 0 132px;width:132px;height:auto;max-height:260px;object-fit:cover;object-position:center top}
.cem-tip-b{padding:12px 14px 14px;min-width:0;flex:1}
.cem-tip-when{font-weight:700;font-size:12px;line-height:1.4;font-family:var(--cem-font);letter-spacing:.05em;text-transform:uppercase;color:var(--cem-accent-dark)}
.cem-tip-title{font-weight:700;font-size:16px;line-height:1.3;font-family:var(--cem-font-heading);margin:3px 0}
.cem-tip-venue{font-size:13px;font-weight:600;color:var(--cem-muted)}
.cem-tip-b p{margin:6px 0 0;font-size:13px;line-height:1.5}
.cem-tip-sub{margin-top:4px;font-size:13px;font-weight:600;color:var(--cem-accent-dark)}
.cem-sub{margin:2px 0 6px;font-size:15px;font-weight:600;color:var(--cem-accent-dark)}
.cem-tipbox .cem-chips{margin-top:8px}

/* list on small screens */
@media (max-width:720px){
  .cem-card{min-height:0;display:flex;flex-direction:column}
  .cem-poster{position:relative;right:auto;top:auto;bottom:auto;width:100%;height:190px;order:-1}
  .cem-card:before{display:none}
  .cem-cbody{width:100%;min-height:0;padding:16px 18px 20px}
  .cem .cem-title{font-size:19px}
  .cem-nav select{flex:1 1 130px}
  .cem-h{font-size:26px;margin-top:44px}
  .cem-bar{padding:0}.cem-search{padding-left:14px;flex-basis:100%}.cem-searchbtn{border-radius:0}.cem-views{width:100%;border-top:1px solid var(--cem-line)}
}

/* single event */
.ce-single{font-family:var(--cem-font)}
.ce-when{margin:0 0 18px;font-weight:700;font-size:14px;line-height:1.5;font-family:var(--cem-font);letter-spacing:.05em;text-transform:uppercase;color:var(--cem-accent-dark)}
.ce-dates{margin:28px 0 0}
.ce-dates h2{font-weight:700;font-size:20px;line-height:1.3;font-family:var(--cem-font-heading);margin:0 0 10px}
.ce-dates ul{list-style:none;margin:0 0 8px;padding:0}
.ce-date{display:flex;flex-wrap:wrap;gap:4px 14px;padding:8px 12px;border-bottom:1px solid var(--cem-line)}
.ce-date .ce-day{font-weight:600}
.ce-date .ce-time{color:var(--cem-muted)}
.ce-date em{color:var(--cem-cancel);font-style:normal;font-weight:700;font-size:12px}
.ce-date.is-cancelled .ce-day,.ce-date.is-cancelled .ce-time{text-decoration:line-through;opacity:.7}
.ce-date.is-picked{background:var(--cem-accent-soft);border-left:4px solid var(--cem-accent);border-radius:4px}
.ce-dates summary{cursor:pointer;color:var(--cem-accent-dark);font-weight:600;padding:6px 0}
.ce-past .ce-date{opacity:.7}
.ce-dates a{color:var(--cem-accent-dark)}

/* details in columns (when / venue / organizers) */
.ce-meta{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:24px 40px;margin:32px 0 0;padding:24px 0;border-top:1px solid var(--cem-line);border-bottom:1px solid var(--cem-line);font-size:14px;line-height:1.6}
.ce-meta-h{margin:0 0 12px;padding:0;font:700 14px/1.4 var(--cem-font);text-transform:uppercase;letter-spacing:.06em;color:var(--cem-text)}
.ce-meta dl{margin:0 0 10px}
.ce-meta dl>div{margin:0 0 10px}
.ce-meta dt{font-weight:700;color:var(--cem-text)}
.ce-meta dt::after{content:":"}
.ce-meta dd{margin:0;color:var(--cem-muted)}
.ce-meta .ce-meta-rates{grid-column:1/-1}
.ce-meta table.ce-fares.ce-fares{width:100%;max-width:560px;margin:0;border:0;table-layout:auto;border-collapse:collapse;font-size:15px;line-height:1.45;background:none}
.ce-meta .ce-fares.ce-fares th,.ce-meta .ce-fares.ce-fares td{padding:10px 2px;border:0;border-bottom:1px solid var(--cem-line);background:none;vertical-align:baseline;text-align:left}
.ce-meta .ce-fares tr:first-child>*{border-top:1px solid var(--cem-line)}
.ce-meta .ce-fares th{font-weight:400;color:var(--cem-text);padding-right:24px}
.ce-meta .ce-fares td{text-align:right;white-space:nowrap;font-weight:700;color:var(--cem-accent-dark);font-variant-numeric:tabular-nums}
.ce-meta .ce-fares .ce-fare-note td{text-align:left;white-space:normal;font-weight:400;font-style:italic;color:var(--cem-muted)}
.ce-meta p{margin:0 0 10px;padding:0;color:var(--cem-muted)}
.ce-meta .ce-meta-name{font-weight:700;color:var(--cem-text);margin-bottom:2px}
.ce-meta a{color:var(--cem-accent-dark)}

/* "add to your calendar": button with a menu */
.ce-cal{position:relative;display:inline-block;margin:28px 0 0}
/* pulsanti di link (blocco «links»); accanto a «Salva nel tuo calendario»: pulsanti impilati a sinistra, calendario a destra */
.ce-links{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:28px 0 0}
.ce-b-actions{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 24px;margin:28px 0 0}
.ce-b-actions .ce-links,.ce-b-actions .ce-cal{margin:0}
.ce-b-actions .ce-actions-cal{margin-left:auto}
.ce-single .ce-b-actions .ce-cal ul{left:auto;right:0}
.ce-single .ce-link-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid var(--cem-accent);border-radius:4px;background:var(--cem-accent);color:#fff;font:700 14px/1.2 var(--cem-font);text-decoration:none;transition:background .2s,border-color .2s,color .2s}
.ce-single .ce-link-btn:hover,.ce-single .ce-link-btn:focus-visible{background:var(--cem-accent-dark);border-color:var(--cem-accent-dark);color:#fff}
.ce-single .ce-link-btn:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:2px}
@media (max-width:560px){.ce-b-actions .ce-actions-cal{margin-left:0}}
.ce-cal-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid var(--cem-accent);border-radius:4px;background:#fff;color:var(--cem-accent-dark);font:700 14px/1.2 var(--cem-font);cursor:pointer;list-style:none;user-select:none}
.ce-cal-btn::-webkit-details-marker{display:none}
.ce-cal-btn:hover,.ce-cal[open] .ce-cal-btn{background:var(--cem-accent);border-color:var(--cem-accent);color:#fff}
.ce-cal-btn:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:2px}
.ce-cal[open] .ce-cal-caret{transform:rotate(180deg)}
.ce-single .ce-cal ul{position:absolute;z-index:20;left:0;top:calc(100% + 4px);min-width:100%;margin:0;padding:6px 0;list-style:none;background:#fff;border:1px solid var(--cem-line);border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.ce-single .ce-cal li{margin:0;padding:0;list-style:none}
.ce-cal li a{display:block;padding:8px 16px;color:var(--cem-text);text-decoration:none;white-space:nowrap;font-size:14px}
.ce-cal li a:hover,.ce-cal li a:focus-visible{background:var(--cem-accent-soft);color:var(--cem-accent-dark)}

/* single event: navigation, title, schedule line, poster (above the text by default, second column with ce-single--poster-right) */
.ce-single{display:flex;flex-direction:column;gap:18px}
.ce-nav{order:-4;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;align-items:center;font-size:14px}
.ce-nav a{color:var(--cem-text);text-decoration:none;font-weight:600}
.ce-nav a:hover{color:var(--cem-accent-dark)}
.ce-pn{display:flex;gap:10px;margin-left:auto}
.ce-pn a{padding:6px 12px;border:1px solid var(--cem-line);border-radius:4px;font-size:13px}
.ce-pn a:hover{border-color:var(--cem-accent)}
.ce-head{order:-3}
.ce-title{margin:0;padding:0}
.ce-sub{margin:6px 0 0;font:600 20px/1.4 var(--cem-font-heading);color:var(--cem-accent-dark)}
.ce-sub2{margin:4px 0 0;font-weight:700;font-size:16px;line-height:1.45}
.ce-when{order:-2;margin:0}
.ce-aside{order:-1;display:flex;flex-direction:column;gap:16px;min-width:0}
.ce-aside:empty{display:none}
.ce-poster{margin:0;max-width:640px}
.ce-poster-img{display:block;width:100%;height:auto;border-radius:6px}
@media (min-width:900px){
  .ce-single--poster-right{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,38%);column-gap:48px;row-gap:12px;align-items:start;grid-template-areas:"nav nav" "title title" "when poster" "text poster"}
  .ce-single--poster-right .ce-nav{grid-area:nav}
  .ce-single--poster-right .ce-head{grid-area:title}
  .ce-single--poster-right .ce-when{grid-area:when}
  .ce-single--poster-right .ce-text{grid-area:text}
  .ce-single--poster-right .ce-aside{grid-area:poster;position:sticky;top:90px}
  .ce-single--poster-right .ce-poster{max-width:none}
}
/* Divi prints the featured image under the title by itself: the plugin shows the poster in its own place */
body.single-ce_event .et_post_meta_wrapper>img,body.single-ce_event .et_post_meta_wrapper .et_featured_image{display:none}

.cem-cats{display:flex;flex-wrap:wrap;gap:8px;margin:-12px 0 22px}
.cem-cat{border:1px solid var(--cem-line);background:var(--cem-bg);color:var(--cem-text);border-radius:999px;padding:6px 14px;font:600 13px/1.3 var(--cem-font);cursor:pointer}
.cem-cat:hover{border-color:var(--cem-accent-dark)}
.cem-cat.is-active{background:var(--cem-accent-dark);border-color:var(--cem-accent-dark);color:#fff}

/* page templates: ticket box (any template) */
.ce-ticket{display:flex;border:1px solid var(--cem-line);border-radius:10px;background:#fffdf8;overflow:hidden}
.ce-ticket-date{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:92px;padding:14px 12px;background:var(--cem-accent-dark);color:#fff;line-height:1.1}
.ce-ticket-date small{font-size:12px;text-transform:uppercase;letter-spacing:.1em;opacity:.85}
.ce-ticket-date b{font:700 36px/1 var(--cem-font-heading)}
.ce-ticket-date span{font-size:14px;font-weight:600;text-transform:capitalize}
.ce-ticket-b{padding:14px 16px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0}
.ce-ticket-b p{margin:0;padding:0}
.ce-ticket-time{font-weight:700}.ce-ticket-time small{font-weight:400;color:var(--cem-muted)}
.ce-ticket-venue{color:var(--cem-muted);font-size:14px}
.ce-ticket-price{font:700 18px/1.3 var(--cem-font-heading);color:var(--cem-accent-dark)}
.ce-ticket-btn{display:inline-block;margin-top:6px;padding:10px 20px;border-radius:7px;background:var(--cem-accent);color:#fff;font-weight:700;font-size:14px;text-decoration:none}
.ce-ticket-btn:hover{background:var(--cem-accent-dark);color:#fff}
.ce-ticket-btn.is-ghost{background:#fff;color:var(--cem-accent-dark);border:1px solid var(--cem-accent)}
.ce-ticket-btn.is-ghost:hover{background:var(--cem-accent-soft);color:var(--cem-accent-dark)}
/* template: blurred cover */
html:has(body.single-ce_event) {overflow-x:clip}
body.single-ce_event{overflow-x:clip}
.ce-tpl-blur{gap:0}
.ce-tpl-blur .ce-hero{position:relative;overflow:hidden;width:100vw;margin-left:calc(50% - 50vw);background:#2a2420 var(--ce-bg) center/cover}
.ce-tpl-blur .ce-hero::before{content:"";position:absolute;inset:-40px;background:inherit;filter:blur(22px) brightness(.42) saturate(1.1)}
.ce-tpl-blur .ce-hero-in{position:relative;max-width:1180px;margin:0 auto;padding:26px 24px 44px;display:flex;flex-direction:column;gap:22px}
.ce-tpl-blur .ce-hero .ce-nav a{color:#fff}.ce-tpl-blur .ce-hero .ce-pn a{border-color:rgba(255,255,255,.4)}
.ce-tpl-blur .ce-hero-row{display:grid;grid-template-columns:230px minmax(0,1fr);gap:36px;align-items:end}
.ce-tpl-blur .ce-hero .ce-aside{order:0}
.ce-tpl-blur .ce-hero .ce-poster{box-shadow:0 18px 40px rgba(0,0,0,.4);color:#fff}
.ce-tpl-blur .ce-hero .ce-title,.ce-tpl-blur .ce-hero .ce-sub,.ce-tpl-blur .ce-hero .ce-sub2{color:#fff}
.ce-tpl-blur .ce-hero .ce-when{color:#f4c45c}
.ce-tpl-blur .ce-body{display:grid;gap:36px;align-items:start;padding-top:30px}
.ce-tpl-blur .ce-body.has-ticket{grid-template-columns:minmax(0,1fr) 340px}
.ce-tpl-blur .ce-body .ce-aside{order:0;position:sticky;top:90px}
@media (max-width:760px){.ce-tpl-blur .ce-hero-row{grid-template-columns:1fr}.ce-tpl-blur .ce-hero .ce-poster{max-width:240px}.ce-tpl-blur .ce-body.has-ticket{grid-template-columns:1fr}}
/* template: half and half */
.ce-tpl-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 48px;align-items:start}
.ce-tpl-split .ce-split-p{position:sticky;top:70px;align-self:start;min-height:70vh;border-radius:6px;background:#eee center top/cover no-repeat}
.ce-tpl-split .ce-split-t{display:flex;flex-direction:column;gap:18px;min-width:0}
@media (max-width:760px){.ce-tpl-split{grid-template-columns:1fr}.ce-tpl-split .ce-split-p{position:static;min-height:0;aspect-ratio:3/4;order:2}.ce-tpl-split .ce-split-t{order:1}}

/* single event: cancelled / postponed */
.ce-state{margin:0 0 18px;padding:12px 16px;border-left:5px solid var(--cem-postponed,#b35400);border-radius:4px;background:#fff4e8;font-size:15px;line-height:1.5}
.ce-state--cancelled{border-left-color:var(--cem-cancel);background:#fdeeee}

/* featured events carousel */
.cef{position:relative;font-family:var(--cem-font);color:var(--cem-text);--cef-gap:20px;--cef-per:3}
.cef *,.cef *::before,.cef *::after{box-sizing:border-box}
.cef .cef-title{margin:0 0 18px;padding:0;font:400 30px/1.25 var(--cem-font-heading);text-align:center}
.cef-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--cef-per) - 1) * var(--cef-gap)) / var(--cef-per));gap:var(--cef-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 10px}
.cef-track::-webkit-scrollbar{display:none}
.cef-track:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:4px;border-radius:12px}
.cef--compact{--cef-per:4;--cef-gap:16px}
@media (max-width:1000px){.cef{--cef-per:2}}
@media (max-width:640px){.cef,.cef--compact{--cef-per:1.18;--cef-gap:14px}}
.cef-card{position:relative;scroll-snap-align:start;aspect-ratio:4/5;border-radius:var(--cef-r-card,calc(var(--cem-radius) + 4px));overflow:hidden;background:#2a2420;color:#fff;cursor:pointer;box-shadow:0 10px 26px rgba(40,26,10,.18);isolation:isolate}
.cef--compact .cef-card{aspect-ratio:3/4;border-radius:var(--cef-r-card,var(--cem-radius))}
.cef-pic{position:absolute;inset:0;z-index:-1}
.cef-pic img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center top;transition:transform .6s ease}
.cef-card:hover .cef-pic img,.cef-card:focus-within .cef-pic img{transform:scale(1.045)}
.cef-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(22,15,9,.94) 0%,rgba(22,15,9,.78) 32%,rgba(22,15,9,.12) 62%,rgba(22,15,9,0) 100%)}
.cef-card.is-noimg{background:linear-gradient(150deg,#5b4326,#2a2420)}
.cef-card.is-ended .cef-pic img{filter:saturate(.12) brightness(.88)}
.cef-card:focus-within{outline:3px solid var(--cem-gold);outline-offset:3px}
.cef-card .cem-tag{top:18px;bottom:auto}
.cef-card .cem-tag--tr,.cef-card .cem-tag--br{top:76px;left:auto;right:0}
.cef-date{position:absolute;top:14px;right:14px;display:flex;flex-direction:column;align-items:center;min-width:54px;padding:7px 8px 6px;border-radius:var(--cef-r-date,12px);background:rgba(255,255,255,.94);color:var(--cem-text);box-shadow:0 4px 12px rgba(0,0,0,.18);line-height:1}
.cef-date b{font:700 24px/1 var(--cem-font-heading)}
.cef-date span{margin-top:3px;font:700 11px/1 var(--cem-font);text-transform:uppercase;letter-spacing:.08em;color:var(--cem-accent-dark)}
.cef-body{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:22px 22px 22px}
.cef .cef-body .cef-when{margin:0;padding:0;font:700 12px/1.4 var(--cem-font);letter-spacing:.06em;text-transform:uppercase;color:#ffcf6b}
.cef .cef-body .cef-name{margin:0;padding:0;font:700 22px/1.25 var(--cem-font-heading);color:#fff;letter-spacing:0;text-transform:none}
.cef .cef-name a{color:inherit;text-decoration:none}
.cef .cef-name a::after{content:"";position:absolute;inset:0;z-index:1}
.cef .cef-body .cef-sub,.cef .cef-body .cef-where{margin:0;padding:0;font-size:14px;line-height:1.4;color:rgba(255,255,255,.88)}
.cef .cef-where{font-weight:600}
.cef-btn{margin-top:10px;padding:9px 18px;border-radius:var(--cef-r-btn,999px);background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.55);color:#fff;font:700 13px/1.2 var(--cem-font);transition:background .2s}
.cef-btn.is-book{background:var(--cem-gold);border-color:var(--cem-gold);color:var(--cem-gold-ink)}
.cef-card:hover .cef-btn{background:#fff;border-color:#fff;color:var(--cem-text)}
.cef--compact .cef-body{padding:16px}
.cef--compact .cef-body .cef-name{font-size:17px}
.cef--compact .cef-sub{display:none}
.cef--compact .cef-btn{display:none}
.cef-ctrl{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:10px}
.cef-prev,.cef-next,.cef-play{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--cef-arrows,var(--cem-text));opacity:var(--cef-op,.7);cursor:pointer;transition:opacity .2s,color .2s,background .2s}
.cef-play{width:24px;height:24px}
.cef-prev svg,.cef-next svg{width:18px;height:18px}
.cef-prev svg path,.cef-next svg path{stroke-width:1.5}
.cef-prev:hover,.cef-next:hover,.cef-play:hover{opacity:1;color:var(--cef-accent,var(--cem-accent-dark));background:var(--cef-hover,var(--cem-accent-soft))}
.cef-prev:focus-visible,.cef-next:focus-visible,.cef-play:focus-visible,.cef-dot:focus-visible{outline:2px solid var(--cef-accent,var(--cem-accent-dark));outline-offset:2px;opacity:1}
.cef-play .cef-i-play{display:none}.cef-play.is-paused .cef-i-play{display:inline}.cef-play.is-paused .cef-i-pause{display:none}
.cef-dots{display:flex;gap:7px;align-items:center}
.cef-dot{width:18px;height:3px;padding:0;border:0;border-radius:3px;background:var(--cef-bar,rgba(63,59,51,.22));cursor:pointer;transition:background .25s,width .25s}
.cef-dot.is-on{width:30px;background:var(--cem-accent)}
/* fixed height strip (shortcode height="…"): smaller cards */
.cef--fixed .cef-card{aspect-ratio:auto;height:var(--cef-h,192px);min-height:120px}
.cef--fixed .cef-body{padding:14px 16px}
.cef--fixed .cef-body .cef-name{font-size:16px}
.cef--fixed .cef-body .cef-when{font-size:11px}
.cef--fixed .cef-sub,.cef--fixed .cef-where{display:none}
.cef--fixed .cef-btn{margin-top:6px;padding:6px 14px;font-size:12px}
.cef--fixed .cef-date{top:10px;right:10px;min-width:44px;padding:5px 6px 4px}
.cef--fixed .cef-date b{font-size:19px}
.cef--fixed .cem-tag{top:12px}
@media (prefers-reduced-motion:reduce){.cef-pic img,.cef-dot{transition:none}}
.cef--fixed .cef-card{box-shadow:0 3px 8px rgba(40,26,10,.16)}.cef--fixed .cef-track{padding:2px 2px 12px}

/* month cards: button for the ended events that are hidden */
.cem-showended-w{margin:14px 0 0;text-align:center}
.cem-showended-w[hidden]{display:none}
.cem-showended{border:1px solid var(--cem-line);background:var(--cem-bg);border-radius:999px;padding:8px 18px;font:600 13px/1.3 var(--cem-font);color:var(--cem-accent-dark);cursor:pointer}
.cem-showended:hover,.cem-showended:focus-visible{border-color:var(--cem-accent);outline:0}
/* list: every card the same height on wide screens (long titles, subtitles and «Next date» no longer make one taller) */
.cem-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px}
.cem-foot .cem-chips{margin-top:0}
@media (min-width:721px){
  .cem-card{height:280px;min-height:0}
  .cem-cbody{height:100%;min-height:0;overflow:hidden;padding:18px 26px}
  .cem .cem-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .cem .cem-desc{-webkit-line-clamp:2;margin-top:4px}
  .cem-card:has(>.cem-tag--tl,>.cem-tag--tr) .cem-cbody{padding-top:38px}
  .cem-card:has(>.cem-tag--bl,>.cem-tag--br) .cem-cbody{padding-bottom:38px}
}
/* featured carousel title in a fixed-height strip */
.cef--fixed .cef-title{margin:0 0 6px;padding:0;font:700 13px/1.3 var(--cem-font);letter-spacing:.1em;text-transform:uppercase;text-align:left;color:var(--cem-accent-dark)}

/* fixed-height strip: title and controls on one line above the cards, cards down to the bottom edge of the box */
.cef--fixed{position:relative;padding-top:34px}
.cef--fixed .cef-title{position:absolute;top:0;left:0;margin:0;line-height:30px;height:30px}
.cef--fixed .cef-ctrl{position:absolute;top:0;right:0;margin:0;height:30px;gap:8px}
.cef--fixed .cef-prev,.cef--fixed .cef-next{width:28px;height:28px}
.cef--fixed .cef-dot{width:14px}.cef--fixed .cef-dot.is-on{width:24px}
.cef--fixed .cef-track{padding:0 2px 0}
.cef--fixed .cef-card{box-shadow:0 2px 6px rgba(40,26,10,.14)}
.et_pb_module:has(> .et_pb_text_inner > .cef--fixed){margin-bottom:0!important}

/* list cards: the content always fits (long titles get an ellipsis; the script below also trims lines if needed) */
@media (min-width:721px){
  .cem-cbody{justify-content:safe center}
  .cem .cem-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cem-card--dense .cem-title,.cem-fit2 .cem-title{-webkit-line-clamp:1}
  .cem-fit1 .cem-desc{-webkit-line-clamp:1}
  .cem-fit3 .cem-next{display:none}
  .cem-fit4 .cem-desc{display:none}
}
@media (min-width:721px){.cem-cbody>*{flex-shrink:0}}
@media (min-width:721px){
  .cem-cbody{gap:2px}
  .cem .cem-sub{margin:0;line-height:1.35}
  .cem .cem-title{line-height:1.25}
  .cem-dt{margin:0 0 2px}
  .cem-foot{margin-top:6px}
  .cem .cem-desc{margin-top:2px;line-height:1.45}
}

/* [cal_eventi_cards]: cards anywhere, compact cards, text list */
.cem-cards{max-width:none;margin:0}
.cem-cards--compact .cem-desc{display:none}
.cem-cards--compact .cem-card{min-height:170px}
.cem-cards-empty{margin:0;padding:14px 16px;border:1px dashed var(--cem-line);border-radius:10px;background:#faf8f2;font-weight:600;color:var(--cem-muted)}
.cem-tlist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cem-titem{margin:0;padding:0}
.cem-titem a{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border:1px solid var(--cem-line);border-left:4px solid var(--cem-accent);border-radius:8px;background:var(--cem-bg);color:var(--cem-text);text-decoration:none}
.cem-titem a:hover,.cem-titem a:focus-visible{border-color:var(--cem-accent-dark);border-left-color:var(--cem-accent-dark)}
.cem-titem a:focus-visible{outline:2px solid var(--cem-text);outline-offset:2px}
.cem-twhen{font-weight:700;font-size:15px;line-height:1.35;color:var(--cem-accent-dark)}
.cem-ttitle{font-size:14px;line-height:1.4}
.cem-titem.is-ended a{border-left-color:var(--cem-ended);opacity:.8}
.cem-titem.is-cancelled .cem-twhen{text-decoration:line-through}
.cem-tstate{display:inline-block;margin:4px 0 0;font-size:12px;font-weight:700;color:var(--cem-muted)}
.cem-titem.is-cancelled .cem-tstate,.cem-titem.is-postponed .cem-tstate{color:var(--cem-cancel)}
/* Divi gives lists in the content bullets and padding: not in our lists */
.cem .cem-fpop ul,.cem ul.cem-tlist{list-style:none!important;padding:0!important;margin:0!important}
.cem .cem-fpop li,.cem .cem-tlist li{list-style:none!important}
.cem p.cem-cards-empty{padding:14px 16px!important;text-align:center}

/* Etichette nelle zone (Badges.php): stato, prezzo, ingresso libero; una sotto l'altra se sono nella stessa zona */
.cem-badges{position:absolute;z-index:5;display:flex;flex-direction:column;gap:6px;align-items:flex-start;pointer-events:none}
.cem-badges .cem-tag{position:static}
.cem-badges--tl{top:14px;left:0}
.cem-badges--tr{top:14px;right:0;align-items:flex-end}
.cem-badges--bl{bottom:14px;left:0;flex-direction:column-reverse}
.cem-badges--br{bottom:14px;right:0;align-items:flex-end;flex-direction:column-reverse}
.cem-badges--tc{top:0;left:50%;transform:translateX(-50%);align-items:center;gap:4px}
.cem-badges--bc{bottom:0;left:50%;transform:translateX(-50%);align-items:center;gap:4px;flex-direction:column-reverse}
.cem-badges--tr .cem-tag,.cem-badges--br .cem-tag{border-radius:6px 0 0 6px;padding:7px 12px 7px 15px}
.cem-badges--tc .cem-tag{border-radius:0 0 6px 6px;padding:6px 14px;white-space:nowrap}
.cem-badges--bc .cem-tag{border-radius:6px 6px 0 0;padding:6px 14px;white-space:nowrap}
.cem-badges--itl{top:10px;left:10px}
.cem-badges--itr{top:10px;right:10px;align-items:flex-end}
.cem-badges--ibl{bottom:10px;left:10px;flex-direction:column-reverse}
.cem-badges--ibr{bottom:10px;right:10px;align-items:flex-end;flex-direction:column-reverse}
.cem-badges--itl .cem-tag,.cem-badges--itr .cem-tag,.cem-badges--ibl .cem-tag,.cem-badges--ibr .cem-tag{border-radius:6px;padding:5px 11px;font-size:12px}
.cem-gpic{position:relative}
.cem-tag--price{background:#3a5b2c}
.cem-tag--free{background:#1f6f78}
.cem-chip--price{background:#eef3ea;color:#3a5b2c}
.cem-chip--free{background:#e2f1f2;color:#155a61}
.cem-toptags{display:flex;flex-wrap:wrap;gap:4px 0;margin:0 0 6px}
.cem-toptags .cem-tag{margin-bottom:0}
/* spazio per il testo solo per le etichette che stanno sopra il testo (Badges::areas): --cem-bt/--cem-bb zone a sinistra e al
   centro, --cem-bta/--cem-bba tutte le zone (card senza locandina, telefono, griglia del mese). Le zone sopra la locandina non tolgono spazio. */
@media (min-width:721px){
  .cem-card:not(.cem-card--noimg)[style*="--cem-bt:"] .cem-cbody{padding-top:calc(4px + var(--cem-bt) * 38px)}
  .cem-card:not(.cem-card--noimg)[style*="--cem-bb:"] .cem-cbody{padding-bottom:calc(4px + var(--cem-bb) * 38px)}
  .cem-card--noimg[style*="--cem-bta:"] .cem-cbody{padding-top:calc(4px + var(--cem-bta) * 38px)}
  .cem-card--noimg[style*="--cem-bba:"] .cem-cbody{padding-bottom:calc(4px + var(--cem-bba) * 38px)}
}
@media (max-width:720px){ /* la locandina è in alto: le etichette in alto stanno sopra l'immagine */
  .cem-card--noimg[style*="--cem-bta:"] .cem-cbody{padding-top:calc(8px + var(--cem-bta) * 38px)}
  .cem-card[style*="--cem-bba:"] .cem-cbody{padding-bottom:calc(8px + var(--cem-bba) * 38px)}
}
.cem-gcard[style*="--cem-bba:"] .cem-gbody{padding-bottom:calc(16px + var(--cem-bba) * 36px)}
/* carosello: la data è in alto a destra */
.cef-card .cem-badges--tl{top:18px}
.cef-card .cem-badges--tr{top:76px}
.cem-cards-compact .cem-badges .cem-tag{font-size:11px;padding:4px 10px 4px 8px}
@media (min-width:721px){ /* lista: la parte sinistra della locandina è coperta dalla sfumatura, le etichette partono dove l'immagine si vede */
  .cem-poster .cem-badges--itl,.cem-poster .cem-badges--ibl{left:44%}
}

/* carosello in evidenza con sfondo/padding forzati dallo shortcode (sfondo, colore, padding) */
.cef--box{background:var(--cef-bg,transparent);padding:var(--cef-pt,0) var(--cef-pr,0) var(--cef-pb,0) var(--cef-pl,0);border-radius:var(--cef-r-box,var(--cem-radius))}
.cef .cef-title{color:var(--cef-ink,inherit)}
.cef--fixed .cef-title{color:var(--cef-ink,var(--cem-accent-dark))}
.cef--fixed.cef--box{padding-top:calc(var(--cef-pt,0px) + 34px)}
.cef--fixed.cef--box .cef-title{top:var(--cef-pt,0px);left:var(--cef-pl,0px);}
.cef--fixed.cef--box .cef-ctrl{top:var(--cef-pt,0px);right:var(--cef-pr,0px)}
.cef--img{background-image:linear-gradient(var(--cef-veil,transparent),var(--cef-veil,transparent)),var(--cef-img);background-size:cover;background-position:var(--cef-pos,center);background-repeat:no-repeat}
/* Telefono: carosello in evidenza a altezza fissa, comandi (frecce, pausa, barre) sotto le card e non sopra, dove coprono il titolo */
@media (max-width:640px){
.cef--fixed .cef-ctrl,.cef--fixed.cef--box .cef-ctrl{position:static;top:auto;right:auto;height:auto;margin:8px 0 0;justify-content:center}
.cef--fixed .cef-track{padding-bottom:2px}
}
/* Telefono: la card attiva è al centro, le vicine (precedente e successiva) restano appena visibili ai bordi, più piccole e più tenui (profondità) */
@media (max-width:640px){
.cef .cef-track{grid-auto-columns:100%;gap:8px;padding-left:13%;padding-right:13%;scroll-padding-left:13%;scroll-padding-right:13%}
.cef .cef-card{transform:scale(.83);opacity:.72;transition:transform .35s ease,opacity .35s ease;transform-origin:right center}
.cef .cef-card.is-active ~ .cef-card{transform-origin:left center}
.cef .cef-card.is-active{transform:none;opacity:1}
}
@media (max-width:640px) and (prefers-reduced-motion:reduce){.cef .cef-card{transition:none}}
@media (max-width:640px){.cef.cef--jumping .cef-card{transition:none!important}}

/* opening (vernissage) under the date line of the event page */
.ce-when .ce-opening{display:block;margin-top:4px;font-weight:600;font-size:14px;letter-spacing:0;text-transform:none}

/* programme of the day and day-by-day timetable (Program.php) */
.ce-prog,.ce-tt{margin:28px 0 0}
.ce-prog h2,.ce-tt h2{font-weight:700;font-size:20px;line-height:1.3;font-family:var(--cem-font-heading);margin:0 0 12px}
.ce-prog-list{list-style:none;margin:0;padding:0;border-left:2px solid var(--cem-accent-soft,#efe3c8)}
.ce-prog-list li{position:relative;display:grid;grid-template-columns:7.5em 1fr;gap:4px 14px;padding:8px 0 10px 16px}
.ce-prog-list li::before{content:"";position:absolute;left:-6px;top:15px;width:10px;height:10px;border-radius:50%;background:var(--cem-accent-dark,#8a5a00)}
.ce-prog-time{font-weight:700;font-variant-numeric:tabular-nums;color:var(--cem-accent-dark,#8a5a00);white-space:nowrap}
.ce-prog-b{display:flex;flex-direction:column;gap:2px}
.ce-prog-t{font-weight:700}
.ce-prog-x{font-size:.95em;line-height:1.5}
.ce-prog-space{display:inline-block;margin-top:3px;font-size:.85em;opacity:.8}
.ce-prog-space::before{content:"\1F4CD\FE0E  "}
@media (max-width:640px){.ce-prog-list li{grid-template-columns:1fr}}
.ce-tt-tabs{display:none;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.ce-tt-tab{border:1px solid var(--cem-border,#e4ddcd);background:#fff;color:inherit;border-radius:999px;padding:6px 12px;font:600 13px/1.2 var(--cem-font);cursor:pointer}
.ce-tt-tab[aria-selected="true"]{background:var(--cem-accent-dark,#8a5a00);border-color:var(--cem-accent-dark,#8a5a00);color:#fff}
.ce-tt-tab:focus-visible{outline:2px solid var(--cem-accent-dark,#8a5a00);outline-offset:2px}
.ce-tt-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.ce-tt-day h3{font-size:16px;font-weight:700;margin:0 0 6px}
.ce-tt-tbl{width:100%;border-collapse:collapse;font-size:15px}
.ce-tt-tbl th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;opacity:.75;padding:4px 8px 6px 0;border-bottom:1px solid var(--cem-border,#e4ddcd)}
.ce-tt-tbl td{vertical-align:top;padding:8px 8px 8px 0;border-bottom:1px solid var(--cem-border,#e4ddcd)}
.ce-tt-time{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--cem-accent-dark,#8a5a00)}
.ce-tt-space{font-size:.9em;opacity:.85}
@media (max-width:640px){
  .ce-tt.has-tabs .ce-tt-tabs{display:flex}
  .ce-tt.has-tabs .ce-tt-day{display:none}
  .ce-tt.has-tabs .ce-tt-day.is-on{display:block}
  .ce-tt.has-tabs .ce-tt-day h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
/* carosello in evidenza da telefono: titolo al massimo su 2 righe, niente riga della data (c'è già il riquadro con giorno e mese) */
@media (max-width:640px){
.cef .cef-body .cef-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cef .cef-body .cef-when{display:none}
}

/* «compact» toolbar (filter cal_eventi_toolbar = compact): search on the left, small buttons on the right,
   view buttons on the row of the first month heading */
.cem--compact .cem-bar{flex-wrap:nowrap;gap:10px 16px;margin:0 0 16px;padding:0;border:0;background:none}
.cem--compact .cem-search{flex:0 1 50%;padding-left:14px;border:1px solid var(--cem-line);border-radius:8px;background:var(--cem-bg)}
.cem-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.cem--compact .cem-follow{margin-left:0}
.cem-actbox{position:relative}
.cem-act,.cem--compact .cem-follow-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 12px;border-radius:6px;font:700 12.5px/1.3 var(--cem-font);white-space:nowrap;text-decoration:none;cursor:pointer}
.cem-act{border:1px solid #d9c39b;background:var(--cem-bg);color:#8a5a00}
.cem-act:hover,.cem-act[aria-expanded=true]{border-color:#8a5a00;background:var(--cem-accent-soft);color:#6b4500}
.cem-act:focus-visible{outline:2px solid var(--cem-text);outline-offset:2px}
.cem-act svg{flex:none}
.cem-act--wa svg{color:#1f8a4c}
.cem-act .cem-short{display:none}
.cem-actbox .cem-follow-pop{width:340px}
.cem--compact .cem-filters{align-items:center;margin:0 0 24px}
/* the same space under the filters in every view: the first element of the content adds no top margin of its own */
.cem--compact .cem-body>:first-child,.cem--compact .cem-body>:first-child>:first-child,.cem--compact .cem-body>:first-child>:first-child>:first-child{margin-top:0}
.cem--compact .cem-filters .cem-views{margin-left:auto}
.cem--compact .cem-views{flex:none;display:inline-flex;gap:4px;width:auto;padding:3px;border:1px solid var(--cem-line);border-radius:8px;background:var(--cem-bg)}
.cem--compact .cem-view{padding:7px 12px;border:0;border-radius:6px;font-size:13px}
.cem--compact .cem-view.is-active{border:0;background:var(--cem-accent-soft);color:#8a5a00}
@media (max-width:720px){
  .cem--compact .cem-bar{flex-wrap:wrap}
  .cem--compact .cem-search{flex-basis:100%}
  .cem--compact .cem-searchbtn{border-radius:0 6px 6px 0}
  /* phone: the buttons above the search, all on one row */
  .cem-actions{position:relative;order:-1;flex-wrap:nowrap;gap:6px;width:100%;margin:0}
  .cem-actions>*{flex:1 1 0;min-width:0}
  .cem-actions .cem-act,.cem-actions .cem-follow-btn{width:100%;padding:8px 6px}
  .cem-actions .cem-actbox,.cem-actions .cem-follow{position:static}
  .cem-actions .cem-follow-pop{left:0;right:0;width:auto}
  .cem-act .cem-long{display:none}.cem-act .cem-short{display:inline}
  .cem--compact .cem-views{width:auto;border-top:1px solid var(--cem-line)}
}
/* month view on phones: arrows, «This month» and the month title on one row; the small calendar can be dragged sideways */
@media (max-width:760px){
  .cem-mini{touch-action:pan-y}
  .cem-navbar{flex-wrap:nowrap;gap:8px;justify-content:space-between}
  .cem-navbtns{gap:4px;flex:none}
  .cem-navbtn{padding:6px 9px;font-size:18px}
  .cem-today{padding:8px 8px;font-size:12.5px}
  .cem-navt{min-width:0}
  .cem .cem-navtitle{font-size:clamp(14px,4vw,19px)}
  .cem-mp-btn{gap:2px;margin:0;padding:4px 6px;white-space:nowrap}
  .cem-mp-btn .cem-caret{width:16px;height:16px}
  .cem-mp{left:auto;right:0}
}

/* event page layouts (Layouts.php): zones (hero, top, two columns or one, bottom) filled with blocks */
.ce-lay{--ce-gap:12px;display:flex;flex-direction:column;gap:var(--ce-gap)}
.ce-lay .ce-z{display:flex;flex-direction:column;gap:var(--ce-gap);min-width:0}
/* programme, dates, calendar, details… have their own top margin (as when they were inside the text): no extra gap */
.ce-lay .ce-b+.ce-b:is(.ce-b-program,.ce-b-timetable,.ce-b-dates,.ce-b-calendar,.ce-b-details,.ce-b-after){margin-top:calc(-1 * var(--ce-gap))}
.ce-lay .ce-b{min-width:0}
.ce-lay .ce-z-cols .ce-poster{max-width:none}
.ce-lay .ce-fill{min-height:70vh;border-radius:6px;background:#eee center top/cover no-repeat}
@media (min-width:900px){
  .ce-lay .ce-z-cols{display:grid;grid-template-columns:var(--ce-cols);column-gap:48px;align-items:start}
  .ce-lay .ce-z-cols.is-sticky-left>.ce-z-left,.ce-lay .ce-z-cols.is-sticky-right>.ce-z-right{position:sticky;top:90px}
  .ce-lay .ce-z-cols.has-fill-left>.ce-z-left,.ce-lay .ce-z-cols.has-fill-right>.ce-z-right{top:70px}
  .ce-lay .ce-z-cols>.ce-z-right:has(>.ce-b-poster:first-child),.ce-lay .ce-z-cols>.ce-z-right:has(>.ce-b-ticket:first-child){gap:16px}
}
/* hero: band at the top (blurred poster, colour or nothing) */
.ce-lay.has-hero>.ce-hero+*{margin-top:12px}
.ce-lay .ce-hero{position:relative;overflow:hidden;width:100vw;margin-left:calc(50% - 50vw)}
.ce-lay .ce-hero--blur{background:#2a2420 var(--ce-bg) center/cover}
.ce-lay .ce-hero--blur::before{content:"";position:absolute;inset:-40px;background:inherit;filter:blur(22px) brightness(.42) saturate(1.1)}
.ce-lay .ce-hero--color{background:var(--ce-hcol,#2a2420)}
.ce-lay .ce-hero--none{width:auto;margin-left:0;overflow:visible}
.ce-lay .ce-hero-in{position:relative;max-width:1180px;margin:0 auto;padding:26px 24px 44px;display:flex;flex-direction:column;gap:22px}
.ce-lay .ce-hero--none .ce-hero-in{max-width:none;padding:0}
.ce-lay .ce-hero-row{display:flex;flex-direction:column;gap:12px}
.ce-lay .ce-hero-row.has-poster{display:grid;grid-template-columns:230px minmax(0,1fr);gap:36px;align-items:end}
.ce-lay .ce-hero-t{display:flex;flex-direction:column;gap:12px;min-width:0}
.ce-lay .ce-hero:not(.ce-hero--none) .ce-nav a{color:#fff}
.ce-lay .ce-hero:not(.ce-hero--none) .ce-pn a{border-color:rgba(255,255,255,.4)}
.ce-lay .ce-hero:not(.ce-hero--none) .ce-poster{box-shadow:0 18px 40px rgba(0,0,0,.4);color:#fff}
.ce-lay .ce-hero:not(.ce-hero--none) .ce-title,.ce-lay .ce-hero:not(.ce-hero--none) .ce-sub,.ce-lay .ce-hero:not(.ce-hero--none) .ce-sub2{color:#fff}
.ce-lay .ce-hero:not(.ce-hero--none) .ce-when{color:#f4c45c}
.ce-lay .ce-hero .ce-text,.ce-lay .ce-hero .ce-details{color:inherit}
/* phones and tablets: one column in the order chosen for phones (the hero stays at the top) */
@media (max-width:899px){
  .ce-lay{--ce-gap:18px}
  .ce-lay>.ce-z,.ce-lay .ce-z-cols>.ce-z{display:contents}
  .ce-lay>.ce-z>.ce-b,.ce-lay .ce-z-cols>.ce-z>.ce-b{order:var(--o,50)}
  .ce-lay>.ce-hero{order:-1}
  .ce-lay .ce-fill{min-height:0;aspect-ratio:3/4}
}
@media (max-width:760px){
  .ce-lay .ce-hero-row.has-poster{grid-template-columns:1fr}
  .ce-lay .ce-hero-p .ce-poster{max-width:240px}
}
@media (min-width:900px){.ce-lay .ce-z-cols.cols-side-r,.ce-lay .ce-z-cols.cols-side-l{column-gap:36px}}
.ce-lay .ce-z-cols.has-fill-left>.ce-z-right,.ce-lay .ce-z-cols.has-fill-right>.ce-z-left{--ce-gap:18px}
.ce-lay .ce-hero-t{gap:0}.ce-lay .ce-hero-t>.ce-b+.ce-b:not(.ce-b-when){margin-top:12px}

/* event page: poster that opens in full screen (same look as the photo gallery) */
.ce-poster-zoom{display:block;cursor:zoom-in;border-radius:6px}
.ce-poster-zoom:focus-visible{outline:2px solid var(--cem-accent-dark);outline-offset:3px}
html.ce-plb-lock{overflow:hidden}
.ce-plb{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(20,17,13,.97);color:#f3ede3;transition:opacity .35s ease}
.ce-plb[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:60px 0 16px}
.ce-plb::backdrop{background:rgba(0,0,0,.85);transition:opacity .35s ease}
.ce-plb.is-fading,.ce-plb.is-fading::backdrop{opacity:0}
.ce-plb-stage{position:relative;flex:1 1 auto;width:100%;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}
.ce-plb-img{max-width:calc(100vw - 32px);max-height:calc(100dvh - 140px);width:auto;height:auto;object-fit:contain;cursor:zoom-in;opacity:0;transition:opacity .2s ease;transform-origin:center center;user-select:none;-webkit-user-drag:none}
.ce-plb-stage.is-zoomed .ce-plb-img{cursor:grab}.ce-plb-stage.is-zoomed:active .ce-plb-img{cursor:grabbing}
.ce-plb-tools{position:absolute;z-index:2;top:max(10px,env(safe-area-inset-top));right:14px;display:flex;gap:6px}
.ce-plb-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.ce-plb-btn:hover,.ce-plb-btn:focus-visible,.ce-plb-z[aria-pressed=true]{background:var(--cem-accent,#e09900)}
.ce-plb-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ce-plb-img.is-in{opacity:1}
.ce-plb-cap{margin:0;padding:0 16px;max-width:60em;text-align:center;font-size:15px;line-height:1.4;cursor:default}
.ce-plb-cap:empty{display:none}
@media (prefers-reduced-motion:reduce){.ce-plb,.ce-plb::backdrop,.ce-plb-img{transition:none}}
