/* MAIN BG*/
body, 
ul.tabs li a.active{ 
	background: #fdfdfd;
	background: rgba(246,246,246,0.5) ;
	background: white ;
	position: relative;
	z-index: 1;

	background-color: transparent;
	background-image: url(../images/theme/backgrounds/sfumatodacentro2.png);
	background-repeat: repeat-y;
	background-position: center;
} 

h2.title span {
	background: #fdfdfd;
	background: rgba(246,246,246,0.5);
	background: white;
	position: relative;
	z-index: 1;
	background-color: transparent;
	/*background-image: url(../images/theme/backgrounds/sfumatodacentro.png);*/
	background-repeat: repeat-y;
	background-position: center;
} 

body:after, 
/* h2.title span:after, */
ul.tabs li a.active:after{  
	content: "";
	background: transparent;  /*white;*/
	position:absolute; 
	z-index:99; 
	left:0; 
	bottom:0; 
	right:0;
	height: 100%;
	width: 100%;
	z-index: -1;
	}
	
/* FOOTER */
#section-tophat{
	border-bottom: 2px solid #ddd;
	/*background: #333;*/
	background-image: url(../images/theme/backgrounds/black_gradient_bg1050.png);
}

#section-tophat:after, #section-footer:after{
	content: "";
	/*background: #333;*/
	background-image: url(../images/theme/backgrounds/black_gradient_bg1050i.png);
	background-repeat: repeat;
	background-position: top;

}

/* SUBFOOTER */
#section-sub-footer{
	/*background: black;*/
	/*background: url("../images/theme/backgrounds/black_gradient_bg.png") repeat transparent;*/
	background-image: url(../images/theme/backgrounds/black_gradient_bg1050i.png);
	background-position: top;
}

#section-sub-footer:after {
	content: "";
	/*background: black;*/
	/*background: url("../images/theme/backgrounds/black_gradient_bg.png") repeat transparent;*/
	background-image: url(../images/theme/backgrounds/black_gradient_bg.png);
	background-position: center;
}

/*BANNER INTESTAZIONE*/
.wrapper {
	width: 940px;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

#titul {
	font-family: 'Architects Daughter', cursive;
	font-size: 42px;
	font-weight: 400;
	text-shadow: 6px 6px 6px #8A8A8A;
	color: #333333;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

div titul p {
	font-family: 'Architects Daughter', cursive;
	font-size: 42px;
	font-weight: 400;
	text-shadow: 6px 6px 6px #8A8A8A;
	color: #333333;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

#subtitul {
	font-family: 'Architects Daughter', cursive;
	font-size: 24px;
	font-weight: 400; 
	text-shadow: 6px 6px 6px #8A8A8A;
	color: #333333;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

#titulfooter {
	font-family: 'Architects Daughter', cursive;
	font-size: 18px;
	font-weight: 400;
	text-shadow: 6px 6px 6px #CCCCCC;
	color: #FFFFFF;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

#titulfooterCit {
	font-family: 'Architects Daughter', cursive;
	font-size: 12px;
	font-weight: 400;
	text-shadow: 6px 6px 6px #CCCCCC;
	color: #FFFFFF;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

div.titulBard {
	position: relative;
    height: 8em;
} 

div.titulBard p {
    font-family: 'Architects Daughter', cursive;
	font-size: 34px;
	font-weight: 600;
	text-shadow: 4px 4px 4px #8A8A8A;
	color: #333333;
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
	
    margin: 0;
    
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)        
} 
    

/*flickr*/
.flickr_badge_wrapper {
    display: block;
    padding-top: 10px;
}

.flickr_badge_wrapper .flickr-bottom {
    display: inline-block;
    margin: 12px 0px 0px 6px;
}

/* aggiunto per elenchi */
dl {
  margin: 0 0 25px 5px;
}
dt {
  font-weight: bold;
  margin: 10px 0 0 0;
}
dd {
  margin: 0 0 0 40px;
}

h6.diciotto {
	font-size: 38px;
	font-weight: 400;
	text-shadow: 6px 6px 6px #CCCCCC;
}

tr:nth-child(odd)		{ background-color:#eee; }
tr:nth-child(even)		{ background-color:#fff; }
td, th
{
padding: 2px 5px 2px 5px;
 /*vertical-align: bottom;*/
}
td img {
	vertical-align: Text-top;
}

.iframe-container{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
}
.iframe-container iframe{
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Contenitore nav */
.navigation {
  position: relative;
}

/* Bottone hamburger */
.nav-toggle {
  display: none;           /* visibile solo su mobile */
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 30px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Lines */
.nav-toggle span {
  display: block;
  height: 3px;
  margin: 4px 0;
  background: #333;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

/* Mobile */
@media (max-width: 768px) {

  #section-header,
  #menu,
  .navigation {
    position: static;
    z-index: auto;
  }

  .sf-menu {
    display: none;
    float: none;
    width: 100%;
  }

  .navigation.open .sf-menu {
    display: block;
  }

  .sf-menu,
  .sf-menu * {
    float: none;
    position: static;
  }

  .sf-menu li {
    width: 100%;
  }
  
  
  /* Riga con link + bottone toggle */
  .sf-menu .menu-item-row {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .sf-menu .menu-item-row > a {
    flex: 1;
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
  }

    .sf-menu li:not(.has-submenu) > a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
  }

  .sf-menu .submenu-toggle {
    display: block;
    flex: 0 0 44px;
    min-width: 44px;
    border: 0;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    cursor: pointer;
  }
  .sf-menu .submenu-arrow::before {
    content: "▾";
    display: block;
    text-align: center;
    line-height: 44px;
    font-size: 14px;
  }

  .sf-menu li.open > .menu-item-row .submenu-arrow::before {
    content: "▴";
  }

   .sf-menu ul {
    position: static;
    display: none;
	   
    margin-left: 0;
    padding-left: 1rem;
    background: #f7f7f7;
  }
	
  .sf-menu li.open > ul {
    display: block;
  }

  .sf-menu ul ul {
    padding-left: 1.5rem;
    background: #efefef;
  }	
	
  .sf-menu li.open > ul > li > a,
  .sf-menu li.open > ul > li > .menu-item-row > a {
    padding-left: 1.2rem;
  }

  .sf-menu li.open > ul > li.open > ul > li > a,
  .sf-menu li.open > ul > li.open > ul > li > .menu-item-row > a {
    padding-left: 2rem;
  }

  .sf-menu li.open > ul > li.open > ul > li.open > ul > li > a,
  .sf-menu li.open > ul > li.open > ul > li.open > ul > li > .menu-item-row > a {
    padding-left: 2.8rem;
  }

  .nav-toggle {
    display: block;
  }

  #section-slider,
  .flexslider-container,
  .flexslider {
    position: static;
    z-index: auto;
  }
}
