/*STYLE HEADER***********************/
header {
    width:100%; 
    position: relative; 
    overflow-x: hidden;
    overflow-y: hidden;

    /* background-image: url('../../../templates/wdtemplate/img/T1.png'),url('../../../templates/wdtemplate/img/sky-207.jpg'); */
  
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 98;
    color:#fff;
    border-left:5px;
    border-top:5px;
    border-right:5px;
    border-bottom:0px;
    border-style: solid;
    border-color:  #fff;
}
header span.bi-telephone-fill{white-space:nowrap;}
header table.ttable {margin-top: 1em} 
header .ttable p{margin-bottom: 0em; line-height: 0.8em; padding: 0.5em 0em 0.5em 0em;}
header .ttable p a{text-decoration: none;}
header .logo{
    width: 200px;
    background-color: #fff;
    border-radius: 10px ;
}

header .ttable tr.elm{background-color: #fff;}
header .ttable{width: 100%; margin: 0px; color:#055487;}



@keyframes lineInserted {
    from {
      height: 10vh;
    }
    to {
      height: auto!important;
    }
  }
  
  


  .sticky {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    margin-bottom:60px;
    /* transition: 0.3s ease; 
    height: auto!important; */
    animation-duration: 0.3s;
    animation-name: lineInserted;
    transition: height 0.3s ease-in;
}

.fstycky{

    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    margin-bottom:60px;

}



header li.list-group{margin-top:0.7em}
header li.list-group-item:nth-child(1) {width: 50%;margin-top:0.7em}
header li.list-group-item:nth-child(2) {width: 44%;}
header li.list-group-item:nth-child(3) {width: 38%;}
header li.list-group-item:nth-child(4) {width: 32%;}

header li.list-group-item {
    
    background-image: linear-gradient(to right, rgba(17,146,164,0), rgba(17,146,164,1), #055487);
    background-size: 0;
    background-repeat: no-repeat;
    display: inline;
    transition: 0.3s ease;
    
  }
  header li.list-group-item h2{
  margin:0!important;
  }
  

header li.list-group-item:hover {
      color:#fff;
      background-size: 100%;  
  }


header li.list-group-item {

    cursor:pointer;
    position: relative;
    display: block;
    padding: 0px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0.7em;
    color:#055487;
    text-align: right;
    padding-right: 40px;
    border: none;
    border-radius: 0px!important;
    border:5px solid #fff!important;
    }
header .ttable td.motto{width:100%}
header .ttable td.pretd{width:3%}
header .ttable td.mottoMobile div{ display:none}
header .ttable td.mottoMobile {background-color: #fff; text-align: center;}


/*STYLE NAVBAR***********************/   
nav.navbar{background-color: #fff;  overflow: hidden; z-index: 100;
/* border-bottom:10px solid #055487; */
box-shadow: 0 4px 10px -8px #055487;
}
nav.navbar img{width:110px; min-width: 110px; vertical-align:middle}
nav.navbar span.bi-list{ color:#055487; }
nav.navbar button.navbar-toggler:focus{
    border:2px solid #055487;
    box-shadow: none;
    box-shadow: 0px 0px 4px #055487;
}



nav.navbar button.navbar-toggler {
	padding: 0.25rem 0.45rem;
	line-height: 1;
	background-color: transparent;
	border:2px solid #055487;
    margin-right:0.5em;
	border-radius: 0.25rem;
	transition: box-shadow 0.15s ease-in-out;
}

nav.navbar #mnuMobile{width: auto; margin-right: 1em;}/****importante larghezza menu*/
nav.displa img{display:none}
nav.displa span.bi-telephone-fill{display:none}
nav.displa p{display:none}
nav.navbar div.brandinfo{
    display: flex;
    align-items: center;
    justify-content: left;
}
div.brandinfo a:hover{text-decoration: none;}
nav.navbar div.brandinfo p{margin-bottom: 0em;}

.resetHeight{height: auto!important;}

@media screen and (max-width:1199px){
    nav.navbar img{width:100px; min-width: 100px;}  

}

@media screen and (max-width:991px) {
    
    header .logo{width: 150px;}
    header .ttable td.pretd{width:auto}
    .sticky + .azienda {
        padding-top: 170px !important;
    }
   
    
    header li.list-group-item { margin-bottom: 0.5em}
    header li.list-group-item:nth-child(1) {width: 80%; margin-top:0.5em}
    header li.list-group-item:nth-child(2) {width: 74%;}
    header li.list-group-item:nth-child(3) {width: 68%;}
    header li.list-group-item:nth-child(4) {width: 62%;}

    nav.navbar{min-height: 10vh;}
  
    nav.navbar #mnuMobile{width: 100%}
    nav.navbar img{width: 100px;}
    nav ul.navbar-nav li{       
        background-color: #055487;
        margin: 0.1em 0.7em 0.1em 0.7em; 
        text-align: right;
        padding-right: 0.7em;
        animation-name: bgnav;
        animation-duration: 1s;
        background-image: linear-gradient(to left, rgba(17,146,164,0), rgba(17,146,164,1), rgba(17,146,164,1));
    } 
    nav ul.navbar-nav li:nth-child(1){ margin-top: 0.7em;}
        nav ul.navbar-nav li a{
        color:#fff;
        animation-name: linknav;
        animation-duration: 2s;        
        }
}
@media screen and (max-width:700px) {
    nav.navbar img{width: 80px;}
    header .logo{width: 170px;}
    header .ttable td.motto div{display:none}  
    header .ttable td.mottoMobile div{display:inline}
    /* header .logo{border-radius: 10px  10px  0px  0px ;} */
    header .ttable tr.elm{background-color: transparent;} 
    header .ttable td.motto {width: auto;}
    header .ttable td.logotd{  text-align: center;}
    header .ttable td.logotd div{  display: inline-block!important; margin-bottom:1em;}
    .sticky + .azienda {
        padding-top: 170px !important;
    }
   
}



@keyframes bgnav {
    0%{background-color: #ffffff; }
    100%{background-image: linear-gradient(to left, rgba(17,146,164,0), rgba(17,146,164,1), rgba(17,146,164,1));}
}
@keyframes linknav {
    0%{color: #055487;}
    100%{color: #ffffff;}

}