/**
Theme Name: Astra child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/*
select {
    color-scheme: dark;
}
*/
select option {
    background-color: #1a1a1a;
    color: #ffffff;
}

.no-marginb-last p:last-child{
	margin-bottom: 0;
}

.loader-ellips__dot{
	background-color: #ffe500;
}

h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.woocommerce-js div.product div.images .woocommerce-product-gallery__wrapper .zoomImg{
	background-color: #202020 !important;
}


.has-medium-font-size,
.has-small-font-size{
	font-size: inherit !important;	
}

h2.has-medium-font-size {
    font-size: revert !important;
}

.elementor-location-popup{
	outline: none !important;
}


/* MAIN MENU */
/* 1. Forza SOLO le voci di primo livello a fare da ancora relativa */
.elementor-nav-menu--main > ul.elementor-nav-menu > li.menu-item-has-children {
    position: relative !important;
}

/* 2. Applica la larghezza 100% SOLO alla tendina di 2° livello (figlia diretta del 1° livello) */
.elementor-nav-menu--main > ul.elementor-nav-menu > li.menu-item-has-children > ul.sub-menu.elementor-nav-menu--dropdown {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}

/* 3. RIPRISTINO 3° LIVELLO: Posiziona la tendina di 3° livello a fianco del suo genitore */
.elementor-nav-menu--main ul.sub-menu ul.sub-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important; /* Apre la tendina a destra del 2° livello */
    right: auto !important;
    width: max-content !important; /* O assegna una larghezza fissa es. 220px */
    min-width: 200px !important;
}

/* 4. Gestione link interni (applicata a tutti i sottomenu) */
.elementor-nav-menu--main ul.sub-menu a.elementor-sub-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 5. Protezione per l'immagine/SVG */
.elementor-nav-menu--main ul.sub-menu a.elementor-sub-item img,
.elementor-nav-menu--main ul.sub-menu a.elementor-sub-item svg {
    height: auto !important;
    display: block;
}


/* ==========================================
   TRANSIZIONE FLUIDA DROPDOWN MENU
   ========================================== */

@media screen and (min-width: 1024px) {
    
    /* 1. Stato iniziale per TUTTE le sub-menu nidificate */
    .elementor-nav-menu--main .sub-menu {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(12px) !important;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
    }

    /* 2. Stato all'hover: mostra solo il sottomenu DIRETTO della voce sorvolata */
    .elementor-nav-menu--main li:hover > .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}