/*
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
*/

/*------------------------------------------------*/
/*-----------------[ HEADER MENU ]----------------*/
/*------------------------------------------------*/

/* Stile base per le voci di menu:
   - Posizionamento relativo per gestire la pseudo-linea
   - Padding per distanziare la linea dal testo
   - Colore testo bianco
   - Transizione fluida sul colore */
.dl-menu-style ul.et-menu > li > a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding-bottom: 5px;
  color: white;
  transition: color 0.3s ease;
}

/* Pseudo-elemento per la linea sottostante:
   - Nasce al centro con larghezza 0
   - Colore bianco
   - Transizione fluida per larghezza, posizione e colore */
.dl-menu-style ul.et-menu > li > a:before {
  position: absolute;
  content: '';
  display: block;
  z-index: -1;
  background: white;
  width: 0;
  height: 5px;
  bottom: 0;
  border-radius: 5px;
  left: 50%;
  transition: 0.4s cubic-bezier(0.25, 0.1, 0, 2.02), background 0.3s ease;
}

/* Hover o voce attiva:
   - La linea si espande completamente da sinistra a destra */
.dl-menu-style ul.et-menu > li > a:hover:before,
.dl-menu-style ul.et-menu > li.current-menu-item > a:before {
  width: 105%;
  left: -2.5%;
}


/* Colore del testo delle voci del menu mobile */
.et_mobile_menu li a {
  color: #ffffff !important; /* rosso, personalizzabile */
}

/* Bordi tra le voci (opzionale) */
.et_mobile_menu li {
  border-bottom: 1px solid #ddd;
}



/*------------------------------------------------*/
/*-----------------[VERTICAL MENU]----------------*/
/*------------------------------------------------*/
/* Vertical Menu for Theme Builder*/
#page-container #et-boc .dl-v-menu .et_pb_menu_inner_container,
#page-container #et-boc .dl-v-menu .et_pb_menu__wrap,
#page-container #et-boc .dl-v-menu .et_pb_menu__menu,
#page-container #et-boc .dl-v-menu.et_pb_menu .et_pb_menu__menu>nav,
#page-container #et-boc .dl-v-menu.et_pb_menu .et_pb_menu__menu>nav>ul {
  display: block;
}

#page-container #et-boc .dl-v-menu .et_mobile_nav_menu {
  display: none;
}
#page-container #et-boc .dl-v-menu.et_pb_menu .et-menu {
  margin:0;
}

#page-container #et-boc .dl-v-menu ul.sub-menu {
  position: relative;
  visibility: visible;
  opacity: 1;
  top: 0;
  left: 0;
  width: auto;
  border-top: none;
  box-shadow: none;
  display:none;
  transition: none;
  padding: 0;
  margin: 0 0 0 20px;
  border-radius: 0px;
}
#page-container #et-boc .dl-v-menu ul.sub-menu li {
  padding: 0;
  margin-top:8px;
}
#page-container #et-boc .dl-v-menu ul.sub-menu a {
  text-transform: none;
  width:100%;
}

#page-container #et-boc .dl-v-menu li {
  display: block;
  padding: 0;
}

#page-container #et-boc .dl-v-menu li a {
  line-height: initial;
  display: block;
  padding: 14px 20px;
  transition: all .3s ease-in-out;
  border-radius:0;
  color: #ffffff !important;
  font-family: 'FrutigerLTStd-Bold', Helvetica, Arial, Lucida, sans-serif;
  text-transform: capitalize !important;
}

#page-container #et-boc .dl-v-menu li.current-menu-item a {
  opactiy: 0.75	;
}

#page-container #et-boc .dl-v-menu .menu-item-has-children>a:first-child:after {
  display: none;
}

#page-container #et-boc span.dl-sub-toggle {
  font-family: 'ETmodules';
  display: inline-block;
  position: absolute;
  top: 14px;
  right: 10px;
  line-height: 18px;
  text-align: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  transform: scale(1.2);
  transition: .3s ease;
  cursor: pointer;
}
#page-container #et-boc span.dl-sub-toggle:hover {
  background:transparent;
}
#page-container #et-boc .toggled > span.dl-sub-toggle {
  transform: scale(1.2) rotate(180deg);
}

#page-container #et-boc .dl-v-menu a:hover {
  color:#fff !important;
}

/* sezione colori per i primi 7 chiald element*/
#page-container #et-boc .dl-v-menu li:nth-child(1) a {
  background: #8900bc; /* Set background color for first item */
}
#page-container #et-boc .dl-v-menu li:nth-child(2) a {
  background: #0000ff; /* Set background color for second item */
}
#page-container #et-boc .dl-v-menu li:nth-child(3) a {
  background: #89bcde; /* Set background color for third item */
}
#page-container #et-boc .dl-v-menu li:nth-child(4) a {
  background: #66bc42; /* Set background color for four item */
}
#page-container #et-boc .dl-v-menu li:nth-child(5) a {
  background: #ffef00; /* Set background color for five item */
  color: #000 !important;
}
#page-container #et-boc .dl-v-menu li:nth-child(6) a {
  background: #ff6609; /* Set background color for six item */
}
#page-container #et-boc .dl-v-menu li:nth-child(7) a {
  background: #ff0900; /* Set background color for seven item */
}

#page-container #et-boc .dl-v-menu li:nth-child(1) a:hover {
  background: rgba(137,0,188,0.5); /* Set background color for first item */
}
#page-container #et-boc .dl-v-menu li:nth-child(2) a:hover {
  background: rgba(0,0,255,0.5); /* Set background color for second item */
}
#page-container #et-boc .dl-v-menu li:nth-child(3) a:hover {
  background: rgba(137,188,222,0.5); /* Set background color for third item */
}
#page-container #et-boc .dl-v-menu li:nth-child(4) a:hover {
  background: rgba(102,188,66,0.5); /* Set background color for four item */
}
#page-container #et-boc .dl-v-menu li:nth-child(5) a:hover {
  background: rgba(255,239,0,0.5); /* Set background color for five item */
}
#page-container #et-boc .dl-v-menu li:nth-child(6) a:hover {
  background: rgba(255,102,9,0.5); /* Set background color for six item */
}
#page-container #et-boc .dl-v-menu li:nth-child(7) a:hover {
  background: rgba(255,9,0,0.5); /* Set background color for seven item */
}

#page-container #et-boc .dl-v-menu li:nth-child(1) ul.sub-menu li a:hover {
  background: rgba(137,0,188,0.5); /* Set background color for first item */
}
#page-container #et-boc .dl-v-menu li:nth-child(2) ul.sub-menu li a:hover {
  background: rgba(0,0,255,0.5); /* Set background color for second item */
}
#page-container #et-boc .dl-v-menu li:nth-child(3) ul.sub-menu li a:hover {
  background: rgba(137,188,222,0.5); /* Set background color for third item */
}
#page-container #et-boc .dl-v-menu li:nth-child(4) ul.sub-menu li a:hover {
  background: rgba(102,188,66,0.5); /* Set background color for four item */
}
#page-container #et-boc .dl-v-menu li:nth-child(5) ul.sub-menu li a:hover {
  background: rgba(255,239,0,0.5); /* Set background color for five item */
}
#page-container #et-boc .dl-v-menu li:nth-child(6) ul.sub-menu li a:hover {
  background: rgba(255,102,9,0.5); /* Set background color for six item */
}
#page-container #et-boc .dl-v-menu li:nth-child(7) ul.sub-menu li a:hover {
  background: rgba(255,9,0,0.5); /* Set background color for seven item */
}

/* Default background for active sub-menu item */
#page-container #et-boc .dl-v-menu ul.sub-menu li.sub-active a {
  background-color: rgba(0, 0, 0, 0.2) !important;
  opacity: 1 !important;
}

/* Keep section-specific hover effect after page reload */
#page-container #et-boc .dl-v-menu li:nth-child(1) ul.sub-menu li.sub-active a {
  background: rgba(137,0,188,0.5) !important;
  opacity: 1 !important;
}
#page-container #et-boc .dl-v-menu li:nth-child(2) ul-sub-menu li.sub-active a {
  background: rgba(0,0,255,0.5) !important;
  opacity: 1 !important;
}
#page-container #et-boc .dl-v-menu li:nth-child(3) ul-sub-menu li.sub-active a {
  background: rgba(137,188,222,0.5) !important;
  opacity: 1 !important;
}
#page-container #et-boc .dl-v-menu li:nth-child(4) ul-sub-menu li.sub-active a {
  background: rgba(102,188,66,0.5) !important;
  opacity: 1 !important;
}
#page-container #et-boc .dl-v-menu li:nth-child(5) ul-sub-menu li.sub-active a {
  background: rgba(255,239,0,0.5) !important;
  opacity: 1 !important;
}
#page-container #et-boc .dl-v-menu li:nth-child(6) ul-sub-menu li.sub-active a {
  background: rgba(255,102,9,0.5) !important;
  opacity: 1 !important;
}
#page-container #et-boc .dl-v-menu li:nth-child(7) ul-sub-menu li.sub-active a {
  background: rgba(255,9,0,0.5) !important;
  opacity: 1 !important;
}

/* Style for all sub-menu links */
#page-container #et-boc .dl-v-menu ul.sub-menu li a {
  padding: 5px; /* Adds some space inside each sub-menu item */
  color: #000000 !important; /* Ensures sub-menu text is black */
  background: transparent; /* Removes any background color */
  font-family: 'FrutigerLTStd-Bold', Helvetica, Arial, Lucida, sans-serif; /* Defines the font */
  font-weight: 400; /* Sets the font weight to normal (not bold) */
}

/* Removes extra padding from sub-menus */
#page-container #et-boc ul.sub-menu {
  padding-top: 0px !important; /* Removes unnecessary space at the top */
  padding-bottom: 0px !important; /* Removes unnecessary space at the bottom */
}

/*------------------------------------------------*/
/*------[ RESPONSIVE MENU FOR MOBILE ]------------*/
/*------------------------------------------------*/
@media (max-width: 1024px) {
	
	#page-container #et-boc .dl-v-menu .et-menu-nav {
    display: none !important;
  }
	
  /* Ensure sub-menus are always hidden initially but remain visible */
  #page-container #et-boc .dl-v-menu ul.sub-menu {
    display: none !important;
    visibility: visible !important;
    position: relative;
  }

  /* Show sub-menus when their parent is toggled */
  #page-container #et-boc .dl-v-menu li.toggled ul.sub-menu {
    display: block !important;
  }

  /* Ensure the toggle icon is visible */
  #page-container #et-boc span.dl-sub-toggle {
    display: inline-block !important;
  }

  /* Ensure the mobile menu is visible when needed */
  #page-container #et-boc .dl-v-menu .et_mobile_nav_menu {
    display: block !important;
    visibility: visible !important;
  }
}

/*------------------------------------------------*/
/*------------------[TABELLA]--------------------*/
/*------------------------------------------------*/
.conf-table-style {
	width: 100%;
}
.conf-table-style table {
 	border-collapse: collapse;
	text-align: left;
	vertical-align: middle;
	border: 1px solid black;
	font-family: 'FrutigerLTStd-Roman', Helvetica, Arial, Lucida, sans-serif;
	
}
.conf-table-style th, td {
	border: 1px solid black;
	padding: 10px;
}


.conf-table-style caption {
  font-weight: bold;
  font-size: 24px;
  text-align: left;
  color: #333;
	margin-bottom: 16px;
}

.conf-table-style thead {
  background-color: #333;
  color: white;
}


.conf-table-style tbody tr:nth-child(odd) {
  background-color: #fff;
}

.conf-table-style tbody tr:nth-child(even) {
  background-color: #eee;
}
@media (max-width: 1024px) {
	.conf-table-style  {
		font-size: 8px;
	}
}
/*------------------------------------------------*/
/*------------------[COLUMNMOBILE]--------------------*/
/*------------------------------------------------*/
/*** Change Mobile Columns By VictorDuse.com.com ***/

/* 2 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .two-col-mob .et_pb_column {
        width:47.25% !important;
    }
    
html .et-db .two-col-mob .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }

    html .et-db .two-col-mob .et_pb_column:not(:nth-child(2n)) {
            margin-right:5.5% !important;
    }
}

/* 3 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .three-col-mob .et_pb_column {
        width:29.6667% !important;
    }

    html .et-db .three-col-mob .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }

    html .et-db .three-col-mob .et_pb_column:not(:nth-child(3n)) {
        margin-right:5.5% !important;
    }
}

/* 4 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .four-col-mob .et_pb_column {
        width:20.875% !important;
    }

html .et-db .four-col-mob .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }

    html .et-db .four-col-mob .et_pb_column:not(:nth-child(4n)) {
        margin-right:5.5% !important;
    }
}

/* 5 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .five-col-mob .et_pb_column {
        width:15.6% !important;
    }

    html .et-db .five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }

    html .et-db .five-col-mob .et_pb_column:not(:nth-child(5n)) {
        margin-right:5.5% !important;
    }
}

/* 6 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .six-col-mob .et_pb_column {
        width:12.083% !important;
    }

    html .et-db .six-col-mob .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }

    html .et-db .six-col-mob .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}

/*** Change Tablet Columns By VictorDuse.com.com ***/

/* 1 Column Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .one-col-tab .et_pb_column {
        margin-right:0 !important;
        width:100% !important;
    }
    
        html .et-db .one-col-tab .et_pb_column:not(:last-child) {
        margin-bottom:30px !important;
    }
}

/* 2 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .two-col-tab .et_pb_column {
        width:47.25% !important;
    }

.two-col-tab .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }

    html .et-db .two-col-tab .et_pb_column:not(:nth-child(2n)) {
        margin-right:5.5% !important;
    }
}

/* 3 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .three-col-tab .et_pb_column {
        width:29.6667% !important;
    }

html .et-db .three-col-tab .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }

    html .et-db .three-col-tab .et_pb_column:not(:nth-child(3n)) {
        margin-right:5.5% !important;
    }
}

/* 4 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .four-col-tab .et_pb_column {
        width:20.875% !important;
    }

html .et-db .four-col-tab .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }

    html .et-db .four-col-tab .et_pb_column:not(:nth-child(4n)) {
        margin-right:5.5% !important;
    }
}

/* 5 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .five-col-tab .et_pb_column {
        width:15.6% !important;
    }

.five-col-tab .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }
    
    html .et-db .five-col-tab .et_pb_column:not(:nth-child(5n)) {
        margin-right:5.5% !important;
    }
}

/* 6 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .six-col-tab .et_pb_column {
        width:12.083% !important;
    }

    html .et-db .six-col-tab .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }

    html .et-db .six-col-tab .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}

/*------------------------------------------------*/
/*---[Codice pannello trova il prodotto]----------*/
/*------------------------------------------------*/

.floating-button {
  position: fixed;
  top: 40%;
  left: 0;
  background-color: #2c3e50;
  color: #fff;
  padding: 30px 10px 30px 5px;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  transition: background 0.3s;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 2px 2px 10px rgba(0,0,0,0.3);
  font-family: 'FrutigerLTStd-BlackCn', Helvetica, Arial, Lucida, sans-serif;
}

.floating-button:hover {
  background-color: #34495e;
}

#slide-menu {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100%;
  background-color: #fff;
  box-shadow: 5px 0 15px rgba(0,0,0,0.2);
  transition: left 0.3s ease-in-out;
  z-index: 9998;
  padding: 100px 0px 0px 0px;
  overflow-y: auto;
  font-family: 'FrutigerLTStd-BlackCn', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  width: 90%;
  max-width: 400px;
}

#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9997;
}

@media (min-width: 768px) {
  #slide-menu {
    width: 400px;
    left: -400px;
  }
}

@media (max-width: 980px) {
  #page-container #et-boc .dl-v-menu .et_mobile_nav_menu {
    display: none !important;
    visibility: hidden !important;
  }
}

@media only screen and (max-width: 767px) {
  .dl-v-menu, .dl-v-menu.et_pb_menu_0 {
    display: block !important;
  }
}

@media (max-width: 1024px) {
  #page-container #et-boc .dl-v-menu .et-menu-nav {
    display: block !important;
  }
}

@media (min-width: 1024px) {
  #slide-menu {
    width: 500px;
    left: -500px;
  }

  .et_mobile_nav_menu {
    display: none !important;
  }
}



/*------------------------------------------------*/
/*--------------------[RWD]-----------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*--[ADD TUTORIAL CUSTOMIZATION BELOW THIS LINE]--*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/

.select-personal .et-db .et-l .et_pb_contact_field[data-filtertype="acfselectmulitple"]:after, 
.et-db .et-l .et_pb_contact_field[data-filtertype="select"]:after, 
.et-db .et-l .et_pb_contact_field .divi-acf-map-inline-radius-wrapper:after,  
.et-db .et-l .et_pb_contact_select:after {
	border-top-color: transparent;
}


