/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('../images/ristorante.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Fix per il parallax - aggiungi overlay graduale */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--dark-bg));
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif; /* Cambia questo per testare le altre opzioni */
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold);
    animation: bounce 2s infinite;
}

.main-footer::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgb(43 43 41) 10%, #000000 100%);
            /* background-attachment: scroll; */
            /* background-size: cover; */
            /* opacity: 0.2; */
            /* z-index: -1; */
        }
        .main-footer {
            position: relative;
            background-color: #060606;
            z-index: 1;
        }

        /* Aggiungi questo in cima al tuo CSS per forzare la chiusura */
        .navigation .dropdown ul {
            display: none !important;
        }

        .navigation .dropdown:hover ul {
            display: block !important;
        }


        /* Simple elegant border and background - no layout changes */
        .text-col .inner {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(212, 175, 55, 0.4);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        /* Enhanced readability for text */
        .text-col .text-presentazione {
            color: #ffffff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .text-col .feature-title h6 {
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .text-col .infotext {
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .text-col .bk-title {
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .text-col .bk-no {
            color: #d4af37;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        /* =================================
   MOBILE RESPONSIVE CSS
   ================================= */

/* TOUCH IMPROVEMENTS */
@media (hover: none) {
    .timeline-item:hover {
        transform: none;
    }
    
    .testi-thumbs .slide-item:hover {
        transform: none;
    }
    
    /* Migliora le aree di tocco */
    .nav-toggler button,
    .info-toggler button {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    .book-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .social_media li a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
    .timeline-content,
    .testi-thumbs .slide-item,
    .social_media li a {
        transition: none;
    }
    
    .bg-video-wrap video {
        animation-play-state: paused;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .timeline-content {
        border: 2px solid #d4af37;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .text-col .inner {
        border: 2px solid #d4af37;
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Hero Section Enhancements */
.bg-video-wrap .content-box .inner h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.bg-video-wrap .content-box .inner h1 span {
    color: #d4af37;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Enhancements */
.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.century-quote {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 40px auto;
    max-width: 700px;
    text-align: center;
}

.century-quote em {
    font-size: 1.2rem;
    color: #d4af37;
    font-style: italic;
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(178deg, #000000 0%, #403f3db0 100%);
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/resource/timeline-bg.jpg') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.timeline-section .auto-container {
    position: relative;
    z-index: 2;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    margin: 80px 0;
    padding: 0 20px;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #d4af37 10%, 
        #d4af37 90%, 
        transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #d4af37;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.timeline-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #d4af37;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin: 100px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
}

.timeline-item.right {
    text-align: left;
}

/* Timeline Content */
.timeline-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-item.left .timeline-content {
    justify-content: flex-end;
}

.timeline-item.right .timeline-content {
    justify-content: flex-start;
    padding-left: 60px;
}

/* Timeline Text */
.timeline-text {
    flex: 1;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.timeline-text::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item.left .timeline-text::before {
    right: -30px;
    border-left-color: rgba(212, 175, 55, 0.3);
}

.timeline-item.right .timeline-text::before {
    left: -30px;
    border-right-color: rgba(212, 175, 55, 0.3);
}

.timeline-year {
    font-size: 3rem;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Arial Black', sans-serif;
}

.timeline-text h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.timeline-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

.timeline-text strong {
    color: #d4af37;
    font-weight: 600;
}

.timeline-text em {
    color: #d4af37;
    font-style: italic;
}

/* Blockquote Styling */
.timeline-text blockquote {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    margin: 25px 0;
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
}

.timeline-text blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 10px;
    color: #ffffff;
}

.timeline-text blockquote cite {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
    margin-top: 10px;
}

/* Timeline Image */
.timeline-image {
    flex: 1;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.timeline-image:hover {
    transform: scale(1.05);
}

.timeline-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-image:hover img {
    transform: scale(1.1);
}

.timeline-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 50%, 
        rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-image:hover::after {
    opacity: 1;
}

/* Timeline Dots */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #d4af37;
    border: 4px solid #1a1a1a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transition: all 0.3s ease;
}

.timeline-item.animate .timeline-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .timeline-content {
        gap: 30px;
    }
    
    .timeline-text {
        max-width: 400px;
        padding: 30px;
    }
    
    .timeline-image {
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        text-align: left;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .timeline-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .timeline-text {
        max-width: 100%;
        order: 2;
    }
    
    .timeline-image {
        max-width: 100%;
        order: 1;
    }
    
    .timeline-text::before {
        display: none;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-year {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .bg-video-wrap .content-box .inner h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .timeline-section {
        padding: 60px 0;
    }
    
    .timeline-container {
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .timeline-item {
        margin: 60px 0;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        padding-left: 60px;
    }
    
    .timeline-text {
        padding: 25px;
    }
    
    .timeline-year {
        font-size: 2rem;
    }
    
    .timeline-text h3 {
        font-size: 1.5rem;
    }
    
    .timeline-image img {
    }
    
    .century-quote {
        padding: 20px;
        margin: 30px auto;
    }
    
    .century-quote em {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .bg-video-wrap .content-box .inner h1 {
        font-size: 2.5rem;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        width: 100%;
        padding: 0 16px; /* o 8px se vuoi margini minimi */
        box-sizing: border-box;
        margin: 0 auto;    }
    
    .timeline-text {
        padding: 20px;
    }
    
    .timeline-year {
        font-size: 1.8rem;
    }
    
    .timeline-text h3 {
        font-size: 1.3rem;
    }
    
    .timeline-image img {
    }
}

/* Animation Delays */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }

/* Scroll Indicators */
.timeline-section::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #d4af37);
    transform: translateX(-50%);
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

