:root {
  --navy: #101b26;
  --navy-deep: #0a141d;
  --cream: #f6f1e7;
  --cream-dim: #ece4d3;
  --rust: #b5502e;
  --rust-light: #d97b4f;
  --ink: #1b1712;
  --serif: 'Fraunces', serif;
  --sans: 'Work Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }
.ital { font-style: italic; font-weight: 400; color: var(--rust); }

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.topbar.scrolled {
  background: rgba(16,27,38,0.92);
  backdrop-filter: blur(10px);
  padding: 12px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.topbar-brand {
  font-family: var(--serif); color: #fff; text-decoration: none;
  font-size: 1.05rem; letter-spacing: 0.5px;
}
.topbar-nav { display: none; align-items: center; gap: 28px; }
.topbar-nav a {
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.3px; transition: color 0.25s ease;
}
.topbar-nav a:hover { color: #fff; }
.topbar-cta {
  background: var(--rust); color: #fff !important; padding: 9px 18px; border-radius: 999px;
}
@media (min-width: 880px) { .topbar-nav { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--rust); color: #fff;
  box-shadow: 0 10px 30px rgba(181,80,46,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(181,80,46,0.45); }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost.dark { color: var(--ink); border-color: rgba(27,23,18,0.35); }
.btn-ghost.dark:hover { background: rgba(27,23,18,0.06); }
.btn.lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.12);
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,29,0.55) 0%, rgba(10,20,29,0.72) 55%, rgba(10,20,29,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 24px; max-width: 720px; }
.hero-logo {
  width: 96px; height: 96px; object-fit: cover; margin: 0 auto 22px;
  border-radius: 10px; box-shadow: 0 16px 34px rgba(0,0,0,0.45);
  border: 3px solid rgba(255,255,255,0.9);
}
.hero .eyebrow { color: var(--rust-light); text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem); color: #fff; margin-bottom: 18px;
}
.hero h1 span { color: var(--rust-light); font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 480px; margin: 0 auto 34px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.hero-scroll span {
  display: block; width: 1px; height: 46px; background: rgba(255,255,255,0.5);
  position: relative; overflow: hidden;
}
.hero-scroll span::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: #fff; animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{top:-100%;} 50%{top:0;} 100%{top:100%;} }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- storia ---------- */
.storia { padding: 130px 24px; background: var(--cream); }
.storia-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.storia h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 26px; }
.storia-text {
  font-size: 1.08rem; line-height: 1.75; color: #4a423a; font-weight: 300; margin: 0 auto 60px;
  max-width: 620px;
}
.storia-stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: 2rem; color: var(--rust); }
.stat-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6b6156;
}

/* ---------- atmosfera / mosaic ---------- */
.atmosfera { padding: 120px 20px 100px; background: var(--navy); color: #fff; }
.atmosfera h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 50px; }
.mosaic {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.mosaic-item {
  position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3/4;
}
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.mosaic-item:hover img { transform: scale(1.06); }
.mosaic-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(10,14,18,0.85));
  color: #fff; font-size: 0.86rem; font-weight: 400; letter-spacing: 0.2px;
  transform: translateY(8px); opacity: 0.9;
}
.m1 { grid-column: span 1; }
.m2 { grid-column: span 1; }
.m3 { grid-column: span 2; aspect-ratio: 16/9; }
.m4 { grid-column: span 1; }
.m5 { grid-column: span 1; }

@media (min-width: 720px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .m1 { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
  .m2 { grid-column: span 2; aspect-ratio: 16/9; }
  .m3 { grid-column: span 2; aspect-ratio: 16/9; }
  .m4 { grid-column: span 1; aspect-ratio: 3/4; }
  .m5 { grid-column: span 1; aspect-ratio: 3/4; }
}

/* ---------- tavola ---------- */
.tavola { padding: 120px 24px; background: var(--cream-dim); }
.tavola-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.tavola h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 60px; }
.tavola-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; text-align: left; margin-bottom: 40px;
}
@media (min-width: 760px) { .tavola-grid { grid-template-columns: repeat(3, 1fr); } }
.tavola-card {
  background: #fff; border-radius: 10px; padding: 34px 28px;
  box-shadow: 0 14px 40px rgba(27,23,18,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tavola-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,23,18,0.12); }
.tavola-num {
  font-family: var(--serif); font-size: 0.85rem; color: var(--rust-light); font-style: italic;
  display: block; margin-bottom: 14px;
}
.tavola-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tavola-card p { font-size: 0.94rem; color: #5b5248; font-weight: 300; line-height: 1.6; }
.tavola-note {
  font-size: 0.9rem; color: #7a7062; font-style: italic; font-family: var(--serif);
}

/* ---------- dove ---------- */
.dove { padding: 120px 24px; background: var(--cream); }
.dove-inner { max-width: 1080px; margin: 0 auto; }
.dove h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 46px; }
.dove-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 860px) { .dove-grid { grid-template-columns: 1fr 1.3fr; align-items: stretch; } }
.dove-info { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.dove-addr { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }
.dove-hours { color: #5b5248; font-weight: 300; line-height: 1.6; }
.dove-info .btn { width: fit-content; margin-top: 8px; }
.dove-map { border-radius: 10px; overflow: hidden; min-height: 340px; box-shadow: 0 20px 50px rgba(27,23,18,0.1); }
.dove-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- contatti ---------- */
.contatti { padding: 120px 24px; background: var(--navy-deep); color: #fff; text-align: center; }
.contatti h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 16px; }
.contatti-sub { color: rgba(255,255,255,0.7); font-weight: 300; margin-bottom: 40px; }
.contatti-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.08); padding: 24px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-badge {
  color: rgba(255,255,255,0.75); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-badge:hover { color: #fff; border-color: #fff; }
