 @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
  /* For portrait layouts only */
  .scrollup{
		width: 50px;
		height: 50px;
		opacity:0.5;
		position:fixed;
		bottom:50px;
		right:20px;
		display:none;
		text-indent:-9999px;
		background: url(../images/icon_top2.png) no-repeat;
	}
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
  /* For landscape layouts only */
  .scrollup{
		width: 50px;
		height: 50px;
		opacity:0.5;
		position:fixed;
		bottom:50px;
		right:20px;
		display:none;
		text-indent:-9999px;
		background: url(../images/icon_top2.png) no-repeat;
	}
}
 
 @media only screen and (min-width: 768px) and (max-width: 959px) {
	div#head {width:748px;}
	div#main {width:748px;}
	.arround {width:700px;}
	.portfolio-items {width:748px; margin-left:-15px;}
	.blog-items {width:748px; margin-left:-15px;}
	.postTemplateBlog {margin-left:50px;}
	#foot {width:748px;}
	.single-folio {width:440px;}
	.single-folio-side {width:226px;}
	.single-folio .singleImg, .single-folio .singleVideo {max-width:440px;}
	#preloader {width:748px;}
	.post-single {width:480px;}
	.singleBlogImage {max-width:470px;}
	p.post-desc-single {width:480px;}
	.post-single-sidebar, ul.socials-sharing {width:196px;}
	input#s {width: 174px;}
	#comments textarea {width:465px;}
	.form-allowed-tags {width:465px;}
	.archive-searchDiv {width:480px;}
	.archive-searchDiv  .blog-items {width:480px;}
	#contact-form {width:480px;}
	#contact-form textarea {width:460px;}
	.contact-col-300 {width:196px;}
 }
 
 @media only screen and (max-width: 767px) {
	div#head {width:460px;}
	div#main {width:460px;}
	.arround {width:412px;}
	.portfolio-items {width:460px; margin-left:0;}
	.columnBox-portfolio {margin-left:100px;}
	.blog-items {width:460px; margin-left:-15px;}
	.postTemplateBlog {margin-left:50px;}
	#foot {width:460px;}
	.single-folio {width:402px;}
	.single-folio-side {width:412px; margin-left:0;}
	.single-folio .singleImg, .single-folio .singleVideo {max-width:402px;}
	#preloader {width:460px;}
	.post-single {width:412px;}
	.singleBlogImage {max-width:402px;}
	p.post-desc-single {width:412px;}
	.post-single-sidebar, ul.socials-sharing {width:412px; margin-left:0;}
	input#s {width: 388px;}
	#comments textarea {width:398px;}
	.form-allowed-tags {width:398px;}
	.archive-searchDiv {width:412px;}
	.archive-searchDiv  .blog-items {width:412px;}
	#contact-form {width:412px;}
	#contact-form textarea {width:392px;}
	.contact-col-300 {width:412px; margin-left:0;}
	
	.one_half { width: 420px; }
	.one_third { width: 420px; }
	.two_third { width: 420px; }
	.one_fourth { width: 420px; }
	.three_fourth { width: 420px; }
	.one_fifth { width: 420px; }
	.two_fifth { width: 420px; }
	.three_fifth { width: 420px; }
	.four_fifth { width: 420px; }

	.one_half,
	.one_third,
	.two_third,
	.three_fourth,
	.one_fourth,
	.one_fifth,
	.two_fifth,
	.three_fifth,
	.four_fifth {
		margin-right: 0;
	}
	
	h1.main-title span {display:none;}
	.filters .filter-cat, .filtersBlog .filter-cat {margin-bottom:10px;}
	
	/*
	.menu select {display:block}
	*/
	ul.sf-menu {display:none;}
	#header {position:absolute;}
	.second-menu {display:block;}
	.topPagePadding {padding-top:0; }
	div#main {padding-top:0px; padding-bottom:0;}
	/* .firstPageSecondMenu {display:block; padding-top:100px;}  *!!!!!!!!! make dinamic*/
	.logo {width:460px;}
	.logoH1 {text-align:center;}
 }
 
 @media only screen and (max-width: 479px) {
 	#header {height:auto;}
	div#head {width:320px; height:auto;}
	div#main {width:320px;}
	.arround {width:272px;}
	.portfolio-items {width:272px; margin-left:0;}
	.columnBox-portfolio {margin-left:25px;}
	.blog-items {width:272px; margin-left:0px;}
	.postTemplateBlog {margin-left:0px;}
	.postTemplateBlog {width:265px;}
	.postTemplateBlog img{width:265px;}
	#foot {width:320px;}
	.single-folio {width:262px;}
	.single-folio-side {width:272px; margin-left:0;}
	.single-folio .singleImg, .single-folio .singleVideo {max-width:262px;}
	#preloader {width:320px;}
	.post-single {width:272px;}
	p.post-desc-single {width:272px;}
	.singleBlogImage {max-width:262px;}
	.post-single-sidebar, ul.socials-sharing {width:272px; margin-left:0;}
	input#s {width: 248px;}
	#comments textarea {width:258px;}
	.form-allowed-tags {width:258px;}
	.archive-searchDiv {width:272px;}
	.archive-searchDiv  .blog-items {width:272px;}
	
	#contact-form {width:272px;}
	#contact-form textarea, #contact-form input.txt, #contact-form select {width:252px;}
	.contact-col-300 {width:272px; margin-left:0;}
	
	.one_half { width: 272px; }
	.one_third { width: 272px; }
	.two_third { width: 272px; }
	.one_fourth { width: 272px; }
	.three_fourth { width: 272px; }
	.one_fifth { width: 272px; }
	.two_fifth { width: 272px; }
	.three_fifth { width: 272px; }
	.four_fifth { width: 272px; }

	.one_half,
	.one_third,
	.two_third,
	.three_fourth,
	.one_fourth,
	.one_fifth,
	.two_fifth,
	.three_fifth,
	.four_fifth {
		margin-right: 0;
	}
	
	h1.main-title span {display:none;}
	.flex-direction-nav li a {width: 30px; height: 30px; margin: -15px 0 0; display: block; background: url(../images/bg_direction_nav_blog.png) no-repeat 0 0; 
	position: absolute; top: 50%; cursor: pointer; text-indent: -9999px;}

	.flex-direction-nav li a.next {background-position: -30px 0; right: -2px;}
	.flex-direction-nav li a.prev {background-position: 0 0; left: -1px;}
	
	.filters .filter-cat, .filtersBlog .filter-cat {margin-bottom:10px;}
	
	/*
	.menu select {display:block}
	*/
	ul.sf-menu {display:none;}
	#header {position:absolute;}
	.second-menu {display:block;}
	.topPagePadding {padding-top:0; }
	div#main {padding-top:0px; padding-bottom:0;}
	/*.firstPageSecondMenu {display:block; padding-top:100px;}  !!!!!!!!! make dinamic*/
	.logo {width:320px;}
	h1.logoH1 {text-align:center;}
 }
 
 
 