/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.splash-logo {
    width: 80%;
    max-width: 400px;
    height: auto;
    animation: fluidMotion 1.8s ease-in-out forwards;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    transform-origin: center;
    opacity: 0;
    will-change: transform, opacity;
}
@keyframes fluidMotion {
    0% { transform: scale(0.5) rotate(-15deg); opacity: 0; }
    30% { transform: scale(1.2) rotate(5deg); opacity: 0.9; }
    60% { transform: scale(0.95) rotate(-2deg); opacity: 1; }
    80% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Modal per salto rapido */
.jump-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.jump-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 300px;
    max-width: 90%;
}

.jump-modal-content h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

.jump-modal-content p {
    margin-bottom: 20px;
    color: #666;
    text-align: center;
}

.jump-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ff0000;
    cursor: pointer;
    transition: color 0.3s;
}

.jump-close:hover {
    color: #cc0000;
}

#jump-input {
    width: 120px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    margin: 0 10px 20px 10px;
    transition: border-color 0.3s;
}

#jump-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

#jump-go {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

#jump-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.4);
}

/* Contatore cliccabile */
.slide-info {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.7);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 100;
    white-space: nowrap;
    text-align: center;
    min-width: 70px;
}

.slide-info:hover {
    background-color: rgba(0,0,0,0.9);
    transform: translateX(-50%) scale(1.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    width: 100%;
    flex: 1 0 auto;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    text-align: center;
    padding: 20px 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0;
}
.logo-container {
    background: white;
    padding: 15px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.logo-container:hover {
    transform: scale(1.05);
}
.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Stili per il link del logo home */
.logo-home-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s;
}
.logo-home-link:hover {
    transform: scale(1.05);
}
.logo-home-link .logo {
    display: block;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, #333 0%, #444 100%);
    padding: 0;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 10px;
    margin-top: 0;
}
.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-item {
    margin: 0;
    position: relative;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 18px 12px;
    display: block;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}
.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: white;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #4facfe;
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 70%;
}

/* Stili per il lucchetto e sottomenu - desktop */
.lock-item {
    position: relative;
    margin-left: auto;
}
.lock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lock-icon {
    font-size: 20px;
    margin-right: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
}
/* Feedback visivo per hover desktop */
.lock-btn:hover {
    background-color: rgba(255,255,255,0.15);
}
.lock-item.active .lock-btn {
    background-color: rgba(255,255,255,0.2);
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 190px;
    z-index: 1001;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}
.submenu li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.submenu-link {
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    transition: all 0.3s;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.submenu-link:hover {
    background-color: rgba(255,255,255,0.1);
    padding-left: 22px;
}

/* Mostra solo quando è attivo */
.lock-item.active .submenu {
    display: block;
}

.hamburger {
    display: none;
    background: white;
    border: none;
    cursor: pointer;
    padding: 12px 10px;
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1001;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #ff0000;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active .line-1 {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #ff0000;
}
.hamburger.active .line-2 {
    opacity: 0;
    background-color: #ff0000;
}
.hamburger.active .line-3 {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #ff0000;
}

.hamburger:hover .hamburger-line {
    background-color: #cc0000;
}
.hamburger.active:hover .hamburger-line {
    background-color: #ff0000;
}

.hamburger.active:hover .line-1,
.hamburger.active:hover .line-2,
.hamburger.active:hover .line-3 {
    background-color: #ff0000;
}

/* Main Content */
.main-content {
    margin-top: 0;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-height: 500px;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}
.page-content {
    display: none;
    animation: fadeIn 0.6s ease-out forwards;
}
.page-content.active {
    display: block;
}
.page-content h1, .page-content h2 {
    color: #2a5298;
    margin-bottom: 20px;
    position: relative;
}
.page-content h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    margin: 15px 0 25px;
    border-radius: 2px;
}
.page-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    margin: 10px 0 20px;
    border-radius: 2px;
}
.page-content p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: #555;
}
.page-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.page-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #555;
}
.page-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4facfe;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    padding: 100px 20px;
    margin: -40px -40px 40px -40px;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.5) 0%, rgba(42, 82, 152, 0.5) 100%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.25);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-section h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-section h1::after {
    background: #00f2fe;
    margin: 15px auto 25px;
    width: 80px;
}

/* HERO SUBTITLE */
.hero-section .hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    font-weight: 500;
    opacity: 1;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-btn {
    padding: 15px 35px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Pulsanti Hero */
.hero-section .hero-btn.primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: 2px solid #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hero-section .hero-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff8e8e 0%, #ff7f50 100%);
    border-color: #ff8e8e;
}

.hero-section .hero-btn.secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hero-section .hero-btn.secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #7c8fee 0%, #8a65b2 100%);
    border-color: #7c8fee;
}

/* ANIMAZIONI EMOJI PULSANTI HOME */
.hero-btn.primary::after {
    content: '📞';
    margin-left: 10px;
    font-size: 18px;
    display: inline-block;
    animation: phoneRing 2s ease-in-out infinite;
}

.hero-btn.secondary::after {
    content: '🔍';
    margin-left: 10px;
    font-size: 18px;
    display: inline-block;
    animation: searchPulse 2s ease-in-out infinite;
}

/* Animazione telefono che squilla */
@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0) scale(1);
    }
    10%, 30% {
        transform: rotate(-15deg) scale(1.1);
    }
    20%, 40% {
        transform: rotate(15deg) scale(1.1);
    }
    50% {
        transform: rotate(0) scale(1);
    }
}

/* Animazione lente d'ingrandimento che cerca */
@keyframes searchPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.1) translateY(-2px);
    }
    50% {
        transform: scale(1.05) translateY(0);
    }
    75% {
        transform: scale(1.15) translateY(-1px);
    }
}

/* Effetti hover aggiuntivi per le emoji */
.hero-btn.primary:hover::after {
    animation: phoneRing 0.5s ease-in-out infinite;
}

.hero-btn.secondary:hover::after {
    animation: searchPulse 0.6s ease-in-out infinite;
}

/* Pulsante Visualizzatore 3D */
.visualizzatore-3d-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #5a6fd8;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
    padding: 16px 40px 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.visualizzatore-3d-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4b9c 100%);
}

/* Contenitore del cubo 3D */
.cube-container {
    position: relative;
    width: 24px;
    height: 24px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 3s linear infinite;
}

.cube-face {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.cube-face::before {
    content: '';
    width: 8px;
    height: 8px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 1px;
}

/* Posizionamento delle facce del cubo */
.cube-face-front {
    transform: translateZ(12px);
}

.cube-face-back {
    transform: translateZ(-12px) rotateY(180deg);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(12px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(12px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(12px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(12px);
}

/* Animazione di rotazione del cubo */
@keyframes rotateCube {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    25% {
        transform: rotateX(90deg) rotateY(45deg) rotateZ(45deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(90deg) rotateZ(90deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(135deg) rotateZ(135deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.feature-card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
    border-top: 4px solid #4facfe;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}
.feature-card h3 {
    color: #2a5298;
    margin-bottom: 15px;
}

/* Sezione Galleria - VISUALIZZAZIONE IMMAGINI INTERE */
.gallery-container {
    max-width: 100%;
    margin: 0 auto;
}
.main-slide {
    position: relative;
    margin-bottom: 30px;
    height: 700px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.main-slide:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.main-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    transition: opacity 0.5s ease;
    cursor: pointer;
    margin: 0 auto;
    opacity: 0;
}
.main-slide img.loaded {
    opacity: 1;
}
.main-slide img.active {
    display: block;
    opacity: 1;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 28px;
    z-index: 10;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.8;
}
.nav-btn:hover {
    background-color: rgba(0,0,0,0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.prev {
    left: 25px;
}
.next {
    right: 25px;
}

/* FULLSCREEN */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.98);
    z-index: 9999;
    overflow: hidden;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.98);
    overflow: hidden;
}

/* IMMAGINI A PIENO SCHERMO */
.fullscreen-img {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
    margin: 0 auto;
    display: block;
    background: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Controlla che le immagini siano sempre visibili */
.fullscreen-img[src]:not([src=""]) {
    opacity: 1;
}

.fullscreen-img:not(.loaded) {
    opacity: 0;
}

.fullscreen-img.loaded {
    opacity: 1;
}

/* Miglioramenti per la navigazione fullscreen */
.close-btn, .fs-nav-btn {
    position: absolute;
    color: white;
    font-size: 35px;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
}

/* Croce di chiusura */
.close-btn {
    top: 20px;
    right: 30px;
    color: #ff0000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10002;
    pointer-events: auto;
    touch-action: manipulation;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.fs-nav-btn {
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.fs-nav-btn:hover {
    background-color: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}
.fs-prev {
    left: 30px;
}
.fs-next {
    right: 30px;
}

/* DESKTOP FULLSCREEN */
.fullscreen-modal .fullscreen-bottom-container {
    position: fixed;
    bottom: 2px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 101;
    pointer-events: none;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 2px;
}

.fullscreen-modal .fullscreen-bottom-container > * {
    pointer-events: auto;
}

.fullscreen-modal .fullscreen-alt-text {
    color: white;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 8px 20px 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    line-height: 1.3;
    white-space: normal;
    order: 2;
    margin-top: 0;
    margin-bottom: 0;
}

/* CONTATORE FULLSCREEN */
.fullscreen-modal .fullscreen-bottom-container .slide-info {
    color: white;
    background-color: rgba(0,0,0,0.85);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    text-align: center;
    min-width: 65px;
    order: 1;
    margin-bottom: 3px;
    position: relative;
    left: 0;
    transform: none;
}

.fullscreen-modal .fullscreen-bottom-container .slide-info:hover {
    background-color: rgba(0,0,0,0.95);
    transform: scale(1.05);
}

/* PREVIEW 3D MODAL */
.preview-modal {
    touch-action: pan-y pinch-zoom;
}

.preview-modal .fullscreen-content {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Nascondi descrizione nei preview 3D */
.preview-modal .fullscreen-alt-text {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
}

.preview-modal .fullscreen-bottom-container {
    gap: 0;
    margin: 0;
    padding-bottom: 0;
}

/* INDICATORE SWIPE PER MOBILE */
.swipe-indicator {
    display: none; /* Nascosto di default su desktop */
}

/* Solo per mobile */
@media (max-width: 768px) {
    .swipe-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: absolute;
        bottom: 70px; /* Posizionato sopra il contatore slide */
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        z-index: 90;
        white-space: nowrap;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        animation: swipeIndicatorPulse 3s ease-in-out infinite;
        pointer-events: none;
        opacity: 0.9;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* Animazione pulsante per l'indicatore */
    @keyframes swipeIndicatorPulse {
        0%, 100% {
            opacity: 0.7;
            transform: translateX(-50%) scale(1);
        }
        50% {
            opacity: 1;
            transform: translateX(-50%) scale(1.05);
        }
    }

    /* Icone frecce */
    .swipe-indicator::before {
        content: "←";
        font-size: 16px;
        animation: arrowLeft 2s ease-in-out infinite;
    }

    .swipe-indicator::after {
        content: "→";
        font-size: 16px;
        animation: arrowRight 2s ease-in-out infinite;
    }

    /* Animazioni separate per le frecce */
    @keyframes arrowLeft {
        0%, 100% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(-3px);
        }
    }

    @keyframes arrowRight {
        0%, 100% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(3px);
        }
    }

    /* Per la galleria principale */
    .gallery-container .swipe-indicator {
        bottom: 70px;
    }

    /* Per modal fullscreen */
    .fullscreen-modal .swipe-indicator {
        bottom: 90px; /* Più in alto nelle modal per non sovrapporsi */
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Per preview modal 3D */
    .preview-modal .swipe-indicator {
        bottom: 90px;
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Per mobile landscape - regoliamo la posizione */
    @media (orientation: landscape) and (max-height: 500px) {
        .swipe-indicator {
            bottom: 60px;
            font-size: 12px;
            padding: 6px 12px;
        }

        .fullscreen-modal .swipe-indicator,
        .preview-modal .swipe-indicator {
            bottom: 70px;
        }
    }

    /* Per dispositivi molto piccoli */
    @media (max-width: 480px) {
        .swipe-indicator {
            bottom: 60px;
            font-size: 12px;
            padding: 6px 14px;
        }

        .swipe-indicator::before,
        .swipe-indicator::after {
            font-size: 14px;
        }
    }

    /* Per mobile molto piccolo in landscape */
    @media (max-width: 480px) and (orientation: landscape) {
        .swipe-indicator {
            bottom: 50px;
            font-size: 11px;
            padding: 5px 10px;
        }
    }
}

/* Sezione Contatti */
.info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #4facfe;
}
.info p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
}
.info p strong {
    min-width: 100px;
    color: #333;
    margin-right: 15px;
}
.contact-map {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
    transition: all 0.3s;
}
.contact-map:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}
.footer p {
    margin: 0;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

/* Formazione Header */
.formazione-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
    text-align: left;
}
.formazione-logo {
    width: 250px;
    height: auto;
    margin-bottom: 10px;
}
#formazione h1, #formazione h2 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 24px;
}

/* Sezione 3D */
.model-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.model-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.model-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.model-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.model-thumbnail .model-title {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sezione News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.news-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #4facfe;
    transition: all 0.3s;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.news-item h3 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 20px;
}
.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}
.news-item p {
    color: #555;
    line-height: 1.6;
}

/* Sezione Partner */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.partner-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #f0f0f0;
}
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.partner-logo {
    max-width: 180px;
    max-height: 100px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s;
    filter: grayscale(0.3);
}
.partner-card:hover .partner-logo {
    transform: scale(1.05);
    filter: grayscale(0);
}
.partner-card h3 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 18px;
}
.partner-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.partner-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* BREAKPOINT INTERMEDIO - Schermi medi (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-link {
        padding: 14px 10px;
        font-size: 14px;
    }
    .lock-item {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
        text-align: center;
    }
    .lock-btn {
        justify-content: center;
        padding: 14px 10px;
    }
    .lock-icon {
        font-size: 18px;
    }
    .submenu {
        left: 50%;
        transform: translateX(-50%);
    }
    .submenu-link {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* BREAKPOINT TABLET PICCOLO - Schermi (769px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-link {
        padding: 12px 8px;
        font-size: 14px;
    }
    .container {
        padding: 0 15px 15px 15px;
    }
    .main-content {
        padding: 30px;
    }
    .hero-section {
        padding: 80px 20px;
        min-height: 60vh;
    }
    .hero-content {
        padding: 30px;
    }
    .hero-section h1 {
        font-size: 36px;
    }
    .hero-section .hero-subtitle {
        font-size: 20px;
        margin-bottom: 25px;
        color: white;
        opacity: 1;
    }
    .lock-btn {
        padding: 12px 8px;
    }

    /* Sezione 3D per tablet piccolo */
    .model-preview {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 25px;
    }

    .model-thumbnail {
        height: 240px;
    }

    .model-thumbnail img {
        height: 210px;
    }

    .model-thumbnail .model-title {
        height: 30px;
        font-size: 13px;
        padding: 6px;
    }
}

/* NAVBAR MOBILE - Esteso per tablet piccoli */
@media (max-width: 900px) {
    .container {
        padding: 0 10px 10px 10px;
    }
    .navbar {
        position: relative;
        padding: 0;
        margin-bottom: 10px;
        background: transparent;
        box-shadow: none;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        background: linear-gradient(135deg,
            rgba(30, 60, 114, 0.98) 0%,
            rgba(42, 82, 152, 0.98) 100%);
        padding: 80px 0 30px 0;
        z-index: 999;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
        border-radius: 0;
        justify-content: flex-start;
        align-items: center;
    }
    .nav-menu.active {
        display: flex;
        animation: fadeIn 0.4s ease-out forwards;
    }
    .nav-item {
        margin: 0;
        text-align: center;
        width: 90%;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        display: block;
        visibility: visible;
        opacity: 1;
        height: auto;
        min-height: 50px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    .nav-item:first-child {
        border-top: 1px solid rgba(255,255,255,0.15);
        border-radius: 8px 8px 0 0;
    }
    .nav-item:last-child {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
    .nav-item:hover {
        background-color: rgba(255,255,255,0.1);
    }
    .nav-link {
        padding: 16px 20px;
        font-size: 16px;
        width: 100%;
        text-align: center;
        display: block;
        color: white;
        text-decoration: none;
        white-space: normal;
        line-height: 1.3;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border-radius: 6px;
        margin: 2px 0;
    }
    .nav-link:hover {
        background-color: rgba(255,255,255,0.15);
        transform: translateX(5px);
    }
    .hamburger {
        display: flex;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
    }

    body.menu-open {
        overflow: hidden;
    }
    .main-content {
        padding: 15px 10px;
        margin-top: 0;
        margin-bottom: 20px;
        min-height: auto;
    }
    .page-content h1 {
        font-size: 32px;
        text-align: center;
    }
    .page-content h2 {
        font-size: 24px;
        text-align: center;
    }
    #home.page-content.active {
        display: block;
    }

    /* HERO SECTION PER MOBILE */
    .hero-section {
        padding: 60px 15px;
        margin: -10px -10px 20px -10px;
        text-align: center;
        min-height: 60vh;
    }
    .hero-background {
        object-position: center 30%;
    }
    .hero-content {
        padding: 30px 20px;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(2px);
        border-radius: 10px;
        margin: 0 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .hero-section h1 {
        font-size: 28px;
        margin-bottom: 10px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    }
    .hero-section .hero-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
        color: white;
        opacity: 1;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-section .hero-btn {
        padding: 14px 30px;
        font-size: 16px;
        width: 220px;
        max-width: 100%;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    /* Pulsante Visualizzatore 3D mobile */
    .visualizzatore-3d-btn {
        padding: 14px 32px;
        font-size: 16px;
        min-width: 260px;
    }

    /* Pulsanti hero per mobile */
    .hero-section .hero-btn.primary,
    .hero-section .hero-btn.secondary {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 160px;
    }

    .hero-btn.primary::after,
    .hero-btn.secondary::after {
        font-size: 14px;
        margin-left: 6px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    .feature-card {
        padding: 25px 15px;
        margin: 0 5px;
    }
    .feature-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    /* GALLERIA MOBILE */
    .main-slide {
        height: 400px;
        margin: 0 5px 20px 5px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
    }

    .main-slide img {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255,255,255,0.3);
        opacity: 0.9;
    }
    .nav-btn:hover {
        background-color: rgba(255,255,255,0.4);
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
    .prev {
        left: 15px;
    }
    .next {
        right: 15px;
    }
    .slide-info {
        font-size: 11px;
        padding: 4px 10px;
        bottom: 10px;
        background-color: rgba(0, 0, 0, 0.8);
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        text-align: center;
        min-width: 60px;
    }

    /* Modal salto rapido mobile */
    .jump-modal-content {
        padding: 25px 20px;
        min-width: 280px;
    }

    .jump-modal-content h3 {
        font-size: 20px;
    }

    #jump-input {
        width: 100px;
        padding: 10px 12px;
        font-size: 16px;
        margin: 0 0 15px 0;
    }

    #jump-go {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* PULSANTI FULLSCREEN MOBILE */
    .fs-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        background-color: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(5px);
    }
    .fs-nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }
    .fs-prev {
        left: 15px;
    }
    .fs-next {
        right: 15px;
    }

    .footer {
        padding: 20px 10px;
        margin-top: 30px;
    }
    .footer p {
        font-size: 14px;
    }
    .info {
        padding: 15px;
        margin: 0 5px 20px 5px;
    }
    .contact-map {
        height: 250px;
        margin: 15px 0;
    }
    .splash-logo {
        width: 85%;
        max-width: 280px;
    }
    #contatti .info p {
        flex-direction: column;
        align-items: flex-start;
    }
    #contatti .info p strong {
        margin-bottom: 5px;
        margin-right: 0;
    }
    .formazione-header {
        margin-bottom: 15px;
        align-items: center;
        text-align: center;
    }
    .formazione-logo {
        width: 180px;
        margin: 0 auto 10px;
    }

    /* Sezione 3D per mobile e tablet piccolo */
    .model-preview {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        margin: 20px 5px 0 5px;
    }

    .model-thumbnail {
        height: 240px;
        margin: 0;
    }

    .model-thumbnail img {
        height: 210px;
    }

    .model-thumbnail .model-title {
        height: 30px;
        font-size: 12px;
        padding: 6px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    .news-item {
        padding: 20px 15px;
        margin: 0 5px;
    }
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 25px 5px;
    }
    .partner-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    .partner-logo {
        max-width: 120px;
        max-height: 60px;
    }

    /* LOCK ITEM MOBILE */
    .lock-item {
        margin-left: 0;
        order: 8;
        margin-top: 5px;
        border-top: 2px solid rgba(255,255,255,0.2);
        padding-top: 5px;
        width: 90%;
        text-align: center;
        display: block;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        position: relative;
    }
    .navbar .nav-menu .lock-item .lock-btn {
        justify-content: center;
        width: 100%;
        pointer-events: auto;
        padding: 16px 20px;
        min-height: 50px;
        background: transparent;
        cursor: pointer;
        color: white;
    }
    .lock-icon {
        font-size: 18px;
        filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
        transition: transform 0.3s ease;
        display: inline-block;
    }
    /* Animazione mobile - ruota il lucchetto */
    .lock-item.active .lock-icon {
        transform: rotate(90deg);
    }
    /* Feedback visivo per stato attivo mobile */
    .lock-item.active .lock-btn {
        background-color: rgba(255,255,255,0.15);
    }

    /* SUBMENU MOBILE */
    .submenu {
        position: static;
        width: 100%;
        border-radius: 0 0 8px 8px;
        margin-top: 0;
        display: none;
        background-color: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        border-top: 1px solid rgba(255,255,255,0.1);
        animation: none;
    }
    .navbar .nav-menu .lock-item.active .submenu {
        display: block;
        max-height: 200px;
    }
    .submenu-link {
        text-align: center;
        padding: 16px 20px;
        font-size: 17px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        visibility: visible;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.2);
        letter-spacing: 0.3px;
    }
    .submenu-link:hover {
        background-color: rgba(255,255,255,0.15);
        padding-left: 25px;
        font-size: 17.5px;
    }
    .submenu li:last-child .submenu-link {
        border-bottom: none;
    }

    /* OTTIMIZZAZIONI MOBILE - Rimuove !important */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Riduci il peso delle immagini hero */
    .hero-background {
        image-rendering: -webkit-optimize-contrast;
        transform: translateZ(0);
    }

    /* Lazy loading */
    img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    img[loading="lazy"].loaded {
        opacity: 1;
    }

    /* NASCONDI FRECCE GALLERIA MOBILE */
    .nav-btn {
        display: none;
    }

    /* Nasconde le frecce in modalità fullscreen mobile */
    .fullscreen-modal .fs-nav-btn {
        display: none;
    }

    /* GALLERIA MOBILE SWIPE */
    .gallery-container {
        touch-action: pan-y pinch-zoom;
    }

    .main-slide {
        overflow: hidden;
        user-select: none;
    }

    /* FULLSCREEN MOBILE - FIX PER LANDSCAPE */
    .fullscreen-modal .fullscreen-bottom-container {
        position: fixed;
        bottom: 10px;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 101;
        pointer-events: none;
        padding: 0 15px;
        box-sizing: border-box;
        gap: 5px;
    }

    .fullscreen-modal .fullscreen-alt-text {
        position: static;
        order: 2;
        margin-top: 0;
        margin-bottom: 0;
        transform: none;
        left: auto;
        bottom: auto;
        font-size: 12px;
        padding: 8px 14px;
        max-width: 85%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: block;
        text-align: center;
        word-break: break-word;
        background-color: rgba(0, 0, 0, 0.85);
        border-radius: 20px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .fullscreen-modal .fullscreen-bottom-container .slide-info {
        position: static;
        order: 1;
        transform: none;
        left: auto;
        bottom: auto;
        font-size: 14px;
        padding: 6px 16px;
        min-width: 60px;
        margin-bottom: 5px;
        background-color: rgba(0, 0, 0, 0.85);
    }

    /* MOBILE CENTRA IMMAGINI */
    .fullscreen-img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

/* Mobile molto piccolo */
@media (max-width: 480px) {
    .nav-menu.active {
        max-height: 100vh;
        overflow-y: auto;
        padding: 70px 0 25px 0;
    }
    .nav-item {
        min-height: 48px;
        width: 95%;
    }
    .nav-link {
        padding: 14px 15px;
        font-size: 15px;
        min-height: 48px;
    }
    .hamburger {
        top: 15px;
        right: 10px;
        padding: 10px 8px;
    }
    .lock-item {
        width: 95%;
    }
    .lock-btn {
        padding: 14px 15px;
        min-height: 48px;
    }

    /* Modal salto rapido mobile piccolo */
    .jump-modal-content {
        padding: 20px 15px;
        min-width: 260px;
    }

    .jump-modal-content h3 {
        font-size: 18px;
    }

    #jump-input {
        width: 80px;
        padding: 8px 10px;
        font-size: 14px;
    }

    #jump-go {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Pulsante Visualizzatore 3D mobile molto piccolo */
    .visualizzatore-3d-btn {
        font-size: 13px;
        padding: 10px 18px;
        min-width: 180px;
        max-width: 100%;
    }

    /* Pulsanti hero mobile molto piccolo */
    .hero-section .hero-btn.primary,
    .hero-section .hero-btn.secondary {
        padding: 12px 25px;
        font-size: 14px;
        width: 200px;
    }

    .hero-btn.primary::after,
    .hero-btn.secondary::after {
        font-size: 12px;
        margin-left: 4px;
    }

    /* SUBMENU MOBILE PICCOLO */
    .submenu-link {
        padding: 14px 15px;
        font-size: 16px;
        font-weight: 500;
        min-height: 50px;
        letter-spacing: 0.2px;
    }

    /* PULSANTI GALLERIA MOBILE PICCOLO */
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .prev {
        left: 10px;
    }
    .next {
        right: 10px;
    }

    /* PULSANTI FULLSCREEN MOBILE PICCOLO */
    .fs-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .fs-prev {
        left: 10px;
    }
    .fs-next {
        right: 10px;
    }

    /* HERO SECTION PER MOBILE PICCOLO */
    .hero-section {
        padding: 50px 10px;
        margin: -5px -5px 15px -5px;
        min-height: 70vh;
    }
    .hero-background {
        object-position: center 20%;
    }
    .hero-content {
        padding: 25px 15px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(1px);
    }
    .hero-section h1 {
        font-size: 24px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    }
    .hero-section .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
        color: white;
        opacity: 1;
    }
    .hero-section .hero-btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 200px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    /* GALLERIA MOBILE PICCOLO */
    .main-slide {
        height: 300px;
    }

    /* CONTATORE IN GALLERIA MOBILE PICCOLO */
    .main-slide .slide-info {
        bottom: 8px;
        font-size: 12px;
        padding: 5px 12px;
        min-width: 55px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        text-align: center;
    }

    /* Sezione 3D per mobile molto piccolo */
    .model-preview {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 20px 5px 0 5px;
    }

    .model-thumbnail {
        height: 240px;
    }

    .model-thumbnail img {
        height: 210px;
    }

    .model-thumbnail .model-title {
        height: 30px;
        font-size: 12px;
    }

    /* MOBILE PICCOLO - DESCRIZIONE */
    .fullscreen-modal .fullscreen-alt-text {
        font-size: 13px;
        padding: 8px 14px;
        max-width: 92%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fullscreen-modal .fullscreen-bottom-container .slide-info {
        font-size: 14px;
        padding: 6px 16px;
        min-width: 60px;
    }
}

/* OTTIMIZZAZIONI PER LANDSCAPE */
@media (max-width: 900px) and (orientation: landscape) {
    .nav-menu {
        padding: 60px 0 20px 0;
    }
    .nav-item {
        min-height: 44px;
    }
    .nav-link {
        padding: 12px 15px;
        min-height: 44px;
    }
    .lock-btn {
        padding: 12px 15px;
        min-height: 44px;
    }

    /* SUBMENU LANDSCAPE */
    .submenu-link {
        padding: 12px 15px;
        font-size: 16px;
        font-weight: 500;
        min-height: 46px;
    }

    /* PULSANTI GALLERIA LANDSCAPE */
    .nav-btn {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    /* PULSANTI FULLSCREEN LANDSCAPE */
    .fs-nav-btn {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
    .fs-prev {
        left: 20px;
    }
    .fs-next {
        right: 20px;
    }
    .hero-section {
        min-height: 80vh;
        padding: 40px 15px;
    }
    .hero-background {
        object-position: center 25%;
    }
    .hero-content {
        padding: 20px;
        max-width: 90%;
        background: rgba(0, 0, 0, 0.3);
    }
    .hero-section h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .hero-section .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
        color: white;
        opacity: 1;
    }
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }
    .hero-section .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
    }

    /* GALLERIA LANDSCAPE */
    .main-slide {
        height: 350px;
    }

    /* Sezione 3D in landscape */
    .model-preview {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .model-thumbnail {
        height: 220px;
    }

    .model-thumbnail img {
        height: 180px;
    }

    .model-thumbnail .model-title {
        height: 40px;
        font-size: 11px;
    }

    /* CORREZIONE PER FULLSCREEN GALLERIA IN LANDSCAPE */
    /* Contenitore in basso per galleria fullscreen */
    .gallery-modal .fullscreen-bottom-container {
        position: fixed;
        bottom: 10px;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 101;
        pointer-events: none;
        padding: 0 15px;
        box-sizing: border-box;
        gap: 5px;
    }

    .gallery-modal .fullscreen-alt-text {
        order: 2;
        font-size: 12px;
        padding: 8px 14px;
        max-width: 85%;
        white-space: normal;
        word-break: break-word;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.85);
        border-radius: 20px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .gallery-modal .fullscreen-bottom-container .slide-info {
        order: 1;
        font-size: 14px;
        padding: 6px 16px;
        min-width: 60px;
        background-color: rgba(0, 0, 0, 0.85);
        border-radius: 20px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    /* PREVIEW 3D LANDSCAPE */
    .preview-modal .fullscreen-bottom-container {
        position: fixed;
        bottom: 15px;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 101;
        pointer-events: none;
        padding: 0 15px;
        box-sizing: border-box;
        gap: 5px;
        height: auto;
    }

    .preview-modal .fullscreen-alt-text {
        display: none;
    }

    .preview-modal .preview-slide-info {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        background-color: rgba(0, 0, 0, 0.85);
        padding: 6px 15px;
        border-radius: 15px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.3s;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        white-space: nowrap;
        text-align: center;
        min-width: 60px;
        z-index: 100;
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin: 0;
    }

    .preview-modal .fullscreen-bottom-container > * {
        pointer-events: auto;
    }

    /* Stessi stili della galleria */
    .preview-modal .preview-slide-info:hover {
        background-color: rgba(0,0,0,0.95);
        transform: translateX(-50%) scale(1.05);
    }

    /* Nascondi i pulsanti di navigazione per coerenza con galleria */
    .preview-modal .fs-nav-btn {
        display: none;
    }

    /* FULLSCREEN LANDSCAPE - GALLERIA GENERALE */
    .fullscreen-modal .fullscreen-bottom-container {
        bottom: 10px;
        padding: 0 15px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* CONTATORE E DESCRIZIONE IN BASSO PER GALLERIA */
    .fullscreen-modal .fullscreen-alt-text {
        order: 2;
        margin-top: 0;
        margin-bottom: 0;
        transform: none;
        left: auto;
        bottom: auto;
        font-size: 12px;
        padding: 8px 14px;
        max-width: 85%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: block;
        text-align: center;
        word-break: break-word;
        background-color: rgba(0, 0, 0, 0.85);
        border-radius: 20px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .fullscreen-modal .fullscreen-bottom-container .slide-info {
        order: 1;
        transform: none;
        left: auto;
        bottom: auto;
        font-size: 14px;
        padding: 6px 16px;
        min-width: 60px;
        margin-bottom: 5px;
        background-color: rgba(0, 0, 0, 0.85);
    }

    .fullscreen-modal .swipe-indicator {
        bottom: 10px;
        font-size: 10px;
    }

    /* Assicura che l'immagine sia centrata */
    .fullscreen-content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .fullscreen-img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

/* Mobile landscape piccolo */
@media (max-width: 480px) and (orientation: landscape) {
    .fullscreen-img {
        max-width: 95%;
        max-height: 95%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .fullscreen-modal .fullscreen-bottom-container {
        bottom: 10px;
        gap: 5px;
    }

    .fullscreen-modal .fullscreen-alt-text {
        font-size: 11px;
        padding: 6px 12px;
        max-width: 90%;
        white-space: normal;
        word-break: break-word;
    }

    .fullscreen-modal .fullscreen-bottom-container .slide-info {
        font-size: 12px;
        padding: 5px 12px;
        min-width: 55px;
        margin-bottom: 3px;
    }

    .fullscreen-modal .swipe-indicator {
        bottom: 40px;
        font-size: 9px;
    }

    /* PREVIEW 3D LANDSCAPE PICCOLO */
    .preview-modal .fullscreen-bottom-container {
        bottom: 10px;
        padding: 0 10px;
        gap: 3px;
    }

    .preview-modal .preview-slide-info {
        bottom: 15px;
        font-size: 11px;
        padding: 5px 12px;
        min-width: 55px;
        border-radius: 12px;
    }
}

/* SCRITTE 3D IN LANDSCAPE MOBILE */
@media (max-width: 900px) and (orientation: landscape) {
    .model-thumbnail .model-title {
        background: rgba(0, 0, 0, 0.9);
        color: white;
        height: 40px;
        font-size: 12px;
        padding: 8px 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
        position: relative;
        z-index: 10;
        opacity: 1;
        visibility: visible;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
    }

    .model-thumbnail {
        height: 240px;
    }

    .model-thumbnail img {
        height: 200px;
    }
}

/* mobile molto piccolo in landscape */
@media (max-width: 480px) and (orientation: landscape) {
    .model-thumbnail .model-title {
        height: 45px;
        font-size: 11px;
        padding: 10px 4px;
    }

    .model-thumbnail {
        height: 220px;
    }

    .model-thumbnail img {
        height: 175px;
    }
}

/* ======================================================================= */
/* SEZIONE COOKIE - STILI MIGLIORATI E COLORATI */
/* ======================================================================= */

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin-bottom: 10px;
    color: white;
}

.cookie-text p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: #4facfe;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* PULSANTI COOKIE CON COLORI COERENTI E MODERNI */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid transparent;
}

/* Pulsante "Accetta tutti" - Verde positivo */
.cookie-btn.primary {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: #2ecc71;
}

.cookie-btn.primary:hover {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
}

/* Pulsante "Rifiuta" - Rosso-arancione */
.cookie-btn.reject {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-color: #ff6b6b;
}

.cookie-btn.reject:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e74c3c 100%);
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
}

/* Pulsante "Solo necessari" - Blu secondario */
.cookie-btn.secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.cookie-btn.secondary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4b9c 100%);
    border-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

/* Pulsante "Visualizza politica completa" - Grigio neutro */
.cookie-btn:not(.primary):not(.reject):not(.secondary) {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border-color: #34495e;
}

.cookie-btn:not(.primary):not(.reject):not(.secondary):hover {
    background: linear-gradient(135deg, #2c3e50 0%, #243342 100%);
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 73, 94, 0.3);
}

/* EMOJI nei pulsanti */
.cookie-btn.primary::before {
    content: '✅ ';
    margin-right: 8px;
    font-size: 16px;
}

.cookie-btn.reject::before {
    content: '❌ ';
    margin-right: 8px;
    font-size: 16px;
}

.cookie-btn.secondary::before {
    content: '⚙️ ';
    margin-right: 8px;
    font-size: 16px;
}

/* Effetto ripple sui pulsanti */
.cookie-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cookie-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* SEZIONE GESTIONE COOKIE NELLA PRIVACY POLICY */
.cookie-management {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(42, 82, 152, 0.05) 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 35px 0;
    border-left: 5px solid #4facfe;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cookie-management h3 {
    color: #2a5298;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Pulsanti nella sezione privacy policy */
.cookie-management .cookie-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-management .cookie-btn {
    margin: 5px;
    min-width: 200px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

/* MODAL COOKIE POLICY - MIGLIORAMENTI VISIVI */
#cookie-policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.cookie-policy-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 15px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    border: 1px solid rgba(79, 172, 254, 0.2);
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #ff0000;
    font-weight: bold;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #cc0000;
}

.policy-content h2 {
    color: #2a5298;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h3 {
    color: #2a5298;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #4facfe;
    padding-bottom: 8px;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

.policy-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* RESPONSIVE DESIGN PER COOKIE BANNER */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 140px;
        padding: 14px 20px;
    }

    .cookie-policy-content {
        padding: 30px 20px;
        margin: 10px;
    }

    .policy-buttons {
        flex-direction: column;
    }

    .policy-buttons .cookie-btn {
        width: 100%;
        max-width: 280px;
        margin: 5px auto;
    }

    .cookie-management {
        text-align: center;
        padding: 25px 15px;
    }

    .cookie-management .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cookie-management .cookie-btn {
        width: 100%;
        max-width: 280px;
        margin: 8px 0;
    }

    /* Ottimizzazione per mobile del banner cookie */
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn.reject {
        order: 2;
    }

    .cookie-btn.primary {
        order: 1;
    }

    .cookie-btn.secondary {
        order: 3;
    }
}

@media (max-width: 480px) {
    #cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-content {
        gap: 15px;
    }

    .cookie-text h3 {
        font-size: 18px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* OTTIMIZZAZIONE CROCE CHIUSURA - CON SPECIFICITÀ ALTA */
.fullscreen-modal .close-btn,
.preview-modal .close-btn,
.gallery-modal .close-btn {
    display: flex;
    visibility: visible;
    opacity: 1;
    z-index: 10002;
    pointer-events: auto;
}

/* Forza visibilità su mobile */
@media (max-width: 768px) {
    .fullscreen-modal .close-btn,
    .preview-modal .close-btn,
    .gallery-modal .close-btn {
        position: fixed;
        top: 15px;
        right: 20px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        font-weight: bold;
        color: #ff0000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        cursor: pointer;
    }
}

/* Ottimizzazione per schermi desktop di grandi dimensioni */
@media (min-width: 1400px) {
    .container {
        max-width: 95%;
        padding: 0 30px 30px 30px;
    }
    .main-content {
        padding: 60px;
    }
    .hero-section {
        padding: 120px 40px;
        min-height: 80vh;
    }
    .hero-content {
        padding: 50px;
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
    .gallery-container {
        max-width: 90%;
    }
}

/* Ottimizzazione per schermi molto grandi (2K/4K) */
@media (min-width: 1920px) {
    body {
        font-size: 18px;
    }
    .container {
        max-width: 1800px;
    }
    .nav-link {
        padding: 18px 15px;
        font-size: 14px;
    }
    .hero-section h1 {
        font-size: 56px;
    }
    .hero-section .hero-subtitle {
        font-size: 28px;
        margin-bottom: 30px;
        color: white;
        opacity: 1;
    }
    .hero-btn {
        padding: 18px 45px;
        font-size: 22px;
    }
    .feature-card {
        padding: 45px;
    }
    .feature-icon {
        font-size: 60px;
    }
    .main-slide {
        height: 800px;
    }
}

/* Per schermi molto alti - desktop (aumenta il margine) */
@media (min-width: 769px) and (min-height: 800px) {
    .fullscreen-modal .fullscreen-bottom-container {
        bottom: 15px;
    }

    .fullscreen-modal .fullscreen-bottom-container .slide-info {
        margin-bottom: 5px;
    }
}

@media (min-width: 769px) and (min-height: 1000px) {
    .fullscreen-modal .fullscreen-bottom-container {
        bottom: 20px;
    }

    .fullscreen-modal .fullscreen-bottom-container .slide-info {
        margin-bottom: 8px;
    }
}

@media (min-width: 769px) and (min-height: 1200px) {
    .fullscreen-modal .fullscreen-bottom-container {
        bottom: 25px;
    }

    .fullscreen-modal .fullscreen-bottom-container .slide-info {
        margin-bottom: 10px;
    }
}

/* Versione semplificata per mobile */
@media (max-width: 768px) {
    .cube-container {
        width: 20px;
        height: 20px;
    }

    .cube-face {
        width: 20px;
        height: 20px;
    }

    .cube-face-front {
        transform: translateZ(10px);
    }

    .cube-face-back {
        transform: translateZ(-10px) rotateY(180deg);
    }

    .cube-face-right {
        transform: rotateY(90deg) translateZ(10px);
    }

    .cube-face-left {
        transform: rotateY(-90deg) translateZ(10px);
    }

    .cube-face-top {
        transform: rotateX(90deg) translateZ(10px);
    }

    .cube-face-bottom {
        transform: rotateX(-90deg) translateZ(10px);
    }
}
