/*
 Theme Name:   Astra Child
 Description:  Astra Child Theme
 Author:       J2P.it
 Author URI:   https://just2play.it
 Template:     astra
 Version:      1.0.0
*/
/* CSS per l'header */
.site-header {
    background-color: #000000;
    transition: all 0.3s ease-in-out;
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 1px 5px 0 #00643C;
    padding-top: 23px;
    padding-bottom: 23px;
}
.site-header.ast-sticky-active {
    padding-top: 0px;
    padding-bottom: 0px;
}
.site-header .site-logo-img {
    position: relative;
}
.site-header .site-logo-img img {
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.site-header.ast-sticky-active .site-logo-img img {
    max-height: 50px;
    max-width: 50px;
}
/* Responsive adjustments */
@media (max-width: 921px) {
    .site-header .site-logo-img img {
        transition: opacity 0.3s ease-in-out;
        max-height: 50px;
        max-width: 50px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .site-header {
        padding-top: 0px;
        padding-bottom: 0px;    
    }

    .site-header.ast-sticky-active .site-logo-img img {
        max-height: 50px;
        max-width: 50px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
}
/* Aggiungi padding al body per compensare l'header fisso */
body {
    padding-top: 60px;
}

/* Sotto Menu Base Fingerfriendly */
.ast-header-break-point .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle {
    display: inline-block;
    position: absolute;
    font-size: inherit;
    top: 0;
    right: 20px;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 .907em;
    font-weight: 400;
    line-height: inherit;
    border: none;
    padding-left: 92%;
    margin-right: 1%;
}
/* Assicuriamoci che queste regole non vengano sovrascritte */
@media (max-width: 921px) {
    .ast-header-break-point .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle {
        padding-left: 92% !important;
        margin-right: 1% !important;
    }
}
.main-header-menu > .menu-item > .menu-link {
    border-radius: 10px;
}
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link {
    border-radius: 10px;
    border-style: none;
    transition: all .3s ease;
    transform: scale(1.05);
}