/* Revisione 24 novembre: dimensioni desktop, intestazione e menu condivisi. */
.fr {
  --fu-header-height: 96px;
}
.fr .fr-header {
  height: var(--fu-header-height) !important;
  padding-block: 24px;
}
.fr .fr-header > .container,
.fr .fr-header > .container > div { height: 100%; }
.fr .fr-header #fr-brand { display: flex; align-items: center; flex-shrink: 0; }
.fr .fr-header .fr-brand-img {
  display: block;
  width: clamp(12rem, 16vw, 16rem);
  height: 48px !important;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.fr #fr-services {
  --fu-cards-gap: 1.25rem;
  gap: var(--fu-cards-gap);
  padding-inline: 3rem;
  scroll-padding-inline: 3rem;
}
.fr #fr-services > .fr-card-slide {
  flex: 0 0 calc((100% - 3 * var(--fu-cards-gap)) / 4) !important;
  width: auto !important;
  min-width: 0;
  margin-inline: 0 !important;
}
.fr #fr-services article a > span {
  font-size: var(--fu-fit-font-size, var(--fu-editorial-size)) !important;
  overflow-wrap: normal;
}
.fr #fr-services article > div > span { column-gap: clamp(.75rem, 1.4vw, 1.5rem); }
.fr #fr-services article > div > span > .text-22 {
  font-size: clamp(14px, 1.15vw, 22px);
  line-height: 1.4;
}
.fr .fu-highlights-more { padding-top: 2.5rem; }
.fr #fr-menu nav { flex-grow: 1; justify-content: flex-start; }
.fr #fr-menu nav > ul { gap: clamp(1rem, 3vh, 2rem); }
.fr #fr-menu nav .fu-nav-link {
  display: inline-flex;
  width: auto;
  font-family: ltc-bodoni-175, serif;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.12;
  text-transform: uppercase;
}
.fr #fr-menu .fu-menu-independent {
  margin-top: clamp(2.5rem, 7vh, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 35%);
}
.fr #fr-menu .fu-menu-independent-label {
  display: block;
  margin-bottom: .75rem;
  font-family: franklin-gothic-urw, sans-serif;
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fr #fr-menu .fu-menu-independent a {
  display: inline-block;
  font-family: ltc-bodoni-175, serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  text-transform: none !important;
}
.fr .fu-opening-quote {
  --fu-quote-size: 96px;
  --fu-quote-leading: .844;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: #000;
  animation: none !important;
  transition: none !important;
}
.fr .fu-opening-quote h1.fu-opening-quote-text {
  margin: 0;
  padding: 0;
  font-family: ltc-bodoni-175, serif !important;
  font-size: var(--fu-quote-size) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: var(--fu-quote-leading) !important;
  text-transform: none !important;
  letter-spacing: normal;
  overflow-wrap: break-word;
  max-width: min(100%, 24ch);
  animation: none !important;
  transition: none !important;
  transform: none !important;
}
/* Event details belong to the title column, with the same typeface in smaller bold. */
body .fr.fr-project-opening h1 + p.fu-project-event {
  margin: 0;
  font-family: ltc-bodoni-175, serif !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: normal;
  overflow-wrap: break-word;
}
body .fr.fr-project-opening .fu-project-event strong { font: inherit; }
@media (max-width: 767px) {
  body .fr.fr-project-opening h1 + p.fu-project-event { font-size: 22px !important; }
}
.fr footer.fu-footer { background: #000; color: #fff; padding-block: 4rem 1.5rem; }
.fr .fu-footer-grid { display: grid; grid-template-columns: 1.15fr .8fr 1.15fr; gap: 3rem; align-items: start; }
.fr .fu-footer-brand-mark { display: block; width: min(100%, 20rem); aspect-ratio: 1142 / 210; overflow: hidden; }
.fr footer.fu-footer .fr-footer-logo { display: block; width: 100%; height: auto !important; max-width: none; }
.fr footer.fu-footer :is(.fr-footer-logo, .fr-footer-partners) {
  filter: grayscale(1) invert(1) brightness(1.6) !important;
  mix-blend-mode: screen;
  background: transparent;
}
.fr footer.fu-footer .fu-footer-payoff { margin: 1rem 0 0; font: 400 clamp(16px, 1.2vw, 20px) / 1.4 franklin-gothic-urw, sans-serif; }
.fr .fu-footer-nav ul { font: 400 var(--fu-editorial-size, 28px) / 1.25 ltc-bodoni-175, serif; }
.fr .fu-footer-nav li + li { margin-top: .5rem; }
.fr .fu-footer-theu { display: inline-block; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #555; font: 400 var(--fu-editorial-size, 28px) / 1.25 ltc-bodoni-175, serif; }
.fr .fu-footer-contacts { display: grid; gap: 1.5rem; font: 400 1rem / 1.5 franklin-gothic-urw, sans-serif; overflow-wrap: break-word; }
.fr .fu-footer-contacts li + li { margin-top: 1.25rem; }
.fr footer.fu-footer .fr-footer-partners { display: block; width: 120px; height: auto !important; }
.fr .fu-footer-bottom { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #555; font-size: .875rem; }
.fr .fu-works-card .fu-more-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; }
.fr .fu-works-card .fu-more-mosaic > img { position: static; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.fr .fu-more-open { appearance: none; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; box-shadow: none; font: inherit; text-align: left; cursor: pointer; }
.fr .fu-more-open::after { content: ''; position: absolute; inset: 0; }
.fr .fu-more-open:focus-visible::after { outline: 2px solid currentColor; outline-offset: 5px; }
dialog.fu-more-dialog { box-sizing: border-box; width: calc(100vw - 48px); height: calc(100dvh - 48px); max-width: none; max-height: none; margin: auto; padding: 24px; border: 1px solid #555; background: #111; color: #fff; z-index: 100001; font: 400 16px / 1.4 franklin-gothic-urw, sans-serif; }
dialog.fu-more-dialog::backdrop { background: rgb(0 0 0 / 90%); }
.fu-more-shell { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr) auto 72px; gap: 12px; }
.fu-more-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.fu-more-header h2 { margin: 0; font: 400 clamp(22px, 2vw, 32px) / 1.1 ltc-bodoni-175, serif; }
.fu-more-dialog button { appearance: none; border: 1px solid #777; border-radius: 0; background: transparent; color: #fff; min-width: 44px; min-height: 44px; padding: 4px; cursor: pointer; box-shadow: none; }
.fu-more-dialog button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fu-more-header button, .fu-more-stage > button { font: 400 32px / 1 sans-serif; }
.fu-more-stage { min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 16px; }
.fu-more-stage figure { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; margin: 0; }
.fu-more-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.fu-more-stage figcaption { text-align: center; font-size: 14px; }
.fu-more-bottom { display: flex; justify-content: space-between; gap: 1rem; font-size: 14px; }
.fu-more-thumbnails { display: flex; overflow-x: auto; overflow-y: hidden; gap: 8px; padding: 4px; scrollbar-width: thin; scrollbar-color: #777 #111; }
.fu-more-thumbnails button { flex: 0 0 80px; height: 52px; min-width: 0; padding: 2px; opacity: .65; }
.fu-more-thumbnails button[aria-pressed="true"] { opacity: 1; border-color: #fff; }
.fu-more-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fr .fu-opening-quote cite.fu-opening-quote-author {
  display: block;
  margin-top: 1.25rem;
  font-family: ltc-bodoni-175, serif !important;
  font-size: clamp(14px, 1.05vw, 18px) !important;
  font-weight: 400 !important;
  font-style: italic !important;
  line-height: 1.4 !important;
  text-transform: none;
  letter-spacing: normal;
}
.fr-reference-page > section > .container > .grid:has(.fu-opening-quote) {
  grid-template-columns: minmax(0, 1fr) !important;
}
.fr-reference-page > section > .container > .grid:has(.fu-opening-quote) > * { grid-column: 1 / -1; }
.fr-reference-page h2[id^="servizio-"] {
  scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem) !important;
}
@media (max-width: 1023px) {
  .fr .fu-opening-quote { --fu-quote-size: 43.75px; }
  .fr #fr-services > .fr-card-slide { flex-basis: calc((100% - var(--fu-cards-gap)) / 2) !important; }
  .fr .fu-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr .fu-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .fr {
    --fu-header-height: 88px;
  }
  .fr .fu-opening-quote { --fu-quote-size: clamp(32px, 10vw, 43.75px); --fu-quote-leading: 1.1; }
  .fr .fr-header .fr-brand-img { width: 170px; height: 40px !important; }
  .fr #fr-services { padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .fr #fr-services > .fr-card-slide { flex-basis: 70% !important; }
  .fr .fu-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  dialog.fu-more-dialog { width: 100vw; height: 100dvh; margin: 0; padding: 14px; border: 0; }
  .fu-more-stage { grid-template-columns: minmax(0, 1fr); position: relative; gap: 0; }
  .fu-more-stage > button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgb(0 0 0 / 60%); }
  .fu-more-stage > [data-fu-more-prev] { left: 0; }
  .fu-more-stage > [data-fu-more-next] { right: 0; }
  .fu-more-stage > figure { grid-column: 1; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .fr .fu-opening-quote { --fu-quote-size: clamp(64px, 6.6667vw, 96px); }
}

/* Editorial service rows: fine rules, quiet numbering, original wording. */
.fr.fr-reference-page .fu-reference-copy h3.fu-service-list-title {
  margin-top: 32px !important;
  margin-bottom: 0 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fr.fr-reference-page .fu-reference-copy ul.fu-service-list {
  --fu-service-row: 16px;
  counter-reset: fu-service;
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
  border-bottom: 1px solid rgb(0 0 0 / 28%);
}
.fr.fr-reference-page .fu-reference-copy ul.fu-service-list > li {
  position: relative;
  counter-increment: fu-service;
  display: block;
  min-height: 44px;
  padding: var(--fu-service-row) 0 var(--fu-service-row) 40px;
  margin: 0 !important;
  border-top: 1px solid rgb(0 0 0 / 28%);
  line-height: 1.35 !important;
}
.fr.fr-reference-page .fu-reference-copy ul.fu-service-list > li::before {
  content: counter(fu-service, decimal-leading-zero);
  position: absolute;
  top: calc(var(--fu-service-row) + 2px);
  left: 0;
  color: #555;
  font: 400 12px / 1.4 franklin-gothic-urw, sans-serif;
  letter-spacing: .02em;
}
@media (max-width: 1023px) {
  .fr.fr-reference-page .fu-reference-copy ul.fu-service-list { --fu-service-row: 12px; }
}

/* 1.7: legible back-to-top control and shared editorial subheadings. */
body .fr #fr-top {
  width: 52px !important; height: 52px !important; padding: 14px !important;
  right: 24px !important; bottom: 24px !important; border-radius: 50%;
  background: #fff !important; color: #000 !important; border: 1px solid #000 !important;
  mix-blend-mode: normal !important; box-shadow: 0 2px 12px #0002;
  display: flex; align-items: center; justify-content: center; z-index: 999;
}
body .fr #fr-top svg { color: #000 !important; width: 24px; height: 24px; flex-shrink: 0; }
body .fr #fr-top:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
body .fr.fr-reference-page :is(h2,h3),
body .fr.fr-project:not(.fr-project-opening) :is(h2,h3),
body.fu-contact-page .fu-contacts h2 { font-weight: 700 !important; }
body .fr.fr-reference-page .container:has(.fu-network-logo) {
  display: flex !important; flex-wrap: wrap; align-items: center !important;
  justify-content: center !important; gap: 24px !important;
}
body .fr.fr-reference-page .fu-network-item {
  margin: 0; flex: 0 1 180px; align-self: center !important;
  display: flex; align-items: center; justify-content: center;
}
body .fr.fr-reference-page .fu-network-link { display: flex; width: 100%; align-items: center; justify-content: center; }
body .fr.fr-reference-page img.fu-network-logo { object-position: center center !important; width: 100%; height: 112px !important; object-fit: contain !important; }
body .fr .fu-network-link:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media(max-width:767px) {
 body .fr #fr-top { right: 16px !important; bottom: 16px !important; width: 48px !important; height: 48px !important; padding: 12px !important; }
 body .fr.fr-reference-page .fu-network-item { flex-basis: calc((100% - 24px) / 2); }
}

.fr .fu-footer-company { display: grid; gap: 1.25rem; }
.fr .fu-footer-company address { margin: 0; font-style: normal; }
.fr .fu-footer-company strong { font-weight: 700; }

/* White backing for full project images, sliders and archive previews. */
body .fr.fr-project section > .container > .col-span-cms > img,
body .fr.fr-project [data-project-gallery] .fr-gallery-slide,
body .fr.fr-project [data-project-gallery] .fr-gallery-slide > img,
body .fr .fu-works-media { background: #fff !important; }

/* 1.7.3: preserve the existing title typography, let its container grow with its lines. */
body .fr.fr-hero-wrap #inizio > .container > div {
  height: auto !important;
  min-height: calc(100svh - 80px - var(--wp-admin--admin-bar--height, 0px));
  flex-wrap: nowrap;
}
body .fr .fu-project-image-link { display: block; color: inherit; }
body .fr .fu-project-image-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body .fr .fu-legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; font: 400 16px/1.5 franklin-gothic-urw, sans-serif; }
body .fr .fu-legal-links a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  body .fr.fr-hero-wrap #inizio > .container > div { min-height: 0; }
}

/* 1.8.3: fine section dividers, with existing homepage typography preserved. */
body .fr .fu-section-rule {display:block;grid-column:1/-1;flex:none;width:100%;height:0;border:0;border-top:1px solid rgba(0,0,0,.28);margin:48px 0 0;padding:0;box-sizing:border-box;}
body .fr #inizio > .fu-section-rule, body .fr #clienti > .fu-section-rule {width:calc(100% - 96px);margin-inline:48px;}
body .fr .fu-audience-more {grid-column:1;display:flex;align-items:end;margin-top:24px;}
@media(max-width:1023px){body .fr .fu-section-rule{margin-top:32px;}body .fr #inizio > .fu-section-rule,body .fr #clienti > .fu-section-rule{width:calc(100% - 32px);margin-inline:16px;}body .fr .fu-audience-more{margin-top:0;}}

body .fr #clienti > .fu-before-logos {margin-top:0;margin-bottom:48px;}
@media(max-width:1023px){body .fr #clienti > .fu-before-logos {margin-bottom:32px;}}

/* 1.8.7: equal space on either side of each homepage section rule. */
body .fr {--fu-divider-space:80px;--fu-divider-grid-gap:32px;}
body .fr #inizio > .container {margin-bottom:0!important;}
body .fr #chi {padding-top:var(--fu-divider-space)!important;margin-bottom:var(--fu-divider-space)!important;row-gap:var(--fu-divider-grid-gap)!important;}
body .fr #highlights, body .fr #clienti {margin-bottom:var(--fu-divider-space)!important;}
body .fr .fu-section-rule {margin-top:var(--fu-divider-space);margin-bottom:0;}
body .fr #chi > .fu-section-rule {margin-top:calc(var(--fu-divider-space) - var(--fu-divider-grid-gap));}
body .fr #clienti > .container {padding-bottom:0!important;}
body .fr #clienti > .fu-before-logos {margin-block:var(--fu-divider-space);}
@media(max-width:1023px){
  body .fr{--fu-divider-space:48px;--fu-divider-grid-gap:24px;}
  body .fr #inizio > .fu-section-rule,body .fr #clienti > .fu-section-rule{width:calc(100% - 28px);margin-inline:14px;}
}

/* 1.8.5: quieter subtitles in the project narrative, separate from page titles and galleries. */
body .fr.fr-project:not(.fr-project-opening) .space-y-5.my-2 > :is(h2,h3) {
  font-size:clamp(22px,1.7vw,28px)!important;
  line-height:1.28!important;
  font-weight:400!important;
  text-transform:none!important;
  letter-spacing:.01em!important;
  max-width:38ch;
  margin:0 0 1rem!important;
}
@media(max-width:767px){
  body .fr.fr-project:not(.fr-project-opening) .space-y-5.my-2 > :is(h2,h3){font-size:22px!important;line-height:1.3!important;}
}

body .fr.fr-project.fr-project-opening h1[id] + p.fu-project-event {font-size:20px!important;line-height:1.4!important;font-weight:400!important;}
@media(max-width:767px){body .fr.fr-project.fr-project-opening h1[id] + p.fu-project-event {font-size:17px!important;}}

/* 1.8.10: one continuous introduction; start its first line at the title's foot. */
body .fr.fr-project-opening .fu-project-intro {
  min-width:0;display:flex;flex-direction:column;gap:20px;
  font-size:var(--fu-editorial-size);line-height:var(--fu-editorial-leading);
}
body .fr.fr-project-opening .fu-project-intro-block {display:flex;flex-direction:column;gap:16px;}
body .fr.fr-project-opening .fu-project-intro :is(h2,h3) {
  font-size:clamp(22px,1.7vw,28px)!important;line-height:1.28!important;
  font-weight:400!important;text-transform:none!important;letter-spacing:.01em!important;
  margin:0!important;max-width:38ch;
}
body .fr.fr-project-opening .fu-project-intro-block > div {
  font-family:var(--fu-editorial-family)!important;font-size:var(--fu-editorial-size)!important;
  font-weight:400!important;line-height:var(--fu-editorial-leading)!important;
}
@media(min-width:1024px){
  body .fr.fr-project-opening section > .container {padding-bottom:16px!important;}
  body .fr.fr-project-opening section > .container > .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;
    gap:0 48px!important;align-items:start;
  }
  body .fr.fr-project-opening .grid > div:has(> h1) {display:contents;}
  body .fr.fr-project-opening .grid h1 {grid-column:1;grid-row:1;}
  body .fr.fr-project-opening .grid .fu-project-event {grid-column:1;grid-row:2;margin-top:24px!important;}
  body .fr.fr-project-opening .grid > .fu-project-intro {
    grid-column:2;grid-row:2;margin-top:-1lh;
  }
}
@media(max-width:1023px){
  body .fr.fr-project-opening .fu-project-intro :is(h2,h3){font-size:22px!important;}
}

/* Per chi: readable client marks on phones; desktop remains unchanged. */
@media (max-width:767px) {
  body .fr.fr-reference-page .fu-clients-table {table-layout:fixed;width:100%;}
  body .fr.fr-reference-page .fu-clients-table :is(th,td):first-child {width:52%;padding-right:12px;}
  body .fr.fr-reference-page .fu-clients-table :is(th,td):last-child {width:48%;padding-left:8px;}
  body .fr.fr-reference-page .fu-clients-table td {vertical-align:middle;}
  body .fr.fr-reference-page .fu-clients-table td:first-child > div {overflow-wrap:anywhere;}
  body .fr.fr-reference-page .fu-clients-table img.fu-client-logo {
    width:100%;max-width:180px;height:104px;max-height:none;
    object-fit:contain;object-position:center;margin-inline:auto;
  }
}
/* Source-reviewed project subtitles belong to the title, not the narrative. */
body .fr.fr-project-opening .fu-project-title-details {min-width:0;margin-top:20px;}
body .fr.fr-project-opening .fu-project-subtitles {display:flex;flex-direction:column;gap:8px;}
body .fr.fr-project-opening .fu-project-subtitle {
  font-family:var(--fu-editorial-family)!important;font-size:clamp(21px,1.7vw,27px)!important;
  line-height:1.3!important;font-weight:400!important;text-transform:none!important;
  letter-spacing:normal!important;margin:0!important;max-width:none;
}
body .fr.fr-project-opening .fu-project-title-details .fu-project-event {
  font-size:18px!important;line-height:1.4!important;margin:18px 0 0!important;
}
body .fr.fr-project-opening .fu-project-intro:empty {display:none;}
@media(min-width:1024px){
  body .fr.fr-project-opening .grid .fu-project-title-details {grid-column:1;grid-row:2;}
}
@media(max-width:1023px){
  body .fr.fr-project-opening .grid > div:has(> h1):has(> .fu-project-title-details) {gap:16px;}
  body .fr.fr-project-opening .fu-project-title-details {margin-top:0;}
  body .fr.fr-project-opening .fu-project-subtitle {font-size:20px!important;line-height:1.35!important;}
  body .fr.fr-project-opening .fu-project-title-details .fu-project-event {font-size:17px!important;}
}

/* 1.8.13: homepage Per chi CTA shares the final text row, like Chi. */
@media (min-width:1024px) {
  body .fr #clienti > .container > h2 {grid-column:1;grid-row:1;}
  body .fr #clienti > .container > div:not(.fu-audience-more) {grid-column:2;grid-row:1 / span 2;}
  body .fr #clienti > .container > .fu-audience-more {grid-column:1;grid-row:2;align-self:end;margin-top:0;}
}

/* 1.8.14: full column photographs retain their own proportions, without inset frames. */
body .fr.fr-project section > .container > .col-span-cms > img {
  display:block;width:100%;height:auto!important;aspect-ratio:var(--fu-photo-ratio,4/3)!important;max-height:none!important;
}
@media(min-width:1024px) {
  body .fr.fr-project [data-project-gallery] .fr-gallery-slide {
    height:min(480px,70svh);max-height:none;aspect-ratio:auto;
  }
  body .fr.fr-project [data-project-gallery] .fr-gallery-slide > img {object-position:left center;}
  body .fr.fr-project-opening .grid h1,
  body .fr.fr-project-opening .fu-project-title-details,
  body .fr.fr-project-opening .grid > div > .fu-project-event {
    position:relative;z-index:1;translate:0 var(--fu-project-title-shift,0px);
  }
}
