/*font*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "tussilago", sans-serif;
}

body {
    font-family: "fantabular-sans-mvb", mono;
    font-weight: 400;
    font-style: normal;
}

/*Tavolozza colore*/
:root {
    --primary: #E83B68;
    --secondary: #e4b7e5;
    --light: rgb(250, 240, 202);
    --accent: #7ebdc2;
    --dark: #63458a;
}

/*Grid system*/
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
    /*10 asse orizzontale e 20 asse verticale*/
}

/*reset*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.4em;
}

a {
    text-decoration: none;
    cursor: pointer;
}


/*Utility*/
html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    max-height: 100vh;
    overflow: hidden;
    align-self: center;
}

/*gradiente*/
body {
    background: linear-gradient(-45deg, #63458a, #E83B68, #e4b7e5, #030c2f);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    margin: 0;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


#content {
    display: grid;
    margin-top: 20%;
    align-self: center;
}

/*testo*/
#content__img {
    margin-top: 10px;
    grid-column: 1/9;
    justify-self: center;
    align-self: center;
    animation-name: rotate;
    animation-duration: 30s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#content__img>img {
    max-width: 300px;
    width: 100%;
    height: 100%;
}

@keyframes rotate {
    from {
        transform: rotate(-360deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*cta*/
#content__cta {
    margin-top: 20px;
    grid-column: 4/6;
    justify-self: center;
    text-align: center;
    width: 100px;
}

#cta-ita,
#cta-eng {
    background-color: rgba(234, 164, 209, 0.4);
    border-radius: 12px;
    margin-top: 12px;
    padding: 5px;
}

#cta-ita:hover,
#cta-eng:hover {
    background-color: rgba(85, 32, 67, 0.4);
    color: var(--accent);
    transform: scale(1.1);
    transition: 0.3s;
}

#content__cta a {
    color: var(--light);
    font-size: 0.7em;

}

#content__cta a:hover {
    color: var(--accent);
}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi medi */
/* -------------------------------------------------------------------------------- */
@media(min-width:769px) {
    #content {
        margin: 0 auto;
        margin-top: 5%;
        align-self: center;
    }

    #content__img {
        grid-column: 2/8;
        justify-self: center;
    }

    #content__img>img {
        width: 100%;
        height: 100%;
        max-width: 400px;
    }

    #content__cta {
        width: 150px;
    }

    #cta-ita,
    #cta-eng {
        font-size: 1.5em;
    }
}


/* -------------------------------------------------------------------------------- */
/* ! Dispositivi large */
/* -------------------------------------------------------------------------------- */
@media(min-width: 992px) {
    #content {
        margin: 0 auto;
        align-self: center;
    }

    #content__img {
        grid-column: 2/8;
        justify-self: center;
    }

    #content__img>img {
        width: 100%;
        height: 100%;
        max-width: 500px;
    }

    #content__cta {
        width: 200px;
    }

    #cta-ita,
    #cta-eng {
        font-size: 1.5em;
    }
}