:root {
    --bg-color: #111;
    --text-color: #fff;
    --accent: #000;
}

body,
html {
    font-weight: normal;
    cursor: default;
    margin: 0;
    text-rendering: optimizeLegibility;
    font-family: 'space', sans-serif;
    padding: 0;

    font-weight: 300;
    color: var(--text-color);
    background-color: var(--bg-color);

    background-image: url(../../images/sfondo-stelle-nasa.jpg);
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
    background: 0 0
}

::selection {
    background: #000;
}

::-moz-selection {
    background: #000;
}

* {
    -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar-thumb {
    background: 0 0
}

::-webkit-scrollbar {
    display: none;
    background: 0 0;
    -ms-overflow-style: none;
    width: 0 !important
}

a {
    text-decoration: none;
    color: var(--text-color);
}

a:visited {
    text-decoration: none;
}

a {
    text-decoration: none;
    color: none;
    cursor: pointer !important
}

@font-face {
    font-family: 'space';
    src: url("../fonts/MrHenry-Regular.ttf");
    font-weight: 300;
    font-style: normal;
}

.arrow {
    z-index: 10;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    transform: rotate(45deg);
    animation: animate 2s infinite
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(225deg) translate(-10px, -10px)
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: 0;
        transform: rotate(225deg) translate(10px, 10px)
    }
}

.selected {
    text-decoration: underline
}

.preloader {
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    position: fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    z-index: 100;
    flex-direction: column
}

.preloader .preloaderTextTwo {
    margin-top: 5px;
    font-size: 40x;
}

.menuMobile {
    display: none
}

.menuBtn {
    display: none
}

.hideMobile {
    display: none
}

.spaceMobile {
    display: none
}

.navbar {
    position: fixed;
    margin-top: 50px;
    width: 100%;
    z-index: 1;
    height: auto;
    text-decoration: none;
    color: #000
}

.navbar .top {
    font-weight: 200;
    margin-left: 100px;
    justify-self: auto;
    color: #000;
    margin-bottom: 20px;
    font-size: 28px;
}

.navbar .bottom {
    margin-right: 100px;
    margin-left: 0;
    width: auto;
    display: flex;
    flex-direction: row
}

.navbar .bottom .left {
    width: 50%;
    margin-left: 0;
    margin-right: auto
}

.navbar .bottom .right {
    margin-left: auto;
    margin-right: 0
}

.navbar ul {
    flex-direction: column;
    font-weight: 200;
    padding-left: 0;
    display: flex;
    justify-content: space-between;
    width: 30%;
    margin-left: 100px;
    margin-right: auto;
    list-style-type: none;
    font-size: 18px;
}

.navbar li:hover {
    text-decoration: underline;
    cursor: pointer
}

#firstPanel {
    margin-top: 20vh
}

.panel {
    min-height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: 'space', sans-serif
}

.panelProfile {
    min-height: 20vh;
    padding-top: 20vh;
    height: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: 'space', sans-serif
}

.title {
    text-align: center;
    font-size: 60px;
    font-weight: 200;
    margin-top: 150px
}

.containerPhoto {
    position: relative;
    align-items: center;
    justify-content: center;
    width: 1140px;
    height: 100%
}

.squareHome {
    transform: scale(1);
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.3s;
    text-align: center;
    z-index: 1;
}

.image-vertical {
    max-width: 1140;
    width: 34vw;
    height: calc((34vw/4)*5);
    display: flex;
    align-self: center;
    margin: auto;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    justify-content: center
}

.image-square {
    max-width: 1140;
    width: 34vw;
    height: 34vw;
    display: flex;
    align-self: center;
    margin: auto;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    justify-content: center
}

.image-horizontal {
    max-width: 1140;
    width: 52vw;
    height: calc((52vw/3)*2);
    display: flex;
    align-self: center;
    margin: auto;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    justify-content: center
}

.image-vertical-two {
    max-width: none;
    width: 34vw;
    height: calc((34vw/2.2)*3);
    display: flex;
    align-self: center;
    margin: auto;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    justify-content: center;
    justify-content: center
}

.overlay {
    z-index: -1;
    position: absolute;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: #000;
    align-self: center;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: all 0.3s;
    display: flex
}

.cap {
    position: absolute;
    margin: auto;
    width: auto;
    height: auto;
    align-self: center;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s;
    z-index: 3;
}

.img-hover {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    -moz-filter: blur(8px);
    -o-filter: blur(8px);
    -ms-filter: blur(8px);
}

.image-square:hover .overlay {
    cursor: pointer;
    opacity: 0.5;
}

.image-square:hover .cap {
    cursor: pointer;
    opacity: 1;
}

.image-vertical:hover .overlay {
    cursor: pointer;
    opacity: 0.5;
}

.image-vertical:hover .cap {
    cursor: pointer;
    opacity: 1;
}

.image-horizontal:hover .overlay {
    cursor: pointer;
    opacity: 0.5;
}

.image-horizontal:hover .cap {
    cursor: pointer;
    opacity: 1
}

.image-vertical-two:hover .overlay {
    cursor: pointer;
    opacity: 0.5;
}

.image-vertical-two:hover .cap {
    cursor: pointer;
    opacity: 1
}

.image-profile {
    max-width: none;
    width: 34vw;
    height: auto;
    display: flex;
    align-self: center;
    margin: auto;
    overflow: hidden;
    cursor: pointer
}

.about {
    width: auto;
    display: flex;
    flex-direction: column
}

.about .instagram {
    margin-top: 30px;
    text-align: center;
    cursor: pointer
}

.about .instagram:hover {
    text-decoration: underline
}

.about .mail {
    margin-top: 70px;
    cursor: default;
    text-align: center
}

.about .chiocciola {
    font-family: sans-serif
}

@media screen and (max-width: 1024px) {
    .arrow {
        display: none
    }

    .panelProfile {
        min-height: 20vh;
        padding-top: 10vh;
        height: auto;
        display: flex;
        justify-content: space-around;
        align-items: center;
        font-family: 'space', sans-serif
    }

    .hideMobile {
        display: block
    }

    .spaceMobile {
        display: flex;
        height: 10vh;
        width: 100%
    }

    .title {
        text-align: center;
        font-size: 20px;
        font-weight: 200;
        margin-top: 0
    }

    .menuMobile {
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        position: fixed;
        background-color: var(--bg-color);
        z-index: 3 !important;
        justify-content: space-around;
        transition: all 0.5s;
        display: none;
        opacity: 0
    }

    .menuMobile .center {
        width: auto;
        height: auto;
        padding: 2px;
        margin: auto;
        text-align: center
    }

    .menuMobile .center ul {
        font-size: 24px;
        line-height: 40px;
        font-weight: 200;
        padding-left: 0;
        list-style-type: none
    }

    .show {
        transition: all 0.5s;
        display: flex;
        opacity: 1
    }

    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 3 !important;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        height: 60px;
        margin-top: 0;
        text-decoration: none;
        color: #000;
        flex-direction: row
    }

    .navbar .top {
        width: 100%;
        margin-left: 0;
        display: flex;
        text-align: left;
        justify-self: auto;
        color: var(--text-color);
        font-size: 24px;
        flex-direction: row;
        height: 100%;
        align-items: center;
        justify-content: center;
        background-color: transparent;
    }

    .navbar .top .logo {
        margin: auto auto auto 5vw;
        transition: 0.4 all ease
    }

    .navbar .top .menuBtn {
        display: flex;
        margin-bottom: auto;
        margin-top: auto;
        margin-right: 3vw;
        width: 26px;
        height: 26px;
        transition: all 0.5s;
        background-image: url(../icons/icons8-menu-90.png);
        background-size: cover;
    }

    /*.navbar .top .clicked {}*/

    .navbar .bottom,
    .navbar-desktop {
        display: none !important;
    }

    .panel {
        height: auto;
        min-height: 10vh;
        margin-top: 5vw;
        margin-bottom: 5vw;
        width: 90vw;
        margin-left: auto;
        margin-right: auto
    }

    .containerPhoto {
        position: relative;
        align-items: center;
        justify-content: center;
        height: auto
    }

    .squareHome {
        transform: scale(1);
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: 0.3s;
        text-align: center;
    }

    .image-vertical {
        max-width: none;
        width: 90vw;
        height: calc((90vw/4)*5);
        display: flex;
        align-self: center;
        margin: auto;
        overflow: hidden
    }

    .image-horizontal {
        max-width: none;
        width: 90vw;
        height: calc((90vw/3)*2);
        display: flex;
        align-self: center;
        margin: auto;
        overflow: hidden
    }

    .image-vertical-two {
        max-width: none;
        width: 90vw;
        height: calc((90vw/2)*3);
        display: flex;
        align-self: center;
        margin: auto;
        overflow: hidden
    }

    .image-square {
        max-width: 1140;
        width: 90vw;
        height: 90vw;
        display: flex;
        align-self: center;
        margin: auto;
        overflow: hidden
    }

    .image-profile {
        max-width: none;
        width: 90vw;
        height: auto;
        display: flex;
        align-self: center;
        margin: auto;
        overflow: hidden
    }

    /* my responsive */
    .navbar-mobile {
        display: block !important;
    }
}

.text-center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}


/* my class */
.menuPanel {
    min-height: 15vh;
    max-height: 15vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: 'space', sans-serif
}

.my-menu-items {
    display: inline;
    list-style-type: none;
    /* Remove bullets */
    padding: 0;
    /* Remove padding */
    margin: 0;
    /* Remove margins */
}

.menu-options a {
    padding-left: 15px;
    padding-right: 15px;
}

.menu-title h2 {
    font-weight: 400;
}

.navbar-mobile {
    display: none;
}


.img-logo {
    max-width: 150px;
    padding-top: 50px;
}




.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Spaziatura tra le righe */
}

.row {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Spaziatura tra le immagini */
}

.row img {
    width: 100%;
    /* Base per il responsive */
    height: auto;
    max-width: calc(50% - 5px);
    /* Due immagini nella prima riga */
    border-radius: 8px;
    object-fit: cover;
}

/* Seconda riga: quattro immagini */
.row:nth-child(2) img {
    max-width: calc(25% - 7.5px);
    /* Quattro immagini nella seconda riga */
}

/* Responsività */
@media (max-width: 768px) {
    .row img {
        max-width: calc(100% - 10px);
        /* Immagini in colonna su schermi piccoli */
    }
}


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loading-video {
    max-width: 100%;
    max-height: 100%;
}

.loaded #loader {
    display: none;
}

/* Stili base per la sezione e l'immagine */
.sezione-1 {
    width: 100%;
    /* Impostiamo un'altezza massima per evitare che l'immagine diventi troppo alta.
     Qui, come esempio, usiamo 50vh (50% dell'altezza della viewport) */
    max-height: 50vh;
    overflow: hidden;
    /* Nascondiamo eventuali parti eccedenti */
}

.sezione-1 img {
    width: 100%;
    height: 40%;
    display: block;
}

/* Media Query per dispositivi desktop */
@media screen and (min-width: 1024px) {
    .sezione-1 {
        /* Su desktop possiamo permetterci un'altezza maggiore, ad esempio 60vh,
       oppure fissarla a un valore massimo in pixel se preferisci */
        max-height: 60vh;
    }
}

/* Media Query per dispositivi mobile */
@media screen and (max-width: 768px) {
    .sezione-1 {
        /* Su mobile riduciamo l'altezza per non occupare troppo spazio sullo schermo */
        max-height: 40vh;
    }
}

