/* ============================================================
   LCF Media Gallery - stile coerente al portale
   ============================================================ */

.lcf-media-gallery-page {
    --lcf-primary: #0093d0;
    --lcf-primary-dk: #0078a8;
    --lcf-dark: #0f172a;
    --lcf-text: #1e293b;
    --lcf-text-muted: #64748b;
    --lcf-bg: #f1f5f9;
    --lcf-white: #fff;
    --lcf-border: #e2e8f0;
    --lcf-radius: 12px;
    --lcf-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --lcf-shadow-hov: 0 6px 24px rgba(0,0,0,0.12);
    box-sizing: border-box;
}

.lcf-media-gallery-page *,
.lcf-media-gallery-page *::before,
.lcf-media-gallery-page *::after {
    box-sizing: border-box;
}

/* Hero */
.lcf-mg-hero {
    background: var(--lcf-dark);
    padding: 64px 20px;
    text-align: center;
}

.lcf-mg-hero__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.lcf-mg-hero__title {
    font-family: "Montserrat", sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Intro */
.lcf-mg-intro {
    background: var(--lcf-white);
    padding: 32px 0;
    border-bottom: 1px solid var(--lcf-border);
}

.lcf-mg-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.lcf-mg-intro__text {
    font-family: "Montserrat", "Lato", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lcf-text);
    margin: 0;
}

/* Main grid */
.lcf-mg-main {
    background: var(--lcf-bg);
    padding: 48px 0 80px;
}

.lcf-mg-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) );
    gap: 24px;
}

.lcf-mg-card {
    background: var(--lcf-white);
    border-radius: var(--lcf-radius);
    box-shadow: var(--lcf-shadow);
    border: 1px solid var(--lcf-border);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.lcf-mg-card:hover {
    box-shadow: var(--lcf-shadow-hov);
    transform: translateY(-2px);
}

.lcf-mg-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.lcf-mg-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--lcf-bg);
}

.lcf-mg-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lcf-mg-card:hover .lcf-mg-card__image img {
    transform: scale(1.05);
}

.lcf-mg-card__content {
    padding: 20px;
}

.lcf-mg-card__title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--lcf-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.lcf-mg-card__date {
    display: block;
    font-size: 13px;
    color: var(--lcf-text-muted);
    margin-bottom: 12px;
}

.lcf-mg-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lcf-primary);
}

.lcf-mg-card__cta:hover {
    color: var(--lcf-primary-dk);
}

/* Placeholder quando non c'e thumbnail */
.lcf-mg-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lcf-bg);
    color: var(--lcf-text-muted);
}

/* Badge lucchetto per gallery protette */
.lcf-mg-card__image {
    position: relative;
}

.lcf-mg-card__lock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lcf-mg-empty {
    font-size: 16px;
    color: var(--lcf-text-muted);
    text-align: center;
    padding: 48px 20px;
    margin: 0;
}

@media (max-width: 600px) {
    .lcf-mg-hero__title { font-size: 32px; }
    .lcf-mg-grid { grid-template-columns: 1fr; }
}
