/**
 * This file should get overwritten if Method 1 is used. If Method 2 is chosen,
 * remove this comment and start adding your styles to this file.
 */
 
 /*
 VECCHIO GRIGO: 51626f
 BLU IUBILANTES: 093d76
 */
 
 /**
  ROBOTO
  
  Thin 100
  Thin 100 Italic
  Light 300
  Light 300 Italic
  Normal 400
  Normal 400 Italic
  Medium 500
  Medium 500 Italic
  Bold 700
  Bold 700 Italic
  Ultra-Bold 900
  Ultra-Bold 900 Italic
 **/
 
 
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #666;
  overflow-x: hidden;
}

strong {
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

h1 {
  font-size: 28px;
}
h2, .h2, h2 a, .h2 a, h2 span, .h2 span {
  font-size: 24px;
  color: #fb941a !important;
}

.btn-gray {
  background: #002a6f;
  color: #fff;
}
.btn-gray:hover,
.btn-gray:focus {
  background: #3e4d58;
  color: #fff;
}

.btn-orange {
  background: #fb941a;
  border-color: #fb941a;
  color: #fff;
  font-weight: 500;
}
.btn-orange:hover,
.btn-orange:focus {
  background: #fb941a;
  color: #fff;
}

.label-orange {
  background: #fb941a;
}


.img-responsive img {
  width: 100%;
  height: auto;
}

#block-system-main {
	z-index: 20;
	position: relative;
}

.pager {
	clear: both;
}


.margin-top {
	margin-top: 15px;
}

/* VISUALIZZAZIONE FIELD IN TAB O DIV DX */
.group-col-dx .field {
  margin-bottom: 10px;
  clear: both;
  float: left;
  width: 100%;
}
.group-col-dx .field-label {
  float: left;
  width: 30%;
}
.group-col-dx .field-items {
  float: left;
  width: 70%;
}
.group-col-dx .field-name-body .field-items {
  width: 100%;
}


/* HEADER */
#navbar .logo img {
  width: 230px;
}
#navbar {
  border: 8px solid #002a6f;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
}
.navbar-default {
  background: none;
  border: 0;
}
.navbar-header .navbar-brand {
  font-size: 32px;
  color: #666;
  padding-top: 40px;
  font-weight: 500;
}
#navbar  .navbar-nav {
  padding-top: 26px;
  padding-left: 30px;
  float: right;
}
#navbar  .navbar-nav li~li:before {
  content: '/';
  display:inline;
  padding: 0 4px;
  font-size: 20px;
}
#navbar  .navbar-nav li.first {
  padding-top: 4px;
}
#navbar  .navbar-nav li a {
  background: none !important;
  font-size: 18px;
  color: #666;
  padding: 2px 4px;
  display:inline;
}
#navbar  .navbar-nav li a:hover,
#navbar  .navbar-nav li a:focus,
#navbar  .navbar-nav li.active-trail a {
  color: #fb941a;
}
#navbar  .navbar-nav li.active-trail a {
  font-weight: 500;
}


#navbar .navbar-nav.secondary {
  padding-top: 9px;
  padding-bottom: 0;
}
#navbar .navbar-nav.secondary li a {
  font-size: 16px;
}

.pre-header {
  display: none;
}

@keyframes animatedBackground {
	from { background-position: 0 0; }
	to { background-position: 100% 0; }
}
body.front .navbar {
  margin-bottom: 0;
}


/*
@-webkit-keyframes AnimationName {
    0%{background-position:0% 76%}
    50%{background-position:100% 25%}
    100%{background-position:0% 76%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 76%}
    50%{background-position:100% 25%}
    100%{background-position:0% 76%}
}
@keyframes AnimationName { 
    0%{background-position:0% 76%}
    50%{background-position:100% 25%}
    100%{background-position:0% 76%}
}*/

body.front .pre-header-wrapper {
 /*background: linear-gradient(241deg, #fb941a, #fddab0);
  background-size: 400% 400%;

  -webkit-animation: AnimationName 15s ease infinite;
  -moz-animation: AnimationName 15s ease infinite;
  animation: AnimationName 15s ease infinite;
  */
  display: block;
}
body.front .pre-header {
  display: block;
  background: url(../img/bkg-hp-2.png) center top repeat;
  padding-bottom: 20px;
  /*background: url(../img/bkg-hp-orange-3.jpg) center top repeat;*/

  
  /*background-image: url(../img/bkg-hp-orange-3.jpg);*/
  /*background-image: url(../img/scritte.png);*/
  background-position: center top;
  background-repeat: repeat;
  /*background: url(../img/bkg-hp-orange-2.jpg) center top repeat;*/
  /*background: url(../img/wordcloud.jpg) center top repeat;*/
	/*animation: animatedBackground 40s linear infinite;*/
}
body.front .pre-header .container {
  padding-top: 20px;
  background-color: rgba(255,255,255,0.9);
}


/* FOOTER */
.footer-wrapper {
  background: #002a6f;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 20px;
}
.footer-wrapper .col-md-4 {
  min-height: 210px;
  padding-top: 10px;
}
.footer-wrapper h3 {
  color: #fff;
  margin-top: 0;
  font-weight: 400;
}
.footer-wrapper p {
  color: #fff;
}
.footer-wrapper .center-column {
  border: 1px solid #fff;
  border-top: 0;
  border-bottom: 0;
}

.colophon-wrapper {
  background: #052547;
  padding: 8px 0;
  color: #fff;
  font-size: 14px;
}
.colophon-wrapper a {
  color: #fff;
}


/* CHOSEN E EXPOSED FORM */
.chosen-container-multi .chosen-choices {
  border: 0;
  padding: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  background: none;
}
.chosen-container {
  height: auto;
}
.chosen-container-multi .chosen-choices li.search-choice {
  /*margin-top: 0;
  margin-bottom: 0;*/
}

.views-exposed-form .views-exposed-widget {
  
  width: 33.33333333333333%;
  min-height: 75px;
  /*padding-right: 30px;*/
  padding-right: 15px;
  padding-left: 15px;
}


.views-exposed-form .views-exposed-widget .chosen-container {
  width: 100% !important;
}
/*.views-exposed-form .views-widget-per-page,*/
.views-exposed-form .views-submit-button,
.views-exposed-form .views-reset-button {
  width: auto;
}
.views-exposed-form .views-submit-button {
    margin-top: 27px;
}
.views-exposed-form .views-submit-button .btn,
.views-exposed-form .views-reset-button .btn {
  background: #fb941a;
  border-color: #fb941a;
  margin-top: 27px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}
body.front .views-exposed-form {
	position: relative;
	padding-top: 10px;
	padding-bottom: 60px;
}
body.front .views-exposed-form .views-submit-button {
    margin-top: 0;
}
body.front .views-exposed-form .views-widget-per-page,
body.front #edit-field-percorsi-associati-target-id-wrapper,
body.front #edit-field-supporto-tassonomia-target-id-wrapper {
  /*clear: both;*/
}
body.front .views-exposed-form #edit-field-luogo-tassonomia-tid-wrapper { 
	/*clear: left;*/
}

body.front .views-exposed-form .views-submit-button,
body.front .views-exposed-form .views-reset-button {
  position: absolute;
  /*right: 0;*/
  bottom: 20px;
  right: 0;
  margin-right: 100px;
  min-height: 0;
}
body.front .views-exposed-form .views-reset-button {
  margin-right: 0%;
}

body.front .views-exposed-form .default-hidden {
	display: none;
}

.search-home {
  background: #002a6f;
  position: relative;
  margin-left: -15px;
  margin-right: -15px;
}
.search-home form:before, 
.search-home form:after {
  content: "";
  position: absolute;
  background: #002a6f;  /* Match the background */
  top: 0;
  bottom: 0;
  width: 9999px;   /* some huge width */
} 
.search-home form:before {
  right: 100%; 
}
.search-home form:after {
  left: 100%;
}
.search-home .views-exposed-widget > label {
  color: #fff;
}

/* HOME TOP DESC */
.home-desc-toggle-wrap {
	clear: both;
	width: 100%;
	float: right;
	margin-bottom: 0;
	position: absolute;
	bottom: 20px;
}
.home-desc-toggle {
	position: relative;
	z-index: 1;
	clear: both;
	/*background: #fff;*/
	/*width: 33.33333333333333%;*/
	/*height: 40px;*/
	float: left;
	/*
	padding-left: 15px; 
	padding-right: 15px; */
	margin-right: 15px;
	/*margin: auto;*/
	
	text-align:left;
	margin-left: 15px;
	/*
	-ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
	*/
}
/*.home-desc-toggle:after, .home-desc-toggle:before {
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.home-desc-toggle:after {
	border-color: rgba(255, 255, 255, 0);
	border-top-color: #fff;
	border-width: 25px;
	margin-left: -25px;
}
.home-desc-toggle:before {
	border-color: rgba(255, 255, 255, 0);
	border-top-color: #fff;
	border-width: 25px;
	margin-left: -25px;
}
*/
.home-desc-toggle a {
	position: relative;
	/*top: 13px;
	left: 13px;*/
	/*line-height:30px;*/
	/*text-align:center;*/
	text-align:left;
	text-indent:1px;
	z-index: 1;
	/*color: #fb941a;
	font-size: 15px;*/
	/*
	-ms-transform: rotate(-45deg); 
	-webkit-transform: rotate(-45deg); 
	transform: rotate(-45deg);
	*/
	min-width: 250px;
	max-width: 100%;
}
.home-desc-toggle a:hover,
.home-desc-toggle a:focus {
  text-decoration: none;
}
.home-desc-toggle a .glyphicon {
	font-size: 13px;
	/*position: relative;*/
	margin-right: 5px;
}
.home-desc .col-sm-6 h2,
.home-desc .col-sm-4 h2 {
  margin-top: 0;
}
.home-desc .col-sm-6,
.home-desc .col-sm-4 {
  border-right: 1px solid #002a6f;
  min-height: 320px;
}
.home-desc .col-sm-4 .img-thumbnail {
  width: 100%;
}
.home-desc .col-sm-4.padded {
  padding-top: 35px;
}
.home-desc .col-sm-4.last {
  border-right: 0;
}
.view-foto-random-hp .views-field-field-foto img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
}
.view-foto-random-hp .views-field-field-foto {
  margin-bottom: 10px;
}


/* FOTO VISUALIZZATE */

.foto-visualizer  {
  margin-top: 20px;
  position: relative;
}
.foto-visualizer  .view-header {
  margin-bottom: 10px;
}
.foto-visualizer .views-row {
  min-height: 270px;
  padding-top: 10px;
  position: relative;
}
.foto-visualizer .views-field-field-foto img {
  width: 100%;
  height: auto;
}
.foto-visualizer .views-field-field-foto {
  height: 170px;
}
.foto-visualizer .views-field-field-foto a {
  display: inline-block;
  border: 0;
  -webkit-transition: all 150ms ease;
  -moz-transition: all 150ms ease;
  -ms-transition: all 150ms ease;
  -o-transition: all 150ms ease;
  transition: all 150ms ease;
}
.foto-visualizer .selected-foto a,
.foto-visualizer .views-field-field-foto a:hover {
  border: 8px solid #fb941a;
  padding: 2px;
}
.foto-visualizer .selected-foto {
	/*position: relative;*/
	background: rgba(215, 218, 222, 0.30);
  /*
  background-color: rgba(215, 218, 222, 0.30);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.5) 10px, rgba(255,255,255,.5) 20px);*/
}
.foto-visualizer .selected-foto:after, 
.foto-visualizer .selected-foto:before {
	bottom: 0;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}
.foto-visualizer .selected-foto:after {
	border-color: rgba(215, 218, 222, 0);
	border-bottom-color: #d7dade;
	border-width: 20px;
	margin-left: -20px;
}
.foto-visualizer .selected-foto:before {
	border-color: rgba(215, 218, 222, 0);
	border-bottom-color: #d7dade;
	border-width: 20px;
	margin-left: -20px;
}

.foto-visualizer .views-row .ajax-progress-throbber {
  position: absolute;
  right: 0;
  bottom: 20px;
}
.foto-visualizer .views-field-field-didascalia em {  
  display: block;

  line-height: 17px;
  max-height: 70px;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.foto-visualizer .views-field-field-in-evidenza {
  position: absolute;
  top: 30px;
  left: 0;
}
.foto-visualizer .views-field-field-in-evidenza .label {
  font-weight: 500;
  padding: 2px 6px;
  font-size: 13px;
}


.foto-spacer {
  width: 100%;
  height: 630px;
  clear: both;
}


#foto-ajax-wrapper {
	position: relative;
	/*
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	*/
}
.foto-ajax-subwrapper > .container > ul.links {
	display: none;
}
.foto-ajax-subwrapper .node-foto {
  width: 100%;
  height: 610px;
  padding-top: 0;
  position: absolute;
  bottom: auto;
  left: 0;
  overflow: hidden;
  background: #fff;
  border: 10px solid #d7dade;
  border-right: 0;
  border-left: 0;
  z-index: 50;
}
.foto-ajax-subwrapper .close-wrap {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1.2em;
  text-decoration: none;
  color: #ccc;
}
.foto-ajax-subwrapper .permalink {
  position: absolute;
  top: 5px;
  right: 110px;
  font-size: 1.2em;
  text-decoration: none;
  color: #ccc;
}
.foto-ajax-subwrapper .node-foto .container {
  position: relative;
  background: #fff;
}

.node-foto > .container > .list-inline li.flag-myarchivio {
  position: absolute;
  top: 5px;
  right: 180px;
}
.node-foto > .container > .list-inline li.flag-myarchivio a {
  font-size: 1.2em;
  text-decoration: none;
  color: #ccc;
}
body.node-type-foto .node-foto > .container > .list-inline li.flag-myarchivio {
  right: 15px;
}
 

/* NODO FOTO */
.node-foto h2 {
  margin: 20px 0;
}
.node-foto .field-name-field-foto {
  text-align: center;
}

.node-foto .field-name-field-foto img {
  display: inline;
  max-height: 400px;
  width: auto;
}
.node-foto .field-name-field-foto .btn {
  margin-top: 10px;
}
.node-foto .field-name-field-foto .btn em {
  font-weight: normal;
}
.node-foto .field-name-field-didascalia {
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}
.node-foto .field-name-body {
  margin-bottom: 20px;
    max-height: 420px;
    overflow: auto;
}
.node-foto  .group-col-dx div.horizontal-tabs {
  border: 0;
  border-left: 1px solid #d7dade;
}
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list {
  border: 0;
  background: none;
}
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li {
  background: #d7dade;
  border: 0;
  min-width: 150px;
  text-align:center;
}
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li a,
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li a strong {
  color: #666;
  
}
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list .selected strong {
  color: #fff;
}
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li.selected,
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li:hover,
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li:focus {
  background: #fb941a;
}
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li a:hover,
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li a:focus,
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li a:hover strong,
.node-foto  .group-col-dx .horizontal-tabs ul.horizontal-tabs-list li a:focus strong {
  background: none;
  color: #fff;
}

.node-foto .field-name-field-tag-nuovi .field-item:before,
.node-foto .field-name-field-soggetti-tassonomia .field-item:before {
  content: '- '; 
}


.field-group-htab .panel-body.collapse {
	opacity: 1 !important;
	display: block !important;
	visibility: visible !important;
}

/* TECNICHE, FONDI e TEMI */
.view-lista-tecniche .views-row,
.view-lista-fondi .views-row,
.view-temi .views-row  {
  min-height: 260px;
  margin-bottom: 20px;
}
.view-lista-tecniche .view-conteggi-per-viste,
.view-lista-fondi .view-conteggi-per-viste,
.view-temi .view-conteggi-per-viste  {
  font-style: italic;
  font-size: 14px;
}


.view-temi h3 {
  clear: both;
  float: left;
  width: 100%;
}

/*.view-lista-tecniche .view-conteggi-per-viste {
  float: right;
  background: #fb941a;
  color: #fff;
  display: block;
  height: 20px;
  width: 20px;
  line-height: 20px;
  text-align: center;
}*/


@media (max-width: 1200px) {
	html,body {
		overflow-x: hidden;
	}
}
@media (min-width: 992px) and (max-width: 1200px) {
	#navbar  .navbar-nav {
		padding-left: 0;
	}
	#navbar  .navbar-nav li~li:before {
		padding: 0;
	}
}
@media (max-width: 992px) {
	
	
	
	.navbar-header {
		width: 100%;
	}
	#navbar  .navbar-nav li~li:before { 
		display: none;
	}
	#navbar .navbar-nav {
		padding: 0;
		width: 33%;
		min-width: 250px;
		max-width: 100%;
		text-align: left;
		margin: 0 15px 15px 0;
	}
	#navbar .navbar-nav.secondary {
		clear:right;
		/*margin: 0;*/
		padding: 0;
		margin-bottom: 10px;
	}
	#navbar .navbar-nav.secondary li a {
		font-size: 18px;
	}
	.navbar-toggle {
		margin-top: 51px;
		margin-right: 0;
	}
	.navbar-nav>li {
		text-align: right;
		margin-bottom: 5px;
	}
	.navbar-collapse {
		border: 0;
	}
	
	.node-foto h2 {
		margin-top: 40px;
	}
	
	.foto-visualizer .views-field-field-foto {
		height: auto;
	}
}
@media (min-width: 768px) and (max-width: 992px) {
	.navbar-toggle {
		display: block;
		margin-right: 15px;
	}
	.navbar-collapse.collapse {
	   display: none !important;
	}
	.navbar-nav>li {
		float: none;
	}
	#navbar .navbar-nav {
		margin-right: 0;
	}
}
@media (max-width: 768px) {
	.navbar-nav {
		margin-right: 15px;
	}
	
	.foto-ajax-subwrapper .node-foto {
		height: auto;
	}
	.node-foto  .group-col-dx div.horizontal-tabs {
		margin-top: 20px;
	}
}

@media (max-width: 560px) {
	
	.group-col-dx .field-label,
	.group-col-dx .field-items {
	  float: none;
	  width: auto;
	}
}
@media (max-width: 500px) {
	.xs-to-50 {
		width: 50%;
	}
	.xs-to-100 {
		width: 100%;
	}
	.views-exposed-form .views-exposed-widget {
		width: 100%;
	}
}

@media (max-width: 300px) {
	.xs-to-50 {
		width: 100%;
	}
}