/* bundle.css: generato da deploy/build_css_bundle.py, non modificare a mano. */

/* ===== fonts.css ===== */
/* Font ospitati sul sito (prima da Google Fonts). Solo latin e latin-ext. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/inter-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-20C4, 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-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-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-20C4, 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-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-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-20C4, 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-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-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-20C4, 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-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: 700;
    font-display: swap;
    src: url(../fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/jetbrains-mono-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: 'Sora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/sora-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/sora-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: 'Sora';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/sora-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/sora-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: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/sora-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/sora-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;
}

/* ===== design-tokens.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Design System Tokens
 *  Fase 1: CSS Custom Properties — singola fonte di verità
 *  Versione 1.0 — 2026
 *
 *  REGOLA: Non hardcodare mai colori, spacing o tipografia
 *  nei file CSS successivi. Usa sempre queste variabili.
 * ============================================================
 */

:root {

  /* ================================================================
     1. COLORI BRAND
     Derivati direttamente dal logo GIGAPOINT (tre piani blu).
     ================================================================ */

  --gp-blue-deep:        #16335F;   /* faccia superiore logo — sezioni brand */
  --gp-blue-primary:     #2D6FB8;   /* faccia sinistra logo  — colore guida  */
  --gp-blue-accent:      #45AEE8;   /* faccia anteriore logo — highlight/CTA */

  /* Varianti per stati hover/active (10% più scuro / più chiaro) */
  --gp-blue-primary-dark:  #2460A3;
  --gp-blue-accent-dark:   #359FD9;
  --gp-blue-accent-light:  #6BC4F0;


  /* ================================================================
     2. BACKGROUNDS DARK PREMIUM
     Scala di profondità: base → sezione → surface → raised
     ================================================================ */

  --gp-bg-base:           #070B16;   /* sfondo principale — il più scuro      */
  --gp-bg-section:        #0C1322;   /* sezioni alternate — crea ritmo visivo */
  --gp-bg-surface:        #111A2E;   /* card, box, contenitori                */
  --gp-bg-surface-raised: #16213A;   /* card in hover, dropdown, tooltip      */
  --gp-bg-overlay:        rgba(7, 11, 22, 0.92); /* overlay modale / nav mobile */


  /* ================================================================
     3. TESTO
     Off-white azzurrato — mai bianco puro su dark bg.
     Tutte le coppie rispettano WCAG AA (min 4.5:1).
     ================================================================ */

  --gp-text-primary:   #EAF1FB;   /* titoli e body principale  — 14.2:1 su bg-base */
  --gp-text-secondary: #9DB0CC;   /* sottotitoli, paragrafi    —  7.1:1 su bg-base */
  --gp-text-muted:     #6B7C99;   /* caption, label, metadati  —  4.6:1 su bg-base */
  --gp-text-inverse:   #070B16;   /* testo su sfondi chiari (badge, btn pieno)     */
  --gp-text-accent:    #45AEE8;   /* link, overline, highlight — stesso blu accento */


  /* ================================================================
     4. BORDI
     Hairline quasi invisibili che definiscono le superfici.
     ================================================================ */

  --gp-border-hairline: rgba(255, 255, 255, 0.07);   /* riposo — quasi impercettibile */
  --gp-border-subtle:   rgba(255, 255, 255, 0.12);   /* divisori, separatori          */
  --gp-border-accent:   rgba(69, 174, 232, 0.35);    /* hover card, focus             */
  --gp-border-active:   rgba(69, 174, 232, 0.65);    /* stato attivo / selezionato    */


  /* ================================================================
     5. GRADIENTI
     Un unico gradiente ufficiale. Usato con parsimonia.
     ================================================================ */

  --gp-gradient-brand:    linear-gradient(135deg, #2D6FB8 0%, #45AEE8 100%);
  --gp-gradient-brand-v:  linear-gradient(180deg,  #2D6FB8 0%, #45AEE8 100%);
  --gp-gradient-hero-bg:  radial-gradient(ellipse 70% 55% at 68% 50%,
                             rgba(45, 111, 184, 0.09) 0%,
                             transparent 70%);
  --gp-gradient-surface:  linear-gradient(135deg,
                             rgba(22, 33, 58, 0.8) 0%,
                             rgba(17, 26, 46, 0.6) 100%);
  --gp-gradient-glow-bg:  radial-gradient(circle 400px at 65% 50%,
                             rgba(69, 174, 232, 0.06) 0%,
                             transparent 70%);


  /* ================================================================
     6. COLORI SEMANTICI
     Solo per stati funzionali (badge, alert, status dot).
     MAI usare il verde come colore decorativo/brand.
     ================================================================ */

  --gp-success:       #3DD68C;
  --gp-success-bg:    rgba(61, 214, 140, 0.12);
  --gp-success-text:  #3DD68C;

  --gp-warning:       #F5B544;
  --gp-warning-bg:    rgba(245, 181, 68, 0.12);
  --gp-warning-text:  #F5B544;

  --gp-danger:        #F2585F;
  --gp-danger-bg:     rgba(242, 88, 95, 0.12);
  --gp-danger-text:   #F2585F;

  --gp-info:          #45AEE8;
  --gp-info-bg:       rgba(69, 174, 232, 0.12);
  --gp-info-text:     #45AEE8;


  /* ================================================================
     7. TIPOGRAFIA — FAMIGLIE
     Sora: display e titoli (geometrico, fintech)
     Inter: body e UI
     JetBrains Mono: dati, KPI, codice
     ================================================================ */

  --gp-font-display: 'Sora', 'Manrope', 'Inter', sans-serif;
  --gp-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --gp-font-mono:    'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', monospace;


  /* ================================================================
     8. TIPOGRAFIA — SCALA
     Usa clamp() per fluidità tra mobile e desktop.
     Regola: body mai sotto 16px su nessun device.
     ================================================================ */

  /* Display — Hero H1 */
  --gp-text-display:    clamp(38px, 5.5vw, 64px);
  --gp-lh-display:      1.05;
  --gp-ls-display:      -0.025em;
  --gp-fw-display:      700;

  /* H1 */
  --gp-text-h1:         clamp(30px, 4vw, 48px);
  --gp-lh-h1:           1.1;
  --gp-ls-h1:           -0.02em;
  --gp-fw-h1:           700;

  /* H2 */
  --gp-text-h2:         clamp(24px, 3vw, 36px);
  --gp-lh-h2:           1.15;
  --gp-ls-h2:           -0.01em;
  --gp-fw-h2:           600;

  /* H3 */
  --gp-text-h3:         clamp(18px, 2.2vw, 26px);
  --gp-lh-h3:           1.25;
  --gp-ls-h3:           normal;
  --gp-fw-h3:           600;

  /* H4 */
  --gp-text-h4:         clamp(17px, 1.8vw, 20px);
  --gp-lh-h4:           1.35;
  --gp-ls-h4:           normal;
  --gp-fw-h4:           600;

  /* Body large */
  --gp-text-body-lg:    clamp(16px, 1.3vw, 18px);
  --gp-lh-body-lg:      1.65;

  /* Body base */
  --gp-text-body:       16px;
  --gp-lh-body:         1.65;

  /* Small */
  --gp-text-sm:         14px;
  --gp-lh-sm:           1.5;

  /* Overline (etichette uppercase) */
  --gp-text-overline:   13px;
  --gp-lh-overline:     1.4;
  --gp-ls-overline:     0.12em;
  --gp-fw-overline:     600;

  /* Mono / KPI */
  --gp-text-kpi-lg:     clamp(36px, 4vw, 52px);
  --gp-text-kpi:        clamp(26px, 2.5vw, 36px);
  --gp-fw-kpi:          700;


  /* ================================================================
     9. SPACING — scala base 8
     gp-space-N dove N = multiplo (es. space-4 = 4×4 = 16px)
     Eccezione: space-1 = 4px (mezzo passo)
     ================================================================ */

  --gp-space-1:    4px;
  --gp-space-2:    8px;
  --gp-space-3:    12px;
  --gp-space-4:    16px;
  --gp-space-5:    20px;
  --gp-space-6:    24px;
  --gp-space-8:    32px;
  --gp-space-10:   40px;
  --gp-space-12:   48px;
  --gp-space-16:   64px;
  --gp-space-20:   80px;
  --gp-space-24:   96px;
  --gp-space-30:   120px;
  --gp-space-40:   160px;


  /* ================================================================
     10. SEZIONI — padding verticale
     Generoso: lo spazio è il segnale del premium.
     ================================================================ */

  --gp-section-py-xl:   var(--gp-space-40);   /* 160px — sezioni hero */
  --gp-section-py:      var(--gp-space-30);   /* 120px — sezioni standard */
  --gp-section-py-sm:   var(--gp-space-20);   /* 80px  — trust bar, CTA compact */


  /* ================================================================
     11. LAYOUT — container e griglia
     ================================================================ */

  --gp-container-max:   1240px;
  --gp-container-px:    24px;    /* gutter laterale */
  --gp-grid-cols:       12;
  --gp-grid-gap:        24px;
  --gp-grid-gap-sm:     16px;


  /* ================================================================
     12. BORDER RADIUS
     Sistema coerente — nessun valore casuale.
     ================================================================ */

  --gp-radius-xs:   4px;
  --gp-radius-sm:   6px;
  --gp-radius-md:   10px;    /* pulsanti, input */
  --gp-radius-lg:   16px;    /* card principale */
  --gp-radius-xl:   24px;    /* card hero, modal */
  --gp-radius-pill: 999px;   /* badge, chip */


  /* ================================================================
     13. OMBRE
     Tinte di blu scuro — mai nere dure.
     ================================================================ */

  --gp-shadow-xs:     0 4px 12px rgba(5, 10, 25, 0.35);
  --gp-shadow-card:   0 16px 48px rgba(5, 10, 25, 0.50);
  --gp-shadow-hover:  0 28px 72px rgba(5, 10, 25, 0.65);
  --gp-shadow-glow:   0 0 48px rgba(69, 174, 232, 0.10);
  --gp-shadow-focus:  0 0 0 3px rgba(69, 174, 232, 0.40);   /* focus ring */


  /* ================================================================
     14. HEADER
     ================================================================ */

  --gp-header-height:       96px;
  --gp-header-height-mob:   72px;
  --gp-logo-width:          380px;    /* larghezza max logo nel header */
  --gp-logo-width-mob:      240px;
  --gp-header-bg-trans:     rgba(7, 11, 22, 0.82);
  --gp-header-bg-scroll:    rgba(7, 11, 22, 0.97);
  --gp-header-border-scroll: rgba(255, 255, 255, 0.06);


  /* ================================================================
     15. TRANSIZIONI E ANIMAZIONI
     ================================================================ */

  --gp-ease-base:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gp-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);   /* overshot morbido */
  --gp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* spring leggero */

  --gp-transition-fast:   150ms var(--gp-ease-base);
  --gp-transition-base:   220ms var(--gp-ease-base);
  --gp-transition-slow:   380ms var(--gp-ease-out);
  --gp-transition-3d:     320ms var(--gp-ease-out);

  /* Three.js / GSAP references (usate in JS come fallback valori) */
  --gp-sphere-rotation-speed:  0.004;   /* rad/frame (non usata in CSS) */
  --gp-card-tilt-max:          15deg;
  --gp-card-perspective:       1200px;
  --gp-scroll-trigger-start:   "top 80%";

  /* Scroll reveal — valori di partenza per GSAP */
  --gp-reveal-y:       30px;
  --gp-reveal-opacity: 0;
  --gp-reveal-dur:     0.7s;
  --gp-reveal-stagger: 0.12s;


  /* ================================================================
     16. Z-INDEX — scala controllata
     ================================================================ */

  --gp-z-below:    -1;
  --gp-z-base:      1;
  --gp-z-card:     10;
  --gp-z-raised:   20;
  --gp-z-dropdown: 100;
  --gp-z-sticky:   150;
  --gp-z-header:   200;
  --gp-z-overlay:  300;
  --gp-z-modal:    400;
  --gp-z-toast:    500;


  /* ================================================================
     17. BREAKPOINT (valori di riferimento — usati in JS e media query)
     Non usabili direttamente in CSS media query (solo custom props)
     ma documentati qui come fonte unica di verità.
     ================================================================

     xs:  360px   (mobile piccolo)
     sm:  480px   (mobile grande)
     md:  768px   (tablet)
     lg: 1024px   (notebook)
     xl: 1280px   (desktop)
    2xl: 1440px   (desktop large)
  */

}


/* ================================================================
   RESPONSIVE OVERRIDES
   Riduzione progressiva di spacing e header su schermi ridotti.
   ================================================================ */

@media (max-width: 1279px) {
  :root {
    --gp-section-py-xl: var(--gp-space-30);
    --gp-section-py:    var(--gp-space-24);
  }
}

@media (max-width: 1023px) {
  :root {
    --gp-section-py-xl: var(--gp-space-24);
    --gp-section-py:    var(--gp-space-20);
    --gp-section-py-sm: var(--gp-space-16);
    --gp-container-px:  20px;
    --gp-grid-gap:      20px;
    --gp-header-height: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --gp-section-py-xl: var(--gp-space-20);
    --gp-section-py:    var(--gp-space-16);
    --gp-section-py-sm: var(--gp-space-12);
    --gp-container-px:  16px;
    --gp-grid-gap:      var(--gp-grid-gap-sm);
    --gp-header-height: var(--gp-header-height-mob);
    --gp-logo-width:    var(--gp-logo-width-mob);
  }
}


/* ================================================================
   ACCESSIBILITÀ — prefers-reduced-motion
   Annulla tutte le durate di transizione e animazione.
   Mantiene layout e colori invariati.
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  :root {
    --gp-transition-fast: 1ms linear;
    --gp-transition-base: 1ms linear;
    --gp-transition-slow: 1ms linear;
    --gp-transition-3d:   1ms linear;
    --gp-reveal-y:        0px;
    --gp-reveal-dur:      0.01s;
    --gp-reveal-stagger:  0s;
  }
}

/* ===== reset.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Modern CSS Reset
 *  Basato su Josh W. Comeau's reset + adattamenti enterprise
 * ============================================================
 */

/* Box-sizing universale */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Rimuove margin di default */
* {
  margin: 0;
  padding: 0;
}

/* Radice */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 2;
}

/* Disabilita smooth scroll se prefers-reduced-motion attivo */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Body baseline */
body {
  min-height: 100dvh;
  line-height: var(--gp-lh-body, 1.65);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Media elements responsivi */
img,
video,
svg,
picture,
canvas {
  display: block;
  max-width: 100%;
}

/* Immagini non distorte */
img {
  height: auto;
}

/* Tipografia inline */
p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  hyphens: manual; /* NO auto-hyphenation: taglia le parole in modo inatteso */
}

/* Input font consistency */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Rimuove list style solo se in nav (pattern accessibile) */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Link senza decorazione di default — stilizzati via components */
a {
  color: inherit;
  text-decoration: none;
}

/* Button reset */
button {
  cursor: pointer;
  border: none;
  background: transparent;
  line-height: inherit;
}

/* Focus visibile per accessibilità — sovrascritto dal theme per style */
:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Rimuovi outline su click (non da tastiera) */
:focus:not(:focus-visible) {
  outline: none;
}

/* Tabella reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Fieldset reset */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Hidden utility */
[hidden] {
  display: none !important;
}

/* Screen reader only — accessibilità */
.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;
}

/* Skip link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--gp-blue-primary);
  color: var(--gp-text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--gp-radius-md);
  z-index: var(--gp-z-toast);
  text-decoration: none;
  transition: top var(--gp-transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
}

/* WordPress admin bar offset */
.admin-bar .gp-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .gp-header {
    top: 46px;
  }
}

/* ===== base.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Base Typography & Body
 *  Applica il design system al HTML baseline.
 *  Caricato dopo reset.css e design-tokens.css.
 * ============================================================
 */

/* ── Body ── */
body {
  background-color: var(--gp-bg-base);
  color: var(--gp-text-primary);
  font-family: var(--gp-font-body);
  font-size: var(--gp-text-body);
  line-height: var(--gp-lh-body);
  font-weight: 400;
}

/* ── Heading scale ── */
h1, .h1 {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h1);
  font-weight: var(--gp-fw-h1);
  line-height: var(--gp-lh-h1);
  letter-spacing: var(--gp-ls-h1);
  color: var(--gp-text-primary);
}

h2, .h2 {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h2);
  font-weight: var(--gp-fw-h2);
  line-height: var(--gp-lh-h2);
  letter-spacing: var(--gp-ls-h2);
  color: var(--gp-text-primary);
}

h3, .h3 {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h3);
  font-weight: var(--gp-fw-h3);
  line-height: var(--gp-lh-h3);
  letter-spacing: var(--gp-ls-h3);
  color: var(--gp-text-primary);
}

h4, .h4 {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h4);
  font-weight: var(--gp-fw-h4);
  line-height: var(--gp-lh-h4);
  letter-spacing: var(--gp-ls-h4);
  color: var(--gp-text-primary);
}

h5, .h5 {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-body-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gp-text-primary);
}

h6, .h6 {
  font-family: var(--gp-font-body);
  font-size: var(--gp-text-body);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gp-text-secondary);
}

/* ── Display (hero H1) — classe utility ── */
.gp-display {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-display);
  font-weight: var(--gp-fw-display);
  line-height: var(--gp-lh-display);
  letter-spacing: var(--gp-ls-display);
  color: var(--gp-text-primary);
}

/* ── Paragrafi ── */
p {
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-body);
  line-height: var(--gp-lh-body);
  max-width: 70ch;   /* leggibilità ottimale — mai righe troppo lunghe */
}

p.lead,
.gp-text-lead {
  font-size: var(--gp-text-body-lg);
  line-height: var(--gp-lh-body-lg);
  color: var(--gp-text-secondary);
}

.gp-text-sm {
  font-size: var(--gp-text-sm);
  line-height: var(--gp-lh-sm);
}

/* ── Overline ── */
.gp-overline {
  font-family: var(--gp-font-body);
  font-size: var(--gp-text-overline);
  font-weight: var(--gp-fw-overline);
  line-height: var(--gp-lh-overline);
  letter-spacing: var(--gp-ls-overline);
  text-transform: uppercase;
  color: var(--gp-blue-accent);
  display: block;
  margin-bottom: var(--gp-space-3);
}

/* ── KPI / Numeri ── */
.gp-kpi {
  font-family: var(--gp-font-mono);
  font-size: var(--gp-text-kpi);
  font-weight: var(--gp-fw-kpi);
  line-height: 1.1;
  color: var(--gp-blue-accent);
  font-variant-numeric: tabular-nums;
}

.gp-kpi-lg {
  font-size: var(--gp-text-kpi-lg);
}

/* ── Mono / Tecnico ── */
code,
pre,
kbd,
.gp-mono {
  font-family: var(--gp-font-mono);
  font-size: 0.875em;
}

/* ── Link ── */
a {
  color: var(--gp-blue-accent);
  text-decoration: none;
  transition: color var(--gp-transition-fast);
}

a:hover {
  color: var(--gp-blue-accent-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Link nel body testo (dentro p) */
p a,
li a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ── Liste ── */
ul, ol {
  color: var(--gp-text-secondary);
  padding-left: var(--gp-space-5);
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: var(--gp-space-2);
  line-height: var(--gp-lh-body);
}

/* ── Strong / Em ── */
strong, b {
  font-weight: 600;
  color: var(--gp-text-primary);
}

em, i {
  font-style: italic;
}

/* ── Separatori ── */
hr {
  border: none;
  border-top: 1px solid var(--gp-border-hairline);
  margin: var(--gp-space-8) 0;
}

/* ── Quote ── */
blockquote {
  border-left: 3px solid var(--gp-blue-accent);
  padding-left: var(--gp-space-6);
  margin: var(--gp-space-8) 0;
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-body-lg);
  font-style: italic;
}

/* ── Colore accento inline — classe utility ── */
.gp-accent {
  color: var(--gp-blue-accent);
}

.gp-text-muted {
  color: var(--gp-text-muted);
}

.gp-text-primary {
  color: var(--gp-text-primary);
}

/* ── Selezione testo ── */
::selection {
  background-color: rgba(69, 174, 232, 0.25);
  color: var(--gp-text-primary);
}

/* ── Scrollbar custom (solo Webkit) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gp-bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--gp-blue-deep);
  border-radius: var(--gp-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gp-blue-primary);
}

/* ===== layout.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Layout: Container, Grid, Sezioni
 * ============================================================
 */

/* ── Container ── */
.gp-container {
  width: 100%;
  max-width: var(--gp-container-max);
  margin-inline: auto;
  padding-inline: var(--gp-container-px);
}

.gp-container--narrow {
  max-width: 800px;
}

.gp-container--wide {
  max-width: 1440px;
}


/* ── Sezione base ── */
.gp-section {
  padding-block: var(--gp-section-py);
}

.gp-section--xl {
  padding-block: var(--gp-section-py-xl);
}

.gp-section--sm {
  padding-block: var(--gp-section-py-sm);
}

/* Alternanza sfondo per ritmo visivo */
.gp-section--base    { background-color: var(--gp-bg-base); }
.gp-section--mid     { background-color: var(--gp-bg-section); }
.gp-section--surface { background-color: var(--gp-bg-surface); }
.gp-section--brand   { background-color: var(--gp-blue-deep); }
.gp-section--gradient {
  background: var(--gp-gradient-brand);
}


/* ── Griglia 12 colonne ── */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(var(--gp-grid-cols), 1fr);
  gap: var(--gp-grid-gap);
}

/* Shorthand griglie comuni */
.gp-grid-2  { display: grid; grid-template-columns: repeat(2, 1fr);  gap: var(--gp-grid-gap); }
.gp-grid-3  { display: grid; grid-template-columns: repeat(3, 1fr);  gap: var(--gp-grid-gap); }
.gp-grid-4  { display: grid; grid-template-columns: repeat(4, 1fr);  gap: var(--gp-grid-gap); }
.gp-grid-6  { display: grid; grid-template-columns: repeat(6, 1fr);  gap: var(--gp-grid-gap); }

/* Auto-fill responsive */
.gp-grid-auto-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: var(--gp-grid-gap);
}

.gp-grid-auto-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--gp-grid-gap);
}

.gp-grid-auto-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--gp-grid-gap);
}


/* ── Flexbox helpers ── */
.gp-flex         { display: flex; }
.gp-flex-center  { display: flex; align-items: center; justify-content: center; }
.gp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.gp-flex-col     { display: flex; flex-direction: column; }
.gp-flex-wrap    { display: flex; flex-wrap: wrap; }

.gp-gap-1  { gap: var(--gp-space-1); }
.gp-gap-2  { gap: var(--gp-space-2); }
.gp-gap-3  { gap: var(--gp-space-3); }
.gp-gap-4  { gap: var(--gp-space-4); }
.gp-gap-6  { gap: var(--gp-space-6); }
.gp-gap-8  { gap: var(--gp-space-8); }
.gp-gap-12 { gap: var(--gp-space-12); }


/* ── Section Header (overline + titolo + intro) ── */
.gp-section-header {
  margin-bottom: var(--gp-space-12);
}

.gp-section-header--center {
  text-align: center;
}

.gp-section-header--center p {
  margin-inline: auto;
}

.gp-section-header__overline {
  /* estende .gp-overline */
  font-family: var(--gp-font-body);
  font-size: var(--gp-text-overline);
  font-weight: var(--gp-fw-overline);
  letter-spacing: var(--gp-ls-overline);
  text-transform: uppercase;
  color: var(--gp-blue-accent);
  display: block;
  margin-bottom: var(--gp-space-3);
}

.gp-section-header__title {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h2);
  font-weight: var(--gp-fw-h2);
  line-height: var(--gp-lh-h2);
  letter-spacing: var(--gp-ls-h2);
  color: var(--gp-text-primary);
  margin-bottom: var(--gp-space-4);
}

.gp-section-header__intro {
  font-size: var(--gp-text-body-lg);
  line-height: var(--gp-lh-body-lg);
  color: var(--gp-text-secondary);
  max-width: 640px;
}


/* ── Divisore decorativo ── */
.gp-divider {
  width: 100%;
  height: 1px;
  background: var(--gp-border-hairline);
  border: none;
  margin: 0;
}

.gp-divider--accent {
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gp-blue-accent) 30%,
    var(--gp-blue-primary) 70%,
    transparent 100%);
  height: 1px;
  opacity: 0.4;
}


/* ── Hero layout base ── */
.gp-hero {
  position: relative;
  min-height: calc(100dvh - var(--gp-header-height));
  padding-top: calc(var(--gp-header-height) + var(--gp-space-8));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--gp-bg-base);
}

.gp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Colonna destra del grid: contiene il canvas Three.js */
.gp-hero__canvas-col {
  align-self: stretch;
  min-height: 420px;
  pointer-events: none;
}

/* Canvas wrap: riempie tutta la colonna */
.gp-hero__canvas-wrap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  z-index: 1;
}

.gp-hero__canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.gp-hero__text {
  max-width: 580px;
}

/* ── Hero grid 2 colonne — caricato su TUTTE le pagine ── */
/* (homepage, chi siamo, contatti: stesso pattern strutturale) */
.gp-hero-inner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gp-space-8);
  align-items: center;
  width: 100%;
}

/* Colonna destra SVG (chi siamo, contatti) */
.gp-hero__deco-col {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gp-hero__deco-col svg {
  width: min(420px, 100%);
  height: auto;
}

/* Colonna destra canvas 3D (homepage) — stessa larghezza max delle SVG */
.gp-hero__canvas-col {
  align-self: stretch;
  min-height: 420px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
}


/* ── Full-bleed (sezioni a tutta larghezza) ── */
.gp-full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}


/* ── Spacing utilities ── */
.gp-mt-0  { margin-top: 0 !important; }
.gp-mt-4  { margin-top: var(--gp-space-4); }
.gp-mt-6  { margin-top: var(--gp-space-6); }
.gp-mt-8  { margin-top: var(--gp-space-8); }
.gp-mt-12 { margin-top: var(--gp-space-12); }
.gp-mb-4  { margin-bottom: var(--gp-space-4); }
.gp-mb-6  { margin-bottom: var(--gp-space-6); }
.gp-mb-8  { margin-bottom: var(--gp-space-8); }
.gp-mb-12 { margin-bottom: var(--gp-space-12); }

.gp-pt-0 { padding-top: 0 !important; }
.gp-pb-0 { padding-bottom: 0 !important; }


/* ── Text alignment ── */
.gp-text-left   { text-align: left; }
.gp-text-center { text-align: center; }
.gp-text-right  { text-align: right; }


/* ── Responsive: Tablet ── */
@media (max-width: 1023px) {
  .gp-grid-3,
  .gp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gp-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Tablet: grid 1 colonna, illustrazioni/canvas nascosti */
  .gp-hero-inner-layout {
    grid-template-columns: 1fr;
  }

  .gp-hero__deco-col,
  .gp-hero__canvas-col {
    display: none;
  }

  .gp-hero__text {
    max-width: 100%;
  }
}


/* ── Responsive: Mobile ── */
@media (max-width: 767px) {
  .gp-grid-2,
  .gp-grid-3,
  .gp-grid-4,
  .gp-grid-6 {
    grid-template-columns: 1fr;
  }

  .gp-section-header__intro {
    font-size: var(--gp-text-body);
  }

  .gp-hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: 100dvh;
  }

  .gp-hero__deco-col,
  .gp-hero__canvas-col {
    display: none;
  }
}

/* ===== header.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Header CSS
 *  Fase 2: header sticky, logo, nav desktop, hamburger,
 *  mobile nav overlay, skip link.
 *
 *  Dipende da: design-tokens.css, layout.css
 *  Non contiene valori hardcodati: usa solo custom properties.
 * ============================================================
 */


/* ================================================================
   SKIP LINK — accessibilità tastiera
   ================================================================ */

.gp-skip-link {
  position: absolute;
  top: -100%;
  left: var(--gp-space-6);
  z-index: var(--gp-z-modal);
  padding: var(--gp-space-3) var(--gp-space-6);
  background: var(--gp-blue-primary);
  color: var(--gp-text-primary);
  font-size: var(--gp-text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--gp-radius-md);
  transition: top var(--gp-transition-fast);
}

.gp-skip-link:focus {
  top: var(--gp-space-4);
  text-decoration: none;
}


/* ================================================================
   HEADER BASE
   Posizione fixed, altezza token, trasparente sull'hero.
   Diventa solido con backdrop-filter quando .is-scrolled è aggiunto da JS.
   ================================================================ */

.gp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--gp-z-header);
  height: var(--gp-header-height);
  background: var(--gp-header-bg-trans);
  border-bottom: 1px solid transparent;
  transition:
    background     var(--gp-transition-base),
    border-color   var(--gp-transition-base),
    backdrop-filter var(--gp-transition-slow);
}

.gp-header.is-scrolled {
  background: var(--gp-header-bg-scroll);
  border-bottom-color: var(--gp-header-border-scroll);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}


/* ── Inner flex row ── */

.gp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--gp-header-height);
  gap: var(--gp-space-6);
}


/* ================================================================
   LOGO
   ================================================================ */

.gp-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Custom logo WordPress wraps in <a class="custom-logo-link"> */
.gp-header__logo .custom-logo-link,
.gp-header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  transition: opacity var(--gp-transition-fast);
}

.gp-header__logo .custom-logo-link:hover,
.gp-header__logo-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.gp-header__logo .custom-logo,
.gp-header__logo-img {
  width: var(--gp-logo-width);
  height: auto;
  max-height: calc(var(--gp-header-height) - 20px);
  display: block;
  object-fit: contain;
}


/* ================================================================
   NAVIGAZIONE DESKTOP
   ================================================================ */

.gp-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ── Lista di primo livello ── */

.gp-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Link di primo livello ── */

.gp-nav__link {
  display: flex;
  align-items: center;
  gap: var(--gp-space-1);
  padding: var(--gp-space-2) var(--gp-space-4);
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--gp-radius-sm);
  white-space: nowrap;
  transition:
    color      var(--gp-transition-fast),
    background var(--gp-transition-fast);
}

.gp-nav__link:hover {
  color: var(--gp-text-primary);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.gp-nav__item.is-active > .gp-nav__link,
.gp-nav__item.is-ancestor > .gp-nav__link {
  color: var(--gp-blue-accent);
  text-decoration: none;
}

/* ── Chevron ── */

.gp-nav__chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--gp-text-muted);
  transition: transform var(--gp-transition-base);
}

.gp-nav__item--has-children:hover .gp-nav__chevron {
  transform: rotate(180deg);
  color: var(--gp-text-secondary);
}


/* ================================================================
   DROPDOWN
   ================================================================ */

.gp-nav__item--has-children {
  position: relative;
}

.gp-nav__dropdown {
  position: absolute;
  top: 100%;            /* flush — nessun gap tra li e dropdown */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: var(--gp-bg-surface-raised);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-lg);
  padding: var(--gp-space-2);
  padding-top: var(--gp-space-3); /* separazione visiva dal nav link */
  list-style: none;
  margin: 0;

  /* Nascosto di default */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;

  box-shadow: var(--gp-shadow-card);

  /*
   * Delay di 120 ms prima di nascondere (grace period):
   * dà tempo al cursore di attraversare il confine tra il link
   * del menu e il dropdown senza far collassare il menu.
   * Il delay viene azzerato quando il dropdown è visibile.
   */
  transition:
    opacity    var(--gp-transition-base) 120ms,
    transform  var(--gp-transition-base) 120ms,
    visibility var(--gp-transition-base) 120ms;
}

/* Aperto su hover OPPURE via classe .is-open (JS) */
.gp-nav__item--has-children:hover > .gp-nav__dropdown,
.gp-nav__item--has-children.is-open > .gp-nav__dropdown {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0ms; /* nessun ritardo nell'apertura */
}

/* ── Link dropdown ── */

.gp-nav__dropdown-item {
  list-style: none;
}

.gp-nav__dropdown-link {
  display: block;
  padding: var(--gp-space-2) var(--gp-space-3);
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-sm);
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--gp-radius-sm);
  transition:
    color      var(--gp-transition-fast),
    background var(--gp-transition-fast);
}

.gp-nav__dropdown-link:hover,
.gp-nav__dropdown-item.is-active > .gp-nav__dropdown-link {
  color: var(--gp-blue-accent);
  background: rgba(69, 174, 232, 0.08);
  text-decoration: none;
}


/* ================================================================
   CTA HEADER
   ================================================================ */

.gp-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--gp-space-3);
}


/* ================================================================
   HAMBURGER — mobile
   ================================================================ */

.gp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--gp-radius-sm);
  flex-shrink: 0;
  color: var(--gp-text-primary);
  transition: background var(--gp-transition-fast);
}

.gp-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gp-hamburger__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform var(--gp-transition-base),
    opacity   var(--gp-transition-fast),
    width     var(--gp-transition-base);
  transform-origin: center;
}

/* Hamburger → X quando aria-expanded="true" */
.gp-hamburger[aria-expanded="true"] .gp-hamburger__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.gp-hamburger[aria-expanded="true"] .gp-hamburger__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.gp-hamburger[aria-expanded="true"] .gp-hamburger__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ================================================================
   MOBILE NAV — pannello full-screen
   Slide-in da destra. Gestito via classe .is-open in main.js.
   ================================================================ */

.gp-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--gp-z-overlay);
  background: var(--gp-bg-overlay);
  transform: translateX(100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: transform var(--gp-transition-slow);
}

.gp-mobile-nav.is-open {
  transform: translateX(0);
}

/* ── Layout interno ── */

.gp-mobile-nav__inner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: var(--gp-space-6);
  gap: var(--gp-space-6);
}

/* ── Testa pannello: logo + close ── */

.gp-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--gp-space-6);
  border-bottom: 1px solid var(--gp-border-hairline);
}

.gp-mobile-nav__logo .custom-logo,
.gp-mobile-nav__logo img {
  width: var(--gp-logo-width-mob);
  height: auto;
  display: block;
}

.gp-mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-md);
  cursor: pointer;
  color: var(--gp-text-primary);
  transition: background var(--gp-transition-fast);
}

.gp-mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* ── Lista voci ── */

.gp-mobile-nav__list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gp-mobile-nav__item {
  position: relative;
  border-bottom: 1px solid var(--gp-border-hairline);
}

.gp-mobile-nav__link {
  display: block;
  padding: var(--gp-space-4) 0;
  padding-right: 52px; /* spazio per il toggle button */
  color: var(--gp-text-primary);
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-body-lg);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--gp-transition-fast);
}

.gp-mobile-nav__link:hover,
.gp-mobile-nav__item.is-active > .gp-mobile-nav__link {
  color: var(--gp-blue-accent);
  text-decoration: none;
}

/* ── Toggle button sottomenu ── */

.gp-mobile-nav__toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gp-text-muted);
  transition:
    transform var(--gp-transition-base),
    color     var(--gp-transition-fast);
}

.gp-mobile-nav__item.is-open .gp-mobile-nav__toggle {
  transform: translateY(-50%) rotate(180deg);
  color: var(--gp-blue-accent);
}

/* ── Sottomenu ── */

.gp-mobile-nav__sub {
  list-style: none;
  padding: 0 0 var(--gp-space-4) var(--gp-space-4);
  margin: 0;
}

.gp-mobile-nav__sub-item {
  margin-bottom: var(--gp-space-1);
}

.gp-mobile-nav__sub-link {
  display: block;
  padding: var(--gp-space-2) 0;
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-body);
  text-decoration: none;
  transition: color var(--gp-transition-fast);
}

.gp-mobile-nav__sub-link:hover,
.gp-mobile-nav__sub-item.is-active > .gp-mobile-nav__sub-link {
  color: var(--gp-blue-accent);
  text-decoration: none;
}

/* ── Footer pannello: CTA ── */

.gp-mobile-nav__footer {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-4);
  padding-top: var(--gp-space-6);
  border-top: 1px solid var(--gp-border-hairline);
  margin-top: auto;
}

.gp-mobile-nav__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gp-space-2);
  color: var(--gp-text-muted);
  font-size: var(--gp-text-sm);
  text-decoration: none;
  transition: color var(--gp-transition-fast);
}

.gp-mobile-nav__phone:hover {
  color: var(--gp-blue-accent);
  text-decoration: none;
}


/* ================================================================
   OVERLAY SCURO dietro il mobile nav
   ================================================================ */

.gp-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--gp-z-overlay) - 1);
  background: rgba(7, 11, 22, 0.70);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--gp-transition-slow);
}

.gp-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}


/* ================================================================
   FOCUS RING — accessibilità
   ================================================================ */

.gp-header :focus-visible,
.gp-mobile-nav :focus-visible,
.gp-hamburger:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 2px;
}


/* ================================================================
   RESPONSIVE — Tablet e Mobile (≤ 1023px)
   ================================================================ */

@media (max-width: 1023px) {
  /* Nasconde nav desktop e CTA */
  .gp-header__nav,
  .gp-header__actions {
    display: none;
  }

  /* Mostra hamburger */
  .gp-hamburger {
    display: flex;
  }

  .gp-header__inner {
    justify-content: space-between;
  }
}


/* ================================================================
   STAMPA — nascondi header nell'area di stampa
   ================================================================ */

@media print {
  .gp-header,
  .gp-mobile-nav,
  .gp-nav-overlay,
  .gp-skip-link {
    display: none !important;
  }
}

/* ===== footer.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Footer CSS
 *  Fase 3: layout multi-colonna, brand, link, contatti,
 *  social, legal bar.
 *
 *  Dipende da: design-tokens.css, layout.css
 * ============================================================
 */


/* ================================================================
   FOOTER BASE
   Sfondo gp-bg-base — il più scuro, chiude il sito.
   ================================================================ */

.gp-footer {
  background-color: var(--gp-bg-base);
  color: var(--gp-text-secondary);
}

/* Divisore accent sopra il footer (markup in footer.php) */
.gp-divider--accent {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gp-blue-accent) 30%,
    var(--gp-blue-primary) 70%,
    transparent 100%
  );
  opacity: 0.35;
}


/* ================================================================
   FOOTER TOP — 4 colonne
   ================================================================ */

.gp-footer__top {
  padding-block: var(--gp-section-py);
  border-bottom: 1px solid var(--gp-border-hairline);
}

/* Griglia 4 colonne: 2fr 1fr 1fr 1.5fr */
.gp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--gp-space-10);
}


/* ================================================================
   COLONNA BRAND
   ================================================================ */

.gp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-6);
}

/* Logo */
.gp-footer__logo .custom-logo-link,
.gp-footer__logo .gp-header__logo-link {
  display: inline-flex;
  text-decoration: none;
  line-height: 0;
  transition: opacity var(--gp-transition-fast);
}

.gp-footer__logo .custom-logo-link:hover {
  opacity: 0.8;
}

.gp-footer__logo .custom-logo,
.gp-footer__logo img {
  width: var(--gp-logo-width);
  height: auto;
  max-width: 160px;
  display: block;
}

/* Tagline */
.gp-footer__tagline {
  font-size: var(--gp-text-sm);
  line-height: 1.65;
  color: var(--gp-text-muted);
  max-width: 28ch;
  margin: 0;
}

/* Social links */
.gp-footer__social {
  display: flex;
  gap: var(--gp-space-3);
  align-items: center;
}

.gp-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gp-bg-surface);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-md);
  color: var(--gp-text-muted);
  text-decoration: none;
  transition:
    color      var(--gp-transition-fast),
    background var(--gp-transition-fast),
    border-color var(--gp-transition-fast);
}

.gp-footer__social-link:hover {
  color: var(--gp-blue-accent);
  background: rgba(69, 174, 232, 0.08);
  border-color: var(--gp-border-accent);
  text-decoration: none;
}

.gp-footer__social-link:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 2px;
}


/* ================================================================
   COLONNE LINK
   ================================================================ */

.gp-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-5);
}

/* Titolo colonna */
.gp-footer__col-title {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-sm);
  font-weight: 600;
  letter-spacing: var(--gp-ls-overline);
  text-transform: uppercase;
  color: var(--gp-text-primary);
  margin: 0;
  padding: 0;
}

/* Lista link */
.gp-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-3);
}

.gp-footer__links li { list-style: none; }

.gp-footer__links a {
  font-size: var(--gp-text-sm);
  color: var(--gp-text-muted);
  text-decoration: none;
  transition: color var(--gp-transition-fast);
  display: inline-flex;
  align-items: center;
}

.gp-footer__links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--gp-blue-accent);
  margin-right: 0;
  transition: width var(--gp-transition-base), margin-right var(--gp-transition-base);
  vertical-align: middle;
}

.gp-footer__links a:hover {
  color: var(--gp-text-primary);
  text-decoration: none;
}

.gp-footer__links a:hover::before {
  width: 12px;
  margin-right: var(--gp-space-2);
}

.gp-footer__links a:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ================================================================
   COLONNA CONTATTI
   ================================================================ */

.gp-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-4);
}

.gp-footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--gp-space-3);
  color: var(--gp-text-muted);
  font-size: var(--gp-text-sm);
  text-decoration: none;
  transition: color var(--gp-transition-fast);
}

.gp-footer__contact-item svg {
  flex-shrink: 0;
  color: var(--gp-blue-accent);
  opacity: 0.75;
}

.gp-footer__contact-item:hover {
  color: var(--gp-text-primary);
  text-decoration: none;
}

.gp-footer__contact-item:hover svg {
  opacity: 1;
}

.gp-footer__contact-item:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.gp-footer__cta {
  margin-top: var(--gp-space-2);
}


/* ================================================================
   FOOTER BOTTOM — copyright + legal
   ================================================================ */

.gp-footer__bottom {
  padding-block: var(--gp-space-6);
}

.gp-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gp-space-6);
  flex-wrap: wrap;
}

.gp-footer__copyright {
  font-size: var(--gp-text-sm);
  color: var(--gp-text-muted);
  margin: 0;
  max-width: none; /* override base.css p max-width */
}

/* Menu legale */
.gp-footer__legal-list {
  display: flex;
  gap: var(--gp-space-6);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.gp-footer__legal-list li { list-style: none; }

.gp-footer__legal-list a {
  font-size: var(--gp-text-sm);
  color: var(--gp-text-muted);
  text-decoration: none;
  transition: color var(--gp-transition-fast);
}

.gp-footer__legal-list a:hover {
  color: var(--gp-text-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gp-footer__legal-list a:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ================================================================
   RESPONSIVE — Tablet (≤ 1023px)
   ================================================================ */

@media (max-width: 1023px) {
  .gp-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gp-space-10) var(--gp-space-8);
  }

  .gp-footer__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--gp-space-8);
  }

  .gp-footer__tagline {
    max-width: 40ch;
  }
}


/* ================================================================
   RESPONSIVE — Mobile (≤ 767px)
   ================================================================ */

@media (max-width: 767px) {
  .gp-footer__top {
    padding-block: var(--gp-space-16);
  }

  .gp-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--gp-space-8);
  }

  .gp-footer__brand {
    flex-direction: column;
    gap: var(--gp-space-5);
  }

  .gp-footer__tagline {
    max-width: none;
  }

  .gp-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gp-space-4);
  }

  .gp-footer__legal-list {
    gap: var(--gp-space-4);
  }
}


/* ================================================================
   STAMPA
   ================================================================ */

@media print {
  .gp-footer__social,
  .gp-footer__cta,
  .gp-footer__bottom {
    display: none;
  }

  .gp-footer {
    background: #fff;
    color: #000;
  }
}

/* ===== components.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Components CSS
 *  Fase 4: libreria completa di componenti riutilizzabili.
 *
 *  Indice:
 *   1. Pulsanti (gp-btn)
 *   2. Badge / Pill (gp-badge)
 *   3. Service Card con CSS 3D tilt
 *   4. Sector Card
 *   5. Feature Item
 *   6. KPI Block
 *   7. Process Step
 *   8. Testimonial Card
 *   9. CTA Banner
 *  10. Accordion / FAQ
 *  11. Logo Cloud
 *  12. Trust Bar
 *
 *  Dipende da: design-tokens.css, base.css, layout.css
 * ============================================================
 */


/* ================================================================
   1. PULSANTI
   ================================================================ */

.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gp-space-2);
  padding: var(--gp-space-3) var(--gp-space-6);
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-body);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-radius: var(--gp-radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background   var(--gp-transition-fast),
    box-shadow   var(--gp-transition-fast),
    transform    var(--gp-transition-fast),
    border-color var(--gp-transition-fast),
    color        var(--gp-transition-fast);
  position: relative;
  overflow: hidden;
}

.gp-btn:focus-visible {
  outline: none;
  box-shadow: var(--gp-shadow-focus);
}

/* ── Primario (gradient) ── */

.gp-btn--primary {
  background: var(--gp-gradient-brand);
  color: #fff;
  border: 1px solid transparent;
}

.gp-btn--primary:hover {
  background: linear-gradient(135deg, var(--gp-blue-primary-dark) 0%, var(--gp-blue-accent-dark) 100%);
  box-shadow: 0 8px 28px rgba(45, 111, 184, 0.40);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.gp-btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Ghost (outline) ── */

.gp-btn--ghost {
  background: transparent;
  color: var(--gp-text-secondary);
  border: 1px solid var(--gp-border-subtle);
}

.gp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gp-border-accent);
  color: var(--gp-text-primary);
  text-decoration: none;
}

.gp-btn--ghost:active {
  background: rgba(69, 174, 232, 0.08);
}

/* ── Freccia (ghost con Arrow) — output da gigapoint_btn_ghost() ── */

.gp-btn__arrow {
  display: inline-block;
  transition: transform var(--gp-transition-base);
}

.gp-btn:hover .gp-btn__arrow {
  transform: translateX(4px);
}

/* ── Varianti dimensione ── */

.gp-btn--sm {
  padding: var(--gp-space-2) var(--gp-space-4);
  font-size: var(--gp-text-sm);
}

.gp-btn--lg {
  padding: var(--gp-space-4) var(--gp-space-8);
  font-size: var(--gp-text-body-lg);
}

/* ── Full-width ── */

.gp-btn--full {
  width: 100%;
}

/* ── Disabled ── */

.gp-btn:disabled,
.gp-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* ================================================================
   2. BADGE / PILL
   ================================================================ */

.gp-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--gp-space-3);
  font-family: var(--gp-font-body);
  font-size: var(--gp-text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--gp-radius-pill);
  white-space: nowrap;
  line-height: 1.8;
}

.gp-badge--default {
  background: var(--gp-bg-surface);
  color: var(--gp-text-secondary);
  border: 1px solid var(--gp-border-hairline);
}

.gp-badge--accent {
  background: var(--gp-info-bg);
  color: var(--gp-blue-accent);
  border: 1px solid rgba(69, 174, 232, 0.20);
}

.gp-badge--success {
  background: var(--gp-success-bg);
  color: var(--gp-success-text);
  border: 1px solid rgba(61, 214, 140, 0.20);
}

.gp-badge--warning {
  background: var(--gp-warning-bg);
  color: var(--gp-warning-text);
  border: 1px solid rgba(245, 181, 68, 0.20);
}

.gp-badge--danger {
  background: var(--gp-danger-bg);
  color: var(--gp-danger-text);
  border: 1px solid rgba(242, 88, 95, 0.20);
}


/* ================================================================
   3. SERVICE CARD — con CSS 3D tilt (gestito da card-tilt.js)
   ================================================================ */

.gp-service-card {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-5);
  padding: var(--gp-space-8);
  background: var(--gp-bg-surface);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-card);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* Prospettiva 3D per il tilt */
  transform-style: preserve-3d;
  transition:
    transform    var(--gp-transition-3d),
    box-shadow   var(--gp-transition-3d),
    border-color var(--gp-transition-base),
    background   var(--gp-transition-base);
}

/* Glow di sfondo — invisibile a riposo */
.gp-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gp-gradient-glow-bg);
  opacity: 0;
  transition: opacity var(--gp-transition-slow);
  pointer-events: none;
  border-radius: inherit;
}

.gp-service-card:hover {
  background: var(--gp-bg-surface-raised);
  border-color: var(--gp-border-accent);
  box-shadow: var(--gp-shadow-hover), var(--gp-shadow-glow);
  text-decoration: none;
}

.gp-service-card:hover::before {
  opacity: 1;
}

/* Icona container */
.gp-service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gp-bg-surface-raised);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-md);
  color: var(--gp-blue-accent);
  flex-shrink: 0;
  transition:
    transform   var(--gp-transition-3d),
    border-color var(--gp-transition-base),
    background  var(--gp-transition-base);
}

.gp-service-card:hover .gp-service-card__icon {
  border-color: var(--gp-border-accent);
  background: rgba(69, 174, 232, 0.10);
  /* L'icona "emerge" in 3D — translateZ via JS */
}

.gp-service-card__title {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h4);
  font-weight: var(--gp-fw-h4);
  color: var(--gp-text-primary);
  margin: 0;
  transition: color var(--gp-transition-fast);
}

.gp-service-card:hover .gp-service-card__title {
  color: var(--gp-blue-accent);
}

.gp-service-card__desc {
  font-size: var(--gp-text-sm);
  line-height: var(--gp-lh-body);
  color: var(--gp-text-muted);
  margin: 0;
  flex: 1;
  max-width: none;
}

.gp-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--gp-space-2);
  font-size: var(--gp-text-sm);
  font-weight: 600;
  color: var(--gp-blue-accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--gp-transition-base);
}

.gp-service-card__link::after {
  content: '→';
  transition: transform var(--gp-transition-base);
}

.gp-service-card:hover .gp-service-card__link::after {
  transform: translateX(4px);
}

/* Focus accessibility */
.gp-service-card:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 2px;
}


/* ================================================================
   4. SECTOR CARD — griglia settori (riferimento: screenshot 1)
   ================================================================ */

.gp-sector-card {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-4);
  padding: var(--gp-space-6);
  background: var(--gp-bg-surface);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-lg);
  transition:
    background   var(--gp-transition-base),
    border-color var(--gp-transition-base);
}

.gp-sector-card:hover {
  background: var(--gp-bg-surface-raised);
  border-color: var(--gp-border-subtle);
}

.gp-sector-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gp-blue-deep);
  border-radius: var(--gp-radius-sm);
  color: var(--gp-blue-accent);
  flex-shrink: 0;
}

.gp-sector-card__title {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-body);
  font-weight: 600;
  color: var(--gp-text-primary);
  margin: 0;
}

.gp-sector-card__desc {
  font-size: var(--gp-text-sm);
  line-height: var(--gp-lh-sm);
  color: var(--gp-text-muted);
  margin: 0;
  max-width: none;
}


/* ================================================================
   5. FEATURE ITEM — griglia "cosa include"
   ================================================================ */

.gp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--gp-space-4);
}

.gp-feature-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(69, 174, 232, 0.10);
  border-radius: var(--gp-radius-sm);
  color: var(--gp-blue-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.gp-feature-item__text {
  flex: 1;
}

.gp-feature-item__title {
  font-size: var(--gp-text-body);
  font-weight: 600;
  color: var(--gp-text-primary);
  margin: 0 0 var(--gp-space-1) 0;
}

.gp-feature-item__desc {
  font-size: var(--gp-text-sm);
  color: var(--gp-text-muted);
  line-height: var(--gp-lh-body);
  margin: 0;
  max-width: none;
}


/* ================================================================
   6. KPI BLOCK — numero grande + label
   ================================================================ */

.gp-kpi-block {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-2);
  text-align: center;
}

/* .gp-kpi e .gp-kpi-lg sono definiti in base.css */

.gp-kpi-block__label {
  font-size: var(--gp-text-sm);
  font-weight: 500;
  color: var(--gp-text-muted);
  line-height: var(--gp-lh-sm);
  text-align: center;
  max-width: 18ch;
  margin: 0 auto;
}

/* Layout griglia KPI */
.gp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gp-space-8);
  padding: var(--gp-space-8) 0;
}

/* Divisori verticali tra KPI (solo desktop) */
@media (min-width: 768px) {
  .gp-kpi-grid .gp-kpi-block:not(:last-child) {
    border-right: 1px solid var(--gp-border-hairline);
    padding-right: var(--gp-space-8);
  }
}


/* ================================================================
   7. PROCESS STEP — sequenza numerata
   ================================================================ */

.gp-process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gp-space-8);
  position: relative;
}

/* Linea connettrice tra step */
.gp-process-steps::before {
  content: '';
  position: absolute;
  top: 28px; /* allineata al centro del numero */
  left: calc(12.5% + var(--gp-space-8));
  right: calc(12.5% + var(--gp-space-8));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gp-border-subtle) 20%,
    var(--gp-border-subtle) 80%,
    transparent 100%
  );
}

.gp-process-step {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-4);
  padding: var(--gp-space-6);
  background: var(--gp-bg-surface);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-lg);
  position: relative;
}

.gp-process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gp-gradient-brand);
  border-radius: var(--gp-radius-md);
  font-family: var(--gp-font-mono);
  font-size: var(--gp-text-sm);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.gp-process-step__title {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h4);
  font-weight: var(--gp-fw-h4);
  color: var(--gp-text-primary);
  margin: 0;
}

.gp-process-step__desc {
  font-size: var(--gp-text-sm);
  line-height: var(--gp-lh-body);
  color: var(--gp-text-muted);
  margin: 0;
  max-width: none;
}


/* ================================================================
   8. TESTIMONIAL CARD
   ================================================================ */

.gp-testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-6);
  padding: var(--gp-space-8);
  background: var(--gp-bg-surface);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-lg);
  position: relative;
}

/* Virgolette decorative */
.gp-testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--gp-space-4);
  left: var(--gp-space-8);
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--gp-blue-accent);
  opacity: 0.15;
  pointer-events: none;
}

.gp-testimonial-card__quote {
  font-size: var(--gp-text-body-lg);
  line-height: 1.65;
  color: var(--gp-text-secondary);
  font-style: italic;
  margin: 0;
  max-width: none;
  position: relative;
  z-index: 1;
}

.gp-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--gp-space-4);
  margin-top: auto;
}

.gp-testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gp-bg-surface-raised);
  flex-shrink: 0;
}

.gp-testimonial-card__name {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-body);
  font-weight: 600;
  color: var(--gp-text-primary);
  display: block;
  margin: 0;
}

.gp-testimonial-card__role {
  font-size: var(--gp-text-sm);
  color: var(--gp-text-muted);
  display: block;
  margin-top: 2px;
}


/* ================================================================
   8b. CTA FINALE — sezione di chiusura pagine servizio / chi siamo
   ================================================================ */

.gp-cta-finale {
    background: var(--gp-bg-section);
    border-top: 1px solid var(--gp-border-hairline);
}

.gp-cta-finale__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gp-space-6);     /* 24px tra ogni figlio */
}

.gp-cta-finale__title {
    font-family: var(--gp-font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--gp-text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.gp-cta-finale__desc {
    font-size: var(--gp-text-body-lg);
    color: var(--gp-text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

.gp-cta-finale__actions {
    display: flex;
    align-items: center;
    gap: var(--gp-space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.gp-cta-finale__trust {
    font-size: var(--gp-text-sm);
    color: var(--gp-text-muted);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .gp-cta-finale__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
}

/* ================================================================
   9. CTA BANNER — fascia di conversione full-width
   ================================================================ */

.gp-cta-banner {
  position: relative;
  padding: var(--gp-section-py);
  background: var(--gp-blue-deep);
  overflow: hidden;
  text-align: center;
}

/* Glow radiale al centro */
.gp-cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(69, 174, 232, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.gp-cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gp-space-8);
}

.gp-cta-banner__overline {
  font-size: var(--gp-text-overline);
  font-weight: var(--gp-fw-overline);
  letter-spacing: var(--gp-ls-overline);
  text-transform: uppercase;
  color: var(--gp-blue-accent);
  display: block;
}

.gp-cta-banner__title {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h2);
  font-weight: var(--gp-fw-h2);
  line-height: var(--gp-lh-h2);
  color: var(--gp-text-primary);
  margin: 0;
}

.gp-cta-banner__desc {
  font-size: var(--gp-text-body-lg);
  color: var(--gp-text-secondary);
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.gp-cta-banner__actions {
  display: flex;
  gap: var(--gp-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Accent border line (top) */
.gp-cta-banner--bordered {
  border-top: 1px solid var(--gp-border-accent);
}


/* ================================================================
   10. ACCORDION / FAQ
   ================================================================ */

.gp-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gp-accordion__item {
  border-bottom: 1px solid var(--gp-border-hairline);
}

.gp-accordion__item:first-child {
  border-top: 1px solid var(--gp-border-hairline);
}

.gp-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--gp-space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--gp-space-6);
  transition: color var(--gp-transition-fast);
}

.gp-accordion__trigger:hover {
  color: var(--gp-blue-accent);
}

.gp-accordion__question {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-body-lg);
  font-weight: 600;
  color: inherit;
  color: var(--gp-text-primary);
  transition: color var(--gp-transition-fast);
}

.gp-accordion__trigger:hover .gp-accordion__question {
  color: var(--gp-blue-accent);
}

.gp-accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gp-bg-surface);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-sm);
  color: var(--gp-text-muted);
  transition:
    transform     var(--gp-transition-base),
    background    var(--gp-transition-fast),
    border-color  var(--gp-transition-fast),
    color         var(--gp-transition-fast);
}

.gp-accordion__item.is-open .gp-accordion__icon {
  transform: rotate(45deg);
  background: var(--gp-info-bg);
  border-color: var(--gp-border-accent);
  color: var(--gp-blue-accent);
}

/* Icona + dentro il pulsante */
.gp-accordion__icon svg {
  width: 12px;
  height: 12px;
}

.gp-accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--gp-transition-slow), padding var(--gp-transition-base);
}

.gp-accordion__item.is-open .gp-accordion__panel {
  /* max-height impostato da JS */
}

.gp-accordion__answer {
  padding-bottom: var(--gp-space-6);
  font-size: var(--gp-text-body);
  line-height: var(--gp-lh-body);
  color: var(--gp-text-secondary);
  max-width: 70ch;
}

/* Focus accessibility */
.gp-accordion__trigger:focus-visible {
  outline: 2px solid var(--gp-blue-accent);
  outline-offset: 2px;
  border-radius: var(--gp-radius-sm);
}


/* ================================================================
   11. LOGO CLOUD — loghi partner / certificazioni
   ================================================================ */

.gp-logo-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gp-space-8) var(--gp-space-12);
}

.gp-logo-cloud__item {
  display: flex;
  align-items: center;
  opacity: 0.45;
  filter: grayscale(100%) brightness(1.5);
  transition:
    opacity var(--gp-transition-base),
    filter  var(--gp-transition-base);
}

.gp-logo-cloud__item:hover {
  opacity: 0.75;
  filter: grayscale(60%) brightness(1.2);
}

.gp-logo-cloud__item img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}


/* ================================================================
   12. TRUST BAR — fascia credibilità compatta
   ================================================================ */

.gp-trust-bar {
  padding-block: var(--gp-section-py-sm);
  border-top: 1px solid var(--gp-border-hairline);
  border-bottom: 1px solid var(--gp-border-hairline);
  background: var(--gp-bg-section);
}

.gp-trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gp-space-8);
  flex-wrap: wrap;
}

.gp-trust-bar__kpis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gp-space-8);
  flex-wrap: wrap;
}

/* Divisori tra KPI in trust bar */
.gp-trust-bar__kpis .gp-kpi-block:not(:last-child) {
  padding-right: var(--gp-space-8);
  border-right: 1px solid var(--gp-border-hairline);
}

.gp-trust-bar__logos {
  display: flex;
  align-items: center;
  gap: var(--gp-space-8);
}

/* ── Partner strip nella trust bar ── */

.gp-trust-bar__partners {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gp-space-3);
  padding-top: var(--gp-space-6);
  border-top: 1px solid var(--gp-border-hairline);
  margin-top: var(--gp-space-4);
}

.gp-trust-bar__partners-label {
  font-size: var(--gp-text-sm);
  color: var(--gp-text-muted);
  font-weight: 500;
  white-space: nowrap;
  margin-right: var(--gp-space-2);
}

.gp-trust-bar__partner-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--gp-space-1) var(--gp-space-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-pill);
  font-size: var(--gp-text-sm);
  font-weight: 600;
  color: var(--gp-text-secondary);
  letter-spacing: 0.02em;
  transition:
    background var(--gp-transition-fast),
    border-color var(--gp-transition-fast),
    color var(--gp-transition-fast);
}

.gp-trust-bar__partner-chip:hover {
  background: rgba(69, 174, 232, 0.06);
  border-color: var(--gp-border-accent);
  color: var(--gp-blue-accent);
}


/* ================================================================
   SEZIONE PARTNER / VENDOR — strip premium
   Design: glass card, separator a gradiente, hover glow.
   ================================================================ */

/* Heading centrato — !important per vincere qualsiasi override tema/plugin */
.gp-partners__heading,
#partners-heading {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-inline: auto !important;
  font-size: var(--gp-text-overline); /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gp-text-secondary);
  margin-bottom: var(--gp-space-8);
}

/* Strip: glass card — loghi tutti attaccati, separatori tra di loro */
.gp-partners__strip {
  display: flex !important;
  flex-wrap: nowrap !important;  /* una sola riga su desktop */
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 22px 0;
  overflow: visible;
  position: relative;
}

/* Contenitore singolo logo — larghezza fissa, uguale per tutti */
.gp-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;                    /* occupa spazio uguale */
  min-width: 0;
  padding: 10px 28px;
  opacity: 0.48;
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
  position: relative;
  cursor: default;
}

/* Separator a gradiente — pseudo-elemento */
.gp-partner-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 25%,
    rgba(255, 255, 255, 0.10) 75%,
    transparent 100%
  );
  pointer-events: none;
}

/* Hover: opacità piena + sottile bagliore sul logo */
.gp-partner-item:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.gp-partner-item:hover .gp-partner-logo {
  filter: drop-shadow(0 0 8px rgba(69, 174, 232, 0.22));
}

/* Immagine logo SVG — altezza fissa, larghezza proporzionale */
.gp-partner-logo {
  height: 32px !important;   /* !important per battere reset.css img { height: auto } */
  width: auto !important;
  max-width: 148px;
  object-fit: contain;
  display: block !important;
  flex-shrink: 0;
  transition: filter 0.3s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Mobile: 2 per riga, separator rimossi, wrap abilitato */
@media (max-width: 767px) {
  .gp-partners__strip {
    flex-wrap: wrap !important;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 0;
  }

  .gp-partner-item {
    flex: 0 0 50%;
    width: 50%;
    padding: 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Separator verticale solo tra le colonne */
  .gp-partner-item:nth-child(odd)::after {
    right: 0;
    top: 15%;
    height: 70%;
  }

  .gp-partner-item:nth-child(even)::after {
    display: none;
  }

  /* Rimuovi bordo bottom sugli ultimi due */
  .gp-partner-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .gp-partner-logo {
    height: 26px !important;
    max-width: 120px;
  }

  .gp-partners__heading {
    gap: var(--gp-space-3);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .gp-partner-item {
    padding: 10px 20px;
  }

  .gp-partner-logo {
    height: 28px !important;
    max-width: 130px;
  }
}


/* ================================================================
   RESPONSIVE — Tablet (≤ 1023px)
   ================================================================ */

@media (max-width: 1023px) {

  .gp-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .gp-process-steps::before {
    display: none;
  }

  .gp-trust-bar__inner {
    justify-content: center;
  }
}


/* ================================================================
   RESPONSIVE — Mobile (≤ 767px)
   ================================================================ */

@media (max-width: 767px) {

  /* Pulsanti */
  .gp-hero .gp-btn,
  .gp-cta-banner .gp-btn {
    width: 100%;
    justify-content: center;
  }

  /* CTA Banner */
  .gp-cta-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Process steps */
  .gp-process-steps {
    grid-template-columns: 1fr;
  }

  /* KPI grid */
  .gp-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gp-space-6);
  }

  /* KPI block: rimuovi divisori verticali su mobile */
  .gp-kpi-grid .gp-kpi-block:not(:last-child) {
    border-right: none;
    padding-right: 0;
  }

  /* Accordion */
  .gp-accordion__question {
    font-size: var(--gp-text-body);
  }

  /* Trust bar */
  .gp-trust-bar__kpis {
    justify-content: center;
  }

  .gp-trust-bar__kpis .gp-kpi-block:not(:last-child) {
    border-right: none;
    padding-right: 0;
  }

  /* Testimonial */
  .gp-testimonial-card {
    padding: var(--gp-space-6);
  }

  /* Logo cloud */
  .gp-logo-cloud {
    gap: var(--gp-space-6) var(--gp-space-8);
  }
}


/* ================================================================
   PRIVACY POLICY — Layout pagina informativa
   ================================================================ */

.gp-privacy-content {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: var(--gp-space-16);
}

/* Blocco articolo */
.gp-privacy-block {
  padding: var(--gp-space-8) 0;
  border-bottom: 1px solid var(--gp-border-subtle);
}

.gp-privacy-block:last-of-type {
  border-bottom: none;
}

/* Titolo articolo */
.gp-privacy-block__title {
  display: flex;
  align-items: baseline;
  gap: var(--gp-space-3);
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h4);
  font-weight: var(--gp-fw-h2);
  color: var(--gp-text-primary);
  margin-bottom: var(--gp-space-5);
  line-height: 1.3;
}

.gp-privacy-block__num {
  color: var(--gp-blue-accent);
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
  flex-shrink: 0;
}

/* Corpo articolo */
.gp-privacy-block__body p {
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-body);
  line-height: 1.75;
  margin-bottom: var(--gp-space-4);
}

.gp-privacy-block__body p:last-child {
  margin-bottom: 0;
}

/* Lista puntata */
.gp-privacy-list {
  list-style: none;
  padding: 0;
  margin: var(--gp-space-3) 0 var(--gp-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-2);
}

.gp-privacy-list li {
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-body);
  line-height: 1.65;
  padding-left: var(--gp-space-5);
  position: relative;
}

.gp-privacy-list li::before {
  content: '';
  position: absolute;
  left: var(--gp-space-2);
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--gp-blue-accent);
  border-radius: 50%;
  opacity: 0.7;
}

/* Link interni */
.gp-privacy-link {
  color: var(--gp-blue-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.gp-privacy-link:hover {
  color: var(--gp-text-primary);
}

.gp-privacy-link--cta {
  font-size: var(--gp-text-h4);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: var(--gp-space-2);
}

/* Nota secondaria */
.gp-privacy-note {
  font-size: var(--gp-text-sm) !important;
  color: var(--gp-text-muted) !important;
  font-style: italic;
  margin-top: var(--gp-space-3) !important;
}

/* Box contatto diritti */
.gp-privacy-contact-box {
  margin-top: var(--gp-space-6);
  padding: var(--gp-space-5) var(--gp-space-6);
  background: var(--gp-bg-surface);
  border: 1px solid rgba(69,174,232,0.18);
  border-left: 3px solid var(--gp-blue-accent);
  border-radius: var(--gp-radius-card);
}

.gp-privacy-contact-box p {
  margin-bottom: var(--gp-space-2) !important;
  font-size: var(--gp-text-sm) !important;
}

/* Tabella basi giuridiche */
.gp-privacy-table-wrap {
  overflow-x: auto;
  margin: var(--gp-space-4) 0;
  border-radius: var(--gp-radius-card);
  border: 1px solid var(--gp-border-subtle);
}

.gp-privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--gp-text-sm);
}

.gp-privacy-table th {
  background: var(--gp-bg-surface);
  color: var(--gp-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  padding: var(--gp-space-3) var(--gp-space-4);
  text-align: left;
  border-bottom: 1px solid var(--gp-border-subtle);
}

.gp-privacy-table td {
  padding: var(--gp-space-4);
  color: var(--gp-text-secondary);
  line-height: 1.65;
  border-bottom: 1px solid var(--gp-border-subtle);
  vertical-align: top;
}

.gp-privacy-table tbody tr:last-child td {
  border-bottom: none;
}

.gp-privacy-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.015);
}

/* Footer firma */
.gp-privacy-footer {
  padding-top: var(--gp-space-8);
  border-top: 1px solid var(--gp-border-subtle);
  margin-top: var(--gp-space-8);
}

.gp-privacy-footer__date {
  color: var(--gp-text-muted);
  font-size: var(--gp-text-sm);
  margin-bottom: var(--gp-space-2);
}

.gp-privacy-footer__firm {
  color: var(--gp-text-secondary);
  font-size: var(--gp-text-sm);
  font-weight: 600;
}

/* Responsive mobile */
@media (max-width: 767px) {
  .gp-privacy-block__title {
    font-size: var(--gp-text-h5, 1.1rem);
  }

  .gp-privacy-table {
    font-size: 12px;
  }

  .gp-privacy-table th,
  .gp-privacy-table td {
    padding: var(--gp-space-3);
  }
}

/* ===== animations.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Animations & Hero Visuals
 *  Fase 5: stili visivi hero, keyframe CSS, stati di reveal,
 *  effetti decorativi (mesh, grid blueprint, glow).
 *
 *  Indice:
 *   1. Keyframe declarations
 *   2. Hero — sfondi decorativi
 *   3. Hero — componenti testuali e CTA
 *   4. Hero — trust bar e scroll hint
 *   5. Card 3D perspective setup
 *   6. Utility classes di animazione
 *   7. Stato pre-animazione (GSAP init)
 *   8. Responsive hero
 * ============================================================
 */


/* ================================================================
   1. KEYFRAMES
   ================================================================ */

/* Pulsazione del glow cyan — usato sull'hero e sezioni chiave */
@keyframes gp-glow-pulse {
  from { opacity: 0.55; }
  to   { opacity: 1.00; }
}

/* Rimbalzo verticale — scroll hint indicator */
@keyframes gp-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* Fade in semplice — usato su elementi che non usano GSAP */
@keyframes gp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Slide-up — reveal CSS puro (fallback se JS non caricato) */
@keyframes gp-slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Scan-line — per la sezione NIS2 shield */
@keyframes gp-scan {
  from { transform: translateY(-100%); opacity: 0.6; }
  to   { transform: translateY(100%);  opacity: 0;   }
}

/* Rotazione lenta — icone e decorazioni */
@keyframes gp-spin-slow {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* Flicker monitor — per indicatori di stato SOC */
@keyframes gp-status-blink {
  0%, 90%, 100% { opacity: 1; }
  95%            { opacity: 0.3; }
}

/* Gradient shimmer — CTA pulsante */
@keyframes gp-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}


/* ================================================================
   2. HERO — SFONDI DECORATIVI
   Le tre layer: mesh radiale, griglia blueprint, glow cyan.
   Tutti pointer-events:none, z-index 0.
   ================================================================ */

/* Container sfondi (già in layout.css: position absolute, inset 0) */
.gp-hero__bg {
  user-select: none;
}

/* ── Mesh: gradiente radiale brand blu ── */
.gp-hero__mesh {
  position: absolute;
  inset: 0;
  background: var(--gp-gradient-hero-bg);
  pointer-events: none;
}

/* ── Grid blueprint: linee sottilissime ingegneristiche ── */
.gp-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;

  /* Mask: la griglia è visibile solo a destra dove c'è la sfera */
  mask-image: radial-gradient(
    ellipse 75% 65% at 68% 48%,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 75% 65% at 68% 48%,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 70%
  );
}

/* ── Glow: bagliore cyan diffuso — animazione lenta ── */
.gp-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--gp-gradient-glow-bg);
  animation: gp-glow-pulse 5s ease-in-out infinite alternate;
}


/* ================================================================
   3. HERO — COMPONENTI TESTUALI E CTA
   ================================================================ */

/* Heading display — margine sotto */
.gp-hero__heading {
  margin-bottom: var(--gp-space-6);
  /* font-size, weight, etc. da .gp-display in base.css */
}

/* Descrizione — max-width leggibilità + margine */
.gp-hero__desc {
  max-width: 54ch;
  margin-bottom: var(--gp-space-8);
}

/* CTA row — flex orizzontale, wrap su mobile */
.gp-hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--gp-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--gp-space-8);
}


/* ================================================================
   4. HERO — TRUST BAR E SCROLL HINT
   ================================================================ */

/* Trust signals: icona + testo per ogni segnale */
.gp-hero__trust {
  display: flex;
  align-items: center;
  gap: var(--gp-space-4);
  flex-wrap: wrap;
}

.gp-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--gp-space-2);
  font-size: var(--gp-text-sm);
  color: var(--gp-text-muted);
  white-space: nowrap;
}

.gp-hero__trust-item svg {
  color: var(--gp-blue-accent);
  flex-shrink: 0;
  opacity: 0.8;
}

.gp-hero__trust-sep {
  color: var(--gp-border-subtle);
  user-select: none;
}

/* Fallback SVG: visibile finché Three.js non è pronto */
.gp-hero__canvas-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.5;
}

.gp-hero__canvas-fallback svg {
  width: 80%;
  max-width: 420px;
  height: auto;
}

/* Scroll hint — freccia animata */
.gp-hero__scroll-hint {
  position: absolute;
  bottom: var(--gp-space-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--gp-text-muted);
  animation: gp-bounce 2.4s ease-in-out infinite;
  transition: opacity var(--gp-transition-base);
  z-index: 5;
  pointer-events: none;
}

.gp-hero__scroll-hint.is-hidden {
  opacity: 0;
}


/* ================================================================
   5. CARD 3D — PERSPECTIVE SETUP (CSS)
   Il tilt effettivo è calcolato in card-tilt.js.
   Questo blocco configura la prospettiva e il transform-style.
   ================================================================ */

.gp-service-card {
  /* perspective e preserve-3d già nel transform inline da JS */
  transform-origin: center center;
  will-change: transform;
}

/* Speculare CSS leggero visibile senza JS (al solo hover) */
@media (hover: hover) {
  .gp-service-card:hover:not([data-tilt-active]) {
    transform: translateY(-4px) scale(1.01);
  }
}


/* ================================================================
   5b. CARD TILT — SPECULARE DINAMICA
   Le variabili --tilt-light-x / --tilt-light-y sono impostate
   inline da card-tilt.js e guidano il radial-gradient speculare.
   Attivo solo quando data-tilt-active="1" è presente sulla card.
   ================================================================ */

.gp-service-card[data-tilt-active="1"]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--tilt-light-x, 50%) var(--tilt-light-y, 50%),
    rgba(255, 255, 255, 0.045) 0%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 2;
  transition: background 0.05s linear; /* segue il cursore senza lag */
}


/* ================================================================
   6. UTILITY CLASSES DI ANIMAZIONE
   ================================================================ */

/* Fade-in semplice — applicato con .gp-fade-in */
.gp-fade-in {
  animation: gp-fade-in 0.6s var(--gp-ease-out) both;
}

/* Slide-up — fallback senza GSAP */
.gp-slide-up {
  animation: gp-slide-up 0.65s var(--gp-ease-out) both;
}

/* Stato puntino attivo (es. SOC status indicator) */
.gp-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gp-success);
  animation: gp-status-blink 3s ease-in-out infinite;
  flex-shrink: 0;
}

.gp-status-dot--warning { background: var(--gp-warning); animation-delay: 0.5s; }
.gp-status-dot--danger  { background: var(--gp-danger);  animation-delay: 1s;   }

/* Scan-line (NIS2 shield) */
.gp-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gp-blue-accent) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: gp-scan 3s ease-in-out infinite 1s;
  pointer-events: none;
}

/* Glow decorativo su element chiave */
.gp-glow-element {
  position: relative;
}

.gp-glow-element::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(69, 174, 232, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Shimmer su CTA primarie (opzionale, attivato via JS su hover) */
.gp-btn--shimmer {
  background-size: 200% auto;
  background-image: linear-gradient(
    135deg,
    var(--gp-blue-primary) 0%,
    var(--gp-blue-accent) 40%,
    var(--gp-blue-accent-light) 50%,
    var(--gp-blue-accent) 60%,
    var(--gp-blue-primary) 100%
  );
  animation: gp-shimmer 2.5s linear infinite;
}


/* ================================================================
   7. STATO PRE-ANIMAZIONE
   Gli elementi con .js-reveal partono invisibili.
   GSAP li porta a opacity:1, y:0.
   Se JS non è caricato, un breve fallback CSS mostra il contenuto.
   ================================================================ */

.js-reveal {
  opacity: 0;
}

/* Hero: l'entrata la fa il CSS e parte subito, senza aspettare GSAP
   (caricato in fondo alla pagina). Il testo dell'hero è l'elemento LCP:
   con opacity 0 fino all'arrivo degli script, il browser lo considerava
   disegnato quasi 3 secondi dopo. Si parte da 0.01, non da 0, perché
   il browser lo conti come visibile già al primo fotogramma. */
[data-animate="hero"] .js-reveal {
  opacity: 1;
  animation: gp-hero-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-animate="hero"] .js-reveal:nth-child(2) { animation-delay: 0.12s; }
[data-animate="hero"] .js-reveal:nth-child(3) { animation-delay: 0.24s; }
[data-animate="hero"] .js-reveal:nth-child(4) { animation-delay: 0.36s; }
[data-animate="hero"] .js-reveal:nth-child(n+5) { animation-delay: 0.48s; }

/* Titolo e paragrafo dell'hero: solo un leggero spostamento, senza
   dissolvenza. Il browser conta l'LCP quando il testo è del tutto
   visibile, quindi una dissolvenza lo spostava alla fine dell'animazione. */
[data-animate="hero"] .gp-hero__heading.js-reveal,
[data-animate="hero"] .gp-hero__desc.js-reveal {
  animation: gp-hero-slide 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0s;
}

@keyframes gp-hero-in {
  from { opacity: 0.01; transform: translateY(32px); }
  to   { opacity: 1;    transform: none; }
}

@keyframes gp-hero-slide {
  from { transform: translateY(16px); }
  to   { transform: none; }
}

/* Riduzione movimento: sempre visibili */
@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .gp-hero__glow {
    animation: none;
  }

  .gp-hero__scroll-hint {
    animation: none;
  }

  .gp-status-dot {
    animation: none;
    opacity: 1;
  }

  .gp-scan-line {
    animation: none;
    display: none;
  }
}


/* ================================================================
   8. RESPONSIVE HERO
   ================================================================ */

@media (max-width: 1023px) {
  .gp-hero__desc {
    max-width: 60ch;
  }

  .gp-hero__grid {
    mask-image: radial-gradient(
      ellipse 90% 60% at 55% 50%,
      rgba(0, 0, 0, 0.6) 0%,
      transparent 70%
    );
    -webkit-mask-image: radial-gradient(
      ellipse 90% 60% at 55% 50%,
      rgba(0, 0, 0, 0.6) 0%,
      transparent 70%
    );
  }
}

@media (max-width: 767px) {
  .gp-hero__heading {
    margin-bottom: var(--gp-space-4);
  }

  .gp-hero__desc {
    max-width: none;
    margin-bottom: var(--gp-space-6);
  }

  .gp-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: var(--gp-space-6);
  }

  .gp-hero__ctas .gp-btn {
    width: 100%;
    justify-content: center;
  }

  .gp-hero__trust {
    gap: var(--gp-space-3);
  }

  .gp-hero__trust-sep {
    display: none; /* Su mobile mostra solo i badge, senza separatori */
  }

  .gp-hero__trust-item {
    font-size: 12px;
  }

  .gp-hero__scroll-hint {
    display: none; /* Nascosto su mobile — lo spazio è prezioso */
  }

  .gp-hero__grid {
    opacity: 0.4; /* Riduce la griglia su mobile per performance */
  }

  .gp-hero__canvas-fallback svg {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== responsive.css ===== */
/*
 * ============================================================
 *  GIGAPOINT Theme — Responsive CSS
 *  Override e utility per tutti i breakpoint.
 *
 *  Breakpoint reference (da design-tokens.css):
 *   Mobile:  ≤ 767px
 *   Tablet:  768px – 1023px
 *   Desktop: 1024px – 1279px
 *   Large:   ≥ 1280px
 *
 *  Caricato dopo components.css — può sovrascrivere qualsiasi stile.
 * ============================================================
 */


/* ================================================================
   UTILITY VISIBILITY
   ================================================================ */

/* Visibile solo su mobile */
.gp-show-mobile  { display: none !important; }
.gp-hide-mobile  { display: block !important; }

/* Visibile solo su tablet+ */
.gp-show-tablet  { display: none !important; }
.gp-hide-tablet  { display: block !important; }

@media (max-width: 767px) {
  .gp-show-mobile { display: block !important; }
  .gp-hide-mobile { display: none  !important; }
}

@media (max-width: 1023px) {
  .gp-show-tablet { display: block !important; }
  .gp-hide-tablet { display: none  !important; }
}

/* Flex variant */
.gp-show-mobile-flex { display: none !important; }

@media (max-width: 767px) {
  .gp-show-mobile-flex { display: flex !important; }
}


/* ================================================================
   MOBILE CTA STICKY
   Barra fissa in fondo allo schermo su mobile.
   Appare dopo che l'hero è scrollato fuori dal viewport.
   Gestita da JS (classe .is-visible aggiunta da main.js).
   ================================================================ */

.gp-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--gp-z-sticky);
  background: var(--gp-bg-overlay);
  border-top: 1px solid var(--gp-border-hairline);
  padding: var(--gp-space-4) var(--gp-space-4) calc(var(--gp-space-4) + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Nascosta di default — appare solo su mobile dopo scroll */
  transform: translateY(100%);
  transition: transform var(--gp-transition-base);
  display: none; /* Nascosta completamente su desktop */
}

.gp-sticky-cta.is-visible {
  transform: translateY(0);
}

.gp-sticky-cta__inner {
  display: flex;
  gap: var(--gp-space-3);
  align-items: center;
}

.gp-sticky-cta__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--gp-bg-surface);
  border: 1px solid var(--gp-border-hairline);
  border-radius: var(--gp-radius-md);
  color: var(--gp-blue-accent);
  text-decoration: none;
  transition: background var(--gp-transition-fast);
}

.gp-sticky-cta__tel:hover {
  background: var(--gp-bg-surface-raised);
  text-decoration: none;
}

@media (max-width: 767px) {
  .gp-sticky-cta {
    display: block;
  }
}


/* ================================================================
   GRID OVERRIDES PER SEZIONI SPECIFICHE
   ================================================================ */

/* Griglia servizi: 3 colonne su desktop, 2 su tablet, 1 su mobile */
.gp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gp-grid-gap);
}

@media (max-width: 1023px) {
  .gp-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gp-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Griglia settori: 3×2 come nello screenshot di riferimento */
.gp-sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gp-grid-gap);
}

@media (max-width: 1023px) {
  .gp-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gp-sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* Layout hero NIS2 (2 colonne: testo + visual) */
.gp-nis2-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gp-space-16);
  align-items: center;
}

@media (max-width: 1023px) {
  .gp-nis2-layout {
    grid-template-columns: 1fr;
    gap: var(--gp-space-10);
  }

  .gp-nis2-layout .gp-nis2__visual {
    order: -1; /* Visual prima del testo su tablet/mobile */
  }
}

/* Layout "Perché GIGAPOINT": 2 colonne */
.gp-why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gp-grid-gap);
}

@media (max-width: 767px) {
  .gp-why-layout {
    grid-template-columns: 1fr;
  }
}

/* Griglia testimonianze */
.gp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gp-grid-gap);
}

@media (max-width: 1023px) {
  .gp-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gp-testimonials-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   HERO — ottimizzazione mobile/tablet
   ================================================================ */

@media (max-width: 767px) {

  /* Riduce padding hero per più contenuto visibile */
  .gp-hero.gp-section--xl {
    padding-top: clamp(80px, 16vw, 112px);
    padding-bottom: var(--gp-space-12);
    min-height: 100svh;
  }

  /* H1 display: leggibile, non sovraffollato su 375px */
  .gp-hero__heading,
  .gp-display {
    font-size: clamp(26px, 7.5vw, 38px);
    line-height: 1.1;
  }

  /* Lead text: body base su mobile */
  .gp-hero__desc {
    font-size: var(--gp-text-body);
    line-height: var(--gp-lh-body);
  }

  /* CTA buttons: stack verticale su mobile */
  .gp-hero__ctas {
    flex-direction: column;
    gap: var(--gp-space-3);
    width: 100%;
  }

  .gp-hero__ctas .gp-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  /* Trust items: permetti wrap, nascondi separatori */
  .gp-hero__trust {
    flex-wrap: wrap;
    gap: var(--gp-space-2) var(--gp-space-4);
  }

  .gp-hero__trust-sep {
    display: none;
  }
}

/* Tablet: centro testo hero, più respiro */
@media (min-width: 768px) and (max-width: 1023px) {
  .gp-hero.gp-section--xl {
    padding-top: clamp(96px, 14vw, 128px);
    padding-bottom: var(--gp-space-14);
  }

  .gp-hero__heading,
  .gp-display {
    font-size: clamp(34px, 5vw, 48px);
  }
}


/* ================================================================
   TRUST BAR KPI — griglia 2×2 su mobile piccolo
   ================================================================ */

@media (max-width: 599px) {
  .gp-trust-bar__kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gp-space-5) var(--gp-space-4);
    width: 100%;
    justify-items: center;
  }

  .gp-trust-bar__kpis .gp-kpi-block:not(:last-child) {
    border-right: none;
    padding-right: 0;
  }
}


/* ================================================================
   TIPOGRAFIA RESPONSIVE — aggiustamenti fini
   ================================================================ */

@media (max-width: 767px) {

  /* Paragrafi: rimuovi max-width su mobile (già full-width) */
  .gp-section p {
    max-width: none;
  }

  /* Section header: sempre centrato su mobile */
  .gp-section-header {
    text-align: center;
  }

  .gp-section-header p,
  .gp-section-header__intro {
    margin-inline: auto;
  }

  /* H2 e H3 section: dimensioni moderate */
  .gp-section-header h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .gp-section-header h3 {
    font-size: clamp(18px, 5vw, 24px);
  }

}

/* KPI Grid: 1 colonna su xs (≤ 479px) */
@media (max-width: 479px) {
  .gp-kpi-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   SPAZIATURA RESPONSIVE — sezioni specifiche
   ================================================================ */

@media (max-width: 767px) {

  /* Riduci gap griglia su mobile */
  .gp-services-grid,
  .gp-sectors-grid,
  .gp-testimonials-grid {
    gap: var(--gp-grid-gap-sm);
  }

  /* Process steps: stack verticale su mobile */
  .gp-process-steps {
    grid-template-columns: 1fr !important;
    gap: var(--gp-space-4);
  }

  /* Nasconde linea orizzontale tra steps su mobile */
  .gp-process-steps::before {
    display: none !important;
  }

  /* Step number: rimane visibile ma più compatto */
  .gp-process-step__number {
    width: 40px;
    height: 40px;
    font-size: var(--gp-text-body);
  }

  /* KPI block: testo centrato */
  .gp-kpi-block {
    text-align: center;
  }

  /* Sezioni: padding ridotto su mobile (senza !important — usa specificity) */
  .gp-section.gp-section--xl {
    padding-top: var(--gp-space-14);
    padding-bottom: var(--gp-space-14);
  }

  .gp-section.gp-section--lg {
    padding-top: var(--gp-space-12);
    padding-bottom: var(--gp-space-12);
  }

  .gp-section.gp-section--base {
    padding-top: var(--gp-space-10);
    padding-bottom: var(--gp-space-10);
  }
}

/* Tablet: padding moderato */
@media (min-width: 768px) and (max-width: 1023px) {

  .gp-section.gp-section--xl {
    padding-top: var(--gp-space-16);
    padding-bottom: var(--gp-space-16);
  }

  .gp-section.gp-section--lg {
    padding-top: var(--gp-space-14);
    padding-bottom: var(--gp-space-14);
  }
}


/* ================================================================
   ACCESSIBILITÀ RESPONSIVE
   ================================================================ */

/* Touch target minimo 44×44px su dispositivi touch */
@media (hover: none) and (pointer: coarse) {

  .gp-btn {
    min-height: 44px;
    padding-block: var(--gp-space-3);
  }

  .gp-accordion__trigger {
    min-height: 52px;
  }

  .gp-footer__links a {
    padding-block: var(--gp-space-2);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .gp-nav__dropdown-link {
    padding: var(--gp-space-3);
    min-height: 44px;
  }
}


/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {

  /* Reset colori per stampa */
  * {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Nasconde elementi non rilevanti */
  .gp-header,
  .gp-footer,
  .gp-mobile-nav,
  .gp-nav-overlay,
  .gp-sticky-cta,
  .gp-hero__canvas-wrap,
  .gp-hero__bg,
  .gp-scroll-hint,
  .gp-btn,
  .gp-cta-banner {
    display: none !important;
  }

  /* Mantiene il logo */
  .gp-footer__logo {
    display: block !important;
  }

  /* Evita interruzioni di pagina dentro le card */
  .gp-service-card,
  .gp-sector-card,
  .gp-process-step {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Link visibili */
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 12px;
    color: #555 !important;
  }

  a[href^="#"]::after,
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: '';
  }
}
