:root {
  --bg: #ffffff;
  --surface: #f7fafc;
  --text: #102a43;
  --text-muted: #4b5563;
  --accent: #e30711;
  --accent-dark: #b2050d;
  --secondary: #3ca934;
  --primary: #4488c7;
  --border: rgba(16, 42, 67, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  font-weight: 600;
  color: var(--text);
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.nav-toggle-label:hover {
  background: rgba(0,0,0,0.05);
}

.hero-section {
  min-height: 92vh;
  backgroundxx: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  background: url('molfetta-1.jpg') center/cover no-repeat;
  filter: brightness(0.95);
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
  color: #fff;
}

.hero-logo {
  width: 160px;
  margin: 0 auto 24px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 0 0 18px;
  line-height: 1.02;
}

.hero-text,
.hero-highlight {
  margin: 0 auto 12px;
  max-width: 760px;
  font-size: 1.05rem;
}

.hero-highlight {
  margin-top: 32px;
  color: #f7f7f7;
  font-weight: 600;
}

.candidates-section {
  padding: 72px 24px 40px;
  background: var(--surface);
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.candidate-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.candidate-card {
  background: #fff;
  borderxxx: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.candidate-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.candidate-details {
  padding: 20px;
}

.candidate-details .candidate-name {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transformxxx: uppercase;
}

.candidate-details .candidate-surname {
  display: block;
  font-weight: 600;
}

.candidate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.candidate-links a {
  flex: 1 1 140px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.candidate-links a:hover {
  background: var(--accent);
}

.site-footer {
  background: #102a43;
  color: #fff;
  padding: 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand span {
  display: block;
  line-height: 1.2;
}

.footer-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: #d8e6ff;
}

@media (max-width: 992px) {
  .header-inner,
  .footer-inner,
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner,
  .footer-inner,
  .hero-content,
  .candidates-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-nav {
    gap: 16px;
  }
  .hero-content {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .candidate-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }
  .nav-toggle-label {
    display: block;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }
  .hero-content {
    padding-top: 90px;
  }
  .hero-text,
  .hero-highlight {
    font-size: 1rem;
  }
  .candidate-details .candidate-name {
    font-size: 0.98rem;
  }
  .candidate-links a {
    flex: 1 1 100%;
  }
}
