@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Prata&display=swap');

:root {
  --bg: #f3efe7;
  --bg-soft: #faf7f2;
  --ink: #1f1a17;
  --ink-soft: #5a4f46;
  --accent: #b55f3b;
  --accent-dark: #8d4528;
  --line: #d9c8b7;
  --card: #fffdfa;
  --shadow: 0 16px 35px rgba(86, 56, 34, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #e7d8c3 0, transparent 33%),
    radial-gradient(circle at 90% 20%, #eadfd0 0, transparent 40%),
    linear-gradient(160deg, var(--bg) 0%, #f7f3eb 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.82);
  border-bottom: 1px solid rgba(217, 200, 183, 0.6);
}

.nav-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-family: 'Prata', serif;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.brand span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 10px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #ecd9ca;
  color: var(--ink);
}

.site-nav a.active {
  background: var(--accent);
  color: #fff;
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 34px 0 74px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 20px;
}

.hero-copy,
.hero-art {
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(20px, 3vw, 38px);
  box-shadow: var(--shadow);
}

.hero-copy {
  background: linear-gradient(145deg, #fff7ee, #f8eee3);
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: 'Prata', serif;
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
}

.lead {
  color: var(--ink-soft);
  max-width: 60ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(181, 95, 59, 0.36);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
}

.hero-art {
  background: linear-gradient(160deg, #ede2d2, #e2d2bd);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.sculpture-shape {
  width: min(310px, 80%);
  aspect-ratio: 3 / 4;
  border-radius: 43% 57% 60% 40% / 42% 39% 61% 58%;
  background: linear-gradient(180deg, #c48968 0%, #9d5f40 100%);
  box-shadow:
    inset -18px -16px 24px rgba(0, 0, 0, 0.15),
    inset 12px 15px 20px rgba(255, 246, 233, 0.24),
    0 18px 38px rgba(64, 35, 20, 0.28);
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
    border-radius: 43% 57% 60% 40% / 42% 39% 61% 58%;
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
    border-radius: 50% 50% 39% 61% / 57% 45% 55% 43%;
  }
}

.section {
  margin-top: 42px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid rgba(217, 200, 183, 0.85);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 15px rgba(126, 96, 74, 0.08);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-dark);
  font-weight: 700;
}

.timeline {
  border-left: 3px solid #ddc4ad;
  margin: 8px 0 0;
  padding-left: 18px;
}

.timeline .event {
  position: relative;
  margin-bottom: 16px;
}

.timeline .event::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.tag-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 11px;
}

.tag {
  border-radius: 999px;
  background: #f0e2d4;
  color: #644635;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 9px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 230px;
}

.gallery-item .preview {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}

.preview-radici {
  background-image: linear-gradient(140deg, #e8d4c1 0%, #ba7f5e 100%);
}

.preview-maree {
  background-image: linear-gradient(140deg, #e7e2d8 0%, #9d7f66 100%);
}

.preview-crateri {
  background-image: linear-gradient(140deg, #f2e0cf 0%, #b27046 100%);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 120ms; }
.fade-up:nth-child(3) { animation-delay: 240ms; }
.fade-up:nth-child(4) { animation-delay: 360ms; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 16px 0 40px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 4vw;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    width: min(250px, 72vw);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 170ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
