/*
Theme Name: Italiazienda
Theme URI: https://www.italiazienda.it
Author: Renato
Author URI: https://renatocantarella.it
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    /* Top Navbar styling */
    .top-navbar {
      background: #ffffff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      padding: 0.5rem 1rem;
      background: #ffffff;
  	  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	  padding: 0.5rem 1rem;
	  position: fixed;
	  float: right;
	  right: 0;			
    }
    .top-navbar .form-control {
      width: 200px;
      border-radius: 20px 0 0 20px;
    }
    .top-navbar .user-menu {
      margin-left: auto;
    }
    /* Sidebar styling */
    .sidebar {
      background: #ffffff;
      border-right: 1px solid #dee2e6;
      height: calc(100vh - 56px); /* sottraiamo l'altezza della top navbar */
      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
      position: fixed;
    }
    .sidebar .nav-link {
      color: #333;
      font-weight: 500;
      transition: background-color 0.2s, color 0.2s;
    }
    .sidebar .nav-link:hover {
      background: #f1f3f5;
      color: #0056b3;
    }
    .sidebar .dropdown-menu {
      border: none;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      margin-left: 10px; /* indentazione per il submenu */
    }
    /* Main content styling */
    .main-content {
      background: #f8f9fa;
      min-height: calc(100vh - 56px);
      padding: 2rem;
    }
    /* Pulsante "Supporto" nel sidebar */
    .support-btn {
      position: relative;
      transition: left 0.3s;
      left: 0;
    }
    /* Quando il dropdown "Community" è aperto, spostiamo il pulsante */
    .sidebar .nav-item.dropdown.show .support-btn {
      left: 50px; /* Regola questo valore per l'effetto desiderato */
    }
        .floatleft { float: left; }
    .floatright { float: right; }
    .padding_zero { padding: 0; }
    .padding_zero li,
    .lisato_due_colonne li,
    .lisato_tre_colonne li {
      list-style: none;
    }
    .marginauto { margin: auto; }

    /* === Typography placeholder === */
    .bd-placeholder-img {
      font-size: 1.125rem;
      text-anchor: middle;
      user-select: none;
    }
    @media (min-width: 768px) {
      .bd-placeholder-img-lg {
        font-size: 3.5rem;
      }
    }

    /* === Divider & VR === */
    .b-example-divider {
      width: 100%;
      height: 3rem;
      background-color: rgba(0, 0, 0, .1);
      border: solid rgba(0, 0, 0, .15);
      border-width: 1px 0;
      box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1),
                  inset 0 .125em .5em rgba(0, 0, 0, .15);
    }
    .b-example-vr {
      flex-shrink: 0;
      width: 1.5rem;
      height: 100vh;
    }

    /* === Icon / nav-scroller === */
    .bi {
      vertical-align: -.125em;
      fill: currentColor;
    }
    .nav-scroller {
      position: relative;
      z-index: 2;
      height: 2.75rem;
      overflow-y: hidden;
    }
    .nav-scroller .nav {
      display: flex;
      flex-wrap: nowrap;
      padding-bottom: 1rem;
      margin-top: -1px;
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      text-align: center;
    }

    /* === Button styles === */
    .btn-bd-primary {
      --bd-violet-bg: #712cf9;
      --bd-violet-rgb: 112.52, 44.06, 249.44;
      --bs-btn-font-weight: 600;
      --bs-btn-color: #fff;
      --bs-btn-bg: var(--bd-violet-bg);
      --bs-btn-border-color: var(--bd-violet-bg);
      --bs-btn-hover-color: #fff;
      --bs-btn-hover-bg: #6528e0;
      --bs-btn-hover-border-color: #6528e0;
      --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
      --bs-btn-active-color: #fff;
      --bs-btn-active-bg: #5a23c8;
      --bs-btn-active-border-color: #5a23c8;
    }
    .bd-mode-toggle {
      z-index: 1500;
    }
    .bd-mode-toggle .dropdown-menu .active .bi {
      display: block !important;
    }

    /* === Listato colonne === */
    .lisato_due_colonne {
      column-count: 2;
      padding: 0;
    }
    .lisato_tre_colonne {
      column-count: 3;
      padding: 0;
    }

    /* === Lista singola voce === */
    .lista {
      border: none;
      border-bottom: 1px dashed black;
      border-top: 0;
      border-left: 0;
      border-right: 0;
    }
    .lista_count {
      float: right;
    }

    /* === Griglia e Lista aziende (#aziendeWrapper) === */
    #aziendeWrapper.grid-view {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
    #aziendeWrapper.grid-view .azienda-box {
      width: calc(33.333% - 20px);
      border: 1px solid #ccc;
      padding: 15px;
      background: #f9f9f9;
    }
    #aziendeWrapper.list-view {
      display: block;
    }
    #aziendeWrapper.list-view .azienda-box {
      width: 100%;
      border-bottom: 1px solid #ddd;
      padding: 15px 0;
    }

    /* === Province Grid/List View === */
    .province-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 15px;
    }
    .province-grid.grid-view {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .province-grid.list-view {
      display: block;
    }
    .province-grid.list-view .provincia-item {
      margin-bottom: 15px;
      border-bottom: 1px solid #ddd;
      padding-bottom: 10px;
    }
    .provincia-item {
      border: 1px solid #ccc;
      padding: 10px;
      text-align: center;
      border-radius: 5px;
      background: #f9f9f9;
    }

    /* === Vista toggle switch === */
    .view-toggle {
      text-align: right;
      margin-bottom: 1em;
    }
    .toggle-btn {
      border: 1px solid #f0f0f0;
      padding: 10px 12px;
      cursor: pointer;
      font-size: 20px;
      border-radius: 4px;
      margin-left: 5px;
      transition: background 0.3s ease;
      height: 40px;
      background: #fff;
      color: var(--bs-heading-color);
    }
    .toggle-btn.active {
      border-color: #ff9121;
      color: #ff9121;
    }

    /* === View switcher extra === */
    .view-switcher {
      margin-bottom: 20px;
    }
    .view-switcher .btn {
      margin-right: 10px;
    }
    .view-switcher .btn.active {
      font-weight: bold;
    }

    /* === Footer === */
    footer {
      clear: both;
      border-top: 1px solid #d0d1d2;
      padding-top: 15px;
    }

    /* === Loading spinner === */
    .dashicons.spin {
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      100% { transform: rotate(360deg); }
    }
    .logo_azienda{
  width: 100% !important;
  margin: auto;
  text-align: center;
}
.contenuto{
  background: white;
  width: 100%;
  margin-top: 20px;
  padding: 15px;

}