/* ===== Motion, Instagram, lightbox ===== */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-img { transform: none !important; }
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(26, 58, 58, 0.06);
  transition: transform 0.4s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  flex-shrink: 0;
}
.social-link svg { width: 18px; height: 18px; display: block; }
.social-link:hover {
  transform: translateY(-3px);
  background: #E1306C;
  color: #fff;
  box-shadow: 0 8px 18px rgba(225, 48, 108, 0.28);
}
.footer .social-link {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.footer .social-link:hover {
  background: #E1306C;
  color: #fff;
}

.hero {
  overflow: hidden;
}
.hero-bg {
  overflow: hidden;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/terrace-view.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.48);
}
.hero-content,
.scroll-down {
  z-index: 2;
}
.hero-img[src*="acquerello"] {
  opacity: 0;
}

.section-reviews {
  background-image: url('../images/esterno-acquerello.jpg');
}

.feature-card,
.space-card,
.location-card,
.review-card,
.info-card {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.feature-card:hover,
.location-card:hover,
.review-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.10);
}
.space-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.space-img-wrap img {
  transition: transform 0.7s var(--ease);
}
.space-card:hover .space-img-wrap img {
  transform: scale(1.05);
}

.btn {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 58, 58, 0.18);
}
.logo {
  transition: color 0.35s var(--ease);
}
.nav a {
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: calc(50% - 18px);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.35s var(--ease);
}
.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.gallery-item {
  cursor: zoom-in;
}
.gallery-item img {
  transition: transform 0.6s var(--ease), filter 0.45s var(--ease);
}
.gallery-item::after {
  content: '+';
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(250,248,245,0.92);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}
.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.04);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.9s var(--ease) forwards;
}
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }
.reveal-d5 { animation-delay: 0.40s; }
.reveal-d6 { animation-delay: 0.48s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(12, 12, 11, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s, background 0.4s var(--ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(12, 12, 11, 0.88);
}
.lightbox-inner {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.45s var(--ease);
}
.lightbox.open .lightbox-inner {
  transform: scale(1) translateY(0);
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.lightbox-caption {
  margin-top: 0.85rem;
  color: #faf8f5;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  text-align: center;
}
.lightbox-btn {
  background: rgba(250,248,245,0.12);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-btn:hover {
  background: rgba(250,248,245,0.28);
}
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
}
.lightbox-prev {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}
body.lightbox-open { overflow: hidden; }

.book-wrapper,
.book-wrapper-simple {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-template-columns: none !important;
  text-align: center;
}

.book-text {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.book-text .btn {
  margin-inline: auto;
}

.footer {
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-brand {
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
}

.footer-copy {
  width: 100%;
  text-align: center;
}

@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.2rem; }
  .nav a:not(.nav-cta)::after { display: none; }
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg picture img,
.hero-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.space-img-wrap picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-item picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
