/* Core hero layout */
.esfera-moe-hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 32px;
    border-radius: 36px;
    background: linear-gradient(135deg, #e5f4ef 0%, #f6fbf3 48%, #edf6ff 100%);
    overflow: hidden;
    position: relative;
    min-height: 560px;
}

.esfera-moe-title {
    margin: 0 0 24px 0;
    font-size: 2rem;
    line-height: 1.2;
    color: #1a3a32;
}

.esfera-moe-root {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    --card-w-desktop: 240px;
    --card-h-desktop: 165px;
    --card-w-mobile: 160px;
    --card-h-mobile: 110px;
    --card-w: var(--card-w-desktop);
    --card-h: var(--card-h-desktop);
}

.esfera-moe-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.esfera-moe-stage .esfera-moe-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

.esfera-moe-root.is-ready .esfera-moe-stage .esfera-moe-card {
    pointer-events: auto;
}

.esfera-moe-fallback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    width: 100%;
    height: 100%;
    align-content: center;
}

.esfera-moe-root.is-ready .esfera-moe-fallback-grid {
    display: none;
}

.esfera-moe-card {
    width: var(--card-w);
    height: var(--card-h);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(23, 74, 67, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    text-decoration: none;
}

.esfera-moe-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esfera-moe-card-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(24, 64, 58, 0.8);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.2;
    backdrop-filter: blur(6px);
}

.esfera-moe-card:focus-visible {
    outline: 3px solid #2c8f7b;
    outline-offset: 3px;
}

.esfera-moe-card:hover {
    box-shadow: 0 20px 45px rgba(23, 74, 67, 0.25);
}

.elementor-widget-container {
    width: 100%;
}

@media (max-width: 1024px) {
    .esfera-moe-hero {
        min-height: 440px;
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .esfera-moe-hero {
        min-height: 380px;
        padding: 24px 20px;
    }

    .esfera-moe-root {
        --card-w: var(--card-w-mobile);
        --card-h: var(--card-h-mobile);
    }

    .esfera-moe-title {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .esfera-moe-card {
        transition: none;
    }
}
