/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}
#firma{
width:10%;
position:absolute;
top:45%;
left:45%;
}
/* Header */
.site-header {
    /*background: #000000;
    border-bottom: 1px solid #1a1a1a;*/
    padding: 2rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.9rem;
    color: #999999;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #cccccc;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ffffff;
}

/* Categorie */
.categories-section {
    padding: 1.5rem 1rem;
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    text-align: center;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cat-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cat-btn:hover {
    border-color: #666666;
    background-color: #252525;
}

.cat-btn.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Galleria - Mobile (1 colonna) */
.gallery-container {
    padding: 1rem;
    min-height: calc(100vh - 300px);
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
    background: #1a1a1a;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Galleria - Tablet (2 colonne) */
@media (min-width: 768px) {
    .site-header {
        padding: 2.5rem 2rem;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Galleria - Desktop (3 colonne) */
@media (min-width: 1025px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .photo-item {
        aspect-ratio: 1;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    padding: 1rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-info {
    width: 100%;
    text-align: center;
    color: #cccccc;
}

.lightbox-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.lightbox-info p {
    font-size: 0.9rem;
    color: #999999;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: #666666;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a1a;
	position: fixed;
    bottom: -1px;
    width: -webkit-fill-available;
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #666666;
    padding: 2rem;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}