:root {
  --falu-red: #6f1d1b;
  --lion: #bb9457;
  --bistre: #432818;
  --brown: #99582a;
  --peach: #fff9f2;
}

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

body {
  font-family: 'Helvetica Neue', 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--bistre);
  background: #fff;
}

/* Header / Navigation - compacta, com frase central */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem; /* menos espaço vertical e horizontal */
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  flex-wrap: wrap; /* permite ajustar em telas menores */
}

.logo {
  font-size: 1.2rem; /* um pouco menor */
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--falu-red);
}

.frase {
  text-align: center;
  flex: 1;
  margin: 0 1rem; /* dá espaçamento entre logo e nav */
}
.frase p {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; /* reduz tamanho da frase */
  font-style: italic;
  color: var(--falu-red);
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}

/* Navegação horizontal compacta */
.nav {
  display: flex;
  gap: 1rem; /* espaçamento entre links */
  flex-wrap: wrap; /* quebra para a próxima linha se necessário */
}

.nav a {
  font-size: 0.85rem; /* ligeiramente menor */
  font-weight: 500;
  text-decoration: none;
  color: var(--bistre);
  position: relative;
  padding: 0.3rem 0; /* reduz altura do link */
  transition: all 0.3s ease;
}

.nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--falu-red);
  transition: width 0.3s;
  margin-top: 2px;
}

.nav a:hover {
  color: var(--falu-red);
}

.nav a:hover::after {
  width: 100%;
}

/* Responsivo */
@media(max-width:768px){
  .header {
    padding: 0.4rem 1rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .frase p {
    font-size: 0.8rem;
  }
  .nav a {
    font-size: 0.8rem;
    margin: 0 0.3rem;
  }
}


/* Sections */
.section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--falu-red);
  text-align: center;
  font-weight: 500;
}

/* Artwork */
.artwork {
  margin-bottom: 3.5rem;
}

.artwork-title {
  font-size: 1.4rem;
  color: var(--falu-red);
  margin-bottom: 0.5rem;
}

.artwork-info {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}


.show-more-btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.7rem;
  background: var(--falu-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s;
  vertical-align: middle;
}
.show-more-btn:hover {
  background: var(--brown);
}

/* Imagem principal - capa da obra */
/* Imagem principal - capa da obra */
.main-img {
  width: 100%;
  max-width: 250px;   /* largura máxima menor */
  height: 350px;      /* altura uniforme e proporcional */
  object-fit: cover;  /* mantém proporção, corta excesso */
  border-radius: 8px;
  margin: 1rem 0;
  border: 2px solid var(--lion);
  cursor: pointer;
  transition: transform 0.3s;
}

/* Grid de imagens adicionais */
.grid.additional-images img {
  width: 100%;
  height: 150px;     /* altura uniforme para miniaturas */
  object-fit: cover; /* mantém proporção, corta excesso */
  border-radius: 6px;
  border: 2px solid var(--lion);
  cursor: pointer;
  transition: transform 0.3s;
}



/* Grid de imagens adicionais */
.grid.additional-images {
  display: none; /* escondido por padrão */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 1rem;
  width: 100%;
}
.grid.additional-images.show {
  display: grid; /* mostra ao clicar */
}

.grid.additional-images img:hover {
  transform: scale(1.05);
}

.exposicoes-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.exposicoes-fotos img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.exposicoes-fotos img:hover {
  transform: scale(1.02);
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  flex-direction: column;
}
.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}
.close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}
.close:hover {
  color: var(--lion);
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 2rem;
  color: #fff;
  padding: 0.5rem;
  user-select: none;
  transition: color 0.3s;
}
.prev { left: 20px; }
.next { right: 20px; }
.prev:hover, .next:hover { color: var(--lion); }

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  background: #fafafa;
  color: var(--bistre);
  font-size: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 4rem;
}

/* Responsivo */
@media(max-width:768px){
  .section-title {
    font-size: 1.6rem;
  }
  .artwork-title {
    font-size: 1.2rem;
  }
  .nav a {
    margin: 0.4rem;
    font-size: 0.85rem;
  }
  .logo {
    font-size: 1.2rem;
  }
}
