/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
#az-logo .et_pb_module_header {
    padding-bottom:0;
    /*color:#1D71B8;    
    text-shadow: 1px 0 #1D71B8;
    letter-spacing:1px;
    font-weight:bold;*/
}

.et_pb_blurb_container {
    padding-left:10px;
    padding-top: 2px;
}

#az-logo .et_pb_main_blurb_image {
    width:65px;
}

/* Smartphones in landscape mode (480-768px) */
@media only screen and ( max-width: 767px ) {
    #az-logo .et_pb_main_blurb_image {
        width:30px;
    }
}

.rs-link a:hover,
.blur-contatti a:hover {
    text-decoration: underline;
}


@media only screen and ( min-width: 981px ) and ( max-width: 1900px) { 

  #rz-blur-home .et_pb_button_module_wrapper {
      position:absolute;
      bottom:0;
      width:100%;
  }

  #rz-blur-home .et_pb_module_header {
      font-size:23px;
  }

  #rz-blur-home .et_pb_blurb {
    min-height: 365px;
  }
}



#contatti .et_pb_row {
    width: 100%;
}

.blur-contatti .et_pb_module_header {
    padding-bottom:0;
}

.blur-contatti .et_pb_blurb_container {
    padding-left:0;
}

/* swap colonne per mobile */

@media all and (max-width: 980px) {

    /*** wrap row in a flex box ***/
    .custom_row {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap; /* Safari 6.1+ */
    flex-wrap: wrap;
    }
    
    /*** custom classes that will designate the order of columns in the flex box row ***/

    .swap-row {
        display:grid;
    }

    .first-on-mobile {
    -webkit-order: 1;
    order: 1;
    }
    
    .second-on-mobile {
    -webkit-order: 2;
    order: 2;
    }
    
    .third-on-mobile {
    -webkit-order: 3;
    order: 3;
    }
    
    .fourth-on-mobile {
    -webkit-order: 4;
    order: 4;
    }
    /*** add margin to last column ***/
    .custom_row:last-child .et_pb_column:last-child {
    margin-bottom: 30px;
    }

    /* classi mobile per footer */
    .footer-info .et_pb_text_inner,
    .footer-menu .et_pb_text_inner {
        text-align:center;
    }
 
}


/* testata 80 e 20 su mobile */ 

@media (max-width: 980px) {
  /* Colonne 80/20 */
  #rs-header .et_pb_column_0_tb_header {
    width: 80% !important;
  }
  #rs-header .et_pb_column_1_tb_header {
    width: 20% !important;
    text-align: right;
  }

  /* Nasconde il menu a tendina standard */
  #rs-header .et_mobile_menu {
    display: none !important;
  }

  /* Quando il menu mobile è aperto */
  #rs-header .mobile_nav.opened .et_mobile_menu {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff; /* sfondo bianco, puoi cambiare */
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;     /* centra orizzontalmente */
    z-index: 99999;
    padding: 2rem;
  }

  /* Stile voci menu overlay */
  #rs-header .mobile_nav.opened .et_mobile_menu li {
    margin: 1rem 0;
    font-size: 1.5rem; /* ingrandisci se vuoi */
    text-align: center;
  }

  /* Chiudi icona hamburger sempre visibile */
  #rs-header .mobile_menu_bar {
    z-index: 100000; 
    position: relative;
  }
}

/* privacy e cookie policy */

#content-area {
  font-family: 'kurye',Helvetica,Arial,Lucida,sans-serif;
}

#content-area .main_title {
  text-transform: uppercase;
}

#cmplz-document {
  max-width: 100%;
  margin-bottom:50px;
}