/* -------------------------------------------------------------------------------- */
/* ! Impostazioni BASE */
/* -------------------------------------------------------------------------------- */

/* .clippy {
    clip-path: ellipse();
} */


:root {
    /* Tavolozza colore */
    --primary: #13334C;
    --light: #F6F6E9;
    --accent: #9af8ff;
    --dark: #005792;
    /* Animazioni micro */
    --micro: 0.6s cubic-bezier(.38, .95, .67, -0.19);
}

.nav:hover {
    color: var(--accent);

}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utility */
html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
    max-width: 200px;
}

.res2 {
    width: 100%;
    max-width: 400px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* outline: 1px solid red; */
}

.riv {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.clip {
    border-radius: 30px;
}

/* Tipografia */
body {
    font-family: 'Frank';
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lato", sans-serif;
}

p {
    font-size: 1.4em;
    margin-bottom: 15px;
}

p.leading {
    font-size: 1.6em;
}

/* Header */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-attachment: scroll;
}

.fixed {
    position: fixed;
    width: 100%;
    background: var(--primary);
    z-index: 2;
}

/* Provvisorio */
.header__logo,
.header__menu,
.header__cta,
.header__icon {
    /* outline: 1px solid red; */
}

.header__logo {
    width: 50px;
}

.header__logo img {
    filter: invert(0);
}

.header__menu .site-nav>li {
    font-size: 1.5em;
    display: inline-block;
    margin: 25px;
}

header.header a {
    color: var(--light);
}

.header__cta .button {
    font-size: 1.5;
    border-radius: 20px;
    display: block;
    text-align: center;
    padding: 5px 15px;
    border: 2px solid var(--light);
}

.header__cta .button:hover {
    color: var(--accent);
    font-size: 1.5;
    border-radius: 20px;
    display: block;
    text-align: center;
    padding: 8px 15px;
    border: 2px solid var(--light);
}

.header__icon {
    /* visibility: hidden; */
    display: none;
}

/* Hero */
.hero {
    background: url(../img/signorini_veduta-dell_arno.jpg) no-repeat center center;
    height: 100vh;
    background-size: cover;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0.6;
}

.hero__content {
    z-index: 1;
    /* outline: 1px solid red; */
    color: var(--light);
    padding: 20px;
    text-align: center;
}

.hero__content h1 {
    font-size: 8em;
    margin-bottom: 20px;
}

/* .hero__content h2 {
    font-size: 40em;
    margin-bottom: 25px;
} */

.hero__content p {
    font-size: 2em;
    line-height: 1.2em;
}

/* .content__Fondazione {
    scroll-padding: 80px;
} */

/* cta */
.cta-group {
    font-family: Lato;
    font-size: 1.2em;
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    justify-content: space-between;
    margin-left: 200px;
    margin-right: 200px;
}

.cta__primary {
    border: 2px solid var(--dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
}

.cta__primary {
    background: var(--dark);
    color: var(--light);
}

.cta__primary:hover {
    background: var(--accent);
    border: 2px solid var(--secondary);
    color: var(--primary);
}


.cont_riviste {
    margin: 0px 20px;
    padding: 30px;
    border-radius: 60px;
    background-color: var(--primary);
    color: #F6F6E9;

}

/* Ancore */

.ancore {
    color: #13334C;
    padding: 10px;
    margin: 0px;
    margin-top: 20px;
    border: 2px var(--accent);
    background: #84caff;
    z-index: 1;
    max-width: 150px;
    border-radius: 20px;
}

.ancore:hover {
    color: #F6F6E9;
    padding: 11px;
    border-radius: 30px;
}


.wrapper {
    display: flex;
    padding: 0 25px;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    background: #ffffff;
    max-width: 1200px;
    position: relative;
}

.wrapper i {
    margin: 0px -20px;
    color: var(--light);
    top: 50%;
    height: 46px;
    width: 46px;
    cursor: pointer;
    position: absolute;
    font-size: 1.2rem;
    text-align: center;
    line-height: 46px;
    background: var(--primary);
    border-radius: 20%;
    transform: translateY(-50%);

}

.wrapper i:first-child {
    left: -23px;
    display: none;
}

.wrapper i:last-child {
    right: -23px;
}

.wrapper .carousel {
    font-size: 0px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.carousel.dragging {
    cursor: grab;
    scroll-behavior: auto;
}

.carousel.dragging img {
    pointer-events: none;
}

.carousel img {
    border-radius: 10px;
    height: 300px;
    object-fit: cover;
    margin-left: 14px;
    width: calc(100% / 3.08);
}

.carousel img:first-child {
    margin-left: 0px;
}


.cont_libri {
    display: flex;
    justify-content: center;
    /* Allinea al centro del desktop */

}

.libro {
    margin-right: 20px;
    /* Spazio tra i libri */
}

.libro img {
    border-radius: 20px;
    max-width: 350px;
    /* Larghezza massima delle copertine */
    height: auto;
    display: block;
    margin-bottom: 20px;
    margin-top: 20px;
}

.social {
    color: #13334C;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 50px;

}

/* .libro button {
    font-size: large;
    font-family: Lato;
    background-color: #005792;
    color: var(--light);
    padding: 10px;
    border-radius: 100px;
    display: block;
    margin-left: 20px;
    margin-top: 50px;
    /* margin-bottom: 50px; */
/* Spazio tra la copertina e il pulsante */

/* .libro button:hover {
    background-color: #9af8ff;
    color: #13334C;
} */
.content__contatti {
    color: #13334C;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.content__Fondazione {
    color: var(--primary);
    padding: 50px;
}

.content__Ricerche {
    color: #13334C;
    padding: 50px;
}

/* Section */
section {
    /* outline: 1px solid red; */
    scroll-margin-top: 80px;
    padding: 15px;
}

footer {
    color: var(--light);
    background: var(--primary);
    padding: 45px;
}

footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 50px;
}

.social-icons {
    text-align: center;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    color: var(--primary);
    /* colore blu scuro */
    font-size: 50px;
    /* dimensione dell'icona */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent);
    /* colore azzurro */
}

/* -------------------------------------------------------------------------------- */
/* ! Media query medium */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .header__icon {
        display: block;
        color: var(--light);
        text-align: center;
        z-index: 3;
    }

    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transform: translateY(-100%);
        transition: var(--micro);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__menu .site-nav>li {
        font-size: 1em;
        display: inline-block;
        margin: 25px;
    }

    /* Hamburger */

    .icon-hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: 0.3s cubic-bezier(.38, .95, .67, -0.19);
    }

    .icon-hamburger span {
        background: var(--light);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;
        transition: var(--micro);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
        width: 90%;
        opacity: 1;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 10px;
        width: 70%;
    }

    .icon-hamburger span:nth-child(4) {
        top: 20px;
        width: 90%;
        opacity: 1;
    }

    /* Hamburger in open */

    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    .open .icon-hamburger span:nth-child(1),
    .open .icon-hamburger span:nth-child(4) {
        width: 0;
        opacity: 0.4;
    }

    .open .icon-hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 25px;
        font-size: 3em;
    }

    /* Richiamo la classe in base al click */
    .open .header__menu {
        transform: translateY(0);
    }

    .cont_riviste {
        border-radius: 60px;
        background-color: var(--primary);
        color: #F6F6E9;
    }

    .cont_libri {
        display: flex;
        flex-direction: column;

    }

    .libro {
        display: flex;
        flex-direction: column;
    }

    .libro button {
        max-width: 180px;
        margin-bottom: 50px;
    }

    .libro img {
        display: flex;
        max-width: 400px;
        /* Larghezza massima delle copertine */
        height: auto;
        display: block;
    }

    .carousel img {
        width: calc(100% / 2);
    }
}








/* -------------------------------------------------------------------------------- */
/* ! Dispositivi piccoli */
/* -------------------------------------------------------------------------------- */
@media (max-width: 480px) {
    p {
        font-size: 1.2em;
    }

    p.leading {
        font-size: 1.2em;
    }

    .content__Fondazione {
        color: #13334C;
        padding-top: 40px;
        padding-bottom: 20px;
    }


    .header__cta {
        display: none;
    }

    .hero__content h1 {
        font-size: 3em;
    }

    .hero__content h2 {
        font-size: 2em;
    }

    .hero__content p {
        font-size: 1.3em;
    }

    .cont_riviste {
        border-radius: 20px;
        margin: 5px;
        padding: 30px;
    }

    .ancore {
        color: #13334C;
        margin: 0px;
        margin-bottom: 20px;
        margin-left: 20px;
        border-radius: 20px;
        text-align: center;
    }

    .cont_libri {
        display: flex;
        flex-direction: column;

    }

    .libro {
        margin: 0px;
    }

    .libro img {
        margin: 10px 20px;
        align-items: center;
        display: flex;
        flex-direction: column;
        max-width: 400px;
        /* Larghezza massima delle copertine */
        height: auto;
        display: block;
    }

    .carousel img {
        width: 100%;
    }

    footer {
        padding: 20px 10px;
    }
}

/* ! Punto di interruzione per dispositivi medium */
@media(max-width: 768px) {
    p {
        font-size: 1.6em;
    }

    p.leading {
        font-size: 1.6em;
    }

    .hero__content h1 {
        font-size: 3em;
    }

    .hero__content h2 {
        font-size: 2em;
    }

    .hero__content p {
        font-size: 1.3em;
    }

    .cover__menu {
        all: unset;
    }

    .cover__menu li {
        display: inline-block;
        margin-left: 15px;
    }

    .cover__hb {
        display: none;
    }



    .hero {
        flex-direction: row;
    }

    .hero__text {
        width: 45%;
    }

    .hero__cover {
        width: 55%;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .cont_libri {
        margin-left: 10px;
    }

    footer .container {
        flex-direction: row;
    }


}

/* ! Punto di interruzione per dispositivi larghi */
@media(min-width: 992px) {}