/* THERA warm glass: opaque fallback, readable ink, separate decorative layers. */
body[data-sar-menu=floating] .sar-floating-bar,
body[data-sar-menu=floating] .sar-menu-surface,
#thera-sar-editoriale[data-reading=continuous] .sar-section-trigger,
#thera-sar-editoriale[data-reading=continuous] .sar-section-surface {
  background:#f4f2ed;
  color:#152c35;
  border:1px solid rgba(82,107,108,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(255,255,255,.35),0 10px 30px rgba(21,44,53,.09);
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  body[data-sar-menu=floating] .sar-floating-bar,
  body[data-sar-menu=floating] .sar-menu-surface,
  #thera-sar-editoriale[data-reading=continuous] .sar-section-trigger,
  #thera-sar-editoriale[data-reading=continuous] .sar-section-surface {
    background:linear-gradient(125deg,rgba(255,254,249,.35),rgba(255,255,255,.08) 48%,rgba(255,117,31,.055)),rgba(244,242,237,.88);
    -webkit-backdrop-filter:blur(16px) saturate(1.12);
    backdrop-filter:blur(16px) saturate(1.12);
  }
  body[data-sar-menu=floating] .sar-menu-surface,
  #thera-sar-editoriale[data-reading=continuous] .sar-section-surface {background-color:rgba(244,242,237,.94)}
}
body[data-sar-menu=floating] .sar-navigation-dialog {background:transparent}
body[data-sar-menu=floating] .sar-navigation-dialog::backdrop {background:rgba(21,44,53,.085);backdrop-filter:none;-webkit-backdrop-filter:none}
body[data-sar-menu=floating] .sar-navigation-dialog .sar-pages-links a {border-bottom-color:rgba(93,112,111,.17)}
body[data-sar-menu=floating] .sar-navigation-dialog .sar-pages-links a[aria-current] {background:rgba(244,225,204,.85)}
body[data-sar-menu=floating] .sar-navigation-dialog .sar-pages-links a:is(:hover,:focus-visible) {background:rgba(239,230,216,.85)}

/* A single reading column; the section control belongs to the whole article. */
#thera-sar-editoriale[data-reading=continuous] .atlas-book {display:block;width:100%;max-width:1060px;margin-inline:auto;min-width:0;overflow:visible;padding-bottom:42px}
#thera-sar-editoriale[data-reading=continuous] .atlas-reader {display:block;grid-area:auto;width:100%;max-width:1060px;min-width:0;margin-inline:auto;container:chapter/inline-size}
#thera-sar-editoriale[data-reading=continuous] .atlas-book>.atlas-reader-bar {position:sticky;top:calc(var(--sar-nav-height,108px) + 8px);z-index:40;display:block;min-height:0;margin:0 0 28px;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
#thera-sar-editoriale[data-reading=continuous] .atlas-reader-bar>.sar-section-trigger {display:grid;grid-template-columns:auto minmax(0,1fr) auto 19px;align-items:center;gap:12px;width:100%;min-width:0;min-height:55px;padding:10px 17px;border-radius:16px;text-align:left;font:500 13px/1.45 Manrope,Arial,sans-serif;cursor:pointer;transform:none;transition:border-color .25s,box-shadow .25s,background-color .25s}
#thera-sar-editoriale[data-reading=continuous] .sar-section-caption {color:#974714;font-size:11px;font-weight:700;letter-spacing:.035em}
#thera-sar-editoriale[data-reading=continuous] .atlas-reader-bar::after {content:'';position:absolute;left:17px;right:17px;bottom:0;height:2px;border-radius:2px;background:linear-gradient(90deg,#ff751f,#d69a61);transform:scaleX(var(--chapter-progress,0));transform-origin:left;pointer-events:none}
#thera-sar-editoriale[data-reading=continuous] .sar-section-current {min-width:0;color:#152c35;font-size:13px;font-weight:650;line-height:1.45;overflow-wrap:break-word}
#thera-sar-editoriale[data-reading=continuous] .sar-section-count {color:#58696b;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
#thera-sar-editoriale[data-reading=continuous] .sar-section-trigger .sar-pages-symbol {color:#974714;width:18px;justify-self:end}
#thera-sar-editoriale[data-reading=continuous] .sar-section-trigger:hover {border-color:rgba(169,97,43,.44);box-shadow:inset 0 1px 0 #fff,0 12px 32px rgba(21,44,53,.11)}
#thera-sar-editoriale[data-reading=continuous] .sar-section-trigger:active {background-color:#eee4d6}
#thera-sar-editoriale[data-reading=continuous] .sar-section-trigger:focus-visible {outline:2px solid #087e8a;outline-offset:4px}
body[data-sar-mobile=true] #thera-sar-editoriale[data-reading=continuous] .atlas-book>.atlas-reader-bar {top:calc(8px + env(safe-area-inset-top));margin-bottom:24px}

/* The native dialog owns interaction; its surface alone can be animated. */
#thera-sar-editoriale[data-reading=continuous] .atlas-sidebar.sar-section-dialog {position:fixed;inset:12px auto auto 12px;grid-area:auto;align-self:auto;width:calc(100% - 24px);min-width:0;max-width:1060px;max-height:calc(100dvh - 24px);margin:0;padding:1px;border:0;border-radius:16px;background:transparent;color:#152c35;box-shadow:none;overflow:hidden;overscroll-behavior:contain;isolation:isolate;z-index:auto;visibility:visible;pointer-events:auto;opacity:1;transform:none;transition:none;font:400 14px/1.6 Manrope,Arial,sans-serif}
#thera-sar-editoriale[data-reading=continuous] .atlas-sidebar.sar-section-dialog:not([open]) {display:none!important}
#thera-sar-editoriale[data-reading=continuous] .atlas-sidebar.sar-section-dialog[open] {display:flex;flex-direction:column}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog::backdrop {background:rgba(21,44,53,.065);backdrop-filter:none;-webkit-backdrop-filter:none}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog * {box-sizing:border-box}
#thera-sar-editoriale[data-reading=continuous] .sar-section-surface {position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none}
#thera-sar-editoriale[data-reading=continuous] .sar-section-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 auto;min-height:55px;margin:0;padding:6px 17px;border-bottom:1px solid rgba(93,112,111,.17);color:#974714;font-size:12px;font-weight:700;letter-spacing:.02em;background:transparent}
#thera-sar-editoriale[data-reading=continuous] .sar-section-heading [data-sidebar-close] {display:inline-flex;align-items:center;justify-content:center;gap:12px;flex:0 0 auto;min-height:44px;margin:0;padding:7px 0 7px 16px;border:0;border-left:1px solid rgba(93,112,111,.18);border-radius:0;background:transparent;box-shadow:none;color:#152c35;font:600 12px/1.4 Manrope,Arial,sans-serif;cursor:pointer}
#thera-sar-editoriale[data-reading=continuous] .sar-section-heading h2 {margin:0;font:600 13px/1.5 Manrope,Arial,sans-serif;letter-spacing:0;color:#974714}
#thera-sar-editoriale[data-reading=continuous] .sar-section-heading .sar-close-symbol {display:block;flex:0 0 19px}
#thera-sar-editoriale[data-reading=continuous] .sar-section-list {min-height:0;flex:1 1 auto;padding:6px 10px 12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b5bdb7 transparent}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-index {display:grid;grid-template-columns:minmax(0,1fr);position:relative;width:100%;gap:2px;margin:0;padding:0}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry {display:grid;grid-template-columns:23px minmax(0,1fr);gap:12px;align-items:center;min-width:0;min-height:52px;padding:12px 15px;border:0;border-bottom:1px solid rgba(93,112,111,.15);border-radius:9px;background:transparent;color:#152c35;text-decoration:none;box-shadow:none;transform:none;translate:none;transition:background-color .22s,color .22s}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry:last-of-type {border-bottom-color:transparent}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry::before {display:block;inset:15px auto 15px 0;width:3px;height:auto;border-radius:2px;background:#ed782e;box-shadow:none;transform:scaleY(0);transform-origin:center;transition:transform .25s}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry[aria-current] {background:rgba(242,222,201,.85);color:#152c35}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry[aria-current]::before {transform:scaleY(1)}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry:is(:hover,:focus-visible) {background:rgba(239,230,216,.85);color:#152c35}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry-no {color:#a05225;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.03em}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry-title {font-size:13px;font-weight:500;line-height:1.55;overflow-wrap:break-word}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry[aria-current] .atlas-entry-title {font-weight:700}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog :is(a,button):focus-visible {outline:2px solid #087e8a;outline-offset:-2px}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .sar-chapter-marker {display:none}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-index[data-marker-ready=true] .atlas-entry::before {display:block}

/* A quiet numbered rhythm separates real chapters without introducing cards. */
#thera-sar-editoriale[data-reading=continuous] .atlas-reader>.info-section {position:relative;min-width:0;scroll-margin-top:calc(var(--sar-nav-height,108px) + 88px)}
#thera-sar-editoriale[data-reading=continuous] .atlas-reader>.info-section+.info-section {margin-top:clamp(32px,5vw,58px);padding-top:clamp(46px,6vw,68px);border-top:1px solid rgba(93,112,111,.24)}
#thera-sar-editoriale[data-reading=continuous] .atlas-reader>.info-section+.info-section::after {content:'';position:absolute;left:0;top:-1px;width:54px;height:2px;border-radius:2px;background:linear-gradient(90deg,#d66a29,rgba(214,106,41,.08))}
#thera-sar-editoriale[data-reading=continuous] .atlas-reader>.info-section+.info-section[data-reading-number]::before {content:attr(data-reading-number);position:absolute;top:15px;left:0;color:#9b633e;font:600 10px/1.4 Manrope,Arial,sans-serif;letter-spacing:.1em;font-variant-numeric:tabular-nums}
body[data-sar-mobile=true] #thera-sar-editoriale[data-reading=continuous] .atlas-reader>.info-section {scroll-margin-top:calc(88px + env(safe-area-inset-top))}

@media(max-width:380px) {
  #thera-sar-editoriale[data-reading=continuous] .atlas-reader-bar>.sar-section-trigger {grid-template-columns:minmax(0,1fr) auto 18px;gap:2px 12px;min-height:60px;padding:9px 13px}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-caption {grid-column:1;grid-row:1;font-size:10px}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-current {grid-column:1;grid-row:2;font-size:13px}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-count {grid-column:2;grid-row:1/3}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-trigger .sar-pages-symbol {grid-column:3;grid-row:1/3}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-heading {padding-inline:13px}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-list {padding-inline:7px}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry {gap:9px;padding-inline:12px}
}
@media(max-height:500px) {
  #thera-sar-editoriale[data-reading=continuous] .sar-section-heading {min-height:50px;padding-block:3px}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-list {padding-block:4px 8px}
  #thera-sar-editoriale[data-reading=continuous] .sar-section-dialog .atlas-entry {min-height:52px;padding-block:10px}
  #thera-sar-editoriale[data-reading=continuous] .atlas-book>.atlas-reader-bar {margin-bottom:20px}
}
@media(prefers-contrast:more) {
  body[data-sar-menu=floating] .sar-floating-bar,body[data-sar-menu=floating] .sar-menu-surface,
  #thera-sar-editoriale[data-reading=continuous] .sar-section-trigger,#thera-sar-editoriale[data-reading=continuous] .sar-section-surface {background:#f4f2ed;border-color:#58666a;-webkit-backdrop-filter:none;backdrop-filter:none}
}
#thera-sar-editoriale[data-reading=continuous] .sar-section-dialog[data-paused=true] *,
#thera-sar-editoriale[data-reading=continuous] [data-paused=true] .sar-section-trigger {transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce) {
  #thera-sar-editoriale[data-reading=continuous] .sar-section-trigger,
  #thera-sar-editoriale[data-reading=continuous] .sar-section-dialog * {transition:none!important;animation:none!important}
}
@media(forced-colors:active) {
  body[data-sar-menu=floating] .sar-floating-bar,body[data-sar-menu=floating] .sar-menu-surface,
  #thera-sar-editoriale[data-reading=continuous] .sar-section-trigger,#thera-sar-editoriale[data-reading=continuous] .sar-section-surface {background:Canvas;color:CanvasText;border:1px solid ButtonText;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media print {
  #thera-sar-editoriale[data-reading=continuous] .atlas-book>.atlas-reader-bar,
  #thera-sar-editoriale[data-reading=continuous] .sar-section-dialog {display:none!important}
  #thera-sar-editoriale[data-reading=continuous] .atlas-reader>.info-section+.info-section {break-before:auto}
}
