/* mapsitalia.org tidy pass, 2026-09-30 (MAPS-ITALIA-WEBSITE). Loaded after the theme stylesheet on every static page.
   Goals: one type system, calmer color, one left edge, consistent rhythm, one button. No content changes. */

:root {
  --tidy-navy: #092F56;
  --tidy-cream: #F4F2E9;
  --tidy-red: #CC3623;
  --tidy-radius: 24px;
  --tidy-edge: var(--wp--preset--spacing--80);
}

/* ---------- 1. Type system ---------- */
body { font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { font-family: "ABCDailySlab", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; color: inherit; }
h1 { font-size: clamp(2.5rem, 2rem + 2.2vw, 3.5rem); }
h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
h4, h5, h6 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; line-height: 1.25; }
/* the theme marks sub-headings with has-inter-font-family: those become the one Inter semi-bold style */
.entry-content :is(h2, h3, h4).has-inter-font-family { font-family: "Inter", system-ui, sans-serif !important; font-weight: 600 !important; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem) !important; letter-spacing: -0.005em; line-height: 1.3 !important; }
.entry-content p { max-width: 42rem; }
.has-xxx-large-font-size, .has-xx-large-font-size { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem) !important; }
p.has-x-large-font-size, p.has-large-font-size { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) !important; line-height: 1.35 !important; }
p.has-medium-font-size { font-size: 1.125rem !important; line-height: 1.5 !important; }
.has-small-font-size { font-size: 0.875rem !important; }
/* homepage hero keeps its own scale */
.pattern-homepage-header h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 4rem); hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal !important; word-break: normal !important; }
@media (max-width: 480px) { .pattern-homepage-header h1 { font-size: 1.8rem; } }
/* event cards: slab titles at one size */
.wp-block-post-template h2, .wp-block-post-template h3 { font-size: 1.5rem; line-height: 1.2; }
.is-style-equal-grid h3 { font-size: 1.75rem !important; margin-bottom: 0.5rem !important; }
.is-style-equal-grid h3 + p { margin-top: 0 !important; }

/* ---------- 2. One button ---------- */
.wp-block-button__link, .wp-element-button, .maps-dona-widget a, .maps-dona-widget button {
  font-family: "Inter", system-ui, sans-serif !important; font-weight: 600 !important; font-size: 0.95rem !important;
  line-height: 1.2 !important; padding: 0.8em 1.6em !important; border-radius: 999px !important;
  background: var(--tidy-navy); color: #fff; border: 2px solid var(--tidy-navy); text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.wp-block-button__link:hover, .wp-element-button:hover, .maps-dona-widget a:hover, .maps-dona-widget button:hover { background: #0d3f73; border-color: #0d3f73; color: #fff; }
/* light variant on dark tiles (navy / coral / footer) */
.has-blue-one-background-color .wp-block-button__link, footer .wp-block-button__link, .is-style-outline .wp-block-button__link,
header .wp-block-buttons.hide-mobile .wp-block-button__link {
  background: #fff; color: var(--tidy-navy); border-color: #fff;
}
.has-blue-one-background-color .wp-block-button__link:hover, footer .wp-block-button__link:hover, header .wp-block-buttons.hide-mobile .wp-block-button__link:hover { background: var(--tidy-cream); border-color: var(--tidy-cream); color: var(--tidy-navy); }
.maps-dona-widget a, .maps-dona-widget button { min-width: 7.5rem; }

/* ---------- 3. Color discipline ---------- */
/* mission tiles: white cards with a colored edge instead of four saturated fills */
.is-style-equal-grid > .wp-block-group.has-background {
  background: #fff !important; color: var(--tidy-navy); border: 1px solid rgba(9, 47, 86, .10);
  box-shadow: inset 10px 0 0 var(--tile, var(--tidy-navy)); padding-left: calc(var(--wp--preset--spacing--60) + 10px) !important;
}
.is-style-equal-grid > .has-green-one-background-color { --tile: #AAB08A; }
.is-style-equal-grid > .has-yellow-one-background-color { --tile: #E6A40F; }
.is-style-equal-grid > .has-coral-background-color { --tile: #FF725F; }
.is-style-equal-grid > .has-pink-one-background-color { --tile: #E274A1; }
.is-style-equal-grid > .wp-block-group.has-background h3 { margin-bottom: 0.75rem; }
/* Terapie: navy body, red only for the section title and the "approfondisci" links */
#terapia p, #terapia li, #terapia h3, #terapia h4, #terapia .wp-block-details summary { color: var(--tidy-navy) !important; }
#terapia h2 { color: var(--tidy-red) !important; }
#terapia a { color: var(--tidy-red) !important; }
#terapia hr, #terapia .wp-block-separator { border-color: rgba(204, 54, 35, .35) !important; background: none !important; }

/* ---------- 4. Alignment and rhythm ---------- */
.entry-content.is-layout-constrained > * + * { margin-block-start: 2rem !important; }
/* section titles that sit outside a tile (Eventi on the home page, archive titles): H2 size, room above, a short accent rule below,
   and the same left edge as the tile text, so each section start is unmistakable */
.entry-content > .wp-block-group:not([class*="border-40"]):not(.has-background) > :is(h1, h2, h3):first-child,
.entry-content > :is(h1, h2, h3), main > :is(h1, h2, h3), .wp-block-query-title, h1.archive-title, .tidy-section-title {
  padding-left: var(--tidy-edge); padding-right: var(--tidy-edge);
  font-family: "ABCDailySlab", Georgia, serif; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); font-weight: 400; line-height: 1.1;
  margin-top: 3rem !important; margin-bottom: 1.75rem !important; position: relative;
}
.entry-content > .wp-block-group:not([class*="border-40"]):not(.has-background):not(:first-child):not(header) { margin-top: 3.5rem !important; }
.entry-content > header.pattern-homepage-header, .wp-site-blocks > header.wp-block-template-part { margin-top: 0 !important; }
/* Missione / Visione: text block centred beside the image, no void under the title */
#Missione .wp-block-group.alignfull.is-vertical, #Visione .wp-block-group.alignfull.is-vertical { justify-content: center !important; gap: 1.25rem !important; }
#Missione .wp-block-group.alignfull.is-vertical > *, #Visione .wp-block-group.alignfull.is-vertical > * { margin: 0 !important; }
.is-style-full-height-columns { min-height: 520px !important; }
#Missione [style*="radius:40px"], #Visione [style*="radius:40px"] { border-radius: 0 !important; }
/* media-text tiles (La storia, Dona): text vertically centred against the image */
.wp-block-media-text .wp-block-media-text__content { align-self: center; }
/* crisper corners everywhere */
.is-style-group-border-40-desktop-20-mobile, .is-style-border-40-desktop-20-mobile, .is-style-full-height-columns,
.wp-block-columns[style*="border-radius:40px"], .is-style-border-radius-2-elements .wp-block-media-text__media,
.wp-block-post-template .is-style-group-border-40-desktop-20-mobile, header.wp-block-template-part > .wp-block-group,
.pattern-homepage-header .is-style-border-40-desktop-20-mobile { border-radius: var(--tidy-radius) !important; }
@media (max-width: 781px) { .is-style-group-border-40-desktop-20-mobile, .is-style-border-40-desktop-20-mobile, .is-style-full-height-columns { border-radius: 16px !important; } }
/* event cards: picture, title, meta */
.wp-block-post-template .wp-block-post-featured-image { border-radius: 16px !important; overflow: hidden; }

/* inside a tile, every two-column row shares the same column widths, so stacked rows line up (Bosco credits, training facts) */
@media (min-width: 782px) { .is-style-group-border-40-desktop-20-mobile > .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; } }
/* tile titles (Terapia, Stati espansi, Network): no void under the heading */
.is-style-group-border-40-desktop-20-mobile > h2.alignwide { margin-bottom: 1.5rem !important; }
.is-style-group-border-40-desktop-20-mobile > h2.alignwide + .wp-block-columns, .is-style-group-border-40-desktop-20-mobile > h2.alignwide + .wp-block-group { margin-top: 0 !important; }

/* ---------- 5. Small fixes ---------- */
p.paragraph-line::after { content: none; }
p.paragraph-line { margin-bottom: 1rem; }
footer .wp-block-column p { max-width: 36rem; }
footer .tidy-newsletter { margin-top: 1rem; }
/* homepage hero: a single DONA (the header one); the mobile duplicate under the title is hidden */
@media (max-width: 959px) { .pattern-homepage-header .wp-block-cover__inner-container .wp-block-buttons:not(.hide-mobile) { display: none !important; } }

/* ---------- 6. Newsletter section (Substack posts via /api/substack, 2026-09-30) ---------- */
#newsletter .maps-newsletter-intro { max-width: calc(42rem + 2 * var(--tidy-edge)); margin: 0 0 1.5rem !important; padding-left: var(--tidy-edge); padding-right: var(--tidy-edge); }
.maps-newsletter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; min-height: 8rem; }
@media (max-width: 959px) { .maps-newsletter-grid { grid-template-columns: 1fr; } }
.maps-newsletter-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(9, 47, 86, .10); border-radius: var(--tidy-radius); overflow: hidden; text-decoration: none; color: var(--tidy-navy); transition: transform .15s ease, box-shadow .15s ease; }
.maps-newsletter-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(9, 47, 86, .12); }
.maps-newsletter-cover { display: block; aspect-ratio: 16 / 9; background: var(--tidy-cream); overflow: hidden; }
.maps-newsletter-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.maps-newsletter-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.5rem 1.5rem; }
.maps-newsletter-date { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(9, 47, 86, .65); }
.maps-newsletter-title { font-family: "ABCDailySlab", Georgia, serif; font-size: 1.35rem; line-height: 1.2; }
.maps-newsletter-sub { font-size: 0.95rem; line-height: 1.45; color: rgba(9, 47, 86, .8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.maps-newsletter-more { margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--tidy-red); }
.maps-newsletter-fallback a { color: var(--tidy-red); }
#newsletter .wp-block-buttons { margin-top: 1.5rem; padding-left: var(--tidy-edge); justify-content: flex-start; }

/* ---------- 7. Home training card (concluded edition, 2026-09-30) ---------- */
#training-card { gap: 3rem; align-items: center; }
#training-card h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin-bottom: 1rem; }
#training-card p { max-width: 36rem; }
#training-card .wp-block-buttons { gap: 0.75rem; margin-top: 1.5rem; }
#training-card .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
#training-card .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
#training-card figure { margin: 0; }
#training-card img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 16px; display: block; }
@media (max-width: 781px) { #training-card { gap: 1.5rem; } #training-card img { max-height: 320px; } }

/* ---------- 8. Hero video: no play button, still frame while paused ---------- */
.wp-block-cover__video-background::-webkit-media-controls, .wp-block-cover__video-background::-webkit-media-controls-start-playback-button,
.wp-block-cover__video-background::-webkit-media-controls-panel, .wp-block-cover__video-background::-webkit-media-controls-play-button {
  display: none !important; -webkit-appearance: none !important; opacity: 0 !important; pointer-events: none !important;
}
.wp-block-cover__video-background { pointer-events: none; background-size: cover; background-position: center; }

/* ---------- 9. Cookie banner (Complianz): centred at the bottom, compact, site buttons ---------- */
.cmplz-cookiebanner.cmplz-bottom-right, .cmplz-cookiebanner.cmplz-bottom-left, .cmplz-cookiebanner.cmplz-bottom-center {
  --cmplz_banner_width: 600px;
  left: 50% !important; right: auto !important; bottom: 20px !important; transform: translateX(-50%) !important;
  width: min(600px, calc(100vw - 32px)) !important; max-width: none !important;
  padding: 18px 22px 16px !important; border-radius: 16px !important; border: 1px solid rgba(9, 47, 86, .12) !important;
  box-shadow: 0 16px 48px rgba(9, 47, 86, .18) !important; font-family: "Inter", system-ui, sans-serif !important; color: var(--tidy-navy) !important;
}
.cmplz-cookiebanner .cmplz-divider { display: none !important; }
.cmplz-cookiebanner .cmplz-header { padding: 0 !important; min-height: 0 !important; }
.cmplz-cookiebanner .cmplz-title { font-size: 15px !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--tidy-navy) !important; }
.cmplz-cookiebanner .cmplz-close { width: 22px !important; height: 22px !important; }
.cmplz-cookiebanner .cmplz-body { padding: 0 !important; margin: 0 !important; }
.cmplz-cookiebanner .cmplz-message { font-size: 13.5px !important; line-height: 1.45 !important; margin: 8px 0 12px !important; color: rgba(9, 47, 86, .85) !important; }
.cmplz-cookiebanner .cmplz-message p { margin: 0 !important; max-width: none !important; font-size: inherit !important; }
.cmplz-cookiebanner .cmplz-buttons { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; align-items: center !important; justify-content: flex-start !important; margin: 0 !important; }
.cmplz-cookiebanner .cmplz-btn { font-family: "Inter", system-ui, sans-serif !important; font-size: 13.5px !important; font-weight: 600 !important; line-height: 1.2 !important;
  padding: 0.65em 1.25em !important; border-radius: 999px !important; margin: 0 !important; width: auto !important; min-width: 0 !important; flex: 0 0 auto !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--tidy-navy) !important; color: #fff !important; border: 1.5px solid var(--tidy-navy) !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny { background: transparent !important; color: var(--tidy-navy) !important; border: 1.5px solid rgba(9, 47, 86, .5) !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences, .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background: transparent !important; color: var(--tidy-navy) !important; border: none !important; text-decoration: underline !important; padding: 0.65em 0.4em !important; }
.cmplz-cookiebanner .cmplz-links { margin: 10px 0 0 !important; padding: 0 !important; font-size: 12.5px !important; }
.cmplz-cookiebanner .cmplz-links li { display: none !important; margin: 0 !important; }
.cmplz-cookiebanner .cmplz-links li:has(a.privacy-statement[href]), .cmplz-cookiebanner .cmplz-links li:has(a.cookie-statement[href]:not(:empty)) { display: inline-block !important; margin-right: 12px !important; }
.cmplz-cookiebanner .cmplz-links a { color: var(--tidy-navy) !important; text-decoration: underline !important; }
@media (max-width: 600px) { .cmplz-cookiebanner.cmplz-bottom-right { bottom: 12px !important; padding: 16px 18px 14px !important; } .cmplz-cookiebanner .cmplz-buttons { gap: 6px !important; } }

/* ---------- 10. Header logo never shrinks (the 7-item menu was squeezing it); menu gives way first ---------- */
header .wp-block-site-logo { flex: 0 0 auto !important; }
header .custom-logo { width: 190px !important; max-width: none !important; height: auto !important; }
@media (max-width: 599px) { header .custom-logo { width: 140px !important; } }
@media (min-width: 1260px) { /* was 1100px; inline menu starts at 1260 since 2026-10-01, see section 20 */
  header.pattern-homepage-header .wp-block-navigation ul.wp-block-navigation__container, header.wp-block-template-part .wp-block-navigation ul.wp-block-navigation__container { gap: clamp(0.8rem, 1.9vw, 2.5rem) !important; }
  header.pattern-homepage-header .wp-block-navigation .wp-block-navigation-item__content, header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content { font-size: clamp(0.85rem, 0.3rem + 0.75vw, 1.05rem) !important; }
}
/* cookie banner buttons stay on one row on phones too */
.cmplz-cookiebanner .cmplz-buttons, .cmplz-cookiebanner .cmplz-body > div:has(> .cmplz-btn) { flex-direction: row !important; }
/* (no display override on .cmplz-btn: Complianz keeps the save/preferences buttons hidden until the preferences view) */
@media (max-width: 600px) { .cmplz-cookiebanner .cmplz-message { font-size: 13px !important; } .cmplz-cookiebanner .cmplz-btn { font-size: 13px !important; padding: 0.6em 1.1em !important; } }

/* ---------- 11. Footer: tighter stacked columns on phones, tidy copyright row ---------- */
@media (max-width: 781px) { footer .wp-block-columns { gap: 2rem !important; } }
footer .flex-start-on-mobile { display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; gap: 0.15rem 0.35rem !important; justify-content: flex-start !important; }
footer .flex-start-on-mobile p { margin: 0 !important; font-size: 0.85rem !important; line-height: 1.5 !important; }
@media (max-width: 599px) { footer .flex-start-on-mobile p:last-child { flex-basis: 100% !important; } }
footer .is-content-justification-space-between { margin-top: 2rem !important; }

/* ---------- 12. Hero on phones: animated WebP instead of <video> (iOS gates video autoplay, never animated images) ---------- */
.maps-hero-anim { display: none; }
@media (max-width: 781px), (hover: none) and (pointer: coarse) {
  .pattern-homepage-header .wp-block-cover__video-background { display: none !important; }
  .maps-hero-anim { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; pointer-events: none; }
}

/* ---------- 13. Phone hero: shorter box so it shows a wider slice of the (384px-high) source instead of a thin stretched strip ---------- */
@media (max-width: 599px) {
  header .wp-block-cover { min-height: 560px !important; }
  header .wp-block-cover .wp-block-cover__inner-container, header .wp-block-cover .wp-block-cover__inner-container > .wp-block-group { min-height: 440px !important; }
  header .wp-block-cover .wp-block-cover__inner-container > .wp-block-group { gap: 2.5rem !important; }
}

/* ---------- 14. Team grid: flat wrapping grid of tiles (3:4 photos, name, role) ---------- */
.maps-team-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.5rem; }
@media (max-width: 1099px) { .maps-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px) { .maps-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; } }
.maps-team-tile figure { margin: 0 0 0.75rem; }
.maps-team-tile img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.maps-team-tile p { margin: 0 !important; }

/* ---------- 15. Sostanze: tab strip as compact pills (scrolls sideways on phones), panel on cream with navy text, one body size ---------- */
.wp-block-atbs-tabs .tabs-nav { background: transparent !important; border-radius: 0 !important; margin: 0 0 1.5rem !important; }
.wp-block-atbs-tabs .tabs-nav .tabs-titles { display: flex !important; flex-direction: row !important; background: transparent !important; flex-wrap: wrap !important; justify-content: center !important; gap: 0.5rem !important; margin: 0 !important; padding: 0 !important; list-style: none; }
.wp-block-atbs-tabs .tabs-nav .tabs-titles .tab-title { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; padding: 0.6em 1.25em !important; border-radius: 999px !important; background: #fff !important; color: #092F56 !important; border: 1px solid rgba(9, 47, 86, 0.25) !important; font-family: var(--wp--preset--font-family--inter, Inter, sans-serif) !important; font-weight: 600 !important; font-size: 0.9rem !important; line-height: 1.2 !important; letter-spacing: 0.02em; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.wp-block-atbs-tabs .tabs-nav .tabs-titles .tab-title .tab-title-text { color: inherit !important; }
.wp-block-atbs-tabs .tabs-nav .tabs-titles .tab-title:hover { border-color: #092F56 !important; }
.wp-block-atbs-tabs .tabs-nav .tabs-titles .tab-title.active { background: #092F56 !important; color: #fff !important; border-color: #092F56 !important; }
@media (max-width: 781px) {
  .wp-block-atbs-tabs .tabs-nav .tabs-titles { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 6px !important; }
  .wp-block-atbs-tabs .tabs-nav .tabs-titles::-webkit-scrollbar { display: none; }
  .wp-block-atbs-tabs .tabs-nav .tabs-titles .tab-title { scroll-snap-align: start; }
}
/* the panel content was authored white-on-navy: re-point the theme's "base" (white) color at navy inside it */
.wp-block-atbs-tabs .tabs-content { --wp--preset--color--base: #092F56; background: #F4F2E9 !important; color: #092F56 !important; border-radius: 24px !important; padding: clamp(1.5rem, 5vw, 4.5rem) !important; }
@media (max-width: 781px) { .wp-block-atbs-tabs .tabs-content { border-radius: 16px !important; } }
.wp-block-atbs-tabs .tabs-content .icon-container svg [fill="#fff"], .wp-block-atbs-tabs .tabs-content .icon-container svg [fill="white"] { fill: #092F56 !important; }
.wp-block-atbs-tabs .tabs-content .icon-container svg [stroke="#fff"], .wp-block-atbs-tabs .tabs-content .icon-container svg [stroke="white"] { stroke: #092F56 !important; }
.wp-block-atbs-tabs .tabs-content [style*="border-bottom-color:var(--wp--preset--color--base)"] { border-bottom-color: rgba(9, 47, 86, 0.15) !important; border-bottom-width: 1px !important; }
.wp-block-atbs-tabs .tabs-content :is(p, ul, ol, li, .wp-block-column.has-large-font-size) { font-size: 1.0625rem !important; line-height: 1.6 !important; }
.wp-block-atbs-tabs .tabs-content a:not(.wp-element-button) { color: #092F56 !important; }
.wp-block-atbs-tabs .tabs-content .wp-block-button__link { --wp--preset--color--base: #fff; background: #092F56 !important; color: #fff !important; border: 2px solid #092F56 !important; }
.wp-block-atbs-tabs .tabs-content .wp-block-button__link:hover { background: #0d3f73 !important; border-color: #0d3f73 !important; }

/* ---------- 16. Risorse: VideoPress player fills its column at 16:9 with rounded corners ---------- */
#video .wp-block-embed__wrapper iframe { width: 100% !important; height: auto !important; aspect-ratio: 1280 / 718; border-radius: 16px; display: block; }

/* ---------- 17. Social icons: Instagram + LinkedIn beside DONA (header), icon row in the phone overlay menu ---------- */
.maps-social { display: flex; align-items: center; gap: 0.15rem; }
.maps-social__link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; color: #fff !important; text-decoration: none !important; transition: background-color .15s; }
.maps-social__link svg { display: block; width: 18px; height: 18px; }
.maps-social__link:hover { background: rgba(255, 255, 255, 0.14); }
.maps-social__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
header .wp-block-buttons.hide-mobile { align-items: center !important; flex-wrap: nowrap !important; gap: 0.6rem !important; }
@media (max-width: 599px) { .maps-social--header { display: none !important; } }
header .wp-block-navigation-item.menu-social { display: none !important; }
header .is-menu-open .wp-block-navigation-item.menu-social { display: flex !important; margin-top: 0.75em; }
header .is-menu-open .maps-social--menu { gap: 0.75rem; }
header .is-menu-open .maps-social--menu .maps-social__link { color: currentColor !important; border: 2px solid currentColor; width: 44px; height: 44px; }
header .is-menu-open .maps-social--menu .maps-social__link:hover { background: rgba(9, 47, 86, 0.08); }

/* ---------- 18. Consent: the footer "Gestisci il consenso" button replaces Complianz's floating peek tab (which sat over body text
   on desktop; Complianz already hides it at 768px and below). Clicks are handled by Complianz's delegated button.cmplz-manage-consent listener. */
#cmplz-manage-consent .cmplz-manage-consent { display: none !important; }
.maps-consent-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; line-height: inherit; color: inherit; cursor: pointer; }
.maps-consent-link:hover { text-decoration: underline; }
.maps-consent-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- 19. Risorse: the three resource cards as white design-system cards on the cream section (was legacy teal #83C6CA + an outlined card) ---------- */
#libro, #download, #video { background: #fff !important; border: 1px solid rgba(9, 47, 86, 0.10) !important; border-radius: 24px !important; }
@media (max-width: 781px) { #libro, #download, #video { border-radius: 16px !important; } }

/* ---------- 20. Header fit with the social icons (2026-10-01). Measured: between 1100 and 1259px DONA overflowed the header row
   (85px at 1100, clipped past the navy box) even BEFORE the icons, so the inline 7-item menu now starts at 1260px and the
   hamburger covers 600 to 1259px (same rules as the theme's 600-1099 block). 1260 to 1399px: slightly tighter menu so the icons fit. ---------- */
@media (min-width: 1100px) and (max-width: 1259px) {
  header.pattern-homepage-header .wp-block-navigation__responsive-container-open:not(.always-shown),
  header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) { display: block; }
  header.pattern-homepage-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open),
  header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
  header nav.wp-block-navigation { margin-left: auto; flex: 0 0 auto; }
  header .wp-block-group.is-nowrap.is-layout-flex { gap: 1rem; }
  header .wp-block-navigation-item.menu-dona { display: flex; }
}
@media (min-width: 1260px) and (max-width: 1399px) {
  header.pattern-homepage-header .wp-block-navigation ul.wp-block-navigation__container, header.wp-block-template-part .wp-block-navigation ul.wp-block-navigation__container { gap: clamp(0.75rem, 1.2vw, 1.2rem) !important; }
  header.pattern-homepage-header .wp-block-navigation .wp-block-navigation-item__content, header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content { font-size: 0.85rem !important; }
  header .maps-social--header .maps-social__link { width: 36px; height: 36px; }
  header .wp-block-buttons.hide-mobile { gap: 0.35rem !important; }
}

/* ---------- 21. "Seguici su Instagram" SAMPLE preview (home + Eventi, above the footer; 2026-10-01 staging review).
   Six square sample cards (16px corners), mustard notice that it is sample content, navy CTA to the real profile.
   Row: 4 cards visible >= 1100px, 3 at 782-1099, about 2.2 on phones; native scroll-snap, swipe and keyboard scrolling,
   previous/next buttons added by instagram-preview.js. ---------- */
.maps-ig { margin-top: var(--wp--preset--spacing--80) !important; margin-bottom: var(--wp--preset--spacing--80) !important; }
.maps-ig > .tidy-section-title { margin-bottom: 1rem !important; }
.maps-ig__notice { display: flex; align-items: center; gap: 0.6rem; width: fit-content; max-width: calc(100% - 2 * var(--tidy-edge)); margin: 0 var(--tidy-edge) 1.5rem !important; padding: 0.55rem 1rem; border-radius: 12px; background: rgba(230, 164, 15, 0.16); border: 1px solid rgba(230, 164, 15, 0.6); color: var(--tidy-navy); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.maps-ig__notice-dot { flex: 0 0 auto; width: 0.6rem; height: 0.6rem; border-radius: 999px; background: #E6A40F; }
.maps-ig__track { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 0 6px; border-radius: 16px; }
.maps-ig__track::-webkit-scrollbar { display: none; }
.maps-ig__track:focus-visible { outline: 3px solid var(--tidy-navy); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { .maps-ig__track { scroll-behavior: smooth; } }
.maps-ig__list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); column-gap: 1.25rem; list-style: none; margin: 0 !important; padding: 0 !important; }
@media (max-width: 1099px) { .maps-ig__list { grid-auto-columns: calc((100% - 2 * 1rem) / 3); column-gap: 1rem; } }
@media (max-width: 781px) { .maps-ig__list { grid-auto-columns: calc((100% - 2 * 0.75rem) / 2.2); column-gap: 0.75rem; } }
.maps-ig__card { position: relative; margin: 0 !important; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: var(--tidy-cream); border: 1px solid rgba(9, 47, 86, 0.10); }
.maps-ig__card > img, .maps-ig__art { display: block; width: 100%; height: 100%; object-fit: cover; }
.maps-ig__art--logo { display: grid; place-items: center; background: var(--tidy-navy); }
.maps-ig__art--logo img { width: 64%; height: auto; }
.maps-ig__art--circles { background: radial-gradient(circle at 30% 68%, #FF725F 0 19%, transparent 19.5%), radial-gradient(circle at 68% 34%, #E6A40F 0 23%, transparent 23.5%), radial-gradient(circle at 62% 76%, #AAB08A 0 13%, transparent 13.5%), var(--tidy-cream); }
.maps-ig__badge { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(9, 47, 86, 0.9); color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.03em; text-transform: uppercase; }
.maps-ig__hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 !important; }
.maps-ig__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-left: var(--tidy-edge); padding-right: var(--tidy-edge); }
.maps-ig__bar .wp-block-buttons { margin: 0 !important; }
.maps-ig__nav { display: flex; gap: 0.5rem; }
.maps-ig__nav button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 2px solid var(--tidy-navy); background: #fff; color: var(--tidy-navy); cursor: pointer; transition: background-color .15s, opacity .15s; }
.maps-ig__nav button[hidden] { display: none; }
.maps-ig__nav button:hover { background: var(--tidy-cream); }
.maps-ig__nav button:focus-visible { outline: 3px solid var(--tidy-navy); outline-offset: 3px; }
.maps-ig__nav button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.maps-ig--static .maps-ig__nav { display: none; }

/* ---------- 22. Event cards never widen the page: grid items may shrink below their content and featured images are block-level and
   capped (a thumbnail that fails to load made the home event grid 3000px wide on phones, measured 2026-10-01). ---------- */
.wp-block-post-template.is-layout-grid > li { min-width: 0; }
.wp-block-post-featured-image img { display: block; max-width: 100%; }

/* ---------- 23. Homepage v2 prototype (2026-10-02, STAGING review; markup from home_v2.py). Everything below the hero is one
   editorial column on the shared left edge: statement + four pillars, one navy anchor (training), newsletter, Instagram (newest real
   posts, linked, dated), events list, Terapie accordion on cream (v1 text unchanged), book + resources, people + history, Dona
   (deep links preselect the donations form), network logos. Motion: card lift, accordion icon, smooth row scroll; all off under
   prefers-reduced-motion. ---------- */
.mh { --mh-gap: clamp(3.5rem, 2.25rem + 4vw, 6.5rem); --mh-line: rgba(9, 47, 86, .14); color: var(--tidy-navy); margin-top: 0 !important; padding-bottom: 1rem; }
.entry-content > .mh.alignfull { max-width: none; }
.mh p { max-width: 42rem; }
.mh-sec { box-sizing: border-box; max-width: 1512px; margin: var(--mh-gap) auto 0 !important; padding: 0 var(--tidy-edge); }
.mh-sec:first-child { margin-top: clamp(3rem, 2rem + 3vw, 5rem) !important; }
.mh h2, .mh h3 { margin: 0; }
.mh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.mh-head h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); }
.mh-head__sub { margin: 0.5rem 0 0 !important; color: rgba(9, 47, 86, .78); }
.mh-head__sub a { color: inherit; text-underline-offset: 3px; }
.mh-more, .mh-link { font-weight: 600; font-size: 0.95rem; color: var(--tidy-navy) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; padding: 0.6rem 0; }
.mh-more:hover, .mh-link:hover { text-decoration-thickness: 2px; }
.mh-meta { display: block; font-size: 0.85rem; line-height: 1.4; color: rgba(9, 47, 86, .72); }
.mh-meta-line { font-size: 0.9rem; line-height: 1.5; color: rgba(9, 47, 86, .78); }
.mh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
/* the one button (same grammar as section 2), as a plain link */
.mh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 0.8em 1.6em; border-radius: 999px; background: var(--tidy-navy); color: #fff !important; border: 2px solid var(--tidy-navy); text-decoration: none !important; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.mh-btn:hover { background: #0d3f73; border-color: #0d3f73; }
.mh-btn--light { background: #fff; color: var(--tidy-navy) !important; border-color: #fff; }
.mh-btn--light:hover { background: var(--tidy-cream); border-color: var(--tidy-cream); }
.mh-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); }
.mh-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.mh :is(a, summary, button, [tabindex]):focus-visible { outline: 3px solid var(--tidy-navy); outline-offset: 3px; border-radius: 8px; }
.mh-training :is(a):focus-visible { outline-color: #fff; }
/* card lift (design-system card hover) */
.mh :is(.mh-ig__card, .mh-tile, .mh-event) { transition: transform .15s ease, box-shadow .15s ease; }
.mh :is(.mh-ig__card, .mh-tile):hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(9, 47, 86, .12); }

/* 1. statement + pillars */
.mh-intro__grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.mh-intro__lead { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem) !important; line-height: 1.2 !important; max-width: 30em; }
.mh-intro__vision { font-size: 1.125rem; line-height: 1.5; margin: 0 !important; padding-left: 1.25rem; border-left: 2px solid var(--tidy-red); }
.mh-pillars { list-style: none; margin: 2.75rem 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mh-pillar { margin: 0 !important; background: #fff; border: 1px solid rgba(9, 47, 86, .10); border-radius: var(--tidy-radius); box-shadow: inset 10px 0 0 var(--tile); padding: 1.5rem 1.75rem 1.6rem calc(1.75rem + 10px); }
.mh-pillar h3 { font-size: 1.5rem !important; margin-bottom: 0.5rem !important; }
.mh-pillar p { margin: 0 !important; }
.mh-pillar--1 { --tile: #AAB08A; } .mh-pillar--2 { --tile: #E6A40F; } .mh-pillar--3 { --tile: #FF725F; } .mh-pillar--4 { --tile: #E274A1; }

/* 2. training: the navy anchor */
.mh-training__card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem 3.5rem; align-items: center; background: var(--tidy-navy); color: #fff; border-radius: var(--tidy-radius); padding: clamp(1.75rem, 1rem + 3.5vw, 4rem); }
.mh-training h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem) !important; color: #fff; margin-bottom: 1rem !important; }
.mh-training p { color: rgba(255, 255, 255, .9); max-width: 38rem; margin: 0 !important; }
.mh-training__img { margin: 0 !important; }
.mh-training__img img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 16px; }

/* 3. newsletter (cards from section 6) */
#newsletter.mh-news .maps-newsletter-grid { margin: 0; }

/* 4. Instagram row */
.mh-ig__track { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0; }
.mh-ig__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .mh-ig__track { scroll-behavior: smooth; } }
.mh-ig__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); column-gap: 1.25rem; }
.mh-ig__item { position: relative; margin: 0 !important; scroll-snap-align: start; min-width: 0; }
.mh-ig__track { position: relative; }
.mh-ig__card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid rgba(9, 47, 86, .10); border-radius: 16px; overflow: hidden; color: var(--tidy-navy) !important; text-decoration: none !important; }
.mh-ig__img { display: block; aspect-ratio: 4 / 5; background: var(--tidy-cream); overflow: hidden; }
.mh-ig__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-ig__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1.1rem; }
.mh-ig__cap { font-size: 0.95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mh-ig__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.mh-ig__nav { display: flex; gap: 0.5rem; }
.mh-ig__nav button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 2px solid var(--tidy-navy); background: #fff; color: var(--tidy-navy); cursor: pointer; transition: background-color .15s, opacity .15s; }
.mh-ig__nav button[hidden] { display: none; }
.mh-ig__nav button:hover { background: var(--tidy-cream); }
.mh-ig__nav button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.mh-ig--static .mh-ig__nav { display: none; }

/* 5. events */
.mh-events__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--mh-line); }
.mh-events__list li { margin: 0 !important; }
.mh-event { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.25rem 0; color: var(--tidy-navy) !important; text-decoration: none !important; }
.mh-event__img img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--tidy-cream); }
.mh-event__title { display: block; margin-top: 0.3rem; font-family: "ABCDailySlab", Georgia, serif; font-size: 1.3rem; line-height: 1.2; }
.mh-event:hover .mh-event__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* 6. Terapie: accordion on the cream panel (v1 text; #terapia colours from section 3 apply) */
.mh-panel { background: var(--tidy-cream); border-radius: var(--tidy-radius); padding: clamp(1.5rem, 0.75rem + 3.5vw, 4rem); }
.mh-terapie .mh-head { margin-bottom: 1.25rem; }
.mh-terapie__sub { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem) !important; margin-top: 3rem !important; margin-bottom: 1rem !important; max-width: 30em; color: var(--tidy-navy); }
.mh-terapie__intro p { margin: 0 0 1rem !important; }
.mh-accs { border-bottom: 1px solid rgba(204, 54, 35, .35); }
.mh-acc { border-top: 1px solid rgba(204, 54, 35, .35); margin: 0 !important; }
.mh-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.35; color: var(--tidy-navy); }
.mh-acc > summary::-webkit-details-marker { display: none; }
.mh-acc > summary:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mh-acc__icon { position: relative; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; border: 2px solid currentColor; }
.mh-acc__icon::before, .mh-acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; transition: transform .2s ease; }
.mh-acc__icon::after { transform: rotate(90deg); }
.mh-acc[open] .mh-acc__icon::after { transform: rotate(0deg); }
.mh-acc__body { padding: 0 0 1.5rem; max-width: 46rem; }
.mh-acc__body > :first-child { margin-top: 0 !important; }
.mh-acc__body p, .mh-acc__body li { font-size: 1.0625rem !important; line-height: 1.6 !important; }
.mh-acc__body ul { padding-left: 1.25rem; }
.mh-acc__sub { font-family: "Inter", system-ui, sans-serif !important; font-weight: 600; font-size: 1.0625rem !important; line-height: 1.35 !important; letter-spacing: 0; margin: 1.5rem 0 0.5rem !important; color: var(--tidy-navy); }
@media (prefers-reduced-motion: no-preference) { .mh-acc[open] > .mh-acc__body { animation: mh-reveal .22s ease-out; } }
@keyframes mh-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 7. book + resources */
.mh-res__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.mh-book { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; }
.mh-book__cover { margin: 0 !important; }
.mh-book__cover img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(9, 47, 86, .16); }
.mh-book h3 { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.85rem) !important; margin-bottom: 0.75rem !important; }
.mh-book p { margin: 0 0 1rem !important; }
.mh-res__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 1rem; }
.mh-res__list li { margin: 0 !important; }
.mh-tile { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); background: #fff; border: 1px solid rgba(9, 47, 86, .10); border-radius: var(--tidy-radius); overflow: hidden; color: var(--tidy-navy) !important; text-decoration: none !important; }
.mh-tile__img { background: var(--tidy-cream); }
.mh-tile__img img { display: block; width: 100%; height: 100%; min-height: 8.5rem; object-fit: cover; }
.mh-tile__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem; }
.mh-tile__title { font-family: "ABCDailySlab", Georgia, serif; font-size: 1.3rem; line-height: 1.2; }
.mh-tile__text { font-size: 0.95rem; line-height: 1.45; color: rgba(9, 47, 86, .8); }
.mh-tile__cta { margin-top: auto; padding-top: 0.25rem; font-size: 0.9rem; font-weight: 600; color: var(--tidy-red); }

/* 8. people + history */
.mh-people__grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; max-width: 60rem; }
.mh-person { margin: 0 !important; display: flex; flex-direction: column; gap: 0.15rem; }
.mh-person img { display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 12px; margin-bottom: 0.6rem; background: var(--tidy-cream); }
.mh-person__name { font-weight: 600; line-height: 1.3; }
.mh-person__role { font-size: 0.9rem; color: rgba(9, 47, 86, .75); }
.mh-acc--story { margin-top: 2.25rem !important; border-top: 1px solid var(--mh-line); border-bottom: 1px solid var(--mh-line); max-width: 60rem; }
.mh-story { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; align-items: start; max-width: none; }
.mh-story img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.mh-story p { margin: 0 !important; }

/* 9. Dona */
.mh-dona__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 4rem; align-items: start; background: var(--tidy-cream); border-radius: var(--tidy-radius); padding: clamp(1.5rem, 0.75rem + 3.5vw, 4rem); }
.mh-dona h2 { margin-bottom: 1rem !important; }
.mh-dona__text p { margin: 0 0 1rem !important; }
.mh-dona__label { font-family: "Inter", system-ui, sans-serif !important; font-weight: 600; font-size: 1rem !important; letter-spacing: 0; margin: 0 0 0.6rem !important; }
.mh-amounts + .mh-dona__label { margin-top: 1.5rem !important; }
.mh-amounts { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mh-amounts li { margin: 0 !important; }
.mh-amount { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-width: 7.5rem; min-height: 44px; box-sizing: border-box; padding: 0.8em 1.4em; border-radius: 999px; background: var(--tidy-navy); border: 2px solid var(--tidy-navy); color: #fff !important; font-weight: 600; font-size: 0.95rem; text-decoration: none !important; transition: background-color .15s ease, border-color .15s ease; }
.mh-amount:hover { background: #0d3f73; border-color: #0d3f73; }
.mh-dona__amounts > .mh-link { display: inline-block; margin-top: 1rem; }

/* 10. network */
.mh-net__list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 2.75rem; }
.mh-net__list li { margin: 0 !important; }
.mh-net__list a, .mh-net__item { display: block; padding: 0.25rem; }
.mh-net__list svg { display: block; height: 44px; width: auto; max-width: 150px; filter: grayscale(1); opacity: .8; transition: filter .15s ease, opacity .15s ease; }
.mh-net__list a:hover svg, .mh-net__list a:focus-visible svg { filter: none; opacity: 1; }
.mh-net__list img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .15s ease, opacity .15s ease; }
.mh-net__list a:hover img, .mh-net__list a:focus-visible img { filter: none; opacity: 1; }

@media (max-width: 1099px) {
  .mh-ig__list { grid-auto-columns: calc((100% - 2 * 1rem) / 3); column-gap: 1rem; }
  .mh-events__list { grid-template-columns: 1fr; }
  .mh-res__grid { grid-template-columns: 1fr; }
}
@media (max-width: 959px) {
  .mh-intro__grid, .mh-training__card, .mh-dona__card { grid-template-columns: 1fr; }
  .mh-training__img { order: -1; }
  .mh-training__img img { aspect-ratio: 16 / 9; }
}
@media (max-width: 781px) {
  .mh-pillars { grid-template-columns: 1fr; }
  .mh-ig__list { grid-auto-columns: calc((100% - 0.75rem) / 1.6); column-gap: 0.75rem; }
  .mh-people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-story { grid-template-columns: 1fr; }
  .mh-story img { max-width: 12rem; }
  .mh-net__list { gap: 1.25rem 2rem; }
  .mh-net__list img, .mh-net__list svg { height: 36px; max-width: 120px; }
}
@media (max-width: 599px) {
  .mh-intro__lead { font-size: 1.45rem !important; }
  .mh-pillar { padding: 1.25rem 1.25rem 1.3rem calc(1.25rem + 10px); }
  .mh-pillar h3 { font-size: 1.35rem !important; }
  .mh-book { grid-template-columns: 1fr; gap: 1.25rem; }
  .mh-book__cover { max-width: 9rem; }
  .mh-tile { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .mh-tile__img img { min-height: 7rem; }
  .mh-event { grid-template-columns: 72px minmax(0, 1fr); }
  .mh-event__img img { width: 72px; height: 72px; }
  .mh-amount { min-width: 0; width: 100%; padding: 0.8em 0.5em; white-space: nowrap; }
  .mh-amounts li { flex: 1 1 calc(33.33% - 0.4rem); display: flex; }
  .mh-actions .mh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mh *, .mh *::before, .mh *::after { transition: none !important; animation: none !important; }
  .mh :is(.mh-ig__card, .mh-tile):hover { transform: none; }
}

/* ---------- 24. Exposed desktop navigation (2026-10-02, with homepage v2): the inline 7-item menu shows from 1024px (was 1260px;
   the hamburger stays on tablets and phones). 1024 to 1259px: tighter items and the header Instagram/LinkedIn icons give way
   (they stay in the footer and in the phone overlay). Overrides the theme's 600-1099 block and section 20's 1100-1259 block. ---------- */
@media (min-width: 1024px) and (max-width: 1259px) {
  header.pattern-homepage-header .wp-block-navigation__responsive-container-open:not(.always-shown),
  header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none !important; }
  header.pattern-homepage-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open),
  header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: block !important; position: relative !important; inset: auto !important; width: 100%; z-index: auto; background-color: inherit; }
  header nav.wp-block-navigation { margin-left: auto; flex: 0 1 auto; min-width: 0; }
  header.pattern-homepage-header .wp-block-navigation ul.wp-block-navigation__container, header.wp-block-template-part .wp-block-navigation ul.wp-block-navigation__container { gap: clamp(0.7rem, 1.1vw, 1rem) !important; }
  header.pattern-homepage-header .wp-block-navigation .wp-block-navigation-item__content, header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content { font-size: 0.82rem !important; }
  header .wp-block-navigation-item.menu-dona { display: none !important; }
  header .maps-social--header { display: none !important; }
  header .wp-block-group.is-nowrap.is-layout-flex { gap: 1.25rem; }
}
@media (min-width: 1024px) and (max-width: 1099px) {
  header.pattern-homepage-header .wp-block-navigation ul.wp-block-navigation__container, header.wp-block-template-part .wp-block-navigation ul.wp-block-navigation__container { gap: 0.7rem !important; }
  header.pattern-homepage-header .wp-block-navigation .wp-block-navigation-item__content, header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content { font-size: 0.8rem !important; }
}

/* ---------- 25. Hero for visitors who ask for reduced motion (2026-10-03, Fede: yes). The video and the phone WebP are hidden and the
   cover shows a still frame instead: the desktop poster (hero-poster.jpg) and, where the phone animation would play, frame 48 of
   hero-anim.webp (hero-still-portrait.jpg). hero-video.js also pauses the video so it never decodes in the background. ---------- */
@media (prefers-reduced-motion: reduce) {
  .pattern-homepage-header .wp-block-cover__video-background, .pattern-homepage-header .maps-hero-anim { display: none !important; }
  .pattern-homepage-header .wp-block-cover { background: #000 url(/assets/hero-poster.jpg) center / cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 781px), (prefers-reduced-motion: reduce) and (hover: none) and (pointer: coarse) {
  .pattern-homepage-header .wp-block-cover { background-image: url(/assets/hero-still-portrait.jpg); }
}

/* ---------- 26. Press: "Parlano di noi" homepage strip + /rassegna-stampa/ page (2026-10-03, STAGING; markup from press_build.py,
   data sources/press/press.json). Text cards on cream, outlet name as the mark (no third-party logos), type tag, headline in the slab
   face, date + author at the foot; whole card is the link (new tab). Same lift as the other cards, off under reduced motion. ---------- */
.mh-press__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.mh-press__list--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-press__item { margin: 0 !important; display: flex; }
.mh-press__card { display: flex; flex-direction: column; gap: 0.9rem; width: 100%; box-sizing: border-box; padding: 1.5rem 1.5rem 1.35rem; background: var(--tidy-cream); border-radius: var(--tidy-radius); color: var(--tidy-navy) !important; text-decoration: none !important; }
.mh-press__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.mh-press__outlet { font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; }
.mh-press__type { flex: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25em 0.7em; border-radius: 99px; border: 1px solid var(--mh-line); color: rgba(9, 47, 86, .78); }
.mh-press__title { font-family: "ABCDailySlab", Georgia, serif; font-size: 1.3rem; line-height: 1.25; font-weight: 400; flex: 1; }
.mh-press__foot { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; align-items: baseline; padding-top: 0.75rem; border-top: 1px solid var(--mh-line); }
.mh-press__by { font-size: 0.85rem; color: rgba(9, 47, 86, .72); }
.mh-press__card:hover { box-shadow: 0 10px 28px rgba(9, 47, 86, .10); }
.mh-press__card:hover .mh-press__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mh-press__card:focus-visible { outline: 3px solid var(--tidy-navy); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .mh-press__card { transition: transform .15s ease, box-shadow .15s ease; }
  .mh-press__card:hover { transform: translateY(-3px); }
}
.mh-press-page__h1 { font-size: clamp(2.4rem, 1.9rem + 2vw, 3.25rem); margin: 0 !important; }
.mh-press-intro { margin-top: 0 !important; }
.mh-press__year { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.mh-press__year:first-child { margin-top: 2rem; }
.mh-press__yh { font-size: clamp(1.6rem, 1.4rem + 1vw, 2rem); margin: 0 0 1.25rem !important; padding-bottom: 0.75rem; border-bottom: 1px solid var(--mh-line); }
@media (max-width: 1099px) { .mh-press__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .mh-press__list, .mh-press__list--page { grid-template-columns: minmax(0, 1fr); }
  .mh-press__card { padding: 1.25rem; }
}

/* ---------- 27. Menu label "Formazione / MDMA Therapy" (2026-10-03, STAGING): two lines in the inline desktop menu, one line in the
   phone/tablet overlay (the <br> from clone.NAV_ORDER is hidden there; the space before it keeps the words apart). ---------- */
header .wp-block-navigation-item__label br { display: none; }
@media (min-width: 960px) {
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__label br { display: inline; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:has(br) { line-height: 1.1 !important; text-align: center; }
}

/* ---------- 28. Main-menu dropdowns (2026-10-03, Fede "ok for the pitch", STAGING): Terapie / Formazione MDMA Therapy / Eventi /
   Risorse / Chi siamo, three of them with a small white list (markup clone.build_nav, behaviour assets/nav.js). Desktop inline menu:
   opens on hover (mouse only) or click/tap/Enter, one at a time, Escape closes. Phone/tablet overlay: lists always open, indented.
   With 5 top items the header Instagram/LinkedIn icons fit again from 1024px (section 24 hid them there). ---------- */
.maps-sub { position: relative; }
.maps-sub__toggle { background: none; border: 0; margin: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex !important; align-items: center; gap: 0.35em; }
.maps-sub__icon { flex: none; }
.maps-sub__menu { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { .maps-sub__icon { transition: transform .15s ease; } }
@media (min-width: 960px) {
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__menu { display: none; position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%); z-index: 100; min-width: 12.5rem; padding: 0.45rem; background: #fff; color: var(--tidy-navy); border-radius: 16px; box-shadow: 0 14px 36px rgba(9, 47, 86, .22); text-transform: none; text-align: left; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.9rem; height: 0.9rem; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub.is-open > .maps-sub__menu { display: block; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__item { display: block; margin: 0 !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__menu .wp-block-navigation-item__content { display: block; padding: 0.6rem 0.9rem !important; border-radius: 10px; color: var(--tidy-navy) !important; font-size: 0.95rem !important; font-weight: 500; line-height: 1.3; white-space: nowrap; text-decoration: none !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__menu .wp-block-navigation-item__content:hover,
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__menu .wp-block-navigation-item__content:focus-visible { background: var(--tidy-cream); }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__menu [aria-current="page"] { font-weight: 700; }
  header .maps-social--header { display: flex !important; }
}
@media (min-width: 960px) and (hover: hover) {
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub:hover > .maps-sub__menu { display: block; }
}
header .is-menu-open .maps-sub { display: block; }
header .is-menu-open .maps-sub__toggle { cursor: default; pointer-events: none; padding: 0 !important; }
header .is-menu-open .maps-sub__icon { display: none; }
header .is-menu-open .maps-sub__menu { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.6rem 0 0 1rem; padding: 0 0 0 0.9rem; border-left: 1px solid rgba(255, 255, 255, .35); }
header .is-menu-open .maps-sub__menu .wp-block-navigation-item__content { text-transform: none; font-size: 0.95em; opacity: .9; }
/* 28b. the dropdowns must not be clipped by the rounded navy header card on inner pages, and the toggles get no button padding */
@media (min-width: 960px) {
  header.wp-block-template-part .is-style-group-border-40-desktop-20-mobile { overflow: visible !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__toggle { padding: 0 !important; }
}

/* ---------- 29. "Parlano di noi" as a carousel of every press piece (2026-10-03, Fede): same grammar as the Instagram row (section 23:
   scroll-snap track, no scrollbar, prev/next from assets/home.js, works without JS by swipe/scroll/keyboard). 4 cards per view on desktop,
   3 below 1100px, about 1.4 on phones. Menu (section 28) now has one dropdown, Risorse, with four items. ---------- */
.mh-carousel__track { position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0; }
.mh-carousel__track::-webkit-scrollbar { display: none; }
.mh-carousel__track:focus-visible { outline: 3px solid var(--tidy-navy); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) { .mh-carousel__track { scroll-behavior: smooth; } }
.mh-press__list--row { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); column-gap: 1.25rem; }
.mh-carousel__item { scroll-snap-align: start; min-width: 0; }
.mh-carousel__bar { display: flex; justify-content: flex-end; margin-top: 1rem; }
.mh-carousel__nav { display: flex; gap: 0.5rem; }
.mh-carousel__nav button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 2px solid var(--tidy-navy); background: #fff; color: var(--tidy-navy); cursor: pointer; }
.mh-carousel__nav button[hidden] { display: none; }
.mh-carousel__nav button:hover { background: var(--tidy-cream); }
.mh-carousel__nav button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.mh-carousel--static .mh-carousel__nav { display: none; }
@media (max-width: 1099px) { .mh-press__list--row { grid-auto-columns: calc((100% - 2 * 1rem) / 3); column-gap: 1rem; } }
@media (max-width: 781px) { .mh-press__list--row { grid-auto-columns: calc((100% - 0.75rem) / 1.4); column-gap: 0.75rem; } }
.mh-ig__track, .mh-carousel__track { scroll-padding-inline: 4px; }  /* 29b: snap the first card to 0 so the "previous" arrow starts disabled */


/* ---------- 30. Header menu fills the bar, then two lines, then the hamburger (2026-10-03, Fede: "use the whole space, then go to two
   lines, then to sandwich when you fully run out"). Four top items spread evenly between the logo and the icons + DONA (space-evenly), so
   zoomed-in or narrower windows no longer leave a big empty gap after the logo. Measured with scratch/2026-10-03_nav/measure_fit.mjs
   (min 16px between items, DONA inside the card, logo 190px): one-line labels fit from 1130px on every page, two-line labels from 940px.
   Breakpoints with margin: one line from 1160px, two lines 960 to 1159px, hamburger below 960px. Overrides sections 10, 20 and 24;
   sections 27 and 28 (two-line labels, dropdowns) start at 960px to match. ---------- */
@media (min-width: 960px) {
  header.pattern-homepage-header .wp-block-navigation__responsive-container-open:not(.always-shown),
  header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none !important; }
  header.pattern-homepage-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open),
  header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: block !important; position: relative !important; inset: auto !important; width: 100% !important; z-index: auto; background-color: inherit; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content) { width: 100% !important; max-width: none !important; }
  header .wp-block-navigation-item.menu-dona { display: none !important; }
  header .maps-social--header { display: flex !important; }
  header nav.wp-block-navigation { margin: 0 !important; flex: 1 1 auto !important; min-width: 0 !important; }
  header .wp-block-group.is-nowrap.is-layout-flex { gap: clamp(1rem, 2vw, 2rem) !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) ul.wp-block-navigation__container { width: 100% !important; flex-wrap: nowrap !important; justify-content: space-evenly !important; gap: 1rem !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { white-space: nowrap !important; font-size: clamp(0.85rem, 0.45rem + 0.55vw, 1.05rem) !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__label br { display: none !important; }
}
@media (min-width: 960px) and (max-width: 1159px) {
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__label br { display: inline !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:has(br) { line-height: 1.12 !important; text-align: center; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .maps-sub__toggle:has(br) { text-align: left; }
}

/* ---------- 31. Terapie section (2026-10-03, Fede): a short summary paragraph above the accordion, a "Leggi di più" / "Chiudi" cue next
   to each plus sign, and "La storia di MAPS" as the last item (moved from the team section, now "Il team di MAPS Italia"). ---------- */
.mh-terapie__intro p { font-size: 1.1rem; line-height: 1.6; max-width: 44rem; }
.mh-acc__cue { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.mh-acc__more, .mh-acc__less { font-family: "Inter", system-ui, sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.mh-acc__less { display: none; }
.mh-acc[open] .mh-acc__more { display: none; }
.mh-acc[open] .mh-acc__less { display: inline; }
.mh-acc > summary:hover .mh-acc__cue { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) { .mh-acc__more, .mh-acc__less { font-size: 0.75rem; } .mh-acc__cue { gap: 0.4rem; } }
@media (min-width: 782px) { .mh-terapie .mh-story { grid-template-columns: 9rem minmax(0, 1fr); } }

/* ---------- 32. "Su YouTube" carousel (2026-10-03, Fede; markup home_v2.py from sources/youtube/videos.json, behaviour home.js
   .mh-carousel): 16:9 local thumbnails with a play mark, date, title (3 lines max), whole card links to YouTube in a new tab.
   3 cards per view on desktop, 2 below 1100px, about 1.25 on phones. Also: network logos on phones spread across the full width. ---------- */
.mh-yt__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); column-gap: 1.25rem; }
.mh-yt__item { margin: 0 !important; display: flex; }
.mh-yt__card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid rgba(9, 47, 86, .10); border-radius: var(--tidy-radius); overflow: hidden; color: var(--tidy-navy) !important; text-decoration: none !important; }
.mh-yt__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tidy-cream); }
.mh-yt__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-yt__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(9, 47, 86, .82); color: #fff; }
.mh-yt__play svg { margin-left: 3px; }
.mh-yt__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.25rem 1.25rem; }
.mh-yt__title { font-weight: 600; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mh-yt__card:hover .mh-yt__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mh-yt__card:focus-visible { outline: 3px solid var(--tidy-navy); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .mh-yt__card { transition: transform .15s ease, box-shadow .15s ease; } .mh-yt__card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(9, 47, 86, .10); } }
.mh-carousel__bar--split { justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 1099px) { .mh-yt__list { grid-auto-columns: calc((100% - 1rem) / 2); column-gap: 1rem; } }
@media (max-width: 781px) {
  .mh-yt__list { grid-auto-columns: calc((100% - 0.75rem) / 1.25); column-gap: 0.75rem; }
  .mh-net__list { justify-content: space-evenly; gap: 1.6rem 1.1rem; }
  .mh-net__list img, .mh-net__list svg { height: 40px; max-width: 132px; }
}

/* ---------- 33. Phone/tablet menu redesign (2026-10-03, Fede: "redesign this mobile nav bar"). The hamburger overlay becomes a navy
   full-screen panel: white logo top-left, white close, one left edge. Destinations in the slab heading face; the two dropdown groups get
   a small uppercase Inter label ("TERAPIE E SOSTANZE", "RISORSE") with their links below; thin white rules between groups; DONA as the
   light pill; Instagram / LinkedIn / YouTube row at the bottom. Current page underlined. Desktop menu unaffected. ---------- */
header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--tidy-navy) !important; color: #fff !important;
  padding: 0 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch;
}
header .is-menu-open .wp-block-navigation__responsive-close,
header .is-menu-open .wp-block-navigation__responsive-dialog { max-width: none !important; width: 100% !important; margin: 0 !important; position: static !important; }
header .is-menu-open .wp-block-navigation__responsive-dialog::before {
  content: ""; position: absolute; top: 1.35rem; left: 1.5rem; width: 140px; height: 54px;
  background: url(/assets/MAPS-Italia_402x.21d12962.png) left center / contain no-repeat;
}
header .is-menu-open .wp-block-navigation__responsive-container-close {
  position: absolute !important; top: 1.5rem !important; right: 1.25rem !important; color: #fff !important;
  width: 44px; height: 44px; display: flex !important; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .35) !important; border-radius: 999px !important;
}
header .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 22px; height: 22px; fill: currentColor; }
header .is-menu-open .wp-block-navigation__responsive-container-content {
  padding: 6.75rem 1.5rem 2.5rem !important; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important;
}
header .is-menu-open ul.wp-block-navigation__container {
  display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
  width: 100% !important; text-transform: none !important; text-align: left !important;
}
header .is-menu-open ul.wp-block-navigation__container > li {
  display: block !important; width: 100%; margin: 0 !important; padding: 1rem 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
header .is-menu-open ul.wp-block-navigation__container > li:first-child { border-top: 0; padding-top: 0.25rem !important; }
header .is-menu-open .wp-block-navigation-item__content {
  display: block !important; padding: 0 !important; color: #fff !important; text-align: left !important;
  font-family: "ABCDailySlab", Georgia, serif !important; font-weight: 400 !important; font-size: 1.6rem !important;
  line-height: 1.2 !important; letter-spacing: -0.01em; text-transform: none !important; text-decoration: none !important;
}
header .is-menu-open .wp-block-navigation-item__label br { display: none !important; }
header .is-menu-open .wp-block-navigation-item__content[aria-current="page"] { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px; }
/* group labels */
header .is-menu-open .maps-sub__toggle {
  font-family: "Inter", system-ui, sans-serif !important; font-size: 0.72rem !important; font-weight: 600 !important;
  letter-spacing: 0.14em !important; text-transform: uppercase !important; color: rgba(255, 255, 255, .62) !important; opacity: 1 !important;
  line-height: 1.2 !important; margin-bottom: 0.75rem;
}
header .is-menu-open .maps-sub__menu { display: flex !important; flex-direction: column; gap: 0.7rem !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
header .is-menu-open .maps-sub__menu .wp-block-navigation-item { margin: 0 !important; padding: 0 !important; border: 0 !important; }
header .is-menu-open .maps-sub__menu .wp-block-navigation-item__content { font-size: 1.45rem !important; opacity: 1 !important; }
/* DONA + social */
header .is-menu-open ul.wp-block-navigation__container > li.menu-dona { border-top: 0; padding: 1.5rem 0 0.5rem !important; display: block !important; }
header .is-menu-open li.menu-dona .wp-block-navigation-item__content {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box;
  padding: 0.8em 2.2em !important; border-radius: 999px; background: #fff !important; color: var(--tidy-navy) !important;
  font-family: "Inter", system-ui, sans-serif !important; font-weight: 600 !important; font-size: 1rem !important; letter-spacing: 0.06em; text-transform: uppercase !important;
}
header .is-menu-open ul.wp-block-navigation__container > li.menu-social { border-top: 0; padding: 0.75rem 0 0 !important; display: block !important; }
header .is-menu-open .maps-social--menu { display: flex; gap: 0.75rem; }
header .is-menu-open .maps-social--menu .maps-social__link { color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .5) !important; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
header .is-menu-open .maps-social--menu .maps-social__link:hover { background: rgba(255, 255, 255, .1); }
@media (prefers-reduced-motion: no-preference) {
  header .is-menu-open .wp-block-navigation__responsive-container-content { animation: maps-menu-in .22s ease-out both; }
  @keyframes maps-menu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
/* 33b. left-align the group links, let long labels wrap, slightly smaller sizes on narrow phones */
header .is-menu-open .maps-sub__menu { align-items: flex-start !important; text-align: left !important; }
header .is-menu-open .maps-sub__menu .wp-block-navigation-item { display: block !important; width: 100%; text-align: left !important; }
header .is-menu-open .wp-block-navigation-item__content { white-space: normal !important; overflow-wrap: anywhere; }
header .is-menu-open .wp-block-navigation-item__content { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.75rem) !important; }
header .is-menu-open .maps-sub__menu .wp-block-navigation-item__content { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.6rem) !important; }
header .is-menu-open .maps-sub__toggle { font-size: 0.72rem !important; }
header .is-menu-open li.menu-dona .wp-block-navigation-item__content { font-size: 1rem !important; }
/* 33c. phone menu: stand-alone destinations (Formazione MDMA Therapy, Eventi) at the same size as the group links (Fede 2026-10-03) */
header .is-menu-open ul.wp-block-navigation__container > li:not(.maps-sub):not(.menu-dona):not(.menu-social) > .wp-block-navigation-item__content { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.6rem) !important; }

/* ---------- 34. Phone/tablet menu as a right-hand drawer (2026-10-03, Fede: "pop out from the right, obfuscate the sliver of page to
   the left, narrow and elegant"). The overlay itself becomes a dimmed, blurred backdrop (tap it to close, assets/nav.js); the navy panel
   (section 33 styling) is min(340px, 86vw) wide, full height, scrolls on its own, slides in from the right. ---------- */
header .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(4, 22, 41, .45) !important; overflow: hidden !important;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
header .is-menu-open .wp-block-navigation__responsive-close {
  position: absolute !important; top: 0; right: 0; bottom: 0; left: auto;
  width: min(340px, 86vw) !important; max-width: none !important; height: 100%;
  background: var(--tidy-navy); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  box-shadow: -18px 0 48px rgba(0, 0, 0, .28);
}
header .is-menu-open .wp-block-navigation__responsive-dialog { position: static !important; width: 100% !important; }
header .is-menu-open .wp-block-navigation__responsive-dialog::before { top: 1.4rem; left: 1.6rem; width: 112px; height: 43px; }
header .is-menu-open .wp-block-navigation__responsive-container-close { top: 1.3rem !important; right: 1.1rem !important; width: 40px; height: 40px; }
header .is-menu-open .wp-block-navigation__responsive-container-content { padding: 5.5rem 1.6rem 2.25rem !important; animation: none !important; }
header .is-menu-open ul.wp-block-navigation__container > li { padding: 0.85rem 0 !important; }
header .is-menu-open .wp-block-navigation-item__content,
header .is-menu-open ul.wp-block-navigation__container > li:not(.maps-sub):not(.menu-dona):not(.menu-social) > .wp-block-navigation-item__content,
header .is-menu-open .maps-sub__menu .wp-block-navigation-item__content { font-size: 1.28rem !important; line-height: 1.25 !important; }
header .is-menu-open .maps-sub__toggle { font-size: 0.68rem !important; margin-bottom: 0.6rem; }
header .is-menu-open .maps-sub__menu { gap: 0.55rem !important; }
header .is-menu-open li.menu-dona .wp-block-navigation-item__content { font-size: 0.95rem !important; min-height: 44px; padding: 0.7em 2em !important; }
header .is-menu-open .maps-social--menu .maps-social__link { width: 40px; height: 40px; }
@media (prefers-reduced-motion: no-preference) {
  header .wp-block-navigation__responsive-container.is-menu-open { animation: maps-backdrop-in .25s ease-out both; }
  header .is-menu-open .wp-block-navigation__responsive-close { animation: maps-drawer-in .3s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes maps-backdrop-in { from { background-color: rgba(4, 22, 41, 0); } to { background-color: rgba(4, 22, 41, .45); } }
  @keyframes maps-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
}
/* 34b. narrower drawer, one line per item */
header .is-menu-open .wp-block-navigation__responsive-close { width: min(300px, 78vw) !important; }
header .is-menu-open .wp-block-navigation__responsive-container-content { padding: 5.25rem 1.4rem 2rem !important; }
header .is-menu-open .wp-block-navigation__responsive-dialog::before { left: 1.4rem; width: 104px; height: 40px; }
header .is-menu-open .wp-block-navigation-item__content,
header .is-menu-open ul.wp-block-navigation__container > li:not(.maps-sub):not(.menu-dona):not(.menu-social) > .wp-block-navigation-item__content,
header .is-menu-open .maps-sub__menu .wp-block-navigation-item__content { font-size: 1.12rem !important; }
header .is-menu-open .maps-sub__toggle { font-size: 0.64rem !important; }
header .is-menu-open li.menu-dona .wp-block-navigation-item__content { font-size: 0.9rem !important; }
/* 34c. WebKit fix (iOS Safari, desktop Safari): the absolutely positioned panel resolved against the wrong box while the slide-in ran,
   so it swept in from the left (iPhone, second open onwards) or ran backwards (narrow desktop). Pinned to the viewport instead.
   Verified with Playwright WebKit: panel x 243 -> 90 on every open (was -71 -> -195 -> 90). */
header .is-menu-open .wp-block-navigation__responsive-close { position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important; }
/* 34d. Fable review (2026-10-04): root cause of the drawer bugs was WordPress focusing the first menu item while the panel was still
   off-screen, which scrolled the overlay sideways (overflow:hidden is still a scroll container; WebKit kept the stale offset). 34c pins
   the panel; this makes the overlay a non-scroll container (clip), moves the dim+blur to ::before so it can fade (an !important background
   blocks animations), adds a slide-out on close (nav.js holds WordPress's close click until it ends) and locks touch scrolling behind. */
header .wp-block-navigation__responsive-container.is-menu-open { overflow: hidden !important; overflow: clip !important; touch-action: none; background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
header .is-menu-open .wp-block-navigation__responsive-close { touch-action: pan-y; }
header .wp-block-navigation__responsive-container.is-menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(4, 22, 41, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
header .wp-block-navigation__responsive-container.is-menu-open.is-closing { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  header .wp-block-navigation__responsive-container.is-menu-open { animation: none !important; }
  header .wp-block-navigation__responsive-container.is-menu-open::before { animation: maps-fade-in .25s ease-out both; }
  header .wp-block-navigation__responsive-container.is-menu-open.is-closing::before { animation: maps-fade-out .2s ease-in both; }
  header .is-menu-open.is-closing .wp-block-navigation__responsive-close { animation: maps-drawer-out .22s ease-in both; }
  @keyframes maps-fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes maps-fade-out { to { opacity: 0; } }
  @keyframes maps-drawer-out { to { transform: translateX(100%); } }
}

/* ---------- 35. Phones play the SAME hero video as desktop (2026-10-04, Fede: "exactly the same as desktop, crop the middle, same
   quality, same loop"). The <video> fills the phone hero with object-fit: cover (centre crop). The animated WebP (section 12) is now only
   a fallback: hero-video.js adds html.maps-hero-fallback when iOS refuses autoplay (Low Power Mode) and removes it once the video plays;
   the WebP is loading=lazy so phones that play the video never download it. Reduced motion keeps the still frame (section 25). ---------- */
@media (prefers-reduced-motion: no-preference) and (max-width: 781px), (prefers-reduced-motion: no-preference) and (hover: none) and (pointer: coarse) {
  .pattern-homepage-header .wp-block-cover__video-background { display: block !important; object-fit: cover !important; object-position: center center !important; }
  .pattern-homepage-header .maps-hero-anim { display: none; }
  html.maps-hero-fallback .pattern-homepage-header .wp-block-cover__video-background { display: none !important; }
  html.maps-hero-fallback .pattern-homepage-header .maps-hero-anim { display: block; }
}

/* ---------- 36. (2026-10-04, Fede) Phones: the hero headline is larger and sits in the middle of the video area (the hero content
   becomes a column; the headline group takes the free height and centres the H1). The disclaimer moved from the hero to the footer of
   every page (clone.footer_disclaimer), as a small muted line above the copyright row. ---------- */
@media (max-width: 781px) {
  .pattern-homepage-header .wp-block-cover__inner-container > .wp-block-group { display: flex !important; flex-direction: column; min-height: 440px; }
  .pattern-homepage-header .wp-block-cover__inner-container > .wp-block-group > .wp-block-group:has(> h1) {
    flex: 1 1 auto; display: flex; align-items: center; justify-content: center; margin: 0 !important; padding: 1.5rem 0 2rem;
  }
  .pattern-homepage-header h1 { font-size: clamp(2.05rem, 1.2rem + 4.6vw, 2.8rem) !important; line-height: 1.1 !important; margin: 0 !important; }
}
footer .maps-footer-disclaimer { margin: 2.25rem 0 0.75rem !important; max-width: 46rem; font-size: 0.82rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
@media (max-width: 599px) { footer .maps-footer-disclaimer { margin-top: 1.75rem !important; font-size: 0.8rem; } }
/* 36b. phone headline: largest size where "Dall'informazione" still fits (it widened the header row and pushed DONA out at 37px) */
@media (max-width: 781px) {
  .pattern-homepage-header .wp-block-cover__inner-container > .wp-block-group > * { min-width: 0; max-width: 100%; }
  .pattern-homepage-header h1 { font-size: clamp(1.75rem, 0.9rem + 4.6vw, 2.6rem) !important; }
}
/* 36c. very narrow phones (<360px, e.g. iPhone SE 1st gen): the header DONA ran 14px past the screen edge (pre-existing); smaller logo + pill */
@media (max-width: 359px) {
  header .custom-logo { width: 118px !important; }
  header .wp-block-button__link { padding: 0.55em 1.05em !important; font-size: 0.85rem !important; }
  header .wp-block-group.is-nowrap.is-layout-flex { gap: 0.6rem !important; }
}
.mh.alignfull { overflow-x: clip; }  /* 36d. carousels' 4px focus margin made 320px phones scroll 3px sideways (pre-existing) */

/* ---------- 37. Mission + four areas, editorial (2026-10-04, Fede: the four colours were confusing, the red rule odd). One colour:
   the four areas become a numbered row (01-04) on thin navy rules, no boxes, no coloured edges; the vision line is a quiet subtitle. ---------- */
.mh-intro__vision { border-left: 0 !important; padding-left: 0 !important; color: rgba(9, 47, 86, .72); font-size: 1.05rem; }
.mh-pillars { counter-reset: pillar; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 2.5rem !important; margin-top: 3.25rem !important; }
.mh-pillar { counter-increment: pillar; background: none !important; border: 0 !important; border-top: 1px solid rgba(9, 47, 86, .28) !important; border-radius: 0 !important; box-shadow: none !important; padding: 1.25rem 0 0 !important; }
.mh-pillar::before { content: counter(pillar, decimal-leading-zero); display: block; margin-bottom: 0.9rem; font-family: "Inter", system-ui, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: rgba(9, 47, 86, .55); }
.mh-pillar h3 { font-size: 1.55rem !important; margin-bottom: 0.6rem !important; }
.mh-pillar p { font-size: 0.97rem; line-height: 1.6; color: rgba(9, 47, 86, .86); }
@media (max-width: 1099px) { .mh-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2rem 2.5rem !important; } }
@media (max-width: 599px) {
  .mh-pillars { grid-template-columns: 1fr !important; gap: 1.75rem !important; margin-top: 2.25rem !important; }
  .mh-pillar { padding: 1rem 0 0 !important; }
  .mh-pillar h3 { font-size: 1.35rem !important; }
}

/* 38. STAGING (2026-10-04, Fede): Substack's own subscribe box in place of the "Iscriviti alla newsletter" buttons (substack_box.py).
   v2 (Fede via Pio, "too in the middle of the page"): homepage = a navy band closing the Newsletter section (same grammar as the
   training card: text left, the Substack box as a white card right; stacked on phones); footer = the box fills its column.
   The iframe content is Substack's and centres itself vertically; we only size and frame it (no cropping: it carries the terms). */
.maps-substack-box { width: 100%; }
.maps-substack-box__frame { display: block; width: 100%; height: 330px; border: 0; border-radius: 16px; background: #fff; }
.maps-nl-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 2rem 3.5rem; align-items: center;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--tidy-navy); color: #fff; border-radius: var(--tidy-radius);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.maps-nl-band__eyebrow { margin: 0 0 .75rem !important; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.maps-nl-band__title { margin: 0 0 .75rem !important; color: #fff !important; font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem) !important; line-height: 1.15; }
.maps-nl-band__lead { margin: 0 !important; color: rgba(255, 255, 255, .9); max-width: 30rem; font-size: 1.05rem; }
.maps-nl-band .mh-link { color: #fff !important; margin-top: 1rem; }
.maps-nl-band .maps-substack-box__frame { box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
footer .maps-substack-box { margin-top: 1.25rem; max-width: 520px; }
footer .maps-substack-box__frame { height: 300px; }
@media (max-width: 899px) {
  .maps-nl-band { grid-template-columns: 1fr; }
  .maps-nl-band .maps-substack-box__frame, footer .maps-substack-box__frame { height: 350px; }   /* the title wraps on narrow widths */
}
@media (max-width: 599px) {
  .maps-nl-band { padding: 1.75rem 1rem 1rem; }   /* give the Substack box the full width on phones */
}
.maps-substack-box.is-focused .maps-substack-box__frame, .maps-substack-box__frame:focus { outline: 3px solid var(--tidy-red); outline-offset: 3px; }   /* .is-focused set by substack-box.js */

/* 39. (2026-10-04, Fede) press carousel cards get the article's own share image (press_snapshot.py, local 640x360 JPEGs), full bleed
   at the top of the card; pieces without one get a navy tile with the outlet name. Homepage strip only (the full page stays text). */
.mh-press__list--row .mh-press__card { padding-top: 0; overflow: hidden; }
.mh-press__list--row .mh-press__img { display: block; aspect-ratio: 16 / 9; margin: 0 -1.5rem 0.35rem; background: var(--tidy-navy); overflow: hidden; }
.mh-press__list--row .mh-press__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-press__img--none { display: flex !important; align-items: center; justify-content: center; }
.mh-press__img--none span { color: #fff; font-family: var(--wp--preset--font-family--heading, Georgia, serif); font-size: 1.5rem; padding: 0 1rem; text-align: center; }
@media (max-width: 599px) { .mh-press__list--row .mh-press__card { padding-top: 0; } .mh-press__list--row .mh-press__img { margin: 0 -1.25rem 0.35rem; } }

/* 40. (2026-10-04, Fede: "the only one without a carousel") Newsletter as a carousel, same grammar as YouTube (3 / 2 / 1.25 per view). */
.mh-news__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); column-gap: 1.25rem; }
.mh-news__item { margin: 0 !important; display: flex; }
.mh-news__item .maps-newsletter-card { width: 100%; }
@media (max-width: 1099px) { .mh-news__list { grid-auto-columns: calc((100% - 1rem) / 2); column-gap: 1rem; } }
@media (max-width: 781px) { .mh-news__list { grid-auto-columns: calc((100% - 0.75rem) / 1.25); column-gap: 0.75rem; } }
/* 39b. press card header wraps (outlet + type chip ran past the card; now visible because of the image card's overflow:hidden) */
.mh-press__top { flex-wrap: wrap; row-gap: 0.4rem; }
.mh-press__type { flex: 0 0 auto; }

/* 41. (2026-10-05, Fede) Eventi as a carousel like the others (3 / 2 / 1.25 per view): upcoming first (soonest first, "In programma"
   chip), then a slim "Eventi passati" divider, then past events most recent first ("Concluso" chip, image slightly muted). */
.mh-ev__list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; column-gap: 1.25rem; }
.mh-ev__item { margin: 0 !important; display: flex; flex: 0 0 calc((100% - 2 * 1.25rem) / 3); }
.mh-ev__card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid rgba(9, 47, 86, .10); border-radius: var(--tidy-radius); overflow: hidden; color: var(--tidy-navy) !important; text-decoration: none !important; }
.mh-ev__img { display: block; aspect-ratio: 16 / 9; background: var(--tidy-cream); overflow: hidden; }
.mh-ev__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-ev__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 1rem 1.25rem 1.25rem; }
.mh-ev__title { font-family: "ABCDailySlab", Georgia, serif; font-size: 1.25rem; line-height: 1.2; }
.mh-ev__card:hover .mh-ev__title, .mh-ev__card:focus-visible .mh-ev__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mh-ev__chip { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid rgba(9, 47, 86, .25); color: rgba(9, 47, 86, .75); }
.mh-ev__chip--next { background: var(--tidy-red); border-color: var(--tidy-red); color: #fff; }
.mh-ev__item.is-past .mh-ev__img img { filter: grayscale(.35); opacity: .85; }
.mh-ev__divider { list-style: none; margin: 0 !important; display: flex; align-items: center; justify-content: center; scroll-snap-align: start;
  border-left: 2px dashed rgba(9, 47, 86, .25); padding: 0 0.25rem 0 1rem; }
.mh-ev__divider span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(9, 47, 86, .6); white-space: nowrap; }
.mh-ev__divider { flex: 0 0 3rem; box-sizing: border-box; }
.mh-ev__card:focus-visible { outline: 3px solid var(--tidy-navy); outline-offset: 3px; }
@media (max-width: 1099px) { .mh-ev__list { column-gap: 1rem; } .mh-ev__item { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 781px) { .mh-ev__list { column-gap: 0.75rem; } .mh-ev__item { flex-basis: calc((100% - 0.75rem) / 1.25); } }

/* 42. (2026-10-06, Fede: "make them equal height") Newsletter cards line up: body fills the card so "Leggi su Substack" sits at the
   bottom of every card, title clamped to 3 lines and given a 3-line box so dates, subtitles and links align across cards. */
.mh-news__item .maps-newsletter-body { flex: 1 1 auto; }
.mh-news__item .maps-newsletter-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.2em); }
.mh-news__item .maps-newsletter-sub { -webkit-line-clamp: 2; }

/* 43. (2026-10-06, Fede) Scroll cue at the bottom of the homepage hero, same bouncing chevron as /en/mdma-therapy-training/ (Tailwind
   animate-bounce). Decorative (aria-hidden, out of the tab order); clicking it scrolls to the first section. Still for reduced motion. */
.maps-hero-scroll { position: absolute; left: 50%; bottom: 1.25rem; z-index: 3; width: 2rem; height: 2rem; margin-left: -1rem; color: rgba(255, 255, 255, .75) !important; display: block; }
.maps-hero-scroll:hover { color: #fff !important; }
.maps-hero-scroll svg { display: block; width: 100%; height: 100%; animation: maps-bounce 1s infinite; }
@keyframes maps-bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); } }
@media (prefers-reduced-motion: reduce) { .maps-hero-scroll svg { animation: none; } }
.maps-hero-scroll { width: 2.5rem; height: 2.5rem; margin-left: -1.25rem; color: rgba(255, 255, 255, .85) !important; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }   /* 43b: readable on the bright video */

/* 44. (2026-10-14, Letizia's event list) Photo gallery under an event page (events_extra.py, events.json "gallery"). */
.maps-ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: var(--wp--preset--spacing--50, 2rem) !important; }
.maps-ev-gallery figure { margin: 0; border-radius: var(--tidy-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tidy-cream); }
.maps-ev-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
