/* ==========================================================
   Stadera – Sito in costruzione (versione minimal)
   ========================================================== */

/* Font locali (licenza SIL OFL, vedi /fonts) – nessuna chiamata a Google */
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink:    #141A2E;
  --navy:   #1A4173;
  --pink:   #E6217A;
  --paper:  #FFFFFF;
  --cond:   'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body:   'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 40px;
}

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(170px, 20vw, 280px);
  height: auto;
}

.title {
  margin: clamp(36px, 7vh, 64px) 0 0;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(19px, 2.1vw, 30px);
  letter-spacing: .33em;
  margin-right: -.33em;           /* compensa la spaziatura dell'ultima lettera */
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.rule {
  display: block;
  width: 40px;
  height: 2px;
  margin: 26px 0;
  background: var(--pink);
}

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 500;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--navy);
  transition: color .2s ease;
}
.mail:hover { color: var(--pink); }
.mail:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }

.by {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 40px;
}
.by span {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.by img { display: block; height: 48px; width: auto; }

/* Dissolvenza d'ingresso */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { animation: fadeIn 1.2s ease-out both; }
.title.reveal { animation-delay: .2s; }
.mail.reveal  { animation-delay: .35s; }
.by.reveal    { animation-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}
