/**
 * Shell visiva allineata alla home (index.html): token, nav, footer, sticky mobile.
 * Includere dopo style.css sulle pagine interne che non duplicano l’inline della home.
 */
:root {
  --terra: #d97757;
  --terra-d: #c06642;
  --terra-dd: #a8522f;
  --terra-l: #e89a7a;
  --terra-xl: #fdf0ea;
  --salvia: #3b7f5c;
  --salvia-l: #e3f5ec;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --ink: #111110;
  --white: #ffffff;
  --r: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;
}

/* Base coerente con home (sovrascrive in parte style.css) */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ─── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  transition: background var(--r), box-shadow var(--r);
}
.nav-wrap.solid {
  background: rgba(250, 250, 249, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--stone-200);
}
.nav-mob {
  display: none;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 5vw;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--stone-700);
  transition: color var(--r);
}
.nav-links a:hover {
  color: var(--terra);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-ghost {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--stone-700);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--stone-200);
  transition: all var(--r);
}
.btn-ghost:hover {
  border-color: var(--terra);
  color: var(--terra);
}
.btn-cta {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  background: var(--terra);
  padding: 0.55rem 1.25rem;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(217, 119, 87, 0.3);
  transition: all var(--r);
  display: inline-block;
}
.btn-cta:hover {
  background: var(--terra-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.38);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: var(--r);
}

/* ─── FOOTER ─── */
.footer-top {
  background: var(--white);
  border-top: 1px solid var(--stone-200);
  padding: 3rem 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--stone-500);
  line-height: 1.7;
  max-width: 260px;
}
.fcol h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: 1rem;
}
.fcol ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fcol a {
  font-size: var(--fs-sm);
  color: var(--stone-500);
  transition: color var(--r);
}
.fcol a:hover {
  color: var(--terra);
}
.footer-bottom {
  background: var(--stone-50);
  border-top: 1px solid var(--stone-200);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--stone-500);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a {
  color: var(--stone-500);
  transition: color var(--r);
}
.footer-bottom a:hover {
  color: var(--terra);
}

/* ─── STICKY MOBILE ─── */
.sticky-mob {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  background: rgba(250, 250, 249, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--stone-200);
  z-index: 190;
}
.sticky-mob a {
  display: block;
  text-align: center;
  background: var(--terra);
  color: var(--white);
  font-weight: 800;
  font-size: var(--fs-base);
  padding: 0.9rem;
  border-radius: 13px;
  box-shadow: 0 4px 16px rgba(217, 119, 87, 0.3);
}

@media (max-width: 1024px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav-mob {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(16px);
    z-index: 300;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform var(--r);
  }
  .nav-mob.open {
    transform: translateX(0);
  }
  .nav-mob a {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--ink);
  }
  .nav-mob-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--stone-500);
  }
  .sticky-mob {
    display: block;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-bottom .container {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}
