/* ===== SILLABE DI SETA — Design System "Inchiostro e Seta" ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Display:wght@400;600;700&family=Noto+Sans:wght@300;400;500;600&family=Ma+Shan+Zheng&display=swap');

:root {
  --ink-black: #08080a;
  --silk-cream: #fdfbf7;
  --crimson-seal: #b21b33;
  --gold-thread: #d4af37;
  --jade-mist: #5c8065;
  --ink-wash: #111116;
  --paper-white: #fefcf7;
  --mist-gray: #9c9ca8;
  --font-serif: 'Noto Serif Display', Georgia, serif;
  --font-sans: 'Noto Sans', system-ui, sans-serif;
  --font-chinese: 'Ma Shan Zheng', cursive;
  --max-width: 1200px;
  --nav-height: 80px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --ink-black: #faf9f5;
  --silk-cream: #1d1d21;
  --ink-wash: #f2efe9;
  --mist-gray: #6b6b78;
  --paper-white: #ffffff;
}

[data-theme="light"] body { background: var(--ink-black); color: var(--silk-cream); }

[data-theme="light"] .nav {
  background: rgba(254,252,247,0.9);
  border-bottom-color: rgba(201,168,76,0.15);
}
[data-theme="light"] .nav.scrolled { background: rgba(254,252,247,0.97); box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
[data-theme="light"] .nav__logo { color: var(--silk-cream); }
[data-theme="light"] .nav__links a { color: var(--silk-cream); }
[data-theme="light"] .nav__hamburger span { background: var(--silk-cream); }
[data-theme="light"] .nav__dropdown-menu { background: rgba(255,255,255,0.97); border-color: rgba(0,0,0,0.08); }

[data-theme="light"] .hero { background: linear-gradient(160deg, #f5f0e8 0%, #ece5d8 50%, #f5f0e8 100%); }
[data-theme="light"] .hero__bg-char { color: rgba(196,30,58,0.04); }
[data-theme="light"] .hero__title { color: #1a1a2e; }
[data-theme="light"] .hero__desc { color: #5a5a6a; }
[data-theme="light"] .hero__subtitle { color: var(--crimson-seal); }

[data-theme="light"] .section--alt { background: #f0ebe3; }
[data-theme="light"] .card { background: white; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.08); border-color: rgba(201,168,76,0.3); }
[data-theme="light"] .card__text { color: #555; }
[data-theme="light"] .card__title { color: #1a1a2e; }

[data-theme="light"] .news-card { background: white; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .news-card__title { color: #1a1a2e; }
[data-theme="light"] .news-card__text { color: #555; }

[data-theme="light"] .content-page h1,
[data-theme="light"] .content-page h2 { color: #1a1a2e; }
[data-theme="light"] .content-page p { color: #444; }
[data-theme="light"] .content-page li { color: #444; }

[data-theme="light"] .organo-card { background: white; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .organo-card__text { color: #444; }

[data-theme="light"] .partner-item { background: white; border-color: rgba(0,0,0,0.08); color: #1a1a2e; }

[data-theme="light"] .borsista { background: white; }
[data-theme="light"] .borsista__name { color: #1a1a2e; }

[data-theme="light"] .donation-box { background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(196,30,58,0.04)); border-color: rgba(201,168,76,0.2); }
[data-theme="light"] .donation-box__iban { background: rgba(0,0,0,0.05); color: #1a1a2e; }

[data-theme="light"] .form__input,
[data-theme="light"] .form__textarea { background: white; border-color: rgba(0,0,0,0.12); color: #1a1a2e; }

[data-theme="light"] .footer { background: #1a1a2e; }
[data-theme="light"] .footer__heading,
[data-theme="light"] .footer__logo { color: #f5f0e8; }
[data-theme="light"] .footer__desc,
[data-theme="light"] .footer__links a,
[data-theme="light"] .footer__bottom,
[data-theme="light"] .footer__bottom a,
[data-theme="light"] .footer__links li { color: #8a8a9a; }
[data-theme="light"] .footer__social a { color: #f5f0e8; }

[data-theme="light"] .stat__number { color: var(--crimson-seal); }
[data-theme="light"] .stat__label { color: #5a5a6a; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--crimson-seal); color: white;
  border: none; cursor: pointer;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(196,30,58,0.4);
  transition: var(--transition);
}
.theme-toggle:hover { transform: scale(1.1); }
[data-theme="light"] .theme-toggle { background: #1a1a2e; }

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

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

body {
  font-family: var(--font-sans);
  background: var(--ink-black);
  color: var(--silk-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-thread); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--crimson-seal); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
  transition: var(--transition);
}

.nav.scrolled .nav__inner {
  height: 65px;
}

.nav__logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600;
  color: var(--silk-cream); text-decoration: none;
}

.nav__logo-seal {
  width: 42px; height: 42px;
  background: var(--crimson-seal);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-chinese); font-size: 1.4rem; color: white;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 8px rgba(196, 30, 58, 0.3);
}

.nav__links {
  display: flex; align-items: center; gap: 0.5rem;
  list-style: none;
}

.nav__links > li > a {
  padding: 0.5rem 0.85rem; font-size: 0.85rem; font-weight: 500;
  color: var(--silk-cream); opacity: 0.8;
  border-radius: 6px;
  transition: var(--transition);
}

.nav__links > li > a:hover, .nav__links > li > a.active {
  opacity: 1; color: var(--gold-thread);
  background: rgba(201, 168, 76, 0.08);
}

.nav__dropdown { position: relative; }

.nav__dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: rgba(17, 17, 22, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px; padding: 0.5rem;
  min-width: 240px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1; visibility: visible; 
  transform: translateY(0);
}

.nav__dropdown-menu a {
  display: block; padding: 0.6rem 1rem;
  font-size: 0.82rem; border-radius: 8px;
  transition: var(--transition);
}

.nav__dropdown-menu a:hover { 
  background: rgba(212, 175, 55, 0.08); 
  color: var(--gold-thread);
}

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--silk-cream);
  transition: var(--transition);
}

.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-black) 0%, var(--ink-wash) 50%, var(--ink-black) 100%);
}

.hero__bg-char {
  position: absolute; font-family: var(--font-chinese);
  font-size: clamp(15rem, 30vw, 40rem);
  color: rgba(201, 168, 76, 0.03);
  user-select: none; pointer-events: none;
  line-height: 1;
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 900px;
}

.hero__subtitle {
  font-family: var(--font-sans); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--gold-thread); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 1s 0.3s forwards;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--silk-cream); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 1s 0.5s forwards;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--crimson-seal), var(--gold-thread));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.1rem; color: var(--mist-gray);
  max-width: 600px; margin: 0 auto 2rem;
  opacity: 0; animation: fadeUp 1s 0.7s forwards;
}

.hero__cta {
  display: inline-flex; gap: 1rem;
  opacity: 0; animation: fadeUp 1s 0.9s forwards;
}

.hero__brush-divider {
  position: absolute; bottom: 0; left: 0; width: 100%;
  height: 80px; overflow: hidden;
}

.hero__brush-divider svg {
  width: 100%; height: 100%;
  fill: var(--ink-black);
}

/* Inner page hero */
.hero--inner {
  min-height: 50vh; padding-top: var(--nav-height);
}

.hero--inner .hero__title { font-size: clamp(1.8rem, 4vw, 3rem); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--crimson-seal), #e63950);
  color: white;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
  color: white;
}

.nav__links a.btn--donate,
.btn--donate {
  background: linear-gradient(135deg, var(--gold-thread), #b48e30);
  color: var(--ink-black) !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.nav__links a.btn--donate:hover,
.btn--donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  color: var(--ink-black) !important;
  background: linear-gradient(135deg, var(--gold-thread), #b48e30) !important;
}

[data-theme="light"] .nav__links a.btn--donate,
[data-theme="light"] .btn--donate {
  background: linear-gradient(135deg, var(--crimson-seal), #e63950) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.2);
}

[data-theme="light"] .nav__links a.btn--donate:hover,
[data-theme="light"] .btn--donate:hover {
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
  color: white !important;
  background: linear-gradient(135deg, var(--crimson-seal), #e63950) !important;
}

.btn--outline {
  background: transparent; color: var(--gold-thread);
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn--outline:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold-thread);
  color: var(--gold-thread);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section--alt { background: var(--ink-wash); }
.section--light { background: var(--paper-white); color: var(--ink-black); }
.section--light a { color: var(--crimson-seal); }

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--gold-thread);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 1rem;
}

.section__title--light { color: var(--ink-black); }

.section__subtitle {
  font-size: 1.05rem; color: var(--mist-gray);
  max-width: 600px; margin: 0 auto;
}

.section__chinese-accent {
  font-family: var(--font-chinese);
  font-size: 1.2rem;
  color: var(--crimson-seal);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--crimson-seal), var(--gold-thread), transparent);
  opacity: 0; transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card:hover::before { opacity: 1; }

.card__icon {
  width: 56px; height: 56px; margin-bottom: 1.5rem;
  background: rgba(196, 30, 58, 0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.95rem; color: var(--mist-gray);
  line-height: 1.8;
}

/* Light cards */
.card--light {
  background: white;
  border-color: rgba(0,0,0,0.06);
  color: var(--ink-black);
}

.card--light .card__text { color: #555; }

/* ===== CONTENT PAGE ===== */
.content-page {
  padding: 4rem 0 6rem;
}

.content-page .container { max-width: 800px; }

.content-page h1,
.content-page h2 {
  font-family: var(--font-serif);
  color: var(--silk-cream);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.content-page h1 { font-size: 2rem; }
.content-page h2 { font-size: 1.5rem; }
.content-page h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--gold-thread); }

.content-page p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  color: rgba(245, 240, 232, 0.85);
}

.content-page ul, .content-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-page li {
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
  color: rgba(245, 240, 232, 0.8);
}

.content-page li::marker { color: var(--crimson-seal); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--crimson-seal), #8b0020);
  border-radius: 20px; padding: 3.5rem;
  text-align: center; position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '丝';
  position: absolute; right: -20px; top: -20px;
  font-family: var(--font-chinese);
  font-size: 12rem; color: rgba(255,255,255,0.05);
  line-height: 1;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 700;
  color: white; margin-bottom: 1rem;
}

.cta-banner__text {
  color: rgba(255,255,255,0.85);
  max-width: 500px; margin: 0 auto 1.5rem;
}

.cta-banner .btn--primary {
  background: white; color: var(--crimson-seal);
}

/* ===== NEWS CARDS ===== */
.news-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 16px; padding: 2rem;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,76,0.25);
}

.news-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--silk-cream);
}

.news-card__text {
  font-size: 0.92rem; color: var(--mist-gray);
  line-height: 1.7; margin-bottom: 1rem;
}

.news-card__link {
  font-size: 0.85rem; font-weight: 500;
  color: var(--gold-thread);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.news-card__link:hover { color: var(--crimson-seal); }

/* ===== PARTNER LIST ===== */
.partner-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.partner-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 12px;
  transition: var(--transition);
  color: var(--silk-cream);
  text-decoration: none;
}

.partner-item:hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.25);
  color: var(--gold-thread);
}

.partner-item__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(196,30,58,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ===== ORGANI SOCIALI ===== */
.organo-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 16px; padding: 2.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.organo-card:hover { border-color: rgba(201,168,76,0.2); }

.organo-card__role {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 600;
  color: var(--gold-thread);
  margin-bottom: 1rem;
}

.organo-card__text {
  font-size: 0.95rem; color: rgba(245,240,232,0.8);
  line-height: 1.8;
}

.organo-card__contact {
  margin-top: 1rem; font-size: 0.9rem;
}

.organo-card__contact a { color: var(--gold-thread); }

/* ===== BORSE DI STUDIO ===== */
.borsisti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.borsista {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--crimson-seal);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
}

.borsista__name { font-weight: 600; color: var(--silk-cream); }
.borsista__school { color: var(--mist-gray); font-size: 0.85rem; }

/* ===== CONTACT FORM ===== */
.form { max-width: 600px; }

.form__group { margin-bottom: 1.5rem; }

.form__label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--gold-thread);
}

.form__input,
.form__textarea {
  width: 100%; padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  color: var(--silk-cream);
  font-family: var(--font-sans); font-size: 0.95rem;
  transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--gold-thread);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form__textarea { min-height: 150px; resize: vertical; }

.form__checkbox {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1rem; font-size: 0.85rem;
  color: var(--mist-gray);
}

.form__checkbox input { margin-top: 4px; accent-color: var(--crimson-seal); }

/* ===== DONATION BOX ===== */
.donation-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(196,30,58,0.08));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px; padding: 2.5rem;
  text-align: center;
}

.donation-box__iban {
  font-family: 'Courier New', monospace;
  font-size: 1.15rem; font-weight: 600;
  color: var(--gold-thread);
  padding: 1rem; margin: 1rem 0;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink-wash);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand { display: flex; flex-direction: column; gap: 1rem; }

.footer__logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
  color: var(--silk-cream);
}

.footer__desc { font-size: 0.9rem; color: var(--mist-gray); line-height: 1.7; }

.footer__heading {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--silk-cream); margin-bottom: 1.25rem;
}

.footer__links { list-style: none; }

.footer__links li { margin-bottom: 0.6rem; }

.footer__links a {
  font-size: 0.88rem; color: var(--mist-gray);
  transition: var(--transition);
}

.footer__links a:hover { color: var(--gold-thread); }

.footer__social {
  display: flex; gap: 0.75rem; margin-top: 1rem;
}

.footer__social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--silk-cream);
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--crimson-seal);
  border-color: var(--crimson-seal);
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(201,168,76,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--mist-gray);
}

.footer__bottom a { color: var(--mist-gray); }
.footer__bottom a:hover { color: var(--gold-thread); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(1deg); }
  75% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3); }
  50% { box-shadow: 0 4px 40px rgba(196, 30, 58, 0.6), 0 0 60px rgba(196, 30, 58, 0.2); }
}

@keyframes ink-spread {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes brush-draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Floating background characters */
.hero__bg-char {
  position: absolute; font-family: var(--font-chinese);
  font-size: clamp(15rem, 30vw, 40rem);
  color: rgba(201, 168, 76, 0.03);
  user-select: none; pointer-events: none;
  line-height: 1;
  animation: float 12s ease-in-out infinite;
}

/* Gold shimmer on hero title gradient */
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--crimson-seal), var(--gold-thread), var(--crimson-seal), var(--gold-thread));
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
}

/* Pulsing CTA button */
.hero__cta .btn--primary {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Seal logo subtle rotation on hover */
.nav__logo-seal {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__logo:hover .nav__logo-seal {
  transform: rotate(8deg) scale(1.1);
}

/* Reveal animations — multiple variants */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal--left.visible { opacity: 1; transform: translateX(0); }

.reveal--right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal--right.visible { opacity: 1; transform: translateX(0); }

.reveal--scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal--scale.visible { opacity: 1; transform: scale(1); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Ink spread effect on card hover */
.card {
  position: relative; overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(196,30,58,0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.card:hover::after {
  transform: translate(-50%, -50%) scale(3);
}

/* Card tilt on hover (3D) */
.card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Button hover effects */
.btn {
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: width 0.5s ease, height 0.5s ease;
  transform: translate(-50%, -50%);
}
.btn:hover::after {
  width: 300px; height: 300px;
}

/* Section label animated underline */
.section__label {
  position: relative; display: inline-block;
}
.section__label::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--gold-thread);
  transition: width 0.6s ease, left 0.6s ease;
}
.reveal.visible .section__label::after {
  width: 40px; left: calc(50% - 20px);
}

/* Chinese accent character entrance */
.section__chinese-accent {
  opacity: 0;
  transform: scale(1.5);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.visible .section__chinese-accent,
.reveal.visible + * .section__chinese-accent {
  opacity: 0.7;
  transform: scale(1);
}

/* Stats counter glow */
.stat__number {
  transition: text-shadow 0.3s ease;
}
.stat:hover .stat__number {
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.5);
}

/* News card hover lift + border glow */
.news-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(201,168,76,0.1);
}

/* Partner item hover slide */
.partner-item {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.partner-item:hover {
  transform: translateX(6px);
  box-shadow: -4px 0 20px rgba(201,168,76,0.1);
}

/* CTA banner parallax-ready */
.cta-banner {
  transition: transform 0.3s ease;
}

/* Footer link hover slide effect */
.footer__links a {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease, color 0.3s ease;
}
.footer__links a::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold-thread);
  transition: width 0.3s ease;
  transform: translateY(-50%);
}
.footer__links a:hover {
  padding-left: 14px;
}
.footer__links a:hover::before {
  width: 8px;
}

/* Social icon bounce on hover */
.footer__social a:hover {
  animation: bounce-subtle 0.4s ease;
}

/* Organo card left border reveal */
.organo-card {
  border-left: 3px solid transparent;
  transition: border-color 0.5s ease, border-left-color 0.5s ease, transform 0.3s ease;
}
.organo-card:hover {
  border-left-color: var(--crimson-seal);
  transform: translateX(4px);
}

/* Borsista item hover */
.borsista {
  transition: transform 0.3s ease, background 0.3s ease;
}
.borsista:hover {
  transform: translateX(4px);
  background: rgba(196,30,58,0.05);
}

/* Donation box pulse */
.donation-box__iban {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.donation-box__iban:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}

/* Form input focus animation */
.form__input:focus,
.form__textarea:focus {
  transform: translateY(-2px);
}

/* Smooth page load */
body {
  animation: fadeIn 0.6s ease;
}

/* Custom cursor trail (handled by JS) */
.cursor-trail {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-thread);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* Silk thread particle canvas */
#silk-particles {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Brush stroke divider */
.brush-divider {
  width: 100%; height: 40px;
  position: relative; overflow: hidden;
  margin: 2rem 0;
}
.brush-divider svg {
  width: 100%; height: 100%;
}
.brush-divider path {
  stroke: var(--gold-thread);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.brush-divider.visible path {
  animation: brush-draw 2s ease forwards;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--crimson-seal), var(--gold-thread));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 700;
  color: var(--gold-thread);
}

.stat__label {
  font-size: 0.85rem; color: var(--mist-gray);
  margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .card-grid--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* ===== FULL-SCREEN MOBILE MENU ===== */
  .nav__links {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh; height: 100dvh;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    list-style: none;
    opacity: 0; visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
    z-index: 1000;
    overflow-y: auto;
  }
  .nav__links.open {
    opacity: 1; visibility: visible;
    transform: translateY(0);
  }
  .nav__hamburger { display: flex; z-index: 1001; }

  /* Mobile nav items — dark theme */
  .nav__links > li > a {
    display: inline-block; padding: 0.5rem 1rem;
    font-size: 1.4rem; font-family: var(--font-serif);
    text-align: center;
    border: none !important;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
  }
  .nav__links > li > a:not(.btn) {
    color: #f5f0e8 !important;
    background: none !important;
  }
  .nav__links > li > a:not(.btn):hover,
  .nav__links > li > a:not(.btn).active {
    color: #c9a84c !important;
    background: none !important;
  }
  .nav__links > li > a.btn {
    font-family: var(--font-sans);
    font-size: 1.1rem !important;
    padding: 0.85rem 2rem !important;
    margin-top: 1rem;
  }
  .nav__links.open > li > a {
    opacity: 1; transform: translateY(0);
  }
  .nav__links.open > li:nth-child(1) > a { transition-delay: 0.1s; }
  .nav__links.open > li:nth-child(2) > a { transition-delay: 0.15s; }
  .nav__links.open > li:nth-child(3) > a { transition-delay: 0.2s; }
  .nav__links.open > li:nth-child(4) > a { transition-delay: 0.25s; }
  .nav__links.open > li:nth-child(5) > a { transition-delay: 0.3s; }
  .nav__links.open > li:nth-child(6) > a { transition-delay: 0.35s; }
  .nav__links.open > li:nth-child(7) > a { transition-delay: 0.4s; }
  .nav__links.open > li:nth-child(8) > a { transition-delay: 0.45s; }

  /* Mobile dropdown accordion */
  .nav__dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; background: transparent !important;
    border: none; box-shadow: none;
    padding: 0; min-width: auto;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: center;
  }
  .nav__dropdown.open .nav__dropdown-menu {
    max-height: 400px;
    margin-top: 1rem;
  }
  .nav__dropdown-menu a {
    padding: 0.6rem 0; font-size: 1.05rem;
    border-bottom: none;
    color: rgba(245,240,232,0.6) !important;
  }
  .nav__dropdown-menu a:hover {
    color: #c9a84c !important;
    opacity: 1; background: transparent !important;
  }

  /* ===== LIGHT THEME — MOBILE NAV ===== */
  [data-theme="light"] .nav__links {
    background: rgba(254,252,247,0.98);
  }
  [data-theme="light"] .nav__links > li > a:not(.btn) {
    color: #1a1a2e !important;
  }
  [data-theme="light"] .nav__links > li > a:not(.btn):hover,
  [data-theme="light"] .nav__links > li > a:not(.btn).active {
    color: #c41e3a !important;
  }
  [data-theme="light"] .nav__dropdown-menu a {
    color: rgba(26,26,46,0.6) !important;
  }
  [data-theme="light"] .nav__dropdown-menu a:hover {
    color: #c41e3a !important;
  }
  [data-theme="light"] .nav__hamburger span {
    background: #1a1a2e;
  }
  /* When menu is open in light mode, force hamburger to dark if scrolled */
  [data-theme="light"] .nav__hamburger.active span {
    background: #1a1a2e;
  }

  /* Hide overlay since menu is full screen */
  .nav__overlay { display: none !important; }

  .hero__title { font-size: 1.8rem; }
  .section { padding: 4rem 0; }
  .card-grid, .card-grid--four { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero__cta { flex-direction: column; align-items: center; }
}
