@keyframes hide {
    0% { opacity: 0; }
    100% { opacity: 1; } 
}
@keyframes hand-rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(50deg); }
    100% { transform: rotate(0deg); }
}
@keyframes fade-in {
    0% { opacity: 0; }
    30% { opacity: 1; }
    50% { opacity: 0; }
    60% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes neon-color-shift {
    0% { filter: hue-rotate(0deg); }
    33% { filter: hue-rotate(90deg); }
    66% { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}
@keyframes flyin-top {
    0% { margin-top: -1000px; opacity: 0; }
    60% { margin-top: -80px; opacity: 0.7; }
    100% { margin-top: 0; opacity: 1; }
}
@keyframes flyin-bounce {
    0% { margin-top: -1000px; opacity: 0; }
    60% { margin-top: 150px; opacity: 0.7; }
    100% { margin-top: 0; opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeInBottomLeftScale {
    0% { margin-left: -200%; margin-top: 200%; opacity: 0; }
    75% { margin-left: 35%; margin-top: 10%; opacity: 0.8; scale: 2; }
    100% { margin-left: 0; margin-top: 0; opacity: 1; }
}
@keyframes fadeInBottomRightScale {
    0% { margin-left: 200%; margin-top: 200%; opacity: 0; }
    75% { margin-left: 5%; margin-top: 10%; opacity: 0.8; scale: 2; }
    100% { margin-left: 0%; margin-top: 0%; opacity: 1; }
}
@keyframes fadeInLeftTopRotate {
    0% { margin-left: -200%; margin-top: -100%; opacity: 0; }
    75% {  margin-left: -15%; margin-top: 10%; transform: rotate(50deg); opacity: 0.8; }
    100% { margin-left: 0%; margin-top: 0%; opacity: 1; }
}
@keyframes fadeInRightTopRotate {
    0% { margin-left: 200%; margin-top: 100%; opacity: 0; }
    75% {  margin-left: -20%; margin-top: -40%; transform: rotate(120deg); opacity: 0.8; }
    100% { margin-left: 0%; margin-top: 0%; opacity: 1; }
}

/* Scroll-triggered animations for welcome section */
@keyframes slideInFromLeft {
    0% { 
        transform: translateX(-100px) rotate(-15deg); 
        opacity: 0; 
    }
    100% { 
        transform: translateX(0) rotate(0deg); 
        opacity: 1; 
    }
}

@keyframes slideInFromRight {
    0% { 
        transform: translateX(100px) rotate(15deg); 
        opacity: 0; 
    }
    100% { 
        transform: translateX(0) rotate(0deg); 
        opacity: 1; 
    }
}

@keyframes fadeInUp {
    0% { 
        transform: translateY(50px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.3) rotate(-10deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(2deg); 
    }
}

@keyframes slideInFromLeftPizza {
    0% { 
        transform: translateX(-200px) rotate(-15deg) scale(0.5); 
        opacity: 0; 
    }
    50% { 
        transform: translateX(-50px) rotate(-5deg) scale(1.2); 
        opacity: 0.7; 
    }
    100% { 
        transform: translateX(0) rotate(0deg) scale(1.8); 
        opacity: 1; 
    }
}

@keyframes slideInFromRightPizza {
    0% { 
        transform: translateX(200px) rotate(15deg) scale(0.5); 
        opacity: 0; 
    }
    50% { 
        transform: translateX(50px) rotate(5deg) scale(1.2); 
        opacity: 0.7; 
    }
    100% { 
        transform: translateX(0) rotate(0deg) scale(1.8); 
        opacity: 1; 
    }
}

@keyframes bounceInTag {
    0% { 
        transform: scale(0.3) rotate(-20deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.2) rotate(10deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

@keyframes fadeInUpText {
    0% { 
        transform: translateY(50px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(248, 98, 31, 0.3)); 
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(248, 98, 31, 0.6)); 
    }
}

@keyframes citrusPopIn {
    0% { 
        transform: scale(0) rotate(180deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.3) rotate(90deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

@keyframes slideInFromBottomGallery {
    0% { 
        transform: translateY(100px) scale(0.8); 
        opacity: 0; 
        filter: blur(10px);
    }
    50% { 
        transform: translateY(-20px) scale(1.05); 
        opacity: 0.8; 
        filter: blur(2px);
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
        filter: blur(0px);
    }
}

@keyframes citrusFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotate(-2deg); 
    }
}

@keyframes stripeSwipeFromTop {
    0% { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    50% { 
        opacity: 0.7; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes stripeSwipeFromBottom {
    0% { 
        transform: translateY(100%); 
        opacity: 0; 
    }
    50% { 
        opacity: 0.7; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes stripeSlideIn {
    0% { 
        transform: translateX(-100%); 
        opacity: 0; 
    }
    100% { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideInFromLeftDrink {
    0% { 
        transform: translateX(-150px) rotate(-45deg) scale(0.5); 
        opacity: 0; 
    }
    50% { 
        transform: translateX(-30px) rotate(-15deg) scale(1.1); 
        opacity: 0.8; 
    }
    100% { 
        transform: translateX(0) rotate(0deg) scale(1); 
        opacity: 1; 
    }
}

@keyframes slideInFromRightDrink {
    0% { 
        transform: translateX(150px) rotate(45deg) scale(0.5); 
        opacity: 0; 
    }
    50% { 
        transform: translateX(30px) rotate(15deg) scale(1.1); 
        opacity: 0.8; 
    }
    100% { 
        transform: translateX(0) rotate(0deg) scale(1); 
        opacity: 1; 
    }
}

@keyframes slideInFromLeftPizza {
    0% { 
        transform: translateX(-200px) rotate(-60deg) scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: translateX(-50px) rotate(-20deg) scale(1.2); 
        opacity: 0.7; 
    }
    100% { 
        transform: translateX(0) rotate(-30deg) scaleX(-1); 
        opacity: 1; 
    }
}

@keyframes slideInFromRightPizza {
    0% { 
        transform: translateX(200px) rotate(60deg) scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: translateX(50px) rotate(20deg) scale(1.2); 
        opacity: 0.7; 
    }
    100% { 
        transform: translateX(0) rotate(-30deg) scaleX(-1); 
        opacity: 1; 
    }
}

@keyframes fadeInUpPhylosophy {
    0% { 
        transform: translateY(50px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes drinkFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-5px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-8px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(-1deg); 
    }
}


/* Welcome section scroll animations */
.welcome .content-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.welcome .content-container.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

.welcome .top-zitrone {
    opacity: 0;
    transform: translateX(-80px) rotate(-20deg);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.welcome .top-zitrone.scroll-animate {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    animation: float 3s ease-in-out infinite;
}

.welcome .top-citrus {
    opacity: 0;
    transform: translateX(80px) rotate(20deg);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.welcome .top-citrus.scroll-animate {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    animation: float 3s ease-in-out infinite 0.5s;
}

.welcome .bottom-citrus {
    opacity: 0;
    transform: translateX(-80px) rotate(-20deg);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.welcome .bottom-citrus.scroll-animate {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    animation: float 3s ease-in-out infinite 1s;
}

.welcome .bottom-zitrone {
    opacity: 0;
    transform: translateX(80px) rotate(20deg);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.welcome .bottom-zitrone.scroll-animate {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    animation: float 3s ease-in-out infinite 1.5s;
}

.welcome .content-container p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.welcome .content-container p.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

.welcome .content-container p:nth-child(1) {
    transition-delay: 0.2s;
}

.welcome .content-container p:nth-child(2) {
    transition-delay: 0.4s;
}

/* Enhanced mobile responsiveness for scroll animations */
@media (max-width: 768px) {
    .welcome .top-zitrone {
        opacity: 0;
        transform: translateX(-40px) rotate(-15deg);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .welcome .top-zitrone.scroll-animate {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
        animation: float 4s ease-in-out infinite;
    }
    
    .welcome .top-citrus {
        opacity: 0;
        transform: translateX(40px) rotate(15deg);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .welcome .top-citrus.scroll-animate {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
        animation: float 4s ease-in-out infinite 0.5s;
    }
    
    .welcome .bottom-citrus {
        opacity: 0;
        transform: translateX(-40px) rotate(-15deg);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .welcome .bottom-citrus.scroll-animate {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
        animation: float 4s ease-in-out infinite 1s;
    }
    
    .welcome .bottom-zitrone {
        opacity: 0;
        transform: translateX(40px) rotate(15deg);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .welcome .bottom-zitrone.scroll-animate {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
        animation: float 4s ease-in-out infinite 1.5s;
    }
}

:root {
    --mainColor: #00303e;
    --secondColor: #F8621F;

    /* --maxWidth: 580px; */
    --maxWidth: 760px;
    --maxHeight: 630px;
}

@font-face {
    font-family: 'Dolce Vita';
    src: url('/assets/font/dolce-vita/DolceVitaHeavy-Bold.woff2') format('woff2'),
        url('/assets/font/dolce-vita/DolceVitaHeavy-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dolce Vita';
    src: url('/assets/font/dolce-vita/DolceVita.woff2') format('woff2'),
        url('/assets/font/dolce-vita/DolceVita.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dolce Vita';
    src: url('/assets/font/dolce-vita/DolceVitaLight.woff2') format('woff2'),
        url('/assets/font/dolce-vita/DolceVitaLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Marons';
    src: url('/assets/font/marons/Marons-Regular.woff2') format('woff2'),
        url('/assets/font/marons/Marons-Regular.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AtlanticCruise';
    src: url('/assets/font/atlantic-cruise/AtlanticCruise.woff2') format('woff2'),
        url('/assets/font/atlantic-cruise/AtlanticCruise.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


html,
body { 
    height: 100%;
    padding: 0; 
    margin: 0; 
    background-color: var(--mainColor); 
    text-align: center; 
    font-family: 'Dolce Vita';
    text-transform: uppercase;
    color: var(--secondColor);
}
p {
    word-spacing: 0.25rem;
    letter-spacing: 0.15rem;
    line-height: 1.3rem;
    padding-bottom: 0.8rem;
}
p.big {
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
    font-weight: bold;
    line-height: 1.5rem;
}
a {
    color: var(--secondColor);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #FEF903;
}
hr {
    border-top: 1px solid #dcedfb;
    background: none;
}

.citrus-border {
    display: block;
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
}

.citrus-border img {
    position: absolute;
    top: 0;
    height: 120px;
    width: auto;
    transform: rotate(20deg);
    transform-origin: center;
}

footer {
    display: block;
    width: 90%;
    max-width: 620px;
    margin: 180px auto;
}
footer .qr {
    max-width: 100%;
}
footer .bottom-navi {
    display: inline;
}
footer .bottom-navi li {
    list-style-type: none;
    display: inline-block;
    margin: 0  5px;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}
footer .bottom-navi a:hover {
    text-decoration: underline;
}

.start {
    height: 100dvh;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container {
    position: relative;
    max-height: var(--maxHeight);
    max-width: var(--maxWidth);
    min-height: var(--maxHeight);
    min-width: var(--maxWidth);
    width: 80svw;
    height: 80svh;
    display: block;
    margin: auto;
}
.legal {
    background: url('/assets/img/amalfi_coast_lemon.jpg') top left repeat;
    display: block;
    width: 100%;
    margin : 0;
    padding: 5% 0;
    color: #dcedfb;
}
.legal ul,
.legal ul li {
    text-align: left;
    font-weight: normal;  
}
.legal ul {
    padding-left: 18%;
}

.welcome {
    background: url(/assets/img/pattern.png) top left repeat #fff;
    display: block;
    width: 100%;
    margin : 80px 0 0 0;
    padding: 5% 0;
    position: relative;
    overflow: hidden;
}
.welcome .content-container,
.legal .content-container {
    position: relative;
    display: inline-block;
    margin: auto;
    background: var(--secondColor);
    padding: 15px auto;
    color: var(--mainColor);
    width: var(--maxWidth);
    max-width: 50%;
    font-weight: bold;
}
.legal .content-container {
    background: var(--mainColor);
    color: var(--secondColor);
}
.welcome .content-container p,
.legal .content-container p {
    padding: 0 15%;
}
.legal .content-container p {
    text-align: left;
    font-weight: normal;
    text-transform: initial !important;
}
.legal .content-container {
    color: #dcedfb;
}


.welcome .top-zitrone {
    width: 120px;
    position: absolute;
    left: 0;
    margin: -50px 0 0 -50px;
}
.welcome .top-citrus {
    width: 180px;
    position: absolute;
    right: 0;
    margin: -50px -80px 0 0;
}
.welcome .bottom-citrus {
    width: 180px;
    position: absolute;
    left: 0;
    margin: -60px 0 0 -80px;
    transform: rotate(180deg);
}
.welcome .bottom-zitrone {
    width: 120px;
    position: absolute;
    right: 0;
    margin: -50px -80px 0 0;
    transform: scaleX(-1) rotate(180deg);
}

.video {
    width: 100%;
}
.video video {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
}


.laDolceFritta {
    background: var(--mainColor);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* La Dolce Fritta scroll animations */
.laDolceFritta .title > img {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.laDolceFritta .title > img.scroll-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* animation: pulseGlow 3s ease-in-out infinite 1s; */
}

.laDolceFritta .content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.laDolceFritta .content.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

.laDolceFritta .contentTop {
    transition-delay: 0.2s;
}

.laDolceFritta .contentBottom {
    transition-delay: 0.4s;
}

.laDolceFritta .title .left img.pizza,
.laDolceFritta .title .right img.pizza {
    opacity: 0;
    transform: scale(0);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.laDolceFritta .title .left img.pizza.scroll-animate {
    opacity: 1 !important;
    transform: scale(1.6) !important;
}

.laDolceFritta .title .right img.pizza.scroll-animate {
    opacity: 1 !important;
    transform: scale(1.6) !important;
}

.laDolceFritta .title .left img.tag,
.laDolceFritta .title .right img.tag {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.laDolceFritta .title .left img.tag.scroll-animate,
.laDolceFritta .title .right img.tag.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for tags */
.laDolceFritta .title .left img.tag:nth-child(1) {
    transition-delay: 0.6s;
}
.laDolceFritta .title .left img.tag:nth-child(2) {
    transition-delay: 0.8s;
}
.laDolceFritta .title .left img.tag:nth-child(3) {
    transition-delay: 1s;
}
.laDolceFritta .title .left img.tag:nth-child(4),
.laDolceFritta .title .left img.tag:nth-child(5) {
    transition-delay: 1s;
    transform: translateY(0);
}

.laDolceFritta .title .right img.tag:nth-child(1) {
    transition-delay: 0.7s;
}
.laDolceFritta .title .right img.tag:nth-child(2) {
    transition-delay: 0.9s;
}
.laDolceFritta .title .right img.tag:nth-child(3) {
    transition-delay: 1.1s;
}

.laDolceFritta .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
}

.laDolceFritta .title > img {
    margin-bottom: 40px;
    max-width: 100%;
    height: auto;
}

.laDolceFritta .content {
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.12rem;
    display: block;
    max-width: var(--maxWidth);
}
.laDolceFritta .contentTop {
    margin: 20px auto 60px auto;
}
.laDolceFritta .contentBottom {
    margin: 60px auto 20px auto;
}

.laDolceFritta .title .content-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.laDolceFritta .title .left,
.laDolceFritta .title .right {
    display: contents;
}

.laDolceFritta .title .left img,
.laDolceFritta .title .right img {
    max-width: 200px;
    height: auto;
    display: block;
}

.laDolceFritta .title .left img.pizza,
.laDolceFritta .title .right img.pizza {
    max-width: 200px;
    height: auto;
    margin: 0 30px;
}
.laDolceFritta .title .left img.pizza {
    margin: 0 30px 0 80px;
}
.laDolceFritta .title .right img.pizza {
    margin: 0 80px 0 30px;
}

.laDolceFritta .title .left img.tag,
.laDolceFritta .title .right img.tag {
    margin: 0 -15px;
}

/* Gallery Slideshow Styles */
.gallery {
    background: #3d74cf;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated background stripes */
.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            #3d74cf 0px,
            #3d74cf 80px,
            #dcedfb 80px,
            #dcedfb 160px
        );
    background-size: auto;
    background-position: 0 0;
    background-repeat: repeat;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    z-index: 0;
}

.gallery.scroll-animate::before {
    opacity: 1;
    transform: translateY(0);
    animation: stripeSwipeFromTop 2s ease-out forwards;
    background-position: 0 var(--stripe-offset, 0px);
}

/* Gallery scroll animations */
.gallery .citrus-container {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: static;
    z-index: 2;
}

.gallery .citrus-container.scroll-animate {
    opacity: 1;
}

.gallery .citrus-container img {
    opacity: 0;
    transform: translateY(50px) rotate(180deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    transform-origin: center;
}

.gallery .citrus-container img.scroll-animate {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    animation: citrusFloat 4s ease-in-out infinite 1.5s; 
}

/* Staggered delays for citrus images */
.gallery .citrus-container img:nth-child(1) { transition-delay: 0.1s; }
.gallery .citrus-container img:nth-child(2) { transition-delay: 0.2s; }
.gallery .citrus-container img:nth-child(3) { transition-delay: 0.3s; }
.gallery .citrus-container img:nth-child(4) { transition-delay: 0.4s; }
.gallery .citrus-container img:nth-child(5) { transition-delay: 0.5s; }
.gallery .citrus-container img:nth-child(6) { transition-delay: 0.6s; }
.gallery .citrus-container img:nth-child(7) { transition-delay: 0.7s; }
.gallery .citrus-container img:nth-child(8) { transition-delay: 0.8s; }
.gallery .citrus-container img:nth-child(9) { transition-delay: 0.9s; }
.gallery .citrus-container img:nth-child(10) { transition-delay: 1.0s; }
.gallery .citrus-container img:nth-child(11) { transition-delay: 1.1s; }
.gallery .citrus-container img:nth-child(12) { transition-delay: 1.2s; }
.gallery .citrus-container img:nth-child(13) { transition-delay: 1.3s; }
.gallery .citrus-container img:nth-child(14) { transition-delay: 1.4s; }
.gallery .citrus-container img:nth-child(15) { transition-delay: 1.5s; }

.slideshow-container {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity, filter;
    position: relative;
    z-index: 99999999999999999999 !important;
}

.slideshow-container.scroll-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: slideInFromBottomGallery 1.5s ease-out forwards;
}

.gallery .citrus-container img {
    max-width: 200px;
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    z-index: 1;
}

.slides-wrapper {
    display: flex;
    width: 300%; /* 3 slides = 300% */
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 33.333%; /* Each slide takes 1/3 of the wrapper */
    flex-shrink: 0;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(248, 98, 31, 0.8);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background 0.3s ease;
}

.prev:hover, .next:hover {
    background: rgba(248, 98, 31, 1);
}

.prev {
    left: 0;
}
.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(248, 98, 31, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--secondColor);
}

.phylosophy {
    background: url(/assets/img/pattern.png) top left repeat #fff;
    padding: 5% 0;
    position: relative;
    overflow: hidden;
}

/* Phylosophy scroll animations */
.phylosophy .content-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.phylosophy .content-container.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

.phylosophy .title {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.phylosophy .title.scroll-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.phylosophy .subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.phylosophy .subtitle.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

.phylosophy p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.phylosophy p.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

.phylosophy .p-spritz-red,
.phylosophy .p-spritz-orange {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.phylosophy .p-spritz-red.scroll-animate {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: slideInFromLeftDrink 1.5s ease-out forwards, drinkFloat 3s ease-in-out infinite 2s;
}

.phylosophy .p-spritz-orange.scroll-animate {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: slideInFromRightDrink 1.5s ease-out forwards, drinkFloat 3s ease-in-out infinite 2.5s;
}

.phylosophy .pizza-fritta,
.phylosophy .pizza-calzone {
    opacity: 0;
    transform: scale(0.3) rotate(-60deg);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.phylosophy .pizza-fritta.scroll-animate {
    opacity: 1;
    transform: rotate(-30deg) scaleX(-1);
    animation: slideInFromRightPizza 1.8s ease-out forwards;
}

.phylosophy .pizza-calzone.scroll-animate {
    opacity: 1;
    transform: rotate(-30deg) scaleX(-1);
    animation: slideInFromLeftPizza 1.8s ease-out forwards;
}
.phylosophy .p-spritz-red,
.phylosophy .pizza-fritta,
.phylosophy .pizza-calzone,
.phylosophy .p-spritz-orange {
    position: absolute;
    height: 220px;
}
.phylosophy .p-spritz-red {
    margin: -130px 0 0 -50px;
    left: 0;
}
.phylosophy .pizza-fritta {
    right: 0;
    margin: -130px -50px 0 0;
    transform: rotate(-30deg) scaleX(-1);
}
.phylosophy .pizza-calzone {
    left: 0;
    margin: -80px 0 0px -60px;
    transform: rotate(-30deg) scaleX(-1);
}
.phylosophy .p-spritz-orange {
    right: 0;
    margin: -80px -30px 0 0;
}

.phylosophy .content-container {
    position: relative;
    width: var(--maxWidth);
    margin: 0 auto;
    padding: 80px 0;
    background: #009fe3;
}
.phylosophy .title {
    max-width: 70%;
}
.phylosophy .subtitle {
    color: #00303e;
    font-weight: bold;
    font-size: 1.2rem;
}
.phylosophy p {
    color: #ffed00;
    padding: 0 15%;
    font-weight: bold;
    line-height: 1.8rem;
}

.background {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.social-icons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.social-icons img {
    max-width: 30px;
}

.logo, .logo_bottom, .spritz-red, .olive-left, .parma, .spritz-orange, .olive-right, .cheese, .calzone-top, .olive-bottom, .salami, .calzone-bottom, .la-dolce-vita, .coming-soon, .leaf-top, .leaf-right, .leaf-bottom, .chilli-top, .chilli-right, .chilli-left, .chilli-bottom {
    position: absolute;
    transform: translate(-50%, -50%);
    max-width: 30%;
    max-height: 30%;
    width: auto;
    height: auto; 
}
.spritz-red, .olive-left, .parma, .spritz-orange, .olive-right, .cheese, .calzone-top, .olive-bottom, .salami, .calzone-bottom, .chilli-top, .chilli-right, .chilli-left, .chilli-bottom {
    max-width: 40%;
    max-height: 40%;
}

.leaf-top {
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}

.leaf-right {
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    animation: fadeInRightTopRotate 2s 1 ease 0s forwards;
}

.leaf-bottom {
    top: 52%;
    left: 52%;
    max-width: 100%;
    max-height: 100%;
    animation: fadeInRightTopRotate 2s 1 ease 0s forwards;
}

.logo {
    left: 50%;
    top: 48%;
    opacity: 0; 
    animation: hide 0s 1 linear 5s forwards, fade-in 1s 1 linear 5s; /*, neon-color-shift 6s infinite linear;*/
}
.logo_bottom {
    left: 50%;
    top: 48%;
    scale: 1;
    opacity: 0; 
    animation: hide 0s 1 linear 5s forwards, fade-in 1s 1 linear 5s; /*, neon-color-shift 6s infinite linear;*/
}
.hand {
    position: absolute;
    max-width: 30%;
    max-height: 30%;
    width: auto;
    height: auto; 
    /* left: 36%;
    top: 35%; */
    left: 39%;
    top: 33%;
    opacity: 0; 
    animation: 
        hide 0s 1 linear 5s forwards, 
        fade-in 1s 1 linear 5s, 
        hand-rotate 1s infinite linear;
        /* neon-color-shift 6s infinite linear; */
}

.spritz-red { 
    left: 23%;
    top: 54%;
    max-width: 45%;
    max-height: 45%;
    opacity: 0;
    animation: fadeInBottomLeftScale 2s 1 ease 2s forwards;
}
.spritz-orange { 
    top: 55%; 
    left: 80%; 
    max-width: 45%;
    max-height: 45%;
    opacity: 0;
    animation: fadeInBottomRightScale 2s 1 ease 2s forwards;
}

.olive-left { 
    top: 18%; 
    left: 20%; 
    max-width: 30%;
    max-height: 30%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}
.olive-right { 
    top: 36%; 
    left: 94%; 
    max-width: 30%;
    max-height: 30%;
    animation: fadeInRightTopRotate 2s 1 ease 0s forwards;
}
.olive-bottom { 
    top: 90%; 
    left: 64%;
    max-width: 30%;
    max-height: 30%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}

.chilli-top {
    top: 27%;
    left: 40%;
    max-width: 10%;
    max-height: 10%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}
.chilli-bottom {
    top: 90%;
    left: 40%;
    max-width: 10%;
    max-height: 10%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}
.chilli-left {
    top: 65%;
    left: 13%;
    max-width: 10%;
    max-height: 10%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}
.chilli-right {
    top: 65%;
    left: 75%;
    max-width: 10%;
    max-height: 10%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}

.parma { 
    top: 46%; 
    left: 12%; 
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards;
}
.cheese { 
    top: 16%; 
    left: 50%;
    animation: fadeInLeftTopRotate 2s 1 ease 0s forwards; 
}
.calzone-top { 
    top: 25%; 
    left: 80%; 
    animation: fadeInRightTopRotate 2s 1 ease 0s forwards;
}

.salami { 
    top: 85%; 
    left: 60%;
    animation: fadeInRightTopRotate 2s 1 ease 0s forwards; 
}
.calzone-bottom { 
    top: 82%; 
    left: 22%; 
    animation: fadeInRightTopRotate 2s 1 ease 0s forwards;
}
.la-dolce-vita { 
    top: 10%; 
    left: 50%; 
    max-width: 100%;
    max-height: 100%;
    animation: flyin-bounce 5s 1 ease-in;
}
.coming-soon { 
    top: 15%; 
    left: 53%; 
    animation: neon-color-shift 6s infinite linear, flyin-top 5s 1 ease-in;
}

#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #003447;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

#preloader .loader {
  border: 8px solid #eee;
  border-top: 8px solid #FF651F;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.parallax-move {
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@media (max-width: 1350px) {
    .laDolceFritta .title .left img.tag,
    .laDolceFritta .title .right img.tag {
        max-width: 110px;
    }
    .laDolceFritta .title .left img.pizza, 
    .laDolceFritta .title .right img.pizza {
        max-width: 150px;
        margin: 50px 15px;
    }
}

@media (max-width: 1000px) {
    .laDolceFritta .title .left img.tag,
    .laDolceFritta .title .right img.tag {
        max-width: 70px;
    }
    .laDolceFritta .title .left img.pizza, 
    .laDolceFritta .title .right img.pizza {
        max-width: 100px;
        margin: 50px 15px;
    }
}

/* @media (max-height: 600px) { */
@media (max-height: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .container {
        max-height: 80svh;
        max-width: 240px;
        min-height: 80svh;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .container {
        max-height: 430px;
        max-width: 340px;
        min-height: 430px;
        min-width: 340px;
        margin-top: 20vh;
    }

    .gallery .citrus-container img {
        max-width: 100px;
    }

    /* Mobile optimizations for gallery animations */
    .gallery .citrus-container img {
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .gallery .citrus-container img.scroll-animate {
        animation: citrusFloat 5s ease-in-out infinite 2s;
    }
    
    .slideshow-container {
        transform: translateY(50px) scale(0.9);
        transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .welcome .content-container,
    .phylosophy .content-container {
        width: auto;
        min-width: 80%;
        max-width: 80%;
        margin: 50px auto;
        padding: 40px 0;
    }
    .phylosophy .content-container .subtitle {
        font-size: 0.8rem;
    }
    
    .welcome .content-container p,
    .phylosophy .content-container p {
        line-height: 1.2rem;
        font-size: 0.7rem;
    }

    .laDolceFritta .title {
        max-width: 580px;
    }

    /*  */


    .laDolceFritta {
        padding: 20px 10px;
        min-height: auto;
    }
    
    .laDolceFritta .title .content-container {
        flex-direction: row;
        gap: 0px;
        align-items: center;
    }
    
    .laDolceFritta .title .left img.tag,
    .laDolceFritta .title .right img.tag {
        display: none;
    }
    .laDolceFritta .title .left img.pizza, 
    .laDolceFritta .title .right img.pizza {
        max-width: 80px;
        margin: 50px 15px;
    }
    
    .laDolceFritta .contentTop {
        margin: 20px auto 40px auto;
    }
    .laDolceFritta .contentBottom {
        margin: 40px auto 20px auto;
    }

    /* Mobile optimizations for pizza animations */
    .laDolceFritta .title > img {
        transform: translateY(-30px) scale(0.9);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .laDolceFritta .title .left img.pizza,
    .laDolceFritta .title .right img.pizza {
        transform: scale(0);
        transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .laDolceFritta .title .left img.pizza.scroll-animate,
    .laDolceFritta .title .right img.pizza.scroll-animate {
        transform: scale(1.8) !important;
    }
    
    .gallery {
        padding: 40px 10px;
        min-height: 80vh;
    }
    
    .slideshow-container {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .slides-wrapper {
        transition: transform 0.4s ease-in-out;
    }
    
    .slide img {
        max-height: 400px;
        border-radius: 8px;
    }
    
    .prev, .next {
        padding: 12px 16px;
        font-size: 16px;
    }

    .welcome,
    .phylosophy {
        background-size: 100%;
    }

    .phylosophy .p-spritz-red,
    .phylosophy .pizza-fritta,
    .phylosophy .pizza-calzone,
    .phylosophy .p-spritz-orange {
        position: absolute;
        height: 160px;
    }
    .phylosophy .p-spritz-red {
        margin: -80px 0 0 -30px;
        left: 0;
    }
    .phylosophy .pizza-fritta {
        right: 0;
        margin: -80px -30px 0 0;
        transform: rotate(-30deg) scaleX(-1);
    }
    .phylosophy .pizza-calzone {
        left: 0;
        margin: -80px 0 0px -60px;
        transform: rotate(-30deg) scaleX(-1);
    }
    .phylosophy .p-spritz-orange {
        right: 0;
        margin: -80px -30px 0 0;
    }

    /* Mobile optimizations for phylosophy animations */
    .phylosophy .p-spritz-red,
    .phylosophy .p-spritz-orange {
        transform: scale(0.3) rotate(-30deg);
        transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .phylosophy .pizza-fritta,
    .phylosophy .pizza-calzone {
        transform: scale(0.2) rotate(-45deg);
        transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .phylosophy .p-spritz-red.scroll-animate,
    .phylosophy .p-spritz-orange.scroll-animate {
        animation: slideInFromLeftDrink 1.2s ease-out forwards, drinkFloat 4s ease-in-out infinite 2s;
    }
    
    .phylosophy .pizza-fritta.scroll-animate,
    .phylosophy .pizza-calzone.scroll-animate {
        animation: slideInFromRightPizza 1.5s ease-out forwards;
    }

    .welcome .top-zitrone {
        width: 80px;
        margin: -60px 0 0 -20px
    }
    .welcome .top-citrus {
        width: 120px;
        margin: -60px -40px 0 0;
    }
    .welcome .bottom-citrus {
        width: 120px;
        margin: -20px 0 0 -30px;
    }
    .welcome .bottom-zitrone {
        width: 80px;
        margin: -20px -20px 0 0;
    }

}

/* Speisekarte Button Styles */
.speisekarte-btn {
    display: block;
    margin: -80px auto 50px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #FF651F, #FF8C42);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 30px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(255, 101, 31, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.speisekarte-btn:hover {
    background: linear-gradient(45deg, #FF8C42, #FF651F);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 101, 31, 0.4);
    text-decoration: none;
    color: white;
}

.speisekarte-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 101, 31, 0.3);
}

.saisonkarte-btn {
    background: linear-gradient(45deg, #448F2F, #66AE2E);
}
.saisonkarte-btn:hover {
    background: linear-gradient(45deg, #66AE2E, #448F2F);
}

/* Top Navigation Bar Styles */
.top-nav {
    background: var(--mainColor);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 2px solid #FF651F;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(45deg, #FF651F, #FF8C42);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 101, 31, 0.3);
}

.nav-link:hover {
    background: linear-gradient(45deg, #FF8C42, #FF651F);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 101, 31, 0.4);
    text-decoration: none;
}

.nav-link .arrow {
    font-size: 1.2rem;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.nav-link:hover .arrow {
    transform: translateX(-3px);
}

/* Adjust body padding to account for fixed nav */
body {
    padding-top: 80px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .nav-link .arrow {
        font-size: 1.1rem;
        margin-right: 6px;
    }
    
    .speisekarte-btn {
        margin: -60px auto 40px auto;
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 280px;
    }
    
    body {
        padding-top: 70px;
    }
}