/* Telaio: scoped shell foundation. Host-specific layout remains in adapters. */
.entry-content:has(> h1 > img.giratratto-wordmark) {
  --es3d-shell-max: 1680px;
  --es3d-shell-gutter: 16px;
  --es3d-shell-inset: max(var(--es3d-shell-gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --es3d-shell-width: min(var(--es3d-shell-max), calc(var(--es3d-layout-width, 100vw) - 2 * var(--es3d-shell-inset)));
  --es3d-native-column-inset: 15px;
  --es3d-native-header-outer-width: var(--es3d-shell-width);
  --es3d-tool-header-height: 76px;
  --es3d-bf-header-height: 52px;
  --es3d-procedure-bg: #0d2018;
  --es3d-procedure-ink: #ffffff;
  --es3d-procedure-muted: #c9d9cf;
  --es3d-procedure-line: rgba(255,255,255,.22);
  /* R08.1 mobile type scale. Large headings retain their existing sizes. */
  --es3d-mobile-body: 17px;
  --es3d-mobile-secondary: 13px;
  --es3d-mobile-small: 12px;
  --es3d-mobile-lead-gap: 8px;
}
@media (min-width: 1200px) { .entry-content:has(> h1 > img.giratratto-wordmark) { --es3d-shell-gutter: 24px; } }
@media (min-width: 1600px) { .entry-content:has(> h1 > img.giratratto-wordmark) { --es3d-shell-gutter: 32px; } }
@media (max-width: 959px) { .entry-content:has(> h1 > img.giratratto-wordmark) { --es3d-tool-header-height: 56px; } }
.entry-content:has(> h1 > img.giratratto-wordmark) {
  position: relative; left: 50%; transform: translateX(-50%);
  width: var(--es3d-shell-width) !important; max-width: none !important;
  margin-inline: 0 !important; padding-inline: 0 !important; box-sizing: border-box;
}
:has(> h1 > img.giratratto-wordmark) > h1 img { display: block; width: auto; height: 44px; max-width: 100%; }
@media (max-width:767px) { :has(> h1 > img.giratratto-wordmark) > h1 img { height:36px; } }
:has(> h1 > img.giratratto-wordmark) > p:first-of-type { max-width: 68ch; }
:has(> h1 > img.giratratto-wordmark) > :is(.es-global-sharing-shell,.esolution-context-faq),
:has(> h1 > img.giratratto-wordmark) > .esolution-context-faq .es-faq-layout {
  width:100% !important; max-width:none !important; margin-inline:0 !important; padding-inline:0 !important;
}
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) > :is(h1,p,.es-global-sharing-shell,.esolution-context-faq),
body .entry-content:has(> h1 > img.giratratto-wordmark) .esolution-context-faq > .es-faq-layout,
body .entry-content:has(> h1 > img.giratratto-wordmark) .es-global-sharing-shell .sharedaddy {
  width: 100% !important; max-width: none !important; margin-inline: 0 !important;
}
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) > p:first-of-type { max-width: 68ch !important; }
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) { padding-block-start:20px !important; }
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) > h1 { margin-block:0 !important; }
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) > p:first-of-type { margin-block:12px 20px !important; }
@media (min-width:768px) and (max-width:1199px) { :has(> h1 > img.giratratto-wordmark) > h1 img { height:40px; } }

/* Spazio iniziale misurato sulla testata di LumaSegno. */
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) {
  padding-block-start: 28px !important;
}
@media (min-width:768px) {
  body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) { padding-block-start:32px !important; }
}
/* Un solo margine fra sottotitolo e primo elemento operativo. */
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) > p:first-of-type {
  margin-block-end:clamp(20px,2.2vw,32px) !important;
}
body .content-wrapper .entry-content:has(> h1 > img.giratratto-wordmark) > p:has(> iframe) {
  margin-block:0 !important;
  padding-block:0 !important;
}

html:has(.giratratto-wordmark) {
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

#gt-account-dialog{box-sizing:border-box;border:0;border-radius:8px;padding:clamp(16px,3vw,28px);width:min(560px,calc(100% - 24px));max-width:100%;margin:auto;background:#fff;color:#202322;max-height:92dvh;overflow:auto}
#gt-account-dialog::backdrop{background:rgb(0 0 0 / .55)}
#gt-account-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:static;background:white;color:inherit}
#gt-account-dialog h2{margin:0;font-size:clamp(23px,4vw,30px);line-height:1.15}
#gt-account-dialog header button{flex:none;background:white;color:#222;border:1px solid #ccc;border-radius:50%;width:44px;height:44px;padding:0;font:28px/1 sans-serif;cursor:pointer}
#gt-account-dialog p{margin:10px 0 14px;line-height:1.4}
#gt-account-dialog iframe{display:block;width:100%;height:min(48dvh,410px);border:0}
#gt-account-dialog>a{display:inline-block;margin-top:12px;text-decoration:underline}
