#main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: white;
    min-height: 300pt;
}

.errore{
    text-align: center;
    align-self: center;
}

.evento{
    width: 100%;
    max-width: 800pt;
    height: 500pt;
    max-height: 500pt;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1px rgb(171, 35, 27);
}

.evento_container{
    max-width: inherit;
    max-height: inherit;
    width: inherit;
    height: inherit;
    padding: 0 70pt;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    font-size: 24pt;
}

.evento_container p{
    margin: 15pt; 
    font-size: 16pt;
}

.evento_container a{
    color: white;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.evento_container a:hover{
    color: #e30000;
}

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

.evento_btn:hover{
    background-color: #a00000;
    color: white;
    border-radius: 25px;
    border: solid 2px rgba(255, 0, 0, 0.3);
    box-shadow: 1px 1px 25px 10px rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}


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

    #main {
        padding: 20px 10px;
    }

    .evento {
        height: auto;
        min-height: 320px;
    }

    .evento_container {
        padding: 24px 18px;
        align-items: center;
        text-align: center;
        font-size: clamp(18px, 5vw, 24px);
    }

    .evento_container p {
        margin: 10pt 0;
        font-size: 16px;
        line-height: 1.5;
    }

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

    .evento_btn:hover {
        transform: none;
    }
}
