/* Modalità lettura per smartphone — Laboratorio Galenico (4 nov 2026) */
.lg-reader-btn{display:none;}
@media (max-width: 760px){
  .lg-reader-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:4px 0 18px;padding:12px 14px;border:1px solid #c9d8c2;border-radius:8px;background:#f3f8f0;color:#2f6b2f;font:600 15px/1.2 "Open Sans",sans-serif;cursor:pointer;}
  .lg-reader-btn svg{width:18px;height:18px;flex:none;}
}

/* --- stato attivo --- */
html.lg-reader{--lg-bg:#ffffff;--lg-fg:#222222;--lg-muted:#6b6b6b;--lg-link:#1f5f8b;--lg-bar:#f4f4f4;--lg-line:#dddddd;}
html.lg-reader.lg-sepia{--lg-bg:#f6efe2;--lg-fg:#3b2f22;--lg-muted:#7a6a55;--lg-link:#7a4a12;--lg-bar:#ede3d1;--lg-line:#d9cbb3;}
html.lg-reader.lg-dark{--lg-bg:#16181a;--lg-fg:#e4e4e4;--lg-muted:#9a9a9a;--lg-link:#8cc4ff;--lg-bar:#222528;--lg-line:#33373b;}

html.lg-reader body{background:var(--lg-bg) !important;}
html.lg-reader #header,
html.lg-reader #sidebar,
html.lg-reader #footer,
html.lg-reader .lg-reader-btn,
html.lg-reader .entry-utility,
html.lg-reader .entry-meta .entry-author-link,
html.lg-reader .entry-meta .category-link,
html.lg-reader .entry-meta .entry-category,
html.lg-reader .entry-meta .edit-link,
html.lg-reader .entry-meta .entry-tags,
html.lg-reader .entry-meta .entry-permalink,
html.lg-reader .entry-meta .post-edit-link,
html.lg-reader #jp-relatedposts,
html.lg-reader .crp_related,
html.lg-reader .sharedaddy,
html.lg-reader .mailmunch-forms-after-post,
html.lg-reader .mailmunch-forms-before-post,
html.lg-reader .jetpack-contact-form-container,
html.lg-reader #comments,
html.lg-reader #respond,
html.lg-reader .entry-content img,
html.lg-reader .entry-content figure,
html.lg-reader .entry-content .wp-caption,
html.lg-reader .entry-content iframe,
html.lg-reader .entry-content video,
html.lg-reader .entry-content embed,
html.lg-reader .entry-content object,
html.lg-reader .entry-thumbnail,
html.lg-reader .gallery{display:none !important;}

html.lg-reader #wrapper,
html.lg-reader #container,
html.lg-reader #content,
html.lg-reader article,
html.lg-reader .entry{background:var(--lg-bg) !important;box-shadow:none !important;border:0 !important;margin:0 !important;float:none !important;width:auto !important;}
html.lg-reader #container{padding:64px 20px 48px !important;max-width:680px;margin:0 auto !important;}
html.lg-reader .entry{padding:0 !important;}

html.lg-reader .entry-title{font-family:Georgia,"Times New Roman",serif !important;font-size:calc(var(--lg-fs,19px) * 1.45) !important;line-height:1.25 !important;color:var(--lg-fg) !important;margin:0 0 10px !important;}
html.lg-reader .entry-meta{display:block !important;margin:0 0 22px !important;padding:0 0 14px !important;border-bottom:1px solid var(--lg-line);}
html.lg-reader .entry-meta,html.lg-reader .entry-meta a{color:var(--lg-muted) !important;font-size:14px !important;}
html.lg-reader .entry-meta .entry-date{display:inline !important;}

html.lg-reader .entry-content{font-family:Georgia,"Times New Roman",serif !important;font-size:var(--lg-fs,19px) !important;line-height:1.7 !important;color:var(--lg-fg) !important;}
html.lg-reader .entry-content p,
html.lg-reader .entry-content li,
html.lg-reader .entry-content td,
html.lg-reader .entry-content th,
html.lg-reader .entry-content blockquote,
html.lg-reader .entry-content span,
html.lg-reader .entry-content strong,
html.lg-reader .entry-content em{font-size:inherit !important;line-height:inherit !important;color:inherit !important;font-family:inherit !important;}
html.lg-reader .entry-content p{margin:0 0 1.1em !important;}
html.lg-reader .entry-content h2,
html.lg-reader .entry-content h3,
html.lg-reader .entry-content h4{font-family:Georgia,"Times New Roman",serif !important;color:var(--lg-fg) !important;line-height:1.3 !important;margin:1.6em 0 .5em !important;}
html.lg-reader .entry-content h2{font-size:1.3em !important;}
html.lg-reader .entry-content h3{font-size:1.18em !important;}
html.lg-reader .entry-content h4{font-size:1.06em !important;}
html.lg-reader .entry-content a{color:var(--lg-link) !important;text-decoration:underline;}
html.lg-reader .entry-content table{font-size:.8em !important;color:var(--lg-fg) !important;}
html.lg-reader .entry-content tr,
html.lg-reader .entry-content td,
html.lg-reader .entry-content th{background:transparent !important;border-color:var(--lg-line) !important;}
html.lg-reader .entry-content blockquote{border-left:3px solid var(--lg-line) !important;padding-left:14px !important;font-style:italic;}

/* barra comandi */
.lg-reader-bar{display:none;}
html.lg-reader .lg-reader-bar{display:flex;position:fixed;top:0;left:0;right:0;z-index:99999;align-items:center;gap:6px;padding:8px 12px;background:var(--lg-bar);border-bottom:1px solid var(--lg-line);font:600 14px/1 "Open Sans",sans-serif;}
html.lg-reader.admin-bar-pad .lg-reader-bar{top:46px;}
.lg-reader-bar button{min-width:40px;height:36px;padding:0 10px;border:1px solid var(--lg-line);border-radius:6px;background:var(--lg-bg);color:var(--lg-fg);font:inherit;cursor:pointer;}
.lg-reader-bar button[aria-pressed="true"]{outline:2px solid var(--lg-link);outline-offset:-2px;}
.lg-reader-bar .lg-sp{flex:1;}
.lg-reader-bar .lg-exit{background:var(--lg-fg);color:var(--lg-bg);border-color:var(--lg-fg);}
