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

/* Font: Helvetica Neue, forzato su tutti i dispositivi.
   Ordine di caricamento (vedi fonts/LEGGIMI-FONT.txt):
   1. file webfont con licenza in /fonts (HelveticaNeue-Roman / -Medium)
   2. Helvetica Neue installato sul dispositivo
   3. TeX Gyre Heros, clone gratuito di Helvetica incluso in /fonts */
@font-face {
  font-family: 'Stadera Helvetica';
  src: url('../fonts/HelveticaNeue-Roman.woff2') format('woff2'),
       local('Helvetica Neue'), local('HelveticaNeue'),
       url('../fonts/texgyreheros-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stadera Helvetica';
  src: url('../fonts/HelveticaNeue-Medium.woff2') format('woff2'),
       local('Helvetica Neue Medium'), local('HelveticaNeue-Medium'),
       url('../fonts/texgyreheros-regular.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:    #141A2E;
  --navy:   #1A4173;
  --pink:   #E6217A;
  --paper:  #FFFFFF;
  --font:   'Stadera Helvetica', 'Helvetica Neue', Helvetica, 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(--font);
}

.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(240px, min(34vw, 46vh), 440px);  /* logo orizzontale 960×660 */
  height: auto;
}

.title {
  margin: clamp(36px, 7vh, 64px) 0 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: .3em;
  margin-right: -.3em;           /* 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; }

.support-wrap {
  display: block;
  width: 400px;
  max-width: 85vw;
  margin-top: clamp(56px, 11vh, 110px);
}
.support {
  display: block;
  width: 400px !important;
  max-width: 85vw;
  height: auto !important;
}

.by {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 40px;
}
.by span {
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  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; }
.support.reveal { animation-delay: .45s; }
.by.reveal    { animation-delay: .55s; }

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