/* ============================================
   diletto - Common Nav / Footer / Mobile Menu
   Source of truth: index.html
   ============================================ */

/* ── NAV ── */
:root { --nav-h: 60px; }
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(245,244,240,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo em { font-style: normal; color: var(--accent); }
.nav-center { display: none; }
.nav-center a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .02em;
  transition: color var(--r);
}
.nav-center a:hover { color: var(--ink); }
.nav-hp-link {
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  transition: color var(--r), opacity var(--r);
  white-space: nowrap;
}
.nav-hp-link:hover { opacity: 0.7; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--r);
}
.nav-link:hover { color: var(--ink); }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background var(--r), transform var(--r);
}
.nav-btn:hover { background: #2a2a2a; transform: translateY(-1px); }
.nav-hamburger {
  display: block;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  position: absolute;
  transition: .3s;
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 8px; }
.nav-hamburger span:nth-child(3) { top: 16px; }
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.nav-mobile-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100vh;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  padding: 0;
  transition: 0.4s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  color: var(--ink);
}
.nav-mobile-menu.is-active { right: 0; }
.nav-mobile-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.nav-mobile-close {
  width: 36px; height: 36px;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}
.nav-mobile-close:hover { background: var(--rule); }
.nav-mobile-links {
  flex: 1;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.nav-mobile-links::-webkit-scrollbar { width: 4px; }
.nav-mobile-links::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }
.nav-mobile-links::-webkit-scrollbar-track { background: transparent; }
.nav-mobile-links a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  transition: color .2s;
}
.nav-mobile-links a:hover { color: var(--accent); }
.nav-mobile-footer {
  padding: 24px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.nav-mobile-contact-label {
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.nav-mobile-contact-val {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}
.nav-mobile-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 999;
}
.nav-mobile-bg.is-active { opacity: 1; visibility: visible; }

/* ── FOOTER ── */
.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
footer {
  background: var(--bg);
  border-top: 1px solid var(--rule-strong);
  padding: 60px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-brand-tag {
  font-size: .9rem;
  color: var(--ink-3);
}
.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: .9rem;
  color: var(--ink-2);
  transition: color var(--r);
}
.footer-col-links a:hover { color: var(--ink); }
.footer-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.f-map-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.f-map-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f-map-list a {
  font-size: .9rem;
  color: var(--ink-2);
  transition: color var(--r);
  text-decoration: none;
}
.f-map-list a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: var(--ink-3);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--ink-3);
  transition: color var(--r);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--ink-2); }

/* ── RESPONSIVE (nav + footer) ── */
@media(max-width: 1060px) {
  .footer-wrap { padding: 0 24px; }
  nav { padding: 0 24px; }
  .nav-right .nav-link { display: none; }
  .nav-hp-link { display: none; }
  .nav-btn { padding: 8px 16px; font-size: 0.8rem; }

  .footer-top { grid-template-columns: 1fr; }
  footer { padding: 32px 0 16px; }
  .footer-brand-name { font-size: .9rem; margin-bottom: 2px; }
  .footer-brand-tag { font-size: .75rem; margin-bottom: 20px; }
  .footer-map { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .f-map-title { font-size: .7rem; margin-bottom: 6px; }
  .f-map-list { gap: 5px; }
  .f-map-list a { font-size: .75rem; line-height: 1.4; }
  .f-map-list p { font-size: .68rem !important; margin-top: 4px !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 24px; padding-top: 16px; font-size: .72rem; }
  .footer-bottom-links { gap: 16px; font-size: .72rem; }
}
