/* ============================================================
   GP Consulting | Operations Lab — styles.css
   Presentazione interattiva a sezioni orizzontali
   ============================================================ */

:root {
  --blu: #006FE6;
  --ciano: #00CFEA;
  --notte: #0B1B33;
  --grigio: #F5F8FC;
  --bianco: #FFFFFF;
  --accento: #00BFA6;

  --text: #0B1B33;
  --muted: #56698a;
  --line: #e5edf7;

  --grad: linear-gradient(135deg, #006FE6 0%, #00CFEA 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,111,230,.10), rgba(0,207,234,.10));

  --shadow-sm: 0 2px 10px rgba(11, 27, 51, .06);
  --shadow-md: 0 12px 32px rgba(11, 27, 51, .10);
  --shadow-lg: 0 24px 60px rgba(0, 111, 230, .18);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  font-synthesis: none;
}

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

html { scroll-behavior: smooth; overflow: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--grigio); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Desktop deck: no page scroll */
body.deck-on { overflow: hidden; height: 100vh; }

h1, h2, h3, .brand { font-family: 'Manrope', system-ui, sans-serif; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* icone lineari inline (sostituiscono le emoji decorative) */
.icon { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .96rem;
  padding: 13px 25px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(0,111,230,.30); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,111,230,.42); }
.btn-ghost { background: #fff; color: var(--notte); border-color: rgba(11,27,51,.14); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--blu); color: var(--blu); }
.btn-sm { padding: 9px 17px; font-size: .86rem; }
.btn-block { width: 100%; }

/* ============================================================
   HEADER (compatto)
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }
.brand-suffix {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1;
  letter-spacing: -.2px; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--notte); position: relative; transition: color .2s; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0; background: var(--grad); transition: width .3s var(--ease); }
.main-nav a:not(.nav-cta):hover { color: var(--blu); }
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active:not(.nav-cta)::after { width: 100%; }
.main-nav a.active:not(.nav-cta) { color: var(--blu); }
.nav-cta { color: #fff !important; }

/* tendina "Home" (Panoramica / Per chi è / Perché nasce) */
.nav-item { position: relative; }
.nav-caret { display: inline-block; font-size: .7rem; margin-left: 2px; transition: transform .25s var(--ease); }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; transform: translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 8px; min-width: 230px; display: flex; flex-direction: column; gap: 2px; margin-top: 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 50;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.dd-open .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown a { padding: 10px 13px; border-radius: 9px; font-size: .9rem; white-space: nowrap; transition: background .2s, color .2s; }
.nav-dropdown a:not(.nav-cta)::after { display: none; }
.nav-dropdown a:hover { background: var(--grigio); color: var(--blu); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 25px; height: 2.5px; background: var(--notte); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   DECK (sezioni orizzontali)
   ============================================================ */
.deck { position: relative; margin-top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; }
.deck-track { display: flex; height: 100%; width: 600vw; transition: transform .7s var(--ease); will-change: transform; }
.slide {
  position: relative;
  flex: 0 0 100vw; width: 100vw; height: 100%; overflow-y: auto; overflow-x: hidden;
  display: flex; align-items: center; scrollbar-width: thin;
}
.slide-inner { width: 100%; max-width: var(--maxw); margin: auto; padding: clamp(8px, 1.4vh, 32px) 40px; }

/* entrata contenuti quando la slide è attiva */
.slide-inner > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.slide.is-active .slide-inner > * { opacity: 1; transform: none; }
.slide.is-active .slide-inner > *:nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-inner > *:nth-child(3) { transition-delay: .16s; }

/* heading comune — scala anche con l'altezza dello schermo, non solo la larghezza,
   così su monitor desktop più alti il contenuto non resta "piccolo" al centro */
.slide-head { margin-bottom: clamp(8px, 1vw + 2vh, 40px); max-width: 820px; }
.kicker { display: inline-block; font-family:'Manrope',sans-serif; font-weight: 700; font-size: .74rem; letter-spacing: 1px; text-transform: uppercase; color: var(--blu); margin-bottom: 6px; }
.slide-head h2 { font-size: clamp(1.3rem, 1.1rem + .9vw + 1.6vh, 2.6rem); font-weight: 800; letter-spacing: -.5px; }
.lead { color: var(--muted); font-size: clamp(.92rem, .82rem + .3vw + .55vh, 1.3rem); }

/* ---------- Deck controls ---------- */
.deck-dots { position: absolute; bottom: 18px; right: 24px; z-index: 40; display: flex; gap: 11px; }
.deck-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(11,27,51,.18); transition: .3s var(--ease);
}
.deck-dots button:hover { background: rgba(0,111,230,.5); }
.deck-dots button.active { width: 30px; border-radius: 6px; background: var(--grad); }

/* ============================================================
   HOME (scroll verticale: hero + Per chi è + Perché nasce)
   ============================================================ */
/* slide con più blocchi impilati e scroll verticale interno (Home, Applicazioni) */
.slide-scroll { display: block; }
.slide-scroll .slide-inner { display: block; max-width: none; padding: 0; }
.slide-scroll .slide-inner > * { max-width: var(--maxw); margin-inline: auto; padding-inline: 40px; }
.scroll-block { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(10px, 7vh, 100px); }

.home-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center; min-height: calc(100vh - var(--header-h)); padding-block: 10px; }

/* micro-indicatore di scroll verticale interno: discreto, si attenua non appena si scorre */
.scroll-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Manrope', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  opacity: .65; pointer-events: none; white-space: nowrap;
  transition: opacity .4s var(--ease);
  animation: hintBob 2.4s ease-in-out infinite;
}
.scroll-hint.is-hidden { opacity: 0; }
.scroll-hint .icon { width: 13px; height: 13px; }
@keyframes hintBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(4px); } }
.eyebrow { display: inline-block; font-family:'Manrope',sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .4px; color: var(--blu); background: #fff; padding: 5px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.home-copy h1 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -1px; }
.home-copy .lead { margin: 10px 0 8px; max-width: 520px; }
.hero-credibility { color: var(--notte); font-size: .86rem; line-height: 1.5; margin: 2px 0 10px; max-width: 500px; padding-left: 12px; border-left: 3px solid var(--blu); }
.micro { color: var(--notte); font-size: .92rem; max-width: 500px; }
.micro strong { color: var(--blu); }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 14px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.trust li { font-size: .88rem; color: var(--muted); font-weight: 600; position: relative; padding-left: 20px; }
.trust li::before { content: "✓"; position: absolute; left: 0; color: var(--accento); font-weight: 800; }

/* home visual 3D — comparsa in sequenza: grafico, poi notifiche stile sms/email */
.home-visual { position: relative; perspective: 1400px; }
.tilt {
  --ry: -11deg; --rx: 5deg;
  transform: translateY(22px) scale(.95) rotateY(var(--ry)) rotateX(var(--rx));
  transform-style: preserve-3d; border-radius: 22px; box-shadow: var(--shadow-lg);
  opacity: 0;
}
.tilt-img { border-radius: 22px; display: block; width: 100%; }
.slide.is-active .tilt {
  animation: tiltIn .7s var(--ease) .15s forwards, floaty 7s ease-in-out .85s infinite;
}
@keyframes tiltIn {
  from { opacity: 0; transform: translateY(22px) scale(.95) rotateY(var(--ry)) rotateX(var(--rx)); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotateY(var(--ry)) rotateX(var(--rx)); }
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotateY(var(--ry)) rotateX(var(--rx)); } 50% { transform: translateY(-12px) rotateY(var(--ry)) rotateX(var(--rx)); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff;
  padding: 11px 14px; border-radius: 13px; box-shadow: var(--shadow-md); border: 1px solid var(--line);
  z-index: 3; max-width: 220px; opacity: 0;
}
.float-card b { font-family:'Manrope',sans-serif; font-size: .84rem; display: block; }
.float-card small { color: var(--muted); font-size: .74rem; }
.float-card.fc-wide { max-width: 320px; align-items: flex-start; }
.float-card.fc-wide p { color: var(--muted); font-size: .78rem; line-height: 1.45; margin-top: 4px; }
.fc-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .95rem; flex-shrink: 0; }
.fc-icon.warn { background: rgba(240,165,0,.16); color: #c98a00; }
.fc-icon.ok { background: rgba(0,191,166,.16); color: var(--accento); }
.fc-icon.info { background: var(--grad-soft); color: var(--blu); }

/* stile "notifica in arrivo": cade dall'alto o sale dal basso, con un piccolo rimbalzo */
.fc-1 { top: -20px; left: -26px; }
.fc-2 { bottom: -18px; right: -18px; }
.slide.is-active .fc-1 {
  animation: toastDrop .55s cubic-bezier(.3,1.5,.6,1) 1.05s forwards, floaty2 6s ease-in-out 1.6s infinite;
}
.slide.is-active .fc-2 {
  animation: toastRise .55s cubic-bezier(.3,1.5,.6,1) 1.75s forwards, floaty2 6s ease-in-out 2.3s infinite;
}
@keyframes toastDrop { from { opacity: 0; transform: translateY(-22px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastRise { from { opacity: 0; transform: translateY(22px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   SERVIZI
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1vw + 1.6vh, 34px); }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; text-align: left; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sc-media { position: relative; height: 100px; overflow: hidden; background: var(--grigio); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .sc-media img { transform: scale(1.08); }
.sc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,111,230,.0), rgba(0,207,234,.0)); transition: background .35s; }
.service-card:hover .sc-media::after { background: linear-gradient(135deg, rgba(0,111,230,.28), rgba(0,207,234,.28)); }
.sc-icon { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--blu); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); z-index: 2; }
.sc-body { padding: clamp(12px, .6vw + 1vh, 28px) clamp(15px, .8vw + 1.2vh, 30px) clamp(13px, .7vw + 1vh, 26px); display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1rem; margin-bottom: 3px; }
.sc-quote { font-style: italic; color: var(--muted); font-size: .82rem; flex: 1; }
.sc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family:'Manrope',sans-serif; font-weight: 700; font-size: .82rem; color: var(--blu); background: none; border: 0; padding: 0; cursor: pointer; transition: gap .25s; }
.service-card:hover .sc-link { gap: 12px; }
.method-step:hover .sc-link, .benefit:hover .sc-link { gap: 12px; }

/* ============================================================
   ESEMPI
   ============================================================ */
.ex-layout { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: start; }
.ex-tabs { display: flex; flex-direction: column; gap: 6px; }
.tab-btn {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer;
  font-family:'Manrope',sans-serif; font-weight: 700; font-size: .82rem; color: var(--notte);
  display: flex; align-items: center; gap: 9px; transition: .28s var(--ease);
}
.tab-btn .tb-num { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; background: var(--grigio); color: var(--blu); font-size: .74rem; transition: .28s; }
.tab-btn:hover { border-color: var(--blu); transform: translateX(4px); }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }
.tab-btn.active .tb-num { background: rgba(255,255,255,.24); color: #fff; }

.ex-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.ex-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; animation: fadeUp .5s var(--ease) both; }
.ex-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); height: clamp(200px, 30vh, 440px); background: var(--grigio); display: flex; align-items: center; }
.ex-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ex-text h3 { font-size: 1.08rem; margin-bottom: 2px; }
.ex-quote { font-style: italic; color: var(--blu); font-weight: 600; margin-bottom: 8px; font-size: .88rem; }
.ex-block { margin-bottom: 6px; }
.ex-block h4 { font-family:'Manrope',sans-serif; font-size: .66rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.ex-block h4::before { content: ""; width: 11px; height: 3px; border-radius: 2px; background: var(--grad); }
.ex-block p { font-size: .82rem; line-height: 1.4; }
.ex-benefits { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-benefits li { background: var(--grad-soft); color: var(--notte); font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   METODO
   ============================================================ */
.method-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1vw + 1.6vh, 30px); }
.method-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 1vw + 1.8vh, 36px); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.method-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.m-num { font-family:'Manrope',sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--blu); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-soft); border: 2px solid rgba(0,111,230,.2); margin-bottom: 8px; }
.method-step h3 { font-size: 1.04rem; margin-bottom: 3px; }
.method-step p { color: var(--muted); font-size: .84rem; }
.method-quote { text-align: center; font-style: italic; font-size: clamp(.9rem, 1.3vw, 1.05rem); color: var(--notte); margin-top: clamp(10px,1.6vh,16px); max-width: 760px; margin-inline: auto; }

/* ============================================================
   BENEFICI
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1vw + 1.6vh, 30px); }
.benefit { display: flex; align-items: flex-start; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, .8vw + 1.3vh, 32px) clamp(16px, 1vw + 1.6vh, 34px); transition: .3s var(--ease); }
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.b-ico { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; color: var(--blu); background: var(--grad-soft); border-radius: 12px; transition: .3s; }
.benefit:hover .b-ico { transform: scale(1.08); }
.benefit h3 { font-size: .96rem; }
.benefit p { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 2vw + 2vh, 50px); align-items: center; }
.contact-copy h2 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.contact-copy .lead { margin: 8px 0; }
.contact-list { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.contact-list li { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .9rem; }
.contact-list a:hover { color: var(--blu); }
.ci { display: inline-flex; color: var(--blu); }
.pay { margin-top: 10px; font-weight: 700; color: var(--blu); font-style: italic; font-size: .92rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 1.2vw + 1.6vh, 34px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-family:'Manrope',sans-serif; font-weight: 600; font-size: .82rem; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: .92rem; color: var(--text); padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--grigio); transition: border-color .25s, box-shadow .25s, background .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blu); background: #fff; box-shadow: 0 0 0 4px rgba(0,111,230,.12); }
.field textarea { resize: vertical; }
.field-checkbox { margin-top: 4px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--blu); cursor: pointer; }
.checkbox-label a, .checkbox-label .link-btn { color: var(--blu); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.form-status { margin-top: 8px; font-weight: 600; font-size: .88rem; min-height: 18px; }
.form-status.ok { color: var(--accento); }
.form-status.err { color: #e23d3d; }
.deck-footer { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--muted); padding: 6px 12px 10px; background: linear-gradient(to top, rgba(245,248,252,.95), rgba(245,248,252,0)); }
.deck-footer a, .deck-footer .link-btn { text-decoration: underline; }
.deck-footer a:hover, .deck-footer .link-btn:hover { color: var(--blu); }
.privacy-body { text-align: left; }
.privacy-body h3 { font-size: 1rem; font-weight: 700; margin: 22px 0 6px; color: var(--notte); }
.privacy-body p { color: var(--text); margin-bottom: 10px; }
.privacy-body ul { margin: 0 0 10px 20px; }
.privacy-body li { margin-bottom: 4px; color: var(--text); }
.privacy-body a { color: var(--blu); text-decoration: underline; }

/* ============================================================
   MODALE SERVIZIO
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(11,27,51,.6); backdrop-filter: blur(4px); animation: fadeIn .3s; }
.modal-dialog { position: relative; max-width: 900px; margin: 5vh auto; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modalIn .4s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.modal-back { border: 0; background: var(--grad-soft); color: var(--blu); font-family:'Manrope',sans-serif; font-weight: 700; font-size: .9rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: .25s; }
.modal-back:hover { background: var(--grad); color: #fff; transform: translateX(-3px); }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(11,27,51,.06); color: var(--notte); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: .25s; }
.modal-close:hover { background: var(--blu); color: #fff; transform: rotate(90deg); }
.modal-content { padding: 0 0 34px; }

/* variante compatta: popup di approfondimento (Metodo / Benefici) */
.modal-dialog-sm { max-width: 540px; }
.modal-topbar-simple { justify-content: flex-end; background: transparent; border-bottom: 0; }
.info-title { font-size: 1.2rem; margin-bottom: 10px; }
.m-hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; background: var(--grad); color: #fff; padding: 30px 34px; }
.m-hero-txt .sc-icon { position: static; width: 44px; height: 44px; background: rgba(255,255,255,.2); color: #fff; margin-bottom: 12px; box-shadow: none; }
.m-hero h2 { font-size: 1.5rem; margin-bottom: 8px; }
.m-hero .m-quote { font-style: italic; font-weight: 600; color: rgba(255,255,255,.94); }
.m-hero-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.m-hero-img img { width: 100%; display: block; }
.m-body { padding: 26px 34px 0; }
.m-section { margin-bottom: 20px; }
.m-section h3 { font-family:'Manrope',sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blu); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.m-section h3::before { content: ""; width: 15px; height: 3px; border-radius: 2px; background: var(--grad); }
.m-section p { color: var(--text); }
.m-section ul { list-style: none; display: grid; gap: 8px; }
.m-section ul li { position: relative; padding-left: 24px; }
.m-section ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accento); font-weight: 800; }
.m-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }

/* ============================================================
   PROGETTI SVILUPPATI (dettaglio: stesso layout a due colonne delle Criticità operative, con screenshot reale)
   ============================================================ */
.case-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.case-head h3 { font-size: 1.08rem; }
.case-icon { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; color: var(--blu); background: var(--grad-soft); border-radius: 10px; }
.case-note { margin-left: auto; font-family:'Manrope',sans-serif; font-weight: 700; font-size: .72rem; color: var(--accento); background: rgba(0,191,166,.1); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }

/* ============================================================
   PERCHÉ NASCE OPERATIONS LAB
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 2vw + 3vh, 64px); align-items: center; }
.why-copy .b-ico { margin-bottom: 8px; }
.why-copy .lead { margin: 8px 0 6px; }
.why-points { list-style: none; display: grid; gap: clamp(10px, .5vw + 1.4vh, 22px); }
.why-points li { position: relative; padding-left: 26px; font-family:'Manrope',sans-serif; font-weight: 700; color: var(--notte); font-size: clamp(.92rem, .86rem + .3vh, 1.12rem); }
.why-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accento); font-weight: 800; font-size: 1.05rem; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .home-grid { gap: 32px; }
  .ex-inner { grid-template-columns: 1fr; }
  .ex-img { max-height: 200px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (torna a scroll verticale)
   ============================================================ */
@media (max-width: 860px) {
  body.deck-on { overflow: auto; height: auto; }
  html { overflow: visible; scroll-padding-top: calc(var(--header-h) + 8px); }

  .deck { margin-top: var(--header-h); height: auto; overflow: visible; }
  .deck-track { display: block; width: auto !important; height: auto; transform: none !important; transition: none; }
  .slide { width: auto; height: auto; min-height: auto; overflow: visible; display: block; scroll-margin-top: var(--header-h); border-bottom: 1px solid var(--line); }
  .slide-inner { padding: 44px 22px; }
  .slide-inner > * { opacity: 1 !important; transform: none !important; }

  .deck-dots { display: none; }
  .deck-footer { position: static; margin-top: 20px; }
  .scroll-hint { display: none; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 22px 22px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 90;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 4px; font-size: 1.05rem; }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }

  .nav-caret { display: none; }
  .nav-dropdown {
    position: static; opacity: 1; pointer-events: auto; transform: none; margin: 0 0 4px 12px;
    box-shadow: none; border: 0; padding: 0; min-width: 0;
  }
  .nav-dropdown a { padding: 9px 4px; font-size: .96rem; color: var(--muted); }

  .home-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-visual { margin-top: 20px; }
  .tilt { --ry: 0deg; --rx: 0deg; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .ex-layout { grid-template-columns: 1fr; }
  .ex-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tab-btn { flex: 0 0 auto; }
  .method-line { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .m-hero { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .brand img { height: 38px; }
  .brand-suffix { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .method-line { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .m-hero, .m-body { padding-inline: 22px; }
  .float-card { max-width: 190px; }
}

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001s !important; }
  .slide-inner > * { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
