/* ── CURSOR ── */
html, body, *, *::before, *::after { cursor: none !important; }
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--color-anchor);
  border: 1.5px solid var(--color-sand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  margin: -4px 0 0 -4px;
  will-change: top, left;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(30,23,20,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  margin: -19px 0 0 -19px;
  will-change: top, left;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, margin 0.3s ease;
}
body.cursor-hover #cursor-ring {
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
}
body.cursor-hover #cursor-ring {
  width: 54px; height: 54px;
  border-color: rgba(30,23,20,0.7);
  opacity: 0.9;
}
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── PROGRESS BAR ── */
#progress {
  position: fixed; top: 0; left: 0; height: 1px;
  background: var(--color-sand); z-index: 1000; width: 0%;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled { background: rgba(30,23,20,0.97); }

.nav-logo {
  font-family: var(--font-serif); font-size: 16px; font-weight: 300;
  color: var(--color-cream); letter-spacing: 0.04em;
}
.nav-logo em { font-style: italic; color: var(--color-sand); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-sans); font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-cream); opacity: 0.75;
  position: relative;
  transition: color var(--duration-fast), opacity var(--duration-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; right: 50%;
  height: 1px;
  background: var(--color-sand);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-sand); opacity: 1;
}
.nav-links a:hover::after, .nav-links a.active::after {
  left: 0; right: 0;
}

.nav-cta {
  font-family: var(--font-sans); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-sand); padding: 8px 20px;
  border: 1px solid var(--color-sand);
  transition: background var(--duration-mid) var(--ease-out), color var(--duration-mid) var(--ease-out);
}
.nav-cta:hover { background: var(--color-sand); color: var(--color-anchor); }

/* Hamburger mobile */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--color-cream); transition: 0.3s;
}
.nav-mobile-overlay {
  position: fixed; inset: 0; background: var(--color-anchor);
  z-index: 99; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.nav-mobile-overlay.open { opacity: 1; pointer-events: all; }
.nav-mobile-overlay a {
  font-family: var(--font-serif); font-size: 36px; font-weight: 300;
  color: var(--color-cream); letter-spacing: 0.04em;
}
.nav-mobile-overlay a em { font-style: italic; color: var(--color-sand); }

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-sans); font-size: 9px;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--color-nude);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--color-sand); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px 32px;
  transition: background var(--duration-mid) var(--ease-out),
              color var(--duration-mid) var(--ease-out),
              border-color var(--duration-mid) var(--ease-out);
}
.btn-dark {
  background: var(--color-anchor); color: var(--color-cream);
  border: 1px solid var(--color-anchor);
}
.btn-dark:hover { background: transparent; color: var(--color-anchor); }
.btn-outline {
  background: transparent; color: var(--color-anchor);
  border: 1px solid var(--color-anchor);
}
.btn-outline:hover { background: var(--color-anchor); color: var(--color-cream); }
.btn-outline-light {
  background: transparent; color: var(--color-cream);
  border: 1px solid var(--color-sand);
}
.btn-outline-light:hover { background: var(--color-sand); color: var(--color-anchor); }

/* ── WHATSAPP BUTTON ── */
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 40px; border: none;
  transition: filter 0.25s;
}
.wa-btn:hover { filter: brightness(1.08); }
.wa-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Fixed mobile WhatsApp */
.wa-fixed {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex;
  align-items: center; justify-content: center;
  z-index: 500; animation: waPulse 2s infinite;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.wa-fixed svg { width: 28px; height: 28px; }
@media (min-width: 769px) { .wa-fixed { display: none; } }

/* ── FOOTER ── */
.footer {
  background: #0f0c0b;
  padding: 64px 80px 40px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,180,154,0.1);
  gap: 40px; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-serif); font-size: 22px;
  font-weight: 300; color: var(--color-cream); letter-spacing: 0.04em;
}
.footer-logo em { font-style: italic; color: var(--color-sand); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-sans); font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-beige); transition: color var(--duration-fast);
}
.footer-links a:hover { color: var(--color-sand); }
.footer-info {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--color-beige); line-height: 2;
  text-align: right;
}
.footer-bottom {
  padding-top: 28px;
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-mid);
  display: flex; justify-content: space-between;
}
@media (max-width: 768px) {
  .footer { padding: 48px 24px 100px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-info { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  background: var(--color-beige);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-nude); font-family: var(--font-sans);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ── CARD HOVER LINE ── */
.hover-line {
  position: relative; overflow: hidden;
}
.hover-line::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background: var(--color-sand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.hover-line:hover::after { transform: scaleX(1); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(30,23,20,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  transform: scale(0.9); transition: transform 0.4s var(--ease-out);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--color-mid); cursor: none; transition: color 0.25s;
}
.lightbox-close:hover { color: var(--color-cream); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 20px;
  color: var(--color-mid); cursor: none; padding: 20px;
  transition: color 0.25s;
}
.lightbox-arrow:hover { color: var(--color-cream); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid var(--color-beige); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  padding: 24px 0; cursor: none; background: none; border: none;
  font-family: var(--font-serif); font-size: 20px; font-weight: 300;
  color: var(--color-anchor); transition: color 0.25s;
}
.faq-question:hover { color: var(--color-sand); }
.faq-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--color-nude);
  transition: transform 0.35s var(--ease-out);
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-arrow, .faq-arrow {
  font-size: 12px; color: var(--color-nude);
  transition: transform 0.35s var(--ease-out); flex-shrink: 0;
}
.faq-item.open .faq-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--color-nude);
  transition: transform 0.35s var(--ease-out);
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-arrow, .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--color-mid); line-height: 1.8;
  padding-bottom: 24px;
}

/* ── GALLERY LAVORI ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  width: 100%;
  padding-bottom: 125%;
  position: relative;
  overflow: hidden;
  background: var(--color-beige);
}
.gallery-item img,
.gallery-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.gallery-item img {
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,23,20,0);
  transition: background 0.4s var(--ease-out);
  z-index: 1;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(30,23,20,0.18); }
.gallery-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: var(--color-beige);
  color: var(--color-nude);
}
.gallery-placeholder span {
  font-family: var(--font-sans); font-size: 9px;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.gallery-placeholder small {
  font-family: var(--font-sans); font-size: 8px;
  letter-spacing: 0.1em; color: rgba(122,104,96,0.5);
}
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
