/* 3S ARCH | Navigazione smartphone condivisa: homepage e pagine interne.
   SOLO mobile: la grafica desktop resta invariata. */
@media (max-width:780px){
  .site-header{
    position:sticky !important;top:0 !important;left:auto !important;right:auto !important;
    z-index:1000 !important;display:flex !important;justify-content:space-between;align-items:center;
    width:100%;height:auto;min-height:78px !important;margin:0;
    padding:10px 16px !important;gap:10px !important;flex-wrap:nowrap !important;
    background:#202425 !important;color:#fff !important;
    border-bottom:1px solid #47504f;box-shadow:0 3px 12px #1115;
  }
  .site-header .head-inner{
    width:100%;max-width:none;min-width:0;min-height:56px;
    margin:0;padding:0 !important;display:flex;flex-wrap:nowrap !important;
    align-items:center;justify-content:space-between;gap:10px;
  }
  .site-header .identity{
    display:flex !important;align-items:center;gap:9px !important;
    flex:1 1 auto !important;min-width:0;max-width:calc(100% - 95px);
    margin:0;padding:0;letter-spacing:normal;
  }
  .site-header .identity img,
  .site-header .identity .header-brand-image{
    display:block;width:72px !important;height:46px !important;
    max-width:72px !important;min-width:72px;object-fit:contain;flex:0 0 72px;
  }
  .site-header .identity-text,
  .site-header .brand-name{
    display:flex;flex-direction:column;justify-content:center;min-width:0;
    padding:0 0 0 10px !important;margin:0;
    border:0;border-left:1px solid #737d7c;gap:3px !important;
    color:#fff;line-height:1.2;
  }
  .site-header .identity-text strong,
  .site-header .brand-name strong{
    display:block;font-size:12.4px !important;font-weight:650 !important;
    line-height:1.22;letter-spacing:0 !important;white-space:normal !important;
    overflow-wrap:normal;
  }
  .site-header .identity-text small,
  .site-header .brand-name small{
    display:block;margin:0 !important;padding:0;
    font-size:9px !important;line-height:1.23;letter-spacing:0 !important;
    color:#e1e4e2;white-space:normal !important;
  }
  .site-header .brand-red,.site-header .red{color:#e13737 !important}
  .site-header .brand-blue,.site-header .blue{color:#4b9bea !important}
  .site-header .menu-btn,
  .site-header .menu-toggle{
    display:inline-flex !important;align-items:center;justify-content:center;gap:8px;
    flex:0 0 auto;min-width:82px;height:44px !important;
    padding:0 11px !important;margin:0 !important;
    background:#292f30;color:#fff !important;border:1px solid #697473;
    border-radius:3px;font:700 12px/1 Arial,Helvetica,sans-serif;
    letter-spacing:.04em;white-space:nowrap;cursor:pointer;
    -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  }
  .site-header .menu-btn::after,
  .site-header .menu-toggle::after{content:'☰';font-size:17px;font-weight:400;line-height:1}
  .site-header .menu-btn[aria-expanded="true"],
  .site-header .menu-toggle[aria-expanded="true"]{background:#353e40;border-color:#c7cbca}
  .site-header .menu-btn[aria-expanded="true"]::after,
  .site-header .menu-toggle[aria-expanded="true"]::after{content:'×';font-size:23px}
  .site-header .nav,
  .site-header .navigation{
    display:none !important;position:absolute !important;top:100% !important;
    left:0 !important;right:0 !important;bottom:auto !important;
    z-index:1001;width:100% !important;max-width:none !important;
    margin:0 !important;padding:9px 18px 17px !important;
    box-shadow:0 14px 24px #1014146a;
    background:#202425 !important;flex-direction:column !important;
    flex-wrap:nowrap !important;align-items:stretch !important;
    justify-content:flex-start !important;gap:0 !important;
    max-height:calc(100dvh - 78px);overflow-y:auto;overscroll-behavior:contain;
  }
  .site-header .nav.open,
  .site-header .navigation.open{display:flex !important}
  .site-header .nav a,
  .site-header .navigation a{
    display:flex;align-items:center;min-height:49px;white-space:normal;
    width:100%;border:0;border-bottom:1px solid #485050;
    padding:13px 5px !important;margin:0 !important;
    font:700 13px/1.4 Arial,Helvetica,sans-serif !important;
    letter-spacing:.09em !important;color:#fff !important;
  }
  .site-header .nav a:hover,
  .site-header .navigation a:hover,
  .site-header .nav a:focus-visible,
  .site-header .navigation a:focus-visible,
  .site-header .navigation a[aria-current="page"]{color:#ff7777 !important}
  .site-header .nav .painting-link,
  .site-header .navigation .art{
    color:#ff7777 !important;border:0 !important;border-top:1px solid #79817f !important;
    padding-top:17px !important;margin-top:7px !important;
  }
  .site-header .menu-btn:focus-visible,
  .site-header .menu-toggle:focus-visible{
    outline:3px solid #4b9bea;outline-offset:3px;
  }
}
@media (max-width:365px){
  .site-header{padding:9px 11px !important;gap:6px !important}
  .site-header .head-inner{gap:6px}
  .site-header .identity{gap:6px !important;max-width:calc(100% - 84px)}
  .site-header .identity img,.site-header .identity .header-brand-image{
    width:61px !important;max-width:61px !important;min-width:61px;flex-basis:61px;height:40px !important;
  }
  .site-header .identity-text,.site-header .brand-name{padding-left:7px !important}
  .site-header .identity-text strong,.site-header .brand-name strong{font-size:11px !important}
  .site-header .identity-text small,.site-header .brand-name small{font-size:8px !important}
  .site-header .menu-btn,.site-header .menu-toggle{min-width:74px;padding:0 8px !important}
}
