/* =========================================================
   TOP NEWS
   ========================================================= */

#top-news {
    --mare-blue: #0068b4;
    --mare-blue-dark: #00538f;
    --mare-line: #dbe5ec;
    --card-radius: 6px;

    width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

#top-news-left {
    min-width: 0;
}

.top-news-hero {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    min-height: 490px;

    overflow: hidden;

    border-radius: 7px;

    background: #001b2e;

    text-decoration: none;
}


/*
 * Immagine hero
 */
.top-news-hero > img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 490px;

    object-fit: cover;
    object-position: center;

    transition: transform .45s ease;
}


/*
 * Gradient scuro nella parte bassa
 */
.top-news-hero::after {
    content: "";

    position: absolute;
    z-index: 1;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .72) 0%,
            rgba(0, 0, 0, .34) 30%,
            rgba(0, 0, 0, .08) 52%,
            rgba(0, 0, 0, 0) 70%
        );

    pointer-events: none;
}


/*
 * Titolo e pulsante
 */
.top-news-hero-overlay {
    position: absolute;
    z-index: 2;

    left: 30px;
    right: 30px;
    bottom: 28px;
}


/*
 * Titolo principale
 */
.top-news-hero h1 {
    max-width: 650px;

    margin: 0 0 18px;

    color: #fff;

    font-family: "Viaoda Libre", serif;
    font-size: clamp(40px, 3.3vw, 62px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: -.5px;

    text-transform: none;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, .25);
}


/*
 * Bottone Leggi l'articolo
 */
.top-news-hero-button {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    padding: 8px 17px;

    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 30px;

    color: #fff;

    background: rgba(0, 0, 0, .20);

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: .3px;

    text-transform: uppercase;

    transition:
        background .25s ease,
        color .25s ease;
}

.top-news-hero-button > span {
    font-size: 19px;
    font-weight: 400;
}


/*
 * Hover Hero
 */
.top-news-hero:hover > img {
    transform: scale(1.025);
}

.top-news-hero:hover .top-news-hero-button {
    color: #111;
    background: #fff;
}


/* =========================================================
   IN RILIEVO
   ========================================================= */

#top-news-right {
    min-width: 0;
}


/*
 * Titolo sezione
 */
.top-news-section-title {
    display: flex;
    align-items: center;

    gap: 15px;

    height: 28px;

    margin-bottom: 10px;
}

.top-news-section-title h2 {
    flex: 0 0 auto;

    margin: 0;

    color: var(--mare-blue-dark);

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
}

.top-news-section-title > span {
    flex: 1;

    height: 1px;

    background: var(--mare-line);
}


/* =========================================================
   GRIGLIA CARD
   ========================================================= */

.highlight-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}


/* =========================================================
   CARD
   ========================================================= */

.highlight-card {
    display: block;

    min-width: 0;

    overflow: hidden;

    border-radius: var(--card-radius);

    color: #111;
    text-decoration: none;

    background: #fff;

    box-shadow:
        0 2px 8px rgba(0, 35, 65, .08);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


/*
 * Immagine
 */
.highlight-card-image {
    width: 100%;

    aspect-ratio: 1.55 / 1;

    overflow: hidden;

    background: #e9eef2;
}

.highlight-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}


/*
 * Corpo card
 */
.highlight-card-body {
    padding: 6px 8px 9px;
}


/*
 * Categoria
 */
.highlight-card-category {
    display: block;

    margin-bottom: 4px;

    overflow: hidden;

    color: var(--mare-blue);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;

    letter-spacing: .1px;

    text-transform: uppercase;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/*
 * Titolo
 */
.highlight-card-title {
    display: -webkit-box;

    overflow: hidden;

    color: #111;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.18;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/*
 * Hover card
 */
.highlight-card:hover {
    color: #111;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 35, 65, .14);
}

.highlight-card:hover .highlight-card-image img {
    transform: scale(1.045);
}


/* =========================================================
   LG
   da 992px: HERO 7 colonne / IN RILIEVO 5 colonne
   ========================================================= */

@media (min-width: 992px) {

    /*
     * Visto che la colonna destra è solo 5/12,
     * manteniamo le card compatte.
     */
    .highlight-grid {
        gap: 9px;
    }

    .highlight-card-body {
        padding: 6px 7px 8px;
    }

    .highlight-card-category {
        font-size: 8.5px;
    }

    .highlight-card-title {
        font-size: 11.5px;
        line-height: 1.16;
    }

}


/* =========================================================
   XL
   ========================================================= */

@media (min-width: 1200px) {

    .highlight-card-category {
        font-size: 9px;
    }

    .highlight-card-title {
        font-size: 12px;
    }

}


/* =========================================================
   XXL
   ========================================================= */

@media (min-width: 1400px) {

    .highlight-grid {
        gap: 10px;
    }

    .highlight-card-body {
        padding: 7px 9px 9px;
    }

    .highlight-card-category {
        font-size: 9px;
    }

    .highlight-card-title {
        font-size: 13px;
        line-height: 1.18;
    }

}


/* =========================================================
   TABLET E MOBILE
   sotto i 992px i due blocchi tornano a 12 colonne
   ========================================================= */

@media (max-width: 991.98px) {

    .top-news-hero {
        height: auto;
        min-height: 0;
    }

    .top-news-hero > img {
        height: auto;
        min-height: 0;

        aspect-ratio: 16 / 9;

        object-fit: cover;
    }

    .top-news-hero h1 {
        font-size: 48px;
    }


    /*
     * In rilievo torna largo al 100%.
     * Possiamo permetterci card più grandi.
     */
    .highlight-grid {
        gap: 14px;
    }

    .highlight-card-category {
        font-size: 10px;
    }

    .highlight-card-title {
        font-size: 15px;
        line-height: 1.2;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .top-news-hero {
        border-radius: 0;
    }

    .top-news-hero > img {
        aspect-ratio: 4 / 3;
    }

    .top-news-hero-overlay {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .top-news-hero h1 {
        margin-bottom: 12px;

        font-size: 36px;
        line-height: 1;
    }

    .top-news-hero-button {
        padding: 7px 14px;

        font-size: 11px;
    }


    /*
     * Titolo In rilievo
     */
    .top-news-section-title {
        padding-left: 12px;
        padding-right: 12px;

        margin-bottom: 10px;
    }


    /*
     * Su smartphone le card scorrono orizzontalmente
     */
    .highlight-grid {
        display: flex;

        gap: 12px;

        padding:
            2px
            12px
            14px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .highlight-grid::-webkit-scrollbar {
        display: none;
    }


    /*
     * Circa una card e un pezzo della successiva:
     * rende evidente che si può scorrere.
     */
    .highlight-card {
        flex: 0 0 72%;

        scroll-snap-align: start;
    }


    .highlight-card-image {
        aspect-ratio: 16 / 9;
    }

    .highlight-card-body {
        padding: 8px 10px 11px;
    }

    .highlight-card-category {
        font-size: 10px;
    }

    .highlight-card-title {
        font-size: 15px;
        line-height: 1.2;
    }

}


/* =========================================================
   MOBILE PICCOLO
   ========================================================= */

@media (max-width: 479.98px) {

    .top-news-hero h1 {
        font-size: 32px;
    }

    .highlight-card {
        flex-basis: 82%;
    }

}







.loop-article-content {
    padding-left: 24px;
}

/* =========================================================
   LOOP ARTICOLI
   ========================================================= */

.loop-article {
    --mare-blue: #0872bc;
    --mare-blue-dark: #07538d;
    --mare-text: #545b61;
    --mare-light: #dce5ec;

    position: relative;


}


/* =========================================================
   IMMAGINE
   ========================================================= */

.loop-article-media {
    min-width: 0;
}

.loop-article-media > a {
    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 7px;

    background: #edf1f4;
}

.loop-article-image {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 300px;

    object-fit: cover;

    transition: transform .4s ease;
}

.loop-article-media > a:hover .loop-article-image {
    transform: scale(1.025);
}


/* =========================================================
   CONTENUTO
   ========================================================= */

.loop-article-content {
    display: flex;
    flex-direction: column;

    padding-left: 24px;
}


/* =========================================================
   CATEGORIE + DATA
   ========================================================= */

.loop-article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 6px 14px;

    margin-bottom: 10px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;

    text-transform: uppercase;
}

.loop-article-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 5px;

    font-weight: 700;
}

.loop-article-categories a {
    color: var(--mare-blue);

    text-decoration: none;
}

.loop-article-categories a:hover {
    color: var(--mare-blue-dark);
}

.loop-article-categories span {
    color: #9aa4ac;
}

.loop-article-meta-top time {
    color: #8a9298;
}


/* =========================================================
   TITOLO
   ========================================================= */

.loop-article-title {
    margin: 0 0 14px;

    font-family: "Viaoda Libre", serif;
    font-size: clamp(29px, 2.3vw, 39px);
    font-weight: 400;
    line-height: 1.08;

    text-transform: none;
}

.loop-article-title a {
    color: var(--mare-blue-dark);

    text-decoration: none;

    transition: color .2s ease;
}

.loop-article-title a:hover {
    color: var(--mare-blue);
}


/* =========================================================
   TESTO
   ========================================================= */

.loop-article-excerpt {
    flex: 1;

    color: var(--mare-text);

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.62;
}

.loop-article-excerpt p {
    margin: 0 0 16px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.loop-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;
    padding-top: 10px;
}


/* Commenti */

.loop-article-comments a {
    color: #8a9298;

    font-family: Arial, sans-serif;
    font-size: 12px;

    text-decoration: none;
}

.loop-article-comments i {
    margin-right: 4px;

    color: var(--mare-blue);
}


/* CTA */

.loop-article-readmore {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 7px 14px;

    border: 1px solid #aab5bd;
    border-radius: 30px;

    color: #65717a;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.loop-article-readmore span {
    font-size: 18px;
    line-height: 1;
}

.loop-article-readmore:hover {
    color: #fff;

    border-color: var(--mare-blue);
    background: var(--mare-blue);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .loop-article-content {
        padding-left: 18px;
    }

    .loop-article-title {
        font-size: 30px;
    }

    .loop-article-excerpt {
        font-size: 15px;
        line-height: 1.55;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .loop-article {
        margin-bottom: 26px;
        padding-bottom: 26px;
    }

    .loop-article-media > a {
        border-radius: 6px;
    }

    .loop-article-image {
        min-height: 0;

        aspect-ratio: 16 / 10;
    }

    .loop-article-content {
        padding: 16px 4px 0;
    }

    .loop-article-meta-top {
        margin-bottom: 8px;
    }

    .loop-article-title {
        margin-bottom: 12px;

        font-size: 29px;
        line-height: 1.08;
    }

    .loop-article-excerpt {
        font-size: 15px;
        line-height: 1.5;
    }

    .loop-article-footer {
        margin-top: 5px;
    }

}


/* =========================================================
   MOBILE PICCOLO
   ========================================================= */

@media (max-width: 479.98px) {

    .loop-article-title {
        font-size: 27px;
    }

    .loop-article-footer {
        align-items: flex-end;
    }

    .loop-article-comments {
        font-size: 11px;
    }

}


@media (min-width: 768px) {

    .loop-article:nth-of-type(even) .loop-article-media {
        order: 2;
    }

    .loop-article:nth-of-type(even) .loop-article-content {
        order: 1;

        padding-left: 0;
        padding-right: 24px;
    }

}



/* =========================================================
   SINGLE ARTICLE 2026
   ========================================================= */

h1.article_title span,
.single-article {
    --mare-blue: #0673ba;
    --mare-blue-dark: #07578f;
    --mare-text: #42494e;
    --mare-muted: #818b92;
    --mare-line: #dde6ec;

    padding: 0;
}


/* =========================================================
   TITOLO
   ========================================================= */

.single-article-header {
    margin-bottom: 20px;
}

h1.article_title span,
.single-article .article_title {

    color: var(--mare-blue-dark);

    margin: 0 0 14px;
    font-family: "Viaoda Libre", serif;
    /*font-size: clamp(29px, 2.3vw, 39px);*/
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.08;
    text-transform: none;

    letter-spacing: -.5px;

    text-transform: none;
}


/* =========================================================
   FOTO PRINCIPALE
   ========================================================= */

.single-article-cover {
    margin-bottom: 15px;

    overflow: hidden;

    border-radius: 7px;

    background: #edf1f4;
}

.single-article-cover img {
    display: block;

    width: 100%;
    height: auto;

    transition: transform .4s ease;
}


/* =========================================================
   CONTENUTO
   ========================================================= */

.single-article-content {
    color: var(--mare-text);

    font-size: 18px;
    line-height: 1.68;
}

.single-article-content p {
    margin: 0 0 1.35em;
	font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.62;
    color: #545b61; 
}


/* =========================================================
   H2
   ========================================================= */

.single-article-content h2 {
    position: relative;

    margin: 40px 0 19px;
    padding-bottom: 11px;

    color: var(--mare-blue-dark);

    font-family: "Viaoda Libre", serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.15;

    border-bottom: 1px solid var(--mare-line);
}

.single-article-content h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 55px;
    height: 2px;

    background: var(--mare-blue);
}


/* =========================================================
   H3
   ========================================================= */

.single-article-content h3 {
    margin: 30px 0 14px;

    color: var(--mare-blue-dark);

    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}


/* =========================================================
   LINK CONTENUTO
   ========================================================= */

.single-article-content a {
    color: var(--mare-blue);

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.single-article-content a:hover {
    color: var(--mare-blue-dark);
}


/* =========================================================
   LISTE
   ========================================================= */

.single-article-content ul,
.single-article-content ol {
    margin-bottom: 25px;

    padding-left: 25px;
}

.single-article-content li {
    margin-bottom: 7px;
}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

.single-article-content blockquote {
    margin: 28px 0;
    padding: 3px 0 3px 20px;

    border-left: 3px solid var(--mare-blue);

    color: #626b71;

    font-family: "Viaoda Libre", serif;
    font-size: 23px;
    line-height: 1.35;
}


/* =========================================================
   META FINALE
   ========================================================= */

.single-article-meta {
    margin-top: 35px;
    padding-top: 16px;

    border-top: 1px solid var(--mare-line);

    color: var(--mare-muted);

    line-height: 1.55;
}

.single-article-meta a {
    color: var(--mare-blue);

    text-decoration: none;
}

.single-article-meta a:hover {
    color: var(--mare-blue-dark);
}


/* =========================================================
   SHARE
   ========================================================= */

.single-article-share {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid var(--mare-line);
}

.single-article-share .share-title {
    margin-bottom: 12px;

    color: var(--mare-blue-dark);

    font-size: 14px;
    font-weight: 600;

    text-transform: uppercase;
}


/* =========================================================
   CORRELATI
   ========================================================= */

.single-related {
    margin-top: 35px;
    margin-bottom: 20px;
}

.single-related-title {
    margin-bottom: 15px;

    color: var(--mare-blue-dark);

    font-size: 15px;
    font-weight: 700;

    text-align: center;
    text-transform: uppercase;
}

.related-article-card {
    display: flex;
    align-items: center;

    height: 100%;

    padding: 8px;

    overflow: hidden;

    border: 1px solid var(--mare-line);
    border-radius: 6px;

    color: var(--mare-blue-dark);

    text-decoration: none;

    background: #fff;

    box-shadow: 0 2px 7px rgba(0, 35, 65, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.related-thumb-wrapper {
    flex: 0 0 82px;

    width: 82px;
    height: 82px;

    margin-right: 12px;

    overflow: hidden;

    border-radius: 5px;
}

.related-thumb {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.related-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #e5ebef;

    color: #89949c;
}

.related-content-text {
    display: -webkit-box;

    overflow: hidden;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.related-article-card:hover {
    color: var(--mare-blue);

    border-color: #bdceda;

    transform: translateY(-2px);

    box-shadow: 0 6px 15px rgba(0, 35, 65, .11);
}

.related-article-card:hover .related-thumb {
    transform: scale(1.04);
}


/* =========================================================
   COMMENTI
   ========================================================= */

.single-article-comments {
    margin-top: 25px;
}

.single-article-comments > ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .single-article-header {
        margin-bottom: 15px;
    }

    .single-article .article_title {
        font-size: 34px;
        line-height: 1.05;
    }

    .single-article-cover {
        margin-left: -4px;
        margin-right: -4px;
        margin-bottom: 20px;

        border-radius: 5px;
    }

    .single-article-content {
        font-size: 16px;
        line-height: 1.62;
    }

    .single-article-content h2 {
        margin-top: 32px;

        font-size: 27px;
    }

    .single-article-content h3 {
        font-size: 20px;
    }

    .single-article-content blockquote {
        font-size: 20px;
    }

    .single-article-meta {
        margin-top: 28px;
    }

}


