/**
 * Shinobi Logo Carousel – Frontend Styles v1.7.0
 */

/* ── Pool oculto ── */
.lg-items-pool {
    display: none !important;
}

/* ── Wrapper principal ── */
.lg-carousel {
    width: 100%;
    box-sizing: border-box;
}

/* ── Stage: contém track + setas absolutas ── */
.lg-stage {
    position: relative;
    width: 100%;
    /* padding lateral para dar espaço às setas */
    padding: 0 56px;
    box-sizing: border-box;
}

/* ── Track ── */
.lg-carousel-track {
    width: 100%;
    position: relative;
}

/* ── Páginas ── */
.lg-page          { display: none; opacity: 0; transition: opacity 0.22s ease; }
.lg-page--active  { display: block; opacity: 1; }
.lg-page--leaving { display: block; opacity: 0; pointer-events: none; }

/* ── Grade ── */
.lg-grid-wrapper {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

/* ── Item ── */
.lg-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* ── Link ── */
.lg-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* ── Imagem ── */
.lg-logo-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ── Hover ── */
.lg-has-hover .lg-logo-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transform: translateY(-2px);
}
.lg-has-hover .lg-logo-item:hover .lg-logo-img {
    opacity: 0.82;
    transform: scale(1.04);
}

/* ─────────────────────────────────────────────
   SETAS — posição absoluta nas laterais
   ───────────────────────────────────────────── */
.lg-arrow {
    /* reset total de estilos de botão */
    all: unset;
    box-sizing: border-box;

    /* posicionamento */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    /* visual */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #d0d0d0;
    color: #444444;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;

    transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}

.lg-arrow-prev { left: 0; }
.lg-arrow-next { right: 0; }

.lg-arrow:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.lg-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.lg-arrow[disabled] {
    opacity: 0.25;
    cursor: not-allowed;
}

.lg-arrow[disabled]:hover {
    background-color: #ffffff;
    border-color: #d0d0d0;
    color: #444444;
    transform: translateY(-50%);
}

/* Escondido pelo JS quando só 1 página */
.lg-arrow.lg-hidden {
    display: none !important;
}

/* ─────────────────────────────────────────────
   FORMATOS (classe no .lg-carousel via widget)
   ───────────────────────────────────────────── */
.lg-nav-quadrado .lg-arrow {
    border-radius: 6px;
}
.lg-nav-quadrado .lg-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.lg-nav-sem_fundo .lg-arrow {
    background-color: transparent;
    border: none;
    font-size: 24px;
    width: auto;
    height: auto;
    padding: 4px 8px;
}
.lg-nav-sem_fundo .lg-arrow:hover {
    background-color: transparent;
    color: #000000;
    transform: translateY(-50%) scale(1.2);
}

/* ─────────────────────────────────────────────
   DOTS
   ───────────────────────────────────────────── */
.lg-nav-dots-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 16px;
}

.lg-nav-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lg-dot {
    all: unset;
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d0d0;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.lg-dot--active {
    background-color: #1a1a1a;
    transform: scale(1.35);
}
.lg-dot:hover:not(.lg-dot--active) {
    background-color: #888;
}

/* ── Sem logos ── */
.lg-no-logos {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
}

/* ─────────────────────────────────────────────
   RESPONSIVO
   ───────────────────────────────────────────── */
@media screen and (max-width: 767px) {
    .lg-stage        { padding: 0 40px; }
    .lg-logo-item    { padding: 12px; min-height: 70px; }
    .lg-arrow        { width: 32px; height: 32px; font-size: 13px; }
}

@media screen and (max-width: 480px) {
    .lg-stage        { padding: 0 32px; }
    .lg-logo-item    { padding: 10px; min-height: 60px; border-radius: 6px; }
    .lg-arrow        { width: 28px; height: 28px; font-size: 12px; }
}
