/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #EFE8DC;
  color: #3A3A3A;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  text-decoration: none;
  color: #111;
}

.menu {
  display: flex;
  list-style: none;
  gap: 12px;
}

.menu a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #3A3A3A;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.35)
  );
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
}

.hero-text p {
  margin-top: 12px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.scroll {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.6;
  z-index: 2;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 20px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-vertical {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 320px) {

  .menu {
    display: none;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
/* IMMAGINI – INTRO */
.images-intro {
  padding: 40px 40px 20px;
  text-align: center;
}

.images-intro p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
}

/* FLOW IMMAGINI */
.images-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px 20px;
}

/* IMMAGINE FULL */
.img-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* COPPIA IMMAGINI */
.img-pair {
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
}
.img-pair img {
  width: 100%;
  height: auto;
  display: block;
}

.img-pair.reverse {
  direction: rtl;
}

.img-pair.reverse img {
  direction: ltr;
}

/* IMMAGINI */
.images-flow img {
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 768px) {
/*
  .images-flow {
    gap: 20px;
  }

  .img-pair {
    grid-template-columns: 1fr 1fr;
  }
*/
}
/* ARCHIVIO VISIVO */
.image-archive {
  padding: 10px 20px 50px;
}

/* Masonry con colonne fluide */
.archive-grid {
  column-count: 4;
  column-gap: 24px;
}

.archive-grid img {
  width: 100%;
  margin-bottom: 24px;
  display: block;
  break-inside: avoid;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

/* Hover leggerissimo */
.archive-grid img:hover {
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .archive-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .archive-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .archive-grid {
    column-count: 2;
  }
}
/* HEADER */

.site-header {
  display: flex;
  align-items: center;
  padding: 4px 8px;
}

.site-logo {
  height: 48px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.6s ease;
}

.site-logo:hover {
  opacity: 1;
}

