/* ============================================================
   VACCHI SINDACO — Stile condiviso
   Elezioni Amministrative Imola 24-25 Maggio 2026
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary:    #0d1f5c;
  --primary-d:  #081440;
  --accent:     #00c4e8;
  --accent-d:   #009ab8;
  --red:        #cc1111;
  --red-d:      #a80e0e;
  --white:      #ffffff;
  --light:      #f4f7fb;
  --border:     #e2e8f0;
  --text:       #1a1a2e;
  --muted:      #64748b;
  --card-sh:    0 4px 24px rgba(13,31,92,.10);
  --radius:     14px;
  --radius-sm:  8px;
  --nav-h:      70px;
  --transition: .25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Section headings --- */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}
.section-sub.centered { margin: 0 auto; }
.divider { width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin: 18px 0 32px; }
.divider.centered { margin: 18px auto 32px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
}
.nav-brand strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.nav-brand span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--accent-d) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--primary-d);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nav-mobile a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: block;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--accent); }
.nav-mobile-open { display: flex; }
/* hamburger → X */
.hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-open span:nth-child(2) { opacity: 0; }
.hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-d); transform: translateY(-2px); }
.btn-ghost {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: var(--white); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-sh);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(13,31,92,.16); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  background: var(--light);
}

/* ============================================================
   HERO — generic
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 60%, #162d8a 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,196,232,.15);
  border: 1px solid rgba(0,196,232,.35);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-title { color: var(--white); margin-bottom: 18px; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (inner pages) — shorter
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.badge-accent { background: rgba(0,196,232,.15); color: var(--accent-d); }
.badge-red    { background: rgba(204,17,17,.12); color: var(--red); }
.badge-primary{ background: rgba(13,31,92,.1);  color: var(--primary); }

/* ============================================================
   ACCORDION (details/summary)
   ============================================================ */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--white);
  list-style: none;
  gap: 16px;
  transition: background var(--transition);
  user-select: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--light); }
.accordion[open] summary { background: var(--primary); color: var(--white); }
.accordion[open] summary .acc-icon { transform: rotate(45deg); color: var(--accent); }
.acc-left { display: flex; align-items: center; gap: 16px; }
.acc-emoji { font-size: 1.4rem; }
.acc-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-body { padding: 28px 28px 32px; background: var(--white); border-top: 1px solid var(--border); }
.accordion-intro { color: var(--muted); margin-bottom: 24px; font-size: .97rem; }
.prop-list { display: flex; flex-direction: column; gap: 14px; }
.prop-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.prop-dot { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.prop-item strong { display: block; margin-bottom: 3px; color: var(--primary); font-size: .95rem; }
.prop-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ============================================================
   TIMELINE (CV)
   ============================================================ */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-year {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.tl-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tl-sub { font-size: .88rem; color: var(--muted); }

/* ============================================================
   FORM
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}
.form-group label .req { color: var(--red); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,196,232,.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
}
.form-check input { margin-top: 3px; accent-color: var(--accent); }

/* ============================================================
   SOCIAL WALL PLACEHOLDER
   ============================================================ */
.social-wall-placeholder {
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.social-wall-placeholder .sw-icon { font-size: 2.5rem; margin-bottom: 14px; }
.social-wall-placeholder p { font-size: .9rem; max-width: 400px; margin: 0 auto; }

/* ============================================================
   PHOTO PLACEHOLDER
   ============================================================ */
.photo-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, #162d8a 100%);
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 4rem;
}

/* ============================================================
   CANDIDATE CARD
   ============================================================ */
.candidate-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.candidate-card:hover { transform: translateY(-3px); box-shadow: var(--card-sh); }
.candidate-photo {
  aspect-ratio: 1/1;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--muted);
}
.candidate-info { padding: 16px; }
.candidate-info strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.candidate-info span { font-size: .8rem; color: var(--muted); }

/* ============================================================
   LISTA SECTION
   ============================================================ */
.lista-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.lista-header {
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--border);
}
.lista-logo {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
.lista-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.lista-header-text h3 { margin-bottom: 6px; }
.lista-header-text p { font-size: .9rem; color: var(--muted); margin: 0; }
.lista-body { padding: 28px 36px; }
.lista-accent-fdl { border-top: 4px solid #1e5f3f; }
.lista-accent-fi  { border-top: 4px solid #0066CC; }
.lista-accent-dc  { border-top: 4px solid #003399; }

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.info-row span { font-size: .95rem; font-weight: 500; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; }
.cta-banner .btn { margin: 0 8px 12px; }
.vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 24px;
}

/* ============================================================
   DOWNLOAD AREA
   ============================================================ */
.download-area {
  background: var(--light);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border);
}
.download-icon { font-size: 3.5rem; margin-bottom: 16px; }
.download-area h3 { margin-bottom: 8px; }
.download-area p { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-d);
  color: rgba(255,255,255,.65);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand span {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.social-icon:hover { background: var(--accent); color: var(--primary); }

/* ============================================================
   PILLAR ICON COLORS
   ============================================================ */
.icon-blue   { background: rgba(13,31,92,.1); }
.icon-cyan   { background: rgba(0,196,232,.12); }
.icon-red    { background: rgba(204,17,17,.1); }
.icon-green  { background: rgba(22,163,74,.1); }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.65); letter-spacing: .04em; }

/* ============================================================
   TRANSPARENCY SECTION
   ============================================================ */
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.transp-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.transp-card .t-icon { font-size: 2rem; margin-bottom: 12px; }
.transp-card h4 { margin-bottom: 6px; font-size: .95rem; }
.transp-card p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .transparency-grid { grid-template-columns: 1fr 1fr; }
  .lista-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 56px 0; }
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .transparency-grid { grid-template-columns: 1fr; }
  .download-area { padding: 32px 20px; }
  .accordion summary { padding: 18px 20px; font-size: .95rem; }
  .accordion-body { padding: 20px; }
  .lista-header { padding: 24px; }
  .lista-body { padding: 20px 24px; }
  .cta-banner { padding: 48px 16px; }
}
