/* Color variables */
:root {
    --burgundy: #7B1D38;
    --burgundy-dark: #5A1427;
    --cream: #FFFCF8;
    --gold: #B8975A;
    --muted: #6B4B4B;
    --border: #D6C0C0;
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--cream);
    color: #1E0E0E;
    font-family: 'Georgia', serif;
    line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark overlay on image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 10, 22, 0.65);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 235, 200, 0.7);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #FFF7EC;
    line-height: 1;
    margin: 0;
    font-family: 'Georgia', serif;
}

.hero-tagline {
    font-size: 1.5rem;
    color: rgba(255, 220, 170, 0.85);
    margin-top: 0.5rem;
    font-style: italic;
    letter-spacing: 0.06em;
}
/* ===== SCROLLING BANNER ===== */
.scrolling-banner {
    background-color: var(--burgundy);
    color: rgba(255, 240, 220, 0.88);
    padding: 1.5rem 0;  /* Più padding */
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;  /* Più lento per leggere meglio */
    font-size: 1.3rem;  /* Più grande */
    font-weight: 600;
    letter-spacing: 0.1em;  /* Più spazio tra le lettere */
    text-transform: uppercase;
    color: var(--gold);  /* Colore oro elegante */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===== ANIMATED IMAGE ===== */
.animated-image {
    position: fixed;
    right: 5%;
    top: 50%;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 5;
    pointer-events: none;
    opacity: 0.1;
}

.animated-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .animated-image {
        width: 120px;
        height: 120px;
        right: 10px;
    }
}

/* ===== INTRO BAND ===== */
.intro-band {
    background-color: var(--burgundy);
    color: rgba(255, 240, 220, 0.88);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ===== FILTER BUTTONS ===== */
.filter-buttons {
    max-width: 700px;
    margin: 2rem auto 1.5rem;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--burgundy);
    background: linear-gradient(135deg, transparent, rgba(123, 29, 56, 0.05));
    color: var(--burgundy);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 30px;
    cursor: pointer;
    
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Effetto hover - background che entra */
.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--burgundy);
    transition: left 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(123, 29, 56, 0.25);
}

/* Bottone attivo */
.filter-btn.active {
    background: var(--burgundy);
    color: white;
    box-shadow: 0 8px 20px rgba(123, 29, 56, 0.3);
    transform: translateY(-3px);
}

.filter-btn.active::before {
    left: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}

/* ===== PARALLAX DECORATIONS ===== */
.parallax-decoration {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s ease;
}

.parallax-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}


/* Responsive */
@media (max-width: 768px) {
    .parallax-decoration {
        display: none;  /* Nascondi su mobile */
    }
}

/* ===== MENU SECTION ===== */
.menu-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
    position:relative;
}

.menu-container::before {
        content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Logo_copia.pdf');
    background-size: 800px;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.035;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}
@media (max-width: 500px) {
    .menu-container::before {
        display: none;
    }
}

.menu-section {
    position: relative;
    z-index: 1;
}



.menu-section {
    margin-bottom: 0.5rem; 
}

.menu-section:not(:first-child) {
    padding-top: 1rem;
    border-top: 1.5px solid var(--border);
}

.menu-section h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--burgundy);
    padding: 0.5rem 0 1rem 0;
    margin-bottom: 0rem;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.menu-section h2::before {
    content: '✦';
    display: block;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0rem;
}

.menu-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin-top: 0.3rem;
    margin-left: auto;
    margin-right: auto;
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    margin-top: 0rem;
    margin-bottom: 0rem;

    transition: all 0.3s ease;
    cursor: pointer;

}

.menu-item:hover {
    transform: translateX(10px);  /* Scorre a destra */
    color: var(--gold);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-content {
    flex: 1;
    min-width: 0;
}

.menu-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E0E0E;
    margin-bottom: 0.18rem;
}

.menu-item-description {
    font-size: 0.6rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.55;
}

.menu-item-line {
    display: none;
}

.menu-item-price {
    flex-shrink: 0;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--burgundy);
    white-space: nowrap;
}

/* ===== LOADING & ERROR STATES ===== */
.loading {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-details {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #c62828;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--burgundy-dark);
    color: rgba(255, 235, 210, 0.65);
    text-align: center;
    padding: 2.5rem 2rem;
}

.footer-name {
    font-size: 1.05rem;
    color: rgba(255, 235, 210, 0.9);
    margin-bottom: 0rem;
    font-style: italic;
}

.footer-note {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* SOCIAL MEDIA LINKS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Instagram Icon */
.instagram-icon {
    display: inline-block;
    color: rgba(255, 235, 210, 0.9);
    font-size: 1.8rem;
    margin-top: 0rem;
    margin-bottom: 0.20rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-icon:hover {
    color: #E1306C;
}

.instagram-link:hover {
    color: #E1306C;  /* Colore Instagram */
    border-color: #E1306C;
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .menu-section h2 {
        font-size: 1.2rem;
    }
}