/* ─── Reset & Root ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Italian flag palette */
  --gold:          #d4af37;
  --gold-dim:      #a8892c;
  --red:           #ce2b37;
  --red-dim:       #9a1f29;
  --green:         #009246;
  --green-bright:  #00b355;
  --white:         #f2f7f3;

  /* White backgrounds */
  --bg:            #ffffff;
  --bg-mid:        #f5f7f5;
  --bg-dark:       #eaeeea;

  /* Text — dark for white bg */
  --text-primary:  #0e1a11;  /* near-black dark green */
  --text-muted:    #3d5e47;  /* readable dark sage */
  --text-gold:     #b8920a;  /* darker gold, visible on white */

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --scroll-height: 800vh;
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Loader ────────────────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loader-brand { text-align: center; }

.loader-lodge {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.loader-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.loader-bar-wrap {
  width: min(280px, 60vw);
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
}

#loader-bar {
  height: 100%;
  background: linear-gradient(to right, var(--green), var(--white), var(--red));
  width: 0%;
  transition: width 0.1s linear;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.loader-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Italian flag decoration under loader brand */
.loader-flag {
  display: flex;
  height: 3px;
  width: 60px;
  gap: 1px;
}
.loader-flag span {
  flex: 1;
}
.loader-flag span:nth-child(1) { background: var(--green); }
.loader-flag span:nth-child(2) { background: #ffffff; border: 1px solid #ddd; }
.loader-flag span:nth-child(3) { background: var(--red); }

/* ─── Fixed Header ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.nav-logo-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

.site-nav { display: contents; }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  color: var(--green) !important;
  border: 1px solid rgba(0, 146, 70, 0.45);
  padding: 0.5em 1.3em !important;
  transition: border-color 0.25s ease, background 0.25s ease !important;
}

.nav-cta:hover {
  background: rgba(0, 146, 70, 0.1) !important;
  border-color: var(--green) !important;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero-standalone {
  position: relative;
  height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  z-index: 10;
  padding: 0 5vw;
  will-change: opacity;
}

.hero-inner {
  max-width: 85vw;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 2rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 14rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.3em;
  margin-bottom: 2.5rem;
}

.hero-word { display: block; }

.hero-word--italic {
  font-style: italic;
  color: var(--red);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  font-size: 1rem;
  color: var(--green);
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

.hero-address {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85em 2em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.28s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--gold {
  background: var(--green);
  color: var(--white);
}

.btn--gold:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 146, 70, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(206, 43, 55, 0.45);
}

.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ─── Canvas ────────────────────────────────────────────────────────────── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Dark Overlay (stats section) ─────────────────────────────────────── */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #080f09;
  opacity: 0;
  pointer-events: none;
}

/* ─── Marquee ───────────────────────────────────────────────────────────── */
.marquee-wrap {
  position: fixed;
  bottom: 10vh;
  left: 0;
  width: 100%;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.marquee-text {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.1;
  mix-blend-mode: overlay;
  will-change: transform;
  display: block;
}

/* ─── Scroll Container ──────────────────────────────────────────────────── */
#scroll-container {
  position: relative;
  height: var(--scroll-height);
  background: transparent;
}

/* ─── Content Sections ──────────────────────────────────────────────────── */
.scroll-section {
  position: absolute;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.scroll-section.is-active { pointer-events: auto; }

/* Side alignment zones */
.align-left  { padding-left: 5vw;  padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw;  }

.align-left  .section-inner,
.align-right .section-inner { max-width: 40vw; }

.section-inner {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 2.5rem 2.8rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, var(--green), var(--white), var(--red)) 1;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  display: block;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.section-heading em {
  font-style: italic;
  color: var(--red);
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1rem;
}

.section-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.section-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(0, 146, 70, 0.7);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

.section-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.section-top-link:hover { opacity: 1; color: var(--green); }

.section-rent-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.section-rent-link:hover { text-decoration: underline; }

/* Italian values list (heritage section) */
.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.value-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 146, 70, 0.15);
}

.value-row:last-child { border-bottom: none; }

.value-italian {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.value-desc {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
}

/* Activities list */
.section-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-list li {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  padding-left: 1.2em;
  position: relative;
}

.section-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  opacity: 0.75;
}

/* ─── Stats Section ─────────────────────────────────────────────────────── */
.section-stats {
  justify-content: center;
  align-items: center;
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  width: 90vw;
  max-width: 1100px;
  text-align: center;
  z-index: 6;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);  /* gold kept for premium stat numbers */
  line-height: 1;
  display: block;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(154, 136, 114, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
}

/* ─── CTA Section ───────────────────────────────────────────────────────── */
.section-cta .section-inner { gap: 1.5rem; }

.cta-button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.cta-address {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.cta-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.cta-social a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.cta-social a:hover { color: var(--green); }

/* ─── Italian Divider (tricolor flag stripe) ────────────────────────────── */
.italian-divider {
  display: block;
  width: 54px;
  height: 3px;
  background: linear-gradient(to right, var(--green) 33%, var(--white) 33% 66%, var(--red) 66%);
  margin-bottom: 1.5rem;
}

/* ─── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --scroll-height: 580vh; }

  .site-header { padding: 1.2rem 1.5rem; }
  .nav-links li:not(:last-child) { display: none; }

  .hero-heading { font-size: clamp(3.5rem, 14vw, 6rem); gap: 0 0.2em; }
  .hero-inner { max-width: 100%; }
  .hero-address { display: none; }

  .align-left,
  .align-right {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    padding: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 95vw;
  }

  .marquee-text { font-size: 18vw; }

  .cta-button-group { align-items: stretch; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: clamp(3rem, 16vw, 5rem); }
  .section-heading { font-size: clamp(2rem, 7vw, 3rem); }
}
