/* =============================================
   MOLFETTA AZZURRA — STYLE SHEET v2
   Palette ispirata al logo:
   - Blu navy (testo "AZZURRA")
   - Lime/giallo-verde (cerchio del logo)
   - Bianco / panna
   ============================================= */

:root {
  --blue-900:   #0c2a5b;
  --blue-700:   #1a4ea0;
  --blue-500:   #2e6fd1;
  --blue-300:   #6aa6ff;
  --lime-500:   #c8db1f;
  --lime-400:   #d6e44a;
  --lime-300:   #e7ee82;
  --ink:        #0a1730;
  --ink-soft:   #2c3a59;
  --muted:      #5b6886;
  --bg:         #f6f8ff;
  --bg-soft:    #eef2fb;
  --white:      #ffffff;
  --female:     #d63384;
  --female-soft:#fde7f1;
  --male:       #1a4ea0;
  --male-soft:  #e0eaf8;
  --capo:       #0c2a5b;
  --capo-soft:  #dbe4f4;
  --shadow-sm:  0 4px 14px rgba(12, 42, 91, 0.08);
  --shadow-md:  0 12px 30px rgba(12, 42, 91, 0.12);
  --shadow-lg:  0 30px 80px rgba(12, 42, 91, 0.18);
  --radius:     18px;
  --radius-lg:  28px;
  --t:          all .35s cubic-bezier(.2,.8,.2,1);
  --container:  1200px;
}

/* =============== RESET =============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--t); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  transition: var(--t);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue-700);
  color: white;
  box-shadow: 0 8px 24px rgba(26, 78, 160, .35);
}
.btn-primary:hover {
  background: var(--blue-900);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(12, 42, 91, .45);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--blue-900);
}
.btn-ghost:hover {
  background: var(--blue-900);
  color: white;
  transform: translateY(-2px);
}

/* =============== EYEBROW / HEAD =============== */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(26, 78, 160, 0.08);
  color: var(--blue-700);
  margin-bottom: 1.2rem;
}
.eyebrow.yellow { background: rgba(200, 219, 31, .25); color: #6e7800; }
.eyebrow.blue   { background: rgba(26, 78, 160, .1);   color: var(--blue-700); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.section-head.light h2 { color: white; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
}
.section-head h2 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--blue-700);
}
.section-head.light h2 em { color: var(--lime-400); }
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: .8rem auto 0;
}

/* =============== NAVBAR =============== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--t);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
/* Quando NON scrolled (sopra l'hero scuro), testo chiaro */
.navbar:not(.scrolled) .nav-logo { color: white; }
.navbar:not(.scrolled) .nav-logo strong { color: var(--lime-400); }
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.92); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--lime-400); }
.navbar:not(.scrolled) .nav-toggle span { background: white; }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo strong { color: var(--blue-700); font-weight: 800; }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 1.8rem;
}
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--lime-500);
  transition: var(--t);
}
.nav-links a:hover { color: var(--blue-700); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: .65rem 1.2rem; font-size: .88rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px;
  transition: var(--t);
}

/* =============== HERO — scenic photo =============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg,
      rgba(12, 42, 91, .88) 0%,
      rgba(12, 42, 91, .72) 35%,
      rgba(12, 42, 91, .35) 70%,
      rgba(12, 42, 91, .25) 100%
    ),
    linear-gradient(180deg, rgba(12, 42, 91, .15) 0%, rgba(12, 42, 91, .55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}
.hero-text {
  max-width: 720px;
}
.hero-text .eyebrow.light {
  background: rgba(255, 255, 255, .14);
  color: var(--lime-400);
  border: 1px solid rgba(214, 228, 74, .35);
  backdrop-filter: blur(10px);
}
.hero-text h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 1rem 0 1.5rem;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
.grad-blue {
  background: linear-gradient(90deg, #ffffff, #d6e4ff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  position: relative;
}
.grad-yellow {
  background: linear-gradient(90deg, var(--lime-400), #f5ee5d);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, .92);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.btn-light {
  background: rgba(255, 255, 255, .12);
  color: white;
  border-color: rgba(255, 255, 255, .4);
  backdrop-filter: blur(10px);
}
.btn-light:hover {
  background: white;
  color: var(--blue-900);
  border-color: white;
  transform: translateY(-2px);
}

.scroll-down {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 8px;
  z-index: 3;
}
.scroll-down span {
  width: 4px; height: 8px;
  background: white;
  border-radius: 2px;
  animation: scrollDot 1.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}
.photo-credit {
  position: absolute;
  bottom: 14px; right: 18px;
  font-size: .7rem;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
  z-index: 3;
}
.photo-credit a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--lime-400); }

/* =============== SECTIONS =============== */
.section { padding: 110px 0; position: relative; }
.section.chi-siamo  { background: white; }
.section.candidati  { background: var(--bg); }
.section.programma  {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(200, 219, 31, .18), transparent 60%),
    white;
}
.section.valori {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: white;
}

/* =============== CHI SIAMO — manifesto editoriale =============== */
.manifesto {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% + 0.4rem);
  width: 1px;
  background: linear-gradient(180deg, transparent, #dde3f0 20%, #dde3f0 80%, transparent);
}

/* ----- Colonna sinistra: lettera ----- */
.manifesto-letter {
  padding-right: 1rem;
}
.manifesto-claim {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--blue-900);
  margin: 0 0 2rem;
}
.manifesto-claim em {
  font-style: italic;
  color: var(--blue-700);
  position: relative;
}
.manifesto-claim em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--lime-400);
  opacity: .35;
  z-index: -1;
  border-radius: 2px;
}
.manifesto-body {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 46ch;
}
.manifesto-body strong { color: var(--blue-900); font-weight: 700; }
.manifesto-body em {
  font-style: italic;
  color: var(--blue-700);
  font-weight: 600;
}
.manifesto-sign {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.sign-mark {
  display: inline-block;
  width: 56px; height: 3px;
  background: var(--lime-500);
  border-radius: 2px;
}
.manifesto-sign small {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* ----- Colonna destra: indice numerato ----- */
.manifesto-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mi-row {
  display: grid;
  grid-template-columns: 80px 1fr 28px;
  align-items: start;
  gap: 1.2rem;
  padding: 1.6rem 0 1.6rem .4rem;
  border-bottom: 1px solid #e5eaf3;
  position: relative;
  cursor: default;
  transition: var(--t);
}
.mi-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--lime-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--t);
}
.mi-row:first-child { padding-top: 0; }
.mi-row:last-child { border-bottom: 0; }
.mi-row:hover {
  padding-left: 1.4rem;
  background: linear-gradient(90deg, rgba(200, 219, 31, .08), transparent 60%);
}
.mi-row:hover::before { transform: scaleY(1); }
.mi-row:hover .mi-num {
  color: var(--blue-900);
  -webkit-text-stroke: 0;
}
.mi-row:hover .mi-arrow {
  opacity: 1;
  transform: translateX(4px);
  color: var(--blue-700);
}

.mi-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-700);
  letter-spacing: -.02em;
  transition: var(--t);
}
.mi-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--blue-900);
  margin: .25rem 0 .35rem;
  text-transform: uppercase;
}
.mi-content p {
  font-size: .96rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.mi-arrow {
  font-size: 1.2rem;
  color: #c4ccdd;
  opacity: .6;
  align-self: center;
  transition: var(--t);
}

@media (max-width: 960px) {
  .manifesto { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto::before { display: none; }
  .manifesto-letter { padding-right: 0; }
  .manifesto-body { max-width: none; }
  .mi-row { grid-template-columns: 60px 1fr 20px; padding: 1.2rem 0; }
  .mi-num { font-size: 2rem; }
}

/* =============== LEGENDA =============== */
.legenda {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.leg-item {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.leg-item i {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-block;
}
.leg-female i { background: linear-gradient(135deg, var(--female), #f06da5); }
.leg-male   i { background: linear-gradient(135deg, var(--male), var(--blue-500)); }
.leg-capo   i { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); border: 2px solid var(--blue-900); }

/* =============== CANDIDATES GRID =============== */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.cand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.3rem;
  cursor: pointer;
  border: 1px solid #eef0f8;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  overflow: hidden;
  text-align: center;
}
.cand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--card-accent, var(--blue-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--t);
}
.cand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-accent, var(--blue-700));
}
.cand-card:hover::before { transform: scaleX(1); }

/* Palette unificata per tutti i candidati: blu navy + accenti lime */
.cand-card.female,
.cand-card.male,
.cand-card.capo {
  --card-accent: var(--blue-700);
  --card-soft: var(--bg-soft);
}

.cand-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  background: var(--card-soft, var(--bg-soft));
  color: var(--card-accent, var(--blue-700));
  border: 3px solid var(--card-accent, var(--blue-700));
  transition: var(--t);
}
.cand-card:hover .cand-avatar {
  transform: scale(1.06) rotate(-3deg);
  background: var(--card-accent, var(--blue-700));
  color: white;
}
.cand-card.capo .cand-avatar {
  color: white;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-color: var(--blue-900);
}
.cand-card.capo:hover .cand-avatar {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: white;
  transform: scale(1.06) rotate(-3deg);
}

.cand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: .6rem;
}
.cand-role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--card-accent, var(--blue-700));
  margin-bottom: .8rem;
}
.cand-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--card-accent, var(--blue-700));
  width: 100%;
  justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--t);
}
.cand-cta em {
  font-style: normal;
  display: inline-block;
  transition: var(--t);
}
.cand-card:hover .cand-cta {
  opacity: 1;
  transform: translateY(0);
}
.cand-card:hover .cand-cta em {
  transform: translateX(4px);
}

.cand-badge-capo {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--blue-900);
  color: white;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
}

/* =============== ASSI STRIP =============== */
.assi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.asse-mini {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid #eef0f8;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.asse-mini::before {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--lime-400);
  opacity: 0;
  transition: var(--t);
}
.asse-mini:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--lime-500);
}
.asse-mini:hover::before { opacity: .18; }
.asse-mini-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue-900);
  background: linear-gradient(135deg, var(--lime-400), var(--lime-500));
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(200, 219, 31, .35);
  position: relative; z-index: 1;
}
.asse-mini h3 {
  font-size: 1.05rem;
  color: var(--blue-900);
  margin-bottom: .5rem;
  position: relative; z-index: 1;
}
.asse-mini p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex-grow: 1;
  position: relative; z-index: 1;
}
.asse-mini-cta {
  display: inline-flex;
  align-items: center; gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .1em;
  position: relative; z-index: 1;
  transition: var(--t);
}
.asse-mini:hover .asse-mini-cta { gap: .6rem; color: var(--blue-900); }

/* =============== VALORI =============== */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.valore {
  padding: 2rem 1.6rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: var(--t);
}
.valore:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-6px);
  border-color: var(--lime-400);
}
.valore h3 {
  font-size: 1.1rem;
  color: var(--lime-400);
  margin-bottom: .6rem;
  letter-spacing: .02em;
}
.valore p { color: rgba(255,255,255,.78); margin: 0; font-size: .95rem; }

/* =============== FOOTER =============== */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.78);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding-bottom: 40px;
}
.footer-brand {
  display: flex; gap: 1rem; align-items: center;
}
.footer-brand img {
  width: 70px; height: 70px;
}
.footer-brand p { margin: 0; max-width: 320px; font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-cols h4 { color: var(--lime-400); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-cols a {
  display: block;
  padding: .25rem 0;
  font-size: .92rem;
  color: rgba(255,255,255,.78);
}
.footer-cols a:hover { color: var(--lime-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  max-width: var(--container);
  margin: 0 auto;
}

/* =============== MODAL =============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(12, 23, 48, .55);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
.modal-dialog {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes pop {
  from { opacity:0; transform: translateY(20px) scale(.96); }
  to   { opacity:1; transform: translateY(0)    scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  transition: var(--t);
}
.modal-close:hover { background: var(--blue-900); color: white; transform: rotate(90deg); }
.modal-body h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--blue-900);
  margin-bottom: 1rem;
}
.modal-body h3 em {
  font-family: 'Playfair Display', serif; font-style: italic; color: var(--blue-700);
}
.modal-body .modal-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--lime-400);
  color: var(--blue-900);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.modal-body p { color: var(--ink-soft); }
.modal-body h4 {
  font-size: 1.05rem;
  color: var(--blue-900);
  margin: 1.5rem 0 .6rem;
  letter-spacing: -.01em;
}
.modal-body ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.modal-body ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: .96rem;
}
.modal-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--lime-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(200, 219, 31, .25);
}

/* CV / Casellario rows */
.modal-doc {
  gap: 1rem;
}
.modal-doc .doc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: white;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-700);
  border: 1.5px solid #dde3f0;
  flex-shrink: 0;
  transition: var(--t);
}
.modal-doc:hover .doc-icon {
  border-color: var(--blue-500);
  background: var(--blue-700);
  color: white;
}
.modal-doc .doc-icon svg { width: 20px; height: 20px; }
.modal-doc .doc-meta { flex: 1; min-width: 0; }

.modal-cand-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eef0f8;
}
.modal-cand-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.modal-doc-list {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
.modal-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--bg-soft);
  border-radius: 14px;
  border: 1px dashed transparent;
  transition: var(--t);
}
.modal-doc:hover { border-color: var(--blue-500); background: white; }
.modal-doc strong { color: var(--blue-900); font-size: .98rem; }
.modal-doc small { color: var(--muted); display: block; margin-top: 2px; font-size: .82rem; }
.modal-doc .stato {
  font-size: .72rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px;
  background: white; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid #dde3f0;
}
.modal-doc .stato.ok { background: #e6f6ec; color: #1f7a3c; border-color: #b9e3c5; }

/* =============== LEGAL PAGES =============== */
.legal-page { background: var(--bg-soft); }
.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}
.legal {
  background: white;
  padding: 3.5rem clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #eef0f8;
}
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--blue-900);
  margin: 1rem 0 .5rem;
  letter-spacing: -.02em;
}
.legal h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--blue-700);
  font-weight: 700;
}
.legal h2 {
  font-size: 1.45rem;
  color: var(--blue-900);
  margin: 2.5rem 0 .8rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef0f8;
  letter-spacing: -.01em;
}
.legal h2:first-of-type { border-top: 0; padding-top: 1rem; }
.legal h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.6rem 0 .6rem;
  letter-spacing: -.01em;
}
.legal-meta {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 2rem;
}
.legal-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  padding: 1.4rem 1.6rem;
  background: var(--bg);
  border-left: 4px solid var(--lime-500);
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
}
.legal-lead strong { color: var(--blue-700); }
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.legal p strong { color: var(--blue-900); }
.legal ul {
  padding-left: 1.5rem;
  margin: .5rem 0 1.2rem;
}
.legal ul li { margin-bottom: .4rem; }
.legal a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--lime-400);
  text-decoration-thickness: 2px;
}
.legal a:hover { color: var(--blue-900); text-decoration-color: var(--blue-900); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .92rem;
}
.legal-table th, .legal-table td {
  padding: .8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eef0f8;
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-soft);
  color: var(--blue-900);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal-table code {
  background: var(--bg-soft);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .88em;
  color: var(--blue-700);
}
.placeholder {
  background: rgba(214, 228, 74, .25);
  border-left: 4px solid var(--lime-500);
  padding: 1rem 1.3rem;
  border-radius: 0 10px 10px 0;
  font-size: .92rem;
  color: var(--ink) !important;
}
.placeholder strong { color: #6e7800 !important; letter-spacing: .12em; font-size: .8rem; }
.legal-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef0f8;
  font-size: .92rem;
  color: var(--muted);
  font-style: italic;
}

/* =============== REVEAL ANIMATION =============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px) {
  .assi-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero { padding: 120px 24px 100px; }
  .hero-text { max-width: 100%; }
  .hero-photo img { object-position: center 50%; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 42, 91, .55) 0%, rgba(12, 42, 91, .85) 70%, rgba(12, 42, 91, .9) 100%);
  }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .assi-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white;
    padding: 1.2rem 24px;
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }
  .section { padding: 80px 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .assi-strip { grid-template-columns: 1fr; }
  .modal-dialog { padding: 1.6rem; }
}
