<?php
include_once "connessione.php";
?>
<!DOCTYPE html>
<html class="no-js" lang="en">
<?php include_once "include/head.php"; ?>
<body>
    <!--[if lt IE 8]>
        <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
    
    <!--  THEME PRELOADER AREA -->
    <div id="preloader-wrapper">
        <div class="preloader-wave-effect"></div>
    </div>
    <!-- THEME PRELOADER AREA END -->   
  

    <!-- Body main wrapper start -->
    <div class="wrapper">
        <!-- Start of header area -->
        <?php include_once "include/header.php"; ?>
        <!-- End of header area -->
        <!-- Start page content -->
        <section id="page-content" class="page-wrapper">
            <!-- Start contact message area -->
            <div class="zm-section bg-white pt-60" style="display: none">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-md-12">
                            <div class="section-title-2 mb-40  text-center">
                                <h3 class="inline-block uppercase">Invia un messaggio</h3>
                            </div>
                        </div>
                    </div>
                    <div class="message-box">
                        <form action="#">
                            <div class="row">
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input type="text" name="name" placeholder="Nome*">
                                    <input type="text" name="website" placeholder="Cognome*">
                                    <input type="email" name="email" placeholder="Email*">
                                    <input type="text" name="phone" placeholder="Numeror">

                                </div>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <textarea name="message" placeholder="Scrivi messaggio..."></textarea>
                                    <button class="submit-button" type="submit">Invia</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- End contact message area -->
            <!-- Start contact address area  -->
            <div class="zm-section bg-white ptb-65">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-md-12 col-sm-12">
                            <div class="section-title-2 mb-40  text-center">
                                <h3 class="inline-block uppercase">Ci puoi trovare</h3>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-3 col-sm-3">
                            <div class="single-address text-center">
                                <i class="fa fa-user" aria-hidden="true"></i>
                                <h4>Segreteria</h4>
                                <p>Sig.ra Mara Ionata</p>
                            </div>
                        </div>
                        <div class="col-md-3 col-sm-3">
                            <div class="single-address text-center">
                                <i class="fa fa-home" aria-hidden="true"></i>
                                <h4>Indirizzo</h4>
                                <p>Via Pio La Torre n. 28/30</p>
                                <p>86170 Isernia</p>
                            </div>
                        </div>
                        <div class="col-md-3  col-sm-3 xs-mt-30">
                            <div class="single-address text-center">
                                <i class="fa fa-envelope" aria-hidden="true"></i>
                                <h4 class="uppercase">Email</h4>
                                <p><a href="mailto:ordinedeimedicidiisernia@virgilio.it">ordinedeimedicidiisernia@virgilio.it</a></p>
                                <p><a href="mailto:segreteria.is@pec.omceo.it">segreteria.is@pec.omceo.it</a></p>

                            </div>
                        </div>
                        <div class="col-md-3  col-sm-3 xs-mt-30">
                            <div class="single-address text-center">
                                <i class="fa fa-phone" aria-hidden="true"></i>
                                <h4 class="uppercase">Numeri</h4>
                                <p>ph. +039 865 26282</p>
                                <p>fax. +39 865 26182</p>
                            </div>
                        </div>
                    </div>
                    <div class="row ptb-65">
                        <div class="col-xs-12 col-md-12 col-sm-12">
                            <div class="section-title-2 mb-40  text-center">
                                <h3 class="inline-block uppercase">Orari di apertura al pubblico</h3>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-2 col-sm-2">
                            <div class="single-address text-center">
                                <h4>Lunedi</h4>
                                <p>11.00 - 14.30</p>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-2">
                            <div class="single-address text-center">
                                <h4>Martedi</h4>
                                <p>11.00 - 14.00</p>
                                <p>15.00 - 18.00</p>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-2">
                            <div class="single-address text-center">
                                <h4>Mercoledì</h4>
                                <p>11.00 - 14.30</p>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-2">
                            <div class="single-address text-center">
                                <h4>Giovedì</h4>
                                <p>11.00 - 14.00</p>
                                <p>15.00 - 18.00</p>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-2">
                            <div class="single-address text-center">
                                <h4>Venerdì</h4>
                                <p>11.00 - 14.30</p>
                            </div>
                        </div>
                        <div class="col-md-2 col-sm-2">
                            <div class="single-address text-center">
                                <h4>Sabato</h4>
                                <p>CHIUSO</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End contact address area  -->
            <!-- Start Google Map area -->
            <div class="zm-section">
                <div class="container-fluid">
                    <div class="row">
                        <div class="google-map">
                            <div id="googleMap" style="width:100%;height:600px;"></div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End Google Map area -->
        </section>
        <!-- End page content -->
        <!-- Start footer area -->
        <?php include_once "include/footer.php"; ?>
        <!-- End footer area -->
    </div>
    <!-- Body main wrapper end -->

    <?php include_once "include/scripts.php"; ?>
    <script>
        // When the window has finished loading create our google map below
        //google.maps.event.addDomListener(window, 'load', init);
    
        function init() {
            // Basic options for a simple Google Map
            // For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions
            var mapOptions = {
                // How zoomed in you want the map to start at (always required)
                zoom: 15,

                scrollwheel: false,

                // The latitude and longitude to center the map (always required)
                center: new google.maps.LatLng(41.5991206, 14.2368261), // New York

                // How you would like to style the map. 
                // This is where you would paste any style found on Snazzy Maps.
                styles: [
                            {
                                "featureType": "water",
                                "elementType": "geometry",
                                "stylers": [
                                    {
                                        "color": "#68abd2"
                                    },
                                    {
                                        "lightness": 17
                                    }
                                ]
                            },
                            {
                                "featureType": "landscape",
                                "elementType": "geometry",
                                "stylers": [
                                    {
                                        "color": "#f5f5f5"
                                    },
                                    {
                                        "lightness": 20
                                    }
                                ]
                            },
                            {
                                "featureType": "road.highway",
                                "elementType": "geometry.fill",
                                "stylers": [
                                    {
                                        "color": "#ffd800"
                                    },
                                    {
                                        "lightness": 17
                                    }
                                ]
                            },
                            {
                                "featureType": "road.highway",
                                "elementType": "geometry.stroke",
                                "stylers": [
                                    {
                                        "color": "#333"
                                    },
                                    {
                                        "lightness": 29
                                    },
                                    {
                                        "weight": 0.2
                                    }
                                ]
                            },
                            {
                                "featureType": "road.arterial",
                                "elementType": "geometry",
                                "stylers": [
                                    {
                                        "color": "#ffffff"
                                    },
                                    {
                                        "lightness": 18
                                    }
                                ]
                            },
                            {
                                "featureType": "road.local",
                                "elementType": "geometry",
                                "stylers": [
                                    {
                                        "color": "#ffffff"
                                    },
                                    {
                                        "lightness": 16
                                    }
                                ]
                            },
                            {
                                "featureType": "poi",
                                "elementType": "geometry",
                                "stylers": [
                                    {
                                        "color": "#f5f5f5"
                                    },
                                    {
                                        "lightness": 21
                                    }
                                ]
                            },
                            {
                                "featureType": "poi.park",
                                "elementType": "geometry",
                                "stylers": [
                                    {
                                        "color": "#a4d268"
                                    },
                                    {
                                        "lightness": 21
                                    }
                                ]
                            },
                            {
                                "elementType": "labels.text.stroke",
                                "stylers": [
                                    {
                                        "visibility": "on"
                                    },
                                    {
                                        "color": "#ffffff"
                                    },
                                    {
                                        "lightness": 16
                                    }
                                ]
                            },
                            {
                                "elementType": "labels.text.fill",
                                "stylers": [
                                    {
                                        "saturation": 36
                                    },
                                    {
                                        "color": "#333333"
                                    },
                                    {
                                        "lightness": 40
                                    }
                                ]
                            },
                            {
                                "elementType": "labels.icon",
                                "stylers": [
                                    {
                                        "visibility": "off"
                                    }
                                ]
                            },
                            {
                                "featureType": "transit",
                                "elementType": "geometry",
                                "stylers": [
                                    {
                                        "color": "#f2f2f2"
                                    },
                                    {
                                        "lightness": 19
                                    }
                                ]
                            },
                            {
                                "featureType": "administrative",
                                "elementType": "geometry.fill",
                                "stylers": [
                                    {
                                        "color": "#fefefe"
                                    },
                                    {
                                        "lightness": 20
                                    }
                                ]
                            },
                            {
                                "featureType": "administrative",
                                "elementType": "geometry.stroke",
                                "stylers": [
                                    {
                                        "color": "#fefefe"
                                    },
                                    {
                                        "lightness": 17
                                    },
                                    {
                                        "weight": 1.2
                                    }
                                ]
                            }
                        ]
            };

            // Get the HTML DOM element that will contain your map 
            // We are using a div with id="map" seen below in the <body>
            var mapElement = document.getElementById('googleMap');

            // Create the Google Map using our element and options defined above
            var map = new google.maps.Map(mapElement, mapOptions);

            // Let's also add a marker while we're at it
            var marker = new google.maps.Marker({
                position: new google.maps.LatLng(41.5991206, 14.2368261),
                map: map,
                title: 'Corpex!',
                //icon: 'images/icons/marger.png',
                animation:google.maps.Animation.BOUNCE

            });
            var contentString = '<div id="content">'+
                    '<div id="siteNotice">'+
                    '</div>'+
                    '<div id="bodyContent">'+
                    '<h4>OMCeO Isernia</h4>'+
                    '<p style="margin: 5px 0px">Via Pio La Torre n. 28/30 - 86170 Isernia</p>'+
                    '<a href="https://www.google.it/maps/place/Ordine+Dei+Medici+Chirurghi+E+Degli+Odontoiatri+Prov.Isernia/@41.591131,14.1940019,13z/data=!4m13!1m7!3m6!1s0x133a8120a3030ab1:0x86fa70973e400fa9!2sVia+Pio+la+Torre,+28,+86170+Isernia+IS!3b1!8m2!3d41.5991166!4d14.2390148!3m4!1s0x133a8120a31afe7f:0x3307d766cbf36881!8m2!3d41.5991166!4d14.2390148" class="" target="_blank">Visualizza su mappa</a>'+
                    '</div>'+
                    '</div>';
                var infowindow = new google.maps.InfoWindow({
                    content: contentString
                });
                    infowindow.open(map, marker);
        }

        init();
    </script>
    <!-- Main js file that contents all jQuery plugins activation. -->
    <script src="js/main.js"></script>


</body>
</html>