/* Created at 22/02/2025 18:02:34*/
$.cookie('cookie_consent_statistics', false, { path: '/' });

    (function($){

        $(document).ready(function(){

            $(function() {
                $(document).on('click', 'a.page-scroll', function(event) {

                    if(currentBootstrapBreakPoint == 'xs' || currentBootstrapBreakPoint == 'sm'){
                        var offsetFIX = 55;
                    }else{
                        var offsetFIX = 0;
                    }

                    event.preventDefault();
                    var $anchor = $(this);
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top - offsetFIX
                    }, 1500, 'easeInOutExpo');
                });
            });

        });

    })(jQuery);(function($){

        $(document).ready(function(){

             var body        = $('body'),
                html         = $('html'),
                navbarToggle = $('.navbarToggle'),
                overlayMenu  = $('.menu-main'),
                closeMenu    = $('.close-menu');

            navbarToggle.click(function(){
                var iconMenu = $(this).children('.icon-menu');
                if (iconMenu.hasClass('closed')) {
                    iconMenu.removeClass('closed');
                    overlayMenu.addClass('opened').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend');
                    body.css('overflow','hidden');
                    html.css('overflow','hidden');
                }
            });
            closeMenu.click(function(){
                if (!$('.navbarToggle .icon-menu').hasClass('closed')) {
                    $('.navbarToggle .icon-menu').addClass('closed');
                    body.css('overflow-y','auto');
                    html.css('overflow-y','auto');
                    overlayMenu.removeClass('opened').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend');
                }
            });

            $(document).on('click', 'a.open-sub-menu', function(event) {
                event.preventDefault();
                if($(this).next('.sub-menu').hasClass('opened')){
                    $('.sub-menu').removeClass('opened');
                    return false;
                }
                $('.sub-menu').removeClass('opened');
                $(this).next('.sub-menu').addClass('opened');
            });

            $(document).on('click', function () {
                if($('.sub-menu').hasClass('opened')){
                    if (!$(event.target).closest('.navbar-container').length) {
                        $('.sub-menu').removeClass('opened');
                    }
                }
            });

        });

    })(jQuery);eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(0($){$(\'.1\').5(0(){$(2).4(\'.1-3\').6({7:$(2).b(\'a-9\')},8)})})(c);',13,13,'function|skillbar|this|bar|find|each|animate|width|6000|percent|data|attr|jQuery'.split('|'),0,{}));jQuery("input[type='submit']").each(function(){
            var html = $(this)[0].outerHTML,
                inputClass = $(this).attr("class"),
                inputOnClick = $(this).attr("onclick") || "return true;",
                inputValue = $(this).attr("value"),
                newElement = $(document.createElement('button'))
                            .attr({
                               'class': inputClass
                               ,'onclick': inputOnClick
                               ,'data-style': 'expand-left'
                            })
                            .addClass("ladda-button")
                            .html("<span class='ladda-label'>"+ inputValue +"</span>");


                $(this).parent().append(newElement).find('input').remove();
        });
        function check_guestbook() {
            return true;
        }
            jQuery(document).ready( function() {
                jQuery('#form_guestbook').bootstrapValidator({
                    live: 'enabled',
                    feedbackIcons: {
                        valid: 'glyphicon glyphicon-ok',
                        invalid: 'glyphicon glyphicon-remove',
                        validating: 'glyphicon glyphicon-refresh'
                    },
                    fields: {
                        'data[input_idinput-26]': {
                            validators: {
                                date: {
                                    format: 'DD/MM/YYYY',
                                    message: ' '
                                },
                                callback: {
                                    message: 'Inserire una data valida e nel formato dd/mm/yyyy',
                                    callback: function(value, validator) {
                                        var m = new moment(value, 'DD/MM/YYYY', true);
                                        if (!m.isValid()) {
                                            return false;
                                        }
                                        var today  = new Date(),
                                        todayYear  = today.getFullYear(),
                                        afterYear  = todayYear-90,
                                        beforeYear = todayYear-14;

                                        // Check if the date in our range
                                        return m.isAfter(afterYear+'/01/01') && m.isBefore(beforeYear+'/12/30');
                                    }
                                }
                            }
                        },
                        'data[88]': {
                            validators: {
                                date: {
                                    format: 'DD/MM/YYYY',
                                    message: ' '
                                },
                                callback: {
                                    message: 'Inserire una data valida e nel formato dd/mm/yyyy',
                                    callback: function(value, validator) {
                                        var m = new moment(value, 'DD/MM/YYYY', true);
                                        if (!m.isValid()) {
                                            return false;
                                        }
                                        var today  = new Date(),
                                        todayYear  = today.getFullYear(),
                                        afterYear  = todayYear-90,
                                        beforeYear = todayYear-14;

                                        // Check if the date in our range
                                        return m.isAfter(afterYear+'/01/01') && m.isBefore(beforeYear+'/12/30');
                                    }
                                }
                            }
                        }
                    }
                });
            });
        function before() {
}        function invia_68000a219f13bacaf991c71f8310520f(e){
            if(e){
                e.preventDefault();
            }
            var l = Ladda.create( document.querySelector( '#form_guestbook .ladda-button[type=submit]' ) );
            l.start();


            $.ajax({
                type : "POST",
                url: "https://www.cescot-rimini.com/proxyajax/guestbook/guestbook.php?lingua=it&id=104",
                data: jQuery('#form_guestbook').serialize(),
                dataType: "json",
                beforeSend: before,
                success: function action(response) {        var res = response;

        if(res.result === "ok"){
            window.dataLayer = window.dataLayer || [];                if(res.reset !== 0){
                    jQuery('#form_guestbook').data('bootstrapValidator').resetForm();
                    jQuery('#form_guestbook')
                        .find(".form-group input, .form-group textarea")
                        .val("")
                        .removeAttr("checked");
                    jQuery('#form_guestbook')
                        .find(".name_file")
                        .html("");
                    jQuery('#form_guestbook')
                        .find(".file")
                        .val("");
                }

            }else{


            }
        },

        error: function action(response) {
            console.log('error '+response);
        },

        complete: function (response) {
            l.toggle();

            var res = jQuery.parseJSON(response.responseText),
                title = "",
                text = null,
                alertType = "";

            /*
             *  - Check the response.
             *  - Build message and icon for the alert window
            */
            if(response.status === 200) {

                if(res.result === "location"){
                    window.location = res.text;
                    return true;
                }

                alertType = res.result === "ok" ? "success" : "error";

                title = res.text;

            } else {
                alertType = "error";
                title = "Errore, riprovare.";
                text = " An error occurs. Please, try again.";
            }

            swal({
                title: title,
                text: text,
                confirmButtonColor: "#3CB4EB",
                type: alertType            });
                }
            });
        };eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4($){$(j).t(4(){0 i=$(u),1=$(\'.6-g\');2(h==\'s\'||h==\'o\'){i.q(4(){0 8=$(j).f();0 k=w+$(\'.6-g\').f();0 d=8-k;2($(3).c()>A&&8>y){1.b(\'l\');2($(3).c()>d){1.b(\'e\')}5{1.m(\'e\')}}5{1.m(\'l\')}})}5{$(\'.E-6\').z()}0 7=$(\'.x-9 .B\'),a=7.9().n;7.D(4(){0 a=$(3).9().n;2(a>v){$(3).b(\'p-r\')}})})})(C);',41,41,'var|ricercaCorso|if|this|function|else|ricerca|corsiTitle|viewport_height|text|corsiTitleCount|addClass|scrollTop|fixedHeight|goBottom|height|corso|currentBootstrapBreakPoint|_window|document|difference|lfixed|removeClass|length|lg|small|scroll|size|md|ready|window|85|960|corsi|2000|hide|321|titolo|jQuery|each|toggle'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5($){5 w(3){$.C(3,5(A,0){F 2=\'\';6(0.c){2+=\'<a 7="\'+0.7+\'" b="0 i x-l" t="\'+0.t+\'" g="\'+0.4+\'" I="\'+0.c+\'">\'}9{2+=\'<q 7="\'+0.7+\'" b="0 x-l">\'}6(0.d){2+=\'<8 b="8-y u-i" g="\'+0.4+\'" 4="\'+0.4+\'" d="\'+0.r+\'">\'}9{2+=\'<8 b="8-y u-i" g="\'+0.4+\'" 4="\'+0.4+\'" d="o://n.k-s.m/G/E/J/K/D.z">\'}6(0.c){2+=\'</a>\'}9{2+=\'</q>\'}$(\'.0-p\').B(2)});$(\'.0-p\').H({Z:1,14:h,13:h,12:f,11:f})}$(16).19(5(){$.L({1a:\'17\',r:\'o://n.k-s.m/18/0/15.10\',Q:h,R:f,3:{\'P\':\'O\',\'M\':\'N-S\'},T:"Y",X:5(3){6(!$.W(3)&&$.U(3)){w(3)}9{v.j(3)}},j:5(e){v.j(e.V)}})})})(1b);',62,74,'banner||html|data|alt|function|if|id|img|else||class|link|src||true|title|false|block|error|cescot|center|com|www|https|side|div|url|rimini|target|inline|console|getHTMLBanner|text|responsive|gif|key|append|each|logo|templates|var|view|owlCarousel|href|bootstrapv3|pic|ajax|nomeZona|Side|Pagine|position|cache|crossDomain|sx|dataType|isArray|message|isEmptyObject|success|json|items|php|autoPlay|lazyLoad|itemsDesktopSmall|itemsDesktop|getBanner|document|POST|proxyajax|ready|type|jQuery'.split('|'),0,{}));jQuery("input[type='submit']").each(function(){
            var html = $(this)[0].outerHTML,
                inputClass = $(this).attr("class"),
                inputOnClick = $(this).attr("onclick") || "return true;",
                inputValue = $(this).attr("value"),
                newElement = $(document.createElement('button'))
                            .attr({
                               'class': inputClass
                               ,'onclick': inputOnClick
                               ,'data-style': 'expand-left'
                            })
                            .addClass("ladda-button")
                            .html("<span class='ladda-label'>"+ inputValue +"</span>");


                $(this).parent().append(newElement).find('input').remove();
        });
        function check_moduloForm() {
            return true;
        }
            jQuery(document).ready( function() {
                jQuery('#form_moduloForm').bootstrapValidator({
                    live: 'enabled',
                    feedbackIcons: {
                        valid: 'glyphicon glyphicon-ok',
                        invalid: 'glyphicon glyphicon-remove',
                        validating: 'glyphicon glyphicon-refresh'
                    },
                    fields: {
                        'data[input_idinput-26]': {
                            validators: {
                                date: {
                                    format: 'DD/MM/YYYY',
                                    message: ' '
                                },
                                callback: {
                                    message: 'Inserire una data valida e nel formato dd/mm/yyyy',
                                    callback: function(value, validator) {
                                        var m = new moment(value, 'DD/MM/YYYY', true);
                                        if (!m.isValid()) {
                                            return false;
                                        }
                                        var today  = new Date(),
                                        todayYear  = today.getFullYear(),
                                        afterYear  = todayYear-90,
                                        beforeYear = todayYear-14;

                                        // Check if the date in our range
                                        return m.isAfter(afterYear+'/01/01') && m.isBefore(beforeYear+'/12/30');
                                    }
                                }
                            }
                        },
                        'data[88]': {
                            validators: {
                                date: {
                                    format: 'DD/MM/YYYY',
                                    message: ' '
                                },
                                callback: {
                                    message: 'Inserire una data valida e nel formato dd/mm/yyyy',
                                    callback: function(value, validator) {
                                        var m = new moment(value, 'DD/MM/YYYY', true);
                                        if (!m.isValid()) {
                                            return false;
                                        }
                                        var today  = new Date(),
                                        todayYear  = today.getFullYear(),
                                        afterYear  = todayYear-90,
                                        beforeYear = todayYear-14;

                                        // Check if the date in our range
                                        return m.isAfter(afterYear+'/01/01') && m.isBefore(beforeYear+'/12/30');
                                    }
                                }
                            }
                        }
                    }
                });
            });
        function before() {
}        function invia_cf18e581dc3f693377a5569cc173442e(e){
            if(e){
                e.preventDefault();
            }
            var l = Ladda.create( document.querySelector( '#form_moduloForm .ladda-button[type=submit]' ) );
            l.start();


            $.ajax({
                type : "POST",
                url: "https://www.cescot-rimini.com/proxyajax/newsletter/iscrizione.php?lingua=it&id=104",
                data: jQuery('#form_moduloForm').serialize(),
                dataType: "json",
                beforeSend: before,
                success: function action(response) {        var res = response;

        if(res.result === "ok"){
            window.dataLayer = window.dataLayer || [];
try{
            trackEvents('Newsletter Iscrizione', 'Completato', 'Subscribe', 'SubscribeNewsletter');
            dataLayer.push({'event': 'subscribe_newsletter'});
}catch(e){};
                if(res.reset !== 0){
                    jQuery('#form_moduloForm').data('bootstrapValidator').resetForm();
                    jQuery('#form_moduloForm')
                        .find(".form-group input, .form-group textarea")
                        .val("")
                        .removeAttr("checked");
                    jQuery('#form_moduloForm')
                        .find(".name_file")
                        .html("");
                    jQuery('#form_moduloForm')
                        .find(".file")
                        .val("");
                }

            }else{


            }
        },

        error: function action(response) {
            console.log('error '+response);
        },

        complete: function (response) {
            l.toggle();

            var res = jQuery.parseJSON(response.responseText),
                title = "",
                text = null,
                alertType = "";

            /*
             *  - Check the response.
             *  - Build message and icon for the alert window
            */
            if(response.status === 200) {

                if(res.result === "location"){
                    window.location = res.text;
                    return true;
                }

                alertType = res.result === "ok" ? "success" : "error";

                title = res.text;

            } else {
                alertType = "error";
                title = "Errore, riprovare.";
                text = " An error occurs. Please, try again.";
            }

            swal({
                title: title,
                text: text,
                confirmButtonColor: "#3CB4EB",
                type: alertType            });
                }
            });
        };eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('6(9).l(0(){6("a[8=\'1 7\']").k({\'j\':\'4\',\'m\':\'4\',\'n\':q,\'p\':i,\'r\':b,\'5\':\'h\',c:0(){},g:0(){},f:0(){},d:{o:{5:\'E\'}}});G(H 3!==\'s\'&&3==\'C\'){$("a[8=\'1 7\']").F("2",0(e){e.B();$(9).A(\'2.v-u\');t.w($(x).z(\'y\'),\'D\')})}});',44,44,'function|Cookie|click|currentBootstrapBreakPoint|elastic|type|jQuery|Policy|rel|document||false|beforeShow|helpers||onUpdate|afterShow|iframe|700|transitionIn|fancybox|ready|transitionOut|width|title|height|1000|autoSize|undefined|window|start|fb|open|this|href|prop|unbind|preventDefault|xs|_blank|inside|on|if|typeof'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('a 5(2){2=2.b(/c?:\\/\\/(9.)?/i,\'\');7(2.6(\'/\')===-1){3 2}3 2.8(\'/\')[0]}e.n=\'m=\'+o.l(4.k,4.f)+\'; g=/; h=\'+5(j.d);',25,25,'||url|return|screen|getDomain|indexOf|if|split|www|function|replace|https|href|document|height|path|domain||location|width|max|resolution|cookie|Math'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1(h).d(c(){2 0=$(\'<0 5="g:8;4:8;3:i;f:e;b:-6;j:-6;"><0 5="4:t;"></0>\');1(\'q\').k(0);2 a=1(\'0\',0).7();0.s(\'3-p\',\'o\');2 9=1(\'0\',0).7();1(0).l();m.n=(a-9)+\'r\'});',30,30,'div|jQuery|var|overflow|height|style|200px|innerWidth|50px|w2|w1|top|function|ready|absolute|position|width|document|hidden|left|append|remove|window|scrollbarwidth|scroll|y|body|px|css|100px'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(0($){$(0(){$.1({"2":"","3":"4"})})}(5));',6,6,'function|scrollUp|scrollText|animation|slide|jQuery'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1(h).g(5(){1(\'a[3*="@"]\').i(5(){f(!1.4(\'6-0\')){0=1(k).l(\'3\').e(\'7:\',\'\');1.9(\'/b/c/d.8?j=A\',{0:0});w(\'m\',\'x\',0,\'y\');z 2=B u();2.t(2.o()+(n*p));1.4(\'6-0\',\'q\',{s:2})}r v})});',38,38,'email|jQuery|date|href|cookie|function|track|mailto|php|post||proxyajax|form|trackMail|replace|if|ready|document|click|lingua|this|attr|Email|60|getTime|1000|yes|return|expires|setTime|Date|true|trackEvents|Click|ClickEmail|var|it|new'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('0(k).j(3(){0(\'a[4*="5:"]\').l(3(){6(!0.8(\'b-9\')){1=0(m).i(\'4\').o(\'5:\',\'\');6(1.h>7){0.f(\'/g/e/c.d?n=C\',{B:1});p(\'z\',\'D\',1,\'F\');E 2=y x();2.s(2.r()+(q*t));0.8(\'b-9\',\'u\',{w:2})}}v A})});',42,42,'jQuery|telephone|date|function|href|tel|if||cookie|phone||track|trackTel|php|form|post|proxyajax|length|attr|ready|document|click|this|lingua|replace|trackEvents|60|getTime|setTime|1000|yes|return|expires|Date|new|Telefono|true|email|it|Click|var|ClickPhone'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('0(E).I(7(){0(\'a[9*="F.4"]\').h(7(){k(!0.5(\'6-4\')){8=0(l).g(\'9\').8(\'=\');3=8[1].i(\'#D\',\'\').i(\'%G\',\' \');0.m(\'/f/b/c.e?n=j\',{r:3});y(\'x\',\'A\',3,\'z\');B 2=C v();2.q(2.p()+(o*w));0.5(\'6-4\',\'s\',{u:2})}t d});0(\'a[9*="H.K"]\').h(7(){k(!0.5(\'6-4\')){3=0(l).g(\'J\');0.m(\'/f/b/c.e?n=j\',{r:3});y(\'x\',\'A\',3,\'z\');B 2=C v();2.q(2.p()+(o*w));0.5(\'6-4\',\'s\',{u:2})}t d})});',47,47,'jQuery||date|telephone|whatsapp|cookie|track|function|split|href||form|trackWhatsApp|true|php|proxyajax|attr|click|replace|it|if|this|post|lingua|60|getTime|setTime|email|yes|return|expires|Date|1000|WhatsApp|trackEvents|ClickWhatsApp|Click|var|new|_ga|document|api|20|wa|ready|title|me'.split('|'),0,{}));