/* ==========================================================================
   Biscroma — Waiting page
   ========================================================================== */

:root {
  /* Colori brand */
  --green: #00E5A9;
  --dark: #00242D;
  --dark-deep: #00161E;
  --mint: #DAF7EE;

  /* Tipografia */
  --font: "aktiv-grotesk-extended", "Helvetica Neue", Arial, sans-serif;
  --fs-body: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);   /* ~16px */
  --fs-label: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);

  /* Spazi (margine esterno ~2,6% come nelle slide) */
  --gutter: clamp(1rem, 2.6vw, 3.125rem);
  --border: 4px;

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

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--mint);
  background-color: var(--dark);
  background-image: linear-gradient(100deg, var(--dark-deep) 0%, var(--dark) 70%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cornice verde di 4px */
.frame {
  position: fixed;
  inset: 0;
  border: var(--border) solid var(--green);
  pointer-events: none;
  z-index: 10;
  animation: frame-in 1s var(--ease) both;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(2rem, 5vh, 4rem);
  padding: calc(var(--gutter) + var(--border));
}

/* --------------------------------------------------------------------------
   Hero: logo + tagline + tag
   -------------------------------------------------------------------------- */

.hero {
  align-self: center;
  justify-self: center;
  width: min(100%, 56rem);
  text-align: center;
}

.logo {
  margin: 0 auto;
  width: min(100%, 44rem);
  animation: logo-in 1.2s var(--ease) 0.6s both;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: clamp(1.5rem, 4vh, 2.5rem) auto 0;
  max-width: 34ch;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
  animation: rise-in 0.9s var(--ease) 1.1s both;
}

.tags {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.tags li {
  padding: 0.5em 1em;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  animation: rise-in 0.7s var(--ease) both;
}

.tags li:nth-child(1) { animation-delay: 1.3s; }
.tags li:nth-child(2) { animation-delay: 1.4s; }
.tags li:nth-child(3) { animation-delay: 1.5s; }

/* --------------------------------------------------------------------------
   Contatto
   -------------------------------------------------------------------------- */

.contact {
  text-align: center;
  animation: rise-in 0.9s var(--ease) 1.8s both;
}

.contact a {
  color: var(--mint);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), background-size 0.3s var(--ease);
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--green);
  background-size: 100% 2px;
}

.contact a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes frame-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.96); filter: blur(12px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

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

@media (max-width: 600px) {
  .page { gap: 1.75rem; }
}

/* --------------------------------------------------------------------------
   Movimento ridotto
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
