/* =========================================================
   TEMI — cambia classe nel <body> per cambiare colori
   ========================================================= */
.tema-lista-1 {
  --primary: #03384a;
  --primary-600: #044a63;
  --primary-700: #022c3a;
  --primary-900: #011a23;
  --accent: #e6b8b8;
  --accent-600: #d99c9c;
  --accent-ink: #1a1a1a;
  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --border: #e4e8f0;
  --border-strong: #cfd6e4;
  --ring: rgba(10, 61, 145, 0.18);
  --footer-bg: #2f3849;
  --footer-bg-alt: #7a3442;
  --footer-accent: #f2b7bf;
  --footer-ink: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.74);
}

.tema-lista-2 {
  --primary: #1f6f43;
  --primary-600: #268553;
  --primary-700: #195636;
  --primary-900: #0f3b24;
  --accent: #ef8b2c;
  --accent-600: #d97620;
  --accent-ink: #1a1a1a;
  --bg: #f4f8f5;
  --bg-alt: #e8f0ea;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --border: #dfe8e2;
  --border-strong: #c2d1c6;
  --ring: rgba(31, 111, 67, 0.18);
}

.tema-lista-3 {
  --primary: #7a1a1a;
  --primary-600: #962424;
  --primary-700: #5c1010;
  --primary-900: #3c0808;
  --accent: #b38b4a;
  --accent-600: #97723a;
  --accent-ink: #1a1a1a;
  --bg: #faf6f5;
  --bg-alt: #f2e9e6;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --border: #ebe1de;
  --border-strong: #d6c6c1;
  --ring: rgba(122, 26, 26, 0.18);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

::selection { background: var(--primary); color: #fff; }


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  padding: 4rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__logo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.hero__logo svg { width: 78px; height: 78px; }
.hero__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (min-width: 720px) {
  .hero__logo { width: 220px; height: 220px; }
  .hero__logo svg { width: 90px; height: 90px; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(0, 0, 0, 0.35), transparent 60%),
    linear-gradient(160deg, var(--primary-700) 0%, var(--primary) 50%, var(--primary-900) 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  opacity: 0.6;
}

.topbar {
  padding: 1.25rem 0;
}
.topbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.brand__mark svg { width: 22px; height: 22px; }

.pill {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.2);
}

.hero__title {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.hero__title-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.hero__slogan {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  text-transform: uppercase;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.stat__num {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}
.stat__sep {
  width: 1px; height: 28px;
  background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 520px) {
  .stat__sep { display: none; }
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.hero__cta:hover {
  transform: translateY(-2px);
  background: var(--accent-600);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.hero__cta svg { transition: transform 0.2s ease; }
.hero__cta:hover svg { transform: translateY(2px); }

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--bg);
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 60px; display: block; }

/* =========================================================
   SEZIONE CANDIDATI
   ========================================================= */
.candidati { padding: 4.5rem 0 5rem; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-alt);
  border-radius: 999px;
}
.section-header h2 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}
.section-header p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

.candidati__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .candidati__grid { gap: 1.5rem; }
}

/* =========================================================
   CARD
   ========================================================= */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.card__fullname {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18),
              0 6px 16px -8px rgba(15, 23, 42, 0.1);
}

.card--featured {
  border-color: rgba(230, 184, 184, 0.78);
  background:
    linear-gradient(135deg, #fff 0%, #fff 54%, rgba(230, 184, 184, 0.28) 100%);
  box-shadow: 0 22px 54px -28px rgba(3, 56, 74, 0.45),
              0 1px 2px rgba(15, 23, 42, 0.05);
}

.card--featured:hover {
  border-color: var(--accent-600);
  box-shadow: 0 26px 56px -24px rgba(3, 56, 74, 0.48),
              0 10px 24px -14px rgba(15, 23, 42, 0.18);
}

.card__media {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover .card__image { transform: scale(1.04); }

.card--featured .card__media {
  width: 150px;
  height: 150px;
  border-width: 5px;
  box-shadow: 0 18px 34px rgba(3, 56, 74, 0.2);
}

.card__number {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  z-index: 2;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: var(--primary);
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card__body {
  padding: 1.15rem 1.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: center;
}

.card__role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(230, 184, 184, 0.38);
}

.card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.card__meta svg {
  color: var(--primary);
  flex-shrink: 0;
}
.card__meta strong { color: var(--ink); font-weight: 600; }

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.4rem 1.4rem;
  justify-content: center;
  width: 100%;
}
@media (max-width: 400px) {
  .card__actions { flex-direction: column; align-items: stretch; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 61, 145, 0.25), inset 0 -1px 0 rgba(0,0,0,0.1);
}
.btn--primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10, 61, 145, 0.28);
}

.btn--ghost {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 760px) {
  .card {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "media body"
      "media actions";
    align-items: stretch;
    padding-top: 0;
  }
  .card__media {
    grid-area: media;
    width: 112px;
    height: 112px;
    align-self: center;
    justify-self: center;
  }
  .card__image {
    aspect-ratio: auto;
    object-position: center 18%;
  }
  .card__body {
    grid-area: body;
    padding: 1.6rem 2rem 0.65rem;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    min-width: 0;
    text-align: left;
  }
  .card__fullname { font-size: 1.85rem; }
  .card__actions {
    grid-area: actions;
    padding: 0 2rem 1.6rem;
    justify-content: flex-start;
  }
  .card--featured {
    grid-template-columns: 204px minmax(0, 1fr);
    min-height: 196px;
  }
  .card--featured .card__media {
    width: 156px;
    height: 156px;
  }
  .card--featured .card__body {
    padding-top: 2rem;
  }
  .card--featured .card__fullname {
    font-size: 2.18rem;
  }
}

@media (min-width: 1024px) {
  .card {
    grid-template-columns: 170px 1fr;
  }
  .card__media {
    width: 124px;
    height: 124px;
  }
  .card__fullname { font-size: 2rem; }
  .card--featured {
    grid-template-columns: 220px 1fr;
  }
  .card--featured .card__media {
    width: 164px;
    height: 164px;
  }
  .card--featured .card__fullname {
    font-size: 2.25rem;
  }
}

/* =========================================================
   INFO
   ========================================================= */
.info { padding: 0 0 5rem; }
.info__card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.info__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px var(--ring);
}
.info__card h2 {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.info__card p { margin: 0; color: var(--ink-soft); }

@media (max-width: 560px) {
  .info__card { flex-direction: column; gap: 1rem; padding: 1.35rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background:
    linear-gradient(135deg, var(--footer-bg) 0%, var(--footer-bg-alt) 100%);
  color: var(--footer-muted);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  text-align: center;
}
.brand--footer {
  color: var(--footer-ink);
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
}
.brand--footer .brand__mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.brand--footer .brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
}
.brand--footer .brand__name {
  color: var(--footer-ink);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
}
.brand__claim {
  color: var(--footer-accent);
  font-size: clamp(0.85rem, 2.6vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}
.site-footer p { margin: 0; }

@media (min-width: 640px) {
  .brand--footer {
    flex-direction: row;
    gap: 1rem;
  }
}

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
