

/* Stile pulsanti del menu */
.menu-item.btn .menu-link {
display: inline-block;
padding: 5px 20px;
height: auto;
max-height: 30px;
display: flex;
background-color: #348376; /* Colore di sfondo del bottone */
color: #ffffff !important; /* Colore del testo */
text-align: center;
text-decoration: none;
border-radius: 25px; /* Bordi arrotondati */
font-weight: bold;
transition: background-color 0.3s, transform 0.2s; /* Effetti hover */
}

.menu-item.btn .menu-link:hover {
background-color: #011e62;
transform: scale(1.05);
color: #fff;
}

.menu-item.btn .menu-link:focus {
outline: 2px solid #005bb5;
outline-offset: 4px;
}

/* Menu principale */
.main-header-menu > .menu-item > .menu-link {
text-transform: uppercase;
font-weight: 500;
font-size: 14px; /* Rimosse le duplicazioni */
}

/* Controlli del carosello */
.tns-nav {
display: none;
}

.tns-controls button {
background: none;
border: none;
color: transparent;
font-size: 0;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
}

.tns-controls button:before {
content: '';
display: inline-block;
width: 10px;
height: 10px;
border: solid #2e3b6f; /* Unica dichiarazione per il colore delle frecce */
border-width: 0 3px 3px 0;
}

.tns-controls button[data-controls="prev"]:before {
transform: rotate(135deg);
margin-left: -5px;
}

.tns-controls button[data-controls="next"]:before {
transform: rotate(-45deg);
margin-right: -5px;
}

.tns-controls button[data-controls="prev"] {
left: 0;
}

.tns-controls button[data-controls="next"] {
right: 0;
}

/* Stili Testimonianze */
.wpr-testimonial-content-wrap {
background-color: #f9f9f9;
border-radius: 10px;
padding: 20px;
text-align: center;
font-size: 16px;
line-height: 1.6;
color: #333;
position: relative;
}

.wpr-testimonial-content-wrap:after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-style: solid;
border-width: 10px 10px 0 10px;
border-color: #f9f9f9 transparent transparent transparent;
}

.wpr-testimonial-name {
font-weight: bold;
font-size: 18px;
margin-top: 20px;
color: #333;
}

.wpr-testimonial-job {
font-size: 14px;
color: #888;
margin-top: 5px;
}

.wpr-testimonial-item {
flex-direction: column;
}

.wpr-testimonial-meta {
order: 2;
align-items: center;
justify-content: center;
display: flex;
text-align: center;
}

/* Stili per il menu attivo */
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .inline-on-mobile .menu-item.current-menu-item > .ast-menu-toggle,
.ast-builder-menu-1 .current-menu-ancestor > .menu-link {
color: #000;
}

/* Testimonianze slider */
#testimonial-slider > .tns-item {
padding: 0 10px;
}

/* Accordion */
.elementor-636 .elementor-element.elementor-element-95378af 
> .elementor-widget-container 
> .e-n-accordion 
> .e-n-accordion-item 
> .e-n-accordion-item-title {
justify-content: space-between;
}

/* Icone testimonial */
.wpr-testimonial-meta-content-wrap i.fa.fa-user-circle {
margin-top: 20px;
font-size: 40px;
margin-bottom: -20px;
color: #49c5b1;
}

/* Effetto scrolling per loghi */
@media screen and (max-width: 768px) {
#usano-grid {
	overflow: hidden;
	position: relative;
}

#usano-grid .e-con-inner {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: hidden;
	white-space: nowrap;
	animation: scroll-logos 20s linear infinite;
}

#usano-grid .elementor-widget-wpr-logo {
	flex: 0 0 auto;
	scroll-snap-align: center;
}

#usano-grid .wpr-logo-image img {
	max-height: 60px;
	width: auto;
}

@keyframes scroll-logos {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); } /* Scroll più fluido */
}
}

/* Correzione per layout mobile */
html {
max-width: 100vw;
overflow-x: hidden;
}

/* Footer mobile */
@media screen and (max-width: 767px) {
.site-footer .widget {
	text-align: center;
	margin: 0 auto;
}

.site-footer .wp-block-buttons {
	justify-content: center;
	margin: 30px auto 0;
}
}

/* Stili per mobile */
@media screen and (max-width: 768px) {
.elementor-icon-list-items {
	display: block;
}

.elementor-image-box-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.accordion-icon {
	font-size: 1.2em;
	font-weight: bold;
	margin-left: 10px;
}

.mobile-accordion .elementor-widget:not(:last-child) {
	margin-bottom: -10px; 
}

.mobile-accordion .elementor-icon-list-items {
	margin-top: 30px;
}
}

.wpvl_auto_thumb_box_wrapper {width: 100%!important; height: auto!important; }
.wpvl_auto_thumb_box {width: 100%!important; height: auto!important; }
.video_lightbox_auto_anchor_image {width: 100%!important; height: auto!important; }
.wpvl_auto_thumb_play {
position: absolute;
left: calc(50% - 24px);
top: calc(50% - 24px);
}

.wpvl_auto_thumb_box_wrapper {
width: 100% !important;
height: calc(100% - 70px) !important; /* Riduce l'altezza totale di 70px (35 sopra + 35 sotto) */
overflow: hidden; /* Nasconde le parti tagliate */
position: relative;
}

.wpvl_auto_thumb_box {
width: 100% !important;
height: 100% !important; /* Si adatta al wrapper */
overflow: hidden;
max-height: 160px;
}

.video_lightbox_auto_anchor_image {
width: 100% !important;
height: calc(100% + 70px) !important; /* Permette il taglio di 35px sopra e sotto */
object-fit: cover;
margin-top: -35px; /* Sposta l'immagine in alto di 35px */
clip-path: inset(35px 0 35px 0); /* Taglia esattamente 35px sopra e 35px sotto */
}

/*Add Dem */
/*nascosto titolo sito */
.ast-site-title-wrap {display:none;}
#ast-scroll-top {margin-bottom: 5rem;}
.wpcf7-form-control.wpcf7-quiz {max-width:6rem}

iframe._iub_cs_activate, .fb-xfbml-parse-ignore{background-image: url(/wp-content/themes/astra/images/block-cookie.png);background-position: center;background-repeat: no-repeat;background-size: cover;min-height: 150px;}

