
/*GENERAL*/
html {
    scroll-behavior: smooth;
}
body {
    background: #fff;
    color: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .99);
    border-bottom: 1px solid #906947;
    padding:0;
}
/*header .container {
    filter: blur(5px); 
    }*/

.main__menu { 
    padding:28px 0;
}
/**/
.logo {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.logo img {
    height: 32px
}
a:hover {color:#906947}
/*scroll-top*/
#scroll-top {
    width: 50px;
    height: 50px;
    position: fixed;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%) translateY(0);

    background-color: #ffffff;
    border-radius: 50%; /* rende il bottone una sfera */
    box-shadow: 0 4px 10px rgba(144, 105, 71, 0.4); /* shadow con il colore richiesto */
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;

    z-index: 2;
}
#scroll-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-top i {
    color: #906947; /* colore della freccia */
    font-size: 20px;
}

/* Effetto hover (opzionale ma consigliato) */
#scroll-top:hover {
    box-shadow: 0 6px 15px rgba(144, 105, 71, 0.6);
    transform: translateX(-50%) translateY(-3px);
}
/**/
nav a {
    color: #000;
    text-decoration: none;
    margin-left: 40px;
    font-size: 1.05rem;
}

nav a:hover {
    opacity: 0.8;
}

.navbar-toggler {
    padding: 0;
    width: 32px;
    height: 24px;
}
/* Contenitore delle linee */
.navbar-toggler-icon-custom {
    position: relative;
    display: block;
    width: 32px;
    height: 2px;
    background-color: #000;
    transition: background-color 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Le due linee aggiuntive */
.navbar-toggler-icon-custom::before,
.navbar-toggler-icon-custom::after {
    content: "";
    position: absolute;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: #000;
    transition:
        top 0.55s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.55s cubic-bezier(0.77, 0, 0.175, 1),
        background-color 0.4s ease;
}

.navbar-toggler-icon-custom::before {
    top: -7px;
}

.navbar-toggler-icon-custom::after {
    top: 7px;
}

/* 🔥 Stato attivo: menu aperto */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom {
    background-color: transparent; /* linea centrale sparisce */
}

/* Linea superiore → ruota + micro bounce */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::before {
    top: 0;
    transform: rotate(45deg) scale(1.08);
    background-color: #222; /* X leggermente più scura */
}

/* Linea inferiore → ruota + micro bounce */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::after {
    top: 0;
    transform: rotate(-45deg) scale(1.08);
    background-color: #222; /* X leggermente più scura */
}

/* Ritorno morbido */
.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-custom::before,
.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-custom::after {
    transform: none;
    background-color: #000;
}

#menuMobile.collapse { height: 0; } #menuMobile.collapsing { height: 0; } #menuMobile.collapse.show { height: auto; }
/**/
main {
    padding-top: 80px;
}
a {
    color: #000;
    text-decoration: none;
}
a:hover {
    opacity: 0.6;
}
h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

/* Blocchi con padding maggiore */
.custom-block {
    padding: 24px 20px;
    border-radius: 0px;
}

/* Background alternati */
.section-light {
    background: #fff;
}

.section-dark {
    background: #222;
}
/* Full-width block */
.fullwidth-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.fullwidth-image-wrapper {
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.fullwidth-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testo sopra immagine */
.fullwidth-text {
    position: absolute;
    left: 50%;
    bottom: 10%;
    right: 2%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 600px;
    padding: 1rem;
    border-radius: 8px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    }
    .fullwidth-text h2 {
        font-size: 2rem;
        font-weight: 700;
    }

    .fullwidth-text p {
        font-size: 1rem;
        margin-bottom: 12px;
    }

/* Mobile */
@media (max-width: 576px) {
    .fullwidth-image-wrapper {
        height: 80vh;
    }
    .fullwidth-text {
        position: absolute;
        left: 2%;
        bottom: 10%;
        right: 2%;
    }

    .fullwidth-text h2 {
        font-size: 1.5rem;
    }
}

/* Scrollbar */
/* Scrollbar generale */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #906947;
  border-radius: 10px;
}

/* Effetti */
/* CTA Button */
.cta-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all .3s ease;
}

.section-dark .cta-btn {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.cta-btn:hover {
    background: #222;
    color: #fff;
}

/* Fade-in */
.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
}

.fade-in-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax leggero */
.img-parallax-wrapper {
    overflow: hidden;
    border-radius: 0px;
    position: relative;
}

.img-parallax-wrapper img {
    transition: transform 1.2s ease;
    will-change: transform;
}

.img-parallax-wrapper:hover img {
    transform: scale(1.08) translateY(-8px);
}

/* Divider animato */
.divider-animated {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #222, transparent);
    animation: dividerMove 2.5s infinite linear;
}

@keyframes dividerMove {
    0% { background-position: 0 0; }
    100% { background-position: 200% 0; }
}
/* Parallax verticale */
.parallax-img {
    will-change: transform;
    transition: transform .2s ease-out;
}

/* Lazy loading */
.lazy-img {
    opacity: 0;
    transition: opacity .4s ease;
}

.lazy-img.loaded {
    opacity: 1;
}
/* Le mie case background */
.row-studio {
    display: flex;
    position: relative;
    min-height: 600px;
    margin: 40px 0px;
}   
.row-studio-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter:saturate(0.2) brightness(1.2) opacity(0.1);

    z-index: 0;
}

.studio-content {
    display: flex;
    position: relative;
    padding:20px;
    z-index: 1;
}
/* Mobile */
@media (max-width: 576px) {
    .custom-block {
        padding: 12px 10px;
    }

    .fade-in-text {
        text-align: center;
    }

    .cta-btn {
        margin-left: auto;
        margin-right: auto;
    }
}



        /* Wrapper normale */
        .sticky-title-wrapper {
            position: relative;
            height: auto;
            transition: top 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        }

        /* Wrapper sticky quando scrolli */
        .sticky-title-wrapper.sticky {
            position: sticky;
            top: 95px; /* sotto il tuo header */
            z-index: 10;
        }

        /* Titolo */
        .sticky-title {
            font-size: 3.2rem;
            font-weight: 600;
            padding: 24px 0;
            background: white;
            transition:
                font-size 0.6s cubic-bezier(0.77, 0, 0.175, 1),
                padding 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        }

        /* Titolo ridotto */
        .sticky-title.shrink {
            font-size: 1.6rem; /* 50% */
            padding: 12px 0;
        }



        /* Nasconde su tablet e desktop */
        .gallery-header {
            display: none;
            text-align: center;
        }

        /* Mostra solo su mobile */
        @media (max-width: 991px) {
            .gallery-header {
                display: block;
            }
        }

        .icon-square {
            width: 40px;
            height: 40px;
            background: #000;
            color: #fff;
            font-size: 28px;
            font-weight: 300;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom:15px;
        }
        .icon-roman-arch {
            width: 40px;
            height: 40px;
            background: #000;
            position: relative;
            margin-bottom:15px;
        }

        .icon-roman-arch::after {
            content: "";
            position: absolute;
            bottom: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 22px;
            height: 22px;
            border: 3px solid #fff;
            border-bottom: none;
            border-radius: 50% 50% 0 0;
        }
        
        .icon-logo-arch {
            width: 40px;
            height: 40px;
            background: #000;
            position: relative;
            margin-bottom:15px;
        }
        .icon-logo-arch::after {
            content: "";
            position: absolute;
            background-image:url('../img/logo-small-b.png');
            background-size: contain;
            background-repeat: no-repeat;
            display: inline-block;
            width: 30px;
            height: 30px;
            bottom: 5px;
            left: 10%;
        }

        .gallery-header p {
            margin-bottom: 0;
            text-transform: uppercase;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
            opacity: 0.7;
        }

        .gallery-header h2 {
            margin-top: 5px;
            font-size: 2.4rem;
            font-weight: 600;
        }

        /* Swiper */
        .swiper {
            padding: 0px 0 40px 0;
        }

        .swiper-slide {
            width: 528px;
            height: 330px;
            border-radius: 0px;
            overflow: hidden;
            opacity: 0;
            filter: blur(10px);
            transition: opacity 0.8s ease, filter 0.8s ease, transform 0.4s ease;
            pointer-events: none;
        }

        .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease, filter 0.5s ease;
        }

        .swiper-slide:hover img {
            transform: scale(1.05);
            filter: contrast(1.1);
        }

        .slide-text {
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            opacity: 1 !important;
            filter: blur(0) !important;
            pointer-events: auto !important;
            text-align: right
        }
        
        .slide-gallery-text {
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            border-radius: 0px;
            overflow: hidden;
            opacity: 0;
            filter: blur(10px);
            transition: opacity 0.8s ease, filter 0.8s ease, transform 0.4s ease;
            pointer-events: none;
        }

        .slide-text-inner {
            display: flex;
            align-items: flex-end;
            flex-direction: column;
            justify-content: flex-start;
            font-size: .7rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: #777;
        }

        .slide-text-inner h3 {
            font-size: 1rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #222;
        }
        
        .slide-text-inner h4 {
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: #444;
        }
        
        .slide-text-inner h5 {
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: #777;
        }

        .slide-text-inner  p {
            display: flex;
            align-items: flex-end;
            flex-direction: column;
            justify-content: flex-start;
            font-size: .7rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: #777;
        }

        .first-image {
            opacity: 1 !important;
            filter: blur(0) !important;
            pointer-events: auto !important;
        }

        .mySwiper.revealed .swiper-slide {
            opacity: 1;
            filter: blur(0);
            pointer-events: auto;
        }
        .lazy-img {
            opacity: 0;
            transition: opacity .4s ease;
        }

        .lazy-img.loaded {
            opacity: 1;
        }
        /* Swiper Cards */
        .swiper--fade-gallery {
            width: 100%;
            max-width: 500px;
            height: 820px;
            margin: 40px auto;
        }

        .swiper--fade-gallery .swiper-slide {
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 14px;
            overflow: hidden;
            background: #000;
            filter: blur(0px);
        }

        .swiper--fade-gallery .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        /* Social icons */
        .social-icons {
            display: flex;
            gap: 10px;
        }

        .icon {
            width: 24px;
            height: 24px;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            text-decoration: none;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .icon:hover {
            transform: scale(1.1);
            opacity: 0.8;
        }

        footer {
            border-top: 1px solid #e5e5e5;
            padding: 60px 0;
            margin-top: 120px;
        }

        footer h6 {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        footer p {
            opacity: 0.7;
        }

        /* Preloader */
        /* Schermata nera */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: black;
            z-index: 9999;
            overflow: hidden;

            /* effetto tendina */
            transition: height 2.2s cubic-bezier(0.77, 0, 0.175, 1);
        }

        /* Logo centrato */
        #preloader-logo {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 4rem;
            color: white;

            transition:
                top 2.2s cubic-bezier(0.77, 0, 0.175, 1),
                left 2.2s cubic-bezier(0.77, 0, 0.175, 1),
                transform 2.2s cubic-bezier(0.77, 0, 0.175, 1)
        }

        /* 1) Il logo parte subito */
        #preloader.animate-logo #preloader-logo {
            top: 10px;
            left: 20px;
            transform: translate(0, 0) scale(1);
        }

        /* 2) La tendina parte dopo un leggero delay */
        #preloader.animate-panel {
            height: 0;
        }

/* Responsive layout for Swiper */
@media (max-width: 992px) {
    .swiper-slide {
        width: 80vw;
        height: 48vw;
    }

    .slide-text-inner {
        font-size: 0.75rem;
    }

    .slide-text-inner h3,
    .slide-text-inner h4,
    .slide-text-inner h5 {
        font-size: 0.9rem;
    }
}

/* Mobile text slide improvements */
@media (max-width: 576px) {

    .slide-text,
    .slide-gallery-text {
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 16px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(6px);
        border-radius: 12px;
    }

    .slide-text-inner {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        color: #444;
        max-width: 90%;
    }

    .slide-text-inner h3,
    .slide-text-inner h4,
    .slide-text-inner h5 {
        font-size: 1rem;
        margin-bottom: 6px;
        color: #222;
    }

    .slide-text-inner p {
        font-size: 0.75rem;
        line-height: 1.4;
        color: #555;
    }

    /* Make text slides slightly taller for readability */
    .swiper-slide.slide-text,
    .swiper-slide.slide-gallery-text {
        height: 60vw;
    }
}


/* 4K and ultra-wide screens */
@media (min-width: 1920px) {
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        max-width: 1820px;

    .swiper-slide {
        width: 720px;
        height: 450px;
    }

    .slide-text-inner {
        font-size: 0.9rem;
    }

    .slide-text-inner h3,
    .slide-text-inner h4,
    .slide-text-inner h5 {
        font-size: 1.2rem;
    }
}

/* True 4K and above */
@media (min-width: 2560px) {
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        max-width: 2320px;
    .swiper-slide {
        width: 900px;
        height: 560px;
    }

    .slide-text-inner {
        font-size: 1rem;
    }

    .slide-text-inner h3,
    .slide-text-inner h4,
    .slide-text-inner h5 {
        font-size: 1.4rem;
    }
}
