/* ═══════════════════════════════════════════════════════════════
   style.css  —  Stili globali condivisi da tutte le pagine
   Contiene: reset, variabili, tipografia, nav, footer, animazioni
   ONDATA 1 — Bianco galleria + rosa antico, Fraunces + system stack
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── VARIABILI GLOBALI ──────────────────────────────────────── */
:root {
  --cream:      #FAFAFA;   /* sfondo principale — bianco galleria  */
  --ink:        #1A1A1A;   /* testo principale — antracite         */
  --warm:       #D4B2A7;   /* rosa antico — accento raro           */
  --mid:        #6B6B6B;   /* testo secondario — grigio medio      */
  --line:       #E8E6E3;   /* linee divisorie — grigio caldo tenue */
  --white:      #FFFFFF;

  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body:    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --nav-h:      64px;

  --transition: 0.22s ease;
}

/* ─── BASE ───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: var(--nav-h);
}

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

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

/* ─── NAVIGAZIONE ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color var(--transition);
}

.nav-logo:hover { color: var(--warm); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--warm);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--warm);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Menu hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all var(--transition);
}

/* ─── INTESTAZIONE SEZIONE ───────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}

/* Barra rosa antico sottile — sostituisce i vecchi numeri 01/02/03 */
.section-num {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--warm);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ─── LINK TESTO SOTTOLINEATO ────────────────────────────────── */
.text-link {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--warm);
  padding-bottom: 3px;
  transition: color var(--transition), border-color var(--transition);
}

.text-link:hover {
  color: var(--warm);
  border-color: var(--ink);
}

/* ─── NOTE SEGNAPOSTO (solo durante sviluppo) ────────────────── */
.placeholder-note {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  color: var(--mid);
  font-style: italic;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--line);
  line-height: 1.5;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: auto;
}

.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--warm);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--mid);
  margin-top: 0.5rem;
}

.footer-col-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--warm);
  text-decoration: none;
  transition: color var(--transition);
  width: fit-content;
}

.footer-link:hover { color: var(--ink); }

/* ─── ANIMAZIONI GLOBALI ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.85s ease forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.30s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.60s; }
.anim-delay-5 { animation-delay: 0.75s; }
.anim-delay-6 { animation-delay: 0.90s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root { --nav-h: 56px; }

  .nav {
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }

  .nav-links a::after { display: none; }

  .nav-toggle { display: flex; }

  .footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.2rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}
