/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  --bk: #0a0a0a;
  --bk2: #1a1a1a;
  --g1: #3a3a3a;
  --g2: #636363; /* Contrasto WCAG 4.5:1 su sfondo bianco */
  --g3: #767676; /* Contrasto WCAG 4.5:1 sia su bianco che su nero */
  --g4: #d8d8d8;
  --g5: #f0f0f0;
  --wh: #ffffff;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --accent: #d4af37;

  /* Font Stack di sistema (zero dipendenze esterne di rete) */
  --ff-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--wh);
  color: var(--bk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--bk); color: var(--wh); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.wm {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--bk);
}
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 300; }
p { line-height: 1.78; font-weight: 300; color: var(--g1); font-size: .93rem; }
em { font-style: italic; }

.eye {
  font-family: var(--ff-display);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--g2);
}
.tl { display: block; width: 36px; height: 2px; background: var(--bk); margin: 1.2rem 0; border-radius: 2px; }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.wrap   { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.wrap-w { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--ff-display);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .85rem 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: 1px solid var(--bk);
  outline-offset: 0;
  border-radius: 50px;
  transition: all .35s var(--ease);
  min-height: 44px; /* Touch target minima WCAG */
}
.btn-dk { background: var(--bk); color: var(--wh); }
.btn-dk:hover { background: var(--bk2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* ─── LANG SWITCHER ──────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-family: var(--ff-display);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .1em;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--g3);
  text-decoration: none;
  cursor: pointer;
  transition: color .25s;
  text-transform: uppercase;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-btn:hover { color: var(--bk); }
.lang-btn.active {
  color: var(--bk) !important;
  font-weight: 700;
  pointer-events: none;
}
.lang-sep { color: var(--g4); user-select: none; }

/* ─── NAVIGATION (NAVBAR) ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Superiore a tutti gli elementi di sezione */
  padding: 1.4rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled { padding: .8rem 0; }
.nav-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: all .4s var(--ease);
}
#nav.scrolled .nav-i {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .8rem 2rem;
  border: 1px solid var(--g4);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.nav-logo { text-decoration: none; display: block; flex-shrink: 0; }
.nav-ul { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-ul a {
  font-family: var(--ff-display);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bk);
  text-decoration: none;
  position: relative;
  transition: color .25s;
}
.nav-ul a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bk);
  border-radius: 2px;
  transition: width .35s var(--ease);
}
.nav-ul a:hover::after { width: 100%; }
.nav-r { display: flex; align-items: center; gap: 2rem; }
.nav-cd { font-size: .6rem; padding: .62rem 1.6rem; }

/* Mobile hamburger trigger */
#mt {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
#mt span {
  display: block;
  height: 2px;
  background: var(--bk);
  border-radius: 4px;
  transition: transform .35s, opacity .35s, width .35s;
}
#mt span:nth-child(1) { width: 24px; }
#mt span:nth-child(2) { width: 15px; }
#mt span:nth-child(3) { width: 20px; }
#mt.op span:nth-child(1) { width: 24px; transform: translateY(7px) rotate(45deg); }
#mt.op span:nth-child(2) { opacity: 0; }
#mt.op span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen menu panel */
#mm {
  display: none;
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: var(--wh);
  z-index: 999; /* Immediatamente sotto la barra di navigazione principale */
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8rem 2rem 5rem;
  gap: 2.5rem;
  overflow-y: auto;
  box-sizing: border-box;
}
#mm.op { display: flex; }
#mm a:not(.btn) {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 200;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bk);
  text-decoration: none;
  transition: opacity .25s;
}

/* ─── STICKY CTA ─────────────────────────────────────────────────────────── */
#sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998; /* Sotto la navbar ed il pannello mobile */
  opacity: 0;
  transform: translateY(20px);
  transition: bottom .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
#sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#sticky-cta.cookie-shifted { bottom: 100px; }

/* ─── HERO SECTION ───────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--g4);
  overflow: hidden;
  position: relative;
}
.h-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 3rem 5rem;
  position: relative;
}
.h-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--wh);
}
.h-sub {
  font-size: .93rem;
  font-weight: 300;
  color: var(--g1);
  max-width: 48ch;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

/* Scroll indicator styling */
.scroll-wrapper {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.scroll-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.scroll-lbl {
  font-family: var(--ff-display);
  font-size: .52rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--g2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1;
}
.scroll-bar { width: 2px; height: 80px; background: var(--g4); border-radius: 2px; overflow: hidden; position: relative; }
.scroll-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 40px;
  background: var(--bk);
  border-radius: 2px;
  animation: sdrop 2.3s ease-in-out infinite;
}
@keyframes sdrop {
  0%   { transform: translateY(-40px); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(100px); opacity: 0; }
}

/* Background circles in Hero */
.hcirc     { position: absolute; border-radius: 50%; border: 1.5px solid #e5e5e5; }
.hcirc-dot { position: absolute; border-radius: 50%; background: var(--bk); }
.hcirc-sm  { position: absolute; border-radius: 50%; border: 1.5px solid #d0d0d0; }
@keyframes fa { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* Hero right inner container */
.h-right-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero circle sizes */
.hcirc-lg  { width: clamp(260px,43vw,520px); height: clamp(260px,43vw,520px); animation: fa 11s ease-in-out infinite; border-color: #f0f0f0; }
.hcirc-md  { width: clamp(195px,32vw,390px); height: clamp(195px,32vw,390px); animation: fa 9s ease-in-out infinite .7s; border-color: #e0e0e0; }
.hcirc-sm-ring { width: clamp(135px,22vw,270px); height: clamp(135px,22vw,270px); animation: fa 10s ease-in-out infinite 1.4s; border-color: #d0d0d0; }
.hcirc-sm-dot-ring {
  width: clamp(40px,5.2vw,62px);
  height: clamp(40px,5.2vw,62px);
  top: calc(50% - 95px);
  left: calc(50% + 125px);
  animation: fa 8s ease-in-out infinite .6s;
}
.hcirc-dot-el {
  width: clamp(8px,0.9vw,11px);
  height: clamp(8px,0.9vw,11px);
  top: calc(50% - 102px);
  left: calc(50% + 145px);
  animation: fa 7.5s ease-in-out infinite;
}

/* Hero SVG fluid */
.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── VISION SECTION / #ph ───────────────────────────────────────────────── */
#ph { background: var(--bk); padding: 7rem 0; position: relative; overflow: hidden; }
.ph-i { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start; }
.ph-eye { color: #5a5a5a; margin-bottom: .5rem; }
.ph-p-mt { margin-top: 1rem; }
.ph-col-visual { display: flex; flex-direction: column; gap: 1.5rem; }

/* ph-cb circles — fluid sizing */
.ph-cb {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.ph-cb-lg { width: clamp(300px,42vw,600px); height: clamp(300px,42vw,600px); }
.ph-cb-sm { width: clamp(190px,26vw,380px); height: clamp(190px,26vw,380px); }

/* ph-anim SVG fluid */
.ph-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}
.ph-q {
  font-family: var(--ff-display);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--wh);
  line-height: 1.35;
  margin-bottom: 1.75rem;
  letter-spacing: -.01em;
}
.ph-p { color: var(--g3); font-size: .93rem; line-height: 1.82; font-weight: 300; }

/* SVG Olfactory diffusion architecture */
.ph-anim { position: relative; width: 100%; height: 300px; flex-shrink: 0; overflow: visible; }
@keyframes ph-float-a  { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-16px)} }
@keyframes ph-float-b  { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-10px)} }
@keyframes ph-float-c  { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-22px)} }
@keyframes ph-src-beat { 0%,100%{transform:scale(1);opacity:.88} 50%{transform:scale(1.45);opacity:1} }
@keyframes ph-ring-out { 0%{transform:scale(1);opacity:.28} 100%{transform:scale(3.2);opacity:0} }
@keyframes ph-draw     { from{stroke-dashoffset:280} to{stroke-dashoffset:0} }
.ph-el   { transform-box:fill-box; transform-origin:center; }
.ph-el-a { animation:ph-float-a 12s  ease-in-out infinite; }
.ph-el-b { animation:ph-float-b 9.5s ease-in-out infinite .9s; }
.ph-el-c { animation:ph-float-c 11s  ease-in-out infinite 1.8s; }
.ph-src  { transform-box:fill-box; transform-origin:center; animation:ph-src-beat 3.8s ease-in-out infinite; }
.ph-rng  { transform-box:fill-box; transform-origin:center; fill:none; }
.ph-rng-a{ animation:ph-ring-out 4.2s ease-out infinite .3s; }
.ph-rng-b{ animation:ph-ring-out 4.2s ease-out infinite 2.4s; }
.ph-trail {
  stroke-dasharray:280;
  stroke-dashoffset:280;
  animation:ph-draw 3.8s cubic-bezier(.4,0,.2,1) both 1.2s;
}
.ph-m  { transform-box:fill-box; transform-origin:center; }
.ph-ma { animation:ph-float-a 8s   ease-in-out infinite .4s; }
.ph-mb { animation:ph-float-b 10s  ease-in-out infinite 1s; }
.ph-mc { animation:ph-float-c 7.5s ease-in-out infinite 1.6s; }
.ph-md { animation:ph-float-b 9s   ease-in-out infinite 2.2s; }

/* ─── THREE PILLARS SECTION / #sv ────────────────────────────────────────── */
#sv { padding: 7rem 0; }
.sv-hd { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 5rem; }
.sv-hdr p { font-size: .88rem; color: var(--g2); max-width: 44ch; font-weight: 300; text-align: right; line-height: 1.8; }
.g3c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sc {
  padding: 3.2rem 2.25rem;
  border: 1px solid var(--g4) !important;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  cursor: default;
  background: var(--wh);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bk);
  transform: translateY(100%);
  transition: transform .55s var(--ease);
  z-index: 0;
  border-radius: 24px;
}
.sc:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.sc:hover::before { transform: translateY(0); }
.scc { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.sc:hover .scc * { color: var(--wh) !important; }
.sc:hover .csep { background: rgba(255,255,255,.1) !important; }
.sc:hover .s-num { color: rgba(255,255,255,.1) !important; }
.sc:hover .s-tag { color: rgba(255,255,255,.4) !important; }
.s-num {
  font-family: var(--ff-display);
  font-weight: 200;
  font-size: 3.2rem;
  color: var(--g4);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
  transition: color .4s;
}
.s-tag { margin-bottom: .4rem; }
.sc h3 { font-size: 1.05rem; font-weight: 400; margin-bottom: .35rem; color: var(--bk); letter-spacing: .02em; }
.s-fc {
  font-size: .76rem;
  font-style: italic;
  color: var(--g2);
  font-family: var(--ff-body);
  font-weight: 300;
  margin-bottom: 1.1rem;
  line-height: 1.5;
  transition: color .4s;
}
.csep { height: 1px; background: var(--g4); margin: 1.25rem 0; transition: background .4s; border-radius: 2px; }
.s-in { font-size: .88rem; color: var(--g1); line-height: 1.75; font-weight: 300; }

/* ─── CONTACT SECTION / #co ──────────────────────────────────────────────── */
#co { padding: 7rem 0; background: var(--g5); border-top: 1px solid var(--g4); }
.co-l { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; align-items: start; }
.co-intro { font-size: .93rem; line-height: 1.78; color: var(--g1); font-weight: 300; margin-bottom: .75rem; }
.co-intro-mt { margin-bottom: 0; }
form { display: flex; flex-direction: column; gap: 1.1rem; }
.fg { display: flex; flex-direction: column; gap: .5rem; }
.fg label {
  font-family: var(--ff-display);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bk);
  padding-left: .4rem;
}
.fg input, .fg textarea, .fg select {
  font-family: var(--ff-body);
  font-size: .88rem;
  font-weight: 300;
  padding: .9rem 1.2rem;
  background: var(--wh);
  border: 1px solid var(--g4);
  color: var(--bk);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  width: 100%;
  border-radius: 20px;
  min-height: 44px; /* Touch target */
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--bk);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.03);
}
.fg select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'><path stroke='%230a0a0a' stroke-width='1.2' stroke-linecap='round' d='m1 1 4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 10px 6px;
}
.fg textarea { min-height: 130px; resize: vertical; border-radius: 24px; }
.fg input::placeholder, .fg textarea::placeholder { color: var(--g3); font-size: .82rem; }
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ff { grid-column: 1 / -1; }
.fg-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem .4rem;
  cursor: pointer;
}
.fg-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  cursor: pointer;
  flex-shrink: 0;
  appearance: checkbox;
  -webkit-appearance: checkbox;
  border-radius: 4px;
}
.fg-check label {
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  color: var(--g1);
  padding-left: 0;
  cursor: pointer;
  line-height: 1.5;
}
.f-ft { display: flex; align-items: center; gap: 1.5rem; margin-top: .5rem; }
.f-no { font-size: .71rem; color: var(--g2); font-style: italic; font-weight: 300; line-height: 1.6; }
.form-success-msg { display: none; color: var(--accent); font-size: .88rem; font-weight: 500; margin-top: 1rem; }
.form-error-msg { display: none; color: #cc0000; font-size: .88rem; font-weight: 500; margin-top: 1rem; }

/* Disclaimer ed elementi legali */
.co-disclaimer {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--g4);
  border-radius: 16px;
  background: rgba(0,0,0,.015);
}
.co-disclaimer p { font-size: .78rem; color: var(--g2); line-height: 1.72; font-weight: 300; font-style: italic; }
.co-gdpr { margin-top: .75rem; padding: .75rem 1rem; border-left: 2px solid var(--g4); }
.co-gdpr p { font-size: .72rem; color: var(--g2); line-height: 1.65; font-weight: 300; }

/* ─── AI VISIBILITY SECTION / #ai-report ─────────────────────────────────── */
#ai-report { padding: 7rem 0; background: var(--bk); border-top: 1px solid #1e1e1e; position: relative; overflow: hidden; }
.ai-bg-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(212,175,55,.05); pointer-events: none; }
.ai-bg-lg { width: clamp(350px,48vw,700px); height: clamp(350px,48vw,700px); right: -15%; top: 50%; transform: translateY(-50%); }
.ai-bg-sm { width: clamp(200px,28vw,400px); height: clamp(200px,28vw,400px); right: -5%; top: 30%; transform: translateY(-50%); }
.ai-hd { margin-bottom: 5rem; }
.ai-eye { color: #5a5a5a; margin-bottom: .5rem; }
.tl-accent { background: var(--accent); opacity: .5; }
.ai-h2 { color: var(--wh); }
.ai-p-mt { margin-top: 1.25rem; }
.ai-nl-strong { color: var(--g3); }
.ai-nl-date-note {
  font-size: .78rem;
  color: #4a4a4a;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Tabella trend LLM */
.ai-table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ai-table-eyebrow {
  margin-bottom: 1rem;
  color: #5a5a5a;
}
.ai-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 300;
  color: var(--g3);
  min-width: 520px;
}
.ai-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ai-table th {
  font-family: var(--ff-display);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .75rem 1rem .75rem 0;
  text-align: left;
  white-space: nowrap;
}
.ai-table td {
  padding: .85rem 1rem .85rem 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.04);
  line-height: 1.65;
}
.ai-table td:first-child {
  font-weight: 400;
  color: var(--g4);
  white-space: nowrap;
  padding-right: 1.5rem;
}
.ai-table tbody tr:last-child td { border-bottom: none; }
.ai-i { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: start; }
.ai-lead {
  font-family: var(--ff-display);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--wh);
  line-height: 1.35;
  margin-bottom: 1.75rem;
  letter-spacing: -.01em;
}
.ai-p { color: var(--g3); font-size: .93rem; line-height: 1.82; font-weight: 300; }
.ai-tag-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.ai-tag {
  font-family: var(--ff-display);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 50px;
  color: var(--accent);
}
.ai-engines { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; align-items: center; }
.ai-eng-lbl {
  font-family: var(--ff-display);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin-right: .3rem;
}
.ai-eng {
  font-family: var(--ff-display);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .08em;
  padding: .35rem .9rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50px;
  color: var(--g3);
}

/* Push notification card */
.ai-nl { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: 2.75rem; }
.ai-nl-eyebrow {
  font-family: var(--ff-display);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.ai-nl-title { font-family: var(--ff-display); font-weight: 200; font-size: 1.3rem; color: var(--wh); line-height: 1.3; margin-bottom: .6rem; }
.ai-nl-sub { font-size: .88rem; color: var(--g3); font-weight: 300; line-height: 1.7; }
/* #push-btn styles removed — button not present in updated markup */

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--g4); padding: 2.75rem 0; background: var(--wh); }
.fo-i { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.fo-l { display: flex; flex-direction: column; gap: .3rem; }
.fo-tl { font-size: .7rem; color: var(--g2); font-weight: 300; letter-spacing: .06em; }
.fo-wm { font-size: .82rem; }
.fo-cp {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--g4);
  text-align: center;
  font-size: .65rem;
  color: var(--g3);
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ─── FAQ SECTION / #faq ──────────────────────────────────────────────────── */
#faq { padding: 7rem 0; background: var(--wh); border-top: 1px solid var(--g4); }
.faq-hd { margin-bottom: 3.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--g4);
}
.faq-item:first-child { border-top: 1px solid var(--g4); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: clamp(.88rem, 1.5vw, 1rem);
  font-weight: 300;
  color: var(--bk);
  letter-spacing: .01em;
  transition: color .25s;
  min-height: 44px;
}
.faq-q:hover { color: var(--g2); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 200;
  color: var(--g3);
  transition: transform .3s var(--ease), color .25s;
  line-height: 1;
  width: 24px;
  text-align: center;
}
.faq-item.open .faq-icon { color: var(--bk); transform: rotate(45deg); }
.faq-a {
  padding-bottom: 1.5rem;
  max-width: 72ch;
}
.faq-a p {
  font-size: .9rem;
  color: var(--g2);
  line-height: 1.8;
  font-weight: 300;
}

/* ─── COOKIE BANNER ───────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bk);
  color: var(--wh);
  padding: 1.5rem 2rem;
  z-index: 10000; /* Livello più elevato di priorità visiva */
  display: none;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  animation: slideUp .4s var(--ease);
}
#cookie-banner.show { display: flex; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
#cookie-banner p { font-size: .85rem; color: var(--g3); line-height: 1.6; margin: 0; max-width: 600px; }
.cookie-buttons { display: flex; gap: 1rem; flex-shrink: 0; align-items: center; }
.cookie-btn {
  font-family: var(--ff-display);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  min-height: 44px; /* Touch target minima WCAG */
  min-width: 44px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-accept { background: var(--accent); color: var(--bk); }
.cookie-accept:hover { background: #e5c158; transform: translateY(-2px); }

/* ─── REVEAL & INTERSECTION OBSERVER ANIMATIONS ──────────────────────────── */
.rv, .rv-l { opacity: 0; transition: opacity .75s var(--ease), transform .75s var(--ease); }
.rv { transform: translateY(22px); }
.rv-l { transform: translateX(-22px); }
.rv.in, .rv-l.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.ha  { opacity: 0; transform: translateY(26px); animation: hai .9s var(--ease) forwards; }
.ha2 { animation-delay: .15s; }
.ha3 { animation-delay: .28s; }
.ha4 { animation-delay: .42s; }
.ha5 { animation-delay: .58s; }
@keyframes hai { to { opacity: 1; transform: none; } }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STYLING)
   ========================================================================== */
@media(max-width:1024px) {
  /* NAVBAR MOBILE/TABLET UNIFICATA — Previene rotture di layout tra 768px e 1024px */
  #nav {
    padding: 1rem 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--g4) !important;
  }
  #nav.scrolled {
    padding: 0.8rem 0 !important;
  }
  
  /* Disattivazione degli attributi pillola scrolled per tablet/mobile */
  #nav.scrolled .nav-i {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  
  /* Spaziatura protetta per viewports compatti (es. iPhone 11 Pro - 375px) */
  #nav .wrap {
    padding: 0 1rem !important;
    max-width: 100%;
  }
  
  .nav-i {
    width: 100%;
    gap: 0.5rem !important; /* Spazio ridotto per accogliere gli elementi sulla stessa riga */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Logo compresso per preservare l'allineamento orizzontale */
  .nav-logo .wm {
    font-size: 0.82rem !important;
    letter-spacing: .22em !important;
  }
  
  .nav-ul, .nav-cd { display: none !important; }
  
  .nav-r {
    margin-left: auto !important;
    margin-right: 0.2rem !important;
    gap: 0.5rem !important;
  }
  
  /* Selettori lingua compatti */
  .lang-switcher {
    gap: 0.1rem !important;
  }
  .lang-btn {
    min-width: 32px !important;
    padding: 0 0.2rem !important;
    min-height: 44px !important; /* Preserva l'altezza del touch target */
  }
  
  #mt {
    display: flex !important;
    flex-shrink: 0 !important; /* Impedisce all'hamburger di rimpicciolirsi o uscire dallo schermo */
  }
  
  /* Disattivazione scorrimento orizzontale su iOS */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* STRUTTURA DELLE SEZIONI INCOLONNATA DA 1024PX IN GIÙ */
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .h-right { display: none; }
  .h-left { padding: 8rem 1.5rem 3rem; }
  .scroll-wrapper { position: relative; bottom: auto; left: auto; transform: none; display: flex; justify-content: center; padding: 2.5rem 0 3.5rem; }
  
  .ai-i { grid-template-columns: 1fr; gap: 4rem; }
  .g3c { grid-template-columns: 1fr; gap: 2rem; }
  .co-l { grid-template-columns: 1fr; gap: 4rem; }
  .ph-cb { display: none; }
  .sv-hd { grid-template-columns: 1fr; }
  .sv-hdr p { text-align: left; }
  .faq-list { gap: 0; }
  
  #sticky-cta { bottom: 20px; right: 20px; z-index: 998; }
  #sticky-cta.cookie-shifted { bottom: 185px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; z-index: 10000; }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; }
  .ai-nl { padding: 2rem 1.5rem; }

  /* FAQ mobile */
  .faq-q { font-size: .9rem; padding: 1.25rem 0; }
  .faq-hd { margin-bottom: 2.5rem; }

  /* AI table responsive */
  .ai-table-wrap { margin-top: 2rem; }
  .ai-table th, .ai-table td { font-size: .75rem; padding-right: .75rem; }

  /* sticky-cta — hidden when keyboard is likely up (handled via JS resize guard) */
}

@media(max-width:480px) {
  .wrap, .wrap-w { padding: 0 1.25rem; }
  .sc { padding: 2.5rem 1.75rem; }
}