{"id":1283,"date":"2022-08-02T14:11:50","date_gmt":"2022-08-02T12:11:50","guid":{"rendered":"https:\/\/www.alfiobardolla.es\/go\/?page_id=1283"},"modified":"2024-02-05T10:45:22","modified_gmt":"2024-02-05T09:45:22","slug":"form-mobile-masterclass-en-forex","status":"publish","type":"page","link":"https:\/\/www.alfiobardolla.es\/go\/form-mobile-masterclass-en-forex\/","title":{"rendered":"FORM Mobile &#8211; Masterclass en Forex"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1283\" class=\"elementor elementor-1283\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bea71b9 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"bea71b9\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ddfbca6\" data-id=\"ddfbca6\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d893d57 elementor-widget elementor-widget-image\" data-id=\"d893d57\" 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.es\/go\/wp-content\/uploads\/2022\/06\/Alfio-Bardolla-Training-Group-Logo-White-1.svg\" class=\"attachment-large size-large wp-image-114\" alt=\"\" \/>\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-535e9ed elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"535e9ed\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1ebc2ad9\" data-id=\"1ebc2ad9\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-42c898e5 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"42c898e5\" data-element_type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/www.alfiobardolla.es\/go\/masterclass-en-forex\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t<span class=\"elementor-button-icon\">\n\t\t\t\t<i aria-hidden=\"true\" class=\"fas fa-angle-left\"><\/i>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">hacia atr\u00e1s<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-38073b60 elementor-widget elementor-widget-heading\" data-id=\"38073b60\" 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\"><span class=\"arancione\">Completa los datos<\/span> para acc\u00e9der<br>a la Masterclass Gratis<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-93ba4be elementor-widget elementor-widget-abtg-go-customform\" data-id=\"93ba4be\" 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 = 'ES';\n            <\/script>\n                                    <style>\n                .iti {\n                    width: 100%;\n                }\n\n                .intl-tel-input {\n                    width: 100%;\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 = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/; \/\/ regex old\n                    \/\/ var regex = \/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$\/;\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\": \"1145\",\n                                        \"area\": \"Trading\",\n                                        \"mercato\": \"ES\",\n                                        \"canale\": \"Sito Abtg\",\n                                        \"leadSource\": \"ES Masterclass Forex Trading\",\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.es\/go\/typ-masterclass-en-forex\/\";\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                            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                            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\">Nombre<\/label>\n                    <input size=\"1\" type=\"text\" name=\"first_name\" id=\"first_name\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Nombre\" 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\">Apellido<\/label>\n                    <input size=\"1\" type=\"text\" name=\"last_name\" id=\"last_name\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Apellido\" 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\">Tel\u00e8fono<\/label>\n                    <input size=\"1\" type=\"tel\" name=\"phone\" id=\"phone\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Tel\u00e8fono\" 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;\">Ingrese un n\u00famero de tel\u00e9fono correcto.<\/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                            <span style=\"font-size: 14px;\">He le\u00eddo y aceptado la <a href=\"https:\/\/www.alfiobardolla.es\/politica-privacidad\/\" target=\"_blank\">Pol\u00edtica de Privacidad<\/a> incluida la posibilidad de recibir llamadas explicativas de los recursos gratuitos descargados<\/span>                        <\/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'\">MIRA AHORA LA MASTERCLASS GRATIS<\/button>\n            <\/div>\n        <\/form>\n\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-01c3fa8 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"01c3fa8\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f873661\" data-id=\"f873661\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ba3ad88 elementor-widget elementor-widget-shortcode\" data-id=\"ba3ad88\" 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=\"60\" class=\"elementor elementor-60\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0a8cd1a elementor-section-full_width elementor-hidden-mobile elementor-section-height-default elementor-section-height-default\" data-id=\"0a8cd1a\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0698aa0\" data-id=\"0698aa0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6dfc425 elementor-icon-list--layout-inline elementor-align-center elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"6dfc425\" 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.es\/politica-privacidad\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Pol\u00edtica de privacidad<\/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.es\/politica-de-cookies\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Pol\u00edtica de Cookies<\/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.es\/condiciones-generales-del-contrato\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Condiciones generales del contrato<\/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.es\/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-4408e89 elementor-icon-list--layout-inline elementor-align-center elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"4408e89\" 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 \u00a9 2025 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\">Capital social 2.504.175,00 \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\">CIF B88070651<\/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\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f09358e elementor-section-full_width elementor-hidden-desktop elementor-hidden-tablet elementor-section-height-default elementor-section-height-default\" data-id=\"f09358e\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-178df87\" data-id=\"178df87\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ccc5d3e elementor-align-center elementor-icon-list--layout-traditional elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"ccc5d3e\" 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.es\/politica-privacidad\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Pol\u00edtica de privacidad<\/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.es\/politica-de-cookies\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Pol\u00edtica de Cookies<\/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.es\/condiciones-generales-del-contrato\/\" target=\"_blank\">\n\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text\">Condiciones generales del contrato<\/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.es\/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-e9c3d51 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"e9c3d51\" 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-41fbb8bc elementor-align-center elementor-icon-list--layout-traditional elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list\" data-id=\"41fbb8bc\" 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 \u00a9 2025<\/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\">Alfio Bardolla Training Group S.p.A. <br><\/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\">Capital social 2.504.175,00 \u20ac \u2013 CIF B88070651<\/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\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\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\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>hacia atr\u00e1s Completa los datos para acc\u00e9dera la Masterclass Gratis Nombre Apellido Email Tel\u00e8fono Ingrese un n\u00famero de tel\u00e9fono correcto. Privacy Policy He le\u00eddo y aceptado la Pol\u00edtica de Privacidad incluida la posibilidad de recibir llamadas explicativas de los recursos gratuitos descargados MIRA AHORA LA MASTERCLASS GRATIS<\/p>\n","protected":false},"author":10,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_acf_changed":false,"footnotes":""},"categories":[12,15],"tags":[],"class_list":["post-1283","page","type-page","status-publish","hentry","category-masterclass","category-form-mobile"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/pages\/1283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/comments?post=1283"}],"version-history":[{"count":11,"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/pages\/1283\/revisions"}],"predecessor-version":[{"id":1418,"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/pages\/1283\/revisions\/1418"}],"wp:attachment":[{"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/media?parent=1283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/categories?post=1283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alfiobardolla.es\/go\/wp-json\/wp\/v2\/tags?post=1283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}