#main{
    background-color: white;
    padding: 20pt;
    display: flex;
    flex-direction: column;
    gap: 20pt;
    align-items: center;
    justify-content: center;
}

h2{
    font-size: 16pt;
    font-weight: 700;
    margin-top: 20pt;
    color: #a00000;
}

.program-intro {
    max-width: 90%;
    font-size: 11pt;
    line-height: 1.6;
    text-align: center;
}

.btn{
    width: min(90vw, 600pt);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn .btn-text{
    color: black;
    cursor: pointer;
    width: 100%;
    font-size: 14pt;
    font-weight: 700;
    transition: all 0.35s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8pt;
}

.btn .btn-text::after {
    content: "";
    display: inline-block;
    width: 12pt;
    height: 12pt;
    background: url("../img/arrow_down.png") center / contain no-repeat;
    flex: 0 0 12pt;
    transition: transform 0.35s ease;
    vertical-align: middle;
}

.btn:hover .btn-text{
    color: #a00000;
}

h4{
    font-size: 13pt;
    font-weight: 700;
    margin-top: 20pt;
    color: #a00000;
}

.descrizione {
    max-height: 0;
    font-size: 11pt;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-5px);
    transition: all 0.35s ease;
}

.item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    text-align: center;
}

.item input:checked ~ .descrizione {
    max-height: 3000pt;
    opacity: 1;
    margin: 20pt 0 50pt 0;
    transform: translateY(0);
}

.item input:checked ~ .btn .btn-text {
    color: #a00000;
    transform: translateY(-5pt);
    text-decoration: underline;
    font-size: 20pt;
}

.item input:checked ~ .btn .btn-text::after {
    transform: rotate(180deg);
}

#programma_link{
    margin-top: 20pt;
    margin-bottom: 15pt;
}

#programma_link a{
    font-size: 15pt;
    text-decoration: underline;
    color: #a00000;
}

@media screen and (max-width: 768px) {
    #main{
        padding: 15pt;
    }

    ol{
        margin-top: 20pt;
        padding-left: 18pt;
    }

    h2{
        font-size: 14pt;
        margin-top: 15pt;
        line-height: 1.4;
    }

    h4{
        font-size: 12pt;
        margin-top: 15pt;
        line-height: 1.4;
    }

    .program-intro {
        font-size: 10.5pt;
    }

    .btn .btn-text{
        max-width: 100%;
        width: 100%;
        font-size: 12pt;
        line-height: 1.5;
        display: flex;
        gap: 6pt;
    }

    .btn .btn-text::after {
        width: 10pt;
        height: 10pt;
        flex-basis: 10pt;
    }

    .descrizione {
        font-size: 10.5pt;
        line-height: 1.6;
    }

    .item input:checked ~ .descrizione {
        margin: 15pt 0 35pt 0;
    }

    .item input:checked ~ .btn .btn-text {
        transform: translateY(-2pt);
    }
}
