/* =================================================================
   JUX TAP - ULTRA MODERN LAYOUT - RESPONSIVE 100%
   Advanced CSS with cutting-edge design
   ================================================================= */

:root {
    /* Colors */
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Accent Colors */
    --accent-primary: #ffffff;
    --accent-secondary: #f5f5f5;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Animations */
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Layout */
    --max-width: 1400px;
    --border-radius: 0px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* =================================================================
   RESET & BASE
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    cursor: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =================================================================
   CUSTOM CURSOR
   ================================================================= */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s var(--ease-out-cubic);
}

/* =================================================================
   PRELOADER SIMPLE - Solo Logo + Equalizer
   ================================================================= */
.preloader-simple {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.preloader-simple.hidden {
    animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Logo */
.preloader-simple .loader-logo img {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0;
    animation: logoIn 0.8s ease 0.2s forwards;
}

@keyframes logoIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Equalizer */
.preloader-simple .loader-eq {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 40px;
}

.preloader-simple .loader-eq span {
    width: 4px;
    background: #fff;
    border-radius: 2px;
    animation: eqBounce 0.5s ease-in-out infinite;
}

.preloader-simple .loader-eq span:nth-child(1) { height: 15px; animation-delay: 0.0s; }
.preloader-simple .loader-eq span:nth-child(2) { height: 25px; animation-delay: 0.1s; }
.preloader-simple .loader-eq span:nth-child(3) { height: 40px; animation-delay: 0.2s; }
.preloader-simple .loader-eq span:nth-child(4) { height: 25px; animation-delay: 0.3s; }
.preloader-simple .loader-eq span:nth-child(5) { height: 15px; animation-delay: 0.4s; }

@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* Mobile */
@media (max-width: 768px) {
    .preloader-simple .loader-logo img {
        height: 55px;
        max-width: 160px;
    }

    .preloader-simple .loader-eq {
        gap: 5px;
        height: 32px;
    }

    .preloader-simple .loader-eq span {
        width: 3px;
    }
}

/* =================================================================
   NAVIGATION - COMPLETAMENTE RESPONSIVE
   ================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out-cubic);
    padding: var(--space-md) 0;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: var(--space-sm) 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO A SINISTRA */
.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex-shrink: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.3s var(--ease-out-cubic);
    filter: brightness(1);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    opacity: 0.8;
    transition: all 0.3s var(--ease-out-cubic);
}

/* MENU CENTRATO - DESKTOP */
.nav-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    position: relative;
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out-cubic);
    padding: var(--space-xs) 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--gray-300);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-white);
    transition: width 0.3s var(--ease-out-cubic);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ADMIN BUTTON NEL MENU - STILI SPECIFICI */
.nav-menu #adminBtnMobile {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: var(--space-xs) var(--space-md) !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    transition: all 0.3s var(--ease-out-cubic) !important;
    margin-left: var(--space-lg);
}

.nav-menu #adminBtnMobile:hover {
    background: var(--primary-white) !important;
    color: var(--primary-black) !important;
    transform: translateY(-2px) !important;
}

.nav-menu #adminBtnMobile::before,
.nav-menu #adminBtnMobile::after {
    display: none !important;
}

/* TOGGLE BUTTON - NASCOSTO SU DESKTOP */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-xs);
    flex-shrink: 0;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-white);
    transition: all 0.3s var(--ease-out-cubic);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* PRENOTA BUTTON A DESTRA - DESKTOP */
.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-cubic);
}

.nav-cta .btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    transition: left 0.4s var(--ease-out-cubic);
    z-index: -1;
}

.nav-cta:hover .btn-bg {
    left: 0;
}

.nav-cta:hover {
    color: var(--primary-black);
    transform: translateY(-2px);
}


/* =================================================================
   HERO LOGO RESPONSIVE FIX
   ================================================================= */
.hero-logo-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s var(--ease-out-cubic);
}

@media (max-width: 1024px) {
    .hero-logo-image {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero-logo-image {
        max-width: 450px;
        width: 90vw;
    }
}

@media (max-width: 480px) {
    .hero-logo-image {
        max-width: 380px;
        width: 85vw;
    }
}

@media (max-width: 360px) {
    .hero-logo-image {
        max-width: 320px;
        width: 80vw;
    }
}

/* =================================================================
   HERO SECTION ULTRA MODERN
   ================================================================= */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--space-2xl);
    height: 100vh;
}

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: var(--space-lg);
    overflow: hidden;
    text-align: center;
}

.title-line {
    display: block;
    color: var(--primary-white);
    letter-spacing: -0.02em;
    animation: slideInUp 1s var(--ease-out-cubic) forwards;
    transform: translateY(100%);
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    color: var(--gray-400);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray-300);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 1s var(--ease-out-cubic) 0.6s both;
    text-align: center;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    animation: fadeInUp 1s var(--ease-out-cubic) 0.8s both;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-2xl);
    background: transparent;
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-cubic);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    transition: left 0.4s var(--ease-out-cubic);
    z-index: -1;
}

.btn-primary:hover .btn-bg {
    left: 0;
}

.btn-primary:hover {
    color: var(--primary-black);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s var(--ease-out-cubic);
}

.btn-secondary:hover {
    color: var(--primary-white);
    transform: translateX(4px);
}

.btn-secondary svg {
    transition: transform 0.3s var(--ease-out-cubic);
}

.btn-secondary:hover svg {
    transform: rotate(45deg);
}

.hero-floating {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-white);
    border-radius: 50%;
    opacity: 0.3;
    left: var(--x);
    top: var(--y);
    animation: float 6s ease-in-out infinite var(--delay);
}

/* HERO RESPONSIVE */
@media (max-width: 768px) {
    .hero-grid {
        padding: 0 var(--space-md);
        gap: var(--space-xl);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-md);
    }

    .btn-primary,
    .btn-secondary {
        width: 200px;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .hero-grid {
        padding: 0 var(--space-sm);
    }

    .btn-primary {
        padding: var(--space-sm) var(--space-xl);
        font-size: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* =================================================================
   SECTION HEADERS
   ================================================================= */
section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.title-word {
    display: inline-block;
    color: var(--primary-white);
    animation: slideInUp 0.8s var(--ease-out-cubic) forwards;
    transform: translateY(100%);
}

.title-word:nth-child(2) {
    animation-delay: 0.1s;
    color: var(--gray-500);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* SECTION RESPONSIVE */
@media (max-width: 768px) {
    section {
        padding: var(--space-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* =================================================================
   ABOUT SECTION - DESIGN SEMPLICE E PULITO
   ================================================================= */
.about-section {
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--gray-900) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-timeline {
    position: relative;
    padding: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-3xl);
    padding: 0;
    background: none;
    border: none;
}

.timeline-item::before {
    content: attr(data-year);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-white);
    background: none;
    padding: 0;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-marker {
    display: none;
}

.timeline-content {
    margin: 0;
    padding: 0;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.timeline-content p {
    color: var(--gray-400);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

.about-visual {
    position: relative;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: minmax(250px, auto);
    gap: var(--space-md);
    height: auto;
    align-items: stretch;
}

.visual-item {
    position: relative;
    overflow: hidden;
    background: var(--gray-900);
    border-radius: var(--border-radius-md);
}

.visual-item.large {
    grid-column: span 2;
    grid-row: span 1;
}

.visual-item img,
.visual-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s var(--ease-out-cubic);
    display: block;
}

.visual-item img {
    filter: grayscale(100%) brightness(0.7);
}

.visual-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.visual-item video {
    filter: none;
}

.visual-item:hover video {
    transform: scale(1.05);
}

.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--primary-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out-cubic);
}

.visual-item:hover .visual-overlay {
    transform: translateY(0);
}

.loading-about-timeline,
.loading-about-visual {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--primary-white);
}
.loading-about-timeline .loading-spinner,
.loading-about-visual .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

.loading-about-timeline p,
.loading-about-visual p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.no-content, .error-content {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-400);
}

.no-content h3, .error-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--primary-white);
}

.no-content p, .error-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ABOUT RESPONSIVE */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .timeline-item {
        margin-bottom: var(--space-2xl);
    }

    .timeline-item::before {
        font-size: 0.8rem;
        margin-bottom: var(--space-xs);
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

    .visual-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-sm);
        height: auto;
    }

    .visual-item {
        height: 200px;
    }

    .visual-item.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        margin-bottom: var(--space-xl);
    }

    .timeline-item::before {
        font-size: 0.75rem;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .visual-grid {
        grid-template-columns: 1fr;
    }

    .visual-item {
        height: 180px;
    }

    .visual-item.large {
        height: 250px;
    }
}

/* =================================================================
   GALLERY SECTION - INSTAGRAM STYLE MODERNA
   ================================================================= */
.gallery-section {
    background: var(--gray-900);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-3xl) 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-400);
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    transition: left 0.3s var(--ease-out-cubic);
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-black);
    border-color: var(--primary-white);
}

.gallery-masonry {
    columns: 4;
    column-gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 12px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    background: var(--gray-800);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: all 0.4s var(--ease-out-cubic);
    filter: grayscale(70%) brightness(0.9) contrast(1.1);
    display: block;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.gallery-item:hover img,
.gallery-item:hover video {
    filter: grayscale(0%) brightness(1.1) contrast(1.2);
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s var(--ease-out-cubic);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s var(--ease-out-cubic);
    padding: 12px;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0) scale(1);
}

.overlay-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.overlay-content span {
    font-size: 0.7rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.loading-gallery, .loading-filters {
    column-span: all;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--primary-white);
}

.loading-gallery .loading-spinner,
.loading-filters .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

.no-gallery-items, .error-gallery {
    column-span: all;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--primary-white);
}

.no-gallery-items h3, .error-gallery h3 {
    font-family: var(--font-display);
    color: var(--primary-white);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.no-gallery-items p, .error-gallery p {
    color: var(--gray-400);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

/* GALLERY RESPONSIVE */
@media (max-width: 1400px) {
    .gallery-masonry {
        columns: 4;
        column-gap: 10px;
    }
}

@media (max-width: 1024px) {
    .gallery-masonry {
        columns: 3;
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        columns: 2;
        column-gap: 8px;
        padding: 0 var(--space-sm);
    }

    .gallery-item {
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .overlay-content h4 {
        font-size: 0.9rem;
    }

    .overlay-content span {
        font-size: 0.65rem;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        columns: 2;
        column-gap: 6px;
    }

    .gallery-item {
        margin-bottom: 6px;
        border-radius: 4px;
    }

    .overlay-content h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .overlay-content span {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    .gallery-masonry {
        columns: 1;
        column-gap: 0;
    }

    .gallery-item {
        margin-bottom: 8px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =================================================================
   EVENTS SECTION - CARD PIÙ PICCOLE (3 PER RIGA)
   ================================================================= */
.events-section {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--primary-black) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.event-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-cubic);
    position: relative;
    opacity: 1;
    transform: translateY(0);
    display: block;
    visibility: visible;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s var(--ease-out-cubic);
    z-index: 1;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s var(--ease-out-cubic);
    filter: grayscale(100%) brightness(0.7);
}

.event-card:hover .event-image img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: var(--space-md);
}

.event-date {
    background: var(--primary-white);
    color: var(--primary-black);
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    font-weight: 700;
    min-width: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease-out-cubic);
}

.event-card:hover .event-date {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.event-date .day {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.event-date .year {
    display: block;
    font-size: 0.55rem;
    opacity: 0.7;
    margin-top: 0.125rem;
}

.event-content {
    padding: var(--space-lg);
    position: relative;
    z-index: 2;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.event-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-white);
    line-height: 1.2;
    flex: 1;
}

.event-type {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-400);
    font-size: 0.8rem;
    font-weight: 500;
}

.time-icon {
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-white);
    border-radius: 50%;
    position: relative;
}

.time-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: var(--primary-white);
    border-radius: 50%;
}

.event-price {
    color: var(--primary-white);
    font-weight: 700;
    font-size: 1rem;
}

.event-description {
    color: var(--gray-400);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-btn {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-cubic);
}

.event-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    transition: left 0.3s var(--ease-out-cubic);
    z-index: -1;
}

.event-btn:hover::before {
    left: 0;
}

.event-btn:hover {
    color: var(--primary-black);
    transform: translateY(-2px);
}

.loading-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--primary-white);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-lg);
}

.loading-events p {
    font-size: 1rem;
    color: var(--gray-400);
    font-weight: 500;
}

.no-events, .error-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.no-events h3, .error-events h3 {
    font-family: var(--font-display);
    color: var(--primary-white);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.no-events p, .error-events p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.retry-btn {
    background: var(--primary-white);
    color: var(--primary-black);
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-cubic);
}

.retry-btn:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

/* EVENTS RESPONSIVE */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-md);
    }

    .event-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-image {
        height: 160px;
    }

    .event-content {
        padding: var(--space-md);
    }
}

/* =================================================================
   BOOK NOW SECTION - MODERN MINIMAL
   ================================================================= */
.book-now-section {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--primary-black) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-3xl) 0;
}

.book-now-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s var(--ease-out-cubic);
    z-index: 1;
}

.book-card:hover::before {
    left: 100%;
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.book-card-icon {
    width: 150px;
    height: 150px;
    background: transparent;
    color: var(--primary-white);
    border: 2px solid var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s var(--ease-elastic);
    position: relative;
    margin: 0 auto var(--space-lg);
}

.book-card:hover .book-card-icon {
    transform: scale(1.05);
    border-width: 3px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.book-card-content {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.book-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: var(--space-md);
}

.book-card-content p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.book-card-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.book-card-features span {
    color: var(--gray-300);
    font-size: 0.85rem;
    font-weight: 500;
}

.book-btn {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-cubic);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-btn .btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    transition: left 0.3s var(--ease-out-cubic);
    z-index: -1;
}

.book-btn:hover .btn-bg {
    left: 0;
}

.book-btn:hover {
    color: var(--primary-black);
    transform: translateY(-2px);
}

.book-info-card {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-xl);
    backdrop-filter: blur(20px);
    transition: all 0.3s var(--ease-out-cubic);
}

.book-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.info-content h4 {
    font-family: var(--font-display);
    color: var(--primary-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
}

.contact-item i {
    color: var(--primary-white);
    font-size: 1.25rem;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item span {
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-item span:first-child {
    color: var(--primary-white);
    font-weight: 600;
}

/* BOOK NOW RESPONSIVE */
@media (max-width: 1024px) {
    .book-now-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
        max-width: 100%;
        padding: 0 var(--space-md);
    }

    .book-card-icon {
        width: 120px;
        height: 120px;
    }

    .book-card {
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .book-now-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: 0;
    }

    .book-card {
        padding: var(--space-xl);
    }

    .book-card-icon {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .book-card-icon {
        width: 180px;
        height: 180px;
        border-width: 2.5px;
    }

    .book-card-content h3 {
        font-size: 1.5rem;
    }

    .book-btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.8rem;
    }
}

/* =================================================================
   FOOTER - Professional Single Section
   ================================================================= */
.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 0 30px;
    color: #ffffff;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: brightness(1);
    transition: all 0.3s var(--ease-out-cubic);
}

.footer-logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.footer-tagline {
    color: #aaaaaa;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 280px;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
}

.footer-navigation h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333333;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.footer-nav-links a:hover {
    color: #ffffff;
}

.footer-connect {
    display: flex;
    flex-direction: column;
}

.footer-connect h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333333;
}

.footer-connect-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-connect-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-connect-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.footer-connect-links a:hover {
    color: #ffffff;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cccccc;
    transition: all 0.2s ease;
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-location {
    display: flex;
    flex-direction: column;
}

.footer-location h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333333;
}

.footer-location-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-address-group h6 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-address,
.footer-phone {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 2px 0;
    font-weight: 500;
}

.footer-hours-group h6 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hours-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #cccccc;
    font-weight: 500;
}

.hours-time {
    color: #ffffff;
    font-weight: 600;
}

.hours-day.closed .hours-time {
    color: #888888;
}

.footer-payments {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}

.footer-payments h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333333;
}

.payment-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.payment-icon {
    height: 32px;
    width: auto;
    max-width: 80px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    filter: brightness(0.9);
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.payment-icon.stripe {
    background: rgba(99, 91, 255, 0.15);
    border-color: rgba(99, 91, 255, 0.3);
}

.payment-icon.visa {
    background: rgba(26, 59, 122, 0.15);
    border-color: rgba(26, 59, 122, 0.3);
}

.payment-icon.mastercard {
    background: rgba(235, 0, 27, 0.15);
    border-color: rgba(235, 0, 27, 0.3);
}
/* ===============================================================
   FOOTER ULTRA MODERNO - MOBILE FIRST DESIGN
   =============================================================== */

.footer {
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ===============================================================
   FOOTER MAIN - GRID MODERNO
   =============================================================== */

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Brand Section Migliorata */
.footer-brand {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(1) contrast(1.1);
    transition: all 0.3s ease;
}

.footer-logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

.footer-tagline {
    color: #cccccc;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===============================================================
   FOOTER CONTENT - LAYOUT MODERNO
   =============================================================== */

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-section h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h5::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    border-radius: 2px;
}

/* Navigation Links */
.footer-nav-links,
.footer-connect-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-links a,
.footer-connect-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-nav-links a::before,
.footer-connect-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #666;
    transition: all 0.3s ease;
}

.footer-nav-links a:hover,
.footer-connect-links a:hover {
    color: #ffffff;
    padding-left: 25px;
}

.footer-nav-links a:hover::before,
.footer-connect-links a:hover::before {
    color: #ffffff;
    transform: translateX(5px);
}

/* Social Links Moderni */
.footer-social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cccccc;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: left 0.3s ease;
}

.footer-social-links a:hover::before {
    left: 0;
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Location Info Moderna */
.footer-location-content {
    display: grid;
    gap: 25px;
}

.footer-address-group,
.footer-hours-group {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #333;
}

.footer-address-group h6,
.footer-hours-group h6 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-address,
.footer-phone {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.6;
    margin: 6px 0;
    font-weight: 500;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #cccccc;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hours-time {
    color: #ffffff;
    font-weight: 700;
}

.hours-day.closed .hours-time {
    color: #888888;
}

/* ===============================================================
   PAYMENT ICONS - FORZATI ORIZZONTALI
   =============================================================== */

.payment-icons {
    display: flex !important;
    flex-direction: row !important; /* 🔥 FORZATO ORIZZONTALE */
    gap: 15px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* 🔥 MAI A CAPO */
    width: 100% !important;
}

.payment-icon {
    height: 40px !important;
    width: auto !important;
    max-width: 80px !important;
    min-width: 60px !important; /* 🔥 LARGHEZZA MINIMA */
    padding: 8px 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    filter: brightness(0.9) grayscale(20%) !important;
    flex-shrink: 0 !important; /* 🔥 NON SI COMPRIME MAI */
    display: inline-block !important;
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    filter: brightness(1.1) grayscale(0%) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* 🔥 RESPONSIVE - SEMPRE ORIZZONTALE */
@media (max-width: 768px) {
    .payment-icons {
        gap: 12px !important;
    }

    .payment-icon {
        height: 36px !important;
        max-width: 70px !important;
        min-width: 50px !important;
        padding: 6px 12px !important;
    }
}

@media (max-width: 480px) {
    .payment-icons {
        gap: 10px !important;
    }

    .payment-icon {
        height: 32px !important;
        max-width: 60px !important;
        min-width: 45px !important;
        padding: 5px 10px !important;
    }
}

@media (max-width: 360px) {
    .payment-icons {
        gap: 8px !important;
    }

    .payment-icon {
        height: 30px !important;
        max-width: 55px !important;
        min-width: 40px !important;
        padding: 4px 8px !important;
    }
}

/* 🔥 OVERRIDE QUALSIASI ALTRO STILE */
.footer-payments .payment-icons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
}

.footer-payments .payment-icons .payment-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    float: none !important;
    clear: none !important;
}

/* ===============================================================
   FOOTER BOTTOM - COMPLETAMENTE RIDISEGNATO
   =============================================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    margin-top: 40px;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-copyright p {
    color: #888888;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.footer-credits-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.credits-text {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

.credits-logo-inline {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.credits-logo-inline:hover {
    opacity: 1;
    transform: scale(1.1);
}

.credits-brand-inline {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
}

.footer-legal-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.footer-legal-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===============================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =============================================================== */

/* Tablet */
@media (min-width: 768px) {
    .footer-main {
        padding: 80px 30px 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        text-align: left;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 40px;
    }

    .footer-social-links {
        justify-content: flex-start;
    }

    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-section {
        padding: 30px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .footer-main {
        grid-template-columns: 2fr 3fr;
        gap: 60px;
        align-items: start;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 50px;
    }
}

/* Mobile Ottimizzazioni */
@media (max-width: 480px) {
    .footer-main {
        padding: 40px 15px 30px;
    }

    .footer-section {
        padding: 20px;
        margin-bottom: 15px;
    }

    .footer-section h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-logo-image {
        height: 50px;
        max-width: 150px;
    }

    .footer-tagline {
        font-size: 14px;
    }

    .footer-bottom {
        padding: 20px 15px;
    }

    .footer-legal-links {
        gap: 15px;
    }

    .footer-legal-links a {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 360px) {
    .footer-main {
        padding: 30px 12px 20px;
    }

    .footer-section {
        padding: 15px;
    }

    .footer-logo-image {
        height: 40px;
        max-width: 120px;
    }

    .footer-tagline {
        font-size: 13px;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }

    .credits-text,
    .credits-brand-inline {
        font-size: 11px;
    }

    .credits-logo-inline {
        height: 20px;
    }
}

/* ================================================================
   FOOTER ULTRA - MODERN MINIMAL DESIGN
   ================================================================ */
.footer-ultra {
    background: #000;
    position: relative;
    overflow: hidden;
}

.footer-glow-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
}

.footer-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px 50px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
}

/* Brand Section */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.03);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer-ultra .footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.footer-social-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
}

.social-icon-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-col h5 {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 8px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-col a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Contact Items */
.footer-contact-col {
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-item span {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.5;
}

/* Divider */
.footer-divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 80%, transparent 100%);
}

/* Bottom Bar */
.footer-bottom-bar {
    background: rgba(255,255,255,0.02);
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin: 0;
}

/* Payments */
.footer-payments-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-payments-row img {
    height: 20px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(100%) brightness(2);
    transition: all 0.3s ease;
}

.footer-payments-row img:hover {
    opacity: 0.8;
}

/* Credits */
.footer-credits-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}

.footer-credits-row img {
    height: 18px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-credits-row img:hover {
    opacity: 0.8;
}

.footer-credits-row .credits-name {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* Legal */
.footer-legal-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-legal-row a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-legal-row a:hover {
    color: #fff;
}

.footer-legal-row .legal-sep {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}

/* ================================================================
   FOOTER ULTRA - RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .footer-main-content {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 50px 30px 40px;
    }

    .footer-brand-section {
        align-items: center;
        text-align: center;
    }

    .footer-social-row {
        justify-content: center;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer-main-content {
        padding: 40px 25px 35px;
        gap: 40px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-contact-col {
        grid-column: span 2;
    }

    .footer-contact-col .footer-contact-item {
        justify-content: center;
        text-align: center;
    }

    .footer-contact-item svg {
        display: none;
    }

    .footer-links-col {
        text-align: center;
    }

    .footer-links-col h5 {
        text-align: center;
    }

    .footer-links-col a:hover {
        transform: none;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px 25px;
    }

    .footer-payments-row {
        order: 1;
    }

    .footer-credits-row {
        order: 2;
    }

    .footer-legal-row {
        order: 3;
    }

    .footer-copyright {
        order: 4;
    }
}

@media (max-width: 480px) {
    .footer-main-content {
        padding: 35px 20px 30px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-contact-col {
        grid-column: span 1;
    }

    .footer-logo-img {
        height: 50px;
    }

    .footer-payments-row img {
        height: 16px;
    }

    .footer-payments-row {
        gap: 15px;
    }
}

/* ================================================================
   MODAL
   ================================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-cubic);
}

.modal.active {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-3xl);
    backdrop-filter: blur(20px);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.3s var(--ease-out-cubic);
    padding: var(--space-xs);
}

.modal-close:hover {
    color: var(--primary-white);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.modal-header h3 {
    font-family: var(--font-display);
    color: var(--primary-white);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.modal-header p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-white);
    font-size: 1rem;
    transition: all 0.3s var(--ease-out-cubic);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-white);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-500);
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    padding: var(--space-md);
    text-align: center;
    font-size: 0.875rem;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #51cf66;
    padding: var(--space-md);
    text-align: center;
    font-size: 0.875rem;
}

/* ================================================================
   RESPONSIVE - MOBILE
   ================================================================ */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        padding: var(--space-xl);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-close {
        top: var(--space-md);
        right: var(--space-md);
    }

    .form-group input {
        padding: var(--space-lg);
        font-size: 1rem;
    }

    .login-form {
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        padding: var(--space-lg);
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .modal-header {
        margin-bottom: var(--space-xl);
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }
}

/* =================================================================
   LIGHTBOX
   ================================================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    filter: grayscale(0%);
}

.lightbox-content h3 {
    color: var(--primary-white);
    margin-top: 20px;
    font-size: 24px;
    font-family: var(--font-display);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--primary-white);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 10px;
}

.lightbox-close:hover {
    color: var(--gray-400);
}

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =================================================================
   SCROLL ANIMATIONS
   ================================================================= */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.6s;
    transition-timing-function: var(--ease-out-cubic);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--gray-900);
    color: var(--primary-white);
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.notification.info {
    border-left: 4px solid var(--primary-white);
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

/* =================================================================
   CUSTOM SCROLLBAR
   ================================================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-white);
}

/* =================================================================
   SELECTION
   ================================================================= */
::selection {
    background: var(--primary-white);
    color: var(--primary-black);
}

::-moz-selection {
    background: var(--primary-white);
    color: var(--primary-black);
}

/* =================================================================
   FOCUS STATES
   ================================================================= */
*:focus {
    outline: 2px solid var(--primary-white);
    outline-offset: 2px;
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =================================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================================= */
.gallery-item,
.event-card,
.book-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-item img,
.gallery-item video,
.event-image img {
    will-change: transform, filter;
    backface-visibility: hidden;
}

/* =================================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================================= */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-white) !important;
    outline-offset: 2px !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-white);
    color: var(--primary-black);
    padding: 8px;
    text-decoration: none;
    z-index: 10001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    .navbar,
    .hero-floating,
    .cursor,
    .cursor-follower,
    .modal,
    .lightbox,
    .notification {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-section {
        height: auto !important;
        background: none !important;
    }
}

/* =================================================================
   HIGH CONTRAST MODE
   ================================================================= */
@media (prefers-contrast: high) {
    :root {
        --primary-black: #000000;
        --primary-white: #ffffff;
        --gray-400: #666666;
        --gray-500: #555555;
    }

    .gallery-item img {
        filter: none !important;
    }

    .event-image img {
        filter: none !important;
    }
}

/* =================================================================
   DARK MODE SUPPORT (già implementato di default)
   ================================================================= */
@media (prefers-color-scheme: dark) {
    /* Il sito è già in dark mode di default */
}

/* =================================================================
   FINAL RESPONSIVE BREAKPOINTS
   ================================================================= */

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 8rem;
    }

    .section-title {
        font-size: 4rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero-logo-image {
        max-width: 280px;
        width: 75vw;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .nav-menu #adminBtnMobile {
        width: 140px;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }

    .logo-image {
        height: 20px;
        max-width: 60px;
    }
}

/* =================================================================
   END OF CSS - JUX TAP ULTRA MODERN RESPONSIVE
   ================================================================= */

/* =================================================================
   MOBILE MENU - Tutti gli stili sono nel CSS inline in index.html
   per evitare conflitti di specificità
   ================================================================= */
/* ===== HEADER CAROUSEL STYLES ===== */
.header-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-white);
}

/* Controlli carosello */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

/* Indicatori carosello */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    border-color: white;
}

.carousel-indicator:hover {
    border-color: white;
    transform: scale(1.2);
}

/* Header con immagine statica */
.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Titolo personalizzato */
.custom-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--primary-white);
    text-align: center;
    letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-controls {
        padding: 0 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .slide-title {
        bottom: 20px;
        left: 20px;
        font-size: 1rem;
        padding: 8px 16px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        display: none; /* Nascondi controlli su mobile molto piccolo */
    }

    .slide-title {
        bottom: 15px;
        left: 15px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}
/* ===============================================
   COOKIE & PRIVACY POPUP - JUX TAP STYLE
   =============================================== */

.cookie-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--gray-900);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-cubic);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-popup-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cookie-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.cookie-popup-header h3 {
    font-family: var(--font-display);
    color: var(--primary-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cookie-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: var(--space-xs);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    color: var(--primary-white);
    border-color: var(--primary-white);
    background: rgba(255, 255, 255, 0.1);
}

.cookie-popup-body {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
}

.cookie-description {
    color: var(--gray-300);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    text-align: center;
    font-weight: 500;
}

.cookie-details {
    display: grid;
    gap: var(--space-lg);
}

.cookie-section h4 {
    color: var(--primary-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.cookie-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-section li {
    color: var(--gray-400);
    font-size: 0.875rem;
    padding: 4px 0;
    padding-left: var(--space-md);
    position: relative;
}

.cookie-section li::before {
    content: '•';
    color: var(--primary-white);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cookie-popup-actions {
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cookie-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border: 2px solid var(--primary-white);
    background: transparent;
    color: var(--primary-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-cubic);
    width: 100%;
}

.cookie-btn .btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    transition: left 0.4s var(--ease-out-cubic);
    z-index: -1;
}

.cookie-btn:hover .btn-bg {
    left: 0;
}

.cookie-btn:hover {
    color: var(--primary-black);
    transform: translateY(-2px);
}

.cookie-accept {
    background: var(--primary-white);
    color: var(--primary-black);
}

.cookie-accept:hover {
    background: var(--gray-200);
}

.cookie-customize {
    border-color: var(--gray-400);
    color: var(--gray-400);
}

.cookie-customize:hover {
    border-color: var(--primary-white);
    color: var(--primary-white);
}

.cookie-link {
    text-align: center;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--space-sm);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.cookie-link:hover {
    color: var(--primary-white);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-popup {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-popup-header,
    .cookie-popup-body,
    .cookie-popup-actions {
        padding: var(--space-md);
    }

    .cookie-popup-header h3 {
        font-size: 1.25rem;
    }

    .cookie-details {
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .cookie-popup {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: scale(0.95);
        border-radius: 0;
    }

    .cookie-popup.active {
        transform: scale(1);
    }
}

/* ===============================================
   COOKIE BANNER PICCOLO - STILE TWIGA VERSILIA
   =============================================== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-banner.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    padding: 20px;
    position: relative;
    color: #333;
}

.cookie-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.cookie-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.cookie-text {
    margin-bottom: 16px;
    padding-right: 20px;
}

.cookie-text p {
    font-size: 13px;
    line-height: 1.5;
    color: #4a4a4a;
    margin: 0;
}

.cookie-text a {
    color: #007AFF;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-btn {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    text-align: center;
}

.cookie-save {
    background: #2c2c2c;
    color: white;
}

.cookie-save:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-learn {
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}

.cookie-learn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: #ccc;
}

/* Responsive */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .cookie-content {
        padding: 16px;
    }

    .cookie-text {
        padding-right: 16px;
    }
}