/* ===== VARIABILI & RESET PREMIUM ===== */
:root {
    --primary: #000000;
    --secondary: #0a0a0a;
    --accent: #c1ecf3;
    --accent-dark: #8cced9;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: rgba(20, 20, 20, 0.9);
    --gradient: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 5px 20px rgba(193, 236, 243, 0.1);
    --border: 1px solid rgba(255, 255, 255, 0.08);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--gradient);
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(193, 236, 243, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(193, 236, 243, 0.03) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* ===== TYPOGRAPHY PREMIUM ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.content-section h1 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1.5rem;
}

.content-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== VIDEO HERO PREMIUM ===== */
.video-hero {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 800px;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.6) 30%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0.2) 80%,
        transparent 100%);
    z-index: 1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-scroll {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
    cursor: pointer;
}

.hero-scroll:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

/* ===== NAVIGATION PREMIUM ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn .menu-icon {
    display: block;
    transition: transform 0.3s ease;
}

/* ===== MAIN CONTENT PREMIUM ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.content-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ===== BIOGRAPHY PREMIUM FIXED ===== */
.biography-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.biography-image-container {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.biography-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.biography-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.biography-image:hover img {
    transform: scale(1.05);
}

.biography-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(193, 236, 243, 0.1) 100%);
    pointer-events: none;
    opacity: 0.7;
}

.biography-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.biography-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.biography-text p:first-child {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 400;
}

.quote {
    font-style: italic;
    color: var(--accent);
    padding: 2rem;
    border-left: 3px solid var(--accent);
    margin: 2rem 0;
    background: rgba(193, 236, 243, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ===== GALLERY PREMIUM ===== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text);
    border: var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 1px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: var(--transition);
    background: var(--secondary);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-category {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== MODAL PREMIUM FIXED ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.97);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    touch-action: pan-y pinch-zoom;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes modalSlideIn {
    from { transform: scale(0.8) translateY(50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

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

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    display: block;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal-image.loaded {
    opacity: 1;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2003;
}

.modal-btn {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0,0,0,0.3);
    touch-action: manipulation;
    min-width: 60px;
    min-height: 60px;
    z-index: 2004;
}

.modal-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.modal-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.modal-btn:disabled:hover {
    background: rgba(0,0,0,0.7);
    color: white;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2005;
    -webkit-tap-highlight-color: transparent;
    min-width: 50px;
    min-height: 50px;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 2002;
    text-align: center;
}

.modal-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-counter {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Spinner per caricamento immagini modal */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(193, 236, 243, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
    z-index: 2002;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal-overlay.active .modal-loading {
    display: block;
}

/* Modal swipe zones for mobile */
.modal-swipe-zone {
    display: none;
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%;
    z-index: 1999;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.modal-swipe-zone.left {
    left: 0;
}

.modal-swipe-zone.right {
    right: 0;
}

/* ===== FOOTER PREMIUM ===== */
.main-footer {
    background: var(--secondary);
    border-top: var(--border);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    min-width: 40px;
    min-height: 40px;
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .biography-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .biography-image-container {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-image-container {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10,10,10,0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        backdrop-filter: blur(20px);
        border-top: var(--border);
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .video-hero {
        height: 50vh;
        min-height: 400px;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .content-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .content-section h1 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* MOBILE MODAL FIXES */
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        background: rgba(0,0,0,0.9);
        min-width: 50px;
        min-height: 50px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        background: rgba(0,0,0,0.9);
        min-width: 45px;
        min-height: 45px;
    }
    
    .modal-image-container {
        height: 50vh;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-swipe-zone {
        display: block;
    }
    
    .modal-nav {
        padding: 0 1rem;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .content-section h1 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .modal-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        min-width: 45px;
        min-height: 45px;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .modal-image-container {
        height: 40vh;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from { left: -100%; }
    to { left: 100%; }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--accent);
    color: var(--primary);
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-item:active img {
        transform: scale(1.05);
    }
    
    .content-section:hover {
        transform: none;
    }
    
    .filter-btn:hover {
        transform: none;
        background: transparent;
    }
    
    .filter-btn:active {
        background: var(--accent);
        transform: scale(0.98);
    }
    
    .hero-scroll:hover {
        transform: none;
    }
    
    .hero-scroll:active {
        transform: scale(0.98);
    }
    
    .modal-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .modal-btn:active:not(:disabled) {
        transform: scale(0.95);
    }
}

/* ===== iOS SAFARI SPECIFIC FIXES ===== */
@supports (-webkit-touch-callout: none) {
    .video-hero {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
    
    .modal-btn,
    .modal-close {
        cursor: pointer;
    }
    
    .modal-overlay {
        -webkit-overflow-scrolling: touch;
    }
    
    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@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;
    }
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .main-nav,
    .video-hero,
    .hero-scroll,
    .modal-overlay,
    .footer-bottom,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .content-section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ===== LOADING SCREEN PREMIUM ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a2e 100%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), visibility 0.8s ease;
}

#loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    transform: translateY(0);
    animation: fadeInUp 1s ease;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(193, 236, 243, 0.1);
    border-top: 4px solid #c1ecf3;
    border-right: 4px solid #c1ecf3;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 20px rgba(193, 236, 243, 0.3);
}

.loading-text {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: white;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    text-shadow: 0 0 20px rgba(193, 236, 243, 0.5);
    animation: pulse 2s infinite;
}

.loading-subtext {
    font-size: 1rem;
    color: #c1ecf3;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Animazione spinner personalizzata */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Versione mobile */
@media (max-width: 768px) {
    .loading-text {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .loading-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .loading-subtext {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}