/* ========================================================
   Navros Slider — Frontend CSS  v2.0.0
   Peek real via track translateX (mesma técnica Swiper/Cobasi)
   ======================================================== */

.navros-slider-outer {
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Wrapper normal */
.navros-slider-wrapper {
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ── Viewport ──
   Modo normal: overflow hidden (clip dos slides)
   Modo peek:   overflow visible (deixa track vazar)
   O clip é feito pelo próprio outer no modo peek        */
.navros-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.navros-peek .navros-viewport {
    overflow: visible;
}

/* No modo peek o OUTER faz o clip com padding lateral */
.navros-peek {
    overflow: hidden;   /* clip final */
    padding-left: var(--ns-peek, 60px);
    padding-right: var(--ns-peek, 60px);
    box-sizing: border-box;
}

/* ── Track ── */
.navros-slider__track {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;   /* clip normal — sobrescrito pelo JS no peek */
    border-radius: var(--ns-radius, 0px);
}

/* No peek o track é flex e não clipa */
.navros-peek .navros-slider__track {
    overflow: visible;
    border-radius: var(--ns-radius, 0px);
}

/* ========================================================
   SLIDES — modo normal (position absolute)
   ======================================================== */
.navros-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.navros-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Slides no modo peek: position relative, em linha */
.navros-peek .navros-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    inset: auto;
    z-index: auto;
}

.navros-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.navros-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.navros-slide__content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    box-sizing: border-box;
}

.navros-slide__inner { max-width: 760px; width: 100%; }

.navros-slide__title {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.navros-slide__subtitle {
    margin: 0;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
}

.navros-slide__btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.navros-slide__btn {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    color: #111;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
}
.navros-slide__btn:hover { transform: translateY(-2px); text-decoration: none !important; }

.navros-btn--free {
    position: absolute !important;
    z-index: 5;
    margin: 0 !important;
    cursor: grab;
    transform: translate(-50%, -50%);
}
.navros-btn--free:active { cursor: grabbing; }
.navros-btn--free.is-dragging {
    opacity: 0.85;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
    transition: none !important;
}
body:not(.elementor-editor-active) .navros-btn--free { cursor: pointer; }

/* ========================================================
   TRANSIÇÕES — modo normal
   ======================================================== */
.navros-transition--slide .navros-slide {
    opacity: 1 !important;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}
.navros-transition--slide .navros-slide.is-active {
    transform: translateX(0) !important;
    pointer-events: auto;
}
.navros-transition--slide .navros-slide.is-leaving {
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.navros-transition--fade .navros-slide { transition: opacity 0.7s ease; }
.navros-transition--fade .navros-slide.is-active { opacity: 1; pointer-events: auto; }

.navros-transition--zoom .navros-slide { transform: scale(1.08); transition: transform 0.8s ease, opacity 0.8s ease; }
.navros-transition--zoom .navros-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }

/* ========================================================
   SETAS
   ======================================================== */
.navros-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}
.navros-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.navros-arrow svg { width: 20px; height: 20px; fill: #333; display: block; flex-shrink: 0; }

/* Peek: setas no espaço do padding do outer */
.navros-peek .navros-arrow--prev { left: calc(var(--ns-peek, 60px) / 2 - 20px); }
.navros-peek .navros-arrow--next { right: calc(var(--ns-peek, 60px) / 2 - 20px); }

/* Normal */
.navros-slider-outer:not(.navros-peek) .navros-arrow--prev { left: 14px; }
.navros-slider-outer:not(.navros-peek) .navros-arrow--next { right: 14px; }

/* ========================================================
   DOTS
   ======================================================== */
.navros-dots-outer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 12px 0 2px;
}
.navros-dots-inner {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.navros-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #bbb;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
    flex-shrink: 0;
}
.navros-dot.is-active { background: #555; width: 22px; }
.navros-dot:hover:not(.is-active) { background: #888; }
.navros-dots-inner .navros-dot           { background: rgba(255,255,255,0.5); }
.navros-dots-inner .navros-dot.is-active { background: #fff; width: 22px; }
.navros-dots-inner .navros-dot:hover:not(.is-active) { background: rgba(255,255,255,0.8); }

/* ========================================================
   CONTADOR
   ======================================================== */
.navros-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

/* ========================================================
   RESPONSIVO
   ======================================================== */
@media (max-width: 768px) {
    .navros-slider__track { height: 220px !important; }
    .navros-peek { padding-left: 24px !important; padding-right: 24px !important; }
    .navros-peek .navros-arrow--prev { left: 2px; }
    .navros-peek .navros-arrow--next { right: 2px; }
    .navros-slide__title    { font-size: 1.1rem; }
    .navros-slide__subtitle { font-size: 0.82rem; }
    .navros-slide__btn      { padding: 9px 18px; font-size: 0.82rem; }
    .navros-arrow           { width: 32px; height: 32px; }
    .navros-arrow svg       { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .navros-transition--slide .navros-slide,
    .navros-transition--fade  .navros-slide,
    .navros-transition--zoom  .navros-slide { transition: none !important; }
}

/* ── Outer radius — borda arredondada no container inteiro ── */
.navros-peek {
    border-radius: calc(var(--ns-radius, 10px) + 4px);
}

/* ========================================================
   MODO IMAGEM REAL (tag <img> — altura automática)
   ======================================================== */

/* No modo img o track NÃO tem altura fixa */
.navros-slide--img ~ .navros-slide,
.navros-slide--img {
    /* altura determinada pela imagem */
}

/* Track em modo img: altura auto */
.navros-peek .navros-slider__track:has(.navros-slide--img),
.navros-slider__track:has(.navros-slide--img) {
    height: auto !important;
}

/* Slide img: position relativa (não absoluta) no modo normal */
.navros-transition--slide .navros-slide--img,
.navros-transition--fade  .navros-slide--img,
.navros-transition--zoom  .navros-slide--img {
    position: relative;
    inset: auto;
}

/* Link que envolve a imagem */
.navros-slide__img-link {
    display: block;
    width: 100%;
    line-height: 0;
    text-decoration: none;
}

.navros-slide__img-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

/* No peek, slide img fica flex como os demais */
.navros-peek .navros-slide--img {
    position: relative;
    flex-shrink: 0;
}
