/* GiroFacile — canonical company profile CSS, 2026-10-13.
   One loaded file: operational controls + current reference layout, no prior card layout. */
/* Profile operational styles retained from the previous implementation. */
/* Company profile: styles scoped to this page and its active shell. */

body.gf-company-page-active #showOnboardingBtn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--gf-radius-md);
  font-size: 12px;
}

#tab-company{font-family:var(--gf-font-family);color:var(--gf-color-text)}
#tab-company svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* GiroFacile company profile 2026-10-13 — scoped restyle based on approved reference. */

body:has(#tab-company:not(.hidden)) #app .content {
  padding:24px 30px 120px!important;
}
/* The reference HTML keeps the page header on the same grey canvas as the profile. */
@media(min-width:821px){
  body[data-gf-surface="workspace"]:has(#tab-company:not(.hidden)) #app .topbar {
    background:var(--gf-color-bg)!important;
    border-bottom:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}
#tab-company .gf-ref-profile{
  --gf-ref-color:var(--gf-color-primary);
  --gf-ref-ink:var(--gf-color-text);
  --gf-ref-muted:var(--gf-color-muted);
  --gf-ref-line:var(--gf-color-border);
  --gf-ref-soft:var(--gf-color-surface-subtle);
  color:var(--gf-ref-ink);
  display:flex!important;flex-direction:column;gap:22px!important;
  width:100%;max-width:none;min-width:0;
  font-family:"IBM Plex Sans","Segoe UI",system-ui,sans-serif;
}
#tab-company .gf-ref-profile *,
#tab-company .gf-ref-profile *::before,
#tab-company .gf-ref-profile *::after {box-sizing:border-box}
#tab-company .gf-ref-profile h2,
#tab-company .gf-ref-profile h3 {
  letter-spacing:-.015em;
}
#tab-company .gf-ref-profile .gf-ref-hero {
  /* Hero full-width only: keep its existing height, inner spacing and columns. */
  width:100%!important;max-width:none!important;min-width:0;
  align-self:stretch!important;grid-column:1/-1!important;
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);
  overflow:hidden;border-radius:16px;border:1px solid var(--gf-ref-line);
  background:var(--gf-color-surface);box-shadow:var(--gf-shadow-sm);
}
#tab-company .gf-ref-identity{
  display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--gf-ref-line);
}
#tab-company .gf-ref-banner{height:132px;position:relative;overflow:hidden;
  background:linear-gradient(115deg,var(--gf-ref-color),var(--gf-color-nav));
}
#tab-company .gf-ref-banner svg{width:100%;height:100%;display:block}
#tab-company .gf-ref-logo-row{
  display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap;
  padding:0 26px;margin-top:-46px;position:relative;
}
#tab-company .gf-ref-logo-host{flex:0 0 96px}
#tab-company .gf-ref-logo-host img {width:100%;height:100%;object-fit:contain}
#tab-company .gf-ref-logo-actions{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin-left:auto;padding-bottom:6px;
}
#tab-company .gf-ref-company-copy{padding:14px 26px 0}
#tab-company .gf-ref-company-copy h2{
  margin:0;font-size:28px;line-height:1.2;font-weight:750;overflow-wrap:anywhere;
}
#tab-company .gf-ref-company-copy p{
  margin:6px 0 0;color:var(--gf-ref-muted);font-size:13.5px;line-height:1.5;
}
#tab-company .gf-ref-facts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
#tab-company .gf-ref-facts span{
  display:inline-flex;align-items:center;gap:7px;padding:5px 11px;
  border:1px solid var(--gf-ref-line);border-radius:999px;
  background:var(--gf-ref-soft);font-size:12px;overflow-wrap:anywhere;
}
#tab-company .gf-ref-facts svg{width:14px;height:14px;color:var(--gf-ref-muted)}
#tab-company .gf-ref-brand-controls{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:12px;margin:20px 26px 22px;padding-top:17px;
  border-top:1px solid var(--gf-ref-line);
}
#tab-company .gf-ref-brand-controls strong{display:block;font-size:13px}
#tab-company .gf-ref-brand-controls small{display:block;color:var(--gf-ref-muted);font-size:11.5px}
#tab-company .gf-ref-swatches{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#tab-company .gf-ref-swatch{
  width:30px;height:30px;border-radius:50%;border:2px solid var(--gf-color-on-primary);cursor:pointer;
  box-shadow:0 0 0 1px var(--gf-ref-line);padding:0;
}
#tab-company .gf-ref-swatch[aria-pressed=true]{
  box-shadow:0 0 0 2px var(--gf-ref-color);
}
#tab-company .gf-ref-custom-color{
  padding:0;width:30px;height:30px;border:2px dashed var(--gf-color-border);
  background:transparent;border-radius:50%;overflow:hidden;cursor:pointer;
}
#tab-company .gf-ref-custom-color::-webkit-color-swatch-wrapper{padding:0}
#tab-company .gf-ref-custom-color::-webkit-color-swatch{border:0;border-radius:50%}
#tab-company .gf-ref-preview{
  display:flex;flex-direction:column;min-width:0;align-items:flex-start;
  padding:20px 22px;background:var(--gf-ref-soft);
}
#tab-company .gf-ref-preview h2{margin:0;font-size:16px;font-weight:750}
#tab-company .gf-ref-preview>p{margin:3px 0 0;color:var(--gf-ref-muted);font-size:12px}
#tab-company .gf-ref-phone{
  width:min(100%,260px);margin:20px auto 0;overflow:hidden;
  border:1px solid var(--gf-ref-line);border-radius:26px;background:var(--gf-color-surface);
  box-shadow:var(--gf-shadow-md);
}
#tab-company .gf-ref-phone-head{
  display:flex;align-items:center;gap:10px;min-height:67px;
  background:var(--gf-ref-color);padding:15px;color:var(--gf-color-on-primary);
}
#tab-company .gf-ref-phone-logo{
  flex:0 0 34px;display:grid;place-items:center;
  width:34px;height:34px;overflow:hidden;border-radius:9px;
  background:var(--gf-color-surface);color:var(--gf-ref-color);font-size:12px;font-weight:800;
}
#tab-company .gf-ref-phone-logo img{width:100%;height:100%;object-fit:contain}
#tab-company .gf-ref-phone-head b{min-width:0;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#tab-company .gf-ref-phone-body{padding:16px}
#tab-company .gf-ref-phone-body small,
#tab-company .gf-ref-eta span{font-size:12px;color:var(--gf-ref-muted)}
#tab-company .gf-ref-phone-body h3{margin:2px 0 14px;font-size:19px;font-weight:750}
#tab-company .gf-ref-eta{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:var(--gf-ref-soft)}
#tab-company .gf-ref-eta strong{color:var(--gf-ref-color);font-size:20px}
#tab-company .gf-ref-steps{list-style:none;margin:12px 0;padding:0}
#tab-company .gf-ref-steps li{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:12px}
#tab-company .gf-ref-steps li::before{
  content:"";width:12px;height:12px;flex:0 0 12px;
  border:2px solid var(--gf-color-border);border-radius:50%;background:var(--gf-color-surface);
}
#tab-company .gf-ref-steps li.done::before{background:var(--gf-ref-color);border-color:var(--gf-ref-color)}
#tab-company .gf-ref-steps li.current::before{border-color:var(--gf-ref-color);box-shadow:0 0 0 3px var(--gf-color-info-bg)}
#tab-company .gf-ref-tracking-button{
  margin-top:12px;padding:10px;border-radius:10px;
  color:var(--gf-color-on-primary);background:var(--gf-ref-color);text-align:center;font-size:12px;font-weight:750;
}
/* Contenuto sotto gli 872 px (finestra di 1180 px tolti sidebar e margini), già scalato da --gf-ui-scale. */
@container gf-content (max-width:872px){
  #tab-company .gf-ref-hero{grid-template-columns:1fr!important}
  #tab-company .gf-ref-identity{border-right:0;border-bottom:1px solid var(--gf-ref-line)}
}
@media(max-width:820px){
  body:has(#tab-company:not(.hidden)) #app .content{padding:18px 14px 160px!important}
  #tab-company .gf-ref-profile{gap:15px!important}
}
@media(max-width:600px){
  #tab-company .gf-ref-company-copy{padding-left:18px;padding-right:18px}
  #tab-company .gf-ref-logo-row{padding:0 18px}
  #tab-company .gf-ref-brand-controls{margin:15px 18px 20px}
  #tab-company .gf-ref-company-copy h2{font-size:24px}
  #tab-company .gf-ref-preview{padding:16px}
  #tab-company .gf-ref-brand-controls{align-items:flex-start}
}
