:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #0a0a0a;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --accent: #6b1820;
  --accent-soft: #8a2129;
  --line: #e5e5e7;
  --radius: 980px;
  --max: 1200px;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease); }
a:hover { opacity: .65; }

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 300;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

h2.display {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2.display .muted { color: var(--text-muted); font-style: italic; }

h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

p { color: var(--text); }

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 640px;
  line-height: 1.5;
}

.center { text-align: center; }
.center .lead, .center.lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.muted { color: var(--text-muted); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo span {
  font-style: italic;
  color: var(--accent);
  margin-left: 4px;
}

.nav nav {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav nav a {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav nav a.active { color: var(--text-muted); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  letter-spacing: -0.01em;
}
.nav-cta:hover { opacity: 1; background: var(--accent); }

/* Hero full screen */
.hero-full {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.1);
  transform: scale(1.05);
  animation: heroZoom 14s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 64px;
}

.hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.hero-content .lead { color: rgba(255,255,255,0.85); max-width: 560px; }

.hero-content h1 { color: #fff; max-width: 12ch; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  z-index: 2;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Page hero */
.page-hero {
  padding: 180px 0 100px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: clamp(56px, 9vw, 110px); margin-bottom: 24px; }
.page-hero .lead { margin: 0 auto; }

.page-hero.with-image {
  position: relative;
  border: none;
  color: #fff;
  padding: 220px 0 120px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) forwards;
}

.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.5) 100%);
}

.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.page-hero-content h1 { color: #fff; }
.page-hero-content .lead { color: rgba(255,255,255,0.85); margin: 0 auto; }

/* Buttons */
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cta-row.center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); opacity: 1; transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover { background: var(--text); color: #fff; opacity: 1; transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: #fff; color: var(--text); opacity: 1; transform: translateY(-2px); }

/* Manifesto */
.manifesto {
  padding: 160px 0 120px;
  background: var(--bg);
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 80vh;
}

.split.reverse .split-image { order: 2; }
.split.reverse .split-text { order: 1; }

.split-image {
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.split:hover .split-image img { transform: scale(1.04); }

.split-text {
  padding: 80px clamp(40px, 7vw, 100px);
  max-width: 620px;
}

.split-text h2 { margin-bottom: 24px; }
.split-text p { color: var(--text-muted); font-size: 17px; line-height: 1.6; }

/* Features */
.features {
  padding: 160px 0;
  background: var(--bg-alt);
}

.features h2.display { margin-bottom: 80px; }

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

.feature {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.feature .num {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.feature h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Showcase grid */
.showcase {
  padding: 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 90vh;
  min-height: 720px;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  background: #000;
}

.showcase-item.large {
  grid-row: 1 / span 2;
}

.showcase-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s ease;
  opacity: .92;
}

.showcase-item:hover img { transform: scale(1.05); opacity: 1; }

.showcase-item figcaption {
  position: absolute;
  bottom: 32px; left: 32px;
  color: #fff;
  z-index: 2;
}

.showcase-item figcaption span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.showcase-item figcaption p {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.showcase-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Services list (servizi.html) */
.services-section {
  padding: 120px 0;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  align-self: start;
  padding-top: 8px;
}

.service-body h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.service-body p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
}

.service-image {
  height: 320px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
}

.service-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.service-row:hover .service-image img { transform: scale(1.05); }

/* Contact (contatti.html) */
.contact-section {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 80px;
}

.contact-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-block.wide { grid-column: 1 / -1; }

.contact-block .eyebrow { margin-bottom: 16px; }

.contact-block h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.contact-block h2 a { color: var(--text); }
.contact-block h2 a:hover { color: var(--accent); opacity: 1; }

.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.hours-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hours-grid strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  font-weight: 500;
}

.hours-grid span {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
}

/* Final CTA section */
.cta-final {
  padding: 160px 0;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(107,24,32,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.cta-final h2.display { color: #fff; margin-bottom: 24px; }
.cta-final h2.display .muted { color: rgba(255,255,255,0.5); }
.cta-final .lead { color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.cta-final .eyebrow { color: rgba(255,255,255,0.55); }

.cta-final .btn-primary { background: #fff; color: var(--bg-dark); }
.cta-final .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-final .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.7); }
.cta-final .btn-secondary:hover { background: #fff; color: var(--bg-dark); }

/* Footer */
.site-footer {
  background: var(--bg);
  padding: 80px 0 32px;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-logo span { font-style: italic; color: var(--accent); margin-left: 4px; }

.footer-title {
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 16px;
}

.site-footer p { line-height: 1.9; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); opacity: 1; }

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-image { order: 1; }
  .split.reverse .split-text { order: 2; }
  .split-image { min-height: 420px; }
  .split-text { padding: 60px 32px; }
  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 50vh);
    height: auto;
  }
  .showcase-item.large { grid-row: auto; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav nav { display: none; }
  .nav { gap: 16px; }
  .hero-full { min-height: 600px; }
  .manifesto { padding: 100px 0 80px; }
  .features { padding: 100px 0; }
  .features h2.display { margin-bottom: 56px; }
  .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .service-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
  .service-image { height: 240px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hours-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-final { padding: 100px 0; }
  .cta-row { width: 100%; max-width: 320px; margin: 0 auto; flex-direction: column; }
  .cta-row .btn { width: 100%; text-align: center; }
  .page-hero, .page-hero.with-image { padding: 140px 0 80px; }
}
