@charset "utf-8";
/*
Theme Name: Iafrate Machine Works (responsive)
Author: FPM3.com
Author URI: http://fpm3.com/
Version: 1.5
*/

body {
	background-color: #052c53;
	color: #000;
	font-family: 'Titillium Web', sans-serif;
	font-size: 16px;
	margin: 0px;
	padding: 0px;
}

a {
	color: #486aa2;
	outline: none;
}

a img {
	border: none;
}

#back-to-top {
    background-color: #062249;
    border: solid 1px #fff;
    border-radius: 5px;
    color: #fff;
    display: none;
    position: fixed;
    bottom: 4%;
    right: 2%;
    text-decoration: none;
    width: 50px;
    height: 50px;
    opacity: 0;
    z-index: 99999999999;
    transition: 0.5s all ease;
}

#back-to-top .fa-chevron-up {
    display: block;
    line-height: 50px;
    margin: 0px;
    padding: 0px;
    text-align: center;
    width: 50px;
    height: 50px;
}

#back-to-top.visible {
    display: block;
}

#back-to-top:hover {
    opacity: 1 !important;
    transition: 0.5s all ease;
}

h1 {
	border-bottom: solid 1px #ccc;
	color: #052c53;
	font-size: 24px;
	font-weight: bold;
	line-height: 25px;
	margin-bottom: 40px;
	padding: 0px 0px 10px 0px;
	text-transform: uppercase;
}

h2, h2 a {
	color: #000;
	font-weight: bold;
	margin: 0px;
	padding: 0px;
}

h3 {
	font-weight: bold;
	margin: 20px 0px 10px 0px;
}

.container {
	max-width: 1000px !important;
}

/* Header */

#header {
	background-color: #fff;
	display: block;
	width: 100%;
	min-height: 180px;
}

#header img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

#header .top-nav {
	color: #666;
	font-size: 12px;
	text-decoration: none;
	text-transform: uppercase;
	height: 70px;
}

#header .recent-news-link {
	background-color: #a40303;
	color: #fff;
	display: inline-block;
	float: right;
	font-size: 18px;
	font-weight: bold;
	line-height: 35px;
	margin: 5px 20px 5px 0px;
	padding: 0px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	width: 140px;
}

#header .privacy {
	clear: both;
	color: #666;
	display: block;
	float: right;
	line-height: 25px;
	margin: 0px 20px 0px 0px;
	text-align: center;
	text-decoration: none;
	width: 140px;
	height: 25px;
}

#header .tagline {
	display: block;
	float: left;
	width: 79.44444444444444%; /* 572px */
	height: 95px;
}

#header .tagline span {
	display: table-cell;
	vertical-align: middle;
	width: 100%; /* 572px */
	height: 95px;
}

#header .tagline img {
	display: block;
	margin-left: 0px;
	margin-right: 2%;
	max-width: 98%;
	height: auto;
	max-height: 95px;
}

#header .cgp {
	display: block;
	float: left;
	width: 10%; /* 95px */
	height: 75px;
}

#header .cgp span {
	display: table-cell;
	vertical-align: middle;
	width: 100%; /* 95px */
	height: 95px;
}

#header .cgp img {
	display: block;
	margin-left: 0px;
	margin-right: 2%;
	max-width: 98%;
	height: auto;
	max-height: 75px;
}

#header .qmi {
	display: block;
	float: left;
	width: 10%; /* 53px */
	height: 75px;
}

#header .qmi span {
	display: table-cell;
	vertical-align: middle;
	width: 100%;
	height: 75px;
}

#header .qmi img {
	display: block;
	margin-left: 0px;
	margin-right: 2%;
	max-width: 98%;
	height: auto;
	max-height: 75px;
}

/* Navigation Menu */

#menu-toggle {
	border-left: solid 1px #062249;
	border-right: solid 1px #6581a6;
	color: #fff;
	display: none;
	line-height: 50px;
	text-align: center;
	text-decoration: none;
	width: 50px;
	height: 50px;
}

#menu-toggle .fa-bars {
	border-left: solid 1px #6581a6;
	border-right: solid 1px #062249;
	display: block;
	line-height: 50px;
	margin: 0px;
	padding: 0px;
	text-align: center;
	width: 50px;
	height: 50px;
}

#menu-toggle.open, 
#menu-toggle:hover {
	background-color: #000;
	background-image: url(images/bg-menubar-hover.jpg);
	background-repeat: repeat-x;
}

#menubar {
	background-color: #022450;
	background-image: url(images/bg-menubar.jpg);
	background-repeat: repeat-x;
	width: 100%;
	height: 50px;
}

#menubar .nav {
	display: block;
	margin: 0px auto 0px auto;
	overflow: hidden;
	width: 100%;
	max-width: 1000px;
	height: 50px;
}

#menubar ul {
	border-left: solid 1px #062249;
	display: inline-block;
	list-style: none;
	margin: 0px;
	padding: 0px;
	width: 100%;
	height: 50px;
}

#menubar ul li {
	display: inline;
	float: left;
}

#menubar ul li a {
	border-left: solid 1px #6581a6;
	border-right: solid 1px #062249;
	color: #fff;
	display: block;
	font-size: 12px;
	font-weight: bold;
	line-height: 50px;
	padding: 0px 16px 0px 16px;
	text-decoration: none;
	text-transform: uppercase;
}

#menubar ul li a:hover {
	background-color: #000;
	background-image: url(images/bg-menubar-hover.jpg);
	background-repeat: repeat-x;
}

#menubar ul li.menu-item-25 {
	border-right: solid 1px #6581a6;
}

#menubar ul li.menu-item-25 a {
	background-color: #d4d4d4;
	background-image: url(images/bg-menubar-quote.jpg);
	background-repeat: repeat-x;
	color: #fff200;
	text-shadow: 0px 0px 2px #000;
}

#menubar ul li:hover ul {
	display: block;
}

#menubar ul ul {
	background-color: #464652;
	background-image: url(images/bg-dropdown-menu.jpg);
	background-repeat: repeat-x;
	border-left: solid 1px #777374;
	border-right: solid 1px #777374;
	border-bottom: solid 1px #777374;
	display: none;
	padding: 10px 0px 10px 0px;
	position: absolute;
	width: auto;
	height: auto;
	z-index: 99999;
}

#menubar ul ul li {
	border: none;
	display: block;
	float: none;
}

#menubar ul ul li a {
	border: none;
	color: #fff;
	display: block;
	font-size: 12px;
	font-weight: normal;
	line-height: normal;
	padding: 5px 15px 5px 15px;
	text-decoration: none;
	text-transform: uppercase;
}

#menubar ul ul li a:hover {
	background-color: transparent;
	background-image: none;
	color: #fff200;
}

#main {
	background-color: #fff;
	display: block;
	width: 100%;
	min-height: 600px;
}

/* SLIDESHOW */

#slideshow-bg {
	background-color: #4969a2;
	display: block;
	margin: 0px;
	padding: 30px 0px 0px 0px;
	width: 100%;
	height: 395px;
}

#slideshow {
	display: block;
	margin: 0px auto 0px auto;
	padding: 0px;
	width: 100%;
	max-width: 990px;
	height: 395px;
}

#slider {
	background-color: #ccc;
	border-radius: 10px;
	box-shadow: 0px 0px 5px #000;
	display: block;
	margin: 0px auto -30px auto;
	padding: 0px;
	position: relative;
	width: 990px;
	height: 395px;
}

#slider ul {
	float: left;
	list-style: none;
	margin: 0px;
	padding: 0px;
	position: relative;
	height: 395px;
}

#slider ul li {
	display: block;
	float: left;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	width: 990px;
	height: 395px;
}

#slider img {
	border-radius: 10px;
	display: block;
	width: 990px;
}

#slideshow .pagination {
	display: none;
}

/* CONTENT */

#content {
	background-color: #fff;
	background-image: url(images/bg-page.jpg);
	background-repeat: repeat-x;
	margin: 0px;
	padding: 60px 0px 60px 0px;
}

#left-column ol, #left-column ul {
	margin: 0px;
	padding: 0px 0px 0px 0px;
}

#left-column li {
	margin: 0px 0px 10px 25px;
}

#right-column h1, #sidebar h1 {
	border: none;
	margin-bottom: 10px;
}

/* PAGE CONTENT */

.page-content {
	display: block;
	float: left;
	width: 100%;
}

.content-column {
	display: block;
	float: left;
	margin: 0px 30px 30px 0px;
	width: 655px;
}

.content-column ol, .content-column ul {
	margin: 0px;
	padding: 0px 0px 0px 0px;
}

.content-column li {
	margin: 0px 0px 10px 25px;
}

.featured-image {
	display: block;
	float: left;
	margin: 0px 0px 30px 0px;
	width: 315px;
	min-height: 100px;
}

.featured-image img {
	border: solid 1px #ccc;
	box-shadow: 0px 0px 3px #aaa;
	display: block;
	margin: 0px auto 0px auto;
}

.wide-column {
}

.page-gallery img {
	border: solid 1px #ccc;
	box-shadow: 0px 0px 3px #aaa;
	display: block;
	margin: 0px auto;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 160px !important;
}

.page-gallery ul {
	clear: both;
	display: block;
	list-style: none;
	margin: 20px 15% 40px 15%;
	padding: 0px;
	width: 70%;
}

.page-gallery ul li {
	display: inline-block;
	vertical-align: middle;
	margin: 2%;
	width: auto;
}

.page-gallery li.full {
	text-align: center;
	width: 100% !important;
}

.page-gallery li.full img {
	margin: 0px auto;
}

.page-gallery li.half {
	width: 50%;
}

.page-gallery li.third {
	width: 29%;
}

.page-gallery li.quarter {
	width: 25%;
}

/* SIDEBAR */

.sidebar-links {
	border-bottom: solid 1px #e5e5e5;
}

.home-left ul, 
.home-left ol {
	padding-left: 20px;
}

#content-blocks p {
	margin: 2px 0px 2px 0px;
	text-align: left !important;
}

#content-blocks img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

#content-blocks h1 {
	background-color: #052c53;
	color: #fff200;
	font-weight: bold;
	margin: 0px;
	padding: 10px;
}

#content-blocks .content-block {
	background-color: #e7e7e7;
	border-radius: 5px;
	display: block;
	margin: 15px auto 15px auto;
	padding: 0px;
	overflow: hidden;
	width: 100%;
	max-width: 310px;
	height: auto;
}

#content-blocks .block-text {
	display: block;
	padding: 5px 10px 5px 10px;
	overflow: hidden;
	text-align: justify;
	height: 160px;
}

#content-blocks .block-text .readmore-button {
	display: block;
	height: 25px;
}

#content-blocks .readmore-button a {
	float: right;
}

/* CONTACT LIST */

.contacts {
	list-style: none;
	margin: 0px !important;
	padding: 0px !important;
}

.contacts li {
	border-top: dotted 1px #888;
	margin: 0px 0px 10px 0px !important;
	padding: 10px 10px 0px 10px !important;
}

.contacts li:first-child {
	border: none;
}

.contact-name {
	font-weight: bold;
}

.contact-name, .contact-title {
	text-transform: uppercase;
}

/* EQUIPMENT LISTS */

#equipment p {
	padding: 0px;
}

#equipment h2 {
	border-top: solid 1px #ddd;
	margin: 40px 0px 10px 0px;
	padding: 10px 0px 0px 0px;
}

#equipment h2:first-of-type {
	border: none;
	margin-top: 0px;
}

#equipment h3 {
	font-size: 16px;
	margin-bottom: 0px;
	padding-left: 0px;
}

#equipment h4 {
	background-color: #aaa;
	color: #fff;
	margin: 0px;
	padding: 0px 0px 0px 3px;
}

#equipment ul {
	background-color: #eee;
	border: solid 1px #ddd;
	display: block;
	list-style: none;
	margin: 0px;
	padding: 0px;
	width: 100%;
	max-width: 100%;
}

#equipment ul li {
	border-top: solid 1px #ddd;
	color: #333;
	font-size: 0.9em;
	line-height: normal;
	margin: 0px;
	padding: 0px;
}

#equipment ul ul {
	background-color: transparent;
	border: none;
	color: #000;
	list-style: disc;
	margin: 0px 0px 0px 10px;
	padding: 0px;
}

#equipment ul ul li {
	border: none;
	color: #666;
	font-weight: normal;
	margin: 0px 0px 0px 25px;
	padding: 0px 0px 0px 0px;
}

.hide-sublists ul p {
	margin: 0px;
}

#equipment .current a, #equipment .accordion_toggle a:hover {
	background-color: #ccc;
	font-weight: 500;
}

.accordion_toggle a {
	color: #000;
	display: block;
	padding: 3px 3px 3px 13px;
	text-decoration: none;
}

.accordion_content {
	background-color: #fff;
	display: none;
	padding: 10px 0px 10px 0px;
}

/* SIDEBAR GALLERY */

#sidebar ul {
	background-color: transparent;
	border: none;
	list-style: none;
	margin: 0px;
	padding: 0px;
}

#sidebar ul li {
	border: none;
}

#sidebar ul li a {
	color: #fff;
	display: block;
	font-weight: bold;
	padding: 5px 0px 5px 0px;
	text-decoration: none;
}

#sidebar ul.sidebar-gallery img {
	border: solid 1px #ccc;
	box-shadow: 0px 0px 3px #aaa;
	display: block;
	margin: 20px auto 0px auto;
	max-width: 250px;
	min-width: 250px;
	width: 250px;
	height: auto;
}

#sidebar iframe {
	border: solid 1px #888;
	margin: 20px 0px 0px 0px;
}

.google-map {
	display: block;
	width: 100% !important;
	min-width: 0px !important;
}

.google-map iframe {
	display: block;
	width: 100% !important;
	min-width: 0px !important;
}

#sidebar .google-map a {
	color: #888 !important;
	display: block;
	text-align: center !important;
	text-decoration: none;
	width: 100% !important;
}

#sidebar .image-caption {
	background-color: #062b5f;
	box-shadow: 0px 1px 3px #aaa;
	color: #fff;
	font-weight: bold;
	line-height: 40px;
	margin: -1px 30px 0px 32px;
	text-align: center;
	width: 250px;
	height: 40px;
}

/* CONTACT FORMS */

label {
	display: inline-block;
	text-align: right;
	margin: 0px 5px 0px 0px;
	vertical-align: top;
	width: 100px;
}

.rfq-form label {
	width: 220px;
}

label.textarea {
	margin-top: 20px;
}

input[type="text"] {
	margin: 0px 5px 2px 0px;
	width: 250px;
}

textarea {
	margin: 20px 0px 20px 0px;
	width: 500px;
	height: 200px;
}

.rfq-form textarea {
	width: 400px;
}

.required {
	color: #F00;
	font-size: 12px;
	font-style: italic;
}

form {
	margin: 10px 0px 20px 0px;
	padding: 20px 0px 0px 0px;
}

.contact-submit {
	margin: 20px 0px 0px 550px;
}

.rfq-form .contact-submit {
	margin: 20px 0px 0px 570px;
}

.captcha-box {
	display: inline-block;
}

/* NEWS POSTS */

.post {
	border-top: solid 1px #ddd;
	margin-top: 30px;
	padding-top: 30px;
}

.post:first-of-type {
	border: none;
	margin-top: 0px;
	padding-top: 0px;
}

.post-header {
	margin-bottom: 15px;
}

.post-header-title h2 a {
	color: #052c53;
	text-decoration: none;
	text-transform: uppercase;
}

.post-body {
	margin-bottom: 20px;
}

.page-navigation {
	float: left;
	margin-top: 40px;
	width: 100%;
}

.page-navigation a {
	color: #000;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	text-transform: uppercase;
}

.previous {
	float: left;
	width: 49%;
}

.next {
	float: right;
	width: 49%;
	text-align: right;
}

/* FOOTER */

#footer {
	color: #fff;
	display: block;
	font-size: 14px;
	margin: 0px;
	padding: 30px 0px 30px 0px;
}

#footer h1 {
	color: #fff;
}

#footer h2 {
	color: #fff;
	font-size: 14px;
	margin: 20px 0px 0px 0px;
	padding: 0px;
}

#footer h2:first-child {
	margin: 0px;
}

#footer .copyright {
	font-size: 12px;
}

#footer .nav {
	color: #486aa2;
	display: block;
	font-size: 8px;
	text-align: center;
	margin: 20px 0px 0px 0px;
}

#footer .nav .item {
	display: inline;
	list-style: none;
	margin: 0px 5px 0px 0px;
	padding: 0px;
	vertical-align: middle;
}

#footer a {
	display: inline-block;
	font-size: 13px;
	margin: 0px 0px 0px 0px;
	padding: 0px 8px 0px 8px;
	text-align: center;
	text-decoration: none !important;
	vertical-align: middle;
}

#footer a:hover {
	color: #fff;
}

#footer .nav a {
	text-transform: uppercase;
}

/* Responsiveness */

@media all and (min-width: 1001px) {

	#menubar .menu {
		display: inline-block !important;
	}

	#menubar ul ul {
		display: none !important;
	}

	#menubar ul li:hover ul {
		display: block !important;
	}

}

@media all and (max-width: 1000px) {

	#menu-toggle {
		display: block;
	}

	#menubar ul {
		background-color: #444; /*#0e376f;*/
		border: solid 1px #062249;
		box-shadow: 3px 3px 3px rgba(0,0,0,0.5);
		display: none;
		position: absolute;
		margin: 0px 0px 0px 2px;
		padding: 0px;
		width: auto;
		min-width: 250px;
		height: auto;
		z-index: 100;
	}

	#menubar ul li {
		display: block;
		float: none;
		width: auto;
		min-width: 250px;
	}

	#menubar ul li a {
		color: #fff;
		border-left: none;
		border-right: none;
		line-height: 40px;
		padding: 0px 15px 0px 15px;
		height: auto;
	}

	#menubar ul li a:hover {
		background-color: #666;
		background-image: none;
		color: #fff;
	}
	
	#menubar ul li.menu-item-25 {
		border-right: none;
	}

	#menubar ul ul {
		background-color: transparent;
		background-image: none;
		border: none;
		box-shadow: none;
		display: block;
		padding: 0px;
		position: relative;
	}

	#menubar ul ul li a {
		color: #fff;
		line-height: 40px;
		padding: 0px 0px 0px 30px;
	}

	#menubar ul ul li a:hover {
		background-color: #666;
		color: #fff;
	}
	
	#slideshow-bg {
		display: none;
	}
	
}

@media all and (max-width: 768px) {
	
	.rfq-form label {
		display: block;
		text-align: left;
		width: 100%;
	}
	
	.rfq-form .required {
		display: block;
		position: absolute;
		right: 0px;
		margin: -55px 15px 0px 0px;
		padding: 0px 5px 0px 0px;
		text-align: right;
		width: 80px;
	}
	
	.rfq-form input[type=text], 
	.rfq-form textarea {
		display: block;
		margin: 0px;
		padding: 5px;
		width: 100%;
	}
	
	.rfq-form .contact-submit {
		margin: 60px 0px 0px 0px;
	}
	
}