/* ============================================
   VOCE GIOVANE ODV — Neobrutalism Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #0D8B7C;
  --primary-light: #7EC8BD;
  --primary-pale: #B8E4DC;
  --accent-yellow: #FFD93D;
  --accent-coral: #FF6B6B;
  --accent-orange: #FFA94D;
  --bg-cream: #FFF8F0;
  --bg-white: #FFFFFF;
  --dark: #1A1A1A;
  --text: #2D2D2D;
  --text-muted: #6B6B6B;
  --border: #1A1A1A;
  --border-w: 3px;
  --shadow-offset: 5px;
  --shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--dark);
  --shadow-sm: 3px 3px 0 var(--dark);
  --shadow-lg: 8px 8px 0 var(--dark);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Page curtain transition */
#page-curtain {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}
#page-curtain.curtain-exit {
  animation: curtain-exit 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}
#page-curtain.curtain-enter {
  animation: curtain-enter 0.45s cubic-bezier(0.76, 0, 0.24, 1) both;
}
@keyframes curtain-exit {
  from { transform: translateY(0); }
  to   { transform: translateY(110%); }
}
@keyframes curtain-enter {
  from { transform: translateY(-110%); }
  to   { transform: translateY(0); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { max-width: 65ch; line-height: 1.7; }

.label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* --- Containers --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-white); }

/* --- Neobrutalism Components --- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  padding: 14px 28px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  position: relative;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--dark);
}
.btn:active {
  transform: translate(var(--shadow-offset), var(--shadow-offset));
  box-shadow: 0 0 0 var(--dark);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-yellow { background: var(--accent-yellow); color: var(--dark); }
.btn-coral { background: var(--accent-coral); color: #fff; }
.btn-outline { background: transparent; color: var(--dark); }
.btn-white { background: #fff; color: var(--dark); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; box-shadow: var(--shadow-sm); }

/* Cards */
.card {
  background: var(--bg-white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--dark);
}
.card-body { padding: 24px; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: var(--border-w) solid var(--border); }

/* Tags / Badges */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--accent-yellow);
}
.tag--teal { background: var(--primary-light); }
.tag--coral { background: var(--accent-coral); color: #fff; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-cream);
  border-bottom: var(--border-w) solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem;
  color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--dark); }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: var(--border);
  background: var(--accent-yellow);
  box-shadow: var(--shadow-sm);
}
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
.nav-cta:hover {
  transform: translate(1px,1px);
  box-shadow: 2px 2px 0 var(--dark) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 28px; height: 3px;
  background: var(--dark); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-cream);
    border-bottom: var(--border-w) solid var(--border);
    flex-direction: column; padding: 20px 24px;
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
}

/* Spacer for fixed nav */
.nav-spacer { height: var(--nav-h); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  background: var(--primary);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 60px 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.hero-text { color: #fff; position: relative; z-index: 2; }
.hero-text h1 { color: #fff; margin-bottom: 16px; }
.hero-text .label { color: var(--accent-yellow); }
.hero-text p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img {
  position: relative; z-index: 2;
  border: var(--border-w) solid var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-img img { width: 100%; }

/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: var(--accent-yellow);
  border-radius: 50%;
  opacity: 0.15;
}
.hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: var(--accent-coral);
  border-radius: 50%;
  opacity: 0.12;
}

/* Decorative floating shapes */
.deco-shape {
  position: absolute;
  border: var(--border-w) solid var(--dark);
  z-index: 1;
}
.deco-circle {
  border-radius: 50%;
}
.deco-star {
  width: 30px; height: 30px;
  background: var(--accent-yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border: none;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-img { max-width: 400px; margin: 0 auto; }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }

/* Marquee band */
.marquee-band {
  background: var(--accent-yellow);
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 40px;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--dark);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Activity grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

/* Stats band */
.stats-band {
  background: var(--dark);
  padding: 48px 0;
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
}
.quote-block {
  text-align: center;
  padding: 16px 0;
}
.quote-block blockquote {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent-yellow);
  font-style: italic;
  margin: 0 0 12px 0;
  line-height: 1.4;
}
.quote-block cite {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-style: normal;
}

/* CTA Band */
.cta-band {
  background: var(--primary) !important;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff !important; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.9) !important; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .label { color: var(--accent-yellow) !important; }
.cta-band .btn { position: relative; z-index: 2; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
  border-top: var(--border-w) solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,0.6); transition: color 0.2s; font-size: 0.95rem; }
.footer ul li a:hover { color: var(--accent-yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE SPECIFIC — Chi Siamo
   ============================================ */
.page-hero {
  background: var(--primary);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0 auto; font-size: 1.15rem; }
.page-hero .label { color: var(--accent-yellow); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 32px;
  background: var(--bg-white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--dark);
}
.value-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.value-icon--teal { background: var(--primary-pale); }
.value-icon--yellow { background: var(--accent-yellow); }
.value-icon--coral { background: var(--accent-coral); }
.value-icon--orange { background: var(--accent-orange); }

/* Split content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split-img {
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.split-img img { width: 100%; }

@media (max-width: 768px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split-img { max-width: 400px; margin: 0 auto; }
}

/* ============================================
   EVENTS
   ============================================ */
.event-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-white);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--dark);
}
.event-date {
  background: var(--primary);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  border-right: var(--border-w) solid var(--border);
}
.event-date .day { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; }
.event-date .month { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; font-weight: 600; }
.event-info { padding: 24px; }
.event-info h3 { margin-bottom: 8px; }
.event-info p { color: var(--text-muted); margin-bottom: 16px; }
.event-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .event-card { grid-template-columns: 1fr; }
  .event-date { border-right: none; border-bottom: var(--border-w) solid var(--border); padding: 16px; flex-direction: row; gap: 8px; }
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-sm);
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Decorative zigzag divider */
.zigzag {
  width: 100%;
  height: 20px;
  background: linear-gradient(135deg, var(--bg-cream) 33.33%, transparent 33.33%) 0 0,
              linear-gradient(225deg, var(--bg-cream) 33.33%, transparent 33.33%) 0 0;
  background-size: 20px 20px;
  background-repeat: repeat-x;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

/* Illustration deco dots */
.deco-dots {
  position: absolute;
  width: 60px; height: 60px;
  background-image: radial-gradient(circle, var(--dark) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.15;
}

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute; left: 15px; top: 0; bottom: 0;
  width: 3px; background: var(--primary-light);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--bg-white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-item::before {
  content: '';
  position: absolute; left: -33px; top: 28px;
  width: 16px; height: 16px;
  background: var(--primary);
  border: var(--border-w) solid var(--border);
  border-radius: 50%;
}

/* Volunteer steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step-card {
  padding: 32px;
  background: var(--bg-white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  counter-increment: step;
}
.step-card::before {
  content: counter(step);
  position: absolute; top: -16px; left: 20px;
  width: 40px; height: 40px;
  background: var(--accent-yellow);
  border: var(--border-w) solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  line-height: 40px;
  text-align: center;
}

/* Contact info cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .activity-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ============================================
   EVENTO DETAIL PAGE
   ============================================ */

.evento-hero {
  background: var(--dark);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.evento-hero-accent {
  position: absolute;
  top: 0; left: 0;
  width: 8px;
  height: 100%;
}
.evento-hero h1 { color: #fff; margin: 12px 0; }
.evento-data { color: rgba(255,255,255,0.65); font-size: 1.1rem; margin-top: 8px; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.btn-back:hover { color: #fff; }

.evento-body { padding: 64px 0 80px; }
.evento-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
.evento-main p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 65ch;
}
.evento-info-box {
  background: var(--bg-white);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.evento-info-box h4 { margin-bottom: 20px; }
.evento-info-box ul { display: flex; flex-direction: column; gap: 16px; }
.evento-info-box li { display: flex; flex-direction: column; gap: 3px; }
.evento-info-box strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.evento-info-box span { font-weight: 500; font-size: 1rem; }

@media (max-width: 800px) {
  .evento-grid { grid-template-columns: 1fr; }
}

/* Loading spinner (usato solo nella pagina dettaglio) */
.loading-spinner {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.loading-spinner::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton cards */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.sk {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.07) 25%,
    rgba(0,0,0,0.13) 50%,
    rgba(0,0,0,0.07) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk-date {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.15) 25%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.15) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-card {
  pointer-events: none;
}
.skeleton-card .event-date {
  background: var(--dark);
  opacity: 0.5;
}

/* === Trasparenza documents === */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.doc-card {
  display: flex; align-items: center; gap: 20px;
  padding: 24px;
  background: var(--bg-white);
  border: var(--border-w) solid var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--primary-pale);
  border: var(--border-w) solid var(--dark);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.doc-body { flex: 1; min-width: 0; }
.doc-body h4 { margin: 0 0 6px; font-size: 1rem; }
.doc-body p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

@media (max-width: 640px) {
  .doc-card { flex-direction: column; align-items: flex-start; }
}

/* === Candidatura form (volontari.html) === */
.candidatura-form { max-width: 720px; margin: 0 auto; }

/* Multi-step indicator */
.ms-indicator {
  display: flex; align-items: flex-start; margin-bottom: 40px;
}
.ms-dot {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.ms-dot span {
  width: 42px; height: 42px; border-radius: 50%;
  border: var(--border-w) solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; background: var(--bg-white);
  color: var(--text-muted); transition: all 0.25s;
}
.ms-dot small { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.ms-dot.active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.ms-dot.done span   { background: var(--primary-pale); border-color: var(--primary); color: var(--primary); }
.ms-dot.done small, .ms-dot.active small { color: var(--primary); font-weight: 600; }
.ms-line { flex: 1; height: 2px; background: var(--border); margin: 21px 8px 0; }
.ms-label {
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px;
}
.ms-nav { display: flex; align-items: center; margin-top: 32px; }

/* 3-column tipo-select variant */
.tipo-select--3 { grid-template-columns: repeat(3, 1fr); }

/* Minori list */
.minori-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.minore-card {
  padding: 20px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 12px;
}
.minore-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.minore-remove {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border); background: none; cursor: pointer;
  font-size: 0.75rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.minore-remove:hover { background: #fff0f0; border-color: var(--accent-coral); color: var(--accent-coral); }

.tipo-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.tipo-option { cursor: pointer; display: block; }
.tipo-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tipo-box {
  display: block;
  padding: 20px 24px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.tipo-box strong { display: block; font-size: 1rem; font-family: var(--font-display); margin-bottom: 4px; }
.tipo-box small { color: var(--text-muted); font-size: 0.85rem; }
.tipo-option input:checked + .tipo-box {
  border-color: var(--primary);
  background: var(--primary-pale);
  box-shadow: var(--shadow);
}

.pub-form-group { margin-bottom: 18px; }
.pub-form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.pub-form-group input,
.pub-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pub-form-group input:focus,
.pub-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-pale);
}
.pub-form-group textarea { resize: vertical; min-height: 110px; }
.pub-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pub-form-check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}
.pub-form-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  cursor: pointer; accent-color: var(--primary);
}
.pub-form-check label { font-size: 0.875rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; margin-bottom: 0; }

.pub-form-extra {
  padding: 16px 20px;
  background: var(--bg-white);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 4px;
}

.c-alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin: 16px 0; font-size: 0.9rem; border: 2px solid; font-weight: 500;
}
.c-alert-error   { background: #FFF0F0; border-color: var(--accent-coral); color: #c0392b; }
.c-alert-success { background: #F0FFF8; border-color: var(--primary); color: var(--primary); }

@media (max-width: 640px) {
  .tipo-select, .tipo-select--3 { grid-template-columns: 1fr; }
  .pub-form-row { grid-template-columns: 1fr; }
}

/* Admin candidature badge */
.sidebar-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-coral); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  margin-left: auto; flex-shrink: 0;
}
.candidatura-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.candidatura-item.unread { border-color: var(--primary); background: #f0fff8; }
.ci-tipo { min-width: 80px; }
.ci-info { flex: 1; }
.ci-name { font-weight: 700; font-size: 0.95rem; }
.ci-contact { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.ci-msg { font-size: 0.85rem; color: var(--text); margin-top: 8px; font-style: italic; border-left: 3px solid var(--border); padding-left: 10px; }
.ci-date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.badge-vol { background: var(--primary-pale); color: var(--primary); }
.badge-soc { background: #fff3cd; color: #856404; }

/* ── Attività page ── */
.att-overview {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 40px;
}
.att-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: var(--chip-bg, var(--primary));
  color: var(--chip-color, #fff);
  border: var(--border-w) solid var(--dark);
  border-radius: 100px;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.att-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.att-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}
.att-num {
  font-size: 5.5rem; font-weight: 900;
  line-height: 1; letter-spacing: -4px;
  opacity: 0.15;
  font-variant-numeric: tabular-nums;
  overflow: visible;
}
.att-detail--rev {
  grid-template-columns: 1fr 100px;
}
.att-detail--rev .att-num {
  grid-column: 2; grid-row: 1;
  text-align: right;
}
.att-detail--rev .att-content {
  grid-column: 1; grid-row: 1;
}
.att-content h2 { margin-top: 0; }
.att-content .btn { display: inline-flex; }

@media (max-width: 640px) {
  .att-detail { grid-template-columns: 1fr; gap: 8px; }
  .att-num { font-size: 3rem; }
}
