main {
    position: relative;
    font-weight: 500;
    text-align: center;

}

.med {
    color: var(--darker-main);
}

.hero {
    position: relative;
    text-align: center;
    background: radial-gradient(64.63% 30.29% at 50.00% 41.11%, #95DBDB 20.67%, #38A9A8 74.43%);
    padding: 30px 32px;
    color: white;
    z-index: 2;
    margin-bottom: 56px;
}

.hero .left-side {
    display: flex;
    flex-direction: column;
    gap: 38px;
    justify-content: center;
    /* Horizontally center the grid items */
    align-items: center;
}

.hero .right-side {
    display: none;

}

h1 {
    font-family: 'all-round-gothic-demi', sans-serif;

    font-size: 2.5rem;
    line-height: 120%;


}

h2 {
    text-align: center;
    line-height: 120%;
}



.hero .mobile-image-container {
    width: 100%;
    max-width: 300px;
    /* Set the desired width for the cropped image */
    overflow: hidden;
    /* Hide any content that overflows the container */
    margin: 0 auto;
}

.mobile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop the image to fit the container while maintaining aspect ratio */
    object-position: -30% 65%;
}

.hero p {
    color: #FFF;
    /* text-align: center; */
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.hero .cta-button {
    margin: 16px auto;
    background-color: white;
    padding: 12px 0;
    color: var(--darker-main-5);
    font-family: var(--lexend);
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-align: center;
    display: block;
    width: 100%;
    max-width: 300px;
    border-radius: 16px;

}

.hero figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.circle-img-container {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.circle-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero figcaption {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 140%;
}

.circle-container-wrapper {
    display: flex;
    justify-content: center;
    padding-left: 60px;
}

.circle-img-container:first-child {
    position: relative;
    z-index: 2;
}

.circle-img-container:nth-child(2) {
    position: relative;
    left: -50%;
    z-index: 1;
}

.circle-img-container:nth-child(3) {
    position: relative;
    left: -50%;
    z-index: 3;
}

.under-hero {
    display: none;
    max-width: 1200px;
}




figure {
    display: flex;
    margin: 0;
    padding: 0;
}

/* sezione 1 test medicina*/
.test-medicina {
    padding: 0 32px;
    margin: 0 auto 72px auto;
}

.test-medicina p {
    font-size: 1.5rem;
    line-height: 130%;
}

.test-content {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.test-medicina .img-container {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 48px;
    overflow: hidden;
}

.test-medicina .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* sezione 2 perchè immersimed */

.per-immersimed {
    padding: 64px 32px 72px;
    background: rgba(52, 193, 193, 0.1);
    box-shadow: 0 4px 50px 0 rgba(52, 193, 193, 0.5);
}

.per-immersimed>.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

h2 {
    font-size: 2.5rem;
}


.per-immersimed p {
    padding-top: 8px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 140%;
}

.per-immersimed .card-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 32px;
}

.per-immersimed .card {
    width: 100%;
    max-width: 270px;
    max-height: 375px;
    border-radius: 48px;
    background-color: var(--dirty-white);
    box-shadow: 0 10px 50px 0 rgba(52, 193, 193, 0.30);
}



.per-immersimed .card-head {
    width: 100%;
    height: 150px;
    border-radius: 38px;
    overflow: hidden;
}

.per-immersimed .card-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.per-immersimed .card-body {
    padding: 10px 32px 24px 32px;
    font-size: 1.5rem;
    line-height: 130%;
}

.card-number-title {
    display: block;
    font-size: 3.2rem;
    font-weight: 600;
    padding-bottom: 14px;
    padding-top: 16px;

}

/* sezione 3 vantaggi corso */
.vantaggi {
    margin: 64px auto 72px auto;
    padding: 0 32px;
}

.title {
    text-align: center;
    margin-bottom: 48px;
}

.title p {
    font-size: 1.5rem;
    padding-top: 16px;
}


.vantaggio {
    margin-bottom: 32px;

}


.vantaggio p {
    font-size: 1.3rem;
    line-height: 135%;
    max-width: 400px;
    margin: auto;
}

.vt-image-container {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1/1;
    margin: 16px auto;
    overflow: hidden;
    border-radius: 48px;
}

.vt-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.vt-desktop {
    display: none;
}

.big-cta-button {
    padding: 12px;
    margin: 48px auto 0;
    color: white;
    background-color: var(--main-color);
    font-family: var(--montserrat);
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-align: center;
    display: block;
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
}

/* sezione 4 recensione */
.recensioni {
    padding: 64px 32px 72px;
    background: rgba(52, 193, 193, .1);
    box-shadow: 0 4px 50px 0 rgba(52, 193, 193, .5);
}

.recensioni-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.recensioni-cards {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: carouselAnim 25s infinite alternate linear;
}

.entry {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: 250px;
    aspect-ratio: 2/3;
    margin: 0 16px;
    background: #fff;
    border-radius: 48px;
    box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.entry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



@keyframes carouselAnim {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(calc(-100% + (2 * 250px)));
    }
}

.recensioni-cards:hover {
    animation-play-state: paused;
}

.recensioni-cards .faders {
    display: none;
}


/* sezione 5 */

.faq {
    padding: 64px 32px;
    text-align: left;
}

.faq h2 {
    text-align: center;
    padding-bottom: 40px;
}

.accordion {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.accordion-item {
    background-color: var(--darker-main);
    margin-bottom: 8px;
    border-radius: 30px;
    padding: 24px;
}

.accordion-header span {
    width: 30px;
    height: 30px;
    margin-left: 16px;
    overflow: hidden;
}

.accordion-header span svg {
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform: scale(1.3);
    object-fit: cover;
    color: white;
    transition: transform 0.3s;


}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--darker-main);
    cursor: pointer;
    border: none;
    text-align: left;
    width: 100%;
    font-size: 1.2em;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    padding-bottom: 0px;
    transition: padding-bottom 0.3s ease;

}

.accordion-content {
    max-height: 0;
    /* Start with the content hidden */
    overflow: hidden;
    transition: max-height 0.3s ease;

}

.accordion-content p {
    padding-top: 5px;
    transition: padding-top 0.3s ease;
}

.accordion-item.active p {
    padding-top: 16px;
}

.accordion-item.active .accordion-content {

    max-height: 1000px;
}

.accordion-item.active .accordion-header {
    padding-bottom: 16px;
}

.accordion-item.active .accordion-header span svg {
    transform: scale(1.3) rotate(90deg);

}

@media (min-width: 425px) {

    /* sezione 4 */
    .recensioni-container .faders {
        display: block;
    }

    .recensioni-container .faders {
        width: 100%;
        position: absolute;
        height: 100%;
    }

    .faders .right,
    .faders .left {
        width: 10%;
        height: 100%;
        position: absolute;
        z-index: 200;
    }

    .faders .right {
        right: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }

    .faders .left {
        left: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }
}

@media (min-width: 550px) {
    .hero {
        border-radius: 38px;
    }
}

@media (min-width: 650px) {
    .hero {
        padding: 28px 36px;
        background: radial-gradient(83.80% 39.28% at 50.00% 46.09%, #95DBDB 20.67%, #38A9A8 74.43%);

    }

    h1 {
        font-size: 3rem;
    }

    .hero .mobile-image-container {
        max-width: 500px;
        /* Set the desired width for the cropped image */

        width: 500px;
        /* Set the desired width for the cropped image */
        height: 300px;
        /* Set the desired height for the cropped image */

        margin-top: 16px;
        margin-bottom: 18px;
    }

    .mobile-image-container img {
        width: 100%;
        height: 100%;
        object-position: -30% 65%;
    }

    .hero p {
        font-size: 1.7rem;

        line-height: 130%;
    }

    .hero figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .circle-img-container {
        display: inline-block;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
    }

    .circle-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero figcaption {
        margin-top: 16px;
        font-size: 1.1rem;
    }

    .circle-container-wrapper {
        display: flex;
        justify-content: center;
        padding-left: 100px;
    }

    .circle-img-container:first-child {
        position: relative;

    }

    .circle-img-container:nth-child(2) {
        position: relative;
        left: -50%;

    }

    .circle-img-container:nth-child(3) {
        position: relative;
        left: -50%;

    }

    .hero .cta-button {
        max-width: 500px;
        padding: 16px 0;
        margin: 32px;
        font-size: 2rem;
    }

    /* sezione 1*/
    .test-medicina p,
    .per-immersimed p,
    .title p {
        font-size: 1.8rem;

    }

    .test-medicina .img-container {
        max-width: 400px;
        aspect-ratio: 1.3 / 1;
    }

    /* sezione 4 */
    .recensioni-cards {
        animation: carouselAnim 20s infinite alternate linear;
    }


}

@media (min-width: 794px) {
    .hero {
        background: radial-gradient(71.18% 33.36% at 50.00% 42.58%, #95DBDB 20.67%, #38A9A8 74.43%);

    }

    /* sezione 2 perchè immersimed */
    .per-immersimed .card-container {
        flex-direction: row;
        gap: 32px;
        padding-top: 16px;

    }

    .shifted {
        margin-top: 75px;
    }

    /* sezione 3 vantaggi corso */
    .vantaggio {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }

    .vantaggio p {
        margin-top: 8px;
    }

    .vt-mobile {
        display: none;

    }

    .vt-desktop {
        display: block;
    }

    .vt-image-container {
        width: 100%;
        max-width: 350px;
        margin: 0;
    }

    .vantaggio .content {
        width: 100%;
        max-width: 350px;
        text-align: left;
    }

    .vantaggio:nth-child(odd) .vt-desktop {
        order: 2;
    }

    .title {
        margin-bottom: 56px;
    }

    .big-cta-button {
        font-size: 2.2rem;
        max-width: 500px;
        margin-top: 56px;

    }


}

@media (min-width: 992px) {
    h1 {
        font-size: 3.5rem;
        line-height: 100%;
    }

    .hero {
        display: flex;
        justify-content: space-between;
        gap: 32px;
        overflow: visible;
        z-index: 1;
        padding: 28px 0 0 38px;
        text-align: left;
        border-radius: 48px 48px 300px 48px;
        background: rgb(56, 169, 168);
        background: linear-gradient(65deg, rgba(56, 169, 168, 1) 45%, rgba(197, 232, 232, 1) 80%);
        margin-bottom: calc(56px + 60px);
    }

    .hero .right-side {
        display: block;
        flex: 0 0 400px;
        border-radius: 0 0 300px 0;
        overflow: hidden;
        position: relative;
    }

    .right-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }

    .hero .left-side {
        flex: 0 1 50%;
        gap: 16px;
        justify-content: flex-start;
        /* Horizontally center the grid items */
        align-items: flex-start;
    }

    .hero .mobile-image-container {
        display: none;
    }



    .hero p {
        margin: 0;
    }

    .hero .cta-button {

        margin: 32px 0;
        max-width: 370px;

    }

    .hero figure {
        flex-direction: row;
        align-items: center;

        margin-bottom: 32px;
    }

    .hero figcaption {
        margin: 0;
    }

    .circle-container-wrapper {
        padding: 0;
        position: relative;
        margin-right: 50px;

    }

    .circle-img-container:first-child {
        z-index: 1;
    }

    .circle-img-container:nth-child(2) {
        position: absolute;
        left: 50%;
        z-index: 2;
    }

    .circle-img-container:nth-child(3) {
        position: absolute;
        left: 100%;
        z-index: 3;
    }

    .under-hero {
        display: flex;
        align-items: flex-end;
        position: absolute;
        top: 126px;
        width: calc(100% - 64px);
        height: 500px;
        border-radius: 48px 48px 300px 48px;
        background-color: var(--dirty-white);
        z-index: -1;
    }

    .under-hero .content {
        display: flex;
        align-items: center;
        height: 60px;
        width: 100%;
        padding-left: 38px;
        padding-right: 250px;
    }

    .under-hero .content span {
        min-width: 150px;
        font-size: 1.3rem;
    }

    .under-hero .content figure {
        padding-left: 16px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .test-medicina,
    .vantaggi {
        max-width: 900px;
        padding: 0 48px;
        border-left: 5px solid var(--main-color);
        border-right: 5px solid var(--main-color);

    }

    /* sezione 1 */
    .test-content {
        gap: 48px;
    }

    .test-medicina .img-container {
        max-width: 500px;
        aspect-ratio: 1.5 / 1;
    }


    /* sezione 2 perchè immersimed */
    .per-immersimed {
        text-align: center;
    }

    /* sezione 3 vantaggi corso */
    .vantaggio {
        margin-bottom: 48px;
    }

    .big-cta-button {
        margin-top: 56px;
    }

    .title {
        margin-bottom: 52px;
    }
}

@media (min-width: 1185px) {
    .under-hero {
        top: 92px;
    }
}





@media (min-width:1200px) {

    h2 {
        font-size: 3rem;
        line-height: 100%;
    }

    .under-hero {
        width: calc(100% - 96px);
        top: 127px;
    }

    /* sezione 1 */


    .test-medicina .img-container {
        max-width: 600px;
        aspect-ratio: 1.77 / 1;
    }

    /* sezione 2 perchè immersimed */
    .per-immersimed .card-container {
        padding-top: 16px;
        gap: 64px;

    }

    .big-cta-button {
        margin-top: 80px;
    }

}

@media (min-width: 1217px) {
    .under-hero {
        top: 91px;
    }
}



@media (min-width:1400px) {
    /* .hero {
        gap: 24px 90px;

    } */

    .hero .right-side {

        flex: 0 0 450px
    }


    .hero .cta-button {
        margin: 40px 0;

    }

    .under-hero {
        top: 106px;
        width: calc(100% - 128px);

    }

}

