/* Guide library: one hierarchy, shared by every language. */
body.guide-library{margin:0;background:radial-gradient(ellipse at 10% 0,#dff6ff80,transparent 52%),#f3f7fb;color:#18334a;font-family:'DM Sans',system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
.guide-library{--ink:#102b43;--muted:#587084;--blue:#087bea;--line:#a6c5da55;--surface:#ffffffba;--card:#f6fbff}
.guide-library .wrap{width:min(1020px,calc(100% - 40px));margin-inline:auto}
.guide-library .site-head{padding:20px 0;background:transparent;border:0;backdrop-filter:none}
.guide-library .gl-header{display:flex;align-items:center;justify-content:space-between;gap:14px}
.guide-library .brand{display:block;width:160px;flex:0 0 160px;line-height:0}
.guide-library .brand img{width:100%;height:auto}
.guide-library .brand-wordmark-dark{display:none}
.gl-header-actions{display:flex;align-items:center;gap:10px}
.guide-library .theme-toggle{display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font-size:25px;cursor:pointer}
.guide-library .theme-toggle[hidden]{display:none}
.guide-library .gl-intro{padding:12px 0 24px}
.gl-back{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);font-size:13px;font-weight:700;text-decoration:none}
.guide-library h1,.guide-library h2,.guide-library h3{color:var(--ink);font-family:'Space Grotesk',system-ui,sans-serif;letter-spacing:-.035em}
.guide-library h1{font-size:clamp(30px,4vw,44px);line-height:1.15;margin:9px 0 12px}
.gl-intro p{font-size:15px;color:var(--muted);margin:0;max-width:55ch}
.gl-main{padding-bottom:48px}
.gl-toolbar{margin-bottom:26px}
.gl-search{display:grid;gap:8px;font-size:13px;font-weight:700;color:var(--ink)}
.gl-search input{width:100%;box-sizing:border-box;min-height:50px;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:13px 16px;color:var(--ink);font-family:inherit;font-size:15px;font-weight:400;box-shadow:inset 0 1px 0 #ffffffb3}
.gl-search input::placeholder{color:var(--muted);opacity:1}
.gl-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.gl-filters button,.gl-reset{min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:600 13px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.gl-filters button[aria-pressed=true]{background:#087bea;border-color:#087bea;color:white;box-shadow:0 4px 10px #087bea22}
.gl-results-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:14px}
.guide-library .gl-results-heading h2{font-size:21px;line-height:1.3;margin:0}
.gl-results-heading p{margin:0;color:var(--muted);font-size:13px}
.gl-reset{margin-left:auto;background:transparent;color:var(--blue);padding:7px 10px;font-size:12px;border-color:transparent}
.gl-guides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gl-guide{display:flex;flex-direction:column;min-width:0;padding:22px;border:1px solid #ffffffde;border-radius:22px;background:linear-gradient(130deg,#ffffffdc,#e9f5fd99);box-shadow:0 7px 23px #245c8710,inset 0 1px 0 #fff;color:var(--ink);text-decoration:none}
.gl-guide-top{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:650;color:var(--muted);line-height:1.4}
.gl-symbol{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#e2f2fe;color:#087bea}
.gl-symbol svg{width:21px;height:21px}
.gl-guide[data-category=energia] .gl-symbol{background:#def4ed;color:#117c6d}
.gl-guide[data-category=casa] .gl-symbol{background:#e8edfa;color:#516cb8}
.gl-guide[data-category=viaggio] .gl-symbol{background:#dff2f5;color:#168297}
.guide-library .gl-guide h3{font-size:20px;line-height:1.3;margin:16px 0 9px}
.gl-guide p{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 18px}
.gl-read{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;font-size:12px;font-weight:750;color:var(--blue)}
.gl-read>span{font-size:20px;line-height:1}
.gl-empty{padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--muted)}
.guide-library .site-foot{padding:24px 0;border-top:1px solid var(--line);background:transparent;font-size:12px;color:var(--muted)}
.guide-library .site-foot nav{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center}
.guide-library .site-foot a{display:inline-flex;align-items:center;min-height:44px;color:var(--blue)}
.guide-library .site-foot .ra-settings{position:static;transform:none;margin:0;box-shadow:none;min-height:44px;background:var(--surface);color:var(--ink)}
.guide-library :is(a,button,input):focus-visible{outline:3px solid #087bea;outline-offset:3px}
.guide-library [hidden]{display:none!important}
html[data-theme=dark] .guide-library{--ink:#eff8ff;--muted:#b9cfdf;--blue:#86d2ff;--line:#9dc7e22b;--surface:#244357;--card:#1a394f;background:linear-gradient(180deg,#122f47,#102a40);color:var(--ink)}
html[data-theme=dark] .guide-library .brand-wordmark{display:none}
html[data-theme=dark] .guide-library .brand-wordmark-dark{display:block}
html[data-theme=dark] .gl-guide{background:linear-gradient(130deg,#244357,#1b374c);border-color:var(--line);box-shadow:0 7px 23px #0001,inset 0 1px 0 #ffffff09}
html[data-theme=dark] .gl-symbol{background:#31536b;color:#8ad5ff}
html[data-theme=dark] .gl-guide[data-category=energia] .gl-symbol{background:#2a514f;color:#a2e9ce}
html[data-theme=dark] .gl-guide[data-category=casa] .gl-symbol{background:#354963;color:#c7d5ff}
html[data-theme=dark] .gl-guide[data-category=viaggio] .gl-symbol{background:#2c4b59;color:#9ce5ec}
html[data-theme=dark] .gl-search input{box-shadow:inset 0 1px 0 #ffffff09}
@media(max-width:600px){.guide-library .wrap{width:calc(100% - 36px)}.guide-library .site-head{padding:18px 0 8px}.guide-library .brand{width:132px;flex-basis:132px}.gl-header-actions{gap:7px}.guide-library .gl-intro{padding-bottom:22px}.guide-library h1{font-size:32px}.gl-intro p{font-size:14px}.gl-toolbar{margin-bottom:22px}.gl-guides{grid-template-columns:1fr;gap:12px}.gl-guide{padding:19px;border-radius:20px}.guide-library .gl-guide h3{font-size:20px;margin-top:13px}.gl-guide p{font-size:13px}.gl-filters{gap:7px}.gl-filters button{padding:8px 12px;font-size:12px}.gl-results-heading{gap:6px 10px}.guide-library .gl-results-heading h2{font-size:20px}.gl-header-actions .locale-picker summary{font-size:12px;min-height:44px;display:flex;align-items:center;padding:7px}.gl-header-actions .locale-picker summary::marker{content:''}.gl-header-actions .locale-picker summary::before{width:21px;flex-basis:21px;margin-right:6px}.gl-reset{margin-left:0}}
@media(max-width:359px){.guide-library .brand{width:114px;flex-basis:114px}.guide-library .wrap{width:calc(100% - 28px)}.guide-library .gl-header{gap:6px}.gl-header-actions{gap:5px}.gl-header-actions .locale-picker summary{font-size:11px}.guide-library h1{font-size:29px}}
@media(hover:hover){.gl-guide:hover{border-color:#8dcdf5;box-shadow:0 9px 25px #245c871a}.gl-filters button:hover{border-color:#087bea}}

.guide-library .site-foot .wrap{display:block}.guide-library .site-foot p{margin-bottom:8px}
/* The optional analytics panel has its own dark surface in both themes. */
.guide-library .ra-consent h2,.guide-library .ra-consent p{color:#eaf2ff}
@media(max-width:600px){
 .guide-library .site-head{padding:14px 0 0}
 .guide-library .gl-intro{padding-top:0;padding-bottom:16px}
 .guide-library h1{font-size:30px;margin:0 0 8px}
 .gl-intro p{font-size:13px;line-height:1.6}
 .gl-search>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .gl-filters{margin-top:10px}
 .gl-toolbar{margin-bottom:18px}
}
/* Editorial identity: one illustrated lead, followed by short reading cards. */
.gl-guide{--gl-accent:#1889dc;--gl-wash:#e8f5ff;position:relative;padding:18px 20px;border:1px solid var(--line);border-left:3px solid var(--gl-accent);border-radius:18px;background:linear-gradient(125deg,#ffffffd9,#f4faffaa);box-shadow:0 4px 16px #245c870b}
.gl-guide[data-category=energia]{--gl-accent:#1a9a89;--gl-wash:#e7f6ef}
.gl-guide[data-category=casa]{--gl-accent:#718ac7;--gl-wash:#eaf0fc}
.gl-guide[data-category=viaggio]{--gl-accent:#2b9eb4;--gl-wash:#e5f5f8}
.gl-guide-top{color:var(--gl-accent);font-weight:700}
.gl-symbol{width:28px;height:28px;flex-basis:28px;border-radius:9px;background:var(--gl-wash)}
.gl-symbol svg{width:18px;height:18px}
.guide-library .gl-guide:not(.gl-featured) h3{font-size:19px;line-height:1.35;margin:12px 0 7px}
.gl-guide:not(.gl-featured) p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;line-height:1.6;margin-bottom:14px}
.gl-guide:not(.gl-featured) .gl-read{font-size:11.5px}
.gl-featured{isolation:isolate;grid-column:1/-1;overflow:hidden;min-height:240px;padding:26px 37% 26px 26px;border:1px solid #b9dff5;border-radius:24px;background:radial-gradient(ellipse at 88% 40%,#76e0f24d,transparent 55%),linear-gradient(125deg,#fff,#e4f4ff);box-shadow:0 10px 28px #187ab415,inset 0 1px 0 #fff}
.gl-featured::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(#087bea,#17c5ce);z-index:1}
.gl-feature-label{display:inline-block;align-self:flex-start;margin-bottom:13px;padding:5px 10px;border-radius:9px;background:#087bea;color:white;font-size:10px;line-height:1.4;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.gl-featured .gl-guide-top{font-size:11px;color:#3f6d89}
.gl-featured .gl-symbol{display:none}
.guide-library .gl-featured h3{font-size:29px;line-height:1.2;margin:12px 0 10px;max-width:23ch}
.gl-featured p{font-size:14px;line-height:1.6;margin:0 0 20px;max-width:43ch}
.gl-featured .gl-read{align-self:flex-start;gap:20px;font-size:13px}
.gl-feature-art{position:absolute;right:-1%;top:50%;transform:translateY(-50%);width:37%;height:95%;object-fit:contain;pointer-events:none;z-index:-1}
html[data-theme=dark] .gl-guide{--gl-accent:#87ceff;background:linear-gradient(125deg,#244357,#1d3a4f)}
html[data-theme=dark] .gl-guide[data-category=energia]{--gl-accent:#8cddc8}
html[data-theme=dark] .gl-guide[data-category=casa]{--gl-accent:#bdccff}
html[data-theme=dark] .gl-guide[data-category=viaggio]{--gl-accent:#9cdde9}
html[data-theme=dark] .gl-featured{background:radial-gradient(ellipse at 88% 40%,#399bbb33,transparent 55%),linear-gradient(125deg,#254c66,#193a53);border-color:#5086a877;box-shadow:0 10px 28px #0001}
html[data-theme=dark] .gl-featured .gl-guide-top{color:#c0ddeb}
@media(max-width:600px){
 .gl-guide{padding:16px 17px;border-radius:17px}
 .guide-library .gl-guide:not(.gl-featured) h3{font-size:18px;margin-top:10px}
 .gl-featured{padding:20px 33% 20px 20px;min-height:254px;border-radius:22px}
 .guide-library .gl-featured h3{font-size:23px;line-height:1.24;position:relative;z-index:1}
 .gl-featured p{font-size:12px;line-height:1.65;margin-bottom:16px}
 .gl-featured .gl-guide-top{font-size:10px}
 .gl-feature-art{width:39%;height:60%;right:-4%;top:48%}
 .gl-feature-label{font-size:9px;margin-bottom:12px;padding:5px 8px}
 .gl-featured .gl-read{font-size:12px;gap:12px}
}
@media(max-width:359px){.gl-featured{padding-right:31%;padding-left:17px}.guide-library .gl-featured h3{font-size:21px}.gl-feature-art{width:36%;right:-3%}}
