/* 
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
*/

/* Wrapper */
.wrapper-xs {padding:10px 10px 10px 10px;}
.wrapper-sm {padding:clamp(20px, 5vw, 50px) 10px clamp(20px, 5vw, 50px) 10px;}
.wrapper-default {padding:clamp(50px, 5vw, 100px) 10px clamp(50px, 5vw, 100px) 10px;}

.e-con-full.wrapper-default {padding:clamp(50px, 5vw, 100px) clamp(10px, 5vw, 100px) clamp(50px, 5vw, 100px) clamp(10px, 5vw, 100px);}
.e-con-full.wrapper-sm {padding:clamp(20px, 5vw, 25px) clamp(10px, 5vw, 100px) clamp(20px, 5vw, 25px) clamp(10px, 5vw, 100px);}
.e-con-full.wrapper-xs {padding:10px clamp(10px, 5vw, 100px) 10px clamp(10px, 5vw, 100px);}


/* Elementor: fix scrollbar orizzontale */
html, body {overflow-x:hidden;}

/* Titoli e testi */
.text-wrap-balance > *,
.elementor-heading-title {text-wrap:balance!important;}
.elementor-widget-text-editor > p {text-wrap:pretty;}

/* Elementor: fix margine ultimo paragrafo */
.elementor-widget-text-editor p:last-child {margin-bottom:0!important;}

.elementor-widget-counter .elementor-counter .elementor-counter-title {text-align:center;}

/* Header  fixed */
.elementor-location-header {position:absolute; top:0; left:0; right:0; width:100%; z-index:9999;}

/* Header sticky */
.elementor-location-header .elementor-sticky,
.elementor-location-header .elementor-sticky .elementor-widget-image > a > img {transition: all .3s;}
.elementor-location-header .elementor-sticky.elementor-sticky--effects {background-color: rgba(5,38,87,0.75);}
.elementor-location-header .elementor-sticky.elementor-sticky--effects .elementor-widget-image > a > img {height:65px;}

.elementor-widget-icon a.elementor-icon {display:block;}

/* Form: accettazione */
.elementor-field-type-acceptance > label {display:none;}
.elementor-field-type-acceptance .elementor-field-option {display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:5px;}
.elementor-field-type-acceptance .elementor-field-option > label {font-size:0.875rem; color:#FFF;}
.elementor-field-type-acceptance .elementor-field-option > label > a {text-decoration:underline; color:#FFF; transition:color 0.3s;}
.elementor-field-type-acceptance .elementor-field-option > label > a:hover {color:rgba(255,255,255,0.75);}

/* Form: recaptcha */
.elementor-field-type-recaptcha_v3 {margin-bottom:0!important;}
.elementor-field-type-recaptcha_v3 .grecaptcha-badge {visibility:hidden!important; width:0px!important; height:0px!important;}

/* Case History: descrizione */
body.single-case-history .case-history-descrizione > p:first-child {font-size:1.875rem; line-height:1.2em; font-family:"Playfair Display"; text-wrap:balance!important;}
body.single-case-history .case-history-descrizione > p {margin-bottom:25px;}
body.single-case-history .case-history-descrizione > p:last-child {margin-bottom:0!important;}

/* Certificazioni */
ul.elenco-pdf {margin:0; padding:0; text-indent:0; list-style-type:none;}
ul.elenco-pdf > li {display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:space-between;}
ul.elenco-pdf > li + li {margin-top:10px; padding-top:10px; border-top:1px solid var(--e-global-color-e53e6a3);}
ul.elenco-pdf > li > span {text-wrap:balance;}
ul.elenco-pdf > li > a {white-space:nowrap;}

/* Iubenda */
#iub-legalDoc .container {max-width:100%!important;}
a.iubenda-cs-preferences-link {color:var(--e-global-color-630e8fe); transition:color 0.3s;}
a.iubenda-cs-preferences-link:hover {color:var(--e-global-color-5cb28a2);}

/* WPML */
.wpml-ls-menu-item {display:flex!important; align-items:center; gap:5px;}
.wpml-ls-menu-item::before{display:inline-block; content:""; width:20px; height:20px; background-size:contain;}
.wpml-ls-menu-item.wpml-ls-item-en::before{background-image: url('assets/flags/en.svg');}
.wpml-ls-menu-item.wpml-ls-item-it::before{background-image: url('assets/flags/it.svg');}
.wpml-ls-menu-item > a {margin-left:0!important;}

/* Menu su schermi desktop piccoli */
@media (min-width:1024px) and (max-width: 1366px) {
	header.elementor-location-header .elementor-widget-nav-menu > nav > ul > li > a {font-size:11.5px!important; letter-spacing:0!important; margin-right:5px!important; margin-left:5px!important;}
	.wpml-ls-menu-item {gap:0!important;}
	.wpml-ls-menu-item::before{width:12px; height:12px;}
}