/*
Theme Name: Hand Livigno Landing
Theme URI: https://handlivigno27.com
Author: Codex
Description: One-page landing theme for Hand Livigno 2027 Winter Alpine Meeting.
Version: 1.0.0
Text Domain: handlivigno
*/

:root {
  --ink: #11182a;
  --muted: #5e6676;
  --line: rgba(17, 24, 42, 0.12);
  --snow: #f7f9fc;
  --ice: #e9f4fb;
  --green: #16813a;
  --red: #c9131e;
  --blue: #243866;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 24, 42, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--snow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav__brand img {
  width: 118px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(17, 24, 42, 0.76);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav__cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(17, 24, 42, 0.18);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(233, 244, 251, 0.96), rgba(255, 255, 255, 0.98) 46%, rgba(236, 242, 247, 0.92)),
    #f4f8fb;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 129, 58, 0.12), rgba(201, 19, 30, 0.08)),
    url("assets/topics-poster.jpeg") center / cover no-repeat;
  opacity: 0.12;
  filter: blur(2px);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(0deg, var(--snow) 0%, rgba(247, 249, 252, 0) 100%);
}

.hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.hero__logo {
  width: min(340px, 72vw);
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 14px 22px rgba(17, 24, 42, 0.12));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 650px;
  color: rgba(17, 24, 42, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 24, 42, 0.12);
  box-shadow: var(--shadow);
}

.hero__visual img {
  width: 100%;
  border-radius: 6px;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: 8px;
  border: 1px solid rgba(36, 56, 102, 0.18);
}

.button--light {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border: 1px solid rgba(17, 24, 42, 0.12);
}

.date-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 42, 0.12);
  font-weight: 900;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.section h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.16rem;
}

.copy-stack p {
  max-width: 760px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat {
  min-height: 118px;
  padding: 22px;
  background: var(--white);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.poster {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.poster img {
  width: 100%;
}

.topics-band {
  background: var(--ink);
  color: var(--white);
}

.topics-band .section {
  padding: 78px 0;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.topic {
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 850;
  line-height: 1.25;
}

.committee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.member {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(17, 24, 42, 0.06);
}

.member img {
  width: 172px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.member h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  line-height: 1.05;
}

.member p {
  margin-bottom: 0;
  color: var(--muted);
}

.venue {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 46px;
  align-items: center;
  padding: 54px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(233, 244, 251, 0.95), rgba(255, 255, 255, 0.92)),
    url("assets/topics-poster.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.venue__panel {
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 24, 42, 0.12);
}

.footer {
  padding: 36px 20px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer__legal {
  max-width: 780px;
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer strong {
  color: var(--white);
}

.footer__credit {
  display: inline-grid;
  justify-items: end;
  gap: 7px;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: right;
}

.footer__credit span span {
  color: #e84855;
}

.footer__credit img {
  width: 128px;
  height: auto;
  border-radius: 4px;
}

.footer__credit strong {
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .nav {
    min-height: 64px;
  }

  .nav__links {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero::before {
    opacity: 0.1;
  }

  .hero__inner {
    padding: 104px 0 72px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero__visual {
    justify-self: start;
    width: min(360px, 100%);
  }

  .section,
  .topics-band .section {
    padding: 64px 0;
  }

  .section--split,
  .venue {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .committee {
    grid-template-columns: 1fr;
  }

  .venue {
    padding: 28px;
  }

  .footer__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__credit {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav,
  .section,
  .hero__inner,
  .topics-band .section {
    width: min(100% - 28px, 1180px);
  }

  .nav__brand img {
    width: 96px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .date-pill {
    width: 100%;
  }

  .stats,
  .topics-grid,
  .committee {
    grid-template-columns: 1fr;
  }

  .member {
    grid-template-columns: 1fr;
  }

  .member img {
    width: 100%;
    max-height: 360px;
  }
}
