@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --lavender: #b8a9e0;
  --lavender-dark: #7c6ab5;
  --lavender-bg: #c9baee;
  --yellow: #f5c842;
  --yellow-dark: #e0a800;
  --teal: #3a8c7e;
  --teal-light: #4aad9c;
  --green-dark: #2c6b5e;
  --white: #fdfcf8;
  --dark: #1a1525;
  --text: #2d2540;
  --blob1: #f5c842;
  --blob2: #3a8c7e;
  --blob3: #b8a9e0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ALERT BANNER */
.alert-banner {
  background: #fef3cd;
  border-bottom: 2px solid #f5c842;
  padding: 0;
  width: 100%;
}

.alert-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.alert-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5c4a00;
  flex: 1;
}

.alert-text a {
  color: #3a6b5e;
  font-weight: 600;
  text-decoration: underline;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #5c4a00;
  opacity: 0.5;
  flex-shrink: 0;
  padding: 0 4px;
  line-height: 1;
  margin-top: 1px;
  transition: opacity 0.15s;
}
.alert-close:hover { opacity: 1; }

/* Sticky wrapper that holds banner + nav together */
.sticky-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  position: static;
  z-index: 100;
  background: rgba(253,252,248,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--lavender);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Nav standalone (pages without banner) stays fixed */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
}

.nav-logo span {
  background: var(--yellow);
  color: var(--dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--lavender-dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--lavender-dark); }
.nav-links a.active::after { transform: scaleX(1); }

/* BLOBS / DECORATIVE SHAPES */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  pointer-events: none;
  z-index: 0;
}

.shape-circle {
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--lavender-bg);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 2.5rem; right: 3rem;
  width: 240px;
  height: 175px;
  background: url('../logo.png') no-repeat center / contain;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 280px; height: 280px;
  background: var(--yellow);
  top: -60px; right: -60px;
  opacity: 0.9;
}

.hero-blob-2 {
  width: 200px; height: 200px;
  background: var(--teal);
  bottom: 40px; left: -60px;
  opacity: 0.85;
}

.hero-blob-3 {
  width: 140px; height: 140px;
  background: var(--yellow);
  bottom: 120px; right: 120px;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--dark);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero-collab {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.hero-date {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--dark);
  color: var(--yellow);
  padding: 12px 32px;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-secondary {
  background: var(--dark);
  color: var(--yellow);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

/* SECTIONS */
section { padding: 5rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* PROGRAM SECTION */
.program-section { background: var(--dark); color: white; position: relative; overflow: hidden; }
.program-section .section-label { color: var(--yellow); }
.program-section h2 { color: white; }

.program-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.program-block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.program-block:hover { background: rgba(255,255,255,0.1); }

.program-time {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}

.program-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
}

.program-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.program-location {
  font-size: 0.85rem;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.program-labs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.lab-tag {
  background: rgba(245, 200, 66, 0.15);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.lab-tag a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
}
.lab-tag a:hover { text-decoration: underline; }

.lab-tag-speakers { font-size: 0.8rem; opacity: 0.7; margin-top: 0.2rem; }

/* WORKSHOPS GRID */
.workshops-section { background: var(--white); }

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.workshop-card {
  background: var(--lavender-bg);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--dark);
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: var(--yellow);
}

.workshop-card-day {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.workshop-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.workshop-card-speakers {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.5;
}

.workshop-card-num {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0,0,0,0.07);
  line-height: 1;
}

/* WORKSHOP DETAIL PAGE */
.page-hero {
  padding: 8rem 2rem 4rem;
  background: var(--lavender-bg);
  position: relative;
  overflow: hidden;
}

.page-hero-blob-1 {
  width: 250px; height: 250px;
  background: var(--yellow);
  top: -80px; right: -40px;
  opacity: 0.8;
}

.page-hero-blob-2 {
  width: 160px; height: 160px;
  background: var(--teal);
  bottom: -40px; left: 5%;
  opacity: 0.7;
}

.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 800px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.meta-tag {
  background: var(--dark);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.meta-tag.teal {
  background: var(--teal);
  color: white;
}

/* SPEAKERS LIST */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.speaker-card {
  background: var(--lavender-bg);
  border-radius: 12px;
  padding: 1.2rem;
}

.speaker-name {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.speaker-org {
  font-size: 0.85rem;
  color: var(--teal);
  opacity: 0.9;
}

/* MAP SECTION */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 450px;
  border: 3px solid var(--lavender);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.locations-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.location-card {
  background: var(--lavender-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 5px solid var(--teal);
}

.location-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.location-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

.location-events {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.location-event-tag {
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* INFO BOX */
.info-box {
  background: var(--teal);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.info-box a { color: var(--yellow); font-weight: 700; }

/* HAMBURGER – hidden on desktop */
.nav-hamburger { display: none; }

/* FOOTER */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

footer .footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--yellow);
}

footer p { opacity: 0.6; font-size: 0.9rem; }
footer a { color: var(--yellow); }

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

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }

/* RESPONSIVE */
@media (max-width: 768px) {

  /* NAV: hide links, show hamburger */
  .nav-links { display: none; }

  nav {
    padding: 0 1rem;
    height: 56px;
  }

  .nav-logo { font-size: 0.95rem; }
  .nav-logo img { height: 28px; }

  /* Hamburger menu */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--lavender);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav-mobile-open .nav-links li {
    border-bottom: 1px solid var(--lavender);
  }

  .nav-mobile-open .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  /* HERO */
  .hero {
    padding: 5rem 1.25rem 3rem;
    min-height: auto;
  }

  .hero h1 { font-size: 2.4rem; }

  .hero-blob-1 { width: 160px; height: 160px; top: -40px; right: -40px; }
  .hero-blob-2 { width: 120px; height: 120px; bottom: 20px; left: -40px; }
  .hero-blob-3 { display: none; }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn { width: 100%; max-width: 320px; text-align: center; }

  .hero-date { font-size: 1.1rem; padding: 10px 20px; }

  /* SECTIONS */
  section { padding: 3rem 1.25rem; }

  h2 { font-size: 1.6rem; }

  /* PROGRAM TABS */
  .program-tabs { flex-direction: column; }
  .tab-btn { width: 100%; text-align: left; }

  .program-labs {
    grid-template-columns: 1fr;
  }

  /* WORKSHOPS GRID */
  .workshops-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* SPEAKERS GRID */
  .speakers-grid {
    grid-template-columns: 1fr;
  }

  /* RELATORI GRID */
  .relatori-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-bar {
    gap: 0.4rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  /* PAGE HERO */
  .page-hero {
    padding: 5.5rem 1.25rem 2.5rem;
  }

  .page-hero h1 { font-size: 1.7rem; }

  .page-hero-meta { gap: 0.5rem; }

  /* SPEAKER HERO */
  .speaker-hero { padding: 5.5rem 1.25rem 2.5rem; }
  .speaker-hero-inner { flex-direction: column; gap: 1.25rem; }
  .speaker-avatar-lg { width: 80px; height: 80px; font-size: 1.6rem; }

  /* MAP */
  .map-container { height: 280px; }

  /* LOCATIONS LIST */
  .locations-list {
    grid-template-columns: 1fr;
  }

  /* BACK LINK */
  .back-link { padding: 5rem 1.25rem 0; }

  /* CONTAINERS */
  .container { padding: 0; }

  /* CTA section buttons */
  .btn { font-size: 0.9rem; padding: 10px 20px; }
}

/* Extra small */
@media (max-width: 400px) {
  .hero h1 { font-size: 2rem; }
  .hero-date { font-size: 1rem; }
  .page-hero h1 { font-size: 1.5rem; }
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8rem 2rem 0;
  position: relative;
  z-index: 1;
}
.back-link:hover { text-decoration: underline; }

/* DIVIDER */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--teal), var(--lavender-dark));
  border: none;
}
