/* Contenuti Gutenberg e Rank Math. Le sezioni costruite nei template restano escluse. */
.gw-editorial__content { min-width: 0; color: var(--gw-ink); font-size: 1.08rem; line-height: 1.75; overflow-wrap: anywhere; }
.gw-editorial__content :where(h1,h2,h3,h4,h5,h6) { margin-block: 1.8em .65em; font-weight: 750; line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; scroll-margin-top: 32px; }
.gw-editorial__content :where(h1,h2,h3,h4,h5,h6):not(.has-text-color) { color: var(--gw-blue-deep); }
.gw-editorial__content h1 { font-size: clamp(1.95rem, 3.2vw, 2.65rem); }
.gw-editorial__content h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.gw-editorial__content h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.gw-editorial__content h4 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.gw-editorial__content h5 { font-size: 1.08rem; }
.gw-editorial__content h6 { font-size: 1rem; }
.gw-editorial__content > :first-child { margin-top: 0; }
.gw-editorial__content > :last-child { margin-bottom: 0; }
.gw-editorial__content p { margin-block: 0 1.2em; }
.gw-editorial__content :where(ul,ol) { padding-left: 1.5em; margin-block: 0 1.4em; }
.gw-editorial__content li { padding-left: .2em; margin-bottom: .45em; }
.gw-editorial__content li::marker { color: var(--gw-blue); font-weight: 700; }
.gw-editorial__content li :where(ul,ol) { margin-block: .65em .25em; }
.gw-editorial__content li > p { margin-bottom: .5em; }
.gw-editorial__content dl { margin-block: 1.5em; }
.gw-editorial__content dt { color: var(--gw-blue-deep); font-weight: 750; }
.gw-editorial__content dd { margin: .3em 0 1em; }
.gw-editorial__content :where(a):not(.wp-block-button__link):not(.wp-block-file__button):not(.gw-button) { color: var(--gw-blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.gw-editorial__content a:hover { text-decoration-thickness: 2px; }
.gw-editorial__content :where(a,button,summary,input,textarea,select):focus-visible { outline: 3px solid var(--gw-blue); outline-offset: 4px; }
.gw-editorial__content mark { padding: .08em .2em; }
.gw-editorial__content :where(sub,sup) { font-size: .75em; }
.gw-editorial__content abbr[title] { text-decoration-style: dotted; cursor: help; }
.gw-editorial__content :where(figure,.wp-block-embed,.wp-block-audio,.wp-block-video) { margin: 2em 0; }
.gw-editorial__content :where(img,video,iframe) { max-width: 100%; }
.gw-editorial__content img { height: auto; }
.gw-editorial__content :where(figcaption,.wp-element-caption) { margin-top: .75em; color: var(--gw-muted); font-size: .82rem; line-height: 1.55; text-align: left; }
.gw-editorial__content :where(.alignwide,.alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }
.gw-editorial__content .aligncenter { margin-inline: auto; }
.gw-editorial__content .alignleft { float: left; margin: .4em 1.5em 1em 0; }
.gw-editorial__content .alignright { float: right; margin: .4em 0 1em 1.5em; }
.gw-editorial__content::after { display: block; clear: both; content: ''; }
.gw-editorial__content .wp-block-gallery { gap: 16px; }
.gw-editorial__content .wp-block-gallery figure { margin: 0; }
.gw-editorial__content :where(blockquote,.wp-block-quote) { margin: 2em 0; padding: clamp(20px,3vw,32px); border: 0; border-left: 3px solid var(--gw-yellow); background: var(--gw-paper); }
.gw-editorial__content :where(blockquote,.wp-block-quote) p { font-size: 1.1em; }
.gw-editorial__content :where(blockquote,.wp-block-quote) > :last-child { margin-bottom: 0; }
.gw-editorial__content :where(cite,.wp-block-pullquote cite) { display: block; color: var(--gw-muted); font-size: .85rem; font-style: normal; }
.gw-editorial__content .wp-block-pullquote { padding: 1.5em 0; border-block: 1px solid var(--gw-line); text-align: left; }
.gw-editorial__content .wp-block-pullquote blockquote { margin: 0; }
.gw-editorial__content .wp-block-pullquote p { font-size: clamp(1.2rem,2.2vw,1.6rem); }
.gw-editorial__content :where(hr,.wp-block-separator) { height: 0; margin-block: 2.5em; border: 0; border-top: 1px solid var(--gw-line); }
.gw-editorial__content .wp-block-separator.is-style-dots { height: auto; border: 0; color: var(--gw-blue); }
.gw-editorial__content :where(pre,.wp-block-code,.wp-block-preformatted) { max-width: 100%; overflow-x: auto; padding: 20px; border: 1px solid var(--gw-line); background: #f3f5f9; color: var(--gw-ink); font: .88rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; overflow-wrap: normal; }
.gw-editorial__content :where(code,kbd,samp) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.gw-editorial__content :not(pre) > code { padding: .15em .35em; background: #eef1f6; color: var(--gw-blue-deep); }
.gw-editorial__content kbd { padding: .12em .4em; border: 1px solid #a6b0c4; border-radius: 3px; background: #f3f5f9; }
.gw-editorial__content .wp-block-verse { white-space: pre-wrap; font: inherit; }
.gw-editorial__content .wp-block-table { max-width: 100%; overflow-x: auto; border: 0; background: transparent; }
.gw-editorial__content table { width: 100%; border-collapse: collapse; border: 0; font-size: .94rem; line-height: 1.6; }
.gw-editorial__content :is(th,td) { padding: 16px 20px; border: 0; border-bottom: 1px solid #e7eaf0; vertical-align: top; overflow-wrap: normal; }
.gw-editorial__content .wp-block-table :is(thead,tfoot) { border: 0; }
.gw-editorial__content .wp-block-table :is(th,td) { padding: 16px 20px; border: 0; border-bottom: 1px solid #e7eaf0; }
.gw-editorial__content th { background: #f1f3f8; color: var(--gw-blue-deep); font-weight: 700; text-align: left; }
.gw-editorial__content .wp-block-table thead th { padding-block: 14px; border-bottom: 1px solid #cbd3e2; background: #f1f3f8; color: var(--gw-blue-deep); font-size: .85rem; font-weight: 750; line-height: 1.5; letter-spacing: .015em; }
.gw-editorial__content tbody tr:nth-child(even) { background: transparent; }
.gw-editorial__content .wp-block-table tbody tr:last-child :is(th,td) { border-bottom: 0; }
.gw-editorial__content .wp-block-table.is-style-stripes { border: 0; background: transparent; }
.gw-editorial__content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f8f9fb; }
.gw-editorial__content .wp-block-table.is-style-stripes tbody tr:nth-child(even) { background: transparent; }
.gw-editorial__content .wp-block-buttons { gap: 14px; margin-block: 1.5em; }
.gw-editorial__content .wp-block-button__link { display: inline-block; min-height: 48px; padding: 14px 22px; border: 1px solid transparent; border-radius: 0; font-size: .95rem; font-weight: 750; line-height: 1.4; text-decoration: none; }
.gw-editorial__content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: var(--gw-yellow); }
.gw-editorial__content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color) { color: var(--gw-blue-deep); }
.gw-editorial__content .wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid currentColor; background: transparent; }
.gw-editorial__content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) { color: var(--gw-blue); }
.gw-editorial__content .wp-block-button__link:hover { text-decoration: underline; text-underline-offset: .2em; }
.gw-editorial__content .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--gw-line); }
.gw-editorial__content .wp-block-file__button { padding: 12px 18px; border-radius: 0; background: var(--gw-blue); color: white; font-weight: 700; text-decoration: none; }
.gw-editorial__content .wp-block-audio audio { width: 100%; }
.gw-editorial__content .wp-block-cover { padding: clamp(24px,4vw,48px); }
.gw-editorial__content .wp-block-cover .wp-block-cover__inner-container :where(h1,h2,h3,h4,h5,h6,p):not(.has-text-color) { color: inherit; }
.gw-editorial__content .wp-block-cover__inner-container > :last-child { margin-bottom: 0; }
.gw-editorial__content .has-text-color :where(h1,h2,h3,h4,h5,h6):not(.has-text-color) { color: inherit; }
.gw-editorial__content .has-text-color li::marker { color: inherit; }
.gw-editorial__content .wp-block-group.has-background { padding: clamp(20px,3vw,36px); }
.gw-editorial__content .wp-block-columns { gap: 28px; margin-block: 2em; }
.gw-editorial__content .wp-block-column { min-width: 0; }
.gw-editorial__content .wp-block-media-text { gap: clamp(20px,3vw,36px); }
.gw-editorial__content .wp-block-media-text__content { padding-inline: 0; }
.gw-editorial__content .wp-block-media-text__media { margin: 0; }
.gw-editorial__content .wp-block-details { margin-block: 1em; padding: 0; border: 1px solid var(--gw-line); border-left: 3px solid var(--gw-yellow); background: var(--gw-paper); }
.gw-editorial__content .wp-block-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: clamp(20px,3vw,30px); padding-inline-end: 18px; color: var(--gw-blue-deep); font-size: clamp(1.1rem,1.8vw,1.35rem); font-weight: 750; line-height: 1.4; list-style: none; cursor: pointer; }
.gw-editorial__content .wp-block-details > summary::-webkit-details-marker { display: none; }
.gw-editorial__content .wp-block-details > summary::marker { content: ''; }
.gw-editorial__content .wp-block-details > summary::after { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin-inline-start: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .18s ease; content: ''; }
.gw-editorial__content .wp-block-details[open] > summary::after { transform: rotate(180deg); }
.gw-editorial__content .wp-block-details > summary:hover { background: #eeede3; }
.gw-editorial__content .wp-block-details > summary:focus-visible { outline: 3px solid var(--gw-blue); outline-offset: 3px; }
.gw-editorial__content .wp-block-details > :not(summary) { margin-inline: clamp(20px,3vw,30px); }
.gw-editorial__content .wp-block-details > :last-child:not(summary) { margin-bottom: clamp(20px,3vw,30px); }
.gw-editorial__content :where(.wp-block-latest-posts,.wp-block-categories-list,.wp-block-archives-list,.wp-block-rss) { padding-left: 1.3em; }
.gw-editorial__content .wp-block-latest-posts__post-title { font-weight: 700; }
.gw-editorial__content :where(.wp-block-latest-posts__post-date,.wp-block-rss__item-publish-date) { display: block; color: var(--gw-muted); font-size: .82rem; }
.gw-editorial__content .wp-block-search__input { min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #a6b0c4; background: white; color: var(--gw-ink); font: inherit; }
.gw-editorial__content .wp-block-search__button { padding: 10px 18px; border: 1px solid var(--gw-blue); background: var(--gw-blue); color: white; font: inherit; font-weight: 700; }
.gw-editorial__content .wp-block-calendar table { table-layout: fixed; }
.gw-editorial__content .wp-block-calendar :where(th,td) { padding: 8px 4px; text-align: center; }
.gw-editorial__content .wp-block-table:focus-visible { outline: 3px solid var(--gw-blue); outline-offset: 4px; }
/* Contenuti e schema Rank Math; il pulsante accordion viene aggiunto in vanilla JS. */
.gw-editorial__content :where(#rank-math-faq,.wp-block-rank-math-faq-block) { margin-block: 2em; }
.gw-editorial__content .rank-math-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.gw-editorial__content .rank-math-list-item { margin: 0; padding: clamp(20px,3vw,30px); border: 1px solid var(--gw-line); border-left: 3px solid var(--gw-yellow); background: var(--gw-paper); }
.gw-editorial__content .rank-math-question { margin: 0 0 14px; color: var(--gw-blue-deep); font-size: clamp(1.1rem,1.8vw,1.35rem); font-weight: 750; line-height: 1.4; letter-spacing: -.01em; }
.gw-editorial__content .rank-math-answer { font-size: 1rem; line-height: 1.75; }
.gw-editorial__content .rank-math-answer > :last-child { margin-bottom: 0; }
.gw-editorial__content .rank-math-answer img { margin-block: 1em; }
.gw-editorial__content .rank-math-list-item.gw-faq-item { padding: 0; }
.gw-editorial__content .gw-faq-item .rank-math-question { margin: 0; }
.gw-editorial__content .gw-faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 56px; padding: clamp(20px,3vw,30px); padding-inline-end: 18px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.gw-editorial__content .gw-faq-trigger:hover { background: #eeede3; }
.gw-editorial__content .gw-faq-trigger:focus-visible { position: relative; outline: 3px solid var(--gw-blue); outline-offset: 3px; }
.gw-editorial__content .gw-faq-label { min-width: 0; }
.gw-editorial__content .gw-faq-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin-inline-start: auto; transition: transform .18s ease; }
.gw-editorial__content .gw-faq-icon svg { display: block; width: 20px; height: 20px; }
.gw-editorial__content .gw-faq-trigger[aria-expanded="true"] .gw-faq-icon { transform: rotate(180deg); }
.gw-editorial__content .gw-faq-item .rank-math-answer { padding: 0 clamp(20px,3vw,30px) clamp(20px,3vw,30px); }
.gw-editorial__content .gw-faq-item .rank-math-answer[hidden] { display: none; }
.gw-editorial__content .gw-faq-item .rank-math-answer:not([hidden]) { animation: gw-faq-appear .18s ease-out; }
@keyframes gw-faq-appear { from { opacity: .2; } to { opacity: 1; } }
@media (max-width: 600px) {
  .gw-editorial__content :where(.alignleft,.alignright) { float: none; margin: 1.5em auto; }
  .gw-editorial__content .wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100%; }
  .gw-editorial__content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
  .gw-editorial__content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { grid-column: 1; grid-row: 2; }
  .gw-editorial__content :is(th,td), .gw-editorial__content .wp-block-table :is(th,td) { padding: 12px 14px; }
  .gw-editorial__content .wp-block-table table { min-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-editorial__content { scroll-behavior: auto; }
  .gw-editorial__content .gw-faq-icon { transition: none; }
  .gw-editorial__content .wp-block-details > summary::after { transition: none; }
  .gw-editorial__content .gw-faq-item .rank-math-answer:not([hidden]) { animation: none; }
}
