/* Use the installed Helvetica Neue Medium face when available. */
@font-face {
  font-family: GBHelveticaNeueMedium;
  src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* Shared navigation updates; loaded after the existing responsive styles. */
.logo, .logo *, .navigatore_destra, .navigatore_destra *,
.navigatore_sinistra, .navigatore_sinistra *,
.foot_navigatore_destra, .foot_navigatore_destra *,
.foot_navigatore_sinistra, .foot_navigatore_sinistra * {
  font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.navigatore_destra { width: 310px; }
.navigatore_destra ul { white-space: nowrap; }
.about-page .captionnew h5 { font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; }
@media (max-width: 915px) {
  .navigatore_destra { width: 100%; left: 0; right: auto; }
  .portfolio-home .thumbhp img, .portfolio-home .thumbhp video { opacity: 1; }
}
@media (min-width: 916px) {
  .navigatore_destra { width: 310px; }
  .navigatore_sinistra { width: calc(100% - 650px); margin-left: 0; left: 325px; }
  .portfolio-home .thumbhp { position: relative; }
  .portfolio-home .thumbhp > a { display: block; position: relative; }
  .portfolio-home .thumbhp .image img, .portfolio-home .thumbhp video { opacity: 1; transition: opacity .3s ease; }
  .portfolio-home .thumbhp .caption {
    position: absolute; inset: 0; padding: 0 15px; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none; transform: none !important;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .portfolio-home .thumbhp:hover .caption, .portfolio-home .thumbhp:focus-within .caption { opacity: 1; visibility: visible; }
  .portfolio-home .thumbhp:hover .image img, .portfolio-home .thumbhp:hover video,
  .portfolio-home .thumbhp:focus-within .image img, .portfolio-home .thumbhp:focus-within video { opacity: .05; }
}

/* Project descriptions and credits retain their existing size and styling. */
.project-page p, .project-page .captionnew, .project-page .captionnew *,
.project-page .description, .project-page .description *,
.project-page .paragrafo, .project-page .paragrafo * {
  font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
}
.contact-page, .contact-page h4, .contact-page p,
.contact-page a, .contact-page label, .contact-page input,
.contact-page textarea, .contact-page button,
.contact-page input::placeholder, .contact-page textarea::placeholder {
  font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}
.about-page .captionnew h5 { letter-spacing: -1px; }
@media (min-width: 916px) {
  .portfolio-home .thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, 340px);
    gap: 120px;
    justify-content: center;
    align-items: start;
    box-sizing: border-box;
    padding: 0 30px 60px;
  }
  .portfolio-home .thumbnails .thumbhp {
    width: 340px; margin: 0; padding: 0;
    display: block; align-self: start;
  }
  .portfolio-home .thumbhp .image { line-height: 0; }
  .portfolio-home .thumbhp .image img,
  .portfolio-home .thumbhp .image video { display: block; width: 100%; height: auto; }
  .portfolio-home .thumbhp .caption {
    height: auto; width: auto;
    text-align: center; text-transform: uppercase;
  }
  .portfolio-home .thumbhp .caption * { text-transform: uppercase; }
}

/* Shared capitalization and restored portfolio filters. */
.portfolio-home .thumbhp .caption,
.portfolio-home .thumbhp .caption * { text-transform: uppercase; }
.about-page .client-list { text-transform: uppercase; }
@media (min-width: 916px) {
  .portfolio-home .navigatore_sinistra {
    left: 50%; width: 360px; margin-left: -180px;
  }
}

/* Font rendering uses live text at every display density. */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; }
.portfolio-home .filter-link { color: #000; opacity: 1; transition: opacity .2s ease; }
.portfolio-home .filter-link:hover,
.portfolio-home .filter-link:focus-visible,
.portfolio-home .filter-link.selected { color: #000; opacity: .55; }
@media (min-width: 916px) {
  .portfolio-home .container { left: 0; margin-left: 0; width: 100%; }
  .portfolio-home .thumbnails {
    --grid-side-margin: clamp(30px, calc((100vw - 1000px) / 2), 250px);
    width: calc(100% - 2 * var(--grid-side-margin));
    max-width: none; margin: 0 auto; padding: 0 0 120px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .portfolio-home .thumbnails .thumbhp { width: 100%; min-width: 0; }
}
@media (min-width: 1600px) {
  .portfolio-home .thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 916px) and (max-width: 1199px) {
  .portfolio-home .navigatore_sinistra { top: 58px; }
  .portfolio-home .bgbar { height: 98px; }
}

.portfolio-home .thumbhp .caption, .portfolio-home .thumbhp .caption * { font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; }

/* Keep geometry still while scrolling, resizing and switching categories. */
.portfolio-home .thumbhp { opacity: 1; transition: none; }
.portfolio-home .thumbhp .image img,
.portfolio-home .thumbhp .image_mobile img,
.portfolio-home .thumbhp video { transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .portfolio-home .thumbhp .caption,
  .portfolio-home .thumbhp img, .portfolio-home .thumbhp video { transition: none; }
}

/* Keep selected navigation legible and match it to hover. */
.selected, .selected a,
.logo a:hover, .navigatore_destra a:hover, .navigatore_sinistra a:hover,
.foot_navigatore_destra a:hover, .foot_navigatore_sinistra a:hover {
  color: #737373;
}
.portfolio-home .filter-link:hover,
.portfolio-home .filter-link:focus-visible,
.portfolio-home .filter-link.selected { color: #000; opacity: .55; }
.portfolio-home .navigatore_sinistra ul { white-space: nowrap; }

/* Slightly tighter biography leading; preserve font size and tracking. */
.about-page .captionnew h5 { line-height: 1.2; }
/* Mobile header: name, navigation, filters or project title. */
@media (max-width: 915px) {
  .bgbar { top: 0; height: 128px; }
  .logo, .navigatore_destra, .navigatore_sinistra {
    left: 0; right: auto; width: 100%; height: 21px;
    margin: 0; padding: 0; text-align: center;
  }
  .logo { top: 32px; }
  .navigatore_destra { top: 54px; }
  .navigatore_sinistra { top: 75px; }
  .logo h2, .logo h4, .logo p,
  .navigatore_destra h4, .navigatore_sinistra h4 { line-height: 21px; padding: 0; margin: 0; }
  .navigatore_destra ul, .navigatore_sinistra ul { margin: 0; padding: 0 10px; box-sizing: border-box; }
  .navigatore_destra ul li, .navigatore_sinistra ul li { padding: 0 5px; }
  .portfolio-home .container, .project-page .container,
  .project-page .containerintro, .project-page .container_singleimage,
  .about-page .container, .contact-page .container { top: 128px; }
}

.services-block h4 {
  font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 15px; line-height: 21px;
  letter-spacing: 0; text-transform: uppercase;
}
/* Small mobile copy is 2px smaller; retain the large biography size. */
@media (max-width: 915px) {
  .logo, .logo h2, .logo h4, .logo a,
  .navigatore_destra, .navigatore_destra *,
  .navigatore_sinistra, .navigatore_sinistra *,
  .foot_navigatore_destra, .foot_navigatore_destra *,
  .foot_navigatore_sinistra, .foot_navigatore_sinistra * { font-size: 13px; }
  .logo p { font-size: 13.5px; }
  .thumbhp .caption h4,
  .project-page .captionnew h4,
  .contact-page h4,
  .about-page .client-list,
  .services-block h4 { font-size: 13px; }
  .project-page .captionnew p,
  .project-page .description p,
  .project-page .paragrafo p { font-size: 13.5px; }
  .contact-page input, .contact-page textarea, .contact-page button { font-size: 13px; }
}

/* About project index; names are maintained in js/projects-data.js. */
.project-list-section { margin-top: 42px; }
.project-list-section h4 { margin-bottom: 18px; text-transform: uppercase; }
.project-list { margin: 0; padding: 0; list-style: none; }
.project-list li { margin: 0; padding: 0; }
.project-list a {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px;
  padding: 9px 0; text-align: left;
  font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 15px; line-height: 21px;
  letter-spacing: 0; text-transform: uppercase;
}
.project-list a:hover, .project-list a:focus-visible { color: #737373; }
.project-list span { min-width: 0; overflow-wrap: anywhere; }
.project-hover-preview {
  position: fixed; z-index: 1000; pointer-events: none;
  /* Exactly half one thumbnail in the current three-column desktop grid. */
  width: calc((100vw - 2 * clamp(30px, (100vw - 1000px) / 2, 250px) - 240px) / 6);
}
.project-hover-preview[hidden] { display: none; }
.project-hover-preview img, .project-hover-preview video {
  display: block; width: 100%; height: auto; max-height: calc(100vh - 24px);
  object-fit: contain;
}
@media (max-width: 915px) {
  .project-list-section h4, .project-list a { font-size: 13px; }
  .project-list a { grid-template-columns: 1fr 1.25fr; gap: 14px; }
  .project-hover-preview { display: none; }
  .project-page .navigatore_sinistra { height: auto; }
  .project-page .navigatore_sinistra ul { white-space: normal; }
}

/* Equal spacing between the four About content blocks. */
.about-page .services-block,
.about-page .client-list,
.about-page .project-list-section { margin: 160px 0 0; }
.about-page .services-block h4 { margin: 0; }
.project-list a { grid-template-columns: 1fr 1.5fr 1fr; }
.project-list .project-client { text-align: left; }
.project-list .project-name { text-align: center; }
.project-list .project-type { text-align: right; }
.project-list li + li { border-top: 1px solid #d9d9d9; }
@media (max-width: 915px) {
  .project-list a { grid-template-columns: 1fr 1.25fr .85fr; gap: 10px; }
}

.project-list-controls {
  display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 24px;
  margin-bottom: 8px;
}
.project-sort-button {
  grid-column: 3; justify-self: end;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 15px; line-height: 21px;
  letter-spacing: 0; color: #000; text-align: right;
}
.project-sort-button[hidden] { display: none; }
.project-sort-button:hover, .project-sort-button[aria-pressed="true"] { color: #737373; }
.project-sort-button:focus-visible { outline: 1px solid #737373; outline-offset: 4px; }
@media (max-width: 915px) {
  .project-list-controls { grid-template-columns: 1fr 1.25fr .85fr; gap: 10px; }
  .project-sort-button { font-size: 13px; }
}

/* Heading and sort control share one line, with room above the list. */
.project-list-header {
  display: grid; grid-template-columns: 1fr 1.5fr 1fr;
  gap: 24px; align-items: center; margin-bottom: 80px;
}
.project-list-header #project-list-heading { grid-column: 2; margin: 0; text-align: center; }
.project-list-header .project-list-controls { grid-column: 3; display: block; margin: 0; text-align: right; }
@media (max-width: 915px) {
  .project-list-header { grid-template-columns: 1fr 1.25fr .85fr; gap: 10px; }
}

/* Fixed sort labels and mutually exclusive selection states. */
.project-sort-client { grid-column: 1; justify-self: start; text-align: left; }
.project-sort-type { grid-column: 3; justify-self: end; text-align: right; }
.project-sort-button, .project-sort-button:hover { color: #000; }
.project-sort-button[aria-pressed="true"],
.project-sort-button[aria-pressed="true"]:hover { color: #737373; }
.about-section-label, .project-list-header #project-list-heading,
.project-sort-button { font-size: 12px; }
@media (max-width: 915px) {
  .about-section-label, .project-list-header #project-list-heading,
  .project-sort-button { font-size: 10px; }
}


/* White About and Contact backgrounds, including fixed headers. */
.about-page, .contact-page, .about-page .bgbar, .contact-page .bgbar { background-color: #ffffff; }

/* Contact form and photograph share one centered content width. */
.contact-page .captionnew,
.contact-page .container_static,
.contact-page .container_static_mobile {
  position: relative;
  left: auto;
  top: auto;
  width: calc(100% - 100px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.contact-page .captionnew .one_img { padding: 0 !important; }
.contact-page .ug-simple-contact .ug-form { max-width: none; padding: 0; }
.contact-page .container_static img,
.contact-page .container_static_mobile img { display: block; width: 100%; height: auto; }
@media (max-width: 915px) {
  .contact-page .container { width: 100%; left: 0; margin-left: 0; margin-right: 0; }
}

/* Desktop project stage; original project flow remains available on mobile. */
.project-pagination { display: flex; justify-content: space-between; gap: 24px; padding: 30px 40px; background: #fff; box-sizing: border-box; }
.project-pagination a, .stage-credits-button { font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: uppercase; color: #000; }
.project-pagination a { max-width: 44%; text-decoration: none; }
.project-pagination .project-next { text-align: right; margin-left: auto; }
.project-pagination a:hover, .stage-credits-button:hover { color: #737373; }
.stage-credits-button { display: none; border: 0; padding: 0; background: none; cursor: pointer; }
.stage-credits[hidden] { display: none !important; }
.stage-credits { position: fixed; z-index: 120; width: max-content; max-width: min(440px, calc(100vw - 48px)); max-height: calc(100dvh - 110px); overflow: auto; box-sizing: border-box; padding: 22px; background: #fff; color: #000; pointer-events: none; text-align: left; }
.stage-credits .captionnew { position: static; width: auto; margin: 0; padding: 0; text-align: left; }
.stage-credits .captionnew + .captionnew { margin-top: 18px; }
.stage-credits .captionnew * { font-size: 12px; line-height: 1.5; letter-spacing: 0; }
@media (min-width: 916px) {
  .stage-enabled { overflow: hidden; }
  .stage-enabled .stage-original { display: none !important; }
  .project-stage { position: fixed; inset: 72px 0 64px; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vh, 80px) clamp(60px, 6vw, 160px); box-sizing: border-box; }
  .stage-slide { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
  .project-stage .stage-slide > img, .project-stage .stage-slide > video, .project-stage .stage-slide > iframe { display: block; object-fit: contain; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; cursor: pointer; }
  .stage-enabled .project-pagination { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: 64px; align-items: center; padding: 16px 40px; }
  .stage-enabled .stage-credits-button { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .stage-enabled .project-pagination a { max-width: calc(50% - 80px); }
  .stage-back, .stage-forward { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #000; font: 24px Arial, sans-serif; padding: 12px; cursor: pointer; }
  .stage-back { left: 16px; } .stage-forward { right: 16px; }
  .stage-counter { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 1; }
  .stage-full-video { padding: 0; background: #000; }
  .stage-full-video .stage-slide { width: 100%; height: 100%; }
  .stage-full-video .stage-slide > video { width: 100% !important; height: 100% !important; object-fit: cover; cursor: auto; }
  .stage-full-video .stage-back, .stage-full-video .stage-forward, .stage-full-video .stage-counter { display: none; }
}
@media (max-width: 915px) {
  .project-page .project-pagination { position: relative; margin-top: 128px; padding: 30px 50px 50px; }
  .project-pagination a { font-size: 10px; }
}

@media (max-width: 915px) {
  /* Let the bottom links follow the full media stack on legacy fixed-height pages. */
  .project-page .stage-original { height: auto !important; position: relative !important; }
}
.stage-back[hidden], .stage-forward[hidden], .stage-counter[hidden] { display: none; }

/* Small labels are one pixel smaller throughout the site. */
.about-section-label, .project-list-header #project-list-heading,
.project-sort-button, .project-pagination a, .stage-credits-button,
.stage-counter, .stage-credits .captionnew * { font-size: 11px; }
.project-direction { color: #737373; }
@media (max-width: 915px) {
  .about-section-label, .project-list-header #project-list-heading,
  .project-sort-button, .project-pagination a { font-size: 9px; }
  .project-pagination .stage-counter { display: none; }
}
@media (min-width: 916px) {
  .project-stage { overflow: hidden; }
  .project-pagination .stage-counter { display: block; position: absolute; bottom: auto; left: 50%; transform: translateX(-50%); }
  .stage-enabled .project-stage .stage-credits-button { bottom: 8px; }
  .stage-back, .stage-forward { opacity: 0; pointer-events: none; transition: opacity 100ms ease-out; }
  .project-stage:hover .stage-back, .project-stage:hover .stage-forward,
  .project-stage:focus-within .stage-back, .project-stage:focus-within .stage-forward { opacity: 1; pointer-events: auto; }
  .stage-full-video .stage-back, .stage-full-video .stage-forward { display: block; color: #fff; }
  .stage-transition-overlay { z-index: 90; background-color: #fff; pointer-events: none; }
  .stage-transition-overlay.stage-full-video { background-color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-back, .stage-forward { transition: none; }
}

/* Keep the viewport width stable when moving between scrolling and stage pages. */
html { scrollbar-gutter: stable; }
html:has(body.project-page) { overflow-y: scroll; }
.project-direction { white-space: pre; }
@media (min-width: 916px) {
  /* Explicitly sized, overlapping layers prevent flex layout from resizing a slide. */
  .project-stage .stage-slide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; max-height: none; }
  .project-stage .stage-slide > img, .project-stage .stage-slide > video,
  .project-stage .stage-slide > iframe { flex: none; max-width: none; max-height: none; }
  .stage-full-video .stage-slide { width: 100% !important; height: 100% !important; }
  .stage-enabled .navigatore_sinistra .stage-credits-button { display: block; position: absolute; left: 50%; top: 24px; bottom: auto; transform: translateX(-50%); font-size: 11px; line-height: 12px; }
  .project-stage:hover .stage-back, .project-stage:hover .stage-forward,
  .project-stage:focus-within .stage-back, .project-stage:focus-within .stage-forward { opacity: 0; pointer-events: none; }
  .project-stage.pointer-left .stage-back,
  .project-stage.pointer-right .stage-forward,
  .project-stage .stage-back:focus-visible,
  .project-stage .stage-forward:focus-visible { opacity: 1; pointer-events: auto; }
}
/* Data-driven project content uses the same sequential mobile presentation. */
.project-content-slide { display: flex; justify-content: center; gap: 40px; margin-bottom: 90px; }
.project-content-slide figure { margin: 0; flex: 1; min-width: 0; }
.project-content-slide img, .project-content-slide video { display: block; width: 100%; height: auto; }
.project-content-slide figcaption { font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; margin-top: 12px; }
@media (max-width: 915px) {
  .project-content-slide { display: block; margin-bottom: 0; }
  .project-content-slide figure { margin-bottom: 90px; }
}
.stage-image-caption { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); margin: 0; max-width: 80%; font-size: 11px; text-align: center; line-height: 1.4; }
.stage-full-video .stage-image-caption { color: #fff; }
.contact-email { display: block; margin-top: 20px; }
/* Desktop template controls never alter the mobile stack. */
@media (min-width: 916px) {
  .portfolio-home .thumbnails[data-layout="grid"] { --grid-side-margin:clamp(min(30px,var(--home-max-margin,250px)),calc((100vw - 1000px)/2),var(--home-max-margin,250px));gap:var(--home-gap,120px); }
  .portfolio-home .thumbnails[data-layout="masonry"] { display:block;position:relative;width:calc(100% - 2 * min(var(--masonry-margin,60px),40vw));padding:0;margin:var(--masonry-margin,60px) auto var(--masonry-margin,60px); }
  .portfolio-home .thumbnails[data-layout="masonry"] .thumbhp { margin:0;padding:0; }
  .portfolio-home .thumbnails[data-layout="masonry"] .thumbhp:hover .image img,
  .portfolio-home .thumbnails[data-layout="masonry"] .thumbhp:hover video { opacity:.1; }
  .portfolio-home .thumbnails[data-layout="stack"] { display:flex;flex-direction:column;gap:var(--stack-gap,120px);width:100%;margin:0;padding:0 0 120px; }
  .portfolio-home .thumbnails[data-layout="stack"] .thumbhp { width:var(--stack-item-width,100%);margin:0 auto; }
  .portfolio-home .thumbnails[data-layout="stack"] .image { aspect-ratio:var(--stack-ratio,auto);overflow:hidden; }
  .portfolio-home .thumbnails[data-layout="stack"] .image img,
  .portfolio-home .thumbnails[data-layout="stack"] .image video { width:100%;height:100%;object-fit:var(--stack-fit,cover); }
}

/* Cropped uploads and display ratios are desktop-only. */
@media (min-width:916px) {
 .portfolio-home .thumbnails[data-layout="grid"] .image {aspect-ratio:var(--grid-ratio,4 / 5);overflow:hidden;}
 .portfolio-home .thumbnails[data-layout="masonry"] .image {aspect-ratio:var(--masonry-ratio,auto);overflow:hidden;}
 .portfolio-home .thumbnails[data-layout="grid"] .image img,
 .portfolio-home .thumbnails[data-layout="grid"] .image video {width:100%;height:100%;object-fit:cover;}
 .portfolio-home .thumbnails[data-layout="masonry"] .image img,
 .portfolio-home .thumbnails[data-layout="masonry"] .image video {width:100%;height:100%;object-fit:var(--masonry-fit,cover);}
 .portfolio-home .thumbnails .image img,
 .portfolio-home .thumbnails .image video {object-position:var(--home-position,50% 50%);}
}

@media (min-width:916px) {
 .portfolio-home .thumbnails[data-layout] {margin-top:var(--home-top,0px);}
}

/* Reserve thumbnail footprints before deferred media arrives. */
@media (min-width:916px) {
 .portfolio-home .thumbnails[data-layout="masonry"] .thumbhp[data-natural-ratio="true"] .image,
 .portfolio-home .thumbnails[data-layout="stack"] .thumbhp[data-natural-ratio="true"] .image {aspect-ratio:var(--media-ratio,4 / 5);}
}
@media (max-width:915px) {
 .portfolio-home .image_mobile {aspect-ratio:var(--media-ratio,4 / 5);}
 .portfolio-home .image_mobile img,.portfolio-home .image_mobile video {width:100%;height:100%;object-fit:cover;}
}

/* Consistent project titles and optional Photography navigation. */
.navigatore_destra ul { margin: 0; padding: 0; }
.navigatore_destra li { font-size: 15px; line-height: 21px; }
.navigatore_destra li + li { margin-left: 8px; }
.project-page .navigatore_sinistra .project-title {
  font-family: GBHelveticaNeueMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px; font-weight: 500; line-height: 21px; letter-spacing: 0;
  text-transform: uppercase; text-align: center; margin: 0; padding: 0;
}
.project-pagination a { display: flex; align-items: baseline; gap: 16px; }
.project-pagination .project-next { justify-content: flex-end; }
.project-direction { flex: none; white-space: nowrap; }
.project-page .project-tags p, .stage-credits .project-tags p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 11px;
  font-weight: 400; line-height: 1.5; text-transform: uppercase; letter-spacing: 0; margin: 0;
}
@media (min-width:916px) {
  .has-photography-nav .navigatore_destra { width: 435px; }
  .has-photography-nav.project-page .navigatore_sinistra { left: 285px; width: calc(100% - 760px); }
}
@media (max-width:915px) {
  .navigatore_destra li, .project-page .navigatore_sinistra .project-title { font-size:13px; }
  .navigatore_destra ul { padding:0 10px; }
  .navigatore_destra li + li { margin-left:4px; }
  .project-pagination a { gap:8px; }
}

/* Three shared type scales. Mobile reductions stay linked to desktop settings. */
:root { --gb-navigation-size:15px; --gb-large-size:36px; --gb-small-size:11px;
  --gb-nav:var(--gb-navigation-size); --gb-large:var(--gb-large-size); --gb-small:var(--gb-small-size); }
.logo, .logo *, .navigatore_destra, .navigatore_destra *,
.navigatore_sinistra .project-title,
.portfolio-home .caption, .portfolio-home .caption *,
.services-block h4, .about-page .client-list, .project-list a, .project-list a *,
.contact-page h4, .contact-page p, .contact-page a, .contact-page label,
.contact-page input, .contact-page textarea, .contact-page button {
  font-size:var(--gb-nav) !important; line-height:1.4 !important;
}
.about-page .captionnew h5, .about-page .captionnew h5 * {
  font-size:var(--gb-large) !important; line-height:1.2 !important;
}
.project-page .captionnew, .project-page .captionnew *,
.project-page .description, .project-page .description *,
.project-page .paragrafo, .project-page .paragrafo *,
.stage-credits .captionnew, .stage-credits .captionnew *,
.about-section-label, .project-list-header #project-list-heading,
.project-sort-button, .project-pagination, .project-pagination *,
.stage-credits-button, .stage-counter, .stage-image-caption,
.project-content-slide figcaption {
  font-size:var(--gb-small) !important; line-height:1.5 !important;
}
.stage-enabled .navigatore_sinistra .stage-credits-button { top:calc(var(--gb-nav) * 1.4 + 3px); }
@media (min-width:916px) {
  .navigatore_destra, .has-photography-nav .navigatore_destra { width:max-content; max-width:calc(100vw - 48px); }
}
@media (max-width:915px) {
  :root { --gb-nav:max(8px, calc(var(--gb-navigation-size) - 2px)); --gb-small:max(8px, calc(var(--gb-small-size) - 2px)); --gb-large:min(var(--gb-large-size), 9.2vw); }
  .navigatore_destra { top:calc(32px + var(--gb-nav) * 1.4 + 4px); height:auto; }
  .project-page .navigatore_sinistra { top:calc(32px + var(--gb-nav) * 2.8 + 8px); }
  .navigatore_destra ul { display:flex; flex-wrap:wrap; justify-content:center; }
}
/* A transparent header lets content pass underneath without a white mask. */
body { background-color:#fff; }
.header-overlay .bgbar { display:none !important; }
.header-overlay .logo, .header-overlay .navigatore_destra,
.header-overlay .navigatore_sinistra, .header-overlay .project-pagination { background:transparent !important; }
@media (min-width:916px) {
  .header-overlay .project-stage { inset:0; }
  .header-overlay .project-pagination { background:transparent; }
}
/* Blend whole fixed text groups against the underlying page, never the Info panel. */
.adaptive-header .logo, .adaptive-header .navigatore_destra,
.adaptive-header .navigatore_sinistra, .adaptive-header .project-pagination {
  mix-blend-mode:difference; color:#fff !important;
}
.adaptive-header .logo *, .adaptive-header .navigatore_destra *,
.adaptive-header .navigatore_sinistra *, .adaptive-header .project-pagination * {
  color:#fff !important;
}
.adaptive-header .logo a:hover, .adaptive-header .navigatore_destra a:hover,
.adaptive-header .project-pagination a:hover { opacity:.65; }

/* Identical text boxes align the name and menu, without legacy heading offsets. */
html:not(.navigation-ready) .logo,
html:not(.navigation-ready) .navigatore_destra { visibility:hidden; }
.logo > a { display:block; padding:0; margin:0; }
.logo, .navigatore_destra { padding:0; }
.navigatore_destra ul { display:flex; align-items:baseline; justify-content:flex-end; gap:8px; }
.navigatore_destra ul li { display:block; margin:0 !important; padding:0; }
.navigatore_destra a { display:block; }
@media (min-width:916px) {
  .logo, .navigatore_destra { top:24px; height:auto; }
  html:has(body.project-page) { overflow-y:hidden; scrollbar-gutter:auto; }
  .project-page .project-stage { inset:0 !important; padding:0 !important; }
  .project-page .navigatore_sinistra { top:16px; height:auto; }
  .project-page .logo, .project-page .navigatore_destra { top:16px; }
  .project-page .project-pagination { height:50px; padding:12px 24px; }
  .align-content-top .container { z-index:51; }
  .align-content-top .one_img > br { display:none; }
  .align-content-top .captionnew h5 { margin-top:0; }
}
.home-start-top .container { top:0 !important; padding-top:0 !important; margin-top:0 !important; }
.home-start-top .thumbnails { margin-top:0 !important; }
@media (hover:hover) and (pointer:fine) and (min-width:916px) {
  .edge-navigation .logo, .edge-navigation .navigatore_destra,
  .edge-navigation .navigatore_sinistra, .edge-navigation .project-pagination,
  .edge-navigation .bgbar, .edge-navigation .stage-back, .edge-navigation .stage-forward {
    opacity:0; pointer-events:none; transition:opacity 140ms ease;
  }
  .edge-navigation.edge-nav-visible .logo, .edge-navigation.edge-nav-visible .navigatore_destra,
  .edge-navigation.edge-nav-visible .navigatore_sinistra, .edge-navigation.edge-nav-visible .project-pagination,
  .edge-navigation.edge-nav-visible .bgbar,
  .edge-navigation.edge-nav-visible .stage-back, .edge-navigation.edge-nav-visible .stage-forward,
  .edge-navigation:has(:focus-visible) .logo, .edge-navigation:has(:focus-visible) .navigatore_destra,
  .edge-navigation:has(:focus-visible) .navigatore_sinistra, .edge-navigation:has(:focus-visible) .project-pagination {
    opacity:1; pointer-events:auto;
  }
}
@media(max-width:915px) {
  .navigatore_destra ul { justify-content:center; }
}
@media(prefers-reduced-motion:reduce) {
  .edge-navigation .logo,.edge-navigation .navigatore_destra,.edge-navigation .navigatore_sinistra,.edge-navigation .project-pagination {transition:none;}
}
@media(min-width:916px) {
  .about-page.align-content-top .container { width:calc(100% - 500px); left:250px; margin-left:0; }
  .about-page.align-content-top .one_img { padding-left:0 !important; padding-right:0 !important; }
}
@media(min-width:916px) {
 .about-page.align-content-top .container > .captionnew { width:100%; left:0; margin-left:0; }
}

/* Project chrome: persistent name/menu; independent edge controls. */
.project-page .bgbar { display:none !important; }
.project-page .logo, .project-page .navigatore_destra,
.project-page .navigatore_sinistra, .project-page .project-pagination {
 background:transparent !important; mix-blend-mode:difference; color:#fff !important;
}
.project-page .logo *, .project-page .navigatore_destra *,
.project-page .navigatore_sinistra *, .project-page .project-pagination * {color:#fff !important;}
.project-page .logo, .project-page .navigatore_destra {opacity:1 !important;pointer-events:auto !important;}
.project-title-trigger {font:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;border:0;padding:0;margin:0;background:transparent;cursor:pointer;}
.project-page .project-stage {background:#fff;}
.stage-transition-overlay {z-index:10 !important;background:#fff;}
.project-page .stage-back,.project-page .stage-forward {mix-blend-mode:difference;color:#fff;background:transparent;}
@media(min-width:916px) and (hover:hover) and (pointer:fine) {
 .project-page .navigatore_sinistra,.project-page .project-pagination,
 .project-page .project-stage .stage-back,.project-page .project-stage .stage-forward {
  opacity:0;pointer-events:none;transition:opacity 140ms ease;
 }
 .project-page.near-top .navigatore_sinistra,.project-page .navigatore_sinistra:focus-within,
 .project-page.near-bottom .project-pagination,.project-page .project-pagination:focus-within,
 .project-page.near-left .project-stage .stage-back,.project-page .project-stage .stage-back:focus-visible,
 .project-page.near-right .project-stage .stage-forward,.project-page .project-stage .stage-forward:focus-visible {
  opacity:1;pointer-events:auto;
 }
}
/* Outgoing layer keeps the exact viewport geometry outside the replaced body. */
.stage-transition-overlay {inset:0 !important;padding:0 !important;}
/* White bar is off by default, including the first paint; the global toggle remains. */
html.gb-white-bar-off .bgbar {display:none !important;}
.project-page:not(.header-overlay) .bgbar {display:block !important;}
.project-page:not(.header-overlay) .logo,
.project-page:not(.header-overlay) .navigatore_destra,
.project-page:not(.header-overlay) .navigatore_sinistra {mix-blend-mode:normal;color:#000 !important;}
.project-page:not(.header-overlay) .logo *,
.project-page:not(.header-overlay) .navigatore_destra *,
.project-page:not(.header-overlay) .navigatore_sinistra * {color:#000 !important;}
@media(max-width:915px) {
 .project-page .project-content-slide {padding:min(var(--project-padding,0px),25vw);box-sizing:border-box;}
}
