/*
  Nascondi l’icona/pin GEO (link a Google Maps) che appare sulle anteprime.
  Nota: la regola è volutamente “scopata” dentro i contenitori tipici della libreria
  per non toccare eventuali icone del sito WordPress.
*/

:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) a[href*="maps.google"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) a[href*="google.com/maps"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) a[href*="goo.gl/maps"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [title*="map"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [title*="mappa"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [aria-label*="map"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [aria-label*="mappa"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) .map-link-icon,
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [class*="map"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [class*="gps"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [class*="geo"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [class*="location"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [class*="pin"],
:where(#app, #files, .files, .file-manager, .filebrowser, .fm, body) [class*="marker"]{
  display:none!important;
}


      .back-site-btn{
        position:fixed;
        top:12px;
        right:6.5cm;
        left:auto;
        z-index:100000;
        display:flex;
        align-items:center;
        gap:8px;
        padding:8px 12px;
        border-radius:10px;
        /* background:#0f9d8a!important; */
        color:#fff;
        text-decoration:none;
        font-weight:700;
        font-size:13px;
        line-height:1;
        white-space:nowrap;
        max-width:calc(100vw - 24px);
      }
      .back-site-btn:hover{background:#0c7f70!important;}
      /* Nasconde il pulsante quando siamo nel viewer/popup dell'immagine */
      .back-site-btn.is-hidden{display:none!important;}
      .back-site-btn svg{width:16px;height:16px;display:block;flex:0 0 auto;}
      @media(max-width:768px){
        .back-site-btn{
          top:10px;
          right:32px;
          left:auto;
          padding:7px 0px;
          font-size:15px;
        }


       #sidebar-topbar,#topbar,#main,#topbar-top
  { background-color: #0f9d8a!important; background-color: #0f9d8a!important;}

      /* ============================================================
         Mostra "Logout" SOLO in modalità admin (?admin=1)
         - Se l'utente è un visitatore (data-admin="0"), nascondiamo qualsiasi link di logout.
         - In admin mode (data-admin="1"), resta visibile.
         ============================================================ */
      html[data-admin="0"] a[href*="logout"],
      html[data-admin="0"] a[href*="?logout"],
      html[data-admin="0"] a[href$="/logout"],
      html[data-admin="0"] a[href$="/logout/"]{
        display:none!important;
      }

        /* Mobile: nasconde la lente / filtro (campo "Filtra") */
        #topbar input[type="search"],
        #topbar input[placeholder="Filtra"],
        #topbar input[placeholder="Filter"],
        #topbar .search,
        #topbar .search-input,
        #topbar .filter,
        #topbar .filter-input,
        #topbar [data-action="filter"],
        #topbar [data-action="search"],
        #topbar .icon-search,
        #topbar .fa-search,
        #topbar svg[aria-label*="search" i],
        #topbar svg[aria-label*="cerca" i],
        /* icone/btn varie della topbar (fallback) */
        #topbar button[aria-label*="Filtra" i],
        #topbar button[aria-label*="Filter" i],
        #topbar button[aria-label*="Cerca" i],
        #topbar button[aria-label*="Search" i],
        #topbar a[aria-label*="Filtra" i],
        #topbar a[aria-label*="Filter" i],
        #topbar a[aria-label*="Cerca" i],
        #topbar a[aria-label*="Search" i],
        #topbar [title*="Filtra" i],
        #topbar [title*="Filter" i],
        #topbar [title*="Cerca" i],
        #topbar [title*="Search" i],
        /* se la lente è un bottone con icona dentro */
        #topbar .btn-search,
        #topbar .topbar-search,
        #topbar .topbar-btn-search,
        #topbar .search-btn,
        #topbar [class*="search" i][role="button"],
        #topbar [class*="search" i] svg,
        #topbar [class*="search" i] i{
          display:none!important;
        }
@media (max-width: 767.98px) {
    #search-container {
        flex-grow: 1;
        visibility: hidden;
    }
}