/* ============================================================
   FONT FACES (self-hosted, Montserrat/Nunito/Rubik, latin + latin-ext)
   ============================================================ */
/* Font self-hosted (Google Fonts: Montserrat, Nunito, Rubik) — latin + latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/montserrat-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/montserrat-900-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: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/nunito-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/nunito-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/nunito-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/nunito-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/nunito-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/nunito-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/nunito-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/nunito-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/nunito-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/nunito-800-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: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/nunito-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/nunito-900-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: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/rubik-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/rubik-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/rubik-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/rubik-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/rubik-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/rubik-800-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: 'Rubik';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/rubik-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/rubik-900-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;
}

/* ============================================================
   WEBINESS 2026 — Dark Design System
   Brand: #1a233f (navy) · #E800A0 (red) · #ffffff (white)
   ============================================================ */


/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Dark surfaces */
  --bg:        #1a233f;   /* main background */
  --bg-dk:     #0f1626;   /* alt sections, footer */
  --bg-xdk:    #090e1a;   /* darkest — bottom footer */
  --bg-lt:     #1f2a4e;   /* slightly lighter surface */
  --bg-card:   rgba(255,255,255,0.04);
  --bg-card-h: rgba(255,255,255,0.08);

  /* Accent */
  --red:       #E800A0;
  --red-dk:    #cc0090;
  /* Gradiente brand per SFONDI/pulsanti — fucsia brillante #E800A0 → arancio,
     coerente con --grad-brand-text (logo, testo accent). Hover leggermente più scuro. */
  --grad-brand:   linear-gradient(to right, #E800A0, #FF7A2E);
  --grad-brand-h: linear-gradient(to right, #cc0090, #F2640E);
  --cta-bg:       #cc0090;
  /* Arancione brillante (ex #FF7A2E mattone) — accenti e pulsante Contatti */
  --orange:       #FF7A2E;
  --orange-dk:    #F2640E;
  /* Fucsia come TESTO: schiarito per contrasto AA su fondo scuro (≥4.8:1).
     Nelle sezioni chiare viene ridefinito scuro (vedi .section-light). */
  --red-text:     #ff5cc0;
  --red-lt:    rgba(232,0,160,0.14);
  --red-glow:  rgba(232,0,160,0.25);
  /* Gradiente brand per TESTO (background-clip:text) e badge su sfondo chiaro —
     usa il fucsia brillante #E800A0, non la versione scurita di --grad-brand. */
  --grad-brand-text: linear-gradient(to right, #E800A0, #FF7A2E);

  /* Light theme — sezioni a sfondo chiaro (.section-light) e pagine blog (blog.css) */
  --lt-bg:          #fafbff;   /* sfondo pagina blog */
  --lt-text-1:      #0d1628;   /* heading / testo principale su chiaro */
  --lt-text-2:      #475569;   /* body text su chiaro */
  --lt-text-3:      #64748b;   /* testo secondario / dim su chiaro */
  --lt-text-4:      #334155;   /* body text articoli (variante) */
  --lt-border:      #e2e8f0;   /* bordo standard su chiaro */
  --lt-border-2:    #cbd5e1;   /* bordo hover / più marcato su chiaro */
  --lt-muted:       #94a3b8;   /* testo molto tenue (tag, label) su chiaro */
  --lt-blue:        #2b6fd6;   /* link / CTA blu (blog) */
  --lt-blue-dk:     #1f5cba;   /* hover CTA blu (blog) */
  --lt-blue-heading: #14266b;  /* heading blu scuro (H1 articoli, CTA box) */
  --lt-blue-text:   #1a3a9c;   /* testo blu (tag, link TOC) */

  /* Text */
  --t1:  rgba(255,255,255,0.95);   /* headings */
  --t2:  rgba(255,255,255,0.58);   /* body / sub */
  --t3:  rgba(255,255,255,0.52);   /* dim / labels — alzato per contrasto AA (era 0.30) */

  /* Borders */
  --b1:  rgba(255,255,255,0.07);
  --b2:  rgba(255,255,255,0.13);
  --b3:  rgba(255,255,255,0.22);

  /* Legacy aliases for compatibility */
  --navy:      #1a233f;
  --accent:    #E800A0;
  --accent-dk: #cc0090;
  --white:     #ffffff;
  --gray-500:  rgba(255,255,255,0.55);
  --gray-400:  rgba(255,255,255,0.32);
  --gray-200:  rgba(255,255,255,0.09);
  --gray-900:  #090e1a;
  --blue:      #4a8ef0;
  --blue-xlt:  rgba(255,255,255,0.04);
  --blue-lt:   rgba(255,255,255,0.07);

  /* System */
  --font:    'Nunito', system-ui, -apple-system, sans-serif;
  --r:       5px;
  --r-lg:    9px;
  --max-w:   1280px;
  --nav-h:   72px;
  --subnav-h: 46px;
  --ease:    0.24s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Niente flash grigio al tocco; controlliamo il feedback con :active */
a, button, .btn, .nav-toggle, .filter-btn, input, select, textarea { -webkit-tap-highlight-color: transparent; }
/* La navbar fissa non deve coprire i titoli quando si salta a un'ancora */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--t1);
  background: radial-gradient(ellipse at 90% 10%, #1230a0 0%, #06090f 52%),
              radial-gradient(ellipse at 10% 90%, #0a155a 0%, transparent 45%);
  background-color: #06090f;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: var(--font); font-size: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
section { padding: 96px 0; }
.section-alt  { background: rgba(255,255,255,0.03); }
.section-red  { background: var(--cta-bg); }
/* Esplora · banda scura con gradiente che vira al blu verso destra */
.esplora-band {
  background:
    radial-gradient(ellipse at 115% 50%, rgba(26,58,160,0.55) 0%, rgba(18,40,114,0.28) 32%, transparent 60%),
    linear-gradient(100deg, var(--bg-xdk) 0%, var(--bg-xdk) 45%, #0d1c4d 100%);
}
/* box interni Esplora · angoli asimmetrici (2 tondi, 2 no) come le bande */
.esplora-band .service-card { border-radius: 18px 0 18px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  font-family: 'Rubik', var(--font);
  color: var(--t1);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.section-sub {
  font-size: 17px;
  color: var(--t2);
  line-height: 1.75;
  max-width: 560px;
}
.section-red .section-title { color: white; }
.section-red .section-sub   { color: rgba(255,255,255,0.72); }
.section-red .section-label { color: rgba(255,255,255,0.7); }
.section-red .section-label::before { background: rgba(255,255,255,0.7); }

.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-sub  { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  line-height: 1;
}
/* Feedback tattile al tocco (e click) — sostituisce il lift dell'hover quando si preme */
.btn:active { transform: scale(0.97); transition-duration: 0.05s; }
.btn:active { box-shadow: none; }
.btn-primary:active { background-image: var(--grad-brand-h); }
.btn-primary {
  background-image: var(--grad-brand);
  /* il gradiente parte dal border-box: evita le righe verticali di colore pieno
     ai due estremi causate dal bordo 2px transparent (clip border-box) */
  background-origin: border-box;
  color: white;
  border-color: transparent;
}
.btn-primary:hover {
  background-image: var(--grad-brand-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,0,160,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--t1);
  border-color: var(--b3);
}
.btn-outline:hover {
  background: var(--bg-card-h);
  border-color: var(--b3);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}
.btn-white {
  background: white;
  color: var(--bg);
  border-color: white;
  font-weight: 700;
}
.btn-white:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
}
.btn-sm  { padding: 9px 20px; font-size: 14px; }
.btn-lg  { padding: 16px 36px; font-size: 17px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
  background: linear-gradient(105deg, rgba(8,13,30,0.96) 0%, rgba(13,31,107,0.97) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 50px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  color: rgba(255,255,255,0.95);
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}
.nav-arrow {
  font-size: 9px;
  opacity: 0.45;
  transition: transform var(--ease);
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 230px;
  background: linear-gradient(135deg, #080d1e 0%, #0d1f6b 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease);
  z-index: 999;
}
.nav-dropdown.two-col {
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  left: 0;
  transform: translateX(0) translateY(-8px);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover .nav-dropdown.two-col {
  transform: translateX(0) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  transition: all var(--ease);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  padding-left: 26px;
}
/* Voce in evidenza nel dropdown (es. Ricerca Personale): rettangolo con sola linea bianca, angoli appena smussati */
.nav-dropdown a.nav-dd-btn {
  margin-top: 10px;
  text-align: center;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 4px;
}
.nav-dropdown a.nav-dd-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
  padding-left: 20px; /* annulla lo slittamento delle altre voci per restare centrato */
}
/* Dropdown a colonna singola (es. Business Plus): più largo, voci su una sola riga — solo desktop */
@media (min-width: 993px) {
  .nav-dropdown:not(.two-col) { min-width: 250px; }
  .nav-dropdown:not(.two-col) a { white-space: nowrap; }
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--grad-brand);
  color: white;
  border: none;
  border-radius: 6px;
  transition: all var(--ease);
}
.nav-cta:hover {
  background: var(--grad-brand-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,0,160,0.35);
}
/* Pulsante "Prenota una call" — fucsia pieno */
.nav-cta-prenota { background: var(--cta-bg); }
.nav-cta-prenota:hover {
  background: #b8008a;
  box-shadow: 0 4px 16px rgba(232,0,160,0.35);
}
/* Pulsante "Contatti" — outline bianco (contrasto AA garantito su navbar scura) */
.nav-cta-contatti { background: transparent; border: 1.5px solid rgba(255,255,255,0.7); }
.nav-cta-contatti:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  box-shadow: none;
}

/* ============================================================
   SUBNAV — barra di sezione SOLO MOBILE, sotto la navbar.
   NON fissa: scorre con la pagina. Pill outline bianche,
   scroll orizzontale. (Pagine servizi e Business Plus.)
   ============================================================ */
.subnav {
  display: none;                /* visibile solo su mobile (vedi media query) */
  height: var(--subnav-h);
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(105deg, rgba(8,13,30,0.97) 0%, rgba(13,31,107,0.97) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
  -webkit-overflow-scrolling: touch;   /* scroll fluido su iOS */
  scrollbar-width: none;               /* Firefox */
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
.subnav::-webkit-scrollbar { display: none; }  /* WebKit */
.subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-radius: 999px;                /* forma pill come CONTATTI */
  color: #fff;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.subnav a:hover {
  background: rgba(255,255,255,0.14);
  border-color: #fff;
}
.subnav a:active { transform: scale(0.97); }
/* Pagina corrente: pill piena col gradiente brand (come CONTATTI) */
.subnav a.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

/* ============================================================
   MENU MOBILE A GRIGLIA (icone) — solo mobile, aperto dall'hamburger
   ============================================================ */
.mobile-grid {
  display: none;                 /* mostrato solo su mobile quando .open */
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 995;                  /* sotto la navbar (1000), sopra il resto */
  background: linear-gradient(160deg, #080d1e 0%, #0d1f6b 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 20px 40px;
}
.mgrid-inner { max-width: 480px; margin: 0 auto; }
.mgrid-label {
  font-family: 'Rubik', var(--font);
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.26em;
  margin: 5px 4px 13px;
  color: #fff;
  width: fit-content;
}
/* La prima label (Servizi) parte più in alto: -3px rispetto alle altre */
.mgrid-inner > .mgrid-label:first-child { margin-top: 3px; }
.mgrid-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}
/* Bottoni quadrati stile neumorphic: tono scuro, ombre morbide (niente bordo colorato) */
.mgrid-cell {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 68px;
  padding: 8px 6px;
  border-radius: 16px;
  color: #fff;
  background: #0d1738;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 5px 5px 12px rgba(0,0,0,0.45), -4px -4px 10px rgba(255,255,255,0.035);
  transition: transform var(--ease), box-shadow var(--ease);
}
.mgrid-cell:active {
  transform: scale(0.97);
  box-shadow: inset 4px 4px 10px rgba(0,0,0,0.5), inset -3px -3px 8px rgba(255,255,255,0.04);
}
.mgrid-ico { display: grid; place-items: center; color: #fff; }
.mgrid-name {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.95);
  line-height: 1.2;
}
.mgrid-pills {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin: 4px 0 28px;
}
.mgrid-pill {
  padding: 4px 22px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  color: #fff;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--ease);
}
.mgrid-pill:active { background: rgba(255,255,255,0.12); }
/* Azioni finali del menu mobile: due colonne — Prenota (fucsia) e Contatti (arancione), tinta piena */
.mgrid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mgrid-act {
  display: block;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  transition: transform var(--ease), filter var(--ease);
}
.mgrid-act-prenota  { background: #cc0090; }
.mgrid-act-contatti { background: transparent; border: 1.5px solid rgba(255,255,255,0.7); }
.mgrid-act-contatti:active { background: rgba(255,255,255,0.12); border-color: #fff; }
.mgrid-act:active { transform: scale(0.98); filter: brightness(0.92); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: auto;            /* la hero è alta quanto il contenuto: niente frame alto con centratura */
  padding-top: var(--nav-h);
  padding-bottom: 0;           /* annulla i 96px ereditati da `section`: il gap sotto lo gestisce il container */
  display: flex;
  align-items: flex-start;     /* contenuto ancorato in alto, sotto la navbar */
  background: transparent;
  overflow: hidden;
  position: relative;
}

/* Decorative background */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 40%, rgba(232,0,160,0.06) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(74,142,240,0.04) 0%, transparent 55%);
  pointer-events: none;
}

/* Dot grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.4;
}

.hero .container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: center;
  width: 100%;            /* riempi tutta la larghezza come la navbar: testo allineato al logo, immagine al tasto Contatti */
  padding-top: 48px;      /* gap sopra il contenuto (era ~98 con la centratura) */
  padding-bottom: 48px;   /* gap sotto il contenuto (era ~164) → ora bilanciato e stretto */
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  color: var(--red-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 900;
  font-family: 'Rubik', var(--font);
  line-height: 1.06;
  color: var(--t1);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  text-wrap: pretty;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(to right, #E800A0, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title b    { font-weight: inherit; color: #ffffff; }
.hero-title mark { background: none; color: rgba(255,255,255,0.4); }

.hero-sub {
  font-size: 18px;
  color: var(--t2);
  line-height: 1.78;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }

.hero-stats { display: flex; gap: 40px; }
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--t1);
  line-height: 1;
}
.hstat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hstat-sep {
  width: 1px;
  background: var(--b2);
  align-self: stretch;
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  align-self: center;
  aspect-ratio: 16 / 9;   /* ratio reale del video: il riquadro non forza più un'altezza diversa, niente crop */
}
.hero-visual-card {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--b2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  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: 40px 40px;
}
.hero-visual-card::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-visual-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--t3);
  font-size: 12px;
  font-family: monospace;
  line-height: 1.9;
}
.hero-visual-placeholder svg { margin: 0 auto 12px; opacity: 0.5; }

.hero-visual-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;   /* il riquadro rispetta il ratio 16:9 del video: cover non deve più croppare */
}

/* ============================================================
   HERO VARIANT C — Grande: large typography
   ============================================================ */
body.variant-c .hero .container {
  grid-template-columns: 3fr 7fr;   /* 30/70: la colonna video è più larga così il riquadro 16:9 resta grande senza forzare l'altezza sul testo */
  gap: 60px;
}
body.variant-c .hero-sub { max-width: 600px; }

/* ============================================================
   HERO VARIANT B — Fuoco (strong red glow)
   ============================================================ */
body.variant-b .hero::before {
  background: radial-gradient(ellipse at 75% 35%, rgba(232,0,160,0.14) 0%, transparent 60%),
              radial-gradient(ellipse at 25% 75%, rgba(232,0,160,0.06) 0%, transparent 50%);
}
body.variant-b .hero-visual-card::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(232,0,160,0.35) 0%, transparent 70%);
}
body.variant-b .hero-title em {
  text-shadow: 0 0 60px rgba(232,0,160,0.4);
}

/* ============================================================
   HERO VARIANT C — Grande (max typography)
   ============================================================ */
body.variant-c .hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  font-family: 'Rubik', var(--font);
  letter-spacing: -0.04em;
  line-height: 1.18;
}
body.variant-c .hero::before {
  background: radial-gradient(ellipse at 60% 50%, rgba(74,142,240,0.06) 0%, transparent 60%);
}
body.variant-c .hero-visual-card {
  background: linear-gradient(145deg, rgba(232,0,160,0.06) 0%, rgba(26,35,63,0.6) 100%);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: rgba(0,0,0,0.45);
  padding: 24px 0;
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
}
.trust-bar .container { display: flex; align-items: center; gap: 40px; }
.trust-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-bar-items { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; flex: 1; }
.trust-bar-item {
  width: 100px; height: 30px;
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: monospace;
  color: var(--t3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--ease);
}
.trust-bar-item:hover { background: var(--bg-card-h); border-color: var(--b2); color: var(--t2); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  transition: all var(--ease);
  color: inherit;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--orange);
}
.service-card:hover {
  background: var(--bg-card-h);
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2), 0 0 0 1px var(--red);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--red-lt);
  border: 1px solid rgba(232,0,160,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--red-text);
  flex-shrink: 0;
  transition: all var(--ease);
}
.service-card:hover .service-icon {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 4px 16px var(--red-glow);
}
.service-name { font-size: 17px; font-weight: 700; color: var(--t1); }
.service-desc { font-size: 14px; color: var(--t2); line-height: 1.65; flex: 1; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-text);
  margin-top: 4px;
  transition: gap var(--ease);
}
.service-card:hover .service-link { gap: 8px; }

/* ── Servizi in evidenza (home): 2 card grandi ── */
.services-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}
.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: 18px 0 18px 0;   /* angoli: alto-dx e basso-sx vivi, gli altri arrotondati */
  transition: all var(--ease);
  color: inherit;
}
.featured-card::before {            /* quadratino arancione (come le card servizio) */
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--orange);
}
.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 14px 50px rgba(232,0,160,0.13);
}
.featured-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E800A0, var(--orange));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px var(--red-glow);
  flex-shrink: 0;
}
.featured-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to right, #E800A0, var(--orange));
  padding: 6px 13px; border-radius: 100px;
  white-space: nowrap;
}
.featured-name { font-size: 24px; font-weight: 800; color: var(--t1); letter-spacing: -0.01em; }
.featured-desc { font-size: 15.5px; color: var(--t2); line-height: 1.7; flex: 1; }
.featured-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--red-text);
  transition: gap var(--ease);
}
.featured-card:hover .featured-link { gap: 12px; }

/* ── Sottotitolo + griglia altri servizi (compatta) ── */
.services-subhead {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 18px;
}
.services-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.service-card-sm { padding: 20px 22px; gap: 8px; border-radius: 18px 0 18px 0; }
.service-card-sm .service-icon { width: 40px; height: 40px; margin-bottom: 2px; }
.service-card-sm .service-icon svg { width: 19px; height: 19px; }
.service-card-sm .service-name { font-size: 15px; }
.service-card-sm .service-link { font-size: 12px; margin-top: 2px; }

@media (max-width: 820px) {
  .services-featured { grid-template-columns: 1fr; gap: 16px; }
  .featured-card { padding: 28px; }
  .featured-name { font-size: 21px; }
}

/* ============================================================
   ABOUT / STATS
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.stat-box {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 20px;
  border: 1px solid var(--b1);
  transition: all var(--ease);
}
.stat-box:hover { border-color: var(--red); background: var(--red-lt); }
.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num sup { font-size: 16px; color: var(--red-text); }
.stat-label { font-size: 13px; color: var(--t2); font-weight: 600; }

/* ============================================================
   PORTFOLIO CARDS
   ============================================================ */
.portfolio-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.portfolio-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }

.pcard {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--b1);
  background: var(--bg-card);
  transition: all var(--ease);
}
.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border-color: var(--b2);
}
.pcard-thumb {
  width: 100%;
  aspect-ratio: 16/6;
  background: var(--bg-lt);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--b1) 1px, transparent 1px),
                    linear-gradient(90deg, var(--b1) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pcard-thumb-label {
  position: relative; z-index: 1;
  text-align: center;
  font-family: monospace; font-size: 11px;
  color: var(--t3); line-height: 1.7;
}
.pcard-body { padding: 20px 22px; }
.pcard-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 40px; font-size: 11px; font-weight: 600; background: var(--bg-card-h); color: var(--t2); border: 1px solid var(--b1); }
.tag-red { background: var(--red-lt); color: var(--red-text); border-color: rgba(232,0,160,0.2); }
.pcard-title { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 4px; }
.pcard-client { font-size: 13px; color: var(--t3); }
.pcard-featured { grid-column: span 2; }
.pcard-featured .pcard-thumb { aspect-ratio: 16/7; }

/* ============================================================
   CTA SECTION (RED)
   ============================================================ */
.cta-section {
  background: var(--cta-bg);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .section-title { color: white; font-size: clamp(2rem, 3.5vw, 3rem); }
.cta-section .section-sub { color: rgba(255,255,255,0.95); margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   LIGHT SECTIONS
   ============================================================ */
.section-light {
  background: #f5f7ff;
  /* Su fondo chiaro il fucsia-testo va SCURITO (non schiarito) per il contrasto */
  --red-text: var(--red-dk);
}
.section-light .section-title  { color: var(--lt-text-1); }
.section-light .section-sub    { color: var(--lt-text-2); }
.section-light .section-label  { color: var(--red-text); }
.section-light .section-label::before { background: var(--orange); }

.section-light .service-card   { background: #ffffff; border-color: var(--lt-border); }
.section-light .service-card:hover { border-color: var(--red); box-shadow: 0 8px 40px rgba(232,0,160,0.08); }
.section-light .service-name   { color: var(--lt-text-1); }
.section-light .service-desc   { color: var(--lt-text-3); }
.section-light .service-icon   { background: rgba(232,0,160,0.08); border-color: rgba(232,0,160,0.15); }

/* Servizi in evidenza su fondo chiaro */
.section-light .featured-card        { background: #ffffff; border-color: var(--lt-border); }
.section-light .featured-card:hover  { border-color: var(--red); box-shadow: 0 14px 50px rgba(232,0,160,0.12); }
.section-light .featured-name        { color: var(--lt-text-1); }
.section-light .featured-desc        { color: var(--lt-text-2); }
.section-light .services-subhead     { color: var(--lt-text-2); }

/* Card in evidenza SCURA (Temporary Manager) su sezione chiara */
.section-light .featured-card-dark   { background: linear-gradient(150deg, #14203f 0%, #0b1126 100%); border-color: rgba(255,255,255,0.10); }
.section-light .featured-card-dark:hover { border-color: var(--red); box-shadow: 0 14px 50px rgba(232,0,160,0.22); }
.section-light .featured-card-dark .featured-name { color: #ffffff; }
.section-light .featured-card-dark .featured-desc { color: rgba(255,255,255,0.74); }
.section-light .featured-card-dark .featured-link { color: #ff5cc0; }

.section-light .pcard          { background: #ffffff; border-color: var(--lt-border); }
.section-light .pcard:hover    { box-shadow: 0 20px 60px rgba(13,22,40,0.1); border-color: var(--lt-border-2); }
.section-light .pcard-thumb    { background: #dde5f8; }
.section-light .pcard-thumb::before { background-image: linear-gradient(#c7d2ee 1px, transparent 1px), linear-gradient(90deg, #c7d2ee 1px, transparent 1px); }
.section-light .pcard-thumb-label { color: var(--lt-text-3); }
.section-light .pcard-title    { color: var(--lt-text-1); }
.section-light .pcard-client   { color: var(--lt-text-3); }
.section-light .tag            { background: #e8eeff; color: var(--lt-blue-text); border-color: #c7d4f8; }
.section-light .tag-red        { background: rgba(232,0,160,0.08); color: var(--red-text); border-color: rgba(232,0,160,0.2); }

/* Bottone outline su fondo chiaro: testo/bordo scuri (il default è bianco → invisibile qui) */
.section-light .btn-outline       { color: var(--lt-text-1); border-color: var(--lt-border-2); }
.section-light .btn-outline:hover { background: #eef2f7; border-color: var(--lt-muted); }

.section-light .filter-btn     { background: #ffffff; border-color: var(--lt-border); color: var(--lt-text-3); }
.section-light .filter-btn:hover  { border-color: var(--red); color: var(--red-text); }
.section-light .filter-btn.active { background: var(--red); border-color: var(--red); color: white; }
.section-light .results-count  { color: var(--lt-text-3); }
.section-light .results-count strong { color: var(--lt-text-1); }

/* About section on light */
.section-light .stat-box       { background: #ffffff; border-color: var(--lt-border); }
.section-light .stat-num       { color: var(--lt-text-1); }
.section-light .stat-label     { color: var(--lt-text-3); }
.footer { background: var(--bg-xdk); color: var(--t2); padding: 72px 0 36px; border-top: 1px solid var(--b1); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo { height: 47px; margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.footer-piva { color: var(--t3); }

.footer-col-title {
  font-size: 12px; font-weight: 700;
  color: var(--t1);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--t2); transition: color var(--ease); }
.footer-links a:hover { color: var(--t1); }
.footer-links a.footer-link-legal { font-size: 13px; color: var(--t3); }
.footer-links a.footer-link-legal:hover { color: var(--t2); }
.footer-contact-line { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.footer-contact-line strong { color: var(--t1); }
.footer-divider { border: none; border-top: 1px solid var(--b1); margin-bottom: 24px; }
.section-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16) 20%, rgba(255,255,255,.16) 80%, transparent); margin: 0 0 64px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap; gap: 12px;
  color: var(--t3);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--t3); transition: color var(--ease); }
.footer-bottom-links a:hover { color: var(--t1); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--b1);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(232,0,160,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero.centered .container { display: block; text-align: center; }

.page-hero-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.page-hero-label::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--orange); }
.page-hero.centered .page-hero-label { justify-content: center; }

.page-hero-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 600;
  font-family: 'Rubik', var(--font);
  color: var(--t1);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero-sub { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 520px; line-height: 1.75; }
.page-hero.centered .page-hero-sub { margin: 0 auto; }

.page-hero-visual {
  height: 260px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.page-hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--b1) 1px, transparent 1px),
                    linear-gradient(90deg, var(--b1) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero-visual-inner {
  position: relative; z-index: 1;
  text-align: center;
  color: var(--t3);
  font-size: 12px;
  font-family: monospace;
}

/* Hero con infografica reale: il box si adatta al rapporto dell'immagine,
   niente altezza fissa né griglia segnaposto. */
.page-hero-visual.has-image {
  height: auto;
  background: transparent;
  border: 0;
}
.page-hero-visual.has-image::before { content: none; }
.page-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--b1);
}

/* Hero con infografica: a sinistra testo (sopra) + CTA (sotto),
   a destra l'immagine centrata. Scoped via :has → non tocca le altre pagine. */
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero:has(.page-hero-visual.has-image) .container {
  grid-template-areas: "text visual" "actions visual";
  grid-template-rows: auto auto;
  align-content: center;
}
.page-hero:has(.page-hero-visual.has-image) .page-hero-text    { grid-area: text;    align-self: end; }
.page-hero:has(.page-hero-visual.has-image) .page-hero-actions { grid-area: actions; align-self: start; margin-top: 28px; }
.page-hero:has(.page-hero-visual.has-image) .page-hero-visual  { grid-area: visual;  align-self: center; }

/* Altezza uniforme dell'infografica a desktop: box a ratio fisso, immagine
   "contain" (nessun crop). --hero-ratio è la leva per tarare l'altezza.
   Quando le sorgenti saranno tutte a questo ratio, le bande spariscono. */
@media (min-width: 993px) {
  /* colonna immagine più larga del testo → infografica più grande */
  .page-hero:has(.page-hero-visual.has-image) .container {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
  }
  .page-hero:has(.page-hero-visual.has-image) .page-hero-img {
    --hero-ratio: 1500 / 837;   /* ratio reale delle sorgenti → l'immagine riempie il riquadro, niente bande */
    aspect-ratio: var(--hero-ratio);
    object-fit: cover;
    background: var(--bg-card);
  }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--b1);
  transition: all var(--ease);
}
.feature-card:hover { background: var(--bg-card-h); border-color: var(--b2); transform: translateY(-3px); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--red-lt);
  border: 1px solid rgba(232,0,160,0.2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--red-text);
}
.feature-title { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.feature-desc { font-size: 14px; color: var(--t2); line-height: 1.65; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--t1); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 8px;
  border: 1.5px solid var(--b2);
  border-radius: var(--r);
  font-size: 15px;
  color: var(--t1);
  background: var(--bg-card);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  font-family: var(--font);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--t3); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-lt);
}
.form-select option { background: var(--bg-lt); color: var(--t1); }
.form-textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: stretch; }
/* la colonna info si allunga fino all'altezza del form e distribuisce le voci */
.contact-grid > .sr:first-child { display: flex; }
.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  border: 1px solid var(--b1);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-info-title { font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 36px; }
.contact-items { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 0; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--red-lt);
  border: 1px solid rgba(232,0,160,0.2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-text); flex-shrink: 0;
}
.contact-item-label { font-size: 12px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.contact-item-val { font-size: 15px; font-weight: 500; color: var(--t1); line-height: 1.5; }
.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 40px;
  border: 1px solid var(--b1);
}
.contact-form-title { font-size: 22px; font-weight: 800; color: var(--t1); margin-bottom: 8px; }
.contact-form-sub { font-size: 15px; color: var(--t2); margin-bottom: 28px; }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.team-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--b1);
  background: var(--bg-card);
  text-align: center;
  transition: all var(--ease);
}
.team-card:hover { transform: translateY(-4px); border-color: var(--b2); box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.team-photo {
  width: 100%; aspect-ratio: 1;
  background: var(--bg-lt);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.team-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--b1) 1px, transparent 1px),
                    linear-gradient(90deg, var(--b1) 1px, transparent 1px);
  background-size: 24px 24px;
}
.team-photo-label { position: relative; z-index: 1; font-family: monospace; font-size: 11px; color: var(--t3); text-align: center; }
.team-body { padding: 20px; }
.team-name { font-size: 17px; font-weight: 700; color: var(--t1); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--t3); font-weight: 500; }

/* ============================================================
   VALUES
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.value-card {
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--b1);
  background: var(--bg-card);
  transition: all var(--ease);
}
.value-card:hover { border-color: var(--red); background: var(--red-lt); }
.value-num { font-size: 48px; font-weight: 900; color: var(--red-text); opacity: 0.35; line-height: 1; margin-bottom: 14px; }
.value-title { font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.value-desc { font-size: 14px; color: var(--t2); line-height: 1.7; }

/* ============================================================
   FILTER BAR (portfolio)
   ============================================================ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--b1);
  border-radius: 40px;
  background: var(--bg-card);
  color: var(--t2);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease);
}
.filter-btn:hover { border-color: var(--b2); color: var(--t1); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: white; }

.results-count { font-size: 14px; color: var(--t3); margin-bottom: 32px; font-weight: 500; }
.results-count strong { color: var(--t1); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.sr { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.sr.visible { opacity: 1; transform: none; }
.sr-d1 { transition-delay: 0.08s; }
.sr-d2 { transition-delay: 0.16s; }
.sr-d3 { transition-delay: 0.24s; }
.sr-d4 { transition-delay: 0.32s; }
.sr-d5 { transition-delay: 0.40s; }
.sr-d6 { transition-delay: 0.48s; }

/* ============================================================
   HERO CTA BUTTON
   ============================================================ */
.btn-hero {
  border-radius: 40px;
  padding: 16px 72px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

/* ============================================================
   MOBILE NAV TOGGLE (hamburger)
   ============================================================ */
/* Toggle menu: griglia 3×3 di puntini col gradiente brand.
   All'apertura i 4 puntini centrali dei lati svaniscono e restano
   le due diagonali (4 angoli + centro) → morph fluido in una X. */
.nav-toggle {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 10px;
  transition: background var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E800A0, var(--orange));
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle:hover span { transform: scale(1.18); }
/* Stato aperto → X: svaniscono top-center(2), mid-left(4), mid-right(6), bottom-center(8) */
.nav-toggle.open span:nth-child(2),
.nav-toggle.open span:nth-child(4),
.nav-toggle.open span:nth-child(6),
.nav-toggle.open span:nth-child(8) { opacity: 0; transform: scale(0); }
/* I 5 puntini rimasti si ingrandiscono per leggere meglio la X */
.nav-toggle.open span:nth-child(1),
.nav-toggle.open span:nth-child(3),
.nav-toggle.open span:nth-child(5),
.nav-toggle.open span:nth-child(7),
.nav-toggle.open span:nth-child(9) { transform: scale(1.25); }

/* Voce "Contatti" visibile solo nel menu mobile (sul desktop c'è il bottone CTA) */
.nav-contatti-mobile { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  section { padding: 72px 0; }
  .container { padding: 0 28px; }
  body.variant-c .hero-title { font-size: clamp(3rem, 8vw, 5rem); }
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── Mobile menu + stacked two-column blocks ── (fino a 992: include i tablet
   in verticale come Surface Pro 912 e iPad 768/810, dove il menu desktop non ci sta) */
@media (max-width: 992px) {
  /* Barra più sottile su mobile (72 → 66px). Aggiornando la variabile
     si adeguano anche posizione menu e spazio sotto l'header. */
  :root { --nav-h: 66px; }
  /* Navbar → toggle a griglia di puntini */
  .nav-toggle { display: grid; }
  /* Logo su mobile (scala con desktop: 42→50px), -10% richiesto */
  .nav-logo img { height: 43px; }

  /* Subnav di sezione: SOLO mobile, in flusso (scorre con la pagina).
     Il body riserva lo spazio della navbar fissa; la subnav sta subito sotto. */
  .subnav { display: flex; }
  body.has-subnav { padding-top: var(--nav-h); }
  body.has-subnav .page-hero { padding-top: 36px; }

  /* Menu mobile a griglia: si apre dall'hamburger.
     Dove c'è la griglia, il vecchio popup a lista viene disattivato. */
  .mobile-grid.open { display: block; }
  body:has(#mobile-grid) .nav-menu,
  body:has(#mobile-grid) .nav-menu.open { display: none; }
  /* Il bottone CONTATTI resta visibile nella barra, in forma compatta */
  .nav-cta {
    display: inline-flex;
    padding: 4px 15px;
    font-size: 12px;
    letter-spacing: 0.06em;
    border-radius: 999px;          /* pill */
  }
  .nav-cta svg { display: none; }  /* via l'icona busta: solo testo, salva spazio */
  /* Su mobile resta solo Contatti nella barra: Prenota è nella griglia */
  .nav-cta-prenota { display: none; }
  .nav-actions { gap: 8px; }
  /* Contatti è già nella barra: niente voce duplicata nel menu a tendina */
  .nav-contatti-mobile { display: none; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex: none;
    padding: 12px 0;
    background: linear-gradient(160deg, #080d1e 0%, #0d1f6b 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link {
    width: 100%;
    border-radius: 0;
    padding: 14px 28px;
  }
  .nav-item:hover .nav-arrow { transform: none; }
  /* Servizi submenu inline (always expanded) */
  .nav-dropdown,
  .nav-dropdown.two-col {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0 0 8px;
    background: rgba(0,0,0,0.25);
    border: none;
    box-shadow: none;
  }
  .nav-dropdown a { padding-left: 44px; }

  /* Layout: stack two-column blocks */
  .hero .container,
  body.variant-c .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub,
  body.variant-c .hero-sub { max-width: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero .container { grid-template-columns: 1fr; gap: 36px; }

  /* Hero con infografica, mobile: ordine testo → immagine → CTA,
     con spazi sopra/sotto ridotti rispetto al desktop. */
  .page-hero:has(.page-hero-visual.has-image) .container {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "visual" "actions";
    gap: 24px;
  }
  .page-hero:has(.page-hero-visual.has-image) .page-hero-text,
  .page-hero:has(.page-hero-visual.has-image) .page-hero-actions { align-self: stretch; margin-top: 0; }
  body.has-subnav .page-hero:has(.page-hero-visual.has-image) { padding-top: 16px; padding-bottom: 28px; }

  /* CTA dell'hero centrato su mobile in tutte le pagine servizio:
     - .page-hero-actions  → pagine già convertite (con infografica)
     - .page-hero-sub + div → pagine col vecchio div CTA inline (dopo il sottotitolo) */
  .page-hero-actions,
  .page-hero .page-hero-sub + div { justify-content: center; }
}

/* ── Phone ── */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .section-header { margin-bottom: 36px; }

  body.variant-c .hero-title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-actions { margin-bottom: 0; }
  .hero-actions .btn,
  .btn-hero { width: 100%; justify-content: center; padding: 15px 24px; }

  .portfolio-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .cta-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .contact-form-card { padding: 24px 16px; }
}

/* ============================================================
   FORM DENTRO LA CTA (sfondo fucsia)
   ============================================================ */
.cta-form {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: left;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--r-lg);
  padding: 36px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cta-form-title {
  font-family: 'Rubik', var(--font);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
}
.cta-form-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin-bottom: 26px;
}
.cta-form .form-label { color: rgba(255,255,255,0.92); }
.cta-form .form-input,
.cta-form .form-textarea {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.cta-form .form-input::placeholder,
.cta-form .form-textarea::placeholder { color: rgba(255,255,255,0.6); }
.cta-form .form-input:focus,
.cta-form .form-textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}
.cta-form .btn-white { width: 100%; justify-content: center; margin-top: 18px; }
.cta-form-privacy {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  margin-top: 14px;
}
.cta-form-success {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--r);
  text-align: center;
  color: #fff;
}

/* ============================================================
   RIFINITURE UX MOBILE
   ============================================================ */
@media (max-width: 992px) {
  /* Lo sfondo "fixed" provoca scatti durante lo scroll su mobile
     (ed è ignorato/bacato su iOS): lo rendiamo solidale alla pagina. */
  body { background-attachment: scroll; }

  /* iOS Safari zooma automaticamente sui campi con font < 16px al focus.
     Portiamo tutti i controlli del form a 16px su mobile. */
  .form-input,
  .form-textarea,
  .form-select,
  .cta-form .form-input,
  .cta-form .form-textarea { font-size: 16px; }

  /* Footer: tap target più generosi (≈44px) per link e social */
  .footer-links { gap: 2px; }
  .footer-links a {
    display: inline-block;
    padding: 11px 0;
    line-height: 1.2;
  }
}

/* ============================================================
   SCALA TIPOGRAFICA FLUIDA — i font crescono con lo schermo
   ------------------------------------------------------------
   clamp(MIN, valore-con-vw, MAX): il testo scala in CONTINUO tra
   telefono (≈360px) e desktop, senza salti tra un breakpoint e
   l'altro. I titoli principali usavano già clamp(); qui portiamo
   alla stessa logica i testi di lettura e i numeri grandi.
   ============================================================ */

/* Testi di lettura — da ~16 a 18px secondo la larghezza schermo */
.hero-sub,
body.variant-c .hero-sub { font-size: clamp(1rem, 0.94rem + 0.45vw, 1.125rem); }   /* 16 → 18 */
.page-hero-sub           { font-size: clamp(1rem, 0.94rem + 0.45vw, 1.125rem); }   /* 16 → 18 */
.section-sub             { font-size: clamp(0.95rem, 0.91rem + 0.35vw, 1.0625rem); }/* 15.2 → 17 */
.contact-form-title      { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.375rem); }  /* 19 → 22 */

/* Numeri e statistiche grandi — scalano per non dominare i piccoli schermi */
.hstat-num            { font-size: clamp(1.375rem, 1.10rem + 1.2vw, 1.75rem); }    /* 22 → 28 */
.stat-num             { font-size: clamp(1.5rem,   1.20rem + 1.4vw, 2rem); }       /* 24 → 32 */
.value-num            { font-size: clamp(2.125rem, 1.60rem + 2.4vw, 3rem); }       /* 34 → 48 */

/* Sicurezza: parole lunghe non sforano mai il loro contenitore */
.hero-title, .page-hero-title, .section-title,
.contact-form-title, .value-title, .feature-title,
.service-name, .pcard-title { overflow-wrap: break-word; }

/* ============================================================
   BREAKPOINT FINI PER FASCIA DISPOSITIVO
   ------------------------------------------------------------
   Si AGGIUNGONO a quelli già presenti:
     Tablet ≤1024 · Mobile/menu ≤880 · Phone ≤600
   Qui copriamo le fasce piccole indicate nel brief.
   ============================================================ */

/* ── Smartphone standard verticale: ≤ 480px (Galaxy S/A, iPhone) ── */
@media (max-width: 480px) {
  .container       { padding: 0 18px; }
  .hero-stats      { gap: 24px; }
  .section-header  { margin-bottom: 32px; }
  .page-hero-sub   { max-width: none; }
  .section-sub     { max-width: none; }
}

/* ── Smartphone piccoli: ≤ 360px (Galaxy S20/S24, iPhone 12 mini) ── */
@media (max-width: 360px) {
  .container         { padding: 0 16px; }
  /* Abbassa il minimo dei titoli grandi per evitare overflow su schermi stretti */
  .hero-title        { font-size: clamp(2rem, 9vw, 2.6rem); }
  .page-hero-title   { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .about-stats       { grid-template-columns: 1fr; }   /* statistiche su 1 colonna */
  .nav-cta           { padding: 7px 13px; }
}

/* ── Schermi piccolissimi: ≤ 340px (iPhone SE 1ª gen) ── */
@media (max-width: 340px) {
  .container                  { padding: 0 14px; }
  .hero-actions .btn, .btn-hero { padding: 13px 18px; font-size: 13px; }
  .mgrid-cells                { gap: 9px; }
}

/* ── Tablet in VERTICALE (iPad Pro 1024×1366, Surface Pro 912×1368, ecc.) ──
   La hero forzava min-height:100vh con contenuto centrato: su viewport molto
   alti in portrait restavano enormi margini sopra/sotto. La rendiamo alta
   quanto il suo contenuto e ancorata in alto (subito sotto la navbar). */
@media (min-width: 768px) and (orientation: portrait) {
  .hero { min-height: auto; align-items: flex-start; }
  .hero .container { padding-top: 48px; padding-bottom: 64px; }
}

/* ============================================================
   ACCESSIBILITÀ — WCAG 2.1 AA (Legge Stanca / EAA)
   ============================================================ */

/* ── Skip link (WCAG 2.4.1): salta navigazione → contenuto.
   Nascosto finché non riceve focus da tastiera. ── */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 2000;
  padding: 12px 22px;
  background: #ffffff;
  color: var(--lt-text-1);
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Target dello skip link / landmark principale: niente outline indesiderato
   quando riceve il focus programmatico. */
#main-content:focus { outline: none; }

/* ── Focus visibile da tastiera (WCAG 2.4.7).
   :focus-visible NON si attiva al click del mouse, solo da tastiera.
   Anello fucsia + alone bianco → sempre leggibile sia su fondo scuro
   sia su sezioni chiare e bottoni colorati. ── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
.nav-toggle:focus-visible,
.filter-btn:focus-visible,
.mgrid-cell:focus-visible,
.mgrid-pill:focus-visible,
.mgrid-act:focus-visible,
.subnav a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.85);
}
/* Fallback per browser senza :focus-visible — mostra comunque l'outline */
.btn:focus, .nav-link:focus, .nav-cta:focus { outline: 3px solid var(--red); outline-offset: 3px; }
.btn:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
.nav-cta:focus:not(:focus-visible) { outline: none; }

/* ── Dropdown del menu apribili anche da TASTIERA (WCAG 2.1.1).
   Finora si aprivano solo in :hover; con :focus-within si aprono
   quando una voce interna riceve il focus tabulando. ── */
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item:focus-within > .nav-dropdown.two-col {
  transform: translateX(0) translateY(0);
}
.nav-item:focus-within .nav-arrow { transform: rotate(180deg); }

/* ── Rispetto delle preferenze di movimento ridotto (WCAG 2.3.3).
   Disattiva animazioni/transizioni per chi soffre di disturbi vestibolari. ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  /* Le rivelazioni allo scroll restano sempre visibili, senza spostamenti */
  .sr { opacity: 1 !important; transform: none !important; }
}

/* ── FAQ pagine servizio ── */
.faq-list { max-width: 840px; display: grid; gap: 14px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  transition: border-color var(--ease);
}
.faq-item:hover, .faq-item[open] { border-color: var(--red); }
.faq-q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 17px;
  color: var(--t1);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--red-text);
  transition: transform var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--t2); max-width: 70ch; }

/* ============================================================
   UTILITIES — classi per i pattern di stile ricorrenti più usati
   (sostituiscono gli style="..." inline ripetuti su più pagine)
   ============================================================ */
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mx-auto { margin: 0 auto; }
.pos-abs { position: absolute; }
.shrink-0 { flex-shrink: 0; }
.fz-15 { font-size: 15px; }
.text-t2 { color: var(--t2); }
.text-white { color: #fff; }
.text-red-link { color: var(--red-text); }
.link-reset { text-decoration: none; color: inherit; }
.unit-sup { font-size: 0.5em; }

/* Orario/etichetta secondaria sotto un contatto */
.hint-text { font-size: 12px; color: var(--t3); margin-top: 4px; }

/* Testo con gradiente brand (titoli, badge) */
.gradient-text { background: var(--grad-brand-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Immagine cover a riempimento contenitore */
.media-cover { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.mw-1000 { max-width: 1000px; }

/* Service-card in versione riga orizzontale (varianti su pagine servizio) */
.service-card-row { padding: 20px 24px; flex-direction: row; align-items: center; gap: 16px; }
.card-arrow { margin-left: auto; color: var(--blue); font-size: 13px; font-weight: 600; }

/* Titolo/sottotitolo blocco "Approfondimenti correlati" (articoli) */
.related-title { font-size: 1.4rem; font-family: 'Rubik', var(--font); font-weight: 800; color: var(--lt-text-1); margin: 0; }
.related-sub { color: var(--lt-text-3); margin: 8px 0 0; font-size: 15px; }

/* Messaggio di successo dopo invio form */
.form-success-icon { font-size: 28px; margin-bottom: 8px; }
.form-success-title { font-weight: 700; margin-bottom: 4px; }
.form-success-sub { font-size: 14px; opacity: 0.85; }

/* Griglia servizi compatta (variante a colonne più strette) */
.grid-cols-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ============================================================
   TAB-CARD — pattern ricorrente nelle pagine servizio: card con
   un quadratino "tab" colorato in alto a sinistra.
   Uso: la classe specifica della sezione (es. .auto-card) imposta
   solo padding + --tab-left (= offset del tab); il resto (bordo,
   radius, transition, ::before, hover) arriva da queste classi.
   ============================================================ */
.tab-card {
  position: relative;
  border-radius: var(--r-lg);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.tab-card::before {
  content: '';
  position: absolute;
  top: -1px; left: var(--tab-left, 24px);
  width: 13px; height: 13px;
  border-radius: 2px;
  background: var(--orange);
}
.tab-card-dark { background: var(--bg-card); border: 1px solid var(--b1); }
.tab-card-dark:hover { background: var(--bg-card-h); border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

.tab-card-light { background: #fff; border: 1px solid var(--lt-border); }
.tab-card-light:hover { transform: translateY(-4px); border-color: var(--lt-border-2); box-shadow: 0 18px 44px rgba(13,22,40,0.10); }
.tab-card-light.tab-card-lg:hover { box-shadow: 0 20px 50px rgba(13,22,40,0.10); }

/* ═══════════════════════════════════════════════════════════════════
   PORTFOLIO — card senza foto e schede caso-studio
   Patch mirata allineata alla copia di lavoro in root (styles/main.css).
   ═══════════════════════════════════════════════════════════════════ */

/* Card senza foto/screenshot (caso studio, non sito da mostrare): il tipo di
   intervento in testo-gradiente al posto dell'immagine mancante. */
.pcard-thumb-tag {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 20px;
  font-family: 'Rubik', var(--font);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, #E800A0, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pcard-excerpt { font-size: 14px; color: var(--t2); line-height: 1.6; margin: 10px 0 14px; }
.pcard-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--red-text); transition: gap var(--ease); }
.pcard:hover .pcard-cta { gap: 10px; }

/* Value-card su fondo chiaro (usate nelle schede caso-studio) */
.section-light .value-card     { background: #ffffff; border-color: var(--lt-border); }
.section-light .value-card:hover { border-color: var(--red); background: var(--red-lt); }
.section-light .value-title    { color: var(--lt-text-1); }
.section-light .value-desc     { color: var(--lt-text-3); }

/* Schede caso-studio: l'H1 è lungo (servizio + settore + Piacenza + cliente) → font ridotto */
.page-hero.case-study .page-hero-title { font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.15; }

/* Schede caso-studio: pagine di solo testo (niente immagini), container più stretto
   di quello standard (1280px) ma meno del blog (760px) — dall'hero alla CTA finale.
   Scoped via :has → non tocca navbar/footer né le altre pagine del sito. */
.page-hero.case-study .container { max-width: 900px; }
body:has(.page-hero.case-study) main .container { max-width: 900px; }

