/* ============================================================
   HoReCa in Suite — Landing (struttura ispirata a Jet HR)
   Palette Jet HR: nero #11150a + accento lime #dfeb57 + neutri grigio-verde
   ============================================================ */

:root {
  /* Palette ufficiale Jet HR (estratta dal loro CSS) */
  --ink: #11150a;          /* dark--primary */
  --ink-2: #3f4340;        /* dark--text-black */
  --muted: #59615f;        /* dark--text-default */
  --line: #e0e6dc;         /* border--base */
  --line-2: #cfd6cd;       /* border--darker */
  --bg: #ffffff;
  --bg-warm: #f1f4f1;      /* fill--base */
  --bg-cream: #ecefec;     /* fill--dark */
  --lime: #dfeb57;         /* yellow--yellow-primary (colore firma) */
  --lime-dark: #ccd93a;    /* hover */
  --lime-soft: #f6f9cf;    /* yellow--yellow-light */
  /* alias per compatibilità con le regole esistenti */
  --primary: #dfeb57;
  --primary-dark: #ccd93a;
  --primary-soft: #f6f9cf;
  --accent: #2f8f5f;       /* verde per indicatori "in crescita" */
  --radius: 16px;
  --radius-sm: 10px;
  --btn-radius: 8px;
  --shadow-sm: 0 2px 10px rgba(17,21,10,.06);
  --shadow-md: 0 12px 40px rgba(17,21,10,.10);
  --maxw: 1180px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Rete di sicurezza contro lo scroll laterale su mobile.
   `clip` invece di `hidden` per non rompere l'header in position: sticky. */
html { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: var(--btn-radius); border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
/* CTA principale: nera con testo bianco (come Jet HR) */
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-warm); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
}

/* Evidenziatore lime dietro le parole chiave (stile Jet HR) */
.hl { background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 2px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.ph-note { color: #b0503f; font-size: 14px; font-weight: 600; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; }
.logo-mark { color: var(--lime); font-size: 18px; }
.logo-text strong { color: inherit; font-weight: 800; }
.logo-img { height: 38px; width: auto; display: block; }
/* Nel footer (sfondo scuro) il logo nero diventa bianco */
.site-footer .logo-img { height: 34px; filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2);
  background: none; border: none; cursor: pointer; padding: 8px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-warm); }
.caret { font-size: 10px; opacity: .6; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 8px; min-width: 280px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .16s ease;
}
.has-dropdown:hover .dropdown, .dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown { min-width: 240px; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; transition: background .13s; }
.dropdown a:hover { background: var(--bg-warm); }
.dropdown a strong { font-size: 15px; font-weight: 600; }
.dropdown-label { display: block; padding: 8px 12px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.dropdown-divider { display: block; height: 1px; background: var(--line); margin: 6px 10px; }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 100%); padding: 72px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.hero-sub { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-trust .stars { color: #ffb020; letter-spacing: 2px; }
.hero-trust strong { color: var(--ink); }
.hero-trust em { font-style: normal; opacity: .7; font-size: 12px; }

/* Immagine nella hero (al posto del mock dashboard) */
.hero-logo { width: 100%; height: auto; display: block; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }

/* Mock dashboard */
.mock-dashboard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-warm); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mock-title { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--bg-warm); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.kpi-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.kpi-val { font-size: 20px; font-weight: 800; }
.kpi-up { font-size: 11px; color: var(--accent); font-weight: 700; }
.kpi-down { font-size: 11px; color: #c0523f; font-weight: 700; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 0 4px; }
.mock-chart .bar { flex: 1; background: linear-gradient(180deg, var(--primary) 0%, var(--primary-soft) 100%); border-radius: 6px 6px 0 0; }
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-rows .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 9px 12px; background: var(--bg-warm); border-radius: 9px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag.open { background: #e6f4ee; color: var(--accent); }
.tag.prep { background: #fff2d9; color: #b7791f; }
.tag.ok { background: var(--lime-soft); color: var(--ink); }

/* ============ SOCIAL PROOF ============ */
.social-proof { padding: 44px 0; border-bottom: 1px solid var(--line); }
.sp-title { text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 26px; }
.sp-title .ph { color: #b0503f; font-weight: 600; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; }
.client-logo { font-size: 17px; font-weight: 700; color: #b9b2a7; letter-spacing: -.01em; }

/* ============ FEATURES ============ */
.features { padding: 90px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s, box-shadow .18s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.feature-card .fi { font-size: 30px; margin-bottom: 12px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ============ MANIFESTO ============ */
.manifesto { background: var(--ink); color: #fff; padding: 96px 0; }
.manifesto-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.manifesto h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.manifesto p { font-size: 20px; color: #d4cec4; line-height: 1.7; }

/* ============ SUPPORT ============ */
.support { padding: 90px 0; background: var(--bg-cream); }
.support-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.support-copy h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.support-copy > p { color: var(--muted); font-size: 18px; margin: 16px 0 22px; }
.check-list { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; font-size: 16px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.check-list em { color: var(--muted); font-size: 13px; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 34px; text-align: center; }
.support-card .avatar { font-size: 40px; margin-bottom: 16px; }
.support-card .quote { font-size: 21px; font-weight: 700; line-height: 1.4; margin-bottom: 18px; }
.support-card .who { color: var(--muted); font-size: 14px; }

/* ============ PRESS ============ */
.press { padding: 54px 0; text-align: center; }
.press-title { color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 26px; }
.press-title .ph { color: #b0503f; }
.press-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.press-logo-img { height: 30px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: opacity .18s, filter .18s; }
.press-logo-img:hover { filter: grayscale(0); opacity: 1; }
.press-logo { font-size: 18px; font-weight: 800; letter-spacing: .04em; color: #c3bcb0; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 80px 0; background: var(--bg-warm); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testi-card blockquote { font-size: 17px; font-weight: 600; line-height: 1.5; margin-bottom: 20px; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.t-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--lime-soft); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.testi-card figcaption strong { color: var(--ink); }

/* ============ WAYS ============ */
.ways { padding: 90px 0; }
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.way { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--primary); }
.way-num { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: .05em; }
.way h3 { font-size: 21px; font-weight: 700; margin: 14px 0 10px; line-height: 1.2; }
.way p { color: var(--muted); font-size: 16px; }

/* ============ SECTORS ============ */
.sectors { padding: 90px 0; background: var(--bg-cream); }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: transform .18s, box-shadow .18s; }
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sector-card .s-ico { font-size: 38px; }
.sector-card h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; }
.sector-card p { color: var(--muted); font-size: 15px; }

/* ============ CTA BAND ============ */
.cta-band { padding: 90px 0; background: var(--lime); color: var(--ink); text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.cta-band > .cta-inner > p { font-size: 19px; opacity: .85; margin: 16px 0 30px; }
.cta-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-form input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: var(--btn-radius); border: 1px solid rgba(17,21,10,.2); font-family: inherit; font-size: 15px; }
.cta-band .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }
.cta-fine { margin-top: 16px; font-size: 12px; opacity: .75; }

/* ============ PRICING ============ */
.pricing { padding: 90px 0; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.price-card h3 { font-size: 20px; font-weight: 700; }
.price-card .price { font-size: 40px; font-weight: 800; margin: 12px 0 20px; letter-spacing: -.02em; }
.price-card .price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card ul li { position: relative; padding-left: 26px; font-size: 15px; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price-card .btn { width: 100%; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: #cfc9bf; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: #948d82; max-width: 240px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #a49d92; padding: 5px 0; transition: color .13s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: #8a837a; flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .support-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid, .testi-grid, .ways-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Niente backdrop-filter su mobile: rendeva l'header il blocco contenitore del
     pannello di navigazione `fixed`, che così seguiva la pagina invece del viewport
     e a metà scroll si apriva fuori schermo. Sfondo pieno al suo posto. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  /* Pannello a tutta pagina: chiuso viene ritagliato da destra con clip-path
     invece che spostato con translateX, che faceva scorrere lateralmente
     l'intera pagina di una schermata (il pannello è fixed e allargava il documento). */
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    /* Altezza esplicita: l'header ha backdrop-filter e fa da blocco contenitore,
       quindi `bottom: 0` si calcolava sui suoi 68px e il pannello restava alto 48px. */
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    z-index: 99;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 24px; gap: 8px;
    clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path .25s ease, visibility .25s ease;
    overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-md);
  }
  .main-nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 17px; padding: 12px 8px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 8px 8px; display: none; }
  .dropdown.open { display: block; }
  .nav-cta-mobile { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav-cta-mobile .btn { width: 100%; padding: 14px 22px; }
  /* Senza bordo il pulsante "Accedi" sembrava testo, non un CTA */
  .nav-cta-mobile .btn-ghost { border-color: var(--line-2); }
  .feature-grid, .testi-grid, .ways-grid, .price-grid, .sector-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  /* 4 voci legali: vanno a capo e restano toccabili invece di comprimersi */
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
  .footer-legal a { padding: 9px 2px; }
  .footer-col a { padding: 9px 0; }
  .hero { padding: 48px 0 56px; }
  .features, .support, .ways, .sectors, .pricing, .cta-band { padding: 60px 0; }
  .manifesto { padding: 64px 0; }
}

/* ============================================================
   PAGINE INTERNE (sottopagine)
   ============================================================ */

/* Active state nav */
.nav-item.active > .nav-link { color: var(--ink); }
.nav-item.active > .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--lime); border-radius: 2px;
}
.nav-item.active { position: relative; }

/* Page hero */
.page-hero { background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 100%); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; max-width: 800px; }
.page-hero .lead { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 640px; }
.page-hero .hero-actions { margin-top: 26px; }
.page-hero .eyebrow { margin-bottom: 12px; }

/* Prose (contenuti testuali: legal, chi siamo, articoli) */
.prose { padding: 64px 0; }
.prose .container { max-width: 780px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 36px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.prose p { color: var(--ink-2); font-size: 17px; margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; }
.prose ul li { color: var(--ink-2); font-size: 17px; margin-bottom: 8px; }
.prose .muted-note { color: var(--muted); font-size: 14px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* Navigazione fra le pagine legali (chips) */
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legal-nav a {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: all .16s ease;
}
.legal-nav a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.legal-nav a.is-current { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.legal-nav a.is-current:hover { transform: none; box-shadow: none; }

/* Mappa del sito */
.sitemap { padding: 72px 0 88px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sitemap-group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sitemap-group:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.sitemap-group h2 {
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
.sitemap-group ul { list-style: none; margin: 0; }
.sitemap-group li { margin: 0; }
.sitemap-group a {
  display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--ink-2);
  padding: 7px 0; transition: color .13s ease;
}
.sitemap-group a::after {
  content: "→"; margin-left: auto; color: var(--ink);
  opacity: 0; transform: translateX(-6px); transition: opacity .16s ease, transform .16s ease;
}
.sitemap-group a:hover { color: var(--ink); }
.sitemap-group a:hover::after { opacity: 1; transform: none; }
.sitemap-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--lime-soft); color: var(--ink); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}

@media (max-width: 960px) {
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .page-hero { padding: 40px 0 40px; }
  .page-hero .breadcrumb { margin-bottom: 12px; }
  .page-hero .breadcrumb a { display: inline-block; padding: 6px 0; }
  .page-hero .lead { font-size: 17px; margin-top: 14px; }
  .prose { padding: 44px 0; }
  .prose h2 { font-size: 22px; margin: 28px 0 10px; }
  .prose p, .prose ul li { font-size: 16px; }
  /* Link inline nei testi legali: più spaziati per il tocco */
  .prose p a, .prose li a { text-decoration: underline; text-underline-offset: 3px; }
  .legal-nav { gap: 8px; margin-top: 20px; }
  .legal-nav a { font-size: 13.5px; padding: 10px 14px; }
  .sitemap { padding: 44px 0 56px; }
  .sitemap-grid { grid-template-columns: 1fr; gap: 14px; }
  .sitemap-group { padding: 20px 18px; border-radius: var(--radius-sm); }
  .sitemap-group h2 { margin-bottom: 8px; padding-bottom: 10px; }
  /* Voci più alte: 44px di area toccabile, e la freccia resta sempre visibile */
  .sitemap-group a { padding: 11px 0; font-size: 16px; }
  .sitemap-group a::after { opacity: .35; transform: none; }
}

/* Split feature rows (pagine funzionalità) */
.feature-rows { padding: 72px 0; counter-reset: frow; }
.f-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; background: var(--bg-warm); border: 1px solid var(--line); border-radius: 24px; padding: 44px; margin-bottom: 24px; }
.f-row:last-child { margin-bottom: 0; }
.f-row:nth-child(even) { background: #fff; }
.f-row:nth-child(even) .f-row-media { order: -1; }
.f-row-copy { counter-increment: frow; }
.f-row-copy::before { content: counter(frow, decimal-leading-zero); display: inline-block; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 13px; letter-spacing: .04em; padding: 3px 12px; border-radius: 999px; margin-bottom: 16px; }
.f-row h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.f-row p { color: var(--muted); font-size: 17px; margin: 14px 0 18px; }
.f-row .check-list { margin-bottom: 0; }
.f-row-media { background: radial-gradient(circle at 50% 45%, var(--lime-soft) 0 100px, #fff 101px); border: 1px solid var(--line); border-radius: 18px; min-height: 260px; display: grid; place-items: center; font-size: 76px; box-shadow: var(--shadow-sm); }

/* Benefit strip */
.benefits { padding: 72px 0; background: var(--bg-cream); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.benefit .b-ico { font-size: 28px; margin-bottom: 10px; }
.benefit h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 15px; }

/* FAQ / assistenza — <details> apribili: su desktop restano aperte,
   su mobile layout.js le richiude e diventano un accordion */
.faq { padding: 72px 0; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; flex: 1; }
.faq-item p { color: var(--muted); font-size: 16px; }
/* Freccia: visibile solo quando la FAQ è effettivamente richiudibile (mobile) */
.faq-q-arrow { display: none; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-warm);
  color: var(--ink); font-size: 12px; line-height: 1; place-items: center; transition: transform .22s ease, background .15s ease; }
.faq-item[open] .faq-q-arrow { transform: rotate(180deg); background: var(--lime); }

@media (max-width: 720px) {
  .faq { padding: 56px 0; }
  .faq-item { padding: 0; border-bottom: 1px solid var(--line); }
  /* Tutta la riga della domanda diventa area toccabile (min 56px) */
  .faq-item > summary { padding: 18px 2px; min-height: 56px; align-items: center; -webkit-tap-highlight-color: transparent; }
  .faq-item > summary:active { background: var(--bg-warm); }
  .faq-item h3 { font-size: 16.5px; line-height: 1.35; margin-bottom: 0; }
  .faq-item p { font-size: 15.5px; line-height: 1.6; padding: 0 2px 20px; margin-top: -2px; }
  .faq-q-arrow { display: grid; }
}

/* Blog / case study / webinar list */
.card-list { padding: 72px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { height: 160px; background: var(--bg-warm); display: grid; place-items: center; font-size: 46px; border-bottom: 1px solid var(--line); }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.post-body h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.post-body p { color: var(--muted); font-size: 15px; flex: 1; }
.post-body .post-link { font-weight: 700; font-size: 15px; color: var(--ink); }
.post-body .post-link:hover { text-decoration: underline; }

/* Form / auth pages */
.form-section { padding: 64px 0; }
.form-wrap { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow-sm); }
.form-wrap.narrow { max-width: 420px; }
.form-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.form-wrap .sub { color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px;
  font-family: inherit; font-size: 15px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lime); border-color: var(--lime); }
.field textarea { min-height: 120px; resize: vertical; }
.page-form .btn { width: 100%; margin-top: 6px; }
.form-fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }
.form-alt { text-align: center; margin-top: 18px; font-size: 14px; }
.form-alt a { font-weight: 700; text-decoration: underline; }

/* Two-column info (contatti) */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.info-block p { color: var(--muted); margin-bottom: 18px; }

/* Stats band */
.stats-band { padding: 56px 0; background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .s-num { font-size: 40px; font-weight: 800; color: var(--lime); letter-spacing: -.02em; }
.stat .s-lab { font-size: 14px; color: #cfc9bf; margin-top: 4px; }

/* Steps */
.steps { padding: 72px 0; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.step .s-n { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .f-row { grid-template-columns: 1fr; gap: 26px; padding: 30px; }
  .f-row:nth-child(even) .f-row-media { order: 0; }
  .f-row-media { min-height: 200px; font-size: 60px; }
  .benefit-grid, .card-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .benefit-grid, .card-grid, .step-grid, .stats-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 22px; }
}

/* ============================================================
   USP — "Unici in Italia" (differenzianti AI/IoT)
   ============================================================ */
.usp { padding: 90px 0; background: var(--ink); color: #fff; }
.usp .section-head h2 { color: #fff; }
.usp .section-head p { color: #cfc9bf; }
.usp .eyebrow { color: var(--lime); }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usp-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #1b2015; border: 1px solid #2c3322; border-top: 3px solid var(--lime);
  border-radius: var(--radius); padding: 30px 26px 26px; transition: transform .18s, border-color .18s;
}
.usp-card:hover { transform: translateY(-5px); border-color: var(--lime); }
.usp-badge {
  align-self: flex-start; background: var(--lime); color: var(--ink);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}
.usp-card .u-ico { font-size: 40px; margin-top: 6px; }
.usp-card h3 { font-size: 21px; font-weight: 800; color: #fff; }
.usp-card p { font-size: 15px; color: #cfc9bf; flex: 1; }
.usp-card .usp-link { font-weight: 700; color: var(--lime); font-size: 15px; }
.usp-more { text-align: center; margin-top: 30px; color: #cfc9bf; font-size: 16px; }
.usp-more a { color: var(--lime); font-weight: 700; text-decoration: underline; }

/* Voci "flagship" nel dropdown Piattaforma */
.dropdown a.flagship { border-left: 3px solid var(--lime); background: var(--lime-soft); margin-bottom: 4px; }
.dropdown a.flagship:hover { background: #eef3c0; }
.dropdown a.flagship strong { color: var(--ink); }

@media (max-width: 960px) { .usp-grid { grid-template-columns: 1fr; } }


/* ============================================================
   PREZZI — tabella di confronto (stile Jet HR)
   ============================================================ */
.pricing-compare { padding: 40px 0 90px; }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.pc-col { position: relative; border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; }
.pc-col.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-md); }
.pc-badge { position: absolute; top: 16px; right: 16px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; z-index: 2; }

.pc-head { padding: 32px 30px; }
.pc-col.featured .pc-head { background: linear-gradient(150deg, #33401b 0%, var(--ink) 60%); }
.pc-head h3 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.pc-price { font-size: 22px; font-weight: 800; margin: 8px 0 6px; }
.pc-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.pc-col.featured .pc-price span { color: #cfc9bf; }
.pc-desc { font-size: 15px; color: var(--muted); margin-bottom: 20px; min-height: 44px; }
.pc-col.featured .pc-desc { color: #d4cec4; }
.pc-btn { width: 100%; background: var(--bg-warm); color: var(--ink); border-color: var(--line); }
.pc-btn:hover { background: var(--bg-cream); }
.pc-col.featured .pc-btn { background: #fff; color: var(--ink); border-color: #fff; }
.pc-col.featured .pc-btn:hover { background: #f0efe9; }

.pc-group { padding: 22px 30px; border-top: 1px solid var(--line); }
.pc-col.featured .pc-group { border-top-color: rgba(255,255,255,.12); }
.pc-group-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.pc-col.featured .pc-group-title { color: #a49d92; }

.pc-consultant { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-warm); border-radius: 14px; padding: 16px; }
.pc-col.featured .pc-consultant { background: #000; }
.pc-ava { width: 42px; height: 42px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.pc-consultant strong { font-size: 15px; }
.pc-consultant p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pc-col.featured .pc-consultant p { color: #a49d92; }

.pc-feats { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.pc-feats li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.pc-feats li .ci { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pc-feats li.yes .ci { background: var(--ink); color: #fff; }
.pc-feats li.no .ci { background: #e2e2e2; color: #fff; }
.pc-feats li.no { color: #a7a29a; }
.pc-col.featured .pc-feats li.yes .ci { background: var(--lime); color: var(--ink); }
.pc-col.featured .pc-feats li.no .ci { background: #3a3f31; color: #6f7563; }
.pc-col.featured .pc-feats li.no { color: #7f867a; }

@media (max-width: 960px) {
  .pc-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ============================================================
   MEGA MENU (Piattaforma) — a tutta larghezza, stile Jet HR
   ============================================================ */
.dropdown.mega {
  position: fixed; left: 0; right: 0; top: 68px; width: 100%;
  min-width: 0; border: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0; box-shadow: 0 20px 40px rgba(17,21,10,.10); padding: 0; z-index: 99; background: #fff;
}
.mega-inner { max-width: var(--maxw); margin: 0 auto; padding: 38px 24px 26px; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.mega-col { display: flex; flex-direction: column; }
.mega-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.mega-col > .mega-title:first-child { margin-top: 0; }
.mega-col a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: background .13s; }
.mega-col a:hover { background: var(--bg-warm); }
.mega-ico { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.mega-flag .mega-ico { background: var(--lime-soft); border-color: var(--lime); }
.mega-new { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: var(--lime); color: var(--ink); padding: 2px 8px; border-radius: 999px; margin-left: auto; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.mega-foot span { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* Variante Risorse: 3 colonne + card promo */
.mega-cols-3 { grid-template-columns: 1fr 1fr 1.3fr; }
.mega .mega-promo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 28px; }
.mega .mega-promo:hover { background: #000; }
.mega .mega-promo-badge { display: inline-flex; align-items: center; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.mega .mega-promo strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.mega .mega-promo p { font-size: 14px; color: #cfc9bf; }
.mega .mega-promo-cta { color: var(--lime); font-weight: 700; font-size: 15px; margin-top: 2px; }

@media (max-width: 720px) {
  .dropdown.mega { position: static; top: auto; border: none; box-shadow: none; }
  .mega-inner { padding: 6px 0 0; }
  .mega-cols { grid-template-columns: 1fr; gap: 0; }
  .mega-col > .mega-title:first-child { margin-top: 14px; }
  .mega-foot { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
  .mega-foot span { font-size: 16px; }
  .mega-foot .btn { width: 100%; }
}


/* ============================================================
   ACC-LIST — card valore trasformate in lista a tendina
   ============================================================ */
.acc-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.acc { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.acc[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-size: 18px; font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--bg-warm); }
.acc-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--lime-soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.acc-t { flex: 1; }
.acc summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.acc[open] summary::after { content: "–"; }
.acc-body { padding: 2px 22px 20px 80px; color: var(--muted); font-size: 16px; }

@media (max-width: 720px) {
  .acc summary { padding: 16px; font-size: 16px; gap: 12px; }
  .acc-ico { width: 38px; height: 38px; font-size: 18px; }
  .acc-body { padding: 2px 16px 18px; }
}

/* ============================================================
   INIZIA ORA — layout split (pannello scuro + form)
   ============================================================ */
.getstarted { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.gs-left { background: var(--ink); color: #fff; padding: 80px 6vw; display: flex; flex-direction: column; justify-content: center; }
.gs-left .eyebrow { color: var(--lime); }
.gs-left h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.gs-left h1 .hl { background: linear-gradient(transparent 62%, rgba(223,235,87,.45) 62%); }
.gs-sub { color: #cfc9bf; font-size: 18px; margin: 16px 0 30px; max-width: 460px; }
.gs-benefits { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.gs-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; }
.gs-benefits li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.gs-trust { display: flex; align-items: center; gap: 10px; color: #cfc9bf; font-size: 14px; }
.gs-trust .stars { color: var(--lime); letter-spacing: 2px; }
.gs-trust strong { color: #fff; }
.gs-right { padding: 64px 6vw; display: flex; align-items: center; justify-content: center; background: var(--bg-warm); }
.gs-form { width: 100%; max-width: 470px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 38px; box-shadow: var(--shadow-md); }
.gs-form h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.gs-form .sub { color: var(--muted); margin: 6px 0 24px; font-size: 15px; }
.gs-form .btn { width: 100%; margin-top: 4px; }
.gs-form .form-fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

@media (max-width: 860px) {
  .getstarted { grid-template-columns: 1fr; }
  .gs-left { padding: 52px 24px; }
  .gs-right { padding: 40px 24px 56px; }
  .gs-form { padding: 28px 22px; }
}

/* ---- Prezzi: box funzionalità richiudibili ---- */
.pc-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 30px; font-size: 15px; font-weight: 700; border-top: 1px solid var(--line); }
.pc-details summary::-webkit-details-marker { display: none; }
.pc-details summary:hover { background: var(--bg-warm); }
.pc-col.featured .pc-details summary { border-top-color: rgba(255,255,255,.12); }
.pc-col.featured .pc-details summary:hover { background: rgba(255,255,255,.06); }
.pc-arrow { color: var(--muted); transition: transform .2s; font-size: 14px; }
.pc-details[open] .pc-arrow { transform: rotate(180deg); }
.pc-col.featured .pc-arrow { color: #cfc9bf; }
.pc-details .pc-group:first-child { border-top: 1px solid var(--line); }
.pc-col.featured .pc-details .pc-group:first-child { border-top-color: rgba(255,255,255,.12); }

/* ============================================================
   PREZZI — box orizzontali split (blocco colorato + funzioni)
   ============================================================ */
.ph-list { display: flex; flex-direction: column; gap: 18px; max-width: 1000px; margin: 0 auto; }
.ph-card { position: relative; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; transition: box-shadow .18s; }
.ph-card:hover { box-shadow: var(--shadow-md); }
.ph-card.featured { box-shadow: 0 16px 40px rgba(17,21,10,.16); }

.ph-split { display: grid; grid-template-columns: 300px 1fr; }
.ph-side { background: var(--bg-warm); padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.ph-side h3 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.ph-side p { color: var(--muted); font-size: 14px; margin: 7px 0 22px; }
.ph-side .btn { width: 100%; }

.ph-body { padding: 28px 32px; display: flex; flex-direction: column; }
.ph-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ph-feats li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.ph-feats li .ci { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }

.ph-details { margin-top: 18px; border-top: 1px solid var(--line); }
.ph-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 2px 2px; font-size: 14px; font-weight: 700; color: var(--muted); }
.ph-details summary::-webkit-details-marker { display: none; }
.ph-details summary:hover { color: var(--ink); }
.ph-details summary .pc-arrow { transition: transform .2s; }
.ph-details[open] summary .pc-arrow { transform: rotate(180deg); }
.ph-details-body { padding: 18px 0 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 30px; }
.ph-details-body .pc-group { border: none; padding: 0; }
.ph-details-body .pc-group-title { color: var(--muted); }

/* Box Business: blocco sinistro colorato */
.ph-card.featured .ph-side { background: linear-gradient(150deg, #33401b 0%, var(--ink) 62%); color: #fff; border-right-color: transparent; }
.ph-card.featured .ph-side p { color: #cfc9bf; }
.ph-card.featured .ph-side .btn { background: #fff; color: var(--ink); border-color: #fff; }
.ph-card.featured .ph-side .btn:hover { background: #f0efe9; }

@media (max-width: 860px) {
  .ph-split { grid-template-columns: 1fr; }
  .ph-side { border-right: none; border-bottom: 1px solid var(--line); padding: 26px; }
  .ph-card.featured .ph-side { border-bottom-color: transparent; }
  .ph-body { padding: 24px; }
  .ph-details-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ph-feats { grid-template-columns: 1fr; }
}

.ph-feats-title { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 4px 0 22px; }

/* ============================================================
   LA PIATTAFORMA — linea animata delle aree (marquee)
   ============================================================ */
.platform-line { padding: 90px 0 130px; }
.platform-line .section-head { margin-bottom: 104px; }

.flowline { position: relative; max-width: 940px; margin: 0 auto; aspect-ratio: 1000 / 460; }
/* Percorso a S che si disegna progressivamente */
.fl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fl-path-bg { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.fl-path-fill { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 3px rgba(223,235,87,.8)); animation: fl-draw 7s ease-in-out infinite; }
@keyframes fl-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.fl-nodes { position: absolute; inset: 0; }
.fl-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: 160px; }
.fl-dot { width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: 27px;
  animation-duration: 7s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.fl-lbl { font-weight: 700; font-size: 14px; line-height: 1.2; text-align: center; }
.fl-node:hover .fl-dot { border-color: var(--ink); }

/* Sequenza: ogni area si accende in sequenza */
.fl-nodes .fl-node:nth-child(1) .fl-dot { animation-name: lit0; }
.fl-nodes .fl-node:nth-child(2) .fl-dot { animation-name: lit1; }
.fl-nodes .fl-node:nth-child(3) .fl-dot { animation-name: lit2; }
.fl-nodes .fl-node:nth-child(4) .fl-dot { animation-name: lit3; }
.fl-nodes .fl-node:nth-child(5) .fl-dot { animation-name: lit4; }
.fl-nodes .fl-node:nth-child(6) .fl-dot { animation-name: lit5; }

@keyframes lit0 { 0%,88% { background: var(--lime-soft); border-color: var(--lime-dark); box-shadow: 0 0 0 6px rgba(223,235,87,.28); transform: translateY(-3px); } 96%,100% { background: #fff; border-color: var(--line); box-shadow: none; transform: none; } }
@keyframes lit1 { 0%,13% { background:#fff; border-color:var(--line); box-shadow:none; } 14%,88% { background: var(--lime-soft); border-color: var(--lime-dark); box-shadow: 0 0 0 6px rgba(223,235,87,.28); transform: translateY(-3px); } 96%,100% { background:#fff; border-color:var(--line); box-shadow:none; transform:none; } }
@keyframes lit2 { 0%,27% { background:#fff; border-color:var(--line); box-shadow:none; } 28%,88% { background: var(--lime-soft); border-color: var(--lime-dark); box-shadow: 0 0 0 6px rgba(223,235,87,.28); transform: translateY(-3px); } 96%,100% { background:#fff; border-color:var(--line); box-shadow:none; transform:none; } }
@keyframes lit3 { 0%,41% { background:#fff; border-color:var(--line); box-shadow:none; } 42%,88% { background: var(--lime-soft); border-color: var(--lime-dark); box-shadow: 0 0 0 6px rgba(223,235,87,.28); transform: translateY(-3px); } 96%,100% { background:#fff; border-color:var(--line); box-shadow:none; transform:none; } }
@keyframes lit4 { 0%,55% { background:#fff; border-color:var(--line); box-shadow:none; } 56%,88% { background: var(--lime-soft); border-color: var(--lime-dark); box-shadow: 0 0 0 6px rgba(223,235,87,.28); transform: translateY(-3px); } 96%,100% { background:#fff; border-color:var(--line); box-shadow:none; transform:none; } }
@keyframes lit5 { 0%,69% { background:#fff; border-color:var(--line); box-shadow:none; } 70%,88% { background: var(--lime-soft); border-color: var(--lime-dark); box-shadow: 0 0 0 6px rgba(223,235,87,.28); transform: translateY(-3px); } 96%,100% { background:#fff; border-color:var(--line); box-shadow:none; transform:none; } }

/* Popup con descrizione + funzionalità (compare al passaggio del mouse) */
.fl-pop { position: absolute; left: 50%; bottom: calc(100% + 12px); top: auto; transform: translateX(-50%) translateY(-6px); width: 350px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 16px 38px rgba(17,21,10,.18); padding: 15px 17px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 6;
  display: grid; grid-template-columns: 1fr auto; column-gap: 17px; row-gap: 3px; }
.fl-pop-l { grid-column: 2; grid-row: 1 / 3; align-self: center; border-left: 1px solid var(--line); padding-left: 17px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fl-pop-l li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fl-pop-l li::before { content: "✓"; width: 15px; height: 15px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.fl-pop-h { grid-column: 1; grid-row: 1; align-self: end; display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.fl-pop-d { grid-column: 1; grid-row: 2; align-self: start; font-size: 12.5px; color: var(--muted); line-height: 1.38; margin: 3px 0 0; }
/* righe alte: popup verso l'ALTO, freccia verso il basso */
.fl-pop::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 8px solid transparent; top: 100%; border-top-color: #fff; filter: drop-shadow(0 1px 0 var(--line)); }
/* righe basse: popup verso il BASSO, freccia verso l'alto */
.fl-nodes .fl-node:nth-child(n+4) .fl-pop { bottom: auto; top: calc(100% + 12px); transform: translateX(-50%) translateY(6px); }
.fl-nodes .fl-node:nth-child(n+4) .fl-pop::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; filter: drop-shadow(0 -1px 0 var(--line)); }
.fl-node:hover .fl-pop, .fl-node:focus-within .fl-pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.flowline:hover .fl-path-fill, .flowline:hover .fl-dot { animation-play-state: paused; }

@media (max-width: 760px) {
  .flowline { aspect-ratio: auto; max-width: 480px; }
  .fl-svg { display: none; }
  .fl-nodes { position: static; display: flex; flex-direction: column; gap: 22px; }
  .fl-node { position: static; transform: none; width: auto; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "dot lbl" "dot pop"; column-gap: 16px; row-gap: 4px; align-items: start; }
  .fl-dot { flex-shrink: 0; grid-area: dot; align-self: center; }
  .fl-lbl { grid-area: lbl; text-align: left; font-size: 17px; align-self: end; }
  .fl-pop { grid-area: pop; display: block; position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto; width: auto; border: none; box-shadow: none; padding: 0; background: transparent; }
  /* Su mobile il popover è testo in linea, non una tendina: qui vengono annullate
     tutte le regole desktop che lo spostano con transform (posizione dei nodi 4-6
     e stato hover/focus, che sul touch resta attivo dopo il tocco). Senza questi
     override quei blocchi finivano per metà fuori dallo schermo a sinistra. */
  .fl-nodes .fl-node:nth-child(n+4) .fl-pop,
  .fl-nodes .fl-node:hover .fl-pop,
  .fl-nodes .fl-node:focus-within .fl-pop,
  .fl-nodes .fl-node:nth-child(n+4):hover .fl-pop,
  .fl-nodes .fl-node:nth-child(n+4):focus-within .fl-pop {
    position: static; top: auto; bottom: auto; transform: none;
  }
  .fl-pop::after { display: none; }
  .fl-pop-h { display: none; }
  .fl-pop-d { margin: 0 0 8px; }
  .fl-pop-l { border-right: none; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-path-fill { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .fl-dot { animation: none; background: var(--lime-soft); border-color: var(--lime-dark); }
}



/* ---- Sottomenu a tendina di ogni voce del mega (cosa contiene) ---- */
.mega-item { position: relative; }
.mega-item > a .mega-more { margin-left: auto; color: var(--muted); font-size: 16px; font-weight: 700; }
.mega-sub { position: absolute; top: -6px; left: 100%; min-width: 232px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 38px rgba(17,21,10,.16); padding: 7px; opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 30; }
.mega-item:hover > .mega-sub { opacity: 1; visibility: visible; transform: translateX(0); }
.mega-sub a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .12s; }
.mega-sub-ico { width: 22px; text-align: center; font-size: 16px; flex-shrink: 0; }
.mega-sub a:hover { background: var(--bg-warm); }
.mega-sub-note { display: block; padding: 8px 12px; font-size: 13px; color: var(--muted); line-height: 1.42; max-width: 232px; white-space: normal; }

@media (max-width: 760px) {
  .mega-item > a .mega-more { display: none; }
  .mega-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 4px 22px; padding: 0; min-width: 0; }
}

/* ---- Icone a linea (SVG) nei menu ---- */
.mega-ico { color: var(--ink-2); }
.mega-ico svg { width: 19px; height: 19px; display: block; }
.mega-flag .mega-ico { color: var(--ink); }
.mega-sub-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; color: var(--muted); }
.mega-sub-ico svg { width: 17px; height: 17px; display: block; }

/* ============================================================
   HERO 2 — box scuro + mockup gestionale (stile Jet HR)
   ============================================================ */
.hero2 { padding: 34px 0 84px; }
.hero2 > .container { max-width: 1340px; }
.hero2-box { position: relative; background: var(--ink); border-radius: 30px; padding: 64px 56px; min-height: 540px; display: flex; align-items: center; overflow: hidden; box-shadow: 0 44px 90px rgba(17,21,10,.30); }
.hero2-left { color: #fff; max-width: 480px; position: relative; z-index: 2; }
.hero2-left h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.hero2-left h1 .hl { background: linear-gradient(transparent 60%, rgba(223,235,87,.5) 60%); color: #fff; }
.hero2-sub { color: #cfc9bf; font-size: 18px; line-height: 1.55; margin: 22px 0 30px; max-width: 460px; }
.hero2-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: #f0efe9; }
.btn-donline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-donline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.hero2-trust { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 14px; color: #cfc9bf; }
.hero2-trust .stars { color: var(--lime); letter-spacing: 2px; }
.hero2-trust strong { color: #fff; }
.hero2-trust em { font-style: normal; opacity: .55; font-size: 12px; }

/* Immagine ancorata in basso a destra, sborda oltre il bordo (ritagliata dal box) */
.hero2-mock { position: absolute; bottom: 0; left: 44%; right: -70px; }
.mock2 { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.35); display: grid; grid-template-columns: 188px 1fr; min-height: 400px; overflow: hidden; }
.mock2-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; }
.mock2-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; padding: 2px 8px 16px; }
.mock2-brand .b { width: 26px; height: 26px; border-radius: 7px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 12px; }
.mock2-nav { display: flex; flex-direction: column; gap: 1px; }
.m2i { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.m2i svg { width: 15px; height: 15px; flex-shrink: 0; }
.m2i.active { background: var(--bg-warm); color: var(--ink); font-weight: 700; }
.mock2-user { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 6px 0; border-top: 1px solid var(--line); font-size: 11.5px; }
.mock2-user strong { display: block; font-size: 12px; }
.mock2-user span { color: var(--muted); }
.mock2-main { padding: 18px 20px; }
.mock2-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mock2-badge { background: #e6f4ee; color: var(--accent); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mock2-month { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mock2-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock2-kpi { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; }
.mock2-kpi .k { font-size: 11px; color: var(--muted); }
.mock2-kpi .v { font-size: 18px; font-weight: 800; margin-top: 2px; }
.mock2-table { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.mock2-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 13px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.mock2-row > span:last-child { text-align: right; min-width: 54px; }
.mock2-th { border-top: none; background: var(--bg-warm); color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mock2-cli { display: flex; align-items: center; gap: 9px; }
.mock2-ava { width: 26px; height: 26px; border-radius: 50%; background: var(--lime-soft); color: var(--ink); display: grid; place-items: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.mock2-tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mock2-tag.ok { background: #e6f4ee; color: var(--accent); }
.mock2-tag.open { background: var(--lime-soft); color: var(--ink); }
.mock2-tag.prep { background: #fff2d9; color: #b7791f; }
.mock2-pop { position: absolute; right: -14px; bottom: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.22); padding: 12px 14px; width: 210px; }
.mock2-pop-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.mock2-pop-ico { width: 24px; height: 24px; border-radius: 7px; background: var(--lime-soft); display: grid; place-items: center; font-size: 13px; }
.mock2-pop-b { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .hero2-box { flex-direction: column; align-items: stretch; padding: 40px 26px; min-height: 0; gap: 30px; }
  .hero2-left { max-width: none; }
  .hero2-sub { max-width: none; }
  .hero2-mock { position: static; transform: none; left: auto; right: auto; }
}

/* Immagine nella hero2 (al posto del mockup) */
.hero2-img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: -12px 22px 55px rgba(0,0,0,.34); }

/* ============================================================
   ANIMAZIONI — reveal allo scroll (tutto il sito)
   ============================================================ */
/* Titoli con reveal parola per parola (GSAP) */
.g-word { display: inline-block; overflow: hidden; vertical-align: top; }
.g-word > span { display: inline-block; will-change: transform; }

/* Nodi della linea a S accesi via scroll (GSAP) */
.fl-dot { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.fl-dot.lit { background: var(--lime-soft); border-color: var(--lime-dark); box-shadow: 0 0 0 6px rgba(223,235,87,.28); transform: translateY(-3px); }

/* ============================================================
   BANNER COOKIE
   ============================================================ */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 940px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 16px; box-shadow: 0 20px 55px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(22px); transition: opacity .3s ease, transform .3s ease; }
.cookie-banner.show { opacity: 1; transform: none; }
.cookie-inner { display: flex; align-items: center; gap: 22px; padding: 18px 22px; flex-wrap: wrap; }
.cookie-txt { flex: 1; min-width: 260px; font-size: 13.5px; line-height: 1.5; color: #cfc9bf; }
.cookie-txt a { color: var(--lime); text-decoration: underline; }
.cookie-acts { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-acts .btn { padding: 10px 18px; font-size: 14px; }
.cookie-acts .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.cookie-acts .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
/* Su fondo scuro il primario nero era invisibile: qui diventa lime */
.cookie-acts .btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cookie-acts .btn-primary:hover { background: var(--lime-dark); border-color: var(--lime-dark); box-shadow: none; }
.prose code { background: var(--bg-warm); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 13px; }

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-acts { flex-direction: column; }
  .cookie-acts .btn { width: 100%; }
}
