/* =============================================================
   UNLOCK · Landing evento — 26.11.2026 · Kilometro Rosso, Bergamo
   Foglio di stile principale
   Indice:
     1.  Font
     2.  Variabili (:root)
     3.  Reset & base
     4.  Utility (container, eyebrow, btn, reveal, animazioni)
     5.  Topbar
     6.  Hero
     7.  Intro
     8.  Countdown
     9.  Programma
     10. Location
     11. Prenota + footer
     12. Responsive
   ============================================================= */

/* -------------------------------------------------------------
   1. FONT  (solo subset latin + latin-ext; Quicksand è variabile)
   ------------------------------------------------------------- */
@font-face {
  font-family: 'Kdam Thmor Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/eventi/unlock_2026/assets/fonts/kdam-thmor-pro-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kdam Thmor Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/eventi/unlock_2026/assets/fonts/kdam-thmor-pro-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/eventi/unlock_2026/assets/fonts/quicksand-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/eventi/unlock_2026/assets/fonts/quicksand-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------
   2. VARIABILI
   ------------------------------------------------------------- */
:root {
  /* Palette */
  --orange:        #F5A302;
  --ink:           #2E1A05;
  --cream:         #FFF3DE;
  --yellow:        #FFD166;
  --pink:          #EE3F68;
  --red:           #C22A52;
  --brown-soft:    #6B3D06;
  --brown-mute:    #7A4405;
  --brown-label:   #8A5510;
  --brown-deep:    #5A3204;

  /* Tipografia */
  --font-display: 'Kdam Thmor Pro', system-ui, sans-serif;
  --font-body:    'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Forme */
  --radius-pill: 999px;
  --radius-card: 16px;

  /* Gutter orizzontale delle sezioni */
  --gutter: clamp(20px, 4vw, 56px);

  /* Easing condiviso */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* -------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  position: relative;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 100% at 82% 6%, #FFDE8C 0%, #F9AE10 42%, #DE8400 100%);
}

.floating-badge {
  position: fixed;
  top: 12vh;
  right: -6vw;
  width: clamp(220px, 34vw, 520px);
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.floating-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(120, 40, 0, .3));
  animation: badgeFloat 8s ease-in-out infinite;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

::selection { background: var(--pink); color: var(--cream); }

/* -------------------------------------------------------------
   4. UTILITY
   ------------------------------------------------------------- */
.container { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; }

/* Etichetta display (Kdam, spaziata) */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* Bottone pillola */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: background .25s var(--ease), color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn--dark   { background: var(--ink);    color: var(--yellow); }
.btn--yellow { background: var(--yellow);  color: var(--ink); }
.btn--dark:hover,
.btn--yellow:hover { background: var(--pink); color: var(--cream); }

.btn--sm { font-size: 15px; padding: 11px 20px; }
.btn--md { font-size: 15px; padding: 14px 22px; }
.btn--lg { font-size: 17px; padding: 19px 32px; box-shadow: 0 16px 34px rgba(90,45,0,.28); }
.btn--xl {
  font-size: clamp(17px, 2vw, 23px);
  padding: 23px 42px;
  box-shadow: 0 20px 42px rgba(90,45,0,.3);
}

/* Pallino pulsante */
.pulse-dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: var(--radius-pill);
  background: var(--red);
}
.pulse-dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-pill);
  background: var(--red);
  animation: pulseRing 2s ease-out infinite;
}

/* Reveal on scroll (attivo solo con JS) */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-3deg); }
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* -------------------------------------------------------------
   5. TOPBAR
   ------------------------------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gutter);
  background: rgba(255, 214, 120, 0);
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.topbar.is-solid {
  background: rgba(255, 214, 120, .95);
  box-shadow: 0 8px 24px rgba(120, 60, 0, .14);
  padding: 12px var(--gutter);
}
.topbar__logo img { height: 46px; width: auto; }
.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-weight: 500;
  font-size: 15px;
}

/* -------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 14vh, 170px) var(--gutter) clamp(56px, 8vh, 90px);
  overflow: hidden;
}
.hero__title { display: flex; align-items: flex-start; }
.hero__word {
  font-family: var(--font-display);
  font-size: clamp(76px, 17vw, 268px);
  line-height: .78;
  letter-spacing: -.01em;
}
.hero__gap {
  display: inline-block;
  width: .04em;
  font-size: clamp(76px, 17vw, 268px);
}
.hero__subtitle {
  font-weight: 500;
  font-size: clamp(16px, 1.7vw, 25px);
  line-height: 1.4;
  max-width: 30ch;
  margin-top: clamp(14px, 2vw, 26px);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 56px);
}
.hero__date {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .18em;
}
.hero__org {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(46px, 8vh, 90px);
}
.hero__org img { height: clamp(30px, 3.4vw, 46px); width: auto; }
.hero__org-sep { width: 1px; height: 30px; background: rgba(46, 26, 5, .28); }
.hero__org-txt {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--brown-mute);
}

/* Indicatore di scroll con lucchetto animato */
.scrollhint {
  position: absolute;
  bottom: 24px; right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brown-mute);
}
.padlock { position: relative; width: 26px; height: 34px; }
.padlock__shackle {
  position: absolute;
  top: 0; left: 50%;
  width: 60%; height: 44%;
  border: 3px solid var(--ink);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  transform-origin: 0% 100%;
}
.padlock__body {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: var(--ink);
  border-radius: 5px;
}

/* -------------------------------------------------------------
   7. INTRO
   ------------------------------------------------------------- */
.intro {
  position: relative;
  padding: clamp(80px, 12vh, 150px) var(--gutter);
  overflow: hidden;
  text-align: center;
}
.intro__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 5vh, 52px);
}
.intro__title {
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.intro__date {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 58px);
  letter-spacing: .01em;
  line-height: 1;
}
.intro__place {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.5vw, 19px);
  letter-spacing: .06em;
  margin-top: 10px;
  color: var(--brown-soft);
}
.intro__lead {
  font-weight: 600;
  font-size: clamp(18px, 2.1vw, 27px);
  line-height: 1.4;
  text-wrap: pretty;
}

/* -------------------------------------------------------------
   8. COUNTDOWN
   ------------------------------------------------------------- */
.countdown {
  padding: clamp(60px, 9vh, 110px) var(--gutter);
  background: var(--ink);
  color: var(--cream);
}
.countdown__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.countdown__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--yellow);
}
.countdown__when {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255, 243, 222, .6);
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.cd-cell {
  border: 1px solid rgba(255, 209, 102, .3);
  border-radius: var(--radius-card);
  padding: 24px 20px;
}
.cd-cell__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 84px);
  line-height: .95;
}
.cd-cell__num--yellow { color: var(--yellow); }
.cd-cell__num--pink   { color: var(--pink); }
.cd-cell__unit {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255, 243, 222, .68);
  margin-top: 10px;
}
.countdown__bar {
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 243, 222, .14);
  overflow: hidden;
  margin-top: 30px;
}
.countdown__fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  transition: width 1.4s var(--ease);
}
/* Ingresso a scalare delle celle */
.js .cd-cell { opacity: 0; transform: translateY(24px) scale(.97); }
.js .cd-cell.is-visible { opacity: 1; transform: none; }
.js .cd-cell:nth-child(1).is-visible { transition: opacity .6s ease,        transform .7s var(--ease); }
.js .cd-cell:nth-child(2).is-visible { transition: opacity .6s ease 110ms,  transform .7s var(--ease) 110ms; }
.js .cd-cell:nth-child(3).is-visible { transition: opacity .6s ease 220ms,  transform .7s var(--ease) 220ms; }
.js .cd-cell:nth-child(4).is-visible { transition: opacity .6s ease 330ms,  transform .7s var(--ease) 330ms; }

/* -------------------------------------------------------------
   9. PROGRAMMA
   ------------------------------------------------------------- */
.programma {
  position: relative;
  padding: clamp(80px, 12vh, 150px) var(--gutter);
  overflow: hidden;
}
.programma__grid {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 90px);
}
.programma__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: .32em;
  margin-bottom: 6px;
}
.programma__brand { display: flex; align-items: flex-end; gap: 14px; }
.programma__brand-name {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: .84;
}
.programma__brand-mark { width: clamp(44px, 6vw, 78px); height: auto; margin-bottom: 4px; }
.programma__place {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vw, 16px);
  letter-spacing: .12em;
  margin-top: 10px;
  color: var(--brown-soft);
}
.programma__text {
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.45;
  max-width: 26ch;
  text-wrap: pretty;
}
.programma__text:first-of-type { margin-top: clamp(28px, 4vh, 44px); }
.programma__text + .programma__text { margin-top: 22px; }
.programma__heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: -.005em;
  margin-bottom: 26px;
}

/* Agenda */
.agenda { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.agenda__item {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 20px 24px;
  background: rgba(255, 243, 222, .5);
  border-radius: 14px;
  backdrop-filter: blur(3px);
  transition: background .25s var(--ease);
}
.agenda__item:hover { background: rgba(255, 243, 222, .78); }
.agenda__time {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 23px);
  min-width: 74px;
  color: var(--red);
}
.agenda__title { font-weight: 600; font-size: clamp(16px, 1.7vw, 21px); }
.agenda__note  { font-weight: 500; font-size: 15px; color: var(--brown-soft); margin-top: 4px; }

/* -------------------------------------------------------------
   10. LOCATION
   ------------------------------------------------------------- */
.location {
  padding: clamp(80px, 12vh, 150px) var(--gutter);
}
.location__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 52px);
}
.location__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--brown-soft);
  margin-bottom: 18px;
}
.location__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: .96;
  margin-bottom: 20px;
}
.location__desc {
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  margin-bottom: 26px;
  max-width: 44ch;
  text-wrap: pretty;
}
.location__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  color: var(--brown-deep);
}
.fact { display: flex; gap: 16px; }
.fact dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .14em;
  min-width: 100px;
  color: var(--brown-label);
  padding-top: 3px;
}
.location__map {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--cream);
  border-radius: 20px;
  border: 1px solid rgba(46, 26, 5, .1);
}
.location__map img { width: 100%; height: auto; border-radius: 10px; }
.location__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brown-deep);
}
.tag {
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .12em;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------
   11. PRENOTA + FOOTER
   ------------------------------------------------------------- */
.prenota {
  position: relative;
  padding: clamp(90px, 14vh, 170px) var(--gutter);
  overflow: hidden;
}
.prenota__title {
  font-weight: 500;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-bottom: clamp(30px, 5vh, 54px);
}
.prenota__note { font-weight: 500; font-size: 15px; color: var(--brown-soft); margin-top: 18px; }

.sitefoot {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(70px, 12vh, 130px);
}
.sitefoot__brand {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: .86;
}
.sitefoot__date {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: .3em;
  margin-top: 8px;
}
.sitefoot__place {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: .04em;
  margin-top: 6px;
  color: var(--brown-soft);
}
.sitefoot__logo { display: flex; align-items: center; gap: 16px; padding-bottom: 6px; }
.sitefoot__sep  { width: 1px; height: 34px; background: rgba(46, 26, 5, .28); }
.sitefoot__logo img { height: 32px; width: auto; }

/* -------------------------------------------------------------
   11b. FOOTER PAGINA (Libemax)
   ------------------------------------------------------------- */
.pagefoot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 7vh, 80px) var(--gutter) 26px;
}
.pagefoot__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
.pagefoot__brand img {
  height: 34px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.pagefoot__tag {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 243, 222, .7);
  max-width: 34ch;
}
.pagefoot__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--yellow);
  margin-bottom: 14px;
}
.pagefoot__col { display: flex; flex-direction: column; gap: 8px; }
.pagefoot__col a { color: var(--cream); font-weight: 500; font-size: 15px; }
.pagefoot__col a:hover { color: var(--yellow); }
.pagefoot address {
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
}
.pagefoot__bottom {
  max-width: 1280px;
  margin: clamp(34px, 5vh, 54px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 243, 222, .14);
  font-size: 13px;
  color: rgba(255, 243, 222, .55);
}
@media (max-width: 680px) {
  .pagefoot__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* -------------------------------------------------------------
   12. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero {
    align-items: flex-start;
    min-height: 90vh;
    padding-top: clamp(120px, 19vh, 160px);
  }

  .hero__org { margin-top: clamp(70px, 12vh, 110px); }

  .floating-badge {
    position: absolute;
    width: clamp(120px, 42vw, 200px);
    top: 24vh;
    right: -8vw;
  }

  .scrollhint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    width: 100%;
    justify-content: center;
    color: var(--ink);
  }
  .padlock { width: 34px; height: 46px; }
}

@media (max-width: 560px) {
  .topbar__nav a[href="#programma"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .cd-cell { opacity: 1; transform: none; }
}
