/**
 * RadarAddress — Foglio di stile principale
 * Aria di famiglia con RadarWave / RadarQuick / DB-Quick
 *
 * Palette: arancio/oro (radarquick-orange + dbquick-gold)
 * Tipografia: Inter + Space Grotesk display
 */

/* ===============================================
   FONT SELF-HOSTED (no Google CDN — vedi header.inc.php)
   =============================================== */
/* Font self-hosted (subset latin + latin-ext) — sostituiscono Google Fonts CDN.
 * Rigenerati da scripts/fonts/ o dallo scratchpad. font-display: swap = anti-FOIT. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.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: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.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: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin-ext.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: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin.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: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin-ext.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: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.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: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin-ext.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: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin.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;
}
/* greco: sottoinsieme aggiunto col sito in greco (15/09/2026); Space Grotesk non lo ha, i titoli in greco usano Inter (html[lang=el]) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}


/* ===============================================
   VARIABILI CSS
   =============================================== */
:root {
    /* Brand RadarAddress */
    --ra-orange:       #e85520;
    --ra-orange-dark:  #c44214;
    --ra-orange-light: #f06b38;
    --ra-amber:        #f0a020;
    --ra-gold:         #b8860b;
    --ra-gold-dark:    #996f00;

    /* Sintesi brand */
    --primary:         var(--ra-orange);
    --primary-dark:    var(--ra-orange-dark);
    --primary-light:   var(--ra-orange-light);
    --accent:          var(--ra-amber);

    /* Stati */
    --success:  #10b981;
    --warning:  #f59e0b;
    --error:    #ef4444;
    --info:     #3b82f6;

    /* Neutri */
    --white:    #ffffff;
    --bg:       #fafafa;
    --bg-soft:  #f5f5f4;
    --bg-card:  #ffffff;
    --border:   #e5e7eb;
    --border-strong: #d1d5db;
    --text:     #111827;
    --text-soft:#4b5563;
    --text-muted:#5f6b7a;   /* era #9ca3af: 2,5:1 su bianco, sotto la soglia AA su ogni sua occorrenza (Lighthouse) */

    /* Ombre */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg:  0 10px 25px rgba(0,0,0,0.10);
    --shadow-brand: 0 10px 25px rgba(232, 85, 32, 0.25);

    /* Tipografia */
    --font-sans:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', 'Monaco', monospace;

    /* Spaziature */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;

    /* Raggi */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    /* Transizioni */
    --t-fast: 0.15s ease;
    --t:      0.25s ease;

    /* Gradienti brand */
    --grad-primary: linear-gradient(135deg, var(--ra-orange) 0%, var(--ra-orange-dark) 100%);
    --grad-warm:    linear-gradient(135deg, var(--ra-orange) 0%, var(--ra-amber) 100%);
    --grad-hero:    linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    /* nuova veste (2026-09-12): fondi crema e arancione scuro di RadarQuick, mai nero */
    --bg-crema:     #fbf7f2;
    --grad-scuro:   linear-gradient(135deg, #c44214 0%, #b85c00 100%);
    --grad-gold:    linear-gradient(135deg, var(--ra-gold) 0%, var(--ra-orange) 100%);
}
/* Il greco: Space Grotesk non ha l'alfabeto greco, i titoli passano a Inter (stesso peso) */
html[lang="el"] { --font-display: 'Inter', system-ui, sans-serif; }

/* ===============================================
   RESET
   =============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { text-decoration: underline; }
/* Link nel testo scorrevole: sottolineati, non solo colorati (Lighthouse "links rely on color") */
main :is(p, li, dd, summary) a:not(.btn) { text-decoration: underline; text-underline-offset: 0.15em; }

button { font-family: inherit; cursor: pointer; }

/* ===============================================
   TIPOGRAFIA
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-soft); }

/* Ritmo verticale dei testi discorsivi delle vetrine (il reset azzera ogni
   margine): paragrafi e liste consecutivi respirano, i titoli hanno aria
   sopra e poca sotto. Gli stili inline delle pagine, dove ci sono,
   prevalgono. La dashboard (main.dash-main) resta fuori. */
main:not(.dash-main) p + p,
main:not(.dash-main) p + ul, main:not(.dash-main) p + ol,
main:not(.dash-main) ul + p, main:not(.dash-main) ol + p { margin-top: .7rem; }
main:not(.dash-main) h2 + p, main:not(.dash-main) h3 + p { margin-top: .45rem; }
main:not(.dash-main) p + h2, main:not(.dash-main) ul + h2, main:not(.dash-main) ol + h2 { margin-top: var(--sp-8); }
main:not(.dash-main) p + h3, main:not(.dash-main) ul + h3, main:not(.dash-main) ol + h3 { margin-top: var(--sp-5); }
main:not(.dash-main) ul:not([class]):not([style]),
main:not(.dash-main) ol:not([class]):not([style]) { padding-left: 1.3rem; }
main:not(.dash-main) ul:not([class]):not([style]) li + li,
main:not(.dash-main) ol:not([class]):not([style]) li + li { margin-top: .3rem; }
main .card h3 + p, main .section-head h2 + p { margin-top: 0; }   /* hanno già il loro margine */

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* .eyebrow (il badge «● PREZZI» sopra i titoli) tolto da tutte le pagine il 13/09/2026 */

/* Skip link a11y */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary-dark); color: #fff;   /* --primary è 3,65:1, sotto la soglia AA */
    padding: 0.6rem 1rem; border-radius: 0 0 6px 6px;
    z-index: 100;
}
.skip-link:focus { left: 1rem; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===============================================
   LAYOUT
   =============================================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--sp-6); }

main { min-height: calc(100vh - 200px); }

section { padding: var(--sp-8) 0; }    /* 32px: con 64 (poi 48 e 40) i blocchi di testo delle vetrine restavano troppo distanti */
section.compact { padding: var(--sp-10) 0; }

/* ===============================================
   HEADER + NAV (aria di famiglia radarwave)
   =============================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-4);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    flex-shrink: 0;   /* col menu lungo il marchio si schiacciava e la riga sotto andava a capo */
}
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--grad-warm);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.brand-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-dark);   /* --primary è 3,65:1 su bianco, sotto la soglia AA: Lighthouse lo segnalava */
    margin-top: 2px;
}

.site-nav { display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
    white-space: nowrap;   /* le voci non vanno mai a capo: sotto 860px c'è il menu a panino */
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all var(--t-fast);
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
/* la pagina corrente si vede: arancione pieno su fondo chiaro, non grigio su grigio (correzione utente 13/09) */
.site-nav a.active { color: var(--primary-dark, #b8540f); background: rgba(232, 85, 32, 0.12); font-weight: 700; }


/* Override: il bottone Accedi è un .btn-primary dentro .site-nav. Senza questa
   regola la specificità di ".site-nav a" sovrascriverebbe il color:#fff del btn. */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus {
    color: #fff;
    background: var(--grad-primary);
}

.nav-toggle { display: none; background: none; border: 1px solid var(--border); padding: 0.5rem; border-radius: 8px; }
.nav-toggle svg { width: 20px; height: 20px; }

/* Selettore di lingua nella barra (globo + sigla): tendina con le lingue attive */
.lang-menu { position: relative; margin-left: 0.35rem; }
.lang-menu-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: #fff; color: var(--text-soft);
    font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
    cursor: pointer; transition: all var(--t-fast);
}
.lang-menu-btn svg { flex-shrink: 0; }   /* con la barra piena il globo si stringeva fino a sparire */
.lang-menu-btn:hover, .lang-menu.open .lang-menu-btn { color: var(--text); background: var(--bg-soft); }
.lang-menu-list {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 170px; margin: 0; padding: 0.35rem; list-style: none;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg, 0 12px 30px rgba(0,0,0,0.12)); z-index: 60;
}
.lang-menu.open .lang-menu-list { display: block; }
/* le voci della tendina come quelle della barra, anche fuori da .site-nav (la testa
   dell'area personale non ha la barra: lì uscivano col colore dei link, arancioni) */
.lang-menu-list a, .lang-menu-current {
    display: block; padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.92rem;
    color: var(--text-soft); font-weight: 500; white-space: nowrap; transition: all var(--t-fast);
}
.lang-menu-list a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.lang-menu-current { color: var(--text-muted); font-weight: 600; }
.lang-menu-current::after { content: " ✓"; color: var(--primary); }

/* Invito nella lingua del browser, sotto la barra */
.lang-banner { background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.lang-banner .container { display: flex; align-items: center; gap: var(--sp-3); padding-top: 0.55rem; padding-bottom: 0.55rem; flex-wrap: wrap; }
.lang-banner span { flex: 1 1 auto; color: var(--text-soft); }
.lang-banner-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0 0.25rem; }
.lang-banner-close:hover { color: var(--text); }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; }
    .lang-menu { margin: 0.4rem 0 0; }
    .lang-menu-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 0.8rem; display: block; }
    .lang-menu-btn { display: none; }
    .site-nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        padding: var(--sp-3) var(--sp-4);
        border-bottom: 1px solid var(--border);
        gap: 2px;
    }
    .site-nav.open a { padding: 0.7rem 0.95rem; border-radius: 8px; }
}
/* Lo stesso menu compatto anche sopra gli 860 px quando la barra esce dalla FINESTRA: in francese,
   tedesco o olandese sbordava (28/09/2026). Uscire dal contenitore va bene, sugli schermi larghi è
   sempre stato così. Non una soglia per lingua: lo script subito dopo la testata (header.inc.php)
   misura, prova prima .larga e poi .compatta, e rimisura quando cambia la finestra. */
/* Prima del menu compatto un passo in mezzo: la barra usa tutta la finestra invece dei 1180 px */
.site-header.larga .container { max-width: none; }
.site-header.compatta .nav-toggle { display: inline-flex; }
.site-header.compatta .site-nav { display: none; }
.site-header.compatta .lang-menu { margin: 0.4rem 0 0; }
.site-header.compatta .lang-menu-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 0.8rem; display: block; }
.site-header.compatta .lang-menu-btn { display: none; }
.site-header.compatta .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); gap: 2px;
}
.site-header.compatta .site-nav.open a { padding: 0.7rem 0.95rem; border-radius: 8px; }

/* ===============================================
   BOTTONI
   =============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: all var(--t-fast);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(232, 85, 32, 0.35); }
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); }
.btn-ghost {
    background: transparent;
    color: var(--primary-dark);   /* --primary è 3,65:1 su bianco, sotto la soglia AA */
}
.btn-ghost:hover { background: rgba(232, 85, 32, 0.08); }
.btn-lg { padding: 0.95rem 1.85rem; font-size: 1rem; }
.btn-md { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===============================================
   HERO
   =============================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: var(--sp-8) 0 var(--sp-10);   /* era sp-16: mezza schermata prima del titolo (correzione utente 13/09) */
    background: var(--bg-crema);
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(240, 160, 32, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232, 85, 32, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    align-items: center;
}
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--sp-16); }
}
.hero h1 { margin: 0 0 var(--sp-5); font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--ra-orange), var(--ra-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--text-soft); margin-bottom: var(--sp-6); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Visualizzazione "radar" trasformazione esempio (mockup) */
.hero-visual {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-6);
    border: 1px solid var(--border);
}
.transform-card {
    border-radius: var(--radius);
    padding: var(--sp-4);
    margin-bottom: var(--sp-3);
}
.transform-card .label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sp-1);
}
.transform-card.input {
    background: #fef2f2;
    border-left: 4px solid #fca5a5;
}
.transform-card.input .text { font-family: var(--font-mono); color: #991b1b; }
.transform-card.output {
    background: #ecfdf5;
    border-left: 4px solid var(--success);
}
.transform-card.output .text { font-family: var(--font-mono); color: #065f46; }
.transform-arrow {
    text-align: center;
    color: var(--primary);
    margin: var(--sp-2) 0;
    font-size: 1.5rem;
}

/* ===============================================
   CARD GENERICA
   =============================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    transition: all var(--t);
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 85, 32, 0.3);
    box-shadow: var(--shadow-md);
}
.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--grad-warm);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--sp-4);
    box-shadow: var(--shadow-brand);
}
.card h3 { margin-bottom: var(--sp-2); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--sp-8);
}
.section-head h2 { margin: var(--sp-3) 0 var(--sp-3); }
.section-head p { font-size: 1.05rem; }

/* ===============================================
   FORM
   =============================================== */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--sp-5) var(--sp-6);
    box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
    .form-card { padding: var(--sp-4); }
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-3);
}
.field { display: flex; flex-direction: column; gap: 0.2rem; }
.field[hidden] { display: none; }   /* l'attributo hidden deve vincere sul display del campo (menu «Nazione» della deduplica) */
.field.col-12 { grid-column: span 12; }
.field.col-8 { grid-column: span 8; }
.field.col-6 { grid-column: span 6; }
.field.col-4 { grid-column: span 4; }
.field.col-3 { grid-column: span 3; }
.field.col-2 { grid-column: span 2; }
@media (max-width: 720px) {
    .field[class*="col-"] { grid-column: span 12; }
}
.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.01em;
}
.field label .required { color: var(--primary-dark); }
.field .hint { font-size: 0.75rem; color: var(--text-muted); }
/* checkbox con etichetta in linea (ricordami, consensi) */
.field.field-check { flex-direction: row; align-items: flex-start; gap: 0.5rem; }
.field.field-check input[type="checkbox"] { width: auto; margin-top: 0.2rem; flex-shrink: 0; }
.field.field-check label { font-weight: 400; margin: 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%;
    padding: 0.45rem 0.7rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 85, 32, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }

.form-actions {
    display: flex; flex-wrap: wrap; gap: var(--sp-3);
    margin-top: var(--sp-4);
    align-items: center;
}

/* Pagine legali (privacy, cookie, termini) */
.legal-page h1 { margin-bottom: var(--sp-2); }
.legal-page .legal-update { color: var(--text-muted); font-size: .88rem; margin-bottom: var(--sp-8); }
.legal-page h2 { font-size: 1.35rem; margin: var(--sp-8) 0 var(--sp-3); }
.legal-page h3 { font-size: 1.08rem; margin: var(--sp-5) 0 var(--sp-2); }
.legal-page p, .legal-page li { color: var(--text-soft); font-size: .95rem; line-height: 1.65; }
.legal-page p { margin-bottom: var(--sp-3); }
.legal-page ul, .legal-page ol { padding-left: 1.4rem; margin-bottom: var(--sp-4); display: flex; flex-direction: column; gap: .35rem; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: var(--sp-4) 0; }
.legal-page table th, .legal-page table td { padding: .5rem .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-page table th { background: #fafaf9; font-weight: 600; }
.legal-page .table-wrap { overflow-x: auto; }

/* ===============================================
   RISULTATO NORMALIZZAZIONE
   =============================================== */
.result {
    margin-top: var(--sp-8);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}
/* (#1) variante "attaccata" per la pagina verifica: il pannello viene
   subito dopo il titolo, niente margin-top da pagine marketing. */
.result.result-flush { margin-top: var(--sp-3); }
.result-head {
    padding: var(--sp-5) var(--sp-6);
    background: var(--grad-warm);
    color: #fff;
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}
.result-head.ok    { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.result-head.warn  { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.result-head.error { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.result-head .badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: rgba(255,255,255,0.25);
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.result-head h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.result-head p { color: rgba(255,255,255,0.92); margin: 0.2rem 0 0; font-size: 0.9rem; }

.result-body { padding: var(--sp-4); }  /* (#12) ridotto da sp-6 a sp-4 — si sommava al padding di .compare */

.compare-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}
@media (min-width: 720px) {
    .compare-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
.compare {
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);  /* (#4) ridotto */
    border: 1px solid var(--border);
}
@media (max-width: 720px) {
    .compare { padding: var(--sp-3); }
}
.compare h2, .compare h4 {
    font-family: var(--font-sans);
    font-size: 0.68rem;                 /* (#2) ridotto */
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: var(--sp-2);         /* (#2) ridotto da sp-3 */
}
.compare.before { background: #fafafa; }
.compare.after  { background: #ecfdf5; border-color: #a7f3d0; }

/* Badge semantici sulle azioni del motore: valorizzato / normalizzato / modificato.
   Compaiono inline accanto al valore della singola riga modificata. */
.badge-action {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    border: 1px solid;
    font-family: var(--font-sans);
    line-height: 1.4;
    white-space: nowrap;
}
.badge-action-valorizzato  { background: #dbeafe; color: #1e40af; border-color: #93c5fd; } /* blu  = arricchito */
.badge-action-normalizzato { background: #fef3c7; color: #92400e; border-color: #fcd34d; } /* ambra = solo forma */
.badge-action-modificato   { background: #fed7aa; color: #9a3412; border-color: #fdba74; } /* arancio = cambio sostanziale */

/* Highlight char-by-char nei valori normalizzati (stessa palette del badge).
   Compare solo se NON tutti i caratteri alfabetici sono cambiati.
   Niente padding orizzontale: il <mark> deve combaciare col char successivo,
   altrimenti "S" evidenziata + "nc" mostrano un gap antiestetico. */
mark.diff-char {
    background: #fef3c7;
    color: #92400e;
    padding: 0;
    border-radius: 2px;
    font-weight: 700;
}

/* Form a sinistra del pannello "verifica": stessa griglia label/input del
   risultato a destra, righe allineate 1:1 con la colonna destra. */
.verify-form-dl input[type="text"],
.ra-testo-libero textarea,
.verify-form-dl select {
    width: 100%;
    resize: vertical;
    padding: 0.4rem 0.6rem;
    font-family: var(--font-sans);        /* (#5) sans-serif: a sinistra si SCRIVE, mono solo a destra */
    font-size: 0.9rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    line-height: 1.3;
}
.verify-form-dl input[type="text"]:focus,
.ra-testo-libero textarea:focus,
.verify-form-dl select:focus {
    /* (#10) WCAG 2.4.7: outline esplicito oltre al box-shadow */
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 85, 32, 0.15);
}
.verify-form-dl label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
}
.verify-form-dl dd { margin: 0; }

/* Stato "vuoto" del pannello destro (prima della verifica): mostra solo
   il placeholder, nasconde la dl che è ancora vuota. */
#ra-after.empty dl,
#ra-after:not(.empty) .verify-after-placeholder { display: none; }
.verify-after-placeholder {
    /* (#6) icona + testo centrati verticalmente; richiamo visivo di "trasformazione" */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--sp-2);
    padding: var(--sp-6) var(--sp-4);
    color: var(--text-muted);
    font-size: 0.88rem;
    min-height: 120px;
}
.verify-after-placeholder svg {
    opacity: 0.35;
    color: var(--success);
}

/* Suggerimenti per esiti "non univoco": l'utente clicca per popolare il form
   e rilanciare la verifica. */
.suggestions {
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border);
}
.suggestions h4 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sp-2);
}
.sugg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--sp-3);
}
.sugg-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all var(--t-fast);
}
.sugg-card:hover {
    border-color: var(--primary);
    background: #fff7ed;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.sugg-card .sugg-text {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}
/* (#11) CTA visivamente separata dal dato sopra, a piena larghezza */
.sugg-card .sugg-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.3rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(232, 85, 32, 0.15);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-dark);   /* --primary è 3,65:1 su bianco, sotto la soglia AA */
    transition: color var(--t-fast);
}
.sugg-card .sugg-cta::after {
    content: '→';
    transition: transform var(--t-fast);
}
.sugg-card:hover .sugg-cta { color: var(--primary-dark); }
.sugg-card:hover .sugg-cta::after { transform: translateX(3px); }
.compare dl {
    display: grid;
    /* prima colonna a larghezza fissa per allineare riga-per-riga le due dl
       (sinistra=form con input, destra=valore statico); senza fissarla, "Indirizzo *"
       e "Indirizzo" hanno larghezze diverse e ogni riga si scompone */
    grid-template-columns: 6.5rem 1fr;
    grid-auto-rows: minmax(2.1rem, auto);   /* altezza minima riga = altezza input */
    gap: 0.3rem 0.85rem;
    font-size: 0.92rem;
    align-items: center;
}
.compare dt { font-weight: 600; color: var(--text-muted); white-space: nowrap; }  /* niente wrap del label */
.compare dd {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    word-break: break-word;
    /* flusso inline normale: il testo, le <mark> del diff e il badge stanno
       sulla stessa linea senza spazi artificiali tra i caratteri */
}
.compare dd.changed { color: var(--primary-dark); font-weight: 600; }
.compare dd .badge-action { margin-left: 0.5rem; }   /* unico spazio: tra valore e badge */

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding-top: var(--sp-5);
    margin-top: var(--sp-5);
    border-top: 1px solid var(--border);
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
}
.tag.brand { background: rgba(232, 85, 32, 0.08); border-color: rgba(232, 85, 32, 0.3); color: #a8380f; }   /* più scuro di --primary-dark: su fondo crema il badge scendeva sotto 4,5:1 */

/* ===============================================
   TABELLA
   =============================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table thead th {
    text-align: left;
    padding: 0.7rem 0.9rem;
    background: var(--bg-soft);
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    color: var(--text);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.data-table tbody td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.data-table tbody tr:hover td { background: #fffbeb; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
}

/* ===============================================
   STATISTICHE / NUMERI
   =============================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-5);
    padding: var(--sp-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.stat .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat .label {
    color: var(--text-soft);
    font-size: 0.88rem;
    margin-top: var(--sp-1);
}

/* ===============================================
   CODE BLOCK / API DOC
   =============================================== */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: var(--radius);
    padding: var(--sp-4) var(--sp-5);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.55;
}
.code-block .k { color: #fb923c; }
.code-block .s { color: #86efac; }
.code-block .n { color: #93c5fd; }
.code-block .c { color: #64748b; font-style: italic; }

.endpoint {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    margin: var(--sp-3) 0;
}
.method {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}
.method.post { background: #10b981; }
.method.get  { background: #3b82f6; }

/* ===============================================
   FAQ
   =============================================== */
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: var(--sp-3);
    background: #fff;
    transition: border-color var(--t-fast);
}
.faq details[open] { border-color: rgba(232, 85, 32, 0.4); }
.faq summary {
    padding: var(--sp-4) var(--sp-5);
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
    transition: transform var(--t-fast);
}
.faq details[open] summary::after { content: '−'; }
.faq details > p { padding: 0 var(--sp-5) var(--sp-5); margin: 0; }

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
    /* come RadarQuick (marketing.css .site-footer: --gray-900), per l'aria di famiglia;
       lo sfumato arancione (--grad-scuro) resta per la chiusura e i contrassegni */
    background: #111827;
    color: rgba(255,255,255,0.7);
    padding: var(--sp-12) 0 var(--sp-6);
    margin-top: var(--sp-20);
}
.site-footer .footer-heading {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-4);
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
.footer-social a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-8);
    margin-bottom: var(--sp-8);
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: var(--sp-3); font-size: 0.92rem; }
.footer-brand .brand-text span { color: var(--primary-light); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; }
.footer-legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-bottom {
    padding-top: var(--sp-6);
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

/* ===============================================
   NUOVA VESTE (2026-09-12): demo nell'hero, prima/dopo, tre porte
   =============================================== */
.hero-nota { margin-top: var(--sp-4); font-size: 0.85rem; color: var(--text-muted); }

.demo-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 50px rgba(31, 26, 23, 0.10);
    overflow: hidden;
    font-size: 0.92rem;
}
.demo-top {
    display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
    background: #f6efe8; padding: 0.6rem var(--sp-4);
    font-size: 0.82rem; color: var(--text-soft);
}
.demo-altro {
    background: none; border: 0; color: var(--primary-dark); font: inherit; font-size: 0.85rem;
    font-weight: 600; cursor: pointer; padding: 0.2rem 0.4rem; border-radius: var(--radius-sm);
}
.demo-altro:hover { background: rgba(232, 85, 32, 0.08); }
.demo-altro[disabled] { opacity: 0.5; cursor: wait; }
.demo-body { display: grid; grid-template-columns: 1fr 1fr; }
.demo-col { padding: var(--sp-4); }
.demo-col + .demo-col { border-left: 1px solid var(--border); background: var(--bg-crema); }
.demo-field { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; margin-bottom: 0.45rem; background: #fff; font-family: var(--font-mono); font-size: 0.86rem; }
.demo-field small, .demo-risultato > small {
    display: block; font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.15rem;
}
.demo-vuoto { color: var(--text-muted); }
.demo-out { font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin: 0.35rem 0 0.6rem; }
.demo-out mark.diff { background: #fff3e8; color: inherit; border-radius: 3px; padding: 0 3px; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.demo-avviso { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.demo-avviso-warning { color: #b45309; }
.demo-avviso-error { color: #b91c1c; }
.demo-geo { margin-top: 0.6rem; font-size: 0.82rem; color: var(--text-soft); }
.demo-nota { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--text-soft); background: #fff; }
@media (max-width: 600px) {
    .demo-body { grid-template-columns: 1fr; }
    .demo-col + .demo-col { border-left: 0; border-top: 1px solid var(--border); }
}

/* Prima e dopo: input → risultato, con le etichette */
.casi { list-style: none; margin: 0; padding: 0; }
.casi li {
    display: grid; grid-template-columns: 1fr 28px 1.2fr; gap: var(--sp-3); align-items: center;
    padding: var(--sp-3) 0; border-top: 1px solid var(--border);
}
.casi li:first-child { border-top: 0; }
.casi .in { font-family: var(--font-mono); color: #8a3a2a; font-size: 0.9rem; }
.casi .arr { color: var(--primary); text-align: center; font-size: 1.3rem; }
.casi .out { font-weight: 600; }
.casi .out .tag { margin-left: 0.35rem; vertical-align: middle; font-weight: 600; }
.casi .nota-fonte { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--text-muted); }
/* Elenchi a etichetta (nazioni.php): la prima colonna è un nome corto, il testo prende il resto;
   larghezza fissa così i due elenchi della pagina restano allineati fra loro */
.nazioni-elenco li { grid-template-columns: minmax(10rem, max-content) 28px 1fr; }
/* Le nazioni in servizio: colonne allineate sulla veste della pagina (niente riquadro
   bianco), il nome scuro con l'attribuzione sotto, i numeri a destra, le celle corte
   senza a capo; sul telefono la tabella scorre in orizzontale */
.nazioni-tabella-wrap { overflow-x: auto; }
.nazioni-tabella { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.nazioni-tabella th { text-align: left; padding: 0 var(--sp-4) 0.55rem 0; border-bottom: 2px solid var(--border);
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.nazioni-tabella td { padding: var(--sp-3) var(--sp-4) var(--sp-3) 0; border-top: 1px solid var(--border); vertical-align: top; }
.nazioni-tabella tbody tr:first-child td { border-top: 0; }
.nazioni-tabella th:last-child, .nazioni-tabella td:last-child { padding-right: 0; }
.nazioni-tabella td.nome { font-weight: 600; width: 25%; min-width: 14rem; }
.nazioni-tabella td.nome a { color: inherit; text-decoration: none; }
.nazioni-tabella td.nome a:hover { text-decoration: underline; }
.nazioni-tabella td.nome .nota-fonte { display: block; font-weight: 400; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; max-width: 26rem; }
.nazioni-tabella th.num, .nazioni-tabella td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nazioni-tabella td.data { white-space: nowrap; }
.nazioni-tabella td.testo { min-width: 13rem; }
@media (max-width: 600px) {
    .casi li { grid-template-columns: 1fr; gap: 0.25rem; }
    .casi .arr { text-align: left; transform: rotate(90deg); display: inline-block; width: 1.3rem; }
}

/* Tre porte: passi numerati */
.porte { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); }
.porta { display: flex; gap: var(--sp-3); align-items: flex-start; }
.porta i {
    flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--grad-gold); color: #fff;
    font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
}
.porta h3 { margin-bottom: var(--sp-1); font-size: 1.05rem; }
.porta p { font-size: 0.95rem; }

/* La riga «E il resto della scheda» sotto le card dei servizi */
.resto { margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-soft); font-size: 0.95rem; }
.resto strong { color: var(--text); }

/* ===============================================
   UTILITY
   =============================================== */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.flex { display: flex; }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* Animazione "radar pulse" per icone */
@keyframes radar-pulse {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.radar-pulse {
    position: relative;
}
.radar-pulse::before,
.radar-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: radar-pulse 2.4s linear infinite;
}
.radar-pulse::after { animation-delay: 1.2s; }

/* fade-in iniziale */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-in-up 0.6s ease-out both; }


/* ---- Strumenti dell'area personale: testa standard + riquadro del credito (2026-09-03) ---- */
.strum-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,460px); gap:var(--sp-6); align-items:start; margin:0 0 var(--sp-6); }
.strum-head h1 { font-size:1.5rem; margin:0 0 var(--sp-2); }
.strum-head .strum-help { color:var(--text-soft); margin:0; font-size:.95rem; max-width:640px; }
.credito-box { display:flex; justify-content:space-between; align-items:center; gap:var(--sp-4); background:#fff; border:1px solid var(--border); border-radius:var(--card-radius,12px); padding:.7rem 1rem; font-size:.92rem; color:var(--text); }
.credito-box .credito-box-n { display:block; }
.credito-box .credito-box-n strong { font-size:1.05rem; }
.credito-box .credito-box-dett { display:block; font-size:.78rem; color:var(--text-muted); margin-top:.15rem; }
.credito-box .btn { white-space:nowrap; }
/* Interruttore dei form (verifica il contatto, anche stati esteri): era inline in verifica.php,
   dal 4/09/2026 lo usano anche deduplica e telefono */
.ra-switch { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 var(--sp-3); padding: .6rem .75rem; background: rgba(232, 85, 32, 0.04); border: 1px solid rgba(232, 85, 32, 0.15); border-radius: 10px; cursor: pointer; }
.ra-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ra-switch-track { position: relative; flex-shrink: 0; width: 36px; height: 20px; margin-top: .1rem; background: #cfcac4; border-radius: 999px; transition: background .18s ease; }
.ra-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .18s ease; }
.ra-switch input:checked + .ra-switch-track { background: var(--primary, #e85520); }
.ra-switch input:checked + .ra-switch-track::after { transform: translateX(16px); }
.ra-switch input:focus-visible + .ra-switch-track { outline: 2px solid var(--primary, #e85520); outline-offset: 2px; }
.ra-switch-text { font-size: .9rem; line-height: 1.35; }
.ra-switch-text strong { display: block; }
.ra-switch-text span { display: block; color: var(--text-muted); font-size: .84rem; }
.ra-switch.compact { margin: .5rem 0 0; flex-basis: 100%; }
/* il contenitore del risultato sotto il form (email, telefono, sito, arricchimento) ha 16px di
   margine: vuoto non deve allungare la card, così il box «Lavoro in blocco» sta a 64px ovunque */
#ra-email-out:empty, #ra-tel-out:empty, #ra-url-out:empty, #ra-arr-out:empty { display:none; }
@media (max-width: 1100px) { .strum-head { grid-template-columns:1fr; } }
