:root {
  --helv: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --mono-r: "Roboto Mono", ui-monospace, monospace;
  --bianco: #F7F4EF;
  --notte: #0A0A0A;
}

.pre {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  color: var(--bianco);
  display: grid;
  place-items: center;
  animation: via-di-scorta 0s 6s forwards;
}
.pre-logo {
  position: relative;
  font: 700 28px/1 var(--helv);
  letter-spacing: -0.04em;
  color: rgba(247, 244, 239, 0.16);
  white-space: nowrap;
}
.pre-logo-pieno {
  position: absolute;
  inset: 0;
  color: var(--bianco);
  clip-path: inset(-30% 100% -30% 0);
}
.pre-testo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  text-align: center;
  font: 400 12px/14px var(--mono);
  text-transform: uppercase;
  min-height: 14px;
}
.pre-barra {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--bianco);
  transform: scaleX(0);
  transform-origin: left;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--notte);
  color: var(--bianco);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 45% 100%, #FF7A52 0%, rgba(255, 122, 82, 0) 70%),
    linear-gradient(180deg, #7E2108 0%, #C1360F 40%, #E8461C 100%);
}

.hero-nav {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--bianco);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(var(--margine), calc((100% - var(--contenitore)) / 2 + var(--margine)));
  padding-right: max(var(--margine), calc((100% - var(--contenitore)) / 2 + var(--margine)));
  height: 40px;
}
.hero-logo {
  font: 700 28px/1 var(--helv);
  letter-spacing: -0.04em;
}
.hero-menu {
  display: flex;
}
.hero-menu a {
  padding: 16px 20px;
  font: 400 14px/20px var(--mono-r);
  letter-spacing: -0.42px;
  text-transform: uppercase;
}
.hero-burger {
  display: none;
  color: inherit;
}
.hero-nav.scuro {
  color: var(--notte);
}
/* Come Blux: sulla prima schermata il menu non ha sfondo; dopo, uno sfocato lo tiene leggibile */
.hero-menu {
  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.hero-nav.fuori .hero-menu {
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
}
.hero-logo {
  padding: 12px 16px;
  margin: -12px -16px;
}
.hero-logo,
.hero-burger {
  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.hero-nav.fuori .hero-logo,
.hero-nav.fuori .hero-burger {
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
}
@media (max-width: 809px) {
  .hero-logo {
    padding: 6px 12px;
    margin: -6px -12px;
  }
}

.rolla {
  display: inline-block;
  overflow: hidden;
  height: 1lh;
  vertical-align: top;
}
.rolla > span {
  display: block;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
a:hover .rolla > span {
  transform: translateY(-100%);
}

.hero-basso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--margine);
  padding-top: 0;
  padding-bottom: 48px;
  padding-left: max(var(--margine), calc((100% - var(--contenitore)) / 2 + var(--margine)));
  padding-right: max(var(--margine), calc((100% - var(--contenitore)) / 2 + var(--margine)));
}
.hero-sx {
  flex: 0 1 1012px;
  min-width: 0;
}

.hero-etichetta {
  font: 400 16px/16px var(--mono);
  letter-spacing: -0.48px;
  margin-bottom: 8px;
}

.hero-titolo {
  font: 400 clamp(36px, 4.2vw, 64px)/1.3 var(--helv);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-riga {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prova {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-avatar {
  display: flex;
}
.hero-avatar > * {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}
.hero-avatar > * + * {
  margin-left: -8px;
}
.hero-avatar img {
  object-fit: contain;
}
.hero-avatar-num {
  display: grid;
  place-items: center;
  background: var(--arancio);
  font: 400 14px/1 var(--helv);
  letter-spacing: -0.42px;
  text-transform: none;
}
.hero-prova-testo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
  font: 400 12px/14.4px var(--mono-r);
  letter-spacing: 0.48px;
  text-transform: uppercase;
}
.hero-stelle {
  display: flex;
  gap: 4px;
}
.hero-stelle svg {
  width: 11px;
  height: 9px;
  fill: var(--bianco);
}

.hero-dx {
  flex: 0 0 312px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.hero-frase {
  width: 240px;
  font: 400 18px/25.2px var(--helv);
  letter-spacing: -0.54px;
  white-space: nowrap;
}
.hero-cta {
  width: 240px;
  padding: 12px 16px;
  background: var(--arancio);
  text-align: center;
  font: 400 16px/24px var(--mono);
  letter-spacing: -0.32px;
  text-transform: uppercase;
}

.hero-nastro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 40px;
  padding: 8px 0;
  background: var(--notte);
  overflow: hidden;
}
.hero-nastro-lista {
  display: flex;
  gap: 160px;
  width: max-content;
  list-style: none;
}
.hero-nastro-lista li {
  font: 400 16px/24px var(--mono);
  letter-spacing: -0.32px;
  text-transform: uppercase;
  white-space: nowrap;
}

.entra {
  opacity: 0;
  animation: via-di-scorta-entra 0s 6s forwards;
}
.hero-parola {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero-parola > span {
  display: inline-block;
}
.hero-riga > .entra:first-child {
  display: inline-block;
  flex: none;
  white-space: nowrap;
}

@keyframes via-di-scorta { to { visibility: hidden; } }
@keyframes via-di-scorta-entra { to { opacity: 1; } }

@media (min-width: 1421px) {
  .hero-sx {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: 16px;
  }
  .hero-etichetta,
  .hero-titolo > .hero-riga:first-child {
    grid-column: 1 / -1;
  }
  .hero-titolo {
    display: contents;
  }
}
@media (max-width: 1420px) {
  .hero-prova { display: none; }
}

@media (max-width: 809px) {
  .hero {
    height: 90vh;
    height: 90svh;
    min-height: 560px;
  }
  .hero-menu { display: none; }
  .hero-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    /* da Blux: due linee lunghe 32 px, spesse 2, a 8 px una dall'altra */
    width: 48px;
    height: 40px;
    margin-right: -8px;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .hero-burger span {
    display: block;
    height: 2px;
    background: currentColor;
  }

  .hero-basso {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    bottom: 40px;
  }
  .hero-sx {
    flex: none;
    display: flex;
    flex-direction: column;
  }
  .hero-etichetta {
    order: 2;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.42px;
    margin: 16px 0 0;
  }
  .hero-titolo {
    font-size: 36px;
    line-height: 1.2;
  }
  .hero-titolo .hero-riga,
  .hero-riga > .entra:first-child {
    display: inline;
    white-space: normal;
  }
  .hero-prova {
    display: none;
  }
  .hero-dx {
    flex: none;
    align-items: stretch;
  }
  .hero-frase { display: none; }
  .hero-cta {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.28px;
  }

  .hero-nastro {
    height: 40px;
    padding: 8px 0;
  }
  .hero-nastro-lista { gap: 24px; }
  .hero-nastro-lista li {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.28px;
  }
}

/* Menu da telefono, da Blux: pannello scuro che scende dall'alto */
.menu-velo,
.menu-mobile {
  display: none;
}
@media (max-width: 809px) {
  .hero-burger span {
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .hero-nav.aperto {
    color: var(--bianco);
  }
  .hero-nav.aperto .hero-burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .hero-nav.aperto .hero-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .menu-velo:not([hidden]) {
    display: block;
  }
  .menu-mobile:not([hidden]) {
    display: flex;
    flex-direction: column;
  }
  .menu-velo {
    position: fixed;
    inset: 0;
    z-index: 48;
    background: rgba(10, 10, 10, 0.5);
  }
  .menu-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    overflow-y: auto;
    padding: 136px var(--margine) 72px;
    background: var(--notte);
    color: var(--bianco);
  }
  .menu-voci {
    display: flex;
    flex-direction: column;
  }
  .menu-voci a {
    padding: 28px 0;
    border-bottom: 1px solid rgba(247, 244, 239, 0.2);
    font: 400 18px/1.2 var(--helv);
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  .menu-voci a:first-child {
    padding-top: 0;
  }
  .menu-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: auto;
    padding-top: 72px;
  }
  .menu-dato {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .menu-dato span,
  .menu-firma {
    font: 400 12px/16px var(--mono);
    letter-spacing: -0.24px;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.4);
  }
  .menu-dato a {
    font: 400 14px/20px var(--mono);
    letter-spacing: -0.28px;
  }
  .menu-firma {
    padding-top: 24px;
    border-top: 1px solid rgba(247, 244, 239, 0.2);
  }
}

@media (max-width: 809px) {
  .hero-media {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0) 20%, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0.9) 68%, #0A0A0A 100%),
      url("../img/angelo-ritratto-tel.webp") 55% 0 / 130% auto no-repeat,
      #0A0A0A;
  }
}
