/* GDA — homepage (index.html). Standalone stylesheet, not shared with the
   legacy pages (socials.html, upcoming-event.html), which keep design.css. */

@import "./tokens.css";

:root {
  --gda-accent: var(--gda-color-accent);
  --gda-ink: var(--gda-color-ink);
  --gda-ink-2: #23292E;
  --gda-paper: var(--gda-color-paper);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--gda-ink);
  color: var(--gda-paper);
  font-family: Poppins, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--gda-accent); text-decoration: none; }
a:hover { color: var(--gda-paper); }

@keyframes gdaRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.gda-accent-text { color: var(--gda-accent); }

/* ── header / nav ─────────────────────────────────────────────────────── */

.gda-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(31, 36, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
}

.gda-header__row--wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.gda-header__logo img { height: 34px; width: auto; display: block; }
.gda-header__logo-img { height: 30px; width: auto; display: block; }

.gda-nav--wide { display: flex; align-items: center; gap: 2px 4px; flex-wrap: wrap; flex: 1 1 auto; }

.gda-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gda-paper);
}
.gda-nav__link:hover { color: var(--gda-accent); }

.gda-dot { width: 6px; height: 6px; background: var(--gda-accent); display: block; opacity: 0; }

.gda-header__row--narrow { display: none; }

.gda-header__narrow-top { padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.gda-pill {
  padding: 10px 16px;
  background: var(--gda-accent);
  color: var(--gda-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.gda-pill:hover { color: var(--gda-ink); }

.gda-nav--narrow { display: flex; align-items: stretch; border-top: 1px solid rgba(245, 245, 245, 0.12); }
.gda-nav--narrow .gda-nav__link {
  flex: 1 1 0;
  justify-content: center;
  padding: 12px 4px;
  font-size: 10px;
  text-align: center;
}
.gda-nav--narrow .gda-dot { width: 5px; height: 5px; flex: 0 0 auto; }

@media (max-width: 820px) {
  .gda-header__row--wide { display: none; }
  .gda-header__row--narrow { display: block; }
}

/* Active-route indicator: driven by body[data-route], no JS class toggling. */
body[data-route="home"] [data-nav="home"] .gda-dot,
body[data-route="eventi"] [data-nav="eventi"] .gda-dot,
body[data-route="chi-siamo"] [data-nav="chi-siamo"] .gda-dot,
body[data-route="contatti"] [data-nav="contatti"] .gda-dot { opacity: 1; }

/* ── CTA button (hover: label slides out, label+arrow slide in, dot fills) ── */

.gda-cta {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 2px solid var(--gda-accent);
  border-radius: 999px;
  padding: 15px 30px;
  background: transparent;
  text-align: center;
  min-width: 250px;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.gda-cta--sm { padding: 11px 22px; min-width: 196px; font-size: 12px; }

.gda-cta__out {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: var(--gda-paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gda-cta__in {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--gda-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(52px);
  opacity: 0;
}
.gda-cta__dot {
  position: absolute;
  z-index: 1;
  background: var(--gda-accent);
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 8px;
  transform: scale(0);
  transition: all 0.3s ease;
}
.gda-cta:hover .gda-cta__out { transform: translateX(52px); opacity: 0; }
.gda-cta:hover .gda-cta__in { transform: translateX(0); opacity: 1; }
.gda-cta:hover .gda-cta__dot {
  left: 0; top: 0; width: 100%; height: 100%; border-radius: 999px; transform: scale(1.8);
}

/* ── screens ──────────────────────────────────────────────────────────── */

main[data-screen] { display: none; }
body[data-route="home"] main[data-screen="home"],
body[data-route="eventi"] main[data-screen="eventi"],
body[data-route="chi-siamo"] main[data-screen="chi-siamo"],
body[data-route="contatti"] main[data-screen="contatti"] { display: block; }

main[data-screen="eventi"],
main[data-screen="chi-siamo"],
main[data-screen="contatti"] {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 24px) 96px;
  animation: gdaRise 0.4s ease both;
}

main[data-screen="home"] { animation: gdaRise 0.4s ease both; }

main[data-screen="home"] { position: relative; }
.gda-dotgrid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 245, 245, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}

.gda-section { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 72px) clamp(20px, 5vw, 24px) 24px; }
.gda-section--hero { perspective: 1600px; padding-top: 0; }
.gda-section--tight { padding-top: 32px; padding-bottom: 96px; }

.gda-eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gda-accent); }
.gda-eyebrow--muted { color: rgba(245, 245, 245, 0.5); letter-spacing: 0.24em; }

.gda-h1 { margin: 0; font-size: clamp(52px, 9vw, 132px); font-weight: 800; line-height: 0.86; letter-spacing: -0.035em; text-transform: uppercase; }
.gda-h1--page { font-size: clamp(40px, 6vw, 84px); line-height: 0.9; letter-spacing: -0.03em; margin: 0 0 20px; }
.gda-h2 { margin: 88px 0 28px; font-size: 13px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(245, 245, 245, 0.55); }

.gda-lead { margin: 0 0 64px; max-width: 620px; font-size: 17px; line-height: 1.6; color: rgba(245, 245, 245, 0.7); }

.gda-intro { margin-top: 34px; max-width: 620px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; color: rgba(245, 245, 245, 0.74); }
.gda-intro p { margin: 0; }
.gda-intro--wide { max-width: 680px; font-size: 18px; color: rgba(245, 245, 245, 0.78); margin-top: 0; }

/* ── hero ─────────────────────────────────────────────────────────────── */

.gda-hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gda-hero-poster img { display: block; width: 100%; height: auto; }

.gda-archive-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 26px clamp(20px, 4vw, 30px);
  border: 1px solid rgba(245, 245, 245, 0.14);
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
  color: var(--gda-paper);
}
.gda-archive-link:hover { border-color: var(--gda-accent); background: rgba(253, 193, 1, 0.05); color: var(--gda-paper); }
.gda-archive-link__count { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.01em; color: var(--gda-paper); }
.gda-archive-link__cta { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gda-accent); }
.gda-archive-link__cta svg { display: block; flex: 0 0 auto; }

/* ── grids / cards ────────────────────────────────────────────────────── */

.gda-grid { display: grid; gap: 20px; }
.gda-grid--cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gda-grid--founders { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; perspective: 1000px; }
.gda-grid--logos { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; perspective: 1000px; }
.gda-grid--sponsors { max-width: 700px; }
.gda-grid--events { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; perspective: 1000px; }
.gda-grid--contacts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.gda-tilt { transform-style: preserve-3d; will-change: transform; }

.gda-card { border: 1px solid rgba(245, 245, 245, 0.14); border-radius: 2px; padding: 26px 24px; background: var(--gda-ink-2); }
.gda-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.gda-card p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(245, 245, 245, 0.66); }
.gda-card__icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  background: var(--gda-accent);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}

.gda-founder {
  position: relative;
  border: 1px solid rgba(245, 245, 245, 0.14);
  border-radius: 6px;
  background: var(--gda-ink-2);
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}
.gda-founder:hover { border-color: var(--gda-accent); box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5); }
.gda-founder__head { display: flex; align-items: center; gap: 18px; }
.gda-founder__head img { width: 76px; height: 76px; border-radius: 999px; object-fit: cover; border: 2px solid var(--gda-accent); display: block; }
.gda-founder__head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.gda-founder__role { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gda-accent); }
.gda-founder__bio { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.65; color: rgba(245, 245, 245, 0.72); }
.gda-founder__bio p { margin: 0; }
.gda-highlight { color: var(--gda-ink); background: var(--gda-accent); padding: 2px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.gda-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--gda-paper);
  border-radius: 3px;
  min-height: 104px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.gda-logo:hover { box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5); }
.gda-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; display: block; }
.gda-logo--sm img { max-height: 56px; }

.gda-years { display: flex; flex-direction: column; gap: 72px; }
.gda-year__head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(245, 245, 245, 0.14); margin-bottom: 28px; }
.gda-year__head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; color: var(--gda-accent); }
.gda-year__head span { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 245, 245, 0.5); }

.gda-event {
  border: 1px solid rgba(245, 245, 245, 0.14);
  border-radius: 6px;
  background: var(--gda-ink-2);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}
.gda-event:hover { border-color: var(--gda-accent); box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5); }
.gda-event img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--gda-ink); }
.gda-event__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.gda-event__date { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gda-accent); }
.gda-event__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }

.gda-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(245, 245, 245, 0.14);
  border-radius: 3px;
  background: var(--gda-ink-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gda-contact:hover { border-color: var(--gda-accent); transform: translateY(-3px); }
.gda-contact__label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gda-accent); }
.gda-contact__label .gda-card__icon { width: 18px; height: 18px; margin-bottom: 0; flex: 0 0 auto; }
.gda-contact__value { display: flex; align-items: baseline; gap: 10px; }
.gda-contact__value a { font-size: 16px; font-weight: 500; color: var(--gda-paper); word-break: break-word; }
.gda-contact__value a:hover { color: var(--gda-accent); }
.gda-copy {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(245, 245, 245, 0.45);
  cursor: pointer;
  transition: color 0.15s ease;
}
.gda-copy:hover, .gda-copy.is-copied { color: var(--gda-accent); }

/* ── contact panels ───────────────────────────────────────────────────── */

.gda-panels { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.gda-panel { display: flex; flex-direction: column; border: 1px solid rgba(245, 245, 245, 0.14); border-radius: 3px; padding: 34px; }
.gda-panel--accent { border: 2px solid var(--gda-accent); background: var(--gda-ink-2); box-shadow: 10px 10px 0 rgba(253, 193, 1, 0.14); }
.gda-panel h2 { margin: 0 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.gda-panel p { margin: 0 0 26px; font-size: 15px; line-height: 1.6; color: rgba(245, 245, 245, 0.7); }
.gda-panel .gda-cta { margin-top: auto; align-self: flex-start; }

.gda-form { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gda-form label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 245, 245, 0.55); }
.gda-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--gda-ink);
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: 2px;
  color: var(--gda-paper);
  font-family: Poppins, sans-serif;
  font-size: 15px;
}
.gda-form input:focus { outline: none; border-color: var(--gda-accent); }
.gda-form .gda-cta { margin-top: auto; }

/* ── footer ───────────────────────────────────────────────────────────── */

.gda-footer { border-top: 1px solid rgba(245, 245, 245, 0.12); background: #1B2023; }
.gda-footer__inner { max-width: 1180px; margin: 0 auto; padding: 44px clamp(20px, 5vw, 24px) 32px; }

.gda-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.gda-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--gda-paper); }
.gda-footer__brand:hover { color: var(--gda-paper); }
.gda-footer__logo { height: 34px; width: auto; display: block; }

.gda-footer__socials { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.gda-footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.08);
}
.gda-footer__socials a:hover { background: var(--gda-accent); }
.gda-footer__socials a:hover .gda-card__icon { background: var(--gda-ink); }
.gda-footer__socials .gda-card__icon { width: 18px; height: 18px; margin: 0; }

.gda-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}
.gda-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.gda-footer__nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 245, 245, 0.6); }
.gda-footer__nav a:hover { color: var(--gda-accent); }
.gda-footer__copy { margin: 0; font-size: 12px; color: rgba(245, 245, 245, 0.45); }
