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

:root {
  --navy: #0f1e35;
  --navy2: #162844;
  --gold: #c9a84c;
  --gold2: #e8c97a;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray: #8a9ab5;
  --text: #1a1a2e;
  --green: #2d7a4f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(15,30,53,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo span {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-lang { display: flex; gap: 0.4rem; }

.lang-btn {
  background: none;
  border: 1px solid rgba(201,168,76,0.35);
  color: rgba(255,255,255,0.5);
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--navy);
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.page-eyebrow::before {
  content: '';
  display: block;
  width: 35px;
  height: 1px;
  background: var(--gold);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-title span { color: var(--gold); }

.page-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 600px;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 4rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.section-title.light { color: var(--white); }

.section-intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-intro.light { color: rgba(255,255,255,0.55); }

.gold-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.8rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-dark {
  border: 1px solid rgba(15,30,53,0.25);
  color: var(--navy);
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.06); }

/* ===== CERT BADGES ===== */
.cert-badge {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold2);
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
}

.cert-pill {
  background: var(--navy);
  color: var(--gold2);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

/* ===== FOOTER ===== */
footer {
  background: #080f1c;
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201,168,76,0.1);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.95rem;
}

.footer-copy { color: rgba(255,255,255,0.28); font-size: 0.78rem; }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

/* ===== TICKER ===== */
.events-ticker {
  background: var(--gold);
  padding: 0.85rem 4rem;
  overflow: hidden;
  position: relative;
}

.ticker-inner { display: flex; align-items: center; gap: 1.5rem; }

.ticker-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--gold);
  z-index: 2;
  padding-right: 1rem;
  border-right: 1px solid rgba(15,30,53,0.25);
}

.ticker-scroll { overflow: hidden; flex: 1; }

.ticker-track {
  display: flex;
  gap: 3.5rem;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ticker-item::before { content: '▸'; font-size: 0.65rem; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== LANG SWITCHING ===== */
[data-lang="it"] { display: none; }
body.lang-it [data-lang="en"] { display: none !important; }
body.lang-it [data-lang="it"] { display: revert !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-header { padding: 7rem 1.5rem 3rem; }
  .section { padding: 3.5rem 1.5rem; }
  .events-ticker { padding: 0.85rem 1.5rem; }
  .ticker-label { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
}
