/* =========================================================
   ICF Italia — Header 2026 — file del plugin icf-home-2026 (v6.5)
   Percorso: wp-content/plugins/icf-home-2026/icf-header.css
   Lo carica il plugin su tutte le pagine pubbliche. Vale per tutto il sito.
   Il comportamento "sempre fisso" si imposta in Qode Options → Header
   (tipo "Fixed"), non qui.
   Dopo ogni modifica: alza ICF_HOME_2026_VERSION nel plugin, riavvia
   PHP-FPM da Plesk e svuota WP Rocket.
   v6.1: icone social bianche, cerca e burger allineati, sottomenu a card bianca.
   v6.2: tolta la sottolineatura sotto cerca e burger.
   v6.3: pannello laterale ridisegnato; logo e menu centrati dopo lo scroll
         (desktop); pulsante MENU su mobile; niente fascia vuota sopra
         l'header su mobile da loggati.
   v6.4: più aria all'header desktop dopo lo scroll (80 px); voci del menu
         mobile ridisegnate.
   v6.5: titolo delle pagine interne non più coperto dall'header (desktop).
   ========================================================= */

/* ---------- Font unico per tutto l'header ---------- */
header.page_header,
header.page_header .header_top,
header.page_header .header_top a,
header.page_header nav.main_menu > ul > li > a,
header.page_header .drop_down .second .inner ul li a,
header.page_header .qbutton,
nav.mobile_menu ul li a,
nav.mobile_menu ul li h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ---------- Barra superiore: blu scuro della palette ---------- */
header.page_header .header_top {
  background-color: #212251 !important; /* sostituisce #1E73BE impostato inline */
}
header.page_header .header_top .header-right-widget,
header.page_header .header_top .header-right-widget a {
  color: #FFFFFF !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
header.page_header .header_top .header-right-widget a:hover,
header.page_header .header_top .header-right-widget a:focus-visible {
  color: #EFCB30 !important;
}
/* Icone social: Bridge le forza nere con selettori molto specifici
   (.dark:not(.sticky):not(.scrolled) ...), da qui le classi ripetute. */
header.page_header.page_header .header_top .header-widget .q_social_icon_holder.q_social_icon_holder i.simple_social.simple_social {
  color: rgba(255, 255, 255, .8) !important;
}
header.page_header.page_header .header_top .header-widget .q_social_icon_holder.q_social_icon_holder:hover i.simple_social.simple_social {
  color: #EFCB30 !important;
}

/* ---------- Fascia bianca: sempre bianca, anche in home ---------- */
header.page_header .header_bottom {
  background-color: #FFFFFF !important;
}
header.page_header.with_border .header_bottom {
  border-bottom: 1px solid rgba(33, 34, 81, .08);
}

/* ---------- Voci di menu ---------- */
header.page_header nav.main_menu > ul > li > a {
  color: #212251 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
}
header.page_header nav.main_menu > ul > li:hover > a,
header.page_header nav.main_menu > ul > li > a:focus-visible,
header.page_header nav.main_menu > ul > li.active > a {
  color: #2B379B !important;
}
/* Sottomenu: card bianca con filetto oro, voci con hover crema */
header.page_header .drop_down .second {
  background: transparent !important;
}
header.page_header .drop_down .second .inner {
  background: #FFFFFF !important;
  border-top: 3px solid #EFCB30 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(33, 34, 81, .16), 0 2px 6px rgba(33, 34, 81, .08) !important;
}
header.page_header .drop_down .second .inner > ul,
header.page_header .drop_down .second .inner ul li ul {
  background-color: #FFFFFF !important; /* sostituisce il blu semitrasparente di Qode Options */
  padding: 10px !important;
}
header.page_header .drop_down .narrow .second .inner ul {
  width: 250px !important;
}
header.page_header .drop_down .second .inner ul li {
  border: 0 !important;
  width: auto !important;
}
header.page_header .drop_down .second .inner ul li a,
header.page_header .drop_down .second .inner ul li h4 {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 9px !important;
  color: #212251 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  transition: background-color .18s, color .18s, padding-left .18s !important;
}
header.page_header .drop_down .second .inner ul li a span {
  color: inherit !important;
}
header.page_header .drop_down .second .inner ul li a:hover,
header.page_header .drop_down .second .inner ul li a:focus-visible,
header.page_header .drop_down .second .inner ul li.current-menu-item > a {
  background-color: #F8F0E4 !important;
  color: #2B379B !important;
  padding-left: 18px !important;
}

/* ---------- Pulsanti ACCEDI / ISCRIVITI / MIO ACCOUNT ----------
   Selettori lunghi di proposito: Bridge forza lo sfondo trasparente con
   regole !important molto specifiche. */
header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton {
  height: 40px !important;
  line-height: 38px !important;
  padding: 0 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  border-radius: 999px !important;
  border: 1px solid #212251 !important;
  transition: background-color .2s, color .2s, border-color .2s;
}
/* ACCEDI e MIO ACCOUNT: oro pieno, come i pulsanti della home */
header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton.default:not(.white) {
  background-color: #EFCB30 !important;
  border-color: #EFCB30 !important;
  color: #212251 !important;
}
header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton.default:not(.white):hover,
header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton.default:not(.white):focus-visible {
  background-color: #212251 !important;
  border-color: #212251 !important;
  color: #FFFFFF !important;
}
/* ISCRIVITI: solo bordo */
header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton.white {
  background-color: transparent !important;
  color: #212251 !important;
}
header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton.white:hover,
header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton.white:focus-visible {
  background-color: #212251 !important;
  color: #FFFFFF !important;
}
header.page_header .header_bottom_right_widget_holder .qode_button_widget + .qode_button_widget {
  margin-left: 8px;
}

/* ---------- Icone cerca e burger più grandi (brief) ---------- */
header.page_header .side_menu_button > a i,
header.page_header .mobile_menu_button i {
  font-size: 22px !important;
  color: #212251 !important;
}
/* Cerca e burger sulla stessa linea (il burger di Bridge è "inline" e
   restava 4 px più in alto); burger leggermente più grande. */
header.page_header .header_bottom .side_menu_button {
  white-space: nowrap;
  padding-left: 12px;
}
header.page_header .header_bottom .side_menu_button > a.search_button,
header.page_header .header_bottom .side_menu_button > a.side_menu_button_link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle !important;
  height: 32px !important;
  line-height: 32px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Il tema sottolinea tutti i link: con inline-flex la riga compariva sotto le icone */
header.page_header .header_bottom .side_menu_button > a,
header.page_header .header_bottom .side_menu_button > a:hover,
header.page_header .header_bottom .side_menu_button > a:focus {
  text-decoration: none !important;
}
header.page_header .header_bottom .side_menu_button > a i {
  line-height: 1 !important;
}
header.page_header .header_bottom .side_menu_button > a.side_menu_button_link i.fa-bars {
  font-size: 27px !important;
}
header.page_header .side_menu_button > a:hover i,
header.page_header .side_menu_button > a:focus-visible i {
  color: #2B379B !important;
}

/* ---------- Schermi desktop stretti (1001-1300 px) ----------
   Già oggi a circa 1100 px "SONO UN COACH" tocca ACCEDI; con i pulsanti
   più grandi si sovrapporrebbero. Qui si stringono menu e pulsanti. */
@media (min-width: 1001px) and (max-width: 1300px) {
  header.page_header nav.main_menu > ul > li > a {
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 14px !important;
  }
  header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton {
    padding: 0 14px !important;
    font-size: 12px !important;
  }
  header.page_header .header_bottom_right_widget_holder .qode_button_widget + .qode_button_widget {
    margin-left: 6px;
  }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  header.page_header nav.main_menu > ul > li > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }
  header.page_header .header_bottom_right_widget_holder .qode_button_widget a.qbutton {
    padding: 0 12px !important;
    font-size: 11px !important;
    letter-spacing: .03em !important;
  }
}

/* ---------- Header fisso: spazio sopra il contenuto (v2) ----------
   Con "Fixed" Bridge lascia 100 px sopra il contenuto, ma l'header è alto
   134 px (barra superiore 33 + fascia bianca 100 + bordo 1): i primi 34 px
   delle pagine col titolo nascosto (home, V2) finivano sotto l'header.
   Solo desktop: su mobile la barra
   superiore è nascosta. */
@media (min-width: 1001px) {
  header.page_header.fixed.has_top ~ .content.content_top_margin {
    margin-top: 134px !important;
  }
}
/* Pagine col titolo (v6.5): Bridge mette il titolo subito sotto i 100 px
   dell'header di prima; con la barra blu l'header è alto 134 px e copriva
   la parte alta del titolo. Qui il titolo scende di 40 px (34 + aria),
   72 px da loggati per la barra di WordPress. Vale per tutte le pagine. */
@media (min-width: 1001px) {
  header.page_header.fixed ~ .content .title_outer {
    padding-top: 40px;
  }
  body.admin-bar header.page_header.fixed ~ .content .title_outer {
    padding-top: 72px;
  }
}
/* Pulsanti più alti senza allungare la fascia bianca oltre i 100 px
   (il padding di 2rem è scritto nel widget dell'header). */
#bottoni_coach {
  padding: 28px 0 !important;
}

/* ---------- Desktop dopo lo scroll (v6.4) ----------
   Scorrendo, Bridge abbassa logo e menu a 57 px, ma i pulsanti tenevano la
   fascia a 98 px: logo e menu restavano in alto. Qui la fascia è di 80 px
   e logo, menu, pulsanti e icone sono tutti centrati, con aria sopra e sotto. */
@media (min-width: 1001px) {
  header.page_header.scrolled #bottoni_coach {
    padding: 20px 0 !important;
  }
  header.page_header.scrolled .header_bottom .logo_wrapper,
  header.page_header.scrolled .header_bottom .side_menu_button,
  header.page_header.scrolled nav.main_menu {
    height: 80px !important;
  }
  header.page_header.scrolled .q_logo a {
    height: 58px !important;
  }
  header.page_header.scrolled nav.main_menu > ul > li > a {
    line-height: 80px !important;
  }
}

/* ---------- Mobile (v6.3) ---------- */
@media only screen and (max-width: 1000px) {
  /* Il burger di sinistra (menu principale) diventa un pulsante "MENU",
     per distinguerlo dal burger di destra (pannello laterale). */
  header.page_header .mobile_menu_button {
    display: flex !important;
    align-items: center;
    width: auto !important;
  }
  header.page_header .mobile_menu_button > span {
    display: inline-flex !important;
    align-items: center;
    box-sizing: border-box;
    width: auto !important;
    height: 32px;
    padding: 0 14px;
    border: 2px solid #212251;
    border-radius: 999px;
    color: #212251;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s;
  }
  header.page_header .mobile_menu_button > span::after {
    content: "Menu";
  }
  header.page_header .mobile_menu_button > span i.fa-bars {
    display: none !important;
  }
  header.page_header .mobile_menu_button > span:hover,
  header.page_header .mobile_menu_button > span:active {
    background-color: #212251;
    color: #FFFFFF;
  }
  /* Logo un po' più piccolo e centrato, per lasciare spazio al pulsante
     anche sui telefoni stretti (320 px) */
  header.page_header .q_logo a {
    display: flex !important;
    align-items: center;
  }
  header.page_header .q_logo img.mobile {
    height: 46px !important;
    width: auto !important;
    margin: 0 !important;
  }
}
/* ---------- Menu mobile: voci e sottovoci (v6.4) ---------- */
@media only screen and (max-width: 1000px) {
  nav.mobile_menu > ul {
    padding: 6px 0 18px !important;
  }
  nav.mobile_menu > ul > li {
    position: relative;
    border-bottom: 1px solid rgba(33, 34, 81, .08) !important;
  }
  nav.mobile_menu > ul > li:last-child {
    border-bottom: 0 !important;
  }
  nav.mobile_menu ul li a,
  nav.mobile_menu ul li h3 {
    text-decoration: none !important;
  }
  nav.mobile_menu ul li a span {
    color: inherit !important;
  }
  /* Voci principali: maiuscolo come su desktop, blu scuro */
  nav.mobile_menu > ul > li > a,
  nav.mobile_menu > ul > li > h3 {
    padding: 15px 48px 15px 2px !important;
    color: #212251 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
  }
  nav.mobile_menu > ul > li > a:hover,
  nav.mobile_menu > ul > li.current-menu-item > a,
  nav.mobile_menu > ul > li.current-menu-ancestor > a {
    color: #2B379B !important;
  }
  /* Freccia per aprire le sottovoci: cerchio crema, oro al passaggio */
  nav.mobile_menu ul li .mobile_arrow {
    position: absolute !important;
    top: 9px !important;
    right: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50%;
    background: #F8F0E4;
    line-height: 1 !important;
    cursor: pointer;
    transition: background-color .2s;
  }
  nav.mobile_menu ul li .mobile_arrow i {
    margin: 0 !important;
    color: #212251 !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }
  nav.mobile_menu ul li .mobile_arrow:hover {
    background: #EFCB30;
  }
  nav.mobile_menu ul li:not(.has_sub) > .mobile_arrow {
    display: none !important;
  }
  /* Sottovoci: riquadro crema arrotondato */
  nav.mobile_menu ul li ul.sub_menu {
    margin: 0 0 14px !important;
    padding: 6px !important;
    border-radius: 12px;
    background: #F8F0E4 !important;
  }
  nav.mobile_menu ul li ul.sub_menu li {
    margin: 0 !important;
    border: 0 !important;
  }
  nav.mobile_menu ul li ul.sub_menu li a {
    display: block;
    padding: 10px 14px !important;
    border-radius: 8px;
    color: #212251 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    transition: background-color .18s, color .18s;
  }
  nav.mobile_menu ul li ul.sub_menu li a:hover,
  nav.mobile_menu ul li ul.sub_menu li a:focus-visible,
  nav.mobile_menu ul li ul.sub_menu li.current-menu-item > a {
    background: #FFFFFF !important;
    color: #2B379B !important;
  }
  nav.mobile_menu ul li ul.sub_menu li .mobile_arrow {
    top: 5px !important;
    background: #FFFFFF;
  }
}
/* Da loggati, sotto i 600 px la barra di WordPress scorreva via ma
   l'header ricompariva spostato di 46 px: si vedeva la pagina sopra
   l'header. Ora la barra resta fissa e l'header ricompare subito sotto.
   Ai visitatori (senza barra) non cambia nulla. */
@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
  .admin-bar header.page_header .header_inner {
    padding-top: 0 !important;
  }
  .admin-bar header.page_header.qode-animate-mobile-header {
    top: 46px !important;
  }
}

/* ---------- Pannello laterale del burger (v6.3) ----------
   Sfondo blu scuro della palette, X disegnata in CSS (quella del tema è
   un'immagine scura invisibile sul blu), Mio Account oro, liste pulite. */
section.side_menu {
  background-color: #212251 !important;
  padding: 28px 26px !important;
}
section.side_menu,
section.side_menu h6,
section.side_menu a,
section.side_menu p {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}
/* Da amministratore la barra di WordPress copriva la X */
body.admin-bar section.side_menu {
  top: 32px !important;
  height: calc(100% - 32px) !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar section.side_menu {
    top: 46px !important;
    height: calc(100% - 46px) !important;
  }
}
/* X di chiusura */
section.side_menu a.close_side_menu {
  width: 38px !important;
  height: 38px !important;
  top: 20px !important;
  right: 18px !important;
  background: rgba(255, 255, 255, .1) !important;
  border-radius: 50%;
  text-decoration: none !important;
  transition: background-color .2s;
  z-index: 2;
}
section.side_menu a.close_side_menu::before,
section.side_menu a.close_side_menu::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color .2s;
}
section.side_menu a.close_side_menu::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
section.side_menu a.close_side_menu:hover,
section.side_menu a.close_side_menu:focus-visible {
  background: #EFCB30 !important;
}
section.side_menu a.close_side_menu:hover::before,
section.side_menu a.close_side_menu:hover::after,
section.side_menu a.close_side_menu:focus-visible::before,
section.side_menu a.close_side_menu:focus-visible::after {
  background: #212251;
}
/* Pulsante Mio Account: oro, al passaggio bianco con testo blu */
section.side_menu .qode_button_widget {
  display: block;
  margin: 52px 0 8px !important;
}
section.side_menu.side_menu .qode_button_widget a.qbutton.qbutton {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  max-width: 100%;
  min-width: 0 !important;
  box-sizing: border-box;
  margin: 0 !important;
  height: 46px !important;
  line-height: 46px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #EFCB30 !important;
  color: #212251 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
section.side_menu.side_menu .qode_button_widget a.qbutton.qbutton i {
  position: static !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: #212251 !important;
}
section.side_menu.side_menu .qode_button_widget a.qbutton.qbutton:hover,
section.side_menu.side_menu .qode_button_widget a.qbutton.qbutton:focus-visible {
  background-color: #FFFFFF !important;
  color: #212251 !important;
}
/* Titoli dei gruppi (PRIMO PIANO, ISTITUZIONALI, PROGETTI) */
section.side_menu .posts_holder h6 {
  margin: 30px 0 10px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #EFCB30 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}
/* Voci: niente sottolineatura né icona a etichetta, hover leggero */
section.side_menu .posts_holder ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
section.side_menu .posts_holder ul li {
  margin: 0 !important;
  padding: 0 !important;
}
section.side_menu .posts_holder ul li a {
  display: block;
  margin: 0 -12px;
  padding: 8px 12px !important;
  border-radius: 9px;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  transition: background-color .18s, color .18s;
}
section.side_menu .posts_holder ul li a:hover,
section.side_menu .posts_holder ul li a:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #EFCB30 !important;
}
section.side_menu .posts_holder ul li a .qode_icon_shortcode {
  display: none !important;
}

/* ---------- Focus visibile da tastiera ---------- */
header.page_header a:focus-visible {
  outline: 2px solid #EFCB30;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Icone social del demo (twitter, google+, dribbble...) ----------
   I link puntano alle home generiche dei social, non agli account ICF.
   Da attivare SOLO con l'ok del cliente: togli le due righe di commento
   che racchiudono la regola qui sotto.
   ------------------------------------------------------------------- */
/*
header.page_header .header_top .header-left-widget {
  display: none !important;
}
*/
