/* Wikitarra: un solo foglio di stile, piccolo. Sul sito vero diventa il CSS del template del tema
   (niente Elementor, BuddyBoss, LearnDash sulle pagine Wikitarra). Font: quelli del sito (Montserrat titoli, Rubik testo). */
:root {
  --red: #c30f3e; --red-soft: #fbe9ee; --ink: #16151a; --text: #2e2c33; --muted: #6f6b75;
  --line: #e7e3e6; --paper: #faf8f6; --white: #fff;
  --f-head: "Montserrat", system-ui, sans-serif; --f-body: "Rubik", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 17px/1.65 var(--f-body); }
a { color: var(--red); }
img { max-width: 100%; height: auto; }

/* intestazione minima */
.wk-top { border-bottom: 1px solid var(--line); background: var(--white); }
.wk-top .in { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.wk-top .gt { height: 30px; }
.wk-top .sep { width: 1px; height: 28px; background: var(--line); }
.wk-top .wk { height: 44px; }
.wk-top .home { margin-left: auto; font: 700 14px var(--f-head); color: var(--white); background: var(--red); text-decoration: none; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.wk-top .home:hover { background: #a30c34; }
@media (max-width: 600px) { .wk-top .in { gap: 12px; } .wk-top .gt, .wk-top .sep { display: none; } .wk-top .home { font-size: 12px; padding: 8px 11px; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.crumbs { font: 600 13px var(--f-head); color: var(--muted); padding: 22px 0 0; letter-spacing: .02em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 6px; color: #c9c4c8; }

/* ── pagina madre ── */
.hub-hero { padding: 34px 0 26px; display: grid; gap: 14px; }
.hub-hero h1 { margin: 0; font: 800 clamp(30px, 5vw, 46px)/1.08 var(--f-head); color: var(--ink); letter-spacing: -.01em; }
.hub-hero h1 em { font-style: normal; color: var(--red); }
.hub-hero p { margin: 0; max-width: 680px; color: var(--muted); font-size: 18px; }
.search { position: relative; max-width: 560px; margin-top: 8px; }
.search input { width: 100%; font: 500 17px var(--f-body); padding: 15px 18px 15px 48px; border: 2px solid var(--line); border-radius: 12px; outline: none; background: var(--paper); }
.search input:focus { border-color: var(--red); background: var(--white); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.areas button { font: 600 14px var(--f-head); border: 1.5px solid var(--line); background: var(--white); color: var(--text); border-radius: 999px; padding: 8px 15px; cursor: pointer; }
.areas button:hover { border-color: #cfc9cd; }
.areas button[aria-pressed=true] { background: var(--red); border-color: var(--red); color: #fff; }
.az { display: flex; flex-wrap: wrap; gap: 4px; padding: 18px 0 6px; border-top: 1px solid var(--line); margin-top: 18px; }
.az a, .az span { font: 700 13px var(--f-head); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; text-decoration: none; }
.az a { color: var(--ink); background: var(--paper); }
.az a:hover { background: var(--red); color: #fff; }
.az span { color: #cfc9cd; }
.letter { font: 800 26px var(--f-head); color: var(--red); margin: 26px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { display: grid; gap: 6px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: var(--white); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card b { font: 800 19px var(--f-head); color: var(--ink); }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font: 700 11px var(--f-head); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--paper); color: var(--muted); }
.tag.area { background: var(--red-soft); color: var(--red); }
.empty { display: none; padding: 30px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 14px; }

/* ── voce ── */
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding: 20px 0 60px; }
@media (max-width: 900px) { .entry { grid-template-columns: 1fr; gap: 24px; } }
.entry h1 { margin: 10px 0 12px; font: 800 clamp(34px, 6vw, 52px)/1.05 var(--f-head); color: var(--ink); letter-spacing: -.015em; }
.entry .alt { font: 500 15px var(--f-body); color: var(--muted); margin: -4px 0 14px; }
.defin { font-size: 20px; line-height: 1.55; color: var(--ink); padding: 18px 22px; border-left: 4px solid var(--red); background: var(--paper); border-radius: 0 12px 12px 0; margin: 18px 0 8px; }
.entry h2 { font: 800 23px/1.25 var(--f-head); color: var(--ink); margin: 40px 0 12px; }
.entry h3 { font: 700 18px var(--f-head); color: var(--ink); margin: 26px 0 8px; }
.entry p { margin: 0 0 14px; }
.entry ul, .entry ol { padding-left: 22px; margin: 0 0 16px; }
.entry li { margin: 0 0 8px; }
.entry strong { color: var(--ink); }
figure.dia { margin: 26px 0 30px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
figure.dia svg { display: block; width: 100%; height: auto; }
figure.dia figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.values { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 16px; }
.values th, .values td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.values th { font: 700 13px var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.errs { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.errs li { padding: 14px 16px 14px 46px; position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; margin: 0 !important; }
.errs li::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font: 800 13px/22px var(--f-head); text-align: center; }
.study { margin: 40px 0 0; padding: 24px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; gap: 8px; }
.study b { font: 800 19px var(--f-head); }
.study p { margin: 0; color: #c9c5cc; font-size: 15px; }
.study span { font: 700 13px var(--f-head); color: #ff8aa8; letter-spacing: .04em; }

/* colonna laterale */
.side { display: grid; gap: 18px; align-content: start; position: sticky; top: 20px; }
@media (max-width: 900px) { .side { position: static; } }
.box { border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; }
.box h4 { margin: 0 0 12px; font: 800 12px var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rel { display: grid; gap: 4px; }
.rel .grp { font: 700 11px var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: #a59fa8; margin: 10px 0 2px; }
.rel .grp:first-child { margin-top: 0; }
.rel a, .rel i { font: 600 15px var(--f-body); font-style: normal; color: var(--ink); text-decoration: none; padding: 5px 0; }
.rel a:hover { color: var(--red); }
.rel i { color: #a59fa8; }   /* voce non ancora scritta: niente link */
.meta { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }

.wk-foot { border-top: 1px solid var(--line); padding: 26px 20px 40px; text-align: center; font-size: 13px; color: var(--muted); }
.wk-foot a { color: var(--muted); font-weight: 600; }

/* «Continua da qui»: voci, articoli, sezioni del blog, corso */
.next { margin-top: 44px; }
.nexts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.nx { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: var(--white); transition: border-color .15s, transform .15s; }
a.nx:hover { border-color: var(--red); transform: translateY(-2px); }
.nx span { font: 700 11px var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nx b { font: 800 16px/1.3 var(--f-head); color: var(--ink); }
.nx p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.nx.voce span { color: var(--red); }
.nx.corso { background: var(--ink); border-color: var(--ink); }
.nx.corso b { color: #fff; } .nx.corso p { color: #c9c5cc; } .nx.corso span { color: #ff8aa8; }
.nx.off { opacity: .55; }
.nx.corso.off { opacity: .8; }

/* footer come quello del sito */
.gt-foot { background: #000; color: #bdb8bf; margin-top: 30px; }
.gt-foot .in { max-width: 1080px; margin: 0 auto; padding: 48px 20px 30px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 860px) { .gt-foot .in { grid-template-columns: 1fr 1fr; } .gt-foot .brand { grid-column: 1 / -1; } }
.gt-foot .brand img { height: 42px; width: auto; }
.gt-foot .brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.5; max-width: 280px; }
.gt-foot h5 { margin: 0 0 12px; font: 800 12px var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.gt-foot .col a { display: block; color: #bdb8bf; text-decoration: none; font-size: 14px; padding: 4px 0; }
.gt-foot .col a:hover { color: #fff; }
.gt-foot .legal { border-top: 1px solid #222; padding: 18px 20px 28px; text-align: center; font-size: 12px; color: #8a858c; }
.gt-foot .legal a { color: #bdb8bf; }

/* pagina madre centrata; schede su tutta la larghezza */
.hub-hero { justify-items: center; text-align: center; padding-top: 44px; }
.hub-hero p { margin: 0 auto; }
.search { width: 100%; margin: 8px auto 0; }
.areas { justify-content: center; }
.az { justify-content: center; }
.crumbs.hub { text-align: center; }
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 22px; }
.card { position: relative; padding-top: 20px; }
.card .lt { position: absolute; top: 14px; right: 16px; font: 800 26px var(--f-head); font-style: normal; color: var(--red-soft); }
