/* Stili isolati: nessuna modifica a header, footer o sfondo del tema. */
.coro-oro { box-sizing:border-box; color:inherit; position:relative; width:var(--coro-width,100%); max-width:100%; margin:28px auto; --coro-gold:#B58A38; --coro-size:64px; --coro-space:32px; --coro-weight:1px; }
.coro-oro--cornice,.coro-oro--cornice-foto {border:var(--coro-weight) solid var(--coro-gold); padding:max(var(--coro-space),calc(var(--coro-size) * .55)); background:transparent; isolation:isolate;}
.coro-oro--cornice::before,.coro-oro--cornice-foto::before {content:"";position:absolute;inset:7px;border:1px solid var(--coro-gold);opacity:.55;pointer-events:none;z-index:-1;}
.coro-oro__corner {position:absolute;width:var(--coro-size);height:var(--coro-size);background:var(--coro-gold);pointer-events:none;z-index:1;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2098V4h94M10%2086V10h76M4%2079C31%2077%2052%2058%2061%2038%2069%2020%2063%208%2052%2010%2038%2012%2041%2030%2051%2029c8-1%207-11%202-11M79%204C77%2031%2058%2052%2038%2061%2020%2069%208%2063%2010%2052%2012%2038%2030%2041%2029%2051c-1%208-11%207-11%202M29%2078C48%2076%2054%2065%2049%2059c-6-7-16%200-11%206M78%2029C76%2048%2065%2054%2059%2049c-7-6%200-16%206-11M10%2094c9-1%2014-7%2013-13M94%2010c-1%209-7%2014-13%2013M4%2036C18%2034%2025%2021%2023%2013M36%204C34%2018%2021%2025%2013%2023%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M15%2016C22%2012%2036%2017%2039%2028%2029%2029%2018%2024%2015%2016Z%20M25%2020c2%208%205%2013%2012%2017C42%2024%2047%2020%2052%2019c3%2013-4%2023-15%2025C28%2042%2023%2034%2025%2020Z%20M38%2044c14-3%2025%202%2030%2012-15%205-25%202-30-12Z%20M43%2046c-3%2014%202%2025%2012%2030%205-15%202-25-12-30Z%20M16%2049c-3%2013%201%2022%2010%2026%206-13%203-21-10-26Z%20M49%2016c13-3%2022%201%2026%2010-13%206-21%203-26-10Z%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%0A%3Cpath%20d%3D%22M17%2017l39%2039M28%2025l8%2013M43%2022l-5%2018M45%2047l17%209M47%2049l7%2020M18%2054l7%2016M54%2018l16%207%22%20stroke%3D%22white%22%20stroke-width%3D%22.65%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%223%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M70%2011l3%205-3%205-3-5ZM11%2070l5%203-5%203-5-3Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2098V4h94M10%2086V10h76M4%2079C31%2077%2052%2058%2061%2038%2069%2020%2063%208%2052%2010%2038%2012%2041%2030%2051%2029c8-1%207-11%202-11M79%204C77%2031%2058%2052%2038%2061%2020%2069%208%2063%2010%2052%2012%2038%2030%2041%2029%2051c-1%208-11%207-11%202M29%2078C48%2076%2054%2065%2049%2059c-6-7-16%200-11%206M78%2029C76%2048%2065%2054%2059%2049c-7-6%200-16%206-11M10%2094c9-1%2014-7%2013-13M94%2010c-1%209-7%2014-13%2013M4%2036C18%2034%2025%2021%2023%2013M36%204C34%2018%2021%2025%2013%2023%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M15%2016C22%2012%2036%2017%2039%2028%2029%2029%2018%2024%2015%2016Z%20M25%2020c2%208%205%2013%2012%2017C42%2024%2047%2020%2052%2019c3%2013-4%2023-15%2025C28%2042%2023%2034%2025%2020Z%20M38%2044c14-3%2025%202%2030%2012-15%205-25%202-30-12Z%20M43%2046c-3%2014%202%2025%2012%2030%205-15%202-25-12-30Z%20M16%2049c-3%2013%201%2022%2010%2026%206-13%203-21-10-26Z%20M49%2016c13-3%2022%201%2026%2010-13%206-21%203-26-10Z%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%0A%3Cpath%20d%3D%22M17%2017l39%2039M28%2025l8%2013M43%2022l-5%2018M45%2047l17%209M47%2049l7%2020M18%2054l7%2016M54%2018l16%207%22%20stroke%3D%22white%22%20stroke-width%3D%22.65%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%223%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M70%2011l3%205-3%205-3-5ZM11%2070l5%203-5%203-5-3Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.coro-oro__corner--tl{top:-1px;left:-1px;}
.coro-oro__corner--tr{top:-1px;right:-1px;transform:rotate(90deg);}
.coro-oro__corner--br{bottom:-1px;right:-1px;transform:rotate(180deg);}
.coro-oro__corner--bl{bottom:-1px;left:-1px;transform:rotate(270deg);}
.coro-oro__content {position:relative;min-width:0;}
.coro-oro__content > :first-child {margin-top:0;}
.coro-oro__content > :last-child {margin-bottom:0;}
.coro-oro--cornice-foto figure {margin:0;}
.coro-oro--cornice-foto img {display:block;max-width:100%;height:auto;}
.coro-oro--separatore,.coro-oro--fregio {display:flex;align-items:center;justify-content:center;gap:16px;margin-top:var(--coro-space);margin-bottom:var(--coro-space);min-height:calc(var(--coro-size) * .7);}
.coro-oro__motif {display:block;flex:0 1 calc(var(--coro-size) * 2.5);width:calc(var(--coro-size) * 2.5);max-width:100%;height:var(--coro-size);background:var(--coro-gold);-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20110%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M160%2067C131%2025%2084%2020%2078%2045%2072%2068%20108%2075%20111%2055c2-13-19-15-18-4M160%2070C127%2052%20124%2088%2096%2079%2073%2072%2077%2047%2056%2049%2040%2051%2046%2072%2058%2066M149%2056C137%2022%20110%2016%20102%2026M114%2035C96%2010%2068%2015%2065%2031c-2%2012%2015%2015%2018%206M82%2077C63%2088%2042%2083%2032%2070%2023%2058%2012%2060%207%2068M66%2048C52%2026%2034%2030%2033%2043c-1%2010%2012%2012%2016%205M128%2079C120%2099%2098%20100%2088%2091%22%2F%3E%0A%3Cpath%20d%3D%22M132%2053C117%2031%2099%2036%20102%2048c9-3%2019%201%2030%205Z%20M119%2068C104%2053%2088%2056%2088%2068c12-4%2022-2%2031%200Z%20M77%2073C64%2054%2054%2057%2052%2065c9-1%2017%202%2025%208Z%20M73%2034C57%2018%2044%2020%2042%2028c12-1%2021%201%2031%206Z%20M44%2076C29%2076%2021%2086%2023%2094c10-6%2017-10%2021-18Z%20M137%2044C134%2027%20126%2016%20118%2014c-1%2012%206%2022%2019%2030Z%22%20fill%3D%22black%22%20stroke-width%3D%22.7%22%2F%3E%0A%3Cpath%20d%3D%22M133%2051L109%2044M116%2066L94%2064M72%2070L56%2063M66%2029L47%2026M134%2038l-12-17%22%20stroke%3D%22white%22%20stroke-width%3D%22.7%22%2F%3E%3Cg%20transform%3D%22translate%28320%200%29%20scale%28-1%201%29%22%3E%3Cpath%20d%3D%22M160%2067C131%2025%2084%2020%2078%2045%2072%2068%20108%2075%20111%2055c2-13-19-15-18-4M160%2070C127%2052%20124%2088%2096%2079%2073%2072%2077%2047%2056%2049%2040%2051%2046%2072%2058%2066M149%2056C137%2022%20110%2016%20102%2026M114%2035C96%2010%2068%2015%2065%2031c-2%2012%2015%2015%2018%206M82%2077C63%2088%2042%2083%2032%2070%2023%2058%2012%2060%207%2068M66%2048C52%2026%2034%2030%2033%2043c-1%2010%2012%2012%2016%205M128%2079C120%2099%2098%20100%2088%2091%22%2F%3E%0A%3Cpath%20d%3D%22M132%2053C117%2031%2099%2036%20102%2048c9-3%2019%201%2030%205Z%20M119%2068C104%2053%2088%2056%2088%2068c12-4%2022-2%2031%200Z%20M77%2073C64%2054%2054%2057%2052%2065c9-1%2017%202%2025%208Z%20M73%2034C57%2018%2044%2020%2042%2028c12-1%2021%201%2031%206Z%20M44%2076C29%2076%2021%2086%2023%2094c10-6%2017-10%2021-18Z%20M137%2044C134%2027%20126%2016%20118%2014c-1%2012%206%2022%2019%2030Z%22%20fill%3D%22black%22%20stroke-width%3D%22.7%22%2F%3E%0A%3Cpath%20d%3D%22M133%2051L109%2044M116%2066L94%2064M72%2070L56%2063M66%2029L47%2026M134%2038l-12-17%22%20stroke%3D%22white%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M160%2015C141%2034%20141%2048%20160%2063c19-15%2019-29%200-48Z%20M160%2028c-8%2011-8%2018%200%2025%208-7%208-14%200-25Z%20M160%2063v29M160%2072c-22-4-27%209-18%2014%206%203%2011-2%209-6m9-8c22-4%2027%209%2018%2014-6%203-11-2-9-6M160%2092l-5%206%205%207%205-7Z%22%2F%3E%3Cpath%20d%3D%22M160%202l4%206-4%207-4-7ZM4%2064l4%204-4%204-4-4ZM316%2064l4%204-4%204-4-4Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20110%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M160%2067C131%2025%2084%2020%2078%2045%2072%2068%20108%2075%20111%2055c2-13-19-15-18-4M160%2070C127%2052%20124%2088%2096%2079%2073%2072%2077%2047%2056%2049%2040%2051%2046%2072%2058%2066M149%2056C137%2022%20110%2016%20102%2026M114%2035C96%2010%2068%2015%2065%2031c-2%2012%2015%2015%2018%206M82%2077C63%2088%2042%2083%2032%2070%2023%2058%2012%2060%207%2068M66%2048C52%2026%2034%2030%2033%2043c-1%2010%2012%2012%2016%205M128%2079C120%2099%2098%20100%2088%2091%22%2F%3E%0A%3Cpath%20d%3D%22M132%2053C117%2031%2099%2036%20102%2048c9-3%2019%201%2030%205Z%20M119%2068C104%2053%2088%2056%2088%2068c12-4%2022-2%2031%200Z%20M77%2073C64%2054%2054%2057%2052%2065c9-1%2017%202%2025%208Z%20M73%2034C57%2018%2044%2020%2042%2028c12-1%2021%201%2031%206Z%20M44%2076C29%2076%2021%2086%2023%2094c10-6%2017-10%2021-18Z%20M137%2044C134%2027%20126%2016%20118%2014c-1%2012%206%2022%2019%2030Z%22%20fill%3D%22black%22%20stroke-width%3D%22.7%22%2F%3E%0A%3Cpath%20d%3D%22M133%2051L109%2044M116%2066L94%2064M72%2070L56%2063M66%2029L47%2026M134%2038l-12-17%22%20stroke%3D%22white%22%20stroke-width%3D%22.7%22%2F%3E%3Cg%20transform%3D%22translate%28320%200%29%20scale%28-1%201%29%22%3E%3Cpath%20d%3D%22M160%2067C131%2025%2084%2020%2078%2045%2072%2068%20108%2075%20111%2055c2-13-19-15-18-4M160%2070C127%2052%20124%2088%2096%2079%2073%2072%2077%2047%2056%2049%2040%2051%2046%2072%2058%2066M149%2056C137%2022%20110%2016%20102%2026M114%2035C96%2010%2068%2015%2065%2031c-2%2012%2015%2015%2018%206M82%2077C63%2088%2042%2083%2032%2070%2023%2058%2012%2060%207%2068M66%2048C52%2026%2034%2030%2033%2043c-1%2010%2012%2012%2016%205M128%2079C120%2099%2098%20100%2088%2091%22%2F%3E%0A%3Cpath%20d%3D%22M132%2053C117%2031%2099%2036%20102%2048c9-3%2019%201%2030%205Z%20M119%2068C104%2053%2088%2056%2088%2068c12-4%2022-2%2031%200Z%20M77%2073C64%2054%2054%2057%2052%2065c9-1%2017%202%2025%208Z%20M73%2034C57%2018%2044%2020%2042%2028c12-1%2021%201%2031%206Z%20M44%2076C29%2076%2021%2086%2023%2094c10-6%2017-10%2021-18Z%20M137%2044C134%2027%20126%2016%20118%2014c-1%2012%206%2022%2019%2030Z%22%20fill%3D%22black%22%20stroke-width%3D%22.7%22%2F%3E%0A%3Cpath%20d%3D%22M133%2051L109%2044M116%2066L94%2064M72%2070L56%2063M66%2029L47%2026M134%2038l-12-17%22%20stroke%3D%22white%22%20stroke-width%3D%22.7%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M160%2015C141%2034%20141%2048%20160%2063c19-15%2019-29%200-48Z%20M160%2028c-8%2011-8%2018%200%2025%208-7%208-14%200-25Z%20M160%2063v29M160%2072c-22-4-27%209-18%2014%206%203%2011-2%209-6m9-8c22-4%2027%209%2018%2014-6%203-11-2-9-6M160%2092l-5%206%205%207%205-7Z%22%2F%3E%3Cpath%20d%3D%22M160%202l4%206-4%207-4-7ZM4%2064l4%204-4%204-4-4ZM316%2064l4%204-4%204-4-4Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.coro-oro--separatore::before,.coro-oro--separatore::after{content:"";flex:1;min-width:0;height:var(--coro-weight);background:linear-gradient(90deg,transparent,var(--coro-gold));}
.coro-oro--separatore::after{transform:rotate(180deg);}
.coro-oro--semplice .coro-oro__corner{display:none;}
.coro-oro--semplice .coro-oro__motif{-webkit-mask:none;mask:none;flex:0 0 12px;width:12px;height:12px;transform:rotate(45deg);border:1px solid var(--coro-gold);background:transparent;}
@media(max-width:600px){.coro-oro--cornice,.coro-oro--cornice-foto{padding:max(16px,calc(var(--coro-space) * .65),calc(var(--coro-size) * .4));}.coro-oro__corner{width:calc(var(--coro-size) * .72);height:calc(var(--coro-size) * .72);}.coro-oro{max-width:100%;}}
@media print{.coro-oro{-webkit-print-color-adjust:exact;print-color-adjust:exact;}}

/* 1.1 – oro metallico e ornati neobarocchi. Compatibile con i blocchi 1.0. */
.coro-oro__corner,.coro-oro__motif {
    background:linear-gradient(125deg,#6d420c 0%,var(--coro-gold) 13%,#f5c449 29%,#fff1ad 36%,#b77b16 43%,#edba38 57%,#fff2b0 65%,var(--coro-gold) 76%,#84520b 88%,#e8b942 100%);
    filter:drop-shadow(0 1px 0 #6f470c) drop-shadow(0 0 1px rgba(255,220,105,.55));
}
.coro-oro--cornice,.coro-oro--cornice-foto {
    border-color:#c99728;
    box-shadow:inset 0 0 0 1px #ffe8a0,0 0 0 1px #8b5b15;
}
.coro-oro--cornice::before,.coro-oro--cornice-foto::before {border-color:#dba938;opacity:.9;}
.coro-oro--cornice-foto {
    padding:0!important;
    overflow:visible;
}
.coro-oro--cornice-foto::before {
    z-index:3;inset:5px;pointer-events:none;
    box-shadow:0 1px 0 rgba(69,36,0,.65),inset 0 1px 0 rgba(255,239,168,.8);
}
.coro-oro--cornice-foto .coro-oro__corner {
    z-index:4;width:calc(var(--coro-size) * 1.35);height:calc(var(--coro-size) * 1.35);
}
.coro-oro--cornice-foto .coro-oro__content,
.coro-oro--cornice-foto .coro-oro__content > .block-editor-inner-blocks,
.coro-oro--cornice-foto .block-editor-block-list__layout {
    margin:0!important;padding:0!important;max-width:none;
}
.coro-oro--cornice-foto .wp-block-image {
    float:none!important;margin:0!important;width:100%!important;max-width:none!important;
}
.coro-oro--cornice-foto .wp-block-image a {display:block;width:100%;}
.coro-oro--cornice-foto .wp-block-image img {
    display:block;width:100%!important;max-width:none!important;height:auto;box-sizing:border-box;border-radius:0;
}
.coro-oro--cornice-foto .wp-block-image figcaption {
    margin:0;padding:12px 18px;text-align:center;
}
.coro-oro--separatore,.coro-oro--fregio {gap:10px;}
.coro-oro__motif {flex-basis:calc(var(--coro-size) * 4.5);width:calc(var(--coro-size) * 4.5);height:calc(var(--coro-size) * 1.55);}
.coro-oro--separatore::before,.coro-oro--separatore::after {
    height:3px;
    background:linear-gradient(90deg,transparent,#9c6515 15%,#f6d675 50%,#d19a29);
    box-shadow:0 3px 0 -1px #be8a29;
}
.coro-oro--semplice .coro-oro__motif {background:transparent;filter:none;}
@media(max-width:600px){
    .coro-oro--cornice-foto .coro-oro__corner {width:calc(var(--coro-size) * .9);height:calc(var(--coro-size) * .9);}
    .coro-oro--separatore .coro-oro__motif {flex-shrink:1;max-width:76%;}
}

/* Riflessi opzionali: il contenuto resta fermo e leggibile. */
.coro-oro--luccicante .coro-oro__corner,
.coro-oro--luccicante .coro-oro__motif {
    background-size:260% 260%;
    animation:coro-gold-shine 7s ease-in-out infinite;
}
.coro-oro--luccicante .coro-oro__corner--tr {animation-delay:-2s;}
.coro-oro--luccicante .coro-oro__corner--br {animation-delay:-4s;}
.coro-oro--luccicante .coro-oro__corner--bl {animation-delay:-6s;}
.coro-oro--luccicante.coro-oro--cornice,
.coro-oro--luccicante.coro-oro--cornice-foto {animation:coro-border-glow 7s ease-in-out infinite;}
.coro-oro--scintillio {
    padding:var(--coro-space);
    border:1px solid #c99728;
    background:linear-gradient(135deg,rgba(197,144,39,.11),rgba(255,231,150,.03),rgba(197,144,39,.10));
    isolation:isolate;
    overflow:hidden;
}
.coro-oro--scintillio .coro-oro__content {z-index:2;}
.coro-oro--scintillio::before,.coro-oro--scintillio::after {
    content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
    background-image:
        radial-gradient(ellipse 2px 9px at 12% 18%,#fff6cb 20%,#e4b947 45%,transparent 75%),
        radial-gradient(ellipse 9px 2px at 12% 18%,#fff6cb 20%,#e4b947 45%,transparent 75%),
        radial-gradient(ellipse 2px 7px at 86% 30%,#fff6cb 20%,#e4b947 45%,transparent 75%),
        radial-gradient(ellipse 7px 2px at 86% 30%,#fff6cb 20%,#e4b947 45%,transparent 75%),
        radial-gradient(circle 2px at 24% 72%,#efce78 20%,transparent 80%),
        radial-gradient(circle 2px at 73% 83%,#efce78 20%,transparent 80%);
    background-size:340px 260px;opacity:.38;
}
.coro-oro--scintillio::after {transform:translate(90px,45px);background-size:470px 330px;opacity:.25;}
.coro-oro--scintillio.coro-oro--luccicante::before {animation:coro-sparkle 8s ease-in-out infinite;}
.coro-oro--scintillio.coro-oro--luccicante::after {animation:coro-sparkle 11s ease-in-out -5s infinite reverse;}
@keyframes coro-gold-shine {0%,100%{background-position:0% 20%;}50%{background-position:100% 80%;}}
@keyframes coro-border-glow {0%,100%{box-shadow:inset 0 0 0 1px #ffe8a0,0 0 0 1px #8b5b15;}50%{box-shadow:inset 0 0 0 1px #fff6d2,0 0 0 1px #d6a23d,0 0 12px rgba(227,179,61,.35);}}
@keyframes coro-sparkle {0%,100%{opacity:.18;}50%{opacity:.65;}}
@media(prefers-reduced-motion:reduce){
    .coro-oro--luccicante,.coro-oro--luccicante .coro-oro__corner,
    .coro-oro--luccicante .coro-oro__motif,
    .coro-oro--scintillio.coro-oro--luccicante::before,
    .coro-oro--scintillio.coro-oro--luccicante::after {animation:none!important;}
}

/* 1.2 – cornici applicate ai blocchi Immagine nativi già presenti. */
.coro-native-photo {
    --coro-gold:#d4a017;
    --coro-size:86px;
    position:relative;
    display:inline-block;
    max-width:100%;
    line-height:0;
    vertical-align:bottom;
    isolation:isolate;
}
.wp-block-image .coro-native-photo img {
    display:block;
    max-width:100%;
    box-sizing:border-box;
    border-radius:0;
}
.coro-native-photo::before,
.coro-native-photo::after {
    content:"";position:absolute;pointer-events:none;z-index:2;
}
.coro-native-photo::before {
    inset:0;
    border:2px solid #d5a438;
    box-shadow:inset 0 0 0 1px #fff0b3,inset 0 0 0 3px #83510d,0 0 0 1px #9a681e;
}
.coro-native-photo::after {
    inset:6px;
    border:1px solid #f2d176;
    box-shadow:0 1px 0 rgba(54,26,0,.45);
}
.coro-native-photo > .coro-oro__corner {
    z-index:3;
    width:clamp(30px,20%,100px);
    height:auto;
    aspect-ratio:1;
}
.coro-native-photo--shine > .coro-oro__corner {
    background-size:260% 260%;
    animation:coro-gold-shine 7s ease-in-out infinite;
}
.coro-native-photo--shine > .coro-oro__corner--tr {animation-delay:-2s;}
.coro-native-photo--shine > .coro-oro__corner--br {animation-delay:-4s;}
.coro-native-photo--shine > .coro-oro__corner--bl {animation-delay:-6s;}
.coro-native-photo--shine::before {animation:coro-native-glow 7s ease-in-out infinite;}
@keyframes coro-native-glow {
    0%,100%{border-color:#d5a438;filter:drop-shadow(0 0 1px #9b6619);}
    50%{border-color:#ffe8a3;filter:drop-shadow(0 0 5px #e7bc5b);}
}
/* Anteprima nell’editor: cornice e ornati, senza cambiare il blocco salvato. */
.editor-styles-wrapper .wp-block-image:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante) {
    position:relative;
    width:fit-content;
    max-width:100%;
}
.editor-styles-wrapper .wp-block-image:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante) img {
    outline:2px solid #d5a438;
    outline-offset:-2px;
    border-radius:0;
}
.editor-styles-wrapper .wp-block-image:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante)::after {
    content:"";position:absolute;inset:0;pointer-events:none;z-index:3;
    background-image:url("angolo-oro.svg"),url("angolo-oro-tr.svg"),url("angolo-oro-bl.svg"),url("angolo-oro-br.svg");
    background-position:left top,right top,left bottom,right bottom;
    background-repeat:no-repeat;
    background-size:clamp(30px,20%,100px) auto;
}
@media(prefers-reduced-motion:reduce){
    .coro-native-photo--shine > .coro-oro__corner,
    .coro-native-photo--shine::before {animation:none!important;}
}
/* Pulsanti nativi: cornice a filo, link e testo rimangono utilizzabili. */
.wp-block-button:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante) .wp-block-button__link {
    --coro-gold:#d4a017;
    position:relative;
    border:2px solid #d5a438;
    border-radius:0;
    padding:14px 38px;
    box-shadow:inset 0 0 0 1px #fff0b3,0 0 0 1px #875411;
}
.coro-button-corner {width:30px;height:30px;z-index:2;}
.wp-block-button.is-style-corale-oro-luccicante .coro-button-corner {
    background-size:260% 260%;animation:coro-gold-shine var(--coro-duration,7s) ease-in-out var(--coro-repeat,infinite);
}
.editor-styles-wrapper .wp-block-button:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante) .wp-block-button__link::after {
    content:"";position:absolute;inset:0;pointer-events:none;
    background-image:url("angolo-oro.svg"),url("angolo-oro-tr.svg"),url("angolo-oro-bl.svg"),url("angolo-oro-br.svg");
    background-position:left top,right top,left bottom,right bottom;
    background-repeat:no-repeat;background-size:30px 30px;
}
/* Durata e numero di cicli regolabili, senza ritardi nei cicli finiti. */
.coro-oro--luccicante,
.coro-oro--luccicante .coro-oro__corner,
.coro-oro--luccicante .coro-oro__motif,
.coro-oro--scintillio.coro-oro--luccicante::before,
.coro-oro--scintillio.coro-oro--luccicante::after,
.coro-native-photo--shine > .coro-oro__corner,
.coro-native-photo--shine::before {
    animation-duration:var(--coro-duration,7s);
    animation-iteration-count:var(--coro-repeat,infinite);
    animation-delay:0s;
}
@media(prefers-reduced-motion:reduce){
    .wp-block-button.is-style-corale-oro-luccicante .coro-button-corner {animation:none!important;}
}

/* 1.3 – impostazioni della cornice per immagini e pulsanti esistenti. */
.coro-native-photo > .coro-oro__corner {
    width:min(var(--coro-native-size,86px),30%);
    height:auto;aspect-ratio:1;
}
.coro-native-photo {
    filter:drop-shadow(0 calc(var(--coro-native-depth,0px) * .6) var(--coro-native-depth,0px) rgba(31,16,5,.48));
}
.coro-native-photo::before {
    border-width:var(--coro-native-border,2px);
    border-color:var(--coro-native-color,#d5a438);
    box-shadow:none;
}
.coro-native-photo::after {
    opacity:var(--coro-native-inset,1);
    border-color:var(--coro-native-color,#d5a438);
}
@keyframes coro-native-glow {
    0%,100%{filter:drop-shadow(0 0 1px #9b6619);}
    50%{filter:drop-shadow(0 0 5px #e7bc5b);}
}
.wp-block-button:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante) .wp-block-button__link {
    border-width:var(--coro-native-border,2px);
    border-color:var(--coro-native-color,#d5a438);
    box-shadow:inset 0 0 0 calc(var(--coro-native-inset,1) * 1px) #ffe5a1;
    filter:drop-shadow(0 calc(var(--coro-native-depth,0px) * .6) var(--coro-native-depth,0px) rgba(31,16,5,.48));
}
.coro-button-corner {width:var(--coro-native-size,30px);height:var(--coro-native-size,30px);max-width:35%;max-height:100%;}
.editor-styles-wrapper .wp-block-image:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante) img {
    outline-width:var(--coro-native-border,2px);
    outline-color:var(--coro-native-color,#d5a438);
    outline-offset:calc(var(--coro-native-border,2px) * -1);
    filter:drop-shadow(0 calc(var(--coro-native-depth,0px) * .6) var(--coro-native-depth,0px) rgba(31,16,5,.48));
}
.editor-styles-wrapper .wp-block-image:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante)::after {
    background-size:min(var(--coro-native-size,86px),30%) auto;
}
.editor-styles-wrapper .wp-block-button:is(.is-style-corale-oro-ottocento,.is-style-corale-oro-luccicante) .wp-block-button__link::after {
    background-size:var(--coro-native-size,30px) var(--coro-native-size,30px);
}



/* 1.4 – programma di sala: solo pagina Contatti. */
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/libre-baskerville-400.ttf') format('truetype');}
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/libre-baskerville-700.ttf') format('truetype');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/playfair-display-500.ttf') format('truetype');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/playfair-display-600.ttf') format('truetype');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/playfair-display-700.ttf') format('truetype');}
.cpc-wrap {
    --cpc-bordeaux:#702b33;
    --cpc-dark:#362921;
    --cpc-ivory:#fbf4e5;
    --cpc-border:rgba(150,112,50,.26);
    font-family:'Libre Baskerville',Georgia,serif;
    font-size:15px;
    line-height:1.85;
}
.cpc-wrap .cpc-intro {
    font-family:'Libre Baskerville',Georgia,serif;
    font-size:16px;line-height:1.9;max-width:860px;
    margin-bottom:36px;
}
.cpc-wrap .cpc-main-grid {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:30px;align-items:stretch;
}
.cpc-wrap .cpc-left,
.cpc-wrap .cpc-form-card {
    position:relative;
    min-width:0;
    box-sizing:border-box;
    padding:44px 36px 42px;
    border:1px solid #ad8542;
    background:#fbf4e5;
    box-shadow:inset 0 0 0 6px #fbf4e5,inset 0 0 0 7px rgba(173,133,66,.55),0 5px 18px rgba(61,39,16,.08);
}
.cpc-wrap .cpc-left {display:flex;flex-direction:column;gap:0;}
.cpc-wrap .cpc-left > .cpc-card {
    border:0;padding:0;background:transparent;
}
.cpc-wrap .cpc-card::before {content:none;animation:none;}
.cpc-wrap .cpc-left::before,
.cpc-wrap .cpc-form-card::before {
    content:'';position:absolute;top:11px;left:50%;transform:translateX(-50%);
    width:104px;height:30px;background:url('fregio-oro.svg') center/contain no-repeat;
    pointer-events:none;animation:none;filter:none;
}
.cpc-wrap .cpc-left::after,
.cpc-wrap .cpc-form-card::after {
    content:'';display:block;width:104px;height:30px;
    margin:28px auto 0;background:url('fregio-oro.svg') center/contain no-repeat;
    pointer-events:none;
}
.cpc-wrap .cpc-left::after {margin-top:auto;min-height:30px;}
.cpc-wrap .cpc-card h2 {
    font-family:'Playfair Display',Georgia,serif!important;
    font-weight:600;font-size:clamp(27px,2.8vw,36px);
    line-height:1.2;text-align:center;color:#563329;
    margin:9px 0 28px;
}
.cpc-wrap .cpc-detail {line-height:1.85;padding-bottom:15px;margin-bottom:15px;}
.cpc-wrap .cpc-label {
    font-family:'Libre Baskerville',Georgia,serif;
    font-size:10px;letter-spacing:.13em;font-weight:700;color:#805d2a;
}
.cpc-wrap .cpc-detail a {overflow-wrap:anywhere;}
.cpc-wrap .cpc-board {margin-top:25px;}
.cpc-wrap .cpc-board h2::before {
    content:'';display:block;width:82px;height:27px;margin:0 auto 16px;
    background:url('fregio-oro.svg') center/contain no-repeat;
}
.cpc-wrap .cpc-board-row {gap:16px;padding:12px 0;font-size:13px;line-height:1.7;}
.cpc-wrap .cpc-board-row strong {font-weight:400;color:#702b33;}
.cpc-wrap .cpc-form-intro {text-align:center;font-size:14px;line-height:1.9;margin:0 0 24px;}
.cpc-wrap .cpc-form-card label,
.cpc-wrap .cpc-form-card input,
.cpc-wrap .cpc-form-card textarea,
.cpc-wrap .cpc-form-card button {font-family:'Libre Baskerville',Georgia,serif;}
.cpc-wrap .cpc-form-card form > label,
.cpc-wrap .cpc-two label {font-size:12px;font-weight:400;line-height:1.7;}
.cpc-wrap .cpc-two {gap:14px;}
.cpc-wrap .cpc-form-card input[type='text'],
.cpc-wrap .cpc-form-card input[type='email'],
.cpc-wrap .cpc-form-card textarea {
    border:1px solid #c4ac84;background:rgba(255,255,255,.5);border-radius:0;
    color:#362921;font-size:14px;padding:11px 12px;max-width:100%;
}
.cpc-wrap .cpc-form-card textarea {min-height:190px;resize:vertical;}
.cpc-wrap .cpc-privacy {font-size:11px!important;line-height:1.8;}
.cpc-wrap .cpc-form-card button {
    display:block;margin:24px auto 0;padding:13px 27px;border-radius:0;
    border:1px solid #9f7840;outline:1px solid #b69662;outline-offset:3px;
    background:#702b33;color:#fff8eb;font-size:12px;letter-spacing:.035em;
}
.cpc-wrap .cpc-form-card button:hover {background:#552129;border-color:#9f7840;transform:none;}
.cpc-wrap .cpc-form-card input:focus,
.cpc-wrap .cpc-form-card textarea:focus {outline:2px solid #896c3d;outline-offset:2px;}
body.page-id-14 main .wp-block-post-title,
body.page-id-14 .coral-restored-page-title {font-family:'Playfair Display',Georgia,serif!important;}
@media(max-width:850px){.cpc-wrap .cpc-main-grid{grid-template-columns:1fr;gap:28px;}.cpc-wrap .cpc-left::after{margin-top:28px;}}
@media(max-width:620px){
    .cpc-wrap .cpc-left,.cpc-wrap .cpc-form-card{padding:42px 24px 32px;}
    .cpc-wrap .cpc-two{grid-template-columns:1fr;gap:0;}
    .cpc-wrap .cpc-board-row{display:block;}
    .cpc-wrap .cpc-board-row strong{display:block;margin-top:3px;text-align:left;}
    .cpc-wrap .cpc-card h2{font-size:29px;}
}
.cpc-wrap .cpc-form-card {display:flex;flex-direction:column;}
.cpc-wrap .cpc-form-card form {margin-bottom:28px;}
.cpc-wrap .cpc-form-card::after {margin-top:auto;min-height:30px;}
.cpc-wrap .cpc-form-card input[type='hidden'] {display:none!important;}

/* 1.4.1 – tipografia comune per pagine, sottopagine, archivi e menu. */
body .wp-site-blocks,
.editor-styles-wrapper {
    --wp--preset--font-family--body:'Libre Baskerville',Georgia,serif;
    --wp--preset--font-family--heading:'Playfair Display',Georgia,serif;
    font-family:'Libre Baskerville',Georgia,serif;
}
body .wp-site-blocks :is(p,li,dt,dd,td,th,label,input,textarea,select,button,figcaption,blockquote,cite),
body .wp-site-blocks .wp-block-button__link,
.editor-styles-wrapper :is(p,li,dt,dd,td,th,label,input,textarea,select,button,figcaption,blockquote,cite),
.editor-styles-wrapper .wp-block-button__link {
    font-family:'Libre Baskerville',Georgia,serif!important;
}
body .wp-site-blocks :is(h1,h2,h3,h4,h5,h6),
body .wp-site-blocks .wp-block-site-title,
body .wp-site-blocks .coral-restored-page-title,
body .wp-site-blocks .cpf-children-heading,
body .wp-site-blocks .cpf-child-title,
.editor-styles-wrapper :is(h1,h2,h3,h4,h5,h6),
.editor-styles-wrapper .wp-block-site-title,
.editor-styles-wrapper .coral-restored-page-title,
.editor-styles-wrapper .cpf-children-heading,
.editor-styles-wrapper .cpf-child-title {
    font-family:'Playfair Display',Georgia,serif!important;
}
body .wp-site-blocks .wp-block-navigation,
body .wp-site-blocks .wp-block-navigation .wp-block-navigation-item__content,
body .wp-site-blocks .wp-block-navigation .wp-block-navigation-item__label,
.editor-styles-wrapper .wp-block-navigation,
.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item__content,
.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item__label {
    font-family:'Libre Baskerville',Georgia,serif!important;
    font-weight:700!important;
}


/* 1.4.2 – freccia dorata regolabile da Impostazioni > Freccia dorata. */
body .torna-su .wp-block-button__link::before {
    font-size:var(--coro-arrow-size,48px)!important;
    color:var(--coro-arrow-color,#e3b745)!important;
    text-shadow:none!important;
    filter:drop-shadow(0 var(--coro-arrow-depth,4px) var(--coro-arrow-depth,4px) rgba(46,27,3,.38));
}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
    body .torna-su .wp-block-button__link::before {
        background-image:linear-gradient(120deg,var(--coro-arrow-color,#e3b745) 0%,#fff2bd 32%,var(--coro-arrow-color,#e3b745) 46%,#fff7d0 68%,var(--coro-arrow-color,#e3b745) 100%);
        background-size:260% 260%;
        background-position:0% 20%;
        -webkit-background-clip:text;
        background-clip:text;
        -webkit-text-fill-color:transparent;
        color:transparent!important;
        text-shadow:none!important;
        filter:drop-shadow(0 calc(var(--coro-arrow-depth,4px) * .25) 0 rgba(118,76,13,.75)) drop-shadow(0 var(--coro-arrow-depth,4px) var(--coro-arrow-depth,4px) rgba(46,27,3,.38));
        animation:var(--coro-arrow-animation,coro-gold-shine 7s ease-in-out infinite);
    }
}
@supports (color:color-mix(in srgb,red,white)) {
    body .torna-su .wp-block-button__link::before {
        background-image:linear-gradient(120deg,color-mix(in srgb,var(--coro-arrow-color,#e3b745) 65%,#352309) 0%,var(--coro-arrow-color,#e3b745) 19%,color-mix(in srgb,var(--coro-arrow-color,#e3b745) 30%,white) 32%,var(--coro-arrow-color,#e3b745) 46%,color-mix(in srgb,var(--coro-arrow-color,#e3b745) 20%,white) 68%,var(--coro-arrow-color,#e3b745) 100%);
    }
}
body .torna-su .wp-block-button__link:focus-visible {
    outline:2px solid var(--coro-arrow-color,#d5a438);
    outline-offset:4px;
}
@media(prefers-reduced-motion:reduce){
    body .torna-su .wp-block-button__link::before {animation:none;}
}

/* 1.4.3 – forma originale della freccia e contorno dorato al clic/focus. */
body .torna-su .wp-block-button__link::before {
    content:'↑';
    display:block;
    font-family:Arial,sans-serif!important;
    font-weight:900!important;
    font-style:normal!important;
    line-height:1!important;
    letter-spacing:normal!important;
}
body .torna-su .wp-block-button__link:is(:focus,:focus-visible,:active) {
    outline:2px solid var(--coro-arrow-color,#e3b745)!important;
    outline-offset:4px!important;
    border:none!important;
    box-shadow:none!important;
    background:transparent!important;
    text-decoration:none!important;
}

/* 1.4.4 – neutralizza anche i contorni del tema sul contenitore Torna su. */
body .torna-su {
    --wp--preset--color--primary:var(--coro-arrow-color,#e3b745);
    --wp--preset--color--foreground:var(--coro-arrow-color,#e3b745);
}
body .torna-su:is(:focus,:focus-visible,:focus-within,:active),
body .torna-su :is(.wp-block-button,.wp-block-buttons):is(:focus,:focus-visible,:focus-within,:active) {
    outline:none!important;
    border-color:transparent!important;
    box-shadow:none!important;
}
body .torna-su :is(a,.wp-element-button,.wp-block-button__link):is(:focus,:focus-visible,:active) {
    color:var(--coro-arrow-color,#e3b745)!important;
    background-color:transparent!important;
    border:0!important;
    box-shadow:none!important;
    outline:2px solid var(--coro-arrow-color,#e3b745)!important;
    outline-offset:4px!important;
    text-decoration:none!important;
    -webkit-tap-highlight-color:rgba(227,183,69,.2);
}
body .torna-su :is(a,.wp-element-button,.wp-block-button__link):is(:focus,:focus-visible,:active)::after {
    border-color:var(--coro-arrow-color,#e3b745)!important;
    outline:none!important;
    box-shadow:none!important;
    background:transparent!important;
}

/* 1.4.5 – riflesso più evidente e alone regolabile, senza cambi di forma. */
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
    body .torna-su .wp-block-button__link::before {
        background-size:300% 300%;
        animation:var(--coro-arrow-animation,coro-arrow-attention 6s ease-in-out infinite);
        filter:drop-shadow(0 var(--coro-arrow-depth,4px) var(--coro-arrow-depth,4px) rgba(46,27,3,.38)) drop-shadow(0 0 var(--coro-arrow-glow,6px) var(--coro-arrow-color,#e3b745));
    }
}
@supports (color:color-mix(in srgb,red,white)) {
    body .torna-su .wp-block-button__link::before {
        background-image:linear-gradient(115deg,color-mix(in srgb,var(--coro-arrow-color,#e3b745) 65%,#352309) 0%,var(--coro-arrow-color,#e3b745) 25%,color-mix(in srgb,var(--coro-arrow-color,#e3b745) 25%,white) 41%,#fffef0 47%,#ffffff 50%,var(--coro-arrow-color,#e3b745) 57%,color-mix(in srgb,var(--coro-arrow-color,#e3b745) 35%,white) 75%,var(--coro-arrow-color,#e3b745) 100%);
    }
}
@keyframes coro-arrow-attention {
    0%,100% {
        background-position:0% 20%;
        filter:brightness(1.06) drop-shadow(0 var(--coro-arrow-depth,4px) var(--coro-arrow-depth,4px) rgba(46,27,3,.38)) drop-shadow(0 0 calc(var(--coro-arrow-glow,6px) * .5) var(--coro-arrow-color,#e3b745));
    }
    50% {
        background-position:100% 80%;
        filter:brightness(1.35) drop-shadow(0 var(--coro-arrow-depth,4px) var(--coro-arrow-depth,4px) rgba(46,27,3,.38)) drop-shadow(0 0 var(--coro-arrow-glow,6px) var(--coro-arrow-color,#e3b745));
    }
}
@media(prefers-reduced-motion:reduce){
    body .torna-su .wp-block-button__link::before {
        animation:none;
        filter:drop-shadow(0 var(--coro-arrow-depth,4px) var(--coro-arrow-depth,4px) rgba(46,27,3,.38));
    }
}

/* 1.4.6 – freccia vettoriale ottocentesca, con foglie e volute. */
body .torna-su .wp-block-button__link::before {
    content:''!important;
    display:block;
    width:var(--coro-arrow-size,48px);
    height:calc(var(--coro-arrow-size,48px) * 1.4);
    background-color:var(--coro-arrow-color,#e3b745);
    -webkit-background-clip:border-box!important;
    background-clip:border-box!important;
    -webkit-mask:url('freccia-ottocento.svg') center/contain no-repeat;
    mask:url('freccia-ottocento.svg') center/contain no-repeat;
}

/* 1.4.7 – archivio eventi in carta avorio, con fregi da programma di sala. */
body .cpae-sidebar .cpae-sidebar-inner {
    box-sizing:border-box;
    padding:56px 24px 54px!important;
    border:1px solid #af8747;
    border-radius:1px;
    background-color:#f8eed8;
    background-image:
        radial-gradient(ellipse at 0% 40%,rgba(153,104,35,.12),transparent 58%),
        radial-gradient(ellipse at 100% 85%,rgba(153,104,35,.11),transparent 56%),
        linear-gradient(105deg,#f2e5c9 0%,#fcf5e6 17%,#fbf2df 78%,#f0e2c4 100%);
    box-shadow:inset 0 0 0 5px rgba(249,240,220,.9),inset 0 0 0 6px rgba(175,135,71,.55),0 6px 20px rgba(68,41,12,.13);
    font-family:'Libre Baskerville',Georgia,serif!important;
}
body .cpae-sidebar .cpae-sidebar-inner::before,
body .cpae-sidebar .cpae-sidebar-inner::after {
    content:'';
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    width:98px;
    height:32px;
    background:url('fregio-oro.svg') center/contain no-repeat;
    pointer-events:none;
}
body .cpae-sidebar .cpae-sidebar-inner::before {top:14px;}
body .cpae-sidebar .cpae-sidebar-inner::after {bottom:12px;}
body .cpae-sidebar .cpae-sidebar-title {
    font-family:'Playfair Display',Georgia,serif!important;
    font-size:27px;
    font-weight:600;
    line-height:1.25;
    text-align:center;
    color:#63402a;
    margin:0 0 22px;
    overflow-wrap:normal;
}
body .cpae-sidebar .cpae-year-list,
body .cpae-sidebar .cpae-year-link,
body .cpae-sidebar .cpae-year-link > span,
body .cpae-sidebar .cpae-upcoming-link {
    font-family:'Libre Baskerville',Georgia,serif!important;
}
body .cpae-sidebar .cpae-year-link {
    box-sizing:border-box;
    min-width:0;
    min-height:48px;
    padding:12px 10px;
    font-size:16px;
    font-weight:700;
    line-height:1.5;
    color:#65452b!important;
    border-bottom:1px solid rgba(158,116,49,.3);
    transition:background-color .2s ease,color .2s ease;
}
body .cpae-sidebar .cpae-year-link:first-child {border-top:1px solid rgba(158,116,49,.3);}
body .cpae-sidebar .cpae-year-arrow {font-size:18px;color:#a4782c;}
body .cpae-sidebar .cpae-year-link:is(:hover,:focus-visible,.is-active,[aria-current='page']) {
    color:#7a1f2b!important;
    background:rgba(122,31,43,.065);
    padding:12px 10px;
}
body .cpae-sidebar .cpae-year-link:is(.is-active,[aria-current='page']) {
    box-shadow:inset 3px 0 0 #7a1f2b;
    font-weight:700;
}
body .cpae-sidebar .cpae-year-link:focus-visible {
    outline:2px solid #987039;
    outline-offset:2px;
}
body .cpae-sidebar .cpae-upcoming-link {
    text-align:center;
    line-height:1.7;
    border-color:rgba(158,116,49,.3);
}
@media(max-width:782px){
    body .cpae-sidebar .cpae-sidebar-inner {padding:54px 24px 52px!important;}
}
@media(max-width:782px){
    body .cpae-sidebar .cpae-sidebar-inner {position:relative!important;top:auto!important;}
}

/* 1.4.8 – Area riservata come targhetta teatrale bordeaux e oro. */
body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata'] {
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    min-height:44px;
    max-width:100%;
    overflow:hidden;
    padding:11px 20px!important;
    border:1px solid #d7ae53!important;
    border-radius:3px!important;
    background-color:#621f2b!important;
    background-image:linear-gradient(180deg,rgba(255,224,154,.075),transparent 55%,rgba(30,5,10,.16));
    color:#fff4d9!important;
    font-family:'Libre Baskerville',Georgia,serif!important;
    font-weight:700!important;
    text-align:center;
    text-decoration:none!important;
    line-height:1.4;
    box-shadow:0 2px 0 #43121b,0 4px 8px rgba(48,20,10,.18);
    transition:background-color .2s ease,box-shadow .2s ease,border-color .2s ease;
}
body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata']::before {
    content:'';
    position:absolute;
    inset:3px;
    border:1px solid rgba(231,193,107,.65);
    border-radius:1px;
    background-image:url('angolo-oro.svg'),url('angolo-oro-tr.svg'),url('angolo-oro-bl.svg'),url('angolo-oro-br.svg');
    background-position:left top,right top,left bottom,right bottom;
    background-size:15px 15px;
    background-repeat:no-repeat;
    pointer-events:none;
}
body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata']::after {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(105deg,transparent 25%,rgba(255,231,170,.04) 40%,rgba(255,240,191,.24) 50%,rgba(255,231,170,.04) 60%,transparent 75%);
    transform:translateX(-110%);
    pointer-events:none;
}
body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata']:is(:hover,:focus-visible) {
    background-color:#702534!important;
    color:#fff4d9!important;
    border-color:#f0cf82!important;
    box-shadow:0 2px 0 #43121b,0 4px 10px rgba(48,20,10,.2),0 0 7px rgba(219,177,77,.25);
}
body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata']:is(:hover,:focus-visible)::after {
    animation:coro-reserved-sheen .9s ease-in-out 1;
}
body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata']:focus-visible {
    outline:2px solid #b68a32!important;
    outline-offset:4px;
}
@keyframes coro-reserved-sheen {
    from{transform:translateX(-110%);}to{transform:translateX(110%);}
}
@media(prefers-reduced-motion:reduce){
    body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata'] {transition:none;}
    body .wp-site-blocks .wp-block-navigation a[href*='/area-riservata']::after {animation:none!important;}
}

/* 1.4.9 – celle Esplora di Chi siamo, con ingombri originali. */
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/']) {
    background-color:#621f2b;
    background-image:linear-gradient(180deg,rgba(255,224,154,.075),transparent 55%,rgba(30,5,10,.16));
    color:#fff4d9;
    border-top-color:#d7ae53;
    box-shadow:inset 0 0 0 1px #cfa44b,0 3px 8px rgba(48,20,10,.16);
    overflow:hidden;
}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/'])::before {
    content:'';
    position:absolute;
    inset:3px;
    border:1px solid rgba(231,193,107,.65);
    background-image:url('angolo-oro.svg'),url('angolo-oro-tr.svg'),url('angolo-oro-bl.svg'),url('angolo-oro-br.svg');
    background-position:left top,right top,left bottom,right bottom;
    background-size:18px 18px;
    background-repeat:no-repeat;
    pointer-events:none;
}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/'])::after {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(105deg,transparent 25%,rgba(255,231,170,.04) 40%,rgba(255,240,191,.2) 50%,rgba(255,231,170,.04) 60%,transparent 75%);
    transform:translateX(-110%);
    pointer-events:none;
}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/']) .cpf-child-title {color:#fff4d9;}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/']) .cpf-child-arrow {color:#e7c272;}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/']):is(:hover,:focus-visible) {
    background-color:#702534;
    box-shadow:inset 0 0 0 1px #f0cf82,0 4px 10px rgba(48,20,10,.2);
}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/']):is(:hover,:focus-visible)::after {animation:coro-reserved-sheen .9s ease-in-out 1;}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/']):is(.is-current,[aria-current='page']) {
    border-top-color:#f5d88f;
    box-shadow:inset 0 0 0 2px #dfbc6a,0 3px 8px rgba(48,20,10,.16);
}
body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/']):focus-visible {outline:2px solid #b68a32;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){
    body .cpf-children-nav .cpf-child-card:is([href*='/chi-siamo/'],[href*='/galleria/'])::after {animation:none!important;}
}

/* 1.5.1 – Foto e Video come album ottocentesco, con decorazioni statiche. */
body.corale-gallery-page main .coral-restored-page-title,
body.corale-gallery-page main h1.wp-block-post-title {
    color:#593729;
    font-family:'Playfair Display',Georgia,serif!important;
    text-align:center;
}
body.corale-gallery-page main .coral-restored-page-title::after,
body.corale-gallery-page main h1.wp-block-post-title::after {
    content:'';
    display:block;
    width:min(330px,85%);
    height:36px;
    margin:14px auto 20px;
    background-image:url('fregio-oro.svg'),linear-gradient(90deg,transparent,#c19a55),linear-gradient(90deg,#c19a55,transparent);
    background-position:center center,left center,right center;
    background-size:104px 36px,calc(50% - 52px) 1px,calc(50% - 52px) 1px;
    background-repeat:no-repeat;
    pointer-events:none;
}
/* FooGallery: cornice a filo dell’immagine senza alterare miniature o griglia. */
body.corale-gallery-foto .foogallery .fg-item-inner {
    background-color:#fbf4e5;
    border-radius:0;
    box-shadow:0 5px 14px rgba(64,42,19,.14);
}
body.corale-gallery-foto .foogallery .fg-thumb {
    border-color:#b6904e;
    border-radius:0;
}
body.corale-gallery-foto .foogallery .fg-image-wrap {position:relative;}
body.corale-gallery-foto .foogallery .fg-image-wrap::before {
    content:'';
    position:absolute;
    inset:0;
    border:1px solid #a67b35;
    box-shadow:inset 0 0 0 1px rgba(255,234,177,.9);
    pointer-events:none;
    z-index:2;
}
body.corale-gallery-foto .foogallery .fg-image-wrap::after {
    content:'';
    position:absolute;
    inset:4px;
    border:1px solid rgba(208,171,96,.85);
    background-image:url('angolo-oro.svg'),url('angolo-oro-tr.svg'),url('angolo-oro-bl.svg'),url('angolo-oro-br.svg');
    background-position:left top,right top,left bottom,right bottom;
    background-size:24px 24px;
    background-repeat:no-repeat;
    pointer-events:none;
    z-index:2;
}
body.corale-gallery-foto .foogallery .fg-caption {
    background-color:#fbf4e5;
    color:#493127;
    font-family:'Libre Baskerville',Georgia,serif!important;
}
body.corale-gallery-foto .foogallery .fg-caption-title {
    font-family:'Playfair Display',Georgia,serif!important;
}
body.corale-gallery-foto .foogallery .fg-caption-desc {
    font-family:'Libre Baskerville',Georgia,serif!important;
}
body.corale-gallery-foto .foogallery .fg-thumb:focus-visible {
    outline:2px solid #805c2d;
    outline-offset:4px;
}
/* Sezioni e didascalie: nessun titolo, data o contenuto viene inventato. */
body.corale-gallery-page main .entry-content > h2,
body.corale-gallery-page main .entry-content > .wp-block-group > h2 {
    font-family:'Playfair Display',Georgia,serif!important;
    color:#63402a;
    text-align:center;
}
body.corale-gallery-page main .wp-block-separator {
    border-color:#b6904e;
    color:#b6904e;
}
body.corale-gallery-page main figcaption {
    font-family:'Libre Baskerville',Georgia,serif!important;
    color:#634b3c;
    text-align:center;
}
/* Video WordPress: solo la cornice esterna, senza sovrapporre i controlli. */
body.corale-gallery-video main .wp-block-embed__wrapper {
    outline:1px solid #ac8341;
    outline-offset:4px;
    box-shadow:0 0 0 2px #f8edd5,0 5px 16px rgba(64,42,19,.16);
}
body.corale-gallery-video main .wp-block-video > video {
    outline:1px solid #ac8341;
    outline-offset:4px;
    box-shadow:0 0 0 2px #f8edd5,0 5px 16px rgba(64,42,19,.16);
}
body.corale-gallery-video main .wp-block-embed figcaption,
body.corale-gallery-video main .wp-block-video figcaption {
    padding:14px 12px;
    background:#fbf4e5;
    border-bottom:1px solid #b6904e;
    line-height:1.8;
}
@media(max-width:600px){
    body.corale-gallery-foto .foogallery .fg-image-wrap::after {inset:3px;background-size:18px 18px;}
}

/* 1.5.2 – testata decorativa solo per il nome della corale. */
@font-face {
    font-family:'Cinzel Decorative';
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url('fonts/cinzel-decorative-700.ttf') format('truetype');
}
body .wp-site-blocks :is(header,footer) .wp-block-site-title,
body .wp-site-blocks :is(header,footer) .wp-block-site-title a {
    font-family:'Cinzel Decorative','Playfair Display',Georgia,serif!important;
    font-weight:700!important;
    font-style:normal;
    color:#702b33!important;
    letter-spacing:.015em;
    font-kerning:normal;
    text-shadow:none;
    text-decoration:none;
}
body .wp-site-blocks header .wp-block-site-title {
    font-size:clamp(15px,1.5vw,20px);
    line-height:1.35;
}
body .wp-site-blocks footer .wp-block-site-title {
    font-size:clamp(15px,1.5vw,20px);
    line-height:1.4;
}
@media(max-width:600px){
    body .wp-site-blocks :is(header,footer) .wp-block-site-title {
        font-size:clamp(12px,3vw,17px);
        letter-spacing:0;
        line-height:1.45;
        white-space:normal;
        overflow-wrap:normal;
        word-break:normal;
    }
}
