/* Brand orange sampled from the transparent PGF Solutions logo. */
:root { --pgf-orange: #ef6216; }
.palette-picker { --picker-background:#14212b; --picker-text:#f0f4f6; --picker-border:#879ba280; --picker-hover:#ffffff18; position:relative; flex:none; margin-inline-start:clamp(8px, 1.4vw, 22px); color:var(--picker-text); font:600 12.5px/1.2 Montserrat, Arial, sans-serif; }
.palette-picker[data-light="true"] { --picker-background:#e7ecef; --picker-text:#22333e; --picker-border:#718692; --picker-hover:#23384713; }
.palette-picker summary { display:flex; align-items:center; justify-content:center; gap:7px; min-width:42px; min-height:42px; padding:0 10px; border:1px solid var(--picker-border); border-radius:24px; cursor:pointer; list-style:none; }
.palette-picker summary::-webkit-details-marker { display:none; }
.palette-picker summary:hover, .palette-picker[open] summary { background:var(--picker-hover); }
.palette-picker summary:focus-visible, .palette-picker button:focus-visible { outline:2px solid #ef6216; outline-offset:2px; }
.palette-swatch { display:inline-block; flex:none; width:14px; height:14px; border:1px solid var(--picker-border); border-radius:50%; background:var(--swatch); }
.palette-chevron { width:6px; height:6px; margin-top:-3px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg); }
.palette-picker ul { position:absolute; z-index:1; inset:calc(100% + 8px) 0 auto auto; width:max-content; min-width:180px; margin:0; padding:5px; list-style:none; background:var(--picker-background); border:1px solid var(--picker-border); border-radius:12px; box-shadow:0 10px 30px #0004; }
.palette-picker button { display:flex; align-items:center; gap:9px; min-height:42px; padding:8px 10px; color:inherit; border-radius:7px; text-decoration:none; }
.palette-picker button:hover, .palette-picker button[aria-current] { background:var(--picker-hover); }
.palette-picker button[aria-current]::after { content:'✓'; color:var(--pgf-orange); -webkit-text-stroke:var(--pgf-accent-stroke, 0 transparent); paint-order:stroke fill; margin-inline-start:auto; padding-inline-start:5px; }
header:has(> .palette-picker) > nav { margin-inline-start:auto; }
header:has(> .palette-picker) > .mobile-back, header:has(> .palette-picker) > .menu { margin-inline-start:auto; }
@media(max-width:1180px) {
  .palette-trigger-label { display:none; }
  .palette-picker summary { padding-inline:7px; }
}
@media(max-width:1100px) {
  header:has(> .palette-picker) > nav { gap:clamp(10px, 2vw, 22px); }
}
/* Le voci del selettore sono pulsanti: si azzera lo stile predefinito. */
.palette-picker button { width: 100%; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.palette-picker button:hover, .palette-picker button[aria-current] { background: var(--picker-hover); }
.palette-picker[hidden] { display: none; }
