/* 2027 presentation. Existing archival classes remain owned by the parent. */
body.cd27 {
  --cd27-ink: #123e2e;
  --cd27-mist: #f1f5ee;
  --cd27-yellow: var(--wp--preset--color--brand-yellow);
  --cd27-pink: var(--wp--preset--color--brand-pink);
  background: #fff;
  color: #202b25;
}
.cd27 .wp-site-blocks { padding: 0; }
.cd27 .wp-site-blocks > * { margin-block-start: 0; }
.cd27-main { margin: 0; }
.cd27-container { --cd-font-h2: clamp(2rem, 3.35vw, 3.5rem); --cd-font-h3: 1.25rem; width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.cd27-container h2 { font-size: clamp(2rem, 3.35vw, 3.5rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 800; margin: 0 0 26px; }
.cd27-container h3 { font-weight: 800; letter-spacing: -.025em; }
.cd27-container p { margin: 0 0 20px; }
.cd27-container a { text-underline-offset: .22em; }
.cd27-section { padding-block: clamp(64px, 7vw, 108px); }
.cd27-section p { line-height: 1.75; }
.cd27-kicker { color: #25602f; font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px !important; }
.cd27-intro { max-width: 640px; color: #536157; font-size: 1.0625rem; }
.cd27-container .wp-block-buttons { gap: 12px; margin-top: 28px; }
.cd27-container .wp-block-button__link {
  padding: 16px 25px; border-radius: 6px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 700; line-height: 1.4; text-decoration: none;
  background: #123e2e; color: #fff; min-height: 52px;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.cd27-container .wp-block-button__link:hover { background: #20533f; box-shadow: 0 4px 12px #123e2e1f; }
.cd27-container .cd27-button-yellow .wp-block-button__link { background: #f5b722; color: #123e2e; }
.cd27-container .cd27-button-yellow .wp-block-button__link:hover { background: #ffca48; }
.cd27-container .cd27-button-pink .wp-block-button__link { background: #d81e73; color: #fff; }
.cd27-container .cd27-button-pink .wp-block-button__link:hover { background: #b91461; }
.cd27-container .cd27-button-outline .wp-block-button__link { border-color: #ffffffa6; background: transparent; color: #fff; }
.cd27-container .cd27-button-outline .wp-block-button__link:hover { background: #ffffff15; }
.cd27-topbar { background: #123e2e; color: #fff; padding-block: 10px; }
.cd27-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cd27-topbar p { margin: 0; font-size: .875rem; }
.cd27-topbar a { color: #fff; text-decoration: none; }
.cd27-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid #e1e7df; }
.cd27-header:has(.wp-block-navigation__responsive-container.is-menu-open) { z-index: 1000001; }
.cd27-header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cd27-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cd27-logo { width: 67px; margin: 0 !important; }
.cd27-logo img { width: 67px; height: 64px; object-fit: contain; }
.cd27-wordmark { font-family: var(--wp--preset--font-family--heading); font-size: 1.22rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; margin: 0 !important; }
.cd27-wordmark a { text-decoration: none; color: #123e2e; }
.cd27-wordmark span { display: block; font-family: var(--wp--preset--font-family--body); font-size: .75rem; letter-spacing: 0; font-weight: 500; margin-top: 5px; color: #566359; }
.cd27-nav { font-size: .875rem; font-weight: 600; color: #123e2e; }
.cd27-nav .wp-block-navigation__container { gap: 23px; }
.cd27-nav a { text-decoration: none; padding-block: 12px; }
.cd27-nav button.wp-block-navigation-item__content { min-height: 44px; padding-block: 12px; }
.cd27 .cd27-nav.wp-block-navigation .has-child > .wp-block-navigation__submenu-container { min-width: 340px; padding: 10px; border: 1px solid #dce4d8; border-top: 3px solid #d81e73; border-radius: 0 0 10px 10px; background: #fff; color: #123e2e; box-shadow: 0 16px 30px #123e2e1a; }
.cd27-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px 14px; border-radius: 5px; }
.cd27-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label { font-size: .875rem; font-weight: 700; line-height: 1.4; }
.cd27-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__description { display: block; font-size: .75rem; font-weight: 400; line-height: 1.5; color: #536157; }
.cd27-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.cd27-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible { background: #f1f5ee; color: #123e2e; }
.cd27-nav .wp-block-navigation__container > .wp-block-navigation-submenu:last-child > .wp-block-navigation__submenu-container { left: auto; right: 0; }
.cd27-header-inner .wp-block-buttons { margin: 0; flex-shrink: 0; }
.cd27-header-inner .wp-block-button__link { padding: 13px 18px; min-height: 47px; }
.cd27-hero { --cd-font-h1: clamp(3.25rem, 6.4vw, 6.65rem); position: relative; isolation: isolate; min-height: 690px; display: flex; align-items: center; overflow: hidden; background: #123e2e; }
.cd27-hero-photo { position: absolute; inset: 0; margin: 0 !important; z-index: -2; width: 100%; height: 100%; }
.cd27-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.cd27-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #092b23ed 0%, #092b23b3 43%, #092b2326 100%); z-index: -1; }
.cd27-hero-content { padding-block: 80px; }
.cd27-hero-content .cd27-eyebrow { color: #ffe09a; font-size: .9375rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 24px; }
.cd27-hero .cd27-hero-title { color: #fff; font-size: clamp(3.25rem, 6.4vw, 6.65rem); line-height: 1.02; font-weight: 800; letter-spacing: -.055em; max-width: 850px; margin: 0 0 27px; }
.cd27-hero-title em { color: #ffd05d; font-style: normal; }
.cd27-hero .cd27-hero-lead { color: #f7faf6; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; max-width: 520px; }
.cd27-hero .cd27-hero-meta { color: #d6e2d9; font-size: .875rem; margin-top: 30px; margin-bottom: 0; }
.cd27-date-strip { background: #f1f5ee; border-bottom: 1px solid #e2e9dd; }
.cd27-date-grid { display: grid; grid-template-columns: 1fr 1fr; padding-block: 33px; align-items: center; gap: 40px; }
.cd27-date-main .cd27-kicker { margin-bottom: 8px !important; font-size: .8125rem; }
.cd27-date-main { --cd-font-h2: clamp(1.6rem, 2.6vw, 2.5rem); }
.cd27-date-main h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); margin: 0; }
.cd27-date-note { padding-left: 40px; border-left: 1px solid #cbd7c5; }
.cd27-date-note p { margin: 0 0 5px; font-size: .9375rem; }
.cd27-date-note a { font-weight: 700; }
.cd27-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.cd27-day { border: 1px solid #dce4d8; border-radius: 8px; padding: 25px 22px; background: #fff; }
.cd27-day:first-child { background: #123e2e; border-color: #123e2e; color: #fff; }
.cd27-day .cd27-day-label { font-size: .9375rem; font-weight: 600; margin-bottom: 20px; }
.cd27-day { --cd-font-h3: clamp(2.6rem, 4vw, 4rem); }
.cd27-day .cd27-day-number { font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1; color: #123e2e; margin: 0 0 5px; }
.cd27-day:first-child .cd27-day-number { color: #f5b722; }
.cd27-day .cd27-day-month { font-size: .875rem; margin-bottom: 27px; }
.cd27-day .cd27-text-link { font-size: .8125rem; margin: 0; }
.cd27-day:first-child a { color: #fff; }
.cd27-text-link a { font-weight: 700; }
.cd27-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(38px, 6vw, 92px); align-items: center; }
.cd27-feature-copy p { max-width: 530px; color: #526057; }
.cd27-feature-copy .cd27-text-link { margin-top: 22px; }
.cd27-feature-copy h2 { color: #123e2e; }
.cd27-feature-photo, .cd27-volunteer-photo { margin: 0; }
.cd27-feature-photo img { width: 100%; aspect-ratio: 1.03; object-fit: cover; border-radius: 10px 80px 10px 10px; }
.cd27-container figcaption { font-size: .8125rem; line-height: 1.6; color: #657063; margin-top: 10px; }
.cd27-cuisine { padding-top: 0; }
.cd27-app-note { border-top: 1px solid #dce4d8; margin-top: 30px; padding-top: 23px; }
.cd27-app-note h3 { font-size: 1.25rem; color: #123e2e; margin: 0 0 8px; }
.cd27-app-note p { font-size: .9375rem; margin-bottom: 8px; }
.cd27-history { background: #123e2e; }
.cd27-history .cd27-kicker { color: #ffd05d; }
.cd27-history h2, .cd27-history .cd27-text-link a { color: #fff; }
.cd27-history .cd27-feature-copy > p:not(.cd27-kicker) { color: #d5e2d6; }
.cd27-history-photo { margin: 0; transform: rotate(2deg); padding: 12px 12px 6px; background: #fff; }
.cd27-history-photo img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.cd27-history-photo figcaption { padding-left: 5px; color: #526057; }
.cd27-split-history { grid-template-columns: .95fr 1.05fr; }
.cd27-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.cd27-archive-card { border: 1px solid #e0e6dc; border-radius: 8px; overflow: hidden; }
.cd27-archive-card figure { margin: 0; }
.cd27-archive-card img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.cd27-archive-card figcaption { padding-inline: 22px; margin-bottom: 0; }
.cd27-archive-caption { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 23px; gap: 20px; }
.cd27-archive-caption h3 { margin: 0; font-size: 1.65rem; color: #123e2e; }
.cd27-archive-caption p { font-size: .875rem; margin: 0; }
.cd27-archive-links { margin-top: 33px !important; margin-bottom: 0 !important; font-weight: 700; }
.cd27-volunteers { background: #f1f5ee; }
.cd27-volunteer-photo img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 70px 10px 10px 10px; }
.cd27-partners { border-bottom: 1px solid #e0e6dc; }
.cd27-partner-content { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.cd27-partner-content > p { max-width: 710px; margin: 0; }
.cd27-partner-content .wp-block-buttons { margin: 0; flex-shrink: 0; }
.cd27-news .cd-home-news-grid { margin-top: 40px; }
.cd27-news .cd-news-card { box-shadow: none !important; border-color: #dce4d8 !important; border-radius: 8px !important; }
.cd27-news-query { margin-top: 38px; }
.cd27-news-items { display: grid; grid-template-columns: 1.1fr 1fr; gap: 25px 40px; padding: 0; list-style: none; }
.cd27-news-items > li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid #dce4d8; }
.cd27-news-items > li:first-child { grid-row: span 3; display: block; border: 0; padding: 0; }
.cd27-news-items figure { margin: 0; }
.cd27-news-items img { width: 100%; object-fit: cover; border-radius: 7px; }
.cd27-news-placeholder a { display: block; background: #f1f5ee; border-radius: 7px; }
.cd27-news-placeholder img { aspect-ratio: 16 / 10; object-fit: contain; padding: 22px; }
.cd27-news-items { --cd-font-h3: 1.0625rem; }
.cd27-news-items > li:first-child { --cd-font-h3: 1.65rem; }
.cd27-news-items h3 { font-size: 1.0625rem; line-height: 1.4; margin: 5px 0 10px; }
.cd27-news-items h3 a { color: #123e2e; text-decoration: none; }
.cd27-news-items h3 a:hover { text-decoration: underline; }
.cd27-news-items > li:first-child h3 { font-size: 1.65rem; }
.cd27-news-items > li:first-child .cd27-news-copy { padding-top: 20px; }
.cd27-news-items .wp-block-post-date { color: #59685e; font-size: .8125rem; }
.cd27-news-items .wp-block-post-excerpt__excerpt { color: #536157; font-size: .875rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd27-news-items > li:first-child .wp-block-post-excerpt__excerpt { font-size: .9375rem; -webkit-line-clamp: 3; }
.cd27-practical { background: #f1f5ee; }
.cd27-practical-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.cd27-practical-card { padding: 25px; border-radius: 8px; border: 1px solid #dce4d8; background: #fff; }
.cd27-practical-card h3 { font-size: 1.125rem; color: #123e2e; margin: 0 0 15px; }
.cd27-practical-card p { font-size: .9375rem; }
.cd27-practical-card .cd27-text-link { margin: 0; }
.cd27-footer { background: #102e24; color: #dbe4dc; padding-block: 66px 24px; }
.cd27-footer .cd27-container { --cd-font-h2: 2.3rem; --cd-font-h3: 1rem; }
.cd27-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 45px; }
.cd27-footer h2 { font-size: 2.3rem; letter-spacing: -.04em; color: #fff; margin-block: 20px; }
.cd27-footer-logo { width: 84px; margin: 0; }
.cd27-footer-logo img { width: 84px; }
.cd27-footer-col h3 { font-size: 1rem; color: #fff; margin: 15px 0 25px; }
.cd27-footer p { font-size: .875rem; }
.cd27-footer-col p { margin-bottom: 13px; }
.cd27-footer a { color: #dbe4dc; text-decoration: none; }
.cd27-footer a:hover { color: #ffd05d; text-decoration: underline; }
.cd27-footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 48px; border-top: 1px solid #ffffff26; padding-top: 24px; }
.cd27-footer-bottom p { font-size: .8125rem; margin: 0; }
.cd27 .cdp-reopen { left: auto; right: 16px; bottom: 16px; }
.cd27 :focus-visible { outline-color: #d81e73 !important; outline-offset: 4px !important; }
/* Native Navigation's modal belongs above the shared privacy controls. */
.cd27-nav .wp-block-navigation__responsive-container.is-menu-open { z-index: 1000001; background: #fff; padding: 30px; color: #123e2e; }
.cd27-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 16px; font-size: 1.25rem; }
.cd27-nav .wp-block-navigation__responsive-container.is-menu-open a { min-height: 44px; }
/* Preserve the previous mobile accordion using native submenu state and controls. */
.cd27-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0; }
.cd27-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; border-bottom: 1px solid #dce4d8; }
.cd27-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { width: 100%; text-align: left; justify-content: flex-start; padding-block: 16px; }
.cd27-nav .is-menu-open .wp-block-navigation-submenu { align-items: stretch; }
.cd27-nav .is-menu-open .wp-block-navigation-submenu__toggle { width: 100%; padding: 16px 30px 16px 0 !important; }
.cd27-nav .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon { display: flex !important; position: absolute; top: 24px; right: 0; }
.cd27 .cd27-nav.wp-block-navigation .is-menu-open .has-child > .wp-block-navigation__submenu-container { min-width: 0 !important; width: 100% !important; padding: 6px 8px 12px !important; gap: 0 !important; border: 0; border-left: 2px solid #d81e73; border-radius: 0; box-shadow: none; margin-bottom: 12px; }
.cd27-nav .is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded=false] ~ .wp-block-navigation__submenu-container { display: none !important; }
.cd27-nav .is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container { display: flex; }
.cd27-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 12px !important; }
@media (max-width: 1180px) {
  .cd27-container { width: calc(100% - 64px); }
  .cd27-header-inner { gap: 20px; }
  .cd27-nav .wp-block-navigation__container { gap: 15px; }
  .cd27-wordmark { font-size: 1.0625rem; }
  .cd27-wordmark span { max-width: 175px; }
  .cd27-logo { width: 54px; }
  .cd27-logo img { width: 54px; height: 54px; }
  .cd27-day { padding: 22px 15px; }
}
@media (min-width: 600px) and (max-width: 1030px) {
  .cd27-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .cd27-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}
@media (max-width: 1030px) {
  .cd27-nav { margin-left: auto; }
  .cd27-header-inner { min-height: 88px; }
  .cd27-hero { min-height: 620px; }
  .cd27-practical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd27-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .cd27-footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; }
  .cd27-footer-brand h2 { font-size: 2rem; }
  .cd27-footer-brand > p { margin: 0; }
  .cd27-archive-caption { display: block; }
  .cd27-archive-caption p { margin-top: 10px; }
}
@media (max-width: 767px) {
  .cd27-container { width: calc(100% - 40px); }
  .cd27-section { padding-block: 64px; }
  .cd27-topbar-inner > p:first-child { display: none; }
  .cd27-topbar-inner { justify-content: center; }
  .cd27-topbar p { font-size: .8125rem; }
  .cd27-header-inner { gap: 14px; }
  .cd27-wordmark { font-size: 1rem; }
  .cd27-wordmark span { font-size: .6875rem; max-width: 140px; }
  .cd27-logo, .cd27-logo img { width: 43px; height: 43px; }
  .cd27-brand { gap: 8px; }
  .cd27-header-inner > .wp-block-buttons { display: none; }
  .cd27-hero { --cd-font-h1: clamp(3.15rem, 9vw, 4.5rem); min-height: 620px; }
  .cd27-hero::before { background: linear-gradient(90deg, #092b23eb, #092b2385); }
  .cd27-hero-photo img { object-position: 64% center; }
  .cd27-hero-content { padding-block: 64px; }
  .cd27-hero .cd27-hero-title { font-size: clamp(3.15rem, 9vw, 4.5rem); }
  .cd27-hero-content .cd27-eyebrow { font-size: .8125rem; letter-spacing: .06em; }
  .cd27-hero .wp-block-buttons { flex-direction: column; align-items: flex-start; }
  .cd27-date-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 29px; }
  .cd27-date-note { border: 0; border-top: 1px solid #cbd7c5; padding: 20px 0 0; }
  .cd27-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cd27-day:last-child { grid-column: 1 / -1; }
  .cd27-day .cd27-day-number { font-size: 3rem; }
  .cd27-day .cd27-day-label { margin-bottom: 15px; }
  .cd27-day .cd27-day-month { margin-bottom: 18px; }
  .cd27-day .cd27-text-link { font-size: .875rem; }
  .cd27-split, .cd27-split-history { grid-template-columns: 1fr; gap: 35px; }
  .cd27-cuisine { padding-top: 0; }
  .cd27-feature-photo img { aspect-ratio: 1.2; border-top-right-radius: 50px; }
  .cd27-history-photo { transform: none; }
  .cd27-archive-grid { grid-template-columns: 1fr; gap: 25px; }
  .cd27-archive-caption { display: flex; }
  .cd27-archive-caption p { margin: 0; }
  .cd27-volunteer-photo img { border-top-left-radius: 50px; }
  .cd27-partner-content { display: block; }
  .cd27-partner-content .wp-block-buttons { margin-top: 24px; }
  .cd27-news .cd-home-news-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cd27-news-items { grid-template-columns: 1fr; }
  .cd27-news-items > li { grid-template-columns: 105px minmax(0, 1fr); gap: 15px; }
  .cd27-news-items > li:first-child { grid-row: auto; }
  .cd27-practical-grid { grid-template-columns: 1fr; }
  .cd27-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cd27-footer-brand { display: block; }
  .cd27-footer-brand h2 { font-size: 2rem; }
  .cd27-footer-bottom { flex-direction: column; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd27-container * { transition: none !important; animation: none !important; }
}

/* Interior family. Existing bodies, IDs, credits and interactions are retained. */
.cd27-interior {
  --cd-font-h1: clamp(2.2rem, 4vw, 3.9rem);
  --cd-font-h2: clamp(1.5rem, 2.3vw, 2.2rem);
  --cd-font-h3: 1.2rem;
  --wp--preset--color--brand-blue: #123e2e;
  --wp--preset--color--surface-warm: #f1f5ee;
  --wp--preset--color--border-light: #dce4d8;
  --cd27-section-photo: url('/wp-content/themes/carnevaldarsena/assets/images/storia/chi-siamo-baccanale-notte.webp');
  padding-block: 28px 88px;
  line-height: 1.75;
}
.cd27-domain-storia .cd27-interior, .cd27-domain-archivio .cd27-interior {
  --cd27-section-photo: url('/wp-content/themes/carnevaldarsena/assets/images/galleria/1973-album-pisto/pisto1973_002.webp');
}
.cd27-domain-galleria .cd27-interior { --cd27-section-photo: none; }
.cd27-domain-sostieni .cd27-interior, .cd27-domain-associazione .cd27-interior {
  --cd27-section-photo: url('/wp-content/themes/carnevaldarsena/assets/images/galleria/2026-volontari/vol2026_007.webp');
}
.cd27-interior .cd27-page-content, .cd27-article-head, .cd27-article-body {
  width: min(1280px, calc(100% - 96px)); margin-inline: auto;
}
.cd27-page-content > .alignfull { margin-inline: 0 !important; width: 100%; }
.cd27-page-content > .wp-block-group:first-child { padding-top: 0 !important; }
.cd27-page-content > .wp-block-group > .alignwide { max-width: none; }
.cd27-interior :is(div, header, section):has(> h1), .cd27-interior .cd27-article-head {
  box-sizing: border-box; max-width: none !important; text-align: left !important;
  padding: clamp(30px, 5vw, 70px) !important; margin-block: 0 48px !important;
  border: 0 !important; border-radius: 12px 70px 12px 12px; color: #fff;
  background: linear-gradient(90deg, #0b3025f5 0%, #0b3025e8 45%, #0b30258a 100%), var(--cd27-section-photo) center / cover !important;
}
.cd27-interior :is(div, header, section):has(> h1) > :is(h1, p, div, span),
.cd27-interior .cd27-article-head > * { color: #fff !important; }
.cd27-interior :is(div, header, section):has(> h1) a, .cd27-article-head a { color: #ffe19b !important; }
.cd27-interior :is(div, header, section):has(> h1) :is(p, span, strong, em, small) { color: inherit !important; }
.cd27-interior h1 { font-size: var(--cd-font-h1) !important; line-height: 1.09 !important; letter-spacing: -.045em; font-weight: 800; max-width: 920px; }
.cd27-interior :is(div, header, section):has(> h1) > p { max-width: 790px !important; line-height: 1.7 !important; }
.cd27-interior :is(div, header, section):has(> h1) > p:first-child { color: #ffd571 !important; font-size: .8125rem !important; letter-spacing: .08em; }
.cd27-interior .cd-gallery-hub { padding: 0; width: 100% !important; margin-left: 0 !important; background: transparent; --cd-gallery-blue: #123e2e; --cd-gallery-line: #dce4d8; }
.cd27-interior .cd-gallery-hub__inner { width: 100%; max-width: none; padding-top: 0; }
.cd27-interior .cd-gallery-hub__hero { padding: clamp(30px, 5vw, 70px); }
.cd27-interior .cd-gallery-hub__stats { color: #fff; }
.cd27-interior .cd-gallery-hub__stats span strong { color: #123e2e !important; }
.cd27-interior .cd-gallery-hub__stats span { color: #536157 !important; }
.cd27-interior :is(h2, h3) { color: #123e2e; line-height: 1.25; letter-spacing: -.025em; }
.cd27-interior .cd-card { box-shadow: none !important; border-color: #dce4d8 !important; border-radius: 10px !important; }
.cd27-interior a { text-underline-offset: .2em; }
.cd27-interior :is(.wp-element-button, .button) { border-radius: 6px; }
.cd27-interior :is(input, select, textarea) { max-width: 100%; border-radius: 5px; }
.cd27-interior :is(img, video, iframe) { max-width: 100%; }
.cd27-interior :is(.cd-gallery-explorer, .cd27-filter-panel, .cd27-edition-aside) { background: #f1f5ee; border-radius: 10px; }
.cd27-interior .cd-gallery-card { box-shadow: none; border-color: #dce4d8; border-radius: 9px; }
.cd27-interior .cd-gallery-card__body { padding: 24px; }
.cd27-interior .cd-gallery-card__body h3 { --cd-font-h3: 1.25rem; }
.cd27-reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 45px; }
.cd27-reading-grid > * { min-width: 0; }
.cd27-filter-panel, .cd27-edition-aside { padding: 25px; }
.cd27-filter-panel .cd-sidebar-widget { box-shadow: none; border: 0; background: transparent; padding: 0; margin-bottom: 30px; }
.cd27-filter-panel form input { min-width: 0; width: 100%; }
.cd27-filter-panel form button { flex: 0 0 auto; min-width: 44px; }
.cd27-listing-items { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 32px; }
.cd27-listing-items > li { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr); gap: 28px; border-bottom: 1px solid #dce4d8; padding-bottom: 32px; }
.cd27-listing-items figure { margin: 0; }
.cd27-listing-items img { width: 100%; border-radius: 8px; object-fit: cover; }
.cd27-listing-copy h2 { --cd-font-h2: 1.5rem; margin-block: 10px 14px; }
.cd27-listing-copy h2 a { text-decoration: none; color: #123e2e; }
.cd27-listing-copy h2 a:hover { text-decoration: underline; }
.cd27-listing-copy .wp-block-post-date { color: #536157; font-size: .8125rem; }
.cd27-listing-copy .wp-block-post-excerpt { color: #536157; font-size: .9375rem; }
.cd27-listing-copy .wp-block-read-more { font-size: .875rem; font-weight: 700; margin-top: 14px; }
.cd27-interior .wp-block-query-pagination { gap: 20px; }
.cd27-interior .wp-block-query-pagination a { min-width: 30px; padding: 8px; }
.cd27-article-head h1 { max-width: 990px; }
.cd27-interior .cd27-article-head h1.wp-block-post-title { color: #fff !important; }
.cd27-article-head .wp-block-post-date { font-size: .875rem; }
.cd27-article-head .wp-block-post-terms { font-size: .8125rem; margin-top: 10px; }
.cd27-article-body { max-width: 900px; }
.cd27-article-body > .wp-block-post-featured-image { margin-bottom: 40px; }
.cd27-article-body > .wp-block-post-featured-image img { border-radius: 10px; max-height: 580px; object-fit: cover; }
.cd27-article-body .wp-block-post-content { font-size: 1.0625rem; line-height: 1.85; }
.cd27-article-body > .wp-block-post-terms { margin-block: 40px; padding-top: 25px; border-top: 1px solid #dce4d8; }
.cd27-edition-aside .wp-block-post-featured-image { margin-block: 22px; }
.cd27-edition-aside .wp-block-post-featured-image img { max-height: 440px; width: auto; object-fit: contain; }
.cd27-edition-aside h2 { --cd-font-h2: 1.3rem; }
.cd27-interior .cd-edition-hero .cd-badge-pink { background: #fce8f1 !important; }
.cd27-interior .cd-edition-header-nav a { color: #123e2e !important; }
.cd27-interior .cd-edition-header-nav .cd-nav-sep { color: #536157 !important; }
/* Keep the small legacy badges readable in the new interior palette. */
.cd27-interior .has-brand-yellow-color.has-badge-font-size { background: #123e2e; padding: .35em .65em; border-radius: 4px; }
.cd27-interior .cd-menu-badge.cd-badge-green { color: #14653b !important; background: #e5f5ec; }
.cd27-interior .cd-menu-badge.cd-badge-pink { color: #9e1850 !important; background: #fae4ee; }
.cd27-interior .cd-saltafila-btn { color: #fff !important; background: #0b2447; }
.cd27-edition-narrative .cd-edition-narrative { max-width: 75ch; }
.cd27-empty-page .wp-block-search { max-width: 600px; }
.cd-festival-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 38px; }
.cd-festival-day { border: 1px solid #dce4d8; border-radius: 8px; padding: 25px 22px; background: #fff; }
.cd-festival-day h3 { --cd-font-h3: clamp(2.6rem, 4vw, 4rem); margin: 10px 0 5px; color: #123e2e; line-height: 1; }
.cd-festival-day p { font-size: .875rem; }
.cd-festival-day a { font-size: .8125rem; font-weight: 700; }
.cd-festival-day:first-child { background: #123e2e; color: #fff; }
.cd-festival-day:first-child h3 { color: #f5b722; }
.cd-festival-day:first-child a { color: #fff; }
@media (max-width: 1030px) {
  .cd27-reading-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .cd27-filter-panel { order: -1; }
  .cd27-filter-panel .cd-source-news-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 767px) {
  .cd27-interior { padding-block: 18px 55px; --cd-font-h1: clamp(1.9rem, 8vw, 2.8rem); }
  .cd27-interior .cd27-page-content, .cd27-article-head, .cd27-article-body { width: calc(100% - 36px); }
  .cd27-interior :is(div, header, section):has(> h1), .cd27-interior .cd27-article-head { padding: 28px 22px !important; margin-bottom: 32px !important; border-radius: 9px 40px 9px 9px; }
  .cd27-interior :is(div, header, section):has(> h1) > p { font-size: .9375rem !important; }
  .cd27-listing-items > li { grid-template-columns: 1fr; gap: 20px; }
  .cd27-filter-panel .cd-source-news-filters { display: block; }
  .cd27-interior .cd-gallery-hub__stats { flex-wrap: wrap; gap: 20px; }
  .cd-festival-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cd-festival-day { padding: 23px 18px; }
  .cd-festival-day:last-child { grid-column: 1 / -1; }
}
/* Newsroom: native posts, shared sources and an editable sidebar part. */
.cd27-news-room { background: #fffefa; }
.cd27-news-room .cd27-page-content > .cd27-article-head { width: 100%; }
.cd27-news-room .cd27-article-head h1 { margin-block: 18px 24px; font-size: clamp(2rem, 3.6vw, 3.4rem) !important; overflow-wrap: anywhere; }
.cd27-news-room .cd27-article-head { background: linear-gradient(90deg,#0b3025fa 0%,#0b3025f2 58%,#0b3025d9 100%),var(--cd27-section-photo) center / cover !important; }
.cd27-news-room .cd27-article-head .cd27-kicker { margin: 0; }
.cd27-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .8125rem; }
.cd27-news-meta > * { margin: 0 !important; }
.cd27-news-meta .wp-block-post-terms { font-size: .8125rem; }
.cd27-news-date { display: inline; font-size: .8125rem; letter-spacing: .025em; }
.cd27-social-label { display: inline-block; margin-inline-start: 10px; padding: 3px 9px; border: 1px solid #cad8c8; border-radius: 4px; color: #3e5645; font-size: .6875rem; line-height: 1.5; vertical-align: middle; }
.cd27-news-meta .cd27-social-label { color: #fff; border-color: #708a7d; }
.cd27-news-room .cd27-reading-grid { gap: 42px; grid-template-columns: minmax(0,1fr) 310px; }
.cd27-news-room .cd27-article-body { width: 100%; max-width: none; margin: 0; }
.cd27-news-room .cd27-article-cover { margin: 0 0 32px; background: #eef2e9; border-radius: 10px; overflow: hidden; }
.cd27-news-room .cd27-article-cover img { display: block; width: 100%; height: auto !important; max-height: 560px; object-fit: contain !important; border-radius: 0; }
.cd27-news-room .wp-block-post-content { color: #283e32; overflow-wrap: anywhere; }
.cd27-news-room .wp-block-post-content > p:first-of-type { font-size: 1.1875rem; line-height: 1.8; }
.cd27-news-room .wp-block-post-content > * { max-width: none; }
.cd27-news-room .wp-block-post-content > p { margin-block: 0 24px; }
.cd27-news-room .wp-block-post-content .cdss-source { background: #f7eeef; border-left: 3px solid #d81e73; padding: 18px 22px; border-radius: 0 8px 8px 0; font-size: .875rem; margin-block: 30px; }
.cd27-news-room .wp-block-post-content .cdss-source a { color: #8e164c; font-weight: 700; }
.cd27-news-room .wp-block-post-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 18px; margin-block: 32px; align-items: start; }
.cd27-news-room .wp-block-post-content .wp-block-gallery .wp-block-image { display: block !important; width: 100% !important; flex-grow: 0; align-self: start; margin: 0; }
.cd27-news-room .wp-block-post-content .wp-block-gallery .wp-block-image img { height: auto !important; max-height: none !important; aspect-ratio: var(--cd27-image-ratio,3/2) !important; width: 100%; object-fit: contain !important; border-radius: 8px; }
.cd27-news-room .wp-block-post-content .wp-block-image figcaption { color: #536157; font-size: .8125rem; }
.cd27-article-navigation { margin-top: 38px; padding: 26px; border: 1px solid #dce4d8; border-radius: 10px; background: #f1f5ee; }
.cd27-article-navigation h2 { font-size: 1.4rem; margin: 0 0 20px; }
.cd27-article-navigation .wp-block-post-navigation-link { margin-block: 16px; font-weight: 600; }
.cd27-article-navigation p { margin-bottom: 0; font-size: .875rem; }
.cd27-news-sidebar { display: grid; gap: 28px; }
.cd27-news-toolbox { padding: 25px; border: 1px solid #dce4d8; border-top: 4px solid #d81e73; background: #f1f5ee; border-radius: 9px; }
.cd27-news-toolbox .cd27-kicker { margin: 0 0 10px; color: #49634d; font-size: .6875rem; }
.cd27-news-toolbox h2, .cd27-recent-news > h2 { font-size: 1.3rem; margin: 0 0 20px; }
.cd27-news-explorer a { color: #123e2e; }
.cd27-news-all { display: flex; justify-content: space-between; font-size: .875rem; font-weight: 700; text-decoration: none; padding-bottom: 16px; border-bottom: 1px solid #d2ddcd; }
.cd27-news-search { margin: 18px 0; }
.cd27-news-search label { display: block; font-size: .8125rem; margin-bottom: 8px; font-weight: 600; }
.cd27-news-search > div { display: flex; gap: 6px; }
.cd27-news-search input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #b8c7b6; background: #fff; font: inherit; font-size: .8125rem; }
.cd27-news-search button { flex: none; border: 0; border-radius: 5px; background: #123e2e; color: #fff; font: inherit; font-size: .8125rem; font-weight: 700; padding: 10px 12px; min-height: 44px; cursor: pointer; }
.cd27-news-disclosure { border-top: 1px solid #d2ddcd; }
.cd27-news-disclosure summary { cursor: pointer; padding-block: 13px; color: #123e2e; font-size: .875rem; font-weight: 700; }
.cd27-news-disclosure[open] summary { color: #8e164c; }
.cd27-news-years { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding-bottom: 16px; }
.cd27-news-years a { border: 1px solid #c9d5c5; background: #fff; text-align: center; padding: 7px 4px; border-radius: 4px; text-decoration: none; font-size: .8125rem; }
.cd27-news-years a[aria-current], .cd27-news-years a:hover { background: #123e2e; color: #fff; }
.cd27-news-topics { list-style: none; padding: 0; margin: 0 0 10px; }
.cd27-news-topics a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-block: 7px; font-size: .8125rem; text-decoration: none; }
.cd27-news-topics a:hover, .cd27-news-topics a[aria-current] { text-decoration: underline; color: #8e164c; }
.cd27-topic-count { font-size: .6875rem; color: #536157; }
.cd27-recent-news { padding-inline: 5px; }
.cd27-recent-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cd27-recent-items > li { display: grid; grid-template-columns: 68px minmax(0,1fr); align-items: start; gap: 14px; border-bottom: 1px solid #e2e6dc; padding-bottom: 18px; }
.cd27-recent-items figure { margin: 0; }
.cd27-recent-items img { border-radius: 6px; object-fit: cover; }
.cd27-recent-items .wp-block-post-date { font-size: .6875rem; color: #536157; margin-bottom: 5px; }
.cd27-recent-items .wp-block-post-title { font-size: .9375rem; line-height: 1.4; margin: 0; }
.cd27-recent-items a { color: #123e2e; text-decoration: none; }
.cd27-recent-items a:hover { text-decoration: underline; }
.cd27-news-memory { padding: 25px; border-radius: 10px 35px 10px 10px; background: #fff1ca; border: 1px solid #ead697; }
.cd27-news-memory .cd27-kicker { color: #5b4b21; font-size: .6875rem; margin: 0 0 12px; }
.cd27-news-memory h2 { font-size: 1.5rem; margin: 0 0 12px; }
.cd27-news-memory p { font-size: .875rem; line-height: 1.65; margin-bottom: 0; }
.cd27-news-memory a { color: #123e2e; font-weight: 700; display: inline-block; margin-top: 16px; }
.cd27-news-room .cd27-listing-items { gap: 24px; }
.cd27-news-room .cd27-listing-items > li { background: #fff; padding: 20px; border: 1px solid #e0e6da; border-radius: 10px; gap: 24px; align-items: center; }
.cd27-news-room .cd27-listing-items > li:first-child { display: block; padding: 0; overflow: hidden; border-top-right-radius: 36px; }
.cd27-news-room .cd27-listing-items > li:first-child > figure img { max-height: 390px; border-radius: 0; }
.cd27-news-room .cd27-listing-items > li:first-child .cd27-listing-copy { padding: 28px 32px 32px; }
.cd27-news-room .cd27-listing-items > li:first-child h2 { font-size: clamp(1.65rem,2.6vw,2.2rem) !important; }
.cd27-news-room .cd27-listing-copy h2 { font-size: 1.375rem !important; }
.cd27-news-room .cd27-listing-copy .wp-block-post-excerpt { line-height: 1.7; }
.cd27-news-room .wp-block-read-more { color: #8e164c; }
.cd27-news-room :is(a,button,input,summary):focus-visible { outline: 3px solid #b71a60; outline-offset: 4px; }
@media (max-width: 1030px) {
  .cd27-news-room .cd27-reading-grid { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .cd27-news-aside { order: 0; }
  .cd27-news-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .cd27-news-memory { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .cd27-news-room .cd27-article-head { padding: 28px 22px !important; border-top-right-radius: 42px; }
  .cd27-news-room .cd27-article-head h1 { font-size: clamp(1.9rem,7vw,2.7rem) !important; }
  .cd27-news-meta { gap: 10px; }
  .cd27-news-room .cd27-article-cover img { max-height: 480px; }
  .cd27-news-room .wp-block-post-content { font-size: 1rem; }
  .cd27-news-room .wp-block-post-content > p:first-of-type { font-size: 1.0625rem; }
  .cd27-news-room .cd27-listing-items > li { display: block; padding: 0; overflow: hidden; }
  .cd27-news-room .cd27-listing-items > li > figure img { max-height: 300px; border-radius: 0; }
  .cd27-news-room .cd27-listing-items > li .cd27-listing-copy, .cd27-news-room .cd27-listing-items > li:first-child .cd27-listing-copy { padding: 22px; }
  .cd27-news-sidebar { grid-template-columns: minmax(0,1fr); }
  .cd27-news-room .wp-block-post-content .wp-block-gallery { gap: 12px; }
  .cd27-news-room .wp-block-post-content .wp-block-gallery { grid-template-columns: minmax(0,1fr) !important; }
  .cd27-news-room .wp-block-post-content .wp-block-gallery .wp-block-image { width: 100% !important; }
  .cd27-article-navigation { padding: 22px; }
}
.cd27-news-room .cd27-page-content > .cd27-article-head:first-child { padding-top: clamp(30px,5vw,70px) !important; }
.cd27-news-room .cd27-article-head h1.wp-block-post-title { margin-inline: 0 !important; text-align: left; }
.cd27-news-room .cd27-news-sidebar h2 { font-size: 1.3rem !important; }
.cd27-news-room .cd27-news-memory h2 { font-size: 1.5rem !important; }
.cd27-news-room .cd27-recent-items h3.wp-block-post-title { font-size: .9375rem !important; }
.cd27-news-jump { display: none; }
@media (max-width:1030px) {
  .cd27-news-jump { display: block; margin: -20px 0 28px; font-size: .875rem; font-weight: 700; }
  #cd27-news-navigation { scroll-margin-top: 24px; }
}
.cd27-news-room .cd-notizie-header-dynamic .cd-active-filter-badge { color: #123e2e !important; background: #fff1ca !important; }
.cd27-news-room .cd-notizie-header-dynamic .cd-filter-reset-pill { color: #8e164c !important; background: #fff !important; }
.cd27-news-room .cd27-listing-items > li:not(:has(> .wp-block-post-featured-image)), .cd27-recent-items > li:not(:has(> .wp-block-post-featured-image)) { grid-template-columns: minmax(0,1fr); }
