/*
Theme Name: PendraMMO
Author: PendraMMO
Description: Tema community MMO italiano. Oro su nero elegante, palette oro + rosso, corona come motivo, header interattivo e footer dorato.
Version: 0.1
Text Domain: pendrammo
*/

:root{
  --ink:#0a0a0c; --ink-2:#0e0e12; --panel:#131217; --raise:#191820;
  --line:rgba(230,194,122,.16); --line-soft:rgba(230,194,122,.09);
  --gold:#e6c27a; --gold-2:#f4d59a; --gold-dim:#b0925a; --red:#b23a2a; --red-2:#d24a34;
  --text:#efe9dd; --muted:#8a8172;
  --serif:"Palatino Linotype","Book Antiqua",Georgia,serif;
  --sans:-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
}
:root[data-theme="light"]{
  --ink:#f6f3ec; --ink-2:#efeadf; --panel:#fffdf6; --raise:#efe7d5;
  --line:rgba(150,110,40,.24); --line-soft:rgba(150,110,40,.1);
  --gold:#8a6717; --gold-2:#6f520f; --gold-dim:#7c5c14; --red:#9c2e20; --red-2:#b23a2a; --text:#1c1710; --muted:#5f5647;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--ink);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;transition:background .25s,color .25s;display:flex;flex-direction:column;min-height:100vh}
body.lock{overflow:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1180px;margin:0 auto;padding:0 26px;width:100%}
.site-content{flex:1}

/* HEADER */
nav.bar{position:sticky;top:0;z-index:40;background:rgba(10,10,12,.74);backdrop-filter:blur(16px) saturate(1.3);border-bottom:1px solid var(--line-soft)}
:root[data-theme="light"] nav.bar{background:rgba(246,243,236,.82)}
nav.bar .wrap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:74px;gap:18px}
.ico{width:40px;height:40px;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:center;color:var(--gold);cursor:pointer;transition:.16s;background:rgba(230,194,122,.02)}
.ico:hover{color:var(--gold-2);border-color:var(--gold);background:rgba(230,194,122,.06)}
.ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.navL{justify-self:start}
.burger span{width:18px;height:2px;border-radius:2px;display:block;background:linear-gradient(90deg,#8a6a20,#d8b45f 40%,#fff0c8 50%,#d8b45f 60%,#8a6a20);background-size:240% 100%;background-position:130% 0;animation:hshine 2.4s linear infinite}
.burger span:nth-child(2){margin-top:4px;animation-delay:.22s}
.burger span:nth-child(3){margin-top:4px;animation-delay:.44s}
@keyframes hshine{0%{background-position:130% 0}55%,100%{background-position:-40% 0}}
@media(prefers-reduced-motion:reduce){.burger span{animation:none;background:var(--gold)}}
.logo{justify-self:center;text-align:center}
.logo .mk{font-family:var(--serif);font-weight:700;font-size:24px;letter-spacing:.16em;line-height:1}
.logo .mk b{color:var(--gold)}
.logo .tl{display:block;font-size:8.5px;letter-spacing:.42em;text-transform:uppercase;color:var(--gold-dim);margin-top:4px}
.navR{justify-self:end;display:flex;align-items:center;gap:9px}
.accent{height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent)}

/* DRAWER + SEARCH */
.backdrop{position:fixed;inset:0;z-index:45;background:rgba(6,6,8,.6);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:.22s}
.backdrop.on{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;left:0;bottom:0;z-index:46;width:320px;max-width:84vw;background:var(--panel);border-right:1px solid var(--line);transform:translateX(-100%);transition:transform .28s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column}
.drawer.on{transform:none}
.drawer .dh{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--line-soft)}
.drawer .dh .mk{font-family:var(--serif);font-weight:700;font-size:18px;letter-spacing:.14em}
.drawer .dh .mk b{color:var(--gold)}
.drawer .dx{cursor:pointer;color:var(--muted);width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:18px}
.drawer .dx:hover{color:var(--gold);background:var(--line-soft)}
.dscroll{flex:1;overflow-y:auto;display:flex;flex-direction:column}
.dlinks{padding:14px 0;list-style:none;margin:0}
.dlinks a{display:flex;align-items:center;gap:14px;padding:14px 24px;font-family:var(--serif);font-size:18px;color:var(--text);border-left:2px solid transparent;transition:.16s}
.dlinks a:hover,.dlinks .current-menu-item>a{border-left-color:var(--gold);background:var(--line-soft);color:var(--gold-2);padding-left:28px}
.dabout{padding:20px 24px;border-top:1px solid var(--line-soft)}
.dabout h4{font-family:var(--serif);font-weight:700;font-size:16px;color:var(--gold);margin:0 0 11px}
.dabout p{font-family:var(--serif);font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 10px}
.dabout p:last-of-type{margin-bottom:0}
.dabout a{color:var(--gold);font-weight:600}
.dabout .dsoc{display:flex;gap:16px;margin-top:16px;flex-wrap:wrap}
.dabout .dsoc a{color:var(--gold);display:inline-flex;transition:.16s}
.dabout .dsoc a:hover{color:var(--gold-2);transform:translateY(-2px)}
.dabout .dsoc svg{width:21px;height:21px;fill:currentColor}
.dauth{padding:18px 20px;border-top:1px solid var(--line-soft);display:flex;gap:10px}
.dauth a{flex:1;text-align:center;padding:12px;border-radius:10px;font-family:var(--serif);font-weight:700;font-size:15px;transition:.16s}
.dauth .accedi{border:1px solid var(--gold);color:var(--gold)}
.dauth .accedi:hover{background:rgba(230,194,122,.08)}
.dauth .registrati{background:var(--gold);color:var(--ink);border:1px solid var(--gold)}
.dauth .registrati:hover{background:var(--gold-2)}

.search{position:fixed;inset:0;z-index:48;background:rgba(9,9,11,.9);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:.2s;display:flex;flex-direction:column;align-items:center;padding-top:12vh}
:root[data-theme="light"] .search{background:rgba(246,243,236,.94)}
.search.on{opacity:1;visibility:visible}
.sbox{width:100%;max-width:640px;padding:0 24px}
.sfield{display:flex;align-items:center;gap:14px;border-bottom:1.5px solid var(--line);padding:12px 4px}
.sfield svg{width:24px;height:24px;fill:none;stroke:var(--gold);stroke-width:1.7;flex:none}
.sfield input{flex:1;background:none;border:0;outline:0;color:var(--text);font-family:var(--serif);font-size:26px}
.sfield input::placeholder{color:var(--gold-dim);opacity:.7}
.sfield .sx{cursor:pointer;color:var(--muted);font-size:13px;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--line);border-radius:7px;padding:5px 9px}

/* TAG / BUTTONS */
.tag{display:inline-block;font-family:var(--sans);font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);background:var(--gold);padding:5px 11px;border-radius:6px}
.tag.red{background:var(--red);color:#fff}
.btn-r{display:inline-block;background:var(--red);color:#fff;font-family:var(--serif);font-weight:700;font-size:15px;padding:13px 28px;border-radius:11px;transition:.16s}
.btn-r:hover{background:var(--red-2)}
.btn-g{display:inline-block;border:1px solid var(--gold);color:var(--gold);font-family:var(--serif);font-weight:700;font-size:15px;padding:13px 28px;border-radius:11px;transition:.16s}
.btn-g:hover{background:rgba(230,194,122,.1)}

/* PAGE TITLE */
.ptitle{padding:52px 0 8px;text-align:center}
.ptitle .eb{font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--gold-dim)}
.ptitle h1{font-family:var(--serif);font-weight:700;font-size:clamp(32px,4.6vw,48px);margin:12px 0 8px}
.fl{display:flex;align-items:center;justify-content:center;gap:14px;color:var(--gold);margin:22px 0 0}
.fl:before,.fl:after{content:"";height:1px;width:80px;background:linear-gradient(90deg,transparent,var(--line))}
.fl:after{background:linear-gradient(90deg,var(--line),transparent)}
.fl svg{width:15px;height:15px;fill:currentColor}

/* CONTENT LAYOUT */
.cols{display:grid;grid-template-columns:1fr 336px;gap:44px;padding:40px 0 70px}
.sechead{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:24px}
.sechead h2{font-family:var(--serif);font-weight:700;font-size:23px;margin:0}
.sechead h2 b{color:var(--gold)}

/* POST CARDS */
.posts{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.pc{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:transform .18s,border-color .18s}
.pc:hover{transform:translateY(-4px);border-color:var(--gold)}
.pc .thumb{aspect-ratio:16/10;overflow:hidden;position:relative;background:linear-gradient(150deg,#2a2320,#12100e)}
.pc .thumb img{width:100%;height:100%;object-fit:cover}
.pc .bd{padding:16px 18px 18px}
.pc .cat{font-family:var(--sans);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--red-2);font-weight:700}
.pc h3{font-family:var(--serif);font-weight:700;font-size:19px;line-height:1.2;margin:8px 0 8px}
.pc:hover h3{color:var(--gold-2)}
.pc p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.5}
.pc .by{margin-top:11px;color:var(--gold-dim);font-size:11px}

/* SINGLE / PAGE ARTICLE */
.article{max-width:760px;margin:0 auto;padding:20px 0 70px}
.article .cat{font-family:var(--sans);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--red-2);font-weight:700}
.article h1{font-family:var(--serif);font-weight:700;font-size:clamp(28px,4vw,42px);line-height:1.14;margin:12px 0 12px;text-wrap:balance}
.article .amETA,.article .ameta{color:var(--gold-dim);font-size:13px;margin-bottom:22px}
.article .feat{border-radius:16px;overflow:hidden;border:1px solid var(--line);margin-bottom:26px}
.article .body{font-size:17px;line-height:1.8;color:var(--text)}
.article .body p{margin:0 0 20px}
.article .body h2,.article .body h3{font-family:var(--serif);color:var(--gold-2)}
.article .body a{color:var(--gold);text-decoration:underline}
.article .body img{border-radius:12px;margin:10px 0}
.article .body blockquote{border-left:3px solid var(--red);padding-left:18px;margin:20px 0;font-family:var(--serif);font-style:italic;color:var(--muted)}

/* SIDEBAR */
aside.side{display:flex;flex-direction:column;gap:22px}
.box{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.box .bh{display:flex;align-items:center;gap:9px;padding:15px 18px;border-bottom:1px solid var(--line-soft);background:var(--raise)}
.box .bh .dot{width:7px;height:7px;border-radius:50%;background:var(--red)}
.box .bh h3{margin:0;font-family:var(--serif);font-weight:700;font-size:15px}
.box .bb{padding:18px}
.box .bb p{margin:0 0 12px;color:var(--muted);font-size:13.5px;line-height:1.55}
.box .bb a{color:var(--gold-2);font-family:var(--serif);font-weight:700;display:block;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:14.5px}
.box .bb a:last-child{border-bottom:0}

/* FOOTER */
.foot{padding:64px 0 0;background:radial-gradient(120% 80% at 50% 0,rgba(230,194,122,.05),transparent 60%);border-top:1px solid var(--line-soft)}
.foot .ftop{text-align:center;margin-bottom:12px}
.foot .ftop .mk{font-family:var(--serif);font-weight:700;font-size:24px;letter-spacing:.14em}
.foot .ftop .mk b{color:var(--gold)}
.foot .ftop .eb{display:block;margin-top:10px;font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--gold-dim)}
.flourish{display:flex;align-items:center;justify-content:center;gap:14px;margin:26px 0 34px;color:var(--gold)}
.flourish:before,.flourish:after{content:"";height:1px;width:90px;background:linear-gradient(90deg,transparent,var(--line))}
.flourish:after{background:linear-gradient(90deg,var(--line),transparent)}
.flourish svg{width:16px;height:16px;fill:currentColor;opacity:.85}
.socrow{display:flex;justify-content:center;flex-wrap:wrap;padding:6px 0 40px}
.soc{flex:1;min-width:150px;max-width:200px;text-align:center;padding:18px 14px;border-radius:14px;transition:background .18s}
.soc:hover{background:var(--line-soft)}
.soc .sic{color:var(--gold);display:inline-flex;margin-bottom:15px;transition:.18s}
.soc:hover .sic{color:var(--gold-2);transform:translateY(-3px)}
.soc .sic svg{width:28px;height:28px;fill:currentColor}
.soc .nm{display:block;font-family:var(--serif);font-weight:700;font-size:16px;color:var(--text);margin-bottom:5px}
.soc .hd{display:block;font-size:12.5px;color:var(--muted)}
.lower{border-top:1px solid var(--line-soft);padding:30px 0 40px;text-align:center}
.flinks{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px;font-size:13.5px}
.flinks a:hover{color:var(--gold-2)}
.flinks .sep{color:var(--gold-dim);font-size:10px}
.cp{color:var(--muted);font-size:12.5px;font-family:var(--serif)}
.cp i{color:var(--gold-dim);font-style:italic}

@media(max-width:900px){.cols{grid-template-columns:1fr}.posts{grid-template-columns:1fr}}
@media(max-width:760px){.soc{flex:0 0 30%}}
@media(max-width:520px){.soc{flex:0 0 45%}}
