/* ============================================================
   langelini.it — Luigi Angelini, Senior Strategic Consultant
   Palette dal logo: blu notte + grigio perla, accento bordeaux
   ============================================================ */

:root {
  --navy: #0d2f4b;
  --navy-deep: #081d30;
  --ink: #0b0d10;
  --pearl: #e6e8ec;
  --paper: #f7f5f1;
  --white: #ffffff;
  --text: #1c2530;
  --muted: #5d6874;
  --line: rgba(13, 47, 75, .14);
  --accent: #8c2a3c;          /* bordeaux, dalla cravatta del ritratto */
  --accent-soft: #c98b96;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); color: var(--navy); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.4rem;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before {
  content: ""; display: inline-block; width: 36px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 14px;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -.01em;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font: 400 13px/1 var(--sans);
  letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--pearl); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--accent); }

/* ---------- Navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease);
}
.nav.is-scrolled { background: rgba(8, 29, 48, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav.is-scrolled .nav__inner { padding-top: 14px; padding-bottom: 14px; }

.brand { text-decoration: none; color: var(--white); display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-weight: 700;
  font-size: 19px; letter-spacing: .2em; text-transform: uppercase;
}
.brand__role {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em;
  text-transform: uppercase; margin-top: 7px; opacity: .7;
}

.nav__menu { display: flex; align-items: center; gap: 36px; }
.nav__menu a {
  color: var(--white); text-decoration: none;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid rgba(255,255,255,.45); padding: 11px 18px !important; transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--white); color: var(--navy) !important; }

.nav__toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative; z-index: 60;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--ink); color: var(--white);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero__mono {
  position: absolute; left: -2vw; bottom: -8vw; z-index: -1;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(260px, 42vw, 720px); line-height: .8;
  color: rgba(230, 232, 236, .045); letter-spacing: -.04em;
  user-select: none; pointer-events: none;
}
.hero__photo {
  position: absolute; inset: 0 0 0 auto; width: 56%; z-index: -1;
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  animation: heroZoom 2.4s var(--ease) both;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(11,13,16,.55) 22%, rgba(11,13,16,0) 50%),
    linear-gradient(0deg, rgba(11,13,16,.75) 0%, rgba(11,13,16,0) 30%);
}
.hero__content {
  grid-column: 1; padding: 140px var(--gutter) 120px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  animation: fadeUp 1.2s .2s var(--ease) both;
}
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(52px, 7.4vw, 112px); line-height: .95;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero__role {
  font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .36em; text-transform: uppercase;
  margin: 1.6rem 0 2.6rem; color: rgba(255,255,255,.82);
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18); max-width: 30rem;
}
.hero__claim {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; color: var(--pearl);
  margin-bottom: 2.6rem;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 60px;
  background: rgba(255,255,255,.18); overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: var(--white);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes heroZoom { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scrollLine { 0% { top: -30px; } 100% { top: 60px; } }

/* ---------- Pilastri ---------- */
.pillars { background: var(--navy-deep); color: var(--pearl); padding: 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar {
  padding: 56px 32px 60px; border-left: 1px solid rgba(255,255,255,.08);
  transition: background .4s var(--ease);
}
.pillar:last-child { border-right: 1px solid rgba(255,255,255,.08); }
.pillar:hover { background: rgba(255,255,255,.03); }
.pillar__n { font-family: var(--serif); font-style: italic; color: var(--accent-soft); font-size: 18px; }
.pillar h2 {
  font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--white);
  letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 16px;
}
.pillar p { font-size: 15.5px; line-height: 1.65; color: rgba(230,232,236,.72); margin: 0; }

/* ---------- Chi sono ---------- */
.about { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper); position: relative; }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); }
.about__head { position: sticky; top: 120px; align-self: start; }
.facts { margin: 56px 0 0; display: grid; gap: 26px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; border-top: 1px solid var(--line); padding-top: 18px; }
.facts dt { font-family: var(--serif); font-size: 40px; color: var(--navy); line-height: 1; }
.facts dd { margin: 0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lead {
  font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.5; color: var(--navy);
  margin-bottom: 1.6em;
}
.lead::first-letter {
  float: left; font-size: 4.4em; line-height: .82; padding: 6px 12px 0 0; color: var(--accent);
}
.about__text p:not(.lead) { color: #36424f; }
.quote {
  margin: .4em 0 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.1; color: var(--accent);
  padding-left: 28px; border-left: 2px solid var(--accent);
}

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head__sub { color: var(--muted); margin-top: 1.4rem; }
.section-head--light .h2 { color: var(--white); }
.section-head--light .section-head__sub { color: rgba(230,232,236,.65); }

/* ---------- Competenze ---------- */
.skills { padding: clamp(90px, 12vw, 160px) 0; background: var(--white); }
.skills__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.skill {
  position: relative; text-align: left; cursor: pointer;
  background: transparent; border: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 40px 34px 44px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  font: inherit; color: var(--navy); overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.skill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.skill:hover, .skill:focus-visible { color: var(--white); }
.skill:hover::before, .skill:focus-visible::before { transform: scaleY(1); }
.skill__n { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); transition: color .45s; }
.skill:hover .skill__n { color: var(--accent-soft); }
.skill__t { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.2; padding-right: 30px; }
.skill__plus { position: absolute; right: 30px; bottom: 44px; width: 16px; height: 16px; }
.skill__plus::before, .skill__plus::after {
  content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: currentColor;
  transition: transform .45s var(--ease);
}
.skill__plus::after { transform: rotate(90deg); }
.skill:hover .skill__plus::after { transform: rotate(180deg); }

/* ---------- Modal ---------- */
.modal {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; background: var(--paper); color: var(--text);
  box-shadow: 0 40px 120px rgba(0,0,0,.35);
}
.modal[open] { animation: fadeUp .5s var(--ease); }
.modal::backdrop { background: rgba(8, 29, 48, .72); backdrop-filter: blur(4px); }
.modal__body { padding: clamp(36px, 6vw, 64px); }
.modal__body h3 {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15;
  color: var(--navy); margin-bottom: 1.2em; padding-bottom: .6em; border-bottom: 1px solid var(--line);
}
.modal__body p { color: #36424f; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  background: none; border: 0; font-size: 32px; line-height: 1; color: var(--navy); cursor: pointer;
}
.modal__close:hover { color: var(--accent); }

/* ---------- Esperienze ---------- */
.work { padding: clamp(90px, 12vw, 160px) 0; background: var(--navy); color: var(--pearl); position: relative; overflow: hidden; }
.work::before {
  content: "LA"; position: absolute; right: -4vw; top: 40px;
  font-family: var(--serif); font-size: clamp(200px, 30vw, 520px); line-height: .8;
  color: rgba(255,255,255,.03); pointer-events: none;
}
.work__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.job {
  display: grid; grid-template-columns: 70px 1fr 260px; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.14);
  transition: padding .4s var(--ease), background .4s var(--ease);
}
.job:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(255,255,255,.04), transparent 70%); }
.job__n { font-family: var(--serif); font-style: italic; color: var(--accent-soft); font-size: 18px; }
.job h3 { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); color: var(--white); line-height: 1.2; margin-bottom: 8px; }
.job p { margin: 0; font-size: 16px; color: rgba(230,232,236,.7); max-width: 42rem; }
.job__tags { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(230,232,236,.5); text-align: right; }
.job--teach h3 { font-style: italic; }

/* ---------- Contatti ---------- */
.contact { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__intro p:last-child { color: var(--muted); margin-top: 1.6rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); font-weight: 400; }
.field label span { text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 300 17px/1.5 var(--sans); color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid rgba(13,47,75,.3);
  padding: 10px 0; border-radius: 0; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.consent.is-invalid span { color: var(--accent); }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.form__status { margin: 0; font-size: 15px; color: var(--navy); }
.form__status.is-error { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(230,232,236,.6); padding: 56px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; color: var(--white); line-height: 1; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.footer__nav a:hover { color: var(--white); }
.footer__copy { margin: 0; font-size: 13px; letter-spacing: .06em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-bottom: 1px solid rgba(255,255,255,.08); }
  .pillar:nth-child(2) { border-right: 1px solid rgba(255,255,255,.08); }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .job { grid-template-columns: 56px 1fr; }
  .job__tags { grid-column: 2; text-align: left; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0; background: var(--navy-deep);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav__menu a { font-size: 15px; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  /* backdrop-filter crea un containing block: lo togliamo a menu aperto */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .hero { grid-template-columns: 1fr; align-items: end; }
  .hero__photo { width: 100%; }
  .hero__photo img { object-position: 50% 15%; }
  .hero__photo::after {
    background: linear-gradient(0deg, var(--ink) 10%, rgba(11,13,16,.82) 45%, rgba(11,13,16,0) 75%);
  }
  .hero__content { padding: 50vh var(--gutter) 90px; }
  .hero__scroll { display: none; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__head { position: static; }
  .facts { margin-top: 36px; }
}

@media (max-width: 600px) {
  .pillars__grid, .skills__grid { grid-template-columns: 1fr; }
  .pillar { border-right: 1px solid rgba(255,255,255,.08); padding: 40px 24px; }
  .skill { min-height: 0; padding: 30px 24px 34px; }
  .skill__plus { right: 24px; bottom: 36px; }
  .job { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .job__tags { grid-column: 1; }
  .job:hover { padding-left: 0; }
  .form { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 90px 1fr; }
  .facts dt { font-size: 32px; }
  .brand__name { font-size: 16px; }
}

/* ---------- Link email, consenso, footer ---------- */
.mail-link {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); color: var(--navy);
  text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.mail-link:hover { color: var(--accent); }
.consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy a { text-decoration: none; }
.footer__copy a:hover { color: var(--white); }

/* ---------- Pagina informativa privacy ---------- */
.nav__back {
  color: var(--white); text-decoration: none; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase;
}
.nav__back:hover { color: var(--accent-soft); }
.legal { padding: 160px 0 110px; background: var(--paper); }
.legal__wrap { max-width: 860px; }
.legal .h2 { margin-bottom: 1.4rem; }
.legal__meta { font-size: 15px; color: var(--muted); padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.legal__toc { margin: 2.4rem 0 3.4rem; }
.legal__toc ol { columns: 2; column-gap: 40px; margin: 0; padding-left: 1.4em; font-size: 16px; }
.legal__toc li { margin-bottom: .35em; break-inside: avoid; }
.legal__toc a { color: var(--navy); text-decoration: none; }
.legal__toc a:hover { color: var(--accent); }
.legal section { margin-bottom: 3rem; scroll-margin-top: 100px; }
.legal h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); color: var(--navy);
  line-height: 1.2; margin-bottom: 1rem;
}
.legal h3 { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 1.6rem 0 .6rem; }
.legal p, .legal li { color: #36424f; font-size: 17px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; }
.legal section a { color: var(--navy); text-underline-offset: 3px; }
.legal strong { font-weight: 500; color: var(--text); }
.legal__table { border-top: 1px solid var(--line); margin: 1.2rem 0 1.6rem; }
.legal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: #36424f; }
.legal__row--head { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); font-weight: 400; }
@media (max-width: 600px) {
  .legal { padding-top: 120px; }
  .legal__toc ol { columns: 1; }
  .legal__row { grid-template-columns: 1fr; gap: 6px; }
  .legal__row--head { display: none; }
  .legal__row span:first-child { font-weight: 400; color: var(--text); }
  .nav__back { font-size: 11px; letter-spacing: .14em; }
}

/* ---------- Hero: colore di fondo uguale allo sfondo della foto ---------- */
:root { --hero-bg: #1c171e; }
.hero { background: var(--hero-bg); }
.hero__photo { top: 72px; }
.hero__photo img { object-position: 50% 0%; }
.hero__photo::after {
  background:
    linear-gradient(90deg, var(--hero-bg) 0%, rgba(28,23,30,.55) 22%, rgba(28,23,30,0) 50%),
    linear-gradient(0deg, rgba(28,23,30,.8) 0%, rgba(28,23,30,0) 30%);
}
@media (max-width: 860px) {
  .hero__photo { top: 0; }
  .hero__photo img { object-position: 50% 12%; }
  .hero__photo::after {
    background: linear-gradient(0deg, var(--hero-bg) 10%, rgba(28,23,30,.82) 45%, rgba(28,23,30,0) 75%);
  }
}

/* ---------- Hero: ruoli in linea, riquadri con titolo e testo ---------- */
.hero__role {
  font-size: clamp(11px, 1vw, 13px); letter-spacing: .2em; line-height: 1.8;
  max-width: 34rem; color: rgba(255,255,255,.78);
}
.pillar { display: flex; flex-direction: column; }
.pillar h2 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; letter-spacing: .07em; margin: 0 0 18px; }
.pillar p { font-size: 15px; }
.pillar p em { font-family: var(--serif); font-size: 1.1em; color: var(--white); }
.pillar__list { list-style: none; margin: 0; padding: 0; }
.pillar__list li {
  font-size: 15px; line-height: 1.5; color: rgba(230,232,236,.72);
  padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.pillar__list li:first-child { border-top: 0; padding-top: 0; }
/* rifiniture */
.hero__role { font-size: clamp(12px, 1.15vw, 15px); margin-bottom: 2.2rem; }
.hero__claim { margin-bottom: 0; }
.pillar__list li, .pillar__list li:first-child { border-top: 0; padding: 3px 0; }
.pillar h2 .lc { text-transform: none; }
.hero__claim { font-size: clamp(25px, 2.6vw, 35px); line-height: 1.3; color: #fff; }
.hero__role { max-width: none; font-size: clamp(11px, 1.05vw, 14px); letter-spacing: .18em; }
.hero__role .nowrap { white-space: nowrap; }
.hero__role .nowrap::after { content: "\A"; white-space: pre; }
@media (max-width: 600px) { .hero__role .nowrap { white-space: normal; } .hero__role .nowrap::after { content: none; } }
.pillar p, .pillar__list li { font-size: 17px; }
/* Chi sono: tutti i paragrafi nello stesso carattere, un po' più grande */
.about__text p, .about__text p.lead {
  font-family: var(--sans); font-weight: 400; font-size: clamp(18px, 1.5vw, 20.5px);
  line-height: 1.75; color: #2c3845; margin: 0 0 1.2em;
}
.about__text p.lead::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; line-height: inherit; }
/* Competenze senza numeri: titolo in basso nel riquadro */
.skill { justify-content: flex-end; }
.hero__claim { font-style: normal; }
/* Ruoli separati da un puntino a metà altezza */
.hero__role .sep { display: inline-block; margin: 0 .7em; color: var(--accent-soft); font-weight: 600; }
.hero__role .sep--mobile { display: none; }
@media (max-width: 600px) { .hero__role .sep--mobile { display: inline-block; } }
/* Chi sono: titolo-metodo distribuito su più righe */
.method { line-height: 1.08; }
.method__step { display: block; }
.method__step + .method__step { margin-top: .12em; }
.method__tail {
  display: block; margin-top: .9em; padding-top: .8em; border-top: 1px solid var(--line);
  font-size: .5em; font-style: italic; color: var(--accent); max-width: 14em;
}
.method__tail { font-size: 1em; font-style: normal; color: inherit; border-top: 0; padding-top: 0; margin-top: .12em; max-width: none; }
.method__key { font-weight: inherit; text-transform: uppercase; font-size: 1.25em; letter-spacing: .04em; line-height: 1; }
.method__key { font-size: 1.05em; letter-spacing: .02em; }

/* ---------- Best Practices: schede progetti ---------- */
.job__meta { font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft) !important; margin: 0 0 10px !important; line-height: 1.7; }
.job__meta .job__dot { margin: 0 .6em; opacity: .7; }
.job__more { margin-top: 14px; }
.job__more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .6em; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(230,232,236,.75); }
.job__more summary::-webkit-details-marker { display: none; }
.job__more summary::after { content: "+"; font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--accent-soft); transition: transform .3s var(--ease); }
.job__more[open] summary::after { transform: rotate(45deg); }
.job__more summary:hover { color: var(--white); }
.job__more ul { margin: 12px 0 0; padding: 0 0 0 1.1em; max-width: 42rem; }
.job__more li { font-size: 16px; color: rgba(230,232,236,.7); margin: 0 0 6px; }
.job__more li::marker { color: var(--accent-soft); }
.job__tags { letter-spacing: .03em; text-transform: none; font-size: 13px; line-height: 1.6; }
.job__tags span { display: block; overflow-wrap: anywhere; }
@media (max-width: 1080px) { .job__tags span { display: inline; margin-right: .8em; } }

/* Best Practices: champagne al posto del rosa-violetto */
.work { --accent-soft: #c9b48e; }

/* Best Practices: ruolo sotto il cliente */
.job__meta { margin: 0 0 4px !important; }
.job .job__role { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--accent-soft); margin: 0 0 12px; }
.job .job__role { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.7; }

/* Best Practices senza numerazione */
.job { grid-template-columns: 1fr 260px; }
@media (max-width: 1080px) { .job { grid-template-columns: 1fr; } .job__tags { grid-column: 1; } }
.job__tags { font-size: 15px; }

/* Bottone "Guarda le best practices" nei 4 riquadri */
.pillar__cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .7em;
  padding: 12px 18px; margin-bottom: 0; border: 1px solid rgba(201,180,142,.55);
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #c9b48e; text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pillar__cta::after { content: "→"; font-size: 14px; letter-spacing: 0; transition: transform .3s var(--ease); }
.pillar__cta:hover, .pillar__cta:focus-visible { background: #c9b48e; color: var(--navy-deep); border-color: #c9b48e; }
.pillar__cta:hover::after { transform: translateX(4px); }
.pillar__list, .pillar > p { margin-bottom: 32px !important; }

/* Barra filtri Best Practices */
.bp-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; position: relative; }
.bp-filter__b {
  font: inherit; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  padding: 10px 16px; background: transparent; color: rgba(230,232,236,.7);
  border: 1px solid rgba(255,255,255,.18); border-radius: 0;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.bp-filter__b:hover { color: var(--white); border-color: rgba(255,255,255,.45); }
.bp-filter__b.is-active { background: #c9b48e; border-color: #c9b48e; color: var(--navy-deep); }
.job[hidden] { display: none; }
@media (max-width: 600px) { .bp-filter__b { font-size: 10.5px; padding: 9px 12px; letter-spacing: .14em; } }

/* Bottone riquadri: solo scritta, senza cornice */
.pillar__cta { border: 0; padding: 6px 0; background: none; }
.pillar__cta:hover, .pillar__cta:focus-visible { background: none; color: var(--white); border: 0; }

/* Barra settori: solo scritte, senza cornici */
.bp-filter { gap: 6px 28px; }
.bp-filter__b { border: 0; padding: 6px 0; background: none; border-bottom: 1px solid transparent; }
.bp-filter__b:hover { border-color: transparent; color: var(--white); }
.bp-filter__b.is-active { background: none; color: #c9b48e; border-bottom-color: #c9b48e; }
@media (max-width: 600px) { .bp-filter { gap: 4px 20px; } .bp-filter__b { padding: 6px 0; } }

/* Chiusura: solo frase grande */
.contact--closing .contact__intro { max-width: 60rem; }
.contact__claim { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 68px); line-height: 1.12; color: var(--navy); margin: 0; }
.contact--closing .contact__intro { max-width: none; }
.contact--closing .contact__claim { font-size: clamp(32px, 3.6vw, 54px); }

.mail-link { border-bottom: 0; }

/* Tutto in Jost, tranne il nome in alto a sinistra e accanto alla fotografia */
:root { --serif: "Jost", "Futura", "Avenir Next", system-ui, sans-serif; }
.brand__name, .hero__title { font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; }

/* Prova: le scritte che erano in Bodoni ora in Jost corsivo (il nome resta in Bodoni) */
.h2,
.hero__mono,
.hero__claim,
.pillar__n,
.pillar h2,
.facts dt,
.quote,
.skill__n,
.skill__t,
.modal__body h3,
.work::before,
.job__n,
.job h3,
.mail-link,
.legal h2,
.pillar p em,
.job__more summary::after,
.contact__claim,
.method__tail { font-style: italic; }

/* Selettore lingua IT / EN */
.nav__menu a.nav__lang { font-size: 12px; letter-spacing: .16em; opacity: .75; margin-left: -12px; }
.nav__menu a.nav__lang:hover { opacity: 1; }
@media (max-width: 860px) { .nav__menu a.nav__lang { margin-left: 0; } }
