/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ======================= */
/*         HOMEPAGE        */
/* ======================= */

.img-link-home {
	box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.elementor-button-icon svg {
	width: 9px;
} /* dimensione icona pulsante */

.link-footer p a {
	color: #ffffff;
} /* colore link contatti footer */

.link-footer p a:hover {
	color: #27a22d;
} /* colore link contatti footer */


/* ========================= */
/*          MENU             */
/* ========================= */
/* TOPBAR */
.topbar{
  transition: opacity 0.3s ease;
}
.topbar.hide{
  opacity: 0;
  pointer-events: none;
}


/* MENU DESKTOP */
.menu-home-ita{
  position: relative;
  width: 100%;
  z-index: 999;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.menu-home-ita.fixed{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-home-ita:hover{
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.menu-home-ita a,
.menu-home-ita .elementor-item{
  color: #1f1f1f !important;
  background: transparent !important;
  transition: color 0.2s ease;
  text-decoration: none;
}

.menu-home-ita a:hover,
.menu-home-ita .elementor-item:hover{
  color: #27a22d !important;
}

.menu-home-ita .elementor-item-active,
.menu-home-ita .current-menu-item > a,
.menu-home-ita .current-menu-ancestor > a{
  color: #27a22d !important;
  background: transparent !important;
}

/* Dropdown */
.menu-home-ita ul.elementor-nav-menu--dropdown,
.menu-home-ita ul.elementor-nav-menu--dropdown ul,
.menu-home-ita ul ul,
.menu-home-ita ul ul ul{
  background: #ffffff !important;
  border: none;
  box-shadow: none !important;
}

.menu-home-ita ul.elementor-nav-menu--dropdown a,
.menu-home-ita ul.elementor-nav-menu--dropdown .elementor-sub-item,
.menu-home-ita ul ul a,
.menu-home-ita ul ul .elementor-sub-item{
  color: #1f1f1f !important;
  background: transparent !important;
}

.menu-home-ita ul.elementor-nav-menu--dropdown a:hover,
.menu-home-ita ul.elementor-nav-menu--dropdown .elementor-sub-item:hover,
.menu-home-ita ul ul a:hover,
.menu-home-ita ul ul .elementor-sub-item:hover{
  color: #27a22d !important;
}
.menu-home-ita .e-font-icon-svg.e-fas-caret-down,
.menu-home-ita .e-font-icon-svg.e-fas-caret-down *{
  color: #1f1f1f !important;
  fill: #1f1f1f !important;
  stroke: #1f1f1f !important;
} /* DESKTOP: caret dropdown (freccia) */
.menu-home-ita:hover .e-font-icon-svg.e-fas-caret-down,
.menu-home-ita:hover .e-font-icon-svg.e-fas-caret-down *{
  color: #1f1f1f !important;
  fill: #1f1f1f !important;
  stroke: #1f1f1f !important;
} /* Desktop hover container: caret diventa scuro */

.menu-home-ita li.menu-item-has-children:hover > a .e-font-icon-svg.e-fas-caret-down,
.menu-home-ita li.menu-item-has-children:hover > a .e-font-icon-svg.e-fas-caret-down *{
  color: #27a22d !important;
  fill: #27a22d !important;
  stroke: #27a22d !important;
} /* Desktop hover sulla singola voce con submenu: caret verde */

/*******************
 * MENU MOBILE
 *******************/
#menu-home-ita-mob{
  position: relative;
  width: 100%;
  z-index: 999;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

#menu-home-ita-mob.fixed{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Link mobile */
#menu-home-ita-mob a,
#menu-home-ita-mob .elementor-item{
  color: #1f1f1f !important;
  text-decoration: none;
  transition: color 0.18s ease;
}

#menu-home-ita-mob a:hover,
#menu-home-ita-mob .elementor-item:hover{
  color: #27a22d !important;
}

/* (opzionale) evitano transizioni strane su svg */
#menu-home-ita-mob svg.icon-burgerbutton,
#menu-home-ita-mob svg.icon-burgerbutton *{
  transition: fill 0.2s ease, stroke 0.2s ease, color 0.2s ease;
}


/* ========================= */
/*      APPROFONDIMENTO      */
/* ========================= */

.elementor-post-date {
   font-size: 14px;
   margin: 0;
   padding: 0;
}

/* ========================= */
/*	 BANNER PROGETTO FUOCO   */
/* ========================= */
/* Wrapper fixed creato via JS */
.pf-banner-wrap{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;            /* cookie banner sopra */
  display: flex;
  justify-content: center;
  padding: 10px;
  pointer-events: none;
}

/* Il widget immagine (ora diventa "contenitore" relativo) */
.pf-banner-wrap .banner-progettofuoco{
  pointer-events: auto;
  display: block;
  max-width: min(980px, 100%);
  width: 100%;
  margin: 0 !important;
  position: relative;      /* ✅ fondamentale: la X si posiziona sul banner */
}

.pf-banner-wrap .banner-progettofuoco img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* X posizionata sul banner (non sul wrapper) */
.pf-banner-wrap .pf-banner-close{
  pointer-events: auto;
  position: absolute;
  top: -40px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 34px;
  font-size: 22px;
  color: #fff;
}
.pf-banner-wrap .pf-banner-close:hover {
  background: transparent;
}

/* Mobile */
@media (max-width: 767px){
  .pf-banner-wrap .pf-banner-close{
    top: -40px;
    right: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 20px;
  }
}

/* ========================= */
/*         CONTATTI          */
/* ========================= */

.info-contatti a,
.modulo-contatto a {
    color: #27a22d;
}

.info-contatti a:hover,
.modulo-contatto a:hover {
    color: #1f1f1f;
}

.modulo-contatto {
    color: #ffffff;
}

.modulo-contatto input[type="email"],
.modulo-contatto input[type="text"],
.modulo-contatto select,
.modulo-contatto textarea {
    font-size: 15px;
    border: 1px solid #b2b2b6;
    background-color: transparent;
    color: #ffffff;
    margin-bottom: 15px;
    padding: 8px 10px;
    box-sizing: border-box;
    width: 100%;
} /* CAMPI FORM (input, select, textarea) */

.modulo-contatto input::placeholder,
.modulo-contatto textarea::placeholder {
    color: #b2b2b6;
    opacity: 1;
} /* Placeholder grigio chiaro */

.modulo-contatto input[type="email"]:focus,
.modulo-contatto input[type="text"]:focus,
.modulo-contatto select:focus,
.modulo-contatto textarea:focus {
    border-color: #999999;
    outline: none;
} /* Stato focus (quando clicchi sul campo) */

.modulo-contatto input[type="checkbox"] {
    accent-color: #27a22d; /* spunta verde */
} /* CHECKBOX */

.modulo-contatto input[type="submit"] {
    background-color: #27a22d;
    color: #ffffff;
    border: 1px solid #27a22d;
    padding: 10px 40px;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
} /* BOTTONE INVIA */

.modulo-contatto input[type="submit"]:hover {
    background-color: transparent;
    color: #27a22d;
    border: 1px solid #27a22d;
}

.modulo-contatto a:hover {
    color: #ffffff !important;
} /* Hover del link nel form: diventa bianco */



