/* =========================================
   CORPO VOLONTARI UNITÀ 59 — MODERN REDESIGN
   ========================================= */

:root {
  --blue-900: #0a1628;
  --blue-800: #0d1f3c;
  --blue-700: #102a52;
  --blue-600: #1a3a6e;
  --blue-500: #1e4d9b;
  --blue-400: #2563cc;
  --blue-300: #4a80e4;
  --blue-200: #93b4f0;
  --blue-100: #dce9fb;
  --blue-50:  #f0f5ff;

  --orange:   #e05a1a;
  --orange-l: #f57c3e;
  --orange-d: #b84610;
  --shadow-orange: 0 8px 32px rgba(224,90,26,.35);

  --white:    #ffffff;
  --gray-50:  #f8f9fb;
  --gray-100: #eef1f6;
  --gray-200: #d8dde8;
  --gray-400: #9aa3b5;
  --gray-600: #5a6278;
  --gray-800: #2a2f3d;
  --black:    #0e1117;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 4px rgba(10,22,40,.08);
  --shadow-md:  0 4px 20px rgba(10,22,40,.12);
  --shadow-lg:  0 12px 48px rgba(10,22,40,.18);
  --shadow-blue:0 8px 32px rgba(30,77,155,.30);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-h: 72px;
  --container: 1160px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== LAYOUT ========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section.bg-light { background: var(--gray-50); }
.section.bg-dark  { background: var(--blue-900); }
.section.bg-blue  { background: var(--orange-d); }
.text-center { text-align: center; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--blue-900);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.logo-badge {
  width: 44px; height: 44px;
  background: var(--blue-400);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-badge.sm { width: 36px; height: 36px; font-size: 18px; }
.nav-logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white); letter-spacing: .5px; text-transform: uppercase; }
.logo-sub  { font-family: var(--font-display); font-weight: 400; font-size: 12px; color: var(--blue-200); letter-spacing: 2px; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-links a.active { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px; padding: 8px; margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.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); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,.85) 0%,
    rgba(14,31,58,.70) 50%,
    rgba(30,77,155,.50) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  max-width: 780px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-200);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 900;
  line-height: .95;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero-title span { color: #f5c842; }
.hero-subtitle {
  font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,.75);
  max-width: 520px; margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-l); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(224,90,26,.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-white {
  background: var(--white); color: var(--orange);
}
.btn-white:hover { background: #fff3ee; transform: translateY(-2px); }

/* ========== 5x1000 BANNER ========== */
.banner-5x1000 {
  background: var(--orange);
  padding: 20px 0;
}
.banner-inner {
  display: flex; align-items: center; gap: 20px;
  justify-content: center;
}
.banner-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.banner-icon svg { width: 22px; height: 22px; }
.banner-text {
  display: flex; flex-direction: column;
  color: var(--white);
}
.banner-text strong { font-size: 17px; font-family: var(--font-display); font-weight: 700; letter-spacing: .5px; }
.banner-text span   { font-size: 14px; color: rgba(255,255,255,.8); }

/* ========== SECTION TYPOGRAPHY ========== */
.section-tag {
  display: inline-block;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-tag.light { color: var(--blue-200); }
.section-tag.light-on-dark { color: var(--blue-200); }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header p { color: var(--gray-600); max-width: 540px; margin: 12px auto 0; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900; line-height: .95;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.bg-dark h2 { color: var(--white); }

/* ========== SECTION GRID ========== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }

.section-content p {
  color: var(--gray-600); margin-bottom: 16px; font-size: 16px; line-height: 1.7;
}
.section-content p:last-of-type { margin-bottom: 32px; }
.highlight-text {
  font-weight: 600; color: var(--orange) !important;
  font-size: 17px !important;
}

/* Image frame */
.section-media { position: relative; }
.img-frame {
  position: relative; z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.img-frame img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s ease;
}
.img-frame.contain-img img {
  aspect-ratio: unset;
  max-height: 520px;
  object-fit: contain;
  background: transparent;
}
.img-frame:hover img { transform: scale(1.04); }
.img-accent {
  position: absolute; z-index: 1;
  width: 200px; height: 200px;
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  top: -20px; left: -20px;
}
.img-accent.right { left: auto; right: -20px; top: -20px; background: var(--blue-100); }

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  background: #fff3ee;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--blue-900); margin-bottom: 12px;
}
.card p { color: var(--gray-600); font-size: 15px; line-height: 1.6; }

/* ========== ACTIVITY LIST ========== */
.activity-list { margin: 28px 0; display: flex; flex-direction: column; gap: 20px; }
.activity-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.activity-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #fff3ee; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.activity-icon svg { width: 22px; height: 22px; }
.activity-item strong { display: block; font-size: 15px; font-weight: 600; color: var(--blue-900); margin-bottom: 2px; }
.activity-item p { font-size: 14px; color: var(--gray-600); margin: 0; }

/* ========== GALLERY ========== */
.gallery-section { padding-bottom: 96px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.gallery-centered {
  justify-items: center;
}
.gallery-3col {
  grid-template-columns: repeat(3, 1fr);
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ========== PAGE HERO ========== */
.page-hero {
  position: relative;
  height: 60vh; min-height: 400px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero-overlay.dark {
  background: linear-gradient(to top, rgba(10,22,40,.9) 0%, rgba(10,22,40,.4) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 60px 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900; line-height: .95;
  color: var(--white); text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero-content h1 span { color: var(--blue-300); }
.page-hero-content p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 500px; }

/* ========== PAGE HERO MINI ========== */
.page-hero-mini {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--blue-900);
}
.page-hero-mini .container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.page-hero-mini h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900; color: var(--white);
  text-transform: uppercase; letter-spacing: -1px;
  margin-bottom: 16px; line-height: .95;
}
.page-hero-mini p { color: rgba(255,255,255,.65); max-width: 540px; font-size: 16px; }

/* ========== JOIN CARD ========== */
.join-card {
  background: var(--blue-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.join-card-header {
  background: var(--orange);
  padding: 32px 28px;
  display: flex; align-items: center; gap: 20px;
}
.join-number {
  font-family: var(--font-display); font-size: 64px; font-weight: 900;
  color: rgba(255,255,255,.25); line-height: 1;
}
.join-card-header h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--white); text-transform: uppercase; line-height: 1.1;
}
.join-card-body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.join-info-row {
  display: flex; align-items: flex-start; gap: 14px; color: rgba(255,255,255,.75);
}
.join-info-row svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--blue-300); }
.join-info-row span { font-size: 15px; line-height: 1.5; }

/* ========== ACTIVITIES CHIPS ========== */
.activities-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chip {
  background: #fff3ee; color: var(--orange-d);
  border: 1px solid #f5c4a8;
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
}

/* ========== CONTACT GRID ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-block:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--orange); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-block h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: 4px; }
.contact-block p { font-size: 15px; color: var(--gray-800); line-height: 1.5; }
.contact-block a { color: var(--orange); }
.contact-block a:hover { text-decoration: underline; }

.map-container {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-container iframe { display: block; }
.map-label {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--blue-900); color: var(--white);
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.map-label svg { width: 14px; height: 14px; color: var(--blue-300); }

/* ========== CF BADGE ========== */
.cf-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  letter-spacing: 4px;
  padding: 16px 36px; border-radius: var(--radius-md);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--blue-900);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.6;
  margin: 16px 0 20px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.social-fb {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 14px; font-weight: 500;
  padding: 8px 16px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.social-fb svg { width: 16px; height: 16px; }
.social-fb:hover { background: var(--orange); color: var(--white); }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange-l); margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.6); font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6;
  margin-bottom: 8px;
}
.footer-contact a { color: var(--blue-200); }
.footer-contact a:hover { color: var(--white); }
.meeting-info { color: rgba(255,255,255,.45) !important; font-size: 13px !important; }
.footer-logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  color: rgba(255,255,255,.35); font-size: 13px;
}
.footer-pc-logo {
  height: 36px; width: auto;
  opacity: .35; filter: invert(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .section-grid { grid-template-columns: 1fr; gap: 48px; }
  .section-grid.reverse { direction: ltr; }
  .section-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-container { height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--blue-900);
    flex-direction: column; gap: 0;
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-radius: 0; font-size: 16px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .section-grid { gap: 32px; }
  .img-accent { display: none; }
  h2 { font-size: 36px; }
  .page-hero { height: 55vh; }
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .banner-inner { flex-direction: column; text-align: center; }
  .cf-badge { font-size: 20px; letter-spacing: 2px; padding: 14px 24px; }
}
