.workinprogres{
    font-size: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #1f2937;
    z-index: 1000;
    padding: 1rem;
    display: block;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #1f2937;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-link {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid #1f2937;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link:last-child {
    border-bottom: none;
}

/* Desktop Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #111111;
    border-right: 1px solid #1f2937;
    z-index: 900;
    display: none;
    overflow-y: auto;
}

.sidebar-content {
    padding: 2rem;
}

.logo-sidebar {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 3rem;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.sidebar-link:hover {
    color: #3b82f6;
}

.collections-section {
    margin-top: 2rem;
}

.collections-section h3 {
    color: #e5e7eb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1f2937;
}

.collections-list {
    list-style: none;
}

.collections-list li {
    margin-bottom: 0.5rem;
}

.collection-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 8px;
    position: relative;
}

.collection-link:hover,
.collection-link.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.collection-link[data-collection="sportsevents"]:hover,
.collection-link[data-collection="sportsevents"].active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.37), rgba(59, 131, 246, 0));
    color: #ef4444;
    border-left: 3px solid #ef4444;
    padding-left: calc(1rem - 3px);
}

.collection-link[data-collection="drone"]:hover,
.collection-link[data-collection="drone"].active {
    background: linear-gradient(135deg, rgba(55, 158, 255, 0.308), rgba(59, 131, 246, 0));
    color: #44e4ef;
    border-left: 3px solid #44e4ef;
    padding-left: calc(1rem - 3px);
}

.collection-link[data-collection="cityphotos"]:hover,
.collection-link[data-collection="cityphotos"].active {
    background: linear-gradient(135deg, rgba(184, 184, 184, 0.432), rgba(59, 131, 246, 0));
    color: #ffffff;
    border-left: 3px solid #ffffff;
    padding-left: calc(1rem - 3px);
}

.collection-link[data-collection="3drender"]:hover,
.collection-link[data-collection="3drender"].active {
    background: linear-gradient(135deg, rgba(255, 160, 35, 0.432), rgba(59, 131, 246, 0));
    color: #ff8e25;
    border-left: 3px solid #ff8e25;
    padding-left: calc(1rem - 3px);
}

.collection-link[data-collection="cover"]:hover,
.collection-link[data-collection="cover"].active {
    background: linear-gradient(135deg, rgba(235, 255, 53, 0.281), rgba(59, 131, 246, 0));
    color: #b8ca18;
    border-left: 3px solid #b8ca18;
    padding-left: calc(1rem - 3px);
}

.collection-link[data-collection="other"]:hover,
.collection-link[data-collection="other"].active {
    background: linear-gradient(135deg, rgba(53, 255, 35, 0.432), rgba(59, 131, 246, 0));
    color: #71ff84;
    border-left: 3px solid #57ff6d;
    padding-left: calc(1rem - 3px);
}

.collection-link[data-collection="tutte"]:hover,
.collection-link[data-collection="tutte"].active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.37), rgba(55, 158, 255, 0.308), rgba(184, 184, 184, 0.432), rgba(255, 160, 35, 0.432), rgba(235, 255, 53, 0.281), rgba(53, 255, 35, 0.432), rgba(59, 131, 246, 0));
    color: #ffffff;
    border-left: 3px solid #ffffff;
    padding-left: calc(1rem - 3px);
}

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* Mobile Collection Dropdown */
.mobile-collections {
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid #1f2937;
    display: block;
}

.collection-dropdown-btn {
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.collection-dropdown-btn:hover {
    background: #374151;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.collection-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.collection-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.collection-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid #374151;
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: #374151;
    color: #3b82f6;
}

.dropdown-item[data-collection="sportsevents"]:hover,
.dropdown-item[data-collection="sportsevents"].active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.37), rgba(59, 131, 246, 0));
    color: #ef4444;
}

.dropdown-item[data-collection="drone"]:hover,
.dropdown-item[data-collection="drone"].active {
    background: linear-gradient(135deg, rgba(55, 158, 255, 0.308), rgba(59, 131, 246, 0));
    color: #44e4ef;
}

.dropdown-item[data-collection="cityphotos"]:hover,
.dropdown-item[data-collection="cityphotos"].active {
    background: linear-gradient(135deg, rgba(184, 184, 184, 0.432), rgba(59, 131, 246, 0));
    color: #ffffff;
}

.dropdown-item[data-collection="3drender"]:hover,
.dropdown-item[data-collection="3drender"].active {
    background: linear-gradient(135deg, rgba(255, 160, 35, 0.432), rgba(59, 131, 246, 0));
    color: #ff8e25;
}

.dropdown-item[data-collection="cover"]:hover,
.dropdown-item[data-collection="cover"].active {
    background: linear-gradient(135deg, rgba(235, 255, 53, 0.281), rgba(59, 131, 246, 0));
    color: #b8ca18;
}

.dropdown-item[data-collection="other"]:hover,
.dropdown-item[data-collection="other"].active {
    background: linear-gradient(135deg, rgba(53, 255, 35, 0.432), rgba(59, 131, 246, 0));
    color: #71ff84;
}

.dropdown-item[data-collection="tutte"]:hover,
.dropdown-item[data-collection="tutte"].active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.37), rgba(55, 158, 255, 0.308), rgba(184, 184, 184, 0.432), rgba(255, 160, 35, 0.432), rgba(235, 255, 53, 0.281), rgba(53, 255, 35, 0.432), rgba(59, 131, 246, 0));
    color: #ffffff;
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.breadcrumb-item {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover,
.breadcrumb-item.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Back Button */
.back-btn {
    position: sticky;
    top: 100px;
    left: 1rem;
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem;
    width: fit-content;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.back-btn:hover {
    background: rgba(55, 65, 81, 0.9);
    color: #3b82f6;
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* Subfolder Grid */
.subfolder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
    margin: 0 auto;
}

.subfolder-item {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subfolder-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.subfolder-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.subfolder-item:hover img {
    transform: scale(1.1);
}

.subfolder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
    padding: 2.5rem 2rem 2rem;
    transform: translateY(0);
}

.subfolder-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.subfolder-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.photo-count {
    font-size: 0.8rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

/* Special styling for Sports Events subfolders */
.subfolder-item[data-collection="sportsevents"] .photo-count {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.subfolder-item[data-collection="sportsevents"]:hover {
    box-shadow: 0 25px 50px rgba(239, 68, 68, 0.3);
}

/* Special styling for Drone subfolders */
.subfolder-item[data-collection="drone"] .photo-count {
    color: #0edada;
    background: rgba(16, 185, 185, 0.2);
}

.subfolder-item[data-collection="drone"]:hover {
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.3);
}

/* Photo Collage - Griglia dense per righe senza buchi */
.photo-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 2rem 1rem;
    margin: 0 auto;
    grid-auto-flow: row dense;
    grid-auto-rows: minmax(150px, auto);
}

.collage-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Aspect ratio di default per prevenire il layout shift */
    aspect-ratio: 3/2;
    background: #1f2937;
}

/* Le foto verticali occupano più spazio verticale */
.collage-item.vertical {
    grid-row: span 2;
}

.collage-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0;
}

.collage-item img.loaded {
    opacity: 1;
}

.collage-item.vertical {
    aspect-ratio: 2/3;
}

.collage-item:hover img {
    transform: scale(1.05);
}

.collage-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #374151;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.collage-item img.loaded + ::before,
.collage-item:has(img.loaded)::before {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.collage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.collage-item:hover .collage-overlay {
    transform: translateY(0);
}

.collage-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.50rem;
}

.collage-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.no-photos {
    text-align: center;
    color: #9ca3af;
    font-size: 1.2rem;
    padding: 4rem 2rem;
}

.no-photos h3 {
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.no-photos small {
    color: #6b7280;
    font-family: 'Courier New', monospace;
    background: #1f2937;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
}

/* Photo Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #111111;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: block;
}

.modal.active .modal-content {
    transform: scale(1);
}

#modalImage {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 200px); /* Lascia spazio per info e controlli */
    object-fit: contain;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}
.modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #3b82f6;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 20;
}

.modal-close:hover {
    background: #2563eb;
}
.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

#modalImage {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    display: block;
}
.modal-info {
    padding: 2rem;
    background: #111111;
    min-height: 200px;
}

.modal-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.modal-info p {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.exif-info {
    font-size: 0.8rem;
    color: #6b7280;
    padding: 1rem;
    background: #1f2937;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #1f2937;
    position: sticky;
    bottom: 0;
    background: #111111;
    z-index: 10;
}

.modal-nav-btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-nav-btn:hover:not(:disabled) {
    background: #2563eb;
}

.modal-nav-btn:disabled {
    background: #374151;
    color: #6b7280;
    cursor: not-allowed;
}

.modal-counter {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Page Sections */
.page {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* About Page */
.about-hero {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.about-intro {
    font-size: 1.2rem;
    color: #3b82f6;
    margin-bottom: 2rem;
}

.about-bio p {
    margin-bottom: 1.5rem;
    color: #9ca3af;
    line-height: 1.8;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.contact-info p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    color: #e5e7eb;
    font-weight: 600;
}

.contact-item a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #60a5fa;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #374151;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Contact Form */
.contact-form {
    background: #111111;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1f2937;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Collection-specific styles */
.collection-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collection-badge.sports {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.collection-badge.drone {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.collection-badge.city {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.collection-badge.render {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.collection-badge.cover {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.collection-badge.other {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .navbar {
        display: none;
    }
    
    .sidebar {
        display: block;
    }
    
    .main-content {
        margin-left: 280px;
        padding-top: 2rem;
    }
    
    .mobile-collections {
        display: none;
    }
    
    .subfolder-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        padding: 2rem;
        margin: 0 auto;
    }
    
    /* 1 elemento: occupa tutto */
    .subfolder-grid:has(.subfolder-item:nth-child(1):last-child) {
        grid-template-columns: 1fr;
    }
    
    /* 2 elementi: occupano 50% ciascuno */
    .subfolder-grid:has(.subfolder-item:nth-child(2):last-child) {
        grid-template-columns: 1fr 1fr;
    }
    
    /* 4 elementi: primi 3 al 33%, il 4° al 100% */
    .subfolder-grid:has(.subfolder-item:nth-child(4):last-child) .subfolder-item:nth-child(4) {
        grid-column: 1 / -1;
    }
    
    /* 5 elementi: primi 3 al 33%, 4° e 5° al 50% */
    .subfolder-grid:has(.subfolder-item:nth-child(5):last-child) .subfolder-item:nth-child(4) {
        grid-column: auto;
    }
    
    /* Fallback per browser che non supportano :has() */
    @supports not selector(:has(*)) {
        .subfolder-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
    }
    
    .photo-collage {
        columns: 4;
        column-gap: 0.75rem;
        padding: 2rem;
    }
    
    .back-btn {
        left: 300px;
    }
    
    .page {
        margin-left: 280px;
        padding: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .subfolder-grid {
        gap: 3rem;
        padding: 3rem 2rem;
    }
    
    .photo-collage {
        columns: 4;
        column-gap: 1rem;
    }
    
    .about-hero {
        gap: 4rem;
    }
    
    .about-portrait {
        width: 250px;
        height: 250px;
    }
    
    .about-text h1 {
        font-size: 3rem;
    }
    
    .contact-grid {
        gap: 5rem;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .subfolder-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .photo-collage {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
        padding: 1rem;
    }
    
    /* Le foto orizzontali occupano tutta la riga */
    .collage-item:not(.vertical) {
        grid-column: 1 / -1;
    }
    
    /* Le foto verticali rimangono nella loro colonna */
    .collage-item.vertical {
        grid-column: auto;
    }
    
    .subfolder-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .subfolder-overlay h3 {
        font-size: 1.2rem;
    }
    
    .back-btn {
        top: 80px;
        margin: 0.5rem;
    }
    
    .breadcrumb {
        padding: 0.5rem 1rem 0;
        font-size: 0.8rem;
    }
    
    .about-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-portrait {
        width: 150px;
        height: 150px;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-navigation {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .modal-nav-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subfolder-item,
.collage-item {
    animation: fadeInUp 0.6s ease forwards;
}

.subfolder-item:nth-child(1) { animation-delay: 0.1s; }
.subfolder-item:nth-child(2) { animation-delay: 0.2s; }
.subfolder-item:nth-child(3) { animation-delay: 0.3s; }
.subfolder-item:nth-child(4) { animation-delay: 0.4s; }
.subfolder-item:nth-child(5) { animation-delay: 0.5s; }
.subfolder-item:nth-child(6) { animation-delay: 0.6s; }
.subfolder-item:nth-child(7) { animation-delay: 0.7s; }
.subfolder-item:nth-child(8) { animation-delay: 0.8s; }

/* Enhanced hover effects for different collections */
.subfolder-item[data-collection="sportsevents"]:hover .subfolder-overlay h3 {
    color: #ef4444;
}

.subfolder-item[data-collection="drone"]:hover .subfolder-overlay h3 {
    color: #10b981;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .mobile-collections {
        display: none;
    }
    
    .main-content,
    .page {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Image Protection */
img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -o-user-drag: none;
}

.subfolder-item,
.collage-item {
    pointer-events: auto;
}

/* Aggiungi solo questo al tuo CSS esistente */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img {
    will-change: transform;
}

.collage-item:hover img {
    will-change: auto;
}

.viewing-suggestion {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
    border-top: 2px solid rgba(59, 130, 246, 0.4);
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
    padding: 0.75rem 2rem;
    margin: 0 0 2rem 0;
    text-align: center;
    color: #e5e7eb;
    font-size: 0.9rem;
    width: 100%;
    position: relative;
    backdrop-filter: blur(5px);
}

.viewing-suggestion strong {
    color: #3b82f6;
    font-weight: 600;
}

@media (min-width: 768px) {
    .viewing-suggestion {
        position: sticky;
        top: 0;
        z-index: 5;
        margin: -2rem -2rem 2rem -2rem;
        padding: 0.6rem 2rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        font-size: 0.85rem;
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .viewing-suggestion {
        margin: 0 1rem 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

.suggestion-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; /* Aumentato da 16px */
    padding: 1.5rem 2.5rem; /* Aumentato da 1rem 2rem */
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    width: auto;
}

.suggestion-banner.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb;
    font-size: 1rem; /* Aumentato da 0.85rem */
    gap: 1.5rem; /* Aumentato da 1rem */
}

.banner-content strong {
    color: #3b82f6;
}

.banner-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    font-size: 1.4rem; /* Aumentato da 1.2rem */
    cursor: pointer;
    padding: 0.4rem 0.7rem; /* Aumentato da 0.25rem 0.5rem */
    border-radius: 10px; /* Aumentato da 8px */
    line-height: 1;
    transition: all 0.3s ease;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #3b82f6;
}

@media (max-width: 767px) {
    .suggestion-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        padding: 1.25rem 1.5rem;
        max-width: none;
        width: auto;
    }
    
    .banner-content {
        font-size: 0.95rem;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .banner-content span {
        flex: 1;
        line-height: 1.4;
    }
    
    .banner-close {
        flex-shrink: 0;
        padding: 0.5rem 0.8rem;
        font-size: 1.3rem;
    }
}