:root {
  --sand: #f7f7f7;
  --terracotta: #4a9ebf;
  --terracotta-light: #6ab4d0;
  --ocean: #2d7da0;
  --dark: #2d2d2d;
  --text: #3d3d3d;
  --text-light: #888888;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 30px rgba(26, 42, 46, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.4s;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--terracotta-light);
  transform: translateY(-1px);
}

/* ===== HERO GALLERY ===== */
.gallery-hero {
  padding: 8rem 3rem 3rem;
  background: var(--sand);
  text-align: center;
}

.gallery-hero .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
  display: block;
}

.gallery-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.gallery-hero p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.photo-count {
  display: inline-block;
  background: var(--dark);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ===== FILTER TABS ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #efefef;
  background: white;
  position: sticky;
  top: 60px;
  z-index: 100;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid #e8e8e8;
  border-radius: 100px;
  background: white;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

/* ===== GALLERY GRID ===== */
.gallery-section {
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.category-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-title span {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Masonry-style grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 4rem;
}

.photo-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--sand);
}

/* Tall item — prima foto di ogni sezione */
.photo-item.tall {
  grid-row: span 2;
}

/* Wide item */
.photo-item.wide {
  grid-column: span 2;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  transition: transform 0.5s ease;
}

.photo-item.tall .photo-placeholder {
  min-height: 520px;
}
.photo-item.wide .photo-placeholder {
  min-height: 250px;
}

.photo-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.photo-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
  padding: 0 1rem;
}

.photo-placeholder-filename {
  font-size: 0.65rem;
  color: #aaaaaa;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* Real image style */
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-item.tall img {
  min-height: 520px;
}
.photo-item.wide img {
  min-height: 250px;
}

.photo-item:hover img,
.photo-item:hover .photo-placeholder {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(45, 45, 45, 0.75) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-caption {
  color: white;
  font-size: 0.82rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.photo-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-item:hover .photo-zoom {
  opacity: 1;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

#lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev {
  left: 1.5rem;
}
.lightbox-next {
  right: 1.5rem;
}

#lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-info {
  text-align: center;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ===== CTA BOTTOM ===== */
.gallery-cta {
  background: var(--dark);
  padding: 5rem 3rem;
  text-align: center;
  color: white;
}

.gallery-cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.gallery-cta p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 158, 191, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .gallery-hero {
    padding: 7rem 1.5rem 2rem;
  }
  .filter-bar {
    padding: 1.5rem;
    gap: 0.4rem;
  }
  .gallery-section {
    padding: 2rem 1.5rem;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-item.tall {
    grid-row: span 1;
  }
  .photo-item.tall .photo-placeholder,
  .photo-item.tall img {
    min-height: 250px;
  }
  .gallery-cta {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-item.wide {
    grid-column: span 1;
  }
  .lightbox-nav {
    display: none;
  }
}

/**DISPONIBILOITA**/
.seo-booking-text {
  max-width: 800px;
  margin: 80px auto 40px auto;
  padding: 0 20px;
  font-family: "DM Sans", sans-serif;
  color: #333333;
  line-height: 1.6;
}

.seo-booking-text h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: #222222;
  margin-bottom: 20px;
  text-align: center;
}

.seo-booking-text h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #222222;
  margin-top: 30px;
  margin-bottom: 15px;
}

.seo-booking-text p {
  font-size: 16px;
  margin-bottom: 15px;
}

.seo-booking-text .lead-text {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 30px;
}

.seo-booking-text ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.seo-booking-text li {
  margin-bottom: 8px;
  font-size: 15px;
}

.seo-booking-text .cta-subtext {
  text-align: center;
  color: #888888;
  margin-top: 20px;
}

footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 3rem;
  text-align: center;
  font-size: 0.78rem;
}

footer a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  margin: 0 0.8rem;
}

footer a:hover {
  color: white;
}
