/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */
body {
	background:url(../../img/bg-repeat.jpg) repeat-x scroll center top;
}
h1, h2, h3 {
	margin-top:0;
}
h1 {
  color: #ba1616;
  font-family: Arial;
  font-size: 25px;
  font-weight: normal;
  margin-bottom: -7px;
  margin-top: 0px;
  text-transform: none;
}
h2 {
  color: #564848;
  font-family: Arial;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 0;
  margin-top: -10px;
  text-transform: none;
}
h3 {
  color: #333;
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 10px;
}
.background {
	display:block;
	position:fixed;
	width:100%;
	height:100%;
	overflow:hidden;
	z-index:-1;
}
.background .bg-slide {
	position:absolute;
	width:100%;
	height:100%;
	background:no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
.background .bg-slide img {
}
	
#bg-slider-editor-wrapper, #bg-slider-editor-button {
	position:absolute;
	left:60px;
	top:5px;
}
#bg-slider-editor-button {
	display:block;
	font-size:24px;
	cursor:pointer;
}
.container {
	/*background-color:#FFF;*/
}
#logo {
	/*max-width:100%;*/
	display:block;
}
#logo img {
	margin:0 auto;
}
/* Navbar */
#nav-main {
	padding:0;
}
.affix {
	position: static;
}
.navbar-container {
	padding:0 15px;
}
.navbar {
	border-color:#000;
	background:rgba(0,0,0,0.5);
}
.navbar-default {
	box-shadow:none;
}
.navbar-default .navbar-toggle {
  border-color:transparent;
}
.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover {
  background-color:transparent;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #FFF;
}
.navbar-default .navbar-nav > li > a {
	padding:10px 10px;
	font-size: 15px;
	color: #FFF;
	font-weight:600;
}
.navbar-default .navbar-nav > li > a:hover {
	color:#FFF;
}
/*.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:focus, .navbar-default .navbar-nav > .active > a:hover {
	background-color: transparent;
	color: #FFF;
}*/
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:focus, .navbar-default .navbar-nav > .open > a:hover {
	background-color:rgba(255, 255, 255, 0.25);
	color: #FFF;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .open > a {
	background-image:none;
	/*background-repeat: repeat-x;*/
	box-shadow:none;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
	color: #FFF;
	opacity:0.9;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus, .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
    background-color: transparent;
    color: #FFF;
	opacity:1;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:focus, .navbar-default .navbar-nav > .active > a:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFF;
}
/* Bootstrap carousel fade effect */
.carousel-fade .carousel-inner .item {
  -webkit-transition-property: opacity;
  transition-property: opacity;
}
.carousel-fade .carousel-inner .item,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  opacity: 0;
}
.carousel-fade .carousel-inner .active,
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}
.carousel-fade .carousel-inner .next,
.carousel-fade .carousel-inner .prev,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  left: 0;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
.carousel-fade .carousel-control {
  z-index: 2;
}
.container {
}
header {
	text-align:center;
}
header .container {
	position:relative;
	padding:15px 0;
}
.header-dropdown-list {
    float: left;
    list-style: outside none none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
}
.header-dropdown-list > li {
    display: inline-block;
    padding-right: 5px;
}
.header-dropdown-list > li > .dropdown-toggle {
    display: block;
    margin-top: 16px;
	color: #FFF;
	text-decoration: none;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}
.flag {
    background: #000 url(../../img/flags.png) no-repeat;
    display: inline-block;
    height: 11px;
    margin-top: -0.18em;
    width: 16px;
}
.flag.flag-ba {
    background-position: 0 -11px;
}
.flag.flag-de {
    background-position: -80px -33px;
}
.flag.flag-en {
    background-position: -144px -154px;
}
.flag.flag-fr {
    background-position: -144px -44px;
}
.flag.flag-it {
    background-position: -208px -66px;
}
.flag.flag-me {
    background-position: -192px -88px;
}
.flag.flag-pt {
    background-position: -112px -121px;
}
.flag.flag-rs {
    background-position: -208px -121px;
}
/* content */
#content-wrapper {
	padding:0;
}
#content-wrapper .row {
	margin:0;
}
.portfolio {
	margin:0 auto;
}
.portfolio-item {
	/*width:25%;*/
	margin: 0;
	padding: 15px 10px;
	float: left;
}
.portfolio-item.circle {
	position:relative;
	border-radius:2%;
}
.portfolio-media {
	margin: auto;
	overflow: hidden;
	position: relative;
}
.portfolio-img::before {
  border-radius: 2%;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.6) inset;
  content: " ";
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 1;
}
.portfolio-img {
  overflow: hidden;
  position: relative;
}
.portfolio-img img {
  height: auto;
  max-width: 100%;
  border-radius: 2%;
}
.thumbnail {
	padding:8px;
	border-radius: 0;
}
.thumbnail:hover {
	border-color: #81a1b1;
	text-decoration: none;
}
.thumbnail img {
	min-width:100%;
}
.home-thumb a {
	margin-bottom:20px;
	overflow:hidden;
}
.home-thumb .title {
	position:relative;
	height:0;
	text-align:center;
	color:#fff;
}
.home-thumb .title p {
	position:absolute;
	bottom:0;
	display:table;
	width:100%;
	margin:0;
	height:54px;
	background-color:#81a1b1;
}
.home-thumb .title p span {
	display:table-cell;
	vertical-align:middle;
}
.video {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 20px;
	height: 0;
	margin-bottom:20px;
}
.video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.content {
	background:rgba(255,255,255,0.9);
}
.content-row {
	background-color:transparent;
}
#contact_bottom {
	border-radius: 50%;
	bottom: 10px;
	display: block;
	font-family: "FontAwesome";
	position: fixed;
	right: 10px;
	font-size:15px;
	text-align: center;
	z-index: 3;
}
#contact_bottom .tel {
	margin-top:5px;
	background-color: #ed3436;
	border: 2px solid #fff;
	border-radius: 8%;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
	color: #6caf1a;
	cursor: pointer;
	display: block;
	font-size: 28px;
	height: 44px;
	line-height: 38px;
	transition: all 0.3s ease-in-out 0s;
	width: 44px;
	z-index: 1;
}
#contact_bottom .tel a {
	color:#FFF;
}
#contact_bottom .tel a:hover {
	text-decoration:none;
}
#contact_bottom .tel i {
	font-style: normal;
}
.yin-yang {
    width: 96px;
    height: 48px;
    background: #eee;
    border-color: red;
    border-style: solid;
    border-width: 2px 2px 50px 2px;
    border-radius: 100%;
    position: relative;
}
.yin-yang:before {
    content:"";
    position: absolute;
    top: 50%;
    left: 0;
    background: #eee;
    border: 18px solid red;
    border-radius: 100%;
    width: 12px;
    height: 12px;
}
.yin-yang:after {
    content:"";
    position: absolute;
    top: 50%;
    left: 50%;
    background: red;
    border: 18px solid #eee;
    border-radius:100%;
    width: 12px;
    height: 12px;
}
	
footer {
	height:250px;
	margin-top:2px;
	padding:20px 15px 15px;		
	background: rgba(255,255,255,0.9);
	background: -moz-linear-gradient(top, rgba(255,255,255,0.9) 0%, rgba(250,245,248,0) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,0.9)), color-stop(100%, rgba(250,245,248,0)));
	background: -webkit-linear-gradient(top, rgba(255,255,255,0.9) 0%, rgba(250,245,248,0) 100%);
	background: -o-linear-gradient(top, rgba(255,255,255,0.9) 0%, rgba(250,245,248,0) 100%);
	background: -ms-linear-gradient(top, rgba(255,255,255,0.9) 0%, rgba(250,245,248,0) 100%);
	background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(250,245,248,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#faf5f8', GradientType=0 );
}
footer a:hover {
	text-decoration:none;
}
.articles {
  margin: 0 -15px;
}
.articles-title {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: normal;
}
.edit-mode.active .articles-title {
  margin-top: 25px;
}
.article {
  display: block;
  position: relative;
  height: 320px;
  margin-bottom: 20px;
  background-color: #FFF;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  overflow: hidden;
}
.article-photo {
  position: relative;
  height: 135px;
  overflow: hidden;
}
.article-photo img {
  position: absolute;
  top: 50%;
  width: 100%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.article:hover {
  text-decoration: none;
}
.article .info {
  padding: 10px;
  border-top: 5px solid #55c4ff;
  color: #333;
}
.article .info .article-date {
  font-size: 13px;
  color: gray;
}
.article .info .article-title {
  margin: 5px 0 10px;
  font-size: 20px;
  font-weight: bold;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article .info .article-text {
  height: 70px;
  font-size: 15px;
  line-height: normal;
  overflow: hidden;
}
.article-delete {
  position: absolute;
  top: 3px;
  right: 22px;
  line-height: normal;
  font-size: 24px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
  color: white;
}
.article-delete:hover {
  color: yellow;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
	
	h1 {
		font-size:40px;
	}
	.header-dropdown-list {
		float: right;
	}
	#nav-main {
		background: linear-gradient(to right, rgba(0,0,0,0) 0%,rgba(0,0,0,0.9) 50%,rgba(125,185,232,0) 100%);
		z-index:49999;
	}
	.portfolio {
		width:768px;
		margin:100px auto 0;
		z-index:2;
	}
	#content-wrapper {
	}
}

/* Navbar breakpoint */

@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
	body.edit-mode {
		margin-left:45px;
	}
	.affix {
        position: fixed;
    }

	#logo {
		text-align: -webkit-center;
	}
	#logo img {
		margin:0;
	}
	
	#nav-main.affixed-top {
		background:#f0f7f2;
	}
	/* Added `.affix` class css when the element is >= 170px (Look: line 8 html) */
	#nav-main.affix {
		top:0;
		left:0;
		right:0;
		/*background: rgba(255, 255, 255, 0.93);*/
	}
	/* Added `.affix-bottom` class css when the element is footer */
	#nav-main.affix-bottom {
		background: red; 
	}
	#nav-main .navbar-container {
		width:960px;
		margin:0 auto;
		padding:0;
	}
	#nav-main::after {
		content: "";
		background-image: linear-gradient(to right, rgba(189,120,3,0) 0%,rgb(237, 52, 54) 50%,rgba(189,120,3,0) 100%);
		height: 4px; /*for horizontal border; width for vertical*/
		display: block;
	}
	.navbar {
		min-height: 0;
		margin-bottom:0;
		border: none;
		background: none;
	}
	.navbar-nav > li > a {
		padding: 10px 15px;
	}
	.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .open > a {
	  /*background-image: linear-gradient(to bottom, #dbdbdb 0px, #e2e2e2 100%);*/
	  background-image:none;
	  background-repeat: repeat-x;
	  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.075) inset;
	}
	.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:focus, .navbar-default .navbar-nav > .open > a:hover {
	  /*background-color: #e7e7e7;*/
	  background-color:transparent;
	  font-weight:bold;
	  color: #FFF;
	}
	.navbar-nav > li > .dropdown-menu {
		margin-top: 2px;
		border-radius:0;
		background:rgba(0,0,0,0.75);
	}
	.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
		background:rgba(255,255,255,0.75);
	}
	#contact_bottom {
		display:none;
	}
	.portfolio {
		width:960px;
		margin:150px auto 0;
	}
	#content-wrapper {
		width: 970px;
		margin: 0px auto 0;
		padding:0;
	}
}
/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
	
	body {
	}
	.container {
		width: 940px;
	}
	.header {
		width: 960px;
		margin: 10px auto;
		padding: 10px;
		text-align: left;
	}
	#main-menu {
		width: 960px;
		margin: 0 auto;
	}
	#nav-main .navbar-container {
		width:960px;
	}
	.navbar {
		min-height: 0;
	}
	#slider {
		width: 960px;
		margin: 0 auto;
	}
	#slider {
		position:relative;
		min-height:200px;
		/*background-color:#FFF;*/
	}
	#slider-editor-button {
		position:absolute;
		left:10px;
		top:5px;
		visibility:hidden;
		font-size:24px;
		color:#333;
		cursor:pointer;
	}
	#slider:hover .editor-button {
		visibility:visible;
	}
	.content {
		padding:30px 37px 15px;
		background:rgba(255,255,255,0.9);
	}
	.content-top {
		height:1px;
		border-top:1px solid grey;
	}
	.top-to-bottom {
		border-width: 1px;
		border-style: solid;
		-webkit-border-image: -webkit-gradient(linear, 0 0, 0 100%, from(grey), to(rgba(0, 0, 0, 0))) 1 100%;
		-webkit-border-image: -webkit-linear-gradient(grey, rgba(0, 0, 0, 0)) 1 100%;
		-moz-border-image: -moz-linear-gradient(grey, rgba(0, 0, 0, 0)) 1 100%;
		-o-border-image: -o-linear-gradient(grey, rgba(0, 0, 0, 0)) 1 100%;
		border-image: linear-gradient(to bottom, grey, rgba(0, 0, 0, 0)) 1 100%;
	}
	.home-thumb .title p {
		bottom:-54px;
		transition: all 0.5s ease;
	}
	.home-thumb:hover .title p {
		bottom:0;
	}
	
}