/* ══════════════════════════════════════════════════════════════════════════
   HBC — Highway to Beer Club · Foglio di stile condiviso
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Variabili brand ── */
:root {
  --blu:        #0e2129;
  --oro:        #c9833d;
  --oro-mid:    #ebb26d;
  --panna:      #f7f2e8;
  --bianco:     #ffffff;
  /* funzionali */
  --ink2:       #3d2b15;
  --ink3:       #6b4c28;
  --rule:       rgba(202,132,61,.35);
  --rule-solid: #d4b896;
  --rule-light: #e8d8c0;
  --touch-min:  52px;
}

/* ── Reset ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  touch-action: manipulation;
}

img { max-width:100%; height:auto; display:block; }
a { transition: color .2s, border-color .2s; }

/* ── Temi ── */
.theme-dark {
  background: var(--blu);
  color: var(--panna);
  --rule: rgba(202,132,61,.35);
}
.theme-light {
  background: var(--panna);
  color: var(--blu);
  --rule: var(--rule-solid);
}

/* ── Tipografia condivisa ── */
.kicker,
.header-kicker,
.section-kicker,
.page-kicker {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--oro);
}

.section-title,
.page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.1;
}
.section-title em,
.page-title em {
  font-style: italic;
  color: var(--oro);
}

/* ── Linea decorativa top ── */
.gradient-top {
  position: relative;
}
.gradient-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--rule);
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.theme-dark footer {
  color: rgba(250,245,236,.6);
}
.theme-dark footer a {
  color: rgba(250,245,236,.6);
  text-decoration: none;
}
.theme-dark footer a:hover { color: var(--oro); }

.theme-light footer {
  color: var(--ink3);
}
.theme-light footer a {
  color: var(--ink3);
  text-decoration: none;
  letter-spacing: .3em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.theme-light footer a:hover { color: var(--oro); }

/* ── Bottone primario (shared) ── */
.btn-oro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blu);
  background: var(--oro);
  text-decoration: none;
  border: none;
  border-radius: 1px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .25s, transform .15s;
}
.btn-oro:hover {
  background: var(--oro-mid);
  transform: translateY(-1px);
}
.btn-oro svg { width: 14px; height: 14px; }

/* ── Accessibilità: focus visibile ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.event-link:focus-visible,
.btn-invia:focus-visible,
.btn-oro:focus-visible,
.btn-download:focus-visible {
  outline: 2px solid var(--oro-mid);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ── Rispetto delle preferenze di movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
