/* Studio Up Web — Schede Fullpage per Elementor */

/* Stato pre-init: blocca lo scroll della pagina per evitare il flash di contenuto.
   Se il JS non parte (es. errore), un fallback rimette overflow auto dopo poco. */
html.efc-html,
body.efc-enabled {
    margin: 0;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

/* Viewport: la finestra fissa dentro cui scorrono le schede */
.efc-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh; /* mobile: tiene conto delle barre del browser */
    overflow: hidden;
}

/* Il contenitore che scorre */
.efc-slider {
    will-change: transform;
    transition: transform var(--efc-speed, 700ms) cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Verticale: le schede impilate una sotto l'altra */
.efc-slider.efc-vertical {
    display: block;
}

/* Orizzontale: schede in fila */
.efc-slider.efc-horizontal {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    height: 100svh;
}

/* Ogni scheda occupa tutto lo schermo. Se il contenuto è più alto,
   la scheda scorre internamente prima di passare alla successiva. */
.efc-card {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
}

.efc-slider.efc-horizontal > .efc-card {
    flex: 0 0 100vw;
    width: 100vw;
}

/* ---------- Puntini di navigazione ---------- */
.efc-dots {
    position: fixed;
    z-index: 9999;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.efc-dots.pos-right,
.efc-dots.pos-left {
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
}

.efc-dots.pos-right {
    right: 22px;
}

.efc-dots.pos-left {
    left: 22px;
}

.efc-dots.pos-bottom {
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
}

.efc-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    opacity: 0.65;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference; /* visibile su sfondi chiari e scuri */
}

.efc-dot:hover {
    opacity: 1;
}

.efc-dot.is-active {
    opacity: 1;
    background: currentColor;
    transform: scale(1.25);
}

/* Etichetta col nome scheda accanto al puntino */
.efc-dot-label {
    position: absolute;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.efc-dots.pos-right .efc-dot-label {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.efc-dots.pos-left .efc-dot-label {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.efc-dots.pos-bottom .efc-dot-label {
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
}

/* Mostra l'etichetta al passaggio del mouse, oppure sempre se richiesto */
.efc-dot {
    position: relative;
}

.efc-dot:hover .efc-dot-label,
.efc-dots.has-labels .efc-dot.is-active .efc-dot-label {
    opacity: 1;
}

/* ---------- Contatore (es. 01 / 06 + nome scheda) ---------- */
.efc-counter {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
}

.efc-counter.pos-bottom-left {
    left: 28px;
    bottom: 28px;
}

.efc-counter.pos-bottom-right {
    right: 28px;
    bottom: 28px;
}

.efc-counter.pos-top-left {
    left: 28px;
    top: 28px;
}

.efc-counter.pos-top-right {
    right: 28px;
    top: 28px;
}

.efc-counter-index {
    font-size: 26px;
    font-weight: 700;
}

.efc-counter-total {
    opacity: 0.7;
}

.efc-counter-title {
    margin-left: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ---------- Frecce avanti/indietro ---------- */
.efc-arrow {
    position: fixed;
    left: 50%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.efc-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.efc-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.efc-arrow.efc-prev {
    top: 22px;
}

.efc-arrow.efc-next {
    bottom: 22px;
}

.efc-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

/* Orizzontale: frecce ai lati */
.efc-dir-horizontal .efc-arrow {
    top: 50%;
    left: auto;
    margin-left: 0;
    margin-top: -22px;
}

.efc-dir-horizontal .efc-arrow.efc-prev {
    left: 22px;
}

.efc-dir-horizontal .efc-arrow.efc-next {
    right: 22px;
}
