/* THE ITALIAN MOSAIC 2.0 — shared HOME Crystal header for editorial pages.
   Faithfully mirrors the published home header's glass bar, brand and menus.
   Scoped ONLY to .itm-unified-header: no effect on lessons, audio, quizzes,
   account/private menus, Journal cards or existing content.
*/
body > header.itm-unified-header.site-header.wrap{
 position:sticky;top:0;z-index:80;max-width:none;width:100%;
 margin:0;padding:0;border:0;border-bottom:1px solid rgba(175,188,172,.30);
 border-radius:0;background:rgba(250,250,247,.87);
 backdrop-filter:blur(17px) saturate(115%);
 -webkit-backdrop-filter:blur(17px) saturate(115%);
 box-shadow:0 8px 32px rgba(37,75,59,.045);
 color:#293b31;
}
.itm-unified-header .itm-header-row{
 display:flex;justify-content:space-between;align-items:center;
 gap:20px;flex-wrap:nowrap;min-height:86px;
 width:min(1208px,calc(100% - 76px));margin:0 auto;padding:16px 0;
 border-bottom:0;
}
.itm-unified-header .itm-header-row>.brand{
 display:inline-flex;align-items:center;gap:11px;flex:none;
 color:#293b31;font-family:Georgia,'Times New Roman',serif;
 font-size:27px;letter-spacing:-.038em;line-height:1.15;
 text-decoration:none;white-space:nowrap;font-weight:400;
}
.itm-unified-header .itm-header-row>.brand img{
 width:41px;height:41px;flex:none;object-fit:contain;
}
.itm-unified-header .itm-header-row>.brand b{
 color:#b44c37;font-weight:700;
}
.itm-unified-header .itm-header-desktop{
 display:flex;align-items:center;justify-content:flex-end;
 gap:clamp(13px,1.65vw,21px);
 min-width:0;font-size:12px;letter-spacing:0;
}
.itm-unified-header .itm-header-desktop>a{
 display:inline-flex;align-items:center;min-height:43px;
 padding:8px 0;white-space:nowrap;line-height:1.4;
 color:#293b31;text-decoration:none;font-weight:400;
}
.itm-unified-header .itm-header-desktop>a:hover{
 color:#b44c37;
}
.itm-unified-header .itm-header-desktop>a[aria-current="page"]{
 color:#254b3b;font-weight:700;
}
.itm-unified-header .itm-header-desktop>a.account{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:43px;padding:10px 17px;border-radius:26px;
 background:rgba(37,75,59,.075);border:1px solid rgba(37,75,59,.10);
 color:#254b3b;font-weight:650;white-space:nowrap;
 transition:background .2s;
}
.itm-unified-header .itm-header-desktop>a.account:hover{
 background:rgba(37,75,59,.14);
}
.itm-unified-header .itm-langs{
 display:inline-flex;align-items:center;gap:7px;
 font-size:11px;white-space:nowrap;flex:none;
}
.itm-unified-header .itm-langs a{
 display:inline-flex;align-items:center;min-height:43px;
 font-size:11px;color:#637064;
 text-decoration:none;
}
.itm-unified-header .itm-langs a[aria-current="page"]{
 color:#254b3b;font-weight:700;
}
.itm-unified-header .itm-langs a:hover{color:#b44c37}
.itm-unified-header .itm-langs [aria-hidden="true"]{color:#b9c1b6}
.itm-unified-header .itm-header-mobile{display:none}
.itm-unified-header a:focus-visible,
.itm-unified-header summary:focus-visible{
 outline:3px solid #b44c37;outline-offset:3px;
}
@media(max-width:1120px) and (min-width:1025px){
 .itm-unified-header .itm-header-row{width:calc(100% - 52px);gap:14px}
 .itm-unified-header .itm-header-row>.brand{font-size:24px}
 .itm-unified-header .itm-header-row>.brand img{width:38px;height:38px}
 .itm-unified-header .itm-header-desktop{gap:12px;font-size:11px}
 .itm-unified-header .itm-header-desktop>a{font-size:11px}
 .itm-unified-header .itm-header-desktop>a.account{padding:9px 13px}
}
@media(max-width:1024px){
 .itm-unified-header .itm-header-row{
  width:calc(100% - 52px);min-height:73px;
  padding:12px 0;gap:12px;
 }
 .itm-unified-header .itm-header-desktop{display:none}
 .itm-unified-header .itm-header-mobile{
  display:block;position:relative;margin-left:auto;min-width:0;
 }
 .itm-unified-header .itm-header-mobile>summary{
  display:flex;align-items:center;justify-content:center;
  min-width:80px;min-height:44px;gap:9px;padding:9px 13px;
  cursor:pointer;list-style:none;
  border-radius:12px;background:rgba(255,255,255,.78);
  border:1px solid rgba(146,161,144,.35);
  font:700 12px/1.3 Arial,Helvetica,sans-serif;
  color:#293b31;
 }
 .itm-unified-header .itm-header-mobile>summary::-webkit-details-marker{display:none}
 .itm-unified-header .itm-header-mobile[open]>summary{background:#e8eee7}
 .itm-unified-header .itm-header-mobile-links{
  position:absolute;z-index:100;right:0;top:52px;
  width:min(82vw,300px);min-width:min(82vw,230px);
  display:flex;flex-direction:column;align-items:stretch;
  gap:2px;padding:9px;
  border-radius:14px;border:1px solid rgba(140,160,137,.36);
  background:rgba(255,253,248,.99);
  box-shadow:0 19px 40px rgba(37,75,59,.14);
  backdrop-filter:blur(19px);-webkit-backdrop-filter:blur(19px);
 }
 .itm-unified-header .itm-header-mobile-links>a{
  display:flex;align-items:center;min-height:44px;padding:10px 12px;
  font:500 13px/1.4 Arial,Helvetica,sans-serif;
  color:#293b31;border-radius:8px;text-decoration:none;
 }
 .itm-unified-header .itm-header-mobile-links>a:hover{background:#ebf0e8}
 .itm-unified-header .itm-header-mobile-links>a.itm-header-mobile-account{
  background:rgba(37,75,59,.075);font-weight:650;color:#254b3b;
 }
 .itm-unified-header .itm-header-mobile-languages{
  display:flex;justify-content:flex-start;align-items:center;gap:12px;
  border-top:1px solid #d4d5c9;margin-top:6px;padding:9px 12px 3px;
 }
 .itm-unified-header .itm-header-mobile-languages a{
  display:inline-flex;align-items:center;min-height:36px;
  font-size:12px;color:#293b31;
 }
 .itm-unified-header .itm-header-mobile-languages a[aria-current="page"]{
  color:#254b3b;font-weight:700;
  text-decoration:underline;text-decoration-color:#b44c37;text-underline-offset:5px;
 }
 .itm-unified-header .itm-header-mobile-languages [aria-hidden="true"]{color:#b9c1b6}
}
@media(max-width:680px){
 .itm-unified-header .itm-header-row{
  width:calc(100% - 34px);min-height:68px;padding:10px 0;gap:9px;
 }
 .itm-unified-header .itm-header-row>.brand{
  font-size:23px;gap:8px;
 }
 .itm-unified-header .itm-header-row>.brand img{width:33px;height:33px}
}
@media(max-width:360px){
 .itm-unified-header .itm-header-row>.brand{font-size:19px}
 .itm-unified-header .itm-header-row>.brand img{width:29px;height:29px}
 .itm-unified-header .itm-header-mobile>summary{
  min-width:70px;padding:8px 10px;
 }
}
@media(prefers-reduced-motion:reduce){
 .itm-unified-header *{transition:none!important}
}
@supports not (backdrop-filter:blur(1px)){
 body > header.itm-unified-header.site-header.wrap{background:#fffdf8}
 .itm-unified-header .itm-header-mobile-links{background:#fffdf8}
}

/* Unified public editorial page background — exact approved HOME Crystal recipe.
   The header stylesheet is shared by the 30 active EN/ES/IT pages.
   Scope only body documents containing the actual unified header. Other
   lesson elements, dialogs, cards, readers, account and Studio are untouched.
   Explicit !important resolves the legacy A1/C1/Learn page background layers.
*/
html body:has(> header.itm-unified-header.site-header.wrap) {
 background: radial-gradient(ellipse 47% 30% at 93% 9%,rgba(166,200,168,.17),transparent 74%),radial-gradient(ellipse 42% 27% at 1% 50%,rgba(210,135,105,.1),transparent 76%),#f5f4ee !important;
}
