/*
Theme Name: NX-MartinengoBosio
Theme URI:
Author: NT Web
Author URI:
Description: Starter Theme with Font Awesome and Bootstrap 4
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: nx

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

.admin-bar .navbar{top:32px;}

/* ! Reset
--------------------------------------------- */
 
  body, html{ font-family: 'Open Sans', sans-serif; line-height: 1; font-size: 14px; box-sizing: border-box;margin: 0;padding: 0;}*,*:before,*:after{ box-sizing: border-box; }h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0; padding: 0;}ol,ul{padding-left: 20px;line-height: 1.5;}img{height: auto;}h1{font-size: 4rem;} h2{font-size: 3rem;} h3{font-size: 2rem;} h4{font-size: 1rem;} h5{font-size: 0.8rem;} h6{font-size: 0.6rem;}a{text-decoration:none}

/* ! General
--------------------------------------------- */

  body{
    background: #808080;
    background-image: url('../nx_martinengo/img/Sfondo.jpg');
    background-repeat: repeat;
    background-position: top left;
    background-attachment: fixed;
    line-height: 1.42857143;
  }

  a{color: #bb262c;}
  a:hover{text-decoration: underline;}

  h1, h2, h3, h4, h5, h6{font-family: 'Oswald', sans-serif; color: #41474F;}
  h1, h2, h3, h4, h5, h6{font-weight: 400; line-height: 1.1;}

  h1{color: #fff; font-size: 36px;}
  h2{color: rgb(65, 71, 79); font-size: 30px; line-height: 33px; text-decoration: underline; margin-top: 20px; margin-bottom: 10px;}
  h6{font-size: 12px;}
  h4, h5, h6{margin-top: 10px; margin-bottom: 10px;}

  td, li, p{font-family:"Open Sans", sans-serif; color: rgb(102, 107, 113); font-size: 14px; line-height: 20px;}
  
  ul {padding-left: 40px;}

  p{margin: 0 0 10px;}

  strong{font-weight: 600;}

  .spacer{height: 50px;}

/* ! Testata
--------------------------------------------- */

  .header{
    height: calc(100vh - 80px);
    background-image: url("../nx_martinengo/img/Testata_Martinengo-Bosio.png");
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
  }

  @media (max-width: 700px) {
    .header{
      background-attachment: scroll;
      background-position: center 15px;
    }
  }
  
  .main-navigation {
    display: block;
    float: left;
    width: 100%;
    padding: 0 45px;
    margin-top: 15px;
  }

  .main-navigation ul{
    list-style: none;
    margin: 0;
    padding-left: 0;
  }

  .main-navigation li{
    display: inline-block;
    position: relative;
    padding: 10px;
    margin: 0 10px 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    border: .666667px solid #bb262c;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .main-navigation li:last-child{margin-right: 0;}
  .main-navigation a{
    display: block;
    text-decoration: none;
    color: #fff;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
  }
  
  .main-navigation li:hover{background-color: #bb262c;}
  .main-navigation a:focus{color: #bb262c;}

  .hamburger{display: none;}

  @media (max-width: 700px) {
    .header{position: relative;}
    .main-navigation{position: absolute; top:-100%; left: 0; width: 100%; padding: 0 5px; background-color: #333; z-index: 99999; transition: all .75s cubic-bezier(.215, .61, .355, 0.5);}
    .open .main-navigation{top: 30px;}
    .main-navigation li{width: 100%; border: 0; background-color: transparent; text-transform: none;}
    .main-navigation li:hover{
      -webkit-border-radius: 6px;
      -moz-border-radius: 6px;
      border-radius: 6px;
      background: #967171;
      color: #222;
    }
    .hamburger{
      display: block;
      height: 45px; 
      width: 100vw;
      position: absolute;
      background-color: #fff;
      z-index: 999999;
    }
    
    .hamburger span{display: block; top: 20px; left: calc(50% - 15px); position: absolute; width: 30px; height: 7px; background-color: #FFF; border: 2.5px outset #00000070;}
    .hamburger span:nth-child(1){margin-top: -9px;}
    .hamburger span:nth-child(2){margin-top: 0;}
    .hamburger span:nth-child(3){margin-top: 9px;}


    }

  .logo{
    width: 75.61vw;
    height: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 4.29vw;
    max-width: 750px!important;
  }

  @media (max-width: 700px) {
    .logo{left: 2%;}
  }

/* ! Content
--------------------------------------------- */

  .title{
    height: 80px;
    background-color: #bb262c;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content{
    width: 96vw;
    padding: 20px;
    margin: 0 auto;
    background-color: #fff;
    border-bottom: 4px solid #C6CBD0;
    display: flex;
    justify-content: center;
  }

  @media (min-width: 900px) {
    .content{
      min-width: 710px;
      max-width: 1370px;
    }
  }

  @media (max-width: 899px) {
    .content{
      flex-direction: column;
    }
  }
  
  .pages{
    min-width: 64.4%;
    /* max-width: 730px; */
    /* margin: 0 auto; */
    text-align: center;
    margin: 0 0 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #DBDBDB;
    display: grid;
  }
  .page img{width: 100%; height: auto; max-width: 300px; margin-bottom: 10px;}
  
  .page .article{text-align: justify; margin: 0 0 10px; padding-right: 50px;}

  .home .article{text-align: center!important; padding-right: 0!important;}

  @media (max-width: 899px) {
    .page .article{padding-right: 0px;}
  }

  .page .article figure{text-align: center;}

  .sites table{border-bottom: 1px solid #C6CBD0!important;}
  .sites tr{height: 55px;}

  @media (max-width: 768px) {
  }

/* ! Sidebar
--------------------------------------------- */

  .sidebar{width: 35.6%; margin: 0 auto;}
  .widget{margin: 0 0 30px;}
  .sidebar img{width: 300px; height: auto;}

  @media (max-width: 899px) {
    .sidebar {
      width: 100%;
      margin: 0 auto;
      max-width: 330px;
    }
  }

/* ! Footer
--------------------------------------------- */

  .footer{
    width: 100vw;
    padding: 30px 0;
    background-color: #333;
    color: #dadada;
  }

  .credits {display: flex; align-items: center; justify-content: center;}
  .credits a{color: #dadada;}
  .credits a:hover{color: #bb262c;}

  @media (max-width: 899px) {
    .credits{display: block; padding-right: 15px; padding-left: 15px; text-align: center;}
  }

  @media (max-width: 500px) {
    .credits{font-size: 2.28vw;}
  }

/* ! Magnific PopUp Effetto Fade su Zoom
--------------------------------------------- */

.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
  opacity: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* ideally, transition speed should match zoom duration */
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}
.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
  opacity: 0;
}

/* ! CF7
--------------------------------------------- */

#two-column div{
	width: 10%;
}
#two-column #left{
	width: 50%;
	float: left;
}
#two-column #right{
	width: 50%;
	float: right;
}
#two-column label{
  line-height: 1.5;
	margin-bottom: 12px;
}
#two-column input[type="text"]{
	border: none;
	border: 1px solid #000;
	font-size: 14px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	width: 98%;
	padding: 5px;
}
#two-column select{
	border: none;
	border: 1px solid #000;
	font-size: 14px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 5px;
}

#two-column input[type="email"]{
	border: none;
	border: 1px solid #000;
	font-size: 14px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	width: 98%;
	padding: 5px;
}


#two-column textarea {
    position: relative;
    padding: 5px;
    border:1px solid #000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    width: 98%;
}

#two-column input[type="checkbox"] {
    margin-top: 10px;
}

.wpcf7-form input[type="submit"] {
	font-weight: 600;
	border: 1px solid #7F7F7F;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	min-width: 55px;
	width: 10%;
}
.wpcf7-form input:hover[type="submit"] {
    background:#f00;
    cursor:pointer;
    color:#fff;
}

#two-column label{
	display:inline;
}

/* End CF7 */


/* ! CF7 BIS
--------------------------------------------- */

#form-responsive{
max-width:750px /*– cambia questo con la larghezza desiderata –*/;
margin:0 auto;
width:100%;
}
.row-form{
width: 100%!important;
margin-top: 5px!important;
}

.half-column{
float: left;
position: relative;
padding: 0.65rem;
width:50%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}

.full-column{
float: left;
position: relative;
padding: 0.65rem;
width:100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
.clearfix::after{
content: "";
display: table;
clear: both;
}

/** Media query **/
@media only screen and (max-width: 400px){
.half-column{width: 100%;}

}

/** Per spostare il bottone invio al centro **/

div #center{
  width: 100%;
  display: flex;
  justify-content: center;
}

div #center p{margin-bottom: 0!important;}


.wpcf7-submit{
  padding: 10px 0;
}

/** Per cambiare il colore del bottone **/
.wpcf7-submit{
background: #000/*– colore sfondo –*/;
color: white/*– colore testo –*/;
}

/** Colore del bottone con il passaggio del mouse **/
.wpcf7-submit:hover{
background: #f3f3f3;
color: #000;
}

/** Per personalizzare il messaggio di successo **/

div.wpcf7-mail-sent-ok {
text-shadow: none;
border: none;
background: #8BC34A;
color: white;
font-family: ‘Raleway’;
}

/* End CF7 BIS*/
