@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --gold: #C69756;
  --gold-light: #e8c990;
  --gold-pale: #f5ead6;
  --black: #0e0e0e;
  --dark: #1a1a1a;
  --mid: #4a4a4a;
  --muted: #8a8a8a;
  --bg: #fafaf8;
  --bg2: #f0f0f0;
  --white: #ffffff;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Futura PT', 'Trebuchet MS', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* ── Cursor ──────────────────────────── */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  border-radius: 50%;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  margin: -3px 0 0 -3px;
  transition: transform 0.08s linear;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  margin: -18px 0 0 -18px;
  opacity: 0.6;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), opacity 0.3s;
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  opacity: 1;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}



/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  height: 72px;
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(198,151,86,0.15);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--dark);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--white); }

/* HERO */
.hero {
  height: 100vh; min-height: 640px;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 6vw 8vh 6vw;
  position: relative; z-index: 2;
}
.hero-tag {
  font-size: 0.65rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.3s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--dark);
  opacity: 0; animation: fadeUp 1s var(--ease) 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle {
  margin-top: 2rem;
  font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  max-width: 340px; line-height: 2;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.7s forwards;
}
.hero-actions {
  margin-top: 3rem; display: flex; gap: 1.5rem; align-items: center;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.9s forwards;
}
.btn-primary {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  background: var(--gold); color: var(--white);
  padding: 1rem 2.5rem; text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); }
.btn-ghost {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  display: flex; align-items: center; gap: 0.7rem;
  transition: color 0.3s;
}
.btn-ghost::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover::after { transform: translateX(6px); }

.hero-right {
  position: relative; overflow: hidden;
}
.hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 12s var(--ease) forwards;
}
.hero-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8ddd0 0%, #d4c4b0 40%, #c8b89a 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  transform: scale(1.05);
  animation: slowZoom 12s var(--ease) forwards;
  position: relative; overflow: hidden;
}
.hero-image-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(45deg, transparent 45%, rgba(198,151,86,0.08) 50%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(198,151,86,0.08) 50%, transparent 55%);
  background-size: 60px 60px;
}
.placeholder-label {
  font-family: var(--serif);
  font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(198,151,86,0.6);
  z-index: 1;
}
.watermark-logo {
  font-family: var(--serif);
  font-size: 1.4rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(198,151,86,0.25);
  z-index: 1; text-align: center;
}
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 6vw;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.scroll-line {
  width: 48px; height: 1px; background: var(--gold);
  transform-origin: left; animation: growLine 1s var(--ease) 1.5s both;
}
.scroll-text {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}

/* SEZIONE NUMERI */
.stats {
  background: var(--dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4rem 6vw;
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  color: var(--gold); font-weight: 400;
}
.stat-label {
  font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

/* SEZIONI GENERALI */
.section { padding: 8rem 6vw; }
.section-alt { background: var(--bg2); }
.section-header { margin-bottom: 5rem; }
.section-tag {
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem; display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400; line-height: 1.1;
  color: var(--dark);
}
.section-title em { font-style: italic; color: var(--gold); }

/* PROGETTI GRID */
.progetti-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.progetto-card { position: relative; overflow: hidden; cursor: none; }
.progetto-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.progetto-card:nth-child(2) { grid-column: span 5; }
.progetto-card:nth-child(3) { grid-column: span 5; }
.progetto-card:nth-child(4) { grid-column: span 4; }
.progetto-card:nth-child(5) { grid-column: span 4; }
.progetto-card:nth-child(6) { grid-column: span 4; }

.progetto-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.progetto-card:nth-child(1) .progetto-img { aspect-ratio: unset; height: 100%; }
.progetto-card:hover .progetto-img { transform: scale(1.06); }

.progetto-placeholder {
  width: 100%; aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: transform 0.7s var(--ease);
}
.progetto-card:nth-child(1) .progetto-placeholder { aspect-ratio: unset; height: 100%; min-height: 480px; }
.progetto-card:hover .progetto-placeholder { transform: scale(1.06); }

.ph-1 { background: linear-gradient(135deg, #e0d5c8, #c9b99f); }
.ph-2 { background: linear-gradient(135deg, #d8cfc5, #bfb09a); }
.ph-3 { background: linear-gradient(160deg, #e5ddd3, #cfc0aa); }
.ph-4 { background: linear-gradient(135deg, #dbd0c4, #c4b09c); }
.ph-5 { background: linear-gradient(160deg, #e8e0d8, #d2c3ad); }
.ph-6 { background: linear-gradient(135deg, #d4c9bc, #bfad99); }

.progetto-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.ph-watermark {
  font-family: var(--serif); font-style: italic;
  font-size: 0.75rem; letter-spacing: 0.25em;
  color: rgba(198,151,86,0.45);
  z-index: 1; text-align: center;
  text-transform: uppercase;
}
.ph-icon {
  width: 32px; height: 32px; margin-bottom: 0.8rem;
  opacity: 0.3;
}

.progetto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.85) 0%, rgba(14,14,14,0.1) 60%, transparent 100%);
  opacity: 0; transition: opacity 0.5s var(--ease);
  display: flex; align-items: flex-end;
  padding: 2rem;
}
.progetto-card:hover .progetto-overlay { opacity: 1; }
.progetto-info { transform: translateY(12px); transition: transform 0.5s var(--ease); }
.progetto-card:hover .progetto-info { transform: translateY(0); }
.progetto-nome {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--white);
}
.progetto-meta {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light);
  margin-top: 0.4rem;
}

/* INFO BOX PROGETTO */
.info-box {
  background: var(--white);
  border: 1px solid rgba(198,151,86,0.2);
  padding: 1.5rem 1.8rem;
  display: inline-block;
  min-width: 200px;
}
.info-box-row {
  display: flex; gap: 0.5rem;
  font-size: 0.7rem; margin-bottom: 0.5rem;
  color: var(--mid);
}
.info-box-row:last-child { margin-bottom: 0; }
.info-box-row strong {
  color: var(--gold); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  min-width: 80px;
}

/* SERVIZI */
.servizi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.servizio-card {
  background: var(--white);
  padding: 3.5rem 3rem;
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease);
  cursor: none;
}
.servizio-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.servizio-card:hover::before { transform: scaleX(1); }
.servizio-card:hover { transform: translateY(-4px); }
.servizio-num {
  font-family: var(--serif); font-size: 3rem;
  color: var(--gold-pale); font-weight: 400;
  line-height: 1; margin-bottom: 1.5rem;
}
.servizio-title {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--dark); font-weight: 400;
  margin-bottom: 1rem; line-height: 1.2;
}
.servizio-desc {
  font-size: 0.78rem; line-height: 1.9;
  color: var(--muted); letter-spacing: 0.02em;
}
.servizio-price {
  margin-top: 2rem;
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
}
.servizio-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dark);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}
.servizio-link:hover { color: var(--gold); gap: 1rem; }

/* PUBBLICAZIONI */
.pub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.pub-card {
  border-top: 1px solid rgba(198,151,86,0.3);
  padding-top: 2rem;
}
.pub-source {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.8rem;
}
.pub-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.65;
  color: var(--dark);
}

/* CTA BANNER */
.cta-banner {
  background: var(--dark);
  padding: 6rem 6vw;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--white); font-weight: 400;
  line-height: 1.2; max-width: 640px;
}
.cta-text em { font-style: italic; color: var(--gold); }

/* FOOTER */
footer {
  background: var(--black);
  padding: 4rem 6vw 2.5rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(198,151,86,0.15);
}
.footer-logo {
  font-family: var(--serif); font-size: 1.2rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  display: block; margin-bottom: 1.2rem;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  line-height: 1.9; letter-spacing: 0.05em;
}
.footer-col h4 {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a {
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  text-decoration: none; letter-spacing: 0.05em;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--gold); }
.social-links {
  display: flex; gap: 1rem; margin-top: 1rem;
}
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(198,151,86,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none; font-size: 0.7rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 2rem;
}
.footer-copy {
  font-size: 0.65rem; color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

/* ANIMAZIONI */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slowZoom {
  to { transform: scale(1); }
}
@keyframes growLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* MOBILE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 45vw; }
  .hero-left { padding: 6rem 6vw 4rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .servizi-grid { grid-template-columns: 1fr; gap: 2px; }
  .pub-grid { grid-template-columns: 1fr; }
  .progetti-grid { grid-template-columns: 1fr 1fr; }
  .progetto-card:nth-child(1),
  .progetto-card:nth-child(2),
  .progetto-card:nth-child(3),
  .progetto-card:nth-child(4),
  .progetto-card:nth-child(5),
  .progetto-card:nth-child(6) { grid-column: span 1; grid-row: span 1; }
  .progetto-card:nth-child(1) .progetto-placeholder { min-height: 240px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cta-banner { flex-direction: column; text-align: center; }
  nav { display: none; }
}

