/* =============================================
   WeAreAgain — Landing Page Stylesheet
   Palette:  #000 (nero), #fff (bianco), #999 (grigio neutro)
   Fonts:    Cormorant Garamond (display) + Outfit (body)
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #000;
  --color-white: #fff;
  --color-grey:  #999;
  --color-grey-dark: #1a1a1a;
  --color-grey-light: #e5e5e5;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', Arial, sans-serif;

  --header-height: 72px;
  --page-padding:  clamp(24px, 5vw, 80px);

  --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-white);
  background: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  /* Sfondo con leggera trasparenza per profondità */
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--page-padding);
  max-width: 1440px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;       /* 13px — piccolo, editoriale */
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-grey);
  transition: color var(--transition-base);
  position: relative;
}

/* Underline hover effect — sottile, elegante */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-auth-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-auth-state {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.nav-auth-action {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-grey);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav-auth-action:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Hamburger — visibile solo su mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-white);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Stato aperto: X */
.nav-toggle.is-active .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}


/* =============================================
   HERO
   ============================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;           /* Dynamic viewport per mobile */
  padding: var(--header-height) var(--page-padding) 100px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  /* Sottile animazione di ingresso */
  animation: heroFadeIn 1.2s ease-out both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Titolo — grande, editoriale, serif */
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  /* L'italic di Cormorant è naturalmente elegante */
}

/* Sottotitolo */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 20px;
}

/* Secondary line — same weight, slightly smaller */
.hero-sub-secondary {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 20px;
}

/* Quiet closing line — smallest, most subtle */
.hero-quiet {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 48px;
}

/* CTA Button — bordo sottile, ampio respiro */
.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 16px 52px;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

.hero-cta:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px var(--page-padding);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-grey);
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.social-link {
  color: var(--color-grey);
  transition: color var(--transition-base);
}

.social-link:hover {
  color: var(--color-white);
}


/* =============================================
   RESPONSIVE — breakpoint: 768px
   ============================================= */
@media (max-width: 768px) {

  :root {
    --header-height: 60px;
  }

  /* Mostra hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Nav diventa fullscreen overlay — copre tutto, incluso l'header */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--transition-base),
      visibility var(--transition-base);
    z-index: 105;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    /* Compensa visivamente il centro per evitare che sembri spostato in basso */
    padding-bottom: var(--header-height);
  }

  .nav-link {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
  }

  .nav-auth-item {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-auth-state {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .nav-auth-action {
    font-size: 0.875rem;
    padding: 8px 14px;
  }

  /* Hero: leggermente più piccolo su mobile */
  .hero-title {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  /* Footer stack verticale */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
