/* 
Theme Name: S99 Child
Theme URI: https://studio99.sm
Description: S99 Child is a child theme of S99, created by Studio99 team
Author: Studio99 Team
Author URI: https://studio99.sm
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

.elementor-widget-off-canvas {
    --e-off-canvas-animation-duration: 500ms;
}


/* =========================
   PAGINAZIONE
   ========================= */

.servizi-carousel .swiper-pagination {
    bottom: -35px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Pallini */
.servizi-carousel .swiper-pagination-bullet {
    width: 20px;
    height: 5px;
    margin: 0 !important;
    padding: 0;
    
    border-radius: 10px;
    background: #2878c9;
    opacity: 1;
    
    transition: all 0.3s ease;
}

/* Pallino attivo più lungo */
.servizi-carousel .swiper-pagination-bullet-active {
    width: 40px;
    background: #00358C;
}

/* ========================================================
   BEFORE / AFTER SLIDER
======================================================== */

img-comparison-slider {
    outline: none !important;
    width: 100% !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}

img-comparison-slider:focus,
img-comparison-slider:focus-visible {
    outline: none !important;
}

img-comparison-slider {
    --divider-width: 4px;
}


/* ========================================================
   ELEMENTOR LOOP GRID - 3 COLONNE
======================================================== */

@media (min-width: 1024px) and (max-width: 1280px) {

    .elementor-element-c92e995 .elementor-loop-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }

}


/* ========================================================
   SLIDER PRIMA / DOPO
======================================================== */

.s99-ba {
    --s99-ba-height: 700px;
    --s99-ba-line-color: #fff;
    --s99-ba-handle-size: 48px;
    --s99-ba-split: 50%;

    position: relative;
    width: 100%;
    height: var(--s99-ba-height);

    border-radius: 20px !important;
    overflow: hidden !important;

    user-select: none;
    touch-action: pan-y;
    cursor: ew-resize;
}


/* ========================================================
   IMMAGINI
======================================================== */

.s99-ba__after,
.s99-ba__before {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

.s99-ba__before {
    clip-path: inset(0 50% 0 0);
}

.s99-ba__after img,
.s99-ba__before img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    pointer-events: none;
}


/* ========================================================
   LINEA VERTICALE
======================================================== */

.s99-ba::before {
    content: "";

    position: absolute;
    top: 0;
    left: var(--s99-ba-split);

    width: 2px;
    height: 100%;

    background: var(--s99-ba-line-color);

    transform: translateX(-50%);

    pointer-events: none;
    z-index: 2;
}


/* ========================================================
   MANIGLIA CIRCOLARE
======================================================== */

.s99-ba__handle {
    position: absolute;

    top: 50%;
    left: var(--s99-ba-split);

    width: var(--s99-ba-handle-size);
    height: var(--s99-ba-handle-size);

    background: #fff;

    border-radius: 50% !important;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

    z-index: 3;

    pointer-events: none;
}


/* ========================================================
   FRECCE - SOLO PUNTE
======================================================== */

.s99-ba__arrow {
    position: relative;

    width: 22px;
    height: 18px;

    display: block;

    font-size: 0;
    line-height: 0;

    pointer-events: none;
}


/* ========================================================
   PUNTA SINISTRA
======================================================== */

.s99-ba__arrow::before {
    content: "";

    position: absolute;

    left: 2px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-left: 2px solid #111;
    border-bottom: 2px solid #111;

    transform: translateY(-50%) rotate(45deg);
}


/* ========================================================
   PUNTA DESTRA
======================================================== */

.s99-ba__arrow::after {
    content: "";

    position: absolute;

    right: 2px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 2px solid #111;
    border-top: 2px solid #111;

    transform: translateY(-50%) rotate(45deg);
}


/* ========================================================
   MOBILE
======================================================== */

@media (max-width: 767px) {

    .s99-ba {
        --s99-ba-height: 500px;
        border-radius: 20px !important;
    }

    .s99-ba__handle {
        width: 42px;
        height: 42px;
    }

    .s99-ba__arrow {
        width: 20px;
        height: 16px;
    }

    .s99-ba__arrow::before,
    .s99-ba__arrow::after {
        width: 6px;
        height: 6px;
    }

}


/* ========================================
   MENU OFF CANVAS
   ======================================== */

/* Centra il contenitore delle voci */
#menu-offcanvas ul {
    text-align: center !important;
}

/* Centra le voci principali */
#menu-offcanvas .elementor-item {
    text-align: center !important;
    justify-content: center !important;
}

/* ========================================
   VOCI DEL MENU A DISCESA
   ======================================== */

#menu-offcanvas .elementor-sub-item {
    text-align: center !important;
    justify-content: center !important;

    /* Dimensione */
    font-size: 18px !important;

    /* Prima lettera maiuscola, resto minuscolo */
    text-transform: capitalize !important;
}

/* Centra gli elementi della lista */
#menu-offcanvas li {
    text-align: center !important;
}

/* Freccia */
#menu-offcanvas .sub-arrow {
    margin-left: -7px !important;
    top: -4px; !important;
}

