/* ============================================================
   VbcPortal — tema di default
   Palette: slate navy + accento ambra. Display: Barlow Semi
   Condensed. Corpo: Inter. La firma del tema è la struttura a
   colonne del portale, retaggio dichiarato di MkPortal.
   ============================================================ */

:root {
    --ink:        #16202e;
    --ink-soft:   #2b3a4d;
    --muted:      #5b6675;
    --line:       #e2e7ee;
    --surface:    #ffffff;
    --page:       #eef1f5;
    --accent:     #e0952b;   /* ambra: link/attivo, uso parco */
    --accent-ink: #8a5a10;
    --news:       #2f6f8f;
    --article:    #7a5aa6;
    --fresh:      #2f9e5e;   /* verde "novità": segnale contenuti recenti */
    --fresh-ink:  #1f7a46;

    --radius: 10px;
    --shadow: 0 1px 2px rgba(22,32,46,.06), 0 6px 18px rgba(22,32,46,.05);
    --wrap: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Header ------------------------------------------------ */
.site-header {
    background: var(--ink);
    color: #fff;
    border-bottom: 3px solid var(--accent);
}
.site-header__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.brand { color: #fff; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__name {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: .01em;
}
.brand__tag { color: #aeb9c7; font-size: 14px; }

.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a {
    color: #d7dee7;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 600;
    font-size: 17px;
    padding: 6px 12px;
    border-radius: 6px;
}
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }

/* --- Griglia portale (la firma del tema) ------------------- */
.portal { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 48px; }
.portal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.portal__grid.has-left  { grid-template-columns: var(--col-left, 260px) minmax(0, 1fr); }
.portal__grid.has-right  { grid-template-columns: minmax(0, 1fr) var(--col-right, 260px); }
.portal__grid.has-left.has-right { grid-template-columns: var(--col-left, 260px) minmax(0, 1fr) var(--col-right, 260px); }
.portal__col--main { min-width: 0; }
.portal__band { margin-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.portal__band--bottom { margin-top: 24px; margin-bottom: 0; }

.col-label {
    font-family: "Barlow Semi Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 10px 2px;
}

/* --- Blocchi ----------------------------------------------- */
.block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}
.block__title {
    margin: 0;
    padding: 12px 16px;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.block__body { padding: 14px 16px; font-size: 15px; }
.block-list { list-style: none; margin: 0; padding: 0; }
.block-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.block-list li:last-child { border-bottom: 0; }

/* --- Intestazioni pagina ----------------------------------- */
.eyebrow {
    font-family: "Barlow Semi Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-ink);
    margin: 0 0 4px;
}
.page-head { margin-bottom: 22px; }
.page-title {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    margin: 0;
    color: var(--ink);
}

/* --- Card griglia contenuti -------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card__media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 20px; margin: 0; line-height: 1.2; }
.card__title a { color: var(--ink); }
.card__excerpt { margin: 0; color: var(--muted); font-size: 14px; }
.card__date { color: var(--muted); font-size: 13px; margin-top: auto; }

.tag {
    align-self: flex-start;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}
.tag--news { background: var(--news); }
.tag--article { background: var(--article); }

/* --- Liste ------------------------------------------------- */
.list__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list__item:first-child { padding-top: 0; }
.list__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 22px; margin: 0 0 6px; }
.list__title a { color: var(--ink); }
.list__excerpt { margin: 0 0 6px; color: var(--muted); }
.list__date { color: var(--muted); font-size: 13px; }

/* --- Contenuto singolo ------------------------------------- */
.content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.content__date { color: var(--muted); font-size: 14px; }
.content__cover { margin: 20px 0; }
.content__cover img { border-radius: var(--radius); width: 100%; }
.content__body { font-size: 17px; }
.content__body p { margin: 0 0 1em; }
.content__media { margin-top: 24px; display: grid; gap: 16px; }
.content__video iframe, .content__video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.content__discuss { margin-top: 24px; }

/* --- Forum ------------------------------------------------- */
.forum-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.forum-section__title { font-family: "Barlow Semi Condensed", sans-serif; margin: 0 0 4px; font-size: 22px; }
.forum-section__desc { color: var(--muted); margin: 0 0 12px; }
.forum-boards { list-style: none; margin: 0; padding: 0; }
.forum-board { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.forum-board__title { font-weight: 600; }
.forum-board__desc { color: var(--muted); font-size: 14px; }

/* --- Elementi vari ----------------------------------------- */
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }
.empty__hint { font-size: 14px; }
.empty code { background: #f0f2f5; padding: 2px 6px; border-radius: 4px; }
.notice { background: #fff7e8; border: 1px solid #f0d9a8; color: var(--accent-ink); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.btn {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 6px;
}
.btn:hover { background: var(--ink-soft); text-decoration: none; }

/* --- Footer ------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
.site-footer__inner {
    max-width: var(--wrap); margin: 0 auto; padding: 20px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--muted); font-size: 14px;
}

/* --- Responsive: le colonne si impilano -------------------- */
@media (max-width: 900px) {
    .portal__grid, .portal__grid.has-left, .portal__grid.has-right, .portal__grid.has-left.has-right { grid-template-columns: 1fr; }
    .portal__col--left, .portal__col--right { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
    .portal__col--left .block, .portal__col--right .block { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---- Forum & commenti (Fase 4) ---- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent-ink); }
.crumbs span { margin: 0 6px; color: #b8c0cb; }
.lead-desc { color: var(--muted); margin: 6px 0 0; }

.fsection { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.fsection__title { font-family: "Barlow Semi Condensed", sans-serif; margin: 0 0 4px; font-size: 22px; }
.fsection__desc { color: var(--muted); margin: 0 0 12px; }
.fsection__empty { color: var(--muted); }
.fboards { list-style: none; margin: 0; padding: 0; }
.fboard { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.fboard__title { font-weight: 600; font-size: 17px; color: var(--ink); display: block; }
.fboard__desc { color: var(--muted); font-size: 14px; }
.fboard__stats { display: flex; flex-direction: column; text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fboard__last { font-size: 13px; color: var(--muted); white-space: nowrap; }

.ftopics { list-style: none; margin: 0 0 24px; padding: 0; }
.ftopic { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 8px; }
.ftopic__title { font-weight: 600; color: var(--ink); font-size: 17px; }
.ftopic__by { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ftopic__count, .ftopic__last { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: #eef1f5; color: var(--muted); margin-right: 6px; vertical-align: middle; }
.badge--link { background: #eaf2f6; color: var(--news); }

.posts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; position: relative; }
.post__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.post__author { font-weight: 600; }
.post__role { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: #3a2708; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.post__date { color: var(--muted); font-size: 13px; margin-left: auto; }
.post__body { line-height: 1.6; }
.post__mod { position: absolute; top: 14px; right: 16px; margin: 0; }
.linkbtn { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }

.modbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff7e8; border: 1px solid #f0d9a8; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.modbar__label { font-weight: 600; font-size: 13px; color: var(--accent-ink); margin-right: 4px; }
.modbar form { margin: 0; }

.fbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: 8px; }
.fbox h3 { font-family: "Barlow Semi Condensed", sans-serif; margin: 0 0 12px; font-size: 19px; }
.fform { display: flex; flex-direction: column; gap: 10px; }
.fform input[type=text], .fform textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.fform textarea { resize: vertical; }
.fform button { align-self: flex-start; }
.fnote { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; }

.comments { margin-top: 32px; border-top: 2px solid var(--line); padding-top: 24px; }
.comments__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 24px; margin: 0 0 4px; }
.comments__title span { color: var(--muted); font-weight: 400; }
.comments__forumlink { margin: 0 0 16px; font-size: 14px; }
.comments__empty { color: var(--muted); }
.comment-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.comment__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment__author { font-weight: 600; }
.comment__date { color: var(--muted); font-size: 13px; margin-left: auto; }

@media (max-width: 620px) {
    .fboard, .ftopic { grid-template-columns: 1fr; }
    .fboard__stats, .fboard__last, .ftopic__count, .ftopic__last { text-align: left; flex-direction: row; gap: 12px; }
}

/* ---- Utenti / account (Fase 5) ---- */
.site-header__inner { flex-wrap: wrap; }
.useraccess { display: flex; align-items: center; gap: 10px; }
.useraccess__name { color: #fff; font-weight: 600; font-family: "Barlow Semi Condensed", sans-serif; }
.useraccess__name:hover { color: var(--accent); text-decoration: none; }
.useraccess__link { color: #d7dee7; font-size: 14px; }
.useraccess__link:hover { color: #fff; text-decoration: none; }
.useraccess__cta { background: var(--accent); color: #3a2708; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; padding: 6px 14px; border-radius: 6px; font-size: 14px; }
.useraccess__cta:hover { filter: brightness(.96); text-decoration: none; }
.useraccess__logout { margin: 0; }
.useraccess__logout button { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #d7dee7; border-radius: 6px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.useraccess__logout button:hover { background: rgba(255,255,255,.08); color: #fff; }

.flash-area { margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 10px; font-size: 15px; }
.flash--success { background: #e7f6ee; border: 1px solid #b6e0c8; color: #1e6b41; }
.flash--error { background: #fdeceb; border: 1px solid #f3c2bd; color: #9d2c20; }

.auth-wrap { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.stack-form { display: flex; flex-direction: column; gap: 4px; }
.stack-form .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.stack-form label { font-weight: 600; font-size: 14px; }
.stack-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.stack-form .hint { color: var(--muted); font-size: 13px; }
.auth-alt { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.form-errors { background: #fdeceb; border: 1px solid #f3c2bd; color: #9d2c20; border-radius: var(--radius); padding: 12px 16px 12px 20px; margin-bottom: 18px; }
.form-errors ul { margin: 0; padding-left: 18px; }

.btn--wide { width: 100%; justify-content: center; margin-top: 4px; }
.btn--sm { padding: 7px 14px; font-size: 14px; }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.account-card h2 { font-family: "Barlow Semi Condensed", sans-serif; font-size: 19px; margin: 0 0 14px; }
.account-info { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.account-info dt { color: var(--muted); font-size: 14px; }
.account-info dd { margin: 0; font-weight: 600; font-size: 14px; }

/* ---- Gallerie & lightbox (Fase 6) ---- */
.section-title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 24px; margin: 28px 0 14px; }
.content__gallery { margin-top: 8px; }
.ggrid { columns: 160px; column-gap: 10px; }
.ggrid__item { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #f0f2f5; break-inside: avoid; margin: 0 0 10px; }
.ggrid__item img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.ggrid__item:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; background: rgba(12,18,26,.92); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox__stage img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox__stage figcaption { color: #e8edf2; font-size: 14px; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 34px; width: 52px; height: 64px; cursor: pointer; border-radius: 8px; }
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
@media (max-width: 620px) { .lightbox__nav { width: 40px; height: 52px; font-size: 26px; } }

/* ---- Foto dentro il corpo dei contenuti (Fase 6b) ---- */
.content__body img { max-width: 100%; height: auto; border-radius: 8px; cursor: zoom-in; display: block; }
.content__body figure { margin: 1.4em auto; text-align: center; }
.content__body figure img { margin: 0 auto; }
.content__body figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
/* Trix inserisce le immagini in <figure class="attachment">: le normalizziamo */
.content__body .attachment { margin: 1.4em auto; }
.content__body .attachment img { max-width: 100%; height: auto; }

/* ---- Logo (Fase 7) ---- */
.brand__logo { max-height: 64px; width: auto; display: block; }

/* ---- Avatar & post forum (Fase 8) ---- */
.avatar { border-radius: 50%; object-fit: cover; background: #eef1f5; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.avatar--xs { width: 20px; height: 20px; }
.avatar--sm { width: 30px; height: 30px; }
.avatar--md { width: 52px; height: 52px; }
.avatar--lg { width: 96px; height: 96px; }
.useraccess__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 2px; }

/* Post a due colonne: avatar a sinistra, contenuto a destra */
.post { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.post__side { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border-right: 1px solid var(--line); padding-right: 14px; }
.post__side .post__author { font-weight: 600; font-size: 14px; word-break: break-word; }
.post__main { flex: 1; min-width: 0; }
.post__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.post__date { color: var(--muted); font-size: 13px; }
.post__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.post__tools form { margin: 0; }
.post__body { line-height: 1.6; word-wrap: break-word; }
.linkbtn { background: none; border: 0; color: var(--accent-ink); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.linkbtn--danger { color: var(--danger); }

/* Citazioni */
.quote { margin: 0 0 10px; padding: 8px 14px; background: #f5f7fa; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: var(--ink-soft); font-size: 15px; }
.quote cite { display: block; font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* Avatar nell'elenco argomenti e nei commenti */
.ftopic__by .avatar--xs { margin-right: 4px; }
.comment__meta { display: flex; align-items: center; gap: 8px; }

/* Account: avatar */
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }

@media (max-width: 560px) {
    .post { flex-direction: column; }
    .post__side { width: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 10px; justify-content: flex-start; }
}

/* ---- Home: blocchi centrali & feed ricchi (Fase 9) ---- */
.home-blocks { margin-top: 24px; display: flex; flex-direction: column; gap: 22px; }
.card__meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card__author { color: var(--muted); font-size: 13px; }

.block-feed { display: flex; flex-direction: column; gap: 14px; }
.block-feed__item { display: flex; gap: 12px; align-items: flex-start; }
.block-feed__item + .block-feed__item { border-top: 1px solid var(--line); padding-top: 14px; }
.block-feed__thumb { flex-shrink: 0; width: 92px; height: 68px; border-radius: 8px; overflow: hidden; background: #eef1f5; }
.block-feed__thumb img { width: 100%; height: 100%; object-fit: cover; }
.block-feed__text { min-width: 0; flex: 1; }
.block-feed__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 16px; margin: 0 0 4px; line-height: 1.25; }
.block-feed__title a { color: var(--ink); }
.block-feed__title a:hover { color: var(--accent-ink); text-decoration: none; }
.block-feed__excerpt { margin: 0 0 5px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.block-feed__meta { font-size: 12px; color: var(--muted); }

/* Nel corpo centrale i blocchi feed possono affiancare le immagini più grandi */
.home-blocks .block-feed__thumb { width: 120px; height: 84px; }
@media (max-width: 560px) {
    .home-blocks .block-feed__thumb, .block-feed__thumb { width: 84px; height: 62px; }
}

/* ---- Home: griglia compatta "in evidenza" (Fase 9b) ---- */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.fcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,32,46,.12); text-decoration: none; }
.fcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f5; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard__media--empty { background: linear-gradient(135deg, #e7ecf2, #dbe3ec); }
.fcard__body { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 12px; }
.fcard .tag { align-self: flex-start; }
.fcard__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--ink); }
.fcard__excerpt { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .featured-grid { grid-template-columns: 1fr; } }

/* ---- Liste Notizie/Articoli in stile magazine (Fase 10) ---- */
.meta-line { font-size: 12.5px; color: var(--muted); }
.meta-line__author { color: var(--ink-soft); font-weight: 600; }

/* Articolo "lead" in cima */
.lead-card { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; transition: box-shadow .18s ease, transform .18s ease; }
.lead-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,32,46,.13); text-decoration: none; }
.lead-card__media { overflow: hidden; min-height: 240px; background: #eef1f5; }
.lead-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.lead-card:hover .lead-card__media img { transform: scale(1.04); }
.lead-card__media--empty { background: linear-gradient(135deg, #e7ecf2, #d7e0ea); }
.lead-card__body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.lead-card__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 30px; line-height: 1.12; color: var(--ink); }
.lead-card__excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Griglia degli altri articoli */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .18s ease, transform .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,32,46,.12); text-decoration: none; }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f5; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media--empty { background: linear-gradient(135deg, #e7ecf2, #d7e0ea); }
.post-card__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--ink); }
.post-card__excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__body .meta-line { margin-top: auto; }

@media (max-width: 680px) {
    .lead-card { grid-template-columns: 1fr; }
    .lead-card__media { min-height: 0; aspect-ratio: 16 / 9; }
    .lead-card__title { font-size: 24px; }
}

/* ---- Pagina singola articolo/news (Fase 10b) ---- */
/* Larghezza di lettura del contenuto: regolabile da Impostazioni.
   0 = nessun limite (il testo riempie tutta la colonna centrale). */
.article { max-width: var(--read-width, 760px); }
.article__head { margin-bottom: 22px; }
.article__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1; margin: 6px 0 12px; color: var(--ink); }
.article__standfirst { font-size: 18px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 16px; }
.article__byline { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.article__author { font-weight: 600; color: var(--ink); font-size: 14px; }
.article__date { color: var(--muted); font-size: 13px; }
.article__cover { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.article__cover img { width: 100%; display: block; }
.article__body { font-size: 17px; line-height: 1.75; }
.article__body p { margin: 0 0 1.1em; }
.article__body h2, .article__body h3 { font-family: "Barlow Semi Condensed", sans-serif; margin: 1.4em 0 .5em; }

/* ---- Editoriale nella colonna destra ---- */
.editorial { background: linear-gradient(180deg, #fbf6ec, #fdfaf3); border: 1px solid #ecdcbf; border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; position: sticky; top: 20px; z-index: 5; }
.editorial__kicker { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--accent-ink); margin: 0 0 6px; }
.editorial__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 19px; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.editorial__body { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---- Categorie (Fase 11) ---- */
.catbadge { display: inline-block; background: #64748b; color: #fff; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; padding: 2px 10px; border-radius: 20px; line-height: 1.55; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.catbadge:hover { filter: brightness(1.08); text-decoration: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.post-card__media { position: relative; }
.fcard__body .catbadge { align-self: flex-start; }

/* Schede cliccabili con badge/autore come link separati (stretched link) */
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fcard, .post-card, .lead-card { position: relative; }
.fcard__title a, .post-card__title a, .lead-card__title a { color: inherit; }
.fcard__title a:hover, .post-card__title a:hover, .lead-card__title a:hover { color: var(--accent-ink); text-decoration: none; }
.fcard .catbadge, .fcard .tag,
.post-card .badge-row, .post-card .badge-row .catbadge, .post-card .badge-row .tag,
.lead-card .catbadge, .lead-card .badge-row,
.meta-line__author { position: relative; z-index: 2; }
a.meta-line__author { color: var(--ink-soft); font-weight: 600; }
a.meta-line__author:hover { color: var(--accent-ink); text-decoration: none; }
.block-feed__cat { display: block; margin-bottom: 5px; }

.cat-header { border-left: 4px solid var(--cat, #64748b); padding: 2px 0 2px 16px; margin-bottom: 24px; }
.cat-header__desc { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

/* Blocco Categorie */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list__item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cat-list__item:last-child { border-bottom: 0; }
.cat-list__item a { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.cat-list__item a:hover { color: var(--accent-ink); text-decoration: none; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cat-count { color: var(--muted); font-size: 12px; background: #eef1f5; border-radius: 10px; padding: 1px 9px; }

/* Sottocategorie nell'archivio */
.cat-header__children { margin-top: 12px; align-items: center; }
.cat-header__childlabel { font-size: 12.5px; color: var(--muted); }

/* ---- Contenuti correlati a tab (Fase 12) ---- */
.related { margin-top: 34px; padding-top: 8px; border-top: 1px solid var(--line); }
.tag--mini { font-size: 10px; padding: 1px 7px; margin-bottom: 4px; display: inline-block; }
.rtabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.rtabs__nav { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.rtabs__nav label { padding: 9px 16px; cursor: pointer; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s; }
.rtabs__nav label:hover { color: var(--ink); }
.rtabs__panel { display: none; }
#rtab-a:checked ~ .rtabs__panel--a,
#rtab-b:checked ~ .rtabs__panel--b { display: block; }
#rtab-a:checked ~ .rtabs__nav label[for="rtab-a"],
#rtab-b:checked ~ .rtabs__nav label[for="rtab-b"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
.related .block-feed { max-width: 720px; }

/* ---- Capitoli / paginazione (Fase 13) ---- */
.chapters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chapters--top { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chapters--bottom { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); justify-content: space-between; }
.chapters__label { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; color: var(--muted); font-size: 14px; }
.chapters__select { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.chapters--bottom .chapters__select { margin: 0; }
.chapters__selectlabel { font-size: 13px; color: var(--muted); }
.chapters__select select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; max-width: 260px; cursor: pointer; }
.chapters__btn { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14px; color: var(--accent-ink); padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapters__btn:hover { border-color: var(--accent); text-decoration: none; }
.chapters__btn--off { color: #c2c8d0; border-style: dashed; cursor: default; }

/* Allineamento immagini prodotto dall'editor */
.content__body img[style*="float: left"], .content__body img[style*="float:left"] { margin: 4px 20px 12px 0; }
.content__body img[style*="float: right"], .content__body img[style*="float:right"] { margin: 4px 0 12px 20px; }

/* ---- Pagina autore (Fase 17) ---- */
.author-hero { display: flex; gap: 22px; align-items: flex-start; padding: 4px 0 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.author-hero__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: var(--shadow); background: #eef1f5; }
.author-hero__info { min-width: 0; }
.author-hero__name { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; margin: 2px 0 10px; }
.author-hero__bio { color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; max-width: 640px; }
.author-hero__contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.author-hero__contacts a { font-size: 13px; font-weight: 600; color: var(--accent-ink); border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px; }
.author-hero__contacts a:hover { border-color: var(--accent); text-decoration: none; }
@media (max-width: 560px) { .author-hero { flex-direction: column; align-items: center; text-align: center; } .author-hero__bio { max-width: none; } }

/* Autore linkato nella byline del contenuto */
.article__author a { color: var(--ink); }
.article__author a:hover { color: var(--accent-ink); text-decoration: none; }
.article__byavatar { display: inline-flex; flex-shrink: 0; }

/* ---- Interruttore colonne (Fase 19) ---- */
.cols-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cols-toggle { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-soft); cursor: pointer; transition: border-color .15s, color .15s; }
.cols-toggle:hover { border-color: var(--accent); color: var(--ink); }
.cols-toggle__ico { flex-shrink: 0; }
.cols-toggle__show { display: none; }
html.cols-hidden .cols-toggle__hide { display: none; }
html.cols-hidden .cols-toggle__show { display: inline; }

html.cols-hidden .portal__col--left,
html.cols-hidden .portal__col--right { display: none; }
html.cols-hidden .portal__grid,
html.cols-hidden .portal__grid.has-left,
html.cols-hidden .portal__grid.has-right,
html.cols-hidden .portal__grid.has-left.has-right { grid-template-columns: minmax(0, 1fr); }

/* ---- Ricerca, condivisione, paginazione, più letti (Fase 20) ---- */
/* Ricerca nell'header */
.header-search { display: flex; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; overflow: hidden; }
.header-search input { border: 0; background: transparent; color: #fff; padding: 7px 12px; font: inherit; font-size: 14px; width: 150px; outline: none; }
.header-search input::placeholder { color: #b8c2cf; }
.header-search button { border: 0; background: transparent; color: #cdd6e0; padding: 6px 10px; cursor: pointer; display: inline-flex; }
.header-search button:hover { color: #fff; }
@media (max-width: 860px) { .header-search { display: none; } }

/* Form di ricerca (blocco e pagina) */
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.search-form button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 0 12px; cursor: pointer; color: var(--ink-soft); display: inline-flex; align-items: center; }
.search-form button:hover { border-color: var(--accent); color: var(--ink); }
.search-form--page { max-width: 560px; margin: 0 0 20px; }
.search-form--page input { padding: 11px 14px; }

/* Condivisione */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.share__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.share__btn { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 13px; color: var(--accent-ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px; cursor: pointer; }
.share__btn:hover { border-color: var(--accent); text-decoration: none; }
.article__stats { color: var(--muted); }

/* Paginazione */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager__btn { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14px; color: var(--accent-ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; background: var(--surface); }
.pager__btn:hover { border-color: var(--accent); text-decoration: none; }
.pager__btn--off { color: #c2c8d0; border-style: dashed; }
.pager__status { font-size: 13px; color: var(--muted); }

/* Blocco Più letti */
.mostread { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.mostread__item { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mostread__item:last-child { border-bottom: 0; }
.mostread__rank { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 18px; color: var(--accent); line-height: 1.1; min-width: 18px; }
.mostread__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mostread__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--ink); }
.mostread__title:hover { color: var(--accent-ink); text-decoration: none; }
.mostread__views { font-size: 11.5px; color: var(--muted); }
.mostread .catbadge { align-self: flex-start; }

/* ---- Tema scuro (Fase 21) ---- */
html.dark {
    --ink:        #e7ecf3;
    --ink-soft:   #c3cdd9;
    --muted:      #8c98a7;
    --line:       #2b3644;
    --surface:    #1b2432;
    --page:       #10161f;
    --accent-ink: #f0b95e;
    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 22px rgba(0,0,0,.40);
}
html.dark .btn { background: #2b3644; color: #eef2f7; }
html.dark .btn:hover { background: #384656; }
html.dark input, html.dark textarea, html.dark select { background: #141c26; color: var(--ink); }
html.dark input::placeholder, html.dark textarea::placeholder { color: #6d7988; }
html.dark .fcard__media, html.dark .post-card__media, html.dark .lead-card__media,
html.dark .block-feed__thumb, html.dark .gal-card__thumbs, html.dark .cat-count,
html.dark .author-hero__avatar { background: #232f3e; }
html.dark .fcard__media--empty, html.dark .post-card__media--empty,
html.dark .lead-card__media--empty { background: linear-gradient(135deg, #232f3e, #18212d); }
html.dark .editorial { background: #241f13; border-color: #4a3a1c; }
html.dark .search-form button, html.dark .chapters__select select { background: #141c26; }
html.dark .catbadge { filter: brightness(1.06); }

/* Interruttore tema nell'header */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.10); color: #cdd6e0; border-radius: 8px; cursor: pointer; }
.theme-toggle:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.theme-toggle__moon { display: inline; }
.theme-toggle__sun { display: none; }
html.dark .theme-toggle__moon { display: none; }
html.dark .theme-toggle__sun { display: inline; }

/* ---- Blocchi decorativi (Fase 21) ---- */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 7px 11px; align-items: baseline; }
.cat-cloud__item { color: var(--cc, #64748b); font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; line-height: 1.2; }
.cat-cloud__item:hover { text-decoration: underline; }
.cat-cloud__n { font-size: .62em; color: var(--muted); margin-left: 2px; vertical-align: super; }

.feat-one { display: block; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.feat-one__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f5; }
.feat-one__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-one__body { display: block; padding: 13px 15px 15px; }
.feat-one .catbadge { position: relative; z-index: 2; }
.feat-one__title { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.2; margin: 8px 0 6px; }
.feat-one__title a { color: var(--ink); }
.feat-one__title a:hover { color: var(--accent-ink); text-decoration: none; }
.feat-one__excerpt { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links__item { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--page); color: var(--ink-soft); border: 1px solid var(--line); }
.social-links__item:hover { color: #fff; text-decoration: none; }
.social-links__item--facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-links__item--twitter:hover { background: #14171a; border-color: #14171a; }
.social-links__item--instagram:hover { background: #d6249f; border-color: #d6249f; }
.social-links__item--youtube:hover { background: #f00; border-color: #f00; }

/* ---- Breadcrumb categorie (Fase 22) ---- */
.cat-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cat-crumbs a { color: var(--muted); }
.cat-crumbs a:hover { color: var(--accent-ink); text-decoration: none; }
.cat-crumbs__sep { color: var(--line); }
.cat-crumbs__here { color: var(--ink-soft); font-weight: 600; }

/* ---- Blocchi nuovi (Fase 24) ---- */
/* link "Tutte in X →" in fondo a un blocco */
.block-more { display: inline-block; margin-top: 10px; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 13.5px; color: var(--accent-ink); }
.block-more:hover { text-decoration: underline; }

/* Le firme */
.authors-block { display: flex; flex-direction: column; gap: 4px; }
.author-chip { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; }
.author-chip:hover { background: var(--page); text-decoration: none; }
.author-chip__img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e6ebf2; }
.author-chip__info { display: flex; flex-direction: column; min-width: 0; }
.author-chip__name { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.author-chip__count { font-size: 12px; color: var(--muted); }

/* Seguici */
.follow-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.follow-block__rss { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; background: #f26522; color: #fff; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 13.5px; }
.follow-block__rss:hover { filter: brightness(1.06); text-decoration: none; }
.follow-block .social-links { gap: 8px; }

/* In primo piano (grande + titoli) */
.feat-multi { display: flex; flex-wrap: wrap; gap: 16px; }
.feat-multi__lead { position: relative; flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.feat-multi__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f5; }
.feat-multi__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-multi__leadbody { display: block; padding: 13px 15px 15px; }
.feat-multi__lead .catbadge { position: relative; z-index: 2; }
.feat-multi__leadtitle { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.18; margin: 8px 0 6px; }
.feat-multi__leadtitle a { color: var(--ink); }
.feat-multi__leadtitle a:hover { color: var(--accent-ink); text-decoration: none; }
.feat-multi__excerpt { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.feat-multi__list { flex: 1 1 240px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feat-multi__item { border-bottom: 1px solid var(--line); }
.feat-multi__item:last-child { border-bottom: 0; }
.feat-multi__item a { display: block; padding: 10px 0; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--ink); }
.feat-multi__item a:hover { color: var(--accent-ink); text-decoration: none; }

/* ============ Estetica forum (Fase 26) ============ */
.fsection { margin-bottom: 26px; }
.fsection__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 20px; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.fsection__desc { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.fsection__empty { color: var(--muted); font-size: 14px; }
.fboards { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

/* Riga bacheca */
.fboard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fboard:last-child { border-bottom: 0; }
.fboard__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: color-mix(in srgb, var(--fbc, #3f6d8c) 16%, transparent); }
.fboard__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fboard__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); }
.fboard__title:hover { color: var(--accent-ink); text-decoration: none; }
.fboard__desc { color: var(--muted); font-size: 13px; line-height: 1.4; }
.fboard__stats { flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; text-align: right; width: 120px; }
.fstat { font-size: 12.5px; color: var(--muted); }
.fstat strong { color: var(--ink); font-family: "Barlow Semi Condensed", sans-serif; }
.fboard__last { flex-shrink: 0; width: 190px; display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }

/* Mini-box ultimo messaggio */
.flast__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e6ebf2; }
.flast__text { display: flex; flex-direction: column; min-width: 0; }
.flast__topic { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flast__topic:hover { color: var(--accent-ink); text-decoration: none; }
.flast__user { font-size: 13px; font-weight: 600; color: var(--ink); }
.flast__meta { font-size: 11.5px; color: var(--muted); }
.flast__empty { font-size: 12.5px; color: var(--muted); }

/* Riepilogo attività */
.fsummary { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 12px; margin-top: 6px; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line); border-radius: var(--radius); }
.fsummary strong { color: var(--ink); }
.fsummary__dot { color: var(--line); }

/* Elenco discussioni */
.ftopics { list-style: none; margin: 0 0 24px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ftopic { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ftopic:last-child { border-bottom: 0; }
.ftopic--pinned { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ftopic__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e6ebf2; }
.ftopic__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ftopic__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 16.5px; color: var(--ink); line-height: 1.25; }
.ftopic__title:hover { color: var(--accent-ink); text-decoration: none; }
.ftopic__by { font-size: 12.5px; color: var(--muted); }
.ftopic__stats { flex-shrink: 0; width: 100px; text-align: right; display: flex; flex-direction: column; gap: 1px; }
.ftopic__last { flex-shrink: 0; width: 150px; display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.ftag { display: inline-block; font-size: 12px; font-weight: 700; margin-right: 3px; }
.ftag--link { background: var(--accent); color: #3a2a06; border-radius: 4px; padding: 1px 6px; font-family: "Barlow Semi Condensed", sans-serif; }

/* Post nella discussione */
.posts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.post { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.post__side { flex-shrink: 0; width: 150px; padding: 16px 12px; text-align: center; background: var(--page); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.post__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e6ebf2; margin-bottom: 4px; }
.post__author { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.post__author:hover { color: var(--accent-ink); text-decoration: none; }
.post__role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 10px; }
.post__role--admin { background: #fde68a; color: #7a5b09; }
.post__role--editor { background: #bfdbfe; color: #1e40af; }
.post__role--member { background: #e2e8f0; color: #475569; }
.post__since, .post__pcount { font-size: 11.5px; color: var(--muted); }
.post__main { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; }
.post__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.post__date { font-size: 12.5px; color: var(--muted); }
.post__ago { color: var(--muted); }
.post__num { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 13px; color: var(--muted); }
.post__num:hover { color: var(--accent-ink); text-decoration: none; }
.post__tools { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
    .fboard__stats, .fboard__last, .ftopic__stats, .ftopic__last { display: none; }
    .post { flex-direction: column; }
    .post__side { width: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
    .post__avatar { width: 40px; height: 40px; margin: 0; }
}

/* Tema scuro: sfondi tenui */
html.dark .flast__avatar, html.dark .ftopic__avatar, html.dark .post__avatar { background: #232f3e; }
html.dark .post__role--admin { background: #4a3c12; color: #f4d67a; }
html.dark .post__role--editor { background: #1e335c; color: #a9c8f5; }
html.dark .post__role--member { background: #2a3644; color: #b7c2d0; }

/* Footer personalizzato (Fase 27) */
.site-footer__custom { width: 100%; }
.site-footer__custom p { margin: 0 0 6px; }
.site-footer__custom p:last-child { margin-bottom: 0; }
.site-footer__custom a { color: var(--accent-ink); }
.site-footer__custom img { max-width: 100%; height: auto; }
.site-footer__custom h3, .site-footer__custom h4 { font-family: "Barlow Semi Condensed", sans-serif; margin: 0 0 6px; color: var(--ink); }

/* ============ Gallerie pubbliche & protezione (Fase 28) ============ */
/* Indice pubblico */
.gpub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gpub__card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.gpub__card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.gpub__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f5; }
.gpub__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gpub__media--empty { background: linear-gradient(135deg, #e6ebf2, #d7dee8); }
.gpub__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; background: rgba(20,26,35,.28); }
.gpub__count { position: absolute; right: 8px; bottom: 8px; background: rgba(20,26,35,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.gpub__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.gpub__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.2; }
.gpub__desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.gpub__badge { align-self: flex-start; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); border: 1px solid var(--line); border-radius: 12px; padding: 2px 9px; }

/* Foto bloccata nella griglia */
.ggrid__locked { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #dfe5ec; break-inside: avoid; margin: 0 0 10px; }
.ggrid__locked img { width: 100%; height: auto; display: block; }
.ggrid__placeholder { display: block; width: 100%; aspect-ratio: 1 / 1; background: repeating-linear-gradient(45deg, #dfe5ec, #dfe5ec 12px, #d3dae3 12px, #d3dae3 24px); }
.ggrid__lockwrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(18,24,33,.30); color: #fff; }
.ggrid__lockicon { font-size: 30px; }
.ggrid__lockhint { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ggrid__locked:hover .ggrid__lockwrap { background: rgba(18,24,33,.42); }

.notice--lock { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid var(--accent); }

/* Blocco "Ultime gallerie" (Fase 29) */
.gblock { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gblock__item { display: flex; flex-direction: column; gap: 5px; }
.gblock__item:hover { text-decoration: none; }
.gblock__thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #eef1f5; }
.gblock__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gblock__thumb--empty { background: linear-gradient(135deg, #e6ebf2, #d7dee8); }
.gblock__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(20,26,35,.28); }
.gblock__info { display: flex; flex-direction: column; gap: 1px; }
.gblock__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.2; }
.gblock__item:hover .gblock__title { color: var(--accent-ink); }
.gblock__meta { font-size: 11px; color: var(--muted); }

@media (max-width: 400px) { .gblock { grid-template-columns: 1fr 1fr; } }

/* Blocco categorie dinamico (Fase 31) */
.cat-list__heading { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.cat-list__item--active > a { color: var(--accent-ink); font-weight: 700; }

/* Sezione "Pro e Contro" nei contenuti (Fase 32) */
.proscons { margin: 28px 0; }
.proscons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proscons__col { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); }
.proscons__col--pro { background: color-mix(in srgb, #16a34a 8%, var(--surface)); border-color: color-mix(in srgb, #16a34a 25%, var(--line)); }
.proscons__col--con { background: color-mix(in srgb, #dc2626 7%, var(--surface)); border-color: color-mix(in srgb, #dc2626 22%, var(--line)); }
.proscons__heading { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.proscons__col--pro .proscons__heading { color: #15803d; }
.proscons__col--con .proscons__heading { color: #b91c1c; }
.proscons__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.proscons__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.proscons__icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.proscons__col--pro .proscons__icon { background: #16a34a; }
.proscons__col--con .proscons__icon { background: #dc2626; }

@media (max-width: 560px) { .proscons__grid { grid-template-columns: 1fr; } }

/* Intreccio news <-> articoli (Fase 40) */
.crossweave { margin: 30px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.crossweave--news { border-left-color: var(--news, #c0392b); }
.crossweave--article { border-left-color: var(--article, #8e44ad); }
.crossweave__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.crossweave__icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.crossweave__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 21px; margin: 0; }
.crossweave__sub { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.crossweave__all { margin-left: auto; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: none; align-self: center; }
.crossweave__all:hover { text-decoration: underline; }
@media (max-width: 560px) { .crossweave__all { display: none; } }

/* Menu mobile (hamburger) + tendina Categorie (Fase 41) */
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mainnav__cats { position: relative; }
.mainnav__catsbtn { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 17px; color: #d7dee7; background: transparent; border: 0; padding: 6px 12px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mainnav__catsbtn:hover { color: #fff; background: rgba(255,255,255,.08); }
.mainnav__caret { font-size: 11px; transition: transform .2s; }
.mainnav__cats.is-open .mainnav__caret { transform: rotate(180deg); }
.mainnav__catsmenu { display: none; position: absolute; top: 100%; left: 0; margin-top: 6px; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(22,32,46,.18); padding: 6px; z-index: 60; max-height: 70vh; overflow-y: auto; }
.mainnav__cats.is-open .mainnav__catsmenu { display: block; }
.mainnav__catsmenu a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 7px; color: var(--ink); font-size: 15px; font-family: "Inter", sans-serif; font-weight: 500; }
.mainnav__catsmenu a:hover { background: var(--page); text-decoration: none; }
.mainnav__catdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mainnav__catn { margin-left: auto; color: var(--muted); font-size: 12.5px; background: var(--page); border-radius: 20px; padding: 1px 8px; }

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .mainnav { display: none; width: 100%; order: 5; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 10px; }
    .site-header.nav-open .mainnav { display: flex; }
    .mainnav > a, .mainnav__catsbtn { width: 100%; font-size: 18px; padding: 11px 12px; }
    .mainnav__cats { width: 100%; }
    .mainnav__catsbtn { justify-content: space-between; }
    .mainnav__catsmenu { position: static; margin-top: 2px; box-shadow: none; border: 0; background: rgba(255,255,255,.05); max-height: none; }
    .mainnav__catsmenu a { color: #d7dee7; }
    .mainnav__catsmenu a:hover { background: rgba(255,255,255,.08); }
    .mainnav__catn { background: rgba(255,255,255,.12); color: #cdd6e0; }
}

/* Allineamento voci menu + sottocategorie nella tendina (Fase 42) */
.mainnav { align-items: center; }
.mainnav > a, .mainnav__catsbtn { display: inline-flex; align-items: center; line-height: 1.4; }
.mainnav__subcats { display: block; }
.mainnav__catsmenu .mainnav__catlink--sub { padding-left: 32px; font-size: 14px; position: relative; }
.mainnav__catsmenu .mainnav__catlink--sub::before { content: "\21B3"; position: absolute; left: 15px; opacity: .5; }
@media (max-width: 760px) {
    .mainnav__catsmenu .mainnav__catlink--sub { padding-left: 34px; }
}

/* Collegamento editoriale news<->articolo (Fase 43) */
.edlink { margin: 28px 0; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.edlink__head { margin-bottom: 10px; }
.edlink__badge { display: inline-block; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 3px 10px; border-radius: 20px; }
.edlink__item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); margin-top: 8px; transition: transform .12s ease, box-shadow .12s ease; }
.edlink__item:hover { transform: translateX(3px); box-shadow: 0 6px 18px rgba(22,32,46,.10); text-decoration: none; }
.edlink__item--article { border-left: 3px solid var(--article, #7a5aa6); }
.edlink__item--news { border-left: 3px solid var(--news, #2f6f8f); }
.edlink__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.edlink__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.edlink__kind { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.edlink__title { font-size: 16px; font-weight: 600; }
.edlink__go { margin-left: auto; color: var(--accent-ink); font-size: 18px; flex-shrink: 0; }

/* Chip argomenti sul contenuto (Fase 45) */
.tagchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.tagchips__label { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tagchip { display: inline-block; background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); font-size: 14px; font-weight: 500; padding: 4px 12px; border-radius: 20px; text-decoration: none; }
.tagchip:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: var(--accent); text-decoration: none; }

/* Nuvola di argomenti (Fase 46) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-cloud__item { display: inline-block; background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; line-height: 1.2; padding: 3px 11px; border-radius: 20px; text-decoration: none; }
.tag-cloud__item:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: var(--accent); text-decoration: none; }
.tag-cloud__n { font-size: .62em; color: var(--muted); margin-left: 3px; vertical-align: super; }

/* Avvisi su login/registrazione (Fase 49) */
.auth-notice { background: #eef4fb; border: 1px solid #cfe0f2; color: #234; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: 15px; line-height: 1.55; }
.auth-notice--ok { background: #e7f6ee; border-color: #b6e0c8; color: #1e6b41; }
html.dark .auth-notice { background: #1b2735; border-color: #2c3f52; color: #cdd8e4; }
html.dark .auth-notice--ok { background: #16301f; border-color: #26492f; color: #bfe6cd; }

/* Contenuto riservato (Fase 51) */
.content-gate { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 24px; margin: 20px 0; }
.content-gate__icon { font-size: 40px; line-height: 1; }
.content-gate__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 24px; margin: 10px 0 6px; }
.content-gate__text { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }
.content-gate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Modalità scura — correzioni (Fase 52)
   ============================================================ */
/* Header: resta blu scuro come in modalità chiara (non seguire --ink) */
html.dark .site-header { background: #16202e; }
html.dark .header-search input { background: transparent; color: #fff; }
html.dark .header-search input::placeholder { color: #b8c2cf; }

/* Titoli dei blocchi: erano su fondo chiaro fisso -> testo invisibile */
html.dark .block__title { background: #141c26; color: var(--ink); border-bottom-color: var(--line); }

/* Riquadri informativi e citazioni */
html.dark .notice, html.dark .modbar { background: #2a2413; border-color: #4a3a1c; color: #f0c97a; }
html.dark .quote { background: #141c26; color: var(--ink-soft); }
html.dark .empty code { background: #232f3e; }

/* Etichette / contatori */
html.dark .badge { background: #232f3e; color: var(--muted); }
html.dark .badge--link { background: #1e335c; color: #a9c8f5; }

/* Placeholder immagini/avatar rimasti chiari */
html.dark .feat-one__media, html.dark .feat-multi__media, html.dark .gpub__media,
html.dark .ggrid__item, html.dark .avatar, html.dark .author-chip__img { background: #232f3e; }

/* Spaziatura titoli->testo nei contenuti: il testo parte subito sotto (Fase 56) */
.content__body h1, .content__body h2, .content__body h3, .content__body h4,
.article__body h1, .article__body h2, .article__body h3, .article__body h4 {
    margin-top: 1.5em;
    margin-bottom: .15em;
    line-height: 1.25;
}
.content__body h1 + p, .content__body h2 + p, .content__body h3 + p, .content__body h4 + p,
.article__body h1 + p, .article__body h2 + p, .article__body h3 + p, .article__body h4 + p {
    margin-top: 0;
}
/* Titoli scritti come paragrafo tutto in grassetto (<p><strong>...</strong></p>) */
.content__body p:has(> strong:only-child),
.article__body p:has(> strong:only-child) {
    margin-bottom: .15em;
}
.content__body p:has(> strong:only-child) + p,
.article__body p:has(> strong:only-child) + p {
    margin-top: 0;
}
/* Nessuno spazio sopra il primo elemento del corpo */
.content__body > :first-child, .article__body > :first-child { margin-top: 0; }

/* Feed personalizzato (Fase 58) */
.cfeed { display: flex; flex-direction: column; gap: 12px; }
.cfeed__item { display: flex; gap: 10px; }
.cfeed__thumb { flex-shrink: 0; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--page); }
.cfeed__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfeed__text { min-width: 0; }
.cfeed__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 15px; font-weight: 600; margin: 0 0 2px; line-height: 1.25; }
.cfeed__title a { color: var(--ink); }
.cfeed__title a:hover { color: var(--accent-ink); }
.cfeed__meta { font-size: 12px; color: var(--muted); display: block; }
.cfeed__badge { background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 0 7px; }
.cfeed__excerpt { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.cfeed--cards .cfeed__item { flex-direction: column; gap: 0; }
.cfeed--cards .cfeed__thumb { width: 100%; height: 130px; border-radius: 8px 8px 0 0; }
.cfeed--cards .cfeed__text { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.cfeed--cards .cfeed__thumb + .cfeed__text { border-top: 0; border-radius: 0 0 8px 8px; }

/* Blocchi nel corpo centrale (Fase 60) */
.portal__mainblocks--bottom { margin-top: 22px; }

/* Avviso manutenzione per l'admin sul sito pubblico (Fase 62) */
.maint-bar { display: flex; align-items: center; gap: 10px; background: #fff4d6; border-bottom: 2px solid #e0952b; color: #7a5b09; padding: 9px 20px; font-size: 14px; }
.maint-bar__dot { width: 10px; height: 10px; border-radius: 50%; background: #e0952b; flex-shrink: 0; animation: maintpulse 1.6s ease-in-out infinite; }
@keyframes maintpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.maint-bar__link { margin-left: auto; font-weight: 700; color: #7a5b09; text-decoration: underline; white-space: nowrap; }
html.dark .maint-bar { background: #2a2413; border-bottom-color: #e0952b; color: #f0c97a; }
html.dark .maint-bar__link { color: #f0c97a; }
@media (prefers-reduced-motion: reduce) { .maint-bar__dot { animation: none; } }

/* Commenti: indicatore in alto e badge ospite (Fase 63) */
.jump-comments { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px; margin-bottom: 12px; font-size: 14px; color: var(--ink); text-decoration: none; }
.jump-comments:hover { border-color: var(--accent); text-decoration: none; }
.jump-comments__icon { font-size: 15px; }
.jump-comments__cta { color: var(--accent-ink); font-weight: 700; border-left: 1px solid var(--line); padding-left: 8px; }
.comment__guest { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; background: var(--page); border: 1px solid var(--line); color: var(--muted); border-radius: 20px; padding: 1px 7px; }
.fform input[type="text"] { width: 100%; max-width: 320px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 8px; }

/* Ospiti nel forum (commenti moderati approvati) — Fase 64 */
.post__role--guest { background: var(--page); border: 1px solid var(--line); color: var(--muted); }

/* Esito dell'invio commento, mostrato accanto al box (Fase 66) */
.comment-flash { border-radius: var(--radius); padding: 13px 16px; margin-bottom: 16px; font-size: 15px; line-height: 1.5; border: 1px solid; }
.comment-flash--success { background: #e7f6ee; border-color: #b6e0c8; color: #1e6b41; }
.comment-flash--error { background: #fdecec; border-color: #f3c3c3; color: #a12b2b; }
html.dark .comment-flash--success { background: #16301f; border-color: #26492f; color: #bfe6cd; }
html.dark .comment-flash--error { background: #331a1a; border-color: #522a2a; color: #f0b6b6; }

/* Nome autore nelle liste del forum (Fase 67) */
.flast__meta .flast__user { font-size: inherit; font-weight: 700; color: var(--ink); }

/* Larghezza dedicata quando resta una sola colonna (Fase 69) */
.portal__grid.has-left:not(.has-right)  { grid-template-columns: var(--col-solo, 320px) minmax(0, 1fr); }
.portal__grid.has-right:not(.has-left)  { grid-template-columns: minmax(0, 1fr) var(--col-solo, 320px); }

/* Conformità: banner cookie, footer legale, pagine informative (Fase 71) */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--surface); border-top: 2px solid var(--accent); box-shadow: 0 -6px 24px rgba(22,32,46,.18); padding: 14px 20px; }
.cookiebar__inner { max-width: var(--wrap, 1200px); margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookiebar__text { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.5; flex: 1; min-width: 260px; }
.cookiebar__actions { display: flex; gap: 8px; margin-left: auto; }
html.dark .cookiebar { background: #16202e; }

.site-footer__legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 10px 20px 4px; font-size: 13px; }
.site-footer__legal a { color: inherit; opacity: .85; text-decoration: underline; }
.site-footer__legal a:hover { opacity: 1; }

.legal-page__body h2 { font-size: 20px; margin-top: 1.6em; }
.legal-page__body h3 { font-size: 17px; }
.legal-page__body mark { background: #ffe9a8; color: #6b4b00; padding: 1px 5px; border-radius: 4px; }

.privacy-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; }
.privacy-consent input { margin-top: 3px; flex-shrink: 0; }

.danger-zone { border: 1px solid #f0c9c9; background: #fdf4f4; border-radius: var(--radius); padding: 18px 20px; margin-top: 22px; }
.danger-zone__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 18px; color: #a12b2b; margin: 0 0 6px; }
.danger-zone__text { font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.danger-zone__form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.danger-zone__form input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
html.dark .danger-zone { background: #2a1a1a; border-color: #522a2a; }

/* Modulo File & Download (Fase 73) */
.filelist { display: flex; flex-direction: column; gap: 12px; }
.filecard { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.filecard:hover { border-color: var(--accent); }
.filecard__icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
.filecard__main { min-width: 0; flex: 1; }
.filecard__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 18px; margin: 0 0 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filecard__title a { color: var(--ink); }
.filecard__title a:hover { color: var(--accent-ink); }
.filecard__ver { font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); border-radius: 20px; padding: 1px 8px; }
.filecard__lock { font-size: 13px; }
.filecard__desc { margin: 0 0 5px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.filecard__meta { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.filecard__ext { background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 0 8px; text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.filecard__action { flex-shrink: 0; }
@media (max-width: 560px) { .filecard { flex-wrap: wrap; } .filecard__action { width: 100%; } .filecard__action .btn { width: 100%; } }

.filedetail__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.filedetail__facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.filedetail__facts li { display: flex; flex-direction: column; gap: 1px; }
.filedetail__facts strong { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-family: "Barlow Semi Condensed", sans-serif; }
.filedetail__facts span { font-size: 15px; font-weight: 600; }
.filedetail__btn { text-align: center; }
.filedetail__from, .filedetail__back { font-size: 14px; color: var(--muted); margin-top: 18px; }
.attachments { margin: 28px 0; }

.fblock { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fblock__item { display: flex; gap: 9px; align-items: center; }
.fblock__icon { font-size: 20px; flex-shrink: 0; }
.fblock__text { display: flex; flex-direction: column; min-width: 0; }
.fblock__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.fblock__title:hover { color: var(--accent-ink); }
.fblock__meta { font-size: 12px; color: var(--muted); }

/* Categorie dei file (Fase 75) */
.fcats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.fcat { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px; font-size: 14px; color: var(--ink); text-decoration: none; }
.fcat:hover { border-color: var(--accent); text-decoration: none; }
.fcat.is-active { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fcat--sub { font-size: 13px; opacity: .9; }
.fcat__n { color: var(--muted); font-size: 12px; }
.fsearch { display: flex; gap: 8px; margin-bottom: 16px; }
.fsearch input { flex: 1; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
.filecard__cats { margin: 0 0 5px; display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 1px 9px; color: var(--muted); text-decoration: none; }
.fchip:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.fcatblock { list-style: none; margin: 0; padding: 0; }
.fcatblock__item > a, .fcatblock__sub a { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--ink); font-size: 14.5px; }
.fcatblock__item > a:hover, .fcatblock__sub a:hover { color: var(--accent-ink); }
.fcatblock__sub { list-style: none; margin: 0 0 0 14px; padding: 0; }
.fcatblock__sub a { font-size: 13.5px; color: var(--muted); }
.fcatblock__n { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--page); border-radius: 20px; padding: 0 8px; }

/* Newsletter (Fase 81) */
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nlblock { display: flex; flex-direction: column; gap: 8px; }
.nlblock__intro { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.nlblock__email { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); }
.nlblock__consent { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.nlblock__consent input { margin-top: 2px; flex-shrink: 0; }
.nlpage .stack-form { max-width: 520px; }

/* Invito newsletter in fondo ai contenuti (Fase 82) */
.nlcta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 32px 0; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.nlcta__text { flex: 1; min-width: 240px; }
.nlcta__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 21px; margin: 0 0 5px; }
.nlcta__sub { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.nlcta__form { flex: 1; min-width: 280px; }
.nlcta__row { display: flex; gap: 8px; }
.nlcta__row input { flex: 1; min-width: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
.nlcta__row .btn { white-space: nowrap; }
.nlcta__consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.nlcta__consent input { margin-top: 2px; flex-shrink: 0; }
@media (max-width: 620px) { .nlcta { padding: 18px; } .nlcta__row { flex-direction: column; } .nlcta__row .btn { width: 100%; } }

/* Blocchi: "leggi tutto" e schede (Fase 84) */
.block-more { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: right; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 15px; color: var(--accent-ink); text-decoration: none; }
.block-more:hover { text-decoration: underline; }

.btabs__nav { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.btabs__tab { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 15.5px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 8px 14px; cursor: pointer; color: var(--muted); }
.btabs__tab:hover { color: var(--ink); }
.btabs__tab.is-active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.btabs__pane { display: none; }
.btabs__pane.is-active { display: block; }

/* Rimando dentro le schede: allineato al riquadro (Fase 85) */
.btabs__pane .block-more { margin-top: 12px; }

/* Blocco "Ultimi commenti" (Fase 87) */
.cblock { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cblock__item { display: flex; gap: 10px; }
.cblock__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--page); }
.cblock__body { min-width: 0; flex: 1; }
.cblock__head { display: block; font-size: 13.5px; line-height: 1.3; }
.cblock__head strong { color: var(--ink); }
.cblock__on { color: var(--muted); }
.cblock__on a { color: var(--accent-ink); }
.cblock__text { margin: 3px 0 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cblock__text a { color: inherit; text-decoration: none; }
.cblock__text a:hover { color: var(--ink); }
.cblock__date { font-size: 12px; color: var(--muted); opacity: .8; }

/* =====================================================================
   Fase 91 — Segnale "Novità" (freschezza a tempo)
   Pallino/numero/etichetta sui contenuti recenti e sulle linguette.
   ===================================================================== */
.vbc-fresh { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; line-height: 1; }
.vbc-fresh__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fresh); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(47,158,94,.16); }
.vbc-fresh__txt { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fresh-ink); }
.vbc-fresh__num { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 11px; color: #fff; }

/* Accanto a un singolo contenuto: leggero, non invadente. */
.vbc-fresh--item { margin-left: 6px; }

/* Sulla linguetta della scheda: pallino + numero in una pastiglia compatta. */
.vbc-fresh--tab { margin-left: 6px; }
.vbc-fresh--tab.has-num { background: var(--fresh); border-radius: 999px; padding: 1px 7px 1px 6px; gap: 4px; }
.vbc-fresh--tab.has-num .vbc-fresh__dot { background: #fff; box-shadow: none; width: 6px; height: 6px; }
.btabs__tab.has-fresh { color: var(--ink); }

/* Titolo dell'item fresco leggermente più marcato: si nota senza gridare. */
.block-feed__item.is-fresh .block-feed__title a,
.cfeed__item.is-fresh .cfeed__title a { color: var(--fresh-ink); }
html.dark .block-feed__item.is-fresh .block-feed__title a,
html.dark .cfeed__item.is-fresh .cfeed__title a { color: #56c98a; }

/* Solo lettori di schermo. */
.vbc-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Pulsazione soft: solo per chi non ha chiesto meno animazioni. */
@media (prefers-reduced-motion: no-preference) {
    .vbc-fresh.is-pulse .vbc-fresh__dot { animation: vbcFreshPulse 2.4s ease-in-out infinite; }
    @keyframes vbcFreshPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(47,158,94,.45); }
        50%      { box-shadow: 0 0 0 4px rgba(47,158,94,0); }
    }
    .vbc-fresh--tab.has-num.is-pulse .vbc-fresh__dot { animation: vbcFreshPulseWhite 2.4s ease-in-out infinite; }
    @keyframes vbcFreshPulseWhite {
        0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
        50%      { box-shadow: 0 0 0 3px rgba(255,255,255,0); }
    }
}

/* Dark mode. */
html.dark .vbc-fresh__dot { box-shadow: 0 0 0 3px rgba(47,158,94,.22); }
html.dark .vbc-fresh__txt { color: #56c98a; }
html.dark .vbc-fresh--tab.has-num { background: var(--fresh-ink); }
html.dark .vbc-fresh--tab.has-num .vbc-fresh__dot { background: #eafff3; }

/* =====================================================================
   Fase 92 — Galleria ad albero: griglia degli album
   ===================================================================== */
.galbums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.galbum { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.galbum:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.galbum__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f5; }
.galbum__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.galbum__media--empty { background: linear-gradient(135deg, #e6ebf2, #d7dee8); }
.galbum__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; background: rgba(20,26,35,.28); }
.galbum__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.galbum__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.2; }
.galbum__meta { font-size: 12.5px; color: var(--muted); }
.galbum__desc { font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.section-h { font-family: "Barlow Semi Condensed", sans-serif; font-size: 20px; margin: 26px 0 12px; }
html.dark .galbum__media, html.dark .galbum__media--empty { background: #1a2430; }

/* =====================================================================
   Fase 94 — Blocchi galleria (mosaico, album singolo, carosello)
   ===================================================================== */
/* Mosaico di miniature (Foto recenti / Album singolo mosaico) */
.gmosaic { columns: 96px; column-gap: 4px; }
.gmosaic__cell { position: relative; overflow: hidden; border-radius: 6px; background: #eef1f5; display: block; break-inside: avoid; margin: 0 0 4px; }
.gmosaic__cell img { width: 100%; height: auto; display: block; transition: transform .2s; }
.gmosaic__cell:hover img { transform: scale(1.06); }
.gmosaic__empty { display: block; width: 100%; aspect-ratio: 1 / 1; background: linear-gradient(135deg,#e6ebf2,#d7dee8); }
.gmosaic__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(20,26,35,.30); }
.gmosaic__cell .vbc-fresh--item { position: absolute; top: 4px; right: 4px; margin: 0; background: rgba(255,255,255,.92); border-radius: 20px; padding: 1px 4px; }

/* Album singolo, layout copertina */
.galbig { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.galbig:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.galbig__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #eef1f5; }
.galbig__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.galbig__media--empty { background: linear-gradient(135deg,#e6ebf2,#d7dee8); }
.galbig__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; background: rgba(20,26,35,.28); }
.galbig__count { position: absolute; right: 8px; bottom: 8px; background: rgba(20,26,35,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.galbig__title { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); padding: 10px 12px 2px; }
.galbig__desc { display: block; font-size: 13px; color: var(--muted); padding: 0 12px 12px; }

/* Carosello (scroll-snap, senza JS) */
.gcarousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.gcarousel__slide { position: relative; flex: 0 0 78%; scroll-snap-align: start; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #eef1f5; }
.gcarousel__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gcarousel__empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#e6ebf2,#d7dee8); }
.gcarousel__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(20,26,35,.30); }
.gcarousel::-webkit-scrollbar { height: 6px; }
.gcarousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

html.dark .gmosaic__cell, html.dark .galbig__media, html.dark .gcarousel__slide { background: #1a2430; }
html.dark .gmosaic__cell .vbc-fresh--item { background: rgba(26,36,48,.92); }

/* Fase 95 — link all'articolo dalla pagina galleria */
.gallery-fromart { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* =====================================================================
   Fase 97 — Scheda del contenuto (campi etichetta/valore, a lato del testo)
   ===================================================================== */
.spec-card { float: right; width: 300px; max-width: 42%; margin: 4px 0 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 18px; box-shadow: var(--shadow); }
.spec-card__title { font-family: "Barlow Semi Condensed", sans-serif; font-size: 17px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); color: var(--ink); }
.spec-card__list { margin: 0; }
.spec-card__row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.spec-card__row:last-child { border-bottom: 0; }
.spec-card__label { margin: 0; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); flex: 0 0 44%; }
.spec-card__value { margin: 0; font-size: 13.5px; color: var(--ink); flex: 1; }
@media (max-width: 640px) {
    .spec-card { float: none; width: auto; max-width: none; margin: 0 0 18px; }
}

/* Fase 100 — icona categoria nel menù pubblico */
.mainnav__caticon { display: inline-block; width: 18px; text-align: center; margin-right: 2px; }

/* =====================================================================
   Fase A1 — Modulo Giochi (pubblico)
   ===================================================================== */
.ggrid--games { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.gcard:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.gcard__thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg,#2a2350,#4a3f8a); overflow: hidden; }
.gcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.gcard__play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.gcard:hover .gcard__play { opacity: 1; }
.gcard__badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.gcard__body { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.gcard__title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.gcard__meta { font-size: 12px; color: var(--muted); }

.gcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.gcats__item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); font-size: 14px; background: var(--surface); }
.gcats__item.is-on, .gcats__item:hover { border-color: var(--accent); color: var(--accent); }
.gcats__n { font-size: 11px; color: var(--muted); }

.gsection { margin: 26px 0; }
.gsection__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gsection__title { font-size: 20px; margin: 0 0 12px; }
.gsection__head .gsection__title { margin: 0; }
.gsort { display: inline-flex; gap: 2px; }
.gsort__item { padding: 5px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.gsort__item.is-on { color: var(--accent); background: rgba(109,92,255,.10); }

.gpage__head { margin-bottom: 16px; }
.gpage__meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.gchip { text-decoration: none; color: var(--accent); }
.gstage { margin: 0 auto 20px; }
.gstage__frame { position: relative; width: 100%; background: #0b0b14; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gstage--responsive .gstage__frame { aspect-ratio: 16 / 9; }
.gstage__cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gstage__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.gstage__play { position: relative; z-index: 2; font-size: 18px; font-weight: 700; padding: 14px 28px; border: 0; border-radius: 40px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.gstage__play:hover { filter: brightness(1.08); }
.gstage__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.gstage__bar { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.gstage--locked .gstage__frame, .gstage--locked { min-height: 240px; }
.gstage--locked { border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.gstage__lockmsg p { margin: 0 0 12px; color: var(--muted); }

.ginfo { margin: 22px 0; }
.ginfo__title { font-size: 18px; margin: 0 0 8px; }
.ginfo__text { line-height: 1.7; }

/* Fase A2 — proposte utenti */
.ghead-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mygames { display: flex; flex-direction: column; gap: 10px; }
.mygames__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.mygames__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mygames__main .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.mygames__side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.form--public textarea, .form--public input[type="text"], .form--public input[type="url"] { width: 100%; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.status--draft { background: #e6e8ec; color: #555; }
.status--pending { background: #fde8c8; color: #8a5a10; }
.status--published { background: #d8f0dd; color: #1d6b34; }
.status--rejected { background: #f7d9d9; color: #9b2c2c; }
.status--archived { background: #e0e0e6; color: #666; }

/* Fase A2 — commenti giochi (rifiniture; riusa le classi .comments/.comment/.fform) */
.gcomments { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 760px; }
.gpage .gstage { max-width: 900px; }

/* Fase C — valutazioni a stelle + preferiti */
.gcard__stars { color: #e8a53d; font-weight: 700; }
.gblock__ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.grate { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 900px; margin: 0 auto 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.grate__box { display: flex; align-items: center; gap: 10px; }
.grate__label { font-weight: 600; color: var(--muted); font-size: 14px; }
.grate__stars { display: inline-flex; gap: 2px; }
.grate__star { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: #d3d7de; padding: 0 1px; transition: color .1s, transform .1s; }
.grate__star:hover { transform: scale(1.15); }
.grate__star.is-on { color: #e8a53d; }
.grate__avg { font-size: 14px; color: var(--muted); }
.grate__avg strong { color: var(--ink); font-size: 16px; }
.gfav { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 30px; padding: 7px 15px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); transition: all .12s; }
.gfav:hover { border-color: #e0507a; color: #e0507a; }
.gfav__heart { font-size: 17px; color: #c9ccd3; transition: color .12s; }
.gfav:hover .gfav__heart, .gfav.is-on .gfav__heart { color: #e0507a; }
.gfav.is-on { border-color: #e0507a; color: #e0507a; background: #fdeef2; }
.gfav__count { font-size: 13px; color: var(--muted); }
.gfav.is-on .gfav__count { color: #e0507a; }
@media (max-width: 560px) { .grate { flex-direction: column; align-items: stretch; } }

/* =====================================================================
   Fase P1 — Modulo Personas
   ===================================================================== */
.ggrid--personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.pcard__thumb { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(135deg,#2b2440,#4a3f6a); overflow: hidden; }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.pcard__mat { position: absolute; top: 7px; right: 7px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.pcard__mat--adult { background: #c0392b; }
.pcard__body { padding: 9px 11px; }
.pcard__name { font-weight: 700; font-size: 14px; line-height: 1.25; }

.pgate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pgate__txt { font-size: 14px; color: var(--muted); }

.pbadge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #e0e0e6; color: #555; }
.pbadge--adult { background: #c0392b; color: #fff; }

.ppage__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pcovers { margin: 0 0 22px; }
.pcovers__tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.pcovers__tab { padding: 6px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); }
.pcovers__tab.is-on { border-color: var(--accent); color: var(--accent); }
.pcovers__stage { position: relative; }
.pcovers__img { display: none; max-width: 100%; max-height: 70vh; border-radius: 12px; border: 1px solid var(--line); }
.pcovers__img.is-on { display: block; }

.pgated { position: relative; min-height: 320px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--line); background: #14141c; }
.pgated__blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.5); transform: scale(1.1); }
.pgated__panel { position: relative; z-index: 2; color: #fff; padding: 30px; }
.pgated__panel p { font-size: 18px; margin: 0 0 14px; }

.ptriggers { display: flex; flex-wrap: wrap; gap: 6px; }
.ptrigger { background: var(--code-bg, #f1f2f6); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 13px; }
.plinks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.plinks a { text-decoration: none; color: var(--accent); }

/* admin: griglia copertine */
.pcov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pcov { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface); }
.pcov__label { font-weight: 700; font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.pcov input[type="text"] { width: 100%; margin-top: 5px; font-size: 13px; }
.pcov .cover-preview img { max-width: 100%; border-radius: 6px; }

/* Fase P1b — gallerie media persona + lightbox */
.pmediasec { margin: 22px 0; }
.pgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pgal__item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #14141c; cursor: pointer; }
.pgal__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgal__vid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: linear-gradient(135deg,#2b2440,#4a3f6a); }
.pgal__mat { position: absolute; top: 5px; right: 5px; background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 12px; }

.plightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 24px; }
.plightbox[hidden] { display: none; }
.plightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.plightbox__inner { max-width: 1000px; max-height: 92vh; display: flex; flex-direction: column; gap: 12px; }
.plightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.plightbox__media { max-width: 100%; max-height: 74vh; border-radius: 8px; display: block; }
.plightbox__prompt { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 12px 14px; color: #eee; display: flex; gap: 12px; align-items: flex-start; }
.plightbox__ptext { flex: 1; font-size: 13px; line-height: 1.5; white-space: pre-wrap; max-height: 22vh; overflow: auto; font-family: ui-monospace, monospace; }

/* admin media */
.pmedia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pmedia { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.pmedia.is-dragging { opacity: .5; }
.pmedia__thumb { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #14141c; }
.pmedia__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pmedia__vid { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-weight: 700; }
.pmedia__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.pmedia__badges .badge { background: #e6e8ec; color: #555; font-size: 11px; padding: 1px 7px; border-radius: 12px; }
.pmedia__prompt { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* Fase P2 — tag & ricerca personas */
.psearch { display: flex; gap: 8px; margin: 0 0 16px; max-width: 520px; }
.psearch input[type="search"] { flex: 1; padding: 9px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); font: inherit; }
.ptag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag-list--pub { margin: 0 0 18px; }
.ptag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); font-size: 13px; text-decoration: none; color: var(--ink); }
.ptag-chip:hover { border-color: var(--accent); color: var(--accent); }
.ptag-chip__n { font-size: 11px; color: var(--muted); }

/* Fase P3 — dati tecnici nel lightbox */
.plightbox__tech { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px 13px; color: #ddd; font-size: 12.5px; line-height: 1.6; }
.plightbox__tech[hidden] { display: none; }

/* =====================================================================
   Fase P4 — confronto Reale/AI, compare, calendario, training file
   ===================================================================== */
.pnav { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.pnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.pnav a:hover { color: var(--accent); }

/* slide Reale <-> AI sulla copertina */
.pslide { margin: 0 0 22px; max-width: 640px; }
.pslide__wrap { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #14141c; cursor: ew-resize; user-select: none; aspect-ratio: 3 / 4; }
.pslide__img { display: block; width: 100%; height: auto; }
.pslide__clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.pslide__clip .pslide__img { position: absolute; top: 0; left: 0; width: auto; height: 100%; max-width: none; }
.pslide__img--ai, .pslide__clip .pslide__img--real { width: 100%; height: 100%; object-fit: cover; }
.pslide__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: rgba(255,255,255,.9); transform: translateX(-50%); box-shadow: 0 0 8px rgba(0,0,0,.5); }
.pslide__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pslide__handle span::before { content: '⇄'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #333; }
.pslide__lbl { position: absolute; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; }
.pslide__lbl--l { left: 10px; }
.pslide__lbl--r { right: 10px; }
.pslide__hint { margin-top: 8px; }
.pcover-single img { max-width: 100%; max-height: 70vh; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 20px; }

/* confronto */
.pcmp__pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pcmp__pick select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; }
.pcmp__vs { font-weight: 700; color: var(--muted); }
.pcmp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcmp__card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); }
.pcmp__cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.pcmp__name { font-size: 19px; margin: 10px 0 4px; }
.pcmp__name a { text-decoration: none; color: inherit; }
.pcmp__note { font-size: 14px; color: var(--muted); line-height: 1.55; }
.pcmp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.pcmp__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pcmp__empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--muted); }
@media (max-width: 700px) { .pcmp { grid-template-columns: 1fr; } }

/* calendario */
.pcal__months { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pcal__month { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); font-size: 14px; background: var(--surface); }
.pcal__month.is-on, .pcal__month:hover { border-color: var(--accent); color: var(--accent); }

/* training file */
.ptrain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ptrain__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--surface); }
.ptrain__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ptrain__name { font-weight: 700; text-decoration: none; color: var(--ink); }
.ptrain__meta { font-size: 12.5px; color: var(--muted); }

/* Fase P4b — pannello dati ordinato nel visualizzatore */
.pinfo { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; }
.pinfo[hidden] { display: none; }
.pinfo__tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: rgba(0,0,0,.2); }
.pinfo__tab { background: none; border: 0; color: #bbb; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px 8px 0 0; cursor: pointer; }
.pinfo__tab.is-on { background: rgba(255,255,255,.10); color: #fff; }
.pinfo__tab[hidden] { display: none; }
.pinfo__panel { display: none; padding: 12px 14px; }
.pinfo__panel.is-on { display: block; }
.pinfo__text { margin: 0 0 10px; color: #eee; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 22vh; overflow: auto; font-family: ui-monospace, monospace; }
.pinfo__grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; color: #eee; font-size: 13px; }
.pinfo__grid dt { color: #9fa6b2; font-weight: 700; }
.pinfo__grid dd { margin: 0; word-break: break-word; }

/* confronto reale vs AI */
.pcmp2__modes { display: flex; gap: 6px; margin-bottom: 14px; }
.pcmp2__mode { padding: 6px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); }
.pcmp2__mode.is-on { border-color: var(--accent); color: var(--accent); }
.pcmp2__view[hidden] { display: none; }
#pcmp2-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcmp2__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-bottom: 6px; }
.pcmp2__count { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.pcmp2__stage { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #14141c; aspect-ratio: 3/4; }
.pcmp2__stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcmp2__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.pcmp2__nav:hover { background: rgba(0,0,0,.75); }
.pcmp2__nav--prev { left: 8px; }
.pcmp2__nav--next { right: 8px; }
@media (max-width: 700px) { #pcmp2-side { grid-template-columns: 1fr; } }

/* Fase P4c — card con interruttore Reale/AI al passaggio del mouse */
.pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard--flip .pcard__thumb { position: relative; }
.pcard--flip .pcard__img { position: absolute; inset: 0; transition: opacity .28s ease; }
.pcard--flip .pcard__img--real { opacity: 1; }
.pcard--flip .pcard__img--ai { opacity: 0; }
.pcard--flip:hover .pcard__img--real { opacity: 0; }
.pcard--flip:hover .pcard__img--ai { opacity: 1; }
.pcard__which { position: absolute; left: 7px; bottom: 7px; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 20px; background: rgba(0,0,0,.62); color: #fff; }
.pcard__which-ai { display: none; }
.pcard--flip:hover .pcard__which-real { display: none; }
.pcard--flip:hover .pcard__which-ai { display: inline; }
@media (hover: none) {
  /* Su touch alterno con un tocco prolungato: mostro comunque l'etichetta. */
  .pcard--flip:active .pcard__img--real { opacity: 0; }
  .pcard--flip:active .pcard__img--ai { opacity: 1; }
}

/* Fase P5 — voti, preferiti e commenti personas */
.pcard__stars { display: block; font-size: 12px; color: #e8a53d; font-weight: 700; margin-top: 2px; }
#prate { max-width: 640px; }

/* =====================================================================
   Fase P6 — personas dentro i contenuti + primo piano misto
   ===================================================================== */
.pembed { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); margin: 22px 0; }
.pembed__media { flex: 0 0 140px; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: linear-gradient(135deg,#2b2440,#4a3f6a); position: relative; }
.pembed__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pembed__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.pembed__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pembed__kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pembed__name { font-size: 20px; margin: 0; line-height: 1.2; }
.pembed__name a { text-decoration: none; color: inherit; }
.pembed__cats { font-size: 12.5px; color: var(--muted); margin: 0; }
.pembed__note { font-size: 14px; line-height: 1.55; margin: 0; }
.pembed__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.pembed__body .btn { align-self: flex-start; margin-top: 4px; }
.pembed-grid { margin: 22px 0; }
@media (max-width: 560px) { .pembed { flex-direction: column; } .pembed__media { flex: none; width: 100%; max-width: 220px; } }

/* scheda coperta (gate) */
.pembed--locked { padding: 0; overflow: hidden; }
.pembed__blurwrap { position: relative; width: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; background: #14141c; }
.pembed__blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.5); transform: scale(1.1); }
.pembed__lock { position: relative; z-index: 2; text-align: center; color: #fff; padding: 26px 20px; }
.pembed__lock p { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.pembed__locknote { font-size: 13px !important; font-weight: 400 !important; opacity: .85; margin-bottom: 12px !important; }

/* slide incorporato nell'articolo */
.pslide--embed { margin: 22px 0; max-width: 520px; }
.pslide__cap { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pslide__cap a { color: var(--accent); text-decoration: none; }

/* distintivi nel primo piano misto */
.feat-multi__kind { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--accent); color: #fff; margin-bottom: 6px; }
.feat-multi__kind--gioco { background: #2e9e57; }
.feat-multi__chip { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: #eef0f4; color: #667; margin-right: 6px; }

/* Fase P7 — collegamento personas <-> contenuti */
.clinked { margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.clinked__title { font-size: 17px; margin: 0 0 12px; }
.clinked__list { display: flex; flex-wrap: wrap; gap: 10px; }
.clinked__item { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); text-decoration: none; color: inherit; font-weight: 600; font-size: 14px; transition: border-color .15s; }
.clinked__item:hover { border-color: var(--accent); color: var(--accent); }
.clinked__item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.clinked__ph { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef0f4; }

/* articoli collegati nella scheda persona */
.parts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.parts__item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); }
.parts__thumb { flex: 0 0 74px; }
.parts__thumb img { width: 74px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.parts__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.parts__title { font-weight: 700; text-decoration: none; color: var(--ink); }
.parts__title:hover { color: var(--accent); }
.parts__excerpt { font-size: 12.5px; color: var(--muted); }

/* Fase P8 — tag manuali vs automatici + personas in alto nell'articolo */
.clinked--top { margin: 0 0 22px; padding-top: 0; border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.clinked--top .clinked__title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ptag-chip--auto { background: #f4f4f7; color: #667; cursor: default; }
.ptag-auto { margin: 16px 0; }
.ptag-auto summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* =====================================================================
   Fase P9 — data della persona e calendario a griglia
   ===================================================================== */
.pcard__date { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.pcal { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px; margin-bottom: 24px; }
.pcal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pcal__month-title { font-size: 19px; margin: 0; text-transform: capitalize; }
.pcal__total { font-size: 12.5px; color: var(--muted); font-weight: 400; text-transform: none; margin-left: 8px; }
.pcal__nav { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 20px; line-height: 1; }
.pcal__nav:hover { border-color: var(--accent); color: var(--accent); }
.pcal__nav.is-off { opacity: .3; }

.pcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pcal__dow { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-bottom: 4px; }
.pcal__cell { position: relative; min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--bg, #fbfbfd); display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: inherit; }
.pcal__cell--empty { border: 0; background: none; min-height: 0; }
.pcal__cell--has { background: var(--surface); transition: border-color .15s, transform .12s; }
.pcal__cell--has:hover { border-color: var(--accent); transform: translateY(-2px); }
.pcal__cell.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(109,92,255,.18); }
.pcal__cell.is-today .pcal__day { color: var(--accent); font-weight: 800; }
.pcal__day { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); }
.pcal__n { background: var(--accent); color: #fff; border-radius: 12px; font-size: 10px; padding: 0 6px; }
.pcal__thumbs { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.pcal__thumb { position: relative; width: 28px; height: 34px; border-radius: 5px; overflow: hidden; background: linear-gradient(135deg,#2b2440,#4a3f6a); display: block; }
.pcal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcal__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pcal__mat { position: absolute; bottom: 0; left: 0; right: 0; background: #c0392b; color: #fff; font-size: 7px; font-weight: 700; text-align: center; }
.pcal__more { font-size: 10px; color: var(--muted); font-weight: 700; }

.pcal__years { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pcal__year { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; background: var(--surface); }
.pcal__year.is-on, .pcal__year:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 700px) {
  .pcal__cell { min-height: 66px; }
  .pcal__thumb { width: 20px; height: 24px; }
}

/* Fase P10 — blocco ultimi commenti + slide centrato */
.cblock { display: flex; flex-direction: column; gap: 2px; }
.cblock__item { display: flex; flex-direction: column; gap: 2px; padding: 9px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.cblock__item:last-child { border-bottom: 0; }
.cblock__item:hover .cblock__text { color: var(--accent); }
.cblock__who { font-size: 12px; font-weight: 700; color: var(--muted); }
.cblock__text { font-size: 13.5px; line-height: 1.45; }
.cblock__where { font-size: 11.5px; color: var(--muted); }

/* il confronto Reale/AI sulla scheda persona sta al centro */
.pslide { margin-left: auto; margin-right: auto; }
.pslide__hint { text-align: center; }
.pcover-single { text-align: center; }

/* Fase P12 — immagini a caso, preferiti nel profilo */
.rimg__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rimg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rimg__item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: #14141c; cursor: zoom-in; }
.rimg__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.rimg__item:hover img { transform: scale(1.04); }
.rimg__who { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11px; font-weight: 700; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
#plb-persona { margin-left: 8px; }
.acc-section { margin: 28px 0; }
.acc-sub { font-size: 14px; margin: 14px 0 8px; color: var(--muted); }

/* Fase P13 — scorrimento infinito nella griglia immagini */
.rimg__tools { display: flex; align-items: center; gap: 10px; }
.rimg__more { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 0; }
.rimg__spinner { font-size: 13px; color: var(--muted); }
.rimg__spinner[hidden], #rimg-end[hidden] { display: none; }
.rimg__item.is-new { animation: rimgIn .35s ease both; }
@keyframes rimgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fase P14 — schede "ultimi commenti" con collegamenti distinti */
.ccards { display: flex; flex-direction: column; gap: 10px; }
.ccard { display: flex; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.ccard:hover { border-color: rgba(109,92,255,.35); box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.ccard__avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ccard__body { min-width: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ccard__head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ccard__author { font-size: 13px; font-weight: 700; }
.ccard__date { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.ccard__text { font-size: 13.5px; line-height: 1.5; color: var(--ink); text-decoration: none; }
.ccard__text:hover { color: var(--accent); }
.ccard__where { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg, #fbfbfd); }
.ccard__where:hover { border-color: var(--accent); color: var(--accent); }
.ccard__thumb { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* il commento raggiunto dal collegamento viene evidenziato per un momento */
.comment:target { animation: commentHi 2.4s ease; border-radius: 10px; }
@keyframes commentHi {
  0%, 55% { background: rgba(109,92,255,.12); box-shadow: 0 0 0 6px rgba(109,92,255,.12); }
  100% { background: transparent; box-shadow: none; }
}

/* Fase P15 — nuvola di tag, azioni scheda persona, newsletter */
.ppage__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pnews { margin: 26px 0; }

.ptagcloud { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.ptagcloud__item { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-decoration: none; color: var(--ink); line-height: 1.5; transition: border-color .15s, color .15s, transform .12s; }
.ptagcloud__item:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.ptagcloud__item--1 { font-size: 12px; }
.ptagcloud__item--2 { font-size: 13.5px; }
.ptagcloud__item--3 { font-size: 15px; font-weight: 600; }
.ptagcloud__item--4 { font-size: 17px; font-weight: 700; }
.ptagcloud__item--5 { font-size: 19px; font-weight: 800; }
.ptagcloud__n { font-size: 10.5px; color: var(--muted); font-weight: 400; }

/* Fase P16 — blocchi per il sito Personas */
.pminis { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 5px; }
.pminis__item { position: relative; display: block; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: #14141c; padding: 0; border: 0; width: 100%; cursor: pointer; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
.pminis__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.pminis__item:hover img { transform: scale(1.06); }
.pminis__who { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 5px 3px; font-size: 9.5px; font-weight: 700; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pcatlist { list-style: none; margin: 0; padding: 0; }
.pcatlist__item a { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.pcatlist__item:last-child a { border-bottom: 0; }
.pcatlist__item a:hover { color: var(--accent); }
.pcatlist__n { margin-left: auto; font-size: 11px; color: var(--muted); background: #eef0f4; border-radius: 12px; padding: 1px 8px; }

/* Fase P17 — estratto di modulo in home */
.showcase { margin: 0 0 8px; }
.showcase__more { display: flex; justify-content: center; align-items: center; padding: 16px 0 4px; }
.showcase__btn { min-width: 190px; }
.showcase__wait { font-size: 13px; color: var(--muted); }
.showcase__wait[hidden], .showcase__btn[hidden] { display: none; }

/* Sintesi del contenuto — riquadro «In sintesi» in cima all'articolo */
.csum {
    position: relative;
    margin: 22px 0 26px;
    padding: 18px 20px 18px 22px;
    background: var(--surface);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent) 8%, var(--surface)),
        var(--surface) 60%);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow, 0 1px 3px rgba(20,32,46,.06));
}
.csum__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--accent-ink);
}
.csum__icon { display: inline-flex; color: var(--accent); }
.csum__label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.csum__text {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.6;
    color: var(--ink-soft);
}
.csum__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}
.csum__list li {
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
    color: var(--ink-soft);
}
.csum__list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (max-width: 560px) {
    .csum { padding: 15px 16px 15px 18px; margin: 18px 0 22px; }
    .csum__text { font-size: 1rem; }
}

/* Confronto reale ↔ AI — versione immersiva con miniature (partial persona-compare) */
.pcmpsec { margin: 30px 0; }
.pcmp2 { max-width: calc(852px * var(--pcmp-scale, 100) / 100); margin-left: auto; margin-right: auto; }
.pcmp2__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pcmp2__col { min-width: 0; }
/* Dimensioni: stage ad altezza limitata (+15%), immagine sempre contenuta. */
.pcmp2__stage { aspect-ratio: auto; height: calc(clamp(331px, 53vh, 497px) * var(--pcmp-scale, 100) / 100); }
.pcmp2 .pslide { max-width: calc(414px * var(--pcmp-scale, 100) / 100); margin: 0 auto; }
.pcmp2__badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.pcmp2__badge--real { background: color-mix(in srgb, #3a6ea5 15%, var(--surface)); color: #2c5580; }
.pcmp2__badge--ai { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent-ink); }
.pcmp2__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 188px; overflow-y: auto; overflow-x: hidden; padding: 9px 2px 2px; scrollbar-width: thin; }
.pcmp2__thumb { width: auto; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #14141c; transition: border-color .15s ease; }
.pcmp2__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcmp2__thumb:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pcmp2__thumb.is-on { border-color: var(--accent); }
@media (max-width: 700px) { .pcmp2__cols { grid-template-columns: 1fr; } }
.pcmp__intro { color: var(--muted); margin: 0 0 16px; }
.pcmp__back { margin: 0 0 10px; }
.pcmp__back a { color: var(--accent); font-weight: 600; }

/* Numero totale schede accanto al titolo */
.gsection__count { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-radius: 20px; padding: 1px 10px; vertical-align: middle; margin-left: 6px; }

/* Tag: editor admin da frontend (chip rimovibili + aggiungi) */
.ptag-chip--edit { padding-right: 5px; }
.ptag-chip--edit a { text-decoration: none; color: inherit; }
.ptag-chip__del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; border-radius: 50%; }
.ptag-chip__del:hover { color: #c0392b; }
.ptag-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 18px; }
.ptag-add input { flex: 1 1 220px; min-width: 0; max-width: 320px; }
.ptag-add__hint { flex: 0 0 auto; }

/* Promuovi auto-tag a tag manuale (admin) */
.ptag-chip__promote { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 15px; line-height: 1; font-weight: 700; padding: 0 2px; margin-left: 2px; border-radius: 50%; }
.ptag-chip__promote:hover { color: var(--accent-ink); }
.ptag-chip__promote:disabled { color: #9aa; cursor: default; }
.ptag-chip.is-promoted { opacity: .55; }

/* Pulsante «Confronta tutte le foto» sotto la copertina */
.pcover-actions { margin: 10px 0 18px; text-align: center; }
.pcover-cmpbtn { text-decoration: none; }
#confronta { scroll-margin-top: 72px; }
html { scroll-behavior: smooth; }

/* Nuvola di argomenti compatta con «mostra tutti» */
.tag-cloud__item--extra { display: none; }
.tag-cloud.is-expanded .tag-cloud__item--extra { display: inline-block; }
.tag-cloud__more { cursor: pointer; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 20px; }
.tag-cloud__more:hover { border-color: var(--accent); color: var(--accent); }

/* Categoria sulle card personas (griglia) e nel blocco home */
.pcard__cat { position: absolute; top: 7px; left: 7px; max-width: calc(100% - 14px); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; padding: 2px 8px; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gblock__cat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.gblock__cat-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

/* Fix visibilità badge sulle card personas (sopra le immagini flip) */
.pcard__cat, .pcard__mat, .pcard__which { z-index: 3; }
.pcard__fresh { position: absolute; bottom: 7px; right: 7px; z-index: 3; background: rgba(0,0,0,.62); border-radius: 20px; padding: 2px 8px; }
.pcard__fresh .vbc-fresh--item { margin: 0; }
.pcard__fresh .vbc-fresh__txt { color: #7ee2a6; }

/* Barra anteprima admin (contenuti non pubblicati) */
.preview-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 10px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); border: 1px solid var(--accent); border-radius: var(--radius); color: var(--ink); font-size: 14px; }
.preview-bar__tag { background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; }
.preview-bar__edit { margin-left: auto; color: var(--accent-ink); font-weight: 700; white-space: nowrap; }

/* Blocchi di codice nei contenuti, con barra e pulsante «Copia» */
.codeblock { position: relative; margin: 20px 0; border: 1px solid #2b313d; border-radius: var(--radius); overflow: hidden; background: #1e222b; }
.codeblock__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px 7px 14px; background: #171b23; border-bottom: 1px solid #2b313d; }
.codeblock__lang { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93a1b5; }
.codeblock__copy { cursor: pointer; border: 1px solid #3a4152; background: #232936; color: #cdd6e4; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; line-height: 1.4; }
.codeblock__copy:hover { border-color: var(--accent); color: #fff; }
.codeblock__copy.is-done { border-color: #3fa96a; color: #7ee2a6; }
.codeblock pre { margin: 0; padding: 14px 16px; background: none; color: #e6e6e6; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; }
.codeblock pre code { background: none; color: inherit; font-family: inherit; font-size: inherit; padding: 0; white-space: pre; }
@media (max-width: 560px) { .codeblock pre { font-size: 12.5px; } }

/* Immagini a caso: dimensione regolabile in percentuale dal pannello blocchi */
.pminis { grid-template-columns: repeat(auto-fill, minmax(calc(74px * var(--pminis-scale, 100) / 100), 1fr)); }
.pminis__who { font-size: max(9.5px, calc(9.5px * var(--pminis-scale, 100) / 100)); }


/* Confronto reale ↔ AI: composizione centrata in pagina */
.pcmpsec > .ginfo__title { text-align: center; }
.pcmp2__modes { justify-content: center; }
.pcmp2__head { justify-content: center; gap: 8px; }
.pcmp2__thumbs { justify-content: center; }
.pcmp2 .pslide__hint { text-align: center; }

/* Etichetta tipo contenuto: Notizia / Articolo */
.tbadge { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 9px 2px 7px; border-radius: 20px; border: 1px solid currentColor; background: var(--surface); white-space: nowrap; vertical-align: middle; }
.tbadge svg { flex: 0 0 auto; }
.tbadge--news { color: #b03a2e; }
.tbadge--article { color: #7d3c98; }
.badge-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.block-feed__cat { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.fcard__body .badge-row, .lead-card__body .badge-row { margin-bottom: 8px; }

/* Indice alfabetico personas */
.alpha { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 0 16px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.alpha__item { min-width: 30px; padding: 4px 8px; border-radius: 7px; text-align: center; font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--ink); }
a.alpha__item:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-ink); }
.alpha__item.is-on { background: var(--accent); color: #fff; }
.alpha__item--off { color: var(--line); cursor: default; }
@media (max-width: 560px) { .alpha { gap: 2px; padding: 8px; } .alpha__item { min-width: 26px; padding: 3px 5px; font-size: 12.5px; } }

/* Form registrazione: più ampio e checkbox privacy allineata */
.auth-wrap { max-width: 520px; }
.stack-form input[type="checkbox"] { width: auto; padding: 0; }
.privacy-consent { font-weight: 400; }
.privacy-consent input { width: 16px; height: 16px; margin-top: 2px; padding: 0; accent-color: var(--accent); }

/* Immagini col lucchetto: sfocate con overlay (teaser per non registrati) */
.pgal__item--locked { position: relative; display: block; overflow: hidden; border-radius: 10px; text-decoration: none; }
.pgal__blurimg { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(16px) brightness(.82); transform: scale(1.08); }
.pgal__lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); font-size: 26px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.pgal__lockmsg { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 6px 6px; text-align: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.pgal__item--locked:hover .pgal__blurimg { filter: blur(14px) brightness(.9); }

/* Pulsante/etichetta bloccati (training riservato) */
.btn.is-disabled { opacity: .6; cursor: default; pointer-events: none; }
.ptrain__name--locked { color: var(--muted); }

/* Voto a stelle sui contenuti (scheda) */
.crate-sec { margin: 28px 0; }
.crate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.crate__label { font-weight: 700; }
.crate__stars { display: inline-flex; gap: 2px; }
.crate__star { background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; color: #d6d9e0; padding: 0 1px; transition: color .12s ease, transform .12s ease; }
.crate__star:hover { transform: scale(1.12); }
.crate__star.is-on { color: #f5a623; }
.crate__score { margin-left: auto; color: var(--muted); }
.crate__score strong { color: var(--ink); font-size: 18px; }
html.dark .crate__star { color: #3a4152; }

/* Blocco "I più votati" */
.topvoted { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.topvoted__item { display: flex; gap: 10px; align-items: flex-start; }
.topvoted__rank { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.topvoted__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.topvoted__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.25; text-decoration: none; }
.topvoted__title:hover { color: var(--accent-ink); }
.topvoted__score { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.topvoted__stars { font-size: 13px; letter-spacing: 1px; background: linear-gradient(90deg, #f5a623 calc(var(--v) / 5 * 100%), #d3d3d3 calc(var(--v) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topvoted__avg { font-weight: 700; color: var(--ink); }

/* Badge media a stelle (card, intestazione articolo, blocco) */
.rbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.rbadge__stars { font-size: 12.5px; letter-spacing: .5px; background: linear-gradient(90deg, #f5a623 calc(var(--v) / 5 * 100%), #cfd3db calc(var(--v) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rbadge__avg { font-weight: 700; color: var(--ink); }
.rbadge__count { color: var(--muted); }
html.dark .rbadge__stars { background: linear-gradient(90deg, #f5a623 calc(var(--v) / 5 * 100%), #444b59 calc(var(--v) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; }
.article__stats--rating .rbadge { font-size: 13px; }
.content-sort { margin-top: 12px; }

/* Selettore ordine foto (scheda persona) */
.pgal-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; }
.pgal-sort label { color: var(--muted); font-weight: 600; }
.pgal-sort select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); cursor: pointer; }

/* Frecce di navigazione nel visore foto (lightbox) */
.plightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.plightbox__nav:hover { background: rgba(0,0,0,.82); }
.plightbox__nav--prev { left: 16px; }
.plightbox__nav--next { right: 16px; }
.plightbox__nav[hidden] { display: none; }
@media (max-width: 600px) { .plightbox__nav { width: 42px; height: 42px; font-size: 26px; } .plightbox__nav--prev { left: 6px; } .plightbox__nav--next { right: 6px; } }

/* Galleria a blocchi: pulsante «Carica altro» */
.pgal__item[hidden] { display: none !important; }
.pgal-more { display: block; margin: 16px auto 0; padding: 9px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-weight: 600; color: var(--accent-ink); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.pgal-more:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pgal-more[hidden] { display: none; }

/* =====================================================================
   Personaverse — restyle grafico (coerente col sito: ambra + Barlow)
   ===================================================================== */

/* Titoli di sezione con barra-accento: danno ritmo visivo alle sezioni */
.ppage .ginfo__title,
.pmediasec .ginfo__title {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: .01em;
    line-height: 1.2;
    position: relative;
    padding-left: 14px;
    margin-bottom: 14px;
}
.ppage .ginfo__title::before,
.pmediasec .ginfo__title::before {
    content: "";
    position: absolute; left: 0; top: .16em; bottom: .16em;
    width: 4px; border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-ink));
}
.pmediasec .ginfo__title .hint { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Card persona: zoom morbido dell'immagine e sollevamento più deciso */
.pcard { border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(22,32,46,.15); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pcard__thumb img { transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.pcard:hover .pcard__thumb img { transform: scale(1.05); }
.pcard__body { padding: 11px 13px 13px; }
.pcard__name { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 16.5px; letter-spacing: .005em; }
.pcard__cat { backdrop-filter: saturate(1.2); box-shadow: 0 2px 8px rgba(0,0,0,.22); letter-spacing: .02em; }
.pcard__stars { color: var(--accent-ink); font-weight: 700; }

/* Griglia foto: zoom e ombra al passaggio, angoli più morbidi */
.pgal__item { border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.pgal__item img { transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.pgal__item:not(.pgal__item--locked):hover { box-shadow: 0 10px 24px rgba(22,32,46,.18); }
.pgal__item:not(.pgal__item--locked):hover img { transform: scale(1.07); }

/* Chip categoria nell'intestazione: pillole morbide invece di link nudi */
.ppage__meta .gchip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 11%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
    color: var(--accent-ink); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.ppage__meta .gchip:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); transform: translateY(-1px); }

/* Cover: cornice con ombra morbida */
.pcover-single img { box-shadow: 0 10px 30px rgba(22,32,46,.14); }
.pslide__wrap { box-shadow: 0 10px 30px rgba(22,32,46,.14); border-radius: 14px; overflow: hidden; }

/* Barra valutazione/preferiti: superficie più morbida */
.grate { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.grate__star { transition: transform .12s ease; }
.grate__star:hover { transform: scale(1.15); }
.gfav.is-on { background: color-mix(in srgb, #e0245e 12%, var(--surface)); border-color: color-mix(in srgb, #e0245e 40%, var(--line)); color: #c81e50; }

/* File di addestramento: icona-documento e micro-interazione */
.ptrain__item { justify-content: flex-start; transition: border-color .15s ease, box-shadow .15s ease; }
.ptrain__item .ptrain__main { flex: 1 1 auto; min-width: 0; }
.ptrain__item:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 6px 18px rgba(22,32,46,.08); }
.ptrain__item::before {
    content: ""; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a10' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 20px no-repeat,
      color-mix(in srgb, var(--accent) 13%, var(--surface));
    align-self: center;
}
.ptrain__name { font-weight: 700; }

/* Collegamenti: micro-pillole invece di lista di link */
.plinks { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.plinks a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 13px; font-weight: 600; transition: border-color .15s ease, transform .15s ease;
}
.plinks a:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Trigger: pillole codice più definite */
.ptrigger { border-radius: 999px; padding: 3px 11px; }

/* =====================================================================
   Ludoteca — catalogo videogiochi
   ===================================================================== */

/* Griglia card (copertine tipo boxart, verticali) */
.ggrid--ludo { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.lcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lcard:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(22,32,46,.15); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lcard__thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(135deg, #263148, #3c2f57); }
.lcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.lcard:hover .lcard__img { transform: scale(1.05); }
.lcard__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; opacity: .6; }
.lcard__score { position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(20,26,38,.82); color: #ffd479; font-weight: 800; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.3); backdrop-filter: saturate(1.2); }
.lcard__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.lcard__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 16px; line-height: 1.2; }
.lcard__year { font-size: 12.5px; color: var(--muted); }

/* Scheda gioco */
.lgame { max-width: var(--wrap); }
.lgame__hero { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; margin: 6px 0 26px; }
.lgame__covers { position: sticky; top: 20px; }
.lgame__cover { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(22,32,46,.16); display: block; }
.lgame__cover--ph { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; font-size: 64px; background: linear-gradient(135deg, #263148, #3c2f57); color: #fff; }
.lgame__title { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 40px; line-height: 1.05; margin: 0 0 4px; }
.lgame__orig { color: var(--muted); font-style: italic; margin: 0 0 16px; }
.lgame__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.lfact { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; background: var(--surface); min-width: 90px; }
.lfact__k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lfact__v { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 20px; }

.lgame__verdict { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); }
.lscore { flex: 0 0 auto; display: flex; align-items: baseline; gap: 2px; }
.lscore__num { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 800; font-size: 48px; line-height: 1; color: var(--accent-ink); }
.lscore__max { font-weight: 700; color: var(--muted); font-size: 18px; }
.lscore__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); font-weight: 700; }
.lscore__verdict { margin: 4px 0 0; font-size: 16px; font-style: italic; }

.lgame__section { margin: 24px 0; }
.lgame__h2 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 22px; position: relative; padding-left: 14px; margin: 0 0 12px; }
.lgame__h2::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-ink)); }
.lgame__desc { line-height: 1.7; max-width: 760px; }

@media (max-width: 680px) {
    .lgame__hero { grid-template-columns: 1fr; }
    .lgame__covers { position: static; max-width: 260px; margin: 0 auto; }
    .lgame__title { font-size: 32px; }
}

/* Ludoteca Fase 2 — tassonomie */
.lcard__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.lcard__plats { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.lcard__plat { font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }

.lfilter { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lfilter__row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.lfilter__label { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 92px; }
.lchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.lchip:hover { border-color: var(--accent); transform: translateY(-1px); }
.lchip__n { font-size: 11px; color: var(--muted); font-weight: 700; }
.lchip--sm { padding: 3px 10px; font-size: 12.5px; }

.lgame__tax { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
.ltax { display: flex; gap: 10px; align-items: baseline; }
.ltax__k { flex: 0 0 108px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.ltax__v { display: flex; flex-wrap: wrap; gap: 6px; }

.lcompany-meta { display: flex; gap: 12px; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.lcompany-meta span::after { content: "·"; margin-left: 12px; color: var(--line); }
.lcompany-meta span:last-child::after { content: ""; }
.lcompany-desc { max-width: 720px; line-height: 1.6; margin: 10px 0 0; }

/* Ludoteca Fase 3 — collegamenti news/articoli */
.lgame__links { display: flex; flex-direction: column; gap: 10px; }
.lgame__link { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.lgame__link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,32,46,.10); }
.lgame__linkimg { flex: 0 0 auto; width: 68px; height: 48px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.lgame__linkimg img { width: 100%; height: 100%; object-fit: cover; }
.lgame__linktext { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lgame__linkkind { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); font-weight: 700; }
.lgame__linktitle { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; }
.lgame__linkgo { flex: 0 0 auto; color: var(--muted); font-size: 18px; }

/* Box "Dal catalogo" nella scheda articolo (riusa .edlink) */
.lgamebox__item { align-items: center; }
.lgamebox__cover { flex: 0 0 auto; width: 44px; height: 58px; border-radius: 6px; overflow: hidden; margin-right: 4px; }
.lgamebox__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lgamebox__score { flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent-ink); font-weight: 800; font-size: 14px; }

/* Ludoteca Fase 4 — PEGI, trailer, screenshot */
.lpegi { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; padding: 0 9px; border-radius: 8px; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 800; font-size: 18px; color: #fff; background: #4b9b3f; }
.lpegi--12 { background: #e0952b; }
.lpegi--16 { background: #e07b2b; }
.lpegi--18 { background: #c0392b; }

.lgame__video { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 32px rgba(22,32,46,.16); background: #000; }
.lgame__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.lshot { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #0c0f16; aspect-ratio: 16 / 9; transition: box-shadow .18s ease; }
.lshot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.lshot:hover { box-shadow: 0 10px 24px rgba(22,32,46,.18); }
.lshot:hover img { transform: scale(1.06); }

.lshot-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,12,18,.93); display: flex; align-items: center; justify-content: center; }
.lshot-lb[hidden] { display: none; }
.lshot-lb__img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lshot-lb__close { position: absolute; top: 14px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lshot-lb__close:hover { background: rgba(255,255,255,.22); }
.lshot-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lshot-lb__nav:hover { background: rgba(255,255,255,.22); }
.lshot-lb__prev { left: 16px; }
.lshot-lb__next { right: 16px; }
@media (max-width: 600px) { .lshot-lb__nav { width: 42px; height: 42px; font-size: 24px; } }

/* Ludoteca Fase 6 — link RSS */
.lrss { margin: 24px 0 8px; font-size: 13px; }
.lrss a { color: var(--muted); text-decoration: none; }
.lrss a:hover { color: var(--accent-ink); }

/* Ludoteca — copertine per piattaforma (scheda) */
.lpcovers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.lpcover { margin: 0; }
.lpcover__imgs { display: flex; gap: 8px; }
.lpcover__imgs a { flex: 1 1 0; min-width: 0; }
.lpcover__imgs img { width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(22,32,46,.10); transition: transform .2s ease; display: block; }
.lpcover__imgs img:hover { transform: translateY(-3px); }
.lpcover__cap { margin-top: 8px; font-weight: 600; font-size: 14px; text-align: center; color: var(--ink); }

/* Ludoteca — intestazione: fronte + retro come coppia (aprono il visore) */
.lgame__coverbtn { display: block; padding: 0; border: 0; background: none; cursor: pointer; width: 100%; }
.lgame__coverbtn .lgame__cover { transition: transform .2s ease, box-shadow .2s ease; }
.lgame__coverbtn:hover .lgame__cover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22,32,46,.22); }
.lgame__coverbtn--back { width: 62%; margin-top: 12px; position: relative; }
.lgame__cover--back { border-radius: 12px; box-shadow: 0 8px 20px rgba(22,32,46,.12); }
.lgame__coverlabel { position: absolute; left: 8px; bottom: 8px; background: rgba(10,12,18,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 6px; letter-spacing: .03em; }

/* Copertine per piattaforma: aprono il visore come gli screenshot */
.lpcover__btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; flex: 1 1 0; min-width: 0; }
.lpcover__btn img { transition: transform .2s ease; }
.lpcover__btn:hover img { transform: translateY(-3px); }

/* Ludoteca — copertine mostrate INTERE nel visore-trigger (niente ritaglio 16:9) */
.lshot--cover { aspect-ratio: auto; background: none; border: 0; border-radius: 0; overflow: visible; }
.lshot--cover img { height: auto; object-fit: contain; }
/* un filo di respiro attorno alle copertine per piattaforma */
.lpcovers { gap: 22px; }
.lpcover__imgs { gap: 10px; align-items: flex-start; }

/* =====================================================================
   Ludoteca — backlog personale
   ===================================================================== */
.lbacklog { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 26px; }
.lbacklog__label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.lbacklog__opts { display: inline-flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.lbacklog__opt { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); transition: border-color .15s ease, background .15s ease, color .15s ease; }
.lbacklog__opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lbacklog__opt.is-on { color: #fff; border-color: transparent; }
.lbacklog__opt[data-status="backlog"].is-on { background: #3b6fb0; }
.lbacklog__opt[data-status="playing"].is-on { background: #e0952b; }
.lbacklog__opt[data-status="played"].is-on { background: #2e9e5b; }
.lbacklog__opt[data-status="abandoned"].is-on { background: #7a828d; }
.lbacklog__clear { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1; color: var(--muted); }
.lbacklog__clear:hover { color: #c0392b; border-color: #c0392b; }
.lbacklog__clear.is-hidden { display: none; }

/* «La mia ludoteca»: linguette + badge sulle card */
.lbltabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.lbltabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.lbltabs a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lbltabs a.is-on { background: var(--accent-ink); color: #fff; border-color: transparent; }
.lbltabs__n { font-size: 12px; opacity: .7; }
.lbcard { position: relative; }
.lbcard__badge { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.lbcard__badge--backlog { background: #3b6fb0; }
.lbcard__badge--playing { background: #e0952b; }
.lbcard__badge--played { background: #2e9e5b; }
.lbcard__badge--abandoned { background: #7a828d; }

/* Ludoteca — sezione "Ti potrebbe interessare" */
.lgame__related { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; }

/* =====================================================================
   Ludoteca — rifiniture grafiche scheda
   ===================================================================== */
/* Hero con copertina sfocata sullo sfondo (leggibile in ogni tema) */
.lgame__hero--bg { position: relative; overflow: hidden; border-radius: 20px; padding: 30px; border: 1px solid var(--line); }
.lgame__herobg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(42px) saturate(1.3); transform: scale(1.25); opacity: .55; z-index: 0; }
.lgame__hero--bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 74%, transparent), color-mix(in srgb, var(--surface) 90%, transparent)); z-index: 1; }
.lgame__hero--bg > .lgame__covers, .lgame__hero--bg > .lgame__info { position: relative; z-index: 2; }
@media (max-width: 720px) { .lgame__hero--bg { padding: 20px; } }

/* Voto redazione come anello circolare proporzionale, colorato per fascia */
.lscore { width: 88px; height: 88px; border-radius: 50%; position: relative; display: grid; place-items: center; flex: 0 0 auto; gap: 0;
    background: conic-gradient(var(--sc, var(--accent-ink)) calc(var(--pct, 0) * 1%), color-mix(in srgb, var(--line) 70%, transparent) 0); }
.lscore::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.lscore__num { position: relative; z-index: 1; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 800; font-size: 28px; line-height: 1; color: var(--sc, var(--accent-ink)); }
.lscore__max { position: relative; z-index: 1; font-size: 11px; color: var(--muted); font-weight: 700; }

/* Loghi di sviluppatore/editore nelle chip */
.lchip--logo { padding-left: 5px; }
.lchip__logo { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; background: #fff; }

/* Voto nella card come pastiglia circolare con anello colorato per fascia */
.lcard__score { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(15,19,28,.85); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.35); border: 2px solid var(--sc, #ffd479); }

/* Etichetta di provenienza nel blocco "ultimi commenti" (fonti miste) */
.cblock__tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent-ink); vertical-align: middle; }

/* Alias admin (nome inventato accanto al reale) nelle card personas */
.pcard__alias { color: var(--muted); font-weight: 400; margin-left: .15em; }

/* ===== Pagina autore: statistiche, filtri, ordinamento ===== */
.author-hero__role { color: var(--accent); font-weight: 700; }
.author-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .6rem 0 .2rem; color: var(--muted); font-size: .92rem; }
.author-stats__item strong { color: var(--ink); }
.author-toolbar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin: 1.4rem 0 .4rem; }
.author-filters { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.author-filter { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-decoration: none; }
.author-filter:hover { border-color: var(--accent); color: var(--ink); }
.author-filter.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.author-sort { display: inline-flex; gap: .5rem; align-items: baseline; font-size: .88rem; }
.author-sort__label { color: var(--muted); }
.author-sort__opt { color: var(--muted); text-decoration: none; }
.author-sort__opt.is-on { color: var(--ink); font-weight: 700; text-decoration: underline; }

/* ===== Paginazione riutilizzabile ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.pager__nums { display: inline-flex; gap: .25rem; }
.pager__btn, .pager__num { padding: .4rem .75rem; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.pager__btn:hover, .pager__num:hover { border-color: var(--accent); }
.pager__num.is-current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pager__btn.is-off { color: var(--muted); opacity: .5; pointer-events: none; }
.pager__gap { color: var(--muted); padding: 0 .2rem; align-self: center; }

/* ===== Pagina autore: schede moduli (hub) ===== */
.author-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 .6rem; border-bottom: 1px solid var(--line); }
.author-tab { padding: .5rem .9rem; border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-size: .95rem; margin-bottom: -1px; background: var(--surface, transparent); }
.author-tab:hover { color: var(--ink); }
.author-tab.is-on { color: var(--ink); font-weight: 700; border-color: var(--line); border-bottom: 1px solid var(--bg, #fff); background: var(--bg, transparent); }
.author-tab__count { display: inline-block; min-width: 1.4em; text-align: center; padding: 0 .35em; margin-left: .2em; border-radius: 999px; background: var(--line); color: var(--ink); font-size: .78rem; font-weight: 700; }
.author-tab.is-on .author-tab__count { background: var(--accent); color: #fff; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: .6rem; }
.hub-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub-card__media { position: relative; aspect-ratio: 3 / 4; background: var(--line); display: flex; align-items: center; justify-content: center; }
.hub-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hub-card__ph { font-size: 2rem; font-weight: 800; color: var(--muted); }
.hub-card__badge { position: absolute; top: .4rem; left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 600; }
.hub-card__body { padding: .5rem .6rem .7rem; display: flex; flex-direction: column; gap: .2rem; }
.hub-card__title { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.hub-card__date { color: var(--muted); font-size: .78rem; }

/* Anteprima video nella galleria personas: frame reale + play badge sovrapposto */
.pgal__vidthumb { width: 100%; height: 100%; object-fit: cover; display: block; background: #14141c; pointer-events: none; }
.pgal__item .pgal__vid {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
    font-size: 18px; padding-left: 3px; pointer-events: none;
    transition: background .15s ease;
}
.pgal__item:hover .pgal__vid { background: rgba(0,0,0,.72); }

/* Filtro "Creato da" negli elenchi admin */
.filter-creator { margin: .6rem 0 .2rem; font-size: .9rem; color: var(--muted); }
.filter-creator__label { display: inline-flex; align-items: center; gap: .4rem; }
.filter-creator select { padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg, #fff); color: var(--ink); }

/* «Ascolta l'articolo»: player audio o pulsante voce-browser, in cima all'articolo */
.article-listen { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1.3rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, rgba(127,127,127,.06)); }
.article-listen__label { font-weight: 600; }
.article-listen__player { height: 40px; max-width: 100%; }
.article-listen__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; font-size: .95rem; line-height: 1; }
.article-listen__btn:hover { filter: brightness(1.06); }
.article-listen__btn[aria-pressed="true"] { background: transparent; color: var(--accent); }
.article-listen__hint { color: var(--muted); font-size: .82rem; }

/* Barra Ascolta — affinamenti: velocità, stato, stop, durata */
.article-listen__dur { color: var(--muted); font-weight: 400; }
.article-listen__btn--ghost { background: transparent; color: var(--accent); border-color: var(--line); padding: .4rem .7rem; }
.article-listen__status { color: var(--muted); font-size: .85rem; min-width: 6.5em; }
.article-listen__speeds { display: inline-flex; gap: .2rem; margin-left: auto; }
.article-listen__speeds button { padding: .25rem .5rem; border: 1px solid var(--line); background: var(--bg, #fff); color: var(--muted); border-radius: 7px; font-size: .8rem; cursor: pointer; line-height: 1; }
.article-listen__speeds button:hover { color: var(--ink); }
.article-listen__speeds button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* Stato sincronizzazione Personas (admin) */
.sync-status { display: inline-block; margin-left: .4rem; font-size: .82rem; color: var(--muted); }
.sync-status--err { color: #c0392b; font-weight: 600; }

/* Marcatore "sincronizzato" nell'elenco Personas (admin) */
.sync-badge { display: inline-block; font-size: .78rem; color: #2e7d32; font-weight: 600; }

/* Barra selettore destinazione sincronizzazione (admin Personas) */
.sync-target-bar { display: flex; align-items: center; gap: .5rem; margin: 0 0 14px; flex-wrap: wrap; }
.sync-target-bar select { padding: .3rem .5rem; }

/* Suggeritore di prompt (admin Personas) */
.ptf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ptf-grid label { display: block; font-size: .85rem; margin-bottom: 3px; }
.ptf-grid select, .ptf-grid input { width: 100%; }
.ptf-check { display: flex; align-items: flex-end; }
.prompt-list { display: flex; flex-direction: column; gap: 8px; }
.prompt-item { display: flex; gap: 8px; align-items: flex-start; }
.prompt-item__text { flex: 1; resize: vertical; font-family: inherit; padding: .5rem .6rem; }

/* Suggeritore prompt: accesso + campo tag largo */
.ptf-access { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 12px; background: var(--card, #f6f6f8); border: 1px solid var(--line); border-radius: 10px; }
.ptf-access label { font-size: .85rem; }
.ptf-grid .ptf-wide { grid-column: 1 / -1; }
.prompt-tool-page { padding-top: 18px; }

/* Ludoteca — libreria (stati) più chiara */
.lbacklog__current { margin: 4px 0 8px; font-size: .9rem; color: var(--muted); }
.lbacklog__opt { display: inline-flex; align-items: center; gap: .35rem; }
.lbacklog__ico { font-size: 1rem; line-height: 1; }
.lbacklog__hint { margin-top: 6px; font-size: .78rem; color: var(--muted); }

/* Breadcrumb */
.breadcrumbs { font-size: .85rem; margin: 0 0 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.breadcrumbs__link { color: var(--accent-ink); text-decoration: none; }
.breadcrumbs__link:hover { text-decoration: underline; }
.breadcrumbs__sep { opacity: .6; }
.breadcrumbs__cur { color: var(--ink); font-weight: 600; }

/* Intestazione ricca console (Ludoteca) */
.lplatform-head { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; flex-wrap: wrap; }
.lplatform-head__img { flex: 0 0 auto; max-width: 200px; }
.lplatform-head__img img { width: 100%; height: auto; border-radius: 10px; }
.lplatform-head__info { flex: 1; min-width: 240px; }

/* Ludoteca — timeline / generazioni */
.ghead-links { margin: 6px 0 0; }
.ltl-tabs { display: flex; gap: 8px; margin: 4px 0 20px; border-bottom: 1px solid var(--line); }
.ltl-tab { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ltl-tab.is-on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.ltl-gen { margin-bottom: 28px; }
.ltl-gen__head { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ltl-gen__title { margin: 0; font-size: 1.15rem; }
.ltl-gen__years { color: var(--muted); font-size: .9rem; }
.ltl-consoles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ltl-console { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); }
.ltl-console:hover { border-color: var(--accent); }
.ltl-console__img { flex: 0 0 auto; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.ltl-console__img img { max-width: 54px; max-height: 54px; border-radius: 6px; }
.ltl-console__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ltl-console__name { font-weight: 600; }
.ltl-console__meta { color: var(--muted); font-size: .82rem; }
.ltl-console__count { color: var(--accent-ink); font-size: .78rem; }
.ltl-yearpick { display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; }
.ltl-yeartitle { margin: 4px 0 12px; }
.ltl-sub { margin: 18px 0 10px; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* Import IGDB — selettore limite + duplicati */
.import-limit { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.import-limit select { padding: 4px 6px; }
.import-dup { display: inline-block; margin-left: 6px; font-size: .78rem; color: #1a7f37; background: #e6f4ea; border-radius: 6px; padding: 1px 7px; vertical-align: middle; }
html.dark .import-dup { color: #7ee2a0; background: #17351f; }
.lset__cand--dup { opacity: .82; }

/* Editor console — pulsante Riempi da IGDB */
.lform__igdb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

/* Editor console — riga fonti automatiche */
.lform__sources { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.lform__sources-label { font-size: .85rem; font-weight: 600; }
.lform__sources .hint { flex-basis: 100%; }
/* Citazione fonte immagine console */
.lplatform-head__credit { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); }

/* Import — checkbox arricchimento globale */
.import-enrich { display: block; margin: 6px 0 14px; font-size: .9rem; }
.import-enrich input { vertical-align: middle; margin-right: 6px; }

/* Ludoteca — gestione video (admin) */
.lvid-list, .lvid-results { display: flex; flex-direction: column; gap: 8px; }
.lvid-item, .lvid-res { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.lvid-thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.lvid-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lvid-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.lvid-title { font-weight: 600; }
.lvid-meta { color: var(--muted); font-size: .82rem; }
.lvid-res__actions { display: flex; gap: 6px; flex: 0 0 auto; }
.lvid-search { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.lvid-search input[type=text] { flex: 1; min-width: 220px; }
.lvid-group { margin: 16px 0 8px; font-size: .95rem; color: var(--muted); }
/* Sezione video pubblica */
.lgame__videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.lgame__videoitem { margin: 0; }
.lgame__videocap { margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Console — scelta candidati Wikidata */
.lwiki-cands { max-width: 640px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--accent, #4f46e5); border-radius: 10px; background: var(--surface); }
.lwiki-cands__h { margin: 0 0 4px; font-size: 1rem; }
.lwiki-cands__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lwiki-cand { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.lwiki-cand__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lwiki-cand__label { font-weight: 600; }
.lwiki-cand__desc { color: var(--muted); font-size: .85rem; }
.lwiki-cand__actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* Console — spunta sovrascrivi nella scelta candidati */
.lwiki-cands__ow { display: block; margin: 4px 0 10px; font-size: .88rem; }
.lwiki-cands__ow input { vertical-align: middle; margin-right: 6px; }

/* Tabelle nel corpo dei contenuti (redazionale) — bordi visibili di default;
   gli stili inline impostati nell'editor (bordi/colori) hanno la precedenza. */
.article__body table, .content__body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; }
.article__body table td, .article__body table th,
.content__body table td, .content__body table th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.article__body table th, .content__body table th { background: color-mix(in srgb, var(--ink) 6%, transparent); text-align: left; font-weight: 600; }
.article__body table caption, .content__body table caption { caption-side: bottom; color: var(--muted); font-size: .85rem; padding-top: 6px; }
/* La tabella può eccedere in larghezza su mobile: scroll orizzontale morbido */
.article__body table, .content__body table { display: block; overflow-x: auto; }

/* Ludoteca — blocco a riga (home) con dimensioni e badge Novità */
.lrow { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.lrow__card { scroll-snap-align: start; flex: 0 0 auto; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.lrow__thumb { position: relative; display: block; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.lrow__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lrow__thumb--empty { display: flex; align-items: center; justify-content: center; }
.lrow__ico { font-size: 2rem; }
.lrow__info { display: flex; flex-direction: column; gap: 1px; }
.lrow__title { font-weight: 600; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lrow__meta { color: var(--muted); font-size: .8rem; }
.lrow__card:hover .lrow__thumb { border-color: var(--accent); }
/* Dimensioni */
.lrow--sm .lrow__card { width: 108px; }
.lrow--md .lrow__card { width: 150px; }
.lrow--lg .lrow__card { width: 200px; }
.lrow--sm .lrow__title { font-size: .82rem; }
.lrow--lg .lrow__title { font-size: 1rem; }

/* Pallino «Novità» sulle copertine Ludoteca (catalogo + blocco a riga):
   posizionato in alto a sinistra per non collidere col voto (alto a destra). */
.lcard__thumb .vbc-fresh--item,
.lrow__thumb .vbc-fresh--item {
    position: absolute; top: 8px; left: 8px; margin: 0; z-index: 2;
    background: rgba(255,255,255,.92); border-radius: 20px; padding: 2px 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
html.dark .lcard__thumb .vbc-fresh--item,
html.dark .lrow__thumb .vbc-fresh--item { background: rgba(26,36,48,.92); }

/* Pagella — editor */
.report-editor { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 8px; background: var(--surface); }
.report-editor__head, .report-row { display: grid; grid-template-columns: 1fr 110px 90px 36px; gap: 8px; align-items: center; }
.report-editor__head { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.report-row { margin-bottom: 6px; }
.report-editor__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.report-presets { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.report-final { margin-left: auto; font-size: .95rem; }
.report-final strong { font-size: 1.15rem; }

/* Pagella — frontend */
.pagella { margin: 1.6em 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pagella__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pagella__head .section-title { margin: 0; }
.pagella__final { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--sc, #e0952b); }
.pagella__final-num { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--sc, #e0952b); }
.pagella__final-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pagella__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pagella__item { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; }
.pagella__label { font-weight: 600; }
.pagella__bar { height: 8px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.pagella__fill { display: block; height: 100%; border-radius: 6px; }
.pagella__vote { font-weight: 800; min-width: 2.2em; text-align: right; }
.pagella__verdict { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-style: italic; }
@media (max-width: 560px) { .pagella__item { grid-template-columns: 1fr auto; } .pagella__bar { grid-column: 1 / -1; order: 3; } }

/* Pagella editor — help, descrizione per voce, select giochi */
.report-help { font-size: .85rem; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.report-row { grid-template-columns: 1fr 110px 90px 36px; gap: 6px 8px !important; }
.report-row__desc { grid-column: 1 / -1; width: 100%; font-size: .88rem; }
.lgpick__selectrow { display: flex; gap: 8px; margin-top: 8px; }
.lgpick__select { flex: 1; min-width: 0; }
/* Pagella frontend — descrizione voce */
.pagella__item--desc { row-gap: 3px; }
.pagella__desc { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (max-width: 560px) { .pagella__desc { grid-column: 1 / -1; } }
