* {
    box-sizing: border-box;
}

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

#evento_titolo{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 200pt;
}

#evento_titolo_container{
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 18pt;
    width: inherit;
    height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

#evento_descrizione{
    background-color: white;
    font-size: 13pt;
    padding: 40pt;
    margin-top: 15pt;
    color: black;
    border: solid 3px #a00000;
    border-radius: 150px;
    width: 90%;
    margin: 30pt 0;
}

#evento_descrizione a{
    color: #a00000;
    text-decoration: underline;
}

#evento_descrizione .editor-content { line-height: 1.7; overflow-wrap: anywhere; }
#evento_descrizione .editor-content img { max-width: 100%; height: auto; }
#evento_descrizione .editor-content figure { max-width: 100%; }
#evento_descrizione .editor-content img { max-width: 100% !important; height: auto !important; }
#evento_descrizione .editor-content figure { box-sizing: border-box; max-width: 100%; }
#evento_descrizione .editor-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
#evento_descrizione .editor-content th,
#evento_descrizione .editor-content td { border: 1px solid #777; padding: .5rem; }


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

    #main {
        margin-top: 16px;
    }

    #evento_titolo {
        height: 180pt;
    }

    #evento_titolo_container {
        font-size: 14pt;
        padding: 10pt;
        text-align: center;
    }

    #evento_descrizione {
        width: 95%;
        padding: 18px 16px;
        font-size: 15px;
        line-height: 1.6;
        margin: 18px auto 30px;
        overflow-wrap: anywhere;
    }

    #evento_titolo_container h1 {
        font-size: clamp(23px, 6vw, 32px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
}
