/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(228, 66%, 53%);
    --first-color-alt: hsl(228, 66%, 47%);
    --first-color-light: hsl(228, 62%, 59%);
    --first-color-lighten: hsl(228, 100%, 97%);
    --second-color: hsl(25, 83%, 53%);
    --title2-color: hsl(0, 0%, 100%);
    --title-color: hsl(228, 57%, 28%);
    --texts-color: black;
    --text-color: hsl(228, 15%, 50%);
    --text-color-light: hsl(228, 12%, 75%);
    --border-color: hsl(228, 99%, 98%);
    --body-color: #fff;
    --container-color: #fff;

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: 'Poppins', sans-serif;
    --second-font: "Montserrat", sans-serif;
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;


}

/* Responsive typography */
@media screen and (min-width: 1024px) {
    :root {
        --biggest-font-size: 4rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: .3s;
    /* For animation dark mode */
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    /* display: block; */
    max-width: 100%;
    height: auto;
}

input,
button {
    font-family: var(--body-font);
    outline: none;
    border: none;
}

/* .res {
    width: 100%;
    max-width: 380px;
} */



/*=============== THEME ===============*/


/*========== Variables Dark theme ==========*/


/*========== 
    Color changes in some parts of 
    the website, in dark theme 
==========*/


/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1024px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
}

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.section__title span {
    color: var(--second-color);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--second-color);
}

.main {
    overflow: hidden;
    /* For the animations ScrollReveal*/
}

/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    width: 100%;
    background-color: transparent;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: #fff;
    font-family: var(--first-font);
    font-weight: var(--font-medium);
    z-index: var(--z-fixed);
}

.nav__toggle,
.nav__close {
    display: flex;
    font-size: 1.25res;
    color: #fff;
    cursor: pointer;
    padding: .7rem;
}



/* blur header */
.blur-header::after {
    content: '';
    position: absolute;
    width: 1000%;
    height: 100%;
    background: linear-gradient(170deg,
            hsl(0, 0%, 22%) 0%,
            hsl(0, 0%, 8%) 30%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    top: 0;
    left: 0;
    z-index: -1;
}



@media screen and (max-width: 1023px) {

    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        background: linear-gradient(170deg,
                hsl(0, 0%, 22%) 0%,
                hsl(0, 0%, 6%) 30%);
        width: 100%;
        padding-block: 4rem;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        transition: top .4s;
        height: 100%;
    }

    .nav__list {
        text-align: center;
        display: flex;
        flex-direction: column;
        /* row-gap: 2.5rem; */
        row-gap: 5rem;
        padding-top: 80px;
    }

    .nav__link {
        position: relative;
        color: var(--text-color-light);
        font-family: var(--first-font);
        /* font-weight: var(--font-medium); */
        font-size: var(--font-medium);
    }

    .nav__link:hover {
        color: #fff;
    }

    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }


    /* SHOW MENU */
    .show-menu {
        top: 0;

    }

}



/* CAMBIO COLORE HEADER */
/* .scroll-header {
    background-color: #fff;
    box-shadow: 0 1px 4px hsla(228, 4%, 15%, .1);
}

.scroll-header .nav__logo {
    color: #fff;
} */


/*=============== HOME ===============*/
.home {
    background: linear-gradient(170deg,
            hsl(0, 0%, 22%) 0%,
            hsl(0, 0%, 6%) 30%);
    padding-bottom: 0;
}

.home__container {
    padding-top: 4rem;
    row-gap: 3.5rem;
}

.home__titolo {
    color: #fff;
}

.home__titolo {
    font-size: var(--biggest-font-size);
    line-height: 120%;
    margin-bottom: 1.25rem;
}

.home__descrizione {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.home__search {
    background-color: var(--body-color);
    padding: .35rem .35rem .35rem .75rem;
    display: flex;
    align-items: center;
    border-radius: .75rem;
    border: 3px solid var(--text-color-light);
    margin-bottom: 2rem;
}

.home__search i {
    font-size: 1.25rem;
    color: var(--first-color);
    padding-right: .5rem;
}

.home__search-input {
    width: 90%;
    background-color: var(--body-color);
    color: var(--text-color);
    margin: 0 .5rem;
}

.home__search-input::placeholder {
    color: var(--text-color-light);
}

.home__images {
    position: relative;
    display: flex;
    justify-content: center;
}

.home__orbe {
    width: 265px;
    height: 284px;
    background: linear-gradient(180deg,
            hsl(0, 0%, 16%) 93%,
            hsl(0, 0%, 67%) 100%);
    border-radius: 135px 135px 0 0;
}

.home__img {
    position: absolute;
    width: 250px;
    height: 300px;
    overflow: hidden;
    border-radius: 125px 125px 12px 12px;
    display: inline-flex;
    align-items: flex-end;
    bottom: -1.5rem;
    box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
}

/*=============== BUTTON ===============*/
.button {
    display: inline-block;
    background: var(--first-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: .5rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    box-shadow: 0 4px 8px hsla(228, 66%, 45%, .25);
    transition: .3s;
    cursor: pointer;
}

.button:hover {
    box-shadow: 0 4px 8px hsla(228, 66%, 45%, .25);
}

/*=============== LOGOS ===============*/
.logo__container {
    position: relative;
    display: flex;
    justify-content: center;
}

.logo__img {
    position: relative;
    display: flex;
    justify-content: center;
    width: 80%;
}

.logo__img img {
    height: 60%;
    opacity: .5;
    transition: .3;
}

.logo__img img:hover {
    opacity: .9;
}


/*=============== FONDAZIONE ===============*/
.fondazione__container {
    row-gap: 3rem;
}

.fondazione__images {
    position: relative;
    display: flex;
    justify-content: center;
}

.fondazione__orbe {
    width: 266px;
    height: 316px;
    background-color: hsl(228, 24%, 97%);
    border-radius: 135px 135px 16px 16px;
}

.fondazione__img {
    position: absolute;
    width: 250px;
    height: 300px;
    overflow: hidden;
    border-radius: 125px 125px 12px 12px;
    inset: 0;
    margin: auto;
    box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
}

.fondazione__descrizione {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.fondazione__accordion {
    display: grid;
    row-gap: 1.5rem;
}

.fondazione__accordion-item {
    background-color: var(--body-color);
    border: 2px solid var(--border-color);
    border-radius: .5rem;
    padding: 1rem .75rem;
}

.fondazione__accordion-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.fondazione__accordion-icon {
    background-color: var(--first-color-lighten);
    padding: 5px;
    border-radius: .25rem;
    font-size: 18px;
    color: var(--first-color);
    margin-right: .75rem;
    transition: .3s;
}

.fondazione__accordion-titolo {
    font-size: var(--small-font-size);
}

.fondazione__accordion-freccia {
    display: inline-flex;
    background-color: var(--first-color-lighten);
    padding: .25rem;
    color: var(--first-color);
    border-radius: 2px;
    font-size: 10px;
    margin-left: auto;
    transition: .3s;
}

.fondazione__accordion-freccia i {
    transition: .4s;
}

.fondazione__accordion-descrizione {
    font-size: var(--small-font-size);
    padding: 1.25rem 2.5rem 0 2.75rem;
}

.fondazione__accordion-content {
    overflow: hidden;
    height: 0;
    transition: all .25s ease;
}


/*=============== ROTAZIONE ICONE E OMBRE ===============*/
.accordion-open {
    box-shadow: 0 12px 32px hsla(228, 66%, 55%, .1);
}

.accordion-open .fondazione__accordion-icon {
    box-shadow: 0 4px 4px hsla(228, 66%, 45%, .1);
}

.accordion-open .fondazione__accordion-freccia {
    box-shadow: 0 2px 4px hsla(228, 66%, 45%, .1);
}

.accordion-open .fondazione__accordion-freccia i {
    transform: rotate(-180deg);
}



/*=============== RICERCHE ===============*/
.ricerche__container {
    padding: 1rem 0 5rem;
}

.ricerche__card {
    width: 290px;
    background-color: var(--container-color);
    padding: .5rem .5rem 1.5rem;
    border-radius: 1rem;
    margin: 0 auto;
    transition: .4s;
}

.ricerche__img {
    border-radius: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.ricerche__data {
    padding: 0 1rem .5rem;
}

.ricerche__persona {
    font-size: var(--h2-font-size);
    color: var(--text-color);
    margin-bottom: .25rem;
}

.ricerche__card:hover {
    box-shadow: 0 12px 16px hsla(228, 66%, 45%, .1);
}

/* .ricerche__img {
    width: 90%;
} */


/* Swiper class */
.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
}

.swiper-button-next,
.swiper-button-prev {
    top: initial;
    bottom: 0;
    width: initial;
    height: initial;
    background-color: var(--container-color);
    border: 2px solid var(--text-color-light);
    padding: 6px;
    border-radius: .5rem;
    font-size: 1.5rem;
    color: var(--first-color);
}

.swiper-button-prev {
    left: calc(50% - 3rem);
}

.swiper-button-next {
    right: calc(50% - 3rem);
}

/*=============== RIVISTE ===============*/
.riviste__container {
    padding: 1rem 0 5rem;
}

.riviste__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.riviste__images {
    border-radius: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 4px 2px hsla(228, 66%, 45%, .1);
    width: 70%;
}

.riviste__descrizione {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.riviste__leggi {
    color: var(--title-color);
}

.riviste__card {
    width: 290px;
    background-color: var(--container-color);
    padding: .5rem .5rem 1.5rem;
    border-radius: 1rem;
    margin: 0 auto;
    transition: .4s;
}

.riviste__img {
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.riviste__img2 {

    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 4px 2px hsla(228, 66%, 45%, .1);
}


.riviste__data {
    padding: 0 1rem .5rem;
}

.riviste__opera {
    font-size: var(--h2-font-size);
    color: var(--text-color);
    margin-bottom: .25rem;
}

.riviste__card:hover {
    box-shadow: 0 12px 16px hsla(228, 66%, 45%, .1);
}

.section__descrizione {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* .ricerche__img {
    width: 90%;
} */


/* Swiper class */
.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
}

.swiper-button-next,
.swiper-button-prev {
    top: initial;
    bottom: 0;
    width: initial;
    height: initial;
    background-color: var(--container-color);
    border: 2px solid var(--text-color-light);
    padding: 6px;
    border-radius: .5rem;
    font-size: 1.5rem;
    color: var(--first-color);
}

.swiper-button-prev {
    left: calc(50% - 3rem);
}

.swiper-button-next {
    right: calc(50% - 3rem);
}


/*Rotate icon and add shadows*/


/*=============== DIDATTICA ===============*/
.didattica__container {
    row-gap: 2rem;
}

.didattica__images {
    position: relative;
    display: flex;
    justify-content: center;
}

.didattica__orbe {
    width: 266px;
    height: 316px;
    background-color: hsl(228, 24%, 97%);
    border-radius: 135px 135px 16px 16px;
}

.didattica__img {
    position: absolute;
    width: 259px;
    height: 300px;
    overflow: hidden;
    border-radius: 125px 125px 12px 12px;
    inset: 0;
    margin: auto;
    box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
}

.didattica__descrizione {
    padding-top: 1rem;
}

.didattica__descrizione1 {
    font-size: var(--small-font-size);
}

.didattica__descrizione {
    padding-bottom: 2rem;
}




/*=============== FOOTER ===============*/

.footer__container {
    row-gap: 2.5rem;
}

.footer__logo {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    margin-bottom: .75rem;
}

.footer__logo i {
    font-size: 1.25rem;
}

.footer_descrizione,
.footer_link {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.footer__content,
.footer__links {
    display: grid;
}

.footer__content {
    grid-template-columns: repeat(2, max-content);
    gap: 2.5rem 4rem;
}

.footer__titolo {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--title-color);
}


.footer__links {
    row-gap: .5rem;
}

.footer__link {
    color: var(--text-color);
}

.footer__link:hover {
    color: var(--title-color);
}

.footer__social {
    display: flex;
    column-gap: 1rem;
}

.footer__social-link {
    font-style: 1.25rem;
    color: var(--text-color);
    transition: .3s;
}

.footer__social-link:hover {
    color: var(--title-color);
}

/*=============== BREAKPOINTS ===============*/

/* For small devices */
@media screen and (max-width: 350px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .section {
        padding: 3.5rem 0 1rem;
    }

    .home {
        padding-bottom: 0;
    }

    .riviste__images {
        width: 70%;
    }



}

/* For medium devices */
@media screen and (min-width: 576px) {

    .home__search {
        width: 412px;
    }

    .footer__content {
        grid-template-columns: repeat(3, max-content);
    }

    .riviste__images {
        width: 70%;
    }
}

@media screen and (min-width: 767px) {

    .home__container {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 2rem;
    }


    .home__orbe {
        align-self: flex-end;
    }

    .home__data {
        padding-bottom: 2rem;
    }

    .fondazione__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        padding-right: 60px;
    }

    .didattica__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        padding-right: 60px;
    }

    .riviste__images {
        width: 40%;
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        justify-content: space-between;
    }

    .footer__descrizione {
        padding-right: 55px;
    }

}

/* For large devices */
@media screen and (min-width: 1023px) {
    .section {
        padding: 7.5rem 0 1rem;
    }

    .section__titolo {
        font-size: 2.25rem;
    }

    .section__sottotitolo {
        font-size: var(--normal-font-size);
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .logo__img {
        width: 40%;
    }

    .nav__menu {
        width: initial;
        margin-left: auto;
    }

    .nav__list {
        display: flex;
        column-gap: 3rem;
    }

    .nav__link {
        color: var(--text-color-light);

    }

    .nav__link i {
        display: none;
    }

    .nav__close,
    .nav__toggle {
        display: none;
    }

    .nav__link:hover {
        color: #fff;
    }

    .home {
        padding-bottom: 0;
    }

    .home__container {
        padding-top: 4rem;
        column-gap: 2rem;
    }

    .home__data {
        padding-bottom: 4rem;
    }

    .home__titolo {
        margin-bottom: 2rem;
    }

    .home__descrizione,
    .home__search {
        margin-bottom: 3rem;
    }

    .home__orbe {
        width: 504px;
        height: 611px;
        border-radius: 256px 256px 0 0;
    }

    .home__img {
        width: 472px;
        height: 634px;
        border-radius: 236px 236px 12px 12px;
        bottom: -2.5rem;
    }

    .ricerche__container,
    .riviste__container {
        padding-top: 3rem;
    }

    .ricerche__card,
    .riviste__card {
        width: 310px;
        padding: .75rem .75rem .2rem;
    }

    .ricerche__data,
    .riviste__data {
        padding-bottom: .80rem;
    }

    .fondazione__container,
    .didattica__container {
        align-items: flex-start;
        column-gap: 5rem;
    }

    .fondazione__orbe,
    .didattica__orbe {
        width: 501px;
        height: 641px;
        border-radius: 258px 258px 16px 16px;
    }

    .fondazione__img,
    .didattica__img {
        width: 461px;
        height: 601px;
        border-radius: 238px 238px 12px 12px;
    }

    .fondazione__img,
    .didattica__img img {
        max-width: initial;
        width: 485px;
    }

    .fondazione__descrizione,
    .didattica__descrizione {
        font-size: var(--normal-font-size);
        margin-bottom: 2.5rem;
    }

    .fondazione__accordion-titolo {
        font-size: var(--normal-font-size);
    }

    .fondazione__accordion-item {
        padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    }

    .fondazione__accordion-descrizione {
        padding-bottom: 1rem;
        font-size: var(--small-font-size);
    }

    .footer__content {
        grid-template-columns: repeat(4, max-content);
    }

    .footer__descrizione {
        padding-right: 80px;
    }

    .footer__titolo {
        margin-bottom: 1.5rem;
    }

    .footer__links {
        row-gap: 1rem;
    }
}

@media screen and (min-width: 1040px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .home__container {
        column-gap: 4rem;
    }

    .logo__img {
        width: 40%;
    }
}


@media screem and (min-width: 1340px) {
    body {
        zoom: 1;
    }

    .logo__img {
        width: 40%;
    }
}


/* For 2K & 4K resolutions */

@media screen and (min-width: 2048px) {
    body {
        zoom: 1.5;
    }

    .logo__img {
        width: 40%;
    }
}

@media screen and (min-width: 3840px) {
    body {
        zoom: 2;
    }

    .logo__img {
        width: 40%;
    }
}