/*
Theme Name: KeyDesk MSP
Theme URI: https://www.keydesk.it
Author: Silvia Pastorino
Author URI: https://www.keydesk.it
Description: Tema WordPress custom per KeyDesk - MSP IT Solutions.
Version: 1.1.15
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keydesk
Tags: business, it-services, custom, professional
*/

/* ===== VARIABLES ===== */
:root {
  /* Verde decorativo: pillola [K], onde, bordi, pallini, riga sotto l'header.
     Non è mai testo, quindi resta il verde aziendale originale. */
  --green: #3eac5b;
  --green-dark: #2d8a45;
  --green-light: #e8f7ed;

  /* Verde per i testi e per il fondo dei pulsanti con scritta bianca.
     #3eac5b si ferma a 2,89:1 sul bianco, sotto il minimo di 4,5:1. */
  --green-testo: #2a8040;        /* su bianco: 4,93:1 — bianco sopra: 4,93:1 */
  --green-testo-fondo: #26773c;  /* per i testi su verde chiaro e azzurrino,
                                    dove il #2a8040 si fermerebbe a 4,45 e 4,33 */
  --green-testo-hover: #1f5f30;  /* stati hover: 7,67:1 */

  /* Testo del footer sul navy. Il #5a6080 di prima era a 2,53:1
     e il copyright a 1,54:1, praticamente invisibile. */
  --footer-text: #adb4d4;        /* 7,60:1 */
  --navy: #1a1f4e;
  --navy-mid: #252b5e;
  --navy-light: #eef0f8;
  --hero-bg: #12163a;
  --white: #fff;
  --gray: #f5f5f3;
  --gray-mid: #e0e0de;
  --text: #222;
  --muted: #6b7280;
  --font: 'DM Sans', sans-serif;
  --font-head: 'Outfit', sans-serif;

  /* Dimensione dei testi di paragrafo di tutto il sito.
     Espressa in rem: segue la dimensione carattere impostata nel browser,
     quindi chi ingrandisce il testo per necessità continua a vederlo più grande.
     Il valore effettivo arriva da Aspetto → Personalizza → Tipografia;
     questo è il ripiego se l'impostazione non è mai stata salvata. */
  --kd-fs-base: 1rem;

  /* Note, didascalie e microcopy: sempre proporzionati alla base */
  --kd-fs-note: calc(var(--kd-fs-base) * 0.875);
}

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

/* ===== BASE ===== */
/* Non fissare qui una misura in px: annullerebbe la dimensione carattere
   scelta dall'utente nel browser, da cui dipendono tutti i valori in rem. */
html { font-size: 100%; }

body {
  font-family: var(--font);
  font-size: var(--kd-fs-base);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* Link di salto: fuori schermo finché non riceve il focus da tastiera.
   Non usare display:none, altrimenti non sarebbe raggiungibile col tab. */
.skip-link {
  /* fixed e non absolute: così resta ancorato alla finestra anche se la pagina
     è già stata scorsa quando il link riceve il focus */
  position: fixed;
  top: 0;
  left: -9999px;
  z-index: 1100;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 16px rgba(10,14,40,.25);
}
.skip-link:focus {
  /* staccato di pochi pixel dal bordo: a filo di finestra l'anello di focus
     verrebbe tagliato sui lati alto e sinistro. Il margine funziona con tutte
     le posizioni verticali, compresa quella con la barra di amministrazione. */
  left: 4px;
  margin-top: 4px;
  /* Qui l'anello non è navy come nel resto del sito: il riquadro compare sopra
     l'header, quindi il contorno tocca il bianco all'interno e il navy
     all'esterno. Il verde scuro è l'unico dei colori del tema che supera 3:1
     con entrambi (4,35:1 sul bianco e 3,58:1 sul navy); il navy sul navy
     sparirebbe del tutto. */
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}
/* Da utente collegato, WordPress mette in cima la barra di amministrazione:
   è fissa e con priorità di sovrapposizione altissima, quindi senza questo
   scostamento il link di salto le finisce sotto e si vede solo un rettangolo
   bianco senza testo. Le altezze sono quelle standard della barra. */
body.admin-bar .skip-link { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .skip-link { top: 46px; }
}
/* Bersaglio del link di salto: riceve il focus da programma, non deve
   mostrare un contorno attorno all'intera pagina */
.site-main:focus { outline: none; }

/* Testo riservato agli screen reader: fuori dalla vista ma leggibile.
   Non usare display:none né visibility:hidden, che lo nasconderebbero anche a loro. */
.kd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== INDICATORE DI FOCUS =====
   :focus-visible mostra l'anello a chi naviga da tastiera e non al clic del mouse.
   Sono esclusi gli elementi con tabindex="-1", che ricevono il focus solo da
   programma (il <main> del link di salto, i riquadri di esito dei form). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* Sui fondi scuri l'anello navy sparirebbe: qui passa al bianco.
   Il richiamo verde resta escluso di proposito, perché bianco su verde
   non raggiungerebbe il contrasto minimo richiesto per gli indicatori. */
.site-header a:focus-visible,
.site-header button:focus-visible,
.mobile-drawer a:focus-visible,
.mobile-drawer button:focus-visible,
.page-hero a:focus-visible,
.page-hero button:focus-visible,
.hero-section a:focus-visible,
.hero-section button:focus-visible,
.cta-section a:focus-visible,
.cta-section button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: #fff;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo .key { color: var(--green); }
.logo .desk { color: #fff; }

.main-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}
.main-nav a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active {
  color: #fff;
}
.main-nav a.active::before {
  content: '[';
  color: var(--green);
  margin-right: 3px;
  font-weight: 600;
}
.main-nav a.active::after {
  content: ']';
  color: var(--green);
  margin-left: 3px;
  font-weight: 600;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 1px;
  display: block;
  transition: all .2s;
}

/* Accent line */
.accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--navy) 100%);
}

/* Separatore semplice senza pill */
.simple-divider {
  margin: 32px 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--navy) 50%, transparent 100%);
  opacity: 0.15;
}

/* ===== [K] DIVIDER ===== */
.kd-divider {
  padding: 0 6%;
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  height: 56px;
}
.kd-divider.on-white { background: #fff; }
.kd-line { height: 1px; background: linear-gradient(90deg, transparent 0%, var(--navy) 50%, transparent 100%); opacity: .18; }
.kd-line-left  { flex: 1; }
.kd-line-right { flex: 1.2; }
.kd-pill {
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  user-select: none;
  box-shadow: none;
}
.kd-pill .br { color: #b4b2a9; }
.kd-pill .kl { color: var(--green); }

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 280px;
  height: 100vh;
  background: var(--navy);
  z-index: 999;
  /* visibility, non solo lo spostamento fuori schermo: senza questa i link del
     menu restano raggiungibili col tab su ogni pagina, anche da desktop, e il
     focus sparisce su elementi invisibili dichiarati aria-hidden */
  visibility: hidden;
  /* La visibility cambia di scatto, non in modo continuo: va ritardata solo in
     chiusura, così il pannello resta visibile mentre scorre via. In apertura
     deve scattare subito, altrimenti per i primi millisecondi resta hidden e
     non è possibile portarci il focus. */
  transition: right .3s ease, visibility 0s linear .3s;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  box-shadow: -4px 0 20px rgba(0,0,0,.3);
}
.mobile-drawer.open {
  right: 0;
  visibility: visible;
  transition: right .3s ease, visibility 0s linear 0s;
}

/* Da desktop il menu a scomparsa non esiste: l'hamburger è nascosto, quindi
   il pannello non deve poter restare aperto dopo un ridimensionamento */
@media (min-width: 901px) {
  .mobile-drawer,
  .drawer-overlay { display: none; }
}
.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  margin-bottom: 24px;
}
.drawer-close:hover { color: #fff; }
.drawer-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 32px;
}
.drawer-logo .key { color: var(--green); }
.drawer-logo .desk { color: #fff; }
.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-nav a {
  display: block;
  font-size: 16px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}
.drawer-nav a:hover { color: #fff; }
.drawer-nav a.active { color: var(--green); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  display: none;
}
.drawer-overlay.open { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: #111520;
  padding: 48px 6% 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.footer-logo .key { color: var(--green); }
.footer-logo .desk { color: #fff; }
.footer-brand p {
  font-size: var(--kd-fs-note);
  color: var(--footer-text);
  line-height: 1.65;
  max-width: 220px;
}
.footer-brand a { color: var(--footer-text); }
.footer-brand a:hover { color: var(--green); }
.footer-col h2 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  /* al 40% era a 3,66:1, sotto il minimo; al 70% arriva a 8,25:1 e resta
     appena più chiaro del corpo del footer, così legge ancora da titolo */
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
}
.footer-copy {
  font-size: 12px;
  color: var(--footer-text);
  line-height: 1.6;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px;
  color: var(--footer-text);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--green); }

/* ===== SECTION HELPERS ===== */
.sec-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--green-testo);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}
.sec-title {
  font-family: var(--font-head);
  font-size: 32px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
}
.sec-sub {
  font-size: var(--kd-fs-base);
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 36px;
}

/* PAGE HERO (pagine interne) */
.page-hero {
  background: var(--navy);
  padding: 68px 6% 52px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .07;
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.page-hero h1 em { color: var(--green); font-style: normal; }
.page-hero p {
  font-size: var(--kd-fs-base);
  color: rgba(255,255,255,.65);
  max-width: 620px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ===== STRUMENTI ===== */
.tools-section {
  background: var(--gray);
  padding: 60px 6%;
}
.tools-intro { margin-bottom: 36px; }
.tools-intro .sec-sub { max-width: 560px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  border: 1.5px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.tool-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(62,172,91,.1);
}
.tool-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}
.tool-card p {
  font-size: var(--kd-fs-base);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--navy);
  padding: 64px 6%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .06;
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-head);
  font-size: 34px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.cta-section p {
  font-size: var(--kd-fs-base);
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.btn-white {
  background: #fff;
  color: var(--navy);
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-head);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
/* Si inverte come il pulsante verde del banner recruiting: sfondo che si
   svuota e testo bianco. Qui pero' il fondo della sezione e' gia' navy, quindi
   un semplice `background: navy` farebbe sparire il pulsante: resta il
   contorno bianco, disegnato con un'ombra interna per non spostare
   l'impaginazione. */
.btn-white:hover,
.btn-white:focus-visible {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px #fff;
}

/* ===== FORMS ===== */
.form-box {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  padding: 32px;
}
.form-box h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: var(--kd-fs-base);
  color: var(--muted);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: var(--kd-fs-note);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--green-testo); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 9px;
  font-family: var(--font);
  /* Sotto i 16px iOS Safari ingrandisce la pagina quando il campo riceve il
     focus: tenendo la base a 16px il modulo resta stabile su mobile. */
  font-size: var(--kd-fs-base);
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group small {
  font-size: var(--kd-fs-note);
  color: var(--muted);
  margin-top: 5px;
  display: block;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--kd-fs-base);
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}
.privacy-check input {
  margin-top: 3px;
  accent-color: var(--green);
  flex-shrink: 0;
  width: auto;
}
.btn-form {
  width: 100%;
  background: var(--green-testo);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 9px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}
.btn-form:hover { background: var(--green-testo-hover); }

/* Form feedback messages */
.form-success {
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--green-testo-fondo);
  padding: 16px 20px;
  border-radius: 9px;
  font-size: var(--kd-fs-base);
  margin-bottom: 20px;
}
.form-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 16px 20px;
  border-radius: 9px;
  font-size: var(--kd-fs-base);
  margin-bottom: 20px;
}

/* ===== HOME HERO ===== */
.hero-section {
  padding: 68px 6% 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
  background: var(--hero-bg);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 110% at 90% 50%, rgba(62,172,91,.14) 0%, transparent 65%),
    radial-gradient(ellipse 60% 90% at 5% 60%, rgba(80,35,175,.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 50% 0%, rgba(62,172,91,.05) 0%, transparent 60%);
}
.hero-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .07;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(62,172,91,.2);
  color: #7ee89a;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(62,172,91,.3);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: block;
}
.hero-section h1 {
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-section h1 em { color: var(--green); font-style: normal; }
.hero-p {
  font-size: var(--kd-fs-base);
  line-height: 1.8;
  color: rgba(255,255,255,.65);
  margin-bottom: 30px;
}
.hero-btns { display: flex; gap: 12px; }
.btn-primary {
  background: var(--green-testo);
  color: #fff;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-testo-hover); color: #fff; }
.btn-outline-hero {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.2);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  display: inline-block;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
/* Si schiarisce bordo e testo e prende un velo appena percettibile, restando
   coerente col fondo scuro della hero. */
.btn-outline-hero:hover,
.btn-outline-hero:focus-visible {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.hero-stats-mobile { display: none; }

/* Ticket panel */
.hero-visual { position: relative; z-index: 2; }
.ticket-wrap { position: relative; overflow: hidden; border-radius: 12px; }
.hero-k-watermark {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 300px;
  font-weight: 800;
  color: rgba(255,255,255,.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  letter-spacing: -10px;
}
.ticket-scroll { height: 270px; overflow: hidden; position: relative; z-index: 1; }
.ticket-scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(transparent, var(--hero-bg));
  pointer-events: none;
  z-index: 2;
}
.tickets-inner {
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: scrollUp 24s linear infinite;
}
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.tick {
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-left: 4px solid var(--green);
  box-shadow: -2px 0 10px rgba(62,172,91,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tick-t { font-size: 13px; font-weight: 500; color: #fff; }
.tick-s { font-size: 11.5px; color: rgba(255,255,255,.4); margin-top: 2px; }
.pill { font-size: 10.5px; padding: 3px 10px; border-radius: 10px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.p-ok  { background: rgba(62,172,91,.2);  color: #7ee89a; border: 1px solid rgba(62,172,91,.25); }
.p-wip { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
.p-crit{ background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.p-info{ background: rgba(96,165,250,.15); color: #93c5fd; border: 1px solid rgba(96,165,250,.2); }
.uptime-bar {
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.09);
  margin-top: 9px;
  position: relative;
  z-index: 1;
}
.up-lbl { font-size: 11.5px; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.bar-track { height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 5px; background: var(--green); border-radius: 3px; width: 99.8%; }
.up-val { font-size: 12.5px; font-weight: 500; color: #7ee89a; margin-top: 5px; }

/* ===== STATS ===== */
.stats-section {
  background: var(--navy);
  padding: 44px 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 160 Q200 80 500 160 Q800 240 1100 160 Q1200 136 1300 148' stroke='%23fff' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 100 Q200 20 500 100 Q800 180 1100 100 Q1200 76 1300 88' stroke='%23fff' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 130 Q250 50 550 130 Q850 210 1150 130' stroke='%233eac5b' stroke-width='0.9' fill='none' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-number {
  font-family: var(--font-head);
  font-size: 38px;
  color: #fff;
  font-weight: 600;
  display: block;
}
.stat-number em { color: var(--green); font-style: normal; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 5px; display: block; }

/* ===== SERVICES PREVIEW (home) ===== */
.services-preview {
  padding: 60px 6%;
  position: relative;
  overflow: hidden;
}
.services-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 240 Q200 140 500 240 Q800 340 1100 240 Q1200 210 1300 225' stroke='%231a1f4e' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 180 Q200 80 500 180 Q800 280 1100 180 Q1200 150 1300 165' stroke='%231a1f4e' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 210 Q250 110 550 210 Q850 310 1150 210' stroke='%233eac5b' stroke-width='0.9' fill='none' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.services-preview > * { position: relative; z-index: 1; }
/* ===== PERCHÉ SCEGLIERCI ===== */
.perche-section { padding: 60px 6%; }
.perche-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.perche-intro .sec-lbl { margin-bottom: 10px; }
.perche-intro .sec-title { margin-bottom: 14px; }
.perche-intro p:not(.sec-lbl) { font-size: var(--kd-fs-base); color: var(--muted); line-height: 1.7; margin: 0; }
.perche-list { display: flex; flex-direction: column; gap: 18px; border-left: 3px solid var(--green); padding: 20px 0 20px 24px; margin: -20px 0; }
.perche-item h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0; font-family: var(--font-head); }
.perche-item p { font-size: var(--kd-fs-base); color: var(--muted); margin: 4px 0 0 0; }

/* ===== SERVIZI HOME — LISTA BULLET ===== */
.svc-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 28px; }
.svc-list-item { display: flex; gap: 16px; align-items: flex-start; }
.svc-bullet { width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.svc-list-item h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 6px; font-family: var(--font-head); }
.svc-list-item p { font-size: var(--kd-fs-base); color: var(--muted); line-height: 1.6; margin: 0; }

/* ===== METODO ===== */
.metodo-section { padding: 64px 6%; background: var(--navy-light); position: relative; overflow: hidden; }
.metodo-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 240 Q200 140 500 240 Q800 340 1100 240 Q1200 210 1300 225' stroke='%231a1f4e' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 180 Q200 80 500 180 Q800 280 1100 180 Q1200 150 1300 165' stroke='%231a1f4e' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 120 Q200 20 500 120 Q800 220 1100 120 Q1200 90 1300 105' stroke='%231a1f4e' stroke-width='0.7' fill='none'/%3E%3Cpath d='M-100 270 Q300 170 600 270 Q900 370 1200 270' stroke='%231a1f4e' stroke-width='0.6' fill='none'/%3E%3Cpath d='M-100 210 Q250 110 550 210 Q850 310 1150 210' stroke='%233eac5b' stroke-width='0.9' fill='none' opacity='0.6'/%3E%3Cpath d='M-100 150 Q250 50 550 150 Q850 250 1150 150' stroke='%233eac5b' stroke-width='0.7' fill='none' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.metodo-section > * { position: relative; z-index: 1; }
.metodo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.metodo-step {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1.5px solid transparent;
  transition: all .2s;
}
.metodo-step:hover { border-color: var(--green); }
.metodo-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
  opacity: .25;
  margin-bottom: 8px;
  line-height: 1;
}
.metodo-step h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.metodo-step p { font-size: var(--kd-fs-base); color: var(--muted); line-height: 1.6; }

/* ===== PAGINA CONTATTI ===== */
.contact-map-layout {
  padding: 48px 6% 64px;
  background: var(--gray);
}
.contact-map-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-mid);
  box-shadow: 0 4px 24px rgba(26,31,78,.07);
  min-height: 420px;
}
.contact-map-iframe { position: relative; }
.contact-map-iframe iframe { display: block; width: 100%; height: 100%; min-height: 380px; }
.contact-map-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #fafafa;
  border-left: 1px solid var(--gray-mid);
}
.cmi-block {}
.cmi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.cmi-value {
  font-size: var(--kd-fs-base);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}
.cmi-value a { color: var(--green-testo); text-decoration: none; }
.cmi-value a:hover { color: var(--green-testo-hover); }
.cmi-note { font-size: var(--kd-fs-note); font-weight: 400; color: var(--muted); }
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }

.info-block { background: var(--gray); border-radius: 12px; padding: 22px 24px; }
.info-block-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--green-testo);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}
.info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.info-row:last-child { margin-bottom: 0; }
.info-ico {
  width: 34px;
  height: 34px;
  background: var(--green-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-ico svg {
  width: 15px;
  height: 15px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-text { font-size: var(--kd-fs-base); color: var(--muted); line-height: 1.6; }
.info-text strong { color: var(--navy); font-size: 12px; font-weight: 500; display: block; margin-bottom: 2px; }
.info-text a { color: var(--green-testo); text-decoration: none; font-weight: 500; }

.hours-block { background: var(--navy-light); border-radius: 12px; padding: 22px 24px; }
.hours-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--navy);
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-size: var(--kd-fs-note);
}
.hour-row:last-child { border-bottom: none; }
.hour-day { color: var(--navy); font-weight: 500; }
.hour-time { color: var(--muted); }
.hour-time.emerg { color: var(--green-testo-fondo); font-weight: 500; }

/* ===== MODAL POSIZIONE ===== */
.pos-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pos-modal[aria-hidden="true"] { display: none; }
.pos-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,14,40,.6);
  backdrop-filter: blur(3px);
}
.pos-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(10,14,40,.3);
  z-index: 1;
}
.pos-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.pos-modal-close:hover { color: var(--navy); background: var(--gray); }
.pos-modal-body {
  padding: 36px 36px 24px;
  overflow-y: auto;
  flex: 1;
}
.pos-modal-body h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  padding-right: 32px;
}
.pos-modal-body h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--green-testo);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 10px;
}
.pos-modal-body p {
  font-size: var(--kd-fs-base);
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}
.pos-modal-body ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 16px;
}
.pos-modal-body ul li {
  font-size: var(--kd-fs-base);
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.pos-modal-body ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--green-testo);
}
.pos-modal-footer {
  padding: 16px 36px 28px;
  border-top: 1px solid var(--gray-mid);
}
.pos-modal-footer .btn-form { margin-top: 0; }


.footer-legal a {
  display: inline-block;
  margin: 0 10px;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: #fff;
}


/* ===== PAGINA LAVORA ===== */
.hiring-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(62,172,91,.2);
  color: #7ee89a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(62,172,91,.3);
  position: relative;
  z-index: 1;
}
.hiring-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: block;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.logo-inline { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.5px; }
.logo-inline .key { color: var(--green); }
.logo-inline .desk { color: #fff; }

.lavora-intro {
  padding: 52px 6% 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.lavora-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 240 Q200 140 500 240 Q800 340 1100 240 Q1200 210 1300 225' stroke='%231a1f4e' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 180 Q200 80 500 180 Q800 280 1100 180 Q1200 150 1300 165' stroke='%231a1f4e' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 210 Q250 110 550 210 Q850 310 1150 210' stroke='%233eac5b' stroke-width='0.8' fill='none' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.lavora-intro > * { position: relative; z-index: 1; }
.lavora-intro-text { font-size: var(--kd-fs-base); color: var(--muted); line-height: 1.8; }
.lavora-intro-text strong { color: var(--navy); }

.positions-heading {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  /* la sidebar è flex con gap 16px: avvicina il titolo al label soprastante */
  margin: -8px 0 0;
}
.positions-list { display: flex; flex-direction: column; gap: 18px; }
.position-card {
  /* È un <button> nativo, così apertura da tastiera e ruolo per gli screen
     reader arrivano dal browser: qui si azzerano solo gli stili predefiniti. */
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--gray);
  border-radius: 14px;
  padding: 26px 28px;
  border-left: 4px solid var(--green);
  border-top: 1.5px solid transparent;
  border-right: 1.5px solid transparent;
  border-bottom: 1.5px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pos-card-main { display: block; }
.position-card:hover {
  background: #fff;
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-bottom-color: var(--green);
  box-shadow: 0 4px 16px rgba(62,172,91,.12);
}
.pos-title { display: block; font-size: 20px; font-weight: 600; color: var(--navy); font-family: var(--font-head); margin-bottom: 8px; }
.pos-desc { display: block; font-size: var(--kd-fs-base); color: var(--muted); line-height: 1.6; }
.pos-open {
  background: var(--green-light);
  color: var(--green-testo-fondo);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 14px;
}
.section-divider { margin: 0 6%; border: none; border-top: 1px solid var(--gray-mid); }

.lavora-form-layout {
  padding: 40px 6% 60px;
  display: grid;
  /* Le posizioni aperte hanno più peso visivo del form */
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

/* Form candidatura più compatto */
.lavora-form-layout .form-box { padding: 26px; }
.lavora-form-layout .form-group textarea { min-height: 100px; }
.lavora-form-layout::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 240 Q200 140 500 240 Q800 340 1100 240 Q1200 210 1300 225' stroke='%231a1f4e' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 180 Q200 80 500 180 Q800 280 1100 180 Q1200 150 1300 165' stroke='%231a1f4e' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 210 Q250 110 550 210 Q850 310 1150 210' stroke='%233eac5b' stroke-width='0.8' fill='none' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.lavora-form-layout > * { position: relative; z-index: 1; }
.lavora-sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-card-lavora { background: var(--navy-light); border-radius: 11px; padding: 20px 22px; border: 1.5px solid transparent; transition: border-color .2s; }
.info-card-lavora:hover { border-color: rgba(26,31,78,.15); }
.info-card-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--navy);
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.info-card-lavora p { font-size: var(--kd-fs-base); color: var(--muted); line-height: 1.65; }
.info-card-lavora a { color: var(--green-testo-fondo); text-decoration: none; font-weight: 500; }
.info-note-lavora {
  background: var(--green-light);
  border-radius: 11px;
  padding: 16px 20px;
  border-left: 4px solid var(--green);
}
.info-note-lavora p { font-size: var(--kd-fs-base); color: var(--green-testo-fondo); line-height: 1.6; }

/* ===== PAGINA SERVIZI ===== */
.services-intro {
  padding: 52px 6% 16px;
  position: relative;
  overflow: hidden;
}
.services-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 240 Q200 140 500 240 Q800 340 1100 240 Q1200 210 1300 225' stroke='%231a1f4e' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 180 Q200 80 500 180 Q800 280 1100 180 Q1200 150 1300 165' stroke='%231a1f4e' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 210 Q250 110 550 210 Q850 310 1150 210' stroke='%233eac5b' stroke-width='0.8' fill='none' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.services-intro > * { position: relative; z-index: 1; }
.services-intro .sec-sub { max-width: none; }

/* ===== SERVIZI — LAYOUT ALTERNATO ===== */
.svc-sections-wrap {
  padding: 16px 0 60px;
  position: relative;
  overflow: hidden;
}
.svc-sections-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 240 Q200 140 500 240 Q800 340 1100 240 Q1200 210 1300 225' stroke='%231a1f4e' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 180 Q200 80 500 180 Q800 280 1100 180 Q1200 150 1300 165' stroke='%231a1f4e' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 120 Q200 20 500 120 Q800 220 1100 120 Q1200 90 1300 105' stroke='%231a1f4e' stroke-width='0.7' fill='none'/%3E%3Cpath d='M-100 210 Q250 110 550 210 Q850 310 1150 210' stroke='%233eac5b' stroke-width='0.9' fill='none' opacity='0.55'/%3E%3Cpath d='M-100 150 Q250 50 550 150 Q850 250 1150 150' stroke='%233eac5b' stroke-width='0.7' fill='none' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.svc-sections-wrap > * { position: relative; z-index: 1; }
.svc-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 0 6% 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--gray-mid);
}
.svc-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.svc-section.reverse { direction: rtl; }
.svc-section.reverse > * { direction: ltr; }
.svc-section .content .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green-testo);
  margin: 0 0 10px;
  display: block;
}
.svc-section .content h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 16px;
}
.svc-section .content p {
  font-size: var(--kd-fs-base);
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.svc-features-box {
  background: #edf0f7;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.svc-section:hover .svc-features-box {
  border-color: var(--green);
  box-shadow: 0 6px 24px rgba(62,172,91,.12);
}
.svc-feature-row { display: flex; align-items: center; gap: 12px; }
.svc-feature-ico {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-feature-ico svg { width: 18px; height: 18px; }
.svc-feature-row span { font-size: var(--kd-fs-base); color: var(--navy); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 12px; padding: 5px 12px; background: var(--gray); border-radius: 4px; color: var(--muted); }
.svc-cta-mid {
  background: var(--green-light);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 0 6% 56px;
}
.svc-cta-mid h4 { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.svc-cta-mid p { font-size: var(--kd-fs-base); color: var(--muted); margin: 0; }

/* ===== CERTIFICAZIONI ===== */
.cert-section {
  background: #fff;
  padding: 52px 6%;
  position: relative;
  overflow: hidden;
}
.cert-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-100 240 Q200 140 500 240 Q800 340 1100 240 Q1200 210 1300 225' stroke='%231a1f4e' stroke-width='1' fill='none'/%3E%3Cpath d='M-100 180 Q200 80 500 180 Q800 280 1100 180 Q1200 150 1300 165' stroke='%231a1f4e' stroke-width='0.8' fill='none'/%3E%3Cpath d='M-100 210 Q250 110 550 210 Q850 310 1150 210' stroke='%233eac5b' stroke-width='0.9' fill='none' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.cert-section > * { position: relative; z-index: 1; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.cert-badge {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: box-shadow .2s;
}
.cert-badge:hover { box-shadow: 0 4px 14px rgba(26,31,78,.1); }
.cert-badge svg { color: var(--navy); flex-shrink: 0; }
.cert-badge span { font-size: 11px; font-weight: 500; color: var(--muted); text-align: center; line-height: 1.3; }
.cert-badge.cert-badge[href] { text-decoration: none; cursor: pointer; }
.cert-badge[href]:hover { box-shadow: 0 4px 18px rgba(26,31,78,.15); border-color: var(--green); }
.cert-logo { max-height: 40px; max-width: 80px; width: auto; object-fit: contain; }
.cert-dl { font-size: 10px !important; color: var(--green-testo) !important; margin-top: 2px; }

/* svc-link */
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-testo);
  text-decoration: none;
}
.svc-link::after { content: '→'; }

/* ===== RECRUITING BANNER ===== */
.recruit-banner {
  background: var(--green-testo);
  padding: 40px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.recruit-banner-text { color: #fff; }
.recruit-banner-text h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.recruit-banner-text p { font-size: var(--kd-fs-base); opacity: .85; line-height: 1.6; }
.btn-recruit {
  background: #fff;
  color: var(--navy);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-head);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-recruit:hover { background: var(--navy); color: #fff; }

/* ===== WP UTILITIES ===== */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.entry-content h2 {
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
}
.entry-content p {
  margin-bottom: 1rem;
  color: var(--muted);
}
.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Header */
  .site-header { padding: 14px 4%; }
  .main-nav { display: none; }
  .nav-hamburger { display: flex; }

  /* Divider */
  .kd-divider { padding: 0 4%; height: 48px; }

  /* Footer */
  .site-footer { padding: 32px 4% 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* Page hero */
  .page-hero { padding: 36px 4% 28px; }
  .page-hero h1 { font-size: 28px; }

  /* Strumenti */
  .tools-section { padding: 36px 4%; }
  .tools-grid { grid-template-columns: 1fr 1fr; }

  /* CTA */
  .cta-section { padding: 40px 4%; }
  .cta-section h2 { font-size: 24px; }
  .btn-white { width: 100%; padding: 13px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-box { padding: 20px; }

  /* Hero mobile */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 4% 32px;
  }
  .hero-visual { display: none; }
  .hero-section h1 { font-size: 28px; margin-bottom: 12px; }
  .hero-p { margin-bottom: 20px; }
  .hero-badge { font-size: 10px; padding: 5px 11px; margin-bottom: 14px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-outline-hero { width: 100%; text-align: center; padding: 13px; font-size: 15px; }
  .hero-stats-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
  }
  .hero-stat-m {
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.12);
  }
  .hero-stat-m .sn { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: #fff; display: block; }
  .hero-stat-m .sn em { color: var(--green); font-style: normal; }
  .hero-stat-m .sl { font-size: 9px; color: rgba(255,255,255,.5); margin-top: 3px; display: block; line-height: 1.3; }

  /* Stats */
  .stats-section { display: none; }
  .stat-number { font-size: 28px; }

  /* Services preview */
  .services-preview { padding: 32px 4%; }
  .perche-section { padding: 32px 4%; }
  .perche-grid { grid-template-columns: 1fr; gap: 32px; }
  .perche-list { border-left: none; padding-left: 0; border-top: 2px solid var(--green-light); padding-top: 24px; }
  .svc-list-grid { grid-template-columns: 1fr; }

  /* Metodo */
  .metodo-section { padding: 32px 4%; }
  .metodo-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .metodo-step { padding: 20px 18px; }
  .metodo-num { font-size: 28px; }

  /* Contatti */
  .contact-map-layout { padding: 28px 4% 40px; }
  .contact-map-card { grid-template-columns: 1fr; }
  .contact-map-iframe iframe { min-height: 260px; }
  .contact-map-info { padding: 28px 24px; border-left: none; border-top: 1px solid var(--gray-mid); }

  /* Lavora */
  .lavora-intro { grid-template-columns: 1fr; padding: 28px 4% 24px; gap: 20px; }
  .lavora-form-layout { grid-template-columns: 1fr; padding: 24px 4% 36px; gap: 20px; }
  .section-divider { margin: 0 4%; }

  /* Servizi page */
  .services-intro { padding: 28px 4% 12px; }
  .services-intro .sec-title { font-size: 22px; }
  .svc-section, .svc-section.reverse { grid-template-columns: 1fr; direction: ltr; padding: 0 4% 40px; margin-bottom: 40px; }
  .svc-features-box { padding: 24px; }
  .svc-cta-mid { margin: 0 4% 40px; }

  /* Certificazioni */
  .cert-section { padding: 32px 4%; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Recruiting banner */
  .recruit-banner { flex-direction: column; padding: 32px 4%; text-align: center; gap: 16px; }
  .recruit-banner-text h2 { font-size: 18px; }
  .btn-recruit { width: 100%; padding: 13px; }
}

@media (max-width: 480px) {
  .svc-grid-home { grid-template-columns: 1fr; }
  .hero-stats-mobile { grid-template-columns: repeat(2, 1fr); }
  .svc-list-grid { grid-template-columns: 1fr; }
}

/* ===== Pagina Contatti: form + recapiti ===== */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  align-items: stretch; /* colonne a pari altezza: la mappa si estende fino al bordo del form */
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 4% 64px;
}

/* Form leggermente più compatto rispetto a quello candidature */
.contact-layout .form-box { padding: 28px; }
.contact-layout .form-group textarea { min-height: 100px; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: #fafafa;
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-map-mini {
  position: relative;
  flex: 1; /* riempie lo spazio rimanente della colonna */
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}
.contact-map-mini iframe {
  position: relative;
  z-index: 1; /* sopra il placeholder: quando la mappa si attiva lo copre */
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
}

/* Placeholder consenso cookie: visibile finché l'iframe non viene attivato da iubenda */
.map-consent-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: var(--gray);
  color: var(--muted);
  line-height: 1.5;
}
.map-consent-placeholder svg { color: var(--green); }
.map-consent-placeholder p {
  font-size: var(--kd-fs-base);
  margin: 0;
}
.map-consent-placeholder strong { color: var(--navy); }
.map-consent-placeholder a {
  font-size: var(--kd-fs-base);
  font-weight: 600;
  color: var(--green-testo);
  text-decoration: none;
}
.map-consent-placeholder a:hover { color: var(--green-testo-hover); text-decoration: underline; }

@media (max-width: 968px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding-top: 32px;
    gap: 20px;
  }
  .contact-map-mini { flex: none; }
  .contact-map-mini iframe { height: 200px; min-height: 0; }
}

/* Modal posizioni: formula pari opportunità in coda a ogni annuncio */
.pos-eeo {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-mid);
  font-size: var(--kd-fs-note);
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}

/* Modal posizioni: i contenuti preformattati non devono causare scroll orizzontale su mobile */
.pos-modal-body pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  font-family: inherit;
  font-size: inherit;
}

/* ===== Pagina 404 ===== */
.error-hero .error-code {
  font-family: var(--font-head);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  opacity: .18;
  position: relative;
  margin-bottom: 4px;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
  position: relative;
}

.error-links {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 4% 72px;
  text-align: center;
}

.error-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  text-align: left;
}

.error-link-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: 16px;
  padding: 26px 24px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.error-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 31, 78, .08);
}

.error-link-card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.error-link-card p {
  font-size: var(--kd-fs-base);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .error-links-grid { grid-template-columns: 1fr; }
  .error-hero .error-code { font-size: 68px; }
}

/* ===== Form candidature: spinner e barra di progresso ===== */
.btn-form:disabled {
  opacity: .75;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kd-spin .7s linear infinite;
}

@keyframes kd-spin {
  to { transform: rotate(360deg); }
}

.lavora-progress {
  margin: 0 0 14px;
}

.lavora-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(26, 31, 78, .1);
  overflow: hidden;
}

.lavora-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--green, #3eac5b);
  transition: width .2s ease;
}

.lavora-progress-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted, #666);
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 1.5s; }
  .lavora-progress-fill { transition: none; }
}

/* ===== SOVRASCRITTURE DI TERZE PARTI ===== */

/* Barra «Informativa sulla raccolta / Le tue preferenze relative alla privacy».
   La genera iubenda perché nella configurazione del sito è attiva la voce
   "usprApplies", cioè la funzione US State Privacy pensata per le leggi di
   alcuni stati americani. Duplica funzioni già raggiungibili dal pulsante
   preferenze, che resta attivo in basso a destra.

   Questa è una soluzione tampone: dipende dal nome di classe scelto da iubenda
   e può smettere di funzionare a un loro aggiornamento. La correzione stabile è
   disattivare la voce dal pannello iubenda (sito keydesk.it, siteId 4470527).

   NON rimuovere lo script iubenda dal footer per ottenere lo stesso effetto:
   contiene l'intera Cookie Solution e senza di lui sparisce il banner di
   consenso e restano bloccati per sempre Analytics e la mappa dei Contatti. */
.iub__us-widget { display: none !important; }