/* ===========================
   BASE RESET & VARIABLES
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-main: var(--font-body);
  --font-sans: var(--font-body);
  --nav-height: 60px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===========================
   NAVIGATION
=========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  mix-blend-mode: normal;
}

/* Nav on hero pages: white text over dark images */
nav.over-hero {
  color: var(--white);
}

nav.over-hero .nav-logo,
nav.over-hero .nav-links a {
  color: var(--white);
}

/* Nav on light pages: black text */
nav.light {
  color: var(--black);
  border-bottom: 1px solid #e0e0e0;
  background: var(--white);
}

nav.light .nav-logo,
nav.light .nav-links a {
  color: var(--black);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.76vw, 39px);
  letter-spacing: 0.28em;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.5;
}

/* Mobile nav */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--white) !important;
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 0.2em;
  }

  /* Shop link: 2 righe centrate, stesso font degli altri */
  .nav-links li.shop-li {
    text-align: center;
    width: 100%;
  }

  .nav-links li.shop-li a {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    display: block;
    width: 100%;
  }

  .nav-burger {
    display: flex;
  }
}

/* ===========================
   FOOTER
=========================== */
footer {
  padding: 30px 40px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px;
  }
}

/* ===========================
   HERO SLIDESHOW (Home)
=========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-title {
  position: absolute;
  bottom: 60px;
  left: 40px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title a {
  color: var(--white);
  text-decoration: none;
  pointer-events: all;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.hero-title a:hover {
  border-color: rgba(255,255,255,0.9);
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 40px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active {
  background: var(--white);
}

/* ===========================
   INNER PAGE LAYOUT
=========================== */
.page-wrap {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 60px 40px 80px;
}

/* ===========================
   ABOUT PAGE
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: #d9d9d9;
  overflow: hidden;
}

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

.about-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.about-text h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.18em;
  margin-bottom: 36px;
  line-height: 1.1;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: #2a2a2a;
  margin-bottom: 22px;
}

.about-text .cv-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.about-text .cv-link:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===========================
   WORKS PAGE
=========================== */
.works-header {
  margin-bottom: 48px;
}

.works-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.18em;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #d0d0d0;
  cursor: pointer;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item:hover img {
  transform: scale(1.04);
}

.work-item-placeholder {
  width: 100%;
  height: 100%;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: background 0.3s;
}

.work-item:hover .work-item-placeholder {
  background: #c0c0c0;
}

.work-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}

.work-item:hover .work-item-info {
  opacity: 1;
  transform: translateY(0);
}

.work-item-info h3 {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 4px;
}

.work-item-info span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-item-info {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-inner {
  max-width: 560px;
}

.contact-inner h1 {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 56px;
  line-height: 1.7;
  color: #555;
  max-width: 480px;
}

.contact-row {
  margin-bottom: 36px;
}

.contact-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 6px;
}

.contact-row a,
.contact-row p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  display: inline-block;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.contact-row a:hover {
  opacity: 0.5;
}

.contact-row p {
  border-bottom: none;
  color: #444;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.social-links a {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.5;
}

/* ===========================
   PROJECT DETAIL PAGE
=========================== */
.proj-cover {
  width: 100%;
  height: 78vh;
  min-height: 400px;
  margin-top: var(--nav-height);
  overflow: hidden;
  background: #f0f0f0;
}

.proj-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 60px 100px;
}

.proj-body.no-cover {
  padding-top: 130px;
}

.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.proj-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.proj-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proj-category {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
}

.proj-back {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.45);
  border-bottom: 1px solid rgba(10,10,10,0.18);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.proj-back:hover {
  color: var(--black);
  border-color: var(--black);
}

.proj-rule {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0 0 44px;
}

.proj-cols {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.proj-meta p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 2.1;
  color: #999;
  letter-spacing: 0.02em;
}

.proj-desc p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.9;
  color: #2a2a2a;
  margin-bottom: 22px;
}

.proj-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.proj-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.proj-images.single {
  grid-template-columns: 1fr;
}

.proj-images.single img {
  aspect-ratio: unset;
  max-height: 85vh;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Gallery style — janbajtlik inspired: 2 col, generous gap, natural proportions */
.proj-images-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 40px;
  margin-top: 60px;
}

.proj-images-gallery figure {
  margin: 0;
}

.proj-images-gallery figure img {
  width: 100%;
  height: auto;
  display: block;
}

.proj-images-gallery figure figcaption {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--black);
  margin-top: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* First image full width in gallery */
.proj-images-gallery figure.full {
  grid-column: 1 / -1;
}

.proj-full-img {
  width: 100%;
  margin-top: 48px;
  overflow: hidden;
  background: #f0f0f0;
}

.proj-full-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.proj-full-img .proj-full-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}

.proj-nav-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 56px;
  border-top: 1px solid #e0e0e0;
  margin-top: 64px;
}

.proj-next {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

.proj-next:hover { opacity: 0.45; }

@media (max-width: 768px) {
  .proj-cover { height: 52vh; min-height: 260px; }
  .proj-body { padding: 36px 24px 80px; }
  .proj-cols { grid-template-columns: 1fr; gap: 28px; }
  .proj-images { grid-template-columns: 1fr; }
  .proj-images-gallery { grid-template-columns: 1fr; gap: 36px; }
  .proj-header { flex-direction: column; gap: 16px; }
}
