/*  
Theme Name: torrione
Theme URI: http://www.iltorrione.it/
Description: Theme for il Torrione website
Version: 2.0
Author: Berardo Mat
Author URI: http://berardomate.com/
*/

/*	--------------------------------------------------
	Global Reset
	
	Props to Eric Meyer (meyerweb.com) for his CSS 
	reset file. We're using an adapted version here 
	that cuts out some of the reset HTML elements we 
	will never need here (i.e., dfn, samp, etc).
	-------------------------------------------------- */

	html, body { margin: 0; padding: 0; }
	h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; text-align: left; }
	table { border-collapse: collapse; border-spacing: 0; }
	ol, ul { list-style: none; }
	q:before, q:after, blockquote:before, blockquote:after { content: ""; }
	
	
/*	--------------------------------------------------
	Structure
	-------------------------------------------------- */
	
	body { background: #fff url(images/bg.png) repeat-x 0 0; font: 62.5%/1 "Gill Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; text-shadow: 0 .1em .1em #fff; color: #555; }
	
	.container { width: 960px; margin: 0 auto; position: relative; }
	#header { position: relative; overflow: hidden; height: 468px; margin: 0; padding: 0 0 0; }
	#main { padding: 20px 0; width: 635px; float: right; }
	#sidebar { float: left; width: 310px; margin: 0; padding: 20px 0; }
	#footer { margin: 0; padding: 25px 0 0 50px; }
	.clear { clear: both;  }
	.clearfix:after { content: "."; display: block; font-size: 1px; line-height: 0px; height: 0; clear: both; visibility: hidden; }
	.clearfix { display: block; }


/*	--------------------------------------------------
	Links
	-------------------------------------------------- */
	
	a { color: #BD782A; text-decoration: none; }
	a:hover { color: #000; } 
	
	
/*	--------------------------------------------------
	Type
	-------------------------------------------------- */
	
	h1, h2, h3, h4, h5, h6 { font-weight: bold; color: #C5A369; }
	h1 { font-size: 2.4em; line-height: 1.5;  padding: 0 0 .5em; }
	h2 { font-size: 1.8em; line-height: 1.125; padding: 0 0 .28125em; }
	h3 { font-size: 1.2em; line-height: 1.5; text-transform: uppercase; font-weight: normal; padding-bottom: 1em; }
	
	p { font-size: 1.4em; line-height: 1.6em; margin: 0 0 1.5em; }
	
	em { font-weight: inherit; font-style: italic; }
	strong { font-style: inherit; font-weight: bold; }	

	ul, ol { margin: 0 0 1.8em; }
	ol { list-style: decimal; padding: 0 3em; }
	li { font-size: 1.4em; line-height: 1.5em; }
	
	blockquote { display: block; font-size: 1em; border-left: .2em solid #ddd; margin: 0 0 1.8em 3.6em; padding: 0 3.6em 0 1.3em; }
	blockquote p { padding: 0; color: #777; font-style: italic; }
	
	
/*	--------------------------------------------------
	Header & Nav
	-------------------------------------------------- */	
	 
	#header .container { background: url(images/bg_head.jpg) no-repeat top right; height: 468px; }
	#logo { padding: 25px 0 35px; border-bottom: 1px solid #431A0B; }
	#nav { position: absolute; left: 0; top: 95px; width: 515px; text-align: right; /*border-bottom: 1px solid #431A0B;*/ padding-left: 445px; z-index: 20; }
	#nav ul { list-style: none; }
	#nav li { list-style: none; display: inline; }
	#nav a { float: left; height: 0px !important; overflow: hidden; border: 0; margin: 0; padding-top: 16px; margin-right: 15px; }
	#nav .page-item-2 a { width: 109px; background: transparent url(images/butt01.gif) top left no-repeat; }
	#nav .page-item-3 a { width: 82px; background: transparent url(images/butt02.gif) top left no-repeat; }
	#nav .page-item-4 a { width: 66px; background: transparent url(images/butt03.gif) top left no-repeat; }
	#nav .page-item-5 a { width: 112px; background: transparent url(images/butt04.gif) top left no-repeat; }
 	#nav a:hover, #nav .current_page_item a, #nav .current_page_parent a, #pag3 #nav .page-item-3 a { background-position: 0 -16px; }
	#curtain { position: absolute; right: -30px; top: 0; background: url(images/curtain.png) no-repeat top right; width: 167px; height: 285px; z-index: 10; }
	
	
/*	--------------------------------------------------
	Home
	-------------------------------------------------- */		
	
	.bar .col1 { margin: 0; float: left; width: 310px; }
	.bar .col2 { margin: 0; float: right; width: 310px; }
	.event { width: 240px; position: relative; margin-bottom: 10px; padding: 0 0 10px 50px; border-bottom: 1px solid #DCDACF; }
	.event .date { background: url(images/bg_date.gif) no-repeat 0 0; position: absolute; left: 0; top: 2px; width: 40px; padding-bottom: 10px; }
	.date .month { font-size: 12px; text-transform: uppercase; font-weight: normal; padding: 5px 0 0; display: block; text-align: center; color: #BD782A; }
	.date .day { font-size: 22px; padding: 0; display: block; text-align: center; color: #850809; }
	.event h2 { font-size: 14px; }
	.event p { font-size: 11px; margin: 0 0 10px; }
	.event span { background: #ffc; padding: 1px; }
	
	
/*	--------------------------------------------------
	Main
	-------------------------------------------------- */
		
	#breadcrumb { color: #666; margin-bottom: 20px; }
	.sum { font-size: 20px; font-weight: normal; color: #A2DEF7;  }
	.gallery img { float: left; border: 4px solid #021F41; margin: 2px 5px 5px 0; }
	.box { margin: 0; padding-bottom: 15px; margin-bottom: 20px; float: left; width: 520px; }
	.box img { background-color: #021F41; padding: 3px; float: left; margin: 0 15px 5px 0; }
	.paging { border-top: 1px solid #121212; clear: both; padding: 10px 0; }
	.paging span.current { padding: 2px 4px; margin: 2px; font-weight: bold; border: 1px solid #222; color: #333; background-color: #111; }
	#main .postcontent a { border-bottom: 1px solid #ccc; padding: 1px; -webkit-transition-property: color; -webkit-transition-duration: 0.15s; -webkit-transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); }
	#main .postcontent a:hover { color: #fff; background-color: #BD782A; border: 0; text-shadow: 0 0 0 #000; }
	table { width: 100%; font-size: 13px; margin: 5px 0 10px; }
	th { background-color: #C5A369; font-weight: bold; padding: 6px; color: #fff; text-shadow: 0 .1em .1em #A0844E; }
	caption { background-color: #C5A369; border-top: 1px solid #E6F0F2; text-align: left; }
	td { border-bottom: 1px solid #ECF2F6; padding: 4px 3px; }
	tfoot { background-color: #fff; text-align: left; }
	
/*	--------------------------------------------------
		Home: Slider
	-------------------------------------------------- */

/*	#teaser h2 { color: #88D9ED; font-size: 18px; font-weight: bold; }
	#teaser h1 { font-size: 2em; font-weight: normal; margin: .5em 0 .25em; }
	#teaser h1 a { color: #fff; font-weight: normal; }
	.jfprev { position: relative; top: 130px; z-index:20; cursor: pointer; }
	.jfnext { position: relative; top: 130px; left: 880px; z-index:20; cursor: pointer; }
	#controller { display:none; }*/
	.item { width: 960px; margin-top: 35px; overflow: hidden; }
	.slide { display: block; float: left; clear: none; color: #987D52; text-shadow: 0 1px 1px #000; width: 350px; }
	.slide a:hover { color: #DCCDB5; }
	.slide h1 { margin: 0; padding: 0; }
	.slide p { font-size: 14px; margin: 0; }
	.slideimg { float: right; background: url(images/bg_slideimg.gif) no-repeat top left; width: 500px; } 
	.slideimg img { padding: 10px 10px 12px; }
	
	
/*	--------------------------------------------------
	Form
	-------------------------------------------------- */	
	form.a { width: 100%; margin: 0 0 5px; padding: 0; }
 	form.a p { position: relative; margin: 0; padding: 5px 0 5px 245px; border-top: 1px solid #021F41; }

 	p#success, p#bademail, p#badserver { display: none; }
 	.status { background-position: 10px 50%; background-repeat: no-repeat; font-size: 1.17em; margin: 10px auto; padding: 10px 10px 10px 40px; color: #000; }
 	#bademail { background-color: #ebcccc; border: 1px solid #F33; background-image: url(images/ico_alert.gif); }
 	#success { background-color: #DAF8C4; border: 1px solid #447D1F; background-image: url(images/ico_ok.gif); }
   	form.a p label, .label { position: absolute; left: 0; top: 8px; width: 240px; font-weight: bold; }
  	form.a p input.txt { width: 250px; padding: 2px 3px; border: 1px solid #dadada; background: #fff url(images/bg_txtfield.gif) repeat-x 0 1px; }
  	form.a p .txt.short { width: 100px; }
  	form.a p .txt.mid { width: 130px; }
  	form.a label img { vertical-align: middle; margin-bottom: 5px; }
  	form.a p textarea { overflow: auto; width: 245px; height: 120px; padding: 2px 3px; border: 1px solid #dadada; background: #fff url(images/bg_txtfield.gif) repeat-x 0 1px; }
	
	
/*	--------------------------------------------------
	Sidebar
	-------------------------------------------------- */		
	
	#sidebar .module { padding: 0 10px; position: relative; }
	#sidebar dl { margin: 0 0 1.8em; }
	#sidebar dt { font-weight: bold; margin-bottom: 3px; font-size: 1.2em; }
	#sidebar dd { margin-bottom: 3px; padding: 0 0 10px; font-size: 1.2em; line-height: 1.5em; }
	#sidebar .date { font-size: 1em; text-transform: uppercase;	color: #6F89A5; padding: 0 0 3px; margin: 0 0; border: 0; }
	
	
/*	--------------------------------------------------
	Footer
	-------------------------------------------------- */
	
	#footer ul { margin: 0 0 20px; }
	#footer ul li { display: inline; padding: 0 .85em 0 0; color: #fff; font-size: 1em; text-transform: uppercase; }
	#footer a, #breadcrumb a { color: #575757; text-decoration: none; }
	#footer a:hover, #breadcrumb a:hover { color: #353535; }
	#footer p { font-size: 1.2em; color: #858585; }
	
	
/*	--------------------------------------------------
	Plugins
	-------------------------------------------------- */

	div#fancy_overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #666; display: none; z-index: 30; }
	* html div#fancy_overlay { position: absolute;height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');}
	div#fancy_wrap { text-align: left; }
	div#fancy_loading {position: absolute; height: 40px; width: 40px; cursor: pointer; display: none; overflow: hidden; background: transparent; z-index: 100; } 
	div#fancy_loading div { position: absolute; top: 0; left: 0; width: 40px; height: 480px; background: transparent url('images/fancy_progress.png') no-repeat;}
	div#fancy_loading_overlay { position: absolute; background-color: #FFF;	z-index: 30; }
	div#fancy_loading_icon { position: absolute; background: url('images/fancy_loading.gif') no-repeat; z-index: 35; width: 16px; height: 16px; }
	div#fancy_outer { position: absolute; top: 0; left: 0; z-index: 90; padding: 18px 18px 33px 18px; margin: 0; overflow: hidden; background: transparent; display: none; }
	div#fancy_inner { position: relative; 	width:100%; height:100%; border: 1px solid #BBB; background: #FFF; } 
	div#fancy_content { margin: 0; 	z-index: 100; 	position: absolute; } 
	div#fancy_div { background: #000; 	color: #FFF; 	height: 100%; width: 100%; z-index: 100; } 
	img#fancy_img { position: absolute; top: 0; left: 0; border:0;	padding: 0; margin: 0; 	z-index: 100; width: 100%; 	height: 100%; } 
	div#fancy_close { position: absolute; top: -12px; right: -15px; height: 30px; width: 30px; background: url('images/fancy_closebox.png') top left no-repeat; cursor: pointer; z-index: 181; display: none; }
	#fancy_frame { position: relative; 	width: 100%; height: 100%; display: none; } 
	#fancy_ajax { width: 100%; 	height: 100%; 	overflow: auto; } 
	a#fancy_left, a#fancy_right { position: absolute; bottom: 0px; height: 100%; width: 35%; cursor: pointer; z-index: 111; display: none; background-image: url(data:image/gif;base64,AAAA); outline: none; } 
	a#fancy_left { left: 0px; } 
	a#fancy_right { right: 0px; } 
	span.fancy_ico { position: absolute;  top: 50%; margin-top: -15px; width: 30px; height: 30px; z-index: 112; cursor: pointer; display: block; } 
	span#fancy_left_ico { left: -9999px; background: transparent url('images/fancy_left.png') no-repeat; } 
	span#fancy_right_ico { right: -9999px; 	background: transparent url('images/fancy_right.png') no-repeat; } 
	a#fancy_left:hover { visibility: visible; } 
	a#fancy_right:hover { visibility: visible; } 
	a#fancy_left:hover span { left: 20px; } 
	a#fancy_right:hover span { right: 20px; } 
	.fancy_bigIframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; } 
	div#fancy_bg { position: absolute; 	top: 0; left: 0; width: 100%; height: 100%; z-index: 70; border: 0; padding: 0; margin: 0; }
	div.fancy_bg { position: absolute; 	display: block; z-index: 70; border: 0; padding: 0; margin: 0; } 
	div.fancy_bg_n { top: -18px; width: 100%; height: 18px; background: transparent url('images/fancy_shadow_n.png') repeat-x; } 
	div.fancy_bg_ne { top: -18px; right: -13px; width: 13px; height: 18px; 	background: transparent url('images/fancy_shadow_ne.png') no-repeat; } 
	div.fancy_bg_e { right: -13px; height: 100%; width: 13px; background: transparent url('images/fancy_shadow_e.png') repeat-y; } 
	div.fancy_bg_se { bottom: -18px; right: -13px; 	width: 13px; height: 18px; 	background: transparent url('images/fancy_shadow_se.png') no-repeat; } 
	div.fancy_bg_s { bottom: -18px; width: 100%; height: 18px; 	background: transparent url('images/fancy_shadow_s.png') repeat-x; } 
	div.fancy_bg_sw { bottom: -18px; left: -13px; width: 13px; height: 18px; background: transparent url('images/fancy_shadow_sw.png') no-repeat; } 
	div.fancy_bg_w { left: -13px; height: 100%; width: 13px; background: transparent url('images/fancy_shadow_w.png') repeat-y; } 
	div.fancy_bg_nw { top: -18px; left: -13px; 	width: 13px; height: 18px;	background: transparent url('images/fancy_shadow_nw.png') no-repeat; } 
	div#fancy_title { position: absolute; bottom: -33px; left: 0; width: 100%; 	z-index: 100; 	display: none; } 
	div#fancy_title div { color: #FFF; font: bold 12px Arial; padding-bottom: 3px; } 
	div#fancy_title table { margin: 0 auto; } 
	div#fancy_title table td { padding: 0; vertical-align: middle; } 
	td#fancy_title_left { height: 32px; width: 15px; background: transparent url(images/fancy_title_left.png) repeat-x; } 
	td#fancy_title_main { height: 32px; background: transparent url(images/fancy_title_main.png) repeat-x; } 
	td#fancy_title_right { height: 32px; width: 15px; background: transparent url(images/fancy_title_right.png) repeat-x; }