/* news.css - Stili specifici pagina news/articolo */

/* ===== SKY COLOR VARIABLES ===== */
:root {
    --page-accent: #0ea5e9;
    --page-accent-dark: #0284c7;
    --page-accent-darker: #0369a1;
    --page-accent-bg: #f0f9ff;
    --page-accent-bg2: #e0f2fe;
    --page-accent-shadow: rgba(14, 165, 233, 0.28);
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
}

/* ===== HIDE SECTION ICONS (news non le usa) ===== */
.card-header-icon {
    display: none;
}

/* ===== READING PROGRESS COLOR OVERRIDE ===== */
.reading-progress {
    background: var(--sky-500);
}

/* ===== NEWSLETTER ACCENT OVERRIDE ===== */
.nl-banner::before {
    background: var(--sky-500);
}

.nl-icon {
    color: var(--sky-600);
}

.nl-btn {
    background: var(--sky-600);
}

.nl-btn:hover {
    background: var(--sky-700);
}

/* ===== HERO ===== */
.hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-visual {
    background: linear-gradient(to bottom, #f0f9ff, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.article-type-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.article-type-badge.t-new {
    background: #e0f2fe;
    color: var(--sky-700);
}

.hero-content {
    padding: 28px 32px 32px;
}

.hero-category {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.hero-excerpt {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* ===== ARTICLE BODY / PROSE ===== */
.article-body {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.prose p {
    margin-bottom: 18px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose .data {
    font-weight: 700;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
}

.prose strong {
    color: var(--gray-800);
    font-weight: 600;
}

.prose h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 28px 0 12px;
}

.prose h3:first-child {
    margin-top: 0;
}

.prose a {
    color: var(--sky-700);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--sky-200);
    transition: text-decoration-color 0.15s;
}

.prose a:hover {
    text-decoration-color: var(--sky-700);
}

.prose-img-placeholder {
    width: 100%;
    height: 220px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    border: 1px dashed var(--gray-200);
}

.prose-img-placeholder span {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* ===== TL;DR (IN BREVE) ===== */
.tldr {
    background: var(--sky-50);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    border: 1px solid rgba(14, 165, 233, 0.12);
}

.tldr-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sky-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tldr-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tldr-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.55;
}

.tldr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sky-500);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ===== COSA CAMBIA PER TE (IMPACT BOX) ===== */
.impatto {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--sky-500);
}

.impatto-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.impatto-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.impatto-text strong {
    color: var(--gray-800);
    font-weight: 600;
}

.impatto-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sky-600);
    text-decoration: none;
    transition: color 0.15s;
}

.impatto-cta:hover {
    color: var(--sky-700);
}

/* ===== SIDEBAR (NEWS-SPECIFIC) ===== */
.sidebar-follow {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.sidebar-follow-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.sidebar-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    background: var(--sky-50);
    color: var(--sky-700);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.sidebar-follow-btn:hover {
    background: var(--sky-100);
    border-color: rgba(14, 165, 233, 0.3);
}

.sidebar-follow-x {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.sidebar-follow-x:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.sidebar-see-all {
    display: block;
    text-align: center;
    padding: 14px 0 0;
    margin-top: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sky-600);
    text-decoration: none;
    transition: color 0.15s;
}

.sidebar-see-all:hover {
    color: var(--sky-700);
}

/* ===== RELATED ARTICLES ===== */
.related-item {
    display: flex;
    gap: 14px;
    padding: 14px 12px;
    margin: 0 -12px;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s ease;
    border-radius: var(--radius-sm);
}

.related-item:first-child {
    padding-top: 0;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item:hover {
    background: var(--gray-50);
}

.related-item:hover .related-item-title {
    color: var(--sky-600);
}

.related-thumb {
    width: 52px;
    height: 52px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 1.375rem;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.15s ease;
}

.related-meta {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ===== MAIN LAYOUT ===== */
.main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== MOBILE BAR (RELATED) ===== */
.mobile-related {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .page {
        grid-template-columns: 1fr;
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 20px;
        gap: 16px;
    }

    .sidebar {
        display: none;
    }

    .mobile-related {
        display: block;
    }

    .hero-content {
        padding: 20px 24px 24px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .article-body {
        padding: 24px;
    }

    .tldr {
        padding: 20px 22px;
    }

    .impatto {
        padding: 24px;
    }
}

/* Nasconde lo score ring nelle card correlate (non pertinente nella news) */
.mobile-related .card-score { display: none; }
