/* ═══════════════════════════════════════════════════════════
   Open Tale© — Landing Page CSS
   Palette: #1A3566 navy · #E8821A orange (decorativo) ·
            #F5F2EE cream · #ECEAF5 lavender · #FFFFFF white
   Font: Atkinson Hyperlegible (progettato per accessibilità visiva)
   WCAG 2.1 AA — contrasto ≥4.5:1 su tutto il testo
═══════════════════════════════════════════════════════════ */

/* ── 0. VARIABILI ── */
:root {
  --primary:      #1A3566;
  --primary-mid:  #2A4D8A;
  --primary-light:#3A6BC0;
  --accent:       #E8821A;   /* solo decorativo — non usare per testo */
  --bg:           #FFFFFF;
  --bg-soft:      #F5F2EE;
  --bg-lavender:  #ECEAF5;
  --txt:          #1A1A1A;
  --txt-mid:      #444444;
  --txt-light:    #666666;
  --border:       rgba(26,53,102,.12);
  --shadow:       0 4px 24px rgba(26,53,102,.10);
  --shadow-lg:    0 12px 48px rgba(26,53,102,.16);
  --radius:       12px;
  --radius-lg:    20px;
  --ff:           'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --nav-h:        68px;
  --max-w:        1200px;
  --ease:         cubic-bezier(.22,.68,0,1.2);
}

/* ── 1. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--ff);
  font-size: 1.0625rem;   /* 17px — leggibilità accessibile */
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
svg { overflow: visible; }

/* Testo selezionabile */
::selection { background: rgba(26,53,102,.18); }

/* ── 2. FOCUS VISIBLE — accessibilità tastiera ── */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ── 3. SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ── 4. NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; }

.nav-product {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--primary);
  flex-shrink: 0;
}

.accent-txt { color: var(--primary); }  /* navy — contrasto ok */
/* nota: #E8821A su bianco = 2.75:1, insufficiente per testo.
         L'accento arancio viene usato SOLO come decorazione border/bg. */

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.nav-link {
  font-size: .875rem;
  font-weight: 700;
  color: var(--txt);
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-soft); text-decoration: none; }

.nav-cta {
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-lavender);
  padding: .45rem 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--bg-soft); border-color: var(--primary); text-decoration: none; }

.lang-toggle {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--txt-mid);
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  transition: background .15s;
}
.lang-toggle:hover { background: var(--bg-soft); text-decoration: none; }

/* Hamburger button */
.nav-mobile { display: none; margin-left: auto; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: border-color .15s;
}
.nav-hamburger:hover { border-color: var(--border); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 800;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  box-shadow: var(--shadow-lg);
}
.mobile-menu[hidden] { display: none; }

.mobile-menu-link {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--txt);
  padding: .75rem .5rem;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-menu-link:last-of-type { border-bottom: none; }
.mobile-menu-link:hover { color: var(--primary); text-decoration: none; }

.mobile-menu-cta {
  display: inline-block;
  margin-top: .75rem;
  padding: .85rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-align: center;
  transition: background .15s;
}
.mobile-menu-cta:hover { background: var(--primary-mid); text-decoration: none; }

/* ── 6. UTILITY BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.75rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--ff);
  font-size: .9375rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-mid); text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.75rem;
  background: transparent;
  color: var(--primary);
  font-family: var(--ff);
  font-size: .9375rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--bg-lavender); text-decoration: none; transform: translateY(-1px); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ── 7. SEZIONE UTILITÀ ── */
.sec-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: .6rem;
  margin-bottom: .75rem;
}

.sec-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: .75rem;
}
/* L'accento è usato come color sul testo titolo = navy, va bene.
   Le parole highlighted nel titolo usano border-bottom arancio anziché colore. */
.sec-title .accent-txt {
  color: var(--primary);
  border-bottom: 3px solid var(--accent);
  padding-bottom: .05em;
}

.sec-intro {
  font-size: 1.0625rem;
  color: var(--txt-mid);
  max-width: 60ch;
  line-height: 1.65;
}

.sec-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.sec-header .sec-label { display: inline-block; }
.sec-header .sec-intro { margin: 0 auto; }

/* ── 8. REVEAL (IntersectionObserver) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 9. HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-left: clamp(1.5rem, 6vw, 5rem);
  padding-right: clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-lavender) 50%, var(--bg) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: .6;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary);
  margin-bottom: .25rem;
}
.hero-title .accent-txt {
  color: var(--primary);
  border-bottom: 4px solid var(--accent);
  padding-bottom: .05em;
}
.hero-copy { font-size: clamp(1.5rem, 3vw, 2.5rem); }

.hero-copyright {
  font-size: .75rem;
  color: var(--txt-light);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--txt-mid);
  line-height: 1.5;
  margin-bottom: 2rem;
  min-height: 3em;
}

.hero-typing-wrap {
  display: inline;
  white-space: nowrap;
}
.hero-typing {
  font-weight: 700;
  color: var(--primary);
}
.hero-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
  font-weight: 400;
  line-height: 1;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero visual — 3 telefoni sovrapposti */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: min(600px, 70vh);
}

.hero-phone {
  position: absolute;
  bottom: 0;
  width: clamp(120px, 18vw, 200px);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease);
}

.hp1 { left: 50%; transform: translateX(-140%) rotate(-8deg); z-index: 1; }
.hp2 { left: 50%; transform: translateX(-50%); z-index: 3; border-radius: 32px; }
.hp3 { left: 50%; transform: translateX(40%) rotate(8deg); z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual:hover .hp1 { transform: translateX(-150%) rotate(-10deg) translateY(-8px); }
  .hero-visual:hover .hp3 { transform: translateX(50%) rotate(10deg) translateY(-8px); }
  .hero-visual:hover .hp2 { transform: translateX(-50%) translateY(-12px); }
}

/* ── 10. STEPS SECTION ── */
.steps-section {
  padding: 5rem clamp(1.5rem, 5vw, 4rem) 5rem;
  background: var(--bg-soft);
}

.steps-header {
  max-width: var(--max-w);
  margin: 0 auto 3.5rem;
}

.steps-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Sticky phone column */
.steps-phone-col {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  height: calc(100vh - var(--nav-h) - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-phone-wrap {
  position: relative;
  width: 240px;
  height: 500px;
  background: var(--primary);
  border-radius: 36px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(26,53,102,.1);
  overflow: hidden;
}

/* Tutte le schermate di step */
.step-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  opacity: 0;
  transition: opacity .4s ease;
  background: var(--bg);
}
.step-screen.active { opacity: 1; z-index: 2; }

/* ── Placeholder screens CSS ── */
.ph-screen {
  display: flex;
  flex-direction: column;
  font-size: .7rem;
  color: var(--txt);
  background: var(--bg);
  padding: 0;
}

.ph-topbar {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 10px 14px 6px;
  background: var(--primary);
}
.ph-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}

/* ph-0: setup ente */
.ph-0 .ph-brand {
  padding: 1.25rem 1rem .75rem;
  text-align: center;
}
.ph-brand-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
}
.ph-brand-sub {
  font-size: .6rem;
  color: var(--txt-light);
  margin-top: 2px;
}
.ph-brand-img-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--bg-lavender);
  margin: 0 .75rem;
  border-radius: 10px;
  font-size: .65rem;
  color: var(--txt-mid);
  text-align: center;
  padding: .5rem;
}
.ph-brand-img-placeholder span { font-size: 1.5rem; }

/* ph-1: selezione modalità */
.ph1-question {
  padding: .75rem 1rem .5rem;
  font-size: .65rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}
.ph1-modes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 .75rem;
  flex: 1;
}
.ph1-mode {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .6rem;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: .6rem;
  font-weight: 700;
  color: var(--txt-mid);
  border: 1.5px solid transparent;
}
.ph1-mode-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ph1-icon { font-size: .75rem; }

/* ph-5: raccolta */
.ph5-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem .25rem;
  border-bottom: 1px solid var(--border);
}
.ph5-title { font-size: .75rem; font-weight: 700; color: var(--primary); }
.ph5-back, .ph5-info { font-size: .9rem; color: var(--txt-mid); cursor: pointer; }
.ph5-list { display: flex; flex-direction: column; gap: 0; flex: 1; overflow: hidden; }
.ph5-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
  font-size: .6rem;
}
.ph5-num {
  width: 18px; height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ph5-info-col { flex: 1; }
.ph5-info-col strong { display: block; font-size: .6rem; color: var(--txt); }
.ph5-info-col small { color: var(--txt-light); }
.ph5-play {
  font-size: .8rem;
  color: var(--primary);
  cursor: pointer;
}

/* Shared bottom tab bar */
.ph-bar-mock, .ph5-bar {
  display: flex;
  gap: 2px;
  padding: .4rem .5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.ph-bar-mock span, .ph5-bar span {
  flex: 1;
  text-align: center;
  font-size: .5rem;
  color: var(--txt-light);
  padding: .25rem 0;
  border-radius: 5px;
}
.ph-bar-active {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
}

/* ── Steps list ── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1rem 0 4rem;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 1.25rem;
  transition: opacity .3s;
}

.step-num {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(26,53,102,.15);
  line-height: 1;
  padding-top: .15rem;
  user-select: none;
}

.step-body { display: flex; flex-direction: column; gap: .5rem; }

.step-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-lavender);
  border: 1.5px solid rgba(26,53,102,.15);
  border-radius: 4px;
  padding: .2rem .55rem;
  display: inline-block;
  width: fit-content;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.step-desc {
  font-size: .9375rem;
  color: var(--txt-mid);
  line-height: 1.65;
  max-width: 56ch;
}

/* Step mobile image — nascosto su desktop */
.step-mobile-img { display: none; }

/* Mobile step phone mockup */
.step-mob-ph {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  font-size: .85rem;
  color: var(--txt-mid);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
}
.ph-mobile-setup span { font-size: 2rem; }
.ph-mobile-modes { gap: .4rem; }
.m-mode {
  width: 100%;
  padding: .35rem .5rem;
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: .75rem;
  text-align: left;
}
.m-mode-a { background: var(--primary); color: #fff; }
.ph-mobile-raccolta { gap: .4rem; }
.pmr-title { font-weight: 700; color: var(--primary); font-size: .9rem; }
.pmr-item {
  width: 100%;
  padding: .3rem .5rem;
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: .75rem;
  text-align: left;
}
.pmr-item-more { color: var(--txt-light); font-style: italic; }

/* ── 11. MODES SECTION ── */
.modes-section {
  padding: 5rem clamp(1.5rem, 5vw, 4rem);
  background: var(--bg);
}

.modes-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.mode-card {
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s;
  cursor: default;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Varianti colore per ogni modalità */
.mode-standard {
  background: var(--bg-soft);
  border-color: rgba(26,53,102,.12);
}
.mode-vision {
  background: #E8F0FB;
  border-color: rgba(58,107,192,.2);
}
.mode-hearing {
  background: #FBF2E8;
  border-color: rgba(232,130,26,.2);
}
.mode-caa {
  background: #E8F5EC;
  border-color: rgba(34,120,60,.2);
}

.mode-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.mode-standard .mode-icon { background: rgba(26,53,102,.1); color: var(--primary); }
.mode-vision   .mode-icon { background: rgba(58,107,192,.15); color: var(--primary-light); }
.mode-hearing  .mode-icon { background: rgba(232,130,26,.15); color: #955010; }  /* contrast ok #955010 on #FBF2E8 = 5.4:1 */
.mode-caa      .mode-icon { background: rgba(34,120,60,.12); color: #1B6B33; }   /* contrast ok */
.mode-icon svg { width: 26px; height: 26px; }

.mode-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.mode-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-mid);
}

.mode-desc {
  font-size: .875rem;
  color: var(--txt-mid);
  line-height: 1.65;
}

/* ── 12. FEATURES SECTION ── */
.features-section {
  padding: 5rem clamp(1.5rem, 5vw, 4rem);
  background: var(--primary);
}

.features-section .sec-header .sec-label { color: rgba(255,255,255,.65); border-left-color: var(--accent); }
.features-section .sec-header .sec-title { color: #fff; }
.features-section .sec-header .sec-title .accent-txt { color: #fff; border-bottom-color: var(--accent); }
.features-section .sec-header .sec-intro { color: rgba(255,255,255,.75); }

.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feat-card {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: background .2s, transform .25s var(--ease);
}
.feat-card:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }

.feat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff;
}
.feat-icon svg { width: 24px; height: 24px; }

.feat-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.feat-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

/* ── 13. CASES SECTION ── */
.cases-section {
  padding: 5rem clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-soft);
}

.cases-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 140px 1fr;
  border: 1.5px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.case-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradienti diversi per ogni contesto */
.case-musei  .case-visual { background: linear-gradient(135deg, #1A3566 0%, #3A6BC0 100%); }
.case-urbano .case-visual { background: linear-gradient(135deg, #2C4A1E 0%, #5A8C3A 100%); }
.case-natura .case-visual { background: linear-gradient(135deg, #1A5566 0%, #3AA0B0 100%); }
.case-eventi .case-visual { background: linear-gradient(135deg, #66301A 0%, #C07030 100%); }

.case-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.case-icon svg { width: 30px; height: 30px; }

.case-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.case-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.case-desc {
  font-size: .875rem;
  color: var(--txt-mid);
  line-height: 1.65;
  flex: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}
.case-tags span {
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-lavender);
  border-radius: 4px;
  padding: .15rem .5rem;
  border: 1px solid rgba(26,53,102,.12);
}

/* ── 14. CTA SECTION ── */
.cta-section {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-lavender);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,130,26,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
}
.cta-title .accent-txt {
  color: var(--primary);
  border-bottom: 4px solid var(--accent);
  padding-bottom: .05em;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--txt-mid);
  line-height: 1.65;
  max-width: 52ch;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-foot {
  font-size: .8125rem;
  color: var(--txt-light);
  margin-top: .5rem;
}

/* ── 15. CLIENTS BAND ── */
.clients-band {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.clients-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-light);
  margin-bottom: 1.25rem;
}

.clients-track-wrap {
  overflow: hidden;
  position: relative;
}
.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.clients-track-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.clients-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.clients-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  animation: marquee 24s linear infinite;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; } }

.client-ph {
  font-size: .9rem;
  font-weight: 700;
  color: var(--txt-light);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .5rem 1.25rem;
  white-space: nowrap;
}

/* ── 16. FOOTER ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
}

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.site-footer-legal {
  font-size: .8125rem;
  line-height: 1.65;
}
.site-footer-legal a { color: rgba(255,255,255,.7); text-decoration: underline; }
.site-footer-legal a:hover { color: #fff; }

.site-footer-copy {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}

/* ── 17. RESPONSIVE — max 1024px ── */
@media (max-width: 1024px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-inner {
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
  }
  .sticky-phone-wrap { width: 200px; height: 420px; }
}

/* ── 18. RESPONSIVE — max 768px (mobile) ── */
@media (max-width: 768px) {

  /* Nav */
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .nav-product { margin-left: auto; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3rem;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-visual { height: min(340px, 45vw); margin-top: 1.5rem; }
  .hp1 { transform: translateX(-135%) rotate(-6deg); }
  .hp3 { transform: translateX(35%) rotate(6deg); }

  /* Steps — single column */
  .steps-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps-phone-col { display: none; }  /* sticky phone nascosto su mobile */
  .step-mobile-img { display: block; margin-top: 1rem; }
  .step-mobile-img img { width: 100%; max-width: 260px; border-radius: 20px; margin: 0 auto; }

  .step {
    grid-template-columns: 32px 1fr;
    gap: 0 .75rem;
  }
  .step-num { font-size: 1.5rem; }

  /* Modes */
  .modes-grid { grid-template-columns: 1fr; }
  .mode-card { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .mode-icon { flex-shrink: 0; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Cases */
  .cases-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-rows: 120px 1fr; }

  /* CTA */
  .cta-title { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn-primary, .cta-btns .btn-outline { text-align: center; }
}

@media (max-width: 480px) {
  .hero-phone { width: clamp(90px, 24vw, 130px); }
  .steps-list { gap: 2rem; }
}

/* ── 19. PRINT ── */
@media print {
  .nav, .mobile-menu, .hero-visual,
  .steps-phone-col, .cta-glow,
  .clients-band, .site-footer { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero { padding-top: 0; min-height: auto; grid-template-columns: 1fr; }
  .sec-title, .cta-title { color: #000 !important; }
}
