/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* non voglio ancore decorate */
a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utlity */
.clippy {
    clip-path: circle();
}

.res {
    width: 100%;
    max-width: 500px;
}

.res2 {
    /* width: 100%; */
    max-width: 500px;
}

.container {
    max-width: 1200px;
}



html,
body {
    overflow-x: hidden;
    /* scrooll più morbido chiedere al prof se ho fatto bene  */
    scroll-behavior: smooth;

}

/* Tipografia */

/* Tavolozza colore */
:root {
    --primary: #000000;
    --light: #ffffff;
    --accent: #f36baf;
    --dark: #a581ec;
}

/* 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;
}

/* ! pagina principale scritta portfolio più voci menù*/

/* background-color portfolio */
.absolute {
    grid-column: 1/9;
    position: absolute;
    top: 50px !important;
    inset: 0;
    justify-content: center;
    display: inline-flex;
    flex-direction: row;
}


.justify-center {
    justify-content: center;
}

.bg-shape1 {
    width: 400px;
    height: 400px;
    border-radius: 9999px;
    position: relative;
    /* animation: one 10s infinite; */
}


.bg-shape2 {
    width: 300px;
    height: 300px;
    border-radius: 9999px;
    position: relative;
    /* animation: two 10s infinite; */
}

.opacity-50 {
    opacity: .5;
}

/* SFOCATURA BG */
.bg-blur {
    filter: blur(90px);
}

/* COLORI SFONDO */
.bg-primary {
    background-color: rgb(30, 0, 255);
}

.bg-teal {
    background-color: rgb(255, 72, 173);
}

.bg-purple {
    background-color: rgb(140, 0, 215);
}


/* dico sia a il titolo portfolio sia agli elementi sotto di occupare tutto lo schermo */
.text {
    grid-column: 1/9;
    position: relative;
    display: flex;
    flex-direction: column;
    /* gli dico di disporsi al centro */
    justify-content: center;
    align-items: center;

}

/* GRANDEZZA TITOLO E FONT */
.texttitolo {
    font-size: 10vw;
    font-family: "Source Serif 4", serif;
}


/* in modalità mobile voglio le voci del menù in colonna */
.voci__menu {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 20px;
    font-size: 20px;
    font-family: "Lato", sans-serif;

}

.voci__menu a {
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 4px;
    text-decoration: none;
    color: var(--primary);
}

.fa-solid {
    margin-right: 10px;
}


/* PRIVACY POLICY */
footers {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    padding: 10px;
    text-align: center;
}

.footers-content {
    display: inline-block;
}

.privacy-policy {
    font-size: 14px;
    color: #666666;
    font-family: "Source Serif 4", serif;
}






/* FOOTER */
.footer {
    grid-column: 1/9;
}

/* posizione fissa sullo schermo */
.fabs {
    position: fixed;
    right: 20px;
    /* bottom: 20px; */
    bottom: 60px;
}

/* footer prima del passaggio del mouse */
.action {
    background: var(--accent);
    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(--dark);

}

.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;
}


/* ! pagina principale scritta portfolio più voci menù*/
/* 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, #f097ea, #4158d0);
    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, #f36baf, #a581ec);
    transition: all 0.3s ease-in-out;
    z-index: 100;
}

#active:checked~.menu-btn {
    background: #fff;
    color: #a581ec;
}

#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;
    font-family: "Lato", sans-serif;
    font-size: 20px;
}

.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;
}





/* tasto home */
.tastohome 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;
    font-family: "Lato", sans-serif;
    font-size: 20px;

}

/* spazio tasto home */
.tastohome {
    padding: 20px;
}




/* tasto about me */
.mionome .aboutme {
    font-size: 20px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 4px;
    text-decoration: none;
    color: var(--primary);
    font-family: "Lato", sans-serif;
}

/* tasto home  */
.mionome {
    padding: 20px;
}




/* ! pagina sezione fotografia*/
section {
    /* outline: 1px solid red; */
    scroll-margin-top: 80px;
    margin-bottom: 25px;
    padding: 15px;
}



/* Hero pagina fotografia*/
.hero {
    grid-column: 1/9;


}


.title__foto {
    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;

}


/* tasto scopri di più */
.scopri {
    grid-column: 1/9;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-bottom: 20px;
    gap: 30px;
}


/* bottoni con le sezioni */
.buttons {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 20px;
    /* padding-top: 15px; */
    font-family: "Lato", sans-serif;
    font-size: 20px;
}

.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-family: "Lato", sans-serif;
    font-size: 20px;
    background: var(--light);

}


/* scritta scopri di più più icona */

.button2 {

    font-weight: 700;
    text-decoration: underline;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
    font-family: "Lato", sans-serif;

}

/* 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 fotografia*/
.hero {

    background: url(../img/5502258.png) 100% 100%;
    background-size: cover;
    /* con questa funzione mi posiziona la scritta esattamente su fotografia */
    background-position: revert-layer;
    background-attachment: scroll;
    height: 100vh;

}



/* GRID GALLERY FOTO RAGAZZO DI COLORE CON FILTRO VIOLA*/
/* titoli sezione fotografia gli dico di posizionarsi al centro */
.titolifoto h1 {
    grid-column: 2 / span 6;
    justify-self: center;
    align-self: center;
    font-size: 40px;
    margin-top: 40px;
}

/* linea sotto gli h1 */
hr.linea {
    width: 80%;
    border: 1px;
    grid-column: 2 / span 6;
    justify-self: center;
    align-self: center;
    border-bottom: 2px solid var(--primary);
    margin: 0;

}



/* GRID GALLERY FOTO RAGAZZO DI COLORE CON FILTRO */
.grid-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    grid-gap: 20px;
}

/* titolo galleria */
.grid-gallery h1 {
    grid-column: 2 /8;
    justify-self: center;
    align-self: center;
}


.grid-gallery .grid-item {
    position: relative;
    background-color: var(--light);
    overflow: hidden;
}


.grid-gallery .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

}


.grid-gallery .grid-item:hover img {
    transform: scale(1.1);
}

.grid-gallery .grid-item:hover a {
    cursor: zoom-in;
}

.grid-gallery .grid-item:nth-child(3n - 2) {
    cursor: zoom-in;
    grid-column: span 2;
    grid-row: span 2;
}






/* TEATRO FOTO SEZIONE FOTOGRAFIA GRIGLIA */
.image-gallery {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    grid-gap: 20px;
}

.image-gallery .image-box {
    position: relative;
    background-color: var(--light);
    overflow: hidden;
}

.image-gallery .image-box:nth-child(7n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.image-gallery .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.image-gallery .image-box:hover img {
    transform: scale(1.1);
}

.image-gallery .image-box .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.image-gallery .image-box:hover .overlay {
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    opacity: 1;
}

.image-gallery .image-box .details {
    text-align: center;
}

.image-gallery .image-box .details .title {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    top: -5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-gallery .image-box .details .category {
    font-size: 18px;
    font-weight: 400;
    position: relative;
    bottom: -5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-gallery .image-box:hover .details .title {
    top: 0px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s 0.2s ease;
}

.image-gallery .image-box:hover .details .category {
    bottom: 0;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s 0.2s ease;
}

.image-gallery .image-box .details .title a,
.image-gallery .image-box .details .category a {
    color: #222222;
    text-decoration: none;
}





/* GALLERIA SEZIONE FOTO ELISA */
.image-grid {

    border-radius: 12px;
    --gap: 16px;
    --num-cols: 4;
    --row-height: 300px;

    box-sizing: border-box;
    padding: 60px 60px;
    margin: 20px;

    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr);
    grid-auto-rows: var(--row-height);
    gap: var(--gap);

}

.image-grid>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-col-2 {
    grid-column: span 2;
}

.image-grid-row-2 {
    grid-row: span 2;
}


/* TASTO BACK TO TOP */
.backtotop {
    margin-left: 25px;
    margin-top: 50px;
    font-size: 1.4em;
    transition: all 3s;
    scroll-behavior: smooth;
}






/* Anything udner 1024px */

@media screen and (max-width: 1024px) {
    .image-grid {
        --num-cols: 2;
        --row-height: 200px;
    }
}




/* ! 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; */
    }


    /* dai dispositivi medi in poi voglio il titolo photogaphy più grande */
    /* .title__foto {
        font-size: 10vw;
    } */


    /* voglio le voci del menu in riga e non più in colonna */
    .voci__menu {

        flex-direction: column;
        margin: 0 auto;
        gap: 20px;
    }



}


/* -------------------------------------------------------------------------------- */
@media screen and (min-width: 768px) and (min-width: 992px) {

    /* Grandezza titolo portfolio più grande in tablet e dispositivi larghi */
    .texttitolo {
        font-size: 6vw;
        font-family: "Source Serif 4", serif;
    }

    /* sottolineato sotto i titoli */
    hr.linea {
        width: 80%;
        border: 1px;
        grid-column: 2 / span 6;
        justify-self: center;
        align-self: center;
        border-bottom: 2px solid var(--primary);
        margin: 0;

    }


    /* in modalità tablet e schermi grandi voglio le voci del menù sotto la scritta portfolio in riga */
    .voci__menu {

        flex-direction: row;
        margin: 0 auto;
        gap: 20px;
    }


    /* titolo hero sezione fotografia */
    .title__foto {
        grid-column: 1/9;
        font-size: 6vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* margin-top: 3em; */
        /* padding: 2em; */
        gap: 30px;

    }





}


/* Responsive styles */
@media (max-width: 768px) {

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }


    /* GRID FOTO RAGAZZO CON FILTRO VIOLA */
    .grid-gallery {

        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 250px;

    }

    .grid-gallery .grid-item:nth-child(3n - 2) {
        cursor: zoom-in;
        grid-column: unset;
        grid-row: unset;
    }



    /* galleria responsive di tipo grid SEZIONE FOTO TEATRO*/
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 250px;
    }

    .image-gallery .image-box:nth-child(7n + 1) {
        grid-column: unset;
        grid-row: unset;
    }



}