/* 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;
}

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

.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);
}

/* Rendiamo il 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;
}

.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-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;
}

.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;
}

/* Effetti comuni per pulsanti home */
.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.hero-btn:hover::before {
    left: 100%;
}

/* Icone Home */
.hero-btn.primary::after {
    content: '📞';
    margin-left: 8px;
    font-size: 16px;
    animation: pulse 2s infinite;
}

.hero-btn.secondary::after {
    content: '🔍';
    margin-left: 8px;
    font-size: 16px;
    animation: bounce 2s infinite;
}

/* Animazioni per le icone */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

/* 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%);
}

/* Effetto di particelle 3D */
.visualizzatore-3d-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.visualizzatore-3d-btn:hover::before {
    transform: translateX(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);
    }
}

/* 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);
    }
}

/* 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 */
.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;
}
.main-slide:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.5s ease;
    cursor: pointer;
}
.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;
}

.gallery-instructions {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* Fullscreen Modal - STILI BASE PER ENTRAMBI I MODAL */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    overflow: hidden;
}

/* Specificità per i due modal separati */
.gallery-modal,
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    overflow: hidden;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fullscreen-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* 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 in rosso */
.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;
}

.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;
}

/* DESCRIZIONE FOTO - DESKTOP */
.fullscreen-modal .fullscreen-alt-text {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    z-index: 100;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    line-height: 1.4;
}

/* CONTATORE FULLSCREEN - DESKTOP */
.fullscreen-modal .fullscreen-slide-info {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.6);
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

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

/* MEDIA QUERIES PER MOBILE - CON SPECIFICITÀ MAGGIORE */
@media (max-width: 900px) {
    .fullscreen-modal .fullscreen-alt-text {
        bottom: 60px;
        font-size: 14px;
        padding: 10px 18px;
        max-width: 90%;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .fullscreen-modal .fullscreen-slide-info {
        bottom: 20px;
        font-size: 16px;
        padding: 8px 20px;
        background-color: rgba(0,0,0,0.7);
    }

    .close-btn {
        width: 44px;
        height: 44px;
        font-size: 28px;
        top: 15px;
        right: 20px;
    }

    .fs-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .fs-prev {
        left: 15px;
    }

    .fs-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .fullscreen-modal .fullscreen-alt-text {
        bottom: 50px;
        font-size: 12px;
        padding: 8px 14px;
        max-width: 95%;
    }

    .fullscreen-modal .fullscreen-slide-info {
        bottom: 15px;
        font-size: 14px;
        padding: 6px 16px;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 10px;
        right: 15px;
    }

    .fs-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .fs-prev {
        left: 10px;
    }

    .fs-next {
        right: 10px;
    }
}

/* Per schermi molto alti - DESKTOP */
@media (min-height: 800px) and (min-width: 901px) {
    .fullscreen-modal .fullscreen-alt-text {
        bottom: 120px;
    }

    .fullscreen-modal .fullscreen-slide-info {
        bottom: 70px;
    }
}

/* Per schermi landscape mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .fullscreen-modal .fullscreen-alt-text {
        bottom: 50px;
        font-size: 12px;
        padding: 8px 14px;
        max-width: 85%;
    }

    .fullscreen-modal .fullscreen-slide-info {
        bottom: 20px;
        font-size: 14px;
        padding: 6px 16px;
    }
}

/* Per schermi landscape molto piccoli */
@media (max-width: 480px) and (orientation: landscape) {
    .fullscreen-modal .fullscreen-alt-text {
        bottom: 40px;
        font-size: 11px;
        padding: 6px 12px;
    }

    .fullscreen-modal .fullscreen-slide-info {
        bottom: 15px;
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* 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 - Altezze uniformi per mobile, tablet e schermi piccoli */
.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); }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(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-subtitle {
        font-size: 20px;
        color: white;
        text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        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;
    }
}

/* 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-subtitle {
        font-size: 28px;
        color: white;
        text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        opacity: 1;
    }
    .hero-btn {
        padding: 18px 45px;
        font-size: 22px;
    }
    .feature-card {
        padding: 45px;
    }
    .feature-icon {
        font-size: 60px;
    }
    .main-slide {
        height: 800px;
    }
}

/* 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: slideInRight 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-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.4;
        color: white;
        text-shadow: 0 1px 6px rgba(0,0,0,0.8);
        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;
    }

    .visualizzatore-3d-btn::after {
        font-size: 16px;
        margin-left: 6px;
    }

    /* 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: 250px;
        margin: 0 5px 20px 5px;
        position: relative;
    }
    .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);
    }

    /* 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;
    }
    .close-btn {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    .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;
    }
}

/* 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;
    }

    /* 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;
    }
    .close-btn {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }

    /* 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-subtitle {
        font-size: 16px;
        color: white;
        text-shadow: 0 1px 5px rgba(0,0,0,0.8);
        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);
    }

    /* 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;
    }
}

/* 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;
    }
}

/* Ottimizzazioni per orientamento landscape su mobile e tablet piccolo */
@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-subtitle {
        font-size: 16px;
        color: white;
        margin-bottom: 20px;
        opacity: 1;
    }
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }
    .hero-section .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
    }

    /* 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;
    }
}
