/* ROOT VARIABLES */
:root {
    --primary-color: #d9230f; /* Rosso Logo */
    --primary-hover: #b01a0a;
    --light-bg: #fdfdfd; /* Chiaro perlato */
    --light-alt-bg: #f4f4f4; /* Grigio chiarissimo per stacchi */
    --dark-bg: #111111; /* Inserti scuri */
    --darker-bg: #0a0a0a;
    --text-color: #333333;
    --text-muted: #666666;
    --text-light: #f0f0f0; /* Testo su fondi scuri */
    --border-color: #e0e0e0;
    --border-dark: #333333;
    --card-shadow: 0 8px 30px rgba(0,0,0,0.08);
    --font-main: 'Inter', system-ui, sans-serif;
    --transition: all 0.3s ease;
}

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; }
body { font-family: var(--font-main); background-color: var(--light-bg); color: var(--text-color); line-height: 1.7; display: flex; flex-direction: column; min-height: 100vh; padding-top: 90px; }

/* ACCESSIBILITY (A11y) */
*:focus-visible { outline: 3px solid var(--primary-color) !important; outline-offset: 3px !important; box-shadow: 0 0 0 4px rgba(255,255,255,0.8) !important; border-radius: 4px; }
.skip-link { position: absolute; top: -50px; left: 10px; background: var(--primary-color); color: #fff; padding: 10px 20px; z-index: 10000; font-weight: bold; border-radius: 0 0 8px 8px; transition: top 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.skip-link:focus { top: 0; }

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { color: #111; margin-bottom: 1rem; line-height: 1.2; font-weight: 800; }
h1 { font-size: 2.8rem; letter-spacing: -0.5px; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
ul { margin-bottom: 1rem; padding-left: 20px; }

/* UTILITIES */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.bg-dark { background-color: var(--dark-bg); color: var(--text-light); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-light-alt { background-color: var(--light-alt-bg); }
.card { background: #fff; border-radius: 12px; padding: 2.5rem; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.page-content { padding: 5rem 1.5rem; flex: 1; }

/* BUTTONS */
.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; font-weight: bold; cursor: pointer; border: none; text-align: center; transition: var(--transition); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary { background: var(--primary-color); color: #fff; box-shadow: 0 4px 15px rgba(217, 35, 15, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(217, 35, 15, 0.4); color: #fff; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

/* HEADER & NAV */
.main-header { background: rgba(255, 255, 255, 0.85); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 30px rgba(0,0,0,0.05); padding: 0.8rem 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.4); }
.main-header .container { display: flex; align-items: center; flex-wrap: wrap; }
.logo { margin-right: auto; }
.logo img { height: 75px; width: auto; border-radius: 0; transition: var(--transition); }
.logo img:hover { transform: scale(1.05); }
.hamburger-btn, .close-menu-btn, .mobile-overlay, .nav-footer { display: none; }
.nav-links { list-style: none; display: flex; gap: 1rem; align-items: center; margin: 0; padding: 0; }
.nav-links li a { font-weight: 700; font-size: 1rem; color: #444; text-transform: uppercase; letter-spacing: 1px; padding: 8px 16px; border-radius: 50px; transition: var(--transition); }
.nav-links li a:hover, .nav-links li a.active { background: rgba(217, 35, 15, 0.08); color: var(--primary-color); }
.nav-links li.cta-nav a { background: var(--primary-color); color: #fff; box-shadow: 0 4px 15px rgba(217, 35, 15, 0.3); }
.nav-links li.cta-nav a:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217, 35, 15, 0.4); }

/* HEADER ACTIONS (Globale) */
.header-actions { display: flex; gap: 12px; align-items: center; margin-left: 15px; order: 3; }
.action-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: transform 0.2s ease; text-decoration: none; }
.action-btn svg { width: 22px; height: 22px; fill: #fff; }
.action-btn.phone-btn { background: #25d366; }
.action-btn.fb-btn { background: #1877f2; }
.action-btn.ig-btn { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.action-btn:active { transform: scale(0.9); }

/* HERO SECTION (Inserto Scuro Principale) */
.hero { padding: 10rem 0; text-align: center; background: linear-gradient(rgba(17,17,17,0.85), rgba(17,17,17,0.92)), url('../img/gallery/pizze-4.webp') center/cover no-repeat fixed; color: #fff; }
.hero h1 { font-size: 4.5rem; margin-bottom: 1.5rem; color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.6); }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 1.5rem; max-width: 800px; margin: 0 auto 3rem; color: #e0e0e0; font-weight: 300; }

/* HIGHLIGHTS / PRODUCTS */
.highlights { padding: 6rem 1.5rem; }
.product-img { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; margin-bottom: 1.8rem; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.product-item { margin-bottom: 4rem; }
.product-item h2 { color: var(--primary-color); margin-bottom: 1.5rem; font-size: 2.2rem; }

/* ABOUT PAGE SECTIONS */
.about-page { padding-top: 4rem; padding-bottom: 2rem; }
.about-hero { text-align: center; margin-bottom: 5rem; }
.about-hero h1 { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.about-hero p { font-size: 1.25rem; color: #555; max-width: 800px; margin: 0 auto; line-height: 1.8; }

.about-section { display: flex; align-items: center; gap: 5rem; margin-bottom: 6rem; }
.about-section:nth-child(even) { flex-direction: row-reverse; }
.about-text { flex: 1; }
.about-text h3 { font-size: 2.2rem; color: #222; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.15rem; line-height: 1.8; color: #555; margin-bottom: 1.2rem; }
.about-text ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.about-text ul li { position: relative; padding-left: 30px; margin-bottom: 1rem; font-size: 1.15rem; color: #555; }
.about-text ul li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary-color); font-weight: bold; font-size: 1.2rem; }

.about-image-wrapper { flex: 1; position: relative; }
.about-image-wrapper::after { content: ''; position: absolute; top: 25px; left: 25px; right: -25px; bottom: -25px; border: 4px solid var(--primary-color); border-radius: 20px; z-index: -1; }
.about-section:nth-child(even) .about-image-wrapper::after { left: -25px; right: 25px; }
.about-img { width: 100%; height: 450px; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); transition: transform 0.4s ease; }
.about-img:hover { transform: translateY(-10px); }
.about-closing { text-align: center; font-size: 1.3rem; font-style: italic; color: #333; margin-top: 4rem; padding: 3rem; background: #fdfdfd; border-radius: 15px; border: 1px solid var(--border-color); }

/* HOURS PAGE SECTIONS */
.hours-page-wrapper { display: flex; align-items: center; gap: 4rem; padding: 5rem 0; min-height: 70vh; }
.hours-collage { flex: 1; position: relative; height: 500px; }
.hours-collage img { position: absolute; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); object-fit: cover; transition: transform 0.5s ease; border: 4px solid #fff; }
.hours-collage img:hover { transform: scale(1.05); z-index: 10; }
.hours-img-1 { top: 0; left: 0; width: 60%; height: 60%; z-index: 2; }
.hours-img-2 { bottom: 0; right: 0; width: 65%; height: 55%; z-index: 3; }
.hours-img-3 { top: 20%; right: -5%; width: 45%; height: 40%; z-index: 1; filter: brightness(0.8); }

.hours-info-card { flex: 1; background: rgba(26, 26, 26, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 20px; padding: 4rem 3rem; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,0.3); position: relative; overflow: hidden; }
.hours-info-card::before { content: ''; position: absolute; top: -50px; left: -50px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(217,35,15,0.2) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }

/* FORMS & MESSAGES */
.form-group { margin-bottom: 1.8rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.6rem; font-weight: 700; color: #444; }
.form-group input, .form-group textarea { width: 100%; padding: 16px; background: #fdfdfd; border: 2px solid var(--border-color); border-radius: 8px; color: #333; font-family: inherit; transition: var(--transition); box-sizing: border-box; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(217,35,15,0.1); background: #fff; }

/* GLASS CARD & CONTACTS */
.glass-card { background: rgba(26, 26, 26, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 3rem; color: #fff; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.glass-card .form-group label { color: #eee; font-weight: 500; }
.glass-card .form-group input, .glass-card .form-group textarea { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.glass-card .form-group input:focus, .glass-card .form-group textarea:focus { background: rgba(255,255,255,0.12); border-color: var(--primary-color); color: #fff; }

/* CONTACT PAGE SPLIT SCREEN */
.contact-split-wrapper { display: flex; min-height: 100vh; }
.contact-split-form { flex: 1; padding: 6rem 5rem 4rem 5rem; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.contact-split-form h1 { font-size: 3rem; color: #111; margin-bottom: 0.5rem; }
.contact-split-form p.subtitle { font-size: 1.2rem; color: #666; margin-bottom: 3rem; }
.contact-split-form .form-group label { color: #333; }
.contact-split-form .form-group input, .contact-split-form .form-group textarea { background: #f9f9f9; border-color: #ddd; color: #222; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.contact-split-form .form-group input:focus, .contact-split-form .form-group textarea:focus { background: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(217,35,15,0.1); }

.contact-split-image { flex: 1; padding: 6rem 5rem 4rem 5rem; background: linear-gradient(rgba(17,17,17,0.7), rgba(17,17,17,0.85)), url('../img/gallery/pizze-1.webp') center/cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; }
.contact-split-image::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--primary-color); }
.contact-info-item { margin-bottom: 3rem; display: flex; gap: 20px; align-items: flex-start; }
.contact-info-item svg { width: 32px; height: 32px; fill: var(--primary-color); flex-shrink: 0; margin-top: 5px; }
.contact-info-item h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.contact-info-item p { color: #ddd; font-size: 1.2rem; margin: 0; line-height: 1.6; }

.msg { padding: 18px; border-radius: 8px; margin-bottom: 2rem; font-weight: bold; }
.msg.success { background: rgba(37, 211, 102, 0.1); color: #1e8745; border: 1px solid rgba(37, 211, 102, 0.3); }
.msg.error { background: rgba(217, 35, 15, 0.1); color: #d9230f; border: 1px solid rgba(217, 35, 15, 0.3); }

/* STRATOSPHERIC FOOTER */
.main-footer { background: var(--dark-bg); color: #ccc; padding: 6rem 0 2rem; margin-top: auto; position: relative; overflow: hidden; border-top: 6px solid var(--primary-color); }
.main-footer::before { content: ''; position: absolute; top: -50px; right: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(217,35,15,0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.main-footer::after { content: ''; position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; margin-bottom: 4rem; position: relative; z-index: 2; }
.footer-col h3 { color: #fff; margin-bottom: 2rem; font-size: 1.5rem; position: relative; padding-bottom: 12px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--primary-color); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 1rem; }
.footer-links li a { color: #aaa; transition: var(--transition); display: flex; align-items: center; font-size: 1.05rem; }
.footer-links li a:hover { color: #fff; padding-left: 10px; }
.footer-col p { color: #999; line-height: 1.8; font-size: 1.05rem; }
.footer-bottom { text-align: center; padding-top: 2.5rem; border-top: 1px solid var(--border-dark); color: #777; font-size: 0.95rem; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .hero { padding: 6rem 1rem; }
    
    /* About Mobile */
    .about-section, .about-section:nth-child(even) { flex-direction: column; gap: 3rem; margin-bottom: 5rem; }
    .about-image-wrapper::after { display: none; }
    .about-img { height: 300px; }
    .about-hero h1 { font-size: 2.5rem; }
    
    /* Hours Mobile */
    .hours-page-wrapper { flex-direction: column; gap: 3rem; padding: 2rem 0; }
    .hours-collage { height: 350px; width: 100%; max-width: 500px; margin: 0 auto; }
    .hours-info-card { padding: 3rem 1.5rem; width: 100%; }
    
    /* Contact Split Mobile */
    .contact-split-wrapper { flex-direction: column; }
    .contact-split-form, .contact-split-image { padding: 4rem 1.5rem; }
    .contact-split-image::after { display: none; }
    .contact-split-image { min-height: 400px; }
    
    /* Header Actions Mobile */
    .header-actions { margin-left: auto; margin-right: 25px; order: initial; }
    
    /* Offcanvas Menu */
    @keyframes pulse-hamburger {
        0% { box-shadow: 0 0 0 0 rgba(217, 35, 15, 0.5); }
        70% { box-shadow: 0 0 0 15px rgba(217, 35, 15, 0); }
        100% { box-shadow: 0 0 0 0 rgba(217, 35, 15, 0); }
    }
    .hamburger-btn { display: block; background: #fff; border: 2px solid var(--primary-color); border-radius: 50%; width: 55px; height: 55px; padding: 10px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: var(--transition); z-index: 1040; margin-left: 0; outline: none; animation: pulse-hamburger 2s infinite; }
    .hamburger-btn:hover { transform: scale(1.08); border-color: var(--primary-color); box-shadow: 0 6px 15px rgba(217,35,15,0.15); }
    .hamburger-btn svg { width: 100%; height: 100%; transition: transform 0.3s ease; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); }
    .hamburger-btn:active svg { transform: scale(0.85); }
    
    .mobile-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1050; opacity: 0; visibility: hidden; transition: var(--transition); }
    .mobile-overlay.active { opacity: 1; visibility: visible; }
    
    .main-nav { position: fixed; top: 0; right: -100%; width: 340px; max-width: 85%; height: 100vh; background: #1a1a1a; z-index: 1100; padding: 6rem 2.5rem 2rem; box-shadow: -10px 0 30px rgba(0,0,0,0.5); transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; display: flex; flex-direction: column; }
    .main-nav.active { right: 0; }
    
    .close-menu-btn { display: block; position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 3.5rem; color: #666; cursor: pointer; line-height: 1; transition: color 0.3s ease; padding: 0; outline: none; }
    .close-menu-btn:hover { color: #fff; transform: scale(1.1); }
    
    .nav-links { flex-direction: column; justify-content: flex-start; gap: 0.5rem; align-items: flex-start; margin-top: 0; width: 100%; }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px 0; opacity: 0; transform: translateX(30px); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links li a { display: block; width: 100%; font-size: 1.5rem; font-weight: 800; color: #f0f0f0; letter-spacing: 2px; padding: 0; background: none; border-radius: 0; }
    .nav-links li a:hover, .nav-links li a.active { background: none; color: var(--primary-color); padding-left: 10px; box-shadow: none; transform: none; }
    .nav-links li.cta-nav a { background: none; box-shadow: none; color: var(--primary-color); }
    
    .main-nav.active .nav-links li { opacity: 1; transform: translateX(0); }
    .main-nav.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.active .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.active .nav-links li:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.active .nav-links li:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.active .nav-links li:nth-child(6) { transition-delay: 0.35s; }
    .main-nav.active .nav-links li:nth-child(7) { transition-delay: 0.4s; }
    
    .nav-footer { display: block; margin-top: 3.5rem; padding-top: 1.5rem; color: #a0a0a0; font-size: 1rem; line-height: 1.6; opacity: 0; transition: opacity 0.5s ease 0.5s; border-top: 1px solid rgba(255,255,255,0.08); font-weight: 300; }
    .nav-footer strong { display: block; color: var(--primary-color); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; font-style: normal; }
    .main-nav.active .nav-footer { opacity: 1; }
}

/* MODAL LISTINO */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #fff; width: 90%; max-width: 500px; border-radius: 16px; padding: 3rem 2.5rem; position: relative; text-align: center; transform: translateY(50px) scale(0.95); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 25px 50px rgba(0,0,0,0.3); border: 1px solid var(--border-color); }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #999; cursor: pointer; line-height: 1; transition: color 0.3s ease; }
.modal-close:hover { color: var(--primary-color); }
.modal-icon { width: 80px; height: 80px; background: rgba(217, 35, 15, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.modal-icon svg { width: 60px; height: 60px; fill: var(--primary-color); margin-bottom: 1rem; }

/* Lightbox Specific Styles */
#lightboxModal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 10000; opacity: 0; visibility: hidden; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
#lightboxModal.active { opacity: 1; visibility: visible; }
#lightboxImg { max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.6); object-fit: contain; transform: scale(0.95); transition: transform 0.3s ease; }
#lightboxModal.active #lightboxImg { transform: scale(1); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; font-size: 2.5rem; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; transition: var(--transition); z-index: 10001; }
.lightbox-nav:hover, .lightbox-nav:focus-visible { background: var(--primary-color); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.modal-content h2 { font-size: 2rem; margin-bottom: 1rem; color: #111; }
.modal-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.6; }

/* GALLERY GRIDS */
.gallery-section { margin-top: 3rem; margin-bottom: 2rem; }
.category-title { margin-top: 3rem; color: var(--primary-color); font-size: 1.8rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: 12px; overflow: hidden; height: 220px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); background: #f0f0f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; cursor: zoom-in; }
.gallery-item img:hover { transform: scale(1.1); }

/* ==========================================================================
   COOKIE BANNER & PREFERENCES
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-content, .cookie-preferences {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Floating Cookie Button */
.floating-cookie {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.floating-cookie:hover {
    transform: scale(1.1) rotate(15deg);
    opacity: 1;
    background: var(--primary-color);
    color: #fff;
}

.floating-cookie svg {
    width: 24px;
    height: 24px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: var(--primary-color);
}

.toggle-switch input:focus + label {
    box-shadow: 0 0 1px var(--primary-color);
}

.toggle-switch input:checked + label:before {
    transform: translateX(24px);
}

.toggle-switch.disabled label {
    background-color: var(--primary-color);
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cookie-banner-content, .cookie-preferences {
        padding: 1.5rem;
    }
    .cookie-banner-actions {
        flex-direction: column;
    }
    .cookie-banner-actions button {
        width: 100%;
    }
    .floating-cookie {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    .floating-cookie svg {
        width: 20px;
        height: 20px;
    }
    
    /* Gallery Grid Swipe su Mobile */
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }
    .gallery-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        height: 250px;
        pointer-events: none; /* Disabilita il click (Lightbox) solo su mobile */
    }
    
    /* Animazione Nudge (Suggerimento di scorrimento) */
    @keyframes swipeHint {
        0%, 100% { transform: translateX(0); }
        30% { transform: translateX(-40px); }
        60% { transform: translateX(10px); }
    }
    .gallery-grid.animate-swipe {
        animation: swipeHint 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    }
}
