/* CM — rifinitura editoriale condivisa.
   Ultimo foglio della cascata: nessun contenuto, fotografia o logo sostituito.
   Le animazioni di ingresso sono gestite separatamente da motion-design.js. */
:root {
  --type-display: clamp(2.65rem, 4.6vw, 4.5rem);
  --type-section: clamp(2rem, 3.25vw, 3.35rem);
  --type-card: clamp(1.5rem, 2.05vw, 2rem);
  --space-section: clamp(3.5rem, 6.5vw, 6.5rem);
  --type-label: .75rem;
}

/* Larghezze minime esplicite: i titoli si dispongono nel layout, senza tagli. */
.page-hero-copy, .page-hero-image, .content-heading, .content-body,
.company-origin > *, .company-fields-heading > *, .company-outlook > *,
.projects-heading > *, .dialog-copy, .certificate-copy { min-width: 0; }
h1, h2, h3 { text-wrap: balance; }
.page-lead, .content-body p, .company-origin-copy p,
.solution-copy p, .company-sector p { text-wrap: pretty; }
.eyebrow { font-size: var(--type-label); letter-spacing: .15em; line-height: 1.5; }
.section-number, .sector-no, .solution-number, .company-sector-code,
.gallery-status { font-variant-numeric: tabular-nums; }
.text-link { line-height: 1.45; }

/* Aperture interne: stesso margine della pagina, foto intere e tipografia misurata. */
.inner-page .page-hero {
  width: var(--shell);
  margin-inline: auto;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.inner-page .page-hero.with-image {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: 0;
  padding-block: 48px 56px;
}
.page-hero-copy, .with-image .page-hero-copy { padding: 48px 0 56px; }
.with-image .page-hero-copy { padding: 0; }
.page-hero h1 {
  font-size: var(--type-display);
  line-height: 1.06;
  letter-spacing: -.048em;
  max-width: 24ch;
}
.with-image h1 { font-size: clamp(2.6rem, 4.15vw, 4rem); }
.page-hero .eyebrow { margin-bottom: 18px; }
.breadcrumbs { font-size: .8125rem; margin-bottom: 34px; line-height: 1.6; }
.breadcrumbs > span:last-child { min-width: 0; }
.page-lead {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  max-width: 61ch;
  margin-top: 26px;
}
.page-hero-image { align-self: center; }
.page-hero-image img {
  position: static;
  width: 100%;
  height: auto;
  max-height: 610px;
  object-fit: contain;
}
.product-hero-drawing { padding: 0; }
.product-hero-drawing figcaption { line-height: 1.6; }

/* Un numero piccolo, un titolo leggibile, una colonna di testo con misura costante. */
.content-section { padding-block: var(--space-section); gap: 30px 64px; }
.content-heading {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
.content-heading .section-number {
  flex: 0 0 24px;
  margin: 0;
  padding-top: .65em;
  font-size: .75rem;
  line-height: 1.5;
}
.content-heading h2 {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--type-section);
  line-height: 1.13;
  letter-spacing: -.04em;
}
.content-body { font-size: 1.125rem; line-height: 1.75; }
.content-body p { max-width: 65ch; }
.content-body p:last-child { margin-bottom: 0; }
.section-description { grid-column: 2; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); max-width: 44ch; }
.section-description p { margin: 4px 0 18px; }
.section-client { padding-top: 14px; border-top: 1px solid var(--line); }
.section-client span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.content-links { padding-top: 3px; }
.content-links .text-link { font-size: 1rem; min-height: 44px; }
.content-sketch {
  grid-column: 2;
  grid-row: 2;
  width: min(260px, 100%);
  max-width: 100%;
  margin: 22px 0 0;
}
.reading-intro > p:first-child { font-size: 1.125rem; line-height: 1.7; }
.reading-detail summary { min-height: 60px; padding-block: 18px; font-size: 1rem; }
.reading-detail summary > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.reading-detail summary:hover { color: #496e39; }
.reading-detail[open] summary { color: var(--ink); }
.reading-detail-copy { padding: 0 0 16px; }
.reading-facts li { min-width: min(170px, 100%); }
.media-group-heading h3, .rfx-heading h3 { line-height: 1.15; }
.page-next { padding-block: var(--space-section); }
.page-next h2 { line-height: 1.12; font-size: var(--type-section); }
.sector-page-links .text-link { font-size: 1rem; min-height: 44px; }

/* Didascalie e controlli hanno sempre una propria fascia, fuori dalla fotografia. */
.gallery-slide figcaption { padding: 16px 0; line-height: 1.6; }
.gallery-controls { padding: 16px 0 0; justify-content: flex-end; }
.gallery-controls .gallery-autoplay { font-size: .8125rem; }
.gallery-controls button { min-height: 44px; }
.gallery-thumbs { padding-inline: 0; }
.project-dialog .gallery-slide figcaption { padding-inline: 24px; }
.project-dialog .gallery-controls { padding-inline: 24px; padding-bottom: 16px; }
.project-dialog .gallery-thumbs { padding-inline: 24px; }

/* La homepage conserva cinque ambiti alla pari e un ritmo meno uniforme. */
.manifesto { padding-block: var(--space-section); }
.manifesto h2 { line-height: 1.08; }
.manifesto-copy { font-size: 1.125rem; line-height: 1.7; }
/* Titolo allineato al margine dell’elenco; numero decorativo sul lato opposto. */
.competences-intro { margin-bottom: 40px; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
.competences-intro > div { grid-column: 1; grid-row: 1; }
.competences-intro > .section-number { grid-column: 2; grid-row: 1; }
.sector-select { align-items: center; }
.sector-plus { align-self: center; line-height: 1; text-align: center; }
.sector-detail > p { line-height: 1.7; }
.home-solutions { padding-block: 38px var(--space-section); gap: 40px 30px; }
.solution-intro h2 { font-size: var(--type-section); }
.solution-copy { padding-block: 22px 20px; }
.solution-copy h3 { font-size: var(--type-card); line-height: 1.18; }
.solution-copy p { font-size: 1rem; line-height: 1.65; }
.solution-route { font-size: .875rem; min-height: 36px; }
.solution-number { font-size: .75rem; background: var(--white); }

/* Realizzazioni: l'immagine resta luminosa, il titolo ha spazio sotto di essa. */
.projects { padding-block: var(--space-section); }
.projects-heading { gap: 28px 40px; align-items: flex-end; }
.projects-heading h2, .inner-page .projects-heading h2 {
  font-size: var(--type-section);
  line-height: 1.12;
}
.project-filters { gap: 8px; }
.project-filters button { min-height: 44px; padding-inline: 16px; letter-spacing: 0; }
.filter-status { font-size: .875rem; margin-block: 18px 26px; }
.portfolio-more { gap: 16px 28px; }
.portfolio-more .text-link { font-size: .9375rem; }
.project-composition, .project-composition:has(.project[hidden]),
.inner-page .project-composition, .inner-page .project-composition:has(.project[hidden]) {
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 40px 28px;
  align-items: stretch;
}
.project { min-width: 0; border-bottom: 1px solid var(--line); }
.project figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
}
.project figure::after { content: none; }
.project figure > img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.project:hover img { transform: none; filter: none; }
.project figcaption, .inner-page .project figcaption {
  position: relative;
  inset: auto;
  flex: 1;
  padding: 22px 0 24px;
  color: var(--ink);
  background: var(--paper);
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 0 14px;
  align-content: start;
}
.project figcaption > p {
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: .6875rem;
  letter-spacing: .08em;
  line-height: 1.6;
  margin-bottom: 12px;
}
.project h3, .project-secondary h3, .project-tertiary h3, .inner-page .project h3 {
  font-size: var(--type-card);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.project-arrow {
  width: 38px;
  height: 38px;
  margin: 0;
  border-color: var(--line);
  color: var(--ink);
}
.project:hover .project-arrow { background: var(--ink); color: var(--white); }
.project figure > .gallery-count { top: 14px; left: 14px; font-size: .6875rem; }
.dialog-copy h3 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; }
.dialog-copy > p:last-child { line-height: 1.7; }

/* Azienda: i cinque disegni restano protagonisti, con testo più leggibile. */
.inner-page .page-hero-company { border-bottom: 0; padding-top: 40px; }
.page-hero-company .page-hero-copy { padding: 0; }
.page-hero-company h1 { font-size: var(--type-display); }
.page-hero-company + .company-fields { padding-bottom: var(--space-section); }
.page-hero-company + .company-fields h2 { font-size: var(--type-section); }
.company-sector { padding-top: 18px; }
.company-sector-code { font-size: .75rem; }
.company-sector h3 { font-size: clamp(1.375rem, 1.8vw, 1.75rem); line-height: 1.2; }
.company-sector p, .page-hero-company + .company-fields .company-sector p {
  font-size: 1rem;
  line-height: 1.65;
}
.company-sector-sketch { padding-block: 22px 28px; }
.company-origin { padding-block: var(--space-section); }
.company-origin h2, .company-outlook h2 { font-size: var(--type-section); line-height: 1.12; }
.company-origin-copy { font-size: 1.125rem; line-height: 1.75; }
.company-origins { gap: 18px; }
.company-origins span:not(.origin-join) { font-size: .9375rem; }
.company-mission { padding-block: var(--space-section); }
.company-mission h2 { max-width: 31ch; line-height: 1.3; }
.company-outlook { padding-block: var(--space-section); }

/* I certificati sono documenti, non pannelli verdi: carta neutra e gerarchie pulite. */
.certifications { background: #e9ece4; padding-block: var(--space-section); }
.certifications h2 { font-size: var(--type-section); line-height: 1.12; }
.certifications .certificate-grid { gap: 24px; }
.certifications .certificate-card {
  background: var(--white);
  border: 0;
  border-top: 2px solid #70876a;
}
.certificate-preview, .certificate-preview:hover { background: transparent; }
.certificate-preview { padding: 28px 28px 16px; }
.certificate-preview img { height: 260px; }
.certifications .certificate-enlarge { margin-top: 18px; font-size: .8125rem; }
.certificate-copy { padding: 20px 26px 28px; border-top: 1px solid var(--line); }
.certificate-copy h3 { font-size: 1.5rem; line-height: 1.25; }
.certificate-copy p { font-size: 1rem; line-height: 1.6; min-height: 3.2em; }
.certificate-copy a { min-height: 44px; padding-block: 10px; font-size: .875rem; }

@media (min-width: 1001px) {
  .content-section.editorial-section { gap: 22px 64px; padding-block: var(--space-section); }
  .editorial-section .content-heading h2 { font-size: clamp(1.875rem, 2.55vw, 2.5rem); }
  .inner-page .page-hero-company, .page-hero-company + .company-fields {
    width: min(1480px, calc(100% - 80px));
  }
}

@media (max-width: 1000px) {
  :root { --type-display: clamp(2.5rem, 5.3vw, 3.5rem); --space-section: 64px; }
  .inner-page .page-hero.with-image { gap: 32px; padding-block: 38px 44px; }
  .with-image h1 { font-size: clamp(2.35rem, 4.5vw, 3.25rem); }
  .page-hero-copy { padding-block: 38px 44px; }
  .page-lead { font-size: 1.125rem; }
  .content-section { gap: 28px 36px; }
  .content-heading h2 { font-size: clamp(1.875rem, 3.7vw, 2.5rem); }
  .content-body { font-size: 1.0625rem; }
  .company-fields-heading, .page-hero-company + .company-fields .company-fields-heading { gap: 32px; }
  .company-sector-grid { gap: 36px 28px; }
  .company-sector-sketch { max-width: 260px; }
  .company-sector p, .page-hero-company + .company-fields .company-sector p { font-size: .9375rem; }
  .projects-heading, .inner-page .projects-heading { flex-direction: column; align-items: flex-start; }
  .project-filters { justify-content: flex-start; }
}

.site-navigation .nav-cta[aria-current="page"] { color: var(--white); }

@media (max-width: 420px) {
  .company-sector-grid { grid-template-columns: minmax(0, 1fr); }
  .company-sector-sketch { max-width: 300px; margin-inline: auto; }
}

@media (max-width: 600px) {
  :root { --type-display: clamp(2.35rem, 10.5vw, 3.2rem); --type-section: clamp(1.9rem, 8.6vw, 2.65rem); --type-card: 1.55rem; --space-section: 48px; }
  .inner-page .page-hero.with-image { gap: 28px; padding-block: 28px 34px; }
  .page-hero-copy, .with-image .page-hero-copy { padding: 0; }
  .inner-page .page-hero:not(.with-image):not(.page-hero-company) { padding-block: 28px 34px; }
  .page-hero h1, .page-hero-company h1 { font-size: var(--type-display); letter-spacing: -.045em; line-height: 1.08; }
  .page-hero .eyebrow { margin-bottom: 14px; }
  .breadcrumbs { margin-bottom: 24px; font-size: .75rem; gap: 8px; }
  .page-lead { font-size: 1.0625rem; margin-top: 22px; line-height: 1.65; }
  .page-hero-image { height: auto; width: 100%; }
  .page-hero-image img { height: auto; max-height: none; }
  .product-hero-drawing { padding: 0 0 10px; }
  .content-section { gap: 22px; }
  .content-heading { grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; }
  .content-heading h2 { font-size: var(--type-section); }
  .content-heading .section-number { flex-basis: 22px; padding-top: .5em; }
  .content-sketch { width: min(160px, 100%); margin: 18px 0 0; }
  .content-body, .reading-intro > p:first-child { font-size: 1.0625rem; }
  .content-links .text-link, .sector-page-links .text-link { font-size: .9375rem; }
  .reading-detail-copy { font-size: 1rem; }
  .reading-facts ul { gap: 16px; }
  .gallery-slide figcaption { padding: 14px 0; font-size: .8125rem; }
  .gallery-controls { gap: 10px; padding-top: 12px; }
  .gallery-controls .gallery-autoplay { min-width: 82px; padding-inline: 6px; font-size: .75rem; }
  .gallery-status { min-width: 52px; }
  .home-solutions { gap: 32px; padding-top: 24px; }
  .solution-intro h2 { font-size: var(--type-section); }
  .solution-copy h3 { font-size: 1.65rem; }
  .solution-copy { padding-top: 18px; }
  .projects-heading { margin-bottom: 14px; }
  .project-filters button { padding-inline: 12px; font-size: .8125rem; }
  .project-composition, .project-composition:has(.project[hidden]),
  .inner-page .project-composition, .inner-page .project-composition:has(.project[hidden]) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .project figure, .project-secondary figure, .project-tertiary figure { height: 100%; }
  .project figcaption, .inner-page .project figcaption { padding-block: 18px 22px; }
  .dialog-copy { padding: 24px 20px; }
  .dialog-copy h3 { font-size: 2rem; }
  .project-dialog .gallery-controls { padding-inline: 16px; }
  .inner-page .page-hero-company { padding-block: 28px 22px; }
  .page-hero-company + .company-fields { padding-top: 12px; }
  .company-sector-grid { gap: 30px 20px; }
  .company-sector h3 { font-size: 1.375rem; }
  .company-sector-sketch { padding-block: 20px; }
  .company-sector p, .page-hero-company + .company-fields .company-sector p { font-size: .9375rem; }
  .company-fields-heading > p, .page-hero-company + .company-fields .company-fields-heading > p { font-size: 1.0625rem; }
  .company-origins { gap: 10px; }
  .company-origins span:not(.origin-join) { font-size: .875rem; }
  .company-mission h2 { font-size: 1.875rem; }
  .certificate-preview img { height: 250px; }
  .certificate-copy { padding-inline: 22px; }
  .certificate-copy p { min-height: 0; }
  .page-next { align-items: flex-start; }
}

/* Download area shared by every page. */
.brochure-section{display:grid;grid-template-columns:1fr 1fr;gap:24px 64px;padding-block:72px;border-top:1px solid var(--line);}
.brochure-section>header,.brochure-section>div:first-child{align-self:start}
.brochure-section h2{font-size:clamp(34px,4vw,56px);font-weight:400;line-height:1.08;letter-spacing:-.045em;margin:12px 0 28px}
.brochure-section h3{font-size:clamp(23px,2.2vw,30px);font-weight:500;line-height:1.2;margin:0 0 18px}
.brochure-section article{padding:32px;background:#e5e9df;border-top:2px solid #526d40}
.brochure-section article p{line-height:1.6;max-width:52ch}
.brochure-section article a{display:inline-flex;margin:12px 24px 0 0;font-size:16px;line-height:1.5}
.brochure-section>.text-link{grid-column:2;justify-self:start}
@media(max-width:700px){.brochure-section{grid-template-columns:1fr;gap:20px;padding-block:46px}.brochure-section>.text-link{grid-column:1}.brochure-section article{padding:24px}.brochure-section h2{margin-bottom:8px}}

.content-body{min-width:0;overflow-wrap:anywhere}.brochure-actions .button{background:#17352e;color:#f0f0e8;padding:14px 20px}

.content-heading:not(:has(>.section-number)){grid-template-columns:minmax(0,1fr);row-gap:14px}
.content-heading:not(:has(>.section-number))>h2,.content-heading:not(:has(>.section-number))>.eyebrow{grid-column:1;grid-row:auto;margin:0}
.legacy-media{padding-bottom:48px}

.site-footer .footer-links{display:flex;flex-wrap:wrap;gap:4px 22px;max-width:310px;font-size:14px;line-height:1.5}
.site-footer .footer-links a{display:inline-flex;align-items:center;min-height:40px;text-decoration:underline;text-underline-offset:5px}
@media(max-width:700px){.site-footer .footer-links{max-width:100%;grid-column:1/-1}}

/* HOME PORTFOLIO OVERVIEW START — indice completo, indipendente dalle schede */
.portfolio-overview {
  color: #f1f1e8;
  background: #173b31;
  padding-block: clamp(3.5rem, 7vw, 7rem);
  margin-block: var(--space-section);
  scroll-margin-top: 110px;
}
.portfolio-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.portfolio-overview-intro { min-width: 0; }
.portfolio-overview .eyebrow { color: #c8e587; margin: 0 0 1.4rem; }
.portfolio-overview h2 {
  margin: 0 0 1.25rem;
  font-size: var(--type-section);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.portfolio-overview-intro > p:not(.eyebrow) {
  max-width: 35ch;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.65;
  color: #d8e2d9;
  margin-bottom: 2.2rem;
}
.portfolio-overview-all {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  padding-block: .8rem;
  border-bottom: 1px solid #c8e587;
  color: #f1f1e8;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.portfolio-overview-all > span { color: #c8e587; font-size: 1.45rem; }
.portfolio-overview-index { min-width: 0; }
.portfolio-overview-total {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 1.6rem;
  color: #c8e587;
}
.portfolio-overview-total > strong {
  font-size: clamp(4rem, 7vw, 6.25rem);
  line-height: .9;
  font-weight: 400;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.portfolio-overview-total > span { color: #d8e2d9; font-size: .9rem; line-height: 1.45; }
.portfolio-overview-routes { border-top: 1px solid #ffffff35; }
.portfolio-overview-route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 4.2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid #ffffff35;
  color: #f1f1e8;
  text-decoration: none;
}
.portfolio-overview-route::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #c8e587;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.portfolio-overview-label {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  transition: transform .3s ease;
}
.portfolio-overview-count { color: #cfdecd; font-size: .85rem; font-variant-numeric: tabular-nums; }
.portfolio-overview-arrow { color: #c8e587; font-size: 1.6rem; line-height: 1; }
.portfolio-overview-route:is(:hover,:focus-visible)::after { transform: scaleX(1); }
.portfolio-overview-route:is(:hover,:focus-visible) .portfolio-overview-label { transform: translateX(.45rem); }
.portfolio-overview a:focus-visible { outline: 2px solid #c8e587; outline-offset: 5px; }
@media (max-width: 760px) {
  .portfolio-overview-layout { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .portfolio-overview-total { margin-bottom: 1.5rem; }
  .portfolio-overview-route { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-overview-route::after, .portfolio-overview-label { transition: none; }
  .portfolio-overview-route:is(:hover,:focus-visible) .portfolio-overview-label { transform: none; }
}
body.motion-paused .portfolio-overview-route::after,
body.motion-paused .portfolio-overview-label { transition: none; }
/* HOME PORTFOLIO OVERVIEW END */
