/**
 * Stili pagina: news
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Montserrat', -apple-system, sans-serif; background: #f8f8f8; color: #1a1a1a; line-height: 1.6; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

    /* ── Hero ── */
    .news-hero {
        background: #111;
        background-image: url('../../images/general/hero-bg.png');
        background-size: cover;
        background-position: center 30%;
        padding: 140px 0 80px;
        position: relative;
        overflow: hidden;
    }
    .news-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, rgba(5,1,1,0.90) 0%, rgba(8,3,3,0.82) 50%, rgba(5,2,2,0.65) 100%);
        z-index: 0;
    }
    .news-hero::before {
        content: "'98";
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: clamp(8rem, 20vw, 18rem);
        font-weight: 700;
        color: rgba(255,255,255,0.04);
        line-height: 1;
        pointer-events: none;
        letter-spacing: -4px;
        z-index: 1;
    }
    .news-hero .container { position: relative; z-index: 2; }
    .hero-eyebrow {
        display: block;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 3.5px;
        text-transform: uppercase;
        color: rgba(229,16,26,0.9);
        margin-bottom: 18px;
    }
    .news-hero-title {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: clamp(2.6rem, 6vw, 5.2rem);
        font-weight: 700;
        color: #f0eded;
        line-height: 1.0;
        letter-spacing: -1px;
    }

    /* ── Flash errore (redirect da dettaglio) ── */
    .news-flash {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0.85rem 20px;
        background: oklch(0.14 0.014 22);
        color: oklch(0.96 0.005 22);
        font-size: 0.9rem;
        border-bottom: 1px solid oklch(54% 0.20 22 / 0.35);
    }
    .news-flash i { color: oklch(72% 0.18 22); }

    /* ── Filter Bar ── */
    .news-filter-bar {
        background: white;
        border-bottom: 1px solid #ebebeb;
        position: sticky;
        top: var(--site-header-offset, 68px);
        z-index: 100;
    }
    .news-filter-inner {
        display: flex;
        align-items: center;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .news-filter-inner::-webkit-scrollbar { display: none; }
    .nf-tab {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #888;
        text-decoration: none;
        padding: 18px 22px;
        border-bottom: 3px solid transparent;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        transition: color 0.2s, border-color 0.2s;
        flex-shrink: 0;
    }
    .nf-tab:hover { color: #111; border-bottom-color: rgba(229,16,26,0.3); }
    .nf-tab.active { color: #111; border-bottom-color: #e5101a; }
    .nf-count {
        font-size: 0.65rem;
        background: #f0f0f0;
        color: #888;
        padding: 2px 7px;
        border-radius: 10px;
    }
    .nf-tab.active .nf-count { background: rgba(229,16,26,0.1); color: #e5101a; }
    .nf-search {
        margin-left: auto;
        display: flex;
        align-items: center;
        border-left: 1px solid #ebebeb;
        flex-shrink: 0;
    }
    .nf-search input {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.82rem;
        border: none;
        outline: none;
        padding: 18px 14px;
        width: 170px;
        background: transparent;
        color: #111;
    }
    .nf-search input::placeholder { color: #ccc; }
    .nf-search button {
        background: none;
        border: none;
        padding: 18px 14px 18px 0;
        color: #bbb;
        cursor: pointer;
        font-size: 0.82rem;
        transition: color 0.2s;
    }
    .nf-search button:hover { color: #e5101a; }
    .nf-clear {
        font-family: 'Oswald', sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #999;
        text-decoration: none;
        padding: 18px 16px;
        border-left: 1px solid #ebebeb;
        white-space: nowrap;
        transition: color 0.2s;
    }
    .nf-clear:hover { color: #e5101a; }

    /* ── Main area ── */
    .news-main { padding: 56px 0 72px; }

    /* ── Featured hero card ── */
    .news-featured { margin-bottom: 3px; }
    .nf-hero-card {
        display: grid;
        grid-template-columns: 57% 43%;
        height: 380px;
        text-decoration: none;
        overflow: hidden;
    }
    .nf-hero-img { position: relative; overflow: hidden; background: #1a1a1a; }
    .nf-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
    .nf-hero-card:hover .nf-hero-img img { transform: scale(1.04); }
    .nf-hero-img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 60%, rgba(17,17,17,0.85));
    }
    .nf-hero-img-placeholder {
        width: 100%;
        height: 100%;
        background: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.08);
        font-size: 4rem;
    }
    .nf-hero-body {
        padding: 40px 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #111;
        border-left: 4px solid #e5101a;
    }
    .nf-cat-pill {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        margin-bottom: 14px;
        display: inline-block;
    }
    .nf-cat-pill.cat-generale { color: #e5101a; }
    .nf-cat-pill.cat-squadra { color: #60a5fa; }
    .nf-cat-pill.cat-evento { color: #a78bfa; }
    .nf-cat-pill.cat-risultato { color: #34d399; }
    .nf-cat-pill.cat-default { color: rgba(255,255,255,0.5); }
    .nf-hero-title {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: clamp(1.3rem, 2.2vw, 2rem);
        font-weight: 700;
        color: white;
        line-height: 1.1;
        letter-spacing: -0.5px;
        margin-bottom: 14px;
    }
    .nf-hero-excerpt {
        font-size: 0.88rem;
        color: rgba(255,255,255,0.6);
        line-height: 1.65;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .nf-hero-meta {
        font-size: 0.72rem;
        color: rgba(255,255,255,0.4);
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .nf-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
    .nf-read-more {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 0.73rem;
        font-weight: 700;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: #e5101a;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: gap 0.2s;
    }
    .nf-hero-card:hover .nf-read-more { gap: 14px; }
    .nf-read-more::after { content: '\2192'; }

    /* ── Secondary grid (2 cards below hero) ── */
    .nf-secondary-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        margin-top: 3px;
    }

    /* ── News Card ── */
    .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 3px;
        margin-bottom: 48px;
    }
    .news-card {
        background: white;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        border-top: 3px solid transparent;
        transition: border-top-color 0.2s, box-shadow 0.2s;
    }
    .news-card:hover { border-top-color: #e5101a; box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
    .nc-img-wrap {
        position: relative;
        aspect-ratio: 16/9;
        overflow: hidden;
        background: #1a1a1a;
    }
    .nc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
    .news-card:hover .nc-img-wrap img { transform: scale(1.03); }
    .nc-img-placeholder {
        width: 100%; height: 100%;
        background: #222;
        display: flex; align-items: center; justify-content: center;
        color: rgba(255,255,255,0.08); font-size: 2.5rem;
    }
    .nc-badge {
        position: absolute;
        top: 0;
        left: 0;
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: white;
        padding: 5px 12px;
        background: #e5101a;
    }
    .nc-badge.cat-squadra { background: #1e3a8a; }
    .nc-badge.cat-evento { background: #7c3aed; }
    .nc-badge.cat-risultato { background: #059669; }
    .nc-badge.cat-default { background: #4b5563; }
    .nc-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
    .nc-title {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 1.08rem;
        font-weight: 700;
        color: #111;
        line-height: 1.2;
        letter-spacing: -0.2px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .nc-excerpt {
        font-size: 0.84rem;
        color: #666;
        line-height: 1.65;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 14px;
    }
    .nc-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.70rem;
        color: #bbb;
        border-top: 1px solid #f2f2f2;
        padding-top: 12px;
        gap: 8px;
    }
    .nc-footer span { display: inline-flex; align-items: center; gap: 4px; }
    .nc-arrow {
        font-family: 'Oswald', sans-serif;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #e5101a;
        opacity: 0;
        transition: opacity 0.2s;
    }
    .news-card:hover .nc-arrow { opacity: 1; }

    /* ── Section label ── */
    .news-section-label {
        display: flex;
        align-items: center;
        gap: 16px;
        border-top: 2px solid #111;
        padding-top: 28px;
        margin-bottom: 28px;
    }
    .nsl-text {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 4px;
        text-transform: uppercase;
        color: #111;
    }
    .nsl-count { font-size: 0.62rem; color: #bbb; font-weight: 700; letter-spacing: 1px; }

    /* ── Pagination ── */
    .news-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 16px 0 32px;
    }
    .pg-btn {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 1px;
        color: #555;
        text-decoration: none;
        padding: 10px 16px;
        border: 1px solid #ddd;
        background: white;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
    }
    .pg-btn:hover { background: #111; color: white; border-color: #111; }
    .pg-btn.active { background: #e5101a; color: white; border-color: #e5101a; }
    .pg-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }

    /* ── Empty state ── */
    .news-empty { text-align: center; padding: 80px 20px; }
    .news-empty i { font-size: 2.5rem; display: block; margin-bottom: 20px; color: #ddd; }
    .news-empty h3 {
        font-family: 'Oswald', sans-serif;
        font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 10px;
    }
    .news-empty p { font-size: 0.88rem; color: #aaa; margin-bottom: 24px; }
    .news-empty-link {
        font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
        font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
        color: #e5101a; text-decoration: none;
        display: inline-flex; align-items: center; gap: 8px;
    }
    .news-empty-link::after { content: '\2192'; }

    /* ── Responsive ── */
    @media (max-width: 820px) {
        .nf-hero-card { grid-template-columns: 1fr; height: auto; }
        .nf-hero-img { height: 240px; }
        .nf-hero-img::after { background: linear-gradient(180deg, transparent 50%, rgba(17,17,17,0.9)); }
        .nf-hero-body { padding: 24px 22px; border-left: none; border-top: 4px solid #e5101a; }
        .nf-secondary-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 580px) {
        .news-grid { grid-template-columns: 1fr; }
        .nf-search { width: 100%; }
        .nf-search input { width: 100%; min-height: 44px; }
        .news-filter-inner { padding-right: 8px; }
    }
