/*
    per display con larghezza compresa tra 481px e 1024px
*/

@media (min-width: 497px) and (max-width: 1024px) {

  nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 2vw;
  }

  article {
    font-size: 1.8vw;
    color: rgba(255, 255, 255, 0.5);
  }

  .article_black {
    font-size: 2vw;
    color: rgba(0, 0, 0, 0.5);
  }

  hr {
    width: 30%;
    padding: 0 0 1.5vw 0;
    margin: auto;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .hr_black {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  h2 {
    font-size: 4vw;
    font-weight: 300;
    padding-bottom: 15px;
    margin: 0;
    padding: 0;
  }

  .h2_black {
    color: rgb(0, 0, 0);
  }

  h3 {
    color: rgb(25, 28, 28);
    font-size: 4vw;
    font-weight: 300;
    padding-bottom: 15px;
    margin: 0;
    padding: 0;
  }

  h4 {
    font-family: Roboto, sans-serif;
    font-size: 2vw;
    font-weight: bold;
  }

  .h4_black {
    color: rgba(0, 0, 0, 0.5);
  }

  /* -------------------------------------------------------------------------- */
  /* -- read more ------------------------------------------------------------- */

  .morecontent_black span {
    display: none;
    font-size: 2vw
  }

  .morecontent span {
    display: none;
  }

  .morelink_black {
    display: block;
    margin-top: 6vw;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.5vw;
    padding-bottom: 1.5vw;
    width: 45%;
    background-color: rgb(250, 68, 82);
    color: rgb(255, 255, 255);
    transition: .3s;
    transition-timing-function: linear;
    text-decoration: none;
    text-align: center;
  }

  .morelink_black:hover{
    background-color: rgb(250 ,38, 52);
  }

  .morelink {
    display: block;
    margin-top: 3vw;
    color: rgb(255, 255, 255);
    text-decoration: none;
  }

  /* ------------------------------------------------------------------------ */
  /* -- navbar -------------------------------------------------------------- */

  #navbar {
    width: 100%;
    height: 8vw;
    position: fixed;
    z-index: 99;
    background-color: rgb(65, 64, 72);
    border-bottom: 1px solid rgb(26, 26, 26);
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.3);
  }

  #navbar_logo {
    height: 6vw;
    padding: 1vw 2vw 1vw 1vw;
    float: left;
  }

  #navbar_title {
    height: 6vw;
    display: flex;
    justify-content: center;
    flex-direction: column;
    float: left;
    margin-top: 1vw;
    padding-left: 2vw;
    color: rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 2vw;
  }

  #navbar_menu {
    height: 6vw;
  }

  /* Dropdown Button */
  .dropbtn {
    background-image: url(../img/hamburger.png);
    background-position: center;
    background-size: 50%;
    background-repeat: no-repeat;
    background-color: rgb(65, 64, 72);
    color: white;
    border: none;
    height: 8vw;
    width: 8vw;
  }

  .dropdown {
    position: relative;
    display: inline-block;
    float: right;
  }

  .dropdown-content {
    border: 1px solid rgb(26, 26, 26);
    display: none;
    position: absolute;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    min-width: 30vw;
  }

  .dropdown-content a {
      color: black;
      padding: 1vw 1vw;
      text-decoration: none;
      display: block;
  }

  .dropdown-content a:hover {
    background-color: rgb(230, 230, 230);
  }

  .dropdown:hover .dropbtn {
      background-color: rgb(56, 56, 63);
  }

  /* ------------------------------------------------------------------------ */
  /* -- upper space --------------------------------------------------------- */

  #upper_space {
    width: 100%;
    height: 8vw;
  }

  /* ------------------------------------------------------------------------ */
  /* -- background ---------------------------------------------------------- */

  #background {
    width: 100%;
    height: 31vw;
    position: relative;
  }

  #background_gradient {
    width: 100%;
    height: 31vw;
    position: absolute;
    background: rgb(0, 0, 0); /* For browsers that do not support gradients */
    background: -webkit-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); /* Standard syntax (must be last) */
  }

  #background_title {
    padding-top: 5%;
    text-align: center;
    position: absolute;
    width: 100%;
  }

  /* ------------------------------------------------------------------------ */
  /* -- chi siamo ----------------------------------------------------------- */

  #chi_siamo {
    width: 100%;
    display: table;
    padding-bottom: 8vw;
  }

  #chi_siamo_left {
    width: 50%;
    display: table-cell;
  }

  #chi_siamo_left_title {
    width: 90%;
    margin: auto;
    padding-top: 7.7vw;
    text-align: center;
  }

  #chi_siamo_left_article {
    width: 70%;
    margin: auto;
    margin-top: 2vw;
    text-align: justify;
  }

  #chi_siamo_right {
    width: 50%;
    display: table-cell;
    background-position: center;
    background-size: cover;
  }

  /* ------------------------------------------------------------------------ */
  /* -- servizi ------------------------------------------------------------- */

  #servizi {
    width: 100%;
    background-color: rgb(65, 64, 72);
    text-align: center;
    padding-top: 7.7vw;
  }

  #servizi_ {
    width: 100%;
    display: table;
    background-color: rgb(65, 64, 72);
  }

  .servizi_col {
    padding-top: 6vw;
    padding-bottom: 5vw;
    width: 33%;
    display: table-cell;
  }

  .servizi_img {
    width: 70%;
    padding-bottom: 70%;
    border-radius: 50%;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    background-position: center;
    background-size: cover;
  }

  .servizi_title {
    width: 70%;
    margin: auto;
    text-align: center;
  }

  .servizi_article {
    width: 80%;
    margin: auto;
    text-align: center;
  }

  /* ------------------------------------------------------------------------ */
  /* -- specializzazioni ---------------------------------------------------- */

  #specializzazioni {
    width: 100%;
    min-height: 20vw;
    display: table;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  #specializzazioni_left {
    width: 50%;
    display: table-cell;
    background-position: center;
    background-size: cover;
  }

  #specializzazioni_right {
    width: 50%;
    display: table-cell;
  }

  #specializzazioni_right_title {
    width: 90%;
    margin: auto;
    padding-top: 7.7vw;
    text-align: center;
  }

  #specializzazioni_right_article {
    width: 70%;
    margin: auto;
    padding-top: 2vw;
    padding-bottom: 8vw;
    text-align: justify;
  }
  
  /* ------------------------------------------------------------------------ */
  /* -- gallery ------------------------------------------------------------- */

  #gallery {
    width: 100%;
    background-color: rgb(247, 247, 247);
    padding-top: 8vw;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 2vw;
  }
  
  #gallery_title {
    text-align: center;
    padding-bottom: 1.5vw;
  }
  
  .gallery_container {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 96vw;
  }
  
  .fixed_gallery {
    width: 100%;
    height: 50%;
  }
  
  .owl_gallery {
    width: 100%;
    height: 50%;
  }
  
  .gallery_img {
    width: 80%;
    padding-bottom: 80%;
    border-radius: 50%;
    margin-top: 10%;
    margin-right: auto;
    margin-left: auto;
    background-position: center;
    background-size: cover;
    position: relative;
    transition: .3s;
    transition-timing-function: linear;
    opacity: 1;
    cursor: pointer;
  }
  
  .gallery_img:hover {
    opacity: 0.75;
  }
  
  .gallery_col {
    width: 50%;
    float: left;
  }
  
  .item_ {
    width: 100%;
    height: 100%;
  }
  
  .gallery_row {
    width: 100%;
    height: 50%;
  }
  
  .gallery_img_big {
    position: relative;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: .2s;
    transition-timing-function: ease-out;
    opacity: 1;
  }
  
  .gallery_img_big:hover {
    opacity: 0.75;
  }
  
  .img_title {
    width: 100%;
    background-color: rgb(2, 198, 188);
    position: absolute;
    top: 50%;
    transform: translateY(-30%);
    padding-top: 2vw;
    padding-bottom: 2vw;
    text-align: center;
    transition: .2s;
    transition-timing-function: ease-out;
    opacity: 0;
  }
  
  .padding_ {
    padding-right: 10%;
    padding-left: 10%;
  }
  
  /* ------------------------------------------------------------------------ */
  /* -- servizi aggiuntivi -------------------------------------------------- */
  
  #servizi_aggiuntivi {
    padding-top: 8vw;
    padding-bottom: 8vw;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .servizi_aggiuntivi_content {
    width: 95%;
    margin: auto;
    display: flex;
  }
  
  .aggiuntivi {
    width: 100%;
    padding-left: 2.5%;
    padding-right: 2.5%;
  }
  
  .aggiuntivi_article {
    text-align: justify;
  }
  
  .aggiuntivi_title {
    text-align: center;
    color: rgb(25, 28, 28);
    font-family: Roboto, sans-serif;
    font-size: 2vw;
    font-weight: bold;
  }
  
  /* ------------------------------------------------------------------------ */
  /* -- form ---------------------------------------------------------------- */

  #form {
    width: 80vw;
    padding-top: 8vw;
    padding-bottom: 5vw;
    padding-left: 10vw;
    font-size: 2vw;
  }
  
  #form_title {
    text-align: center;
    padding-bottom: 1.5vw;
  }
  
  #form_hr {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 0;
    height: 3vw;
  }
  
  .form_input_sx {
    width: 46%;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    float: left;
    padding: 1vw;
    margin-bottom: 1vw;
  }
  
  .form_input_dx {
    width: 46%;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    float: right;
    padding: 1vw;
    margin-bottom: 1vw;
  }
  
  textarea {
    width: 97.3%;
    resize: vertical;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 1vw;
  }
  
  .form_button {
    display: block;
    margin-top: 6vw;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6vw;
    padding-top: 1.5vw;
    padding-bottom: 1.5vw;
    width: 45%;
    background-color: rgb(250, 68, 82);
    color: rgb(255, 255, 255);
    transition: .3s;
    transition-timing-function: linear;
    text-align: center;
    border: 0;
  }

  .form_button:hover{
    background-color: rgb(250 ,38, 52);
  }

  /* ------------------------------------------------------------------------ */
  /* -- contatti ------------------------------------------------------------ */

  .mappa {
      position: relative;
  }
  
  #contatti {
    width: 100%;
    min-height: 50vw;
    height: 50vw;
    background-color: rgb(249, 249, 249);
    top: 0;
    left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .map_mask {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba( 0, 0, 0, 0.1);
  }
  
  .map_mask_button {
    position: absolute;
    bottom: 2vw;
    left: 2vw;
    height: 4vw;
    width: 16vw;
    background-image: url('../img/lock.png');
    background-size: 100%;
    opacity: 0.50;
    cursor: pointer;
    display: none;
  }
  
  .map_mask_button_1 {
    position: absolute;
    bottom: 2vw;
    left: 2vw;
    height: 4vw;
    width: 16vw;
    background-image: url('../img/unlock.png');
    background-size: 100%;
    opacity: 0.50;
    cursor: pointer;
  }
  
  .map_mask_button:hover,
  .map_mask_button_1:hover {
    opacity: 0.75;
  }

  /* ------------------------------------------------------------------------ */
  /* -- footer -------------------------------------------------------------- */

    .footer {
    background-color: rgb(65, 64, 72);
    width: 100%;
    padding-top: 1vw;
    padding-bottom: 1vw;
  }
  
  .footer_container {
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .footer_container_logos {
    order: 1;
    flex: 1 0 100%;
  }
  
  .logos_title {
    width: 100%;
    text-align: center;
    font-size: 2vw;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 1vw;
    padding-bottom: 1vw;
  }
  
  .logos_logos {
    text-align: center;
    padding: 0.5vw;
  }
  
  .icon_logo img {
      height: 7vw;
  }
  
  img {
      padding: 0;
      margin: 0;
  }
  
  a {
      text-decoration: none;
  }
  
  .footer_container_copyright {
    padding-top: 3vw;
    padding-bottom: 1vw;
    order: 3;
    flex: 0 1 100%;
  }
  
  .copyright_img {
    text-align: center;
  }
  
  .logo_footer {
      height: 8vw;
  }
  
  .copyright {
    font-size: 1.2vw;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
  }
  
  .footer_container_dati {
    text-align: center;
    padding-top: 3vw;
    padding-bottom: 2.2vw;
    order: 2;
    flex: 1 0 50%;
  }
  
  .info_cliente {
      font-size: 1.8vw;
      line-height: 2.2vw;
      color: rgba(255, 255, 255, 0.5);
  }
  
  .ragione_sociale {
      font-size: 2.2vw;
      line-height: 2.4vw;
      padding-bottom: 0.5vw;
      color: rgb(255, 255, 255);
  }
  
  /* ------------------------------------------------------------------------ */
  /* -- media container ----------------------------------------------------- */
  
  .media_container_video,
  .media_container_business_view {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
  }
  
  .media_container_business_view {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .media_container_video iframe,
  .media_container_business_view iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .media_mask {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba( 0, 0, 0, 0.1);
  }
  
  .media_mask_button {
    position: absolute;
    bottom: 2vw;
    left: 2vw;
    height: 4vw;
    width: 16vw;
    background-image: url('../img/lock.png');
    background-size: 100%;
    opacity: 0.50;
    cursor: pointer;
    display: none;
  }
  
  .media_mask_button_1 {
    position: absolute;
    bottom: 2vw;
    left: 2vw;
    height: 4vw;
    width: 16vw;
    background-image: url('../img/unlock.png');
    background-size: 100%;
    opacity: 0.50;
    cursor: pointer;
  }
  
  .media_mask_button:hover,
  .media_mask_button_1:hover {
    opacity: 0.75;
  }
  
  .a_white {
    background-color: rgb(250, 68, 82);
    color: rgb(255, 255, 255);
    display: inline-block;
    padding: 15px 40px 15px 40px;
    transition: .3s
  }
  
  .a_white:hover {
    background-color: rgb(250 ,38, 52);
  }
  
  .readmore-actions {
    text-align: center;
  }
}
