:root {
    color-scheme: light;
    --paper: #f4f1e9;
    --paper-2: #fbfaf6;
    --ink: #1d211f;
    --muted: #68706b;
    --line: #d8d5cc;
    --accent: #1d625c;
    --accent-soft: #dfece8;
    --warning: #8a651a;
    --warning-soft: #f5ecd5;
    --analysis: #4f5578;
    --analysis-soft: #e8e9f2;
    --max: 1180px;
    --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--accent); }

.preview-ribbon {
    padding: .5rem 1rem;
    background: #2b3734;
    color: #fff;
    text-align: center;
    font-size: .8rem;
    letter-spacing: .04em;
}
.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }
.analysis-shell { width: min(calc(100% - 2.4rem), var(--max)); margin-inline: auto; }
.analysis-header {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 92%, white 8%);
}
.header-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.analysis-brand { text-decoration: none; display: grid; line-height: 1.05; gap: .28rem; }
.analysis-brand .brand-kicker { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.analysis-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 600; }
.header-row nav { display: flex; gap: 1.2rem; }
.header-row nav a { text-decoration: none; font-size: .93rem; color: var(--muted); }
.analysis-main { min-height: 70vh; }
.analysis-hero { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 5vw, 4.6rem); }
.section-label { margin: 0 0 1rem; color: var(--accent); text-transform: uppercase; font-size: .78rem; font-weight: 750; letter-spacing: .13em; }
.analysis-hero h1,
.category-page h1,
.article-header h1,
.not-found h1 {
    max-width: 900px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.analysis-hero h1 em { color: var(--accent); font-weight: 500; }
.hero-copy { max-width: 720px; margin: 1.7rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.category-section,
.article-list-section { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.8rem; }
.section-heading h2,
.article-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 500; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.category-card { display: grid; gap: .55rem; padding: 1.5rem; background: var(--paper-2); text-decoration: none; }
.category-card strong { font-size: 1.05rem; }
.category-card span { color: var(--muted); font-size: .93rem; }
.article-list { border-top: 1px solid var(--line); }
.article-row { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.article-row h2, .article-row h3 { max-width: 820px; margin: .55rem 0 .5rem; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.12; }
.article-row h2 a, .article-row h3 a { text-decoration: none; }
.article-row p { max-width: 760px; margin: 0; color: var(--muted); }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.draft-badge { padding: .2rem .45rem; border: 1px solid var(--warning); color: var(--warning); border-radius: 999px; }
.empty-state { color: var(--muted); padding: 2rem 0; }
.category-page { padding-block: clamp(4rem, 7vw, 6rem); }
.category-intro { max-width: 720px; color: var(--muted); font-size: 1.1rem; margin: 1.5rem 0 3rem; }
.article-page { width: min(calc(100% - 2.4rem), var(--reading)); padding-block: clamp(3.8rem, 7vw, 6rem); }
.article-header { padding-bottom: 2.7rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); }
.article-subtitle { margin: 1.2rem 0 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.article-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 2rem 0 0; }
.article-dates div { border-top: 1px solid var(--line); padding-top: .8rem; }
.article-dates dt { color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; }
.article-dates dd { margin: .2rem 0 0; font-size: .94rem; }
.article-section { padding: 2.7rem 0; border-bottom: 1px solid var(--line); }
.article-section p, .article-section li { font-size: 1.03rem; }
.article-section p:last-child { margin-bottom: 0; }
.article-summary { font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; }
.article-summary p { font-size: 1.18rem; }
.section-heading-line { display: flex; align-items: center; gap: .8rem; }
.status-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 800; flex: 0 0 auto; }
.status-verified { background: var(--accent-soft); color: var(--accent); }
.status-uncertain { background: var(--warning-soft); color: var(--warning); }
.status-analysis { background: var(--analysis-soft); color: var(--analysis); }
.fact-item { padding: 1.2rem 0; }
.fact-item + .fact-item { border-top: 1px dashed var(--line); }
.source-ref { color: var(--muted); font-size: .82rem !important; text-transform: uppercase; letter-spacing: .04em; }
.uncertain-section { background: linear-gradient(90deg, transparent, rgba(245,236,213,.65), transparent); }
.analysis-section { background: linear-gradient(90deg, transparent, rgba(232,233,242,.7), transparent); }
.conclusion-section p { font-family: Georgia, "Times New Roman", serif; font-size: 1.13rem; }
.source-list, .changelog-list { padding-left: 1.4rem; }
.source-list li, .changelog-list li { padding: .9rem 0; }
.source-list li + li, .changelog-list li + li { border-top: 1px dashed var(--line); }
.source-type { margin-left: .5rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.source-list p, .changelog-list p { margin: .25rem 0; color: var(--muted); }
.changelog-list time { margin-right: .75rem; color: var(--muted); font-size: .86rem; }
.not-found { padding-block: 6rem; }
.not-found p { color: var(--muted); }
.analysis-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-row { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-row p { margin: .25rem 0 0; color: var(--muted); }
.footer-row > div:last-child { display: flex; gap: 1.2rem; }
.footer-row a { color: var(--muted); text-decoration: none; }

@media (max-width: 760px) {
    .header-row { min-height: 72px; }
    .header-row nav { gap: .8rem; }
    .category-grid { grid-template-columns: 1fr; }
    .article-dates { grid-template-columns: 1fr; }
    .footer-row { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 2rem; }
    .footer-row > div:last-child { flex-wrap: wrap; }
}

@media print {
    .preview-ribbon, .analysis-header, .analysis-footer, .skip-link { display: none !important; }
    body { background: #fff; color: #000; }
    .article-page { width: 100%; max-width: none; padding: 0; }
    a { color: #000; text-decoration: none; }
}

/* Analisi LIS V1.4.0 — navigazione editoriale e riferimenti */
.breadcrumbs {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: .82rem;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumbs li + li::before {
    content: "/";
    margin-right: .4rem;
    color: var(--line);
}
.breadcrumbs a { text-decoration: none; }
.source-ref a { color: inherit; }
.source-accessed { font-size: .82rem !important; }

/* Analisi LIS V1.6.1 — manifesto editoriale, fonti contestuali e ritorno rapido */
.editorial-method {
    padding-block: clamp(2.8rem, 5vw, 4.5rem);
    border-top: 1px solid var(--line);
}
.editorial-method h2 {
    max-width: 860px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.025em;
}
.editorial-method-lead {
    max-width: 820px;
    margin: 1.4rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.editorial-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2.4rem;
    max-width: 940px;
    margin-top: 2rem;
}
.editorial-method-grid p {
    margin: 0;
    color: var(--muted);
}
.editorial-method-grid strong {
    color: var(--ink);
}
.editorial-method blockquote {
    max-width: 920px;
    margin: 2.4rem 0 0;
    padding: 1.35rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: var(--paper-2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.sourced-list > li {
    margin-bottom: 1rem;
}
.sourced-list .source-ref,
.context-item .source-ref {
    margin: .35rem 0 0;
}
.context-item + .context-item {
    margin-top: 1.15rem;
}

.back-to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: color-mix(in srgb, var(--paper-2) 94%, transparent);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(29, 33, 31, .10);
    text-decoration: none;
    font-size: 1.35rem;
    line-height: 1;
}
.back-to-top:hover,
.back-to-top:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}
.back-to-top:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .editorial-method-grid { grid-template-columns: 1fr; }
    .back-to-top {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media print {
    .back-to-top { display: none !important; }
}

