﻿/* ============================================================
   NEWS CARD  stile blog moderno (aggiunta a union.css)
   Usare la classe .newsCard sull'elemento .riquadroHome5
   ============================================================ */

.newsCard {
    flex: 0 0 calc(25% - 12px) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e8e0d8 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.07) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform .20s ease, box-shadow .20s ease, border-color .20s ease !important;
    cursor: pointer;
}
.newsCard:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.11) !important;
    border-color: #00A0E3 !important;
}

/* --- immagine --- */
.newsCardFoto {
    width: 100%;
    height: 180px !important;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
    background: #f0ece6;
}
.newsCardFoto a {
    display: block;
    width: 100%;
    height: 100%;
}

.newsCardFoto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .30s ease;
}

.newsCard:hover .newsCardFoto img {
    transform: scale(1.04);
}

/* --- area testo --- */
.newsCardInfo {
	padding: 8px 13px 10px 13px;
	background: #ffffff;
}

/* badge Aazzurro NEWS */
.newsCardBadge {
    display: inline-block !important;
    align-self: flex-start !important;
    width: auto !important;
    flex: 0 0 auto !important;
    background: #00A0E3;
    color: #ffffff;
    font-family: Effra_Light, Arial, Verdana, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    margin-bottom: 7px;
}

/* titolo */
.newsCardTitolo {
    font-family: Effra_Light, Arial, Verdana, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3em;

    /* tronca a 2 righe */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsCardTitolo a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.newsCardTitolo a:hover {
    color: #00A0E3 !important;
}

/* data piccola sotto il titolo */
.newsCardData {
    font-family: Effra_Light, Arial, Verdana, Helvetica, sans-serif;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   Smartphone: altezza libera
   Tablet e PC: card uniformi anche con titoli a 1 o 2 righe
   ============================================================ */
@media screen and (max-width: 719px) {
    .newsCard {
        min-height: 0 !important;
        height: auto !important;
    }

    .newsCardTitolo {
        font-size: 13px;
    }
}

/* Tablet e PC */
@media screen and (min-width: 720px) {

    .newsCard {
        height: 285px !important;
        min-height: 285px !important;
        max-height: 285px !important;
    }

    .newsCardInfo {
        height: 105px !important;
        min-height: 105px !important;
        max-height: 105px !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .newsCardTitolo {
        min-height: 2.6em !important;
        max-height: 2.6em !important;
        overflow: hidden;
    }

    .newsCardData {
        margin-top: auto;
    }
}
