{"id":33336,"date":"2024-01-08T09:42:21","date_gmt":"2024-01-08T08:42:21","guid":{"rendered":"https:\/\/www.alfiobardolla.com\/go\/?page_id=33336"},"modified":"2025-03-24T12:18:33","modified_gmt":"2025-03-24T11:18:33","slug":"form","status":"publish","type":"page","link":"https:\/\/www.alfiobardolla.com\/go\/iscrizione-corsi\/money-mindset\/form\/","title":{"rendered":"Money Mindset &#8211; Form"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"33336\" class=\"elementor elementor-33336\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b82b896 e-flex e-con-boxed e-con e-parent\" data-id=\"b82b896\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-807a57f elementor-widget elementor-widget-image\" data-id=\"807a57f\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"100\" height=\"100\" src=\"https:\/\/www.alfiobardolla.com\/go\/wp-content\/uploads\/2022\/07\/Alfio-Bardolla-Training-Group-Logo-Color-1.svg\" class=\"attachment-large size-large wp-image-8657\" alt=\"Logo Alfio Bardolla Training Group\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7d48e88 e-flex e-con-boxed e-con e-parent\" data-id=\"7d48e88\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-5d80f7b e-con-full e-flex e-con e-child\" data-id=\"5d80f7b\" data-element_type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-c9bfcd0 e-con-full e-flex e-con e-child\" data-id=\"c9bfcd0\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0ddd372 elementor-widget__width-auto elementor-widget elementor-widget-html\" data-id=\"0ddd372\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<button class=\"btn-indietro\" onclick=\"history.back()\"> <i class=\"bb-icon-caret-left bb-icon-f\"><\/i>Torna indietro<\/button>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be129ad elementor-widget__width-auto elementor-widget elementor-widget-heading\" data-id=\"be129ad\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Money Mindset<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-97f07c8 elementor-widget elementor-widget-heading\" data-id=\"97f07c8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Compila il form per prenotare\nil tuo posto\u200b<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f2ba4f elementor-widget elementor-widget-abtg-go-customform\" data-id=\"3f2ba4f\" data-element_type=\"widget\" data-widget_type=\"abtg-go-customform.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                    <script>\n                var widgetLanguage = 'IT';\n            <\/script>\n                                            <style>\n                .iti {\n                    width: 100%;\n                }\n\n                .intl-tel-input {\n                    width: 100% !important;\n                    display: flex !important;\n                    align-items: center !important;\n                }\n\n                .intl-tel-input input {\n                    height: 64px !important; \/* Adatta alla tua form *\/\n                    width: calc(100% - 50px); \/* Spazio per il prefisso *\/\n                }\n\n\n                .iti-mobile .intl-tel-input.iti-container {\n                    z-index: 99991 !important;\n                }\n\n                .selected-flag>.selected-dial-code {\n                    font-size: 12px;\n                }\n\n                #customGoFormSubmit {\n                    white-space: normal;\n                }\n\n                .errorMessage {\n                    color: red;\n                }\n\n                .abtgCustomFormInputContainer>.errorMessage {\n                    display: none;\n                }\n\n                .abtgCustomFormInputContainer.abtgCustomFormInputContainerShowError>.errorMessage {\n                    display: block;\n                }\n\n                #customGoForm .elementor-field-type-text input,\n                #customGoForm input#email,\n                #customGoForm select,\n                #customGoForm input#phone {\n                    height: 64px;\n                }\n\n                #customGoForm .abtgCustomFormInputContainer,\n                #customGoForm .elementor-field-type-tel,\n                #customGoForm .elementor-field-subgroup {\n                    margin: 16px 0 0 0 !important;\n                }\n\n                #customGoForm .abtgCustomFormInputContainer:first-child {\n                    margin: 0 !Important;\n                }\n\n                #customGoForm .elementor-field-type-acceptance {\n                    margin: 0 !important;\n                }\n\n                #customGoForm .elementor-field-option.abtgCustomFormInputContainer {\n                    display: flex;\n                    flex-direction: row;\n                    flex-wrap: nowrap;\n                    align-items: flex-start;\n                }\n\n                input#abtgCustomFormCheckPrivacy {\n                    margin-right: 8px;\n                    margin-top: 2px;\n                }\n\n                .abtgCustomFormInputContainer span {\n                    font-size: 0.9rem !important;\n                    line-height: 1.4em;\n                }\n\n                #customGoFormSubmit {\n                    transition-delay: 500ms;\n                    background: linear-gradient(180deg, #4ab358, #61CE70);\n                    border: 2px solid #61CE70;\n                    padding: 16px;\n                    font-size: 1.25rem !important;\n                    border-radius: 8px;\n                    font-weight: 700 !important;\n                    text-transform: uppercase !important;\n                }\n\n                #customGoFormSubmit:hover {\n                    transition-delay: 500ms;\n                    background: linear-gradient(180deg, #4ab358, #4ab358);\n                }\n\n                #customGoFormSubmit:focus-visible,\n                #customGoFormSubmit:focus {\n                    outline: none !important;\n                }\n\n                .abtgCustomFormInputContainer.select {\n                    flex-direction: column;\n                    align-items: flex-start;\n                }\n\n                .abtgCustomFormInputContainer>label {\n                    margin-right: 18px;\n                }\n\n                .abtgCustomFormInputContainer>select {\n                    width: 100%;\n                }\n\n                \/* loading indicator *\/\n                .lds-dual-ring-formSubmit,\n                .lds-dual-ring-formSubmit:after {\n                    box-sizing: border-box;\n                }\n\n                .lds-dual-ring-formSubmit {\n                    display: flex;\n                    width: 80px;\n                    height: 80px;\n                    margin: 0 auto;\n                    margin-bottom: 12px;\n                }\n\n                .lds-dual-ring-formSubmit:after {\n                    content: \" \";\n                    display: block;\n                    width: 64px;\n                    height: 64px;\n                    margin: 8px;\n                    border-radius: 50%;\n                    border: 6.4px solid #EF7B10;\n                    border-color: #EF7B10 transparent #EF7B10 transparent;\n                    animation: lds-dual-ring-formSubmit 1.2s linear infinite;\n                }\n\n                @keyframes lds-dual-ring-formSubmit {\n                    0% {\n                        transform: rotate(0deg);\n                    }\n\n                    100% {\n                        transform: rotate(360deg);\n                    }\n                }\n\n                .loaderFormSubmit {\n                    width: 16px;\n                    height: 16px;\n                    border-radius: 50%;\n                    display: block;\n                    margin: 15px auto;\n                    position: relative;\n                    background: #FFF;\n                    box-shadow: -24px 0 #f5f5f5, 24px 0 #f5f5f5;\n                    box-sizing: border-box;\n                    animation: shadowPulseFormSubmit 2s linear infinite;\n                }\n\n                @keyframes shadowPulseFormSubmit {\n                    33% {\n                        background: #f5f5f5;\n                        box-shadow: -24px 0 #ef7b10, 24px 0 #f5f5f5;\n                    }\n\n                    66% {\n                        background: #ef7b10;\n                        box-shadow: -24px 0 #f5f5f5, 24px 0 #f5f5f5;\n                    }\n\n                    100% {\n                        background: #f5f5f5;\n                        box-shadow: -24px 0 #f5f5f5, 24px 0 #ef7b10;\n                    }\n                }\n\n                @media only screen and (max-width: 600px) {\n                    .customGoFormSubmitTextSmall {\n                        font-size: 14px !important;\n                    }\n                }\n            <\/style>\n            <script>\n                var customWindow = window;\n                var entrato = false;\n                var customWidth = window.screen.width;\n                var getUrl = window.location;\n                var pathName = getUrl.pathname.split('\/');\n                var baseUrl = getUrl.protocol + \"\/\/\" + getUrl.host;\n                if (window.location.href.includes('\/go\/')) {\n                    baseUrl = baseUrl + '\/go';\n                }\n                var currentUrl = window.location.href;\n                var pathName = getUrl.pathname;\n                var canSubmitForm = true;\n                var iti;\n                \/\/ TODO: questo da capire se veramente serve perch\u00e8 su smartbusinesslab.com\/landing\/ dava errore perch\u00e8 giustamente non era la base url\n                \/\/ if (pathName.split('\/').length > 3) {\n                \/\/     baseUrl = baseUrl + \"\/\" + pathName.split('\/')[1];\n                \/\/ }\n                if (baseUrl === 'https:\/\/www.smartbusinesslab.com\/go') {\n                    baseUrl = 'https:\/\/www.smartbusinesslab.com';\n                }\n                window.addEventListener(\"load\", function() {\n                    customABTGLoadPhoneFlag();\n                });\n\n                function customABTGLoadPhoneFlag() {\n                    try {\n                        var customBtnClasses = document.getElementsByClassName(\"elementor-button\");\n                        var myAbtgCustomClickBtn = function() {\n                            abtgFormPhoneInit();\n                        };\n                        for (var i = 0; i < customBtnClasses.length; i++) {\n                            if (customBtnClasses[i] != null) {\n                                customBtnClasses[i].addEventListener('click', myAbtgCustomClickBtn);\n                            }\n                        }\n                    } catch (error) {}\n\n                    try {\n                        abtgFormPhoneInit();\n                    } catch (error) {\n\n                    }\n                }\n\n                function isNazione(stringa) {\n                    \/\/ Elenco completo di codici di nazioni ISO-3166-1 alpha-2\n                    const codiciNazioni = [\n                        'AF', 'AL', 'DZ', 'AD', 'AO', 'AI', 'AG', 'AR', 'AM', 'AW', 'AU', 'AT', 'AZ', 'BS', 'BH', 'BD', 'BB',\n                        'BY', 'BE', 'BZ', 'BJ', 'BM', 'BT', 'BO', 'BA', 'BW', 'BR', 'BN', 'BG', 'BF', 'BI', 'KH', 'CM', 'CA',\n                        'CV', 'KY', 'CF', 'TD', 'CL', 'CN', 'CO', 'KM', 'CG', 'CD', 'CR', 'CI', 'HR', 'CU', 'CW', 'CY', 'CZ',\n                        'DK', 'DJ', 'DM', 'DO', 'EC', 'EG', 'SV', 'GQ', 'ER', 'EE', 'SZ', 'ET', 'FO', 'FJ', 'FI', 'FR', 'GF',\n                        'PF', 'GA', 'GM', 'GE', 'DE', 'GH', 'GI', 'GR', 'GL', 'GD', 'GP', 'GT', 'GN', 'GW', 'GY', 'HT', 'HN',\n                        'HK', 'HU', 'IS', 'IN', 'ID', 'IR', 'IQ', 'IE', 'IL', 'IT', 'JM', 'JP', 'JO', 'KZ', 'KE', 'KI', 'KP',\n                        'KR', 'KW', 'KG', 'LA', 'LV', 'LB', 'LS', 'LR', 'LY', 'LI', 'LT', 'LU', 'MO', 'MK', 'MG', 'MW', 'MY',\n                        'MV', 'ML', 'MT', 'MQ', 'MR', 'MU', 'YT', 'MX', 'MD', 'MC', 'MN', 'ME', 'MS', 'MA', 'MZ', 'MM', 'NA',\n                        'NR', 'NP', 'NL', 'NC', 'NZ', 'NI', 'NE', 'NG', 'NU', 'NF', 'NO', 'OM', 'PK', 'PS', 'PA', 'PG', 'PY',\n                        'PE', 'PH', 'PN', 'PL', 'PT', 'QA', 'RE', 'RO', 'RU', 'RW', 'SH', 'KN', 'LC', 'PM', 'VC', 'WS', 'SM',\n                        'ST', 'SA', 'SN', 'RS', 'SC', 'SL', 'SG', 'SX', 'SK', 'SI', 'SB', 'SO', 'ZA', 'GS', 'SS', 'ES', 'LK',\n                        'SD', 'SR', 'SJ', 'SE', 'CH', 'SY', 'TW', 'TJ', 'TZ', 'TH', 'TL', 'TG', 'TK', 'TO', 'TT', 'TN', 'TR',\n                        'TM', 'TC', 'TV', 'UG', 'UA', 'AE', 'GB', 'US', 'UY', 'UZ', 'VU', 'VA', 'VE', 'VN', 'WF', 'EH', 'YE',\n                        'ZM', 'ZW'\n                    ];\n                    \/\/ Converto la stringa in maiuscolo per rendere il confronto case-insensitive\n                    const codiceNazione = stringa.toUpperCase();\n                    \/\/ Controllo se il codice della nazione \u00e8 presente nell'elenco\n                    if (codiciNazioni.includes(codiceNazione)) {\n                        return true;\n                    }\n                    return false;\n                }\n\n                function validaEmail(email) {\n                    var regex = \/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,}){1,2}$\/;\n                    return regex.test(email) && !\/\\.\\.\/.test(email);\n                }\n\n                function onSubmit(_button) {\n                    if (canSubmitForm) {\n                        _button.disabled = true;\n                        canSubmitForm = false;\n                        var atLeastOneError = false;\n                        \/\/ check validation fields - privacy check\n                        abtgCustomFormHideErrors('abtgCustomFormCheckPrivacy');\n                        if (!document.getElementById('abtgCustomFormCheckPrivacy').checked) {\n                            atLeastOneError = true;\n                            abtgCustomFormShowError('abtgCustomFormCheckPrivacy');\n                        }\n                        \/\/ check validation fields - email\n                        abtgCustomFormHideErrors('email');\n                        var _userEmail = document.getElementById('email').value;\n                        if (_userEmail.length > 0) {\n                            var emailIsValid = validaEmail(_userEmail);\n                            if (emailIsValid == false) {\n                                atLeastOneError = true;\n                                abtgCustomFormShowError('email');\n                            }\n                        } else {\n                            atLeastOneError = true;\n                            abtgCustomFormShowError('email');\n                        }\n                        \/\/ check validation fields - last_name\n                        abtgCustomFormHideErrors('last_name');\n                        var _userLastName = document.getElementById('last_name').value;\n                        if (!_userLastName.length > 0) {\n                            atLeastOneError = true;\n                            abtgCustomFormShowError('last_name');\n                        }\n                        \/\/ check validation fields - first_name\n                        abtgCustomFormHideErrors('first_name');\n                        var _userFirstName = document.getElementById('first_name').value;\n                        if (!_userFirstName.length > 0) {\n                            atLeastOneError = true;\n                            abtgCustomFormShowError('first_name');\n                        }\n\n                        \/\/ check validation fields - phone\n                        var _userPhone = iti.getNumber();\n                        \/\/ hide error\n                        hidePhoneError();\n                        if (iti.isValidNumber() == false) {\n                            atLeastOneError = true;\n                            showPhoneError();\n                        }\n\n                        \/\/ check validation fields - SceltaAreaCoaching\n                        var _SceltaAreaCoaching = document.getElementById('abtgFormLeadSceltaAreaCoaching');\n                        if (_SceltaAreaCoaching != null) {\n                            abtgCustomFormHideErrors('abtgFormLeadSceltaAreaCoaching');\n                            if (_SceltaAreaCoaching.value == \"\") {\n                                atLeastOneError = true;\n                                abtgCustomFormShowError('abtgFormLeadSceltaAreaCoaching');\n                            }\n                        }\n\n                        \/\/ check validation fields - SceltaAreaCoaching\n                        var _sceltaareacoachingtrading = document.getElementById('sceltaareacoachingtrading');\n                        if (_sceltaareacoachingtrading != null) {\n                            abtgCustomFormHideErrors('sceltaareacoachingtrading');\n                            if (_sceltaareacoachingtrading.value == \"\") {\n                                atLeastOneError = true;\n                                abtgCustomFormShowError('sceltaareacoachingtrading');\n                            }\n                        }\n\n                        if (atLeastOneError == false) {\n                            \/\/ document.getElementById(\"customGoForm\").submit();\n                            document.getElementById('customGoFormSubmit').disabled = true;\n                            \/\/ Selezione dell'elemento con ID \"customGoFormSubmit\"\n                            var customGoFormSubmit = document.getElementById(\"customGoFormSubmit\");\n                            \/\/ Creazione di un nuovo elemento div\n                            var newHtmlElement = document.createElement(\"div\");\n                            \/\/ newHtmlElement.classList.add(\"lds-dual-ring-formSubmit\");\n                            newHtmlElement.classList.add(\"loaderFormSubmit\");\n                            \/\/ Inserimento del codice HTML desiderato all'interno del nuovo elemento\n                            newHtmlElement.innerHTML = \"\";\n                            \/\/ Inserimento del nuovo elemento prima dell'elemento con ID \"customGoFormSubmit\"\n                            customGoFormSubmit.parentNode.insertBefore(newHtmlElement, customGoFormSubmit);\n\n                            var _urlSubmit = baseUrl + \"\/wp-json\/api\/v1\/abtgCustomAddons\/newLead\";\n                            var _honeyField = document.getElementById('abtgHoneyField').value;\n                            var _ragioneSociale = \"\";\n                            if (document.getElementById('ragione_sociale') != null) {\n                                _ragioneSociale = document.getElementById('ragione_sociale').value;\n                            }\n                            var _provincia = \"\";\n                            if (document.getElementById('provincia') != null) {\n                                _provincia = document.getElementById('provincia').value;\n                            }\n                            var _fatturatoAnnoPrecedente = \"\";\n                            if (document.getElementById('fatturatoAnnoPrecedente') != null) {\n                                _fatturatoAnnoPrecedente = document.getElementById('fatturatoAnnoPrecedente').value;\n                            }\n                            var _numeroDipendenti = \"\";\n                            if (document.getElementById('numeroDipendenti') != null) {\n                                _numeroDipendenti = document.getElementById('numeroDipendenti').value;\n                            }\n                            var _settore = \"\";\n                            if (document.getElementById('settore') != null) {\n                                _settore = document.getElementById('settore').value;\n                            }\n                            \/\/ controgliamo gli utm nell'url\n                            let currentUrl = window.location.href;\n                            let sanitizedUrl = currentUrl.replace('?%3F', '?');\n                            const urlObj = new URL(sanitizedUrl);\n                            \/\/ Ottieni i parametri della query\n                            const searchParams = new URLSearchParams(urlObj.search);\n                            var submitUtmContent = \"\";\n                            if (searchParams.get('utm_content')) {\n                                submitUtmContent = searchParams.get('utm_content');\n                            }\n                            var submitUtmCampaign = \"\";\n                            if (searchParams.get('utm_campaign')) {\n                                submitUtmCampaign = searchParams.get('utm_campaign');\n                            }\n                            var submitUtmSource = \"\";\n                            if (searchParams.get('utm_source')) {\n                                submitUtmSource = searchParams.get('utm_source');\n                            }\n                            var submitUtmTerm = \"\";\n                            if (searchParams.get('utm_term')) {\n                                submitUtmTerm = searchParams.get('utm_term');\n                            }\n                            var submitUtmMedium = \"\";\n                            if (searchParams.get('utm_medium')) {\n                                submitUtmMedium = searchParams.get('utm_medium');\n                            }\n                            var submitUtmGoogle = \"\";\n                            if (searchParams.get('gclid')) {\n                                submitUtmGoogle = searchParams.get('gclid');\n                            }\n                            fetch(_urlSubmit, {\n                                    method: 'POST',\n                                    headers: {\n                                        'Content-Type': 'application\/json',\n                                    },\n                                    body: JSON.stringify({\n                                        \"userID\": \"\",\n                                        \"email\": _userEmail,\n                                        \"firstName\": _userFirstName,\n                                        \"lastName\": _userLastName,\n                                        \"phone\": _userPhone,\n                                        \"abtgHoneyField\": _honeyField,\n                                        \"ragione_sociale\": _ragioneSociale,\n                                        \"provincia\": _provincia,\n                                        \"fatturatoAnnoPrecedente\": _fatturatoAnnoPrecedente,\n                                        \"numeroDipendenti\": _numeroDipendenti,\n                                        \"settore\": _settore,\n                                        \"SceltaAreaCoaching\": _SceltaAreaCoaching != null ? _SceltaAreaCoaching.value : '',\n                                        \"sceltaareacoachingtrading\": _sceltaareacoachingtrading != null ? _sceltaareacoachingtrading.value : '',\n                                        \"utm_campaign\": submitUtmCampaign,\n                                        \"utm_content\": submitUtmContent,\n                                        \"utm_source\": submitUtmSource,\n                                        \"utm_term\": submitUtmTerm,\n                                        \"utm_medium\": submitUtmMedium,\n                                        \"utm_google\": submitUtmGoogle,\n                                        \"businessName\": \"\",\n                                        \"businessCode\": \"\",\n                                        \"marketoFormID\": \"2709\",\n                                        \"area\": \"Psicologia\",\n                                        \"mercato\": \"IT\",\n                                        \"canale\": \"Sito Abtg\",\n                                        \"leadSource\": \"IT_Registrazione_Live_MoneyMindset_24_Mag_2025\",\n                                        \"marketophonefield\": \"phone\",\n                                        \"marketoCookie\": \"\",\n                                        \"currentUrl\": currentUrl,\n                                        \"userInMembershipSelect\": \"\",\n                                    }),\n                                })\n                                .then(response => {\n                                    if (!response.ok) {\n                                        throw new Error('Si \u00e8 verificato un errore');\n                                    }\n                                    return response.json();\n                                })\n                                .then(data => {\n                                    console.log('formLead - response: ', data);\n                                    var _redirectUrl = \"https:\/\/www.alfiobardolla.com\/go\/iscrizione-corsi\/money-mindset\/form\/typ\/\";\n                                    var _redirectUrlSendEmail = \"No\";\n                                    if (_redirectUrlSendEmail == \"Yes\") {\n                                        _redirectUrl = _redirectUrl + '?email=' + _userEmail;\n                                    }\n                                    if (data.success == true && _redirectUrl != \"\") {\n                                        location.href = _redirectUrl;\n                                        return;\n                                    }\n                                    \/\/ rimuoviamo lo spinner\n                                    \/\/ var elementToRemove = document.querySelector(\".lds-dual-ring-formSubmit\");\n                                    var elementToRemove = document.querySelector(\".loaderFormSubmit\");\n                                    \/\/ Rimozione dell'elemento se esiste\n                                    if (elementToRemove) {\n                                        elementToRemove.parentNode.removeChild(elementToRemove);\n                                    }\n                                    document.getElementById('customGoFormSubmit').disabled = false;\n                                })\n                                .catch(error => {\n                                    console.error(error);\n                                });\n                            return;\n                        }\n                        \/\/ Dopo un certo periodo di tempo (ad esempio, 5 secondi), riabilita il pulsante\n                        \/\/ TODO: questo non ho capito perch\u00e8 lo avevo messo\n                        setTimeout(function() {\n                            _button.disabled = false;\n                            canSubmitForm = true;\n                        }, 800);\n                    }\n                }\n\n                function abtgCustomFormShowError(inputID) {\n                    var elementoID = document.getElementById(inputID).parentNode;\n                    if (!elementoID.classList.contains('abtgCustomFormInputContainerShowError')) {\n                        elementoID.classList.add('abtgCustomFormInputContainerShowError');\n                    }\n                }\n\n                function abtgCustomFormHideErrors(inputID) {\n                    var elementoID = document.getElementById(inputID).parentNode;\n                    if (elementoID.classList.contains('abtgCustomFormInputContainerShowError')) {\n                        elementoID.classList.remove('abtgCustomFormInputContainerShowError');\n                    }\n                }\n\n                \/\/ gestiamo la funzionalit\u00e0 anche nella form dentro al modal\n                function abtgFormPhoneInit() {\n                    var countryInput = getParameterByName('utm_term');\n                    var _country = 'ES';\n                    if (widgetLanguage == 'IT') {\n                        _country = 'IT';\n                    }\n                    if (widgetLanguage == 'RU') {\n                        _country = 'RU';\n                    }\n                    if (countryInput != null) {\n                        \/\/ controlliamo se \u00e8 una nazione, se si allora andiamo a valorizzare il campo\n                        if (isNazione(countryInput)) {\n                            _country = countryInput;\n                        }\n                    }\n                    var numberPhone = \"\";\n                    setTimeout(() => {\n                        try {\n                            var inputPhone = document.getElementById(\"customGoForm\").elements[\"phone\"];\n                            \/\/if (!iti) {\n                                iti = customWindow.intlTelInput(inputPhone, {\n                                    initialCountry: _country,\n                                    separateDialCode: true,\n                                    utilsScript: baseUrl + \"\/wp-content\/plugins\/abtg-custom-addons\/public\/js\/intlTelInputUtils.js\"\n                                });\n                            \/\/}\n                            iti.promise.then(function() {\n                                \/\/ check if is on first time load\n                                if (iti.getNumber() == \"\") {\n                                    iti.setNumber('');\n                                    handleChange();\n                                }\n                            });\n                            var handleChange = function() {\n                                numberPhone = iti.getNumber();\n                                if (numberPhone != \"\") {\n                                    if (iti.isValidNumber()) {\n                                        document.getElementById('fullPhone').value = numberPhone;\n                                        document.getElementById('customGoFormSubmit').disabled = false;\n                                        hidePhoneError();\n                                    } else {\n                                        document.getElementById('fullPhone').value = '';\n                                        document.getElementById('customGoFormSubmit').disabled = true;\n                                        showPhoneError();\n                                    }\n                                }\n                            };\n                            inputPhone.addEventListener('change', handleChange);\n                            inputPhone.addEventListener('keyup', handleChange);\n                            inputPhone.addEventListener(\"countrychange\", function() {\n                                handleChange();\n                            });\n                        } catch (error) {}\n                        try {\n                            if (inputPhone.value.length > 1) {\n                                handleChange();\n                            }\n                        } catch (error) {\n\n                        }\n                    }, 1000);\n                }\n\n                function showPhoneError() {\n                    var customBtnClassesError = document.getElementsByClassName(\"customGoFormErrorMessageContainer\");\n                    customBtnClassesError[0].style.display = \"block\";\n                }\n\n                function hidePhoneError() {\n                    var customBtnClassesError = document.getElementsByClassName(\"customGoFormErrorMessageContainer\");\n                    customBtnClassesError[0].style.display = \"none\";\n                }\n\n                function getParameterByName(name, url = window.location.href) {\n                    name = name.replace(\/[\\[\\]]\/g, '\\\\$&');\n                    var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),\n                        results = regex.exec(url);\n                    if (!results) return null;\n                    if (!results[2]) return '';\n                    return decodeURIComponent(results[2].replace(\/\\+\/g, ' '));\n                }\n            <\/script>\n                <form action=\"\" method=\"post\" id=\"customGoForm\">\n                            <div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-first_name elementor-col-100 elementor-field-required abtgCustomFormInputContainer\">\n                    <label for=\"form-field-first_name\" class=\"elementor-field-label elementor-screen-only\">Nome<\/label>\n                    <input size=\"1\" type=\"text\" name=\"first_name\" id=\"first_name\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Nome\" value=\"\" required=\"required\" aria-required=\"true\">\n                    <span class=\"errorMessage\">Campo richiesto<\/span>\n                <\/div>\n                                        <div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-last_name elementor-col-100 elementor-field-required abtgCustomFormInputContainer\" style=\"margin-top:25px;\">\n                    <label for=\"form-field-last_name\" class=\"elementor-field-label elementor-screen-only\">Cognome<\/label>\n                    <input size=\"1\" type=\"text\" name=\"last_name\" id=\"last_name\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Cognome\" value=\"\" required=\"required\" aria-required=\"true\">\n                    <span class=\"errorMessage\">Campo richiesto<\/span>\n                <\/div>\n                        <div class=\"elementor-field-type-email elementor-field-group elementor-column elementor-field-group-email elementor-col-100 elementor-field-required abtgCustomFormInputContainer\" style=\"margin-top:25px;\">\n                <label for=\"form-field-email\" class=\"elementor-field-label elementor-screen-only\">Email<\/label>\n                <input size=\"1\" type=\"email\" name=\"email\" id=\"email\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Email\" value=\"\" required=\"required\" aria-required=\"true\">\n                <span class=\"errorMessage\">Campo richiesto<\/span>\n            <\/div>\n                            <div class=\"elementor-field-type-tel elementor-field-group elementor-column elementor-field-group-phone elementor-col-100 elementor-field-required\" style=\"margin-top:25px;\">\n                    <label for=\"form-field-phone\" class=\"elementor-field-label elementor-screen-only\">Telefono<\/label>\n                    <input size=\"1\" type=\"tel\" name=\"phone\" id=\"phone\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Telefono\" value=\"\" required=\"required\" aria-required=\"true\">\n                <\/div>\n                <input type=\"hidden\" name=\"fullPhone\" id=\"fullPhone\" value=\"\" \/>\n                                                                                                                        <div class=\"customGoFormErrorMessageContainer\" style=\"margin-top:15px; display: none;\">\n                <span style=\"color: red;\">Inserisci un numero di telefono corretto.<\/span>\n            <\/div>\n            <div class=\"elementor-field-type-acceptance elementor-field-group elementor-column elementor-field-group-00N1t00000Kyjd5 elementor-col-100 elementor-field-required\" style=\"margin-top:25px;\">\n                <label for=\"abtgCustomFormCheckPrivacy\" class=\"elementor-field-label elementor-screen-only\">Privacy Policy<\/label>\n                <div class=\"elementor-field-subgroup\">\n                    <div class=\"elementor-field-option abtgCustomFormInputContainer\">\n                        <input type=\"checkbox\" name=\"form_fields[00N1t00000Kyjd5]\" id=\"abtgCustomFormCheckPrivacy\" class=\"elementor-field elementor-size-sm  elementor-acceptance-field\" required=\"required\" aria-required=\"true\">\n                        <label for=\"abtgCustomFormCheckPrivacy\">\n                            <p>Presa visione e accettazione <a href=\"https:\/\/www.alfiobardolla.com\/privacy\/\" target=\"_blank\" rel=\"noopener\"> Privacy Policy<\/a> inclusa la possibilit\u00e0 di ricevere chiamate esplicative delle risorse gratuite scaricate<\/p><p><span style=\"font-size: 14px;\">\u00a0<\/span><\/p>                        <\/label>\n                        <span class=\"errorMessage\" style=\"font-size: 12px; width: 200px;\">Campo richiesto<\/span>\n                    <\/div>\n                <\/div>\n            <\/div>\n            <input type=\"hidden\" name=\"abtgHoneyField\" id=\"abtgHoneyField\" value=\"\" \/>\n            <div style=\"margin-top: 25px;\">\n                <button type=\"button\" onClick=\"onSubmit.apply(this, arguments)\" name=\"customGoFormSubmit\" id=\"customGoFormSubmit\" class=\"elementor-button elementor-size-sm customGoFormSubmitTextSmall\" style=\"font-weight: 700;font-size: 18px;width: 100%; background-color: #61CE70;\" onMouseOver=\"this.style.backgroundColor='#00BC0D'\" onMouseOut=\"this.style.backgroundColor='#61CE70'\">SI, VOGLIO PRENOTARE IL MIO POSTO<\/button>\n            <\/div>\n        <\/form>\n\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1f36848 e-con-full e-flex e-con e-parent\" data-id=\"1f36848\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-47539d8 elementor-widget elementor-widget-shortcode\" data-id=\"47539d8\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"2361\" class=\"elementor elementor-2361\" data-elementor-post-type=\"elementor_library\">\n\t\t\t<div class=\"elementor-element elementor-element-e7124c9 e-con-full elementor-hidden-mobile e-flex e-con e-parent\" data-id=\"e7124c9\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-43168f8 e-con-full e-flex e-con e-child\" data-id=\"43168f8\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d64ee8e elementor-icon-list--layout-inline elementor-align-center elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"d64ee8e\" data-element_type=\"widget\" data-widget_type=\"icon-list.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul class=\"elementor-icon-list-items elementor-inline-items\">\n\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/privacy-policy\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Privacy Policy<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/cookie-policy\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Cookie Policy<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/condizioni-di-vendita\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Condizioni di Vendita<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/disclaimer\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Disclaimer<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8c3cd63 elementor-icon-list--layout-inline elementor-align-center elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"8c3cd63\" data-element_type=\"widget\" data-widget_type=\"icon-list.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul class=\"elementor-icon-list-items elementor-inline-items\">\n\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Copyright &copy; 2026 Alfio Bardolla Training Group S.p.A<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Via Pietrasanta, 14 - 20141 Milano (MI)<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Capitale sociale 2.694.702,50\u20ac<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">P. Iva 08009280960<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2ba8669 e-con-full elementor-hidden-desktop elementor-hidden-tablet e-flex e-con e-parent\" data-id=\"2ba8669\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-7566d5c e-con-full e-flex e-con e-child\" data-id=\"7566d5c\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5da6860 elementor-align-center elementor-icon-list--layout-traditional elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"5da6860\" data-element_type=\"widget\" data-widget_type=\"icon-list.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul class=\"elementor-icon-list-items\">\n\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/privacy-policy\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Privacy Policy<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/cookie-policy\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Cookie Policy<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/condizioni-di-vendita\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Condizioni di Vendita<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.alfiobardolla.com\/disclaimer\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Disclaimer<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7ba1a4a elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"7ba1a4a\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-84d5d34 elementor-align-center elementor-icon-list--layout-traditional elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"84d5d34\" data-element_type=\"widget\" data-widget_type=\"icon-list.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul class=\"elementor-icon-list-items\">\n\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Copyright &copy; 2026 Alfio Bardolla Training Group S.p.A<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Via Pietrasanta, 14 - 20141 Milano (MI)<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Capitale sociale 2.694.702,50\u20ac<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"elementor-icon-list-item\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">P. Iva 08009280960<\/span>\n\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Torna indietro Money Mindset Compila il form per prenotare il tuo posto\u200b Nome Campo richiesto Cognome Campo richiesto Email Campo richiesto Telefono Inserisci un numero di telefono corretto. Privacy Policy Presa visione e accettazione Privacy Policy inclusa la possibilit\u00e0 di ricevere chiamate esplicative delle risorse gratuite scaricate \u00a0 Campo richiesto SI, VOGLIO PRENOTARE IL MIO [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":33325,"parent":30817,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[62],"tags":[],"class_list":["post-33336","page","type-page","status-publish","has-post-thumbnail","hentry","category-iscrizione-corsi"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/pages\/33336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/comments?post=33336"}],"version-history":[{"count":3,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/pages\/33336\/revisions"}],"predecessor-version":[{"id":56231,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/pages\/33336\/revisions\/56231"}],"up":[{"embeddable":true,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/pages\/30817"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/media\/33325"}],"wp:attachment":[{"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/media?parent=33336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/categories?post=33336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alfiobardolla.com\/go\/wp-json\/wp\/v2\/tags?post=33336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}