/* ═══════════════════════════════════════════════════════════════
   Comitato Piazza della Libertà – Stile condiviso
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #1B4332;
  --primary-m:  #2D6A4F;
  --primary-l:  #52B788;
  --primary-xl: #B7E4C7;
  --primary-bg: #D8F3DC;
  --gold:       #C9A84C;
  --red:        #c0392b;
  --ink:        #1A1A2E;
  --cream:      #FEFAE0;
  --white:      #ffffff;
  --surface:    #f9fafb;
  --border:     #e5e7eb;
  --text:       #111827;
  --text-muted: #4b5563;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,.13);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', Arial, sans-serif;
  --transition: .22s ease;
}

body { font-family: var(--font-sans); background: var(--white); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: 1100px; margin: 0 auto;
  height: 58px; gap: 8px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-logo {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.nav-logo svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-brand-text { font-family: var(--font-serif); font-size: .88rem; color: var(--primary); line-height: 1.2; font-weight: 700; }
.nav-brand-text span { display: block; font-size: .6rem; font-family: var(--font-sans); font-weight: 400; color: #9ca3af; text-transform: uppercase; letter-spacing: .07em; }

.nav-links {
  display: flex; list-style: none; gap: 0; align-items: center; flex: 1; justify-content: center;
}
.nav-links li a {
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  padding: 6px 10px; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links li a:hover { background: var(--primary-bg); color: var(--primary); }
.nav-links li a.active { color: var(--primary); background: var(--primary-bg); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: white;
  font-weight: 700; font-size: .82rem;
  padding: 8px 16px; border-radius: var(--radius);
  white-space: nowrap; flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-cta:hover { opacity: .88; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 58px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 12px 24px; gap: 4px; z-index: 99;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
  }
  .nav-links.open li a { padding: 10px 12px; font-size: .9rem; }
  .nav-toggle { display: flex; }
  .nav-brand-text span { display: none; }
}
@media (max-width: 480px) { .nav-cta span { display: none; } }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, #0a2218 0%, var(--primary) 60%, var(--primary-m) 100%);
  padding: 56px 24px 48px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('foto-albero-piazza.jpg') center/cover no-repeat;
  opacity: .08;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-l); margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: white; line-height: 1.1; margin-bottom: 14px;
}
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.75); line-height: 1.75; max-width: 600px; }

/* ── SECTIONS ── */
.section { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--primary); color: white; }
.section--white { background: white; }

.section-label {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary-l); margin-bottom: 10px;
}
.section--dark .section-label { color: var(--primary-xl); }

/* ── TYPOGRAPHY ── */
h2.display {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 900; color: var(--text); margin-bottom: 18px; line-height: 1.15;
}
.section--dark h2.display { color: white; }
.lead { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.section--dark .lead { color: rgba(255,255,255,.78); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 700;
  padding: 12px 24px; border-radius: var(--radius); cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: white; }
.btn-green { background: var(--primary); color: white; }
.btn-outline-green { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-green:hover { background: var(--primary-bg); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,.5); }

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-photo img { width: 100%; height: 380px; object-fit: cover; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; gap: 28px; } .split-photo img { height: 240px; } }

/* ── KICKER STAT ── */
.kicker-stat {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900; line-height: 1; color: var(--primary); margin-bottom: 14px;
}
.section--dark .kicker-stat { color: var(--primary-xl); }

/* ── QUOTE ── */
.quote-section { background: var(--primary); padding: 52px 0; text-align: center; }
.quote-inner { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.quote-mark { font-family: var(--font-serif); font-size: 5rem; color: var(--primary-l); line-height: .7; margin-bottom: 14px; }
.quote-text { font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; font-style: italic; color: white; line-height: 1.4; }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--text-muted); line-height: 1.6; }
.check-list li::before {
  content: '✓'; flex-shrink: 0; width: 22px; height: 22px;
  background: var(--primary-bg); color: var(--primary); font-weight: 700; font-size: .78rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.section--dark .check-list li { color: rgba(255,255,255,.8); }
.section--dark .check-list li::before { background: rgba(255,255,255,.15); color: var(--primary-xl); }

/* ── CROSS LIST ── */
.cross-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cross-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--text-muted); line-height: 1.6; }
.cross-list li::before { content: '❌'; flex-shrink: 0; font-size: .85rem; margin-top: 3px; }

/* ── RICHIESTE ── */
.richieste-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.richiesta-item { background: var(--primary-bg); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px; }
.richiesta-check { width: 26px; height: 26px; flex-shrink: 0; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: .82rem; }
.richiesta-item p { font-size: .88rem; color: var(--primary); font-weight: 600; line-height: 1.4; }

/* ── DOC CARD ── */
.doc-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); }
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.doc-card-top { display: flex; align-items: center; gap: 12px; }
.doc-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.doc-icon svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-meta { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.doc-card h3 { font-family: var(--font-serif); font-size: .95rem; color: var(--ink); line-height: 1.3; }
.doc-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.doc-card-footer { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: #9ca3af; }
.doc-card-footer svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.doc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-size: .875rem; font-weight: 700; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; transition: opacity var(--transition); }
.doc-btn:hover { opacity: .88; }
.doc-btn svg { width: 15px; height: 15px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── PRESS CARD ── */
.press-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); text-decoration: none; color: inherit; }
.press-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.press-logo { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.press-source { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.press-card h3 { font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 5px; }
.press-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.press-date { font-size: .72rem; color: #9ca3af; margin-top: 6px; }

/* ── VIDEO CARD ── */
.video-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow var(--transition); }
.video-card:hover { box-shadow: var(--shadow-md); }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card-body { padding: 16px 18px; }
.video-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 5px; }
.video-card-body h3 { font-family: var(--font-serif); font-size: .92rem; color: var(--ink); line-height: 1.35; margin-bottom: 5px; }
.video-card-body p { font-size: .8rem; color: var(--text-muted); line-height: 1.55; }

/* ── FORM ── */
.form-wrapper { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; padding: 8px; }
.form-wrapper iframe { width: 100%; border: none; border-radius: 10px; display: block; }

/* ── PETITION BOX ── */
.petition-box { background: white; border: 2px solid var(--red); border-radius: var(--radius-lg); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow); }
.petition-box-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.petition-box h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--primary); margin-bottom: 5px; }
.petition-box p { font-size: .88rem; color: var(--text-muted); }

/* ── FOOTER ── */
.footer { background: #0d2218; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; margin-bottom: 28px; }
.footer h4 { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-xl); margin-bottom: 12px; }
.footer p, .footer a { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer a:hover { color: var(--primary-xl); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; text-align: center; font-size: .76rem; color: rgba(255,255,255,.3); }

/* ── PARTNERS ── */
.partners { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; text-align: center; }
.partners p { font-size: .76rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.partners-list { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.partner-item { font-size: .88rem; font-weight: 700; color: var(--primary); }

/* ── ALERT BOX ── */
.alert-info { background: var(--primary-bg); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: .875rem; color: var(--primary); line-height: 1.65; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) { .section { padding: 44px 0; } .petition-box { flex-direction: column; } }
