/*
 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
*/
 
.et_pb_menu .et-menu > li {
    padding-left: 20px;
    padding-right: 20px;
}
 
.white-link {
    color:#fff;
}

.white-link:hover,
.galli-footer a:hover {
    text-decoration: underline;
}

.galli-form .et_pb_contact_field_options_title {
    color: #fff;
}

.galli-form .et_pb_contact_field_checkbox label {
    font-size:12px !important;
}

.galli-offset-section {
    top: -92px;
}

.galli-last-section {
    top: 2px;
}

#galli-menu-home a {
    color:#fff;
}

.et_pb_sticky #galli-menu-home a {
    color:#333;
}

.galli-servizi-blur .et_pb_main_blurb_image {
    margin-bottom: 0;
}

.page-id-360 .et_pb_main_blurb_image {
    display: none;
}

/* cambia il logo sticky nella home */
#galli-home-head.et_pb_sticky .et_pb_menu__logo img  {
    content: url(https://www.agenzia-galli.it/wp-content/uploads/2025/06/galli_LOGO.png);
}


.special .et_pb_image_wrap::after {
  content: "";
  position: absolute;
  /*top: 50%;
  left: 50%;*/
  top:10px;
  right:-65px;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  background-image: url('https://www.agenzia-galli.it/wp-content/uploads/2025/09/solo-da-galli.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  pointer-events: none;
}

/* form */

.et-pb-contact-message {
    color:#fff;
}


/* coookie policy */

#cmplz-document {
    max-width:100%;
}

#cmplz-document p {
    font-size:16px !important;
}

#cmplz-document h2 {
    font-size:25px;
}


/* ===== BLOCCO RESPONSIVE HEADER GALLI ===== */



#galli-header .et_pb_row_0_tb_header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
}

/* Evita che le colonne vadano a capo */
#galli-header .et_pb_row_0_tb_header .et_pb_column {
    width: auto !important;
    flex: 0 0 auto !important;
}


#galli-header .et_pb_row::after {
    display:none;
}
/*
@media only screen and ( max-width: 767px ) {
    #galli-header {
        padding-left:34px;
    }
}

@media only screen and ( min-width: 768px ) and ( max-width: 980px ) {
    #galli-header {
        padding-left:117px;
    }
}*/

/* Impedisce il comportamento responsive standard di Divi */
@media all and (max-width: 980px) {

    #galli-header .et_pb_row_0_tb_header {
        display: flex !important;
        flex-direction: row !important;
    }

    #galli-header .et_pb_row_0_tb_header .et_pb_column {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Ridimensiona il menu per evitare sovrapposizioni */
    #galli-header .et_pb_menu__menu {
        flex: 0 1 auto !important;
    }

    /* Logo sinistro e destro ridotti per sicurezza */
    #galli-header .et_pb_image img {
        max-width: 120px;
        height: auto;
    }
}

/* Ulteriore protezione per schermi molto piccoli */
@media all and (max-width: 480px) {
    #galli-header .et_pb_image img {
        max-width: 95px;
    }
}


@media only screen and ( max-width: 1740px ) { 
    #galli-header .et_pb_row {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* ===========================================
   MENU MOBILE A TUTTA LARGHEZZA - GALLI HEADER
   =========================================== */

#galli-header .et_mobile_nav_menu {
    position: relative !important;
    width: 100% !important;
}

/* Dropdown che si apre */
#galli-header .et_mobile_menu {
  position: absolute !important;
  top: 100% !important;
  /*left: 0 !important;*/
  width: 90vw !important;
  max-width: 90vw !important;
  background: #ffffff !important;
  padding: 20px 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 99999 !important;
  /*margin-left: -40vw;*/
  border-top: 3px solid #C10F1B;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

/* Ogni voce di menu */
#galli-header .et_mobile_menu li a {
    padding: 15px 20px !important;
    display: block !important;
    width: 100% !important;
    font-size: 18px !important;
    text-align: center;
}

/* Evita che il contenitore resti stretto */
#galli-header .mobile_nav {
    width: 100% !important;
}




/* fix per box in home */ 

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

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

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

    #galli-blur-home .et_pb_blurb p {
        line-height: 1.6em;
  }
}

@media only screen and ( min-width: 981px ) and ( max-width: 1300px) { 
      #galli-blur-home .et_pb_blurb {
        min-height: 465px;
     }
}

@media only screen and ( min-width: 1301px ) and ( max-width: 1900px) { 
      #galli-blur-home .et_pb_blurb {
        min-height: 365px;
     }
}








