/* =========================================================
   PADERNO CUP — landing one-page
   CSS class-based, custom properties, mobile-first
   Sorgente: design handoff (docs/index.html), portato in Django.
   ========================================================= */

:root {
  /* Brand */
  --brand-primary: #0B7A3B;   /* verde campo */
  --brand-accent:  #F2C94C;   /* giallo CTA / highlight */
  --brand-dark:    #0d1b12;   /* fondo scuro */

  /* Derivati */
  --primary-700: #095f2e;
  --primary-300: #4fae74;
  --dark-800:    #0a160e;
  --dark-700:    #11241a;
  --dark-line:   rgba(255, 255, 255, 0.10);

  /* Content (light) */
  --bg:        #f4f6f3;
  --surface:   #ffffff;
  --ink:       #0d1b12;
  --ink-soft:  #46544b;
  --ink-faint: #7a877f;
  --hairline:  #e2e7e1;

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-cond:    "Oswald", sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 0.98; }

/* ---------- Reusable bits ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--brand-primary);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand-accent);
  display: inline-block;
}
.eyebrow--light { color: var(--brand-accent); }
.eyebrow--light::before { background: var(--brand-accent); }

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-weight: 400;
}

/* Buttons */
.btn {
  --btn-bg: var(--brand-accent);
  --btn-ink: var(--brand-dark);
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  box-shadow: 0 10px 30px -8px rgba(242, 201, 76, 0.55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(242, 201, 76, 0.7); }
.btn:active { transform: translateY(0); }
.btn .btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: #fff;
  border: 1.5px solid var(--dark-line);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); box-shadow: none; }

.btn--block { width: 100%; justify-content: center; }

:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Reveal on scroll (con varianti direzionali) */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal { transform: translateY(26px); }
.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal.is-in, .reveal-left.is-in, .reveal-right.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s, padding 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(13, 27, 18, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--dark-line);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name .accent { color: var(--brand-accent); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  padding: 0.6em 1em;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--brand-accent); }
.nav .btn { padding: 0.7em 1.3em; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--dark-line);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav.menu-open .nav-toggle span { background: transparent; }
.nav.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--brand-dark);
  color: #fff;
  padding-top: 120px;
  padding-bottom: clamp(40px, 7vh, 90px);
  isolation: isolate;
}

/* fade solido sul fondo: garantisce un bordo inferiore = --brand-dark pieno,
   così combacia col divisore della sezione successiva (niente "stacco") */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 27, 18, 0) 0%, var(--brand-dark) 72%);
}

/* image placeholder layer */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    repeating-linear-gradient(
      -45deg,
      #0f2418 0 22px,
      #0c1c13 22px 44px
    );
}
/* cinematic gradient + glow */
.hero-grad {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(11,122,59,0.42) 0%, transparent 55%),
    radial-gradient(90% 80% at 12% 100%, rgba(242,201,76,0.16) 0%, transparent 50%),
    linear-gradient(180deg, rgba(13,27,18,0.55) 0%, rgba(13,27,18,0.75) 45%, var(--brand-dark) 100%);
}

/* pitch lines / center circle motif */
.hero-pitch {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(58vw, 620px);
  aspect-ratio: 1;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.hero-pitch svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-kit {
  position: absolute;
  right: var(--gutter);
  top: -8vh;
  font-family: var(--font-display);
  font-size: clamp(8rem, 26vw, 22rem);
  line-height: 0.8;
  color: rgba(255,255,255,0.04);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.84;
  letter-spacing: 0.01em;
  margin-top: 24px;
  text-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero h1 .ln { display: block; }
.hero h1 .cup {
  color: var(--brand-accent);
  -webkit-text-stroke: 0;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.65);
}

.hero-sub {
  max-width: 46ch;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
.hero-sub strong { color: #fff; font-weight: 700; }

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.hero-note {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}
.hero-price strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--brand-accent);
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 22px;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 0.3; transform: scale(0.8);} 50% { opacity: 1; transform: scale(1.3);} }

/* grain overlay (shared) */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* --- Pallone + macchina fotografica decorativi --- */
.hero-cam, .hero-ball { position: absolute; z-index: 0; pointer-events: none; }

.hero-cam {
  top: clamp(15%, 19vh, 23%);
  right: clamp(8%, 13vw, 16%);
  width: clamp(108px, 15vw, 168px);
}
.cam-svg { width: 100%; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 16px 30px rgba(0,0,0,0.45)); }
.cam-flash {
  position: absolute;
  top: 18%; right: 4%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(242,201,76,0.5) 34%, transparent 64%);
  opacity: 0;
}

.hero-ball {
  bottom: clamp(13%, 17vh, 21%);
  right: clamp(16%, 24vw, 28%);
  width: clamp(58px, 8vw, 94px);
}
.ball-svg { width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.4)); }

/* =========================================================
   COME FUNZIONA
   ========================================================= */
.how {
  position: relative;
  padding: clamp(72px, 12vh, 140px) 0;
  background: var(--bg);
  overflow: hidden;
}
/* angular divider on top */
.how::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 64px;
  background: var(--brand-dark);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}

.how-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.how-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: 0.01em;
}
.how-head h2 .hl { color: var(--brand-primary); }

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -28px rgba(13,27,18,0.4);
  border-color: var(--brand-primary);
}
.card-num {
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.8;
  color: var(--bg);
  -webkit-text-stroke: 1.5px var(--hairline);
  position: absolute;
  top: 18px; right: 22px;
  z-index: 0;
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.card:hover .card-num { -webkit-text-stroke-color: var(--brand-accent); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(11,122,59,0.10);
  color: var(--brand-primary);
  display: grid; place-items: center;
  margin-bottom: 22px;
  position: relative; z-index: 1;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.card p { margin: 0; color: var(--ink-soft); position: relative; z-index: 1; }
.card-rule {
  width: 40px; height: 4px;
  background: var(--brand-accent);
  margin-top: 22px;
  border-radius: 4px;
  position: relative; z-index: 1;
}

/* =========================================================
   PRENOTA (form)
   ========================================================= */
.book {
  position: relative;
  background: var(--brand-dark);
  color: #fff;
  padding: clamp(72px, 12vh, 140px) 0;
  overflow: hidden;
  isolation: isolate;
}
.book-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(11,122,59,0.35) 0%, transparent 55%),
    radial-gradient(60% 60% at 5% 95%, rgba(242,201,76,0.12) 0%, transparent 55%);
}
.book-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
.book-aside h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  margin-top: 16px;
  letter-spacing: 0.01em;
}
.book-aside h2 .hl { color: var(--brand-accent); }
.book-aside p { color: rgba(255,255,255,0.74); max-width: 42ch; margin: 20px 0 0; }

.pay-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 30px;
  padding: 18px 20px;
  background: rgba(242,201,76,0.12);
  border: 1px solid rgba(242,201,76,0.4);
  border-left: 4px solid var(--brand-accent);
  border-radius: 12px;
}
.pay-notice svg { flex: none; width: 26px; height: 26px; color: var(--brand-accent); margin-top: 2px; }
.pay-notice strong { color: var(--brand-accent); display: block; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }
.pay-notice span { color: rgba(255,255,255,0.8); font-size: 0.96rem; }

/* sedi disponibili */
.venues { margin-top: 26px; }
.venues__label {
  display: block;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.venues__list { display: flex; flex-wrap: wrap; gap: 12px; }
.venue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  background: rgba(11,122,59,0.18);
  border: 1px solid rgba(79,174,116,0.45);
  border-radius: 999px;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.venue svg { width: 18px; height: 18px; color: var(--brand-accent); flex: none; }

/* form card */
.form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(6px);
}
.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.col-2 { grid-column: span 1; }
.field label {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.field label .req { color: var(--brand-accent); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(13,27,18,0.6);
  border: 1.5px solid var(--dark-line);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  background: rgba(13,27,18,0.85);
  box-shadow: 0 0 0 3px rgba(242,201,76,0.18);
}
/* feedback inline mentre l'utente compila (solo dopo interazione) */
.field input:user-valid,
.field textarea:user-valid {
  border-color: rgba(79, 174, 116, 0.7);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: rgba(255, 92, 70, 0.6);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F2C94C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }

/* honeypot (nascosto) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* errori di validazione del form */
.field-errors { margin: 0; padding: 0; list-style: none; }
.field-errors li { color: #ffb4a8; font-size: 0.85rem; }
.form-errors {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: rgba(255, 92, 70, 0.12);
  border: 1px solid rgba(255, 92, 70, 0.4);
  border-radius: 10px;
  color: #ffb4a8;
  font-size: 0.92rem;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
}
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--brand-accent); }
.consent label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.consent a { color: var(--brand-accent); text-decoration: underline; text-underline-offset: 2px; }

.form-actions { margin-top: 8px; }

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(11,122,59,0.18);
  border: 1px solid rgba(79,174,116,0.5);
  border-radius: 12px;
  color: #cdeedb;
  font-size: 0.98rem;
  animation: popIn 0.5s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.form-success svg { flex: none; width: 26px; height: 26px; color: var(--primary-300); }
.form-success strong { color: #fff; display: block; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.04em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--dark-800);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 40px;
  border-top: 1px solid var(--dark-line);
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer .brand-name { font-size: 1.5rem; }
.footer-tag { font-size: 0.92rem; color: rgba(255,255,255,0.5); margin-top: 10px; max-width: 40ch; }
.footer-credit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.footer-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  flex: none;
  border: 1px solid var(--dark-line);
}
.footer-credit span { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-credit strong { color: rgba(255,255,255,0.85); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-accent); }
.footer-bottom {
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom .sep { color: var(--brand-primary); }
.footer-emporia {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-emporia:hover { opacity: 1; }
.emporia-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);   /* logo nero → bianco sul footer scuro */
}

/* =========================================================
   PAGINE LEGALI (privacy)
   ========================================================= */
.legal-hero {
  background: var(--brand-dark);
  color: #fff;
  padding: clamp(96px, 16vh, 150px) 0 clamp(36px, 6vh, 60px);
}
.legal-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-top: 14px;
}
.legal-hero p { color: rgba(255,255,255,0.6); margin-top: 12px; font-size: 0.9rem; }

.legal { background: var(--bg); padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 10vh, 110px); }
.legal .wrap { max-width: 820px; }
.legal h2 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin: 2.2rem 0 0.6rem;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal .btn { margin-top: 2rem; color: var(--brand-dark); text-decoration: none; }
.legal-note {
  margin-top: 2rem;
  padding: 14px 18px;
  background: rgba(242, 201, 76, 0.16);
  border-left: 4px solid var(--brand-accent);
  border-radius: 10px;
  color: var(--ink);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
  .book-grid { grid-template-columns: 0.85fr 1.15fr; }
  .footer-grid { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ----- Hero & mobile tuning ----- */
@media (max-width: 640px) {
  .hero {
    align-items: center;          /* niente contenuto schiacciato sul fondo */
    min-height: 100svh;
    padding-top: 104px;           /* spazio sotto la navbar */
    padding-bottom: 56px;
  }
  .hero h1 {
    font-size: clamp(3.4rem, 19vw, 6rem);
    margin-top: 16px;
  }
  .hero-sub { margin-top: 22px; font-size: 1.06rem; }
  .hero-cta { margin-top: 28px; gap: 14px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-note { width: 100%; text-align: center; }
  .hero-scroll { display: none; }
  .hero .eyebrow::before { display: none; } /* niente trattino: l'eyebrow si allinea al titolo */
  .hero-kit { display: none; }              /* libera spazio per pallone + camera */
  .hero-pitch { right: -28%; top: auto; bottom: 2%; width: 96vw; opacity: 0.28; }
  .hero-cam { top: auto; bottom: 6%; right: 6%; width: 80px; }
  .cam-svg { transform: rotate(-6deg); }
  .hero-ball { bottom: 8%; right: 38%; width: 46px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(13,27,18,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dark-line);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s;
  }
  .nav.menu-open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu .nav-link { padding: 0.9em 0.4em; border-bottom: 1px solid var(--dark-line); border-radius: 0; }
  .nav-menu .btn { margin-top: 10px; justify-content: center; }
}

/* =========================================================
   MOTION & MICRO-INTERAZIONI
   ========================================================= */

@keyframes spin { to { transform: rotate(360deg); } }

/* --- CTA: sweep luminoso + freccia (micro-interazione) --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* --- CTA: stato di caricamento (HTMX aggiunge .htmx-request al form) --- */
.btn-spinner {
  display: none;
  width: 1.05em; height: 1.05em;
  border: 2px solid rgba(13,27,18,0.3);
  border-top-color: var(--brand-dark);
  border-radius: 50%;
}
form.htmx-request .btn { pointer-events: none; }
form.htmx-request .btn::after { display: none; }
form.htmx-request .btn .btn-label { opacity: 0.7; }
form.htmx-request .btn .btn-arrow { display: none; }
form.htmx-request .btn .btn-spinner { display: inline-block; animation: spin 0.7s linear infinite; }

/* --- Card: icona reattiva all'hover --- */
.card-icon { transition: transform 0.35s var(--ease), background 0.35s; }
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); background: rgba(11,122,59,0.18); }

/* --- Venue pill: lift + pin --- */
.venue { transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s; }
.venue:hover { transform: translateY(-2px); background: rgba(11,122,59,0.3); border-color: var(--brand-accent); }
.venue svg { transition: transform 0.25s var(--ease); }
.venue:hover svg { transform: translateY(-2px) scale(1.1); }

/* --- Nav link: underline animato --- */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 1em; right: 1em; bottom: 0.35em;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

/* --- Tutto ciò che è puro movimento decorativo: solo se l'utente non ha ridotto le animazioni --- */
@media (prefers-reduced-motion: no-preference) {

  /* Entrata hero in cascata */
  .hero .eyebrow,
  .hero h1 .ln,
  .hero-sub,
  .hero-cta { animation: heroIn 0.9s var(--ease) backwards; }
  .hero .eyebrow { animation-delay: 0.05s; }
  .hero h1 .ln:nth-child(1) { animation-delay: 0.16s; }
  .hero h1 .ln:nth-child(2) { animation-delay: 0.30s; }
  .hero-sub { animation-delay: 0.46s; }
  .hero-cta { animation-delay: 0.60s; }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
  }

  /* Glow cinematografico in lento movimento */
  .hero-grad { animation: glowDrift 16s ease-in-out infinite alternate; }
  @keyframes glowDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(0, -2.5%, 0) scale(1.07); }
  }

  /* Cerchio di centrocampo in lenta rotazione */
  .hero-pitch svg { transform-origin: 50% 50%; animation: spin 70s linear infinite; }

  /* Pallone: rimbalzo (gravità) + rotolamento */
  .hero-ball { animation: ballBounce 2.4s infinite; }
  .hero-ball .ball-svg { animation: ballRoll 2.4s linear infinite; transform-origin: 50% 50%; }
  @keyframes ballBounce {
    0%   { transform: translateY(-48px); animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53); }
    50%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    100% { transform: translateY(-48px); }
  }
  @keyframes ballRoll { to { transform: rotate(360deg); } }

  /* Macchina fotografica: lieve fluttuazione + scatto (flash periodico) */
  .hero-cam { animation: camFloat 5.5s ease-in-out infinite; }
  @keyframes camFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
  }
  .cam-flash { animation: camFlash 4s ease-out infinite; }
  @keyframes camFlash {
    0%, 80%, 100% { opacity: 0; }
    84%           { opacity: 0.9; }
    93%           { opacity: 0; }
  }
  .cam-flashwin { animation: camFlashWin 4s ease-out infinite; }
  @keyframes camFlashWin {
    0%, 80%, 100% { fill: #F2C94C; }
    84%           { fill: #ffffff; }
  }
}
