/*
 * Theme Name: Comune di Controguerra
 * Theme URI: http://comune.controguerra.te.it/
 * Text Domain: controguerra
 * Description: Tema sviluppato per il sito Web ufficiale del Comune di Controguerra
 * Version: 1.0.0
 * Template: townpress
 * Author: Alfa Communication
 * Author URI: http://alfacommunication.it/
 */
 
 body {
   font-family: 'Source Sans Pro', Arial, sans-serif!important;
 }


.home #core {
  margin-top:140px;
}

/*
 * Page Header
 *
 */
#page-header:after {
	border-top-color: #ec5237 !important;
	bottom: -15px;
  margin-left: -15px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid transparent;
}

#page-header {
	background-color: rgba(255,255,255,0.7) !important;
	border-bottom: solid 3px #ec5237;
}

.page-title h1 {
	color: #ec5237 !important;
}

.page-title h1 em {
	color: #333 !important;
	font-size: 0.9em;
}

.m-has-breadcrumbs .page-title:after {
  background-color: #222222!important;
}

/*
 * Breadcrumbs
 *
 */

.breadcrumbs {
  color: #ec5237!important;
}

.breadcrumbs a {
  color: #272727!important;
}

.breadcrumbs > ul > li:before {
  color: #808080;
}

.event-page .event-content {
  border-color: #f0f0f0;
}

.c-definition-list dl>dt {
  width: 40%;
}
.c-definition-list dl>dd {
  width: 60%;
}

.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
  padding-bottom: 100%;
}

.embed-responsive.-4w3h {
  padding-bottom: 75%;
}

.embed-responsive iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#lsvr_definition_list_widget-4 dt,
#lsvr_definition_list_widget-4 dd {
  width: 100%;
  float: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
}

#lsvr_definition_list_widget-4 dd {
  font-size: 12px;
}

/**
 *
 */
.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 5px;
}

.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
}

.owl-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 3px;
  background: #d6d6d6;
  display: block;
  transition: opacity 200ms ease;
  border-radius: 30px;
}

/**
 * Map
 */
html {
  width: 100%;
  height: 100%;  
}

/* Map Switcher */
.city-map-switcher {
  display:block;
  float:right;
  margin-left:20px;
  padding:0 10px;
  height:40px;
  line-height:40px;
  text-align:center;
  text-transform:uppercase;
  color: #ffffff;
  background-color: #ec5237;
  border-radius: 0 4px 4px 0;
}

  .city-map-switcher i {
    display: block;
    position: absolute;
    top: -10px;
    left: -30px;
    font-size: 20px;
    line-height: 60px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    vertical-align: top;
    border: 4px solid #66BCFF;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #ec5237;
    background: #fff url('assets/images/icon_map.png') no-repeat center center;
    background-size: 60px 60px;
  }

  .city-map-switcher span{
    margin-left:5px;
    vertical-align:top
  }

  body.page-template-template-map {
    width: 100%;
    min-height: 100%;
  }

/* Map template: remove header and footer */
body.page-template-template-map #header,
body.page-template-template-map .header-bg,
body.page-template-template-map #footer {
  display: none;
}

body.page-template-template-map #core,
body.page-template-template-map .c-container,
body.page-template-template-map .map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.map {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.3s ease-in-out;
}

  body.map-visible .map {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

.map__close {
  position: absolute;
  top: 0;
  right: 0;
  height: 60px;
  width: 50px;
  color: #fff;
  background-color: #222;
}

.map__header {
  position: absolute;
  top: 0;
  z-index: 300;
  width: 100%;
  height: 60px;
  background-color: #ec5237;
}

.map__header-logo {
  display: block;
  width: 165px;
  height: 50px;
  margin-left: 10px;
  margin-top: 5px;
}
  
.map__header-nav {
  position: absolute;
  top: 0;
  right: 50px;
  left: 200px;
  height: 60px;
}

  .map__header-nav nav {
    display: table;
    width: 100%;
    height: 60px;
    list-style: none;
    margin: 0;
    padding: 0;
    table-layout: fixed;
  }
  
  .map__header-nav a {
    display: table-cell;
    padding: 0;
    vertical-align: middle;
    text-align: center;
    color: #fff;
    font-weight: 600;
    border: 5px solid rgba(0,0,0,.1);
  }
  
  .map-menu-eat {
    background-color: #F5A623;
  }
  
  .map-menu-sleep {
    background-color: #D0021B;
  }
  
  .map-menu-shop {
    background-color: #4A90E2;
  }
  
  .map-menu-wine {
    background-color: #8D21A3;
  }
  
  .map-menu-poi {
    background-color: #82B945;
  }

.map__canvas {
  position: absolute;
  top: 60px;
  left: 0;
  bottom: 0;
  left: 0;
  width: 100%;
}

.infowindow {
  overflow: hidden;
}

.infowindow__header {
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 5px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ec5237;
}

.infowindow__body .nav {
  margin-top: 15px;
  margin-left: -5px;
}

.infowindow__body .nav.--inline li {
  margin-left: 5px;
}

.infowindow__body .nav.--inline a {
  padding: 0;
  width: 34px;
  height: 34px;
  line-height: 34px;
  color: #fff;
  background-color: #ec5237;
  border-radius: 50%;
}

.infowindow__body .nav.--inline a.highlight {
  background-color: #88D632;
}

.map__panel {
  position: absolute;
  top: 70px;
  bottom: 0;
  right: 0;
  z-index: 200;
  width: 50%;
  max-width: 800px;
  background-color: #fff;
  border-top-left-radius: 10px;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s;
}

  .map__panel .event-page .event-info > li {
    display: block;
  }

.-panel-active .map__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.map__panel-close {
  position: absolute;
  top: 20px;
  right: 100%;
  width: 30px;
  height: 60px;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAA8CAMAAAAjZwjSAAAAvVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Ke75sAAAAPnRSTlMACg0ODxAREhMUFhcYGRsfICtaW11fYGFiY2RlaGlscHF7oKavsLG0tbe4uby/w8nNztba4ur3+Pn6+/z9/qtZpn4AAACiSURBVHgB7c1HDoJgFEVhUcHee+8dsaMIvv0vy5uo43enJv8Zf8mJcdkzihVHV9FVfui9RDSY7e8jKAWme24IosBUZ/cUEQU6rU0gIgq0m2soUaDzUQq02t+jAksXQQQ8CAnFQAP/FhpooIEnFlZuFES5yZGDqDz2IgqiwsANKYgy3W1AQeQ0Vg8KomR9eacgStQWPgVRvDr3f1C3Z0Aqa/oGwYdWca6Z3ygAAAAASUVORK5CYII=);
  background-repeat: no-repeat;
  background-position: center right;
}

.map__panel-content {
  position: relative;
  height: 100%;
  padding: 20px 20px 0 20px;
  overflow: auto;
}

.map__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  cursor: pointer;
  background-color: rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.-panel-active .map__overlay {
  visibility: visible;
  opacity: 1;
}

media {
  display: table;
}

.media__object {
  display: table-cell;
  vertical-align: top;
}

.media__object img {
  padding-right: 10px;
}

.media__body {
  display: table-cell;
  vertical-align: top;
}


/**
 * Business/POI Card
 */
.card {
  background-color: #ffffff;
}

.card__object {
  position: relative;
}

.card__header {
  padding: 15px 10px;
}

.card__footer {
  padding: 5px;
  background-color: #ec5237;
  border-bottom: 5px solid rgba(0,0,0,0.1);
}

.card__footer .fa {
  display: block;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
}

.nav {
  
}

.nav.--inline li {
  float: left;
  margin: 0;
}

.nav.--inline a {
  display: block;
  width: 30px;
  text-align: center;
  border-style: solid;
  border-width: 0 1px;
  border-color: rgba(255,255,255,.1);
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__brand {
  position: absolute;
  width: 60px;
  height: 60px;
  bottom: 10px;
  left: 5px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ec5237;
}

/* -------------------------------------------------------------------------
      COOKIE LAW
  ------------------------------------------------------------------------- */

.cookielaw {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9000;
  width: 100%;
  background-color: #000;
  line-height: 1;
  display: none;
}

.cookielaw__inner {
  padding: 10px;
  color: #fff;
}

.cookielaw__content {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
}

.cookielaw__title {
  margin-bottom: 10px;
}

.cookielaw__close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #fff;
}

.cookielaw.-visible {
  display: block;
}

  /* -------------------------------------------------------------------------
      YOUTUBE Channel Plugin
  ------------------------------------------------------------------------- */
.ytc_video_container {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

.ytc_video_container p {
  margin: 0;  
}

  /* -------------------------------------------------------------------------
      LARGE DEVICES
	devices with width between 992px and 1199px
  ------------------------------------------------------------------------- */

  @media ( max-width: 1199px ) {

	/* your CSS here */

}

  /* -------------------------------------------------------------------------
      MEDIUM DEVICES
	devices with width between 768px and 991px
  ------------------------------------------------------------------------- */

  @media ( max-width: 991px ) {

  .home #core {
      margin-top: 0;
  }

}
	
/* -------------------------------------------------------------------------
      SMALL DEVICES
	devices with width between 481px and 767px
  ------------------------------------------------------------------------- */
@media ( max-width: 767px ) {
  
  .home #core {
      margin-top: 0;
  }

  .map__header-logo {
    display: none;
  }
	
	.map__header-nav {
  	left: 0;
  	font-size: 13px;
	}
	
    .map__header-nav a {
      border-width: 2px;
    }
    
  .map__panel {
    width: 90%;
  }

}

/* -------------------------------------------------------------------------
      EXTRA SMALL DEVICES
	devices with width up to 480px
  ------------------------------------------------------------------------- */
@media ( max-width: 480px ) {
  .home #core {
      margin-top: 0;
  }

}