/* ═══════════════════════════════════════════════════════
   ENRICO VERONESE — Shared Stylesheet
═══════════════════════════════════════════════════════ */

/* ── 1. Variables ──────────────────────────────────── */
:root {
  --paper: #F7F5F2;
  --stone: #EDEAE6;
  --ink:   #1C1C1C;
  --muted: #5A5A5A;
  --line:  #A8A8A8;
  --accent: #E8332C;
  --accent-deep: #B52420;
}

/* ── 2. Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  margin: 0;
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── 3. Utilities ──────────────────────────────────── */
.wrap {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.tag {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.tag-row  { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.tag-pill {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 0.18rem 0.45rem;
}

.inline-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1.2rem;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.inline-cta:hover { color: var(--ink); }

/* ── 4. Reveal animation ───────────────────────────── */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.js-anim .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* ── 5. Skip link ──────────────────────────────────── */
.skip-link {
  position: absolute; top: -64px; left: 12px; z-index: 3000;
  padding: 0.5rem 0.9rem; background: var(--accent); color: #fff; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ── 6. Mobile full-bleed ──────────────────────────── */
@media (max-width: 767px) {
  .bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* ═══════════════════════════════════════════════════════
   PRE-MASTHEAD STRIP
═══════════════════════════════════════════════════════ */
.pre-masthead { border-bottom: 1px solid var(--line); }
.pre-masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   INDEX PAGE — compact sticky nav
═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  height: 50px;
}
.nav-brand {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   INNER PAGES — editorial header with brand + credential
═══════════════════════════════════════════════════════ */
.page-header {
  position: sticky; top: 0; z-index: 1200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-header-wrap {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
  padding: 0.9rem 0;
}
.page-brand { display: grid; gap: 0.08rem; line-height: 1; }
.page-brand-name {
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700; letter-spacing: 0.01em;
}
.page-brand-note {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Breadcrumb ────────────────────────────────────── */
.breadcrumb {
  border-bottom: 1px solid var(--line);
}
.breadcrumb-inner {
  padding: 0.65rem 0;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   NAV (shared between site-header and page-header)
═══════════════════════════════════════════════════════ */
.menu-toggle {
  display: flex; align-items: center;
  padding: 0; border: none; background: none;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; color: var(--ink); min-height: 44px;
}

.main-nav {
  position: absolute; top: 100%; left: 0; width: 100%;
  overflow: hidden; max-height: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: max-height 260ms ease;
}
.main-nav.open { max-height: 360px; }

.main-nav ul {
  list-style: none; margin: 0;
  padding: 1.2rem 4vw 1.4rem;
  display: grid; gap: 0;
}
.main-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.main-nav a:hover    { color: var(--accent); }
.main-nav a.active   {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

@media (max-width: 767px) {
  .nav-brand    { font-weight: 700; }
  .menu-toggle  { font-weight: 700; font-size: 12px; }
  .main-nav a   { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static; width: auto; max-height: none;
    overflow: visible; background: transparent; border-bottom: 0;
  }
  .main-nav ul {
    padding: 0; display: flex;
    align-items: center; gap: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════
   INDEX — MOBILE TEASERS (nascosti su desktop)
═══════════════════════════════════════════════════════ */
.mobile-teasers { display: none; }

/* ═══════════════════════════════════════════════════════
   INDEX — MASTHEAD
═══════════════════════════════════════════════════════ */
.masthead { padding: 2.2rem 0 1.8rem; border-bottom: 1px solid var(--line); }

.masthead-row1 {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 0.6rem;
}
.masthead-name {
  margin: 0;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(3.4rem, 9.5vw, 8rem);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.01em;
}
.masthead-claim {
  margin: 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  font-weight: 700; font-style: normal;
  letter-spacing: 0.06em; color: var(--accent);
  text-align: right; flex-shrink: 0;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   INDEX — SUMMARY STRIP
═══════════════════════════════════════════════════════ */
.summary-strip { border-bottom: 1px solid var(--line); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.summary-item {
  padding: 1.4rem 1.6rem;
  border-right: 1px solid var(--line);
  display: grid; gap: 0.55rem; align-content: start;
}
.summary-item:last-child  { border-right: none; }

.summary-num {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.summary-title {
  margin: 0 0 0.9rem;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 0.92;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.summary-item:hover .summary-title,
.summary-item:focus-visible .summary-title { color: var(--accent); }

.summary-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.summary-thumb img { width: 100%; height: 100%; object-fit: cover; }

.summary-desc {
  margin: 0.55rem 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.summary-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.summary-item:hover .summary-arrow,
.summary-item:focus-visible .summary-arrow {
  border-color: var(--accent);
}

@media (max-width: 767px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-item:nth-child(odd)  { padding-left: 0; }
  .summary-item:nth-child(even) { border-right: none; padding-right: 0; padding-left: 1rem; }
  .summary-item:nth-child(1),
  .summary-item:nth-child(2)    { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
  .summary-item:nth-child(3),
  .summary-item:nth-child(4)    { padding-top: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════
   INDEX — MAIN STORY GRID (2/3 + 1/3)
═══════════════════════════════════════════════════════ */
.main-story { border-bottom: 1px solid var(--line); }
.main-story-grid { display: grid; grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .main-story-grid { grid-template-columns: 2fr 1fr; }
}

/* ── "In questo numero" divider ────────────────────── */
.section-label-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* Lead story (left 2/3) */
.lead-story {
  padding: 2rem 2rem 2rem 0;
}
@media (max-width: 767px) {
  .lead-story { border-right: none; padding: 2rem 0; border-bottom: 1px solid var(--line); }
}

.lead-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); margin-bottom: 0; }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; }

.lead-caption {
  margin: 0.4rem 0 1.4rem;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
}

.lead-byline {
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.lead-standfirst {
  margin: 0 0 1.1rem;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 600; font-style: italic;
  line-height: 1.5; color: var(--muted);
  max-width: 36ch;
}

.lead-headline {
  margin: 0 0 1.2rem;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.0; max-width: 20ch;
}

.lead-body { column-count: 2; column-gap: 2rem; font-size: 0.93rem; line-height: 1.75; }
@media (max-width: 767px) { .lead-body { column-count: 1; } }
.lead-body p { margin: 0 0 0.9em; }

.lead-body p:first-child::first-letter {
  font-family: 'Barlow Semi Condensed', serif;
  font-size: 4em; font-weight: 700;
  float: left; line-height: 0.8;
  margin: 0.1em 0.07em 0 0; color: var(--ink);
}

/* Side column (right 1/3) — dark panel */
.side-col {
  padding: 2rem;
  background: var(--accent);
  display: grid;
  gap: 0;
  align-content: start;
}
@media (max-width: 767px) { .side-col { padding: 0; } }

/* ── Prossime partenze panel (sfondo ink) ─────────── */
.departures-panel { display: grid; gap: 0; }

.departures-header {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.departures-header .tag { color: rgba(255,255,255,0.45); }

.departures-header .tag:first-child {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

.departure-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: grid; gap: 0.18rem;
}
.departure-item:last-of-type { border-bottom: none; }

.departure-date {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.departure-title {
  margin: 0;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600; line-height: 1.1;
  color: #fff;
}
.departure-type {
  font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
}
.departure-status {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 0.15rem; color: rgba(255,255,255,0.35);
}
.departure-status--few    { color: rgba(255,255,255,0.85); }
.departure-status--closed { text-decoration: line-through; color: rgba(255,255,255,0.25); }

.departures-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.departures-footer .inline-cta {
  color: rgba(255,255,255,0.75);
  border-bottom-color: rgba(255,255,255,0.3);
}
.departures-footer .inline-cta:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   SHARED SECTION SHELL
═══════════════════════════════════════════════════════ */
.bs-section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }

.bs-header {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 1rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.bs-headline {
  margin: 0;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   CHI SONO
═══════════════════════════════════════════════════════ */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.about-photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-copy { display: grid; gap: 1rem; align-content: start; }
.about-copy p { margin: 0; font-size: 0.93rem; line-height: 1.75; color: var(--muted); }

.about-note {
  margin: 0; padding: 1rem 1.2rem;
  border-left: 2px solid var(--accent);
  font-size: 0.9rem; line-height: 1.65; color: var(--ink);
}

.cert-row {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.cert-item {
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.cert-name { font-size: 0.9rem; font-weight: 500; }
.cert-body  { font-size: 0.85rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   ATTIVITÀ — indice navigabile
═══════════════════════════════════════════════════════ */
.activity-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.activity-index-item {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: 1.1rem 1.4rem 1.1rem 0;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s;
}
.activity-index-item:first-child { padding-left: 0; }
.activity-index-item:last-child  { border-right: none; padding-right: 0; padding-left: 1.4rem; }
.activity-index-item:not(:first-child):not(:last-child) { padding-left: 1.4rem; }
.activity-index-item:hover { background: var(--stone); }

.activity-index-num {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.activity-index-name {
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700; line-height: 1;
  color: var(--ink);
  transition: color 0.15s;
}
.activity-index-item:hover .activity-index-name { color: var(--accent); }

.activity-index-sub {
  font-size: 11px; color: var(--muted); line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════
   ATTIVITÀ
═══════════════════════════════════════════════════════ */
.activity-section { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.activity-section:last-child { border-bottom: none; }

.activity-row {
  display: grid; gap: 3rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .activity-row              { grid-template-columns: 1fr 1fr; }
  .activity-row.photo-right  { direction: rtl; }
  .activity-row.photo-right > * { direction: ltr; }
}

.activity-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.activity-img img { width: 100%; height: 100%; object-fit: cover; }
.auto-carousel { position: absolute; inset: 0; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.carousel-slide.active { opacity: 1; }

.activity-text { display: grid; gap: 1rem; align-content: start; }

.activity-h2 {
  margin: 0;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1;
}
.activity-text p { margin: 0; font-size: 0.93rem; line-height: 1.75; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   CORSI
═══════════════════════════════════════════════════════ */
.course-list { display: grid; gap: 0; }

.course-item {
  display: grid; grid-template-columns: 1fr;
  gap: 0.8rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .course-item { grid-template-columns: 20ch 1fr 18ch; gap: 2.5rem; align-items: start; }
}

.course-num-title { display: grid; gap: 0.3rem; }
.course-title {
  margin: 0;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600; line-height: 1;
}
.course-desc  { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--muted); }
.course-meta  { display: grid; gap: 0.55rem; }
.cmeta-item   { font-size: 0.85rem; }
.cmeta-item strong {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.1rem;
}
.cmeta-item span { color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   SELVAGGIO BLU — article treatment
═══════════════════════════════════════════════════════ */
.article-hero { border-bottom: 1px solid var(--line); }

.article-hero-img {
  aspect-ratio: 16 / 7; overflow: hidden; background: var(--stone);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-header { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); }

.article-kicker {
  display: block; margin-bottom: 0.8rem;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.article-title {
  margin: 0 0 0.8rem;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700; line-height: 0.95; max-width: 18ch;
}
.article-standfirst {
  margin: 0; max-width: 52ch;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600; line-height: 1.4;
  color: var(--muted);
}

.article-body-wrap { padding: 2rem 0; border-bottom: 1px solid var(--line); }

.article-body {
  column-count: 2; column-gap: 3rem;
  font-size: 0.95rem; line-height: 1.8;
  max-width: 900px;
}
@media (max-width: 767px) { .article-body { column-count: 1; } }
.article-body p { margin: 0 0 1em; }
.article-body p:first-child::first-letter {
  font-family: 'Barlow Semi Condensed', serif;
  font-size: 4.2em; font-weight: 700;
  float: left; line-height: 0.8;
  margin: 0.1em 0.07em 0 0; color: var(--ink);
}

.article-gallery { padding: 2rem 0; border-bottom: 1px solid var(--line); }

.gallery-asym {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px; background: var(--line);
}
.gallery-asym .g1 { grid-row: 1 / 3; aspect-ratio: 2 / 3; overflow: hidden; background: var(--stone); }
.gallery-asym .g2 { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.gallery-asym .g3 { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.gallery-asym img { width: 100%; height: 100%; object-fit: cover; }

.article-info { padding: 2rem 0; border-bottom: 1px solid var(--line); }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  padding: 0.8rem 0; text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.info-table th {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); width: 12ch;
  padding-right: 2rem;
}
.info-table td { color: var(--muted); }

.article-cta {
  padding: 2.5rem 0; text-align: center;
  border-bottom: 1px solid var(--line);
}
.article-cta-title {
  margin: 0 0 0.5rem;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}
.article-cta p { margin: 0 0 1.4rem; font-size: 0.93rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   VIAGGI
═══════════════════════════════════════════════════════ */
.trips-group { margin-bottom: 0; }

.trips-group-label {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.trip-row {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem; padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .trip-row { grid-template-columns: 200px 1fr; align-items: start; }
}

.trip-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.trip-thumb img { width: 100%; height: 100%; object-fit: cover; }

.trip-text { display: grid; gap: 0.5rem; align-content: start; }
.trip-name {
  margin: 0;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1;
}
.trip-type {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.trip-desc { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   CONTATTI
═══════════════════════════════════════════════════════ */
.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact-copy { display: grid; gap: 1rem; }
.contact-copy p { margin: 0; font-size: 0.93rem; color: var(--muted); line-height: 1.75; }

.contact-list { border-top: 1px solid var(--line); display: grid; }
.contact-item { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-item-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.25rem;
}
.contact-item-value {
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
}
.contact-item-value a:hover { color: var(--accent); }

/* ── Forms ─────────────────────────────────────────── */
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.3rem; }
label  {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
input, textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-size: 0.93rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; background: var(--accent); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-deep); }
.form-note { margin: 0; font-size: 0.84rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   RELATED — "Leggi anche"
═══════════════════════════════════════════════════════ */
.related { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); }

.related-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.related-item {
  display: grid; gap: 0.7rem; align-content: start;
  padding: 0 1.5rem 0 0;
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.related-item:first-child { padding-left: 0; }
.related-item:last-child  { border-right: none; padding-right: 0; padding-left: 1.5rem; }
.related-item:nth-child(2) { padding-left: 1.5rem; }

.related-item:hover .related-title { color: var(--accent); }

.related-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }

.related-title {
  margin: 0;
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600; line-height: 1.15;
  transition: color 0.2s;
}
.related-arrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 767px) {
  .related-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .related-item { border-right: none; padding: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
  .related-item:last-child { border-bottom: none; padding-bottom: 0; }
  .related-item:nth-child(2) { padding-left: 0; }
}

/* ═══════════════════════════════════════════════════════
   FOOTER — 3 columns
═══════════════════════════════════════════════════════ */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); }

.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand-name {
  font-family: 'Barlow Semi Condensed', serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700; display: block; margin-bottom: 0.2rem;
}
.footer-brand-note {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 0.6rem;
}
.footer-claim {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-style: normal; font-weight: 700;
  font-size: 0.9rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.footer-col-title {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 0.8rem;
}
.footer-links { display: grid; gap: 0; }
.footer-links a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.footer-links a:last-child { border-bottom: none; }
.footer-links a:hover { color: var(--accent); }

.footer-contact-item { margin-bottom: 0.8rem; }
.footer-contact-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 0.15rem;
}
.footer-contact-value {
  font-size: 11px; letter-spacing: 0.06em;
}
.footer-contact-value a:hover { color: var(--accent); }

.footer-copy {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy a:hover { color: var(--accent); }

/* ── Logo UIAGM ──────────────────────────────────── */
.footer-uiagm {
  display: block;
  width: 100px;
  height: 100px;
  margin-top: 0.8rem;
  opacity: 0.75;
}

.cert-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .footer-uiagm { width: 48px; height: 48px; margin-top: 0; }
}

/* ── CTA pair ────────────────────────────────────────── */
.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  margin-top: 0.5rem;
}

.inline-cta--secondary {
  color: var(--muted);
  border-bottom-color: var(--line);
}

.inline-cta--secondary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Galleria Lofoten ────────────────────────────────── */
.lofoten-gallery-section {
  display: none;
  scroll-margin-top: 5rem;
}

.lofoten-gallery-section.open {
  display: block;
  margin: 2rem 0 3.5rem;
}

.lofoten-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.3rem;
}

.lofoten-gallery-header-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lofoten-gallery-header-count {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--line);
}

/* ── Viewer foto Lofoten ─────────────────────────────── */
.lofoten-viewer { width: 100%; }

.viewer-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65vh;
  max-height: 580px;
  min-height: 280px;
  background: var(--stone);
  overflow: hidden;
}

.viewer-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  transition: opacity 0.15s ease;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(247, 245, 242, 0.88);
  border: none;
  cursor: pointer;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}

.viewer-nav--prev { left: 0; }
.viewer-nav--next { right: 0; }
.viewer-nav:hover { background: var(--accent); color: #fff; }

.viewer-strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 3px 0 0;
  scrollbar-width: none;
}

.viewer-strip::-webkit-scrollbar { display: none; }

.viewer-thumb {
  flex: 0 0 72px;
  height: 52px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.38;
  transition: opacity 0.2s;
  background: var(--stone);
}

.viewer-thumb.active {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.viewer-thumb:hover:not(.active) { opacity: 0.7; }

.viewer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-meta {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.viewer-counter {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   MOBILE — miglioramenti grafici
═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Pre-masthead: nascosto su mobile (info ridondanti) ── */
  .pre-masthead { display: none; }

  /* ── Masthead: più compatto ── */
  .masthead { padding: 1.4rem 0 1.2rem; }
  .masthead-claim { align-self: center; }

  /* ── Summary strip: meno padding ── */
  .summary-item { padding-top: 1rem; padding-bottom: 1rem; }
  .summary-desc  { display: none; } /* troppo testo su colonna stretta */

  /* ── Lead story ── */
  .lead-byline  { font-size: 9px; }
  .lead-caption { margin-bottom: 1rem; }

  /* ── Titoli: più leggibili su mobile ── */
  .summary-title   { font-weight: 700; }
  .bs-headline     { font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 700; }
  .course-title    { font-size: 1.65rem; font-weight: 700; }
  .trip-name       { font-size: 1.8rem; font-weight: 700; }
  .activity-h2     { font-size: 2rem; font-weight: 700; }
  .mobile-teaser-title { font-size: 1.75rem; font-weight: 700; }

  /* ── Side stories: più compatte ── */
  .side-story { padding: 1.1rem 0; }
  .side-headline { font-size: 1.35rem; }

  /* ── Sezione "chi sono" senza foto: visual accent ── */
  .side-story:last-child {
    padding: 1.1rem 1.2rem;
    background: var(--stone);
  }

  /* ── Footer: struttura compatta ── */
  .site-footer { padding: 1.2rem 0 1.5rem; }

  .footer-grid { gap: 0; }

  /* Blocco brand */
  .footer-grid > div:first-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .footer-brand-name { font-size: 1rem; margin-bottom: 0; }
  .footer-brand-note { display: none; } /* credenziale già in nav */
  .footer-claim      { font-size: 0.85rem; }

  /* Sezione "Pagine": griglia 2 colonne compatta */
  .footer-grid > div:nth-child(2) {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
  }
  .footer-col-title { margin-bottom: 0.6rem; }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .footer-links a {
    font-size: 10px;
    padding: 0.38rem 0;
    border-bottom: 1px solid var(--line);
  }
  .footer-links a:nth-child(even)  { padding-left: 1rem; border-left: 1px solid var(--line); }
  .footer-links a:last-child,
  .footer-links a:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* Sezione contatti: compatta */
  .footer-contact-item { margin-bottom: 0.5rem; }

  .footer-copy {
    margin-top: 1rem;
    padding-top: 0.8rem;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  /* ── Corsi: leggibilità mobile ── */
  .course-item { padding: 1.4rem 0; gap: 0.6rem; }

  .course-num-title .tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink);
  }

  .course-meta {
    background: var(--stone);
    padding: 1rem 1.1rem;
    margin-top: 0.6rem;
    display: grid;
    gap: 0.7rem;
  }

  /* ── "Leggi anche": nascosto su mobile ── */
  .related { display: none; }

  /* ── Summary boxes: nessun hover su touch ── */
  .summary-item:hover .summary-title,
  .summary-item:focus-visible .summary-title { color: var(--ink); }
  .summary-item:hover .summary-arrow,
  .summary-item:focus-visible .summary-arrow { border-color: transparent; }
  .summary-item:hover { background: transparent; }

  /* ── Home: main story nascosto, teaser minimal al suo posto ── */
  .main-story { display: none; }

  .mobile-teasers {
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .mobile-teaser {
    display: block;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
  }
  .mobile-teaser:last-child { border-bottom: none; }

  .mobile-teaser-label {
    display: block;
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 0.5rem;
  }
  .mobile-teaser-title {
    margin: 0 0 0.5rem;
    font-family: 'Barlow Semi Condensed', serif;
    font-size: 1.6rem; font-weight: 700; line-height: 1.05;
    color: var(--ink);
  }
  .mobile-teaser-body {
    margin: 0 0 0.7rem;
    font-size: 0.88rem; color: var(--muted); line-height: 1.55;
  }
  .mobile-teaser-cta {
    display: inline-block;
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
  }

  /* ── Dark departures panel su mobile ── */
  .mobile-teaser--dark {
    background: var(--accent);
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-dep-header {
    display: flex; justify-content: space-between;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 0;
  }
  .mobile-dep-label:first-child {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    text-transform: uppercase;
  }
  .mobile-dep-label {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }
  .mobile-dep-item {
    display: grid; gap: 0.12rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
  }
  .mobile-dep-item:last-of-type { border-bottom: none; }
  .mobile-dep-date {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.45);
  }
  .mobile-dep-title {
    font-family: 'Barlow Semi Condensed', serif;
    font-size: 1.55rem; font-weight: 700;
    line-height: 1.0; color: #fff;
  }
  .mobile-dep-type {
    font-size: 11px; color: rgba(255,255,255,0.35);
  }
  .mobile-dep-footer {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-dep-cta {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 1px;
    text-decoration: none;
  }

  /* ── Cover teaser: immagine full-bleed con testo sovrapposto ── */
  .mobile-teaser--cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-bottom: 1px solid var(--line);
  }
  .mobile-teaser--cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mobile-teaser--cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
      rgba(10, 10, 10, 0.88) 0%,
      rgba(10, 10, 10, 0.22) 55%,
      transparent 100%);
  }
  .mobile-teaser--cover .mobile-teaser-content {
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 1.4rem;
  }
  .mobile-teaser--cover .mobile-teaser-label {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.85);
  }
  .mobile-teaser--cover .mobile-teaser-title {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  }
  .mobile-teaser--cover .mobile-teaser-cta {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.5);
  }

  /* ── Attività: indice 2×2 su mobile ── */
  .activity-index { grid-template-columns: 1fr 1fr; }

  .activity-index .activity-index-item {
    padding: 0.9rem 0;
    border-right: none;
  }
  .activity-index .activity-index-item:nth-child(odd) {
    padding-right: 1rem;
    border-right: 1px solid var(--line);
  }
  .activity-index .activity-index-item:nth-child(even) {
    padding-left: 1rem;
  }
  .activity-index .activity-index-item:nth-child(1),
  .activity-index .activity-index-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
  }
  .activity-index .activity-index-item:nth-child(3),
  .activity-index .activity-index-item:nth-child(4) {
    padding-top: 1rem;
  }
  .activity-index-sub { display: none; }

  /* ── Attività: meta box mobile ── */
  .activity-section .tag-row { display: none; }

  /* ── Viaggi: meta box mobile ── */
  .trip-text .tag-row {
    background: var(--stone);
    padding: 0.6rem 0.8rem;
    margin-top: 0.4rem;
  }

  /* ── Viewer Lofoten: altezza ridotta su mobile ── */
  .viewer-main { height: 55vw; max-height: 380px; }
  .viewer-thumb { flex-basis: 56px; height: 40px; }

  /* ── CTA pair: verticale su mobile ── */
  .cta-pair {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}
