.proj-1 { background-image: url('../images/project/'); background-size:cover; background-position:center; }
  .proj-2 { background-image: url('../images/project/');          background-size:cover; background-position:center; }
  .proj-3 { background-image: url('../images/project/');        background-size:cover; background-position:center; }
  .proj-4 { background-image: url('../images/project/');        background-size:cover; background-position:center; }
  .proj-5 { background-image: url('../images/project/');    background-size:cover; background-position:center; }
  .proj-6 { background-image: url('../images/project/');    background-size:cover; background-position:center; }
  .proj-7 { background-image: url('../images/project/');             background-size:cover; background-position:center; }
  .proj-8 { background-image: url('../images/project/');              background-size:cover; background-position:center; }
  .proj-9 { background-image: url('../images/project/');      background-size:cover; background-position:center; }

  .product-img::after { content: 'Scopri →'; }

  .product-location {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
  }
/* ===================== FOOTER ===================== */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 56px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col-title {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 12.1px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links li a:hover { color: var(--gold); }

.footer-brand-col .nav-brand-name {
  font-size: 28.6px;
  margin-bottom: 4px;
}
.footer-address {
  font-size: 12.1px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(184,147,90,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.25s;
}
.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.social-icon:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.social-icon:hover::before { transform: translateY(0); }
.social-icon svg {
  width: 16px; height: 16px;
  fill: var(--gold);
  position: relative;
  z-index: 1;
  transition: fill 0.25s;
}
.social-icon:hover svg { fill: var(--warm-white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.footer-copy a { color: var(--text-light); text-decoration: none; transition: color 0.25s; }
.footer-copy a:hover { color: var(--gold); }


/* ── TABLET LANDSCAPE (≤ 1024px) ─────────────────────────────────────────── */
@media screen and (max-width: 1024px) {

  nav { padding: 0 32px; }

  #lb-panel {
    flex-direction: column;
    max-height: 92vh;
    overflow-y: auto;
  }

  #lb-img-wrap {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
  }

  #lb-slides {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .lb-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #lb-body {
    padding: 28px 24px 32px;
  }

  .section-pad { padding: 64px 32px; }
  .section-divider { margin: 0 32px; }

  /* Footer: 2 colonne invece di 4 */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
}

/* ── TABLET PORTRAIT + MOBILE (≤ 992px) ──────────────────────────────────── */
@media screen and (max-width: 992px) {

  /* ─ Navbar ─ */
  nav { padding: 0 24px; }

  .nav-hamburger { display: flex; }

  /* ─ Footer ─ */
  footer { padding: 48px 24px 24px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
}

/* ── MOBILE (≤ 640px) ────────────────────────────────────────────────────── */
@media screen and (max-width: 640px) {

  /* ─ Footer ─ */
  footer { padding: 40px 20px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-copy { font-size: 10px; }
}

/* ── MOBILE XS (≤ 400px) ─────────────────────────────────────────────────── */
@media screen and (max-width: 400px) {
  nav { padding: 0 16px; }
}

#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 55px;
  z-index: 8000;
  width: 60px;
  height: 60px;
  background: var(--warm-white, #FDFAF6);
  border: 1px solid var(--gold, #B8935A);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s;
}
#back-to-top.btt-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--gold, #B8935A);
}
#back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold, #B8935A);
  transition: stroke 0.25s;
}
#back-to-top:hover svg {
  stroke: var(--warm-white, #FDFAF6);
}
@media (max-width: 640px) {
  #back-to-top { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}