*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: #16221A; font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Editorial easing curves */
:root {
  --ease-cine:   cubic-bezier(.2, .7, 0, 1);
  --ease-soft:   cubic-bezier(.32, .72, .25, 1);
  --ease-edit:   cubic-bezier(.16, 1, .3, 1);
}

:root {
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --dark:   #1A1208;
  --ivory:  #F3EDD8;
  --cream:  #E8E0C8;
  --sand:   #C4BA9E;
  --viola:  #6B3FA0;
  --green:  #7A9428;
  --forest: #1E3810;
}

/* Grain cinematografico — pellicola (sottilissima, immobile) */
.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)' opacity='0.10'/%3E%3C/svg%3E");
  opacity: 0.42; mix-blend-mode: overlay;
}

/* Paper texture per sezioni chiare */
.paper {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.60' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Scroll reveal — editorial blur-to-focus, slow & soft */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(3px);
  transition:
    opacity 1.8s var(--ease-edit),
    transform 1.8s var(--ease-edit),
    filter   1.8s var(--ease-edit);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-slow {
  transition-duration: 2.4s;
  transform: translateY(56px);
  filter: blur(4px);
}
.d1 { transition-delay: .22s; } .d2 { transition-delay: .44s; } .d3 { transition-delay: .68s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-slow { transition: opacity .5s ease, transform .5s ease; filter: none; transform: none; opacity: 1; }
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 72px;
  background: transparent;
  transition:
    background 1.1s var(--ease-soft),
    backdrop-filter 1.1s var(--ease-soft),
    border-color 1.1s var(--ease-soft),
    height .9s var(--ease-soft),
    box-shadow 1.1s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.22), transparent);
  opacity: 1;
  transition: opacity 1.1s var(--ease-soft);
  pointer-events: none;
}
.nav.scrolled {
  background: rgba(26,18,8,.72);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.05);
  height: 64px;
  box-shadow: 0 12px 40px -22px rgba(0,0,0,.55);
}
.nav.scrolled::before { opacity: 0; }
.nav-logo {
  height: 32px; object-fit: contain;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .6s var(--ease-edit), transform .6s var(--ease-edit);
}
.nav.scrolled .nav-logo { opacity: .88; transform: translateY(0); }
.nav-right { display: flex; gap: 36px; align-items: center; }
.nav-divider { width: 1px; height: 14px; background: rgba(255,255,255,.15); }

.nl {
  position: relative;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: .02em; color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: color .9s var(--ease-soft);
  padding: 4px 2px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
}
.nl::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: rgba(255,255,255,.85);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1s var(--ease-edit);
}
.nl:hover { color: #fff; }
.nl:hover::after { transform: scaleX(1); }

/* Buttons */
.btn-p {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 32px; background: var(--viola); color: #fff;
  border: none; border-radius: 2px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition:
    background .8s var(--ease-soft),
    transform .8s var(--ease-edit),
    box-shadow .8s var(--ease-edit);
  box-shadow: 0 6px 20px -10px rgba(107,63,160,.45);
}
.btn-p:hover {
  background: #7e50ba;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -14px rgba(107,63,160,.55);
}

.nav .btn-p { padding: 9px 22px; font-size: 12px; letter-spacing: .04em; }

.btn-hero-dark {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 32px; background: rgba(26,18,8,0.5); color: #fff;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 2px;
  cursor: pointer; backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .5s var(--ease-edit), transform .5s var(--ease-edit), border-color .5s var(--ease-edit);
}
.btn-hero-dark:hover { background: rgba(26,18,8,0.8); transform: translateY(-2px); border-color: rgba(255,255,255,.4); }

.btn-d {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .04em; padding: 14px 40px;
  background: var(--dark); color: #fff;
  border: none; border-radius: 2px; cursor: pointer;
  transition:
    opacity .8s var(--ease-soft),
    transform .8s var(--ease-edit),
    box-shadow .8s var(--ease-edit);
  box-shadow: 0 6px 22px -14px rgba(26,18,8,.55);
}
.btn-d:hover {
  opacity: .88; transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(26,18,8,.6);
}

.btn-t {
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: var(--forest); background: none; border: none; cursor: pointer;
  border-bottom: 1px solid rgba(30,56,16,.3);
  padding-bottom: 4px; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .5s var(--ease-edit), gap .5s var(--ease-edit);
}
.btn-t:hover { border-color: var(--forest); gap: 14px; }

/* Image zoom — slow cinematic */
.z-wrap { overflow: hidden; position: relative; }
.z-img {
  transition: transform 2.4s var(--ease-cine), filter 2.4s var(--ease-cine);
  will-change: transform;
}
.z-wrap:hover .z-img { transform: scale(1.035); }

@keyframes pulse { 0%,100%{opacity:.30;transform:translateY(0)} 50%{opacity:.06;transform:translateY(9px)} }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* Stripe bar */
.stripe-bar { display: flex; height: 3px; }
.stripe-bar > div { flex: 1; }

/* HERO */
.hero {
  position: relative; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0f0a04;
}
.hero-stripe { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.hero-photo {
  position: absolute; inset: 0;
  overflow: hidden;
  will-change: transform;
  /* Base darkening so white type reads cleanly. main.js animates an
     additional brightness on the inner layer; the two filters stack. */
  filter: brightness(.82) saturate(.92) contrast(1.04);
}
.hero-photo-inner {
  position: absolute;
  top: -140px; left: -4%; right: -4%;
  height: calc(100% + 220px);
  background-image: url('../monviso-hero.jpg');
  background-size: cover;
  background-position: center 48%;
  transform: scale(1.05);
  will-change: transform, filter;
  transition: filter .8s var(--ease-soft);
}

/* Cinematic vignette + grade */
.hero-vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    /* central darken right under the headline — keeps white type readable */
    radial-gradient(ellipse 65% 55% at 50% 52%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 45%, transparent 75%),
    /* outer vignette */
    radial-gradient(ellipse 120% 90% at 50% 38%, transparent 35%, rgba(0,0,0,.55) 100%),
    /* top/bottom edges */
    linear-gradient(to bottom, rgba(15,10,4,.45) 0%, rgba(15,10,4,.10) 30%, transparent 55%, rgba(15,10,4,.70) 100%);
}
.hero-grade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, rgba(107,63,160,.07) 0%, rgba(247,147,30,.04) 60%, rgba(46,125,27,.07) 100%);
  mix-blend-mode: soft-light;
}
.hero-content {
  position: relative; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 40px; margin-top: -30px;
  will-change: transform, opacity;
}
.hero-logo {
  width: clamp(440px, 52vw, 780px);
  object-fit: contain; display: block;
  margin-bottom: 32px;
  filter:
    drop-shadow(0 8px 28px rgba(0,0,0,.7))
    drop-shadow(0 2px 6px rgba(0,0,0,.5));
  opacity: 0;
  transform: translateY(34px) scale(.985);
  animation: hero-rise 2.6s var(--ease-edit) .4s forwards;
}
.hero-divider {
  width: 0; height: 1px;
  background: rgba(255,255,255,.38);
  margin-bottom: 24px;
  animation: hero-rule 2.2s var(--ease-edit) 1.3s forwards;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300; font-style: italic;
  color: #fff;
  line-height: 1.65; margin-bottom: 24px;
  max-width: 460px;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise-soft 2.4s var(--ease-edit) 1.55s forwards;
  text-shadow:
    0 2px 18px rgba(0,0,0,.7),
    0 1px 3px rgba(0,0,0,.55);
}
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 300;
  color: rgba(255,255,255,.92);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise-soft 2.4s var(--ease-edit) 1.85s forwards;
  text-shadow:
    0 2px 14px rgba(0,0,0,.65),
    0 1px 2px rgba(0,0,0,.45);
}
.hero-ctas {
  display: flex; gap: 14px; align-items: center;
  opacity: 0; transform: translateY(18px);
  animation: hero-rise-soft 2.2s var(--ease-edit) 1.95s forwards;
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-rise-soft {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-rule {
  to { width: 160px; }
}

.scroll-hint {
  position: absolute; bottom: 120px; right: 56px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
  animation: hero-rise-soft 2s var(--ease-edit) 2.5s forwards;
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.22));
  animation: pulse 4.5s ease-in-out infinite;
}
.scroll-label {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.2);
}

/* Mountain divider */
.mountain-divider {
  position: absolute; bottom: -2px; left: 0; right: 0;
  z-index: 9; line-height: 0; pointer-events: none;
}
.mountain-divider svg {
  width: 100%; height: min(7vw, 90px); display: block;
}

/* Green → ivory torn paper */
.green-to-content { background: #7A9428; line-height: 0; margin-top: -2px; }
.green-to-content svg { width: 100%; display: block; }

/* Sections — generic */
/* Atmospheric section fade-in: the section itself gets a subtle warm wash on enter */
section.paper {
  position: relative;
}
section.paper::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,18,8,.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 2.4s var(--ease-edit);
}
section.paper.in-view::before { opacity: 1; }

.section-label-row {
  display: flex; align-items: center; gap: 18px; margin-bottom: 80px;
}
.section-label-row .label {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(28,18,6,.32); white-space: nowrap;
}
.section-label-row .rule {
  height: 1px; flex: 1;
  background: linear-gradient(to right, #C4BA9E, transparent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 2.2s var(--ease-edit) .2s;
}
.section-label-row.in .rule { transform: scaleX(1); }

/* IL DISTRETTO */
.il-distretto {
  background: #F3EDD8;
  padding-top: 80px; padding-bottom: 100px;
}
.il-distretto-inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 48px; text-align: center;
}
.il-distretto .kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(28,18,6,.35);
  display: block; margin-bottom: 24px;
}
.il-distretto h2 {
  font-family: var(--serif);
  font-weight: 400; font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.08; letter-spacing: -.01em;
  color: #1A1208; margin: 0 0 28px;
}
.il-distretto p {
  font-family: var(--sans);
  font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.52); line-height: 1.9;
  max-width: 620px; margin: 0 auto 52px;
}
.il-distretto .arrow-wrap {
  display: flex; justify-content: center;
}
.il-distretto .arrow {
  color: #6B3FA0; font-size: 28px; line-height: 1;
  animation: bounce 4s ease-in-out infinite;
  cursor: pointer;
  opacity: .8;
}

/* CHI SIAMO */
.chi-siamo {
  background: #EDE6D2;
  padding-top: 100px; padding-bottom: 140px;
}
.chi-siamo .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}
.chi-siamo .grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 104px; align-items: start;
}
.chi-siamo .img-col { position: relative; }
.chi-siamo .accent-strip {
  position: absolute; left: -20px; top: 44px; bottom: 44px;
  width: 2px;
  background: linear-gradient(to bottom, #F7931E, #6B3FA0);
  border-radius: 2px;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.6s var(--ease-edit) .2s;
}
.chi-siamo .img-col.in .accent-strip,
.chi-siamo .img-col .accent-strip.in { transform: scaleY(1); }
.reveal.in .accent-strip { transform: scaleY(1); }

/* Editorial card */
.editorial-card {
  position: relative;
  transition:
    transform 1.8s var(--ease-edit),
    box-shadow 1.8s var(--ease-edit);
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 22px 56px -28px rgba(26,18,8,.4),
    0 4px 12px -6px rgba(26,18,8,.15);
}
.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 34px 68px -32px rgba(26,18,8,.5),
    0 8px 18px -8px rgba(26,18,8,.2);
}
.card-frame { position: relative; overflow: hidden; }
.card-corner {
  position: absolute; width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,.22);
  opacity: 0;
  transition: opacity 1.6s var(--ease-edit);
  pointer-events: none;
}
.card-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.card-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.card-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.card-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.editorial-card:hover .card-corner { opacity: 1; }
.card-caption {
  display: block;
  margin-top: 14px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.34);
}
.placeholder-label {
  font-family: var(--sans); font-size: 11px;
  color: rgba(255,255,255,.16); letter-spacing: .04em;
}

.chi-siamo .img-placeholder {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(247,147,30,.12) 0%, transparent 55%),
    linear-gradient(158deg, #172a0b 0%, #244915 45%, #376221 80%, #1b3a0d 100%);
  aspect-ratio: 3/4;
  display: flex; align-items: flex-end;
  padding: 24px 28px;
  position: relative;
}
.chi-siamo .img-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.35) 100%),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}
.chi-siamo .img-placeholder span { position: relative; z-index: 1; }
.chi-siamo .stat-floating {
  position: absolute; bottom: -36px; right: -32px;
  background: #1A1208; padding: 28px 34px;
  box-shadow:
    0 22px 60px -22px rgba(26,18,8,.5),
    0 6px 16px -8px rgba(26,18,8,.25);
  transition: transform 1.6s var(--ease-edit), box-shadow 1.6s var(--ease-edit);
}
.chi-siamo .stat-floating::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, rgba(247,147,30,.6), rgba(107,63,160,.6));
}
.chi-siamo .stat-floating:hover {
  transform: translate(-2px, -2px);
}
.chi-siamo .stat-floating .num {
  font-family: var(--serif); font-size: 60px;
  font-weight: 500; color: #F7931E; line-height: 1;
}
.chi-siamo .stat-floating .lbl {
  font-family: var(--sans); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,.34);
  display: block; margin-top: 10px; line-height: 1.75;
}

.chi-siamo .text-col { padding-top: 8px; }
.chi-siamo .text-col h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.1; letter-spacing: -.01em;
  color: #1A1208; margin: 0 0 36px;
}
.chi-siamo .text-col h2 em { color: #1E3810; font-style: italic; }
.chi-siamo .pullquote {
  border-left: 2px solid #F7931E;
  padding-left: 24px; margin-bottom: 36px;
  position: relative;
}
.chi-siamo .pullquote::before {
  content: "“";
  position: absolute;
  left: 18px; top: -34px;
  font-family: var(--serif);
  font-size: 96px; line-height: 1;
  color: rgba(247,147,30,.18);
  pointer-events: none;
}
.chi-siamo .pullquote p {
  font-family: var(--serif);
  font-size: 20px; font-style: italic; font-weight: 300;
  color: rgba(28,18,6,.48); line-height: 1.68; margin: 0;
}
.chi-siamo .body-para {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.52); line-height: 1.92;
}
.chi-siamo .body-para.m1 { margin-bottom: 22px; }
.chi-siamo .body-para.m2 { margin-bottom: 52px; }
.chi-siamo .stats-row {
  display: flex; gap: 52px;
  padding-top: 32px;
  border-top: 1px solid #C4BA9E;
  margin-bottom: 44px;
}
.chi-siamo .stats-row .num {
  font-family: var(--serif); font-size: 40px;
  font-weight: 500; line-height: 1;
}
.chi-siamo .stats-row .unit {
  font-family: var(--sans); font-size: 11px; font-weight: 300;
  color: rgba(28,18,6,.32);
  display: block; margin-top: 8px;
}

/* TERRITORIO */
.territorio {
  background: #E4DBCA;
  padding-top: 100px; padding-bottom: 130px;
}
.territorio .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}
.territorio .section-label-row .label { color: rgba(28,18,6,.26); }
.territorio .section-label-row .rule { background: #BDB29A; }
.territorio .grid {
  display: grid; grid-template-columns: 55fr 38fr;
  gap: 88px; align-items: center;
}
.territorio .map-col { position: relative; }
.territorio .map-placeholder {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(247,147,30,.10) 0%, transparent 60%),
    #253F14;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.territorio .map-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 36px, rgba(255,255,255,.018) 36px, rgba(255,255,255,.018) 37px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.3) 100%);
  pointer-events: none;
}
.territorio .map-placeholder svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; opacity: .1;
}
.territorio .map-placeholder .placeholder-label {
  position: relative; z-index: 1;
  color: rgba(255,255,255,.26);
}
.territorio .pin {
  position: absolute;
  background: #F7931E; color: #1A1208;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 11px 4px 8px; border-radius: 2px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,.4);
  transform: translateY(-50%);
  transition: transform 1.2s var(--ease-edit), box-shadow 1.2s var(--ease-edit);
  opacity: 0;
  animation: pin-fade 1.8s var(--ease-edit) forwards;
}
.territorio .pin:nth-of-type(1) { animation-delay: 1.2s; }
.territorio .pin:nth-of-type(2) { animation-delay: 1.5s; }
.territorio .pin:nth-of-type(3) { animation-delay: 1.8s; }
.territorio .pin:nth-of-type(4) { animation-delay: 2.1s; }
.territorio .pin:hover { transform: translateY(calc(-50% - 2px)); }
.territorio .pin .pin-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #1A1208;
}
@keyframes pin-fade {
  from { opacity: 0; transform: translateY(calc(-50% - 6px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

.territorio .text-col h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 2.8vw, 48px);
  line-height: 1.12; color: #1A1208; margin: 0 0 24px;
}
.territorio .text-col h2 em { color: #1E3810; font-style: italic; }
.territorio .text-col p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.52); line-height: 1.92;
  margin-bottom: 36px;
}
.territorio .feature-list {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 48px;
}
.territorio .feature-list .row {
  display: flex; align-items: center; gap: 12px;
  transition: transform 1.2s var(--ease-edit);
}
.territorio .feature-list .row:hover { transform: translateX(4px); }
.territorio .feature-list .dot {
  width: 5px; height: 5px; border-radius: 50%;
  flex-shrink: 0;
}
.territorio .feature-list span {
  font-family: var(--sans); font-size: 14px; font-weight: 300;
  color: rgba(28,18,6,.52);
}

/* ══════════════════════════════════════════════
   SECTION TRANSITIONS — torn paper between strata
   ═════════════════════════════════════════════ */
.paper-to-dark { background: #EDE6D2; line-height: 0; margin-top: -1px; }
.paper-to-dark svg { width: 100%; height: 42px; display: block; }
.dark-to-paper { background: #1A1208; line-height: 0; margin-top: -1px; }
.dark-to-paper svg { width: 100%; height: 42px; display: block; }

/* ══════════════════════════════════════════════
   IDENTITÀ DEL MARCHIO  (dark, editorial storytelling)
   ═════════════════════════════════════════════ */
.identita {
  position: relative;
  background: #1A1208;
  color: #F3EDD8;
  padding: 140px 0 160px;
  overflow: hidden;
}
.identita-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: .55; mix-blend-mode: overlay;
}
.identita-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(247,147,30,.07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 20% 100%, rgba(107,63,160,.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(46,125,27,.06) 0%, transparent 60%);
}
.identita .container {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}

/* Dark section label */
.section-label-row.dark .label { color: rgba(243,237,216,.36); letter-spacing: .14em; }
.section-label-row.dark .rule {
  background: linear-gradient(to right, rgba(243,237,216,.18), transparent);
}

.identita-intro {
  max-width: 760px; margin: 0 auto 80px; text-align: center;
}
.identita-intro .kicker {
  display: block; margin-bottom: 28px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(247,147,30,.7);
}
.identita-intro h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.06; letter-spacing: -.01em;
  color: #F3EDD8; margin: 0 0 32px;
}
.identita-intro h2 em {
  font-style: italic;
  color: #F7931E;
  font-weight: 300;
}
.identita-intro p {
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: rgba(243,237,216,.6); line-height: 1.9;
  max-width: 600px; margin: 0 auto;
}

.identita-grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: 100px; align-items: center;
  margin-bottom: 80px;
}

/* Mark stage */
.identita-mark {
  position: relative;
  text-align: center;
}
.identita-mark-stage {
  position: relative;
  padding: 80px 60px 70px;
  background:
    linear-gradient(180deg, rgba(243,237,216,.025) 0%, rgba(243,237,216,.015) 100%);
  border: 1px solid rgba(243,237,216,.08);
  overflow: hidden;
}
.identita-rays {
  position: absolute; inset: -40%;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg, rgba(247,147,30,.06) 30deg, transparent 60deg,
      transparent 90deg, rgba(107,63,160,.06) 120deg, transparent 150deg,
      transparent 180deg, rgba(46,125,27,.06) 210deg, transparent 240deg,
      transparent 270deg, rgba(217,31,38,.05) 300deg, transparent 330deg
    );
  filter: blur(40px);
  pointer-events: none;
  animation: identita-rays-spin 60s linear infinite;
}
@keyframes identita-rays-spin {
  to { transform: rotate(360deg); }
}
.identita-mark-stage img {
  position: relative;
  width: 100%; max-width: 320px;
  display: block; margin: 0 auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.4));
}
.identita-stripe {
  display: flex; height: 6px;
  margin-top: 28px;
  border: 1px solid rgba(243,237,216,.08);
}
.identita-stripe > div {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.identita-stripe > div span {
  position: absolute; top: 14px;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: .14em;
  color: rgba(243,237,216,.32);
}
.identita-mark-caption {
  display: block; margin-top: 44px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243,237,216,.26);
}

/* Meaning list */
.identita-meanings {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 36px;
}
.identita-meanings li {
  display: flex; gap: 28px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(243,237,216,.06);
}
.identita-meanings li:last-child { border-bottom: 0; }
.identita-meanings .swatch {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 8px;
  box-shadow:
    0 0 0 1px rgba(243,237,216,.08),
    0 4px 18px -6px currentColor;
  position: relative;
}
.identita-meanings .swatch::after {
  content: "";
  position: absolute; left: 24px; top: 50%;
  width: 16px; height: 1px;
  background: rgba(243,237,216,.18);
}
.identita-meanings h6 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 19px; line-height: 1.2;
  color: #F3EDD8;
  margin: 0 0 8px;
}
.identita-meanings p {
  font-family: var(--sans); font-size: 14px; font-weight: 300;
  line-height: 1.78;
  color: rgba(243,237,216,.52);
}

.identita-quote {
  max-width: 780px; margin: 0 auto;
  text-align: center;
  padding: 56px 24px 0;
  border-top: 1px solid rgba(243,237,216,.08);
}
.identita-quote p {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic; font-weight: 300;
  line-height: 1.55;
  color: rgba(243,237,216,.78);
  margin: 0 0 20px;
}
.identita-quote .quote-attr {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(247,147,30,.55);
}

/* ══════════════════════════════════════════════
   LE FINALITÀ
   ═════════════════════════════════════════════ */
.finalita {
  background: #F3EDD8;
  padding: 130px 0 140px;
}
.finalita .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}
.finalita-intro {
  max-width: 720px; margin: 0 auto 64px; text-align: center;
}
.finalita-intro h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.08; letter-spacing: -.01em;
  color: #1A1208; margin: 0 0 28px;
}
.finalita-intro h2 em { font-style: italic; color: #1E3810; font-weight: 300; }
.finalita-intro p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.55); line-height: 1.9;
  max-width: 580px; margin: 0 auto;
}

.finalita-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(28,18,6,.08);
  border: 1px solid rgba(28,18,6,.08);
}
.fin-card {
  position: relative;
  background: #F3EDD8;
  padding: 56px 44px 52px;
  transition:
    background 1.4s var(--ease-edit),
    transform 1.4s var(--ease-edit);
  overflow: hidden;
}
.fin-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  height: 1px; width: 0;
  background: var(--c, #1E3810);
  transition: width 1.6s var(--ease-edit);
}
.fin-card .fin-accent {
  position: absolute; top: 56px; right: 44px;
  width: 8px; height: 8px;
  background: var(--c);
  border-radius: 50%;
  opacity: .82;
}
.fin-card:hover {
  background: #EDE6D2;
}
.fin-card:hover::before { width: 100%; }

.fin-num {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-size: 38px;
  color: rgba(28,18,6,.22);
  line-height: 1;
  margin-bottom: 36px;
  transition: color 1.2s var(--ease-edit);
}
.fin-card:hover .fin-num { color: rgba(28,18,6,.42); }
.fin-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.18; letter-spacing: -.005em;
  color: #1A1208;
  margin: 0 0 20px;
}
.fin-card p {
  font-family: var(--sans); font-size: 13.5px; font-weight: 300;
  color: rgba(28,18,6,.55); line-height: 1.85;
  margin: 0 0 36px;
}
.fin-tag {
  display: inline-block;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(28,18,6,.32);
  padding-top: 14px;
  border-top: 1px solid rgba(28,18,6,.12);
}

/* ══════════════════════════════════════════════
   TERRITORIO PANORAMICO
   ═════════════════════════════════════════════ */
.panorama {
  position: relative;
  height: clamp(640px, 88vh, 880px);
  overflow: hidden;
  background: #0f0a04;
}
.panorama-photo {
  position: absolute;
  top: -10%; left: -4%; right: -4%; bottom: -10%;
  background-image: url('../monviso-warm.jpg');
  background-size: cover;
  background-position: center 55%;
  will-change: transform;
  filter: saturate(.78) contrast(1.04) brightness(.92);
}
.panorama-grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(120deg, rgba(107,63,160,.18) 0%, rgba(247,147,30,.10) 50%, rgba(46,125,27,.16) 100%);
  mix-blend-mode: soft-light;
}
.panorama-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 110% 80% at 50% 40%, transparent 40%, rgba(0,0,0,.45) 100%),
    linear-gradient(to bottom, rgba(15,10,4,.45) 0%, transparent 25%, transparent 55%, rgba(15,10,4,.75) 100%);
}
.panorama-content {
  position: relative; z-index: 4;
  height: 100%;
  display: flex; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}
.panorama-inner {
  max-width: 620px;
}
.panorama-inner .kicker {
  display: block; margin-bottom: 28px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(243,237,216,.62);
}
.panorama-inner h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 6vw, 96px);
  line-height: 1.0; letter-spacing: -.015em;
  color: #F3EDD8; margin: 0 0 36px;
  text-shadow: 0 4px 32px rgba(0,0,0,.5);
}
.panorama-inner h2 em { font-style: italic; color: #F7931E; font-weight: 300; }
.panorama-inner > p {
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: rgba(243,237,216,.78); line-height: 1.85;
  max-width: 500px; margin: 0 0 56px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.panorama-meta {
  display: flex; align-items: flex-end; gap: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(243,237,216,.18);
}
.panorama-meta > div { display: flex; flex-direction: column; }
.panorama-meta .pm-num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  color: #F3EDD8;
  line-height: 1;
}
.panorama-meta .pm-lbl {
  margin-top: 10px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243,237,216,.5);
}
.panorama-meta .pm-divider {
  width: 1px; height: 32px;
  background: rgba(243,237,216,.18);
}

/* ══════════════════════════════════════════════
   AZIENDE ASSOCIATE
   ═════════════════════════════════════════════ */
.aziende {
  background: #ECE3CE;
  padding: 130px 0 140px;
}
.aziende .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}
.aziende-intro {
  max-width: 720px; margin: 0 auto 88px; text-align: center;
}
.aziende-intro h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.08; letter-spacing: -.01em;
  color: #1A1208; margin: 0 0 28px;
}
.aziende-intro h2 em { font-style: italic; color: #6B3FA0; font-weight: 300; }
.aziende-intro p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.55); line-height: 1.9;
  max-width: 560px; margin: 0 auto;
}

.aziende-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(28,18,6,.07);
  border: 1px solid rgba(28,18,6,.07);
  margin-bottom: 80px;
}
.az-card {
  position: relative;
  background: #ECE3CE;
  padding: 32px 28px 30px;
  display: flex; flex-direction: column;
  transition: background 1.2s var(--ease-edit);
  overflow: hidden;
}
.az-card::before {
  content: "";
  position: absolute; bottom: 0; left: 0;
  height: 1px; width: 0;
  background: rgba(28,18,6,.5);
  transition: width 1.6s var(--ease-edit);
}
.az-card:hover { background: #E5D9BD; }
.az-card:hover::before { width: 100%; }
.az-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.az-id {
  font-family: var(--serif); font-style: italic;
  font-size: 13px;
  color: rgba(28,18,6,.32);
  letter-spacing: .04em;
}
.az-dot {
  width: 6px; height: 6px; border-radius: 50%;
  opacity: .82;
  transition: transform 1.2s var(--ease-edit), opacity 1.2s var(--ease-edit);
}
.az-card:hover .az-dot { transform: scale(1.4); opacity: 1; }
.az-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px;
  line-height: 1.18; letter-spacing: -.005em;
  color: #1A1208;
  margin: 0 0 10px;
}
.az-loc {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(28,18,6,.4);
  margin-bottom: 22px;
}
.az-rule {
  width: 24px; height: 1px;
  background: rgba(28,18,6,.18);
  margin-bottom: 22px;
  transition: width 1.4s var(--ease-edit);
}
.az-card:hover .az-rule { width: 56px; }
.az-spec {
  font-family: var(--sans); font-size: 12.5px; font-weight: 300;
  font-style: italic;
  color: rgba(28,18,6,.55);
  margin-top: auto;
}

.aziende-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  text-align: center;
  padding-top: 36px;
  flex-wrap: wrap;
}
.aziende-foot .af-divider {
  display: none;
}
.aziende-foot p {
  font-family: var(--serif); font-size: 17px; font-weight: 400;
  font-style: italic;
  color: rgba(28,18,6,.6);
}
.aziende-foot p strong {
  font-weight: 500; font-style: normal;
  color: #1A1208;
}

/* FOOTER */
footer { background: #1A1208; }
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 64px 88px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-inner img { height: 32px; object-fit: contain; }
.footer-inner .meta {
  font-family: var(--sans); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,.2);
  text-align: right; line-height: 1.9; letter-spacing: .03em;
}

/* Responsive */
@media (max-width: 1180px) {
  .aziende-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav-right { gap: 22px; }
  .chi-siamo .container,
  .territorio .container,
  .identita .container,
  .finalita .container,
  .aziende .container { padding: 0 48px; }
  .panorama-content { padding: 0 48px; }
  .chi-siamo .grid { gap: 64px; }
  .territorio .grid { gap: 56px; }
  .identita-grid { grid-template-columns: 1fr; gap: 80px; }
  .finalita-grid { grid-template-columns: repeat(2, 1fr); }
  .aziende-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { padding: 48px 48px; }
  .nav-right .nl:nth-child(3),
  .nav-right .nl:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .nav { padding: 0 18px; height: 60px; }
  .nav-right { gap: 14px; }
  .nav-right .nl:not(:first-child),
  .nav-right .nav-divider { display: none; }
  .hero-logo { width: clamp(240px, 80vw, 480px); }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .scroll-hint { display: none; }
  .il-distretto { padding: 64px 0 72px; }
  .chi-siamo { padding: 72px 0 96px; }
  .chi-siamo .container,
  .territorio .container,
  .identita .container,
  .finalita .container,
  .aziende .container { padding: 0 24px; }
  .panorama-content { padding: 0 24px; }
  .chi-siamo .grid,
  .territorio .grid { grid-template-columns: 1fr; gap: 64px; }
  .chi-siamo .stat-floating { right: 0; bottom: -28px; padding: 20px 24px; }
  .chi-siamo .stat-floating .num { font-size: 44px; }
  .chi-siamo .stats-row { gap: 32px; }
  .territorio { padding: 72px 0 96px; }

  .identita { padding: 88px 0 100px; }
  .identita-intro { margin-bottom: 64px; }
  .identita-mark-stage { padding: 56px 36px 50px; }
  .identita-meanings li { gap: 20px; }

  .finalita { padding: 88px 0 100px; }
  .finalita-intro { margin-bottom: 64px; }
  .finalita-grid { grid-template-columns: 1fr; }
  .fin-card { padding: 44px 32px 40px; }

  .panorama { height: clamp(560px, 80vh, 720px); }
  .panorama-meta { gap: 18px; flex-wrap: wrap; }
  .panorama-meta .pm-divider { display: none; }

  .aziende { padding: 88px 0 100px; }
  .aziende-intro { margin-bottom: 56px; }
  .aziende-grid { grid-template-columns: repeat(2, 1fr); }
  .az-card { padding: 26px 22px 24px; }
  .aziende-foot { flex-direction: column; gap: 18px; }

  .footer-inner {
    flex-direction: column; gap: 24px;
    padding: 40px 24px; text-align: center;
  }
  .footer-inner .meta { text-align: center; }
}

/* ═════════════════════════════════════════════════════════════════
   CHI SIAMO v2  — immersive editorial storytelling
   ═════════════════════════════════════════════════════════════════ */
.chi-siamo-v2 {
  background: #EDE6D2;
  padding: 130px 0 0;
  overflow: hidden;
}
.chi-siamo-v2 .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}

/* Section labels variants */
.section-label-row.small {
  justify-content: center;
  margin-bottom: 56px;
  gap: 28px;
}
.section-label-row.small .rule {
  flex: 1; max-width: 200px;
  background: linear-gradient(to right, transparent, #C4BA9E, transparent);
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 2.2s var(--ease-edit);
}
.section-label-row.small.in .rule { transform: scaleX(1); }

/* ─── BLOCK 1 · Opener ─── */
.cs-opener {
  margin-bottom: 0;
  padding-bottom: 0;
}
.cs-opener-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: end;
  margin-top: 56px;
}
.cs-opener-text .kicker {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 36px;
}
.cs-opener-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 5.8vw, 88px);
  line-height: 1.04; letter-spacing: -.02em;
  color: #18241A;
  margin: 0;
}
.cs-opener-text h2 em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.cs-opener-body p {
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: rgba(28,18,6,.6); line-height: 1.9;
  margin: 0 0 26px;
}
.cs-opener-body p:last-child { margin-bottom: 0; }
.cs-opener-body p strong { font-weight: 500; color: #18241A; }
.cs-opener-body p em { font-style: italic; color: #2A4A18; }

/* ─── BLOCKS 2 & 4 · Full-bleed cinematic strips ─── */
.cs-strip {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vh, 600px);
  overflow: hidden;
  margin: 60px 0 0;
  background: #16221A;
}
.cs-strip-photo {
  position: absolute;
  top: -10%; left: -4%; right: -4%; bottom: -10%;
  background-size: cover;
  background-position: center 55%;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.06);
}
#cs-strip-1 { background-image: url('../foto/mele.jpg'); background-position: center center; }

.cs-strip-grade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg,
    rgba(28,18,6,.32) 0%,
    rgba(28,18,6,.12) 45%,
    rgba(28,18,6,.45) 100%);
}
.cs-strip-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 130% 100% at 50% 50%, transparent 40%, rgba(0,0,0,.4) 100%),
    linear-gradient(to bottom, rgba(15,10,4,.25) 0%, transparent 25%, transparent 60%, rgba(15,10,4,.55) 100%);
}

.cs-strip-content {
  position: relative; z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}
.cs-strip-inner { max-width: 640px; }
.cs-strip-inner.align-right {
  margin-left: auto;
  text-align: right;
}
.cs-tag {
  display: inline-block;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243,237,216,.62);
  padding: 6px 14px;
  border: 1px solid rgba(243,237,216,.22);
  border-radius: 2px;
  margin-bottom: 36px;
}
.cs-strip-inner h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.02; letter-spacing: -.015em;
  color: #F3EDD8; margin: 0 0 28px;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.cs-strip-inner h3 em {
  font-style: italic;
  color: #DCE5BC;
  font-weight: 300;
}
.cs-strip-body {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(243,237,216,.82); line-height: 1.85;
  max-width: 520px;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.cs-strip-inner.align-right .cs-strip-body { margin-left: auto; }

/* ─── BLOCKS 3 & 5 · Editorial spreads ─── */
.cs-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding: 140px 88px;
  max-width: 1240px; margin: 0 auto;
}
.cs-spread.reverse { direction: rtl; }
.cs-spread.reverse > * { direction: ltr; }
.cs-spread-text .kicker {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 24px;
}
.cs-spread-text h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.06; letter-spacing: -.01em;
  color: #18241A;
  margin: 0 0 32px;
}
.cs-spread-text h3 em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.cs-spread-text p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.62); line-height: 1.9;
  margin: 0 0 22px;
}
.cs-spread-text p strong { font-weight: 500; color: #18241A; }
.cs-spread-text p em { font-style: italic; color: #2A4A18; }
.cs-spread-text p:last-of-type { margin-bottom: 0; }

.cs-spread-meta {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  align-items: flex-end;
  padding-top: 36px;
  border-top: 1px solid rgba(28,18,6,.14);
}
.cs-spread-meta > div:not(.cs-divider) {
  display: flex; flex-direction: column;
}
.cs-spread-meta .num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1;
  color: #2A4A18;
}
.cs-spread-meta .lbl {
  margin-top: 10px;
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.45);
}
.cs-spread-meta .cs-divider {
  width: 1px; height: 36px;
  background: rgba(28,18,6,.16);
  flex-shrink: 0;
}

/* Editorial image frame */
.cs-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 30px 70px -36px rgba(20,30,18,.55),
    0 8px 18px -10px rgba(20,30,18,.22);
}
.cs-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 2.6s var(--ease-cine), filter 2.6s var(--ease-cine);
}
.cs-image-frame:hover img {
  transform: scale(1.04);
}
.cs-image-caption {
  display: flex; align-items: baseline; gap: 16px;
  margin-top: 22px;
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.45);
}
.cs-caption-num {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-size: 14px;
  color: #2A4A18;
  letter-spacing: 0;
  text-transform: none;
}

/* ─── BLOCK 6 · Triptych gallery ─── */
.cs-gallery { padding: 140px 88px 120px; max-width: 1320px; margin: 0 auto; }
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cs-gallery figure {
  margin: 0;
  display: flex; flex-direction: column;
}
.cs-gallery .cs-image-frame {
  aspect-ratio: 3 / 4;
  margin-bottom: 24px;
}
.cs-gallery figcaption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(28,18,6,.14);
}
.cs-fig-num {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-size: 16px;
  color: rgba(28,18,6,.38);
}
.cs-fig-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px;
  color: #18241A;
  flex: 1;
}
.cs-fig-meta {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
}

/* ─── BLOCK 7 · Quote ─── */
.cs-quote {
  text-align: center;
  padding: 140px 88px 0;
  max-width: 920px; margin: 0 auto;
}
.cs-quote-rule {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, #2A4A18);
  margin: 0 auto 48px;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.8s var(--ease-edit);
}
.cs-quote-rule.in { transform: scaleY(1); }
.cs-quote blockquote {
  margin: 0;
  padding: 0;
}
.cs-quote blockquote p {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.4; letter-spacing: -.005em;
  color: rgba(28,18,6,.76);
  margin: 0 0 36px;
}
.cs-quote cite {
  display: flex; flex-direction: column; gap: 6px;
  font-style: normal;
}
.cs-quote .cite-name {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: #2A4A18;
}
.cs-quote .cite-meta {
  font-family: var(--serif); font-style: italic;
  font-size: 13px;
  color: rgba(28,18,6,.38);
}

/* ═════════════════════════════════════════════════════════════════
   LA CARTA  — map editorial centerpiece
   ═════════════════════════════════════════════════════════════════ */
.la-carta {
  background: #F0EBD2;
  padding: 130px 0 150px;
}
.la-carta .container {
  max-width: 1280px; margin: 0 auto; padding: 0 88px;
}
.lc-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin: 24px 0 60px;
}
.lc-intro-text .kicker {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 28px;
}
.lc-intro-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.0; letter-spacing: -.015em;
  color: #18241A; margin: 0;
}
.lc-intro-text h2 em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.lc-intro-body p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.62); line-height: 1.9;
  margin: 0 0 22px;
}
.lc-intro-body p:last-child { margin-bottom: 0; }

/* Map stage */
.lc-stage {
  position: relative;
  margin: 0 auto 60px;
}
.lc-frame {
  position: relative;
  background: #FFFCEF;
  padding: 56px 56px 64px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 40px 100px -40px rgba(20,30,18,.4),
    0 12px 28px -16px rgba(20,30,18,.18);
  overflow: hidden;
}
.lc-map {
  display: block;
  width: 100%; max-width: 800px;
  margin: 0 auto;
  will-change: transform;
}
/* Crosshatch background on frame (paper-feel) */
.lc-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 60px, rgba(28,18,6,.015) 60px, rgba(28,18,6,.015) 61px),
    radial-gradient(ellipse at center, transparent 60%, rgba(28,18,6,.05) 100%);
  pointer-events: none;
}
.lc-frame::after {
  /* subtle inner border */
  content: "";
  position: absolute; inset: 18px;
  border: 1px solid rgba(28,18,6,.06);
  pointer-events: none;
}
.lc-corner {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid rgba(28,18,6,.32);
  z-index: 2;
}
.lc-corner.tl { top: 28px; left: 28px; border-right: 0; border-bottom: 0; }
.lc-corner.tr { top: 28px; right: 28px; border-left: 0; border-bottom: 0; }
.lc-corner.bl { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.lc-corner.br { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }

.lc-frame-caption {
  display: flex; justify-content: center; align-items: baseline;
  gap: 18px;
  margin-top: 28px;
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(28,18,6,.5);
  text-align: center;
}
.lc-cap-num {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-size: 14px;
  color: #2A4A18;
  letter-spacing: .04em;
  text-transform: none;
}
.lc-cap-text { letter-spacing: .14em; }

/* Legend / facts */
.lc-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(28,18,6,.1);
  border: 1px solid rgba(28,18,6,.1);
  margin-bottom: 56px;
}
.lc-fact {
  background: #F0EBD2;
  padding: 36px 28px;
  text-align: center;
  transition: background 1.2s var(--ease-edit);
}
.lc-fact:hover { background: #EBE6CB; }
.lc-fact-num {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1; letter-spacing: -.005em;
  color: #18241A;
  margin-bottom: 14px;
}
.lc-fact-lbl {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(28,18,6,.5);
}

/* Comuni list */
.lc-comuni { padding-top: 8px; }
.lc-comuni-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(28,18,6,.14);
}
.lc-comuni-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: 18px 36px;
  font-family: var(--serif);
  font-size: 17px; font-weight: 400;
  color: rgba(28,18,6,.72);
}
.lc-comuni-list li {
  position: relative;
  transition: color .8s var(--ease-edit), transform .8s var(--ease-edit);
}
.lc-comuni-list li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -22px; top: 0;
  color: rgba(28,18,6,.3);
}
.lc-comuni-list li:hover {
  color: #2A4A18;
  transform: translateY(-2px);
}
.lc-comuni-list li:last-child {
  font-style: italic;
  color: rgba(28,18,6,.42);
}

/* ─── Refinements: Identità & Finalità ─── */
.identita-intro { margin-bottom: 80px; }
.identita-grid { gap: 80px; margin-bottom: 90px; }

.fin-card { padding: 48px 36px 44px; }
.fin-card h3 {
  font-size: clamp(22px, 1.9vw, 30px);
  margin-bottom: 24px;
}
.fin-card p { font-size: 14px; line-height: 1.9; }
.fin-num {
  font-size: 44px;
  margin-bottom: 44px;
}
.finalita-intro { margin-bottom: 72px; }

/* ─── Custom editorial line icons — più grandi, più contrastati ─── */
.fin-icon {
  display: block;
  width: 78px; height: 78px;
  margin: 0 0 36px;
  color: var(--c);
  opacity: 1;
  transition:
    opacity .9s var(--ease-edit),
    transform .9s var(--ease-edit),
    filter .9s var(--ease-edit);
  overflow: visible;
  filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--c) 28%, transparent));
}
/* Universal stroke defaults — every shape inherits */
.fin-icon * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.fin-icon .fi-main   { stroke-width: 2.2; }
.fin-icon .fi-vein   { stroke-width: 1.6; opacity: .88; }
.fin-icon .fi-detail { stroke-width: 1.4; opacity: .72; }
.fin-icon .fi-detail.dashed {
  stroke-dasharray: 2 3.4;
  stroke-width: 1.3;
  opacity: .58;
}
/* Nodes (filiera + comunità): filled disc more visible */
.fin-icon .fi-node {
  stroke-width: 1.8;
  fill: currentColor;
  fill-opacity: .32;
}

/* Hover: icon lifts higher and shadow expands */
.fin-card:hover .fin-icon {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--c) 40%, transparent));
}
/* Specific hover: animate the "innovazione" dashed ring */
.fin-card:hover .fin-icon .dashed {
  animation: fi-ring-rotate 16s linear infinite;
  transform-origin: 32px 34px;
}
@keyframes fi-ring-rotate { to { transform: rotate(360deg); } }

/* Hide the colored dot — the icon now carries the accent. */
.fin-card .fin-accent { display: none; }

/* Number sits flush-left under the icon for editorial rhythm */
.fin-num { margin-bottom: 36px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .chi-siamo-v2 .container,
  .la-carta .container { padding: 0 48px; }
  .cs-opener-grid,
  .lc-intro { grid-template-columns: 1fr; gap: 36px; }
  .cs-spread { padding: 100px 48px; gap: 56px; grid-template-columns: 1fr; }
  .cs-spread.reverse > *:first-child { order: 2; }
  .cs-spread-meta { gap: 24px; }
  .cs-gallery { padding: 90px 48px; }
  .cs-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cs-strip-content { padding: 0 48px; }
  .cs-strip { height: clamp(440px, 64vh, 620px); }
  .lc-legend { grid-template-columns: repeat(2, 1fr); }
  .lc-frame { padding: 36px 32px 40px; }
}
@media (max-width: 760px) {
  .chi-siamo-v2 { padding: 80px 0 0; }
  .chi-siamo-v2 .container,
  .la-carta .container { padding: 0 24px; }
  .cs-opener { margin-bottom: 72px; }
  .cs-opener-grid { gap: 28px; }
  .cs-spread { padding: 64px 24px; gap: 40px; }
  .cs-gallery { padding: 64px 24px; }
  .cs-gallery-grid { grid-template-columns: 1fr; gap: 36px; }
  .cs-quote { padding: 40px 24px 96px; }
  .cs-spread-meta { flex-wrap: wrap; gap: 18px; }
  .cs-spread-meta .cs-divider { display: none; }
  .cs-strip { height: clamp(380px, 56vh, 520px); }
  .cs-strip-content { padding: 0 24px; }
  .cs-strip-inner.align-right { text-align: left; margin-left: 0; }

  .la-carta { padding: 80px 0 96px; }
  .lc-intro { margin-bottom: 60px; }
  .lc-frame { padding: 24px 20px 30px; }
  .lc-corner { width: 18px; height: 18px; }
  .lc-corner.tl { top: 14px; left: 14px; }
  .lc-corner.tr { top: 14px; right: 14px; }
  .lc-corner.bl { bottom: 14px; left: 14px; }
  .lc-corner.br { bottom: 14px; right: 14px; }
  .lc-legend { grid-template-columns: repeat(2, 1fr); margin-bottom: 56px; }
  .lc-fact { padding: 28px 20px; }
  .lc-comuni-list { gap: 14px 30px; font-size: 15px; }

  .fin-card { padding: 48px 28px 40px; }
}

/* ═════════════════════════════════════════════════════════════════
   UNIFIED SECTION RHYTHM — equal vertical padding across the page
   ═════════════════════════════════════════════════════════════════ */
:root { --section-pad-y: 64px; }

.il-distretto,
.chi-siamo-v2,
.identita,
.finalita,
.la-carta,
.sistema {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.cs-quote { padding-bottom: 0; }

@media (max-width: 760px) {
  :root { --section-pad-y: 44px; }
  .cs-quote { padding-bottom: 0; }
}

/* Hide torn-paper shadow lines that create gray hairlines under transitions */
#torn-shadow,
#torn2-shadow,
#torn3-shadow { display: none; }

/* ═════════════════════════════════════════════════════════════════
   CONTATTI — banner istituzionale di finanziamento (Bando SRG071)
   ═════════════════════════════════════════════════════════════════ */
.ct-bando {
  margin: 72px auto 0;
  max-width: 880px;
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
}
.ct-bando::before {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: rgba(28,18,6,.24);
  margin: 0 auto 36px;
}
.ct-bando img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 820px;
  margin: 0 auto;
}
.ct-bando-caption {
  display: block;
  margin: 18px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(28,18,6,.55);
  max-width: 640px;
}

@media (max-width: 760px) {
  .ct-bando { padding: 28px 16px 20px; margin-top: 56px; }
  .ct-bando::before { margin-bottom: 24px; }
  .ct-bando-caption { font-size: 13.5px; }
}

/* ═════════════════════════════════════════════════════════════════
   SISTEMA — blocchi editoriali (Storia · Sviluppo · Oggi)
   Inseriti tra l'intro asimmetrica e la sistema-stats grid.
   ═════════════════════════════════════════════════════════════════ */
.sistema-blocks {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin: 80px auto 88px;
  max-width: 920px;
}
.sistema-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.sistema-block-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: #2A4A18;
  padding-top: 8px;
  position: sticky;
  top: 96px;
  align-self: start;
}
.sistema-block-label::before {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: rgba(28,18,6,.32);
  margin-bottom: 14px;
}
.sistema-block-body p {
  font-family: var(--sans);
  font-size: 15.5px; font-weight: 300;
  color: rgba(28,18,6,.66);
  line-height: 1.92;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.sistema-block-body p:last-child { margin-bottom: 0; }
.sistema-block-body p em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04em;
  color: #2A4A18;
}
.sistema-block-body p strong {
  font-weight: 500;
  color: #18241A;
}

@media (max-width: 1024px) {
  .sistema-blocks { gap: 44px; margin: 56px auto 64px; }
  .sistema-block {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sistema-block-label {
    position: static;
    padding-top: 0;
  }
}
@media (max-width: 760px) {
  .sistema-blocks { gap: 36px; margin: 40px auto 48px; }
  .sistema-block-body p { font-size: 14.5px; }
}

/* ═════════════════════════════════════════════════════════════════
   NEWS ED EVENTI — editorial event cards
   ═════════════════════════════════════════════════════════════════ */
.news {
  background: #F3EDD8;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.news .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}

.news-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 88px;
  align-items: end;
  margin: 24px 0 72px;
}
.news-intro-text .kicker {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 28px;
}
.news-intro-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.02; letter-spacing: -.015em;
  color: #18241A;
  margin: 0;
}
.news-intro-text h2 em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.news-intro-body p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.62);
  line-height: 1.9;
  margin: 0 0 18px;
}
.news-intro-body p:last-child { margin-bottom: 0; }

/* "Prossimi appuntamenti" eyebrow rule centrato */
.news-eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  margin: 0 0 56px;
}
.news-eyebrow-rule {
  flex: 1; max-width: 220px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(28,18,6,.22), transparent);
}
.news-eyebrow-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: #2A4A18;
  white-space: nowrap;
}

/* Card grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.news-card {
  display: flex;
  flex-direction: column;
}

/* Image frame (16:10) — real photo with subtle grade overlay */
.news-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1A1208; /* fallback while img loads */
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 18px 38px -24px rgba(20,30,18,.4),
    0 6px 14px -8px rgba(20,30,18,.2);
  transition:
    transform .8s var(--ease-edit),
    box-shadow .8s var(--ease-edit);
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 2.4s var(--ease-cine), filter 2.4s var(--ease-cine);
  filter: saturate(.96) contrast(1.02);
}
.news-card:hover .news-card-img img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.04);
}
/* Soft top/bottom grade for editorial polish + number legibility */
.news-card-img-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.38) 0%,
      rgba(0,0,0,.10) 22%,
      transparent 45%,
      transparent 70%,
      rgba(20,30,18,.28) 100%);
  pointer-events: none;
  z-index: 2;
}
/* Number badge — ivory italic on the photo */
.news-card-img-num {
  position: absolute;
  top: 16px; left: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--ivory);
  letter-spacing: 0;
  line-height: 1;
  text-shadow:
    0 2px 10px rgba(0,0,0,.55),
    0 1px 3px rgba(0,0,0,.45);
  z-index: 3;
}

/* Card text content below the image */
.news-card-content {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
}
.news-card-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.news-card-date {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: #2A4A18;
  font-variant-numeric: tabular-nums;
}
.news-card-divider {
  width: 14px; height: 1px;
  background: rgba(28,18,6,.28);
}
.news-card-location {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: rgba(28,18,6,.55);
}
.news-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15; letter-spacing: -.01em;
  color: #18241A;
  margin: 0 0 14px;
}
.news-card-body {
  font-family: var(--sans);
  font-size: 14px; font-weight: 300;
  line-height: 1.78;
  color: rgba(28,18,6,.62);
  margin: 0 0 22px;
}
.news-card-tag {
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(28,18,6,.14);
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(28,18,6,.4);
}

/* Hover: image lifts + shadow expands */
.news-card:hover .news-card-img {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 26px 52px -22px rgba(20,30,18,.5),
    0 10px 20px -10px rgba(20,30,18,.25);
}

@media (max-width: 1024px) {
  .news .container { padding: 0 48px; }
  .news-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .news-grid > :nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .news .container { padding: 0 24px; }
  .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-grid > :nth-child(3) { max-width: none; }
  .news-eyebrow-rule { max-width: 60px; }
  .news-eyebrow-label { font-size: 10px; letter-spacing: .2em; }
}

/* ═════════════════════════════════════════════════════════════════
   CS-PHOTO — Editorial framed photo (es. comitato del Distretto)
   Riutilizzabile in home (sezione chi-siamo) e nella pagina interna.
   ═════════════════════════════════════════════════════════════════ */
.cs-photo {
  max-width: 1240px;
  margin: 80px auto;
  padding: 0 88px;
}
.cs-photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1A1208;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 30px 70px -36px rgba(20,30,18,.5),
    0 8px 18px -10px rgba(20,30,18,.22);
}
.cs-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 2.6s var(--ease-cine);
}
.cs-photo-frame:hover img { transform: scale(1.03); }
/* corner brackets that appear on hover */
.cs-photo-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ease-edit);
}
.cs-photo-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.cs-photo-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.cs-photo-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.cs-photo-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.cs-photo-frame:hover .cs-photo-corner { opacity: 1; }

.cs-photo-caption {
  display: flex; align-items: baseline; gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(28,18,6,.14);
  font-family: var(--sans); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.45);
}
.cs-photo-num {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; font-size: 15px;
  color: #2A4A18;
  letter-spacing: 0; text-transform: none;
}
@media (max-width: 1024px) {
  .cs-photo { padding: 0 48px; margin: 64px auto; }
}
@media (max-width: 760px) {
  .cs-photo { padding: 0 24px; margin: 48px auto; }
  .cs-photo-frame { aspect-ratio: 4 / 3; }
}

/* ═════════════════════════════════════════════════════════════════
   INTERNAL PAGE — Hero, navigation, breadcrumb, CTA block
   Used on chi-siamo.html and future inner pages.
   ═════════════════════════════════════════════════════════════════ */

/* On inner pages the nav stays opaque from the very top */
.page-inner .nav {
  background: rgba(26,18,8,.72);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.05);
  height: 64px;
  box-shadow: 0 12px 40px -22px rgba(0,0,0,.55);
}
.page-inner .nav::before { opacity: 0; }
.page-inner .nav-logo { opacity: .9; transform: translateY(0); }

/* Inner pages — reveal elements animate on page load (not on scroll).
   This guarantees content visibility regardless of IntersectionObserver behavior. */
.page-inner .reveal {
  animation: page-inner-reveal 1.8s var(--ease-edit) .25s both;
}
.page-inner .reveal.d1 { animation-delay: .47s; }
.page-inner .reveal.d2 { animation-delay: .69s; }
.page-inner .reveal.d3 { animation-delay: .93s; }
.page-inner .reveal-slow {
  animation-duration: 2.4s;
}
@keyframes page-inner-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-inner .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Hero interno — più compatto della hero della home */
.hero-inner {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f0a04;
}
.hero-inner .hero-stripe {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
}
.hero-inner-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: brightness(.6) saturate(.92) contrast(1.08);
}
.hero-inner-photo-inner {
  position: absolute;
  top: -80px; left: -4%; right: -4%;
  height: calc(100% + 160px);
  background-image: url('../foto/chisiamo.jpg');
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
}
/* Override per la pagina finalita.html (immagine + posizionamento dedicati) */
.hero-inner-finalita .hero-inner-photo-inner {
  background-image: url('../foto/pesche.jpg');
  background-position: center 55%;
}
/* Override per la pagina identita.html (lagnasco.jpg — Monviso visto dai frutteti) */
.hero-inner-identita .hero-inner-photo-inner {
  background-image: url('../foto/lagnasco.jpg');
  background-position: center 50%;
}

/* Torn paper: verde → dark (transizione hero → identità section) */
.green-to-dark {
  background: #7A9428;
  line-height: 0;
  margin-top: -1px;
}
.green-to-dark svg {
  width: 100%;
  height: 42px;
  display: block;
}

/* CTA paper section on identita.html — leggero padding aggiuntivo */
.identita-cta-section { padding: 32px 0 64px; }
.hero-inner-vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 50% 52%, rgba(0,0,0,.50) 0%, rgba(0,0,0,.20) 50%, transparent 80%),
    radial-gradient(ellipse 130% 100% at 50% 40%, transparent 35%, rgba(0,0,0,.50) 100%),
    linear-gradient(to bottom, rgba(15,10,4,.40) 0%, transparent 28%, transparent 60%, rgba(15,10,4,.72) 100%);
}
.hero-inner-grade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, rgba(107,63,160,.08) 0%, rgba(247,147,30,.06) 60%, rgba(46,125,27,.08) 100%);
  mix-blend-mode: soft-light;
}

.hero-inner-content {
  position: relative; z-index: 5;
  text-align: center;
  padding: 130px 40px 80px;
  max-width: 760px;
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(243,237,216,.55);
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.breadcrumb a {
  color: rgba(243,237,216,.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(243,237,216,.3);
  padding-bottom: 2px;
  transition: color .35s var(--ease-edit), border-color .35s var(--ease-edit);
}
.breadcrumb a:hover {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}
.breadcrumb .bc-sep {
  color: rgba(243,237,216,.4);
  font-size: 13px;
  font-family: var(--serif);
  font-style: italic;
}

.hero-inner-kicker {
  display: block;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(247,147,30,.9);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.hero-inner-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -.02em;
  color: #FFFFFF;
  margin: 0 0 28px;
  text-shadow:
    0 4px 32px rgba(0,0,0,.65),
    0 2px 8px rgba(0,0,0,.45);
}
.hero-inner-title em {
  font-style: italic;
  font-weight: 300;
  color: #DCE5BC;
}
.hero-inner-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  max-width: 540px;
  margin: 0 auto;
  text-shadow:
    0 2px 14px rgba(0,0,0,.65),
    0 1px 3px rgba(0,0,0,.45);
}

/* ─── CTA block alla fine della pagina interna ─── */
.cs-cta-block {
  padding: 88px 88px 8px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.cs-cta-inner {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 56px;
  border-top: 1px solid rgba(28,18,6,.14);
}
.cs-cta-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 22px;
}
.cs-cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08; letter-spacing: -.01em;
  color: #18241A;
  margin: 0 0 32px;
}
.cs-cta-title em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.cs-cta-link {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px 13px;
  background: var(--dark);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(247,147,30,.4);
  transition:
    background .45s var(--ease-edit),
    transform .45s var(--ease-edit),
    box-shadow .45s var(--ease-edit),
    border-color .45s var(--ease-edit);
  box-shadow: 0 6px 18px -8px rgba(40,25,10,.5);
}
.cs-cta-link svg {
  transition: transform .4s var(--ease-edit);
}
.cs-cta-link:hover {
  background: #2A4A18;
  border-color: #2A4A18;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(40,25,10,.55);
}
.cs-cta-link:hover svg { transform: translateX(5px); }

@media (max-width: 760px) {
  .hero-inner-content { padding: 100px 24px 56px; }
  .hero-inner-title { margin-bottom: 22px; }
  .cs-cta-block { padding: 56px 24px 8px; }
  .cs-cta-inner { padding-top: 40px; }
}

/* ═════════════════════════════════════════════════════════════════
   v2 additions — accessibility, typographic helpers, contatti, footer
   ═════════════════════════════════════════════════════════════════ */

/* Focus ring */
:focus-visible {
  outline: 2px solid #F7931E;
  outline-offset: 3px;
  border-radius: 1px;
}

/* Skip-to-content */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--dark); color: var(--ivory);
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(247,147,30,.4);
  transform: translateY(-130%);
  transition: transform .35s var(--ease-edit);
}
.skip-link:focus { transform: translateY(0); }

/* Headline orphan control */
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty;  }

/* Tabular figures on statistic numbers */
.ss-num,
.lc-fact-num,
.pm-num,
.ct-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Active nav state */
.nl[aria-current="true"] { color: rgba(255,255,255,.95); }
.nl[aria-current="true"]::after { transform: scaleX(1); }

/* Soft halo behind hero content — extra insurance for legibility */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 45%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════════
   LA CARTA — Leaflet interactive map
   ═════════════════════════════════════════════════════════════════ */
#lc-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #DACFAE;
  margin: 0 auto;
  z-index: 1;
  cursor: grab;
}
#lc-map.leaflet-grab { cursor: grab; }
#lc-map.leaflet-dragging { cursor: grabbing; }

/* Warm wash on the base tiles. Keep saturation up so the green/yellow of
   fields, parks and roads stays visible, but let the paper tint show through. */
#lc-map .lc-tiles-base img.leaflet-tile {
  filter: sepia(.14) saturate(1.25) brightness(.96) hue-rotate(-4deg) contrast(1.06);
  mix-blend-mode: multiply;
}
/* Labels overlay sits in shadow-pane — slight darken + multiply for paper-print feel */
#lc-map .lc-tiles-labels img.leaflet-tile {
  filter: sepia(.20) saturate(.85) brightness(.78) hue-rotate(-4deg) contrast(1.20);
  mix-blend-mode: multiply;
}
/* Comune polygons — illustrated atlas look, dark green fills */
.lc-comune-poly {
  transition: fill .35s var(--ease-edit), stroke-width .35s var(--ease-edit);
  cursor: pointer;
  /* Crisp paint order keeps the white stroke on top of the fill */
  paint-order: fill stroke markers;
}
/* Stronger drop-shadow on the comuni layer → confini più staccati dal fondo */
#lc-map .leaflet-overlay-pane svg {
  filter:
    drop-shadow(0 2px 5px rgba(20,30,18,.35))
    drop-shadow(0 0 1px rgba(20,30,18,.45));
}
#lc-map .leaflet-container {
  background: #E5DBC2;
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}

/* ─── Comune markers — colored pointer (pole + dot) ─── */
.leaflet-marker-icon.lc-logo-wrap {
  background: none;
  border: none;
  overflow: visible !important;
}

/* Brand color rotation across the 4 comuni palette */
.lc-color-0 { --pin-color: #E4022E; }  /* mela rossa */
.lc-color-1 { --pin-color: #AFCB08; }  /* verde foglia */
.lc-color-2 { --pin-color: #F39200; }  /* arancio pesca */
.lc-color-3 { --pin-color: #814997; }  /* viola susina */

.lc-logo-pin {
  position: relative;
  display: block;
  width: 18px; height: 30px;
  background: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(.6);
  transform-origin: center top;   /* dot at top is the geographic anchor */
  animation: lc-logo-rise .7s var(--ease-edit) forwards;
  animation-delay: calc(var(--i, 0) * 25ms + 200ms);
  transition:
    transform .3s var(--ease-edit),
    filter .3s var(--ease-edit);
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgba(20, 30, 18, .35));
}

/* Circle dot at the TOP — the actual geographic point */
.lc-pin-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pin-color, #814997);
  border: 2px solid var(--ivory);
  transform: translateX(-50%);
  box-shadow:
    0 2px 5px rgba(20, 30, 18, .4),
    0 0 0 1px rgba(0, 0, 0, .15);
  transition: transform .25s var(--ease-edit), box-shadow .25s var(--ease-edit);
  z-index: 2;
}
/* Vertical pole hanging BELOW the dot (rivolto al basso) */
.lc-pin-pole {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 2px;
  height: 16px;
  background: var(--pin-color, #814997);
  transform: translateX(-50%);
  border-radius: 1px;
  opacity: .85;
  z-index: 1;
}

/* Ping ring on activation — uses the marker's brand color, around the dot */
.lc-logo-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pin-color, #814997);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(.5);
}
@keyframes lc-logo-rise {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hover-reveal flag — clickable banner with comune name above the pin */
.lc-logo-label {
  position: absolute;
  bottom: 100%;        /* sits on top of the pin (no gap → hover survives) */
  left: 50%;
  transform: translate(-50%, 6px);
  margin-bottom: 4px;
  padding: 7px 13px 6px;
  background: var(--pin-color, #814997);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 2px;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,.3) inset,
    0 8px 22px -6px rgba(20,30,18,.5),
    0 3px 8px -3px rgba(20,30,18,.35);
  transition:
    opacity .25s var(--ease-edit),
    transform .3s var(--ease-edit);
  z-index: 5;
}
/* Triangle pointer at the bottom of the flag, pointing to the pin */
.lc-logo-label::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--pin-color, #814997);
}
/* Invisible bridge BELOW the flag so the mouse can travel from the logo
   to the flag without losing :hover (closes the small visual gap) */
.lc-logo-label::before {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 12px;
}
.lc-logo-label-name {
  position: relative;
  z-index: 1;
}

.leaflet-marker-icon.lc-logo-wrap:hover,
.leaflet-marker-icon.lc-logo-wrap:focus-within {
  z-index: 1000 !important;
}
.leaflet-marker-icon.lc-logo-wrap:hover .lc-logo-pin,
.leaflet-marker-icon.lc-logo-wrap:focus-within .lc-logo-pin {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 12px rgba(20, 30, 18, .6));
}
.leaflet-marker-icon.lc-logo-wrap:hover .lc-logo-label {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.leaflet-marker-icon.lc-logo-wrap:focus-within .lc-logo-label {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.leaflet-marker-icon.lc-logo-wrap.lc-active .lc-logo-label {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
  pointer-events: auto !important;
}
/* Active marker (triggered from the sidebar) — dramatic bounce + ping ring */
.leaflet-marker-icon.lc-logo-wrap.lc-active {
  z-index: 1000 !important;
}
.leaflet-marker-icon.lc-logo-wrap.lc-active .lc-logo-pin {
  animation: lc-pin-bounce 1.6s cubic-bezier(.34, 1.56, .64, 1) forwards;
  filter: drop-shadow(0 8px 20px rgba(20, 30, 18, .8));
  transform-origin: center top;   /* dot stays anchored at the geographic point */
}
.leaflet-marker-icon.lc-logo-wrap.lc-active .lc-logo-pin::before {
  animation: lc-pin-ping 1.6s cubic-bezier(.2, .7, 0, 1) forwards;
  animation-iteration-count: 2;
}

/* Bigger, bouncier — easy to spot at first glance */
@keyframes lc-pin-bounce {
  0%   { transform: scale(1)    translateY(0)    rotate(0deg); }
  12%  { transform: scale(2.1)  translateY(-34px) rotate(-6deg); }
  24%  { transform: scale(1.05) translateY(0)    rotate(4deg); }
  38%  { transform: scale(1.75) translateY(-20px) rotate(-3deg); }
  52%  { transform: scale(1.15) translateY(0)    rotate(2deg); }
  68%  { transform: scale(1.5)  translateY(-10px) rotate(-1deg); }
  82%  { transform: scale(1.25) translateY(-2px) rotate(0deg); }
  93%  { transform: scale(1.4)  translateY(-4px) rotate(0deg); }
  100% { transform: scale(1.35) translateY(0)    rotate(0deg); }
}

/* Sonar-style ring ripple — two pulses */
@keyframes lc-pin-ping {
  0%   { transform: scale(.5);  opacity: .9;  border-width: 2.5px; }
  60%  { transform: scale(2.8); opacity: .35; border-width: 1.5px; }
  100% { transform: scale(4);   opacity: 0;   border-width: 1px; }
}
.leaflet-marker-icon.lc-logo-wrap.lc-active .lc-logo-label {
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 12px 28px -6px color-mix(in srgb, var(--pin-color, #814997) 65%, transparent),
    0 4px 10px -3px rgba(20,30,18,.4);
}
.leaflet-marker-icon.lc-logo-wrap.lc-active .lc-pin-dot {
  box-shadow:
    0 3px 8px rgba(20, 30, 18, .55),
    0 0 0 3px color-mix(in srgb, var(--pin-color, #814997) 30%, transparent);
}

/* ═════════════════════════════════════════════════════════════════
   LA CARTA — explorer: map (60%) + comuni sidebar (40%)
   Container 80% del viewport, centrato
   ═════════════════════════════════════════════════════════════════ */
.lc-explorer {
  width: 80vw;
  max-width: 1600px;
  margin: 64px auto 56px;
  background: #DACFAE;
  position: relative;
}
.lc-explorer-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 0;
  height: min(82vh, 780px);
  align-items: stretch;
}

/* Map column — flex column with map filling vertically + caption strip below */
.lc-explorer-grid .lc-stage {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.lc-explorer-grid .lc-frame {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.lc-explorer-grid #lc-map {
  height: 100%;
  aspect-ratio: auto;
}
.lc-explorer-grid .lc-frame-caption {
  padding: 12px 28px;
  background: rgba(243,237,216,.6);
  border-top: 1px solid rgba(28,18,6,.1);
  margin: 0;
}

/* Comuni sidebar */
.lc-sidebar {
  background:
    linear-gradient(rgba(243,237,216,.6), rgba(243,237,216,.6)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.06'/%3E%3C/svg%3E");
  border-left: 1px solid rgba(28,18,6,.14);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.lc-sidebar-head {
  padding: 32px 28px 24px;
  border-bottom: 1px solid rgba(28,18,6,.12);
}
.lc-sidebar-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 14px;
}
.lc-sidebar-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: #18241A;
  margin: 0 0 12px;
}
.lc-sidebar-hint {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 300;
  line-height: 1.55;
  color: rgba(28,18,6,.55);
  margin: 0;
}

/* Scrollable list */
.lc-sidebar-list {
  list-style: none;
  padding: 6px 0 20px;
  margin: 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(28,18,6,.25) transparent;
}
.lc-sidebar-list::-webkit-scrollbar { width: 6px; }
.lc-sidebar-list::-webkit-scrollbar-thumb {
  background: rgba(28,18,6,.22);
  border-radius: 3px;
}
.lc-sidebar-list li { border-bottom: 1px solid rgba(28,18,6,.06); }
.lc-sidebar-list li:last-child { border-bottom: 0; }

.lc-sidebar-row {
  width: 100%;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 28px 10px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition:
    background .25s var(--ease-edit),
    padding-left .35s var(--ease-edit),
    color .25s var(--ease-edit);
}
.lc-sidebar-row:hover {
  background: rgba(28,18,6,.05);
  padding-left: 34px;
}
.lc-sidebar-row:focus-visible {
  outline: 0;
  background: rgba(28,18,6,.05);
}

.lc-sidebar-marker {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(28,18,6,.25);
  transition: background .25s var(--ease-edit), transform .25s var(--ease-edit);
}
.lc-sidebar-row:hover .lc-sidebar-marker {
  background: var(--forest);
  transform: scale(1.4);
}

.lc-sidebar-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.15;
  color: #18241A;
  letter-spacing: -.005em;
}
.lc-sidebar-area {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(28,18,6,.4);
  white-space: nowrap;
}

/* Active state — set when sidebar row is clicked AND marker is "lc-active" */
.lc-sidebar-row.active {
  background: var(--dark);
  padding-left: 34px;
}
.lc-sidebar-row.active .lc-sidebar-name { color: var(--ivory); }
.lc-sidebar-row.active .lc-sidebar-area { color: rgba(247,147,30,.7); }
.lc-sidebar-row.active .lc-sidebar-marker {
  background: var(--viola);
  transform: scale(1.5);
  box-shadow: 0 0 0 3px rgba(107,63,160,.25);
}

/* Tablet: stack sidebar below the map, use a wider container */
@media (max-width: 1100px) and (min-width: 761px) {
  .lc-explorer {
    width: 92vw;
    max-width: none;
  }
  .lc-explorer-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .lc-explorer-grid .lc-frame { height: 480px; }
  .lc-sidebar {
    border-left: 0;
    border-top: 1px solid rgba(28,18,6,.14);
    max-height: 400px;
  }
}

/* Mobile: hide the desktop explorer entirely (mobile list takes over) */
@media (max-width: 760px) {
  .lc-explorer { display: none; }
}

/* ─── Monviso flag marker (peak — distinct from comuni) ─── */
.leaflet-marker-icon.lc-flag-wrap {
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  background: none;
  border: none;
}
.lc-flag {
  position: absolute;
  bottom: 0; left: 0;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, 0);
  filter: drop-shadow(0 4px 10px rgba(26,18,8,.35));
  cursor: pointer;
  /* Staggered entry on mount */
  opacity: 0;
  animation: lc-flag-rise .9s var(--ease-edit) forwards;
  animation-delay: calc(var(--i, 0) * 38ms + 200ms);
  transition: transform .35s var(--ease-edit);
  will-change: transform;
}
@keyframes lc-flag-rise {
  from { opacity: 0; transform: translate(-50%, 14px) scale(.94); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.lc-flag-name {
  display: block;
  padding: 5px 11px 4px;
  background: #F7931E;
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 2px;
  position: relative;
  text-shadow: 0 1px 2px rgba(26,18,8,.25);
}
/* Triangle notch at the base of the banner, pointing to the pole */
.lc-flag-name::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #F7931E;
}
.lc-flag-pole {
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(26,18,8,.55);
  margin-top: 5px;
}
.lc-flag-dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FCEFD7;
  border: 2px solid #1A1208;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: transform .25s var(--ease-edit);
}
.leaflet-marker-icon.lc-flag-wrap:hover {
  z-index: 1000 !important;
}
.leaflet-marker-icon.lc-flag-wrap:hover .lc-flag {
  transform: translate(-50%, -4px);
}
.leaflet-marker-icon.lc-flag-wrap:hover .lc-flag-name {
  filter: brightness(1.08);
}
.leaflet-marker-icon.lc-flag-wrap:hover .lc-flag-dot {
  transform: scale(1.4);
}

/* Saluzzo — center, accent red */
.lc-flag.lc-flag-center .lc-flag-name {
  background: #B53A26;
  padding: 6px 13px 5px;
  font-size: 12px;
  letter-spacing: .04em;
}
.lc-flag.lc-flag-center .lc-flag-name::after { border-top-color: #B53A26; }
.lc-flag.lc-flag-center .lc-flag-dot {
  width: 10px; height: 10px;
  border-color: #B53A26;
}

/* Monviso — purple banner with mountain glyph */
.lc-flag.lc-flag-monviso .lc-flag-name {
  background: #6B3FA0;
  padding: 6px 13px 5px;
  font-size: 12px;
  letter-spacing: .04em;
}
.lc-flag.lc-flag-monviso .lc-flag-name::before {
  content: "▲";
  font-size: 9px;
  color: rgba(255,255,255,.9);
  margin-right: 6px;
  vertical-align: 1px;
}
.lc-flag.lc-flag-monviso .lc-flag-name::after { border-top-color: #6B3FA0; }
.lc-flag.lc-flag-monviso .lc-flag-pole { height: 20px; }
.lc-flag.lc-flag-monviso .lc-flag-dot {
  width: 10px; height: 10px;
  background: #6B3FA0;
  border-color: #F3EDD8;
}
.lc-flag.lc-flag-monviso .lc-flag-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(107,63,160,.45);
  animation: lc-monviso-pulse 3.4s ease-in-out infinite;
}
.lc-flag.lc-flag-monviso .lc-flag-dot { position: relative; }
@keyframes lc-monviso-pulse {
  0%,100% { transform: scale(.8); opacity: .8; }
  50%     { transform: scale(1.6); opacity: 0; }
}

/* Popup */
#lc-map .leaflet-popup-content-wrapper {
  background: var(--dark);
  color: var(--ivory);
  border-radius: 0;
  box-shadow:
    0 1px 0 rgba(247,147,30,.4) inset,
    0 18px 48px -20px rgba(0,0,0,.65),
    0 6px 14px -8px rgba(0,0,0,.35);
  padding: 0;
}
#lc-map .leaflet-popup-content {
  margin: 16px 22px 14px;
  line-height: 1.5;
}
.lc-pop-name {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--ivory);
  line-height: 1.15;
  margin-bottom: 6px;
}
.lc-pop-meta {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247,147,30,.7);
}
#lc-map .leaflet-popup-tip {
  background: var(--dark);
  box-shadow: none;
}
#lc-map .leaflet-popup-close-button {
  color: rgba(243,237,216,.4);
  font-size: 18px;
  padding: 6px 8px 0 0;
  transition: color .35s var(--ease-edit);
}
#lc-map .leaflet-popup-close-button:hover { color: #F7931E; }

/* Zoom controls */
#lc-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 10px 28px -12px rgba(26,18,8,.35);
  border-radius: 0;
  margin: 18px;
  overflow: hidden;
}
#lc-map .leaflet-control-zoom a {
  background: rgba(243,237,216,.94);
  color: #18241A;
  border: 0;
  border-bottom: 1px solid rgba(28,18,6,.1);
  width: 34px; height: 34px;
  line-height: 34px;
  font-size: 17px;
  font-family: var(--sans);
  font-weight: 300;
  transition: background .4s var(--ease-edit), color .4s var(--ease-edit);
}
#lc-map .leaflet-control-zoom a:last-child { border-bottom: 0; }
#lc-map .leaflet-control-zoom a:hover {
  background: #F7931E;
  color: var(--dark);
}

/* Attribution */
#lc-map .leaflet-control-attribution {
  background: rgba(243,237,216,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(28,18,6,.55);
  padding: 3px 10px;
  border-top: 1px solid rgba(28,18,6,.06);
  border-left: 1px solid rgba(28,18,6,.06);
}
#lc-map .leaflet-control-attribution a { color: #2A4A18; }

/* Interaction hint */
.lc-map-hint {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  pointer-events: none;
  padding: 6px 14px;
  background: rgba(26,18,8,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(243,237,216,.14);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(243,237,216,.78);
  opacity: 0;
  transition: opacity .8s var(--ease-edit);
}
.lc-map-hint.visible { opacity: 1; }

/* Frame is now amalgamated with the section — no card-like rectangle, the
   map flows directly into the paper background of "La Carta". */
.la-carta .lc-frame {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.la-carta .lc-frame::before,
.la-carta .lc-frame::after {
  display: none;
}
/* Corner brackets become editorial cropmarks at the map edges */
.la-carta .lc-corner { z-index: 700; }
.la-carta .lc-corner.tl { top: -8px; left: -8px; }
.la-carta .lc-corner.tr { top: -8px; right: -8px; }
.la-carta .lc-corner.bl { bottom: -8px; left: -8px; }
.la-carta .lc-corner.br { bottom: -8px; right: -8px; }

/* ═════════════════════════════════════════════════════════════════
   PAPER-MAP CARTOGRAPHIC OVERLAYS
   Layered on top of the Leaflet tiles to dress the interactive map
   as if it were a printed atlas page.
   ═════════════════════════════════════════════════════════════════ */
.lc-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 600;
  overflow: hidden;
  color: #1A1208;
}

/* Visible paper grain (multiply blends with the tiles below) */
.lc-paper-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .10  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .55;
}

/* Aged sepia vignette at the corners */
.lc-paper-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%,    rgba(95, 60, 25, .28) 0%,  transparent 28%),
    radial-gradient(circle at 100% 0%,  rgba(95, 60, 25, .22) 0%,  transparent 28%),
    radial-gradient(circle at 0% 100%,  rgba(95, 60, 25, .28) 0%,  transparent 28%),
    radial-gradient(circle at 100% 100%,rgba(95, 60, 25, .28) 0%,  transparent 28%),
    radial-gradient(ellipse 130% 100% at 50% 50%, transparent 55%, rgba(40, 25, 10, .20) 100%);
  mix-blend-mode: multiply;
}

/* Compass rose — top-right */
.lc-compass {
  position: absolute;
  top: 14px; right: 14px;
  width: 68px; height: 68px;
  color: #2A1A0A;
  opacity: .78;
  filter: drop-shadow(0 1px 2px rgba(255,250,230,.6));
}

/* Title cartouche — bottom-right (above attribution) */
.lc-titleblock {
  position: absolute;
  top: 14px; left: 60px;
  max-width: 230px;
  padding: 12px 16px 13px;
  background:
    linear-gradient(rgba(243,237,216,.95), rgba(243,237,216,.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.10'/%3E%3C/svg%3E");
  border: 1px solid rgba(28,18,6,.22);
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 6px 16px -8px rgba(40,25,10,.35);
  font-family: var(--sans);
  line-height: 1.25;
}
.lc-tb-eyebrow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: rgba(28,18,6,.55);
  letter-spacing: .01em;
  margin-bottom: 2px;
}
.lc-tb-title {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.005em;
  color: #18241A;
  line-height: 1.05;
}
.lc-tb-rule {
  display: block;
  height: 1px;
  background: rgba(28,18,6,.28);
  margin: 8px 0 8px;
}
.lc-tb-meta {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(28,18,6,.55);
}

/* Leaflet scale bar — restyled as a printed cartographic scale */
#lc-map .leaflet-control-scale {
  margin: 14px 14px 24px !important;
}
#lc-map .leaflet-control-scale-line {
  background: rgba(243,237,216,.92);
  border: 1px solid rgba(28,18,6,.55);
  border-top: 0;
  color: #18241A;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 2px 6px 1px;
  line-height: 1.1;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(40,25,10,.2);
  position: relative;
}
#lc-map .leaflet-control-scale-line::before {
  /* black/cream alternating bar above the number */
  content: "";
  position: absolute;
  left: -1px; right: -1px;
  bottom: 100%;
  height: 6px;
  background:
    repeating-linear-gradient(to right,
      #18241A 0,        #18241A 25%,
      #FCEFD7 25%,      #FCEFD7 50%,
      #18241A 50%,      #18241A 75%,
      #FCEFD7 75%,      #FCEFD7 100%);
  border: 1px solid rgba(28,18,6,.6);
  border-bottom: 0;
}

/* ═════════════════════════════════════════════════════════════════
   CHI SIAMO — Block 1b: La comunità del Distretto (cs-roster)
   Header asimmetrico (titolo a destra) + due capitoli affiancati.
   Container alla stessa larghezza dell'opener .cs-opener.
   ═════════════════════════════════════════════════════════════════ */
.cs-roster {
  /* .container gives max-width: 1240px and padding: 0 88px (from .chi-siamo-v2 .container) */
  padding-top: 56px;
  padding-bottom: 24px;
}

/* Header centrato: titolo + incipit sull'asse della colonna */
.cs-roster-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 80px;
}
.cs-roster-head-empty { display: none; }
.cs-roster-head-text {
  max-width: 720px;
}
.cs-roster-head-text h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04; letter-spacing: -.015em;
  color: #18241A;
  margin: 0 0 32px;
  text-wrap: balance;
}
.cs-roster-head-text h3 em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.cs-roster-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.55;
  color: rgba(28,18,6,.7);
  margin: 0 auto;
  max-width: 38ch;
}

/* Due capitoli affiancati */
.cs-roster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  position: relative;
}
/* Hairline divider verticale tra le due colonne */
.cs-roster-grid::before {
  content: "";
  position: absolute;
  top: 12px; bottom: 12px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(28,18,6,.18) 18%,
    rgba(28,18,6,.18) 82%,
    transparent 100%);
}
.cs-roster-col { min-width: 0; }
.cs-roster-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: #2A4A18;
  margin-bottom: 22px;
}
.cs-roster-text {
  font-family: var(--sans);
  font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.66);
  line-height: 1.92;
  margin: 0;
}

@media (max-width: 1024px) {
  .cs-roster { padding-top: 32px; }
  .cs-roster-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .cs-roster-head-empty { display: none; }
  .cs-roster-grid { grid-template-columns: 1fr; gap: 56px; }
  .cs-roster-grid::before { display: none; }
}
@media (max-width: 760px) {
  .cs-roster { padding-top: 16px; }
  .cs-roster-head { margin-bottom: 44px; }
  .cs-roster-head-text h3 { margin-bottom: 22px; }
  .cs-roster-lead { font-size: 17px; }
  .cs-roster-text { font-size: 14.5px; }
}

/* ═════════════════════════════════════════════════════════════════
   COMUNE TOOLTIP (Leaflet) — shown on polygon hover
   ═════════════════════════════════════════════════════════════════ */
.leaflet-tooltip.lc-tip {
  background: var(--dark);
  color: var(--ivory);
  border: 0;
  border-radius: 2px;
  padding: 5px 11px 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(247,147,30,.5) inset,
    0 10px 24px -10px rgba(0,0,0,.55),
    0 2px 6px -3px rgba(0,0,0,.3);
}
.leaflet-tooltip.lc-tip::before {
  border-top-color: var(--dark);
}

/* ═════════════════════════════════════════════════════════════════
   COMUNE INFO CARD — slide-in panel from the right
   ═════════════════════════════════════════════════════════════════ */
.lc-card {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 92vw);
  height: 100dvh;
  z-index: 9100;
  background: var(--ivory);
  box-shadow:
    -22px 0 60px -28px rgba(26,18,8,.4),
    -8px 0 18px -12px rgba(26,18,8,.18);
  transform: translateX(100%);
  transition: transform .55s var(--ease-edit);
  overflow-y: auto;
  pointer-events: none;
  border-left: 1px solid rgba(28,18,6,.12);
}
.lc-card.open {
  transform: translateX(0);
  pointer-events: auto;
}
.lc-card::before {
  /* paper texture inside the card */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.lc-card-inner {
  position: relative;
  padding: 64px 48px 56px;
  display: flex; flex-direction: column;
  min-height: 100%;
}
.lc-card-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(28,18,6,.18);
  border-radius: 50%;
  color: rgba(28,18,6,.6);
  cursor: pointer;
  transition:
    background .35s var(--ease-edit),
    color .35s var(--ease-edit),
    border-color .35s var(--ease-edit),
    transform .35s var(--ease-edit);
}
.lc-card-close:hover {
  background: var(--dark);
  color: var(--ivory);
  border-color: var(--dark);
  transform: rotate(90deg);
}
.lc-card-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.4);
  margin-bottom: 16px;
}

/* Video del territorio in testa scheda */
.lc-card-video {
  margin: 0 -48px 32px;     /* full-bleed dentro la scheda (compensa padding 48px) */
  padding: 0;
}
.lc-card-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f0a04;
  overflow: hidden;
  box-shadow: 0 18px 36px -24px rgba(20,30,18,.4);
}
.lc-card-video-player video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0f0a04;
}
.lc-card-video-cap {
  padding: 12px 48px 0;
  display: flex; align-items: baseline; gap: 12px;
}
.lc-card-video-tag {
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: #2A4A18;
}
.lc-card-video-tag::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: #2A4A18;
  margin-right: 10px;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .lc-card-video { margin: 0 -28px 24px; }
  .lc-card-video-cap { padding: 10px 28px 0; }
}
.lc-card-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.02; letter-spacing: -.015em;
  color: #18241A;
  margin: 0 0 22px;
  text-wrap: balance;
}
.lc-card-rule {
  width: 36px; height: 1px;
  background: rgba(28,18,6,.32);
  margin: 0 0 28px;
}
.lc-card-body {
  font-family: var(--sans);
  font-size: 15px; font-weight: 300;
  line-height: 1.85;
  color: rgba(28,18,6,.62);
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* ═════════════════════════════════════════════════════════════════
   IL DIRETTIVO — 14 membri del consiglio del Distretto
   ═════════════════════════════════════════════════════════════════ */
.direttivo {
  background: #F0EBD2;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.direttivo .container {
  max-width: 1280px; margin: 0 auto; padding: 0 88px;
}

/* Hero: foto + intro (asimmetrico) */
.direttivo-hero {
  display: grid;
  grid-template-columns: 6fr 7fr;
  gap: 72px;
  align-items: end;
  margin: 24px 0 80px;
}

.direttivo-photo {
  margin: 0;
  position: relative;
}
.direttivo-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1A1208;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 30px 64px -32px rgba(20,30,18,.5),
    0 10px 22px -12px rgba(20,30,18,.25);
}
.direttivo-photo-cap {
  display: flex; align-items: baseline; gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(28,18,6,.14);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(28,18,6,.5);
}
.direttivo-photo-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: #2A4A18;
  letter-spacing: 0;
  text-transform: none;
}

.direttivo-intro .kicker {
  display: block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 24px;
}
.direttivo-intro h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.02; letter-spacing: -.015em;
  color: #18241A;
  margin: 0 0 32px;
}
.direttivo-intro h2 em {
  font-style: italic; color: #2A4A18; font-weight: 300;
}
.direttivo-intro p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.62);
  line-height: 1.85;
  margin: 0 0 16px;
}
.direttivo-intro p:last-child { margin-bottom: 0; }
.direttivo-intro p strong {
  font-weight: 500; color: #18241A;
}
.direttivo-intro p em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04em;
  color: #2A4A18;
}

/* Gruppi (A · B · C · D) */
.dir-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 64px;
  margin-bottom: 48px;
}
.dir-group {
  display: flex;
  flex-direction: column;
}

.dir-group-head {
  display: flex; align-items: baseline; gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(28,18,6,.18);
}
.dir-group-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: rgba(42,74,24,.5);
  line-height: 1;
}
.dir-group-title {
  flex: 1;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1; letter-spacing: -.01em;
  color: #18241A;
  margin: 0;
}
.dir-group-count {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  white-space: nowrap;
}

/* Lista membri */
.dir-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.dir-row {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28,18,6,.10);
  transition: padding .35s var(--ease-edit), background .35s var(--ease-edit);
}
.dir-row:last-child { border-bottom: 0; }
.dir-row:hover {
  padding-left: 8px;
  background: rgba(42,74,24,.04);
}

.dir-role {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: #2A4A18;
  white-space: nowrap;
  padding-top: 4px;
}
.dir-name {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -.005em;
  color: #18241A;
  line-height: 1.2;
}
.dir-comune {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--sans);
  font-size: 12px; font-weight: 300;
  line-height: 1.45;
  color: rgba(28,18,6,.55);
}
.dir-comune em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05em;
  color: rgba(28,18,6,.5);
}

/* Presidente: enfatizzato */
.dir-row-pres .dir-role { color: #B53A26; }
.dir-row-pres .dir-name {
  font-weight: 500;
  font-size: 21px;
}
/* Nuovo ruolo "Comuni montani": badge soft */
.dir-row-new .dir-role { color: #6B3FA0; }

.direttivo-foot {
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(28,18,6,.12);
  text-align: center;
}
.direttivo-foot p {
  font-family: var(--sans); font-size: 12px; font-weight: 300;
  color: rgba(28,18,6,.5);
  max-width: 720px; margin: 0 auto;
}
.direttivo-foot em {
  font-family: var(--serif); font-style: italic;
  font-size: 13.5px;
  color: rgba(28,18,6,.6);
}

@media (max-width: 1024px) {
  .direttivo .container { padding: 0 48px; }
  .direttivo-hero { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .direttivo-photo img { aspect-ratio: 16 / 10; }
  .dir-groups { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .direttivo .container { padding: 0 24px; }
  .dir-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .dir-role { grid-column: 1; grid-row: 1; padding-top: 0; margin-bottom: 4px; }
  .dir-name { grid-column: 1; grid-row: 2; }
  .dir-comune { grid-column: 1; grid-row: 3; }
}

/* ═════════════════════════════════════════════════════════════════
   VIDEO — "Scopri le qualità di Piemonte is… Frutta"
   Tre racconti video a cura di Regione Piemonte
   ═════════════════════════════════════════════════════════════════ */
.video-section {
  background: #F0EBD2;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.video-section .container {
  max-width: 1280px; margin: 0 auto; padding: 0 88px;
}

.video-intro {
  max-width: 760px;
  margin: 24px auto 72px;
  text-align: center;
}
.video-intro .kicker {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: .02em;
  color: rgba(28,18,6,.55);
  margin-bottom: 24px;
}
.video-intro h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02; letter-spacing: -.015em;
  color: #18241A;
  margin: 0 0 24px;
}
.video-intro h2 em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.video-intro p {
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: rgba(28,18,6,.6);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto;
}

/* Grid: 3 video con player editoriale */
.video-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.video-card {
  display: flex;
  flex-direction: column;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0a04;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 22px 48px -22px rgba(20,30,18,.45),
    0 8px 18px -10px rgba(20,30,18,.22);
  transition:
    transform .8s var(--ease-edit),
    box-shadow .8s var(--ease-edit);
}
.video-card:hover .video-player {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 30px 60px -22px rgba(20,30,18,.55),
    0 12px 24px -12px rgba(20,30,18,.3);
}
.video-player video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0f0a04;
}

.video-card-meta {
  padding-top: 22px;
}
.video-card-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: rgba(42,74,24,.55);
  letter-spacing: 0;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.video-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.005em;
  color: #18241A;
  margin: 0 0 8px;
}
.video-card-sub {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.55;
  color: rgba(28,18,6,.5);
  margin: 0;
}

@media (max-width: 1024px) {
  .video-section .container { padding: 0 48px; }
  .video-intro { margin-bottom: 56px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .video-grid > :nth-child(3) {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .video-section .container { padding: 0 24px; }
  .video-grid { grid-template-columns: 1fr; gap: 40px; }
  .video-grid > :nth-child(3) { max-width: none; }
}

/* ═════════════════════════════════════════════════════════════════
   LE ORGANIZZAZIONI DI PRODUTTORI — section + 8 cards
   ═════════════════════════════════════════════════════════════════ */
.op-section {
  background: #EDE6D2;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.op-section .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}

.op-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 88px;
  align-items: end;
  margin: 24px 0 72px;
}
.op-intro-text .kicker {
  display: block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 28px;
}
.op-intro-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.02; letter-spacing: -.015em;
  color: #18241A;
  margin: 0;
}
.op-intro-text h2 em {
  font-style: italic;
  color: #2A4A18;
  font-weight: 300;
}
.op-intro-body p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.62);
  line-height: 1.9;
  margin: 0;
}
.op-intro-body p strong {
  font-weight: 500;
  color: #18241A;
}

/* Grid delle 8 OP */
.op-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(28,18,6,.08);
  border: 1px solid rgba(28,18,6,.08);
  list-style: none;
  padding: 0; margin: 0;
}
.op-card {
  position: relative;
  background: #EDE6D2;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  transition: background 1.2s var(--ease-edit);
  overflow: hidden;
}
.op-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  height: 2px; width: 0;
  background: #2A4A18;
  transition: width 1.4s var(--ease-edit);
}
.op-card:hover {
  background: #E5D9BD;
}
.op-card:hover::before { width: 100%; }

.op-card-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: rgba(28,18,6,.22);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 1.2s var(--ease-edit);
}
.op-card:hover .op-card-num { color: rgba(28,18,6,.42); }

.op-card-role {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: #2A4A18;
  margin-bottom: 14px;
}

.op-card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.18; letter-spacing: -.005em;
  color: #18241A;
  margin: 0 0 14px;
}
.op-card-rule {
  width: 28px; height: 1px;
  background: rgba(28,18,6,.32);
  margin-bottom: 16px;
  transition: width 1.2s var(--ease-edit);
}
.op-card:hover .op-card-rule { width: 56px; background: #2A4A18; }

.op-card-desc {
  font-family: var(--sans);
  font-size: 13px; font-weight: 300;
  line-height: 1.7;
  color: rgba(28,18,6,.6);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.op-card-addr {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11.5px; font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.55;
  color: rgba(28,18,6,.5);
  margin: 0 0 22px;
}

.op-card-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(28,18,6,.14);
  display: flex; flex-direction: column;
  gap: 6px;
}
.op-card-meta-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1; letter-spacing: -.01em;
  color: #2A4A18;
  font-variant-numeric: tabular-nums;
}
.op-card-meta-lbl {
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.48);
  line-height: 1.4;
}

.op-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(28,18,6,.12);
  text-align: center;
}
.op-foot p {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .04em;
  color: rgba(28,18,6,.45);
  max-width: 640px; margin: 0 auto;
}
.op-foot p em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(28,18,6,.55);
}

@media (max-width: 1180px) {
  .op-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .op-section .container { padding: 0 48px; }
  .op-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
}
@media (max-width: 600px) {
  .op-section .container { padding: 0 24px; }
  .op-grid { grid-template-columns: 1fr; }
  .op-card { padding: 28px 22px 26px; }
}

/* ═════════════════════════════════════════════════════════════════
   GLI ALTRI ADERENTI PRIVATI — Associazioni · Pro Loco · Ricerca
   ═════════════════════════════════════════════════════════════════ */
.aderenti-section {
  background: #F3EDD8;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.aderenti-section .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}

.aderenti-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 88px;
  align-items: end;
  margin: 24px 0 72px;
}
.aderenti-intro-text .kicker {
  display: block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 28px;
}
.aderenti-intro-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.04; letter-spacing: -.015em;
  color: #18241A;
  margin: 0;
}
.aderenti-intro-text h2 em {
  font-style: italic; color: #2A4A18; font-weight: 300;
}
.aderenti-intro-body p {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.62);
  line-height: 1.85;
  margin: 0;
}
.aderenti-intro-body p strong {
  font-weight: 500; color: #18241A;
}

/* Gruppi (A · B · C) */
.ad-group {
  margin-bottom: 64px;
}
.ad-group:last-of-type { margin-bottom: 48px; }

.ad-group-head {
  display: flex; align-items: baseline; gap: 24px;
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(28,18,6,.18);
}
.ad-group-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  color: rgba(42,74,24,.45);
  line-height: 1;
}
.ad-group-title {
  flex: 1;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1; letter-spacing: -.01em;
  color: #18241A;
  margin: 0;
}
.ad-group-count {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  white-space: nowrap;
}

/* Grid di card */
.ad-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ad-grid.ad-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.ad-card {
  position: relative;
  padding: 28px 26px 26px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(28,18,6,.10);
  display: flex; flex-direction: column;
  transition:
    background .9s var(--ease-edit),
    border-color .9s var(--ease-edit),
    transform .9s var(--ease-edit);
}
.ad-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: #2A4A18;
  transition: width 1.2s var(--ease-edit);
}
.ad-card:hover {
  background: rgba(255,255,255,.7);
  border-color: rgba(42,74,24,.25);
  transform: translateY(-2px);
}
.ad-card:hover::before { width: 100%; }

.ad-card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15; letter-spacing: -.005em;
  color: #18241A;
  margin: 0 0 10px;
}
.ad-card-tag {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: #2A4A18;
  margin-bottom: 18px;
}
.ad-card-desc {
  font-family: var(--sans);
  font-size: 13px; font-weight: 300;
  line-height: 1.75;
  color: rgba(28,18,6,.6);
  margin: 0;
  text-wrap: pretty;
}
.ad-card-desc em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05em;
  color: rgba(28,18,6,.78);
}

.ad-foot {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(28,18,6,.12);
}
.ad-foot p {
  font-family: var(--sans); font-size: 12px; font-weight: 300;
  color: rgba(28,18,6,.5);
  max-width: 640px; margin: 0 auto;
}
.ad-foot em {
  font-family: var(--serif); font-style: italic;
  font-size: 13.5px;
  color: rgba(28,18,6,.6);
}

@media (max-width: 1024px) {
  .aderenti-section .container { padding: 0 48px; }
  .aderenti-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .ad-grid, .ad-grid.ad-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .aderenti-section .container { padding: 0 24px; }
  .ad-grid, .ad-grid.ad-grid-2 { grid-template-columns: 1fr; gap: 18px; }
  .ad-group-head { flex-wrap: wrap; gap: 12px; }
  .ad-group-num { font-size: 28px; }
}

/* ─── Blocco OP nella scheda del comune ─── */
.lc-card-op-list {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.lc-card-op-item {
  position: relative;
  padding: 12px 16px;
  background: rgba(42,74,24,.08);
  border-left: 2px solid #2A4A18;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: #18241A;
  letter-spacing: -.005em;
}
.lc-card-op-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: #2A4A18;
  text-decoration: none;
  transition: color .35s var(--ease-edit), gap .35s var(--ease-edit);
}
.lc-card-op-link:hover {
  color: var(--viola);
  gap: 12px;
}

/* ─── Sezioni editoriali della scheda: frutti, turismo, specialità ─── */
.lc-card-section {
  margin: 0 0 32px;
}
.lc-card-section-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.45);
  margin-bottom: 10px;
}
.lc-card-section-title {
  font-family: var(--serif);
  font-weight: 400; font-style: italic;
  font-size: 18px;
  line-height: 1.2;
  color: #18241A;
  margin: 0 0 18px;
}

/* Lista frutti con bar visualization */
.lc-card-frutti {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.lc-frutto {
  display: grid;
  grid-template-columns: 88px 1fr 64px;
  align-items: center;
  gap: 14px;
}
.lc-frutto-name {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 500;
  color: #18241A;
  letter-spacing: .02em;
}
.lc-frutto-bar {
  position: relative;
  height: 6px;
  background: rgba(28,18,6,.08);
  border-radius: 3px;
  overflow: hidden;
}
.lc-frutto-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(to right, #2A4A18, #7A9428);
  border-radius: 3px;
  transition: width .8s var(--ease-edit);
}
.lc-frutto-ha {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .04em;
  color: rgba(28,18,6,.55);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lc-frutto-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(28,18,6,.12);
  flex-wrap: wrap;
}
.lc-frutto-tot {
  font-family: var(--sans);
  font-size: 12px; font-weight: 400;
  color: rgba(28,18,6,.55);
  font-variant-numeric: tabular-nums;
}
.lc-frutto-tot strong {
  font-weight: 500;
  color: #18241A;
  letter-spacing: -.005em;
}
.lc-frutto-src {
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.4);
}

/* Turismo + Specialità */
.lc-card-turismo {
  font-family: var(--sans);
  font-size: 14px; font-weight: 300;
  line-height: 1.78;
  color: rgba(28,18,6,.66);
  margin: 0 0 18px;
}
.lc-card-specialita {
  display: flex; flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(28,18,6,.12);
}
.lc-card-spec-label {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: #2A4A18;
}
.lc-card-spec-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: rgba(28,18,6,.72);
  line-height: 1.45;
}

/* Stats block — abitanti / altitudine / superficie */
.lc-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px 0;
  margin: 0 0 36px;
  border-top: 1px solid rgba(28,18,6,.16);
  border-bottom: 1px solid rgba(28,18,6,.16);
}
.lc-card-stat {
  display: flex; flex-direction: column;
  min-width: 0;
}
.lc-card-stat dt {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(28,18,6,.45);
  margin-bottom: 10px;
  white-space: nowrap;
}
.lc-card-stat dd {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: #18241A;
  font-variant-numeric: tabular-nums;
  margin: 0;
  letter-spacing: -.005em;
}
.lc-card-links {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(28,18,6,.14);
}
.lc-card-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(28,18,6,.14);
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: .04em;
  color: #18241A;
  text-decoration: none;
  transition: color .4s var(--ease-edit), padding .4s var(--ease-edit);
}
.lc-card-link svg { color: rgba(28,18,6,.45); transition: transform .4s var(--ease-edit), color .4s var(--ease-edit); }
.lc-card-link:hover { color: var(--viola); padding-left: 4px; }
.lc-card-link:hover svg { color: var(--viola); transform: translateX(3px); }
.lc-card-link-label { display: inline-flex; align-items: center; gap: 12px; }
.lc-card-link-label::before {
  content: "";
  width: 12px; height: 1px;
  background: rgba(28,18,6,.32);
  transition: width .4s var(--ease-edit), background .4s var(--ease-edit);
}
.lc-card-link:hover .lc-card-link-label::before { width: 24px; background: var(--viola); }

.lc-card-coords {
  display: block;
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(28,18,6,.32);
  font-variant-numeric: tabular-nums;
}

/* Backdrop — dim the page when the card is open */
.lc-card-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,18,8,.32);
  opacity: 0;
  pointer-events: none;
  z-index: 9090;
  transition: opacity .5s var(--ease-edit);
}
.lc-card-backdrop.open { opacity: 1; pointer-events: auto; }

/* ═════════════════════════════════════════════════════════════════
   MOBILE FALLBACK LIST — replaces the map on small screens
   ═════════════════════════════════════════════════════════════════ */
.lc-mobile-list {
  display: none;
  list-style: none;
  padding: 0; margin: 0 0 48px;
  border-top: 1px solid rgba(28,18,6,.14);
}
.lc-mobile-list li { border-bottom: 1px solid rgba(28,18,6,.10); }
.lc-ml-row {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background .25s var(--ease-edit), padding .35s var(--ease-edit);
}
.lc-ml-row:hover,
.lc-ml-row:focus-visible { background: rgba(28,18,6,.04); padding-left: 12px; padding-right: 12px; }
.lc-ml-name {
  flex: 1;
  font-family: var(--serif); font-weight: 500;
  font-size: 20px;
  color: #18241A;
  letter-spacing: -.005em;
}
.lc-ml-meta {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.45);
}
.lc-ml-arrow {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: rgba(28,18,6,.42);
  transition: transform .3s var(--ease-edit);
}
.lc-ml-row:hover .lc-ml-arrow { transform: translateX(4px); color: var(--viola); }

@media (max-width: 760px) {
  /* Hide the interactive map → show the tappable list */
  .la-carta .lc-stage { display: none; }
  .lc-mobile-list { display: block; }

  /* Card adapts to full width on mobile */
  .lc-card { width: 100%; max-width: 100%; }
  .lc-card-inner { padding: 56px 28px 40px; }
  .lc-card-title { font-size: clamp(28px, 7vw, 36px); }

  /* Desktop-only paper map ornaments — kept hidden on mobile via .lc-stage */
  .lc-compass, .lc-titleblock { display: none; }
}

/* ═════════════════════════════════════════════════════════════════
   CONTATTI — editorial sign-off
   ═════════════════════════════════════════════════════════════════ */
.contatti {
  background: #EDE6D2;
  padding: 140px 0 120px;
  position: relative;
}
.contatti::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(28,18,6,.18), transparent);
}
.contatti .container {
  max-width: 1240px; margin: 0 auto; padding: 0 88px;
}
.ct-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: start;
}
.ct-head .kicker {
  display: block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(28,18,6,.42);
  margin-bottom: 28px;
}
.ct-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.04; letter-spacing: -.015em;
  color: #18241A;
  margin: 0 0 24px;
  text-wrap: balance;
}
.ct-head h2 em { font-style: italic; color: #2A4A18; font-weight: 300; }
.ct-head p {
  font-family: var(--sans);
  font-size: 15px; font-weight: 300;
  color: rgba(28,18,6,.6); line-height: 1.9;
  max-width: 36ch;
  text-wrap: pretty;
}

.ct-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(28,18,6,.10);
  border: 1px solid rgba(28,18,6,.10);
}
.ct-card {
  background: #EDE6D2;
  padding: 38px 36px 36px;
  position: relative;
  transition: background 1.2s var(--ease-edit);
}
.ct-card:hover { background: #E5D9BD; }
.ct-card-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(28,18,6,.4);
  margin-bottom: 22px;
}
.ct-card h3 {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.25;
  color: #18241A;
  margin: 0 0 18px;
}
.ct-card-rule {
  width: 28px; height: 1px;
  background: rgba(28,18,6,.22);
  margin: 0 0 18px;
  transition: width 1.4s var(--ease-edit);
}
.ct-card:hover .ct-card-rule { width: 64px; }
.ct-card address {
  font-style: normal;
  font-family: var(--sans);
  font-size: 14px; font-weight: 300; line-height: 1.85;
  color: rgba(28,18,6,.6);
}
.ct-card a {
  color: #2A4A18;
  text-decoration: none;
  border-bottom: 1px solid rgba(42,74,24,.3);
  transition: border-color .4s var(--ease-edit);
}
.ct-card a:hover { border-bottom-color: #2A4A18; }

.ct-strip {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(28,18,6,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
}
.ct-strip-item { display: flex; flex-direction: column; }
.ct-strip-item .ct-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1;
  color: #2A4A18;
}
.ct-strip-item .ct-lbl {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(28,18,6,.46);
}

/* ═════════════════════════════════════════════════════════════════
   FOOTER v2 — three-column, legal links, sign-off
   ═════════════════════════════════════════════════════════════════ */
.footer-v2 {
  background: var(--dark);
  color: rgba(243,237,216,.6);
  position: relative;
  overflow: hidden;
}
.footer-v2-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: .5; mix-blend-mode: overlay;
}
.footer-v2 .stripe-bar { height: 3px; }
.footer-v2-grid {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: 96px 88px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.footer-brand img { height: 36px; object-fit: contain; margin-bottom: 28px; }
.footer-brand p {
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: 17px; line-height: 1.55;
  color: rgba(243,237,216,.55);
  max-width: 32ch;
  text-wrap: pretty;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(247,147,30,.65);
  margin: 0 0 22px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col a {
  font-family: var(--sans);
  font-size: 13px; font-weight: 300;
  color: rgba(243,237,216,.62);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .5s var(--ease-soft);
}
.footer-col a:hover { color: rgba(243,237,216,.95); }

.footer-base {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: 28px 88px 44px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(243,237,216,.08);
  gap: 28px;
  flex-wrap: wrap;
}
.footer-base .legal {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.footer-base .legal a,
.footer-base .copyright {
  font-family: var(--sans);
  font-size: 11px; font-weight: 300;
  letter-spacing: .04em;
  color: rgba(243,237,216,.32);
  text-decoration: none;
  transition: color .5s var(--ease-soft);
}
.footer-base .legal a:hover { color: rgba(243,237,216,.7); }

/* ═════════════════════════════════════════════════════════════════
   v2 — responsive overrides
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contatti .container { padding: 0 48px; }
  .ct-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-v2-grid {
    grid-template-columns: 1fr 1fr;
    padding: 72px 48px 40px;
    gap: 48px 40px;
  }
  .footer-base { padding: 24px 48px 36px; }
}
@media (max-width: 760px) {
  .contatti { padding: 88px 0 88px; }
  .contatti .container { padding: 0 24px; }
  .ct-cards { grid-template-columns: 1fr; }
  .ct-strip { gap: 28px; }
  .footer-v2-grid { grid-template-columns: 1fr; padding: 56px 24px 32px; gap: 40px; }
  .footer-base {
    padding: 20px 24px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .la-carta .lc-frame { padding: 16px 16px 24px; }
  #lc-map { aspect-ratio: 4 / 5; }
  .lc-map-hint { font-size: 9px; padding: 5px 11px; letter-spacing: .18em; }
}
