body {
    background-color: #390000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

a {
    color: #fff;
    text-decoration: none;
    ;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

img {
    height: 170px;
}

header {
    background-color: #800000;
    border-radius: 0px 0px 20px 20px;
}

main {
    flex-grow: 1;
    padding: 10px 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    text-align: center;
    font-size: 34pt;
}

.subtitle {
    text-align: center;
}

.presentation {
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    gap: 50px;
    line-height: 1.5;
}

.pubblicazioni-web {
    display: flex;
    justify-content: space-around;
    margin: 20px 0px;
    text-align: center;
}

.iudpi {
    background-color: #640000;
    padding: 30px 20px;
    border-radius: 20px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.iudpi a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-weight: bold;
}

.iudpi img {
    height: 120px;
    object-fit: contain;
}

.iudpi:hover {
    background-color: #7a0000;
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

footer {
    background-color: #800000;
    padding: 20px 0px;
    border-radius: 20px 20px 0px 0px;
}

.contatti {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 15px;
}

.contatto-item {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.contatto-item:hover {
    color: #ffb3b3;
}

@media (max-width: 768px) {
    main {
        padding: 10px 10px;
    }

    .presentation {
        flex-wrap: wrap;
    }

    .header {
        justify-content: center;
    }

    .title {
        font-size: 26pt;
    }

    .logo1,
    .logo2 {
        display: none
    }

    .pubblicazioni-web {
        flex-wrap: wrap;
        margin-top: 0;
        margin-bottom: 0;
    }

    .iudpi {
        margin-bottom: 20px;
    }
}