/* The studio index and project spreads share one paper, ink and type scale. */
.home-page main > .section {
  --section-paper: #f5f6ef;
  --section-ink: #142c23;
  --section-muted: #495a50;
  --section-rule: #bdc7b8;
  --section-lime: #d9f39d;
  padding-block: clamp(3.8rem, 6.5vw, 6.6rem);
}
.home-page .section h2 {
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 540;
  line-height: .99;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.home-page .section .label {
  margin: 0 0 1.15rem;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .1em;
}
.home-page .section .section-head > p:not(.label) { max-width: 39ch; }
.home-page .editorial-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  color: inherit;
  font-weight: 640;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.home-page .editorial-link:hover { text-decoration-thickness: 2px; }

.home-page #servizi, .home-page #chi-siamo, .home-page #faq {
  color: var(--section-ink);
  background: var(--section-paper);
}
.service-directory__grid, .process-grid, .project-archive {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2rem, 7.2vw, 7rem);
}
.home-page .service-directory__intro { margin: 0; }
.home-page .service-directory__intro h2 { max-width: 8ch; }
.home-page .service-directory__intro p:not(.label) { margin-top: 1.25rem; }
.service-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--section-ink);
  list-style: none;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(.95rem, 1.65vw, 1.45rem) .2rem;
  border-bottom: 1px solid var(--section-rule);
  color: var(--section-ink);
  text-decoration: none;
}
.service-row h3, .home-page .story__step h3 {
  font-size: clamp(1.24rem, 2.05vw, 2rem);
  font-weight: 550;
  letter-spacing: -.048em;
}
.service-row p { margin: .24rem 0 0; color: var(--section-muted); line-height: 1.45; }
.directory-chevron {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--section-rule);
  border-radius: 50%;
}
.directory-chevron::before {
  content: "";
  width: .44rem;
  height: .44rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateX(-1px) rotate(45deg);
}
.service-row:is(:hover, :focus-visible) .directory-chevron { background: var(--section-lime); border-color: var(--section-lime); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-row > div { transition: transform .24s ease; }
  .service-row:hover > div { transform: translateX(.35rem); }
}

.home-page #lavori { background: #e7ebe1; color: var(--section-ink); }
.home-page #lavori .section-head { margin-bottom: clamp(1.4rem, 2.8vw, 2.7rem); }
.portfolio { border-top: 1px solid var(--section-rule); }
.portfolio-cover__action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.35rem, 1vw, .8rem);
  min-width: 5.8rem;
  min-height: 44px;
  padding: .25rem 0 .25rem .25rem;
  border: 0;
  background: transparent;
  color: var(--section-ink);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.portfolio-cover__action:is(:hover, :focus-visible) .directory-chevron {
  background: var(--section-lime);
  border-color: #92ae78;
}
@media (max-width: 480px) {
  .portfolio-cover__action {
    flex-direction: column-reverse;
    justify-content: center;
    gap: .2rem;
    min-width: 44px;
    padding-inline: 0;
    font-size: .8rem;
  }
}
.portfolio-alternatives ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; padding: 0; list-style: none; }
.portfolio-alternatives figcaption { margin-top: .4rem; }
.project-archive {
  margin-top: clamp(3.6rem, 6vw, 6rem);
  padding-top: clamp(1.35rem, 2.3vw, 2.2rem);
  border-top: 1px solid var(--section-ink);
}
.project-archive__intro h3, .home-page .people h3 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 555;
  letter-spacing: -.045em;
}
.project-archive__intro p { margin-top: .55rem; color: var(--section-muted); }
.project-archive details { border-bottom: 1px solid var(--section-rule); }
.project-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 620;
  line-height: 1.4;
}
.project-archive details:first-child summary { padding-top: 0; }
.project-archive summary::-webkit-details-marker { display: none; }
.project-archive summary small {
  display: block;
  margin-bottom: .2rem;
  color: var(--section-muted);
  font-size: .8125rem;
  font-weight: 480;
}
.project-archive summary::after { content: "+"; font-size: 1.45rem; font-weight: 400; }
.project-archive [open] summary::after { content: "−"; }
.project-archive__description { padding: 0 1.5rem 1rem 0; color: var(--section-muted); }
.project-archive__description a { display: inline-block; padding-top: .5rem; color: var(--section-ink); }

.home-page #metodo {
  background: linear-gradient(106deg, rgb(16 41 29 / 86%), #142c23 58%), url("../img/vetro-verde-960.webp") left center / cover;
  color: #f4f7ed;
}
.home-page #metodo .section-head { margin: 0; }
.home-page #metodo .section-head p:not(.label) { margin-top: 1.35rem; }
.home-page #metodo .story__steps { display: block; border-top: 1px solid #829284; }
.home-page #metodo .story__step {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: .8rem;
  padding: clamp(.95rem, 1.55vw, 1.45rem) 0;
  border: 0;
  border-bottom: 1px solid #52675a;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .story__n {
  display: block;
  width: auto;
  height: auto;
  padding-top: .24rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--section-lime);
  background: transparent;
  font-variant-numeric: tabular-nums;
  font-weight: 530;
}
.home-page .story__step h3 { margin-bottom: .28rem; }
.home-page .story__step p { font-size: 1rem; line-height: 1.5; }
.home-page .founder {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.3rem, 8vw, 8rem);
}
.home-page .founder__portrait img {
  aspect-ratio: 4/4.3;
  max-height: 38rem;
  border-radius: 0;
  box-shadow: none;
}
.home-page .founder__body h2 { max-width: 10ch; }
.home-page .founder__body .founder__role { margin: 1.15rem 0 1.45rem; }
.home-page .founder__body .founder__cred, .home-page .person__cred { font-size: .875rem; }
.home-page .people { gap: clamp(1.5rem, 5vw, 5rem); }
.home-page .people > * {
  padding: clamp(1rem, 1.7vw, 1.6rem) 0 0;
  border: 0;
  border-top: 1px solid var(--section-rule);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.home-page .tech { background: #1c382d; }
.home-page .tech__image { border: 0; border-radius: 0; }
.home-page .tech__image img { aspect-ratio: 1448 / 702; object-fit: contain; }
.home-page .tech__image figcaption { border-radius: 2px; font-size: .78rem; }
.home-page .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 7.2vw, 7rem); }
.home-page .faq-grid h2 { max-width: 12ch; }
.home-page .faq summary { padding-block: 1.15rem; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 585; }
.home-page #contatto { background: #142c23; }
.home-page .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.home-page .contact__grid h2 { max-width: 12ch; }
.home-page .contact .form {
  border: 1px solid #d2dbc5;
  border-radius: 8px;
  background: var(--section-paper);
  box-shadow: none;
}
.home-page .form__head { margin-bottom: 1.5rem; }
.home-page .form__head h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 555; }
.home-page .form .field :is(input, textarea, select) { border-radius: 4px; }

@media (max-width: 760px) {
  .service-directory__grid, .process-grid, .project-archive, .home-page .faq-grid,
  .home-page .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .home-page .service-directory__intro h2, .home-page .faq-grid h2 { max-width: none; }
  .home-page .section .section-head { margin-bottom: 0; }
  .home-page .section .section-head > p:not(.label) { max-width: 51ch; }
  .home-page .founder { gap: 1.5rem; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
  .home-page .founder__portrait img { aspect-ratio: 3/4; }
}
@media (max-width: 580px) {
  .home-page .founder, .home-page .people { grid-template-columns: minmax(0, 1fr); }
  .home-page .founder__portrait img { aspect-ratio: 1.08; max-height: 26rem; }
  .home-page .founder__body h2 { max-width: none; }
}

.home-page .audience { background: #e8eddf; color: var(--section-ink); }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.audience__grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid #a2b39e;
  padding-top: 1.15rem;
}
.audience__grid h3, .national__work dt {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 575;
}
.audience__grid p { margin: .8rem 0 1.1rem; color: var(--section-muted); }
.audience__grid .editorial-link { margin-top: auto; }
.home-page .national { background: var(--section-paper); color: var(--section-ink); }
.national .section-head > p { margin-top: 1.35rem; }
.national__work { margin: 0; }
.national__work > div { border-top: 1px solid var(--section-rule); padding: 1.15rem 0; }
.national__work dd { margin: .6rem 0 0; max-width: 62ch; color: var(--section-muted); }
.national__work dd a { color: var(--section-ink); }
.national__work dd .editorial-link { display: flex; width: fit-content; margin-top: .2rem; }
.audience__grid .editorial-link, .national__work dd a { text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 760px) {
  .audience__grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .audience__grid p { margin-bottom: .2rem; }
}

.practice-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.practice-intro p:not(.label), .practice-intro blockquote { max-width: 60ch; }
.practice-intro blockquote { margin: 1.4rem 0 0; padding-left: 1rem; border-left: 2px solid #75956a; color: var(--section-muted); }
.practice-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem; margin: clamp(2rem, 5vw, 4.5rem) 0;
}
.practice-facts > div { display: flex; flex-direction: column-reverse; justify-content: end; gap: .4rem; border-top: 1px solid var(--section-rule); padding-top: 1rem; }
.practice-facts dd { margin: 0; font-size: clamp(1.8rem, 3.3vw, 3.4rem); letter-spacing: -.06em; line-height: 1; }
.practice-facts dt { font-size: .95rem; color: var(--section-muted); }
.home-page #team-title { font-size: clamp(2rem, 3.4vw, 3.4rem); margin-bottom: 1.6rem; }
.home-page .founder__body h3 { font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -.055em; }
.home-page .energy { background: #e6eddf; color: var(--section-ink); }
.energy .editorial-link { text-decoration: underline; }
@media (max-width: 760px) {
  .practice-intro { grid-template-columns: 1fr; }
  .practice-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
