/* Custom styles for Gallery page */

/* ========================================= */
/* Gallery Page Styles */
/* ========================================= */

/* ============== HERO SECTION (GENERICA: FAQ & GALLERY) ================ */
.hero-page {
    position: relative;
    color: var(--text-white);
    padding: 120px 0 100px;
    text-align: center;
    overflow: hidden; /* Assicura che l'immagine non esca dai bordi */
}

.hero-page .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #0d1b31;
}

.hero-page .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 137, 190, 0.2); /* Overlay azzurro trasparente */
    z-index: -1;
}

.hero-page .hero-content {
    position: relative;
    z-index: 1;
}

.hero-page .hero-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-page .hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-page .hero-desc {
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-page {
        padding: 80px 0 60px;
    }
    .hero-page .hero-title {
        font-size: 36px;
    }
    .hero-page .hero-desc {
        font-size: 18px;
    }
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
    width: 100%;
}
.gallery-item {
    display: flex;
    flex-direction: column;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}
.gallery-caption {
    font-size: 14px;
    text-align: center;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .wpcf7-form-control-wrap {
        margin-bottom: 20px;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
