/* Photographic openings, coordinated with the approved homepage. */
.inner .mast { position:absolute; background:rgba(16,18,24,.66); }
.inner .photo-opening {
  --hero-focus:84%;
  min-height:clamp(700px,49vw,1000px);
  padding:clamp(180px,13vw,255px) 0 clamp(65px,6vw,115px);
  background:#111319;
  display:flex;
  align-items:center;
  isolation:isolate;
}
.photo-opening .inner-hero-photo {
  position:absolute;
  z-index:-3;
  inset:clamp(110px,9vw,165px) 0 0;
  width:100%;
  height:calc(100% - clamp(110px,9vw,165px));
  max-width:none;
  object-fit:cover;
  object-position:right top;
}
.photo-opening::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(90deg,rgba(13,15,21,.55) 0%,rgba(13,15,21,.32) 37%,transparent 62%),linear-gradient(0deg,rgba(17,19,25,.7),transparent 24%);
  pointer-events:none;
}
.inner .photo-opening::after { display:none; }
.photo-opening>.wrap { position:relative; z-index:1; }
.photo-opening .breadcrumb { margin-bottom:38px; max-width:54%; color:#dadce2; font-size:13px; gap:10px; }
.photo-opening .breadcrumb a { color:#fff; }
.photo-opening .breadcrumb a:hover { color:var(--red); }
.photo-opening .breadcrumb span[aria-hidden] { color:var(--red); }
.inner .photo-opening h1 { max-width:53%; font-size:clamp(48px,4.6vw,94px); line-height:1.07; font-weight:400; text-wrap:balance; }
.photo-opening .lead { max-width:46%; font-size:clamp(17px,1.35vw,23px); line-height:1.65; color:#d3d5db; margin-top:28px; }
.photo-opening[data-hero="app"] { --hero-focus:88%; }
.photo-opening[data-hero="metodo"],.photo-opening[data-hero="servizi"],.photo-opening[data-hero="visibilita"] { --hero-focus:88%; }
@media(min-width:2000px) {
  .photo-opening .inner-hero-photo { inset:165px 0 0; height:calc(100% - 165px); }
}
@media(max-width:1100px) {
  .inner .photo-opening { min-height:0; padding:350px 0 55px; display:block; }
  .photo-opening .inner-hero-photo { inset:82px 0 auto; width:100%; height:400px; object-position:var(--hero-focus) center; }
  .photo-opening::before { background:linear-gradient(180deg,rgba(17,19,25,.05) 0,rgba(17,19,25,0) 235px,rgba(17,19,25,.57) 350px,#111319 500px); }
  .photo-opening .breadcrumb { max-width:100%; margin-bottom:24px; font-size:12px; }
  .inner .photo-opening h1 { max-width:100%; font-size:clamp(40px,7.3vw,55px); line-height:1.08; overflow-wrap:normal; }
  .photo-opening .lead { max-width:540px; font-size:17px; line-height:1.6; margin-top:23px; }
}
@media(min-width:540px) and (max-width:760px) {
  .inner .photo-opening { padding-top:410px; }
  .photo-opening .inner-hero-photo { height:475px; }
  .photo-opening::before { background:linear-gradient(180deg,transparent 280px,rgba(17,19,25,.6) 410px,#111319 570px); }
}
@media(min-width:761px) and (max-width:1100px) {
  .inner .photo-opening { padding-top:460px; }
  .photo-opening .inner-hero-photo { top:105px; height:490px; object-position:right top; }
  .photo-opening::before { background:linear-gradient(180deg,transparent 290px,rgba(17,19,25,.68) 460px,#111319 615px); }
  .inner .photo-opening h1 { font-size:55px; max-width:760px; }
  .photo-opening .lead { max-width:650px; }
}

/* Each case study presents its own website on a photographed device. */
@media(min-width:1101px) {
  .inner .project-photo-opening h1 { max-width:37%; font-size:clamp(44px,3.8vw,78px); }
  .project-photo-opening .lead { max-width:34%; }
  .project-photo-opening .breadcrumb { max-width:38%; flex-wrap:wrap; }
}
@media(max-width:760px) {
  .inner .project-photo-opening { padding-top:375px; }
  .project-photo-opening .inner-hero-photo { height:310px; object-position:right center; }
  .project-photo-opening::before { background:linear-gradient(180deg,transparent 280px,rgba(17,19,25,.55) 355px,#111319 430px); }
}
@media(min-width:540px) and (max-width:760px) {
  .inner .project-photo-opening { padding-top:450px; }
  .project-photo-opening .inner-hero-photo { height:390px; }
  .project-photo-opening::before { background:linear-gradient(180deg,transparent 350px,rgba(17,19,25,.55) 430px,#111319 510px); }
}
