/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

@import url('blog-categories-tag-cloud.css');

/* Add your custom styles here */

@media (max-width: 900px){
    .elementor-posts--skin-cards article .elementor-post__card .elementor-post__text{
        padding: 0px 12px !important;
    }
}

#footer--ctn a{
    color: var(--e-global-color-primary) !important;
}

#footer--ctn a:hover{
    color: var(--e-global-color-text) !important;
}


/* ========== HOMEPAGE ========== */

.rotating-plate-img-animation--ctn{
    overflow: hidden !important; /* Nasconde i bordi fuori dal contenitore */
}





#wby_blog-categories-list .elementor-widget-container h2 {
    display: none !important;
}

/* Lista principale con scorrimento orizzontale */
#wby_blog-categories-list .elementor-widget-container ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 0 10px;
    list-style: none;

    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 10px;
    scroll-padding-right: 10px;
    scroll-snap-type: x mandatory;
}

/* Elementi della lista */
#wby_blog-categories-list .elementor-widget-container ul li {
    border-radius: 20px;
    padding: 8px 20px;
    transition: 0.5s;
    font-family: 'Open Sans';
    font-weight: 600;
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);

    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Primo elemento - evita il taglio a sinistra */
#wby_blog-categories-list .elementor-widget-container ul li:first-child {
    margin-left: 10px;
}

/* Hover sugli elementi */
#wby_blog-categories-list .elementor-widget-container ul li:hover,
#wby_blog-categories-list .elementor-widget-container ul .current-cat {
    background-color: var(--e-global-color-primary);
    cursor: pointer;
    transform: scale(0.98);
    color: #000;
}

/* Link all'interno degli elementi */
#wby_blog-categories-list .elementor-widget-container ul li:hover > a,
#wby_blog-categories-list .elementor-widget-container ul .current-cat > a {
    color: #000;
}

/* Stile generale dei link */
#wby_blog-categories-list .elementor-widget-container a {
    color: #FFFF;
    font-family: "Road Rage", Sans-serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0.8px;
}

/* Spazi iniziali e finali per evitare il taglio del primo elemento */
#wby_blog-categories-list .elementor-widget-container ul::before {
    content: "";
    flex: 0 0 80px; /* Spazio iniziale */
}

#wby_blog-categories-list .elementor-widget-container ul::after {
    content: "";
    flex: 0 0 10px; /* Spazio finale */
}

/* =============================== */
/* RESPONSIVE - TABLET (max 1024px) */
/* =============================== */
@media (max-width: 1024px) {

    #wby_blog-categories-list .elementor-widget-container ul li {
        font-size: 14px;
        padding: 5px 15px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }   

    #wby_blog-categories-list {
        overflow-x: hidden;
        position: relative;
    }

    #wby_blog-categories-list .elementor-widget-container ul {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        gap: 16px;
        padding: 0 10px;
        list-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 10px;
        scroll-padding-right: 10px;
    }

    /* Assicura che gli elementi non vengano ridimensionati */
    #wby_blog-categories-list .elementor-widget-container ul li {
        flex: 0 0 auto;
    }

    /* Spazi iniziali e finali per migliorare lo scorrimento */
    #wby_blog-categories-list .elementor-widget-container ul::before {
        content: "";
        flex: 0 0 80px; /* Spazio iniziale */
    }

    #wby_blog-categories-list .elementor-widget-container ul::after {
        content: "";
        flex: 0 0 10px; /* Spazio finale */
    }
}

/* =============================== */
/* RESPONSIVE - MOBILE (max 767px) */
/* =============================== */
@media (max-width: 767px) {
    #wby_blog-categories-list .elementor-widget-container ul::before {
        content: "";
        flex: 0 0 50px; /* Ridotto lo spazio iniziale per adattarlo a schermi piccoli */
    }
}






/* ========== MENU WHATSAPP BUTTON ========== */
@media (min-width: 767px){

    .menu-item:last-child  a{
        margin: 0px !important;
        margin-bottom: 6px !important;
        padding: 15px 32px 13px 32px !important;
        color: #FFF !important;
        background-color: #25D366 !important;
        border-radius: 12px !important;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.12) !important;
        font-size: 24px !important;
    }

    .menu-item:last-child  a:hover{
        background-color: var(--e-global-color-secondary) !important;
        cursor: pointer;
    }

    .menu-item a{
        margin: 0px 20px;
    }
}

@media (min-width: 767px) and (max-width: 1024px) {
    .menu-item a{
        margin: 0px 12px;
    }

    .menu-item:last-child  a{
        font-size: 20px !important;
        padding: 15px 25px 13px 25px !important;
    }
}

@media (max-width: 767px){
    .menu-item:last-child  a{
        color: #FFF !important;
        background-color: #25D366 !important;
    }
}