/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p.leading {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 20px;
}


/* ! pagina sezione comunicazione*/
section {
    /* outline: 1px solid red; */
    scroll-margin-top: 80px;
    margin-bottom: 40px;


}


a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utlity */
.clippy {
    clip-path: circle();
}

.res {
    width: 100%;
    max-width: 400px;
}

.res2 {
    /* width: 100%; */
    max-width: 400px;
}

.res3 {
    width: 100%;
    max-width: 350px;
}

.container {
    max-width: 1200px;
}


html,
body {
    overflow-x: hidden;
    /* scrooll più morbido chiedere al prof se ho fatto bene  */
    scroll-behavior: smooth;

}

/* Tipografia */
h1,
h2,
h3,
h4 {
    font-family: "Source Serif 4", serif;
}

body {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    line-height: 1.2;

}



/* Tavolozza colore */
:root {
    --primary: #000000;
    --light: #ffffff;
    --accent: #5BBA6F;
    --dark: #054A29;
}

/* Animazioni */
@keyframes openPanel {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Grid per Mobile first */
/* -------------------------------------------------------------------------------- */
/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}



/* FOOTER */
.footer {
    grid-column: 1/9;
}

/* posizione fissa sullo schermo */
.fabs {
    position: fixed;
    right: 20px;
    bottom: 20px;
}

/* footer prima del passaggio del mouse */
.action {
    background: var(--dark);
    height: 50px;
    width: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 7px 0px gray;
    transition: background-color 0.4s ease-in-out;
}

/* icona */
.action i {
    position: absolute;
    color: var(--light);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    cursor: pointer;
}

/* footer dopo il passaggio del mouse */
.action:hover {
    background-color: var(--accent);

}

.btn {
    position: absolute;
    height: 35px;
    width: 35px;
    border-radius: 50%;
}

.btn i {
    position: absolute;
    font-size: 18px;
    color: var(--light);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btns {
    position: absolute;
    bottom: 0px;
    margin-bottom: 5px;
    height: 35px;
    width: 35px;
    transition: 0.3s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.btns.open {
    bottom: 50px;
}



/* nav menu */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

.wrapper {
    grid-column: 1/9;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(-135deg, var(--accent), var(--dark));
    clip-path: circle(25px at calc(100% - 45px) 45px);
    transition: all 0.3s ease-in-out;
    z-index: 99;

}

#active:checked~.wrapper {
    clip-path: circle(75%);
}

.menu-btn {
    /* position: absolute; */
    position: fixed;
    z-index: 6;
    right: 20px;
    top: 20px;
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(-135deg, var(--accent), var(--dark));
    transition: all 0.3s ease-in-out;
    z-index: 100;
}

#active:checked~.menu-btn {
    background: #fff;
    color: var(--dark);
}

#active:checked~.menu-btn i:before {
    content: "\f00d";
}

.wrapper ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    list-style: none;
    text-align: center;
    z-index: 99;
}

.wrapper ul li {
    margin: 15px 0;
}

.wrapper ul li a {
    color: none;
    text-decoration: none;
    font-size: 30px;
    font-weight: 500;
    /* padding: 5px 30px; */
    color: var(--light);
    position: relative;
    line-height: 50px;
    transition: all 0.3s ease;
}

.wrapper ul li a:after {
    position: absolute;
    content: "";
    background: var(--light);
    width: 100%;
    height: 50px;
    left: 0;
    border-radius: 50px;
    transform: scaleY(0);
    z-index: -1;
    transition: transform 0.3s ease;
}

.wrapper ul li a:hover:after {
    transform: scaleY(1);
}

.wrapper ul li a:hover {
    color: var(--dark);
    /* padding: 10px; */
}

input[type="checkbox"] {
    display: none;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    text-align: center;
    width: 100%;
    color: #202020;
}

.content .title {
    font-size: 35px;
    font-weight: 700;
}

.content p {
    font-size: 30px;
    font-weight: 600;
}




/* ! pagina sezione comunicazione*/



/* TASTO HOME */

.mionome {
    padding: 15px;
}

/* tasto home */
.mionome a {

    background: var(--light);
    opacity: 50%;
    padding: 10px;
    border-radius: 20px;
    color: var(--dark);
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

}




/* SCRITTA SCOPRI DI PIU'*/
.scopri {
    grid-column: 1/9;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-bottom: 20px;
    gap: 30px;
}


/* bottoni con le sezioni che rimandano ai progetti singoli */
.buttons {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* padding-top: 15px; */
}


.buttons a {
    background-color: rgba(255, 255, 255, 0.4);
}

.buttons a {

    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
}


/* scritta scopri di più più icona */

.button2 {

    font-weight: 700;
    text-decoration: underline;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);

}

/* se passi sulla scitta diventa più grande */
.button2:hover {
    transform: scale(1.1);
}


/* icona tonda con freccia */
.bottonetondo {
    color: var(--primary);
    font-size: 40px;

}



/* hero sfondo web design*/
.hero {

    background: url(../img/webdesign.jpg) 100% 100%;
    background-size: cover;
    /* con questa funzione mi posiziona la scritta esattamente su fotografia */
    background-position: revert-layer;
    background-attachment: scroll;
    height: 100vh;

}


/* Titolo web design hero */
.title__web {
    grid-column: 1/9;
    font-size: 8vw;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    /* margin-top: 3em; */
    /* padding: 2em; */
    gap: 30px;

}



/* linea sotto titolo e sottotitolo */

hr.linea {
    width: 100%;
    border: 1px;
    grid-column: 2 / span 6;
    justify-self: center;
    align-self: center;
    border-bottom: 2px solid var(--primary);
    margin: 0;
    margin: 20px 0;

}

/* TESTI H1 LIBRO */
.testi__libro {
    grid-column: 1/ 9;
}


/* TESTI H1 FONDAZIONE */
.testi__fondazione {
    grid-column: 1/ 9;
    margin-top: 40px;
}


/* GALLERIA LIBRO GATTI */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.img-container {
    overflow: hidden;
}

/* grandezza titoli  */
.small-photo h2 {
    font-size: 20px;
    margin-top: 20px;
}

.main-photo img,
.side-photo img,
.text-square img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* VOGLIO LO ZOOM IN AL CLICK */
.img-container:hover img {
    transform: scale(1.1);
}

.text-square {
    /* background-color: black; */
    color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    color: var(--primary);
}


/* TASTO VISITA IL SITO */
.text-square a {
    color: var(--light);
    background-color: var(--dark);
    padding: 10px;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
}

.text-square a:hover {
    background-color: var(--light);
    color: var(--dark);
    border: 2px solid var(--dark);
}

.small-photo a {
    color: var(--light);
    background-color: var(--dark);
    padding: 10px;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
}

.small-photo a:hover {
    background-color: var(--light);
    color: var(--dark);
    border: 2px solid var(--dark);
}



/* GALLERIA MEMOFONTE */
.gallerymemofonte {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.img-container {
    overflow: hidden;
}

.main-photo img,
.side-photo img,
.full-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.1);
}

.sub-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.side-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-photo a {
    margin-top: 10px;
    color: blue;
    text-decoration: none;
}

.full-photo {
    grid-column: 1 / -1;
}


/* GALLERIA MEMOFONTE */
.gallery2 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
    width: 100%;
    max-width: 600px;
    padding: 15px;
}

.img-container {
    overflow: hidden;
}

.large-photo img,
.small-photo img,
.full-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.1);
}

.sub-gallery2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.small-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
}



.full-photo {
    grid-column: 1 / -1;
}


/* TASTO BACK TO TOP */
.backtotop {
    margin-left: 25px;
    margin-top: 50px;
    font-size: 1.4em;
    transition: all 3s;
    scroll-behavior: smooth;
}


/* PRIVACY POLICY */
footers {
    position: absolute;

    width: 100%;
    background-color: #f8f8f8;
    padding: 10px;
    text-align: center;
}

.footers-content {
    display: inline-block;
}

.privacy-policy {
    font-size: 12px;
    color: #666666;
}



/* tasto scopri di più */
.scopri {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
}


/* ! media query medium and large*/

@media (min-width: 768px) {

    /* bottoni con le sezioni disposti in riga non più in colonna come nel mobile */
    .buttons {
        grid-column: 1/9;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        /* padding-top: 15px; */
    }

    /* galleria libro se i gatti scomparissero */
    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        max-width: 900px;
        padding: 20px;
    }

    .main-photo {
        grid-column: 1 / 3;
    }

    .side-photo {
        grid-column: 1;
        grid-row: 2;
    }

    .text-square {
        grid-column: 2;
        grid-row: 2;
    }



    /* galleria memofonte*/

    .gallery2 {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
        max-width: 800px;
        margin: 0 auto;
        padding: 15px;
    }

    .large-photo {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .sub-gallery2 {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }

    .full-photo {
        grid-column: 1 / 4;
    }


    /* TESTI H1 LIBRO */
    .testi__libro {
        grid-column: 2/ 8;
        text-align: center;

    }


    /* TESTI H1 FONDAZIONE */
    .testi__fondazione {
        grid-column: 2/ 8;
        text-align: center;


    }



}

/* ! media query medium and large*/
/* -------------------------------------------------------------------------------- */
@media screen and (min-width: 768px) and (min-width: 992px) {

    /* LINEA SOTTO TESTO */
    hr.linea {
        width: 100%;
        border: 1px;
        grid-column: 2 / span 6;
        justify-self: center;
        align-self: center;
        border-bottom: 2px solid var(--primary);
        margin: 0;
        margin: 20px 0;


    }


    /* in modalità mobile voglio le voci del menù in colonna */
    .voci__menu {

        flex-direction: row;
        margin: 0 auto;
        gap: 20px;
    }




    /* immagini galleria foto in laboratorio chimere */
    .about-wrappers {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .about-left {
        position: relative;
    }

    .about-left-content {
        position: absolute;
        right: -50px;
    }

    .title__web {
        grid-column: 1/9;
        font-size: 5vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* margin-top: 3em; */
        /* padding: 2em; */
        gap: 30px;

    }

    /* galleria libro se i gatti scomparissero */

    .gallery {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto 1fr;
        gap: 20px;
        max-width: 1200px;
        padding: 20px;
        margin: 0 auto;
        padding: 15px;
        /* Aggiunge un margine automativo su entrambi i lati */

    }

    .main-photo {
        grid-column: 1 / 3;
    }

    .side-photo {
        grid-column: 1;
        grid-row: 2;
    }

    .text-square {
        grid-column: 2;
        grid-row: 2;
    }



    /* galleria memofonte*/

    .gallery2 {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .large-photo {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .sub-gallery2 {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }

    .full-photo {
        grid-column: 1 / 4;
    }


    /* TESTI H1 LIBRO */
    .testi__libro {
        grid-column: 2/ 8;
        text-align: center;

    }


    /* TESTI H1 FONDAZIONE */
    .testi__fondazione {
        grid-column: 2/ 8;
        text-align: center;

    }



}