/* =================================================================
   Valentina Capretti — Traduzioni EN→IT
   Moodboard: "Una pagina che si traduce sotto i tuoi occhi"
   Typography-driven · carta avorio · inchiostro iris · accenti primaverili
   ================================================================= */

:root {
  /* Palette (OKLCH) — light, primaverile. No nero/rosso/giallo/marrone/oro. */
  --paper:        oklch(0.985 0.006 95);   /* carta avorio calda */
  --paper-2:      oklch(0.965 0.010 96);   /* card / sezioni alt */
  --paper-3:      oklch(0.945 0.013 96);   /* bordi morbidi su alt */

  --ink:          oklch(0.255 0.035 280);  /* testo principale (iris-navy, non nero) */
  --ink-soft:     oklch(0.445 0.030 280);  /* testo secondario */

  --iris:         oklch(0.520 0.170 280);  /* accent display / grandi titoli */
  --iris-strong:  oklch(0.415 0.155 282);  /* link, bottoni, testo accent su chiaro */

  --sky:          oklch(0.720 0.115 235);
  --green:        oklch(0.720 0.115 152);
  --rose:         oklch(0.800 0.090 350);

  --sky-soft:     oklch(0.940 0.040 235);
  --green-soft:   oklch(0.945 0.040 152);
  --rose-soft:    oklch(0.950 0.035 350);

  --line:         oklch(0.905 0.018 285);
  --line-2:       oklch(0.860 0.028 285);

  /* Tipografia */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Newsreader", Georgia, "Times New Roman", serif;

  /* Spazi & raggi */
  --wrap:    72rem;
  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --r-sm: 0.6rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px oklch(0.30 0.05 280 / 0.05),
                 0 8px 28px oklch(0.30 0.08 280 / 0.07);
  --shadow-lift: 0 2px 6px oklch(0.30 0.05 280 / 0.08),
                 0 18px 44px oklch(0.30 0.10 280 / 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--iris-strong); text-decoration: none; }

::selection { background: var(--iris); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1rem;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Atmosfera (orb primaverili sfocati) ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.orb--iris  { width: 38vw; height: 38vw; top: -8vw;  left: -6vw;  background: var(--iris);  opacity: 0.16; }
.orb--sky   { width: 30vw; height: 30vw; top: 18vw;  right: -8vw; background: var(--sky);   opacity: 0.18; }
.orb--green { width: 34vw; height: 34vw; bottom: 10vw; left: -10vw; background: var(--green); opacity: 0.14; }
.orb--rose  { width: 26vw; height: 26vw; bottom: -6vw; right: 4vw; background: var(--rose);  opacity: 0.16; }

/* grana sottile su tutta la pagina */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.985 0.006 95 / 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: lowercase;
  padding: 0.12rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--iris);
  color: var(--paper);
}
.brand-arrow { font-size: 0.78rem; line-height: 1; }

/* Nav */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-menu a:hover { color: var(--iris-strong); background: oklch(0.96 0.03 285); }
.nav-menu a.is-active:not(.nav-cta) { color: var(--iris-strong); }
.nav-cta {
  background: var(--iris-strong);
  color: var(--paper) !important;
  padding-inline: 1.15rem !important;
}
.nav-cta:hover { background: var(--ink) !important; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
              color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn--primary {
  background: var(--iris-strong);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); background: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--iris); color: var(--iris-strong); transform: translateY(-2px); }

/* ---------- Eyebrow / titoli sezione ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--iris-strong);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  max-width: 20ch;
}
.section-lead {
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 55% at 12% 6%, oklch(0.72 0.115 235 / 0.24), transparent 72%),
    radial-gradient(52% 48% at 97% 0%, oklch(0.80 0.090 350 / 0.26), transparent 72%),
    radial-gradient(58% 55% at 86% 72%, oklch(0.52 0.170 280 / 0.16), transparent 72%),
    radial-gradient(54% 52% at 2% 92%, oklch(0.72 0.115 152 / 0.20), transparent 74%);
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent);
  mask-image: linear-gradient(to bottom, #000 68%, transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 56rem; }
.hero .eyebrow { font-size: 1.1rem; }

.lead-arrow {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--sky);
  margin: 0.25rem 0 0.1rem;
}


.hero-title { margin: 0; }
.lead-en {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  color: var(--ink-soft);
  opacity: 0.72;
  letter-spacing: 0;
  line-height: 1.2;
}
.lead-en::before { content: "“"; }
.lead-en::after  { content: "”"; }
.lead-it {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 0.3rem;
}
.lead-it em {
  font-style: italic;
  font-weight: 700;
  color: var(--iris);
}

.hero-sub {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-top: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.cycler {
  margin-top: 2.75rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  padding: 0.7rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
}
.cycler-label {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.cycler-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.cycler-en { color: var(--ink-soft); transition: opacity 0.4s var(--ease); }
.cycler-arrow { color: var(--sky); font-weight: 700; }
.cycler-it { color: var(--iris-strong); transition: opacity 0.4s var(--ease); }
.cycler.is-swapping .cycler-en,
.cycler.is-swapping .cycler-it { opacity: 0; }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; }
.section--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--paper-3);
}

/* chips */
.chips {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chips li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--ink);
}

/* per chi lavoro */
.audience { margin-top: 3.5rem; }
.audience-title { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.card {
  padding: 1.6rem;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.card--sky .card-mark   { background: var(--sky-soft); color: oklch(0.42 0.13 235); }
.card--green .card-mark { background: var(--green-soft); color: oklch(0.42 0.12 152); }
.card--rose .card-mark  { background: var(--rose-soft); color: oklch(0.46 0.13 350); }
.card-mark svg { width: 1.5rem; height: 1.5rem; }
.card h4 { font-size: 1.28rem; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); }

/* steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.4rem;
  top: 1.5rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  background: var(--iris-strong);
  border-radius: 50%;
}
.step h3 { font-size: 1.22rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-soft); }

/* chi sono */
.chi-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.chi-text p { margin-top: 1rem; max-width: 54ch; font-size: 1.12rem; }
.chi-side { display: flex; flex-direction: column; gap: 1.25rem; }
.chi-figure { margin: 0; }
.chi-figure img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  display: block;
}
.chi-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}
.chi-quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.quote-en {
  display: block;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.72;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.quote-it {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.25;
  color: var(--iris-strong);
}

/* valori */
.values {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.value {
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.value h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
  color: var(--iris-strong);
}
.value p { color: var(--ink-soft); }
.boundary {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-3);
  border-radius: var(--r-md);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* contatti */
.section--contact { padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact-card {
  margin-top: 2.5rem;
  padding: clamp(1.8rem, 5vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lift);
  max-width: 40rem;
}
.contact-label {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.contact-email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--iris-strong);
  word-break: break-word;
}
.contact-note { margin-top: 1.1rem; color: var(--ink-soft); }
.contact-place {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 2.75rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
}
.footer-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.footer-role { color: oklch(0.82 0.04 285); font-style: italic; }
.footer-meta { text-align: right; }
.footer-copy { color: oklch(0.82 0.04 285); font-size: 0.95rem; }
.footer-credit { font-size: 0.85rem; color: oklch(0.78 0.04 285); margin-top: 0.3rem; }
.footer-credit a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--rose); }

/* ---------- Reveal on load / scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero .reveal.is-in:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal.is-in:nth-child(2) { transition-delay: 0.18s; }
.hero .reveal.is-in:nth-child(3) { transition-delay: 0.34s; }
.hero .reveal.is-in:nth-child(4) { transition-delay: 0.48s; }
.hero .reveal.is-in:nth-child(5) { transition-delay: 0.62s; }

/* =================================================================
   Breakpoint 768px+ : nav inline, griglie multicolonna
   ================================================================= */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu { gap: 0.15rem; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .chi-inner { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
}

/* =================================================================
   Menu mobile (drawer) — sotto i 768px
   ================================================================= */
@media (max-width: 767.98px) {
  .nav { position: static; }
  .nav-menu {
    position: fixed;
    inset: 4.25rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow-lift);
    transform: translateY(calc(-100% - 5rem));
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0s linear 0.34s;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.34s var(--ease), visibility 0s;
  }
  .nav-menu a {
    width: 100%;
    min-height: 52px;
    font-size: 1.1rem;
    padding-inline: 0.5rem;
  }
  .nav-cta { justify-content: center; margin-top: 0.4rem; }
}

/* =================================================================
   Reduced motion
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
