:root {
  --paper: #f6f0e4;
  --ink: #292824;
  --muted: #666159;
  --accent: #7a6040;
  --line: rgba(41, 40, 36, 0.16);
  --max: 46rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(246, 240, 228, 0.95);
  border-bottom: 1px solid rgba(41, 40, 36, 0.07);
  backdrop-filter: blur(8px);
}

.mini-brand {
  max-width: 13rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-button {
  width: 44px;
  height: 40px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
}
.menu-button span {
  height: 2px;
  background: var(--ink);
}

.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 14px;
  left: 14px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(41, 40, 36, 0.08);
}
.menu.is-open { display: grid; }
.menu a {
  padding: 9px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu a:last-child { border-bottom: 0; }

.landing {
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  padding: 50px 22px 34px;
}

.landing-composition {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.identity {
  position: relative;
  min-height: 225px;
  display: flex;
  align-items: flex-start;
}

h1, h2, .motto {
  font-family: "Source Serif 4", Georgia, serif;
}

h1 {
  position: relative;
  z-index: 2;
  width: 76%;
  margin: 0;
  font-size: clamp(2.55rem, 12.5vw, 4.4rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.landing-figure {
  position: absolute;
  z-index: 1;
  width: 53%;
  max-width: 228px;
  right: -8%;
  top: 34%;
  opacity: 0.50;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.motto {
  margin: 28px 0 24px;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.55rem, 7.1vw, 2.85rem);
  line-height: 1.12;
  color: #4c4841;
}

.opening {
  max-width: 35rem;
  margin: 0;
  
 
}

.continue {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 34px;
  padding-bottom: 3px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.chapter {
  padding: 60px 22px 61px;
  scroll-margin-top: 58px;
}

.chapter-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.chapter-heading {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 26px;
}

h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4.25rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
}
h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4.25rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  
}
.chapter-fragment {
  position: absolute;
  z-index: 1;
  right: -6px;
  top: -36px;
  width: 95px;
  opacity: 0.50;
  filter: saturate(0.65);
  pointer-events: none;
}

.chapter p {
  max-width: 42rem;
  margin: 0 0 1.1em;
}

.read-more, .contact-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 3px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.contacts { padding-bottom: 70px; }
.placeholder { color: var(--muted); font-style: italic; }

/* Pagine interne (chi-siamo, cosa-facciamo, il-nostro-metodo) */
.page-lead {
  max-width: 42rem;
  margin: 0 auto 44px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: calc(1.4rem + 6pt);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}

.intro-secondaria {
  font-size: calc(1.4rem + 5pt);
}

.chapter h3 {
  max-width: 42rem;
  margin: 46px 0 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.chapter h3:first-of-type { margin-top: 0; }

.chapter h4 {
  max-width: 42rem;
  margin: 26px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.info-list {
  max-width: 42rem;
  margin: 0 0 1.4em;
  padding: 14px 18px;
  background: rgba(41, 40, 36, 0.035);
  border-left: 2px solid var(--line);
  font-size: 0.92rem;
}
.info-list p { margin: 0 0 0.3em; }
.info-list p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 3px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 26px 22px 34px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

/* Desktop expansion: mobile remains the source design. */
@media (min-width: 800px) {
  body { font-size: 20px; }
  .topbar { padding-inline: 5vw; }
  .menu-button { display: none; }
  .menu {
    position: static;
    display: flex;
    gap: 1.35rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .menu a {
    padding: 0;
    font-size: 0.9rem;
    border: 0;
  }
  .landing { padding: 92px 5vw 110px; }
  .identity { min-height: 310px; }
  h1 { width: 68%; }
  .landing-figure {
    width: 48%;
    max-width: 410px;
    right: 0;
    top: 20%;
  }
  .chapter { padding: 130px 5vw; }
  .chapter-fragment { right: 8%; width: 125px; }
  footer { padding-inline: 5vw; }
}


/* CANTIERE 02.02 — immagini di sezione */
.chapter-image,
.chapter-fragment {
  position: absolute;
  z-index: 1;
  right: calc(-0.4rem + 150px - 170px);
  top: calc(-2.4rem - 20px);
  width: 8.2rem;
  max-height: 9rem;
  object-fit: contain;
  object-position: right top;
  opacity: 0.50;
  filter: saturate(0.72);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.chapter-fragment {
  width: 14.4rem;
  max-height: 15rem;
}

.image-cosa {
  width: 12rem;
  max-height: 8.3rem;
  top: -2.2rem;
  opacity: 0.50;
}

.image-metodo {
  width: 11.4rem;
  max-height: 8.5rem;
  top: -2.4rem;
  opacity: 0.50;
}

.image-unisciti {
  width: 15rem;
  max-height: 11rem;
  top: calc(-2rem - 20px);
  right: calc(-0.4rem + 150px - 50px - 170px);
  opacity: 0.50;
}

/* Il titolo deve restare chiaramente leggibile sopra la grafica. */
.chapter-heading h2 {
  max-width: 78%;
}

@media (min-width: 800px) {
  .chapter-image,
  .chapter-fragment {
    right: calc(3% + 150px);
    width: 12.6rem;
    max-height: 13.2rem;
  }
  .image-cosa { width: 18.6rem; }
  .image-metodo { width: 17.4rem; }
  .image-unisciti { width: 21.6rem; max-height: 15.6rem; right: calc(3% + 150px - 50px); }
  .chapter-fragment { width: 21.6rem; max-height: 21.6rem; }
}


/* CANTIERE 02 — assetto definitivo landing */
.landing-figure {
  top: calc(22% - 20px);
  right: -3%;
}

.calvairate {
  display: inline-block;
  transform: translateX(calc(-0.18em + 150px));
}

.line-break-desktop {
  display: none;
}

.contacts a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

@media (min-width: 800px) {
  .landing-figure {
    top: calc(10% - 20px);
    right: calc(2% + 50px);
  }

  .calvairate {
    transform: translateX(calc(-0.12em + 250px - 20px));
  }

  .line-break-desktop {
    display: inline;
  }

  h1 {
    font-size: calc(clamp(2.55rem, 12.5vw, 4.4rem) + 2pt);
  }
}
#chi-siamo h2 {
  color: #5c4a30;
}

#cosa-facciamo h2 {
  color: #7a6040;
}

#metodo h2 {
  color: #8a4a30;
}

#unisciti h2 {
  color: #6b7048;
}

#contatti h2 {
  color: #4a5a52;
}#pagina-chi-siamo .page-lead {
  color: #5c4a30;
}

#pagina-cosa-facciamo .page-lead {
  color: #7a6040;
}

#pagina-metodo .page-lead {
  color: #8a4a30;
}
