/* ============================================================
   Wellcum Gallery — Frontend Styles v2.2.0
   ============================================================ */

.wecu-browser {
    width: 100%;
    font-family: inherit;
}

/* BREADCRUMB */
.wecu-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: none;
    border: none;
    padding: 0;
}

.wecu-breadcrumb button {
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.35;
    cursor: pointer;
    transition: opacity 0.2s, color 0.2s;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.wecu-breadcrumb button:hover:not(:disabled) { opacity: 0.7; }

.wecu-breadcrumb button.active,
.wecu-breadcrumb button:disabled {
    color: #E6007E;
    opacity: 1;
    cursor: default;
}

.wecu-breadcrumb .sep {
    font-size: 1.4em;
    font-weight: 300;
    color: #E6007E;
    opacity: 0.6;
}

/* GRID */
.wecu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    animation: wecuFadeIn 0.4s ease;
}

@media (max-width: 600px) {
    .wecu-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}

@keyframes wecuFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* CARD */
.wecu-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: #2a2626;
    outline: none;
}

.wecu-card:focus-visible {
    outline: 2px solid #E6007E;
    outline-offset: 3px;
}

.wecu-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.75);
}

.wecu-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

.wecu-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.wecu-card-count {
    font-size: 0.75em;
    opacity: 0.7;
    font-weight: 400;
    margin-top: 2px;
}

.wecu-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.wecu-card:hover .wecu-card-overlay { opacity: 1; }

.wecu-card-overlay span {
    background: #E6007E;
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* LEVEL TITLE */
.wecu-level-title {
    color: #fff;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.wecu-level-title span { color: #E6007E; }

/* LIGHTBOX */
.wecu-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.wecu-lightbox.open { display: flex; }

.wecu-lb-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wecu-lightbox img {
    max-width: 88vw;
    max-height: 82vh;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.8);
    transition: opacity 0.25s ease;
}

.wecu-lightbox img.fade { opacity: 0; }

.wecu-lb-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.wecu-lb-close:hover,
.wecu-lb-close:focus-visible { opacity: 1; outline: 2px solid #E6007E; }

.wecu-lb-prev,
.wecu-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    padding: 0 24px;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
    user-select: none;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    background: none;
    border: none;
    font-family: inherit;
}

.wecu-lb-prev:hover,
.wecu-lb-next:hover,
.wecu-lb-prev:focus-visible,
.wecu-lb-next:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.wecu-lb-prev { left: 0; }
.wecu-lb-next { right: 0; }

.wecu-lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    pointer-events: none;
}

.wecu-lb-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.wecu-lb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
}

.wecu-lb-dot.active {
    background: #E6007E;
    transform: scale(1.3);
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .wecu-card img,
    .wecu-card-overlay,
    .wecu-lightbox img,
    .wecu-lb-dot {
        transition: none !important;
        animation: none !important;
    }
    .wecu-grid {
        animation: none !important;
    }
}

/* ============================================================
   Wellcum Recent Posts — [wecu_recent_posts]
   Desktop: griglia 3 colonne | Mobile: slider swipe
   ============================================================ */

.wecu-rp-section {
    width: 100%;
}

/* Header sezione "Post Recenti" — titolo grande centrato */
.wecu-rp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}
.wecu-rp-eyebrow {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 10px;
}
.wecu-rp-title {
    font-size: 2.4em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.wecu-rp-divider {
    display: block;
    width: 48px;
    height: 2px;
    background: #E6007E;
    border-radius: 2px;
    margin-top: 14px;
}

/* Card più piccole — griglia centrata con max-width */
.wecu-rp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
}
.wecu-rp-mob { display: none; }

/* Card */
.wecu-rp-card {
    display: block;
    text-decoration: none;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.2s;
}
.wecu-rp-card:hover { border-color: rgba(230,0,126,0.4); }

.wecu-rp-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #2a2626;
}
.wecu-rp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.wecu-rp-card:hover .wecu-rp-photo img { transform: scale(1.04); }

.wecu-rp-footer {
    padding: 8px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.wecu-rp-name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wecu-rp-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.wecu-rp-date {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
}
.wecu-rp-count {
    font-size: 9px;
    font-weight: 700;
    color: #E6007E;
    background: rgba(230,0,126,0.12);
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Separatore — divide visivamente Recent Posts da Gallery */
.wecu-rp-separator {
    max-width: 680px;
    margin: 48px auto 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #E6007E 20%, #E6007E 80%, transparent 100%);
    opacity: 0.45;
}

/* Etichetta "GALLERY" sotto il separatore */
.wecu-rp-gallery-label {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 8px;
}
.wecu-rp-gallery-label span {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* MOBILE */
@media (max-width: 768px) {
    .wecu-rp-grid { display: none; }
    .wecu-rp-mob  { display: block; }

    .wecu-rp-track-wrap {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
    }
    .wecu-rp-track {
        display: flex;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    .wecu-rp-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .wecu-rp-arr {
        position: absolute;
        top: 42%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(255,255,255,0.88);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        font-size: 16px;
        color: #111;
        font-weight: 700;
        font-family: inherit;
        transition: opacity 0.2s;
    }
    .wecu-rp-arr:hover { opacity: 0.7; }
    .wecu-rp-prev { left: 10px; }
    .wecu-rp-next { right: 10px; }

    .wecu-rp-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
    }
    .wecu-rp-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.25);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background 0.2s, transform 0.2s;
    }
    .wecu-rp-dot.active {
        background: #E6007E;
        transform: scale(1.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wecu-rp-track,
    .wecu-rp-photo img,
    .wecu-rp-dot { transition: none !important; }
}
