/* ═══════════════════════════════════════════════════════
   PAGES — Progetti/Media + News
═══════════════════════════════════════════════════════ */

/* ─── Page intro (sotto breadcrumb) ─── */
.page-intro {
  padding: 70px 0 30px;
  text-align: center;
}
.page-intro .section-tag {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  display: inline-block;
}
.page-intro h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 18px;
}
.page-intro h1 strong {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
}
.page-intro p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  color: #000;
}

/* ─── Toolbar filtri ─── */
.filters-bar {
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
  padding: 18px 0;
  margin-bottom: 15px;
}
.filters-bar .filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.filters-bar .filters-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filters-bar .filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.filters-bar select {
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  padding: 7px 32px 7px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .5px;
  color: #000;
  max-width: 200px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='black' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.filters-bar .filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.filters-bar .filter-search input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  padding: 7px 36px 7px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #000;
}
.filters-bar .filter-search input::placeholder { color: var(--color-text-muted); }
.filters-bar .filter-search .bi-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 14px;
  pointer-events: none;
}
.filters-bar .filter-count {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: .5px;
  margin-left: auto;
}

/* ─── Category chips (categoria color-coded) ─── */
.cat-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0;
  color: #fff;
  background: #000;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ─── Progetti grid ─── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
  margin-bottom: 80px;
}
@media (max-width: 991.98px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .proj-grid { grid-template-columns: 1fr; }
}

.proj-card {
  display: block;
  text-decoration: none;
  color: #000;
  position: relative;
  min-width: 0;
}
.proj-card .proj-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eee;
}
.proj-card .proj-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.proj-card:hover .proj-img img { transform: scale(1.04); }
.proj-card .proj-chip {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.proj-card .proj-chips {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.proj-card .proj-body { padding: 22px 0 0; }
.proj-card .proj-date {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.65px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.proj-card .proj-title {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.proj-card .proj-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── Variante MISTA: primo elemento full-width hero ─── */
.proj-grid.is-mixed .proj-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.proj-grid.is-mixed .proj-card.is-featured .proj-img {
  aspect-ratio: 16 / 10;
}
.proj-grid.is-mixed .proj-card.is-featured .proj-body { padding: 0; }
.proj-grid.is-mixed .proj-card.is-featured .proj-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  line-height: 1.2;
  margin: 14px 0 16px;
}
.proj-grid.is-mixed .proj-card.is-featured .proj-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 22px;
}
.proj-grid.is-mixed .proj-card.is-featured .proj-cta {
  display: inline-block;
  border: 1px solid rgba(0,0,0,.4);
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.proj-grid.is-mixed .proj-card.is-featured .proj-cta:hover {
  background: #000; color: #fff;
}
@media (max-width: 767.98px) {
  .proj-grid.is-mixed .proj-card.is-featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .proj-grid.is-mixed .proj-card.is-featured .proj-title { font-size: 28px; }
}

/* ─── Paginazione ─── */
.pagination-os {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 40px;
}
.pagination-os a, .pagination-os span {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .6px;
  color: #000;
  text-decoration: none;
  padding: 8px 12px;
  min-width: 36px;
  text-align: center;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.pagination-os a:hover { border-color: rgba(0,0,0,.25); }
.pagination-os .is-current {
  border-color: #000;
  font-weight: 700;
}
.pagination-os .pag-arrow { opacity: .55; }
.pagination-os .pag-arrow:hover { opacity: 1; }
.pagination-os .pag-arrow.is-disabled,
.pagination-os a[aria-disabled="true"] {
  pointer-events: none;
  opacity: .25;
  cursor: default;
}
.pagination-os .pag-gap {
  border: none;
  padding: 8px 4px;
  min-width: 0;
  color: #878787;
}

/* ─── AJAX list loaders ─── */
[data-ajax-list] {
  position: relative;
  min-height: 200px;
  transition: opacity .15s;
}
[data-ajax-list].is-loading {
  pointer-events: none;
}
[data-ajax-list].is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.65);
  z-index: 5;
}
[data-ajax-list].is-loading::after {
  content: '';
  position: absolute;
  top: 120px;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -1.25rem;
  z-index: 6;
  border: .25em solid #3c3c3c;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ajaxListSpin .8s linear infinite;
}
@keyframes ajaxListSpin {
  to { transform: rotate(360deg); }
}

.ajax-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  background-color: rgba(0,101,64,.15);
  overflow: hidden;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.ajax-top-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #006540 50%, transparent);
  transform: translateX(-100%);
}
.ajax-top-bar.is-active { opacity: 1; }
.ajax-top-bar.is-active::before {
  animation: ajaxTopBar 1.1s ease-in-out infinite;
}
@keyframes ajaxTopBar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ─── Progetto detail: meta ─── */
.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 20px 0 30px;
  border-bottom: 1px solid rgba(0,0,0,.12);
  margin-bottom: 40px;
}
.proj-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.proj-meta-item .bi {
  font-size: 18px;
  color: var(--color-text-muted);
}
.proj-meta-item .meta-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 2px;
}
.proj-meta-item .meta-value {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

/* ─── YouTube embed block ─── */
.block-video {
  margin-bottom: 50px;
}
.block-video .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.block-video .video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.block-video .video-caption {
  font-size: 14px;
  color: var(--color-text-muted);
  letter-spacing: .4px;
  margin-top: 12px;
}

/* ─── Correlati ─── */
.related-section {
  background: var(--color-sand);
  padding: 80px 0 100px;
}
.related-section .related-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 40px;
  text-align: center;
}
.related-section .proj-grid {
  margin-bottom: 0;
}

/* ─── News listing ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,.12);
  border-left: 1px solid rgba(0,0,0,.12);
  margin-bottom: 60px;
}
.news-grid.is-single { grid-template-columns: 1fr; }

@media (max-width: 767.98px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-cell {
  border-right: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #000;
  background: #fff;
  transition: background .2s;
  min-height: 180px;
}
.news-cell:hover { background: #fafaf6; color: #000; }
.news-cell .news-date {
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.news-cell .news-title {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 14px;
  font-weight: 400;
}
.news-cell .news-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0 0 16px;
  flex: 1;
}
.news-cell .news-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-cell .news-link::after {
  content: '→';
  transition: transform .2s;
}
.news-cell:hover .news-link::after { transform: translateX(4px); }

/* News page header: lo lasciamo più minimal */
.news-header {
  padding: 80px 0 60px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.news-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 50px;
  font-weight: 400;
  margin: 14px 0 10px;
}
.news-header h1 strong {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
}
.news-header p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── News detail header ─── */
.news-detail-header {
  padding: 60px 0 0;
  text-align: center;
}
.news-detail-header .news-cat {
  display: inline-block;
  margin-bottom: 18px;
}
.news-detail-header .news-date-big {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.news-detail-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.25;
  max-width: 880px;
  margin: 0 auto 30px;
}
.news-detail-header .news-lead {
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 20px;
  color: #333;
}
.news-cover {
  margin: 25px auto 0;
  max-width: 1116px;
  display: flex;
  justify-content: center;
}
.news-cover picture,
.news-cover img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
  display: block;
}
@media (max-width: 767.98px) {
  .news-cover picture,
  .news-cover img {
    max-height: none;
  }
}

/* ─── News detail: spazio tra header e page-content ─── */
.news-detail-header + .page-content {
  padding-top: 30px;
}

/* ─── Block-renderer header + cover (cover esce dal col-lg-8, resta dentro container-xl) ─── */
.page-content .block-renderer-header {
  margin-bottom: 40px;
}
.page-content > .container-xl > .news-cover {
  margin-top: 0;
  margin-bottom: 50px;
}
.page-content > .container-xl > .block-renderer-header + .news-cover {
  margin-top: 0;
}

.news-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, .12);
}
.news-nav > :first-child  { justify-self: start; }
.news-nav > :nth-child(2) { justify-self: center; }
.news-nav > :last-child   { justify-self: end; }
.news-nav a {
  color: #000;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
}
.news-nav a:hover {
  color: var(--color-primary, #006540);
}
@media (max-width: 767.98px) {
  .news-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .news-nav > :first-child,
  .news-nav > :nth-child(2),
  .news-nav > :last-child {
    justify-self: center;
  }
  .news-nav > :empty {
    display: none;
  }
}

/* ─── Tweak panel base style (in caso non venga dal componente) ─── */
.tweak-toggle-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 999;
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* ─── Responsive page-intro ─── */
@media (max-width: 767.98px) {
  .page-intro h1 { font-size: 32px; }
  .news-detail-header h1 { font-size: 30px; }
  .filters-bar .filters-row { gap: 12px; }
  .filters-bar .filters-group { width: 100%; }
  .filters-bar .filters-group select { flex: 1; min-width: 0; max-width: none; }
  .filters-bar .filter-search { width: 100%; flex: 1 1 100%; min-width: 0; }
  .filters-bar .filter-count { margin-left: 0; width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   CONTATTI
═══════════════════════════════════════════════════════ */
.page-header-breadcrumb {
  background: #000;
  padding: 14px 0;
}
.page-header-breadcrumb .breadcrumb-inner {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.7px;
  color: #fff;
}
.page-header-breadcrumb .breadcrumb-inner a {
  transition: all .3s ease;
}

.page-header-breadcrumb .breadcrumb-inner a:hover {
  color: #d4d4d4;
}
.contatti-hero {
  padding: 80px 0 40px;
}
.contatti-hero .section-tag { color: var(--color-text-muted); }
.contatti-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  margin: 16px 0 30px;
}
.contatti-hero h1 strong {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
}
.contatti-hero .hero-lead {
  font-size: 17px;
  line-height: 1.7;
  /* max-width: 640px; */
  color: #333;
}

/* Sede + Orari split */
.contatti-sede {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
  margin: 60px 0 80px;
}
@media (max-width: 767.98px) { .contatti-sede { grid-template-columns: 1fr; margin-top: 0px;}}

.contatti-block {
  padding: 40px;
  border-right: 1px solid rgba(0,0,0,.12);
}
.contatti-block:last-child { border-right: none; }
@media (max-width: 767.98px) {
  .contatti-block { border-right: none; border-bottom: 1px solid rgba(0,0,0,.12); padding: 30px 20px; }
  .contatti-block:last-child { border-bottom: none; }
}
.contatti-block .block-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 18px;
}
.contatti-block .block-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
}
.contatti-block .block-body {
  font-size: 15px;
  line-height: 1.7;
  color: #000;
}
.contatti-block .block-body strong { font-weight: 700; }
.contatti-block .block-body a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.contatti-block .block-body a:hover { color: #555; }

.orari-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.orari-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(0,0,0,.2);
  font-size: 15px;
}
.orari-list li:last-child { border-bottom: none; }
.orari-list .orari-day { font-weight: 700; }
.orari-list .orari-time { color: #444; }

/* Section: Persone & uffici */
.contatti-people {
  padding-bottom: 80px;
}
.contatti-people-header {
  text-align: center;
  margin-bottom: 60px;
}
.contatti-people-header h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 46px;
  font-weight: 400;
  margin: 14px 0 14px;
}
.contatti-people-header h2 strong {
  font-family: var(--font-body); font-style: normal; font-weight: 700;
}
.contatti-people-header p {
  font-size: 15px; color: #444; max-width: 580px; margin: 0 auto;
}

.contatti-group {
  margin-bottom: 64px;
}
.contatti-group-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #000;
  padding-bottom: 14px;
  border-bottom: 2px solid #000;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.contatti-group-title .group-count {
  font-size: 12px; color: var(--color-text-muted); font-weight: 400; letter-spacing: 1px;
}

.persone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,.08);
  border-left: 1px solid rgba(0,0,0,.08);
}
.persone-grid-2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 991.98px) { .persone-grid, .persone-grid-2col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .persone-grid, .persone-grid-2col { grid-template-columns: 1fr; } }

/* Persona featured (Direttore in evidenza, sopra la griglia) */
.persona-featured {
  background: var(--color-sand);
  color: #000;
  padding: 44px 44px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  border-left: 4px solid #000;
}
.persona-featured .persona-role {
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.persona-featured .featured-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #000;
}
.persona-featured .featured-area {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  max-width: 460px;
}
.persona-featured .featured-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid rgba(0,0,0,.15);
  padding-left: 36px;
}
.persona-featured .featured-contact {
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  letter-spacing: .3px;
  transition: opacity .2s;
}
.persona-featured .featured-contact:hover { opacity: .65; color: #000; }
.persona-featured .featured-contact .bi {
  font-size: 16px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.3);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .persona-featured { grid-template-columns: 1fr; padding: 30px 24px; gap: 26px; }
  .persona-featured .featured-name { font-size: 36px; }
  .persona-featured .featured-right { border-left: none; padding-left: 0; border-top: 1px solid rgba(0,0,0,.15); padding-top: 22px; }
}

.persona-card {
  border-right: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 26px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: background .2s;
}
.persona-card:hover { background: #fafaf6; }
.persona-card .persona-role {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.persona-card .persona-name {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 4px;
  color: #000;
}
.persona-card .persona-area {
  font-size: 13px;
  color: #444;
  margin: 0 0 18px;
  line-height: 1.45;
  flex: 1;
}
.persona-card .persona-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.persona-card .persona-contacts a,
.persona-card .persona-contacts span {
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .2px;
  word-break: break-word;
}
.persona-card .persona-contacts a:hover { color: #555; }
.persona-card .persona-contacts .bi {
  color: var(--color-text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

/* Mappa */
.contatti-map {
  margin-bottom: 80px;
}
.contatti-map #contatti-map {
  width: 100%;
  height: 460px;
  display: block;
}
/* Grayscale solo sui tile, non su popup e marker */
.contatti-map .leaflet-tile-pane {
  filter: grayscale(.55) contrast(1.02);
}

/* Popup personalizzato */
.map-popup-custom .leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
}
.map-popup-custom .leaflet-popup-content { margin: 0; }
.map-popup-custom .leaflet-popup-tip    { background: #fff; }
.map-popup-custom .leaflet-popup-close-button {
  top: 10px; right: 12px;
  color: #999; font-size: 18px;
}
.map-popup-inner {
  padding: 22px 26px 18px;
  min-width: 220px;
}
.map-popup-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 4px;
  color: #000;
}
.map-popup-address {
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--color-text-muted);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.map-popup-contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 16px;
}
.map-popup-contact {
  font-size: 13px;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.map-popup-contact:hover { color: #000; opacity: .75; }
.map-popup-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}
.map-popup-link:hover { color: #000; opacity: .75; }

.contatti-map .map-caption {
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--color-text-muted);
  padding: 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.contatti-map .map-caption a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}

/* Modulistica + link utili */
.contatti-utils {
  background: var(--color-sand);
  padding: 80px 0 100px;
}
.contatti-utils h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 30px;
}
.contatti-utils .util-list { list-style: none; padding: 0; margin: 0; }
.contatti-utils .util-list li { border-bottom: 1px solid rgba(0,0,0,.15); }
.contatti-utils .util-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  color: #000;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .3px;
  transition: padding .2s;
}
.contatti-utils .util-list a:hover { padding-left: 8px; color: #000; }
.contatti-utils .util-list a .bi {
  font-size: 16px;
  color: var(--color-text-muted);
}

@media (max-width: 767.98px) {
  .contatti-hero h1 { font-size: 40px; }
  .contatti-people-header h2 { font-size: 30px; }
}

/* ═══════════════════════════════════════════════════════
   === STORIA === TIMELINE
═══════════════════════════════════════════════════════ */

.storia-intro {
  padding: 80px 0 20px;
}
.storia-intro .section-tag {
  color: var(--color-text-muted);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 34px;
}
.storia-intro .intro-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
  margin: 16px 0 34px;
  max-width: none;
  white-space: nowrap;
}
.storia-intro .intro-body {
  columns: 2;
  column-gap: 48px;
  column-fill: balance;
  font-size: 16px;
  line-height: 1.75;
  color: #000;
  max-width: none;
}
.storia-intro .intro-body p { margin: 0 0 18px; }
.storia-intro .intro-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 60px;
  line-height: .8;
  float: left;
  margin: 6px 10px 0 0;
  color: #000;
}
@media (max-width: 767.98px) {
  .storia-intro .intro-body { columns: 1; }
  .storia-intro .intro-title { font-size: 34px; }
}

/* Wrapper sticky: fa da containing block alla nav, che si sgancia alla sua fine
   (= inizio del pre-footer), senza fluttuare fin sopra il footer. */
.storia-sticky-wrap {
  position: relative;
}

/* Chapter nav (sticky) */
.storia-navbar {
  position: sticky;
  /* offset = altezza header sticky (.navbar-os = 114px) così la nav resta
     sempre visibile SOTTO l'header e non ci finisce coperta. */
  top: 114px;
  /* sotto l'header (.sticky-top Bootstrap = 1020), sopra il contenuto timeline. */
  z-index: 1010;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
  margin-top: 60px;
}
.storia-navbar .nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.storia-navbar .nav-inner::-webkit-scrollbar { display: none; }
.storia-navbar a {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  padding: 18px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border-right: 1px solid rgba(0,0,0,.12);
  transition: background .2s, color .2s;
  position: relative;
}
.storia-navbar a:last-child { border-right: none; }
.storia-navbar a .nav-years {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .8px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.storia-navbar a:hover { background: #faf9f4; }
.storia-navbar a.is-active { background: #000; color: #fff; }
.storia-navbar a.is-active .nav-years { color: rgba(255,255,255,.6); }

/* Timeline */
.timeline {
  position: relative;
  padding: 30px 0 100px;
}
.chapter {
  padding-top: 40px;
}
.chapter-head {
  text-align: center;
  padding: 60px 0 20px;
}
.chapter-head .chapter-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 10px;
}
.chapter-head .chapter-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 46px;
  font-weight: 400;
  margin: 0;
}
.chapter-head .chapter-range {
  font-size: 14px;
  letter-spacing: 1px;
  color: #000;
  margin-top: 12px;
  display: inline-block;
  border-top: 2px solid #000;
  padding-top: 10px;
}

/* Spine */
.timeline-track {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(0,0,0,.2);
  transform: translateX(-50%);
}

.tl-event {
  position: relative;
  width: 50%;
  padding: 0 48px 56px;
  box-sizing: border-box;
}
.tl-event.left  { left: 0; text-align: right; }
.tl-event.right { left: 50%; text-align: left; }

.tl-event::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  z-index: 2;
}
.tl-event.left::after  { right: -6.5px; }
.tl-event.right::after { left: -6.5px; }

.tl-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  font-weight: 700;
  color: #000;
  line-height: 1;
  margin: 0 0 6px;
}
.tl-place {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #8f7d4e;
  margin: 0 0 16px;
}
.tl-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
  color: #000;
}
.tl-img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: inline-block;
  margin-bottom: 16px;
  filter: grayscale(1);
  background: #eee;
}
.tl-event.left .tl-img  { margin-left: auto; }
.tl-img { border-radius: 12px; }
.tl-img-full, .tl-img-wide, .tl-img-logo, .tl-img-noround { border-radius: 0; }
.tl-event.left .tl-img.tl-img-left { margin-left: 0; margin-right: auto; }
.tl-img-portrait {
  aspect-ratio: 3 / 4;
  max-width: 260px;
}
.tl-img-wide {
  aspect-ratio: auto;
  max-width: 100%;
}
.tl-img-full {
  aspect-ratio: auto;
  max-width: 250px;
  object-fit: contain;
  background: transparent;
}
.tl-img-logo {
  aspect-ratio: auto;
  max-width: 160px;
  object-fit: contain;
  background: transparent;
}
.tl-portrait {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  border: 1px solid rgba(0,0,0,.15);
  margin-bottom: 14px;
  background: #f4f4f4;
}
.tl-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #333;
  margin: 0;
}
.tl-people {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.tl-event.left .tl-people { justify-content: flex-end; }
.tl-people .tl-portrait { width: 64px; height: 64px; margin-bottom: 0; }

/* Reveal on scroll */
.tl-event, .tl-recap {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(48px);
  transition: opacity .9s cubic-bezier(.16,.7,.2,1), transform .9s cubic-bezier(.16,.7,.2,1), filter .9s ease;
  will-change: opacity, transform, filter;
}
.tl-event.left  { transform: translate(-36px, 44px); }
.tl-event.right { transform: translate(36px, 44px); }
.tl-event.is-visible, .tl-recap.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
/* Stagger interno delle righe di testo */
.tl-event .tl-year, .tl-event .tl-place, .tl-event .tl-body,
.tl-event .tl-img, .tl-event .tl-portrait, .tl-event .tl-people {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-event.is-visible .tl-year   { transition-delay: .08s; }
.tl-event.is-visible .tl-place  { transition-delay: .16s; }
.tl-event.is-visible .tl-img,
.tl-event.is-visible .tl-portrait,
.tl-event.is-visible .tl-people { transition-delay: .24s; }
.tl-event.is-visible .tl-body   { transition-delay: .32s; }
.tl-event.is-visible .tl-year,
.tl-event.is-visible .tl-place,
.tl-event.is-visible .tl-body,
.tl-event.is-visible .tl-img,
.tl-event.is-visible .tl-portrait,
.tl-event.is-visible .tl-people { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tl-event, .tl-recap, .tl-event .tl-year, .tl-event .tl-place, .tl-event .tl-body,
  .tl-event .tl-img, .tl-event .tl-portrait, .tl-event .tl-people {
    opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important;
  }
}

/* Recap "Anni 2000" — fascia full-width sabbia */
.tl-recap {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #d8cfb2;
  padding: 64px 24px 72px;
  box-sizing: border-box;
  margin-top: 40px;
  margin-bottom: 64px;
  overflow: visible;
}
.recap-circle {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.recap-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  color: #000;
  margin: 0 0 22px;
}
.recap-title .yr { font-style: normal; font-weight: 700; }
.recap-item { margin: 0 0 18px; max-width: 620px; }
.recap-item:last-child { margin-bottom: 0; }
.recap-years {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .01em;
  color: #000;
  margin: 0 0 3px;
}
.recap-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #2a2a2a;
  margin: 0;
  text-wrap: balance;
}
/* Drone: stesso effetto della home (initDroneSticky). Due livelli:
   - .recap-drone (wrapper) → posizionamento;
   - .recap-drone-img (immagine) → float verticale continuo + parallax di scroll, sommati in
     un unico transform translateY via JS (float: stessa tecnica/valori del drone home,
     PERIOD 4s, AMP 10px; parallax legato allo scroll di .tl-recap, ±80px). Su mobile resta statico. */
.recap-drone {
  position: absolute;
  top: -34px;
  right: max(16px, calc(50% - 470px));
  width: 260px;
  height: auto;
  pointer-events: none;
}
.recap-drone-img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}
@media (max-width: 900px) {
  .recap-drone { position: static; display: block; margin: 24px auto 0; width: 200px; }
  .recap-drone-img { transform: none !important; }
}
@media (max-width: 767.98px) {
  .tl-recap { padding: 40px 20px 40px; }
  .recap-title { font-size: 34px; }
}

/* Mobile: nav capitoli — nuovo design a griglia 2x2 (le 4 voci su due righe).
   Sostituisce lo scroll orizzontale: con display:grid ogni voce occupa metà
   larghezza, così nessuna voce viene tagliata.
   NB: `top` resta 114px (altezza reale dell'header sticky .navbar-os anche su
   mobile) per NON far finire la nav coperta dall'header — il prototipo usava 64px
   perché il suo header era più basso. */
@media (max-width: 767.98px) {
  .storia-navbar { top: 114px; margin-top: 40px; }
  .storia-navbar .nav-inner { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .storia-navbar a { flex: none; padding: 13px 10px; font-size: 11px; letter-spacing: .8px; border-bottom: 1px solid rgba(0,0,0,.12); }
  .storia-navbar a:nth-child(2n) { border-right: none; }
  .storia-navbar a:nth-child(n+3) { border-bottom: none; }
  .storia-navbar a .nav-years { font-size: 9px; }
}

/* Mobile: single column, all left-aligned with spine on left */
@media (max-width: 767.98px) {
  .timeline-track::before { left: 8px; }
  .tl-event, .tl-event.left, .tl-event.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 48px 36px;
    transform: translateY(48px);
  }
  .tl-event.left::after, .tl-event.right::after { left: 2px; right: auto; }
  .tl-event.left .tl-img { margin-left: 0; }
  .tl-event.left .tl-people { justify-content: flex-start; }
  .tl-year { font-size: 28px; }
  .chapter-head .chapter-title { font-size: 32px; }
  .chapter { padding-top: 16px; }
  .chapter-head { padding: 48px 0 12px; }
  .contatti-people { padding-bottom: 0px; }
  .contatti-hero, .contatti-utils h3 { text-align: center; }
}
