/* Generated by the admin Theme editor. Do not edit by hand. */
html:root {
  --brand-orange: #FF5200;
  --brand-orange-dark: #E04900;
  --brand-orange-soft: rgba(255, 82, 0, 0.10);
  --brand-highlight: #FF5200;
  --brand-highlight-dark: #E04900;
  --brand-highlight-soft: rgba(255, 82, 0, 0.10);
  --color-on-highlight: #FFFFFF;
  --color-bg: #F7F5F0;
  --color-surface: #FFFFFF;
  --color-surface-2: #F0EEEA;
  --color-ink: #1A1A1A;
  --color-heading: #1A1A1A;
  --color-muted: #6B6B6B;
  --color-line: #E0DDD8;
  --color-on-accent: #FFFFFF;
  --color-success: #2D8A4E;
  --color-success-soft: rgba(45, 138, 78, 0.10);
  --color-danger: #CC3333;
  --color-danger-soft: rgba(204, 51, 51, 0.10);
  --color-info: #0047AB;
  --color-info-soft: rgba(0, 71, 171, 0.10);
  --color-warning: #D4880F;
  --color-warning-soft: rgba(212, 136, 15, 0.10);
  --color-warning-border: rgba(212, 136, 15, 0.35);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.875rem; /* floor minimo testo (Ale): 14px */
  --text-sm: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-display: 2.441rem;
  --font-normal: 400;
  --font-medium: 500;
  --font-bold: 600;
  --font-black: 600;
  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 4rem;
  --space-10: 8rem;
  --space-12: 3rem;
  --radius-sm: 10px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --border-width: 1px;
  --shadow-sm: none;
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
  --dur-fast: 100ms;
  --dur-mid: 200ms;
  --content-narrow: 520px;
  --content-wide: 1120px;
  --content-app: 1320px;
  --page-pad-x: 18px;
  --control-h: 44px;
  --tap-min: 44px;
  --color-plan-smart: #2B7FE8;
  --color-plan-icon: #1230B0;
  --color-plan-eureka: #FF5200;
  --color-accent: #FF5200;
  --color-accent-strong: #E04900;
  --color-accent-soft: rgba(255, 82, 0, 0.10);
  --color-premium: #FF5200;
  --color-highlight: #FF5200;
  --color-highlight-soft: rgba(255, 82, 0, 0.10);
  --color-cobalt: #0047AB;
  --color-cobalt-hover: #003D94;
  --color-cobalt-pressed: #003380;
  --color-cobalt-10: rgba(0, 71, 171, 0.10);
  --color-focus-ring: rgba(0, 71, 171, 0.25);
  --color-overlay: rgba(26, 26, 26, 0.5);
  --color-bg-alt: #FFFFFF;
  --color-border-strong: #C5C1BA;
  --eu-header-z: 100;
  --eu-topbar-pad-y: 10px;
  --eu-topbar-pad-x: 18px;
  --eu-topbar-gap: 12px;
  --eu-topbar-bg: color-mix(in srgb, #FFFFFF 97%, transparent);
  --eu-topbar-blur: 12px;
  --eu-topbar-border: 1px solid #E0DDD8;
  --eu-topbar-logo-h: 36px;
  --eu-content-max: 1120px;
  --eu-menu-btn-size: 42px;
  --eu-burger-line-w: 20px;
  --eu-burger-line-h: 2px;
  --eu-burger-gap: 4px;
  --eu-drawer-width: min(86vw, 360px);
  --eu-drawer-z: 1001;
  --eu-drawer-overlay-z: 1000;
  --eu-drawer-overlay-bg: rgba(0, 0, 0, .45);
  --eu-drawer-transition: transform .22s ease;
  --eu-drawer-shadow: -8px 0 30px rgba(0, 0, 0, .14);
  --eu-drawer-head-pad: 14px 16px;
  --eu-drawer-nav-pad: 12px 12px 0;
  --eu-drawer-nav-gap: 8px;
  --eu-drawer-group-radius: 12px;
  --eu-drawer-group-pad: 4px 6px 8px;
  --eu-drawer-item-pad: 6px 10px 6px 34px;
  --eu-drawer-item-radius: 10px;
  --eu-drawer-foot-pad: 14px 16px 16px;
  --eu-drawer-pagefooter-pad: 18px 16px;
}
/* Dark Mode: palette "Notturno" (variante 10). Deve restare allineato a
   kit/theme-dark.css — questo blocco è caricato dopo e vince. */
html:root[data-theme="dark"] {
  --color-bg: #1c2333;
  --color-surface: #232c40;
  --color-surface-2: #2b3550;
  --color-surface-raised: #2b3550;
  --color-ink: #eaf1fb;
  --color-heading: #f2f6fc;
  --color-muted: #9fb0c8;
  --color-line: #34435f;
  --color-accent-soft: rgba(255, 82, 0, .18);
  --color-success-soft: #123528;
  --color-danger-soft: #34191a;
  --color-info-soft: #1c2c4c;
  --color-warning-soft: #33291a;
  --color-warning-border: #5a4320;
  --color-highlight-soft: rgba(255, 82, 0, .14);
  /* card / campi / etichette in Notturno (altrimenti restano sabbia chiari) */
  --eu-card-bg: linear-gradient(180deg, #263149 0%, #1e2740 100%);
  --eu-card-line: #34435f;
  --eu-field-bg: #2b3550;
  --eu-field-line: #3a475f;
  --eu-field-focus: #FF5200;
  --eu-field-ring: rgba(255, 82, 0, 0.22);
  --eu-label-ink: #cfe0f5;
  /* topbar/header in Notturno (era fissata bianca) */
  --eu-topbar-bg: color-mix(in srgb, #232c40 96%, transparent);
  --eu-topbar-border: 1px solid #34435f;
}
/* footer: bordo su navy invece che azzurro chiaro */
html:root[data-theme="dark"] .eu-pagefooter,
html:root[data-theme="dark"] .pub-footer,
html:root[data-theme="dark"] .public-footer { border-color: #34435f; }

/* Componenti con colori CHIARI cablati (non usano i token) → Notturno in dark. */
/* Ricerca /cerca */
html[data-theme="dark"] .cx-card { background: var(--eu-card-bg) !important; border-color: var(--eu-card-line) !important; }
html[data-theme="dark"] .cx-empty { background: var(--eu-field-bg) !important; color: var(--color-muted) !important; border-color: var(--eu-field-line) !important; }
/* Numeri: tabella catalogo */
html[data-theme="dark"] .num-table { background: var(--color-surface) !important; color: var(--color-ink); }
html[data-theme="dark"] .num-table thead th { background: var(--color-surface-2) !important; color: var(--color-heading) !important; }
html[data-theme="dark"] .num-trow, html[data-theme="dark"] .num-trow.num-tkid { background: transparent !important; }
html[data-theme="dark"] .num-trow:nth-child(even) { background: rgba(255, 255, 255, .04) !important; }
/* Piani: tabella specifiche (zebra sabbia → banda navy leggibile) */
html[data-theme="dark"] .acc-specs__table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .04) !important; }
html[data-theme="dark"] .acc-specs__table tbody tr:hover { background: rgba(255, 255, 255, .08) !important; }
/* Cerca: pillole risultato dominio */
html[data-theme="dark"] .cx-item { background: var(--eu-field-bg) !important; border-color: var(--eu-field-line) !important; color: var(--color-ink) !important; }
html[data-theme="dark"] .cx-item:hover { background: var(--color-surface-2) !important; }
html[data-theme="dark"] .cx-dom { color: var(--color-ink) !important; }  /* @ e TLD restano arancio */
/* Supporto: bottone "Scegli i file" */
html[data-theme="dark"] .sup-filebtn { background: var(--color-surface-2) !important; border-color: var(--color-line) !important; color: var(--color-ink) !important; }

/* ============================================================================
   TEMA SABBIA — scelte approvate da Ale (demo.html, 2026-07-19)
   Sfondo pagina  : sabbia #F7F4EE
   Card           : gradiente cobalto #EEF3FC -> #BCD2F4, bordo #B4CAEC
   Campo a riposo : bianco, bordo #CBD7EF
   Campo attivo   : bordo arancio #FF5200 + alone rgba(255,82,0,.18)
   Etichette      : blu scuro #33507c
   Vale ovunque: portale, area utente e APP nativa (nessun gate).
   ========================================================================== */
html:root {
  --color-bg: #F7F4EE;
  --color-line: #B4CAEC;

  --eu-card-bg: linear-gradient(180deg, #EEF3FC 0%, #DAE6F9 100%);
  --eu-card-line: #B4CAEC;
  --eu-field-bg: #ffffff;
  --eu-field-line: #CBD7EF;
  --eu-field-focus: #FF5200;
  --eu-field-ring: rgba(255, 82, 0, 0.18);
  --eu-label-ink: #33507c;
}

body { background: var(--color-bg) !important; }

/* ---- CARD -----------------------------------------------------------------
   Elenco completo dei contenitori-card di portale, area utente e APP (kit +
   classi proprie delle singole pagine). !important perche' molte pagine
   dichiarano il proprio background in uno <style> inline, che nel documento
   viene dopo questo foglio. */
.pub-panel, .pub-card, .acc-card, .acc-panel, .acc-setup-panel, .acc-specs,
.acc-plan, .acc-mplan, .acq-card, .addr-box, .card, .panel, .cfg-card,
.cs-card, .dash-card, .device-card, .es-front, .es-notfound, .es-results,
.es-stage, .faqx-item, .ind-card,
.mset-card, .num-card, .num-ctx, .num-kpi,
.plan-card, .plan-note-card, .plans-panel, .best-card, .result-card,
.ris-panel, .ris-card, .sp-card, .st-card, .st-hist, .st-inc, .sup-card,
.uck-card, .ucl-card, .ucs-card, .ucs-setup, .urec-card {
  background: var(--eu-card-bg) !important;
  border-color: var(--eu-card-line) !important;
}

/* ---- CAMPI e righe dentro le card: restano BIANCHI ---- */
.pub-field input, .pub-field select, .pub-field textarea,
.acc-field input, .acc-field select, .acc-field textarea,
.sup-drop, .acc-row, .cerca-row, .result-row,
.faqx-a {
  background: var(--eu-field-bg) !important;
  border-color: var(--eu-field-line) !important;
}
.pub-field input:focus, .pub-field select:focus, .pub-field textarea:focus,
.acc-field input:focus, .acc-field select:focus, .acc-field textarea:focus {
  outline: none;
  border-color: var(--eu-field-focus) !important;
  box-shadow: 0 0 0 3px var(--eu-field-ring) !important;
}

/* ---- TABELLA SPECIFICHE: griglia di dati, non card.
   Fondo bianco, righe alternate azzurro chiarissimo, colonna sotto il
   puntatore in cobalto tenue (il grigio di default nasceva per fondo bianco e
   sul gradiente diventava grigio-rosa). */
.acc-specs {
  /* Pannello = SURFACE del tema (bianco in Sabbia, tintato in Ardesia/Mare): niente
     più fascia bianca fissa. Prima era --eu-field-bg (sempre bianco) = bug nei temi. */
  background: var(--color-surface) !important;
  border-color: var(--eu-card-line) !important;
}
/* Righe alternate = SFONDO PAGINA del tema (--color-bg): in Sabbia resta #F7F4EE,
   negli altri temi segue la palette. Non competono con la riga sotto il puntatore. */
.acc-specs__table tbody tr:nth-child(even) { background: var(--color-bg, #F7F4EE); }
.acc-specs__table tbody tr:hover { background: #E3ECFB !important; }
.acc-specs__table .spec-col-hover { background: #E3ECFB !important; }
.acc-specs__table thead th.spec-col-hover {
  background: var(--color-accent, #FF5200) !important;
  color: #fff !important;
}

/* ---- PIANI: sotto la fascia nome+prezzo il fondo torna bianco.
   Solo il fondo: i bordi restano quelli del piano. */
.acc-plan__body, .acc-plan__foot, .acc-mplan__body {
  background: var(--eu-field-bg) !important;
}

/* ---- RIEMPIMENTO AUTOMATICO (Chrome/Edge) --------------------------------
   Il browser forza il suo azzurrino sul campo compilato e il testo diventa
   illeggibile: lo riempiamo di bianco con un'ombra interna (l'unico modo per
   vincere sul fondo dell'autofill) e riportiamo il testo al colore normale. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--color-ink, #111827) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--eu-field-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--eu-field-bg) inset !important;
  border-color: var(--eu-field-line) !important;
  caret-color: var(--color-ink, #111827);
  /* impedisce al browser di ridipingere il fondo dopo il primo paint */
  transition: background-color 9999s ease-in-out 0s;
}
input:-webkit-autofill:focus,
select:-webkit-autofill:focus,
textarea:-webkit-autofill:focus {
  border-color: var(--eu-field-focus) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--eu-field-bg) inset, 0 0 0 3px var(--eu-field-ring) !important;
  box-shadow: 0 0 0 1000px var(--eu-field-bg) inset, 0 0 0 3px var(--eu-field-ring) !important;
}

/* ---- ETICHETTE ---- */
.pub-field label, .acc-field label, .acc-label { color: var(--eu-label-ink); }

/* ---- CHROME: header, drawer e footer restano neutri ---- */
.eu-topbar, .eu-drawer, .eu-drawer__head {
  background: #ffffff;
  border-color: #e5e7eb;
}
/* footer su fondo sabbia: un footer bianco su sabbia faceva un rettangolo
   bianco centrato in fondo alla pagina. */
.eu-pagefooter, .pub-footer, .public-footer {
  background: transparent !important;
  border-color: #B4CAEC;
}

/* ---- NUMERI: la card che contiene la mappa resta bianca (la mappa non si tocca). ---- */
.num-mapwrap { background: var(--eu-field-bg) !important; }


/* ============================================================================
   SCALA TIPOGRAFICA — valori predefiniti della pagina DEMO, applicati ovunque
   (portale, area utente, APP nativa). Otto ruoli, uno per ogni funzione:

     titolo pagina   28px / 900 / 1,15
     titolo sezione  18px / 900 / 1,25
     titolino blocco 14px / 800 / 1,3
     descrizione     14px / 400 / 1,45
     titolo in card  16px / 800 / 1,3
     corpo           14px / 400 / 1,45
     etichetta campo 14px / 600 / 1,3   (colore #33507c)
     numero/valore   14px / 900         (cifre allineate)

   Dove il testo è volutamente più grande (prezzi, hero della ricerca, numeri
   delle KPI) non si tocca: la scala fissa i ruoli e il minimo, non appiattisce.
   ========================================================================== */
:root {
  --eu-h1-size: 28px;   --eu-h1-weight: 900;  --eu-h1-lh: 1.15;
  --eu-sec-size: 18px;  --eu-sec-weight: 900; --eu-sec-lh: 1.25;
  --eu-tit-size: 14px;  --eu-tit-weight: 800; --eu-tit-lh: 1.3;
  --eu-help-size: 14px; --eu-help-weight: 400; --eu-help-lh: 1.45;
  --eu-ctit-size: 16px; --eu-ctit-weight: 800; --eu-ctit-lh: 1.3;
  --eu-body-size: 14px; --eu-body-weight: 400; --eu-body-lh: 1.45;
  --eu-lab-size: 14px;  --eu-lab-weight: 600; --eu-lab-lh: 1.3;
  --eu-num-size: 14px;  --eu-num-weight: 900;
}

/* ---- titolo pagina ---- */
html .pub-hero h1, html .acc-head h1, html .page-title-block h1, html .eu-page h1 {
  font-size: var(--eu-h1-size) !important;
  font-weight: var(--eu-h1-weight) !important;
  line-height: var(--eu-h1-lh) !important;
}

/* ---- titolo sezione ---- */
html .pub-section-title, html .acc-sect, html .sup-sectitle, html .num-sect, html h2.section-title {
  font-size: var(--eu-sec-size) !important;
  font-weight: var(--eu-sec-weight) !important;
  line-height: var(--eu-sec-lh) !important;
}

/* ---- titolino di blocco (sempre FUORI dalla card) ---- */
html .ind-title, html .sup-title, html .acc-blocktitle {
  font-size: var(--eu-tit-size) !important;
  font-weight: var(--eu-tit-weight) !important;
  line-height: var(--eu-tit-lh) !important;
}

/* ---- descrizione sotto il titolino ---- */
html .ind-help, html .sup-help, html .acc-sub, html .page-description, html .pub-hero p {
  font-size: var(--eu-help-size) !important;
  font-weight: var(--eu-help-weight) !important;
  line-height: var(--eu-help-lh) !important;
}

/* ---- titolo dentro la card ---- */
html .pub-card h3, html .acc-card h3, html .acc-panel h3, html .num-card h3, html .sup-card h3,
html .ind-card h3, html .st-card h3 {
  font-size: var(--eu-ctit-size) !important;
  font-weight: var(--eu-ctit-weight) !important;
  line-height: var(--eu-ctit-lh) !important;
}

/* ---- corpo ---- */
html .pub-card p, html .acc-card p, html .acc-panel p, html .pub-prose p, html .acc-text {
  font-size: var(--eu-body-size) !important;
  font-weight: var(--eu-body-weight) !important;
  line-height: var(--eu-body-lh) !important;
}

/* ---- etichetta di campo ---- */
html .pub-field label, html .acc-field label, html .acc-label, html .field label {
  font-size: var(--eu-lab-size) !important;
  font-weight: var(--eu-lab-weight) !important;
  line-height: var(--eu-lab-lh) !important;
  color: var(--eu-label-ink) !important;
}

/* ---- numeri e valori ---- */
html .acc-row b, html .ind-card b, html .num-rankrow i, html .acc-specs__table td b {
  font-size: var(--eu-num-size) !important;
  font-weight: var(--eu-num-weight) !important;
  font-variant-numeric: tabular-nums;
}
