:root {
  --acl-primary: var(--nectar-accent-color, #ef4a35);
  --acl-secondary: var(--nectar-extra-color-1, #175bd4);
  --acl-accent: var(--nectar-extra-color-2, #f1d743);
  --acl-ink: #17202a;
  --acl-muted: #65707c;
  --acl-paper: #f7f3ec;
  --acl-white: #fff;
  --acl-border: rgba(23, 32, 42, .14);
  --acl-radius: 22px;
  --acl-radius-small: 12px;
  --acl-shadow: 0 18px 50px rgba(23, 32, 42, .1);
  --acl-content: 1240px;
}

.acl-site, .acl-site * { box-sizing: border-box; }
.acl-site { color: var(--acl-ink); font-family: inherit; line-height: 1.55; }
.acl-site a { color: inherit; }
.acl-site h1, .acl-site h2, .acl-site h3 { margin: 0; color: var(--acl-ink); letter-spacing: -.035em; }
.acl-site h1 { font-size: clamp(3rem, 7.2vw, 7.5rem); line-height: .92; }
.acl-site h2 { font-size: clamp(2.1rem, 4vw, 4.6rem); line-height: 1; }
.acl-site h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.12; }
.acl-site p { margin-top: 0; }
.acl-site img { max-width: 100%; height: auto; }

.acl-section, .acl-page-hero, .acl-hero { width: min(calc(100% - 40px), var(--acl-content)); margin-inline: auto; }
.acl-section { padding: clamp(62px, 8vw, 120px) 0; }
.acl-eyebrow { margin: 0 0 16px; font-size: .76rem; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.acl-section__heading { max-width: 780px; }
.acl-section__top, .acl-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.acl-section__top .acl-section__heading { margin-bottom: 0; }

.acl-hero { position: relative; overflow: hidden; min-height: min(760px, 82vh); margin-top: 24px; padding: clamp(48px, 8vw, 110px); display: flex; align-items: center; border-radius: var(--acl-radius); background: var(--acl-paper); }
.acl-hero__inner { position: relative; z-index: 2; width: min(820px, 78%); }
.acl-hero__lead { max-width: 720px; margin: 30px 0 0; font-size: clamp(1.15rem, 2vw, 1.7rem); }
.acl-hero__shape { position: absolute; right: -3%; bottom: -15%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--acl-accent); display: grid; place-items: center; transform: rotate(-13deg); }
.acl-hero__shape span { position: absolute; font-size: clamp(8rem, 19vw, 20rem); font-weight: 900; line-height: .7; color: var(--acl-secondary); }
.acl-hero__shape span:last-child { transform: translate(16%, 18%); color: var(--acl-primary); mix-blend-mode: multiply; }

.acl-page-hero { margin-top: 24px; padding: clamp(70px, 10vw, 150px) clamp(32px, 7vw, 100px); border-radius: var(--acl-radius); background: var(--acl-paper); }
.acl-page-hero > p:last-child { max-width: 800px; margin: 30px 0 0; font-size: clamp(1.1rem, 2vw, 1.55rem); }

.acl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.acl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; border: 2px solid transparent; border-radius: 999px; font-size: .94rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.acl-button:hover { transform: translateY(-2px); }
.acl-button--primary { background: var(--acl-primary); color: var(--acl-white) !important; }
.acl-button--ghost { border-color: var(--acl-ink); background: transparent; color: var(--acl-ink) !important; }
.acl-button--light { background: var(--acl-white); color: var(--acl-ink) !important; }
.acl-text-link { display: inline-flex; gap: 9px; align-items: center; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }

.acl-intro, .acl-rich-text { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 8vw, 130px); align-items: start; }
.acl-intro__copy, .acl-rich-text__body { font-size: clamp(1.1rem, 1.7vw, 1.45rem); }
.acl-intro__copy p:last-of-type, .acl-rich-text__body p:last-of-type { margin-bottom: 28px; }

.acl-card-grid { display: grid; gap: 24px; }
.acl-card-grid--events { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acl-card-grid--places { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acl-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--acl-border); border-radius: var(--acl-radius); background: var(--acl-white); transition: transform .25s ease, box-shadow .25s ease; }
.acl-card:hover { transform: translateY(-6px); box-shadow: var(--acl-shadow); }
.acl-card__media { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.acl-card__media--placeholder { background: linear-gradient(135deg, var(--acl-secondary), var(--acl-accent)); }
.acl-card__body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.acl-card__body h3 { margin: 10px 0 16px; }
.acl-card__body h3 a { text-decoration: none; }
.acl-card__body > .acl-text-link { align-self: flex-start; margin-top: auto; }
.acl-card__excerpt { color: var(--acl-muted); }
.acl-date { margin: 12px 0 0; color: var(--acl-primary); font-weight: 800; }
.acl-event-card .acl-tags + .acl-date { margin-top: 20px; }
.acl-tags, .acl-service-list, .acl-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.acl-tags span, .acl-service-list span, .acl-chip-list span { padding: 7px 11px; border-radius: 999px; background: var(--acl-paper); font-size: .72rem; font-weight: 800; line-height: 1.2; }
.acl-card__meta { margin: 2px 0 22px; }
.acl-card__meta > div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--acl-border); }
.acl-card__meta dt { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.acl-card__meta dd { margin: 0; font-size: .9rem; }
.acl-place-address { color: var(--acl-muted); }
.acl-place-card .acl-service-list { margin-bottom: 24px; }

.acl-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--acl-border); }
.acl-category-grid a { display: grid; grid-template-columns: 55px 1fr auto; gap: 18px; align-items: center; min-height: 95px; padding: 20px 0; border-bottom: 1px solid var(--acl-border); text-decoration: none; }
.acl-category-grid a:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--acl-border); }
.acl-category-grid a:nth-child(even) { padding-left: 28px; }
.acl-category-grid span { color: var(--acl-muted); font-size: .78rem; }
.acl-category-grid strong { font-size: clamp(1.15rem, 2vw, 1.7rem); }
.acl-category-grid em { font-size: 1.8rem; font-style: normal; color: var(--acl-primary); }

.acl-cta { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: clamp(50px, 8vw, 100px); padding: clamp(50px, 7vw, 90px); border-radius: var(--acl-radius); color: var(--acl-white); background: var(--acl-secondary); }
.acl-cta h2, .acl-cta .acl-eyebrow { color: var(--acl-white); }
.acl-cta h2 { max-width: 850px; }

.acl-number-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 45px; background: var(--acl-border); border: 1px solid var(--acl-border); }
.acl-number-grid article { min-height: 220px; padding: 30px; background: var(--acl-white); }
.acl-number-grid span { display: block; margin-bottom: 60px; color: var(--acl-primary); font-size: .78rem; font-weight: 800; }
.acl-number-grid p { margin: 0; font-size: 1.15rem; font-weight: 700; }
.acl-chip-list { margin-top: 35px; }
.acl-chip-list span { padding: 13px 18px; font-size: .9rem; }

.acl-filter-panel { margin-top: 70px; padding: 30px; border-radius: var(--acl-radius); background: var(--acl-paper); }
.acl-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.acl-filter-grid--places { grid-template-columns: 2fr 1fr 1fr; }
.acl-filter-grid label { display: flex; flex-direction: column; gap: 7px; }
.acl-filter-grid label > span { font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.acl-filter-grid input, .acl-filter-grid select { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--acl-border); border-radius: var(--acl-radius-small); background: var(--acl-white); font: inherit; }
.acl-filter-actions { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.acl-results-heading { margin-bottom: 30px; }
.acl-results-heading p { margin: 0; }
.acl-empty { padding: 55px; border: 1px dashed var(--acl-border); border-radius: var(--acl-radius); text-align: center; background: var(--acl-paper); }

.acl-map { width: 100%; min-height: 650px; overflow: hidden; border-radius: var(--acl-radius); background: var(--acl-paper); }
.acl-map-popup h3 { margin: 0 0 8px; font-size: 1.05rem; }
.acl-map-popup p { margin: 0 0 8px; }

.acl-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.acl-contact-grid article { padding: 35px; border: 1px solid var(--acl-border); border-radius: var(--acl-radius); }
.acl-contact-grid h3 { margin-bottom: 22px; }

.acl-single-details { margin-top: 55px; }
.acl-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.acl-detail-grid section { padding: 32px; border-radius: var(--acl-radius); background: var(--acl-paper); }
.acl-detail-grid dl { margin: 0; }
.acl-detail-grid dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid var(--acl-border); }
.acl-detail-grid dt { font-weight: 800; }
.acl-detail-grid dd { margin: 0; }
.acl-note { margin-top: 24px; padding: 22px; border-left: 4px solid var(--acl-primary); background: var(--acl-paper); }
.acl-place-events { margin-top: 80px; }

@media (max-width: 1100px) {
  .acl-card-grid--events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acl-card-grid--places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acl-number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .acl-section, .acl-page-hero, .acl-hero { width: min(calc(100% - 24px), var(--acl-content)); }
  .acl-hero { min-height: 650px; padding: 38px 25px; align-items: flex-start; }
  .acl-hero__inner { width: 100%; }
  .acl-hero__shape { right: -25%; bottom: -9%; width: 88%; }
  .acl-page-hero { padding: 62px 24px; }
  .acl-intro, .acl-rich-text { grid-template-columns: 1fr; gap: 30px; }
  .acl-section__top, .acl-results-heading, .acl-cta { align-items: flex-start; flex-direction: column; }
  .acl-card-grid--events, .acl-card-grid--places, .acl-contact-grid, .acl-detail-grid, .acl-number-grid { grid-template-columns: 1fr; }
  .acl-category-grid { grid-template-columns: 1fr; }
  .acl-category-grid a:nth-child(odd), .acl-category-grid a:nth-child(even) { padding-inline: 0; border-right: 0; }
  .acl-filter-grid, .acl-filter-grid--places { grid-template-columns: 1fr; }
  .acl-filter-panel { padding: 20px; }
  .acl-map { min-height: 500px; }
}

/* Versione 2: blocchi modulari WPBakery */
.acl-builder-block { width: 100%; }
.acl-hero--editable,
.acl-page-hero--editable { background-size: cover; background-position: center; }
.acl-hero--editable h1,
.acl-hero--editable h2,
.acl-hero--editable .acl-eyebrow,
.acl-hero--editable .acl-hero__lead,
.acl-page-hero--editable h1,
.acl-page-hero--editable h2,
.acl-page-hero--editable .acl-eyebrow,
.acl-page-hero--editable p { color: inherit; }
.acl-builder-hero__inner { position: relative; z-index: 2; }
.acl-builder-intro { border-radius: var(--acl-radius); }
.acl-builder-intro--single { display: block; }
.acl-builder-intro--single .acl-intro__copy { max-width: 900px; margin-top: 32px; }
.acl-card-grid--custom { grid-template-columns: repeat(var(--acl-cols, 3), minmax(0, 1fr)); }
.acl-number-grid--custom { grid-template-columns: repeat(var(--acl-cols, 3), minmax(0, 1fr)); }
.acl-contact-grid--custom { grid-template-columns: repeat(var(--acl-cols, 3), minmax(0, 1fr)); }
.acl-partner-chip { padding: 13px 18px; border-radius: 999px; background: var(--acl-paper); font-size: .9rem; font-weight: 800; line-height: 1.2; text-decoration: none; }
.acl-single-hero__image { width: 100%; margin-top: 42px; border-radius: var(--acl-radius); display: block; }
.acl-single-hero .acl-tags { margin-bottom: 18px; }
.acl-single-hero .acl-date { margin: 0 0 18px; }

@media (max-width: 1100px) {
  .acl-card-grid--custom,
  .acl-number-grid--custom,
  .acl-contact-grid--custom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .acl-card-grid--custom,
  .acl-number-grid--custom,
  .acl-contact-grid--custom { grid-template-columns: 1fr; }
}

/* Versione 4: estetica v2 con struttura nativa Salient/WPBakery */
.acl-native-v4,
.acl-native-v4 * { box-sizing: border-box; }
.acl-native-v4 { color: var(--acl-ink); font-family: inherit; line-height: 1.55; }
.acl-native-v4 h1,
.acl-native-v4 h2,
.acl-native-v4 h3 { margin: 0; color: var(--acl-ink); letter-spacing: -.035em; }
.acl-native-v4 h1 { font-size: clamp(3rem, 7.2vw, 7.5rem); line-height: .92; }
.acl-native-v4 h2 { font-size: clamp(2.1rem, 4vw, 4.6rem); line-height: 1; }
.acl-native-v4 h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.12; }
.acl-native-v4 p { margin-top: 0; }
.acl-native-v4 .wpb_text_column:last-child { margin-bottom: 0; }

/* Hero */
.acl-v2-hero-panel { position: relative; overflow: hidden; }
.acl-v2-home-hero-panel { min-height: min(760px, 82vh); display: flex; align-items: center; }
.acl-v2-home-hero-panel > .vc_column-inner { width: 100%; }
.acl-v2-hero-copy { position: relative; z-index: 3; }
.acl-v2-title-block { max-width: 940px; }
.acl-v2-lead-block { max-width: 760px; margin-top: 28px; font-size: clamp(1.15rem, 2vw, 1.7rem); }
.acl-v2-page-hero-panel .acl-v2-lead-block,
.acl-v2-single-hero-panel .acl-v2-lead-block { max-width: 800px; font-size: clamp(1.1rem, 2vw, 1.55rem); }
.acl-v2-single-date { margin-top: 12px; color: var(--acl-primary); font-weight: 800; }
.acl-v2-single-types { margin-bottom: 4px; }

.acl-v2-shape-column { position: relative; z-index: 1; aspect-ratio: 1; min-height: 330px; overflow: hidden; transform: rotate(-13deg); }
.acl-v2-shape-column > .vc_column-inner { min-height: 100%; }
.acl-v2-shape-letter { position: absolute; inset: 0; margin: 0 !important; display: grid; place-items: center; pointer-events: none; }
.acl-v2-shape-letter p { margin: 0; font-size: clamp(8rem, 19vw, 20rem); font-weight: 900; line-height: .7; color: var(--acl-secondary); }
.acl-v2-shape-letter--two { transform: translate(16%, 18%); }
.acl-v2-shape-letter--two p { color: var(--acl-primary); mix-blend-mode: multiply; }

/* Pulsanti nativi WPBakery con lo stile della v2 */
.acl-v2-actions-row { margin-top: 26px; }
.acl-v2-native-button { display: inline-block; margin: 8px 12px 0 0 !important; }
.acl-v2-native-button .vc_btn3 { min-height: 52px; padding: 14px 24px !important; border: 2px solid transparent !important; border-radius: 999px !important; box-shadow: none !important; font-size: .94rem !important; font-weight: 800 !important; line-height: 1.2 !important; text-transform: none !important; transition: transform .2s ease, background .2s ease, color .2s ease !important; }
.acl-v2-native-button .vc_btn3:hover { transform: translateY(-2px); }
.acl-v2-native-button--primary .vc_btn3 { background: var(--acl-primary) !important; color: var(--acl-white) !important; }
.acl-v2-native-button--outline .vc_btn3 { border-color: var(--acl-ink) !important; background: transparent !important; color: var(--acl-ink) !important; }

/* Introduzioni e titoli sezione */
.acl-v2-intro-copy { font-size: clamp(1.1rem, 1.7vw, 1.45rem); }
.acl-v2-heading-link-column { display: flex; justify-content: flex-end; align-items: flex-end; }
.acl-v2-heading-link { text-align: right; }
.acl-v2-heading-link p { margin: 0; }

/* I moduli dinamici conservano esattamente card, filtri e griglie della v2 */
.acl-v2-dynamic-row .acl-builder-block,
.acl-v2-dynamic-row .acl-site,
.acl-v2-dynamic-row .acl-section { width: 100%; max-width: none; margin: 0; padding: 0; }
.acl-v2-dynamic-row .acl-section__top:empty,
.acl-v2-dynamic-row .acl-section__heading:empty { display: none; }

/* Call to action */
.acl-v2-cta-panel,
.acl-v2-cta-panel h2,
.acl-v2-cta-panel p,
.acl-v2-cta-panel .acl-eyebrow { color: var(--acl-white); }
.acl-v2-cta-panel h2 { max-width: 850px; }
.acl-v2-cta-button-column { display: flex; justify-content: flex-end; align-items: flex-end; }
.acl-v2-cta-panel .acl-v2-native-button--outline .vc_btn3 { border-color: var(--acl-white) !important; background: var(--acl-white) !important; color: var(--acl-ink) !important; }

/* Obiettivi, partner e contatti */
.acl-v2-objective-card { min-height: 220px; height: 100%; padding: 30px; border: 1px solid var(--acl-border); background: var(--acl-white); }
.acl-v2-objective-card .acl-v2-number { display: block; margin-bottom: 60px; color: var(--acl-primary); font-size: .78rem; font-weight: 800; }
.acl-v2-objective-card p:last-child { margin: 0; font-size: 1.15rem; }
.acl-v2-partner-card { height: 100%; padding: 20px 22px; border-radius: 999px; background: var(--acl-paper); text-align: center; }
.acl-v2-partner-card p { margin: 0; }
.acl-v2-contact-card { height: 100%; padding: 35px; border: 1px solid var(--acl-border); border-radius: var(--acl-radius); background: var(--acl-white); }
.acl-v2-contact-card h3 { margin-bottom: 22px; }

/* Schede singole */
.acl-v2-featured-image img,
.acl-v2-featured-image img.acl-dynamic-featured-image { width: 100%; height: auto; margin-top: 35px; border-radius: 20px; }
.acl-v2-description-copy { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.65; }
.acl-v2-detail-card { height: 100%; }
.acl-v2-detail-card h3 { margin-bottom: 22px; }
.acl-v2-detail-line { margin: 0 !important; padding: 12px 0; border-top: 1px solid var(--acl-border); }
.acl-v2-detail-line p { margin: 0; }
.acl-v2-single-actions .wpb_text_column { display: inline-block; margin-right: 12px; }
.acl-v2-article-body { font-size: 1.05rem; line-height: 1.75; }

/* Controlli delle griglie dinamiche, mantenuti modificabili */
.acl-card-grid--custom { gap: var(--acl-grid-gap, 24px); }
.acl-card-grid--custom .acl-card { border-radius: var(--acl-card-radius, 22px); background: var(--acl-card-bg, #fff); color: var(--acl-card-color, inherit); }
.acl-card-grid--custom .acl-card h3,
.acl-card-grid--custom .acl-card h3 a,
.acl-card-grid--custom .acl-card a { color: inherit; }
.acl-card-grid--custom .acl-card__body { padding: var(--acl-card-padding, 25px); }

/* Compatibilità visiva per eventuali righe v3 personalizzate che non vengono rigenerate */
.acl-native-v3.acl-native-hero,
.acl-native-v3.acl-native-single-hero { width: min(calc(100% - 40px), var(--acl-content)); margin: 24px auto 0; overflow: hidden; border-radius: var(--acl-radius); background: var(--acl-paper); }
.acl-native-v3.acl-native-hero h1,
.acl-native-v3.acl-native-single-hero h1 { font-size: clamp(3rem, 7.2vw, 7.5rem); line-height: .92; }

@media (max-width: 999px) {
  .acl-v2-home-hero-panel,
  .acl-v2-page-hero-panel,
  .acl-v2-single-hero-panel { padding: 55px 35px !important; }
  .acl-v2-home-hero-panel { min-height: auto; }
  .acl-v2-shape-column { min-height: 260px; margin-top: 35px; }
  .acl-v2-heading-link-column,
  .acl-v2-cta-button-column { justify-content: flex-start; }
  .acl-v2-heading-link { margin-top: 18px; text-align: left; }
  .acl-v2-cta-button-column { margin-top: 24px; }
  .acl-v2-objective-card,
  .acl-v2-partner-card,
  .acl-v2-contact-card,
  .acl-v2-detail-card { margin-bottom: 20px; }
}

@media (max-width: 690px) {
  .acl-v2-home-hero-panel,
  .acl-v2-page-hero-panel,
  .acl-v2-single-hero-panel,
  .acl-v2-cta-panel { padding: 42px 24px !important; border-radius: 18px !important; }
  .acl-v2-shape-column { min-height: 210px; }
  .acl-v2-intro-row,
  .acl-v2-section-heading,
  .acl-v2-description-row,
  .acl-v2-article-body { padding-top: 62px !important; padding-bottom: 62px !important; }
  .acl-v2-native-button { display: block; margin-right: 0 !important; }
  .acl-v2-native-button .vc_btn3 { width: 100%; }
}

/* Programma: vista completa divisa per stato temporale. */
.acl-program-group + .acl-program-group { margin-top: 64px; }
.acl-program-group__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.acl-program-group__heading h2,
.acl-program-group__heading p { margin: 0; }
.acl-program-group__heading p { color: var(--acl-muted); }
@media (max-width: 690px) {
  .acl-program-group__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Mappa eventi: luoghi, appuntamenti e indicazioni stradali. */
.acl-map-summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 18px 34px; align-items: center; margin-bottom: 24px; padding: 22px 24px; border: 1px solid var(--acl-border); border-radius: var(--acl-radius-small); background: var(--acl-paper); }
.acl-map-summary > div { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.acl-map-summary strong { color: var(--acl-primary); font-size: 1.65rem; line-height: 1; }
.acl-map-summary span { font-size: .88rem; font-weight: 700; }
.acl-map-summary p { margin: 0; color: var(--acl-muted); }
.acl-map-empty { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 18px 20px; border-radius: var(--acl-radius-small); background: var(--acl-paper); }
.acl-map-empty span { color: var(--acl-muted); }
.acl-map-admin-note { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--acl-primary); background: var(--acl-paper); font-size: .9rem; }
.acl-map-marker-shell { background: transparent; border: 0; }
.acl-map-pin { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--acl-white); border-radius: 50% 50% 50% 7px; background: var(--acl-primary); color: var(--acl-white); box-shadow: 0 8px 20px rgba(23, 32, 42, .2); transform: rotate(-45deg); }
.acl-map-pin span { font-size: .82rem; font-weight: 900; line-height: 1; transform: rotate(45deg); }
.acl-map-popup { color: var(--acl-ink); font-family: inherit; line-height: 1.4; }
.acl-map-popup h3 { margin: 0 0 7px; font-size: 1.12rem; line-height: 1.15; }
.acl-map-popup__address { margin: 0 0 14px !important; color: var(--acl-muted); font-size: .88rem; }
.acl-map-popup__events { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--acl-border); }
.acl-map-popup__label { margin: 0 0 8px !important; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.acl-map-popup__events ul { max-height: 230px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.acl-map-popup__events li { padding: 10px 0; border-top: 1px solid var(--acl-border); }
.acl-map-popup__events li:first-child { padding-top: 3px; border-top: 0; }
.acl-map-popup__event-top { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: center; margin-bottom: 4px; }
.acl-map-popup__status { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: var(--acl-paper); font-size: .68rem; font-weight: 900; }
.acl-map-popup__date { color: var(--acl-primary); font-size: .74rem; font-weight: 900; }
.acl-map-popup__event-title { display: block; color: var(--acl-ink) !important; font-size: .9rem; font-weight: 800; text-decoration: none; }
.acl-map-popup__event-title:hover { text-decoration: underline; }
.acl-map-popup__time { display: block; margin-top: 2px; color: var(--acl-muted); font-size: .78rem; }
.acl-map-popup__no-events { color: var(--acl-muted); font-size: .85rem; }
.acl-map-popup__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--acl-border); }
.acl-map-popup__actions a { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 11px; border-radius: 999px; font-size: .78rem; font-weight: 900; text-decoration: none; }
.acl-map-popup__directions { background: var(--acl-primary); color: var(--acl-white) !important; }
.acl-map-popup__place { border: 1px solid var(--acl-border); color: var(--acl-ink) !important; background: var(--acl-white); }
.leaflet-popup-content { margin: 16px 18px; }
.leaflet-popup-content-wrapper { border-radius: 16px; }

@media (max-width: 690px) {
  .acl-map-summary { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
  .acl-map-summary p { grid-column: 1 / -1; }
  .acl-map-summary > div { align-items: flex-start; flex-direction: column; gap: 2px; white-space: normal; }
  .acl-map-popup__events ul { max-height: 190px; }
}

/* Mappa v7.4: legenda e pin per categoria */
.acl-map-legend { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; margin: -8px 0 18px; color: var(--acl-muted); font-size: .82rem; font-weight: 750; }
.acl-map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.acl-map-legend i { width: 13px; height: 13px; flex: 0 0 13px; border: 2px solid var(--acl-white); border-radius: 50%; background: var(--acl-legend-color); box-shadow: 0 0 0 1px rgba(23,32,42,.12); }
.acl-map-pin { width: 42px; height: 42px; border-radius: 50% 50% 50% 7px; background: var(--acl-map-pin-color, var(--acl-primary)); }
.acl-map-pin span { min-width: 8px; min-height: 8px; display: grid; place-items: center; }
.acl-map-pin span:empty::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .95; }
.acl-map-popup__category { display: inline-flex; margin: 0 0 7px !important; padding: 4px 8px; border-radius: 999px; background: var(--acl-paper); color: var(--acl-muted); font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }


/* =========================================================
   ACL v7.5.x - override mappa e popup (mantiene il CSS completo)
   ========================================================= */
.acl-map-summary{
    display:flex;
    flex-wrap:wrap;
    gap:18px 28px;
    align-items:flex-start;
    margin:18px 0 0;
    padding:20px 24px;
    border:1px solid rgba(20,26,43,.12);
    border-radius:20px;
    background:#fff;
}
.acl-map-summary > div{display:flex;align-items:baseline;gap:8px;min-width:140px}
.acl-map-summary strong{font-size:2rem;line-height:1;font-weight:700;color:#141a2b}
.acl-map-summary span{font-size:1.05rem;font-weight:600;color:#141a2b}
.acl-map-summary p{flex:1 1 320px;margin:4px 0 0;color:#5b6475}
.acl-map-legend{
    display:flex;
    flex-wrap:wrap;
    gap:10px 14px;
    margin:0 0 16px;
}
.acl-map-legend span{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background:#f6f7fb;
    border:1px solid rgba(20,26,43,.08);
    font-size:.95rem;
    color:#273043;
}
.acl-map-legend i{
    width:28px;
    height:28px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-style:normal;
    background:var(--acl-legend-color,#4b5563);
    color:#fff;
    line-height:1;
    font-size:14px;
}
.acl-map{
    width:100%;
    min-height:420px;
    border-radius:24px;
    overflow:hidden;
    border:1px solid rgba(20,26,43,.12);
    background:#e9eef6;
    box-shadow:0 12px 34px rgba(15,23,42,.08);
}
.acl-section--map-full,
.acl-map-page .acl-section--map-full{
    width:100%;
    max-width:none;
}
.acl-map-page .acl-section--map-full .acl-map,
.acl-map-page .acl-section--map-full .acl-map-summary,
.acl-map-page .acl-section--map-full .acl-map-legend,
.acl-map-page .acl-section--map-full .acl-map-empty,
.acl-map-page .acl-section--map-full .acl-map-admin-note{
    width:100%;
    max-width:none;
}
.acl-map-empty,
.acl-map-admin-note{
    margin-top:16px;
    padding:16px 18px;
    border-radius:18px;
    background:#fff;
    border:1px solid rgba(20,26,43,.1);
    color:#4b5563;
}
.acl-map-empty strong,
.acl-map-admin-note strong{display:block;margin-bottom:4px;color:#141a2b}
.acl-map-popup{min-width:260px;max-width:340px;color:#1f2937}
.acl-map-popup__eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#667085;margin-bottom:6px}
.acl-map-popup h3{margin:0 0 6px;font-size:1.12rem;line-height:1.25;color:#111827}
.acl-map-popup__address{margin:0 0 14px;color:#4b5563;font-size:.95rem}
.acl-map-popup__events{display:grid;gap:10px;margin:0 0 16px}
.acl-map-popup__event{padding:10px 12px;border-radius:0;background:#f8fafc;border:1px solid rgba(20,26,43,.08)}
.acl-map-popup__event strong{display:block;margin-bottom:4px;font-size:.95rem}
.acl-map-popup__event span{display:block;font-size:.86rem;color:#5b6475}
.acl-map-popup__empty{padding:10px 12px;border-radius:0;background:#f8fafc;border:1px dashed rgba(20,26,43,.16);font-size:.92rem;color:#5b6475;margin-bottom:16px}
.acl-map-popup__actions{display:flex;flex-wrap:wrap;gap:10px}
.acl-map-popup__actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:40px;
    padding:0 14px;
    border-radius:0;
    text-decoration:none;
    font-weight:600;
    transition:transform .15s ease, box-shadow .15s ease;
}
.acl-map-popup__actions a:hover{transform:translateY(-1px)}
.acl-map-popup__actions .is-primary{background:#141a2b;color:#fff;box-shadow:0 8px 20px rgba(20,26,43,.16)}
.acl-map-popup__actions .is-secondary{background:#fff;color:#141a2b;border:1px solid rgba(20,26,43,.12)}
.leaflet-container .acl-map-marker{
    width:44px;
    height:56px;
}
.leaflet-container .acl-map-marker svg{display:block;width:44px;height:56px;overflow:visible;filter:drop-shadow(0 10px 16px rgba(15,23,42,.25))}
.leaflet-container .acl-map-marker__glyph{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.leaflet-container .leaflet-popup-content-wrapper{border-radius:0;padding:4px 4px 2px}
.leaflet-container .leaflet-popup-content{margin:12px 12px 14px}
@media (max-width: 767px){
    .acl-map-summary{padding:18px}
    .acl-map-summary strong{font-size:1.6rem}
    .acl-map{min-height:360px;border-radius:18px}
    .acl-map-popup{min-width:220px}
}

/* Home v7.5.4: ritmo verticale più compatto.
   Il hero/header della Home è volutamente escluso per preservare le modifiche fatte nel builder. */
body.home .acl-v2-intro-row {
  padding-top: 62px !important;
  padding-bottom: 62px !important;
}
body.home .acl-v2-section-heading {
  padding-top: 54px !important;
  padding-bottom: 24px !important;
}
body.home .acl-v2-dynamic-row {
  padding-top: 0 !important;
  padding-bottom: 54px !important;
}
body.home .acl-v2-cta-row {
  padding-top: 6px !important;
  padding-bottom: 54px !important;
}
body.home .acl-v2-cta-panel {
  padding-top: 50px !important;
  padding-right: 52px !important;
  padding-bottom: 50px !important;
  padding-left: 52px !important;
}
body.home .acl-v2-intro-row .vc_column_container > .vc_column-inner,
body.home .acl-v2-section-heading .vc_column_container > .vc_column-inner,
body.home .acl-v2-dynamic-row .vc_column_container > .vc_column-inner {
  margin-bottom: 0;
}
body.home .acl-v2-intro-copy {
  line-height: 1.5;
}
body.home .acl-v2-intro-copy p:last-child {
  margin-bottom: 18px;
}
body.home .acl-v2-section-heading .wpb_text_column,
body.home .acl-v2-section-heading .wpb_text_column:last-child {
  margin-bottom: 0;
}
body.home .acl-v2-section-heading .acl-eyebrow {
  margin-bottom: 10px;
}
body.home .acl-v2-dynamic-row .acl-card-grid {
  gap: 18px;
}
body.home .acl-v2-dynamic-row .acl-category-grid {
  margin-top: 18px;
}
body.home .acl-v2-dynamic-row .acl-category-grid a {
  min-height: 78px;
  padding-top: 14px;
  padding-bottom: 14px;
}
body.home .acl-v2-dynamic-row .acl-card__body {
  padding-top: 21px;
  padding-bottom: 21px;
}
body.home .acl-v2-dynamic-row .acl-card__body h3 {
  margin-top: 8px;
  margin-bottom: 12px;
}
body.home .acl-v2-dynamic-row .acl-card__meta {
  margin-bottom: 16px;
}

/* Compatibilità con la Home basata sullo shortcode storico. */
body.home .acl-home > .acl-section:not(.acl-cta) {
  padding-top: 50px;
  padding-bottom: 50px;
}
body.home .acl-home > .acl-intro {
  gap: clamp(30px, 5vw, 70px);
}
body.home .acl-home > .acl-cta {
  margin-bottom: 54px;
  padding: clamp(42px, 5vw, 58px);
}
body.home .acl-home .acl-section__top {
  margin-bottom: 24px;
}
body.home .acl-home .acl-category-grid {
  margin-top: 18px;
}

@media (max-width: 999px) {
  body.home .acl-v2-intro-row {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  body.home .acl-v2-section-heading {
    padding-top: 46px !important;
    padding-bottom: 20px !important;
  }
  body.home .acl-v2-dynamic-row {
    padding-bottom: 46px !important;
  }
  body.home .acl-v2-cta-row {
    padding-bottom: 46px !important;
  }
  body.home .acl-v2-cta-panel {
    padding: 44px 34px !important;
  }
}

@media (max-width: 690px) {
  body.home .acl-v2-intro-row {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }
  body.home .acl-v2-section-heading {
    padding-top: 38px !important;
    padding-bottom: 16px !important;
  }
  body.home .acl-v2-dynamic-row {
    padding-bottom: 38px !important;
  }
  body.home .acl-v2-cta-row {
    padding-bottom: 38px !important;
  }
  body.home .acl-v2-cta-panel {
    padding: 36px 24px !important;
  }
  body.home .acl-v2-dynamic-row .acl-card-grid {
    gap: 14px;
  }
  body.home .acl-home > .acl-section:not(.acl-cta) {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

/* v7.5.6 - informazioni visibili sulle card Luoghi della lettura */
.acl-place-card .acl-card__media { position: relative; overflow: hidden; }
.acl-place-event-badge { position:absolute; top:14px; left:14px; z-index:3; display:inline-flex; align-items:center; padding:7px 11px; border-radius:999px; background:#fff; color:#111; font-size:12px; line-height:1; font-weight:700; box-shadow:0 3px 12px rgba(0,0,0,.16); }
.acl-place-address-overlay { position:absolute; left:14px; right:14px; bottom:14px; z-index:3; display:block; padding:8px 10px; border-radius:10px; background:rgba(0,0,0,.62); color:#fff; font-size:12px; line-height:1.35; font-weight:600; }
@media (max-width:690px) { .acl-place-event-badge { top:10px; left:10px; padding:6px 9px; font-size:11px; } .acl-place-address-overlay { left:10px; right:10px; bottom:10px; font-size:11px; } }
