/* =====================================================================
   WS27 KIT 1.0.1 · TOKEN — Weather Sicily 2027, portali candidati (Master Prompt Rev. 4)
   Valori copiati (non collegati) dai riferimenti approvati in sola lettura:
   - Chiaro/Scuro/Monochrome: tema WordPress weather-sicily-2027 assets/css/tokens.css (V20–V26)
   - convenzione tema: html[data-theme=light|dark] + html[data-theme-pref=auto|light|dark|monochrome],
     localStorage «ws-theme» (stessa convenzione di WS Climate 2027).
   Regole: SOLO proprietà personalizzate con prefisso --ws27-*; nessun selettore di elemento,
   nessun reset, nessuna classe globale. Non cambia nulla finché un portale non le usa.
   Colori scientifici, palette dati, mappe, legende, allerte: MAI derivati da questi token.
   ===================================================================== */
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url("fonts/manrope-latin-var.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url("fonts/manrope-latin-ext-var.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/inter-latin-var.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/inter-latin-ext-var.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/barlow-latin-400.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2212}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/barlow-latin-500.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2212}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/barlow-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2212}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/barlow-latin-ext-400.woff2") format("woff2");unicode-range:U+0100-02FF,U+1E00-1EFF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/barlow-latin-ext-500.woff2") format("woff2");unicode-range:U+0100-02FF,U+1E00-1EFF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/barlow-latin-ext-600.woff2") format("woff2");unicode-range:U+0100-02FF,U+1E00-1EFF}
@font-face{font-family:"WS27 Manrope Fallback";src:local("Arial");size-adjust:103%;ascent-override:96%;descent-override:27%;line-gap-override:0%}
@font-face{font-family:"WS27 Inter Fallback";src:local("Arial");size-adjust:107%;ascent-override:90%;descent-override:22%;line-gap-override:0%}
@font-face{font-family:"WS27 Barlow Fallback";src:local("Arial Narrow"),local("Arial");size-adjust:94%;ascent-override:100%;descent-override:20%}

:root{
  --ws27-font-head:"Manrope","WS27 Manrope Fallback",Inter,system-ui,sans-serif;
  --ws27-font-ui:"Inter","WS27 Inter Fallback",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --ws27-font-num:"Barlow","WS27 Barlow Fallback","Inter",system-ui,sans-serif;

  /* Chiaro (celeste storico WS, V20) */
  --ws27-bg:#E7F1FA;
  --ws27-header:#D2E4F5;
  --ws27-header-glass:rgb(210 228 245 / .94);
  --ws27-surface:#FFFFFF;
  --ws27-surface-2:#DDEDFB;
  --ws27-surface-3:#F3F9FE;
  --ws27-ink:#172B43;
  --ws27-ink-2:#2B4058;
  --ws27-muted:#526B80;
  --ws27-line:#C7DBEC;
  --ws27-line-strong:#BBD4EA;
  --ws27-line-field:#6F8AA3;
  --ws27-accent:#1268B4;
  --ws27-brand:#1677E8;
  --ws27-selection:#176BC8;
  --ws27-on-selection:#FFFFFF;
  --ws27-soft:#DDEDFB;
  --ws27-iconbtn:#EFF5FB;
  --ws27-focus:#2E8BFF;
  --ws27-live:#1FA978;
  --ws27-warn:#9A5B00;
  --ws27-danger:#B42318;
  --ws27-ok:#147A50;
  --ws27-overlay:rgb(9 22 38 / .48);
  --ws27-glass:rgb(244 250 255 / .94);
  --ws27-press:rgb(23 107 200 / .12);
  --ws27-hover:rgb(23 107 200 / .07);
  --ws27-shadow:0 8px 26px rgb(28 90 140 / .043);
  --ws27-shadow-lg:0 18px 44px rgb(7 24 46 / .145),0 3px 12px rgb(7 24 46 / .05);

  /* Forma */
  --ws27-radius:16px;
  --ws27-radius-sm:12px;
  --ws27-radius-lg:20px;
  --ws27-radius-xl:28px;
  --ws27-pill:999px;
  --ws27-gutter:clamp(14px,3.2vw,32px);
  --ws27-wrap:1320px;

  /* Movimento (Master Prompt §7) */
  --ws27-ease:cubic-bezier(.42,0,.25,1);
  --ws27-t-press:120ms;
  --ws27-t-pill:380ms;       /* indicatore su una riga */
  --ws27-t-multi:220ms;      /* gruppi su più righe: solo colore/opacità (180–240 ms) */
  --ws27-t-acc-open:520ms;
  --ws27-t-acc-close:460ms;
  --ws27-t-side-open:350ms;
  --ws27-t-side-close:300ms;
  --ws27-t-sheet-open:380ms;
  --ws27-t-sheet-close:300ms;
  --ws27-t-catalog:280ms;
  --ws27-t-theme:300ms;
  color-scheme:light;
}

/* Scuro (blu notte, valori approvati) */
:root[data-theme=dark]{
  --ws27-bg:#0C1420;
  --ws27-header:#142235;
  --ws27-header-glass:rgb(20 34 53 / .9);
  --ws27-surface:#142235;
  --ws27-surface-2:#1A2C43;
  --ws27-surface-3:#0F1A29;
  --ws27-ink:#E8EFF9;
  --ws27-ink-2:#CFDBEA;
  --ws27-muted:#9AAEC4;
  --ws27-line:#29394D;
  --ws27-line-strong:#33475F;
  --ws27-line-field:#5A7491;
  --ws27-accent:#75B8FF;
  --ws27-selection:#196CC8;
  --ws27-on-selection:#FFFFFF;
  --ws27-soft:#203852;
  --ws27-iconbtn:#142235;
  --ws27-focus:#75B8FF;
  --ws27-live:#33C98F;
  --ws27-warn:#F2B866;
  --ws27-danger:#FF8A80;
  --ws27-ok:#5BD69E;
  --ws27-overlay:rgb(2 7 14 / .62);
  --ws27-glass:rgb(20 34 53 / .95);
  --ws27-press:rgb(117 184 255 / .16);
  --ws27-hover:rgb(117 184 255 / .08);
  --ws27-shadow:0 12px 30px rgb(0 0 0 / .13);
  --ws27-shadow-lg:0 18px 48px rgb(0 0 0 / .4),0 3px 12px rgb(0 0 0 / .2);
  color-scheme:dark;
}

/* Monochrome (antracite): solo scelta manuale; il tema effettivo resta data-theme=dark.
   Cambiano SOLO le superfici dell'interfaccia: nessun grayscale, contenuti a colori. */
:root[data-theme=dark][data-theme-pref=monochrome]{
  --ws27-bg:#1B1B1B;
  --ws27-header:#272727;
  --ws27-header-glass:rgb(39 39 39 / .92);
  --ws27-surface:#272727;
  --ws27-surface-2:#393939;
  --ws27-surface-3:#212121;
  --ws27-ink:#E2E2E2;
  --ws27-ink-2:#CCCCCC;
  --ws27-muted:#AAAAAA;
  --ws27-line:#3E3E3E;
  --ws27-line-strong:#787878;
  --ws27-line-field:#787878;
  --ws27-accent:#DDDDDD;
  --ws27-brand:#DDDDDD;
  --ws27-selection:#DDDDDD;
  --ws27-on-selection:#1B1B1B;
  --ws27-soft:#393939;
  --ws27-iconbtn:#272727;
  --ws27-focus:#FFFFFF;
  --ws27-overlay:rgb(0 0 0 / .64);
  --ws27-glass:rgb(39 39 39 / .95);
  --ws27-press:rgb(255 255 255 / .12);
  --ws27-hover:rgb(255 255 255 / .06);
  --ws27-shadow:0 12px 30px rgb(0 0 0 / .18);
  --ws27-shadow-lg:0 18px 48px rgb(0 0 0 / .45),0 3px 12px rgb(0 0 0 / .25);
  color-scheme:dark;
}

/* Automatico senza JavaScript: segue il sistema (il boot script imposta comunque data-theme). */
@media (prefers-color-scheme:dark){
  :root:not([data-theme]){
    --ws27-bg:#0C1420;--ws27-header:#142235;--ws27-header-glass:rgb(20 34 53 / .9);--ws27-surface:#142235;--ws27-surface-2:#1A2C43;--ws27-surface-3:#0F1A29;--ws27-ink:#E8EFF9;--ws27-ink-2:#CFDBEA;--ws27-muted:#9AAEC4;--ws27-line:#29394D;--ws27-line-strong:#33475F;--ws27-line-field:#5A7491;--ws27-accent:#75B8FF;--ws27-selection:#196CC8;--ws27-soft:#203852;--ws27-iconbtn:#142235;--ws27-focus:#75B8FF;--ws27-glass:rgb(20 34 53 / .95);--ws27-press:rgb(117 184 255 / .16);--ws27-hover:rgb(117 184 255 / .08);color-scheme:dark
  }
}

/* Movimento ridotto: durate quasi nulle (gli handler restano identici). */
@media (prefers-reduced-motion:reduce){
  :root{--ws27-t-press:1ms;--ws27-t-pill:1ms;--ws27-t-multi:1ms;--ws27-t-acc-open:1ms;--ws27-t-acc-close:1ms;--ws27-t-side-open:1ms;--ws27-t-side-close:1ms;--ws27-t-sheet-open:1ms;--ws27-t-sheet-close:1ms;--ws27-t-catalog:1ms;--ws27-t-theme:1ms}
}
/* Trasparenze ridotte: superfici opache. */
@media (prefers-reduced-transparency:reduce){
  :root,:root[data-theme=dark][data-theme-pref=monochrome]{--ws27-header-glass:var(--ws27-header);--ws27-glass:var(--ws27-surface)}
}
