/*
Theme Name: Mad dev theme
Theme URI: 
Description: 
Author: Michele Margiotta
Author URI: http://www.michelemargiotta.it
Version: 0.1
Tags: test
*/
/*================================
=            DEFAULT             =
================================*/

/*==========  Eric Meyer's Reset  ==========*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}

/*----------  BORDER-BOX RESET  ----------*/
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0); 
}
*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}
* {
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}



/*==========  CLEARFIX  ==========*/
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  zoom: 1; /* For IE 6/7 (trigger hasLayout) */
}
/*==========  RESPONSIVE  ==========*/
img{
	max-width: 100%;
	height: auto;
  display: block;
}
.video-main {
  position: relative;
  padding-bottom: 56.25%;
  height: 0; overflow: hidden;
}

.video-main iframe,
.video-main object,
.video-main embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  font-family: 'Source Sans Pro', sans-serif;
  background-color: #F2F2F2;
  color: #1B263B;
  line-height: 1.3;
}
main{
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
  background-color: #fff;
  border-top: 1px solid #dadada;
  width: 100%;
}
.center{
  width: 1140px;
  margin: 0 auto;
}
a{
  text-decoration: none;
  color: #0090DF;
}
strong{
  font-weight: bold;
}

h2{
  font-size: 36px;
  text-align: center;
  color: #0D1B2A;
  margin-top: 1.5em;
  font-weight: bold;
}
h3{
  
  font-size: 20px;
  text-align: center;
  color: #707070;
  width: 75%;
  margin: 0 auto;
  margin-top: .6em;
}
h4{
  font-weight: bold;
  font-size: 24px;
}
p{
  padding: .5em 0;
}

footer #inner-footer{
  padding: 3em 0;
}
footer #inner-footer #logo-footer{
  width: 80px;
  margin: 0 auto;
  margin-bottom: 1.5em;
}
footer #inner-footer p.info{
  text-align: center;
  font-size: 14px;
  color: #707070;
}
footer #inner-footer p.info a{
  color: #707070;
}
footer #inner-footer p.info a:hover{
  color: #0090DF;
}
header{
  background-color: #fff;
  border-bottom: 1px solid #dadada;
  width: 100%;
  height: 90px;
}
header #logo{
  width: 130px;
  margin-left: 1.5em;
}
header #inner-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

header .menu{
  display: flex;
  height: inherit;
  align-items: center;
}
header .menu a{
  color: #707070;
  font-size: 18px;
  height: inherit;
  display: inline-block;
}
header .menu li.focus a{
  color: #fff;
  background: #0090DF;
  height: auto;
  line-height: 1.2;
  padding: .5em 1em;
  border-radius: 4px;
}
header .menu a:hover{
  color: #0090DF;
}
header .menu > li{
  margin-left: 60px;
  position: relative;
  height: inherit;
  line-height: 90px;
}
header .menu > li.menu-item-has-children > a:after{
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: #707070 transparent transparent transparent;
  margin-left: 7px;
  vertical-align: middle;
}
header .menu > li .sub-menu{
  position: absolute;
  display: none;
  background: #fff;
  top: 80px;
  left: 0;
  z-index: 1;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.08);
  min-width: 220px;
}
header .menu > li:hover .sub-menu{
  display: block;
}
header .menu > li .sub-menu > li{
  height: auto;
  padding: 1em;
  line-height: 1.2;
}
header .menu > li .sub-menu > li > a{
  height: auto;
}
header #nav-icon{
  display: none;
}
.role-cliente #menu-item-95095{
  display: none;
}

.content{
  background-color: #fff;
  padding: 3em;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  margin: 3em 0 6em;
}
.content form{
  padding: 1em 0 2em;
}
.content form .inner-form,
.row{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.content form .inner-form label{
  display: block;
  margin-bottom: .5em;
}
.content form .inner-form input:not([type='submit']):not([type='checkbox']),
.content form .inner-form select,
.content select{
  border-radius: 4px;
  border: 1px solid #707070;
  height: 36px;
  padding: 6px 10px;
  font-family: 'Source Sans Pro', sans-serif;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.content form .inner-form > p,
.content form .inner-form > div.half,
.row .col{
  width: 48%;
}
.content form .inner-form > div{
  width: 100%;
}
.content form .input-pw,
.content form .input-select,
.content .input-select{
  position: relative;
}
.content form .input-pw .toggle-pw{
  cursor: pointer;
  position: absolute;
  right: .5em;
  top: 50%;
  transform: translateY(-50%);
}
.content form .input-select::after,
.content .input-select::after{
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: #707070 transparent transparent transparent;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.content form p.privacy,
.content form p.tc{
  text-align: center;
  padding-top: 2em;
}
.content form p.privacy input{
  margin-right: .5em;
}
.button,
.content form .button{
  border-radius: 4px;
  border: 0;
  padding: .7em 3em;
  font-family: 'Source Sans Pro', sans-serif;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: #009FE3;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  display: table;
  margin: 0 auto;
  margin-top: 1.5em;
  letter-spacing: .05em;
}
.button.small,
.content form .button.small{
  display: inline-block;
  margin-top: 1em;
  padding: .5em 1em;
  font-size: 14px;
}
.button.very-small,
.content form .button.very-small{
  display: inline-block;
  padding: .5em 1em;
  font-size: 12px;
  margin-top: 0;
}
.button:disabled,
.content form .button:disabled{
  background: #ddd;
}
.button.first,
.content form .button.first{
  margin-top: 0;
}
.button.preview,
.content form .button.preview{
  background: #7A7265;
  color: #fff;
}
.msg{
  margin-top: 2em;
  background: #009FE3;
  padding: 1em 3em;
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.msg a{
  color: #fff;
  text-decoration: underline;
}
.msg.warning{
  background: #7A7265;
}
.accordion{
  position: relative;
  font-weight: bold;
  font-size: 24px;
  padding: .5em 0;
  border-bottom: 1px solid #dadada;
  cursor: n-resize;
}
#filter .accordion{
  font-size: 18px;
}
.accordion::after{
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 7px 6px;
  border-color: transparent transparent #1B263B transparent;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.accordion.close{
  cursor: s-resize;
}
.accordion.close::after{
  border-width: 7px 6px 0 6px;
  border-color: #1B263B transparent transparent transparent;
}
.accordion-content{
  padding: 1em 0 2em;
}
.accordion-content .info{
  padding-bottom: 1em;
  color: #707070;
}
.content form.close{
  display: none;
}
.allegati ul{
  display: flex;
  justify-content: space-between;
}
.allegati ul > li{
  width: 48%;
}
#modello section:not(.classi) .accordion-content{
  display: none;
}


/*Acquisto*/
#pacchetti{
  display: flex;
  justify-content: space-between;
}
#pacchetti > li{
  width: 32%;
  border: 1px solid #dadada;
  border-radius: 4px;
  padding: 1em;
  position: relative;
  cursor: pointer;
  transition: box-shadow .3s;
}
#pacchetti > li:hover{
  box-shadow: 0px 0px 5px 0px rgba(0,159,227,1);
}
#pacchetti > li h4{
  font-weight: bold;
  font-size: 24px;
}
#pacchetti > li.select{
  box-shadow: 0px 0px 15px 0px rgba(0,159,227,1);
}
#consulenza{
  margin-top: 4em;
  display: none;
  border: 1px solid #dadada;
  border-radius: 4px;
  padding: 2em;
}

/*FILTRO*/
#filter form .inner-form ul{
  display: flex;
  align-items: center;
  height: 100%;
}
#filter form .inner-form ul li{
  margin-right: 2em;
}
#filter form .inner-form ul li label{
  display: inline-block;
}


#lista-istituti .element{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7em 0;
  border-bottom: 1px solid #dadada;
  cursor: default;
}
#lista-istituti .element:hover{
  background: #F2F2F2;
}
#lista-istituti .header{
  font-size: 18px;
  font-weight: bold;
}
#lista-istituti .header .element:hover{
  background: #fff;
}
#lista-istituti .element p{
  padding: 0;
}
#lista-istituti .element .select{
  width: 3%;
}
#lista-istituti .element .scuola{
  width: 42%;
  display: flex;
  flex-direction: column;
  font-weight: bold;
}
#lista-istituti .element .scuola p.small{
  font-weight: normal;
  font-size: 12px;
}
#lista-istituti .element .regione,
#lista-istituti .element .grado,
#lista-istituti .element .funz,
#lista-istituti .element .ruolo,
#lista-istituti .element .data{
  width: calc(55% / 3);
}

.pagination{
  margin-top: 2em;
}
.pagination span{
  margin-right: 1em;
}
.pagination li{
  display: inline-block;
  margin: 0 .15em;
}


#first{
  width: 100%;
  height: calc(100vh - 90px);
  background: url('img/bghome.jpg') no-repeat top center;
  background-size: cover;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
#first h2{
  font-size: 48px;
  margin-top: 0;
  color: #fff;
}
.row .col{
  margin-bottom: 2em;
}

/*Interpelli*/
.uffici-at li{
  display: inline-block;
  margin-right: 1em;
  margin-bottom: 1em;
}
/*----------  BASIC  ----------*/

/*===================================
=            MEDIA QUERY            =
===================================*/

/* Large devices (desktops, less than 1200px) - Ipad landscape*/
@media (max-width: 1199px) {
  .center{
    width: 94%;
  }
  #lista-istituti .element .funz .button:first-child{
    margin-bottom: .5em;
  }
}

/* Medium devices (tablets, less than 992px) - Ipad portrait*/
@media (max-width: 991px) {
  header .menu{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    background-color: #fff;
    box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.08);
    z-index: 10;
    padding: 2em;
    transform: translateX(-103%);
    transition: transform .5s;
  }
  header .menu.view{
    transform: translateX(0);
  }
  header .menu > li {
      margin-left: 0;
      position: relative;
      height: auto;
      line-height: 1.5;
      padding: 1em 0;
  }
  header .menu > li .sub-menu{
    position: static;
    display: none;
    background: #fff;
    top: 80px;
    left: 0;
    z-index: 1;
    box-shadow: none;
    min-width: 0;
  }
  header #nav-icon {
    display: block;
    width: 32px;
  }
  header #nav-icon:after, 
  header #nav-icon:before, 
  header #nav-icon div {
    background-color: #009FE3;
    border-radius: 3px;
    content: '';
    display: block;
    height: 3px;
    margin: 7px 0;
    transition: all .2s ease-in-out;
  }
  header #nav-icon.open:before {
    transform: translateY(10px) rotate(135deg);
  }

  header #nav-icon.open:after {
    transform: translateY(-10px) rotate(-135deg);
  }

  header #nav-icon.open div {
    transform: scale(0);
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
  header{
    height: 80px;
  }
  header #logo {
    width: 110px;
  }
  h2{
    margin-top: 1em;
    font-size: 32px;
  }
  h3{
    margin-top: .2em;
    font-size: 18px;
  }
  .content{
    margin: 2em 0 3em;
    padding: 1.5em;
  }
  .content form{
    padding-bottom: 1em;
  }
  .accordion{
    padding-right: 1.5em;
  }
  .accordion::after{
    right: .5em;
  }
  .msg{
    padding: 1em 1.5em;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  h3{
    width: 100%;
  }
  #pacchetti,
  .allegati ul{
    display: block;
  }
  #pacchetti li,
  .allegati ul > li{
    width: 100%;
    margin-bottom: 1.5em;
  }
  #pacchetti li:last-child{
    margin-bottom: 0;
  }
  .content form .inner-form > p, 
  .content form .inner-form > div.half, 
  .row .col {
    width: 100%;
  }
  #lista-istituti .element .ruolo, 
  #lista-istituti .element .data,
  #lista-istituti .element .regione, 
  #lista-istituti .element .grado{
    display: none;
  }
  #lista-istituti .element .scuole{
    width: 60%;
  }
  #lista-istituti .element .funz{
    width: 40%;
  }
}













