.header-landing-page{
    position: relative;
    /* height: 10vh; */
}

/* CPT HERO HOME */
.hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2s ease-in-out, transform 5s ease-out;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 7vh;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text-container {
    margin-top: 10px;
    width: fit-content;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    max-width: 210px;
    margin: 0 auto;
    margin-bottom: 15px;
    position: relative;
    z-index: 5;
    perspective: 1000px; /* Adds 3D perspective for better coin flip effect */
}

/* Stili per l'animazione del logo */
.hero-logo img {
    width: 100%;
    height: auto;
    will-change: opacity, transform;
    transform-origin: center center;
    animation: logoReveal 1.5s cubic-bezier(0.26, 0.86, 0.44, 0.985) forwards;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    transform-style: preserve-3d; /* Ensures 3D effect works properly */
}
.hero-tagline{
    font-size: 20px;
    font-family: var(--font-titoloNav);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    display: inline-block;
    min-height: 40px;
}

/* Cursore lampeggiante per simulare la digitazione */
.hero-tagline::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-logo img.spinning {
    animation: coinFlip 2s ease-in-out;
}

.hero-title {
    font-size: 37px;
    margin-bottom: 1.2rem;
    margin-top: -20px;
    font-family: var(--font-titoloHomeHero);
    font-weight: 600;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    position: relative;
    display: block; /* Changed from inline-block to block for full width */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.8s;
    line-height: 65px !important;
}

.hero-title::after {
    
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--colore-primario-due);
    animation: expandWidth 0.8s ease-out forwards 1.5s;
}

.hero-subtitle {
    font-size: 22px;
    margin-top: -10px;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-family: var(--font-titoloHomeHero);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.2s;
   /*  background-color: rgba(0, 0, 0, 0.4); */
    padding: 15px 25px;
    border-radius: 8px;
    /* backdrop-filter: blur(5px); */
    display: block; /* Changed from inline-block to block for full width */
}

/* Nuova animazione per il logo */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-20px);
        filter: brightness(0) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    30% {
        opacity: 0.7;
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    }
}

/* Animazione per il flip della moneta */
@keyframes coinFlip {
    0% {
        transform: rotateY(0);
    }
    25% {
        transform: rotateY(180deg);
    }
    50% {
        transform: rotateY(360deg);
    }
    75% {
        transform: rotateY(540deg);
    }
    100% {
        transform: rotateY(720deg);
    }
}

/* Animazioni esistenti modificate */
@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes expandWidth {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

/* Effetto onda nella parte inferiore - migliorato */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 4;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    animation: waveAnimation 15s linear infinite;
}

.wave-container .shape-fill {
    fill: #FFFFFF;
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-2%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pallini indicatori dell'hero posizionati verticalmente a destra */
.hero-dots {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 5px 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Responsive per i pallini su dispositivi mobili */
@media (max-width: 768px) {
    .hero-section {
    margin-bottom: 50px;
    }
    .hero-logo{
        margin-top: 10px;
        width: 200px;
    }
    .hero-logo img{
    width: 170px !important;
    }
    .hero-dots {
        right: 15px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
        margin: 4px 0;
    }
    .hero-title {
        margin-top: -30px;
        font-size: 25px;
    }
    .hero-title::after {
         bottom: -5px;
    }
    .hero-subtitle {
        margin-top: -15px;
        font-size: 17px;
    }
    .hero-tagline {
        font-size: 18px;
    }
}

/* Overlay scuro per migliorare la leggibilità del testo */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
nav{
    display: none !important;
}
.scritta-promo-landing-container{
    background: #43e8e3;
    background: linear-gradient(90deg,rgba(67, 232, 227, 1) 0%, rgba(4, 224, 191, 1) 35%, rgba(71, 255, 243, 0.4) 93%);
    width: 100%;
    margin-top: 80px;
    opacity: 0;
    animation: slideContainerFromLeft 0.8s ease-out forwards;
    animation-delay: 1.1s;
    position: relative;
    overflow: hidden;
}

.scritta-promo-landing-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    opacity: 0;
    animation: lightSweep 3s ease-in-out infinite;
    animation-delay: 2.8s;
    z-index: 1;
}
.prenota-tutte-esperienze{
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-bottom: 30px;
    opacity: 0;
    animation: fadeInContent 0.6s ease-out forwards;
    animation-delay: 1.8s;
    position: relative;
    z-index: 2;
}

.btn-prenota-landing{
    display: inline-block;
    padding: 12px 24px;
    background: #f35f3b;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 23px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    animation: shakeButton 8s infinite;
    animation-delay: 6s;
}

.btn-prenota-landing:hover{
    background: #d84a29;
}
.scritta-promo-landing{
    font-family: var(--font-titoloHomeHero);
    color: white;
    padding-top: 30px;
    opacity: 0;
    animation: fadeInContent 0.6s ease-out forwards;
    animation-delay: 2.1s;
    position: relative;
    z-index: 2;
}
.scritta-promo-landing h1{
   font-size: 42px;
   padding-bottom: 20px;
   text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}
.landing-social{
    margin-top: 50px;
    background-color: rgba(0, 0, 0, 0.308);
    padding: 10px 20px 10px 20px;
    border-radius: 10px;
}
.landing-social  > a > i{
    color: white;
    font-size: 30px;
    margin-top: 50px;
}

.landing-social  > a > i:hover{
    color: rgb(228, 92, 50);
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet: 4 immagini */
    .hero-bg-image{
        width: 25%;
    }
    
    /* Nascondi la quinta immagine su tablet */
    .hero-bg-5{
        display: none;
    }
    
/*     .header-landing-page{
        height: 50vh;
    }
    .header-landing-page-container{
        height: 50vh;
        padding-top: 3vh;
    } */
    .hero-logo img{
        width: 350px;
        right: 40px;
    }
    .hero-tagline{
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .scritta-promo-landing-container{
        margin-top: 20px !important;
    }
    .scritta-promo-landing h1{
        font-size: 25px;
        padding-bottom: 10px;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
        margin-top: -5px !important;
     }
     .btn-prenota-landing{
        font-size: 15px;
        margin-bottom: -5px !important;
    }
    
    /* Layout delle immagini 2x2 su mobile */
    .hero-background-images{
        flex-wrap: wrap;
    }
    
    .hero-bg-image{
        width: 50%;
        height: 50%;
    }
    
    /* Nascondi la quinta immagine su mobile */
    .hero-bg-5{
        display: none;
    }
    
    /* Animazioni specifiche per mobile */
    .hero-bg-2{
        animation: slideFromRight 1.0s ease-out forwards;
        animation-delay: 0.3s;
    }
    
    .hero-bg-3{
        animation: slideFromLeft 1.0s ease-out forwards;
        animation-delay: 0.6s;
    }
    
    /* Cambia l'immagine della quarta scheda su mobile */
    .hero-bg-4{
        background-image: url('../../asset/images/fotoLanding/tramont-1.jpg');
    }
    
.header-landing-page-container{

    padding-top: 2vh;
}

    .hero-logo img{
        width: 240px;
        right: 20px;
    }
    .hero-tagline{
        font-size: 18px;
    }
}

/* ... existing code ... */
.custom-dropdown-landing {
    position: absolute !important;
    top: 0;
    right: 0;
    display: inline-block;
    margin-right: 30px;
    margin-top: 30px;
    z-index: 2000;
}
.dropdown-button-landing {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px 18px 6px 10px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.language-list {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 100;
    padding: 0;
    margin: 0;
    list-style: none;
}
.language-list.open {
    display: block;
}
.language-list li {
    padding: 0;
}
.language-list li a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
}
.language-list li a:hover {
    background: #f0f0f0;
}

.tour-home{
    width: 45%;
    justify-content: center; /* Centra verticalmente il contenuto */
    text-align: center;
    margin: 0 auto;
     margin-bottom: 50px;
}

.tour-home h3{
    font-family: var(--font-titoloHomeHero);
    text-align: center;
    line-height: 48px;
    font-size: 43px !important;
}
.tour-home h3>span{
   margin-top: 20px !important;
   font-size: 20px !important;
}
.linea_sotto_titolo{
    background-color: var(--colore-primario-due);
    width: 100px;
    height: 5px;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
}
.tour-home p{
    background: var(--colore-gradient-scuro);
    color: #FFFFFF;
    padding: 10px;
    border-radius: 20px;
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
}


/* Responsive per i pallini su dispositivi mobili */
@media (max-width: 768px) {
    .tour-home h3{
    font-family: var(--font-titoloHomeHero);
    text-align: center;
    line-height: 48px;
    font-size: 34px !important;
}
    .tour-home h3>span{
    margin-top: 20px !important;
    font-size: 20px !important;
    }
    .linea_sotto_titolo{
        background-color: var(--colore-primario-due);
        width: 100px;
        height: 5px;
        margin: 0 auto;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .tour-home p{
        background: var(--colore-gradient-scuro);
        color: #FFFFFF;
        padding: 10px;
        border-radius: 20px;
        margin-top: 10px;
        text-align: center;
        font-size: 18px;
    }
    .servizi-home-title{
        font-size: 12px;
        line-height: 45px;
    }
}