/**
 * News page – stili dedicati (usa variabili da style.css: --orange, --blue, ecc.)
 */

/* ========== Hero News ========== */
.news-hero {
    position: relative;
    height: 200px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.75);
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 1, 71, 0.85) 0%, rgba(1, 1, 71, 0.6) 100%);
    z-index: 1;
}

.news-hero .container {
    position: relative;
    z-index: 2;
}

.news-hero-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--blue);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.news-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--white);
}

.news-hero-subtitle {
    opacity: 0.95;
    font-size: 0.95rem;
    color: var(--white);
}

@media (min-width: 768px) {
    .news-hero {
        height: 220px;
        min-height: 200px;
    }
}

/* ========== Filtri ========== */
.news-filter-badge {
    background: #fff !important;
    color: var(--blue) !important;
    border: 1px solid rgba(1, 1, 71, 0.2);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-filter-badge:hover,
.news-filter-badge.active {
    background: var(--blue) !important;
    color: #fff !important;
    border-color: var(--blue);
}

/* ========== Griglia News ========== */
.news-grid-section {
    background: #fff;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

.news-card a:hover .news-card-title {
    color: var(--blue);
}

.news-card-featured .news-card-img-wrap {
    position: relative;
    padding-top: 0;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
}

.news-card-featured .news-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-standard .news-card-img-wrap {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.news-card-standard .news-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-standard .news-card-img {
    transform: scale(1.06);
}

.news-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 1;
}

.news-card-category-inline {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.news-card-date {
    font-size: 0.8rem;
}

.news-card-title {
    color: var(--blue);
    transition: color 0.2s ease;
}

.news-card-excerpt {
    line-height: 1.5;
}

.news-card-link {
    transition: transform 0.2s ease;
}

.news-card:hover .news-card-link {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .news-card-featured .news-card-img-wrap {
        min-height: 200px;
    }
}

/* ========== Pagina Dettaglio News ========== */
.news-detail-page .breadcrumb-item a {
    color: var(--blue);
    text-decoration: none;
}

.news-detail-page .breadcrumb-item a:hover {
    text-decoration: underline;
}

.news-detail-article .container-narrow {
    max-width: 720px;
}

.news-detail-category {
    background-color: var(--blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

.news-detail-date {
    font-size: 0.9rem;
}

.news-detail-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--blue);
    line-height: 1.3;
}

.news-detail-img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.news-detail-content p {
    margin-bottom: 1rem;
}

.news-detail-content p:last-child {
    margin-bottom: 0;
}

.news-detail-content a {
    color: var(--blue);
    font-weight: 500;
}

.news-detail-content a:hover {
    color: var(--orange);
}

.news-detail-others .news-card {
    background: #fff;
}
