/* ═══════════════════════════════════════════════════════════
   Le Marche — Portale Turistico · Claude Design System
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amber:         #D97706;
  --amber-light:   #F59E0B;
  --amber-pale:    #FEF3C7;
  --amber-bg:      rgba(217,119,6,0.08);
  --dark:          #1C1917;
  --dark-mid:      #292524;
  --dark-soft:     #44403C;
  --surface:       #FFFFFF;
  --surface-warm:  #FAFAF8;
  --surface-sand:  #F5F0E8;
  --surface-sand2: #EDE8DF;
  --text:          #1C1917;
  --text-mid:      #57534E;
  --text-light:    #A8A29E;
  --border:        rgba(28,25,23,0.10);
  --border-light:  rgba(28,25,23,0.06);
  --green-dark:    #14532D;
  --green-mid:     #166534;
  /* Titoli: sans geometrico pesante. Il nome --font-serif resta
     per compatibilità con i 41 punti che già lo usano. */
  --font-display:  'Poppins', 'Inter', system-ui, sans-serif;
  --font-serif:    var(--font-display);
  --font-sans:     'Inter', system-ui, sans-serif;
  --section-pad:   clamp(72px, 9vw, 128px);
  --radius:        16px;
  --radius-sm:     8px;
  --radius-xs:     5px;
  --max-w:         1320px;
  --nav-h:         68px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card:   0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover:  0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-amber:  0 4px 24px rgba(217,119,6,0.30);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.6s cubic-bezier(.22,1,.36,1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--amber);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.section-title.light { color: #FFFFFF; }
.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  margin-top: 1rem;
  max-width: 640px;
}
.section-subtitle.light { color: rgba(255,255,255,0.72); }
.body-text {
  font-size: clamp(1rem, 1.05vw, 1.09rem);
  line-height: 1.85;
  color: var(--text-mid);
}
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5.5vw, 72px);
}
.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: none; }
.section-header .section-subtitle { margin: 0.9rem auto 0; }

/* ─── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(16px, 4vw, 56px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.35s, box-shadow 0.35s;
}
#navbar.scrolled {
  background: rgba(28,25,23,0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo span {
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a, .nav-btn-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-btn-link:hover {
  color: var(--amber-light);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active { color: var(--amber-light); }
.nav-btn-link { background: none; border: none; cursor: pointer; font-family: var(--font-sans); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(28,25,23,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  min-width: 200px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.20s, transform 0.20s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.40);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  padding: 9px 13px;
  border-radius: var(--radius-xs);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover { color: var(--amber-light); background: rgba(255,255,255,0.06); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,0.09);
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  padding: 3px 7px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font-sans);
}
.lang-btn:hover { color: rgba(255,255,255,0.80); background: rgba(255,255,255,0.08); }
.lang-btn.active { background: var(--amber); color: #FFFFFF; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.82);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
#nav-mobile {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--dark);
  z-index: 999;
  padding: 80px 28px 40px;
  transition: right 0.32s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.45);
}
#nav-mobile.open { right: 0; }
.mobile-nav-section {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 24px 0 8px;
}
#nav-mobile a {
  display: block;
  font-size: 1.00rem;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
#nav-mobile a:hover { color: var(--amber-light); }
.mobile-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-lang-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  padding: 5px 9px;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.mobile-lang-btn.active { background: var(--amber); border-color: var(--amber); color: #FFFFFF; }

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroScale 14s ease-out forwards;
}
@keyframes heroScale {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    120deg,
    rgba(28,25,23,0.88) 0%,
    rgba(28,25,23,0.55) 52%,
    rgba(28,25,23,0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 64px) clamp(24px, 6vw, 72px) clamp(64px, 8vw, 100px);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--amber);
  display: inline-block;
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 700;
  line-height: 0.92;
  color: #FFFFFF;
  max-width: 820px;
  margin-bottom: 1.6rem;
  letter-spacing: -0.025em;
}
.hero-accent {
  background: linear-gradient(135deg, #FDE68A 0%, var(--amber-light) 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-bottom: 2.4rem;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.48);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.40), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}
.hero-scroll:hover { color: var(--amber-light); }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-amber);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg);
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -80%; }
  100% { left: 160%; }
}
.btn-primary:hover {
  background: #B45309;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,119,6,0.44);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.32);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(28,25,23,0.22);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.btn-secondary-dark:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.32);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ─── PAGE HERO (subpages) ──────────────────────────────────── */
#page-hero {
  position: relative;
  height: clamp(280px, 44vh, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.90) 0%, rgba(28,25,23,0.45) 50%, rgba(28,25,23,0.12) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 6vw, 72px) clamp(32px, 5vw, 56px);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.page-hero-breadcrumb {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--amber-light); }
.page-hero-breadcrumb span { color: var(--amber-light); }
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.page-hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
}

/* ─── STATS BAND ────────────────────────────────────────────── */
#intro-band {
  background: var(--dark);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}
#intro-band::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,119,6,0.30), transparent);
}
.stat-item {
  padding: clamp(24px, 3vw, 44px) clamp(28px, 4.5vw, 56px);
  text-align: center;
  position: relative;
  flex: 1;
  min-width: 130px;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,0.07);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.stat-divider { display: none; }

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) clamp(24px, 6vw, 72px);
}
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.section-white  { background: var(--surface); }
.section-warm   { background: var(--surface-warm); }
.section-sand   { background: var(--surface-sand); }
.section-sand2  { background: var(--surface-sand2); }

/* Dark section */
.section-dark {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.section-dark > .inner { position: relative; z-index: 1; }

/* Green section */
.section-green {
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}
.section-green > .inner { position: relative; z-index: 1; }

/* ─── TWO-COLUMN LAYOUT ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ─── QUOTE BLOCK ───────────────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--amber);
  padding: 14px 20px;
  background: var(--amber-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.quote-block p {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
}

/* ─── INTRO IMAGE STACK ─────────────────────────────────────── */
.intro-img-wrap {
  position: relative;
  padding-bottom: 44px;
  padding-right: 28px;
}
.intro-img-main {
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.intro-img-main img { width: 100%; height: 100%; object-fit: cover; }
.intro-img-inset {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%;
  height: 210px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  border: 3px solid var(--surface);
}
.intro-img-inset img { width: 100%; height: 100%; object-fit: cover; }
.intro-img-badge {
  position: absolute;
  top: 24px; right: -14px;
  background: var(--amber);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-amber);
  animation: badgePulse 3.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.badge-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  sup { font-size: 1.00rem; }
}
.badge-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 2px;
}

/* ─── PARALLAX STRIP ────────────────────────────────────────── */
.parallax-strip {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 768px) {
  .parallax-strip { background-attachment: scroll; }
}
.parallax-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,25,23,0.88) 0%, rgba(28,25,23,0.65) 100%);
}
.parallax-inner {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 8vw, 100px) clamp(24px, 6vw, 72px);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.parallax-eyebrow {
  display: block;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.4rem;
}
.parallax-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  color: #FFFFFF;
  line-height: 1.28;
  max-width: 860px;
  margin: 0 auto 1.6rem;
  letter-spacing: -0.01em;
}
.parallax-attr {
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1.8rem;
}
.parallax-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.parallax-pill {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.parallax-pill:hover {
  background: var(--amber-bg);
  border-color: var(--amber);
  color: var(--amber-light);
}

/* ─── AD UNITS ──────────────────────────────────────────────── */
.ad-separator { border: none; border-top: 1px solid var(--border-light); margin: 0; }
.ad-unit {
  padding: 24px clamp(24px, 6vw, 72px);
  text-align: center;
  background: var(--surface-warm);
}
.ad-unit-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  height: 220px;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.card-text {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.card-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.card-link::after { content: '→'; }
.card-link:hover { gap: 10px; }

/* ─── ORNAMENT DIVIDERS ─────────────────────────────────────── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(24px, 6vw, 72px);
  color: var(--amber);
  background: var(--surface);
}
.ornament-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,119,6,0.25), transparent);
}
.ornament-divider svg { width: 36px; height: 18px; flex-shrink: 0; }
.ornament-divider-sand { background: var(--surface-sand); }

/* ─── PHOTO MOSAIC ──────────────────────────────────────────── */
.mosaic-section { padding-bottom: var(--section-pad); }
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 200px;
  gap: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.mosaic-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.mosaic-item.mosaic-tall { grid-row: span 2; }
.mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.mosaic-item:hover img { transform: scale(1.06); }
.mosaic-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(28,25,23,0.75), transparent);
  color: #FFFFFF;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.28s;
}
.mosaic-item:hover .mosaic-caption { opacity: 1; }

/* ─── CITIES MASONRY ────────────────────────────────────────── */
.cities-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 320px 200px;
  gap: 12px;
}
.cities-masonry .city-card:nth-child(1) { grid-column: span 2; }
.cities-masonry .city-card:nth-child(6) { grid-column: span 2; }
.city-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: block;
}
.city-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.city-card:hover img { transform: scale(1.07); }
.city-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 18px 16px;
  background: linear-gradient(to top, rgba(28,25,23,0.82), rgba(28,25,23,0.3) 60%, transparent);
  transition: padding 0.3s;
}
.city-card:hover .city-card-overlay { padding-bottom: 20px; }
.city-card-tag {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 4px;
}
.city-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
.city-card-arrow {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--amber);
  color: #FFFFFF;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
}
.city-card:hover .city-card-arrow { opacity: 1; transform: scale(1); }

/* ─── ITINERARY CARDS ───────────────────────────────────────── */
.itinerary-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  background: var(--surface);
  transition: transform 0.28s, box-shadow 0.28s;
}
.itinerary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.itinerary-img { overflow: hidden; }
.itinerary-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.itinerary-card:hover .itinerary-img img { transform: scale(1.05); }
.itinerary-body { padding: 28px 32px; }
.itinerary-days {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.itinerary-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.itinerary-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.itinerary-stop {
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--surface-sand);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ─── EVENTS ────────────────────────────────────────────────── */
.events-grid { display: flex; flex-direction: column; }
.event-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.event-date { width: 52px; flex-shrink: 0; text-align: center; }
.event-date-day {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--amber-light);
}
.event-date-month {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
.event-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 3px;
}
.event-where {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.42);
}
.event-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-tradition { background: rgba(120, 80, 40, 0.30); color: #D4956A; }
.badge-music     { background: rgba(59, 130, 246, 0.20); color: #93C5FD; }
.badge-history   { background: rgba(139, 74, 43, 0.25); color: #C4956A; }
.badge-food      { background: rgba(20, 83, 45, 0.30); color: #86EFAC; }

/* ─── FEATURE LIST ──────────────────────────────────────────── */
.feat-list { display: flex; flex-direction: column; gap: 22px; }
.feat-item { display: flex; gap: 16px; align-items: flex-start; }
.feat-icon {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.feat-icon-dark {
  background: rgba(255,255,255,0.08);
}
.feat-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.feat-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.feat-text-light { color: rgba(255,255,255,0.55); }

/* ─── IMAGE STACK ───────────────────────────────────────────── */
.img-stack {
  position: relative;
  padding-bottom: 40px;
  padding-right: 28px;
}
.img-stack-main {
  border-radius: var(--radius);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow-hover);
}
.img-stack-main img { width: 100%; height: 100%; object-fit: cover; }
.img-stack-inset {
  position: absolute;
  bottom: 0; right: 0;
  width: 48%;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.img-stack-inset img { width: 100%; height: 100%; object-fit: cover; }

/* ─── HIGHLIGHTS ────────────────────────────────────────────── */
.highlight-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.highlight-item {
  position: relative;
  height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.highlight-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.highlight-item:hover img { transform: scale(1.04); }
.highlight-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.88) 0%, rgba(28,25,23,0.3) 55%, transparent 100%);
  transition: background 0.3s;
}
.highlight-item:hover .highlight-overlay {
  background: linear-gradient(to top, rgba(28,25,23,0.92) 0%, rgba(28,25,23,0.45) 65%, rgba(28,25,23,0.15) 100%);
}
.highlight-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
}
.highlight-label-sm {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 8px;
}
.highlight-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.highlight-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 400px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── CTA BANNER ────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .cta-bg { background-attachment: scroll; }
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,25,23,0.88) 0%, rgba(28,25,23,0.70) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 9vw, 112px) clamp(24px, 6vw, 72px);
  max-width: 760px;
  text-align: center;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cta-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  margin-bottom: 2.2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ────────────────────────────────────────────────── */
#footer {
  background: var(--dark);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 72px) clamp(28px, 4vw, 44px);
  color: rgba(255,255,255,0.55);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: block;
}
.footer-logo span {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.42);
  max-width: 260px;
  margin-bottom: 20px;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.48);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--amber-light); }

/* ─── COOKIE CONSENT ────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(28,25,23,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: min(520px, calc(100vw - 32px));
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 16px 48px rgba(0,0,0,0.40);
}
#cookie-banner p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  flex: 1;
  min-width: 200px;
}
#cookie-banner a { color: var(--amber-light); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
#cookie-accept {
  background: var(--amber);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-xs);
  transition: background 0.2s;
  font-family: var(--font-sans);
}
#cookie-accept:hover { background: #B45309; }
#cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
}
#cookie-decline:hover { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.30); }

/* ─── HIDDEN UTILITY ────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── BACK TO TOP ───────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: var(--amber);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  box-shadow: var(--shadow-amber);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: #B45309; }

/* ─── FOOTER CLASSES (matching components.js) ───────────────────── */
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-copy { font-size: 0.84rem; color: rgba(255,255,255,0.28); }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.84rem; color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--amber-light); }
.footer-partner-link { font-size: 0.84rem; color: rgba(255,255,255,0.35); display: flex; align-items: center; gap: 6px; }
.footer-partner-link a { color: var(--amber-light); font-weight: 600; transition: color 0.2s; }
.footer-partner-link a:hover { color: #FFFFFF; }

/* ─── STATS BAND (subpages) ─────────────────────────────────────── */
.stats-band {
  background: var(--dark);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}
.stats-band::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,119,6,0.30), transparent);
}

/* ─── PARTNER CALLOUT ───────────────────────────────────────────── */
.partner-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.22);
  border-radius: var(--radius-xs);
  font-size: 0.89rem;
  color: var(--text-mid);
  line-height: 1.4;
}
.partner-callout a { color: var(--amber); font-weight: 700; transition: color 0.2s; }
.partner-callout a:hover { color: #B45309; }
.partner-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(217,119,6,0.30);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.partner-cta-link:hover { color: #B45309; border-color: rgba(217,119,6,0.70); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cities-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .cities-masonry .city-card { height: 240px; grid-column: span 1 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .highlight-pair { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .lang-switcher { display: none; }
  .nav-hamburger { display: flex; }
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .two-col.reverse > * { direction: ltr; }
  .cards-3 { grid-template-columns: 1fr; }
  .highlight-pair { grid-template-columns: 1fr; }
  .highlight-item { height: 320px; }
  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .mosaic-item.mosaic-tall { grid-row: span 1; }
  .cities-masonry { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cities-masonry .city-card { height: 220px; grid-column: span 1 !important; }
  .itinerary-card { grid-template-columns: 1fr; }
  .itinerary-img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .intro-img-wrap { padding-bottom: 32px; padding-right: 20px; }
  .intro-img-main { height: 300px; }
  .intro-img-badge { right: -8px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary, .btn-secondary-dark, .btn-outline { width: 100%; justify-content: center; }
  .stat-item { min-width: 100px; }
  .mosaic-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .mosaic-item.mosaic-tall { grid-row: span 1; }
}

/* ═══════════════════════════════════════════════════════════
   RIFINITURA EDITORIALE
   ═══════════════════════════════════════════════════════════ */

/* ─── Misura di lettura ─────────────────────────────────────
   Righe oltre ~75 caratteri stancano l'occhio: l'occhio perde
   il capo riga. Le colonne di testo lungo vengono limitate.   */
.body-text,
.card-text,
.feat-text,
.highlight-text,
.two-col .body-text { max-width: 66ch; }
.section-header .body-text,
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ─── Correzione ottica del tracking ────────────────────────
   Il maiuscoletto ora è più grande: a parità di spaziatura
   apparirebbe troppo aperto. Si stringe leggermente.          */
.section-label      { letter-spacing: 0.16em; }
.hero-eyebrow,
.parallax-eyebrow   { letter-spacing: 0.20em; }
.card-tag,
.city-card-tag,
.event-badge,
.footer-col-title,
.stat-label,
.badge-lbl,
.highlight-label-sm { letter-spacing: 0.13em; }
.nav-links a,
.nav-btn-link       { letter-spacing: 0.06em; }

/* Titoli grandi: crenatura più stretta, come nella stampa */
.section-title,
.hero-title { font-kerning: normal; font-variant-ligatures: common-ligatures; }

/* ─── Testo di lettura ──────────────────────────────────────
   Cifre proporzionali nel corpo, tabellari nelle statistiche. */
body { font-variant-numeric: proportional-nums; }
.stat-number { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Sillabazione italiana: evita fiumi di spazio nelle colonne strette */
.body-text, .card-text, .feat-text, .highlight-text {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}

/* ─── Stati di messa a fuoco ────────────────────────────────
   Necessari per la navigazione da tastiera.                   */
a:focus-visible,
button:focus-visible,
.lang-btn:focus-visible,
.nav-btn-link:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ─── Selezione ─────────────────────────────────────────────*/
::selection { background: var(--amber-pale); color: var(--dark); }

/* ─── Movimento ridotto ─────────────────────────────────────
   Rispetta l'impostazione di sistema: niente parallasse né
   comparse, il contenuto resta comunque visibile.             */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Immagini ──────────────────────────────────────────────
   Sfondo neutro mentre l'immagine remota carica, così le card
   non lampeggiano di bianco.                                  */
.card img, .city-card img, .mosaic-item img,
.highlight-item img, .itinerary-img img {
  background: var(--surface-sand2);
}

/* ─── Stampa ────────────────────────────────────────────────*/
@media print {
  #navbar, #nav-mobile, .hero-scroll, .ad-unit, .ad-separator,
  #cookie-banner, .lang-switcher { display: none !important; }
  body { color: #000; background: #fff; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* ─── Profondità degli hero ─────────────────────────────────
   Le foto di paesaggio marchigiano sono spesso velate dalla
   foschia: contrasto e saturazione recuperano il soggetto.
   Una vignettatura radiale sopra la sfumatura lineare dà
   profondità e stacca il testo dallo sfondo.                  */
.hero-bg, .page-hero-bg {
  filter: saturate(1.18) contrast(1.08);
}
/* La sfumatura si concentra dove sta il testo (a sinistra) e
   lascia scoperto il mare sulla destra: è il soggetto. */
.hero-overlay {
  background:
    radial-gradient(105% 78% at 14% 58%, rgba(10,14,20,0.72) 0%, rgba(10,14,20,0) 66%),
    linear-gradient(104deg,
      rgba(10,14,20,0.80) 0%,
      rgba(10,14,20,0.42) 42%,
      rgba(10,14,20,0.06) 74%,
      rgba(10,14,20,0.00) 100%);
}
.page-hero-overlay {
  background:
    radial-gradient(110% 80% at 12% 88%, rgba(12,10,9,0.55) 0%, rgba(12,10,9,0) 60%),
    linear-gradient(to top,
      rgba(24,20,17,0.92) 0%,
      rgba(24,20,17,0.46) 50%,
      rgba(24,20,17,0.10) 100%);
}

/* Il testo dell'hero guadagna un'ombra appena percettibile:
   regge anche sulle porzioni chiare della fotografia. */
.hero-title, .hero-subtitle, .hero-eyebrow,
.page-hero-title, .page-hero-subtitle {
  text-shadow: 0 1px 24px rgba(0,0,0,0.34);
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTI MANCANTI
   Classi presenti nell'HTML ma mai definite: intere sezioni
   di eventi.html, itinerari.html, storia.html, cultura.html e
   delle pagine città venivano rese senza stile.
   ═══════════════════════════════════════════════════════════ */

/* ─── Griglie ───────────────────────────────────────────────*/
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ─── Etichette ─────────────────────────────────────────────*/
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-mid);
  background: var(--surface-sand);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.tag-amber {
  color: #8A4B04;
  background: var(--amber-bg);
  border-color: rgba(217,119,6,0.28);
}
.section-dark .tag, .section-green .tag {
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
.section-dark .tag-amber, .section-green .tag-amber {
  color: var(--amber-light);
  background: rgba(217,119,6,0.16);
  border-color: rgba(217,119,6,0.34);
}

/* ─── Blocchi informativi ───────────────────────────────────*/
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 24px;
}
.info-block {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.info-icon { font-size: 1.7rem; line-height: 1; margin-bottom: 14px; }
.info-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.info-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.info-list strong { color: var(--text); font-weight: 600; }

/* ─── Schede personaggio ────────────────────────────────────*/
.person-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.person-portrait {
  height: 220px;
  background: var(--surface-sand2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.person-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person-body { padding: 20px 22px 24px; }
.person-years {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.person-name {
  font-family: var(--font-serif);
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 8px;
}
.person-role { font-size: 0.92rem; line-height: 1.7; color: var(--text-mid); }

/* ─── Linea del tempo ───────────────────────────────────────*/
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--amber) 0%, rgba(217,119,6,0.28) 60%, transparent 100%);
}
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--amber);
  box-shadow: 0 0 0 4px var(--surface);
}
.tl-dot {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid rgba(217,119,6,0.22);
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.tl-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 8px;
}
.tl-text { font-size: 0.98rem; line-height: 1.8; color: var(--text-mid); max-width: 68ch; }
.section-sand .tl-item::before { background: var(--surface-sand); box-shadow: 0 0 0 4px var(--surface-sand); }

/* ─── Eventi ────────────────────────────────────────────────*/
.month-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}
.event-filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--amber); border-color: rgba(217,119,6,0.42); }
.filter-btn.active {
  color: #FFFFFF;
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: var(--shadow-amber);
}
.event-list { display: flex; flex-direction: column; }

/* Le righe evento di eventi.html stanno su fondo CHIARO: le
   regole .event-row originali erano scritte per la sezione
   scura della home e rendevano il titolo bianco su bianco.  */
.event-list .event-row {
  align-items: flex-start;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
}
.event-list .event-row:last-child { border-bottom: none; }
.event-date-block {
  flex-shrink: 0;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background: var(--amber-bg);
  border: 1px solid rgba(217,119,6,0.20);
  border-radius: var(--radius-sm);
}
.event-month {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--amber);
}
.event-day {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}
.event-body { flex: 1; min-width: 0; }
.event-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
}
.event-list .event-title {
  font-family: var(--font-serif);
  font-size: clamp(1.14rem, 1.7vw, 1.34rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0;
}
.event-desc { font-size: 0.94rem; line-height: 1.75; color: var(--text-mid); max-width: 72ch; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--text-light);
}
.event-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
/* Colore per categoria: aiuta a scorrere il calendario a colpo d'occhio */
.event-tag.opera   { background: rgba(124,58,167,0.12); color: #6B21A8; }
.event-tag.storico { background: rgba(180,83,9,0.13);   color: #92400E; }
.event-tag.sagra   { background: rgba(22,101,52,0.12);  color: var(--green-mid); }
.event-tag.arte    { background: rgba(30,64,175,0.11);  color: #1E40AF; }
.event-tag.natura  { background: rgba(13,148,136,0.12); color: #0F766E; }

/* ─── Itinerari ─────────────────────────────────────────────*/
.itinerary-header { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.itinerary-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--amber);
  padding: 6px 14px;
  border-radius: 100px;
}
.itinerary-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.day-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
}
.itinerary-day {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.day-number {
  font-family: var(--font-serif);
  font-size: 1.36rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
}
.day-title {
  font-family: var(--font-serif);
  font-size: clamp(1.24rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 9px;
}
.day-desc { font-size: 0.96rem; line-height: 1.8; color: var(--text-mid); max-width: 72ch; }
.day-stops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.stop {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--surface-sand);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.itinerary-tip {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--text-mid);
}
.itinerary-tip strong { color: #8A4B04; font-weight: 700; }

/* ─── Responsive dei nuovi componenti ───────────────────────*/
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .itinerary-day { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .timeline { padding-left: 26px; }
  .tl-item::before { left: -23px; }
  .event-list .event-row { gap: 15px; }
  .person-portrait { height: 200px; }
}

/* Contenitori: min-width:0 evita che testo lungo sfondi la griglia */
.day-content, .tl-body { min-width: 0; }

/* ═══════════════════════════════════════════════════════════
   TARATURA PER IL SANS GEOMETRICO
   Poppins ha forme circolari e altezza-x alta: alle misure da
   display chiede crenatura più stretta e interlinea un filo
   più alta di quanto volesse il serif precedente.
   ═══════════════════════════════════════════════════════════ */
.hero-title {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.section-title,
.page-hero-title,
.cta-title,
.month-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.tl-title, .day-title, .info-title,
.person-name, .card-title, .city-card-title,
.event-list .event-title, .feat-title {
  font-weight: 700;
  letter-spacing: -0.018em;
}
.nav-logo { font-weight: 700; letter-spacing: -0.03em; }

/* I sottotitoli in peso 300 su un geometrico risultano fragili:
   400 con interlinea ampia regge meglio la lettura. */
.section-subtitle, .hero-subtitle, .page-hero-subtitle {
  font-weight: 400;
  letter-spacing: -0.004em;
  line-height: 1.68;
}

/* Le citazioni restano in corsivo ma con peso pieno */
.quote-block p { font-weight: 400; letter-spacing: -0.005em; }

/* Numeri delle statistiche: il geometrico li rende bene stretti */
.stat-number { font-weight: 700; letter-spacing: -0.035em; }
