/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #050505; /* Nero profondo */
    --surface-color: #0f0f0f;
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --accent: #d4a373; /* Tocco dorato/sabbia molto tenue e professionale */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    cursor: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L10 21L13 13L21 10L3 3Z' fill='%23000000' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto !important;
}

a, button, .hover-target, input, textarea, .lightbox-thumb {
    cursor: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L10 21L13 13L21 10L3 3Z' fill='%23000000' stroke='%23c4a661' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), pointer !important;
}

body.dark-theme, body.light-theme {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

body.light-theme {
    --bg-color: #ffffff;
    --surface-color: #fbfbfb;
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-alpha: rgba(0, 0, 0, 0.2);
    --border-alpha-hover: rgba(0, 0, 0, 0.05);
}

body.dark-theme {
    --border-alpha: rgba(255, 255, 255, 0.4);
    --border-alpha-hover: rgba(255, 255, 255, 0.05);
}

/* Animazione luci ambientali per tema chiaro (meno asettico) */
body.light-theme::after {
    content: '';
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(212, 163, 115, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(180, 150, 120, 0.06) 0%, transparent 50%);
    z-index: -2;
    animation: ambientLight 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ambientLight {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 4%) scale(1.05); }
}

/* Custom Cursor Rimosso in favore di SVG nativo CSS */

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh; /* Più grande per il parallasse */
    background-image: url('./assets/onda.jpg'); /* Texture di default fissa */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.04; /* Sottilissimo, quasi impercettibile */
    filter: grayscale(100%);
    transition: background-image 0.8s ease-in-out;
}

/* Gradient overlay globale per creare vignettatura scura */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-logo {
    height: 180px; /* Molto più grande per compensare lo spazio bianco dell'immagine */
    margin: -70px 0; /* Taglia lo spazio bianco sopra e sotto */
    width: auto;
    display: block;
    transform: scale(1.2);
    transform-origin: left center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--bg-color);
        transition: 0.5s;
    }
    .nav-links.active {
        left: 0;
    }
}

/* Typography & Utilities */
.section-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    position: relative;
}

.section-number {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.section-number::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--text-secondary);
    margin-right: 15px;
    vertical-align: middle;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    justify-content: center;
    text-align: center;
}

.hero .subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero .title {
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 40px;
}

.hero .italic {
    font-style: italic;
    color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Gallery Showcase */
.gallery-showcase {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    gap: 3vw;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.gallery-showcase::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 calc(33.333% - 2vw);
    min-width: 280px;
    scroll-snap-align: start;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1; /* Cambiato a quadrato per non tagliare le tavole */
    cursor: none;
    transition: box-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s ease;
}

.img-wrapper:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); /* Ombra morbida sul riquadro */
}

.img-wrapper:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.2);
}

.img-wrapper:hover img.dynamic-light-effect {
    transform: scale(1.05);
}

/* Effetto Luce e Ombra Dinamica per Cuore Vortex Cutout */
.dynamic-light-effect {
    object-fit: contain !important;
    animation: moving-light 8s infinite alternate ease-in-out;
}

@keyframes moving-light {
    0% {
        filter: drop-shadow(15px 15px 25px rgba(0,0,0,0.3)) brightness(1);
    }
    50% {
        filter: drop-shadow(-15px 20px 30px rgba(0,0,0,0.2)) brightness(1.05);
    }
    100% {
        filter: drop-shadow(-10px -15px 20px rgba(0,0,0,0.4)) brightness(0.95);
    }
}

/* Vortex Immersion Grid */
.vortex-section {
    padding-top: 50px;
    padding-bottom: 150px;
}

.section-subtitle {
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
}

.vortex-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 30px;
    align-items: center;
}

.vortex-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1s ease;
}

.vortex-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s ease;
}

.vortex-item:hover {
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    z-index: 10;
    transform: translateY(-10px);
}

.vortex-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.2);
}

/* Asymmetric Grid Classes */
.vortex-item.large {
    grid-column: 1 / 9;
    aspect-ratio: 16/9;
}

.vortex-item.small {
    grid-column: 10 / 13;
    aspect-ratio: 1/1;
    margin-top: -50px;
}

.vortex-item.medium {
    grid-column: 2 / 7;
    aspect-ratio: 4/3;
    margin-top: 50px;
}

.vortex-item.tall {
    grid-column: 8 / 12;
    aspect-ratio: 3/4;
    margin-top: -150px;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

.item-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.prose .lead {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 400;
}

.prose p:not(.lead) {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.about-img-container {
    position: relative;
    padding: 40px;
}

.about-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-alpha);
    transform: translate(-20px, 20px);
}

.about-img {
    width: 100%;
    height: auto;
    filter: grayscale(50%);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Button */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    cursor: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover {
    color: var(--bg-color);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.mail-link {
    display: inline-block;
    margin-top: 30px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
}

.premium-form .input-group {
    position: relative;
    margin-bottom: 40px;
}

.premium-form input,
.premium-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-secondary);
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    cursor: none;
}

.premium-form input:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.premium-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s ease all;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.premium-form input:focus ~ label,
.premium-form input:not(:placeholder-shown) ~ label,
.premium-form textarea:focus ~ label,
.premium-form textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.7rem;
    color: var(--accent);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo-container {
    margin-bottom: 25px;
}

.footer-logo {
    max-height: 90px;
    width: auto;
    opacity: 0.9;
}

body.dark-theme .footer-logo {
    filter: invert(1);
}

footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Animazioni Base */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 30px;
}

@media screen and (max-width: 768px) {
    .lang-switcher {
        margin-right: 20px;
    }
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    padding: 2px 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.lang-separator {
    color: var(--text-secondary);
    font-size: 0.8rem;
    user-select: none;
    opacity: 0.5;
}

/* Simulator Section */
.simulator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.simulator-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.control-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Stili Slider Luce */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-group {
    display: flex;
    gap: 15px;
}

.sim-btn {
    background: transparent;
    border: 1px solid var(--border-alpha);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sim-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.sim-btn.active {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.simulator-display {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    aspect-ratio: 16/9;
    background-color: #0a0a0a;
}

#three-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero .title { font-size: 4rem; }
    .gallery-showcase { 
        display: flex; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        gap: 20px; 
        padding: 20px; 
        margin: 0 -20px; /* Break out of container to bleed to edges */
    }
    .gallery-showcase > * { 
        flex: 0 0 80vw; /* Strict 80% viewport width so it never overflows */
        max-width: 80vw;
        min-width: 0;
        scroll-snap-align: center; 
    }
    .about-container, .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .cursor-dot, .cursor-outline { display: none; } /* Disabilita su mobile */
    html { cursor: auto; }
    
    /* Mobile Menu */
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        gap: 40px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li a {
        font-size: 2rem;
    }
    
    /* Ridimensionamento logo su mobile */
    .nav-logo { height: 120px; margin: -40px 0; }
    .navbar { padding: 10px 5%; }
}

/* Contact info fixes */
.mail-link {
    font-size: 1.4rem;
    font-weight: 400;
    word-break: break-all;
    display: block;
    margin-top: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* Social links */
.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: scale(1.1);
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: flex-start;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    padding: 0;
}

.color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.color-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
    .color-btn {
        border: 2px solid rgba(255,255,255,0.2);
    }
    .color-btn.active {
        border-color: white;
        box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
    }
}

/* Art Scrollable Buttons */
.art-scrollable {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 10px;
    padding-bottom: 5px;
    flex-wrap: nowrap !important;
}
.art-scrollable::-webkit-scrollbar {
    display: none;
}
.art-scrollable .sim-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-arrow-small {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-arrow-small:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Custom Color Picker */
.custom-color-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.custom-color-wrapper:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.custom-color-wrapper input[type="color"] {
    opacity: 0;
    width: 200%;
    height: 200%;
    position: absolute;
    top: -50%;
    left: -50%;
    cursor: pointer;
}

/* Slider Container */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.light-icon {
    font-size: 1rem;
    filter: grayscale(100%);
    opacity: 0.6;
    user-select: none;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.gallery-nav.bottom-nav {
    justify-content: center;
    margin-top: 30px;
}

.nav-arrow {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: scale(1.1);
}

.scroll-hint {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .gallery-nav {
        margin-top: 10px;
    }
    
    /* Disposizione Simulatore su Mobile */
    .simulator-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .control-group {
        width: 100%;
        min-width: 100%;
    }
    
    /* Riduzione spaziature di base */
    .section-full {
        padding: 60px 0;
        min-height: auto;
    }
}

/* Modifiche per Smartphone Piccoli */
@media (max-width: 480px) {
    .hero .title {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 10px 20px;
    }
    
    /* Regolazioni Testi About */
    .prose p {
        font-size: 0.95rem;
    }
    
    /* Adatta bottoni scelta arte */
    .art-scrollable .sim-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    /* Regolazione pulsante lingua per non sovrapporsi all'hamburger */
    .lang-switcher {
        margin-right: 15px;
        gap: 4px;
    }
    .lang-btn {
        font-size: 0.75rem;
    }
}

/* --- PULSANTE DETTAGLI IMMERSIVO --- */
.btn-details {
    margin-top: 20px;
    padding: 8px 24px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 2px;
}

.btn-details:hover {
    background: rgba(120, 120, 120, 0.1);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(120, 120, 120, 0.2);
    transform: translateY(-2px);
}

/* --- LIGHTBOX MODALE --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #222;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    justify-content: center;
}

.lightbox-gallery {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    width: 100%;
}

.lightbox-img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.6));
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 2%;
    box-sizing: border-box;
    pointer-events: none;
}

.lightbox-btn {
    pointer-events: auto;
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.lightbox-caption {
    margin-top: 30px;
    text-align: center;
    color: #222;
}

.lightbox-caption h3 {
    font-family: 'Cinzel', serif;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.lightbox-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lightbox-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s;
    border: 1px solid transparent;
}

.lightbox-thumb:hover, .lightbox-thumb.active {
    opacity: 1;
    border-color: var(--accent-color);
}
