/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/*Add your own styles here:*/
#main {
  padding-top: 0 !important;
}

.av-main-nav > li.current_page_item > a {
color: #80bc00 !important;
}

/* Color section container width */
#section-container-width .container {
  width: 100% !important;
  min-width: 100%;
  padding: 0;
  margin: 0;
}

.container_wrap {
  border-top-width: 0px;
}

#scroll-top-link, 
#av-cookie-consent-badge {
  border: none;
}

#header_meta {
  background: #1a1a1a !important;
  border-color: transparent !important;
}

.avia-button {
  background-color: #75ab00 !important;
}

/* Underline link remove  */

a:hover, a:focus, a:visited, #top .av_inherit_color a {
    text-decoration: none !important;
}

.main_color a, .alternate_color a {
    text-decoration: none !important ;
}

#header_meta .sub_menu .menu a {
    color: #80bc00 !important;
}

/* Nasconde la data e il separatore nel masonry */
.av-masonry-date.meta-color,
.av-masonry-text-sep.text-sep-author {
    display: none !important;
}

/* UPPERCASE */

.upperkase .av-special-heading-tag {
    text-transform: uppercase !important;
}

.upperkase {text-transform: uppercase !important;}

/* JUMBOTRON FOOTER */

#footer_jumbotron .promo-box-content {
  max-width: 45%;
}

#footer_jumbotron .av-section-color-overlay {
  max-width: 50%;
  left: auto !important;
  right: 0 !important;
}

@media only screen and (max-width: 989px){
	#footer_jumbotron .av-section-color-overlay {
  max-width: 100%;
}
}

#footer_jumbotron .avia_textblock p {
  font-size: 30px !important;
  color: #fff !important;
}

/* PRODOTTI_ DIV */

@media only screen and (max-width: 767px) {
    #prodotti_div .av-special-heading,
    #prodotti_div .av-special-heading-tag,
    #prodotti_div h2 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
    }
    
    #prodotti_div .flex_column {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* DIVISORE SVG WAVES */

/* Modifiche per smartphone e tablet */
@media only screen and (max-width: 767px) {
    /* Nasconde l'onda SVG */
    #apetta .avia-divider-svg {
        display: none !important;
    }
    
    /* Mantiene l'altezza del container */
    #apetta .container {
        height: 420px !important;
    }
    
    /* Riduce i margini della colonna per far salire il testo */
    #top .flex_column.apetta-text-column {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
    }
    
    /* Riduce ulteriormente il margin-top del titolo */
    #top .av-special-heading.apetta-heading {
        margin-top: 0px !important;
    }
}

/* Ottimizzazioni specifiche per smartphone piccoli */
@media only screen and (max-width: 479px) {
    #top .flex_column.apetta-text-column {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }
}

/* Nasconde la data e il separatore nel masonry */
.av-masonry-date.meta-color,
.av-masonry-text-sep.text-sep-author {
    display: none !important;
}

/* Font masonry */
.av-masonry-entry-title {
    font-size: 20px !important;
    font-weight: normal !important;
}

/* Posizionamento assoluto header su smartphone */
@media only screen and (max-width: 767px) {
    #av_section_1.header_custom .flex_column {
        position: absolute !important;
        top: 40px !important; /* Distanza dal top - regola come preferisci */
        left: 20px !important;
        width: auto !important;
    }
}
/* Rende visibile e ottimizza il pulsante scroll-to-top su mobile */
@media only screen and (max-width: 767px) {
    #scroll-top-link {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        bottom: 0px !important; /* Regola la distanza dal basso */
        right: 20px !important; /* Regola la distanza da destra */
        width: 40px !important; /* Dimensione del pulsante */
        height: 40px !important;
		display: flex !important;
    	align-items: center !important;
    	justify-content: center !important;
    }
    
    #scroll-top-link svg {
        width: 20px !important;
        height: 20px !important;
		margin: 0 auto !important;
    }
}

/* BURGER MENU */

/* Voce di menu attiva - testo verde senza sfondo */
#av-burger-menu-ul > li.current-menu-item a,
#av-burger-menu-ul > li.current_page_item a {
    background-color: transparent !important;
    color: #80bc00 !important;
}

/* Hover - testo in verde */
#av-burger-menu-ul > li a:hover {
    background-color: transparent !important;
    color: #80bc00 !important;
}

/* Active e Focus - rimuove sfondo bianco quando clicchi/premi */
#av-burger-menu-ul > li a:active,
#av-burger-menu-ul > li a:focus {
    background-color: transparent !important;
    color: #80bc00 !important;
}

/* Colora anche il bullet point in verde in tutti gli stati */
#av-burger-menu-ul > li.current-menu-item .avia-bullet,
#av-burger-menu-ul > li.current_page_item .avia-bullet,
#av-burger-menu-ul > li a:hover .avia-bullet,
#av-burger-menu-ul > li a:active .avia-bullet,
#av-burger-menu-ul > li a:focus .avia-bullet {
    background-color: #80bc00 !important;
    border-color: #80bc00 !important;
}

/* Opzionale: colora anche la freccia in verde */
#av-burger-menu-ul > li.current-menu-item .avia-arrow,
#av-burger-menu-ul > li.current_page_item .avia-arrow,
#av-burger-menu-ul > li a:hover .avia-arrow,
#av-burger-menu-ul > li a:active .avia-arrow,
#av-burger-menu-ul > li a:focus .avia-arrow {
    border-color: #80bc00 !important;
}

/* Dimensione max > burger menu */
@media only screen and (max-width: 850px) {.av-main-nav > li.menu-item-avia-special {
    display: block;
}
.av-main-nav > li {
    display: none;
}}

/*---------------------------------------------
	HOMEPAGE
-----------------------------------------------*/

body.home .logo,
body.page-id-734 .logo,
body.page-id-156804 .logo,
body.page-id-156805 .logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.home.scrolled .logo,
body.page-id-734.scrolled .logo,
body.page-id-156804.scrolled .logo,
body.page-id-156805.scrolled .logo {
    opacity: 1;
}

@media only screen and (max-width: 767px) {
    .flex_column.blocco-card img {
        max-width: 80px !important;
    }
    
    .flex_column.blocco-card h2 {
        font-size: 18px !important;
    }
    
    .flex_column.blocco-card {
        padding: 15px !important;
    }
}

@media only screen and (max-width: 767px) {
    /* Header trasparente */
    #header_main {
        background-color: transparent !important;
        padding-top: 10px !important;
    }
    
    .av-logo-container {
        background-color: transparent !important;
    }
    
    /* Nascondi il logo */
    .logo {
        display: none !important;
    }
    
    /* Burger menu visibile */
    .av-burger-menu-main {
        display: block !important;
    }
}
 
/*---------------------------------------------
	Pagina: LOTTA INTEGRATA
-----------------------------------------------*/

.prodotti_row .flex_cell {
  margin-bottom: 0px !important;
}

@media only screen and (max-width: 989px) {
  .prodotti_row .flex_cell {
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
}

.prodotti_row h2.av-special-heading-tag {
  font-size: 28px;
  color: #333 !important;
  font-weight: 700 !important;
  text-align:center;
}

.prodotti_row p {
  font-size: 24px;
  line-height: 35px;
  color: #333;
  font-weight: 300 !important;
}

.colonna_testo {
	min-height:0px!important; height: auto!important;
}


/*---------------------------------------------
	Pagina: RICETTE
-----------------------------------------------*/

/* Rende la figura posizionabile */
.av-masonry-entry .av-inner-masonry {
  position: relative;
}

/* Posiziona il figcaption sopra l'immagine */
.av-masonry-entry .av-inner-masonry-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Mostra il contenuto all'hover */
.av-masonry-entry:hover .av-inner-masonry-content {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Centra il contenuto */
.av-masonry-entry .av-inner-masonry-content-pos {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.av-masonry-entry .av-inner-masonry-content-pos-content {
  text-align: center;
  padding: 20px;
}

/* Nascondi la freccia */
.av-masonry-entry .avia-arrow {
  display: none;
}

/* Stile del titolo */
.av-masonry-entry .av-masonry-entry-title {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Stile data e autore */
.av-masonry-entry .av-masonry-date,
.av-masonry-entry .av-masonry-author,
.av-masonry-entry .av-masonry-text-sep {
  color: #ffffff !important;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Stile bottone carica di più */
a.av-masonry-pagination.av-masonry-load-more {
    background-color: #80bc00 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
    letter-spacing: 0.2px !important;
    font-size: 18px !important;
	margin-top: 60px !important;
}

a.av-masonry-pagination.av-masonry-load-more:hover {
    background-color: #6fa000 !important;
}

#masonry_recipes {
    text-align: center;
}

/*---------------------------------------------
	Pagina: PRODOTTI SINGOLI
-----------------------------------------------*/


/* Breakpoint dettaglio prodotti 1198px */
@media only screen and (max-width: 1198px) {
    /* Forza entrambe le colonne a larghezza piena */
    #dettaglio_prodotti .flex_column.av_two_third,
    #dettaglio_prodotti .flex_column.av_one_third {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Spazio tra le colonne quando in verticale */
    #dettaglio_prodotti .flex_column.av_one_third {
        margin-top: 30px !important;
    }
}

/* Mantiene il layout affiancato sopra 1198px */
@media only screen and (min-width: 1199px) {
    #dettaglio_prodotti .flex_column.av_two_third,
    #dettaglio_prodotti .flex_column.av_one_third {
        display: inline-block !important;
        float: left !important;
    }
}

/*---------------------------------------------
	Pagina: CONTATTI
-----------------------------------------------*/

/* Breakpoint 1079px */
@media only screen and (max-width: 1079px) {
    /* Contenitore parent layout a colonna */
    .form_contatti.flex_column_div {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Seconda colonna (verde) full width */
    .form_contatti ~ .flex_column {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 30px !important;
    }
}

/* > 1079px colonne affiancate */
@media only screen and (min-width: 1080px) {
    .form_contatti.flex_column_div,
    .form_contatti ~ .flex_column {
        display: inline-block !important;
    }
}

/*---------------------------------------------
    Pagina: AZIENDA - Sezione certificazioni
-----------------------------------------------*/

/* Ammorbidisce l'onda SVG su mobile */
@media only screen and (max-width: 767px) {
    .avia-section.av-sukefbn-3c24b758c4e37b73fa1f5d237fb05045 .avia-divider-svg-top svg {
        height: 60px !important;
    }
}

/* Compatta layout certificazioni su mobile */
@media only screen and (max-width: 767px) {

    /* Nasconde le colonne spacer vuote */
    #av_section_5 .av-mih7yswd-5e860fbc406731830cafdea1f44198a0,
    #av_section_5 .av-64sc6c3-900b0c9777c637aca73475330dc84eb7,
    #av_section_5 .av-iuexqkz-cba152a37f3f6a6295641d2c57109426,
    #av_section_5 .av-atk4qqb-cf5f7038790334680a28a65dd0ac8e4d,
    #av_section_5 .av-n7ei4z-8a4b0eb1c2a4914f51248da9c4f18b7b,
    #av_section_5 .av-7p3l55f-a9986880d8845774355986e9492eb62f {
        display: none !important;
    }

    /* Colonne logo: fisse a sinistra, una per riga */
    #av_section_5 .av-fui4ccz-f66da12a9924337637d3651f91d65a5f,
    #av_section_5 .av-h5hktzn-d8a6bd9b54cf146380e113e0e242e90e,
    #av_section_5 .av-xve7zpv-d98aa09397330ad9474be81cc0ae518a {
        width: 80px !important;
        float: left !important;
        clear: left !important;
        margin-top: 20px !important;
        min-height: 0 !important;
    }

    /* Colonne testo: riempiono il resto della riga */
    #av_section_5 .av-mih86esg-8e5f8767b01c0db4e652ce2ae4ae6559,
    #av_section_5 .av-d4ylqfn-2f1a6155a9d20ed15250bab13dc500b5,
    #av_section_5 .av-v75qmkz-208160a08d8a89041daf6106ba3930d9 {
        width: calc(100% - 90px) !important;
        float: right !important;
        clear: none !important;
        margin-top: 20px !important;
        padding-left: 12px !important;
        display: flex !important;
        align-items: center !important;
        min-height: 0 !important;
    }

    /* Loghi certificazione ridotti */
    #av_section_5 .avia_image {
        width: 65px !important;
        height: 65px !important;
    }

    /* Titolo certificazione */
    #av_section_5 .av_iconlist_title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }

    /* Testo descrizione */
    #av_section_5 .iconlist_content p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    /* Spacer HR invisibile superiore (tra bordo sezione e titolo) */
    #av_section_5 .av-ovmkxub-adde005d1779a458f2274c3fa55054b2 {
        height: 10px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Spazio sotto il titolo "LE NOSTRE CERTIFICAZIONI" */
    #av_section_5 .av-l9r3w9f-bef011a546851da728b2e4baa82ee543 {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Spacer HR invisibile inferiore (tra ultimo logo e bordo sezione) */
    #av_section_5 .av-68fbjf7-060b0427011cbff0db9a4dc88c292eeb {
        height: 10px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Rimuove min-height dalla sezione impostata dal builder */
    #av_section_5 {
        min-height: 0 !important;
    }
}

/*---------------------------------------------
	Pagina: CONTATTI - Burger menu scuro su mobile (IT/EN/ES)
-----------------------------------------------*/
@media only screen and (max-width: 767px) {
    html:not(.av-burger-overlay-active) #top.page-id-156458 .av-hamburger-inner,
    html:not(.av-burger-overlay-active) #top.page-id-156458 .av-hamburger-inner::before,
    html:not(.av-burger-overlay-active) #top.page-id-156458 .av-hamburger-inner::after,
    html:not(.av-burger-overlay-active) #top.page-id-157859 .av-hamburger-inner,
    html:not(.av-burger-overlay-active) #top.page-id-157859 .av-hamburger-inner::before,
    html:not(.av-burger-overlay-active) #top.page-id-157859 .av-hamburger-inner::after,
    html:not(.av-burger-overlay-active) #top.page-id-157790 .av-hamburger-inner,
    html:not(.av-burger-overlay-active) #top.page-id-157790 .av-hamburger-inner::before,
    html:not(.av-burger-overlay-active) #top.page-id-157790 .av-hamburger-inner::after {
        background-color: #1a1a1a !important;
    }
}

