.body, html {
    padding: 0;
    margin: 0;
}

.card-title {
    color: #004A6F;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.header-section {
    background-image: url('/images/immagine_header.jpg');
    width: 100%;
    padding: 230px 0px;
    min-height: 335px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-nav {
    padding-bottom: 40px;
}

.intro-text {
    color: white;
    margin: 0 auto;
}

.intro-text p {
    margin-bottom: 1rem;
}

.space-def {
    width: 100%;
    padding: 0 230px;
}

.card-year {
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
}

.card {
    width: calc(150% - 20px);
    min-height: 180px;
    margin: 15px auto;
    background: linear-gradient(145deg, #004A6F, #005f8f);
    color: #ffffff !important;
    cursor: pointer;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
}

.card.card-year {
    transition: box-shadow 0.3s ease;
    border-radius: 20px;
    background: linear-gradient(145deg, #004A6F, #005f8f);
    color: #ffffff !important;
    cursor: pointer;
}

.card.card-year:hover {
    background-color: #252850;
    transform:translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card.card-year {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    text-align: center;
}

.card-text {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sezione-ampia {
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2)); /* corregge il padding del body */
  background-color: #004A6F;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

@media screen and (max-width: 768px) {
    .space-def {
        width: 100%;
        padding: 0 10px;
    }

    .row-cols-2 {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 0 10px;
    }

    .col {
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        display: flex;
        justify-content: center;
    }

    .card {
        width: 100%;
        margin-bottom: 10px !important;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .header-section .card-title {
        font-size: 2rem;
    }
}