:root {
  --bg: #f3f1ea;
  --paper: #fbfaf6;
  --ink: #111111;
  --muted: #66645f;
  --line: rgba(17,17,17,.16);
  --accent: #f36a21;
  --accent-soft: #ffb38a;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.site-header {
  position: relative;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 96px;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  transform: rotate(6deg);
}

.brand-mark span {
  display: block;
  background: var(--accent);
}

.brand-mark span:nth-child(2) {
  transform: translateY(3px);
}

.brand-mark span:nth-child(3) {
  transform: translateX(3px);
}

.header-note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}

main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 96px);
  padding: clamp(56px, 8vw, 120px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.hero-kicker,
.section-label,
.project-type,
.project-status {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.hero h1 {
  margin: clamp(50px, 8vw, 110px) 0;
  max-width: 1300px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(58px, 10.8vw, 164px);
  line-height: .87;
  letter-spacing: -.07em;
  font-weight: 600;
}

.hero-line {
  display: block;
}

.accent-line {
  color: var(--accent);
  position: relative;
  width: fit-content;
}

.accent-line::after {
  content: "";
  position: absolute;
  width: clamp(8px, 1vw, 14px);
  height: clamp(8px, 1vw, 14px);
  right: -24px;
  top: 14%;
  background: var(--ink);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.hero-copy {
  max-width: 660px;
  margin: 0;
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  font-size: 14px;
}

.arrow {
  font-size: 32px;
  transition: transform .25s ease;
}

.scroll-cue:hover .arrow,
.scroll-cue:focus-visible .arrow {
  transform: translate(4px, 4px);
}

.about,
.principles,
.projects {
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin-bottom: clamp(60px, 8vw, 120px);
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 9vw, 140px);
}

.about h2,
.projects-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
}

.about h2 {
  font-size: clamp(48px, 7vw, 100px);
}

.about-copy {
  align-self: end;
  max-width: 660px;
}

.about-copy p {
  margin: 0 0 1.25em;
  font-size: clamp(19px, 1.75vw, 28px);
  line-height: 1.35;
}

.principles {
  padding-top: clamp(70px, 9vw, 130px);
}

.principle-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
}

.principle-row:last-child {
  border-bottom: 1px solid var(--line);
}

.principle-index {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.principle-row p {
  margin: 0;
  max-width: 1100px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.projects-heading {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: clamp(36px, 9vw, 120px);
  align-items: end;
  margin-bottom: clamp(50px, 7vw, 95px);
}

.projects-heading h2 {
  font-size: clamp(50px, 7.5vw, 108px);
}

.projects-heading p {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 24px);
  color: var(--muted);
}

.project-card {
  position: relative;
  display: block;
  min-height: 500px;
  padding: clamp(24px, 3vw, 46px);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(243,106,33,.95) 0 8%, transparent 8.5%),
    radial-gradient(circle at 76% 22%, rgba(255,179,138,.8) 0 13%, transparent 13.5%),
    linear-gradient(125deg, transparent 0 48%, rgba(243,106,33,.96) 48% 61%, transparent 61%),
    linear-gradient(20deg, rgba(255,255,255,.06) 0 1px, transparent 1px);
  background-size: auto, auto, auto, 24px 24px;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

.project-card::after {
  content: "N";
  position: absolute;
  right: -0.05em;
  bottom: -.32em;
  z-index: -1;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(260px, 42vw, 640px);
  line-height: 1;
  color: rgba(255,255,255,.055);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  transform: scale(1.06) rotate(-1deg);
}

.project-card:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 5px;
}

.project-card-top,
.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.project-status {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
}

.project-card-body {
  margin-top: clamp(120px, 15vw, 210px);
  display: grid;
  grid-template-columns: 1fr .65fr;
  gap: 50px;
  align-items: end;
}

.project-number {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

.project-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(64px, 9vw, 132px);
  line-height: .9;
  letter-spacing: -.065em;
}

.project-card-body p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(18px, 1.75vw, 26px);
  line-height: 1.35;
  color: rgba(255,255,255,.82);
}

.project-card-footer {
  margin-top: clamp(70px, 10vw, 150px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.26);
  font-size: 15px;
}

.project-arrow {
  font-size: 40px;
  transition: transform .25s ease;
}

.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow {
  transform: translate(5px, -5px);
}

.site-footer {
  padding: 30px var(--gutter) 42px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  font-size: 13px;
}

.site-footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer strong {
  font-family: "Space Grotesk", sans-serif;
}

.site-footer span {
  color: var(--muted);
}

.footer-meta {
  display: flex;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 78px;
  }

  .header-note {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 78px);
  }

  .hero h1 {
    font-size: clamp(56px, 17vw, 104px);
  }

  .hero-bottom,
  .about-layout,
  .projects-heading,
  .project-card-body {
    grid-template-columns: 1fr;
  }

  .hero-bottom {
    align-items: start;
  }

  .scroll-cue {
    justify-self: start;
  }

  .about-copy {
    max-width: 100%;
  }

  .principle-row {
    grid-template-columns: 46px 1fr;
    gap: 16px;
  }

  .project-card {
    min-height: 620px;
  }

  .project-card-body {
    margin-top: 130px;
  }

  .project-card-footer {
    margin-top: 90px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .brand-text {
    font-size: 13px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    margin: 52px 0 64px;
    font-size: clamp(54px, 18.5vw, 82px);
    line-height: .9;
  }

  .accent-line::after {
    right: -14px;
  }

  .hero-copy {
    font-size: 21px;
  }

  .section-label {
    margin-bottom: 50px;
  }

  .about,
  .principles,
  .projects {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .about h2,
  .projects-heading h2 {
    font-size: 50px;
  }

  .about-copy p {
    font-size: 19px;
  }

  .principle-row p {
    font-size: 30px;
  }

  .project-card {
    min-height: 600px;
    padding: 22px;
  }

  .project-card h3 {
    font-size: 60px;
  }

  .project-card-top {
    align-items: flex-start;
  }

  .project-type {
    max-width: 200px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Privacy / Cookie UI */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.footer-links a,
.footer-cookie-btn {
  font: inherit;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-cookie-btn:hover,
.footer-cookie-btn:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.footer-cookie-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  inset: auto 18px 18px 18px;
  max-width: 1180px;
  margin: 0 auto;
  background: #111;
  color: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  padding: 28px;
  align-items: end;
}

.cookie-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.62);
}

.cookie-banner h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
}

.cookie-banner p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
}

.cookie-more {
  margin-top: 10px !important;
  font-size: 13px;
}

.cookie-more a {
  color: #fff;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* Policy pages */
.policy-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px var(--gutter) 120px;
}

.policy-page h1,
.policy-page h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}

.policy-page h1 {
  font-size: clamp(54px, 8vw, 110px);
  line-height: .9;
  margin: 30px 0 60px;
}

.policy-page h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-top: 60px;
}

.policy-page p,
.policy-page li {
  font-size: 18px;
  line-height: 1.6;
}

.policy-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(243,106,33,.08);
}

.policy-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 860px) {
  .site-footer {
    align-items: flex-start;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1 1 180px;
  }
}


/* v0.5 — logo ufficiale e contatti */
.brand-logo {
  display: block;
  width: clamp(122px, 11vw, 172px);
  height: auto;
}

.brand-mark,
.brand-text {
  display: none !important;
}

.contact {
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 9vw, 140px);
  align-items: start;
}

.contact h2 {
  margin: 0;
  max-width: 760px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 7vw, 100px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 600;
}

.contact-intro {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.55vw, 24px);
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 13px;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-width: 2px;
  border-bottom-color: var(--accent);
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.form-consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-consent a,
.contact-direct a {
  color: inherit;
}

.contact-submit {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 62px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--accent);
  color: var(--ink);
}

.contact-direct {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 128px;
  }

  .contact {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .contact h2 {
    font-size: 50px;
  }
}
