@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap");

:root {
  --bg: oklch(13.5% 0.012 245);
  --panel: oklch(17.8% 0.014 235);
  --panel-alt: oklch(21% 0.018 230);
  --gold: oklch(84% 0.105 88);
  --gold-soft: oklch(94% 0.06 92);
  --line: oklch(84% 0.022 220 / 0.14);
  --line-strong: oklch(84% 0.022 220 / 0.3);
  --text: oklch(95% 0.01 210);
  --text-2: oklch(74% 0.018 220);
  --muted: oklch(57% 0.018 225);
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --kicker: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --edge: clamp(24px, 5vw, 88px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.material-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--edge);
  background: linear-gradient(180deg, rgba(5, 8, 9, 0.94), rgba(5, 8, 9, 0.56) 72%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px) saturate(120%);
}

.material-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

.material-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.material-brand strong,
.material-brand small {
  display: block;
  line-height: 1.05;
}

.material-brand strong {
  font-family: var(--display);
  font-size: 1rem;
}

.material-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.material-switcher {
  display: flex;
  align-items: center;
  gap: 28px;
}

.material-switcher a {
  padding: 12px 0;
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.material-switcher a:hover,
.material-switcher a[aria-current="page"] {
  color: var(--text);
  border-color: var(--gold);
}

.material-menu-button {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.material-menu-button span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.material-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 150px var(--edge) clamp(72px, 11vh, 118px);
  overflow: hidden;
  isolation: isolate;
}

.material-hero__media,
.material-hero__media img,
.material-hero__veil {
  position: absolute;
  inset: 0;
}

.material-hero__media {
  z-index: -2;
  margin: 0;
}

.material-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.02;
  animation: material-breathe 14s ease-in-out infinite alternate;
}

.material-hero__veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 7, 8, 0.92), rgba(4, 7, 8, 0.48) 46%, rgba(4, 7, 8, 0.08) 76%),
    linear-gradient(180deg, rgba(4, 7, 8, 0.08), rgba(4, 7, 8, 0.78));
}

@keyframes material-breathe {
  to { scale: 1.065; }
}

.material-hero__copy {
  position: relative;
  z-index: 2;
  width: min(780px, 70vw);
}

.eyebrow,
.material-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-family: var(--kicker);
  font-size: 0.64rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before,
.material-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.material-hero h1 {
  max-width: 10ch;
  margin-top: 20px;
  font-size: clamp(4rem, 9vw, 9.5rem);
  line-height: 0.88;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.46);
}

.material-hero__lead {
  max-width: 47ch;
  margin-top: 28px;
  color: oklch(86% 0.014 220);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.material-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(236, 240, 236, 0.22);
  color: var(--text-2);
  font-size: 0.69rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.material-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(48px, 10vw, 160px);
  padding: clamp(110px, 13vw, 190px) var(--edge);
  border-bottom: 1px solid var(--line);
}

.material-index {
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6rem);
}

.material-intro h2 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: 0.98;
}

.material-intro__text > p {
  max-width: 62ch;
  margin-top: 30px;
  color: var(--text-2);
  font-size: 1.02rem;
}

.material-specs {
  padding: clamp(92px, 11vw, 156px) var(--edge);
  background: var(--panel);
}

.material-specs__head {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 48px;
  align-items: end;
}

.material-specs h2 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5.5vw, 5.8rem);
  line-height: 0.98;
}

.material-specs__head p {
  max-width: 48ch;
  justify-self: end;
  color: var(--text-2);
}

.spec-ledger {
  margin-top: clamp(60px, 8vw, 108px);
  border-top: 1px solid var(--line-strong);
}

.spec-ledger > div {
  display: grid;
  grid-template-columns: 80px minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.spec-ledger span {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.spec-ledger dt {
  font-family: var(--display);
  font-size: 1.25rem;
}

.spec-ledger dd {
  color: var(--text-2);
}

.material-use {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  min-height: 680px;
  border-bottom: 1px solid var(--line);
}

.material-use__media {
  min-height: 600px;
}

.material-use__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84);
}

.material-use__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 100px);
}

.material-use h2 {
  max-width: 11ch;
  margin-top: 18px;
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  line-height: 0.98;
}

.material-use p {
  max-width: 45ch;
  margin-top: 28px;
  color: var(--text-2);
}

.material-use ul {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.material-use li {
  padding: 14px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}

.material-next {
  padding: clamp(96px, 12vw, 164px) var(--edge);
  text-align: center;
}

.material-next h2 {
  max-width: 15ch;
  margin: 18px auto 0;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  line-height: 0.96;
}

.material-next__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 60px auto 0;
  border: 1px solid var(--line);
}

.material-next__links a {
  padding: 30px;
  color: var(--text-2);
  border-right: 1px solid var(--line);
  transition: color 220ms var(--ease), background 220ms var(--ease);
}

.material-next__links a:last-child {
  border-right: 0;
}

.material-next__links a:hover {
  color: var(--text);
  background: var(--panel);
}

.material-next__links strong,
.material-next__links span,
.material-next__links small {
  display: block;
}

.material-next__links strong,
.material-next__links span {
  font-family: var(--display);
  font-size: 1.45rem;
}

.material-next__links small {
  margin-top: 6px;
  color: var(--muted);
}

.material-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 60px var(--edge);
  background: var(--gold);
  color: oklch(18% 0.018 88);
}

.material-cta h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.material-cta a {
  flex: 0 0 auto;
  padding: 15px 24px;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.material-footer {
  padding: 36px var(--edge);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.material-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px var(--edge) 34px;
  color: var(--text);
  background: rgba(5, 8, 9, 0.97);
  visibility: hidden;
  opacity: 0;
  transition: opacity 320ms var(--ease), visibility 0s 320ms;
}

body.menu-open .material-menu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.material-menu__top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.material-menu__close {
  color: var(--text-2);
  background: none;
  border: 0;
}

.material-menu nav {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.material-menu nav a {
  padding: clamp(20px, 4vh, 38px) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: 1;
}

.material-menu nav a:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 42px;
}

.material-menu nav a:nth-child(even) {
  padding-left: 42px;
}

.material-menu nav a:hover {
  color: var(--gold-soft);
}

.material-menu__foot {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 800ms var(--ease), translate 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  translate: 0;
}

@media (max-width: 820px) {
  .material-nav {
    grid-template-columns: 1fr auto;
    height: 74px;
  }

  .material-switcher {
    display: none;
  }

  .material-hero {
    min-height: 90svh;
    padding: 120px 24px 76px;
  }

  .material-hero__copy {
    width: 100%;
  }

  .material-hero h1 {
    max-width: 9ch;
    font-size: clamp(3.5rem, 20vw, 6rem);
  }

  .material-hero__veil {
    background: linear-gradient(180deg, rgba(4, 7, 8, 0.24), rgba(4, 7, 8, 0.34) 34%, rgba(4, 7, 8, 0.92) 84%);
  }

  .material-intro,
  .material-specs__head,
  .material-use {
    grid-template-columns: 1fr;
  }

  .material-intro {
    gap: 34px;
    padding: 88px 24px;
  }

  .material-specs {
    padding: 82px 24px;
  }

  .material-specs__head p {
    justify-self: start;
  }

  .spec-ledger > div {
    grid-template-columns: 42px 1fr;
  }

  .spec-ledger dd {
    grid-column: 2;
  }

  .material-use__media {
    min-height: 78vw;
  }

  .material-use__copy {
    padding: 72px 24px;
  }

  .material-next {
    padding: 84px 24px;
  }

  .material-next__links {
    grid-template-columns: 1fr;
  }

  .material-next__links a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .material-next__links a:last-child {
    border-bottom: 0;
  }

  .material-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 50px 24px;
  }

  .material-menu nav {
    grid-template-columns: 1fr;
  }

  .material-menu nav a,
  .material-menu nav a:nth-child(odd),
  .material-menu nav a:nth-child(even) {
    padding: 17px 0;
    border-right: 0;
    font-size: clamp(1.9rem, 10vw, 3.2rem);
  }

  .material-menu__foot {
    gap: 12px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .material-hero__media img { animation: none; }
  .reveal { opacity: 1; translate: 0; transition: none; }
}

/* Luxury Style editorial system v3 — shared with Azienda */
:root {
  --void: #0b0c0b;
  --panel: #171817;
  --paper: #f3f2ee;
  --panel-2: #d8d7d2;
  --text: #f4f2ed;
  --muted: #73746e;
  --gold: #c5a04a;
  --line: rgba(20, 21, 20, 0.16);
  --edge: clamp(24px, 6vw, 92px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body { color: var(--void); background: var(--paper); font-family: var(--sans); }
.material-nav { min-height: 88px; padding-inline: var(--edge); color: var(--text); background: linear-gradient(180deg, rgba(5, 6, 5, .88), rgba(5, 6, 5, .12)); }
.material-nav a, .material-brand strong { color: var(--text); }
.material-brand img { width: 36px; height: 36px; }
.material-brand strong { font-family: var(--sans); font-weight: 300; letter-spacing: -.03em; }
.material-brand small { font-family: var(--sans); color: rgba(255,255,255,.55); }
.material-switcher a { font-family: var(--sans); }
.material-hero { min-height: 94svh; }
.material-hero h1, .material-hero__lead, .material-hero__meta { color: var(--text); }
.material-hero h1, .material-intro h2, .material-specs h2, .material-use h2, .material-next h2, .material-cta h2 { font-family: var(--sans); font-weight: 300; letter-spacing: -.055em; }
.material-hero h1 { font-size: clamp(5rem, 13vw, 12rem); }
.material-eyebrow, .material-index { font-family: var(--sans); color: var(--gold); }
.material-intro { background: var(--paper); color: var(--void); padding-inline: var(--edge); }
.material-intro__text p, .material-specs__head p, .material-use__copy p { color: #4f514d; }
.material-specs { background: var(--panel-2); color: var(--void); padding-inline: var(--edge); }
.material-specs__head p { color: #555752; }
.spec-ledger { border-color: rgba(20,21,20,.2); }
.spec-ledger > div { border-color: rgba(20,21,20,.2); }
.spec-ledger dt { color: var(--void); font-family: var(--sans); font-weight: 300; }
.spec-ledger dd { color: #555752; }
.material-use__copy { background: var(--void); color: var(--text); padding-inline: var(--edge); }
.material-use__copy p, .material-use__copy li { color: rgba(255,255,255,.66); }
.material-next { background: var(--paper); color: var(--void); padding-inline: var(--edge); }
.material-next__links { grid-template-columns: repeat(3, 1fr); border-color: var(--line); }
.material-next__links a { border-color: var(--line); }
.material-next__links span { font-family: var(--sans); font-weight: 400; }
.material-next__links small { color: #73746e; }
.material-cta { background: var(--gold); color: var(--void); padding-inline: var(--edge); }
.material-cta a { border-color: var(--void); }
.material-footer { background: var(--void); color: rgba(255,255,255,.58); padding-inline: var(--edge); }
.material-menu { background: rgba(11,12,11,.98); }
.material-menu nav a { font-family: var(--sans); font-weight: 300; letter-spacing: -.05em; }
@media (max-width: 820px) {
  .material-brand img { width: 58px; height: 46px; }
  .material-next__links { grid-template-columns: 1fr; }
}

.material-brand img { width: 88px; height: 64px; object-fit: contain; }
@media (max-width: 820px) { .material-brand img { width: 72px; height: 54px; } }
.material-brand img { width: 76px; height: 64px; object-fit: contain; }
@media (max-width: 820px) { .material-brand img { width: 62px; height: 54px; } }

/* Shared brand lockup: never crop or stretch the Emmesse mark. */
.material-brand img { width: 78px; height: 64px; object-fit: contain; flex: 0 0 auto; }
@media (max-width: 820px) { .material-brand img { width: 64px; height: 52px; } }

/* Shared Luxury Style typography: titles Raleway, body Lato. */
:root { --display: "Raleway", "Helvetica Neue", Arial, sans-serif; --body: "Lato", "Helvetica Neue", Arial, sans-serif; --kicker: "Lato", "Helvetica Neue", Arial, sans-serif; }
body, button, input, textarea, select { font-family: var(--body); }
h1, h2, h3, h4, h5, h6, .material-brand strong, .material-menu nav a { font-family: var(--display); }

/* Final shared type lock: Raleway headings, Lato body copy. */
:root { --display: "Raleway", "Helvetica Neue", Arial, sans-serif; --body: "Lato", "Helvetica Neue", Arial, sans-serif; --kicker: "Lato", "Helvetica Neue", Arial, sans-serif; --sans: "Lato", Arial, sans-serif; }
body, button, input, textarea, select { font-family: var(--body) !important; }
.material-hero h1, .material-intro h2, .material-specs h2, .material-use h2, .material-next h2, .material-cta h2,
.material-menu nav a, .material-brand strong { font-family: var(--display) !important; }

/* ---------------- Eyebrow and small print on the light chapters ----------------
   The bright gold reads at ~2:1 on paper/grey; the light sections take the
   darker gold, and the smallest grey copy is lifted to a readable value. */
.material-intro .material-eyebrow,
.material-intro .material-index,
.material-specs .material-eyebrow,
.material-specs .material-index,
.material-specs span,
.material-next .material-eyebrow,
.material-next .material-index { color: #7d6526; }

.material-next__links small { color: #55564f; }

/* ==================== Scala tipografica allineata alla homepage ====================
   L'hero era a 187px contro gli 86px della home. Stessa scala della homepage. */
.material-hero h1 { font-size: clamp(3.2rem, 6vw, 6.35rem); }
.material-hero__lead { font-size: 1.02rem; }

.material-intro h2,
.material-specs h2,
.material-use h2,
.material-next h2,
.material-cta h2 { font-size: clamp(2.8rem, 5.8vw, 6rem); }

/* Lineetta oro sotto i titoli di sezione, come nel resto del sito. */
.material-intro h2::after,
.material-specs h2::after,
.material-use h2::after,
.material-next h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 22px;
  background: var(--gold);
}
.material-cta h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 22px;
  background: rgba(11, 12, 11, .78);
}
