@font-face {
    font-family: 'Optima Medium';
    src: url('font/Optima Medium.ttf') format('truetype');
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 2147483647 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader-logo {
    width: 200px;
    height: auto;
    animation: pulse-preloader 1.5s infinite ease-in-out;
}

@keyframes pulse-preloader {
    0% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 0 rgba(203, 161, 53, 0)); }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px rgba(203, 161, 53, 0.4)); }
    100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 0 rgba(203, 161, 53, 0)); }
}

.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* CSS Variables per i colori rustici/tradizionali */
:root {
    --bg-color: #f6efe3; /* Beige antico per sfondo */
    --text-color: #3e2723; /* Marrone scuro per testo */
    --accent-color: #8d6e63; /* Marrone medio */
    --accent-gold: #cba135; /* Oro antico */
    --header-bg: rgba(62, 39, 35, 0.95); /* Sfondo navbar marrone scuro semitrasparente */
    --white: #ffffff;
    --font-heading: 'Optima Medium', sans-serif;
    --font-body: 'Optima Medium', sans-serif;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar Personalizzata */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background-color: var(--text-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-gold);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

@media (max-width: 1100px) {
    html {
        scroll-padding-top: 0px;
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Tipografia */
.accent-color { color: var(--accent-color); }
.accent-gold { color: var(--accent-gold); }

/* Layout Globale */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.max-width-p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.max-width-p-wide {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Header / Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: transparent;
    color: var(--white);
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

#navbar.scrolled {
    background-color: var(--header-bg);
    padding: 10px 5%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#navbar.navbar-hidden {
    transform: translateY(-100%);
}

.logo-text {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-logo-img {
    max-height: 50px;
    width: auto;
    max-width: 65vw;
    object-fit: contain;
    display: block;
}

.desktop-nav a {
    margin-left: 30px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.desktop-nav a:hover {
    color: var(--accent-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--header-bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-nav a {
    font-size: 2rem;
    margin: 15px 0;
    color: var(--white);
    font-family: var(--font-heading);
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

/* Canvas Particelle Interattive */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Non blocca i click sul logo o menu */
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-main-image {
    width: 100%;
    max-width: 600px;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

/* Removed Curtain Wrapper */

/* Banner Section */
.banner-section {
    background-color: var(--text-color);
    color: var(--white);
    padding: 15px 0;
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
}

.banner-section .container {
    padding: 0;
}

.banner-section h2 {
    font-size: 30px;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin: 0;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.alternate-bg {
    background-color: #ebdccc;
}

/* Linee di separazione in oro per tutte le sezioni principali (uguali al footer) */
#tradizione, #produzione, #sostenibilita {
    border-bottom: 3px solid var(--accent-gold);
}

/* Split Parallax Section (Tradizione e Produzione) */
.split-parallax-section {
    display: flex;
    height: calc(100vh - 70px);
    background-color: var(--text-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

#produzione {
    height: calc(100vh - 70px);
}

.tradizione-content {
    margin-top: -10vh;
}

.split-parallax-image {
    flex: 0 0 50%;
    width: 50%;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.split-parallax-content {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(15px, 5vh, 60px) 5%;
    text-align: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

#famiglia {
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 10px 0;
    overflow: hidden;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.image-box, .text-box {
    flex: 1;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(62, 39, 35, 0.2);
    border: 4px solid var(--white);
}

.text-box p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Nuova Sezione Produzione Overlap */
.produzione-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
    overflow-x: hidden; /* Nasconde solo lo strabordamento orizzontale */
}

.prod-overlap-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
}

.prod-image-wrapper {
    margin-left: calc(-50vw + 50%);
    width: calc(55% + 50vw - 50%);
    position: relative;
    z-index: 1;
}

.prod-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 0 8px 8px 0; /* Arrotonda solo a destra, piatto a sinistra sul bordo schermo */
    box-shadow: 5px 10px 30px rgba(0,0,0,0.3);
}

.prod-text-wrapper {
    width: 110%;
    max-width: 650px;
    background-color: var(--bg-color);
    padding: clamp(20px, 5vh, 60px);
    position: relative;
    margin-left: -15%; /* Sovrapposizione sopra la foto della goccia */
    z-index: 2;
    box-shadow: -15px 15px 40px rgba(62, 39, 35, 0.15);
    border-radius: 8px;
    border-top: 5px solid var(--accent-gold);
}

.prod-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vh, 15px);
    margin-top: clamp(15px, 4vh, 40px);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--white);
    padding: clamp(10px, 2vh, 15px) 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    cursor: pointer;
    transition: translate 0.3s, background-color 0.3s, box-shadow 0.3s;
    animation: pulse-step-cascade 5s infinite;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.08);
}

.step-item:nth-child(1) { animation-delay: 0s; }
.step-item:nth-child(2) { animation-delay: 0.3s; }
.step-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse-step-cascade {
    0%, 10%, 100% { scale: 1; }
    5% { scale: 1.02; }
}

.step-item:hover {
    translate: 0 -5px;
    background-color: rgba(203, 161, 53, 0.15); /* Tint dorato stile bottone WhatsApp */
    border-left-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(203, 161, 53, 0.2);
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(203, 161, 53, 0.4);
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-color);
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-hint {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-style: italic;
    margin-top: 3px;
    opacity: 0.8;
}

.step-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.step-item:hover .step-arrow {
    transform: translateX(5px);
}

/* Parallax Section & Dynamic Overlay */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 0;
    color: var(--white);
}

.dynamic-overlay {
    position: relative;
}

.dynamic-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Scurisce lo sfondo per far leggere il testo */
    opacity: 0.05; /* Inizia quasi totalmente trasparente (5%) */
    transition: opacity 1.5s ease-out; /* Transizione morbida di pochi secondi */
    z-index: 0;
    pointer-events: none;
}

.dynamic-overlay.overlay-active::before {
    opacity: 0.6; /* Arriva al 30% circa di nero (0.5 * 0.6) per lasciar vedere meglio il vigneto */
}

.dynamic-overlay .container {
    position: relative;
    z-index: 1; /* Il testo sta sopra l'overlay */
}

.parallax-title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.glass-panel {
    background: rgba(0, 0, 0, 0.4); /* Box più opaco e scuro per risaltare il testo bianco */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 10px;
    max-width: 1050px;
    margin: 0 auto;
}

.glass-panel p {
    font-size: 1.2rem;
}

/* Elegante Citazione & Flourish Divider */
.flourish-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 25px 0;
}
.flourish-divider::before, .flourish-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background-color: var(--accent-gold);
    margin: 0 15px;
    opacity: 0.6;
}
.flourish-divider span {
    color: var(--accent-gold);
    font-size: 1.2rem;
    line-height: 1;
}

.elegant-quote {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--accent-gold);
    margin: 0 auto 30px auto;
    max-width: 800px;
    line-height: 1.4;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: #d7ccc8;
    padding: 60px 0 20px 0;
    border-top: 3px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer h4 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-brand p {
    font-style: italic;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    margin-bottom: 10px;
}

.instagram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #d7ccc8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.instagram-btn:hover {
    color: var(--accent-gold);
}
.ig-icon {
    width: 25px;
    height: 25px;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-legal a:hover {
    opacity: 1;
}

/* Animazioni (Fade in up) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-up-late {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

#sostenibilita .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

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

/* Media Queries per Responsività */
@media (max-width: 1100px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 1024px) {
    .prod-text-wrapper {
        padding: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .split-parallax-section, #produzione, #famiglia { height: auto; min-height: 100vh; overflow: visible; }
    
    .split-parallax-section {
        flex-direction: column;
        justify-content: center;
    }
    .split-parallax-image {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 0;
    }
    .split-parallax-section::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }
    .split-parallax-content {
        flex: 1;
        width: 100%;
        min-height: 100%;
        padding: 60px 5%; /* Padding generoso su mobile per centratura naturale */
        align-items: center;
    }
    
    .tradizione-content {
        margin-top: 0;
    }
    
    .prod-text-wrapper {
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title, .parallax-title {
        font-size: 2rem;
    }
    
    .banner-section h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }
}

/* Family Slider */
.family-slider-container { width: 100%; margin-top: 5vh; overflow: hidden; cursor: grab; padding-bottom: 20px;}
.family-slider-container:active { cursor: grabbing; }
.family-slider { position: relative; display: flex; gap: 30px; padding: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.family-slider::-webkit-scrollbar { display: none; }
.family-slider img { flex: 0 0 calc(32% - 30px); max-width: 550px; min-width: 250px; height: 38vh; max-height: 380px; min-height: 250px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); pointer-events: auto; user-select: none; -webkit-user-drag: none; cursor: pointer; transition: transform 0.3s; }
.family-slider img:hover { transform: scale(1.02); }

@keyframes nudge-images {
    0%, 100% { transform: translateX(0) scale(1); }
    40% { transform: translateX(-40px) scale(1); }
    70% { transform: translateX(15px) scale(1); }
}

.family-slider-container.visible .family-slider img {
    animation: nudge-images 1s ease-in-out 0.8s;
}

/* Dots Indicator */
.family-slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 5px; padding-bottom: 30px; }
.dot { width: 10px; height: 10px; background-color: rgba(62, 39, 35, 0.2); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active { background-color: var(--accent-gold); transform: scale(1.4); }

@media (max-width: 900px) { 
    .family-slider { overflow-x: auto; }
    .family-slider img { flex: 0 0 calc(55% - 30px); max-height: 350px; } 
}
@media (max-width: 600px) { 
    .family-slider img { flex: 0 0 calc(85% - 30px); max-height: 300px; } 
}

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(50, 50, 50, 0.85); overflow-y: auto;}
.lightbox-container { margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; max-width: 90%; min-height: 100vh; animation: zoom 0.3s; padding: 40px 0; box-sizing: border-box; }
.lightbox-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lightbox-item img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.lightbox-caption { margin-top: 15px; font-size: 1.2rem; font-weight: 600; color: var(--accent-gold); text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.lightbox-close { position: absolute; top: 30px; right: 50px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 10000;}
.lightbox-close:hover { color: var(--accent-gold); }

/* Frecce Navigazione Lightbox */
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); font-size: 50px; color: white; cursor: pointer; user-select: none; z-index: 10001; padding: 20px; transition: color 0.3s; display: none; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--accent-gold); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 768px) {
    .lightbox-prev { left: 0; padding: 10px; font-size: 35px; }
    .lightbox-next { right: 0; padding: 10px; font-size: 35px; }
}

@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--header-bg); color: var(--white); text-align: center; padding: 15px 20px; z-index: 9000; display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 2px solid var(--accent-gold); box-shadow: 0 -4px 10px rgba(0,0,0,0.3); }
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--accent-gold); text-decoration: underline; }
.cookie-banner button { background-color: var(--accent-gold); color: var(--text-color); border: none; padding: 8px 20px; cursor: pointer; font-family: var(--font-heading); font-weight: bold; border-radius: 4px; transition: 0.3s; }
.cookie-banner button:hover { background-color: #dcb347; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; background-color: #25d366; color: white; border-radius: 50px; display: flex; align-items: center; padding: 10px 20px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 8000; text-decoration: none; transition: all 0.3s ease; animation: pulse-whatsapp 2.5s infinite; }
.whatsapp-float:hover { background-color: #128c7e; animation: none; transform: translateY(-3px) scale(1.05); color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.4); }

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-text { display: flex; flex-direction: column; margin-left: 15px; text-align: left; }
.wa-text span { font-size: 0.8rem; line-height: 1.2; }
.wa-text strong { font-size: 1rem; line-height: 1.2; }
.wa-icon { width: 30px; height: 30px; }

@media (max-width: 768px) {
    .whatsapp-float { bottom: 80px; left: 20px; padding: 12px; }
    .wa-text { display: none; }
    .wa-icon { margin: 0; width: 35px; height: 35px; }
}

/* Attesa sicura per Iubenda: nasconde tutto finché il preloader non finisce */
body:not(.page-loaded) div[id^="iubenda-cs"], 
body:not(.page-loaded) iframe[name*="iubenda"] {
    opacity: 0 !important;
    pointer-events: none !important;
}

div[id^="iubenda-cs"] {
    transition: opacity 0.8s ease;
}

/* Custom Cursor (solo per dispositivi con mouse) */
@media (pointer: fine) {
    body, a, button, input, textarea, .lightbox-prev, .lightbox-next, .lightbox-close, .prod-step, .family-slider img {
        cursor: none !important;
    }

    .custom-cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 8px;
        height: 8px;
        background-color: var(--accent-gold);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 2147483647; /* Massimo z-index possibile */
        transition: width 0.3s, height 0.3s, background-color 0.3s;
    }

    .custom-cursor-ring {
        position: fixed;
        top: 0; left: 0;
        width: 40px;
        height: 40px;
        border: 1px solid var(--accent-gold);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 2147483646; /* Appena sotto il puntino */
        transition: width 0.3s ease-out, height 0.3s ease-out, background-color 0.3s, border-color 0.3s;
    }

    /* Hover state per link e bottoni */
    .custom-cursor-dot.hovered {
        background-color: transparent;
    }

    .custom-cursor-ring.hovered {
        width: 60px;
        height: 60px;
        background-color: rgba(203, 161, 53, 0.1); /* Oro trasparente */
        border-color: rgba(203, 161, 53, 0.8);
    }
}
