/*
Theme Name: Capodarco Unico
Theme URI: http://www.comunitadicapodarco.it
Author: Andrea Tortoni
Author URI: http://www.tcpsistemi.it/
Description: Portale unico per l'ente morale della comunità di capodarco
Version: 3.0
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Tags: capodarco
Text Domain: capodarco
*/

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{font-size:100%;font:inherit;padding:0;border:0;margin:0;vertical-align:baseline}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}.clear{clear:both}

/* base */
body { color:#333;/*#3e3e3e;*/ font-size:100%; font-family:'PT Sans', sans-serif; background:#fff; }
h1,h2,h3,h4,h5,h6 { color:#111; font-family:'Open Sans Condensed', sans-serif; font-weight:700; line-height:1.1em; }
h1 { font-size:2.0em; }
h2 { font-size:1.8em; }
h3 { font-size:1.6em; }
h4 { font-size:1.4em; }
h5 { font-size:1.1em; }
h6 { font-size:1.1em; }
p, address, li { font-size:1.1em; line-height:1.2em; }
a { -webkit-transition: color 0.1s; transition: color 0.1s; }
a:visited, a:hover, a:active { text-decoration:none; }
b,strong { font-weight:700; }
small { font-size:0.8em; }
hr { clear:both; }
h1 a, h2 a, h3 a { color:#222; }
h1 a:hover, h2 a:hover, h3 a:hover { color:#555; }

/*
nero - 4e3c45 - 78 60 69
rosso - b90a19 - 185 10 25
giallo - ed980a - 237 152 10
verde - 0a8739 - 10 135 57
azzurro - 0d99de - 13 153 222
*/

/* struttura */
#wrapper { background:#fff; }
.row { }
.alignleft { float:left; margin:0 1em 0.5em 0; }
.alignright { float:right; margin:0 0 0.5em 1em; }
.aligncenter { float:none; clear:both; margin:1em 0; }
img.aligncenter,
.aligncenter img { display:block; margin:0 auto; }

/* #branding */
#branding { margin-top:20px; margin-bottom:10px; }
#branding #site-title > img { padding-top:10px; }
#site-title { margin-left:1em; }

/* #menu-top */
#menu-top ul { position:relative; margin-top:15px; margin-bottom:15px;}
#menu-top ul li { display:inline-block; }
#menu-top a { color:#4e3c45; display:block; padding:0 1em; height:2em; line-height:2em; border-right:1px solid #333; text-transform:uppercase; }
#menu-top li:last-child a { border-right:0; }
#menu-top a:hover { color:#b90a19; text-decoration:none; }
#menu-top li.current-menu-item a { color:#b90a19; }

#menu-top-sections { margin-bottom:2em; }

.menu-sections { position:relative; }
.menu-sections ul { display:table; width:100%; background:#000; }
.menu-sections li { /*display:table-cell; vertical-align:middle; width:25%;*/ }
.menu-sections a { display:block; padding:0.6em 1em 0.5em; font-size:1.2em; color:#fff; text-align:center; }
.menu-sections .back-red { background:#b90a19; }
.menu-sections .back-green { background:#0a8739; }
.menu-sections .back-blue { background:#0d99de; }
.menu-sections .back-yellow { background:#ed980a; }
.menu-sections li:hover { opacity:0.8; }

/* #megabuttons */
#megabuttons .item { position:relative; }
#megabuttons .item a { position:absolute; top:0; left:0; width:100%; height:100%; color:#fff; text-shadow:2px 2px 3px #000; }
#megabuttons .item span { display:block; position:absolute; left:10px; bottom:15px; }
#megabuttons .item .title { font-size:1.8em; }
#megabuttons .item .title-2 { font-size:1.7em; }

#button-red a { background:rgba(185,10,25,0); -webkit-transition: background 0.3s; transition: background 0.3s; }
#button-red a:hover { background:rgba(185,10,25,0.4); }
#button-yellow a { background:rgba(237,152,10,0); -webkit-transition: background 0.3s; transition: background 0.3s; }
#button-yellow a:hover { background:rgba(237,152,10,0.4); }
#button-green a { background:rgba(10,135,57,0); -webkit-transition: background 0.3s; transition: background 0.3s; }
#button-green a:hover { background:rgba(10,135,57,0.4); }
#button-blu a { background:rgba(13,153,222,0); -webkit-transition: background 0.3s; transition: background 0.3s; }
#button-blu a:hover { background:rgba(13,153,222,0.4); }

/* #box-home */
#box-home { margin-top:30px; margin-bottom:30px; }
#box-home .widget-title { margin-bottom:1em; color:#222; font-size:1.6em; padding-bottom:0.4em; border-bottom:2px solid #333; }
#box-home .widget-container { margin-bottom:2em; clear:both; }
#box-home #homebox-left .widget-title { display:none; }

/* .home-latest-news */

.home-latest-news li { border-bottom:2px solid #0d99de; margin-bottom:20px; padding-bottom:1em; }
.home-latest-news li:last-child { border:0; }
.home-latest-news h2 { margin-bottom:0.6em; }
.home-latest-news .date { display:block; float:right; padding:8px 10px; margin-left:1em; background:#0d99de; color:#fff; font-size:0.6em; line-height:1.1em; border-radius:4px; text-align:right; }

/* #container */
/*#container > .row { margin-top:2em; margin-bottom:2em; }*/
#content > header { margin-bottom:1em; padding:1em 0.6em; background:#f6f6f6; }
.entry-evidence img { width:100%; height:auto; }


.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 { line-height:1.4em; margin-top:1em; margin-bottom:0.4em; border-bottom:2px solid #333; }
.entry-content h6 { line-height:1.4em; margin-top:1em; margin-bottom:0.4em; background: rgb(255,255,255);
background: -moz-linear-gradient(left,  rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
background: -webkit-linear-gradient(left,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=1 );
 }
.entry-content p { margin-bottom:1em; }
.entry-content ul { list-style:disc; margin-bottom:1em; }
.entry-content ol { list-style:decimal; margin-bottom:1em; }
.entry-content li { line-height:1.5em; margin-left:2em; list-style-position:inside; }
.entry-content b,
.entry-content strong { font-weight:bold; }
.entry-content img.align-center { width:100%; max-width:100%; }
.entry-content .wp-caption { padding:0.4em; background:#f6f6f6; border:1px solid #eee; text-align:center; font-size:0.9em; }
.entry-content .wp-caption img { max-width:100%; }
.entry-content .wp-caption .wp-caption-text { line-height:1.4em; margin:1em 0 0.5em; font-style:italic; }
.entry-content .menu { list-style:none; }
.entry-content .menu li { margin-left:0; margin-bottom:1em; margin-right:1em; float:left; }
.entry-content .menu a { /*display:inline-block; background:#eee; padding:0 1em;*/ } 

/* .blog */
.blog article,
.archive article { margin-bottom:2em; padding-bottom:1em; border-bottom:2px solid #0d99de;  }
.blog article:last-of-type,
.archive article:last-of-type { border-bottom:0; }

/* .single-post */
.single-post article { font-size:1.4em; }
.single-post header { margin-bottom:1em; }
.single-post .entry-title { line-height:1.6em; }
.single-post .entry-meta { background:#f6f6f6; padding:0.4em 0.8em; border-radius:5px; }
.single-post .entry-footer { margin-top:2em; margin-bottom:1em; clear:both; }
/*.single-post section > footer { padding-top:1em; border-top:1px solid #333; margin-top:2em; }*/

/* .type-post */
.type-post { clear:both; }
.type-post header { margin-bottom:1em; position:relative; }
.type-post a,
.side-news a { color:#0d99de; }
.type-post a:hover,
.side-news a:hover { color:#0d69ae; }
.type-post .entry-evidence { float:left; width:33%;  }
.type-post .entry-evidence img { width:100%; height:auto; display:block; }
.type-post .entry-title { /*line-height:1.4em;*/  }
.type-post .entry-meta { padding:0.5em 0 0.4em; }
.type-post .overbox-title { position:absolute; background:rgba(255,255,255,0.9); bottom:0; left:0; }
.type-post .overbox-title .entry-title { padding:0.4em 0.3em 0.4em; }

/* .type-page .type-istituto */
.type-page header, .type-page .entry-evidence,
.type-sede-principale header, .type-sede-principale .entry-evidence { margin-bottom:1em; }
.type-page .entry-content,
.type-sede-principale .entry-content { margin-bottom:3em; }

.page-id-3333 header,
.page-id-3333 .entry-content h2,
.page-id-3333 .entry-content h3,
.page-id-3333 .entry-content h4 { color:#ed980a; border-color:#ed980a; }

/* .type-pubblicazione */
.type-pubblicazione header { margin-bottom:1em; }

/* social network */
.back-facebook { background: rgb(78,105,162); border:1px solid rgb(48,75,132);
background: -moz-linear-gradient(top,  rgba(78,105,162,1) 0%, rgba(59,89,152,1) 100%);
background: -webkit-linear-gradient(top,  rgba(78,105,162,1) 0%,rgba(59,89,152,1) 100%);
background: linear-gradient(to bottom,  rgba(78,105,162,1) 0%,rgba(59,89,152,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4e69a2', endColorstr='#3b5998',GradientType=0 );
color:#fff; }
.back-facebook:hover { color:#ccc; border:1px solid rgb(48,75,132); }
.back-twitter { background: rgb(135,224,253); border:1px solid rgb(105,194,223); 
background: -moz-linear-gradient(top,  rgba(135,224,253,1) 0%, rgba(83,203,241,1) 40%, rgba(5,171,224,1) 100%);
background: -webkit-linear-gradient(top,  rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%);
background: linear-gradient(to bottom,  rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#87e0fd', endColorstr='#05abe0',GradientType=0 );
color:#fff; }
.back-twitter:hover { color:#000; border:1px solid rgb(105,194,223); }
.back-youtube {	background: rgb(255,48,25); border:1px solid rgb(225,18,0);
background: -moz-linear-gradient(top,  rgba(255,48,25,1) 0%, rgba(207,4,4,1) 100%);
background: -webkit-linear-gradient(top,  rgba(255,48,25,1) 0%,rgba(207,4,4,1) 100%);
background: linear-gradient(to bottom,  rgba(255,48,25,1) 0%,rgba(207,4,4,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3019', endColorstr='#cf0404',GradientType=0 );
color:#fff; }
.back-youtube:hover { color:#000; border:1px solid rgb(225,18,0); }
.back-www { background: rgb(249,247,239);
background: -moz-linear-gradient(top,  rgba(249,247,239,1) 0%, rgba(249,215,127,1) 50%, rgba(244,203,97,1) 51%, rgba(249,235,197,1) 100%);
background: -webkit-linear-gradient(top,  rgba(249,247,239,1) 0%,rgba(249,215,127,1) 50%,rgba(244,203,97,1) 51%,rgba(249,235,197,1) 100%);
background: linear-gradient(to bottom,  rgba(249,247,239,1) 0%,rgba(249,215,127,1) 50%,rgba(244,203,97,1) 51%,rgba(249,235,197,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f7ef', endColorstr='#f9ebc5',GradientType=0 );
}

/* googlemap */
.googlemap_wrap { position: relative; padding-bottom: 65.25%; padding-top: 30px; height: 0; overflow: hidden; }
.googlemap_wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* #nav-below */
#nav-below { padding-top:1em; padding-bottom:1em; border-top:2px solid #333; margin-top:3em; margin-bottom:3em; }
#nav-below a { font-size:1.1em; }

/* #sidebar */
#sidebar .widget-container { margin-bottom:3em; clear:both; }
#sidebar .widget-title { margin-bottom:1em; padding-bottom:0.4em; border-bottom:2px solid #333; }
#sidebar .widget-container > ul { list-style:none; }
#sidebar .widget-container > ul > li > a { box-shadow:0 2px 2px #ccc; border:1px solid #ccc; padding:0.6em 1em 0.5em; line-height:1.1em; font-size:0.8em; border-radius:5px;
background: rgb(255,255,255);
background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(243,243,243,1) 50%, rgba(237,237,237,1) 51%, rgba(255,255,255,1) 100%);
background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(243,243,243,1) 50%,rgba(237,237,237,1) 51%,rgba(255,255,255,1) 100%);
background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(243,243,243,1) 50%,rgba(237,237,237,1) 51%,rgba(255,255,255,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 );
}
#sidebar .widget-container > ul > li { margin-bottom:10px; }
#sidebar .widget-container > ul > li > a { display:block; }

#sidebar .widget-container > ul > li > a:hover,
#sidebar .widget-container > ul > li.current-menu-item > a,
#sidebar .widget-container > ul > li.current-cat > a,
#sidebar .widget-container > ul > li.current > a { border-color:#7ed4fc;
background: rgb(224,243,250);
background: -moz-linear-gradient(top,  rgba(224,243,250,1) 0%, rgba(216,240,252,1) 50%, rgba(184,226,246,1) 51%, rgba(182,223,253,1) 100%);
background: -webkit-linear-gradient(top,  rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%);
background: linear-gradient(to bottom,  rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0f3fa', endColorstr='#b6dffd',GradientType=0 );
}
/*#sidebar .widget-container ul ul*/
#sidebar .widget-container ul ul li { margin:0 0 0 1em; }
#sidebar .widget-container ul ul a { font-size:0.7em; }
#sidebar .widget-container ul ul li.current a { color:#0d69ae; }

#sidebar .widget-container .side-banners li,
#sidebar .widget-container .side-banners a { padding:0; border:0; background:none !important; box-shadow:none !important; }

#sidebar .widget_categories .cat-item { line-height:1.4em;  }

/* banner */
.side-banners { position:relative; }
.side-banners li { float:left; margin-bottom:20px; }
.side-banners li.banner-size-1 { width:100%; float:none; }
/*.side-banners li.banner-size-2 { width:50%; }
.side-banners li.banner-size-3 { width:calc(100% / 3); }
.side-banners li.banner-size-4 { width:25%; }
.side-banners li.banner-size-5 { width:calc(100% * 2 / 3); }
.side-banners li.banner-size-2 img,
.side-banners li.banner-size-3 img,
.side-banners li.banner-size-4 img,
.side-banners li.banner-size-5 img { width:calc(100% - 10px); }*/
.side-banners img { width:100%; height:auto; }
	
/* #footer */
#footer { margin-bottom:2em; }
#footer > .row > div {  }
#footer > .row > div:first-child {  }
#footer #copyright { }
#footer address { font-size:1em; padding-top:10px; padding-bottom:10px; text-align:center; }
#footer p { margin-bottom:0.4em; }
#footer .widget-area .widget-title { margin:10px 0 20px; }
#footer .widget-area .menu li { line-height:1.8em; font-size:1.1em; }
#footer .widget-area .menu li a { color:#444; }
#footer .widget-area .menu li a:hover,
#footer .widget-area .menu li.current-menu-item a { color:#0d99de; }

#nav_menu-5 .menu li { width:50%; float:left; text-transform:uppercase; }

/* da tablet verticale */
@media screen and (min-width: 700px) {
	
	/* banners */
	.side-banners li.banner-size-2 { width:50%; }
	.side-banners li.banner-size-3 { width:calc(100% / 3); }
	.side-banners li.banner-size-4 { width:25%; }
	.side-banners li.banner-size-5 { width:calc(100% * 2 / 3); }
	.side-banners li.banner-size-2 img,
	.side-banners li.banner-size-3 img,
	.side-banners li.banner-size-4 img,
	.side-banners li.banner-size-5 img { width:calc(100% - 10px); }
	
}

/* da ipad verticale */
@media screen and (min-width: 767px) {
	
}

/* da tablet verticale */
@media screen and (min-width: 990px) {
	#megabuttons .item .title { font-size:3.2em; }
	#megabuttons .item .title-2 { font-size:2.8em; }
	.menu-sections li { display:table-cell; vertical-align:middle; width:25%; }
	
	#footer address { margin-left:1em; /*border-right:1px solid #444;*/ text-align:left; }
	#nav_menu-2 { width:40%; float:left; }
	#nav_menu-5 { width:60%; float:left; }
	
}

/* da ipad orizzontale */
@media screen and (min-width: 1023px) {
	
	h1 { font-size:2.1em; }
	h2 { font-size:1.9em; }
	h3 { font-size:1.7em; }
	h4 { font-size:1.5em; }
	h5 { font-size:1.2em; }
	h6 { font-size:1.2em; }
	p, address, li { font-size:1.2em; line-height:1.3em; }
	
}