.editorial-site, .public-example {
  --paper: #fffefa;
  --text: #232a28;
  --subtle: #525851;
  --accent: #903e30;
  --divider: #dedcd2;
  --display: Georgia, 'Times New Roman', serif;
  --ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--paper);
  color: var(--text);
}
.editorial-site { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 1rem/1.6 var(--ui); }
.editorial-site *, .editorial-site ::before, .editorial-site ::after { box-sizing: border-box; }
.editorial-site main { flex: 1; }
.editorial-site :is(h1, h2), .public-example :is(h1, h2) { font-family: var(--display); font-weight: 400; }
.editorial-site :is(h1, h2, p, figure) { margin: 0; }
.editorial-site a { color: inherit; }
.editorial-site a:focus-visible, .public-example :is(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page-width { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.editorial-header { border-bottom: 1px solid var(--divider); }
.header-layout { display: flex; align-items: center; gap: clamp(1.05rem, 3.2vw, 2.5rem); min-height: 77px; }
.wordmark { display: inline-block; font: 760 2.2rem/.95 var(--ui); letter-spacing: -.088em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.header-layout nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2rem); margin-left: auto; }
.header-layout nav a, .header-access { font-size: .91rem; font-weight: 600; text-decoration: none; }
.header-layout nav a:hover, .footer-layout a:not(.wordmark):hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.header-access { padding-block: .4rem; border-bottom: 1px solid var(--accent); }
.editorial-site .header-access { color: var(--accent); }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: absolute; z-index: 3; left: 1rem; top: .7rem; background: var(--paper); padding: .5rem; }

.introduction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .70fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.2rem); }
.introduction h1 { font-size: clamp(2.9rem, 5.7vw, 5rem); letter-spacing: -.062em; line-height: 1.03; }
.introduction p { max-width: 41ch; margin-top: 1.4rem; font-size: clamp(1.04rem, 1rem + .24vw, 1.21rem); color: var(--subtle); }
.editorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; margin-top: 1.8rem; }
.editorial-site .paper-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 3px; background: var(--accent); color: #fff; font-weight: 650; font-size: .93rem; text-decoration: none; }
.editorial-site .paper-button:hover { background: #763224; }
.text-link { font-size: .93rem; font-weight: 650; text-underline-offset: .24em; }
.text-link:hover { color: var(--accent); }
.editorial-site .print-preview { width: min(100%, 315px); margin-inline: auto; }
.print-preview a { display: block; border: 1px solid #d5d4cb; box-shadow: 0 4px 10px #271c1010; transition: border-color .15s ease; }
.print-preview a:hover { border-color: var(--accent); }
.print-preview img { display: block; width: 100%; height: auto; background: #fff; }
.print-preview figcaption { margin-top: .75rem; color: var(--subtle); font-size: .85rem; text-align: center; }
.print-preview figcaption span { padding-inline: .2rem; }

.example-section { border-top: 1px solid var(--divider); padding-block: 2.45rem 3.6rem; scroll-margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem 1.3rem; padding-bottom: 1rem; }
.editorial-site h2 { font-size: clamp(1.72rem, 3.3vw, 2.52rem); letter-spacing: -.04em; line-height: 1.2; }
.section-heading p { color: var(--subtle); }
.sample-list { list-style: none; border-top: 1px solid var(--divider); margin: 0; padding: 0; }
.sample-list li { border-bottom: 1px solid var(--divider); }
.sample-list a { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem 1.2rem; padding-block: .85rem; text-decoration: none; }
.sample-list a:hover .sample-name { color: var(--accent); text-decoration: underline; text-underline-offset: .21em; }
.sample-name { font: 500 1.35rem/1.35 var(--display); }
.sample-details { color: var(--subtle); font-size: .88rem; }
.procedure { background: #f3f2ec; border-block: 1px solid var(--divider); scroll-margin-top: 1rem; }
.procedure-layout { display: grid; grid-template-columns: .56fr 1fr; align-items: start; gap: 1.4rem 3rem; padding-block: 3.6rem; }
.procedure-list { display: grid; gap: 1.18rem; margin: 0; }
.procedure-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .2rem 1.3rem; }
.procedure-list dt { font-weight: 700; }
.procedure-list dd { color: var(--subtle); margin: 0; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 83px; }
.footer-layout .wordmark { font-size: 1.6rem; }
.footer-layout a:not(.wordmark) { color: var(--subtle); font-size: .88rem; text-underline-offset: .2em; }

.editorial-article { width: min(700px, calc(100% - 48px)); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 5.1rem); }
.editorial-article h1 { font-size: clamp(2.55rem, 6vw, 4.1rem); letter-spacing: -.06em; line-height: 1.05; margin-block: 0 2.3rem; }
.editorial-article h2 { font-size: 1.6rem; margin-block: 1.8rem .35rem; }
.editorial-article p { color: var(--subtle); }
.article-site .editorial-footer { border-top: 1px solid var(--divider); }

.public-example .topbar, .public-example .site-footer { background: var(--paper); border-color: var(--divider); }
.public-example .wordmark { color: var(--text); }
.public-example .wordmark:hover { text-decoration: none; }
.public-example .app-nav summary span { background: var(--accent); }
.public-example :is(#view[aria-busy], .quiz-wrap:has(#start)) h1 { font-size: clamp(2.7rem, 6.5vw, 4.35rem); line-height: 1.07; letter-spacing: -.052em; }
.public-example .quiz-wrap:has(#start) .card { border: solid var(--divider); border-width: 1px 0 0; border-radius: 0; background: transparent; box-shadow: none; }
.public-example .quiz-wrap:has(#start) .card-body { padding-inline: 0; }
.public-example .quiz-wrap:has(#start) :is(h2, .eyebrow) { color: var(--text); }
.public-example .quiz-wrap:has(#start) h2 { font-size: 1.54rem; }
.public-example .quiz-wrap:has(#start) .btn { border-radius: 3px; box-shadow: none; }
.public-example .quiz-wrap:has(#start) .btn-primary { --tblr-btn-bg: var(--accent); --tblr-btn-border-color: var(--accent); --tblr-btn-hover-bg: #763224; --tblr-btn-hover-border-color: #763224; }
.public-example .quiz-wrap:has(#start) .btn-outline-primary { --tblr-btn-color: var(--accent); --tblr-btn-border-color: var(--accent); --tblr-btn-hover-bg: var(--accent); --tblr-btn-hover-border-color: var(--accent); }

@media (max-width: 899px) {
  .wide-break { display: none; }
  .procedure-list div { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .page-width { width: calc(100% - 40px); }
  .header-layout { min-height: 62px; }
  .header-layout nav a[href$="#come-funziona"] { display: none; }
  .wordmark { font-size: 1.9rem; }
  .introduction { grid-template-columns: 1fr; gap: 2rem; }
  .introduction h1 { max-width: 13ch; }
  .editorial-site .print-preview { width: min(100%, 265px); }
  .sample-list a { flex-direction: column; }
  .example-section { padding-block: 2rem 2.65rem; }
  .procedure-layout { grid-template-columns: 1fr; padding-block: 2.65rem; }
  .footer-layout { min-height: 70px; }
}
