#main{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: white;
    padding: 30pt;
    padding-bottom: 70pt;
    margin-top: 50pt;
}



.news_row{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 25pt;
    margin: 20pt 0;
    width: 100%;
}

.news_item{
    flex: 0 0 calc((100% - 75pt) / 4);
    border: solid 3px black;
    border-radius: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 330pt;
}

.news_item_container{
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    color: white;
    padding: 15pt;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    min-height: inherit;
}

.rettifica{
    color: white;
    font-weight: bold;
    margin-bottom: 5pt;
    font-size: 10pt;
    text-align: center;
    align-self: center;
}

.news_btn{
    margin-top: 10pt;
    padding: 10pt 20pt;
    background-color: white;
    color: #a00000;
    border: solid 2px rgba(0, 0, 0, 0);
    border-radius: 15px;
    font-size: 10pt;
    align-self: flex-end;
    margin: 10pt;
    box-shadow: 1px 1px 15px 1px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.news_btn:hover{
    background-color: #a00000;
    color: white;
    border: solid 2px white;
    border-radius: 25px;
    transform: scale(1.1);
    box-shadow: 1px 1px 15px 1px rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 768px) {

    #main {
        padding: 15pt;
        align-items: center;
        margin-top: 16px;
    }

    .news_row {
        flex-direction: column;
        gap: 15pt;
        align-items: center;
    }

    .news_item {
        width: 100%;
        max-width: 350pt;
        flex: none;
        min-height: 220px;
    }

    .news_item_container {
        min-height: 220px;
        padding: 20px 16px;
        text-align: center;
        align-items: center;
    }

    .news_item_container h2 {
        font-size: 20px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .news_item_container p {
        font-size: 15px;
        line-height: 1.5;
    }

    .news_btn {
        align-self: center;
        width: min(100%, 260px);
        max-width: 230pt;
        min-height: 44px;
        font-size: 15px;
    }

    .news_btn:hover {
        transform: none;
    }
}
