/* ── pharma.town · sezione Carenze ── */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.6; }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }

/* ── Hero ── */
.c-hero { margin-bottom: 28px; }
.c-hero .status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.status.short { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status.back  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status .fa-solid { font-size: 0.75rem; }

.c-hero h1 {
    font-size: clamp(1.6rem, 4.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text);
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.c-hero .lede {
    margin-top: 12px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 70ch;
    overflow-wrap: anywhere;
}
.c-hero .lede strong { color: var(--text); font-weight: 600; }

/* ── Action / "cosa fare" box ── */
.c-action {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-light);
    border-radius: 14px;
    margin: 24px 0;
}
.c-action .ico {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--bg);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}
.c-action h2 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.c-action p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.c-action p + p { margin-top: 8px; }

/* ── Sections ── */
.c-sec { margin: 32px 0; }
.c-sec > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 9px;
}
.c-sec > h2 .fa-solid { color: var(--accent); font-size: 0.95rem; }
.c-prose p { font-size: 0.9688rem; line-height: 1.7; color: var(--text-secondary); }
.c-prose p + p { margin-top: 12px; }
.c-prose .src {
    margin-top: 12px; font-size: 0.8125rem; color: var(--text-muted);
}
.c-prose .src a { color: var(--text-secondary); }

/* ── Fact grid ── */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.fact {
    background: var(--bg);
    padding: 14px 16px;
    min-width: 0;
}
.fact dt {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.fact dd { font-size: 0.9375rem; font-weight: 500; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.fact dd.eq-yes { color: #15803d; }
.fact dd.eq-no  { color: #b45309; }

/* ── Packages table ── */
.pkg-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.pkg-wrap table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.pkg-wrap th {
    background: var(--bg-subtle); text-align: left; padding: 11px 14px;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
    font-weight: 600; color: var(--text-secondary); white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.pkg-wrap td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); vertical-align: top; color: var(--text); }
.pkg-wrap tr:last-child td { border-bottom: none; }

/* ── FAQ (native details) ── */
.faq details {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--bg);
    overflow: hidden;
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 18px;
    font-weight: 600;
    font-size: 0.9688rem;
    color: var(--text);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--text-muted); transition: transform 0.2s ease; flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border-light); }
.faq .answer { padding: 14px 18px 18px; font-size: 0.9375rem; line-height: 1.65; color: var(--text-secondary); }

/* ── Related chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8438rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.chip .fa-solid { font-size: 0.7rem; color: var(--text-muted); }
.chip:hover .fa-solid { color: var(--accent); }

/* ── Author / E-E-A-T card ── */
.author {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-subtle);
    margin-top: 36px;
}
.author .av {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cross); color: #fff; font-size: 1.2rem;
}
.author .who { font-weight: 700; color: var(--text); font-size: 0.9375rem; }
.author .role { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 1px; }
.author .meta { font-size: 0.8125rem; color: var(--text-muted); margin-top: 8px; line-height: 1.55; }
.author .meta a { color: var(--text-secondary); }

.disclaimer {
    margin-top: 18px; padding: 14px 16px;
    font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted);
    background: var(--bg-subtle); border-radius: 10px;
}

/* ── Hub / index ── */
.hub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 24px 0; }
.stat { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.stat .n { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.stat .n.amber { color: #b45309; }
.stat .n.green { color: #15803d; }
.stat .lbl { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 6px; }

.alpha-nav { display: flex; flex-wrap: wrap; gap: 5px; margin: 20px 0; }
.alpha-nav a {
    min-width: 30px; text-align: center; padding: 5px 8px;
    font-size: 0.8125rem; font-weight: 600; border-radius: 7px;
    background: var(--bg-subtle); color: var(--text-secondary);
    text-decoration: none; border: 1px solid var(--border-light);
}
.alpha-nav a:hover { background: var(--accent-light); color: var(--accent); }

.letter-group { margin-top: 28px; }
.letter-group h2 {
    font-size: 1.1rem; font-weight: 800; color: var(--accent);
    padding-bottom: 6px; border-bottom: 2px solid var(--accent-light); margin-bottom: 12px;
}
.drug-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.drug-list a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    text-decoration: none; color: var(--text); font-size: 0.9062rem;
    border: 1px solid transparent;
    min-width: 0;
}
.drug-list a:hover { background: var(--bg-subtle); border-color: var(--border); }
.drug-list a .pa { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.drug-list a .nm { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.drug-list a .nm mark { background: #fef08a; color: inherit; padding: 0 1px; border-radius: 2px; }

.no-res { padding: 32px; text-align: center; color: var(--text-muted); font-size: 0.9rem; display: none; }

@media (max-width: 768px) {
    .c-action { flex-direction: column; gap: 10px; }
    .author { flex-direction: column; }
    .drug-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .faq summary .chev { transition: none; }
    .chip { transition: none; }
}
