@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

a{
    color: white;
    text-decoration: underline;
}

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

#sub-titolo{
    text-align: center;
    color: #a00000;
    font-size: 34pt;
}

#content {
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
    font-size: 14pt;
}

#img_gruppo{
    width: 100%;
    max-width: 900pt;
    height: auto;
    border-radius: 10px;
    margin-top: 20pt;
    box-shadow: 1px 1px 15px 5px rgba(0, 0, 0, .5);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.2s ease-out;
    cursor: pointer;
    opacity: 0; /* Solo per l'inizio, dopo l'animazione rimane visibile */
    animation: fadein .4s ease-in-out .2s forwards;
}

#fine{
    align-self: flex-start;
    color: #a00000;
    font-weight: bold;
}

#segreteria{
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
    margin-top: 30pt;
    border-top: 1px solid #a00000;
}

#segreteria h2{
    color: #a00000;
    font-size: 20pt;
}

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

#contatti-segreteria{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20pt;
    margin-top: 20pt;
}

.colonna{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 50%;
    gap: 20pt;
}



@media (max-width: 768px) {
    #contatti-segreteria {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .colonna {
        width: 100%;
        align-items: center;
    }

    #segreteria {
        text-align: center;
    }

    #contatti-segreteria {
        font-size: 11pt;
    }

    .email-contatto {
        display: inline-block;
        max-width: 100%;
        font-size: 10.5pt;
        overflow-wrap: anywhere;
    }

    .email-contatto a {
        font-size: inherit;
    }

    #main {
        padding: 20px;
        align-items: stretch;
        margin-top: 16px;
    }

    #titolo {
        font-size: clamp(26px, 7vw, 38px);
        line-height: 1.15;
        text-align: center;
    }

    #content {
        font-size: 12pt;
        max-width: 100%;
        line-height: 1.6;
    }

    #img_gruppo {
        max-width: 100%;
        margin-top: 15px;
    }

    #fine {
        align-self: center;
        text-align: center;
    }

    a {
        font-size: 12pt;
    }
}
