/*
 Theme Name:   fime
 Description:  Tema custom per sito Fime Dynatec
 Author:       Gabriele Donatacci
 Author URI:   https://www.gabrieledonatacci.it/
 Template:     astra
 Version:      1.0.0
 Text Domain:  fime
*/
html{
    scrollbar-width: thin;
    scrollbar-color: var(--ast-global-color-0) var(--ast-global-color-7);
}
.ast-custom-button{
	white-space: nowrap;
}
.d-block{
	display: block;
}
.d-none{
	display: none;
}
.ast-above-header-bar {
  transition: all ease-in-out 0.4s!important;
  opacity: 1;
  max-height: 200px; /* Altezza massima iniziale */
  overflow: hidden; /* Nasconde il contenuto durante l'animazione */
}

.hidden {
  opacity: 0;
  max-height: 0; /* L'elemento non occupa spazio durante il collasso */
}
.ast-scroll-to-top-right{
	bottom: 90px;
    right: -3px;
	box-shadow: 0 0 6px 2px #030303!important;
	-webkit-box-shadow: 0 0 6px 2px #030303 !important;
    -moz-box-shadow: 0 0 6px 2px #030303 !important;
}
.ast-scroll-to-top-right:hover{
	transform: translateY(-5px);
}
/*MENU*/
body.home .site-header{
	position: fixed!important;
    top: 0;
    left: 0;
	width: 100%;
}
.site-header, 
.ast-theme-transparent-header .main-header-bar.wp-block-button__link, 
.uagb-button__link, .uagb-button__icon, 
.uagb-icon-wrapper svg, 
.wp-block-social-link,
.st-builder-social-element, 
.ast-theme-transparent-header .main-header-bar, 
.site-content, 
.wp-block-uagb-icon-list .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap, 
#ast-scroll-top,
.ast-menu-cart-outline .ast-addon-cart-wrap,
.ast-header-search .ast-icon,
.woocommerce-js div.product form.cart .button.single_add_to_cart_button,
.uagb-buttons__outer-wrap .uagb-buttons-repeater,
.uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button,
.ast-footer-social-1-wrap .ast-builder-social-element,
.uagb-post-grid img,
.ast-woocommerce-container .products li .astra-shop-thumbnail-wrap img{
	transition: all ease-in-out 0.4s!important;
}
.ast-header-search .ast-icon *{
	transition: none!important;
}
.scrolling-header {
  background-color: rgba(255,255,255, 1)!important;
  transition: background-color 0.4s ease;
}
.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close{
	padding: 25px;
    margin: 0 15px;
}
.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close .ast-close-svg{
	width: 30px;
	height: 30px;
}
.ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle:focus, .ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close:focus{
	border: none;
	outline: none;
}
.main-header-bar{
	border-bottom: 1px solid #f1f6fb;
}
.main-header-bar.transparent-on{
	box-shadow: unset;
}
.ast-theme-transparent-header .main-header-bar.transparent-off .main-header-menu .menu-link, 
.ast-theme-transparent-header .main-header-bar.transparent-off .ast-header-search .ast-icon,
.ast-theme-transparent-header .main-header-bar.transparent-off .ast-menu-cart-outline .ast-addon-cart-wrap
{
	color: var(--ast-global-color-8);
}
.ast-theme-transparent-header .main-header-bar.transparent-off .mobile-menu-toggle-icon .ast-mobile-svg{
	fill: var(--ast-global-color-8);
}
#ast-desktop-header .main-header-bar .main-header-menu{
	column-gap: 34px;
}
#ast-desktop-header .main-header-bar .main-header-menu .menu-item .menu-link{
	padding: 0;
}
#ast-desktop-header .main-header-bar .main-header-menu .menu-item .menu-link::before{
	content: "";
    position: absolute;
    left: auto;
    right: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ast-theme-transparent-header #ast-desktop-header .main-header-bar .main-header-menu .menu-item .menu-link
{
	color: #fff;
}
.ast-theme-transparent-header #ast-desktop-header .main-header-bar .main-header-menu .menu-item:hover .menu-link,
.ast-theme-transparent-header #ast-desktop-header .main-header-bar .main-header-menu .menu-item:focus .menu-link,
.ast-theme-transparent-header #ast-desktop-header .main-header-bar .main-header-menu .menu-item.current-menu-item .menu-link{
	color: #fff;
}
.ast-theme-transparent-header #ast-desktop-header .main-header-bar.transparent-off .main-header-menu .menu-item .menu-link{
	color: var(--ast-global-color-7);
}
.ast-theme-transparent-header #ast-desktop-header .main-header-bar.transparent-off .main-header-menu .menu-item:hover .menu-link,
.ast-theme-transparent-header #ast-desktop-header .main-header-bar.transparent-off .main-header-menu .menu-item:focus .menu-link,
.ast-theme-transparent-header #ast-desktop-header .main-header-bar.transparent-off .main-header-menu .menu-item.current-menu-item .menu-link
{
	color: var(--ast-global-color-0);
}
.ast-theme-transparent-header #ast-desktop-header .main-header-bar .main-header-menu .menu-link::before{
	color: var(--ast-global-color-0);
}
.ast-theme-transparent-header #ast-desktop-header .main-header-bar.transparent-off .main-header-menu .menu-link::before,
.main-header-bar .main-header-menu .menu-link::before{
    background: var(--ast-global-color-0);
}
#ast-desktop-header .main-header-bar .main-header-menu .menu-item:hover .menu-link::before,
#ast-desktop-header .main-header-bar .main-header-menu .menu-item.current-menu-item .menu-link::before
{
    width: 100%;
    left: 0;
    right: auto;
}
/*FINE MENU*/
.box-1 .uagb-ifb-image-content{
	overflow: hidden;
	border-radius: 10px;
}
.box-1 .uagb-ifb-image-content:hover img{
	transform: scale(1.2) rotate(5deg);
}
.box-1 .uagb-ifb-image-content img{
transition: all 0.3s ease;
	transform: scale(1.1)
}
.ast-breadcrumbs .trail-items,
.woocommerce-js .woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-js .variations select, .woocommerce-js .woocommerce-ordering select
{
	font-size: 14px;
}
.page-title{
	font-weight: 600;
}
.marker, .marker-blu{
	position: relative;
}
.marker::after, .marker-purple::after{
	content: "";
    position: absolute;
    width: 92px;
    height: 12px;
    bottom: -8px;
    left: 50%;
    z-index: -1;
    transform: translate(-45px);
    -webkit-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url(img/headline-curve.svg);
    mask-image: url(img/headline-curve.svg);
}
.marker::after{
    background-color: #4f87fb;
}
.marker-purple::after{
	background-color: #130947;
} 
.move-on-mouse-1, .move-on-mouse-2 {
    position: absolute !important;
    z-index: -1;
    transition: none;
}
.top-right{
	right: 0;
    top: -50px;
}
.top-top-right{
	right: 0;
    top: -400px;
}
.top-left{
	left: 0;
    top: -50px;
}
.top-top-left{
	left: 0;
    top: -400px;
}
.top-top-left-left{
	left: -200px;
    top: -400px;
}
.top-top-right-right{
	right: -200px;
    top: -400px;
}
.bottom-left{
	left: 0;
    bottom: -50px;
}
.bottom-bottom-left{
	left: 0;
    bottom: -400px;
}
.bottom-bottom-left-left{
	left: -200px;
    bottom: -400px;
}
.bottom-right{
	right: 0;
    bottom: -50px;
}
.bottom-bottom-right{
	right: 0;
    bottom: -400px;
}
.bottom-bottom-right-right{
	right: -200px;
    bottom: -400px;
}
.uagb-post-grid .uagb-post__image:hover img{
	transform: scale(1.1);
}
.uagb-forms-accept-privacy-link{
	font-size: 14px;
}
/* Layout per desktop (4 colonne) */
.ast-blog-layout-4-grid .ast-article-post {
    width: 25%;
}

/* Layout per tablet (3 colonne) */
@media (max-width: 921px) {
    .ast-blog-layout-4-grid .ast-article-post {
    	width: 33.33%;
 	}
}

/* Layout per mobile (2 colonna) */
@media (max-width: 750px) {
    .ast-blog-layout-4-grid .ast-article-post {
    	width: 50%;
 	}
}

/* Layout per mobile (1 colonna) */
@media (max-width: 544px) {
    .ast-blog-layout-4-grid .ast-article-post {
    	width: 100%;
 	}
}

.uagb-modal-popup .uagb-modal-popup-wrap{
	border-radius: 8px!important;
}

.cf7-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0!important;
}

.cf7-col label,
.cf7-col-full label {
    margin-bottom: 0;
}

.cf7-col {
    flex: 1;
}

.cf7-col-full {
    width: 100%;
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0;
}

.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    margin-top: 8px;
    border: 0;
    box-shadow: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
	padding-left: 0!important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	border-style: solid!important;
    border: 0!important;
    border-bottom: 1px solid var(--ast-global-color-0)!important;
}

.wpcf7-form textarea {
    min-height: 140px;
}

.wpcf7-list-item{
	margin: 0;
}

.wpcf7 form .wpcf7-response-output{
	border-radius: 5px;
    padding: 20px 15px;
    margin: 0;
	font-size: 16px;
}

.cf7-submit .wpcf7-submit{
	border-radius: 5px;
}

.cf7-privacy {
    margin-bottom: 20px;
}
.cf7-privacy .wpcf7-list-item-label{
    font-size: 13px;
}

.cf7-phone{
    display:flex;
    gap:10px;
	margin-bottom: 30px;
}

.cf7-prefix{
    width:80px;
    flex-shrink:0;
}

.cf7-number{
    flex:1;
}

.cf7-msg textarea{
	font-size: 16px!important;
}

.cf7-submit {
    margin-top: 20px;
    margin-bottom: 0!important;
}

@media (max-width: 768px) {
    .cf7-row {
        flex-direction: column;
        gap: 15px;
    }
}

.ast-separate-container .ast-article-single {
    border-radius: 8px;
}
.wp-block-uagb-table-of-contents ol.uagb-toc__list{
	margin-left:0;
}
.uagb-block-b08f8faf .uagb-toc__title{
	color: var(--ast-global-color-2);
}
.uagb-block-b08f8faf .uagb-toc__wrap{
	border-color: #3C72B552;
	background-color: #D1DAE673;
}

.site-header-primary-section-center,
.site-header-primary-section-right{
	display: none;
}