/*  
Theme Name: Davide Ferrero's Theme
Theme URI: http://www.davideferrero.com/
Description: Davide Ferrero's blog wordpress theme
Version: 3.1
Author: Davide Ferrero
Author URI: http://www.davideferrero.com/
*/

/* ********** */
/* reset.css */
html {margin:0;padding:0;border:0;}
body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
article, aside, details, figcaption, figure, dialog, footer, header, hgroup, menu, nav, section {display:block;}
body {line-height:1.5;background:white;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;float:none !important;}
table, th, td {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:'';}
blockquote, q {quotes:"" "";}
a img {border:none;}
:focus {outline:0;}

/* *************** */
/* typography.css */
html {font-size:100.01%;}
body {font-size:80%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
h2 {font-size:2em;margin-bottom:0.75em;}
h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
h6 {font-size:1em;font-weight:bold;}
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
p {margin:0 0 1.5em;}
.left {float:left !important;}
p .left {margin:1.5em 1.5em 1.5em 0;padding:0;}
.right {float:right !important;}
p .right {margin:1.5em 0 1.5em 1.5em;padding:0;}
a:focus, a:hover {color:#8d8d8d;}
a {color:#2d2d2d;text-decoration:underline;}
blockquote {margin:1.5em;color:#666;font-style:italic;}
strong, dfn {font-weight:bold;}
em, dfn {font-style:italic;}
sup, sub {line-height:0;}
abbr, acronym {border-bottom:1px dotted #666;}
address {margin:0 0 1.5em;font-style:italic;}
del {color:#666;}
pre {margin:1.5em 0;white-space:pre;}
pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
li ul, li ol {margin:0;}
ul, ol {margin:0 1.5em 1.5em 0;padding-left:1.5em;}
ul {list-style-type:disc;}
ol {list-style-type:decimal;}
dl {margin:0 0 1.5em 0;}
dl dt {font-weight:bold;}
dd {margin-left:1.5em;}
table {margin-bottom:1.4em;width:100%;}
th {font-weight:bold;}
thead th {background:#c3d9ff;}
th, td, caption {padding:4px 10px 4px 5px;}
tbody tr:nth-child(even) td, tbody tr.even td {background:#e5ecf9;}
tfoot {font-style:italic;}
caption {background:#eee;}
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
.hide {display:none;}
.quiet {color:#666;}
.loud {color:#000;}
.highlight {background:#ff0;}
.added {background:#060;color:#fff;}
.removed {background:#900;color:#fff;}
.first {margin-left:0;padding-left:0;}
.last {margin-right:0;padding-right:0;}
.top {margin-top:0;padding-top:0;}
.bottom {margin-bottom:0;padding-bottom:0;}

/* ********** */
/* forms.css */
label {font-weight:bold;}
fieldset {padding:0 1.4em 1.4em 1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
legend {font-weight:bold;font-size:1.2em;margin-top:-0.2em;margin-bottom:1em;}
fieldset, #IE8#HACK {padding-top:1.4em;}
legend, #IE8#HACK {margin-top:0;margin-bottom:0;}
input[type=text], input[type=password], input[type=url], input[type=email], input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;color:#000;}
input[type=text]:focus, input[type=password]:focus, input[type=url]:focus, input[type=email]:focus, input.text:focus, input.title:focus, textarea:focus {border-color:#666;}
select {background-color:#fff;border-width:1px;border-style:solid;}
input[type=text], input[type=password], input[type=url], input[type=email], input.text, input.title, textarea, select {margin:0.5em 0;}
input.text, input.title {width:300px;padding:5px;}
input.title {font-size:1.5em;}
textarea {width:390px;height:250px;padding:5px;}
form.inline {line-height:3;}
form.inline p {margin-bottom:0;}
.error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;}
.error, .alert {background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;}
.notice {background:#fff6bf;color:#514721;border-color:#ffd324;}
.success {background:#e6efc2;color:#264409;border-color:#c6d880;}
.info {background:#d5edf8;color:#205791;border-color:#92cae4;}
.error a, .alert a {color:#8a1f11;}
.notice a {color:#514721;}
.success a {color:#264409;}
.info a {color:#205791;}

/* ********* */
/* font.css */
@font-face {
    font-family: 'Harabara';
    src: url('_fonts/harabara/harabara-webfont.eot');
    src: url('_fonts/harabara/harabara-webfont.eot?#iefix') format('embedded-opentype'),
         url('_fonts/harabara/harabara-webfont.woff') format('woff'),
         url('_fonts/harabara/harabara-webfont.ttf') format('truetype'),
         url('_fonts/harabara/harabara-webfont.svg#HarabaraRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* *********** */
/* struct.css */ 
#page{
    background-color:#ffffff;
}

#header{
    position:fixed;
    top:0;
    width: 100%;
    height:75px;
    background: #2d2d2d; /* Show a solid color for older browsers */
    background: -moz-linear-gradient(#565656, #2d2d2d);
    background: -o-linear-gradient(#565656, #2d2d2d);
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#565656), to(#2d2d2d)); /* older webkit syntax */
    background: -webkit-linear-gradient(#565656, #2d2d2d);
    -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
    -moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
    z-index:999;
}
#header-container{
    width: 960px;
    margin: 0 auto;
}
#header-logo{
    position:relative;
    width:56%;
    margin-right:58%;
}
#header-logo h1, #header-logo h1 a, #header-logo h2{font-family: 'Harabara';}
#header-logo h1{line-height:1.25em}
#header-logo h1 a{
    text-decoration:none;
    color:#f9f9f9;
    font-size:150%;
    margin:0;
    padding:0;
    border:0;
}
#header-logo h2{color:#ffffff;font-size:130%;margin:0;padding:0;border:0;margin-left:0.5em;line-height:0;}
 
#wrapper{
    position:relative;
    width:960px;
    margin:0 auto;
    background-color:#ffffff;
    padding-top:80px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    z-index:2;
}
 
#content{
    position:relative;
    width:70%;
    margin-right:30%;
    margin-top:0.5em;
}
 
#sidebar{
    position:relative;
    float:right;
    width:28%;
}

#sidebar, #sidebar ul{list-style:none;list-style-type:none;}

#sidebar-search{position:fixed;top:80px;width:15%;}

#searchform #s {
    float: right;
    width: 72px;
    background:#eeeeee;
    background-image:url('_img/search.png');
    background-repeat:no-repeat;
    background-position:right;
    color:#222222;
    padding:0.5em;
    padding-right:20px;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    border-radius:3px;
    -webkit-transition-duration: 400ms;
    -webkit-transition-property: width, background;
    -webkit-transition-timing-function: ease;
    -moz-transition-duration: 400ms;
    -moz-transition-property: width, background;
    -moz-transition-timing-function: ease;
    -o-transition-duration: 400ms;
    -o-transition-property: width, background;
    -o-transition-timing-function: ease;
}
#searchform #s:focus {
	background-color: #f9f9f9;
	width: 196px;
}

#searchform #searchsubmit {
	display: none;
}
 
#footer{
    clear:both;
    margin-top:5em;
    height:auto;
    background:#eeeeee;
    color:#686868;
    border:1px solid #cccccc;
}
#footer-text{
    width: 960px;
    margin: 0 auto;
    padding-top:1em;
}
#footer-text a{color:#686868;}
#footer-text a:hover,#footer-text a:focus{color:#8d8d8d;}


.post{margin-bottom:2em;border-bottom:1px dotted #aaaaaa;}
.post-title{font-weight:bold;}
.post-date{color:#aaaaaa;}

.entry{clear:both;padding-top:0.5em;text-align:justify;}

img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
.alignleft,
img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
.alignright,
img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 4px;
}
.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}
.wp-caption {
	background: #f1f1f1;
	line-height: 18px;
	margin-bottom: 20px;
	max-width: 632px !important; /* prevent too-wide images from breaking layout */
	padding: 4px;
	text-align: center;
}
.wp-caption img {
	margin: 5px 5px 0;
}
.wp-caption p.wp-caption-text {
	color: #888;
	font-size: 12px;
	margin: 5px;
}

.commentlist,.commentlist ul{list-style-type:none;list-style-position:inside;}
.commentlist .alt{background:#cccccc;}
.commentlist .comment{padding:0.5em;border:1px dotted #333333;margin-top:1em;margin-bottom:1em;}
.commentlist li ul li{background:#cccccc;}
.commentlist li.alt ul li{background:#ffffff;}
.commentlist li.alt ul li ul li{background:#cccccc;}
.commentlist li ul li ul li{background:#ffffff;}

.clear-both{clear:both;}

.postmetadata{padding:0.5em;}

/* ********* */
/* menu.css */
#header-menu {
    position:relative;
    width:40%;
    float:right;
}
#header-menu ul {
    font-size: 13px;
    list-style: none;
    margin: 0 0 0 -0.8125em;
    padding-left: 0;
}
#header-menu li {
    float: right;
    position: relative;
}
#header-menu a {
    color: #eee;
    display: block;
    line-height: 5.3em;
    padding: 0 1.2125em;
    text-decoration: none;
    font-size:110%;
    border-right:1px dotted #898989;
}
#header-menu ul ul {
    -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
    box-shadow: 0 3px 3px rgba(0,0,0,0.2);
    display: none;
    float: left;
    margin: 0;
    position: absolute;
    top: 5.8em;
    left: 0;
    width: 188px;
    z-index: 99999;
}
#header-menu ul ul ul {
    left: 100%;
    top: 0;
}
#header-menu ul ul a {
    background: #f9f9f9;
    border-bottom: 1px dotted #ddd;
    color: #444;
    height: auto;
    line-height: 1.4em;
    padding: 10px 10px;
    width: 168px;
}
#header-menu li:hover > a,
#header-menu ul ul :hover > a,
#header-menu a:focus {
    background: #efefef;
}
#header-menu li:hover > a,
#header-menu a:focus {
    background: #f9f9f9; /* Show a solid color for older browsers */
    background: -moz-linear-gradient(#f9f9f9, #e5e5e5);
    background: -o-linear-gradient(#f9f9f9, #e5e5e5);
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f9f9f9), to(#e5e5e5)); /* Older webkit syntax */
    background: -webkit-linear-gradient(#f9f9f9, #e5e5e5);
    color: #373737;
}
#header-menu ul li:hover > ul {
    display: block;
}
#header-menu .current-menu-item > a,
#header-menu .current-menu-ancestor > a,
#header-menu .current_page_item > a,
#header-menu .current_page_ancestor > a {
    background: #c9c9c9; /* Show a solid color for older browsers */
    background: -moz-linear-gradient(#c9c9c9, #858585);
    background: -o-linear-gradient(#c9c9c9, #858585);
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#c9c9c9), to(#858585)); /* Older webkit syntax */
    background: -webkit-linear-gradient(#c9c9c9, #858585);
    color: #373737;
}
