/* =========================================================
   Lorenzo Tallone – Portfolio
   Un solo foglio di stile per tutte le pagine.
   Indice:
   1. Variabili (colori, font, misure)
   2. Base e accessibilità
   3. Layout comune (contenitore, header, footer)
   4. Componenti (pulsanti, titoli, etichette)
   5. Home (hero, clienti, progetti, agenzie, metodo, contatti)
   6. Case study
   7. Wireframe astratti
   8. Chi sono
   9. Responsive (mobile)
   ========================================================= */


/* 0. FONT --------------------------------------------------
   I font sono ospitati nel sito (cartella fonts/) invece che
   caricati da Google: le pagine si aprono più velocemente e
   nessun dato dei visitatori passa a Google (tema GDPR).
   Sono font "variabili": un solo file contiene tutti i pesi
   e, per Archivo, anche tutte le larghezze (font-stretch). */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* 1. VARIABILI ---------------------------------------------
   Come le variabili in Figma: cambi un valore qui e cambia
   ovunque sia usato con var(--nome). */
:root {
  --bg: #0D0D10;            /* sfondo della pagina */
  --surface: #16161B;       /* campi del modulo */
  --line: #2B2B33;          /* divider */
  --line-strong: #3A3A44;   /* bordi dei campi, contorni */
  --wire: #4A4A55;          /* linee dei wireframe */
  --text: #EDEDF2;          /* testo principale */
  --text-2: #C8C8D2;        /* paragrafi lunghi */
  --muted: #B3B3BF;         /* testo secondario */
  --subtle: #8C8C99;        /* didascalie, anni */
  --accent: #C6FF3D;        /* verde acido: azioni e parola chiave */
  --accent-2: #B79CFF;      /* viola: numeri, etichette, link */

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-gap: clamp(96px, 11vw, 160px);
}


/* 2. BASE E ACCESSIBILITÀ ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--text); }
a:hover { color: var(--accent); }

/* Contorno visibile quando si naviga con la tastiera */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Link "salta al contenuto": invisibile finché non lo raggiungi con Tab */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 16px; color: var(--bg); }

/* Testo leggibile solo dagli screen reader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Chi ha chiesto meno animazioni nel sistema non le vede */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* 3. LAYOUT COMUNE ----------------------------------------- */

/* La pagina fa da cornice alle foglie decorative di sfondo */
.page { position: relative; overflow-x: clip; }   /* clip e non hidden: con hidden l'header fisso smetterebbe di funzionare */

/* I link interni (#progetti, #contatti…) si fermano sotto l'header fisso, non dietro */
html { scroll-padding-top: 120px; }
@media (max-width: 720px) { html { scroll-padding-top: 88px; } }
.leaves { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.container { position: relative; z-index: 1; }

/* Il contenitore centra la pagina; i testi restano a sinistra */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: clamp(16px, 2vw, 24px) 0;
  position: relative;
}

/* Header fisso: sfondo pieno; la linea sotto compare solo quando la pagina ha iniziato a scorrere
   (la classe .is-scrolled la aggiunge js/main.js) */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.header-bar.is-scrolled { border-bottom-color: var(--line-strong); }

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.header-right { display: flex; align-items: center; gap: 28px; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-contact { color: inherit; }

/* Selettore di lingua: due link, quello attivo è pieno */
.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a[aria-current="true"] { background: var(--accent-2); color: var(--bg); }

/* Pulsante del menu: visibile solo su mobile (vedi sezione 9) */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}

/* Menu mobile: pagina a tutto schermo sotto l'header, gestita da js/main.js.
   Non spinge il contenuto: lo copre. */
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 15;               /* sotto l'header (20), così il pulsante X resta cliccabile */
  background: var(--bg);
  padding: 104px var(--gutter) 40px;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-links a[aria-current="page"] { color: var(--accent); }
.mobile-menu-mail { font-size: 15px; color: var(--accent-2); text-underline-offset: 5px; }
/* Con il menu aperto la pagina sotto non scorre */
body.menu-open { overflow: hidden; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--subtle);
}
.site-footer nav { display: flex; gap: 24px; }
/* Frase di sintesi: una riga in chiaro su chi sono e cosa faccio, a tutta larghezza sopra il resto */
.site-footer .footer-about { flex: 1 0 100%; margin: 0; padding-right: max(0px, calc(100% - 62ch)); font-size: 14px; line-height: 1.5; }
.site-footer a { color: var(--muted); }


/* 4. COMPONENTI -------------------------------------------- */

/* Titoli grandi, condensati e maiuscoli */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.88;
  text-transform: uppercase;
}
.display .hl { color: var(--accent); }     /* parola chiave in verde */
.display .dim { color: var(--subtle); }    /* parte attenuata */

.h-section { font-size: clamp(44px, 6vw, 88px); line-height: 0.9; }

.h-small {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
}

.label { font-size: 14px; color: var(--accent-2); }
.label .sep { color: var(--subtle); }
.label .sep a { color: inherit; text-underline-offset: 4px; }

/* Pulsante principale: l'unico elemento pieno in verde */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--bg); filter: brightness(1.08); }

/* Intestazione di sezione: titolo a sinistra, testo breve a destra */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 36px;
}
.section-head p { max-width: 360px; font-size: 15px; color: var(--muted); }

/* Colonne con divider in alto, usate in più sezioni */
.grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 48px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.col p { font-size: 15px; color: var(--muted); }


/* 5. HOME -------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 7.6vw, 112px);
}
.hero h1 { font-size: clamp(48px, 9.7vw, 144px); line-height: 0.88; letter-spacing: -0.01em; }
.hero h1 .line { display: block; }
.hero h1 .nowrap { white-space: nowrap; }   /* "gli sviluppatori" su una riga sola... */
@media (max-width: 720px) { .hero h1 .nowrap { white-space: normal; } }   /* ...tranne su mobile */
.hero-foot.hero-foot--stack { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-foot p { max-width: 520px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); }

/* Clienti */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 48px;
  padding-bottom: clamp(88px, 9.6vw, 140px);
}
.clients ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: clamp(22px, 1.8vw, 26px);
  text-transform: uppercase;
}
.clients .note { flex-basis: 100%; font-size: 13px; color: var(--subtle); }
.clients .note strong { color: var(--text); font-weight: 600; }

/* Elenco progetti: righe tutte uguali separate da divider */
.projects { padding-bottom: var(--section-gap); }

.project-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row:hover { color: var(--text); }

.row-title { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.row-eyebrow { font-size: 13px; letter-spacing: 0.04em; color: var(--accent-2); }
.row-eyebrow span { color: var(--subtle); }
.row-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-size: clamp(34px, 3.3vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.row-desc { flex: 1 1 300px; display: flex; align-items: center; gap: 16px; }
.row-desc-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.row-line { font-size: 17px; }
.row-meta { font-size: 14px; color: var(--subtle); }
.row-end { flex: 0 0 150px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.row-year { font-size: 14px; color: var(--subtle); }

/* Chevron: su desktop accanto all'anno, su mobile accanto alla descrizione */
.chev {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--accent);
}
.chev svg { transition: transform 180ms ease; }
.chev--mob { display: none; flex: 0 0 44px; }

/* Passaggio del mouse: nome in verde, chevron che si sposta */
.project-row:hover .row-name,
.project-row:hover .row-line { color: var(--accent); }
.row-line { transition: color 160ms ease; }
.title-break { display: block; }
.agency-link { color: inherit; text-decoration: none; }
.note a { color: inherit; text-underline-offset: 4px; }
.project-row:hover .chev svg { transform: translateX(4px); }

/* Sotto i 1000px le tre colonne non stanno più in una riga:
   la chevron passa accanto alla descrizione e l'anno va in fondo */
@media (max-width: 1000px) {
  .chev--desk { display: none; }
  .chev--mob { display: inline-flex; }
  .row-end { flex-basis: 100%; }
}

/* Agenzie partner */
.agencies { display: flex; flex-direction: column; gap: 36px; padding-bottom: var(--section-gap); }
.agencies h2 { font-size: clamp(36px, 4vw, 56px); line-height: 0.9; }
.agencies h3 { color: var(--accent-2); font-size: 30px; }
.agencies p { font-size: 16px; line-height: 1.65; }

/* Metodo */
.method { display: flex; flex-direction: column; gap: 44px; padding-bottom: var(--section-gap); }
.method .step-num { font-size: 14px; color: var(--accent-2); }
.method .step-example { font-size: 14px; color: var(--subtle); }
.method-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.method-foot p { flex: 1 1 360px; font-size: 15px; color: var(--muted); }
.method-foot strong { color: var(--text); font-weight: 600; }

/* Contatti */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
  padding-bottom: clamp(88px, 9.6vw, 140px);
  scroll-margin-top: 24px;
}
.contact-intro { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; }
.contact-intro p { max-width: 460px; color: var(--muted); }
.contact-intro .mail { align-self: flex-start; color: var(--accent-2); text-underline-offset: 5px; }

.form { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.field input,
.field textarea {
  min-height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field textarea { padding: 14px 16px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--accent-2); outline: none; }
.form .btn { align-self: flex-start; }
.hidden-field { display: none; }

/* Le sezioni con id non finiscono sotto il bordo quando ci arrivi da un link */
section[id] { scroll-margin-top: 24px; }


/* 6. CASE STUDY -------------------------------------------- */

.case-hero { display: flex; flex-direction: column; gap: 28px; padding: clamp(40px, 5vw, 72px) 0; }
.back-link { align-self: flex-start; font-size: 14px; color: var(--muted); text-underline-offset: 5px; }
.case-hero .label { font-size: 15px; letter-spacing: 0.04em; }
.case-hero h1 { max-width: 1000px; font-size: clamp(50px, 8vw, 128px); }

.meta-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.meta-grid div { display: flex; flex-direction: column; gap: 6px; }
.meta-grid dt { font-size: 13px; color: var(--subtle); }
.meta-grid dd { font-size: 16px; }

.case-section {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 56px 0 clamp(80px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.case-section:first-of-type { border-top: 0; padding-top: 40px; }

.case-section-head { display: flex; flex-wrap: wrap; gap: 20px 80px; }
.case-section-title { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.case-section-title h2 { font-size: clamp(44px, 4.4vw, 64px); line-height: 0.9; font-stretch: 70%; }
.case-section-title .tagline { margin-top: 6px; font-size: 17px; color: var(--text-2); }
.case-section-head > p { flex: 1 1 460px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--text-2); }

.block-label { font-size: 14px; color: var(--accent-2); }
.col .block-text { font-size: 16px; line-height: 1.65; }

.bullets li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.bullets strong { color: var(--text); font-weight: 600; }

.stats-caption { font-size: 14px; color: var(--subtle); }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 20px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 68%;
  font-size: clamp(72px, 6.6vw, 96px);
  line-height: 0.9;
  color: var(--accent-2);
}
.stat-label { font-size: 15px; line-height: 1.5; color: var(--muted); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.cta-band p {
  max-width: 560px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.05;
  text-transform: uppercase;
}

.next-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 16px;
  padding: 40px 0 72px;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: color 180ms ease;
}
.next-link:hover { color: var(--accent); }
.next-link .label { color: var(--accent-2); }
.next-link .next-name { font-size: clamp(44px, 5vw, 72px); line-height: 0.9; }


/* 7. WIREFRAME ASTRATTI ------------------------------------
   Disegnati solo con bordi: niente immagini, niente contenuti
   reali, quindi nessun problema con gli NDA. */
.wf figcaption { margin-top: 12px; font-size: 13px; color: var(--subtle); }

/* Griglia a tre colonne: annotazioni | disegno | annotazioni */
.wf-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
}
.wf-stage--mobile { aspect-ratio: 16 / 9; min-height: 260px; }
.wf-stage--desktop { aspect-ratio: 16 / 8; min-height: 220px; }

.wf-notes { position: relative; }
.wf-note {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.3;
  color: var(--muted);
}
.wf-notes--left .wf-note { text-align: right; }
.wf-note-text { flex: 0 1 auto; min-width: 0; padding-right: 2px; }
.wf-note::before,
.wf-note::after { content: ""; flex: 1 1 auto; min-width: 12px; border-top: 1px solid var(--line-strong); }
.wf-notes--left .wf-note::before { display: none; }
.wf-notes--right .wf-note::after { display: none; }
.wf-note--hl { color: var(--accent-2); }
.wf-note--hl::before,
.wf-note--hl::after { border-color: var(--accent-2); }

/* Elementi disegnati: solo contorni */
.wf-box { border: 1px solid var(--wire); border-radius: 4px; }
.wf-box--hl { border: 1.5px solid var(--accent-2); }

/* Telefono */
.wf-phone {
  height: 92%;
  align-self: center;
  aspect-ratio: 9 / 19;
  border: 1.5px solid #5A5A66;
  border-radius: 12px;
  padding: 6% 7%;
  display: flex;
  flex-direction: column;
  gap: 5%;
}
.wf-phone .top { display: flex; justify-content: space-between; align-items: center; height: 4%; }
.wf-phone .top .wf-box:first-child { height: 100%; width: 38%; }
.wf-phone .top .wf-box:last-child { height: 100%; aspect-ratio: 1; border-radius: 999px; }
.wf-phone .card { height: 26%; padding: 8%; display: flex; flex-direction: column; justify-content: space-between; border-radius: 10px; }
.wf-phone .card .a { height: 12%; width: 45%; }
.wf-phone .card .b { height: 22%; width: 75%; }
.wf-phone .card .c { height: 24%; width: 40%; border-radius: 999px; }
.wf-phone .list { display: flex; flex-direction: column; gap: 6%; height: 30%; }
.wf-phone .list .wf-box { flex: 1; border-radius: 8px; }
.wf-phone .tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 6%; border-top: 1px solid var(--line-strong); }
.wf-phone .tabs .wf-box { width: 11%; aspect-ratio: 1; }

/* Finestra desktop */
.wf-window {
  height: 84%;
  align-self: center;
  aspect-ratio: 16 / 10;
  border: 1.5px solid #5A5A66;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wf-window .bar { height: 8%; display: flex; align-items: center; gap: 1.2%; padding: 0 2.5%; border-bottom: 1px solid var(--line-strong); }
.wf-window .bar .wf-box { height: 30%; aspect-ratio: 1; border-radius: 999px; }
.wf-window .body { flex: 1 1 auto; display: flex; }
.wf-window .side { flex: 0 0 20%; border-right: 1px solid var(--line-strong); padding: 4% 3%; display: flex; flex-direction: column; gap: 9%; }
.wf-window .side .wf-box { height: 6%; }
.wf-window .main { flex: 1 1 auto; padding: 3.5%; display: flex; flex-direction: column; gap: 6%; }
.wf-window .main .title { height: 8%; width: 36%; }
.wf-window .cards { height: 32%; display: flex; gap: 3%; }
.wf-window .cards .wf-box { flex: 1 1 0; border-radius: 6px; }
.wf-window .rows { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
.wf-window .rows .wf-box { height: 18%; }


/* 8. CHI SONO ---------------------------------------------- */

.about-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 64px;
  padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 7.6vw, 112px);
}
.about-hero-text { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.about-hero h1 { font-size: clamp(52px, 9.4vw, 152px); line-height: 0.86; }
.about-hero p { max-width: 560px; font-size: clamp(17px, 1.3vw, 19px); color: var(--text-2); }

/* Foto della pagina Chi sono */

.photo-wrap { display: contents; }   /* <picture> non deve cambiare il layout: conta solo l'immagine */
.photo { flex: 1 1 260px; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; filter: saturate(0.9) brightness(0.92); }

.journey { display: flex; flex-wrap: wrap; gap: 28px 80px; padding-bottom: clamp(80px, 8vw, 120px); }
.journey h2 { flex: 1 1 280px; font-size: clamp(44px, 3.9vw, 56px); line-height: 0.9; font-stretch: 70%; }
.timeline { flex: 2 1 520px; }
.timeline li { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { flex: 0 0 120px; font-size: 14px; color: var(--subtle); }
.timeline li:first-child .year { color: var(--accent-2); }
.timeline .what { flex: 1 1 340px; display: flex; flex-direction: column; gap: 6px; }
.timeline .role { font-size: 19px; font-weight: 600; }
.timeline .desc { font-size: 15px; color: var(--muted); }

.facts { padding-bottom: clamp(80px, 8vw, 120px); }
.facts h3 { color: var(--accent-2); font-size: 26px; }
.facts p { white-space: pre-line; }

.closing { padding: 56px 0 72px; }


/* 9. RESPONSIVE --------------------------------------------
   Sotto i 720 px: menu a scomparsa e chevron accanto alla
   descrizione. Il resto si adatta da solo grazie a flex-wrap,
   clamp() e alle griglie auto-fit. */
@media (max-width: 720px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-right { gap: 12px; }


  /* Wireframe su telefono: prima il disegno, poi le annotazioni in elenco */
  .wf-stage--mobile,
  .wf-stage--desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    aspect-ratio: auto;
    min-height: 0;
  }
  /* Qui il telefono non sta più nella griglia: le percentuali del padding
     si calcolerebbero sulla larghezza della pagina. Valori fissi, in proporzione al disegno. */
  .wf-phone { height: 340px; padding: 10px 11px; }
  .wf-window { height: auto; width: 100%; }
  .wf-notes { order: 2; width: 100%; display: flex; flex-direction: column; gap: 10px; }
  .wf-notes--right { order: 3; margin-top: -10px; }
  .wf-note { position: static; transform: none; font-size: 14px; }
  .wf-notes--left .wf-note { text-align: left; }
  .wf-note::after { display: none; }
  .wf-notes--left .wf-note::before,
  .wf-note::before { display: block; flex: 0 0 16px; min-width: 16px; }
}
