
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f6f1eb;
  color: #111;
}

/* HERO */

.hero {
  height: 55vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 70px;
  letter-spacing: 6px;
}

.hero p {
  opacity: 0.85;
  color: white;
}

/* CONTAINER */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 45px 20px;
}

/* INTRO */

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  margin-top: 0;
  margin-bottom: 15px;
}

p {
  line-height: 1.7;
  color: #444;
  margin-top: 0;
  margin-bottom: 15px;
}

/* GALLERY GRID */

.gallery {
  column-count: 3;
  column-gap: 16px;
  margin-top: 30px;
}

.item {
  position: relative;
  margin-bottom: 16px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 18px;
  background: white;
}

.item img {
  width: 100%;
  display: block;
  transition: 0.4s;
}

.item:hover img {
  transform: scale(1.03);
}

/* CAPTION */

.caption {
  padding: 12px 15px;
  font-size: 14px;
  color: #333;
  display: none;
}

/* MOSTRA SOLO QUANDO ESISTE */

.item.has-caption .caption {
  display: block;
}

/* OVERLAY SOFT */

.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.15),
    transparent
  );
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

.item:hover::after {
  opacity: 1;
}

/* CTA */

.cta {
  text-align: center;
  margin-top: 40px;
}

button {
  background: #111;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* TABLET */

@media (max-width: 900px) {

  .container {
    padding: 30px 20px;
  }

  .gallery {
    column-count: 2;
    margin-top: 25px;
  }

  .hero h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .cta {
    margin-top: 30px;
  }
}

/* SMARTPHONE */

@media (max-width: 600px) {

  .gallery {
    column-count: 1;
  }

  .item {
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: 42px;
  }
}
