﻿

/* CSS */
body {
    font-family: 'Lato', sans-serif;
}
body, html {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /*padding-bottom:50px;*/

}
.container-fluid{
        height: 100%;
        margin-bottom:10px;
}
.row  {
  float:left; /* Can apply this a bunch of ways */
  /*height: 100%;*/
}
.fixed-side-column {
  width:400px;
  border-right: 1px solid #ccc;
  padding-left:10px;
}
.fluid-middle-column {
  /*width:calc(100% - 400px);*/
  text-align:center;
}

/* sofos */
.logo{
    padding:0px;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}
#aziende, #filtri{
    /*height: -webkit-fill-available;*/
    overflow: auto;
    padding-bottom:30px;
}

.container-fluid{
        background-color:#FFF;
    padding-left:0px;
    padding-right:0px;
    margin-left:0px;
    margin-right:0px;
}
.input-group{
    margin-bottom:5px;
}

.topbar {
    flex-basis: 50px;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0px;
    /*display: flex;*/
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid #ccc;
    /*position: fixed;
    text-align:right;*/
}

#homepage {
    background-color:#FFF;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%
}
#main-section{
    background-color:#FFF;
}




/*MEDIA*/
/* Container needed to position the overlay. Adjust the width as needed */
.container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

/* Make the image to responsive */
.image {
  width: 100%;
  height: auto;
}

/* The overlay effect (full height and width) - lays on top of the container and over the image */
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .3s ease;
  /*background-color: red;*/
}
/*.img-espositore{
    float:left;padding:5px;max-width:400px;background-color: #fff;background-size: cover;background-position: center;background-repeat: no-repeat;border: 1px solid #ccc;
}*/
#sofairStand{
    cursor: pointer;
}

/* When you mouse over the container, fade in the overlay icon*/
.container:hover .overlay {
  opacity: 1;
}

/* The icon inside the overlay is positioned in the middle vertically and horizontally */
.icon {
  color: white;
  font-size: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

/* When you move the mouse over the icon, change color */
.fa-user:hover {
    color:inherit;
  /*color: #eee;*/
}
.modal-description{
    width: 48%;float: left;padding: 1%;
}
.content-cad {
    /*position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;*/
    height: 100%;
    background-color:#E9E9E9;
    overflow:hidden;
}

/* width */
::-webkit-scrollbar {
    width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

        .show-big{
            visibility:visible;
            /*display:block;*/
        }

        .show-small{
            visibility:hidden;
            display:none;
        }

.btn{
    white-space:unset;
}

.row-eq-height {
  display: -webkit-box!important;
  display: -webkit-flex!important;
  display: -ms-flexbox!important;
  display:         flex!important;
}

.tags{
    padding-top: 20px;padding-bottom: 20px;
}

.mapTitle{
    padding-bottom:10px;padding-top:10px;
}

@media only screen and (min-width: 800px) {
    .visible-xs{
        display:block!important;
    }
}
@media only screen and (max-width: 1024px){
.searchtext{
    padding:0px!important;
}
}

@media only screen and (max-width: 800px) {
    body, html{
        overflow:auto;
    }
    .mapTitle{
    padding-bottom:0px;padding-top:0px;
    font-size:1.2rem!important;
}
    .row-eq-height {

  display:table;
}

    .tags{
    padding-top: 0px;padding-bottom: 0px;
}
    #fixed-top{
    overflow: hidden;
    }
    .container-fluid{
        height: auto;
        margin-bottom:10px;
    }

    body, html, #main-section,.container-fluid,#homepage{
        height:100%;
    }

     .modal-lg{
         width:90%;
         right:auto;
         left:auto;
     }
     .modal-description{
    width: 98%;padding: 1%;
}
     .card-body{
         padding-bottom:40px;
     }

     .img-espositore{
    padding:5px;max-width:400px;width:100%;background-color: #fff;background-size: cover;background-position: center;background-repeat: no-repeat;border: 1px solid #ccc;
}

         .show-big{
            visibility:hidden;
            display:none;

        }

        .show-small{
            visibility:visible;
            display:block;
        }


}



/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
    .row-eq-height{
        display:table!important;
    }
   .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  .exhiblist{
      padding-top:0px;
      padding-bottom:0px;
  }

  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* gallery */
    .grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
  width: 33.333%;
}

.grid-item {
  float: left;
}

.grid-item img {
  display: block;
  width: 100%;
}


.grid-item  a {
    display: none;
}

.grid-item:hover a {
    display: block;
    position:absolute;
    bottom:0px;
        padding: 14px 20px;
    width:100%;
    background-color: rgba(221,77,70,0.8);
    color: #fff;

}

@media screen and (max-width: 600px) {
    .grid-sizer,
.grid-item {
  width: 100%;
}
     .list-descr{
         line-height:32px;
     }
}