
  /* IMPOSTAZIONI MODIFICABILI DEL LOGO */
  header.rs-shared-header .brand-text {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 800;
    font-size: 44px;           /* GRANDEZZA LOGO DESKTOP */
    transform: scaleX(1.18);   /* LARGHEZZA VISIVA DESKTOP */
    transform-origin: left center;
    letter-spacing: 1px;
    color: #004d34;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
  }
  /* Necessario per il corretto funzionamento di position:sticky sul sito attuale */
  html, body { overflow-x: clip !important; }

  /* BARRA SEMPRE VISIBILE DURANTE LO SCORRIMENTO */
  header.rs-shared-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: flex;
    align-items: center;
    height: 80px;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eef1ef;
  }
  header.rs-shared-header .nav {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(calc(100% - 48px), 1280px);
    margin-inline: auto;
  }
  header.rs-shared-header .brand {
    display: flex;
    align-items: center;
    min-width: 290px;
    flex-shrink: 0;
    text-decoration: none;
  }
  header.rs-shared-header .menu {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
  }
  header.rs-shared-header .search {
    display: flex;
    flex: 0 1 200px;
    min-width: 110px;
    width: 200px;
    margin-left: 0;
  }
  header.rs-shared-header .langs { display: flex; align-items: center; gap: 5px; margin-left: 0; }
  header.rs-shared-header .toggle { display: none; }

  /* SCHERMI INTERMEDI: evita la sovrapposizione del menu al logo */
  @media (min-width: 721px) and (max-width: 1150px) {
    header.rs-shared-header .nav { gap: 9px; }
    header.rs-shared-header .brand { min-width: 240px; }
    header.rs-shared-header .brand-text { font-size: 38px; transform: scaleX(1.08); }
    header.rs-shared-header .menu { gap: 10px; }
    header.rs-shared-header .search { flex-basis: 150px; width: 150px; }
  }

  /* MOBILE: LOGO IN CENTRO SOPRA; MENU / CERCA CENTRATA / LINGUE SOTTO */
  @media (max-width: 720px) {
    header.rs-shared-header { height: auto !important; padding: 0; }
    header.rs-shared-header .nav {
      display: grid !important;
      grid-template-columns: 62px minmax(0, 1fr) 62px;
      grid-template-rows: auto auto;
      column-gap: 8px;
      row-gap: 14px;
      align-items: center;
      width: calc(100% - 30px);
      padding: 14px 0 12px;
    }
    header.rs-shared-header .brand {
      grid-column: 1 / -1;
      grid-row: 1;
      justify-self: center;
      justify-content: center;
      width: auto;
      min-width: 0;
      margin: 0;
    }
    header.rs-shared-header .brand-text {
      font-size: 28px;          /* GRANDEZZA LOGO MOBILE */
      transform: scaleX(1.05);  /* LARGHEZZA LOGO MOBILE */
      transform-origin: center center;
      letter-spacing: 0;
      text-align: center;
    }
    header.rs-shared-header .toggle {
      display: flex !important;
      grid-column: 1;
      grid-row: 2;
      align-items: center;
      justify-content: center;
      justify-self: start;
      width: 44px;
      height: 44px;
      margin: 0;
      padding: 0;
      font-size: 26px;
      color: #004d34;
    }
    header.rs-shared-header .search {
      display: flex !important;
      grid-column: 2;
      grid-row: 2;
      justify-self: center;
      align-self: center;
      width: 100%;
      max-width: 300px;        /* LARGHEZZA MASSIMA RICERCA */
      height: 42px;
      min-width: 0;
      margin: 0;
      flex: initial;
    }
    header.rs-shared-header .search input { min-width: 0; width: 100%; font-size: 14px; padding: 10px 8px; }
    header.rs-shared-header .search button { padding: 0 10px; font-size: 20px; }
    header.rs-shared-header .search-results {
      width: min(290px, calc(100vw - 30px));
      left: 50%;
      transform: translateX(-50%);
      z-index: 1002;
    }
    header.rs-shared-header .langs {
      display: flex !important;
      grid-column: 3;
      grid-row: 2;
      align-items: center;
      justify-self: end;
      gap: 4px;
      margin: 0;
      font-size: 14px;
    }
    header.rs-shared-header .langs a { font-size: 14px; padding: 8px 2px; }
    header.rs-shared-header .menu { display: none; }
    header.rs-shared-header .menu.open {
      display: flex;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 1001;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 15px 20px;
      margin: 0;
      background: #fff;
      box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }
    header.rs-shared-header .menu.open a { display: flex; align-items: center; min-height: 44px; height: auto; }
  }
