/* Pagine Sedi e Servizi — layout da sito live UNIMC. */

.ateneo-briciole {
    background: var(--primary-color, #7E0341);
    color: #fff;
    padding: 1.15rem 0;
}

.ateneo-briciole .u-list-inline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ateneo-briciole a,
.ateneo-briciole .voce-attiva {
    color: #fff;
    text-decoration: none;
}

.ateneo-briciole a:hover {
    color: #fff;
    opacity: 0.85;
}

.ateneo-briciole .voce-attiva {
    text-decoration: underline;
}

.ateneo-briciole .sep {
    margin: 0 0.45rem;
}

.ateneo-hero {
    position: relative;
    min-height: 420px;
    height: 52vw;
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: #1a1a1a center / cover no-repeat;
}

.ateneo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.ateneo-hero .container {
    position: relative;
    z-index: 1;
}

.ateneo-hero h1 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.ateneo-copy {
    padding: 4.5rem 0 3rem;
}

.ateneo-copy p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.ateneo-mappa {
    width: 100%;
    height: auto;
    display: block;
}

.ateneo-luoghi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 7.5rem;
    column-gap: 1.5rem;
}

.ateneo-luogo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
}

.ateneo-numero {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color, #7E0341);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ateneo-card {
    color: #fff;
    padding: 1.15rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.ateneo-card h3 {
    color: #fff;
    font-weight: 700;
}

.ateneo-card a {
    color: #fff;
    font-weight: 700;
    align-self: flex-end;
}

.ateneo-card a:hover {
    color: #fff;
    text-decoration: underline;
}

.ateneo-card--talento {
    background: #28a745;
}

.ateneo-card--agevolazioni {
    background: #17a2b8;
}

.ateneo-card--alloggi {
    background: #343a40;
}

.ateneo-attivita {
    background: var(--primary-color, #7E0341);
    color: #fff;
    padding: 4.5rem 0;
}

.ateneo-attivita h2,
.ateneo-attivita p {
    color: #fff;
}

.ateneo-tile {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    margin-bottom: 1.5rem;
}

.ateneo-tile:hover {
    color: #fff;
    text-decoration: none;
}

.ateneo-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ateneo-tile--tall img {
    height: 430px;
}

.ateneo-tile:hover img {
    transform: scale(1.06);
}

.ateneo-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ateneo-tile-caption {
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1rem;
    z-index: 1;
    color: #fff;
}

.ateneo-tile-caption h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.ateneo-tile-caption p {
    margin: 0;
    color: #fff;
}

.offerta-intro {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
}

.offerta-card {
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.offerta-card:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-20px);
}

.offerta-card-body {
    height: 100%;
    min-height: 220px;
    padding: 1.6rem 1.4rem 1.4rem;
    border-radius: 0.25rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.offerta-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    min-height: 100px;
    margin: 1.5rem 0 0.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.offerta-card p {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
}

@media (max-width: 767.98px) {
    .ateneo-hero {
        height: 280px;
        min-height: 280px;
    }

    .ateneo-tile--tall img,
    .ateneo-tile img {
        height: 220px;
    }

    .ateneo-luoghi {
        grid-template-columns: 1fr;
        grid-auto-rows: 5.5rem;
    }
}
