/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */

/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

html {
    scroll-behavior: smooth;
}

/* Utility */
.clippy {
    clip-path: circle(39% at 50% 50%);
}

.res {
    width: 100%;
    max-width: 290px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografia */
body {
    font-family: 'General Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'General Sans', sans-serif;
    font-weight: 700;
}

p {
    font-size: 1.2em;
    font-weight: 400;
}

/* Tavolozza colori */
:root {
    --primary: #3986FF;
    --secondary: #FF006E;
    --accent: #FFE74C;
    --dark: #000000;
    --light: #FFFFFF;
}

.blu {
    color: var(--primary);
}

.fucsia {
    color: var(--secondary);
}

.giallo {
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: var(--accent);
    color: var(--dark);
}

.arancione {
    color: #FB5607;
}

.viola {
    color: #8337EC;
}

.verde {
    color: #6CF178;
}

/* Animazioni */
@keyframes openPanel {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

body {
    background-color: var(--dark);
}

/* -------------------------------------------------------------------------------- */
/* ! Grid per Mobile first */
/* -------------------------------------------------------------------------------- */
/* Grid stystem */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}

/* Navigazione */

header {
    background-color: var(--primary);
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 50px;
}

.site-nav img {
    grid-column: 1/5;
    /* outline: 1px solid red; */
    z-index: 1;
}

.site-nav__menu {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 1;
}

.open .site-nav__menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-height: 30%;
    width: 100%;
    height: 100vh;
    margin-top: 15px;
    margin-bottom: 20px;
    border-radius: 50px;
    background: var(--primary);
    animation: openPanel 0.6s;
    font-size: 1.5em;
    line-height: 1.8em;
}

.open .site-nav a {
    color: var(--light);
    font-weight: 500;
}

.open .site-nav a:hover {
    color: var(--accent);
    font-weight: 500;
}

.open .site-nav a.active {
    border: 10px solid var(--accent);
    border-radius: 50px;
    background-color: var(--accent);
    color: var(--dark);
    font-weight: 500;
}

/* Hamburger */

.site-nav__hamburger {
    cursor: pointer;
    grid-column: 8/9;
    justify-self: end;
    /* outline: 1px solid red; */
    height: 20px;
    width: 40px;
    position: relative;
    transition: 0.6s cubic-bezier(.99, .3, .06, .79);
}

.site-nav__hamburger span {
    background: var(--light);
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    border-radius: 20px;
    transition: 0.6s cubic-bezier(.99, .3, .06, .79);
}

.site-nav__hamburger span:nth-child(1) {
    top: 0;
    width: 90%;
    opacity: 1;

}

.site-nav__hamburger span:nth-child(2),
.site-nav__hamburger span:nth-child(3) {
    top: 10px;
    width: 70%;

}

.site-nav__hamburger span:nth-child(4) {
    top: 20px;
    width: 90%;
    opacity: 1;

}

/* Hamburger in open */
.open .site-nav__hamburger {
    transform: rotate(180deg);
    z-index: 999;
}

.open .site-nav__hamburger span:nth-child(1),
.open .site-nav__hamburger span:nth-child(4) {
    width: 0;
    opacity: 0.4;

}

.open .site-nav__hamburger span:nth-child(2) {
    transform: rotate(45deg);
    width: 80%;

}

.open .site-nav__hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 80%;
}


/* Section Typography */
.typography__cta {
    grid-column: 1/9;
}

.typography__cta a {
    color: var(--light);
    font-size: 0.6em;
}

.typography__cta a:hover {
    color: var(--accent);
}

.typography__title {
    grid-column: 1/9;
    color: var(--light);
    font-size: 1.8em;
    line-height: 1.5em;
    margin-bottom: 70px;
}

/* Section Project 1: A type for Nature */
#project-1 {
    grid-column: 1/3;
}

#project-1 h3 {
    color: var(--light);
    font-weight: 300;
    text-align: center;
    margin-top: 30px;
}

#project-1 h1 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.1em;
}

.project-1-img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

.project-1-img img:hover {
    transform: scale(1.1);
    transition: transform .5s;
}

.project-1-text {
    grid-column: 1/9;
    color: var(--light);
}

.project-1-text h3 {
    font-weight: 300;
    margin-bottom: 30px;
}

.project-1-more-img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

.project-1-more-img img {
    margin-top: 30px;
}

.project-1-more-img img:hover {
    transform: scale(1.1);
    transition: transform .5s;
}

.project-1-objective-text {
    grid-column: 1/9;
    color: var(--light);
}

.project-1-objective-text h3 {
    font-weight: 300;
    margin-bottom: 30px;
}



/* Section Contacts */
#contacts {
    grid-column: 1/3;
    margin-top: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

#contacts h3 {
    color: var(--light);
    font-weight: 300;
    text-align: center;
    margin-top: 100px;
}

#contacts h1 {
    color: var(--light);
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.sections__contacts {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}

.sections__contacts .wrapper-1 {
    grid-column: 1/9;
}

.sections__contacts .wrapper-2 {
    grid-column: -1/-9;
}

.wrapper-1-title,
.wrapper-2-title {
    margin-bottom: 50px;
}

.wrapper-2-title h1 {
    margin-top: 50px;
}

.wrapper-1-icon {
    display: flex;
    justify-content: space-around;
}

.wrapper-2-icon {
    display: flex;
    justify-content: space-around;
}

.icon {
    text-decoration: none;
    width: 5.625rem;
    height: 5.625rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.icon>i {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.2s;
}

.icon:hover>i {
    scale: 2.2;
    background: var(--primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 100%;
    background: var(--primary);
    scale: 1;
    z-index: -1;
    transition: all 300ms ease-out;
}

.icon:hover::before {
    scale: 0;
}

/* Footer */
footer {
    background-color: var(--secondary);
    margin-top: 100px;
    color: var(--light);
    text-align: center;
    height: 230px;
}

.footer .info {
    grid-column: 1/9;
}

.info h5 {
    font-weight: 300;
    margin-top: 40px;
    margin-bottom: 10px;
}

.footer .navigation {
    grid-column: -1/-9;
}

.navigation a {
    color: var(--light);
    margin-left: 10px;
    margin-right: 10px;
}

.navigation a:hover {
    color: var(--dark);
}

.footer .copyright {
    grid-column: 1/9;
    margin-top: 25px;
}

.copyright h6 {
    font-weight: 500;
    color: var(--dark);
}




/* -------------------------------------------------------------------------------- */
/* ! Dispositivi medium */
/* -------------------------------------------------------------------------------- */
@media (min-width: 768px) {

    /* Section Typography */
    .typography__cta {
        grid-column: 1/6;
        font-size: 1.4em;
        margin-top: 50px;
    }

    .typography__title {
        grid-column: 1/7;
        color: var(--light);
        font-size: 2.5em;
        line-height: 1.5em;
        margin-bottom: 70px;
    }

    /* Section Project 1: A type for Nature */
    .project-1-img img {
        width: 650px;
    }

    .project-1-more-img img {
        width: 500px;
        margin-top: 30px;
        margin-bottom: 30px;
    }


    /* Section Contacts */
    .sections__contacts .wrapper-1 {
        grid-column: 3/7;
        margin-bottom: 50px;
    }

    .sections__contacts .wrapper-2 {
        grid-column: -2/-8;
    }

    /* Footer */
    footer {
        height: 200px;
    }

}


/* -------------------------------------------------------------------------------- */
/* ! Dispositivi large */
/* -------------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .grid {
        max-width: 1060px;
        margin: 0 auto;
    }

    /* Header */

    .site-nav {
        display: grid;
        grid-column: 1/9;
    }

    .site-nav img {
        width: 75px;
        align-self: center;
    }

    .site-nav .site-nav__menu {
        all: inherit;
        grid-column: 5/8;
    }

    .site-nav__menu a {
        font-size: 22px;
        color: var(--light);
        font-weight: 500;
        margin-right: 10px;
    }

    .site-nav__menu a:hover {
        color: var(--accent);
        font-weight: 500;
    }

    .site-nav__menu a.active {
        border: 10px solid var(--accent);
        border-radius: 50px;
        background-color: var(--accent);
        color: var(--dark);
        font-weight: 500;
    }

    .site-nav__hamburger {
        display: none;
    }

    /* Section Contacts */
    .sections__contacts .wrapper-1 {
        grid-column: 1/4;
        margin-bottom: 50px;
    }

    .sections__contacts .wrapper-2 {
        grid-column: 5/9;
    }

    .wrapper-2-title h1 {
        margin-top: 0px;
    }
}