/* Minification failed. Returning unminified contents.
(2,1): run-time error CSS1019: Unexpected token, found '$'
(2,2): run-time error CSS1019: Unexpected token, found '('
(2,11): run-time error CSS1031: Expected selector, found ')'
(2,11): run-time error CSS1025: Expected comma or open brace, found ')'
(66,2): run-time error CSS1019: Unexpected token, found ')'
(70,21): run-time error CSS1031: Expected selector, found '='
(70,21): run-time error CSS1025: Expected comma or open brace, found '='
(146,1): run-time error CSS1019: Unexpected token, found 'appearAnimation('
(146,17): run-time error CSS1019: Unexpected token, found ')'
(151,1): run-time error CSS1019: Unexpected token, found '$'
(151,2): run-time error CSS1019: Unexpected token, found '('
(151,3): run-time error CSS1019: Unexpected token, found ''.parallax-window5''
(151,22): run-time error CSS1019: Unexpected token, found ')'
(151,24): run-time error CSS1030: Expected identifier, found 'parallax('
(151,24): run-time error CSS1019: Unexpected token, found 'parallax('
(151,33): run-time error CSS1019: Unexpected token, found '{'
(151,44): run-time error CSS1030: Expected identifier, found ' '
(151,45): run-time error CSS1031: Expected selector, found ''/assets/img/intro-bg2.jpg''
(151,45): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/intro-bg2.jpg''
(152,1): run-time error CSS1019: Unexpected token, found '$'
(152,2): run-time error CSS1019: Unexpected token, found '('
(152,3): run-time error CSS1019: Unexpected token, found ''.parallax-window4''
(152,22): run-time error CSS1019: Unexpected token, found ')'
(152,24): run-time error CSS1030: Expected identifier, found 'parallax('
(152,24): run-time error CSS1019: Unexpected token, found 'parallax('
(152,33): run-time error CSS1019: Unexpected token, found '{'
(152,44): run-time error CSS1030: Expected identifier, found ' '
(152,45): run-time error CSS1031: Expected selector, found ''/assets/img/ragazza_gluten-compressor.jpg''
(152,45): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/ragazza_gluten-compressor.jpg''
(153,1): run-time error CSS1019: Unexpected token, found '$'
(153,2): run-time error CSS1019: Unexpected token, found '('
(153,3): run-time error CSS1019: Unexpected token, found ''.parallax-window3''
(153,22): run-time error CSS1019: Unexpected token, found ')'
(153,24): run-time error CSS1030: Expected identifier, found 'parallax('
(153,24): run-time error CSS1019: Unexpected token, found 'parallax('
(153,33): run-time error CSS1019: Unexpected token, found '{'
(153,44): run-time error CSS1030: Expected identifier, found ' '
(153,45): run-time error CSS1031: Expected selector, found ''/assets/img/bimboa-compressor.jpg''
(153,45): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/bimboa-compressor.jpg''
(154,1): run-time error CSS1019: Unexpected token, found '$'
(154,2): run-time error CSS1019: Unexpected token, found '('
(154,3): run-time error CSS1019: Unexpected token, found ''.parallax-window2''
(154,22): run-time error CSS1019: Unexpected token, found ')'
(154,24): run-time error CSS1030: Expected identifier, found 'parallax('
(154,24): run-time error CSS1019: Unexpected token, found 'parallax('
(154,33): run-time error CSS1019: Unexpected token, found '{'
(154,44): run-time error CSS1030: Expected identifier, found ' '
(154,45): run-time error CSS1031: Expected selector, found ''/assets/img/bimbo18-compressor.jpg''
(154,45): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/bimbo18-compressor.jpg''
(155,1): run-time error CSS1019: Unexpected token, found '$'
(155,2): run-time error CSS1019: Unexpected token, found '('
(155,3): run-time error CSS1019: Unexpected token, found ''.parallax-window''
(155,21): run-time error CSS1019: Unexpected token, found ')'
(155,23): run-time error CSS1030: Expected identifier, found 'parallax('
(155,23): run-time error CSS1019: Unexpected token, found 'parallax('
(155,32): run-time error CSS1019: Unexpected token, found '{'
(155,43): run-time error CSS1030: Expected identifier, found ' '
(155,44): run-time error CSS1031: Expected selector, found ''/assets/img/bimbo24-compressor.jpg''
(155,44): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/bimbo24-compressor.jpg''
(156,1): run-time error CSS1019: Unexpected token, found '$'
(156,2): run-time error CSS1019: Unexpected token, found '('
(156,3): run-time error CSS1019: Unexpected token, found ''.parallax-sencappelli''
(156,26): run-time error CSS1019: Unexpected token, found ')'
(156,28): run-time error CSS1030: Expected identifier, found 'parallax('
(156,28): run-time error CSS1019: Unexpected token, found 'parallax('
(156,37): run-time error CSS1019: Unexpected token, found '{'
(156,48): run-time error CSS1030: Expected identifier, found ' '
(156,49): run-time error CSS1031: Expected selector, found ''/assets/img/senatore_cappelli-2-min.jpg''
(156,49): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/senatore_cappelli-2-min.jpg''
(157,1): run-time error CSS1019: Unexpected token, found '$'
(157,2): run-time error CSS1019: Unexpected token, found '('
(157,3): run-time error CSS1019: Unexpected token, found ''.parallax-farro''
(157,20): run-time error CSS1019: Unexpected token, found ')'
(157,22): run-time error CSS1030: Expected identifier, found 'parallax('
(157,22): run-time error CSS1019: Unexpected token, found 'parallax('
(157,31): run-time error CSS1019: Unexpected token, found '{'
(157,42): run-time error CSS1030: Expected identifier, found ' '
(157,43): run-time error CSS1031: Expected selector, found ''/assets/img/farro-background-min.jpg''
(157,43): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/farro-background-min.jpg''
(158,1): run-time error CSS1019: Unexpected token, found '$'
(158,2): run-time error CSS1019: Unexpected token, found '('
(158,3): run-time error CSS1019: Unexpected token, found ''.parallax-storia''
(158,21): run-time error CSS1019: Unexpected token, found ')'
(158,23): run-time error CSS1030: Expected identifier, found 'parallax('
(158,23): run-time error CSS1019: Unexpected token, found 'parallax('
(158,32): run-time error CSS1019: Unexpected token, found '{'
(158,43): run-time error CSS1030: Expected identifier, found ' '
(158,44): run-time error CSS1031: Expected selector, found ''/assets/img/storia.jpg''
(158,44): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/storia.jpg''
(159,1): run-time error CSS1019: Unexpected token, found '$'
(159,2): run-time error CSS1019: Unexpected token, found '('
(159,3): run-time error CSS1019: Unexpected token, found ''.parallax-videoric''
(159,23): run-time error CSS1019: Unexpected token, found ')'
(159,25): run-time error CSS1030: Expected identifier, found 'parallax('
(159,25): run-time error CSS1019: Unexpected token, found 'parallax('
(159,34): run-time error CSS1019: Unexpected token, found '{'
(159,45): run-time error CSS1030: Expected identifier, found ' '
(159,46): run-time error CSS1031: Expected selector, found ''/assets/img/videoricetta.jpg''
(159,46): run-time error CSS1025: Expected comma or open brace, found ''/assets/img/videoricetta.jpg''
(164,1): run-time error CSS1019: Unexpected token, found '$'
(164,2): run-time error CSS1019: Unexpected token, found '('
(164,9): run-time error CSS1031: Expected selector, found ')'
(164,9): run-time error CSS1025: Expected comma or open brace, found ')'
(170,2): run-time error CSS1019: Unexpected token, found ')'
(175,10): run-time error CSS1031: Expected selector, found 'showMenu('
(175,10): run-time error CSS1025: Expected comma or open brace, found 'showMenu('
(184,1): run-time error CSS1019: Unexpected token, found '$'
(184,2): run-time error CSS1019: Unexpected token, found '('
(184,9): run-time error CSS1031: Expected selector, found ')'
(184,9): run-time error CSS1025: Expected comma or open brace, found ')'
(186,2): run-time error CSS1019: Unexpected token, found ')'
(188,15): run-time error CSS1031: Expected selector, found '='
(188,15): run-time error CSS1025: Expected comma or open brace, found '='
(192,1): run-time error CSS1019: Unexpected token, found '$'
(192,2): run-time error CSS1019: Unexpected token, found '('
(192,9): run-time error CSS1031: Expected selector, found ')'
(192,9): run-time error CSS1025: Expected comma or open brace, found ')'
(198,2): run-time error CSS1019: Unexpected token, found ')'
(200,1): run-time error CSS1019: Unexpected token, found '$'
(200,2): run-time error CSS1019: Unexpected token, found '('
(200,3): run-time error CSS1019: Unexpected token, found '"#button"'
(200,12): run-time error CSS1019: Unexpected token, found ')'
(200,14): run-time error CSS1030: Expected identifier, found 'click('
(200,14): run-time error CSS1019: Unexpected token, found 'click('
(200,29): run-time error CSS1031: Expected selector, found '('
(200,29): run-time error CSS1025: Expected comma or open brace, found '('
(204,2): run-time error CSS1019: Unexpected token, found ')'
(208,16): run-time error CSS1031: Expected selector, found '='
(208,16): run-time error CSS1025: Expected comma or open brace, found '='
(215,1): run-time error CSS1019: Unexpected token, found '$'
(215,2): run-time error CSS1019: Unexpected token, found '('
(215,12): run-time error CSS1031: Expected selector, found '('
(215,12): run-time error CSS1025: Expected comma or open brace, found '('
(217,2): run-time error CSS1019: Unexpected token, found ')'
(220,1): run-time error CSS1019: Unexpected token, found '$'
(220,2): run-time error CSS1019: Unexpected token, found '('
(220,11): run-time error CSS1031: Expected selector, found ')'
(220,11): run-time error CSS1025: Expected comma or open brace, found ')'
(222,2): run-time error CSS1019: Unexpected token, found ')'
(226,1): run-time error CSS1019: Unexpected token, found '$'
(226,2): run-time error CSS1019: Unexpected token, found '('
(226,3): run-time error CSS1019: Unexpected token, found '"#button1"'
(226,13): run-time error CSS1019: Unexpected token, found ')'
(226,15): run-time error CSS1030: Expected identifier, found 'click('
(226,15): run-time error CSS1019: Unexpected token, found 'click('
(226,30): run-time error CSS1031: Expected selector, found '('
(226,30): run-time error CSS1025: Expected comma or open brace, found '('
(230,2): run-time error CSS1019: Unexpected token, found ')'
(231,1): run-time error CSS1019: Unexpected token, found '$'
(231,2): run-time error CSS1019: Unexpected token, found '('
(231,3): run-time error CSS1019: Unexpected token, found '"#button2"'
(231,13): run-time error CSS1019: Unexpected token, found ')'
(231,15): run-time error CSS1030: Expected identifier, found 'click('
(231,15): run-time error CSS1019: Unexpected token, found 'click('
(231,30): run-time error CSS1031: Expected selector, found '('
(231,30): run-time error CSS1025: Expected comma or open brace, found '('
(235,2): run-time error CSS1019: Unexpected token, found ')'
(236,1): run-time error CSS1019: Unexpected token, found '$'
(236,2): run-time error CSS1019: Unexpected token, found '('
(236,3): run-time error CSS1019: Unexpected token, found '"#button3"'
(236,13): run-time error CSS1019: Unexpected token, found ')'
(236,15): run-time error CSS1030: Expected identifier, found 'click('
(236,15): run-time error CSS1019: Unexpected token, found 'click('
(236,30): run-time error CSS1031: Expected selector, found '('
(236,30): run-time error CSS1025: Expected comma or open brace, found '('
(240,2): run-time error CSS1019: Unexpected token, found ')'
(241,1): run-time error CSS1019: Unexpected token, found '$'
(241,2): run-time error CSS1019: Unexpected token, found '('
(241,3): run-time error CSS1019: Unexpected token, found '"#button4"'
(241,13): run-time error CSS1019: Unexpected token, found ')'
(241,15): run-time error CSS1030: Expected identifier, found 'click('
(241,15): run-time error CSS1019: Unexpected token, found 'click('
(241,30): run-time error CSS1031: Expected selector, found '('
(241,30): run-time error CSS1025: Expected comma or open brace, found '('
(245,2): run-time error CSS1019: Unexpected token, found ')'
(249,1): run-time error CSS1019: Unexpected token, found '$'
(249,2): run-time error CSS1019: Unexpected token, found '('
(249,3): run-time error CSS1019: Unexpected token, found '"#faq"'
(249,9): run-time error CSS1019: Unexpected token, found ')'
(249,11): run-time error CSS1030: Expected identifier, found 'click('
(249,11): run-time error CSS1019: Unexpected token, found 'click('
(249,26): run-time error CSS1031: Expected selector, found '('
(249,26): run-time error CSS1025: Expected comma or open brace, found '('
(253,2): run-time error CSS1019: Unexpected token, found ')'
(254,1): run-time error CSS1019: Unexpected token, found '$'
(254,2): run-time error CSS1019: Unexpected token, found '('
(254,3): run-time error CSS1019: Unexpected token, found '"#ricette"'
(254,13): run-time error CSS1019: Unexpected token, found ')'
(254,15): run-time error CSS1030: Expected identifier, found 'click('
(254,15): run-time error CSS1019: Unexpected token, found 'click('
(254,30): run-time error CSS1031: Expected selector, found '('
(254,30): run-time error CSS1025: Expected comma or open brace, found '('
(258,2): run-time error CSS1019: Unexpected token, found ')'
(259,1): run-time error CSS1019: Unexpected token, found '$'
(259,2): run-time error CSS1019: Unexpected token, found '('
(259,3): run-time error CSS1019: Unexpected token, found '"#approfondimenti"'
(259,21): run-time error CSS1019: Unexpected token, found ')'
(259,23): run-time error CSS1030: Expected identifier, found 'click('
(259,23): run-time error CSS1019: Unexpected token, found 'click('
(259,38): run-time error CSS1031: Expected selector, found '('
(259,38): run-time error CSS1025: Expected comma or open brace, found '('
(263,2): run-time error CSS1019: Unexpected token, found ')'
 */
//START OWL CAROUSEL
$(document).ready(function () {

    $("#owl-example").owlCarousel({

        autoPlay: 6000, //Set AutoPlay to 6 seconds

        navigation: true, // Show next and prev buttons
        slideSpeed: 1000,
        paginationSpeed: 800,
        singleItem: true

    });

    $("#materie").owlCarousel({

        autoPlay: 6000, //Set AutoPlay to 6 seconds
        pagination: false,
        navigation: false, // Show next and prev buttons
        slideSpeed: 1000,
        paginationSpeed: 800,
        singleItem: true

    });

    $(".carosello").owlCarousel({

        autoPlay: false, //Set AutoPlay to 3 seconds

        navigation: true, // Show next and prev buttons
        navigationText: [
            "<i class='icon-chevron-left icon-white'><</i>",
            "<i class='icon-chevron-right icon-white'>></i>"
        ],
        slideSpeed: 1000,
        paginationSpeed: 400,
        singleItem: false,
        items: 4,
        itemsDesktopSmall: [979, 3],
        itemsTablet: [768, 3],
        itemsMobile: [479, 1]

    });






    $("#right-owl-example").owlCarousel({

        autoPlay: 3000, //Set AutoPlay to 3 seconds

        navigation: false, // Show next and prev buttons
        slideSpeed: 1000,
        paginationSpeed: 800,
        singleItem: true

    });
    $('#scroll').click(function () {
        $("html, body").animate({
            scrollTop: 0
        }, 600);
        return false;
    });
});
//END OWL CAROUSEL

// START FABIO JS - ANIMATION
var appearAnimation = function () {
    var appearGroupElement = $('*[data-appears-group-delay]'),
        appearAttribute = 'data-appears-class',
        appearElement = $('*[' + appearAttribute + ']'),
        appearDelay;
    if (appearGroupElement.length) {
        appearGroupElement.each(function () {
            var _group = $(this),
                groupDelay,
                delayIncrease,
                delayStep = 0;
            typeof _group.attr('data-appears-group-delay') !== 'undefined' ? groupDelay = parseInt(_group.attr('data-appears-group-delay')) : groupDelay = null;
            typeof _group.attr('data-appears-delay-increase') !== 'undefined' ? delayIncrease = parseInt(_group.attr('data-appears-delay-increase')) : delayIncrease = 0;
            if (groupDelay !== null) {
                delayStep = groupDelay;
                var groupElements = _group.find('*[' + appearAttribute + ']');
                groupElements.each(function () {
                    var _appearElement = $(this);
                    _appearElement.attr('data-appears-delay', delayStep);
                    delayStep = delayStep + delayIncrease;
                });
            }
            _group.appear();

            if (_group.is(':appeared')) {
                groupElements.each(function () {
                    var _this = $(this);
                    _this.addClass('animated opacity-0');
                    typeof _this.attr('data-appears-delay') !== 'undefined' ? appearDelay = parseInt(_this.attr('data-appears-delay')) : appearDelay = 0;
                    setTimeout(function () {
                        _this.addClass(_this.attr(appearAttribute));
                    }, appearDelay);
                });

            } else {
                _group.on('appear', function (event, $all_appeared_elements) {
                    groupElements.each(function () {
                        var _this = $(this);
                        _this.addClass('animated opacity-0');
                        typeof _this.attr('data-appears-delay') !== 'undefined' ? appearDelay = parseInt(_this.attr('data-appears-delay')) : appearDelay = 0;

                        setTimeout(function () {
                            _this.addClass(_this.attr(appearAttribute));
                        }, appearDelay);

                    });
                });
            }
        });
    }
    if (appearElement.length) {
        appearElement.each(function () {
            var _this = $(this);
            _this.addClass('animated opacity-0');

            _this.appear();
            if (_this.is(':appeared')) {
                typeof _this.attr('data-appears-delay') !== 'undefined' ? appearDelay = parseInt(_this.attr('data-appears-delay')) : appearDelay = 0;
                setTimeout(function () {
                    _this.removeClass("opacity-0").addClass(_this.attr(appearAttribute));
                }, appearDelay);

            } else {
                _this.on('appear', function (event, $all_appeared_elements) {
                    typeof _this.attr('data-appears-delay') !== 'undefined' ? appearDelay = parseInt(_this.attr('data-appears-delay')) : appearDelay = 0;

                    setTimeout(function () {
                        _this.removeClass("opacity-0").addClass(_this.attr(appearAttribute));
                    }, appearDelay);

                });
            }
        });

    }
};
appearAnimation();
//END FABIO - ANIMATION

// START PARALLASSE
//$('.parallax-window').parallax({imageSrc: 'img/intro-bg.jpg'});
$('.parallax-window5').parallax({ imageSrc: '/assets/img/intro-bg2.jpg' });
$('.parallax-window4').parallax({ imageSrc: '/assets/img/ragazza_gluten-compressor.jpg' });
$('.parallax-window3').parallax({ imageSrc: '/assets/img/bimboa-compressor.jpg' });
$('.parallax-window2').parallax({ imageSrc: '/assets/img/bimbo18-compressor.jpg' });
$('.parallax-window').parallax({ imageSrc: '/assets/img/bimbo24-compressor.jpg' });
$('.parallax-sencappelli').parallax({ imageSrc: '/assets/img/senatore_cappelli-2-min.jpg' });
$('.parallax-farro').parallax({ imageSrc: '/assets/img/farro-background-min.jpg' });
$('.parallax-storia').parallax({ imageSrc: '/assets/img/storia.jpg' });
$('.parallax-videoric').parallax({ imageSrc: '/assets/img/videoricetta.jpg' });
// END PARALLASSE

// START COMPARI - SCOMPARI
// jQuery to collapse the navbar on scroll
$(window).scroll(function () {
    if ($(".navbar").offset().top > 50) {
        $(".navbar-fixed-top").addClass("top-nav-collapse");
    } else {
        $(".navbar-fixed-top").removeClass("top-nav-collapse");
    }
});


// jQuery scompari header

function showMenu() {
    if ($(".navbar").offset().top > 50) {
        $(".intro-body").addClass("intro-body-scompari");
        $(".loghetto").addClass("loghetto-scompari");
    } else {
        $(".intro-body").removeClass("intro-body-scompari");
        $(".loghetto").removeClass("loghetto-scompari");
    }
}
$(window).scroll(function () {
    showMenu();
});

window.onload = showMenu();



$(window).scroll(function () {
    if ($(".navbar").offset().top > 400) {
        $("#page-top").addClass("fix-pulsanti");
    } else {
        $("#page-top").removeClass("fix-pulsanti");
    }
});
//START HTML ANIMATE TO FIRST-SECTION
$("#button").click(function () {
    $('html, body').animate({
        scrollTop: $("#first-section").offset().top
    }, 2500);
});
//END HTML ANIMATE TO FIRST-SECTION

//START CAMBIO IMMAGINE CAROSELLO
var sourceSwap = function () {
    var $this = $(this);
    var newSource = $this.data('alt-src');
    $this.data('alt-src', $this.attr('src'));
    $this.attr('src', newSource);
}

$(function () {
    $('img.xyz').hover(sourceSwap, sourceSwap);
});
//END CAMBIO IMMAGINE CAROSELLO
//START MODALE
$(document).ready(function () {
    $('.modalica').modalica();
});
//END MODALE

//START HTML ANIMATE BIOLOGICO
$("#button1").click(function () {
    $('html, body').animate({
        scrollTop: $("#first-section").offset().top
    }, 2500);
});
$("#button2").click(function () {
    $('html, body').animate({
        scrollTop: $("#granoro-bio").offset().top
    }, 2500);
});
$("#button3").click(function () {
    $('html, body').animate({
        scrollTop: $("#granoro-integrale").offset().top
    }, 2500);
});
$("#button4").click(function () {
    $('html, body').animate({
        scrollTop: $("#first-section").offset().top
    }, 2500);
});
//END HTML ANIMATE BIOLOGICO

//START HTML ANIMATE CUOREMIO
$("#faq").click(function () {
    $('html, body').animate({
        scrollTop: $("#faqs").offset().top
    }, 2500);
});
$("#ricette").click(function () {
    $('html, body').animate({
        scrollTop: $("#ricettes").offset().top
    }, 2500);
});
$("#approfondimenti").click(function () {
    $('html, body').animate({
        scrollTop: $("#approfondimentis").offset().top
    }, 2500);
});

//END HTML ANIMATE CUOREMIO









