/* Fonts */

@import url(font-awsome.css);

.icon.brands:before {
    font-family: 'Font Awesome 5 Brands';
    color: white;
    font-size: 20px;
    display: flex;
    gap: 5px;
    align-items: center;
}


.brands {
    display: flex;
        gap: 5px;
        align-items: center;
}

.icon.brands span {
    color: white;
}

.socialdiv {
        background-color: black;
            display: flex;
            justify-content: center;
            justify-content: center;
            gap: 15px;
            height: 30px;
}

.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-transform: none !important;
    font-weight: 400;
}

/*GEIST*/

@font-face {
    font-family: 'Geist';
    src: url('/fonts/GeistVF.woff2') format('woff2'),
        url('/fonts/GeistVF.woff') format('woff');
}

/*ICONE*/

@font-face {
    font-family: 'Icons';
    src: url('/webfo/GeistVF.woff2') format('woff2'),
        url('/fonts/GeistVF.woff') format('woff');
}



/*GEOSANS*/

@font-face {
    font-family: 'Geosans';
    src: url('/fonts/GeosansLight.woff2') format('woff2'),
        url('/fonts/GeosansLight.woff') format('woff');
}



/*  HUMANE */

/* Regular */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-Regular.woff2') format('woff2'),
        url('/fonts/Humane-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Medium */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-Medium.woff2') format('woff2'),
        url('/fonts/Humane-Medium.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

/* Semi Bold */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-SemiBold.woff2') format('woff2'),
        url('/fonts/Humane-SemiBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-Bold.woff2') format('woff2'),
        url('/fonts/Humane-Bold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Light */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-Light.woff2') format('woff2'),
        url('/fonts/Humane-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* Extra Light */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-ExtraLight.woff2') format('woff2'),
        url('/fonts/Humane-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}

/* Thin */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-Thin.woff2') format('woff2'),
        url('/fonts/Humane-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

/* Italic */
@font-face {
    font-family: 'Humane';
    src: url('/fonts/Humane-Italic.woff2') format('woff2'),
        url('/fonts/Humane-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}








/* Global Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #000;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header Styles for Homepage */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 3%;
    }

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    .icon.brands:before {
            font-size: 15px!important;
        }
    .logorep {
            height: 12px!important;
        }
        .socialdiv {
                gap: 5px;
                    height: 15px;
                    padding: 2px 0px;
        }
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

#filters li a {
    text-decoration: none;
    color: #000;
    font-weight: 100;
    text-transform: uppercase;
    font-size: 20px;
    transition: all 0.8s ease;
    cursor: pointer;
    will-change: transform;
    letter-spacing: 2px;
}



#filters li a {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 400;
    color: black;
    text-decoration: none;
    overflow: hidden;
    transition: font-weight 0.4s ease, letter-spacing 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

/* Simulazione del laser */
#filters li a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    mix-blend-mode: difference;
    pointer-events: none;
}

/* Hover attivo */
#filters li.hovering a {
    font-weight: 900;
    letter-spacing: 0.03em;
}

/* Bold permanente per l'attivo */
#filters li.active a {
    font-weight: 900;
}

/* Animazioni direzionali */
#filters li.animate-forward a::after {
    animation: scan-forward 0.4s ease forwards;
}

#filters li.animate-backward a::after {
    animation: scan-backward 0.4s ease forwards;
}

@keyframes scan-forward {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

@keyframes scan-backward {
    from {
        left: 100%;
    }

    to {
        left: -100%;
    }
}



/* Gallery Styles for Homepage */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0px 3%;
}

.media-container {
    position: relative;
    margin: 5px;
    transition: opacity 0.3s ease; /* Only transition opacity */
    opacity: 0; /* Start with hidden state */
    animation: 0.8s;
    border-radius: 30px;
    overflow: hidden;
}

.media-container.visible {
    opacity: 1; /* Fade in the item */
}


.media-container img,
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-container img,
.media-container video {
    transition: filter 1s;
}

.media-container:hover img,
.media-container:hover video {
    filter: brightness(70%);
}


.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    color: #fff;
    background-color: #f00;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 16px;
    width: 20px;
    height: 20px;
    text-align: center;
    display: none;
}

.media-container:hover .delete-btn {
    display: block;
}

/* Lightbox Styles for Homepage */


#lightbox {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    z-index: 999;
}

#lightbox.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* L'animazione separata del contenuto */
#lightbox .lightbox-content {
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
    /* delay in entrata */
}

#lightbox.visible .lightbox-content {
    opacity: 1;
    transition-delay: 0s;
    /* nessun delay quando entri */
}




.popup .close {
    position: absolute;
    top: 30px;
    right: 50px;
    cursor: pointer;
    font-size: 20px;
    color: #969696;
    font-size: 40px;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    overflow: hidden;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
}

.lightbox-title {
    color: #969696;
    text-align: center;
    margin-top: 10px;
    position: absolute;
    bottom: 60px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: #969696;
    cursor: pointer;
    padding: 10px;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

/* Responsive Styles for Homepage */
@media (max-width: 768px) {
    .media-container {
        width: calc(50% - 10px);
    }

    .arrow {
        font-size: 1.5em;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .media-container {
        width: calc(100% - 10px);
    }
}

/* Additional Classes for Dynamic Layout */
.row-three-33 {
    flex: 1 1 33%;
}

.row-three-66 {
    flex: 1 1 66%;
}

.row-three-50 {
    flex: 1 1 50%;
}

.row-three-25 {
    flex: 1 1 25%;
}

.row-three-75 {
    flex: 1 1 75%;
}

.row-three-40 {
    flex: 1 1 40%;
}

.row-three-60 {
    flex: 1 1 60%;
}

.loadmorecont {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 50px;
}

.loadmorecont button {
    color: #000000;
    border: 1px solid #000000;
    border-radius: 100px;
    font-size: 12px;
    padding: 10px 40px;
    background-color: #0000;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
}
