/*
 * Regimeminimi.com — News Hub V1
 */


/* Elimina titolo/descrizione legacy e breadcrumb duplicati */

.category-news .archive-description {
    display:none !important;
}

.category-news .content .breadcrumb,
.category-news .content .rank-math-breadcrumb {
    display:none !important;
}


/* HUB */

.rm-news-hub {
    width:100%;
    max-width:1040px;
    margin:0 auto;
}


/* HEADER */

.rm-news-heading {
    max-width:800px;
    margin:30px 0 48px;
}

.rm-news-eyebrow {
    display:block;
    margin-bottom:13px;
    color:var(--rm-color-primary);
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.rm-news-heading h1 {
    margin:0 0 17px;
    color:var(--rm-color-heading);
    font-size:clamp(42px,5vw,56px);
    line-height:1;
    letter-spacing:-.045em;
}

.rm-news-heading p {
    max-width:760px;
    margin:0;
    color:#59667a;
    font-size:18px;
    line-height:1.6;
}


/* FEATURED */

.rm-news-featured {
    display:grid;
    grid-template-columns:1.05fr .95fr;
    min-height:390px;
    margin-bottom:26px;
    overflow:hidden;
    border-radius:18px;
    background:#edf3ff;
}

.rm-news-featured-media {
    min-height:390px;
}

.rm-news-featured-media img {
    display:block;
    width:100%;
    height:100%;
    min-height:390px;
    object-fit:cover;
}

.rm-news-featured-fallback {
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    width:100%;
    height:100%;
    min-height:390px;
    padding:38px;
    background:#0a3267;
    color:#fff;
}

.rm-news-featured-fallback span {
    color:#a9c8fb;
    font-size:13px;
    font-weight:700;
    letter-spacing:.10em;
}

.rm-news-featured-fallback strong {
    font-size:38px;
    line-height:1;
    letter-spacing:-.04em;
}

.rm-news-featured-copy {
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:42px;
}

.rm-news-badge {
    align-self:flex-start;
    margin-bottom:15px;
    padding:6px 9px;
    border-radius:7px;
    background:#fff;
    color:#111318;
    font-size:12px;
    font-weight:700;
}

.rm-news-featured-copy time {
    margin-bottom:14px;
    color:#667085;
    font-size:14px;
}

.rm-news-featured-copy h2 {
    margin:0 0 17px;
    color:#111318;
    font-size:clamp(30px,3.2vw,39px);
    line-height:1.07;
    letter-spacing:-.035em;
}

.rm-news-featured-copy p {
    margin:0 0 27px;
    color:#4f5b6d;
    font-size:16px;
    line-height:1.6;
}

.rm-news-featured-button {
    align-self:flex-start;
    display:inline-flex;
    padding:12px 17px;
    border-radius:8px;
    background:var(--rm-color-primary);
    color:#fff;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.rm-news-featured-button:hover {
    background:var(--rm-color-primary-hover);
    color:#fff;
}


/* TEMI RAPIDI */

.rm-news-paths {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin:0 0 50px;
}

.rm-news-paths > span {
    margin-right:5px;
    color:#20262e;
    font-size:14px;
    font-weight:700;
}

.rm-news-paths a {
    padding:7px 11px;
    border:1px solid #ccd4df;
    border-radius:999px;
    color:#253044;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

.rm-news-paths a:hover {
    border-color:var(--rm-color-primary);
    color:var(--rm-color-primary);
}


/* LISTA + ASIDE */

.rm-news-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 260px;
    gap:55px;
    align-items:start;
}

.rm-news-list-heading {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    padding-bottom:15px;
    border-bottom:1px solid #d8dde5;
}

.rm-news-list-heading h2 {
    margin:0;
    font-size:29px;
    letter-spacing:-.03em;
}

.rm-news-list-heading span {
    color:#758195;
    font-size:13px;
}


/* RIGA NEWS */

.rm-news-row {
    padding:30px 0 32px;
    border-bottom:1px solid #d8dde5;
}

.rm-news-date {
    display:block;
    margin-bottom:9px;
    color:#758195;
    font-size:13px;
    font-weight:600;
}

.rm-news-row h3 {
    max-width:720px;
    margin:0 0 12px;
    font-size:28px;
    line-height:1.12;
    letter-spacing:-.025em;
}

.rm-news-row h3 a {
    color:#111318;
    text-decoration:none;
}

.rm-news-row h3 a:hover {
    color:var(--rm-color-primary);
}

.rm-news-row p {
    max-width:720px;
    margin:0;
    color:#536071;
    font-size:16px;
    line-height:1.6;
}


/* ASIDE */

.rm-news-topics {
    position:sticky;
    top:105px;
}

.rm-news-topics h2 {
    margin:0 0 12px;
    font-size:24px;
}

.rm-news-topics-intro {
    margin:0 0 20px;
    color:#758195;
    font-size:14px;
    line-height:1.55;
}

.rm-news-topics-list {
    border-top:1px solid #d8dde5;
}

.rm-news-topics-list a {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:13px 0;
    border-bottom:1px solid #d8dde5;
    color:#20262e;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
}

.rm-news-topics-list a:hover {
    color:var(--rm-color-primary);
}

.rm-news-topics-list small {
    color:#8a94a5;
    font-size:12px;
}


/* PAGINAZIONE */

.rm-news-pagination {
    margin-top:46px;
}

.rm-news-pagination ul {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:0;
    padding:0;
    list-style:none;
}

.rm-news-pagination li {
    margin:0;
}

.rm-news-pagination a,
.rm-news-pagination span {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    height:38px;
    padding:0 10px;
    border:1px solid #d5dbe4;
    border-radius:7px;
    color:#263247;
    font-size:14px;
    text-decoration:none;
}

.rm-news-pagination .current {
    border-color:var(--rm-color-primary);
    background:var(--rm-color-primary);
    color:#fff;
}


/* RESPONSIVE */

@media(max-width:850px) {

    .rm-news-featured {
        grid-template-columns:1fr;
    }

    .rm-news-featured-media,
    .rm-news-featured-media img,
    .rm-news-featured-fallback {
        min-height:300px;
    }

    .rm-news-grid {
        grid-template-columns:1fr;
        gap:50px;
    }

    .rm-news-topics {
        position:static;
    }
}

@media(max-width:640px) {

    .rm-news-heading {
        margin-top:20px;
        margin-bottom:36px;
    }

    .rm-news-heading h1 {
        font-size:42px;
    }

    .rm-news-heading p {
        font-size:16px;
    }

    .rm-news-featured {
        border-radius:14px;
    }

    .rm-news-featured-copy {
        padding:28px 22px;
    }

    .rm-news-featured-copy h2 {
        font-size:30px;
    }

    .rm-news-paths {
        margin-bottom:38px;
    }

    .rm-news-paths > span {
        width:100%;
        margin-bottom:4px;
    }

    .rm-news-list-heading h2 {
        font-size:26px;
    }

    .rm-news-row {
        padding:26px 0;
    }

    .rm-news-row h3 {
        font-size:25px;
    }

    .rm-news-row p {
        font-size:15px;
    }
}


/* ==================================================
   NEWS HUB V1.1 — FEATURED FALLBACK REFINEMENT
   ================================================== */

.rm-news-featured-fallback {
    position:relative;
    overflow:hidden;
}

.rm-news-featured-fallback::before {
    content:"RM";
    position:absolute;
    top:34px;
    right:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;

    border:1px solid rgba(255,255,255,.24);
    border-radius:9px;

    color:#fff;
    font-size:13px;
    font-weight:700;
    letter-spacing:-.03em;
}

.rm-news-featured-fallback::after {
    content:"";
    position:absolute;
    left:38px;
    right:38px;
    bottom:92px;

    height:1px;
    background:rgba(255,255,255,.18);
}

.rm-news-featured-fallback > span,
.rm-news-featured-fallback > strong {
    position:relative;
    z-index:2;
}

.rm-news-featured-fallback > span {
    color:#aac7f4;
    font-size:12px;
    letter-spacing:.10em;
}

.rm-news-featured-fallback > strong {
    max-width:330px;
    font-size:42px;
    font-weight:700;
    line-height:1;
    letter-spacing:-.045em;
}

@media(max-width:640px) {

    .rm-news-featured-fallback::before {
        top:25px;
        right:25px;
        width:38px;
        height:38px;
    }

    .rm-news-featured-fallback::after {
        left:25px;
        right:25px;
        bottom:82px;
    }

    .rm-news-featured-fallback > strong {
        font-size:36px;
    }
}


/* ==================================================
   ARGOMENTI — niente contatori
   ================================================== */

.rm-news-topics-list small {
    display:none !important;
}


/* ==================================================
   TAG HUB
   ================================================== */

.rm-tag-hub-category {
    display:block;
    margin:0 0 7px;

    color:var(--rm-color-primary);
    font-size:11px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.06em;
    text-transform:uppercase;
}
