/*
Theme Name: Zilio Mecc
Author: Loris Tosello
Author URI: https://www.loristosello.it
Description: Custom Theme for Zilio Meccanica sas
Tags: graphic design, web design, branding
Version: 1.0.0
Text Domain: zilio-mecc
*/

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.clearer {
  clear: both;
}

img {
  border: none;
  max-width: 100%;
  height: auto;
}
.wp-post-image {
  margin-bottom: 20px;
}
*:focus{
  outline: none;
}
body {
  font-family: 'Montserrat', sans-serif;
}
header,
nav,
article,
aside,
section,
footer,
main,
figure,
figcaption {
  display: block;
}

.clearfix::before,
.clearfix::after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}
.clearfix::after {
  clear: both;
}
.container {
  width: 1170px;
  margin: 0 auto;
}
.row {
  width: 100%;
  clear: both;
  display: block;
}
.col-1 {
  width: 8.33333%;
  float: left;
}
.col-2 {
  width: 16.6666%;
  float: left;
}
.col-3 {
  width: 25%;
  float: left;
}
.col-4 {
  width: 33.33333%;
  float: left;
}
.col-6 {
  width: 50%;
  float: left;
}
.col-8 {
  width: 66.666666%;
  float: left;
}
.col-10 {
  width: 83.3333%;
  float: left;
}
.divider {
  padding: 20px 0;
}
.spacer {
  padding: 70px 0;
}
.responsive,
.responsive img {
  width: 100%;
  height: auto;
}
.center {
  text-align: center;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}

/** ******* Global style 
******************** **/

/* Applica lo smooth scroll a tutti i link */
a {
  transition: all 0.3s ease-in-out; /* Aggiungi un'animazione di transizione */
}

/* Imposta il comportamento dello smooth scroll */
html {
  scroll-behavior: smooth;
}

/* COLOURS */

:root {
  --blue: #335c91;
  --blue_sky: #6ea9de;
  --red: #a50000;
  --mustard: #b08b3f;
  --yellow: #e3bc4c;
  --dark_grey: #585857;
  --light_grey: #929292;
  --white: #ffffff;
}



/* TYPOGRAPHY */

p {
  color: var(--light_grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 20px;
}

h2 {
  color: var(--light_grey);
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}


h3 {
  color: var(--light_grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 26px;
  margin-bottom: 20px;
  min-height: 50px;
}

h5 {
  color: var(--light_grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-categories li a {
  text-decoration: none;
  color: var(--light_grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-categories li a:hover {
  color: var(--red);
}

ul li {
  list-style: none;
  color: var(--light_grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
}

span {
  font-weight: 700;
  color: var(--red)
}
/* HEADER */

.header {
  padding: 20px 0 20px 0;
}

.header .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

a.logo{
  margin-bottom: 20px;
}

.menu li {
  list-style: none;
  display: inline-block;
  padding-left: 50px;
}

.menu li a {
  text-decoration: none;
  color: var(--dark_grey);
  font-size: 14px;
  transition: .3s;
}

.menu li a:hover {
  color: var(--red);
  font-weight: 700;
}


/* ************** HERO SECTION *************************** */

.hero-section {
  width: 100%;
  height: calc(100vh - 100px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-section h1 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 60px;
}

.hero-section h3 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 25px;
}

.items-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.single-item {
  padding: 20px;
}

.single-item a {
  text-decoration: none;
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 5px;
}

.single-item a:hover {
  color: var(--light_grey);
}

a.button {
  text-decoration: none;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  padding: 10px 50px;
  transition: .3s;
}

a.button:hover {
  background: var(--white);
  color: var(--dark_grey);
}

.where .container {
  display: flex;
  justify-content: space-between;
}

a.homepage {
  text-decoration: none;
  color: var(--dark_grey);
  transition: .3s;
}

a.homepage:hover {
  color: var(--red);
}

.single-item .wrap {
  display: flex;
  justify-content: space-between;
}

.single-item-text,
.single-item-image {
  width: 48%;
}

.single-item li {
  list-style: none;
}

.single-item h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 20px;
  color: var(--red);
}

.single-item h4 {
  margin-bottom: 20px;
}

.single-item h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--dark_grey);
}

.inner-text {
  display: flex;
  align-items: center;
  padding: 0 3%;
}

.content p,
.where-text {
  line-height: 32px;
  font-size: 20px;
}

/* ************** FOOTER **************** */



footer .container:first-child {
  border-top: 1px solid var(--dark_grey);
}

footer .container {
  padding: 20px 0 50px 0;
  display: flex;
  justify-content: space-between;
}

.footer-menu {
  display: flex;
  flex-direction: column;
}

footer .wrap {
  width: 33%;
}

.footer .right{
  text-align: right;
}

footer p {
  font-size: 12px;
}

footer .wrap li {
  list-style: none;
}

footer .wrap li a {
  text-decoration: none;
  color: var(--dark_grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  transition: .3s;
}

footer a {
  color: var(--dark_grey);
  text-decoration: none;
}

footer a:hover {
  color: var(--red);
}

footer .wrap li a:hover {
  font-weight: 600;
  color: var(--red);
}

a.footer-email,
a.footer-phone {
  display: block;
  text-decoration: none;
  color: var(--dark_grey);
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 600;
  transition: .3s;
}
.logo-footer{
  margin-bottom: 20px;
}

/* ************** 404 ******************* */

.fa {
  font-size: 140px !important;
}
.fa-frown-o {
  color: var(--red) !important;
}

.error h1 {
  color: var(--dark_grey)
}

a.to-home {
  text-decoration: none;
  color: var(--dark_grey);
  border: 1px solid var(--dark_grey);
  display: inline-block;
  padding: 10px;
  transition: .3s;
}

a.to-home:hover {
  color: var(--white);
  border: 1px solid var(--red);
  background: var(--red);
}

/** Desktop, iPad Pro **/
@media only screen and (min-width: 1024px) and (max-width: 1200px) {
  .container {
    width: 96%;
    margin: 0 2%;
  }
}

/** Display 12", iPad PRO Portrait, iPad landscape **/
@media only screen and (max-width: 1023px) {

  .container {
    width: 96%;
    margin: 0 2%;
  }
  .menu li {
    padding-left: 10px;
  }
}


/** Display 5.5", iPad Portrait, iPhone 6, 6s, 7, 8 portrait and landscape, iPhone 5s landscape **/
@media only screen and (max-width: 767px) {
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-6,
    .col-8,
    .col-10 {
      width: 100%;
      float: none;
    }

    .container {
      width: 85%;
      margin: 0 auto;
    }

    .spacer {
      padding: 35px 0;
    }

  /* MOBILE MENU */

  .navbar {
    display: block;
  }

  .icon-bar {
      display: block;
      width: 22px;
      height: 1px;
      margin: 5px;
      background-color: var(--red);
  }

  .menu {
    position: absolute;
    top: 0;
    left: -105%;
    width: 90%;
    height: 100vh;
    background-color: var(--red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
  }

  .menu ul {
    width: 100%;
  }

  .menu li {
    margin-bottom: 40px;
  }

  .menu li a {
    color: #fff;
    font-size: 24px;
  }

  .menu li a:hover {
    color: var(--yellow);
  }

  .wide {
    left: 0;
    z-index: 9999;
  }

  /* ******** MOBILE HERO SECTION ******** */

  .hero-section {
    width: 100%;
    padding: 30px;
  }

  .hero-section h1 {
    font-size: 40px;
  }

  .hero-section h3 {
    font-size: 18px;
    text-align: center;
  }

  .items-list {
    flex-direction: column;
    align-items: center;
  }

  .article {
    flex-direction: column;
  }

  .single-item {
    padding: 0;
  }

  .cta {
    padding: 20px;
  }

  .where img {
    margin-bottom: 20px;
  }
  .single-item .wrap {
    flex-direction: column;
  }

  .single-item-text,
  .single-item-image {
    width: 100%;
  }

  a.download,
  a.button {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }
  .wp-block-media-text__content {
    padding: 15px 0 !important;
  }

  .where .container {
    flex-direction: column;
  }
  /* ********** MOBILE FOOTER ********* */

  .footer .container {
    padding: 20px 0 50px 0;
    flex-direction: column;
  }

  .footer .wrap {
    width: 100%;
    text-align: center;
  }

  .footer p {
    text-align: center;
  }
  .footer .center {
    margin-bottom: 20px;
  }

  a.footer-email,
  a.footer-phone {
  font-size: 20px;
}



} /* end Display 5.5", ecc */



/* ****** Display 4", iPhone 5s portrait ****** */
@media only screen and (max-width: 320px) {

}
