body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
#mainNav {
    transition: all 0.4s ease;
    padding: 20px 0;
}
#mainNav.navbar-scrolled {
    background: #000 !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Parallax Settings */
.parallax-window {
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Required for JS Movement */
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Back to Top */
#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .parallax-window { min-height: 60vh; }
    #mainNav { background: #000; }
}



/* Effetto sfocatura sullo sfondo quando il modal è aperto */
.modal-backdrop.show {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.7);
}

/* Animazione fluida di entrata */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}
.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.text-justify{
    text-align: justify !important;
}