/*
 * Custom CSS
 * Elementor Resets & Utilities
 */

html {
    scroll-behavior: smooth;
}

/* BLINDA I FONT CONTRO ELEMENTOR */
:root {
    --e-global-typography-primary-font-family: 'Cormorant Garamond', Georgia, serif !important;
    /* --e-global-typography-secondary-font-family: 'Geist', sans-serif !important;
    --e-global-typography-text-font-family: 'Geist', sans-serif !important;
    --e-global-typography-accent-font-family: 'Geist', sans-serif !important; */
}

body, 
p, 
span, 
a, 
div,
.elementor-widget-text-editor, 
.elementor-text-editor {
    font-family: 'Geist', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, 
.font-serif,
.elementor-widget-heading .elementor-heading-title.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* Polylang Header Flags Styling */
.polylang-flags li { display: inline-block; margin: 0 4px; }
.polylang-flags li a { display: block; opacity: 0.8; transition: opacity 0.3s ease; }
.polylang-flags li a:hover { opacity: 1; }
.polylang-flags li img { width: 24px; height: auto; border-radius: 2px; }

/* Polylang Footer Text Switcher */
.polylang-text-switcher li a {
    font-size: 0.75rem; padding: 4px 8px; border-radius: 4px;
    color: rgba(255, 255, 255, 0.3); transition: color 0.3s ease, background-color 0.3s ease; text-transform: uppercase;
}
.polylang-text-switcher li.current-lang a {
    background-color: rgba(197, 160, 89, 0.2); color: #C5A059; font-weight: 500;
}
.polylang-text-switcher li:not(.current-lang) a:hover { color: rgba(255, 255, 255, 0.6); }

/* Navbar Scrolled State */
.nav-scrolled {
    background-color: rgba(42, 42, 42, 0.95) !important;
    backdrop-filter: blur(8px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Animazione Scroll Down (Bounce) */
@keyframes custom-bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.animate-bounce { animation: custom-bounce 1s infinite !important; }