/* ==========================================================================
   Officina delle Umane Relazioni — landing page
   Tutto il design nasce dai token qui sotto: cambia questi e cambia la pagina.
   ========================================================================== */

:root {
  /* Colori */
  --primary: #17476b;
  --primary-deep: #0d2f47;
  --primary-soft: #eaf0f5;
  --ink: #1c1a17;
  --sand: #e8dccb;
  --sand-soft: #f4ece1;
  --cream: #fbf8f4;
  --muted: #6b6560;
  --line: rgba(28, 26, 23, .12);

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Scala fluida: si adatta da mobile a desktop senza breakpoint */
  --step--1: clamp(.82rem, .78rem + .18vw, .92rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4:  clamp(2.6rem, 1.7rem + 4.2vw, 5.4rem);

  /* Spazi e forme */
  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 18px;
  --radius-lg: 28px;

  /* Movimento */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: .22s;
  --slow: .7s;
}

/* --------------------------------------------------------------- Reset -- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--primary); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------- Layout -- */

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); margin-bottom: .8rem; }
.section-head .lead { margin-top: 1.2rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}
.section-dark .lead { color: rgba(255, 255, 255, .72); }

.big {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -.02em;
}

/* ------------------------------------------------------ Progress bar -- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width .1s linear;
}

/* ------------------------------------------------------------ Header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
  transition: padding var(--fast) var(--ease);
}
.site-header.is-stuck .header-inner { padding-block: .7rem; }

.brand { margin-right: auto; line-height: 0; }
.brand img {
  width: clamp(150px, 18vw, 200px);
  height: auto;
  transition: transform var(--slow) var(--ease);
}
.brand:hover img { transform: scale(1.03); }

.nav { display: flex; gap: 1.8rem; }
.nav a {
  position: relative;
  padding-block: .25rem;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Menu mobile */
.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  margin: 3px auto;
  background: var(--ink);
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-1);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: 0; color: var(--primary); }

/* ------------------------------------------------------------ Bottoni -- */

.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 100px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  /* --tx/--ty sono impostate da main.js per l'effetto magnetico */
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
/* Riempimento che sale dal basso in hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary-deep);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 12px 28px -12px rgba(23, 71, 107, .55); }
.btn:active { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.97); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--cream); border-color: var(--ink); }

.btn-sm { padding: .7rem 1.4rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

/* Alone che segue il mouse: --mx/--my sono aggiornate da main.js */
.hero-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    420px circle at var(--mx, 70%) var(--my, 30%),
    rgba(23, 71, 107, .13),
    transparent 65%
  );
  pointer-events: none;
  transition: opacity var(--slow) var(--ease);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-title {
  font-size: var(--step-4);
  margin-bottom: 1.6rem;
}
.hero-title .line { display: block; }

.hero-copy .lead { max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.2rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 1.2s var(--ease);
}
.hero-media:hover img { transform: scale(1.02); }

.hero-badge {
  position: absolute;
  left: -8%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.4rem;
  background: var(--cream);
  border-radius: 100px;
  box-shadow: 0 20px 45px -22px rgba(28, 26, 23, .45);
  animation: float 6s ease-in-out infinite;
}
.hero-badge strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
}
.hero-badge span {
  font-size: var(--step--1);
  line-height: 1.3;
  color: var(--muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ------------------------------------------------------------ Marquee -- */

.marquee {
  padding-block: 1.2rem;
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  animation: scroll 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--primary);
}
.marquee i { color: var(--sand); font-style: normal; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------------------------------------------------------- Lo studio -- */

.studio-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.studio-head h2 { font-size: var(--step-3); }
.studio-body .big { max-width: 34ch; margin-bottom: 3.5rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillars li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.pillars h3 { font-size: var(--step-1); margin: .6rem 0 .5rem; }
.pillars p { font-size: var(--step--1); color: var(--muted); }
.pillar-num {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--sand);
}
.pillars li { transition: border-color var(--fast) var(--ease); }
.pillars li:hover { border-top-color: var(--primary); }
.pillars li:hover .pillar-num { color: var(--primary); }

/* ------------------------------------------------------- Il consulente -- */

.section-dark {
  background: var(--primary);
  color: #fff;
}
.section-dark h2 em { color: var(--sand); }
.section-dark .eyebrow { color: var(--sand); }
.section-dark strong { font-weight: 500; color: var(--sand); }

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.compare-col {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.compare-col:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.compare-yes { background: rgba(255, 255, 255, .12); }

.compare-col ul {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.compare-col li {
  position: relative;
  padding: .8rem 0 .8rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
}
.compare-col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, .4);
}
.compare-yes li::before { content: "→"; color: var(--sand); }

.tag {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag-no { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
.tag-yes { background: var(--sand); color: var(--primary-deep); }

.pull {
  max-width: 24ch;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--sand);
}

/* ----------------------------------------------------------- Il metodo -- */

.method-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.method-copy h2 { font-size: var(--step-3); margin: 0 0 1.4rem; }
.method-copy p { color: var(--muted); }

.method-media { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.method-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.method-media:hover img { transform: scale(1.04); }

.path {
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
}
.path-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(23, 71, 107, .18);
}
.path-head h3 { font-size: var(--step-2); margin-bottom: .4rem; }
.path-head p { font-size: var(--step--1); color: var(--muted); max-width: 52ch; }
.path-head .counter {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: .85;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 1.6rem; }
/* Il pallino sulla linea di congiunzione tra gli step */
.steps li::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 9px; height: 9px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform var(--fast) var(--ease);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 4px; left: 9px;
  width: 100%;
  height: 1px;
  background: rgba(23, 71, 107, .22);
}
.steps li:last-child::after { display: none; }
.steps li:hover::before { transform: scale(1.6); }
.steps span {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--primary);
  opacity: .5;
}
.steps h4 { font-size: var(--step-1); margin: .3rem 0 .4rem; }
.steps p { font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------- Ambiti -- */

.section-sand { background: var(--sand-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
  background: var(--primary-deep);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: transform 1s var(--ease), opacity .5s var(--ease);
}
/* Velo scuro che tiene leggibile il testo sopra la foto */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(13, 47, 71, .92) 15%, rgba(13, 47, 71, .1) 75%);
  transition: opacity var(--fast) var(--ease);
}
.card:hover img { transform: scale(1.06); opacity: .75; }

.card-body { color: #fff; }
.card-body h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.card-body p {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .8);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .35s var(--ease);
}
.card:hover .card-body p,
.card:focus-within .card-body p { max-height: 8rem; opacity: 1; }

/* ---------------------------------------------------------- Manifesto -- */

.manifesto {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 55vh, 560px);
  padding-block: var(--section-y);
  overflow: hidden;
  isolation: isolate;
}
.manifesto-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 47, 71, .72);
}
.manifesto-bg { filter: saturate(.55); }
.manifesto-inner { text-align: center; }
.manifesto p {
  max-width: 22ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}
.manifesto em { font-style: italic; color: var(--sand); }

/* ----------------------------------------------------------- Contatti -- */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.contact-copy > p { color: var(--muted); max-width: 40ch; }

.contact-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}
.contact-list span {
  min-width: 90px;
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  text-decoration: none;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color var(--fast) var(--ease);
}
.contact-list a:hover { color: var(--primary); background-size: 100% 1px; }

/* --------------------------------------------------------------- Form -- */

.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -45px rgba(28, 26, 23, .4);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.5rem 1rem .6rem;
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: var(--step-0);
  font-weight: 300;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; padding-right: 2.5rem; }
/* Freccia della select disegnata in CSS, niente immagini */
.field:has(select)::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 60%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.field label {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  font-size: var(--step-0);
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
/* Float label: sale quando il campo è compilato o attivo */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field .label-static {
  transform: translateY(-.7rem) scale(.78);
  color: var(--primary);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: var(--step--1);
  color: var(--muted);
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
/* Spunta disegnata con un pseudo-elemento ruotato */
.check .box::after {
  content: "";
  display: block;
  width: 5px; height: 9px;
  margin: 3px auto;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease);
}
.check input:checked + .box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--primary); outline-offset: 3px; }

.form-note {
  margin: 0;
  font-size: var(--step--1);
  text-align: center;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.form-note.is-ok { color: var(--primary); }

/* ------------------------------------------------------------- Footer -- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer-brand img { width: 190px; margin-bottom: 1rem; }
.footer-brand p { font-size: var(--step--1); color: var(--muted); max-width: 32ch; }

.footer-nav { display: grid; gap: .6rem; }
.footer-nav a {
  width: fit-content;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--muted);
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.footer-nav a:hover { color: var(--primary); transform: translateX(4px); }

.footer-meta { font-size: var(--step--1); color: var(--muted); }
.footer-meta p { margin-bottom: .4rem; }

/* --------------------------------------------------- Reveal on scroll -- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------- Responsive -- */

@media (max-width: 980px) {
  .hero-inner,
  .method-top,
  .contact-inner,
  .studio-inner { grid-template-columns: 1fr; }

  /* L'immagine resta in verticale come su desktop, solo con una larghezza massima */
  .hero-media { order: -1; max-width: 420px; }
  .hero-badge { left: auto; right: 6%; bottom: -22px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .site-header.is-open .mobile-nav { display: flex; }

  .field-row { grid-template-columns: 1fr; }
  .path-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .card { min-height: 300px; }
  /* Su touch non c'è hover: il testo delle card resta sempre visibile */
  .card-body p { max-height: 8rem; opacity: 1; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- Movimento ridotto -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-glow { display: none; }
}
