
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', 'sans-serif';
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-color: rgb(var(--dark-blue));
    color: var(--light-blue);
}

.navbar {
    background-color: rgba(var(--dark-blue), 0);
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    font-size: 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: auto;
    align-items: center;
    transition: all 0.2s;
    z-index: 1;
}

@media (min-width: 768px) {
    .navbar {
        height: 88px;
    }
}

.navbarScrolled {
    background-color: rgba(var(--dark-blue), 1);
}

#blocco1 {
    width: 100%;
    height: 100%;
    font-size: 17px;
    display: flex;
    justify-content: left;
    align-items: left;
}

.ham-menu {
    width: 50px;
    height: 35px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ham-menu span {
    width: 55%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transition: 
        transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
        opacity 0.3s ease,
        width 0.3s ease;
}

.ham-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu {
    position: relative;
    width: 100%;
    height: 69px;
    text-align: left;
    display: flex;
    justify-content: left;
    align-items: center;
}

@media (min-width: 768px) {
    .menu {
        width: 25%;
        height: 80px;
    }
    .menu ul {
        z-index: 1;
    }
    .menu.active ul {
        max-height: 500px;
    }
    .menu.active ul li {
        z-index: 4;
    }
    .menu a:hover {
        color: rgb(var(--light-blue));
        font-weight: bold;
        cursor: pointer;
    }
}

.menu ul {
    position: absolute;
    top: 100%;
    width: 100%;
    max-height: 0px;
    margin: 0;
    padding: 0;
    min-width: fit-content;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.5;
    pointer-events: none;
}



.menu.active ul {
    background: rgba(var(--dark-blue), 0);
    cursor: pointer;
    border-radius: 0px 0px 20px 20px;
    max-height: 450px;
    opacity: 1;
    transition: all 0.2s;
    pointer-events: auto;
}



.menuScrolled.active ul {
    background: rgb(var(--dark-blue));
}

.menu ul li {
    list-style: none;
    padding: 12px 0px 10px 0px;
    margin: 0;
    text-align: center;
    min-width: fit-content;
    opacity: 0;
    transform: translateY(-5px);
    transition: 
        opacity 0.3s ease,
        transform 0.3s ease;
}

.menu.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.menu ul li:nth-child(1) { transition-delay: 0.05s; }
.menu ul li:nth-child(2) { transition-delay: 0.1s; }
.menu ul li:nth-child(3) { transition-delay: 0.15s; }
.menu ul li:nth-child(4) { transition-delay: 0.2s; }

.menu a {
    text-decoration: none;
    color: white;
}


.blocco2 {
    width: 37%;
    height: 100%;
    font-size: 20px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.5) translateY(0px);
}

.blocco2Logo {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#logo {
    opacity: 0;
    position: fixed;
    top: 112%;
    left: 50%;
    transform: translate(-49%, -82%);
    width: 60%;
    height: 97%;
    z-index: 1;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, -0.2, 0.2, 1.2);
}

body.scrolled #logo {
    top: 20%;
    left: 50%;
    width: 48%;
    height: 51%;
}



#logo.show {
    opacity: 1;
    transform: translate(-49%, -82%) scale(1);
}

#intro {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;  
    width: 100%;
    height: 70vh;        
    overflow: hidden;   
    background: linear-gradient(
        to bottom,           
        rgba(var(--dark-blue), 0) 0%,
        rgba(var(--dark-blue), 0.2) 60%,
        rgba(var(--dark-blue), 0.85) 85%,
        rgba(var(--dark-blue), 0.9) 90%,
        rgb(var(--dark-blue)) 102% );   
}

.heroIntro,
.video-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;    
    transform: translateY(-1px);     
}

@media (min-width: 768px) {
    #logo {
        top: 110vh;
        width: 50%;
        height: 98vh;
    }
    body.scrolled #logo {
        top: 19vh;
        width: 25%;
        height: 49vh;
    }
    .heroIntro,
    .video-bg {
        object-fit: contain;
    }

}

@media (min-width: 1025px) {
    #logo {
        top: 110vh;
        width: 20%;
        height: 98vh;
    }
    body.scrolled #logo {
        top: 20vh;
        width: 13%;
        height: 48vh;
    }
    .heroIntro,
    .video-bg {
        object-fit: contain;
    }
}

#ContenitoreLogo {
    width: 100%;
    height: 15vh;
    background-color: rgb(var(--dark-blue));
    white-space: nowrap;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ContenitoreBottoni {
    width: 100%;
    height: 15vh;
    background-color: rgb(var(--dark-blue));
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: top;
    justify-content: center;
    flex-direction: row;
    gap: 50px;
}



.buttonPrenota {
    color: rgb(var(--light-blue));
    background-color: rgb(var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 40px;
    padding: 6px;
    border: 2px solid rgb(var(--light-blue));
    text-decoration: none;
}


.buttonMenu {
    color: rgb(var(--light-blue));
    background-color: rgb(var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 40px;
    padding: 6px;
    border: 2px solid rgb(var(--light-blue));
    text-decoration: none;
}


.buttonPrenota,
.buttonMenu{
    opacity: 0;
    transform: translateY(-80px) scale(0.7);
    transition: 
        transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.8s ease,
        background-color 0.15s ease,
        color 0.15s ease;
    border-radius: 15px;
}

.buttonPrenota.show,
.buttonMenu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


@keyframes jump {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-4px) scale(1.1); }
    50% { transform: translateY(0) scale(1); }
    70% { transform: translateY(-2px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.buttonClicked {
    animation: jump 0.3s cubic-bezier(0.3, 0.3, 0.3, 0.3) forwards;
    color: rgb(var(--dark-blue));
    background-color: rgb(var(--light-blue));
    border: 2px solid rgb(var(--dark-blue));
}

@media (min-width: 768px) {
    #ContenitoreBottoni {
        gap: 100px;
        font-size: 20px;
    }
    .buttonPrenota,
    .buttonMenu {
        width: 195px;
        height: 60px;
    }
    .buttonPrenota:hover,
    .buttonMenu:hover {
        transform: scale(1.1) translateY(0);
        cursor: pointer;
    }
}
.divider {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
}

.divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chi-siamo {
    width: 100%;
    height: fit-content;
    background-color: rgb(var(--dark-blue));
    color: rgb(var(--light-blue));
    scroll-margin-top: 100px;
}

h1 {
    text-align: center;
    font-weight: 400 bold;
    font-family: 'Dancing Script';
    font-size: 35px;
    color: rgb(var(--light-blue));
}


h2 {
    text-align: center;
    font-weight: 100 bold;
    font-size: 26px;
    font-family: 'Cormorant';
}


p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 300;
    line-height: 1.8;
    width: 80%;
    margin: auto;
    text-align: center;
    font-family: 'Cormorant';
    font-size: 18px;
}

@media (min-width: 768px) {
    p {
        line-height: 2;
        font-size: 28px;
    }
    h1 {
        font-size: 56px;
    }
    h2 {
        font-size: 33px;
    }
}

#galleria {
    background-color: rgb(var(--dark-blue));
    color: rgb(var(--light-blue));
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-color: rgb(var(--light-blue));
}  

.slider-wrapper {
    width: 80%;
    height: 400px;
    position: relative;
    overflow: hidden; 
    background-color: rgba(var(--dark-blue),0);
    border-radius: 15px;
}
.slides-container::-webkit-scrollbar {
    display: none;             
}


.slides-container {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    height: 100%;
    overflow-x: auto;        
    scroll-behavior: smooth;   
    scroll-snap-type: x mandatory; 
    
}

.slide {
    flex: 0 0 100%;    
    overflow: hidden;       
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    border-radius: 15px;

}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    
}

.slide.active img {
    transform: scale(1.06);
}

.progress-bar {
  width: 50%;
  height: 4px;
  background: rgba(var(--light-blue),0.35);
  margin-top: 12px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgb(var(--light-blue));
  transition: width 0.25s ease;
}

@media (min-width: 768px) {
    .slider-wrapper {
        width: 47%;
        height: 500px;
    }
    .progress-bar {
        width: 15%;
    }
}

@media (min-width: 1025px) {
    .slides-container {
        scrollbar-width: none;
        cursor: grab;
    }
    .slides-container.dragging {
        cursor: grabbing;
        user-select: none;
    }
    .slider-wrapper {
        width: 25%;
        height: 600px;
    }
    .slide img {
        -webkit-user-drag: none;
        user-select: none;
        pointer-events: none;
    }
    .progress-bar {
        width: 15%;
    }
}


#featurable-9bcf68ed-066d-437c-84bd-f63132f59c2d {
    scroll-margin-top: 150px;
}

hr{
    width: 90%;
    background-color: rgb(var(--light-blue));
    color: rgb(var(--light-blue));
    height: 0.2px;
    border-radius: 2px;
}

#contattaci {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(var(--light-blue));
    font-size: 15px;
    margin-bottom: 20px;
}


#contattaci a {
    text-decoration: none;
    font-weight: bold;
    color: rgb(var(--light-blue));
}


.footer-logo {
    width: 70%; 
    height: auto; 
    overflow: hidden;
    display: block;
}


.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-logo a {
    display: block; 
    width: 100%;
    height: 100%;
}

.contattieInfo {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 16px 0px;
}

.footer-logo-link{
    height: 100px !important;
}

.contattieInfo img {
    width: 30px;
    height: 30px;
}

.item-contatto {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

#container-imm {
    position: relative;
    display: block;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}



#container-imm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: translateY(1px);
}


#container-imm::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
            to top,
            rgb(var(--dark-blue)) 0%,
            rgba(var(--dark-blue), 0.9) 10%,
            rgba(var(--dark-blue), 0.2) 30%,
            rgba(var(--dark-blue), 0) 51%),
        linear-gradient(
            to bottom,
            rgb(var(--dark-blue)) 0%,
            rgba(var(--dark-blue), 0.9) 10%,
            rgba(var(--dark-blue), 0.2) 30%,
            rgba(var(--dark-blue), 0) 51%);
}

@media (min-width: 768px) {
    #contattaci {
        height: 1600px;
    }
    #featurable-9bcf68ed-066d-437c-84bd-f63132f59c2d {
        min-height: 300px;
        scroll-margin-top: 100px;
    }
    .footer-logo {
        width: 30%;
    }
    #container-imm {
        padding-top: 50px;
        max-height: 600px;
    }
    #container-imm img {
        opacity: 0.3;
    }
}