/* ==========================================================================
   THE JAB — placeholder landing
   Brand system: Dude Design x The Jackal (visual identity 06/07/2026)
   Palette: crema #F2F6E8, arancio #C5541E, verde #599D65, rosa #F4ACC8, nero
   Raggi: bottoni squadrati (come il pulsante INVIA del brand book), chip ellittici
   Tema: bloccato chiaro, è l'identità di marca (niente dark mode variant)
   ========================================================================== */

/* --- Font -----------------------------------------------------------------
   JabDisplay = Urbane Rough DemiBold, il font del brand: usato ovunque tranne
   che sulla riga "Il sito è in allestimento", che resta in Roboto (JabBody).
--------------------------------------------------------------------------- */
@font-face {
  font-family: "JabDisplay";
  src: url("../fonts/urbane-rough-demibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JabBody";
  src: url("../fonts/roboto-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F2F6E8;
  --orange: #C5541E;
  --green: #599D65;
  --pink: #F4ACC8;
  --ink: #131313;

  --font-display: "JabDisplay", "Arial Black", sans-serif;
  --font-body: "JabBody", "Helvetica Neue", Arial, sans-serif;

  --grid-line: rgba(242, 246, 232, 0.30);
  --grid: 46px;

  --band-h: clamp(44px, 6vh, 60px);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* fondo verde con la griglia sottile, come nella versione di settembre */
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px var(--grid)),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px var(--grid));
}

/* --- Fasce pattern (catena di ellissi Metodo/Talento) --------------------- */

.band {
  flex: none;
  height: var(--band-h);
  overflow: hidden;
  border-block: 2px solid var(--cream);
  display: flex;
  align-items: center;
  /* verde pieno: copre la griglia, così le ellissi restano leggibili */
  background: var(--green);
}

.band__track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}

.chip {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  border: 2px solid var(--cream);
  border-radius: 50%;
  padding: 0.35em 1.6em;
  margin-left: -14px;
  white-space: nowrap;
  background: transparent;
}
.chip--alt { border-style: dashed; }

/* --- Palco centrale -------------------------------------------------------- */

.stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  --stage-gap: clamp(1.1rem, 2.6vh, 1.8rem);
  gap: var(--stage-gap);
  padding: 0 1.25rem clamp(1.5rem, 4vh, 3rem);
  max-width: 90rem;
  margin-inline: auto;
  width: 100%;
}

.logo {
  display: block;
  line-height: 0;
  width: min(92vw, 902px);
}
/* la pagina non deve mai scrollare: il logo è limitato anche in altezza */
.logo img {
  width: 100%;
  height: auto;
  max-height: 42vh;
  object-fit: contain;
}

/* unico testo della pagina: font display, corpo da titolo.
   Il margine negativo annulla il gap dello stage: il testo sta attaccato al logo. */
.note {
  margin-top: calc(var(--stage-gap) * -1);
  font-size: clamp(1.15rem, min(3.4vw, 4vh), 2.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* --- Bottoni social -------------------------------------------------------- */

.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.55rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.pill svg { width: 1.25em; height: 1.25em; flex: none; }

.pill--green, .pill--pink, .pill--outline { background: var(--cream); }

.pill:hover, .pill:focus-visible { background: var(--ink); color: var(--cream); }
.pill:active { background: var(--ink); color: var(--cream); }

/* --- CTA email -------------------------------------------------------------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.7rem 2.4rem;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.cta:hover, .cta:focus-visible { background: var(--ink); color: var(--cream); }
.cta:active { background: var(--ink); color: var(--cream); }

/* Focus visibile coerente */
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* --- Decorazioni ------------------------------------------------------------ */

/* --- Footer ------------------------------------------------------------------ */

.footer {
  flex: none;
  text-align: center;
  padding: 0 1.25rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink);
}

/* --- Mobile -------------------------------------------------------------------- */

@media (max-width: 700px) {
  .socials { flex-direction: column; align-items: stretch; width: 100%; max-width: 21rem; }
  .pill { justify-content: center; }
  .cta { width: 100%; max-width: 21rem; }
}
/* Viewport bassi (notebook 1280x720, iPhone SE, finestre ridotte): la pagina
   deve restare in una schermata, quindi si stringono spazi e altezze. */
@media (max-height: 720px) {
  .stage { --stage-gap: clamp(0.6rem, 1.6vh, 1.1rem); padding-block: 0 clamp(0.7rem, 2vh, 1.4rem); }
  .logo img { max-height: 21vh; }
  .note { font-size: 0.85rem; }
  .pill { min-height: 42px; padding-block: 0.35rem; font-size: 0.95rem; }
  .cta { min-height: 46px; padding-block: 0.5rem; }
}

/* --- Motion (solo se l'utente non preferisce reduced motion) ------------------- */

@media (prefers-reduced-motion: no-preference) {

  /* Scorrimento continuo delle fasce, in direzioni opposte */
  .band__track { animation: bandSlide 184s linear infinite; }
  .band__track--reverse { animation-direction: reverse; animation-duration: 232s; }

  @keyframes bandSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* Sequenza d'ingresso */
  .logo,
  .note,
  .socials li,
  .cta {
    opacity: 0;
    animation: popIn 0.55s var(--ease-pop) forwards;
  }

  .logo { animation-name: logoIn; animation-duration: 0.7s; animation-delay: 0.1s; }
  .note { animation-name: fadeUp; animation-delay: 0.5s; }
  .socials li:nth-child(1) { animation-delay: 0.66s; }
  .socials li:nth-child(2) { animation-delay: 0.76s; }
  .socials li:nth-child(3) { animation-delay: 0.86s; }
  .cta { animation-delay: 1s; }

  @keyframes popIn {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
  }
  @keyframes logoIn {
    0% { opacity: 0; transform: scale(0.7) rotate(-3deg); }
    60% { opacity: 1; transform: scale(1.04) rotate(1.2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
  }
  @keyframes fadeUp {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
  }

}
