/* ==========================================================================
   STILI DI BASE CONDIVISI
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0f19;
    color: #ffffff;
    line-height: 1.6;
}

/* ==========================================================================
   NAVBAR & LOGO
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container .site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.menu-trigger {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.menu-trigger:hover {
    color: #38bdf8;
}

/* Spacer per evitare che la navbar copra i contenuti */
header {
    margin-bottom: 70px;
}

/* ==========================================================================
   SIDEBAR MENU SLIDEOUT
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #020617;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    padding: 20px;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: #38bdf8;
}

.close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 15px;
}

.sidebar-links a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-links a:hover, 
.sidebar-links a.active {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

/* Oscuramento Sfondo overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1500;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   STRUTTURA LAYOUT SPOTTING (GALLERIA)
   ========================================================================== */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    border-left: 5px solid #38bdf8;
    padding-left: 15px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Schede dei Report */
.report-card {
    background-color: #111827;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    width: 100%;
    height: 210px;
    overflow: hidden;
    cursor: pointer;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-image-wrapper:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-specs {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.card-specs p {
    margin-bottom: 6px;
}

.spec-label {
    color: #38bdf8;
    font-weight: 500;
}

/* ==========================================================================
   SCHEDA SEGNAPOSTO: MORE PHOTOS COMING SOON
   ========================================================================== */
.placeholder-card {
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    border-radius: 10px;
    border: 2px dashed rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 350px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    color: rgba(56, 189, 248, 0.4);
    margin-bottom: 15px;
    animation: pulse 2s infinite ease-in-out;
}

.placeholder-title {
    font-size: 1.4rem;
    color: #f8fafc;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* ==========================================================================
   LIGHTBOX COMPLETO
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 3000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-container {
    max-height: 70vh;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    width: 100%;
}

.lightbox-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.lightbox-specs {
    font-size: 0.9rem;
    color: #94a3b8;
}

.lightbox-specs p {
    display: inline-block;
    margin: 0 10px;
}

/* Frecce e pulsante chiudi */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.lightbox-arrow:hover {
    background: rgba(56, 189, 248, 0.3);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* ==========================================================================
   FOOTER CONDIVISO
   ========================================================================== */
.site-footer {
    background-image: linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.95)), url('footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-heading {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: #38bdf8;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-email a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-email a:hover {
    color: #ffffff;
}

.scroll-to-top {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s;
}

.scroll-to-top:hover {
    background-color: #38bdf8;
}

.footer-copyright {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUT GLOBALE
   ========================================================================== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .lightbox-arrow {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}