/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&display=swap');

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
    padding-top: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== NEW FACEBOOK-STYLE HEADER ===== */
.cover-header {
    position: relative;
    margin-bottom: 80px;
    padding-top: 60px; /* Aggiungi questo */
}

.cover-container {
    position: relative;
    width: 100%;
}

.cover-photo {
    height: 600px;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-logo {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #4a7c59;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* ===== HEADER ===== */
header {
    background-color: transparent;
    box-shadow: none;
}

body {
    padding-top: 0;
} 

/* ===== HERO SECTION ===== */

.hero {
    margin-top: 100px;
    background: linear-gradient(rgba(255,255,240,0.7), rgba(0,100,0,0.5)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #1d1d1d;
    text-align: center;
    padding: 140px 0;
    border-top: 6px solid #d4af37; /* giallo canarino */
    border-bottom: 6px solid #d4af37;
    font-family: 'Playfair Display', serif;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    margin-bottom: 20px;
    color: #1b3b1b;
    text-shadow: 1px 1px 2px #fff;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}

.btn {
    background-color: #4a7c59; /* verde scuro */
    color: #fff;
    padding: 14px 28px;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: #d4af37; /* giallo canarino */
    color: #1d1d1d;
    transform: scale(1.05);
}


/* ===== CONTENT SECTIONS ===== */
section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #222;
}

/* Specials Grid */
.special-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.special-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.special-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.special-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.special-item h3 {
    padding: 15px;
    font-size: 1.3rem;
    font-family: 'Arial', sans-serif;
}

.special-item p {
    padding: 0 15px 15px;
    color: #666;
    font-family: 'Arial', sans-serif;
}

/* Container prezzo e allergeni */
.price-allergens-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Questo è fondamentale */
    padding: 0 15px 15px;
}

.price-allergens-container .price {
    font-weight: bold;
    color: #c00;
    font-size: 1.2rem;
    line-height: 22px; /* Deve corrispondere all'altezza delle icone */
    margin: 0; /* Rimuove eventuali margini predefiniti */
}

/* Container icone allergeni */
.allergens {
    display: flex;
    gap: 8px;
    align-items: center; /* Allinea verticalmente le icone */
}

/* Stile icone allergeni */
.allergens img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    vertical-align: middle; /* Allineamento aggiuntivo */
}

.allergens img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: #fff;
    padding-top: 60px;
}

/* Make specific footer h3 elements green */
#footer-contatti h3,
.footer-grid > div:nth-child(2) h3,
.footer-grid > div:nth-child(3) h3 {
    color: #4a7c59; /* Verde */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col {
    padding: 0 10px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

address {
    font-style: normal;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Footer Links */
.footer-map a,
.footer-menu a,
.footer-phone a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-map a:hover,
.footer-menu a:hover,
.footer-phone a:hover {
    color: #fff;
}

/* Opening Hours */
.opening-hours {
    list-style: none;
}

.opening-hours li {
    display: flex;
    margin-bottom: 8px;
}

.opening-hours span:first-child {
    min-width: 90px;
    font-weight: bold;
}

.opening-hours strong {
    color: #c00;
    font-style: italic;
}

/* Social Links */
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px;
    border-radius: 4px;
}

.social-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Icons */
.small-icon,
.icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Copyright */
.copyright {
    text-align: center;
    padding: 20px 0;
    background: #111;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#menu-toggle {
    opacity: 0;
}

#menu-toggle:checked ~ .menu-btn > span {
    transform: rotate(45deg);
    background-color: #f8f4e9; /* Panna */
}
#menu-toggle:checked ~ .menu-btn > span::before {
    top: 0;
    transform: rotate(0);
    background-color: #f8f4e9; /* Panna */
}
#menu-toggle:checked ~ .menu-btn > span::after {
    top: 0;
    transform: rotate(90deg);
    background-color: #f8f4e9; /* Panna */
}
#menu-toggle:checked ~ .menu-box {
    visibility: visible;
    left: 0;
}

.menu-btn {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 1001;
    outline: none; /* Rimuove l'outline di default ma lo aggiungiamo dopo */
}

.menu-btn:focus-visible {
    outline: 2px solid #f7e6c4; /* Giallo pastello */
    outline-offset: 2px;
}

.menu-btn > span,
.menu-btn > span::before,
.menu-btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #4a7c59; /* Verde */
    transition-duration: .25s;
}
.menu-btn > span::before {
    content: '';
    top: -8px;
}
.menu-btn > span::after {
    content: '';
    top: 8px;
}

.menu-box {
    display: block;
    position: fixed;
    visibility: hidden;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: #4a7c59; /* Verde */
    box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
    transition-duration: .25s;
}

.menu-item {
    display: block;
    padding: 12px 24px;
    color: #f8f4e9; /* Panna */
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition-duration: .25s;
    font-family: 'Arial', sans-serif; /* Override global font for menu */
}

.menu-item:hover {
    background-color: #f7e6c4; /* Giallo pastello */
    color: #4a7c59; /* Verde */
}

/* Aggiungi questa regola al tuo CSS */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Aggiungi questa regola al tuo CSS */
html {
    scroll-behavior: smooth;
}

/* Per browser che non supportano scroll-behavior */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Stili specifici per la galleria */
.gallery-section {
    padding: 60px 0;
}
        
.gallery-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
        
.category-btn {
    background: #f7e6c4;
    color: #4a7c59;
    border: 2px solid #4a7c59;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
        
.category-btn:hover, .category-btn.active {
    background: #4a7c59;
    color: #f8f4e9;
}
        
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
        
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
        
.gallery-item:hover {
            transform: scale(1.03);
}
        
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
        
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(74, 124, 89, 0.8);
    color: #f8f4e9;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}
        
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Stili specifici per la pagina eventi */
.event-hero {
    text-align: center;
    padding: 60px 0 40px;
    background-color: #f8f4e9; /* Panna */
}

.current-event {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.event-banner {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.event-description {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-description h2 {
    color: #4a7c59; /* Verde */
    margin-bottom: 20px;
}

.event-description p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.detail-box {
    background: #4a7c59; /* Verde */
    color: #f8f4e9; /* Panna */
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 200px;
    text-align: center;
}

.detail-box i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.past-events {
    padding: 60px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(74, 124, 89, 0.8);
    color: #f8f4e9;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.btn-event {
    display: inline-block;
    background: #4a7c59; /* Verde */
    color: #f8f4e9; /* Panna */
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 20px;
    border: 2px solid #4a7c59;
}

.btn-event:hover {
    background: #f8f4e9; /* Panna */
    color: #4a7c59; /* Verde */
}

@media (max-width: 768px) {
    .event-banner {
        max-height: 300px;
    }
    
    .detail-box {
        min-width: 100%;
    }
}

/* Effetto battito per il numero di telefono */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 1s ease-in-out 3;
}

/* Stile per il link del telefono nel footer */
.footer-phone a {
    transition: all 0.3s;
}

/* Stili specifici per la pagina menu */
.menu-header {
    text-align: center;
    padding: 60px 0 40px;
    background-color: #f8f4e9; /* Panna */
}
        
/* Stili per il cambio lingua */
.language-switcher {
    text-align: center;
    margin: 20px 0 40px;
}

.lang-btn {
    background: #f7e6c4;
    border: 2px solid #4a7c59;
    color: #4a7c59;
    padding: 8px 20px;
    margin: 0;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #4a7c59;
    color: #f8f4e9;
}

/* Nasconde tutte le lingue di default */
.english, .german, .russian, .french {
    display: none;
}

/* Mostra la lingua selezionata */
.lang-btn.active[data-lang="it"] ~ .container .italian,
.lang-btn.active[data-lang="en"] ~ .container .english,
.lang-btn.active[data-lang="ge"] ~ .container .german,
.lang-btn.active[data-lang="fr"] ~ .container .french,
.lang-btn.active[data-lang="ru"] ~ .container .russian {
    display: block;
}

.menu-section {
    margin-bottom: 50px;
}
        
.menu-category {
    text-align: center;
    margin-bottom: 40px;
}
        
.menu-category h3 {
    color: #000000;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 10px;
    margin-bottom: 0px;
}
        
.menu-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}
        
.menu-item-name {
    flex: 1 0 100%;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
        
.menu-item-desc {
    flex: 1;
    font-style: italic;
    color: #666;
    font-family: 'Arial', sans-serif;
}

.menu-item-allergens {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}
        
.menu-item-price {
    font-weight: bold;
    color: #ff0000;
}

.allergen-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.allergen-icon:hover {
    transform: scale(1.2);
}
        
.wine-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    font-family: 'Arial', sans-serif;
}
        
/* Stili per la sezione vini */
.wine-category {
    margin-bottom: 40px;
}

.wine-category h3 {
    font-size: 22px;
    color: #4a7c59;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0d6c2;
}

.wine-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed #d4c9a8;
}

.wine-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 2;
}

.wine-details {
    display: flex;
    justify-content: space-between;
    flex: 3;
}

.wine-details span:first-child {
    font-style: italic;
    color: #666;
    margin-right: 15px;
}

.wine-details span:last-child {
    font-weight: 700;
    color: #8b0000; /* Rosso vino per i prezzi */
    font-size: 16px;
    min-width: 80px;
    text-align: right;
}

/* Effetto hover per migliorare l'interattività */
.wine-item:hover {
    background-color: #f9f5eb;
}
        
/* Nascondi le sezioni inglesi inizialmente */
.english {
    display: none;
}
        
@media (max-width: 768px) {
    .menu-item {
        flex-direction: column;
    }
            
    .menu-item-desc {
        margin: 5px 0 10px;
    }
}

/* Stili per il cambio lingua */
.italian, .english {
    transition: all 0.3s ease;
}

.wine-title, .wine-subtitle {
    text-align: center;
}

.wine-title {
    color: #4a7c59;
    margin-bottom: 10px;
}

.wine-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

/* Wine Section Styles */
.wine-section {
    background-color: #f8f4e9;
    font-family: 'Arial', sans-serif;
}

.wine-section-title {
    text-align: center;
    color: #4a7c59;
}

.wine-section-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

#cookie-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    width: 300px;
    text-align: center;
    display: none;
}

#cookie-box button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#cookie-box a {
    display: block;
    font-size: 0.85em;
    margin-top: 8px;
    color: #333;
    text-decoration: underline;
}

/* Stili per la sezione allergeni */
.allergens-warning {
    background-color: #f8f4e9;
    padding: 30px 0;
    border-top: 2px solid #4a7c59;
    border-bottom: 2px solid #4a7c59;
    font-family: 'Arial', sans-serif;
}

.allergens-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.allergens-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.allergens-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.allergen-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .allergens-row span {
        min-width: 100px;
        font-size: 0.9em;
    }
}

/* Stili per la sezione allergeni */
.allergens-warning h4 {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

.about {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #faf3e0 0%, #fffdf5 100%);
    color: #1a4c2e; /* Verde */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #f0e5d8 0%, transparent 70%);
    opacity: 0.15;
    z-index: 0;
    animation: floatingGlow 10s ease-in-out infinite;
}

@keyframes floatingGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 20px); }
}

.about-logo {
    width: 260px;
    margin: 0 auto 30px;
    max-width: 100%;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.about-logo:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.about h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.2px;
}

.about p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 0 20px;
}

.orange {
    color: #eeb34a; /* giallo/arancio caldo */
    font-weight: 700;
}

.blue {
    color: #1a4c2e; /* verde elegante */
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .about-logo {
        width: 250px; /* Leggermente più piccolo su mobile */
    }
    
    .about h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .about-logo {
        width: 200px; /* Dimensione per schermi molto piccoli */
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* New class for wine button container */
.wine-button-container {
    text-align: center;
    margin-top: 30px;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

#lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 1.2em;
}

.lightbox.active {
    display: flex;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.wineries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.winery-item {
    display: flex;
    align-items: center;
    width: 300px;
    background: #f9f5f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.winery-logo {
    width: 60px;
    margin-right: 20px;
}

.winery-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.winery-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}