/* =====================================================
   PRO LOCO MEDICEA — Premium Design System
   Apple-style · Gold · Red · Blue
   ===================================================== */

/* ── Design Tokens ── */
:root {
  --ink:          #0d1420;
  --ink-soft:     #253041;
  --paper:        #f8f5ef;
  --paper-warm:   #fffbf4;
  --white:        #ffffff;
  --line:         #e8e2d8;
  --line-dark:    rgba(255,255,255,0.14);
  --muted:        #6b7280;

  --gold:         #c59a35;
  --gold-light:   #d4ab4a;
  --gold-soft:    #f0dfb8;
  --gold-dim:     rgba(197,154,53,0.18);
  --red:          #8e1f2f;
  --red-light:    #a82438;
  --blue:         #123b66;
  --blue-light:   #1a4f88;
  --success:      #1d6a46;
  --error:        #a21f2b;

  --shadow-sm:    0 2px 8px rgba(13,20,32,0.06);
  --shadow-md:    0 8px 28px rgba(13,20,32,0.10);
  --shadow-lg:    0 20px 60px rgba(13,20,32,0.14);
  --shadow-xl:    0 32px 80px rgba(13,20,32,0.18);
  --shadow-gold:  0 12px 36px rgba(197,154,53,0.28);

  --header-height: 180px;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: 
    linear-gradient(rgba(255, 251, 244, 0.94), rgba(255, 251, 244, 0.94)),
    url('../img/background.webp') no-repeat center center fixed;
  background-size: cover;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-standalone {
  overscroll-behavior-y: contain;
}

/* ─────────────────────────────────────
   PREMIUM PRELOADER
───────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--ink); /* #0d1420 */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms cubic-bezier(0.85, 0, 0.15, 1), visibility 600ms cubic-bezier(0.85, 0, 0.15, 1);
}

#preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 280px;
  width: 100%;
}

.preloader-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  animation: preloader-logo-in 900ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             preloader-logo-pulse 2000ms ease-in-out infinite alternate 900ms;
  opacity: 0;
  transform: scale(0.6);
}

#preloader.is-loaded .preloader-logo {
  animation: preloader-logo-out 450ms cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

.preloader-progress {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-light) 100%);
  border-radius: 10px;
  transition: width 250ms ease-out;
  position: relative;
  box-shadow: 0 0 10px rgba(197, 154, 53, 0.6);
}

/* Shimmering highlight on the progress bar */
.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: preloader-shine 1.6s infinite;
  transform: translateX(-100%);
}

@keyframes preloader-shine {
  100% {
    transform: translateX(100%);
  }
}

@keyframes preloader-logo-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloader-logo-pulse {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes preloader-logo-out {
  to {
    opacity: 0;
    transform: scale(0.7) translateY(24px);
  }
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
fieldset { border: none; }

:focus-visible {
  outline: 2.5px solid rgba(197,154,53,0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

/* Prevent text overflow / layout breakage on all content and cards */
.article-wrap,
.article-content,
.article-header,
.article-header h1,
.article-excerpt,
.post-card,
.post-card-body,
.post-card-title,
.post-card-excerpt,
.post-card-title a,
.timeline li,
.initiative-card,
.footer-desc,
.legal-layout article {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Specific clamp for homepage and listing post cards to maintain premium grid symmetry */
.post-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* ── Layout ── */
.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Skip Link ── */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.2s var(--ease-out-expo);
}
.skip-link:focus { transform: translateY(0); }

/* ═══════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-height);
  color: var(--white);
  transition:
    height           350ms var(--ease-smooth),
    background-color 350ms var(--ease-smooth),
    backdrop-filter  350ms var(--ease-smooth),
    box-shadow       350ms var(--ease-smooth),
    color            350ms var(--ease-smooth);
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255,252,246,0.82);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(13,20,32,0.08), var(--shadow-sm);
  height: 68px;
}

/* Force dark header theme on subpages (non-home pages) for premium contrast */
body:not([data-active-page="home"]) .site-header {
  color: var(--ink);
  background: rgba(255,252,246,0.82);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(13,20,32,0.08), var(--shadow-sm);
}

body:not([data-active-page="home"]) .site-header .desktop-nav {
  border-color: rgba(13,20,32,0.1);
  background: rgba(255,255,255,0.6);
}

body:not([data-active-page="home"]) .site-header .desktop-nav a:hover,
body:not([data-active-page="home"]) .site-header .desktop-nav a[aria-current="page"] {
  background: rgba(13,20,32,0.07);
}

.header-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Brand */
.brand {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition:
    opacity 350ms var(--ease-smooth),
    transform 350ms var(--ease-smooth),
    height 350ms var(--ease-smooth),
    margin 350ms var(--ease-smooth),
    visibility 350ms var(--ease-smooth);
  transform-origin: center top;
}

.site-header.is-scrolled .brand {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin-top: -10px;
  margin-bottom: -15px;
  transform: translateY(-20px) scale(0.6);
  pointer-events: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 20px;
  transition: transform 300ms var(--ease-spring);
  animation: logo-glow-entrance 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes logo-glow-entrance {
  0% {
    opacity: 0.8;
    transform: scale(0.92);
    filter: drop-shadow(0 0 0 rgba(197, 154, 53, 0));
    box-shadow: 0 0 0 0 rgba(197, 154, 53, 0);
  }
  40% {
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(0 0 15px rgba(197, 154, 53, 0.75));
    box-shadow: 0 0 25px 6px rgba(197, 154, 53, 0.45);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    box-shadow: none;
  }
}

.brand:hover img { transform: scale(1.06) rotate(-3deg); }

.brand span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  line-height: 1.25;
}

.brand strong {
  font-size: 1.10rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand small {
  color: currentColor;
  opacity: 0.65;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Desktop Nav Pill */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 300ms, background-color 300ms;
}

.site-header.is-scrolled .desktop-nav {
  border-color: rgba(13,20,32,0.1);
  background: rgba(255,255,255,0.6);
}

.desktop-nav a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 50px;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: currentColor;
  opacity: 0.75;
  transition: background-color 200ms, opacity 200ms, color 200ms;
}

.desktop-nav a:hover { opacity: 1; background: rgba(255,255,255,0.16); }
.desktop-nav a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,0.22); }

.site-header.is-scrolled .desktop-nav a:hover,
.site-header.is-scrolled .desktop-nav a[aria-current="page"] {
  background: rgba(13,20,32,0.07);
}

/* Header CTA */
.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 50px;
  background: var(--gold);
  color: #12090a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-gold);
  transition: transform 200ms var(--ease-spring), box-shadow 200ms;
  flex-shrink: 0;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.header-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 42px rgba(197,154,53,0.36);
}

/* ═══════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 0 24px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  transition:
    transform     200ms var(--ease-spring),
    box-shadow    200ms,
    background    200ms,
    border-color  200ms,
    opacity       200ms;
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 200ms;
}

.button:hover::after { background: rgba(255,255,255,0.1); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.button-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #12090a;
  box-shadow: 0 8px 24px rgba(197,154,53,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.button-gold:hover {
  box-shadow: 0 16px 40px rgba(197,154,53,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(13,20,32,0.2);
}
.button-dark:hover { box-shadow: 0 16px 40px rgba(13,20,32,0.3); }

.button-muted {
  background: rgba(13,20,32,0.06);
  color: var(--ink);
  border-color: rgba(13,20,32,0.1);
}
.button-muted:hover { background: rgba(13,20,32,0.1); }

.button-glass {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.button-glass:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity  0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity  0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity  0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-spring);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }

/* ═══════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: calc(var(--header-height) + 80px) 0 0;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.88);
  transform: scale(1.06);
  transform-origin: center 30%;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

.hero-shade {
  background:
    linear-gradient(135deg, rgba(13,20,32,0.92) 0%, rgba(13,20,32,0.55) 50%, rgba(13,20,32,0.12) 100%),
    linear-gradient(180deg, rgba(13,20,32,0.18) 0%, rgba(13,20,32,0.0) 40%, rgba(13,20,32,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-bottom: 0;
  padding-top: 0;
}

@media (min-width: 1200px) {
  .hero-content {
    margin-left: 5% !important;
  }
}

/* Hero animations */
.hero-content .eyebrow {
  animation: fadeUp 0.8s 0.2s var(--ease-out-expo) both;
}
.hero h1 {
  animation: fadeUp 0.9s 0.35s var(--ease-out-expo) both;
}
.hero-copy {
  animation: fadeUp 0.9s 0.5s var(--ease-out-expo) both;
}
.hero-actions {
  animation: fadeUp 0.9s 0.65s var(--ease-out-expo) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #fff 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Hero Strip */
.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(13,20,32,0.42);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  animation: fadeUp 0.9s 0.8s var(--ease-out-expo) both;
}

.hero-strip-item {
  padding: 26px 28px;
  position: relative;
  transition: background 250ms;
}

.hero-strip-item + .hero-strip-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.hero-strip-item:hover { background: rgba(255,255,255,0.05); }

.hero-strip-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out-expo);
}

.hero-strip-item:hover::after { transform: scaleX(1); }

.hero-strip-item span {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-strip-item strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════ */
.content-section,
.join-section,
.gallery-section,
.legal-page {
  padding: 112px 0;
}

.join-section {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.join-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,154,53,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.join-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,59,102,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-section {
  background: #f5f3ef;
}

/* Section Heading */
.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.split-intro h2,
.timeline-wrap h2,
.contact-inner h2,
.legal-layout h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.split-intro p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.join-section .split-intro p:not(.eyebrow) {
  color: rgba(255,255,255,0.65);
}

/* ═══════════════════════════════════
   INITIATIVE CARDS
══════════════════════════════════════ */
.initiative-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.initiative-card {
  min-height: 220px;
  padding: 28px 24px;
  border: 1px solid rgba(13,20,32,0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition:
    transform   300ms var(--ease-spring),
    box-shadow  300ms,
    border-color 300ms;
}

.initiative-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: height 300ms var(--ease-out-expo);
}

.initiative-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.initiative-card:hover::before { height: 5px; }

.initiative-card:nth-child(1)::before { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.initiative-card:nth-child(2)::before { background: linear-gradient(90deg, var(--red), var(--red-light)); }
.initiative-card:nth-child(3)::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.initiative-card:nth-child(4)::before { background: linear-gradient(90deg, var(--ink-soft), var(--ink)); }

.initiative-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.initiative-card:nth-child(1) .initiative-card-icon { background: rgba(197,154,53,0.12); color: var(--gold); }
.initiative-card:nth-child(2) .initiative-card-icon { background: rgba(142,31,47,0.1); color: var(--red); }
.initiative-card:nth-child(3) .initiative-card-icon { background: rgba(18,59,102,0.1); color: var(--blue); }
.initiative-card:nth-child(4) .initiative-card-icon { background: rgba(13,20,32,0.07); color: var(--ink); }

.initiative-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.initiative-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════
   TIMELINE
══════════════════════════════════════ */
.timeline-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--red) 50%, var(--blue) 100%);
  border-radius: 2px;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 0 0 32px 24px;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--gold);
  transition: transform 300ms var(--ease-spring), border-color 300ms;
}

.timeline li:nth-child(2)::before { border-color: var(--red); }
.timeline li:nth-child(3)::before { border-color: var(--blue); }
.timeline li:nth-child(4)::before { border-color: var(--ink); }

.timeline li:hover::before { transform: scale(1.4); }

.timeline time {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}

.timeline h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.timeline p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════
   JOIN / FORM SECTION
══════════════════════════════════════ */
.form-shell {
  position: relative;
  z-index: 1;
}

.membership-form {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.98);
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Modern Form Stepper */
.form-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  transition: opacity 300ms;
}

.step:not(.is-active):not(.is-done) {
  opacity: 0.5;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(13,20,32,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: all 400ms var(--ease-spring);
  box-shadow: 0 4px 12px rgba(0,0,0,0);
}

.step.is-active .step-circle {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
  transform: scale(1.15);
  box-shadow: 0 8px 24px rgba(197,154,53,0.4);
}

.step.is-done .step-circle {
  border-color: var(--gold);
  background: var(--white);
  color: var(--gold);
}

.step-label {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 3px;
  background: rgba(13,20,32,0.08);
  margin: 0 16px;
  margin-bottom: 22px; /* align with circle */
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.step-line-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--gold);
  transition: width 500ms var(--ease-out-expo);
}

/* Animations for step transition */
.form-steps-container {
  position: relative;
  overflow: hidden;
  min-height: 400px; /* Prevent jumping */
}

fieldset[data-form-step] {
  animation: slideInRight 400ms var(--ease-out-expo) both;
  width: 100%;
}

fieldset[data-form-step][hidden] {
  display: none !important;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.membership-form fieldset {
  min-width: 0;
}

.membership-form fieldset[hidden] { display: none; }

.membership-form legend {
  margin-bottom: 24px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.membership-form legend::before {
  content: var(--step-eyebrow, 'Passo 1 di 6');
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* Premium Membership Cards */
.membership-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.membership-card {
  min-height: 170px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  border: 1.5px solid rgba(13,20,32,0.1) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--white) !important;
  cursor: pointer !important;
  transition: all 300ms var(--ease-spring) !important;
  position: relative !important;
  text-align: left !important;
}

.membership-card:hover {
  border-color: rgba(197,154,53,0.5) !important;
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
}

.membership-card .card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  align-items: flex-start;
}

.membership-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.membership-card .card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(13,20,32,0.06);
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.membership-card .gold-badge {
  background: rgba(197,154,53,0.15);
  color: var(--gold);
}

.membership-card .blue-badge {
  background: rgba(18,59,102,0.1);
  color: var(--blue);
}

.membership-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.membership-card .card-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.membership-card .card-price {
  display: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: auto;
}

.membership-card .card-price small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

/* Selected state */
.membership-card:has(input:checked) {
  border-color: var(--gold) !important;
  background: rgba(197,154,53,0.03) !important;
  box-shadow: var(--shadow-gold) !important;
  transform: translateY(-4px) !important;
  color: inherit !important;
}

.membership-card:has(input:checked) .card-title {
  color: var(--gold);
}

/* Fields */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.field-wide { grid-column: 1 / -1; }

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid rgba(13,20,32,0.08);
  border-radius: var(--radius);
  background: rgba(13,20,32,0.02);
  color: var(--ink);
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 4px rgba(197,154,53,0.14);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(162,31,43,0.1);
}

.field-error {
  min-height: 18px;
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Consent List */
.consent-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.consent-list label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1.5px solid rgba(13,20,32,0.08);
  border-radius: var(--radius);
  background: rgba(13,20,32,0.02);
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}

.consent-list label:hover {
  border-color: rgba(18,59,102,0.3);
  background: rgba(18,59,102,0.025);
}

.consent-list label:has(input:checked) {
  border-color: rgba(18,59,102,0.3);
  background: rgba(18,59,102,0.04);
}

.consent-list input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.consent-list a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(18,59,102,0.3);
  text-underline-offset: 2px;
}

.consent-list a:hover { text-decoration-color: var(--blue); }

/* Registration Summary & Consents Grid */
.summary-consent-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 32px;
  margin-top: 10px;
}

.form-summary-box {
  padding: 24px;
  background: rgba(13, 20, 32, 0.025);
  border: 1.5px solid rgba(13, 20, 32, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 2px 8px rgba(13, 20, 32, 0.02);
}

.form-summary-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 1.5px solid rgba(13, 20, 32, 0.08);
  padding-bottom: 8px;
}

.summary-details {
  display: grid;
  gap: 14px;
  font-size: 0.9rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-item strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.summary-item span {
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 500;
}

.summary-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.summary-badge-ordinario {
  background: rgba(13, 20, 32, 0.08);
  color: var(--ink);
}

.summary-badge-sostenitore {
  background: rgba(197, 154, 53, 0.15);
  color: var(--gold);
}

.summary-badge-giovane {
  background: rgba(18, 59, 102, 0.1);
  color: var(--blue);
}

@media (max-width: 900px) {
  .summary-consent-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-actions button[data-next-step],
.form-actions button[data-submit-step] {
  margin-left: auto;
}

.form-status {
  min-height: 20px;
  margin: 16px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-success { color: var(--success); }
.form-status.is-error   { color: var(--error); }

/* ═══════════════════════════════════
   GALLERY
══════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-skeleton,
.gallery-item {
  min-height: 300px;
  border-radius: var(--radius-lg);
}

.gallery-skeleton {
  background: linear-gradient(90deg,
    rgba(13,20,32,0.04) 0%,
    rgba(13,20,32,0.08) 50%,
    rgba(13,20,32,0.04) 100%);
  background-size: 240% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(13,20,32,0.08);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition:
    transform   300ms var(--ease-spring),
    box-shadow  300ms;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.gallery-item button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 256px;
  display: block;
  border: 0;
  padding: 0;
  background: #ece7dc;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 256px;
  object-fit: cover;
  transition: transform 400ms var(--ease-out-expo);
}

.gallery-item:hover img { transform: scale(1.06); }

/* Video play button overlay */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 20, 32, 0.25);
  color: var(--white);
  pointer-events: none;
  transition: background 250ms;
}

.video-play-overlay svg {
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(7, 11, 18, 0.18);
  transition: transform 200ms var(--ease-spring), background 200ms, color 200ms;
}

.gallery-item:hover .video-play-overlay {
  background: rgba(13, 20, 32, 0.35);
}

.gallery-item:hover .video-play-overlay svg {
  transform: scale(1.12);
  background: var(--gold);
  color: #12090a;
}

.gallery-item figcaption {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  border-top: 1px solid rgba(13,20,32,0.06);
}

.gallery-item-date {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 40px 32px;
  border: 1.5px dashed rgba(13,20,32,0.12);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  font-size: 0.94rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7,11,18,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: fadeIn 200ms var(--ease-out-expo) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-inner {
  width: min(1020px, 100%);
  display: grid;
  gap: 16px;
  animation: scaleUp 300ms var(--ease-spring) both;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox img,
.lightbox iframe {
  width: 100%;
  max-height: 80svh;
  border-radius: var(--radius-lg);
  background: #000;
}

.lightbox img {
  object-fit: contain;
}

.lightbox iframe {
  aspect-ratio: 16 / 9;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,0.85);
}

.lightbox-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.25rem;
  transition: background 200ms, transform 200ms var(--ease-spring);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1) rotate(90deg);
}

/* ═══════════════════════════════════
   CONTACT BAND
══════════════════════════════════════ */
.contact-band {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, #6b1523 40%, var(--blue) 100%);
  color: var(--white);
}

.contact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(197,154,53,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

.contact-inner .eyebrow {
  color: var(--gold-soft);
}

.contact-inner h2 {
  margin-top: 10px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.contact-actions .button-muted {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.24);
}
.contact-actions .button-muted:hover { background: rgba(255,255,255,0.22); }

/* ═══════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  padding: 64px 0 40px;
  background: #070b12;
  color: rgba(255,255,255,0.62);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,154,53,0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.site-footer a {
  transition: color 200ms;
}

.site-footer a:hover { color: var(--gold-soft); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}

/* ═══════════════════════════════════
   MOBILE TAB BAR
══════════════════════════════════════ */
.mobile-tabbar { display: none; }

/* ═══════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 130;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(13,20,32,0.1);
  border-radius: var(--radius-xl);
  background: rgba(255,253,248,0.94);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  animation: slideUp 400ms var(--ease-spring) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner[hidden] { display: none; }

.cookie-banner strong { font-size: 0.94rem; font-weight: 700; }
.cookie-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   LEGAL PAGES
══════════════════════════════════════ */
.legal-page {
  padding-top: calc(var(--header-height) + 60px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-layout aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.legal-layout article {
  display: grid;
  gap: 28px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.legal-layout h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-layout p {
  color: var(--ink-soft);
  line-height: 1.72;
}

/* ═══════════════════════════════════
   RESPONSIVE — 1040px
══════════════════════════════════════ */
@media (max-width: 1040px) {
  .header-cta { display: none; }

  .desktop-nav a { padding: 0 12px; }

  .hero h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }

  .initiative-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline-wrap,
  .legal-layout { grid-template-columns: 1fr; }

  .legal-layout aside {
    position: static;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE — 760px (Mobile)
══════════════════════════════════════ */
@media (max-width: 760px) {
  :root {
    --header-height: 0px;
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    background: var(--paper);
  }

  .container {
    width: calc(100% - 32px);
  }

  .site-header { display: none; }

  /* Mobile Tab Bar */
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(13,20,32,0.09);
    background: rgba(250,248,244,0.94);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
  }

  .mobile-tabbar a {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 10px;
    color: rgba(13,20,32,0.45);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 200ms, background 200ms, transform 200ms var(--ease-spring);
  }

  .mobile-tabbar a:active { transform: scale(0.9); }

  .mobile-tabbar svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.7;
    transition: transform 200ms var(--ease-spring);
  }

  .mobile-tabbar a[aria-current="page"] {
    color: var(--blue);
    background: rgba(18,59,102,0.08);
  }

  .mobile-tabbar a[aria-current="page"] svg { transform: scale(1.1); }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding: 72px 0 0;
  }

  .hero-shade {
    background:
      linear-gradient(180deg,
        rgba(13,20,32,0.55) 0%,
        rgba(13,20,32,0.2) 35%,
        rgba(13,20,32,0.85) 75%,
        rgba(13,20,32,0.96) 100%);
  }

  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }

  .hero-copy { font-size: 0.96rem; }

  .hero-actions { display: grid; }

  .hero-strip {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .hero-strip-item + .hero-strip-item {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* Sections */
  .content-section,
  .join-section,
  .gallery-section,
  .legal-page {
    padding: 72px 0;
  }

  .split-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  /* Initiative grid */
  .initiative-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .initiative-card { min-height: 0; }

  /* Timeline */
  .timeline-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .timeline li {
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding-bottom: 24px;
  }

  /* Form */
  .membership-form {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .form-topline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .membership-options { grid-template-columns: 1fr; }

  .field-grid { grid-template-columns: 1fr; }

  /* Compact responsive form stepper on mobile */
  @media (max-width: 600px) {
    .step-label {
      display: none;
    }
    .step-line {
      margin: 0 6px;
      margin-bottom: 0px;
      align-self: center;
    }
    .form-stepper {
      margin-bottom: 28px;
      align-items: center;
    }
    .step {
      gap: 0;
    }
    .step-circle {
      width: 28px;
      height: 28px;
      font-size: 0.85rem;
    }
    .step.is-active .step-circle {
      transform: scale(1.1);
    }
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .form-actions button {
    width: 100%;
  }

  .form-actions button[data-next-step],
  .form-actions button[data-submit-step] {
    margin-left: 0;
  }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }

  .gallery-item button,
  .gallery-item img { min-height: 240px; }

  /* Contact */
  .contact-inner {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .contact-inner .eyebrow::before { display: none; }
  .contact-inner .eyebrow { justify-content: center; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Cookie */
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .cookie-actions { justify-content: stretch; }
  .cookie-actions .button { flex: 1; }

  /* Legal */
  .legal-layout { grid-template-columns: 1fr; }
  .legal-layout aside { position: static; }
  .legal-layout article { padding: 24px; }
}

/* ═══════════════════════════════════
   FOOTER — 4 columns
══════════════════════════════════════ */
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

/* ═══════════════════════════════════
   INITIATIVE CARD ICONS (SVG)
══════════════════════════════════════ */
.initiative-card-icon svg {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════
   TIMELINE INTRO
══════════════════════════════════════ */
.timeline-intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════
   NEWS / BLOG PREVIEW (homepage)
══════════════════════════════════════ */
.news-section {
  padding: 112px 0;
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-skeleton {
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg,
    rgba(13,20,32,0.04) 0%,
    rgba(13,20,32,0.08) 50%,
    rgba(13,20,32,0.04) 100%);
  background-size: 240% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* ═══════════════════════════════════
   POST CARDS (blog listing)
══════════════════════════════════════ */
.post-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(197,154,53,0.1);
  color: var(--cat-color, var(--gold));
  border: 1px solid rgba(197,154,53,0.2);
  margin-bottom: 10px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform   300ms var(--ease-spring),
    box-shadow  300ms,
    border-color 300ms;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13,20,32,0.14);
}

.post-card-cover {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper);
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out-expo);
}

.post-card:hover .post-card-cover img { transform: scale(1.06); }

.post-card-cover--placeholder {
  background: linear-gradient(135deg, rgba(18,59,102,0.06) 0%, rgba(197,154,53,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.post-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 10px;
}

.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--blue); }

.post-card-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════
   BLOG HERO
══════════════════════════════════════ */
.blog-hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 10px 0 16px;
}

.blog-hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

/* ═══════════════════════════════════
   BLOG LISTING
══════════════════════════════════════ */
.blog-listing {
  padding: 64px 0 96px;
  background: var(--white);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 32px;
}

.blog-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--muted);
}

.blog-empty h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-empty p { color: var(--muted); font-size: 0.95rem; }

/* ═══════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 200ms, background 200ms, transform 200ms var(--ease-spring);
}

.pagination-btn:hover {
  border-color: var(--gold);
  background: rgba(197,154,53,0.06);
  transform: translateY(-1px);
}

.pagination-info { color: var(--muted); font-size: 0.88rem; }

/* ═══════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════ */
.article-page {
  padding-bottom: 80px;
}

.article-page.no-cover {
  padding-top: var(--header-height);
}

.article-page.no-cover .article-wrap {
  padding-top: 40px;
}

.article-cover {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 70svh;
  overflow: hidden;
  padding-top: var(--header-height);
  background: #090e18;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-cover-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.35);
  transform: scale(1.15);
  opacity: 0.9;
  z-index: 1;
}

.article-cover img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: calc(100% - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius);
  margin: 20px auto;
  border: 1px solid rgba(255,255,255,0.08);
}

.article-wrap {
  max-width: 760px;
  padding-top: 56px;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-meta-top time {
  color: var(--muted);
  font-size: 0.85rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.article-excerpt {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.article-byline {
  font-size: 0.88rem;
  color: var(--muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.article-byline strong { color: var(--ink); }

/* Article body typography */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 2em 0 0.5em;
  color: var(--ink);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.6em 0 0.4em;
  color: var(--ink);
}

.article-content p { margin-bottom: 1.2em; }

.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--gold); }

.article-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(197,154,53,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
}

.article-content ul, .article-content ol {
  margin: 0 0 1.2em 1.4em;
}

.article-content li { margin-bottom: 0.4em; }

.article-content strong { font-weight: 700; color: var(--ink); }
.article-content em { font-style: italic; }

.article-content code {
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.88em;
}

.article-share {
  margin-top: 48px;
  padding: 24px;
  background: rgba(13, 20, 32, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-share h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: all 200ms ease;
}

.share-btn svg {
  transition: transform 200ms ease;
}

.share-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-md);
}

.share-btn:hover svg {
  transform: scale(1.1);
}

.share-native {
  background: var(--gold);
  border-color: var(--gold);
  color: #12090a;
}
.share-native:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.share-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285aeB 90%);
  border-color: #d6249f;
  color: var(--white);
}

.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: var(--white);
}

.share-twitter:hover {
  background: #000000;
  border-color: #000000;
  color: var(--white);
}

.share-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

.share-copy:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.share-copy.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: var(--white) !important;
}

.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* 404 / not found */
.not-found-msg {
  padding: 80px 0;
  text-align: center;
}

.not-found-msg h1 { font-size: 2rem; margin-bottom: 12px; }
.not-found-msg p  { color: var(--muted); margin-bottom: 28px; }

/* ═══════════════════════════════════
   RESPONSIVE — Blog/News
══════════════════════════════════════ */
@media (max-width: 1040px) {
  .posts-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .news-section { padding: 72px 0; }
  .blog-listing  { padding: 48px 0 72px; }
  .blog-hero     { padding: calc(72px + 40px) 0 56px; }

  .article-wrap { padding-top: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .timeline-intro { font-size: 0.88rem; }
}

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

/* ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ── OTP Verification Modal ── */
.otp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13,20,32,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.otp-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.otp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-xl);
  transform: translateY(24px) scale(0.96);
  transition: transform 300ms var(--ease-spring);
  text-align: center;
}

.otp-modal.is-active .otp-card {
  transform: translateY(0) scale(1);
}

.otp-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}

.otp-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.otp-input-wrap {
  margin-bottom: 24px;
}

.otp-input-wrap input {
  width: 100%;
  max-width: 220px;
  height: 48px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  color: var(--gold);
  transition: border-color 200ms;
}

.otp-input-wrap input:focus {
  border-color: var(--gold);
  outline: none;
}

.otp-btn-verify {
  width: 100%;
  min-height: 46px;
  background: var(--gold);
  color: #12090a;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 16px;
  transition: transform 200ms var(--ease-spring), box-shadow 200ms;
  border: none;
  cursor: pointer;
}

.otp-btn-verify:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.otp-resend-text {
  font-size: 0.80rem;
  color: var(--muted);
}

.otp-resend-link {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}

.otp-resend-link:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: not-allowed;
}

.otp-error-msg {
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  min-height: 18px;
}

/* =====================================================
   MODULO LAVORO E SPONSOR
   ===================================================== */

/* ── Jobs Page Hero ── */
.jobs-hero {
  padding: calc(var(--header-height) - 40px) 0 80px;
  background: linear-gradient(to bottom, rgba(197, 154, 53, 0.05) 0%, rgba(255, 251, 244, 0) 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.jobs-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.jobs-hero h1 span {
  color: var(--gold);
}
.jobs-hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 400;
}

/* ── Jobs Listing Section & Filters ── */
.jobs-listing-section {
  padding: 80px 0 100px;
}

.jobs-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.jobs-filter-panel .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.jobs-filter-panel label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  width: 100%;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: border-color 200ms var(--ease-smooth);
}
.filter-select:focus {
  border-color: var(--gold);
}

/* ── Jobs Grid & Cards ── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease-out-expo), box-shadow 300ms var(--ease-out-expo), border-color 300ms var(--ease-smooth);
}
.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.job-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.job-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 4px;
}
.job-badge-sector {
  background: var(--gold-dim);
  color: var(--gold);
}
.job-badge-contract {
  background: rgba(18, 59, 102, 0.08);
  color: var(--blue);
}

.job-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}

.job-card-company {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.job-card-company strong {
  color: var(--ink-soft);
}

.job-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex-grow: 1;
}

.job-card-requirements {
  margin-bottom: 18px;
  font-size: 0.88rem;
  background: var(--paper-warm);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}
.job-card-requirements strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.job-card-requirements p {
  color: var(--ink-soft);
  line-height: 1.5;
}

.job-card-salary {
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}
.job-card-salary strong {
  color: var(--ink-soft);
}
.job-card-salary span {
  color: var(--success);
  font-weight: 600;
}

.button-full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.jobs-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto;
}
.jobs-empty-icon {
  margin: 0 auto 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(197, 154, 53, 0.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jobs-empty h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.jobs-empty p {
  color: var(--muted);
}

/* ── Sponsors Section & Infinite Carousel ── */
.sponsors-section {
  padding: 80px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.sponsors-intro {
  text-align: center;
  margin-bottom: 48px;
}
.sponsors-intro h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
}

.sponsor-carousel-container {
  overflow: visible !important;
  position: relative;
  width: 100%;
  padding: 40px 0;
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}

.sponsor-item {
  cursor: pointer;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), 
              filter 600ms cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  opacity: 0.15;
  filter: blur(5px) grayscale(1);
  transform: scale(0.85);
  will-change: transform, filter, opacity;
}

.sponsor-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
  transition: background 300ms, box-shadow 300ms, border-color 300ms;
  width: 200px;
  height: 130px;
}

/* Slide Attiva (Centrale) */
.sponsor-item.swiper-slide-active {
  opacity: 1;
  filter: blur(0) grayscale(0);
  transform: scale(1.15);
  z-index: 10;
}
.sponsor-item.swiper-slide-active .sponsor-logo-box {
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: rgba(197, 154, 53, 0.15);
}

/* Slide Adiacenti (Prima e Dopo) */
.sponsor-item.swiper-slide-prev,
.sponsor-item.swiper-slide-next {
  opacity: 0.6;
  filter: blur(3px) grayscale(0.5);
  transform: scale(0.96);
  z-index: 5;
}
.sponsor-item.swiper-slide-prev .sponsor-logo-box,
.sponsor-item.swiper-slide-next .sponsor-logo-box {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 16px rgba(0,0,0,0.02);
}

.sponsor-item img {
  height: 75px;
  width: auto;
  object-fit: contain;
  max-width: 150px;
  display: block;
  transition: transform 300ms;
}

.sponsor-item.swiper-slide-active:hover img {
  transform: scale(1.05);
}

/* Responsive adjustment for Mobile screens */
@media (max-width: 768px) {
  .sponsor-item {
    height: 130px;
  }
  .sponsor-logo-box {
    width: 150px;
    height: 100px;
    padding: 12px 20px;
  }
  .sponsor-item img {
    height: 55px;
    max-width: 115px;
  }
}

/* Layout Statico (Meno di 3 sponsor) */
.sponsors-static-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
  width: 100%;
}

.sponsors-static-layout .sponsor-item {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  height: auto;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sponsors-static-layout .sponsor-item:hover {
  transform: scale(1.05) !important;
}

.sponsors-static-layout .sponsor-logo-box {
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: rgba(197, 154, 53, 0.15);
}

@media (max-width: 768px) {
  .sponsors-static-layout {
    gap: 20px;
    padding: 20px 0;
  }
}

/* ── Sponsor Modal ── */
.sponsor-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sponsor-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 32, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 300ms ease-out forwards;
}

.sponsor-modal-container {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  text-align: center;
  animation: modalSlideUp 400ms var(--ease-out-expo) forwards;
}

.sponsor-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  transition: color 200ms var(--ease-smooth);
}
.sponsor-modal-close:hover {
  color: var(--ink);
}

.sponsor-modal-logo-wrapper {
  margin: 0 auto 28px;
  height: 100px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--line);
}
.sponsor-modal-logo-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.sponsor-modal h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.sponsor-modal-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 32px;
  text-align: left;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
}
/* Scrollbar modale */
.sponsor-modal-desc::-webkit-scrollbar {
  width: 4px;
}
.sponsor-modal-desc::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

.sponsor-modal-actions {
  display: flex;
  justify-content: center;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .jobs-hero {
    padding: calc(var(--header-height) - 80px) 0 60px;
  }
  .jobs-listing-section {
    padding: 60px 0 80px;
  }
  .jobs-filter-panel {
    padding: 18px;
    gap: 16px;
    margin-bottom: 32px;
  }
  .jobs-filter-panel .filter-group {
    min-width: 100%;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .job-card {
    padding: 24px;
  }
  .sponsor-modal-container {
    padding: 30px 20px;
  }
}

