/* =============================================
   VARIABILI & RESET
   ============================================= */
:root {
  --red: #A30000;
  --red-dark: #7a0000;
  --red-deep: #520000;
  --red-light: #c93030;
  --red-glow: rgba(163, 0, 0, 0.12);
  --cream: #faf6f2;
  --warm-white: #ffffff;
  --warm-gray: #f2eded;
  --charcoal: #1e1a18;
  --text: #2d2624;
  --text-light: #7a6e6a;
  --text-muted: #a09894;
  --border: rgba(163, 0, 0, 0.08);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,246,242,0.92); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 2px 40px rgba(163,0,0,0.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-light); font-weight: 500; font-size: 0.9rem; padding: 8px 18px; border-radius: 100px; transition: all 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); background: var(--red-glow); }
.nav-links .btn-dona { background: var(--red); color: white !important; font-weight: 700; padding: 10px 26px; margin-left: 8px; }
.nav-links .btn-dona:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(163,0,0,0.25); }
.nav-social { display: flex; gap: 2px; align-items: center; margin-left: 6px; }
.nav-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text-light); transition: all 0.25s; }
.nav-social a:hover { color: var(--red); background: var(--red-glow); }
.nav-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { appearance: none; -webkit-appearance: none; background: transparent; border: none; outline: none; cursor: pointer; font-family: var(--font-body); color: var(--text-light); font-weight: 500; font-size: 0.9rem; padding: 8px 18px; border-radius: 100px; transition: all 0.25s; display: flex; align-items: center; gap: 5px; line-height: 1; }
.nav-dropdown-btn:hover, .nav-dropdown.open .nav-dropdown-btn { color: var(--red); background: var(--red-glow); }
.nav-dropdown-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.nav-dropdown.open .nav-dropdown-btn svg { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 210px; background: white; border-radius: 16px; box-shadow: 0 12px 50px rgba(0,0,0,0.13); border: 1px solid var(--border); padding: 8px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 100; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.88rem; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.dropdown-menu a:hover { background: var(--red-glow); color: var(--red); }
.dropdown-menu a svg { width: 16px; height: 16px; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* =============================================
   SEZIONI (base condivisa)
   ============================================= */
.section { padding: 100px 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem,3.5vw,2.8rem); color: var(--charcoal); margin-bottom: 1rem; line-height: 1.15; }
.section-subtitle { font-size: 1.08rem; color: var(--text-light); line-height: 1.75; max-width: 600px; font-weight: 300; }

/* =============================================
   PULSANTI
   ============================================= */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 34px; border-radius: 100px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(163,0,0,0.4); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

/* =============================================
   FOOTER CON VIDEO
   ============================================= */
.footer-video-section { position: relative; overflow: hidden; }
.footer-video-bg { position: absolute; inset: 0; z-index: 0; }
.footer-video-bg video { width: 100%; height: 100%; object-fit: cover; }
.footer-video-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(30,26,24,0.82); }
.footer { position: relative; z-index: 2; color: rgba(255,255,255,0.5); padding: 50px 2rem; text-align: center; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.footer-logo-wrap img { height: 36px; width: auto; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.3rem; color: white; }
.footer-social { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); transition: all 0.3s; }
.footer-social a:hover { background: rgba(163,0,0,0.45); color: white; }
.footer-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer p { font-size: 0.87rem; line-height: 1.8; }
.footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer a:hover { color: white; }
.footer-line { width: 50px; height: 2px; background: var(--red); margin: 24px auto; opacity: 0.5; }

/* =============================================
   ANIMAZIONI
   ============================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatDown { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
.anim { opacity: 0; transition: all 0.8s cubic-bezier(0.22,1,0.36,1); }
.anim.visible { opacity: 1; }
.anim-up { transform: translateY(40px); }
.anim-up.visible { transform: translateY(0); }
.anim-left { transform: translateX(-40px); }
.anim-left.visible { transform: translateX(0); }
.anim-right { transform: translateX(40px); }
.anim-right.visible { transform: translateX(0); }
.anim-scale { transform: scale(0.92); }
.anim-scale.visible { transform: scale(1); }
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE NAVBAR
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(250,246,242,0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; font-size: 1rem; border-radius: 12px; }
  .nav-links .btn-dona { margin-left: 0; text-align: center; justify-content: center; }
  .nav-social { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; justify-content: space-between; padding: 14px 20px; border-radius: 12px; font-size: 1rem; }
  .dropdown-menu { position: static; transform: none !important; box-shadow: none; border: 1px solid var(--border); border-radius: 12px; margin: 4px 0 4px 16px; padding: 4px; opacity: 0; pointer-events: none; max-height: 0; overflow: hidden; transition: opacity 0.2s, max-height 0.3s; }
  .nav-dropdown.open .dropdown-menu { opacity: 1; pointer-events: auto; max-height: 300px; }
  .hamburger { display: flex; }
  .section { padding: 70px 1.5rem; }
}
