/* css della nostra homepage con gestione delle pagine dei post/comunicazioni: 
    7. home
    13. comunicazioni
    13.1 pagina singola
*/
/* ============================================================
   7. HOME
============================================================ */
.home-content{
    display:flex;
    gap:30px;
    align-items:flex-start;
    padding:40px;
}

.news{
    flex:2;
    padding:30px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 0 15px rgba(0,0,0,.08);
}

.sidebar{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:30px;
}

.map,
.promo{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 0 15px rgba(0,0,0,.08);
}

.promo img{
    width:100%;
    border-radius:10px;
    margin-bottom:15px;
}

.promo h3{
    margin-bottom:10px;
}

.promo p{
    margin-bottom:20px;
}

.news-card{
    display:flex;
    gap:25px;
    padding:20px;
    margin-bottom:25px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.news-image{
    flex:0 0 35%;
}

.news-image img{
    width:100%;
    height:150px;
    object-fit:cover;
    border-radius:10px;
}

.news-date{
    margin-top:15px;
    text-align:right;
    color:#777;
}

.news-info{
    flex:1;
    position:relative;
    display:flex;
    flex-direction:column;
}

.news-excerpt{
    position:relative;
    max-height:115px;
    overflow:hidden;
    margin:15px 0;
    line-height:1.7;
}

.news-excerpt::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:55px;
    background:linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );
}

/* ==========================================================
   13. COMUNICAZIONI
========================================================== */
.latest-news{
    margin:60px auto;
}

.news-card{
    display:flex;
    gap:25px;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.10);
    transition:.3s;
}

.news-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(0,0,0,.15);
}

.news-image{
    flex:0 0 320px;
}

.news-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.news-content{
    flex:1;
    padding:25px;
    display:flex;
    flex-direction:column;
}

.news-category{
    display:inline-block;
    width:max-content;
    padding:6px 12px;
    border-radius:20px;
    background:#003b7a;
    color:#fff;
    font-size:.8rem;
    font-weight:600;
    margin-bottom:15px;
}

.news-content h3{
    margin:0 0 15px;
    color:#003b7a;
}

.news-excerpt{
    flex:1;
    line-height:1.7;
    color:#555;
    position:relative;
    max-height:135px;
    overflow:hidden;
}

.news-excerpt::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:55px;
    background:linear-gradient(
        transparent,
        white
    );
}

.news-button{
    margin-top:20px;
    text-decoration:none;
    font-weight:600;
    color:#b9973e;
}

.news-button:hover{
    color:#003b7a;
}

.news-date{
    margin-top:20px;
    text-align:right;
    color:#888;
    font-size:.9rem;
}

/* ------------------------------------------------------------
   13.1 PAGINA SINGOLA
------------------------------------------------------------ */
.post-page{
    max-width:1300px;
    margin:60px auto;
    padding:40px;
    background:#fff;
    border-radius:15px;
}

.post-header{
    margin-bottom:30px;
}

.post-header h1{
    margin:15px 0;
    color:#003b7a;
}

.post-header h2{
    margin:15px 0;
    color:#003b7a;
}

.post-date{
    color:#777;
}

.post-image{
    float:left;
    width:50%;
    max-width:700px;
    margin:0 30px 20px 0;
}

.post-image img{
    width:100%;
    height:auto;
    display:block;
    border-radius:15px;
}

.post-content{
    line-height:1.9;
    color:#444;
}

.post-content p{
    margin-bottom:20px;
}
/* parte responsive per le immagini degli atricoli su telefono*/
@media (max-width:768px){

    .post-page{
        padding:0;
        margin:30px auto;
    }

    .post-image{
        width:100%;
        margin:0 0 25px;
    }

    .post-image img{
        width:100%;
        height:auto;
        border-radius:0;
        display:block;
    }

    .post-content{
        padding:0 20px;
    }

}
