:root {
  --red: #c4121a;
  --red-dark: #9a0e14;
  --ink: #2c2622;
  --muted: #6a6158;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --white: #fffdf9;
  --line: #e4d9cc;
  --dark: #1c1916;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.skip-link {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip-link:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(44, 38, 34, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand__text strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
  color: var(--dark);
  line-height: 1.1;
}
.brand__text em {
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.05em;
  line-height: 1.35;
  white-space: normal;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-weight: 700;
  color: #4a433c;
  font-size: 1.18rem;
}
.nav a.is-active,
.nav a:hover { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn--riservata {
  background: var(--red);
  color: #fff;
}
.nav .btn--riservata,
.nav .btn--riservata:hover,
.btn--riservata:hover {
  color: #fff;
}
.nav .btn--riservata {
  font-weight: 800;
  font-size: 1.08rem;
  min-height: 52px;
  padding: 0 28px;
  letter-spacing: 0.02em;
}
.btn--riservata:hover { background: var(--red-dark); }
.btn--dark {
  background: var(--dark);
  color: #fff;
}
.btn--light {
  background: #fff;
  color: var(--dark);
}
.btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--dark);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7,16,24,0.18) 0%, rgba(7,16,24,0.58) 100%),
    url("/media/hero/designer.png?v=1") center/cover no-repeat;
}
.hero--banner {
  min-height: 0;
  display: block;
  background: #071018;
}
.hero__banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.hero__bar {
  padding: 22px 0 28px;
  background: #071018;
}
.hero--banner .hero__actions {
  justify-content: center;
}
.hero__inner { padding: 72px 0 80px; max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0c8c9;
  margin: 0 0 12px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 16px;
}
.hero p {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 48ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.about {
  padding: 96px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.about__copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  margin: 0 0 18px;
  line-height: 1.08;
  color: var(--dark);
}
.about__lead {
  margin: 0 0 28px;
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.45;
  color: var(--dark);
  font-weight: 600;
  max-width: 28ch;
}
.about__pillars {
  list-style: none;
  margin: 0 0 28px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 2px solid var(--dark);
  border-bottom: 1px solid var(--line);
}
.about__pillars li {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
}
.about__text {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 46ch;
}
.about__cta { margin: 28px 0 0; }
.about__media {
  margin: 0;
  background: #071018;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(28, 25, 22, 0.16);
}
.about__media img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  display: block;
}

.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }

.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 10px; }
.section__head p,
.lede { color: var(--muted); margin: 0; font-size: 1.08rem; }

.section__head--wide {
  max-width: 820px;
  margin-bottom: 48px;
}
.section__head--wide h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.15rem);
  color: var(--dark);
  margin: 0 0 16px;
  line-height: 1.12;
}
.lede-strong {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 54ch;
}
.eyebrow--on-light {
  color: var(--red);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}
.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.scope-tags li {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split img,
.photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
}
.split p { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.card--graphic {
  background: var(--white);
  border-color: var(--line);
}
.card--graphic img {
  height: 320px;
  object-fit: contain;
  object-position: center;
  background: #000;
  padding: 0;
  flex-shrink: 0;
}
.card--graphic .card__body {
  background: var(--white);
  flex: 1 1 auto;
}
.card__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.card__list li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.95rem;
}
.card__list li:last-child { margin-bottom: 0; }
.card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.cards--2 > .card--featured {
  grid-column: 1 / -1;
}
.card.card--featured {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.card.card--featured > img {
  flex: 0 0 46%;
  width: 46%;
  height: auto;
  min-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}
.card.card--featured .card__body {
  flex: 1 1 54%;
  min-width: 0;
}
.card__body { padding: 20px 22px 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 12px; }
.card p strong { color: var(--dark); font-weight: 700; }
.card:hover { box-shadow: 0 14px 34px rgba(44,38,34,0.08); }

.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.reasons li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  background: var(--dark);
  color: #fff;
  border-radius: 6px;
}
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255,255,255,0.75); }

.page-hero {
  padding: 64px 0 48px;
  background:
    linear-gradient(180deg, rgba(28,25,22,0.55), rgba(28,25,22,0.72)),
    url("/media/hero/ufficio.jpg") center/cover no-repeat;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; }
.page-hero p { margin: 0; max-width: 52ch; color: rgba(255,255,255,0.88); }

.form {
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 6px;
}
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.form input,
.form textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.form textarea { min-height: 130px; resize: vertical; }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert {
  padding: 12px 14px;
  background: #e8f2e8;
  color: #215c32;
  border-radius: 4px;
}
.alert--err { background: #f8e6e6; color: #7a1c1c; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}
.gallery-empty {
  text-align: center;
  border: 1px dashed var(--line);
  padding: 48px 20px;
  background: var(--white);
  color: var(--muted);
  border-radius: 6px;
}

.legal {
  max-width: 760px;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.legal li { margin: 0 0 6px; }
.legal a {
  color: var(--red);
  text-decoration: underline;
}
.legal__file {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding-top: 56px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.site-footer h2 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Source Sans 3", sans-serif;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.brand--footer .brand__text strong,
.brand--footer .brand__text em { color: #fff; }
.brand--footer .brand__text em { opacity: 0.7; }
.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0 22px;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer__copy p { margin: 0; }
.site-footer__links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.link-like {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.link-like:hover,
.site-footer__links a:hover { color: #fff; }

.btn--ghost-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--line);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 16px;
  pointer-events: none;
}
.cookie-banner__inner {
  pointer-events: auto;
  width: min(1120px, 100%);
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(28, 25, 22, 0.22);
  padding: 22px 24px 20px;
}
.cookie-banner h2 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.cookie-banner p a { color: var(--red); text-decoration: underline; }
.cookie-banner__copy { margin-bottom: 16px; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-prefs {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.cookie-prefs__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
}
.cookie-prefs__row strong { color: var(--dark); }
.cookie-prefs .btn { justify-self: start; }

@media (max-width: 640px) {
  .cookie-banner { padding: 10px; }
  .cookie-banner__actions .btn { flex: 1 1 140px; }
}

@media (max-width: 960px) {
  .split, .about__grid, .cards, .cards--2, .cards--4, .gallery, .site-footer__grid, .reasons, .cta {
    grid-template-columns: 1fr;
  }
  .about__media img { max-height: 480px; }
  .about__lead { max-width: none; }
  .cards--2 > .card--featured {
    grid-column: auto;
  }
  .cta { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 10px; }
  .btn--riservata { width: 100%; }
}

@media (max-width: 640px) {
  .hero:not(.hero--banner) { min-height: 64vh; }
  .brand__text strong { font-size: 1rem; }
  .brand__text em { font-size: 0.68rem; }
  .card.card--featured {
    flex-direction: column;
  }
  .card.card--featured > img {
    flex: none;
    width: 100%;
    min-height: 0;
  }
}
