/* =====================================================
   NEWS – Stili Frontend
   Progetto Sociale 2002
   ===================================================== */

/* ── Hero lista news ─────────────────────────────────── */
.news-hero {
    background: linear-gradient(135deg, #004080 0%, #0066B3 60%, #0088cc 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}
.news-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.2;
}
.news-hero p {
    font-size: 18px;
    opacity: .85;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Sezione principale ─────────────────────────────── */
.news-section {
    padding: 60px 0 80px;
    background: #f5f7fa;
}

/* ── Articolo in evidenza ───────────────────────────── */
.news-featured {
    margin-bottom: 56px;
}
.news-featured-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform .3s, box-shadow .3s;
}
.news-featured-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.news-featured-img {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}
.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .5s;
}
.news-featured-inner:hover .news-featured-img img {
    transform: scale(1.04);
}
.news-featured-no-img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    background: linear-gradient(135deg, #0066B3, #004080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: rgba(255,255,255,.25);
}
.news-featured-no-img i {
    font-size: 72px;
}
.news-featured-content {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-badge-ev {
    display: inline-block;
    background: #FF8C00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    width: fit-content;
}
.news-featured-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #004080;
    line-height: 1.3;
    margin-bottom: 14px;
}
.news-featured-content .news-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.news-featured-content .news-sommario {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066B3;
    font-weight: 700;
    font-size: 15px;
    transition: gap .2s;
}
.news-read-more:hover { gap: 14px; }

/* ── Griglia articoli ───────────────────────────────── */
.news-grid-title {
    font-size: 22px;
    font-weight: 700;
    color: #004080;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e0e8f0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
}
.news-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0066B3, #004080);
    flex-shrink: 0;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f2fb, #cfe0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: #94b8d4;
}
.news-card-no-img i {
    font-size: 40px;
}
.news-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #004080;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.news-meta i { color: #0066B3; }
.news-card-sommario {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 16px;
}
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.news-card-link {
    font-size: 13px;
    font-weight: 700;
    color: #0066B3;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Empty state ────────────────────────────────────── */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}
.news-empty .news-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f2fb;
    color: #0066B3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}
.news-empty h2 { font-size: 22px; color: #888; margin-bottom: 8px; }

/* ── Paginazione ────────────────────────────────────── */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.news-pagination a { color: #0066B3; border: 1.5px solid #c5d8ee; background: #fff; }
.news-pagination a:hover { background: #0066B3; color: #fff; border-color: #0066B3; }
.news-pagination span { background: #0066B3; color: #fff; border: 1.5px solid #0066B3; }

/* ═══════════════════════════════════════════════════
   SINGOLO ARTICOLO
   ═══════════════════════════════════════════════════ */

/* ── Header articolo ────────────────────────────────── */
.news-article-hero {
    background: linear-gradient(135deg, #004080 0%, #0066B3 100%);
    padding: 60px 0 40px;
}
.news-article-hero .news-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.news-breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.news-breadcrumb a:hover { color: #fff; }
.news-breadcrumb span { color: rgba(255,255,255,.5); }
.news-article-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 820px;
}
.news-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255,255,255,.75);
}
.news-article-meta i { color: rgba(255,255,255,.6); }

/* ── Cover image ────────────────────────────────────── */
.news-article-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ── Layout articolo ─────────────────────────────────── */
.news-article-layout {
    padding: 52px 0 80px;
    background: #f5f7fa;
}
.news-article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.news-article-body {
    background: #fff;
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

/* ── Sommario articolo ──────────────────────────────── */
.news-article-sommario {
    font-size: 18px;
    color: #555;
    line-height: 1.75;
    border-left: 4px solid #FF8C00;
    padding-left: 20px;
    margin-bottom: 36px;
    font-weight: 400;
}

/* ── Contenuto blocchi ──────────────────────────────── */
.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.news-content::after { content: ''; display: table; clear: both; }

/* Paragrafo */
.news-content .news-para {
    margin-bottom: 22px;
}
.news-content .news-para a {
    color: #0066B3;
    text-decoration: underline;
    text-decoration-color: rgba(0,102,179,.35);
}
.news-content .news-para a:hover { color: #004080; text-decoration-color: #004080; }

/* Titoli */
.news-content .news-heading {
    color: #004080;
    font-weight: 700;
    margin: 36px 0 14px;
    line-height: 1.3;
}
.news-content .news-heading-2 { font-size: 26px; }
.news-content .news-heading-3 { font-size: 21px; }
.news-content .news-heading-4 { font-size: 17px; }

/* Immagini */
.news-content .news-figure {
    margin: 28px 0;
    display: block;
}
.news-content .news-figure img {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    width: 100%;
    height: auto;
}
.news-content .news-figure-left {
    float: left;
    margin-right: 28px;
    margin-bottom: 12px;
    margin-top: 6px;
}
.news-content .news-figure-right {
    float: right;
    margin-left: 28px;
    margin-bottom: 12px;
    margin-top: 6px;
}
.news-content .news-figure-center {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}
.news-content .news-figure-full {
    width: 100% !important;
    clear: both;
}
.news-content figcaption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* Video */
.news-content .news-video {
    clear: both;
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.news-content .news-video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.news-content .news-video-ratio iframe,
.news-content .news-video-ratio video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.news-content .news-video-caption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* Citazione */
.news-content .news-quote {
    border-left: 5px solid #0066B3;
    background: #f0f6ff;
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin: 28px 0;
    clear: both;
}
.news-content .news-quote .news-quote-text {
    font-size: 17px;
    font-style: italic;
    color: #334;
    line-height: 1.7;
}
.news-content .news-quote .news-quote-author {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #0066B3;
    font-weight: 700;
    font-style: normal;
}

/* Lista */
.news-content .news-list {
    margin: 18px 0 22px 22px;
    list-style: disc;
    color: #333;
}
.news-content .news-list-ol {
    list-style: decimal;
}
.news-content .news-list li {
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 15px;
}

/* Separatore */
.news-content .news-divider {
    border: none;
    border-top: 2px solid #e8eef4;
    margin: 36px 0;
    clear: both;
}

/* Pulsante */
.news-content .news-button-wrap {
    margin: 24px 0;
    clear: both;
}
.news-content .news-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #FF8C00;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.news-content .news-btn:hover {
    background: #e07b00;
    transform: translateY(-2px);
}

/* Clearfix dopo contenuto */
.news-clearfix::after { content: ''; display: table; clear: both; }

/* ── Sidebar articolo ───────────────────────────────── */
.news-sidebar { display: flex; flex-direction: column; gap: 24px; }
.news-sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.news-sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #004080;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eef4;
}
.news-related-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all .2s;
}
.news-related-item:last-child { border-bottom: none; }
.news-related-item:hover { color: #0066B3; }
.news-related-thumb {
    width: 64px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.news-related-no-thumb {
    width: 64px;
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e8f0fb, #c5d8ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: #94b8d4;
    flex-shrink: 0;
}
.news-related-no-thumb i {
    font-size: 18px;
}
.news-related-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-related-date { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ── Share ──────────────────────────────────────────── */
.news-share {
    padding: 24px 0;
    border-top: 2px solid #e8eef4;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.news-share span { font-size: 14px; font-weight: 700; color: #444; }
.news-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.news-share-btn:hover { opacity: .85; }
.news-share-fb { background: #1877f2; color: #fff; }
.news-share-tw { background: #000; color: #fff; }
.news-share-wa { background: #25d366; color: #fff; }
.news-share-li { background: #0a66c2; color: #fff; }
.news-share-copy { background: #555; color: #fff; cursor: pointer; border: none; }

/* ── Back button ────────────────────────────────────── */
.news-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066B3;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 28px;
    transition: gap .2s;
}
.news-back-btn:hover { gap: 13px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .news-article-grid { grid-template-columns: 1fr; }
    .news-sidebar { display: none; }
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-featured-inner { grid-template-columns: 1fr; }
    .news-featured-img { min-height: 220px; }
    .news-article-hero h1 { font-size: 28px; }
    .news-article-body { padding: 28px 24px; }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-hero h1 { font-size: 28px; }
    .news-content .news-figure-left,
    .news-content .news-figure-right {
        float: none;
        margin: 20px 0;
        width: 100% !important;
    }
}
