/* ═══════════════════════════════════════════
   FoodRiskByGender — Publication / Study page
   Caricato solo sul template "Pubblicazione"
   ═══════════════════════════════════════════ */

body.page-template-page-zebrafish { overflow-x: clip; }

.pub-page { text-align: left; }
.pub-page p,
.pub-page li { text-align: left; }

/* ── PROGRESS BAR ── */
.pub-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    z-index: 200;
    background: linear-gradient(90deg, var(--green-500), var(--gold-400));
    transition: width 0.1s linear;
}

/* ── HERO ── */
.pub-hero {
    position: relative;
    padding: 10rem 2rem 4.5rem;
    background: linear-gradient(155deg, var(--green-950) 0%, var(--green-900) 45%, var(--olive-900) 100%);
    color: white;
    overflow: hidden;
}
.pub-hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -8%;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(81,144,192,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.pub-hero::after {
    content: '';
    position: absolute;
    bottom: -45%; left: -10%;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(240,180,41,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.pub-hero-inner {
    max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1;
}
.pub-breadcrumb {
    display: flex; width: fit-content;
    align-items: center; gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.75rem;
    transition: color 0.3s;
}
.pub-breadcrumb:hover { color: var(--green-300); }
.pub-breadcrumb svg { width: 15px; height: 15px; }

.pub-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    padding: 7px 18px 7px 10px;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}
.pub-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(240,180,41,0.18);
}

.pub-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -0.015em;
    max-width: 18ch;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}
.pub-lede {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    max-width: 62ch;
    margin-bottom: 2.5rem;
}

.pub-meta {
    display: flex; flex-wrap: wrap;
    gap: 0 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.pub-meta-item { padding: 0.6rem 0; }
.pub-meta-item .k {
    display: block;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: rgba(255,255,255,0.42);
    margin-bottom: 6px;
}
.pub-meta-item .v {
    font-size: 0.95rem; font-weight: 600;
    color: rgba(255,255,255,0.92);
}

/* ── KEY FACTS STRIP ── */
.pub-facts {
    background: white;
    border-bottom: 1px solid var(--slate-100);
    padding: 0 2rem;
}
.pub-facts-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}
.pub-fact { text-align: center; }
.pub-fact .val {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 900;
    color: var(--green-700);
    line-height: 1.1;
}
.pub-fact .val sub { font-size: 0.55em; }
.pub-fact .desc {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-top: 8px;
    line-height: 1.45;
}

/* ── LAYOUT: sidebar + article ── */
.pub-body { padding: 5rem 2rem; background: white; }
.pub-body-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 232px 1fr;
    gap: 4.5rem;
    align-items: start;
}

/* ── TOC ── */
.pub-toc {
    position: sticky; top: 104px;
}
.pub-toc h4 {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--slate-400);
    margin-bottom: 1.1rem;
}
.pub-toc ol { list-style: none; counter-reset: toc; }
.pub-toc li { counter-increment: toc; margin-bottom: 2px; }
.pub-toc ol a {
    display: flex; gap: 11px;
    padding: 9px 12px 9px 10px;
    border-left: 2px solid var(--slate-200);
    font-size: 0.86rem;
    color: var(--slate-500);
    line-height: 1.4;
    transition: all 0.25s;
}
.pub-toc ol a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 0.68rem; font-weight: 700;
    color: var(--slate-300);
    padding-top: 2px;
    transition: color 0.25s;
}
.pub-toc ol a:hover {
    color: var(--green-700);
    border-left-color: var(--green-300);
    background: var(--green-50);
}
.pub-toc ol a.active {
    color: var(--green-800);
    font-weight: 600;
    border-left-color: var(--green-600);
    background: var(--green-50);
}
.pub-toc ol a.active::before { color: var(--green-500); }

.pub-toc-cta {
    display: flex; align-items: center; gap: 9px;
    margin-top: 1.75rem; padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--slate-600);
    transition: all 0.3s;
}
.pub-toc-cta:hover {
    border-color: var(--green-300);
    color: var(--green-700);
    background: var(--green-50);
}
.pub-toc-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── ARTICLE ── */
.pub-article { max-width: 760px; min-width: 0; }
.pub-section { margin-bottom: 4rem; scroll-margin-top: 96px; }
.pub-section:last-child { margin-bottom: 0; }

.pub-section > h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 1.4rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--slate-100);
    position: relative;
}
.pub-section > h2::after {
    content: '';
    position: absolute; bottom: -1px; left: 0;
    width: 44px; height: 2px;
    background: var(--green-600);
}
.pub-article p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--slate-600);
    margin-bottom: 1.3rem;
}
.pub-article p:last-child { margin-bottom: 0; }
.pub-article strong { color: var(--green-800); font-weight: 700; }
.pub-article em { color: var(--slate-700); }

/* ── LISTA "matrici / endpoint" ── */
.pub-list { list-style: none; margin: 0 0 1.6rem; }
.pub-list > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.9rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate-600);
}
.pub-list > li::before {
    content: '';
    position: absolute; left: 4px; top: 0.62em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 4px var(--green-50);
}
.pub-list ul { list-style: none; margin: 0.7rem 0 0; }
.pub-list ul li {
    position: relative;
    padding-left: 26px;
    font-size: 0.95rem;
    color: var(--slate-500);
    margin-bottom: 0.4rem;
}
.pub-list ul li::before {
    content: '';
    position: absolute; left: 4px; top: 0.62em;
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--green-400);
}

/* ── CARD GRID (matrici analizzate) ── */
.pub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.15rem;
    margin: 2rem 0;
}
.pub-card {
    background: linear-gradient(165deg, var(--green-50), #ffffff);
    border: 1px solid var(--green-100);
    border-radius: 16px;
    padding: 1.5rem 1.35rem;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pub-card:hover {
    border-color: var(--green-300);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(26,92,142,0.10);
}
.pub-card .num {
    font-family: var(--font-heading);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--green-500);
    margin-bottom: 0.75rem;
}
.pub-card h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--green-800);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.pub-card p {
    font-size: 0.86rem !important;
    line-height: 1.6 !important;
    color: var(--slate-500) !important;
    margin-bottom: 0 !important;
}

/* ── ENDPOINT CARDS (LC50 / NOAEL) ── */
.pub-endpoints {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.15rem; margin: 2rem 0;
}
.pub-endpoint {
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    background: white;
    transition: all 0.35s;
}
.pub-endpoint:hover {
    border-color: var(--green-300);
    box-shadow: 0 14px 34px rgba(26,92,142,0.08);
}
.pub-endpoint .sym {
    font-family: var(--font-heading);
    font-size: 1.6rem; font-weight: 900;
    color: var(--green-700);
    line-height: 1;
    margin-bottom: 0.6rem;
}
.pub-endpoint .sym sub { font-size: 0.6em; }
.pub-endpoint p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* ── PROTOCOL BOX (OECD) ── */
.pub-protocol {
    display: flex; gap: 1.35rem;
    align-items: flex-start;
    background: linear-gradient(165deg, #f0f6ff, #f0f4f8);
    border: 1px solid var(--green-100);
    border-radius: 18px;
    padding: 1.6rem 1.7rem;
    margin: 2rem 0;
}
.pub-protocol-mark {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--green-700);
    display: flex; align-items: center; justify-content: center;
}
.pub-protocol-mark svg { width: 22px; height: 22px; stroke: white; }
.pub-protocol h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--green-800);
    margin-bottom: 0.35rem;
}
.pub-protocol p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 0 !important;
}

/* ── TIMELINE ORE ── */
.pub-timeline {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 2.25rem 0;
    position: relative;
}
.pub-timeline::before {
    content: '';
    position: absolute;
    top: 13px; left: 12%; right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--green-200), var(--green-500));
}
.pub-tp { text-align: center; position: relative; }
.pub-tp .mark {
    width: 26px; height: 26px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--green-500);
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
}
.pub-tp .mark::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-600);
}
.pub-tp .h {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 900;
    color: var(--green-700);
    line-height: 1;
}
.pub-tp .lbl {
    font-size: 0.74rem;
    color: var(--slate-400);
    margin-top: 5px;
}

/* ── CALLOUT ── */
.pub-callout {
    position: relative;
    background: linear-gradient(155deg, var(--green-900), var(--olive-900));
    border-radius: 20px;
    padding: 2.1rem 2.2rem 2.1rem 2.4rem;
    margin: 2.5rem 0;
    overflow: hidden;
}
.pub-callout::before {
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--gold-400);
}
.pub-callout::after {
    content: '';
    position: absolute; top: -60%; right: -12%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(81,144,192,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.pub-callout .qm {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--gold-400);
    margin-bottom: 0.85rem;
    position: relative; z-index: 1;
}
.pub-callout p {
    font-size: 1.1rem !important;
    line-height: 1.65 !important;
    color: rgba(255,255,255,0.92) !important;
    margin-bottom: 0 !important;
    position: relative; z-index: 1;
}

/* ── DOSE PANELS (sicuro vs elevato) ── */
.pub-doses {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.15rem; margin: 2rem 0;
}
.pub-dose {
    border-radius: 16px;
    padding: 1.55rem 1.5rem;
    border: 1px solid;
}
.pub-dose h3 {
    display: flex; align-items: center; gap: 9px;
    font-size: 0.96rem; font-weight: 700;
    margin-bottom: 0.75rem;
}
.pub-dose h3 svg { width: 18px; height: 18px; flex-shrink: 0; }
.pub-dose p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 0 !important;
}
.pub-dose.safe {
    background: linear-gradient(165deg, #f0f6ff, #ffffff);
    border-color: var(--green-200);
}
.pub-dose.safe h3 { color: var(--green-800); }
.pub-dose.safe h3 svg { stroke: var(--green-600); }
.pub-dose.high {
    background: linear-gradient(165deg, #fdf7e8, #ffffff);
    border-color: #f3dfa8;
}
.pub-dose.high h3 { color: var(--gold-600); }
.pub-dose.high h3 svg { stroke: var(--gold-500); }

/* ── SIGNPOST FINALE ── */
.pub-outro {
    background: linear-gradient(165deg, var(--slate-50), #ffffff);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 2.2rem;
    margin-top: 3rem;
}
.pub-outro h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.7rem;
}
.pub-outro-actions {
    display: flex; flex-wrap: wrap; gap: 0.85rem;
    margin-top: 1.5rem;
}
.pub-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 0.88rem; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pub-btn svg { width: 16px; height: 16px; }
.pub-btn-primary {
    background: var(--green-700);
    color: white;
}
.pub-btn-primary:hover {
    background: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(19,74,115,0.28);
}
.pub-btn-ghost {
    border: 1px solid var(--slate-300);
    color: var(--slate-600);
}
.pub-btn-ghost:hover {
    border-color: var(--green-400);
    color: var(--green-700);
    background: var(--green-50);
}

/* ── CITAZIONE / FUNDING ── */
.pub-colophon {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    padding: 3rem 2rem;
}
.pub-colophon-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.pub-colophon h4 {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--slate-400);
    margin-bottom: 0.9rem;
}
.pub-colophon p {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--slate-500);
}
.pub-colophon .cite {
    font-size: 0.84rem;
    color: var(--slate-600);
    line-height: 1.75;
    padding-left: 14px;
    border-left: 2px solid var(--slate-200);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .pub-body-inner { grid-template-columns: 1fr; gap: 3rem; }
    .pub-toc {
        position: static;
        border-bottom: 1px solid var(--slate-100);
        padding-bottom: 1.5rem;
    }
    .pub-toc ol {
        display: flex; flex-wrap: wrap; gap: 6px;
    }
    .pub-toc li { margin: 0; }
    .pub-toc ol a {
        border-left: none;
        border: 1px solid var(--slate-200);
        border-radius: 100px;
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    .pub-toc ol a::before { display: none; }
    .pub-toc-cta { display: inline-flex; margin-top: 1rem; }
    .pub-article { max-width: none; }
}

@media (max-width: 860px) {
    .pub-facts-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; padding: 2.5rem 0; }
    .pub-endpoints, .pub-doses { grid-template-columns: 1fr; }
    .pub-colophon-inner { grid-template-columns: 1fr; gap: 2rem; }
    .pub-meta { gap: 0 2rem; }
}

@media (max-width: 620px) {
    .pub-hero { padding: 8rem 1.5rem 3.5rem; }
    .pub-body { padding: 3.5rem 1.5rem; }
    .pub-facts, .pub-colophon { padding-left: 1.5rem; padding-right: 1.5rem; }
    .pub-timeline { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
    .pub-timeline::before { display: none; }
    .pub-callout { padding: 1.7rem 1.5rem 1.7rem 1.7rem; }
    .pub-callout p { font-size: 1rem !important; }
    .pub-protocol { flex-direction: column; gap: 1rem; padding: 1.4rem; }
    .pub-outro { padding: 1.7rem 1.5rem; }
    .pub-btn { width: 100%; justify-content: center; }
}
