/* ═══════════════════════════════════════════════
   DIREZIONE13 — Base
   Reset, elementi condivisi, keyframes
   ═══════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── NOISE CANVAS ─── */
#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

/* ─── GHOST "13" ─── */
.ghost {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-color: var(--red);
  color: transparent;
  opacity: 0;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  animation: ghostIn 3s 1.5s var(--ease) forwards;
}
@keyframes ghostIn { to { opacity: 0.07; } }

/* ─── VERTICAL RED LINE ─── */
.vline {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--red);
  z-index: 50;
}

/* ─── PAGE LAYOUT ─── */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ─── */
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  opacity: 0;
}

.logo {
  display: flex;
  flex-direction: column;
}
.logo-row1 {
  display: flex;
  align-items: baseline;
}
.logo-direzione {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-num {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: -0.01em;
  margin-left: 0.08em;
}
.logo-arrow {
  flex-shrink: 0;
  align-self: center;
}
.logo-payoff {
  font-weight: 500;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.04em;
}

/* ─── HERO ─── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.hline {
  height: 1px;
  width: 0;
  background: var(--red);
}

.overline {
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white-52);
  opacity: 0;
}

.headline {
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hl-1 { display: block; color: var(--white); opacity: 0; }
.hl-2 { display: block; color: var(--red);   opacity: 0; }
.hl-3 { display: block; color: var(--white); opacity: 0; }

.subline {
  font-weight: 300;
  color: var(--white-62);
  opacity: 0;
}
.subline strong {
  font-weight: 500;
  color: var(--white-85);
}

/* ─── PROCESS LINE ─── */
.process-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
}
.process-step {
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white-52);
}
.process-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid var(--red);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--white-06);
  flex-shrink: 0;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white-38);
  opacity: 0;
}

/* ─── SEZIONE: PROGETTIAMO SISTEMI ─── */
.s-systems {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--white-06);
}
.s-systems-inner {
  display: flex;
  flex-direction: column;
}
.s-systems-hl {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.s-sys-1 {
  display: block;
  color: var(--white);
}
.s-sys-2 {
  display: block;
  color: var(--red);
}
.s-systems-body {
  font-weight: 300;
  color: var(--white-62);
  line-height: 1.75;
}

/* ─── SEZIONE: INFRASTRUTTURA INTELLIGENTE ─── */
.s-infra {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--white-06);
}
.s-infra-inner {
  display: flex;
  flex-direction: column;
}
.s-infra-head {
  display: flex;
  align-items: center;
}
.s-infra-label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--white-52);
  flex-shrink: 0;
}
.s-infra-hline {
  flex: 1;
  height: 1px;
  background: var(--white-06);
}
.s-infra-body {
  font-weight: 300;
  color: var(--white-62);
  line-height: 1.75;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
