/* ---------------------------------------------------------------------------------------

/// Site // Menaflix
/// Version // 2.0 _ 2014
/// Inspiration // CSS Template Designia & Guadi
	
--------------------------------------------------------------------------------------- */



/* --- RESET -------------------------------------------------------------------------- */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block}

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body {
	font-family: 'Gafata', sans-serif;
	font-size: 14px;
	font-weight: normal;
	color: #333;
	margin: 0;
	line-height: 1.6;
	font-smooth: always;
	-webkit-font-smoothing: antialiased;
	font-smoothing: antialiased;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}

a {
	color: #999;
	font-weight: normal;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.2s ease;
	-moz-transition: color 0.2s ease;
	-webkit-transition: color 0.2s ease;
	-o-transition: color 0.2s ease;
}
a:hover {color: #000;} 
a:visited{opacity:0.9;}
:hover, :focus, :active { outline: none; }
hr{display:block; height:1px; border:0; border-top:1px solid #ddd; margin:1em 0; padding:0}
p{margin: 0 0 1em;}
p:last-child {margin-bottom: 0;}
b, strong{font-weight:700}
small{font-size:85%; color: #999;}
ul, ol{list-style:none; list-style-image:none; margin:0; padding:0;}
img{border:0; -ms-interpolation-mode:bicubic; vertical-align:middle}
svg:not(:root){overflow:hidden} /* no se perque serveix */
figure{margin:0}
.chromeframe { margin: 1em 0; background: red; color: black; padding: 1em; }


/* -- FONTS --------------------------------------------------------------------------- */

h1,h2,h3,h4,h5,h6{font-weight: normal; margin-top: 0; margin-right: 0; margin-left: 0;}

h1 {font-size: 4.6em; letter-spacing: -0.075em; text-transform: uppercase; line-height: 0.9;color: #FFF; margin: 0 0 0.5em; font-weight: normal;}
h2 { font-size: 2.5em; margin: 0 0 20px; letter-spacing: -0.05em; color: #333; line-height: 1; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; margin: 0;}
h5 { font-size: 1.2em; margin: 0;}
h6 { font-size: 1em; margin-bottom: 2px; font-weight: 700; }

h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#333; text-decoration: none;}
h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover{color: #000000;
text-decoration: underline;}


/* -- GRIDS  https://github.com/mattberridge/Proportional-Grids/ ---------------------- */

body{width: 100%; overflow: scroll;}

.container {
	width: 940px;
	max-width: 1100px;
	min-width: 300px;
	margin-right: auto;
	margin-left: auto;	
	/* margin-top: 2em;	*/
	margin-bottom: 2em;
}
 
.grid-wrap {
  margin-left: -3em; /* the same as your gutter */
  overflow: hidden;
  *zoom:1;}
  .grid-wrap:before, .grid-wrap:after{content:""; display:table}
  .grid-wrap:after{clear:both}
  
.grid {
  float: left;
  padding-left: 3em; /* this is your gutter between columns */
  width: 100%;
  -webkit-box-sizing: border-box; 
  -moz-box-sizing: border-box;
  box-sizing: border-box; 
  *behavior: url(/js/boxsizing.htc); }
 /* con la propiedad box-sizing:border-box, los elementos miden exactament su medida, no su medida + su padding + su borde, etc */
  
  
.half-gutter {margin-left: -1.5em; }
.half-gutter .grid-col {padding-left: 1.5em; }
  
.col-full {width: 100%; }
.col-one-half {width: 50%; }
.col-one-third {width: 33.333%; } /* 320px */
.col-two-thirds {width: 66.666%; }
.col-one-quarter {width: 25%; }
.col-three-quarters {width: 75%; }

.divide-top{
	padding-top: 2em;
	margin-top: 1.5em;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #CCC;
}


/* -- GLOBAL ELEMENTS ----------------------------------------------------------------- */

.mright{ margin-right: 3em;}
.mleft{ margin-left: 3em;}
.mtop{ margin-top: 3em;}
.mbottom{ margin-bottom: 3em;}

.halfmright{ margin-right: 1.5em;}
.halfmleft{ margin-left: 1.5em;}
.halfmtop{ margin-top: 1.5em;}
.halfmbottom{ margin-bottom: 1.5em;}

.fright, .fleft{display:block; overflow:hidden}
.fright{float:right}
.fleft{float:left}

.alignleft{float: left;clear: left;margin: 0.38em 1.62em 0.38em 0;}
.alignright {float: right;clear: right;margin: 0.38em 0 0.38em 1.62em;}
.aligncenter {margin: 0 auto 1.62em;display: block;}


/* -- MISC ---------------------------------------------------------------------------- */

figure { max-height: 100%; overflow: hidden;}
figure figcaption { }
img { max-width: 100%; height: auto; width: auto; }
a img {
    -webkit-transition: opacity 1s ease;
    -moz-transition: opacity 1s ease;
    -o-transition: opacity 1s ease;
    -ms-transition: opacity 1s ease;
    transition: opacity 1s ease; }

a img:hover {
	*zoom: 1;
	opacity: 0.7;
	-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 70);
	filter: alpha(opacity = 70);}
	
/* -- TOP LANGUAGE -------------------------------------------------------------------- */

#toplinks{
	background-color: #F96400;
	padding-top: 0;
	padding-right: 4em;
	padding-bottom: 0;
}
#toplinks ul {list-style:none;margin:0; text-align:right;}
#toplinks ul li {display: inline-block; font-size: 0.85em; margin-top: 2em;}
#toplinks ul li a{
	color: #FF9E5E;
	border: 1px solid #FF9E5E;
	padding-top: 3px;
	padding-right: 5px;
	padding-bottom: 3px;
	padding-left: 5px;
}
#toplinks ul li a:hover{
	text-decoration: none;
	background-color: #FFF;
}
	    
/* -- HEADER -------------------------------------------------------------------------- */

header#navtop {
	clear: both;
	overflow: hidden;
	background-color: #F96400;
	height: 100px;
}
    
header nav ul {
	float: left;
	overflow: hidden;
	display: block;
	margin-top: 60px;
	padding-top: 0;
	padding-right: 2em;
	padding-bottom: 0;
	padding-left: 2em;
}

header nav li {
	display: inline;
	padding-right: 2em;
}

nav a {
	text-decoration: none;
	color: #FFF;
}

nav a:hover {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #FFEDE1;
	color: #FFF;
}

.navactive {
	color: #000000
}

.logo {
	font-family: 'Tenor Sans', sans-serif;
	font-size: 2.9em;
	color: #FFEDE1;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: -0.09em;
	margin-top: 30px;
	padding-left: 1em;
	text-decoration: none;
}
.logo:hover {background: none;}
		
		
/* -- GENERAL ------------------------------------------------------------------------- */

.main > section { margin-bottom: 0em; } /* separació despres del slider */

.main header{
	color: #333;
	margin-bottom: 3em;
	text-transform: uppercase;
}

.main header hr{border-top-color: #999;} /* ratlla sota menu taronja */


/* -- SLIDER -------------------------------------------------------------------------- */

.slider {margin: 0; padding: 0; position: relative;}
.slider img {width: 100%; display: block;}
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
 
html[xmlns] .slides {display: block;} 
* html .slides {height: 1%;}


.slide figcaption {
	position: absolute;
	height: auto; min-height: 3em; width: 50%; padding: 2em; 
	top: 3em; right: 0; }

.slide figcaption div {
	text-align: right;
	display: block;
	margin-top: auto;
	margin-right: 2em;
	margin-bottom: auto;
	margin-left: 0;
	padding-top: 0;
	padding-right: 2em;
	padding-bottom: 0;
	padding-left: 0;}

.slide figcaption div p {margin: 0}


/* -- SERVICES ------------------------------------------------------------------------ */

.services aside { color: #999; padding-top: 1em; border-top: 1px solid #DDD;}

.services aside:after, .services h5:after {
	content: "";
	display: block;
	height: 1px;
	width: 3em;
	background: #DDD;
	margin-top: 1em;
	margin-right: 0;
	margin-bottom: 1em;
	margin-left: 7em; } /* ralleta sota serveis */

.services h5 {
	text-transform: uppercase;
	color: #F96400;
}

section > article {
	text-align: center;
	padding-bottom: 3em; /* espai despres dels serveis */

}

.icons {padding-top: 0.6em;color: #CCC;padding-bottom: 0.6em;} /* iconos awesome-index */

.contact p {
	text-align: center;
}


/* -- WORKS / Home-page i Works-page -------------------------------------------------- */

section .works {
	padding-top: 1em;
}

.works figure > a{ 
	display: block; 
	height: 100%; width: 100%; 
	overflow: hidden; 
	position: relative;
	border-top: 1px solid #DDD; padding-top: 1em; }
 	
.works figure .zoom { 
	display: block; 
	position: absolute; top: 10px; left: 0; 
	background: url(../img/zoom.png) no-repeat center; 
	width: 100%; height: 100%; 
	*zoom: 1;
	opacity: 0;
	-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 0);
	filter: alpha(opacity = 0); }

.works figure figcaption{
	margin-top: 1em;
	white-space: nowrap;
	padding-top: 0;
	padding-right: 0.5em;
	padding-bottom: 0;
	padding-left: 0em;
}

.works figure figcaption a{
	line-height: 1em;
	color: #333;
	font-size: 1em;
}
.works figure figcaption p{
	margin: 0;
	color: #999;
}

.works-page .works figure { margin-bottom: 1em;} /* espai entre works */

	
	/* -- Menu lateral left -- */
	
.main aside{margin-bottom: 3em}
.main aside menu{
	line-height: 2em;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
	padding-left: 0em;
}
.main aside menu a{
	color: #999;
}

.main aside .tocdecolor a{
	color: #C0BD86;
}

.main aside menu a:hover{
	color: #000000;
}

.main aside menu .buttonactive {
	color: #000000;

}

	/* --- Work-page (single) --- */

.work-page figure {margin-bottom: 3em;}
.work-page figcaption {text-align: center; margin-top: 1em;}


/* -- PRODUCTES ----------------------------------------------------------------------- */

.products .modelo figure {
	margin-bottom: 1em;
	padding-left: 3em;
}
.fineta {
	color: #999;
}

.modelo figure > a{ 
	display: block; 
	height: 100%; width: 100%; 
	overflow: hidden; 
	position: relative; }
 	
.modelo figure .zoom { 
	display: block; 
	position: absolute; top: 10px; left: 0; 
	background: url(../img/zoom.png) no-repeat center; 
	width: 100%; height: 100%; 
	*zoom: 1;
	opacity: 0;
	-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 0);
	filter: alpha(opacity = 0); }

/* -- FOOTER -------------------------------------------------------------------------- */

footer  { color: #333; }
footer nav ul { float: right; overflow: hidden; }
footer a, footer nav a {color: #999;}

footer nav a:hover {color: #000;}

footer li { float: left; margin-right: 1em; padding-right: 1em; font-size: 0.8em; }
footer li:last-child { margin-right: 0; padding-right: 0; border-right: none; }


/* -- SUBPAGES ------------------------------------------------------------------------ */

/* -- Separations -- */

.main:not(.home-page) > section article h2 { margin-top: 1em; padding-top: 1em; border-top: 1px solid #DDD; }
.main:not(.home-page) > section article:first-child h2 { margin-top: 0;}

/* -- Services-page -- */

.warning { 
	display: block; 
	background: #F5F5F5; 
	border: 1px solid #DDD; border-left: none; border-right: none; 
	text-align: center; 
	padding: 20px; margin: 20px 0px; }


/* -- MISC ---------------------------------------------------------------------------- */


.ir{display:block; border:0; text-indent:-999em; overflow:hidden; background-color:transparent; background-repeat:no-repeat; text-align:left; direction:ltr; *line-height: 0;}
.ir br{display:none}
.hidden{display:none !important; visibility:hidden}


/* ---------------------------------------------------------------------------------------
										IE Fix
--------------------------------------------------------------------------------------- */

.lt-ie9 .works figure a, .lt-ie9 .works figure a img { filter:inherit} 
/* jquery filter opacity issue IE8 */

.lt-ie9 .container {min-width: 780px;}
.lt-ie8 .container {width: 960px;}
.lt-ie8 .grid-wrap {margin-left: 0; }
.lt-ie8 .grid {padding: 0;margin-left: 5%; }
  .lt-ie8 .grid:first-child {margin-left: 0; }

.lt-ie8 .col-full {width: 99.95%; }
.lt-ie8 .col-full + .grid {margin-left: 0; }
.lt-ie8 .col-one-half {width: 47.45%; }
.lt-ie8 .col-one-third {width: 29.55%; }
.lt-ie8 .col-two-thirds {width: 64.95%; }
.lt-ie8 .col-one-quarter {width: 19.95%; }
.lt-ie8 .col-three-quarters {width: 74.95%; }


/* -- BUTTONS ------------------------------------------------------------------------- */

.button {
	color: #666;
	font-size: 1.2em;
	font-weight: normal;
	border: solid 1px #ddd;
	text-decoration: none;
	cursor: pointer;
	background: #efefef;

	-webkit-border-radius: 4px; /* borde arrodonit */
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	-ms-border-radius: 4px;
	-khtml-border-radius: 4px;
	border-radius: 4px;
	
	-webkit-transition: 0.1s linear all;
	-moz-transition: 0.1s linear all;
	-ms-transition: 0.1s linear all;
	-o-transition: 0.1s linear all;
	transition: 0.1s linear all;
	
	padding-top: 0.5em;
	padding-right: 1.4em;
	padding-bottom: 0.5em;
	padding-left: 1.4em;
}
	
.button:hover {
	color: #F96400;
	text-decoration: none;
	border-color: #BBB;
}

.button:active {
	color: #F96400;
	background: #F5F5F5;
	border-color: #444;
}


