/* =================================================
   ForMove - Sito promozionale - Design System
   Blu brand (#1374ba) coerente con il gestionale,
   affiancato da toni kraft/cartone: il soggetto sono
   i traslochi, non un SaaS generico.
================================================= */

:root {
  /* Blu brand - stesso valore esatto del gestionale */
  --primary:        #1374ba;
  --primary-dark:   #0d4a78;
  --primary-light:  #3b82f6;
  --primary-bg:     #eef6ff;

  /* Kraft - tono cartone da imballaggio, non crema generica */
  --kraft:           #d9c7a8;
  --kraft-dark:      #a98a5c;
  --kraft-darker:    #7a6240;

  /* Neutri */
  --ink:             #12222f;
  --ink-soft:        #445264;
  --paper:           #faf7f0;
  --paper-dim:       #f2ede0;
  --white:           #ffffff;
  --line:            #e4dccb;

  --radius:          10px;
  --radius-lg:       18px;
  --shadow-tag:       0 8px 24px rgba(18,34,47,.14);
  --shadow-tag-hover: 0 14px 34px rgba(18,34,47,.20);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
}

/* ── Bottoni ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(19,116,186,.32);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(19,116,186,.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ── Header ── */
.promo-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 247, 240, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.promo-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.promo-logo { display: flex; align-items: center; height: 100%; }
.promo-logo-img { height: 60px; width: auto; }
.promo-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.promo-nav-links {
  display: flex;
  gap: 30px;
  font-weight: 500;
  font-size: .95rem;
}
.promo-nav-links a { color: var(--ink-soft); transition: color .15s ease; position: relative; }
.promo-nav-links a:hover { color: var(--ink); }
.promo-nav-links a.active { color: var(--primary); }
.promo-nav-actions { display: flex; align-items: center; gap: 14px; }
.promo-nav-actions .btn-ghost { padding: 10px 20px; font-size: .9rem; }
.promo-nav-actions .btn-primary { padding: 10px 22px; font-size: .9rem; }

.promo-burger {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.promo-burger span, .promo-burger span::before, .promo-burger span::after {
  content: ''; display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.promo-burger span::before { position: absolute; top: -7px; }
.promo-burger span::after  { position: absolute; top: 7px; }

/* ── Selettore lingua ── */
.lang-switcher { position: relative; }
.lang-btn {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-tag);
  padding: 6px;
  min-width: 84px;
  z-index: 50;
}
.lang-panel.open { display: block; }
.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-option:hover { background: var(--paper-dim); color: var(--ink); }
.lang-option.active { color: var(--primary); font-weight: 700; }

/* Nel menu mobile il selettore prende tutta la larghezza e si apre sotto */
.promo-mobile-menu .lang-switcher { margin-top: 12px; }
.promo-mobile-menu .lang-btn { width: 100%; text-align: center; padding: 12px; }
.promo-mobile-menu .lang-panel { position: static; box-shadow: none; margin-top: 6px; width: 100%; }
.promo-mobile-menu .lang-panel.open { display: flex; flex-wrap: wrap; gap: 4px; }
.promo-mobile-menu .lang-option { width: auto; flex: 1 1 auto; text-align: center; }

.promo-burger span.is-open { background: transparent; }
.promo-burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.promo-burger.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

.promo-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 600;
  background: var(--paper-dim);
  transform: translateX(-100%);
  transition: transform .3s ease;
}
.promo-mobile-menu.open { transform: translateX(0); }
.promo-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--paper-dim);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-mobile-close:hover { background: var(--line); }
.promo-mobile-menu-wrap {
  display: flex; flex-direction: column;
  justify-content: space-evenly;
  box-sizing: border-box;
  padding: 90px 28px 40px;
  width: 100%;
  height: 100%;
  background: var(--paper-dim);
}
.promo-mobile-menu a {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.promo-mobile-menu a.active { color: var(--primary); }
.promo-mobile-menu .btn { justify-content: center; margin-top: 12px; }

/* ── Hero di pagina interna (componente condiviso, non la home) ── */
.page-hero {
  padding: 88px 0 60px;
  text-align: center;
}
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.page-hero h1 { max-width: 760px; margin: 0 auto 20px; }
.page-hero p.lead { max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

/* ── Sezioni (componenti condivisi, usati su più pagine) ── */
.section { padding: 110px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }
.section-cta { padding-top: 0; }

/* ── CTA banner (componente condiviso, usato su più pagine) ── */
.cta-banner {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 480px; margin: 0; }
.cta-banner p { color: rgba(255,255,255,.82); margin-top: 10px; max-width: 460px; }
.cta-banner .btn-primary { background: var(--white); color: var(--primary); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--paper); }

@media (max-width: 860px) {
  .cta-banner { flex-direction: column; text-align: center; padding: 44px 28px; }
}

/* ── Footer ── */
.promo-footer {
  background: var(--ink);
  color: #c7d2dc;
  padding: 64px 0 28px;
  margin-top: 120px;
}
.promo-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.promo-footer-logo { height: 32px; width: auto; margin-bottom: 14px; }
.promo-footer-brand p { color: #8fa0b0; font-size: .9rem; max-width: 280px; }
.promo-footer h4 {
  font-family: var(--font-mono);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: #8fa0b0; margin: 0 0 16px;
}
.promo-footer-col a {
  display: block;
  color: #c7d2dc;
  font-size: .92rem;
  padding: 6px 0;
  transition: color .15s ease;
}
.promo-footer-col a:hover { color: var(--white); }
.promo-footer-bottom {
  max-width: var(--maxw); margin: 48px auto 0; padding: 24px 28px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #6b7d8d;
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 860px) {
  .promo-nav-links, .promo-nav-actions { display: none; }
  .promo-burger { display: flex; }
  .promo-mobile-menu { display: block; }
  .promo-footer .wrap { grid-template-columns: 1fr 1fr; }
}
