/* Leva — gestione testi tradotti lunghi (DE/FR/HU): evita tagli e overflow,
   specialmente su mobile. overflow-wrap/hyphens agiscono solo quando il testo
   non entra nel contenitore, quindi non alterano i layout corti (IT/EN). */
.elementor-heading-title,
.elementor-widget-heading h1, .elementor-widget-heading h2,
.elementor-widget-heading h3, .elementor-widget-heading h4, .elementor-widget-heading h5,
.elementor-widget-text-editor, .elementor-widget-text-editor p,
.elementor-button, .elementor-button-text,
.elementor-icon-box-title, .elementor-icon-box-description,
.elementor-image-box-title, .elementor-image-box-description,
.uicore-menu a, .ui-menu-item-wrapper,
.leva-popup-text, .leva-popup-title,
h1, h2, h3, h4, h5, p, li, a, blockquote, figcaption {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  hyphens: auto !important;
}

/* I pulsanti devono poter andare a capo invece di sforare/tagliare */
.elementor-button, .elementor-button-text { white-space: normal !important; }

/* Su mobile: i contenitori di testo non devono tagliare il contenuto più lungo */
@media (max-width: 1024px) {
  .elementor-widget-heading, .elementor-widget-text-editor,
  .elementor-widget-button, .elementor-widget-icon-box,
  .elementor-widget-image-box {
    height: auto !important;
  }
  .elementor-widget-text-editor, .elementor-widget-heading { overflow: visible !important; }
}

/* Mobile/tablet (≤1024px): navbar FISSA in alto.
   L'header originale è position:absolute e scrolla via; qui resta sempre
   visibile con sfondo scuro traslucido (il logo bianco resta leggibile su
   qualsiasi pagina, anche su sfondi chiari). */
@media (max-width: 1024px) {
  .uicore-header-wrapper {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    z-index: 9990;
    background: rgba(9, 14, 26, 0.86) !important;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    transition: background .3s ease;
  }
  /* Sull'header scuro fisso il logo e l'hamburger devono restare bianchi su
     TUTTE le pagine (alcune usano il logo scuro, illeggibile sul nero).
     Il filtro rende bianco QUALSIASI logo: vale anche per Fracama/Leva Hungary. */
  .uicore-header-wrapper img.uicore-logo {
    filter: brightness(0) invert(1) !important;
  }
  .uicore-header-wrapper .uicore-ham .bars { background: transparent !important; }
  .uicore-header-wrapper .uicore-ham .bar { background-color: #fff !important; }
}
