:root{
  --ink:#ffffff;
  --paper:#413e39;
  --line: rgba(255,255,255,.18);
  --max: 1380px;
  --gutter: 48px;
  --sab: env(safe-area-inset-bottom);
}

@font-face{
  font-family: "Maria Custom";
  src: url("assets/Maria-Custom.woff2") format("woff2"),
       url("assets/Maria-Custom.otf") format("opentype");
  font-display: swap;
}
*{font-weight: 100;}
*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  background: var(--paper);
  height:auto;
  min-height:100%;
}
body{
  margin:0;
  color: var(--ink);
  font-family: "Maria Custom", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline:auto;
}

.progettiPage{
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
}

@media (hover: none) and (pointer: coarse){
  html, body{
    overflow-x: hidden;
    max-width: 100%;
  }

  .progettiPage{
    overflow-x: hidden;
    max-width: 100%;
  }
}

.h1{
  font-size: clamp(40px, 5vw, 78px);
  line-height:1.02;
  margin: 10px 0 0;
  text-align: center;
  font-weight: 100;
  text-shadow: 0 6px 24px rgba(0,0,0,.40);
}
.home .h1{
  font-size: clamp(24px, 3vw, 47px);
  text-align: left;
  white-space: nowrap;
  margin: 0;
}

.home .heroContent .container{
  width: 100%;
  margin-inline: 0;
  padding-left: clamp(10px, 1.2vw, 18px);
  padding-right: clamp(10px, 1.2vw, 18px);
}
.heroSlider{
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
}

.heroSlider::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0));
  z-index: 1;
  pointer-events:none;
}

.heroSlides{
  position:absolute;
  inset:0;
  z-index: 0;
}

body.home .heroSlider .heroSlides:not(:first-of-type){
  display: none;
}

.heroSlide{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 84s infinite;
}

.heroSlide.s1{ background-image: url("assets/architettura/casa-c/arch4_14.webp"); animation-delay: 0s; }
.heroSlide.s2{ background-image: url("assets/architettura/complesso-residenziale-udine-progetto/arch7_hero.webp"); animation-delay: 6s; }
.heroSlide.s3{ background-image: url("assets/architettura/casa-bb-codroipo-progetto/arch2_1.webp"); animation-delay: 12s; }
.heroSlide.s4{ background-image: url("assets/architettura/casa-bp-campoformido/arch3_1.webp"); animation-delay: 18s; }
.heroSlide.s5{ background-image: url("assets/architettura/uffici-fusine-valromana/arch14_7.webp"); animation-delay: 24s; }
.heroSlide.s6{ background-image: url("assets/architettura/centro-commerciale-udine-progetto/arch5_hero.webp"); animation-delay: 30s; }
.heroSlide.s7{ background-image: url("assets/architettura/centro-yoga-milano-marittima-progetto/arch6_hero.webp"); animation-delay: 36s; }
.heroSlide.s8{ background-image: url("assets/architettura/format-hamburgeria-milano-progetto/arch9_hero.webp"); animation-delay: 42s; }
.heroSlide.s9{ background-image: url("assets/architettura/uffici-pordenone-progetto/arch15_hero.webp"); animation-delay: 48s; }
.heroSlide.s10{ background-image: url("assets/architettura/studio-dentistico-udine/arch13_hero.webp"); animation-delay: 54s; }
.heroSlide.s11{ background-image: url("assets/architettura/shis-vicenza-ristorante-giapponese/arch18_5.webp"); animation-delay: 60s; }
.heroSlide.s12{ background-image: url("assets/architettura/shis-scalo-milano-ristorante-giapponese/arch20_2.webp"); animation-delay: 66s; }
.heroSlide.s13{ background-image: url("assets/architettura/format-pizzeria-dubai-progetto/arch10_4.webp"); animation-delay: 72s; }
.heroSlide.s14{ background-image: url("assets/architettura/uffici-abramo-impianti-udine/arch16_11.webp"); animation-delay: 78s; }

.heroOverlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.52) 0%,
    rgba(0,0,0,.22) 45%,
    rgba(0,0,0,.06) 75%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
}

.heroContent{
  position:relative;
  z-index: 2;
  height: 100dvh;
  min-height: 100dvh;
  display:flex;
  align-items:center;
  padding: 0;
}

.home .heroContent{
  align-items: flex-start;
  padding-top: clamp(48px, 12vh, 120px);
}

.homeQuickNav{
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(20px, 4vh, 42px);
  padding-bottom: var(--sab);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  filter: none;
}

.mobileMenuToggle{
  display: none;
}

.homeQuickLink{
  font-size: clamp(13px, 1.9vw, 25px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.28);
}

.homeQuickLink:hover{
  color: #fff;
}

@media (max-width: 1024px){
  .mobileMenuToggle{
    display: inline-flex;
    position: fixed;
    right: clamp(18px, 3vw, 42px);
    bottom: calc(clamp(20px, 4vh, 42px) + var(--sab));
    z-index: 30;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.92);
    font-family: inherit;
    font-size: 34px;
    letter-spacing: 0.04em;
    line-height: 0.8;
    padding: 0;
    text-shadow: 0 3px 12px rgba(0,0,0,.45);
    cursor: pointer;
  }

  body.mobileMenuOpen .mobileMenuToggle{
    color: #fff;
  }

  .homeQuickNav{
    right: clamp(18px, 3vw, 42px);
    bottom: calc(clamp(20px, 4vh, 42px) + 32px + var(--sab));
    gap: 8px;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1);
  }

  body.mobileMenuOpen .homeQuickNav{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .homeQuickNav .homeQuickLink{
    display: inline-block;
    font-size: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    text-shadow: 0 3px 12px rgba(0,0,0,.45);
  }

  body.mobileMenuOpen .homeQuickNav .homeQuickLink{
    border: 0;
    background: transparent;
  }

  .homeQuickNav .homeQuickLink:hover,
  .homeQuickNav .homeQuickLink:focus-visible{
    background: transparent;
    border: 0;
    color: #fff;
  }

  body.home .homeQuickNav{
    right: clamp(18px, 3vw, 42px);
    bottom: clamp(12px, 3vh, 30px);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
    gap: 10px;
  }
}

@keyframes heroFade{
  0%      { opacity: 0; }
  3%      { opacity: 1; }
  7%      { opacity: 1; }
  10%     { opacity: 0; }
  100%    { opacity: 0; }
}

main{ min-height: 70vh; }

.pageHead{
  padding: 22px 0 22px;
}
.progettiPage .progettiHead{
  padding: 22px 4vw;
}
.pageHead .title{
  font-size: clamp(34px, 4.2vw, 64px);
  line-height:1.06;
  margin: 10px 0 0;
}
.progettiPage .progettiHead .title{
  text-align: center;
}
.legalPage .legalContent{
  width: min(980px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 10px 0 120px;
}

.legalPage .legalContent p{
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.92);
}

.legalPage .legalContent ul{
  margin: 0 0 18px 20px;
  padding: 0;
}

.legalPage .legalContent li{
  margin: 0 0 8px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
}

.legalPage .legalSection{
  margin: 30px 0;
}

.legalPage .legalSection h2{
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.rule{
  height:1px;
  width:100%;
  background: var(--line);
}

.projRow{
  display:grid;
  grid-template-columns: 20% 80%;
  align-items:start;
}

.projectsSticky > .projSticky:nth-of-type(even) .projRow{
  grid-template-columns: 80% 20%;
}

@media (min-width: 1001px){
  .progettiPage .projectsSticky > .projSticky .projRow.isPortraitSplit{
    grid-template-columns: 50% 50% !important;
  }
}

.fotografiaPage .fotoGridSection{
  padding: clamp(22px, 3.2vw, 40px) clamp(16px, 2.2vw, 28px);
}

.fotografiaPage .fotoGrid{
  column-count: 3;
  column-gap: clamp(10px, 1.2vw, 16px);
}

.fotografiaPage .fotoGridItem{
  display: block;
  width: 100%;
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  padding: 0;
  border: 0;
  background: transparent;
  break-inside: avoid;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity .28s ease;
}

.fotografiaPage .fotoGridItem img{
  display: block;
  width: 100%;
  height: auto;
  transition: filter .34s ease, opacity .24s ease;
}

.fotografiaPage .fotoGridItem::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.14);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.fotografiaPage .fotoGridItem:hover::after,
.fotografiaPage .fotoGridItem:focus-visible::after{
  opacity: 1;
}

.fotografiaPage .fotoGridItem:hover img,
.fotografiaPage .fotoGridItem:focus-visible img{
  filter: brightness(.97) contrast(1.03);
}

.fotografiaPage .fotoLightbox{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 30px);
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.fotografiaPage .fotoLightbox.isOpen{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fotografiaPage .fotoLightboxImg{
  width: auto;
  max-width: min(92vw, 1800px);
  max-height: 92vh;
  height: auto;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .24s ease, transform .24s ease;
}

.fotografiaPage .fotoLightbox.isOpen .fotoLightboxImg{
  opacity: 1;
  transform: scale(1);
}

.fotografiaPage .fotoLightboxClose{
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px){
  .fotografiaPage .fotoGrid{
    column-count: 2;
  }
}

@media (max-width: 700px){
  .fotografiaPage .fotoGrid{
    column-count: 1;
  }
}

.projText{
  position: relative;
  top: auto;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 110px 3vw;
}

.projectsSticky > .projSticky:nth-of-type(odd) .projText{
  padding-left: 3vw;
  padding-right: 2vw;
}

.projectsSticky > .projSticky:nth-of-type(even) .projText{
  padding-left: 2vw;
  padding-right: 3vw;
}
.projTextInner{
  width: 100%;
  max-width: 38ch;
  display: flex;
  flex-direction: column;
}

.projectsSticky > .projSticky:nth-of-type(odd) .projTextInner{
  align-items: flex-start;
  text-align: left;
}

.projectsSticky > .projSticky:nth-of-type(even) .projTextInner{
  align-items: flex-end;
  text-align: right;
}
.projText .meta{
  color: rgba(255,255,255,.65);
  order: 2;
  margin-top: 10px;
  text-shadow: none;
}
.projText .t{
  font-size: clamp(13px, 1.9vw, 25px);
  margin-top: 0;
  order: 1;
  text-shadow: none;
}
.projText .t.openGalleryTitle{
  cursor: pointer;
}

.galleryHint{
  display: inline-block;
  order: 99;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(255,255,255,.64);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

.galleryHint:hover,
.galleryHint:focus-visible,
.projText .t.openGalleryTitle:hover + .galleryHint,
.projText .t.openGalleryTitle:focus-visible + .galleryHint{
  color: rgba(255,255,255,.9);
  opacity: 1;
}

.projectsSticky > .projSticky:nth-of-type(odd) .projGallery{
  width: 100%;
  margin: 0;
  justify-self: stretch;
}

.projectsSticky > .projSticky:nth-of-type(even) .projGallery{
  width: 100%;
  margin: 0;
  justify-self: stretch;
}

.projectsSticky > .projSticky:nth-of-type(even) .projText{
  order: 2;
}

.progettiPage .projectsSticky,
.progettiPage .projSticky,
.progettiPage .projRow,
.progettiPage .projGallery{
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.progettiPage .projectsSticky .projGallery .projMainTrigger,
.progettiPage .projectsSticky .projGallery .projPhoto{
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

.progettiPage .projectsSticky .projGallery .projPhoto img{
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: unset !important;
}

.progettiPage .projectsSticky .projGallery img[data-project-main="true"]{
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

.projPhoto{
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.projPhoto img{
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  object-fit: unset;
  display: block;
}

.projMainTrigger{
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.projMainTrigger:focus-visible{
  outline: 1px solid rgba(255,255,255,.55);
  outline-offset: -1px;
}

.projectModal{
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: clamp(16px, 2.4vw, 28px);
  background: rgba(19,18,16,.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.projectModal.isOpen{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.projectModalPanel{
  width: min(1280px, 100%);
  max-height: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: auto;
  padding: clamp(14px, 2.4vw, 24px);
}

.projectModalHead{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  margin-bottom: -42px;
  padding-top: 8px;
  pointer-events: none;
}

.projectModalClose{
  border: 0;
  background: none;
  color: inherit;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  margin-right: 12px;
  text-shadow: 0 4px 10px rgba(0,0,0,.35);
  pointer-events: auto;
  cursor: pointer;
}

.projectModalGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.projectModalGrid img{
  width: 100%;
  height: auto;
  display: block;
}

.galleryScrollHint{
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.galleryScrollHint .arrow{
  font-size: 16px;
  font-weight: 700;
}

.galleryScrollHint.isVisible{
  opacity: .95;
}

@media (min-width: 1001px){
  .projectModalGrid img.galleryLandscape{
    grid-column: 1 / -1;
  }
}

body.modalOpen{
  overflow: hidden;
}

@media (max-width: 1000px){
  :root{ --gutter: 22px; }

  .home .h1{
    white-space: normal;
  }

  .homeQuickNav{
    right: var(--gutter);
    bottom: calc(18px + 32px + var(--sab));
  }

  body.home .homeQuickNav{
    right: var(--gutter);
    bottom: 12px;
  }

  .mobileMenuToggle{
    right: var(--gutter);
    bottom: calc(18px + var(--sab));
  }

  .projectsSticky > .projSticky .projRow{
    grid-template-columns: 1fr !important;
  }

  .projectsSticky > .projSticky .projText{
    order: 1 !important;
    position: relative !important;
    top: auto !important;
    padding: 34px var(--gutter) !important;
  }

  .projectsSticky > .projSticky:nth-of-type(odd) .projText{
    justify-content: flex-start !important;
  }

  .projectsSticky > .projSticky:nth-of-type(even) .projText{
    justify-content: flex-end !important;
  }

  .projectsSticky > .projSticky:nth-of-type(odd) .projTextInner{
    align-items: flex-start !important;
    text-align: left !important;
  }

  .projectsSticky > .projSticky:nth-of-type(even) .projTextInner{
    align-items: flex-end !important;
    text-align: right !important;
  }

  .projectsSticky > .projSticky .projGallery{
    order: 2 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .projectsSticky > .projSticky .projPhoto{
    height: auto !important;
  }
}

@media (max-width: 1000px){
  .projectModal{
    padding: 0;
  }

  .projectModalPanel{
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
  }

  .projectModalGrid{
    grid-template-columns: 1fr;
  }
}

.siteFooter{
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 70px 0 40px;
  color: var(--ink);
  font-size: 14px;
  text-align:center;
}

@media (max-width: 767px){
  .progettiPage #contatti{
    scroll-margin-top: -1px;
  }

  .homeQuickLink,
  .projText .t{
    font-size: 20px;
  }
}

.progettiPage #contatti .contattiSpacer{
  height: clamp(98px, 13vh, 150px);
}

.progettiPage .siteFooter{
  min-height: var(--contatti-footer-h, calc(100svh - 122px));
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-top: 0;
  background: var(--paper);
  padding: clamp(24px, 3.5vh, 40px) 0 clamp(52px, 7vh, 88px);
}

.progettiPage .footerInner{
  min-height: min(46svh, 460px);
  justify-content: flex-start;
  gap: 18px;
  padding-top: 0;
}

.progettiPage .footerMeta{
  margin-top: clamp(26px, 4.2vh, 44px);
  font-size: clamp(12px, .9vw, 15px);
}

.progettiPage .footerBlock{
  font-size: 1rem;
  line-height: 1.65;
  text-shadow: none;
}

.footerInner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: clamp(34px, 4.5vh, 64px);
}

.footerBlock{
  display:flex;
  flex-direction:column;
  gap:12px;
  color: rgba(255,255,255,.9);
  text-shadow: none;
}

.footerBlock a{
  color: rgba(255,255,255,.9);
  border-bottom: 0;
  text-decoration: none;
  text-shadow: none;
}

.footerBlock a:hover{
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .12em;
}

.footerMeta{
  font-size:12px;
  letter-spacing:.08em;
  color: rgba(255,255,255,.6);
  text-shadow: none;
}

.footerHeading{
  color: #fff;
  font-size: clamp(24px, 3vw, 47px);
  letter-spacing: .02em;
  text-shadow: none;
}

@media (min-width: 1001px){
  .progettiPage .siteFooter{
    min-height: 0;
    padding: clamp(20px, 2.8vh, 34px) 0 clamp(24px, 3.6vh, 40px);
  }

  .progettiPage .footerInner{
    min-height: 0;
    width: min(900px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 40px);
    row-gap: 34px;
    align-items: start;
    justify-items: start;
    gap: 34px;
  }

  .progettiPage .footerHeading{
    grid-column: 1 / -1;
    line-height: 1.1;
    letter-spacing: .008em;
    margin-bottom: 20px;
    width: 100%;
    justify-self: center;
    margin-inline: auto;
    text-align: center;
  }

  .progettiPage .footerPrimary{
    font-size: clamp(14px, .85vw, 15px);
    line-height: 1.55;
    max-width: 56ch;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    justify-self: center;
  }

  .progettiPage .footerLegal{
    justify-self: center;
    align-items: flex-start;
    text-align: left;
    font-size: clamp(14px, .85vw, 15px);
    line-height: 1.55;
    margin-top: 0;
    gap: 6px;
  }

  .progettiPage .footerMeta{
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 28px;
    padding-top: 24px;
    text-align: center;
    font-size: clamp(11px, .72vw, 13px);
    letter-spacing: .06em;
  }

  .progettiPage .footerMeta a{
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    text-underline-offset: .12em;
    text-decoration-thickness: 1px;
  }

  .progettiPage .footerMetaSep{
    margin: 0 .45em;
    opacity: .65;
  }
}

@media (max-width: 767px){
  body.home .heroSlider .heroSlides{
    display: block;
    inset: auto 0 auto 0;
    height: 25dvh;
    overflow: hidden;
  }

  body.home .heroSlider .heroSlides:nth-of-type(1){ top: 0; }
  body.home .heroSlider .heroSlides:nth-of-type(2){ top: 25dvh; }
  body.home .heroSlider .heroSlides:nth-of-type(3){ top: 50dvh; }
  body.home .heroSlider .heroSlides:nth-of-type(4){ top: 75dvh; }

  body.home .heroSlide{
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .progettiPage #contatti .contattiSpacer{
    height: clamp(64px, 9vh, 96px);
  }

  .progettiPage .siteFooter{
    min-height: auto;
    padding: clamp(16px, 2.4vh, 24px) 0 clamp(26px, 4vh, 40px);
  }

  .progettiPage .footerInner{
    min-height: auto;
    gap: 14px;
  }

  .progettiPage .footerMeta{
    margin-top: 14px;
  }

  .progettiPage .footerHeading{ line-height: 1.12; }

  .footerMeta{
    font-size: 10px;
  }
}

@supports (height: 100dvh){
  @media (max-width: 767px){
    body.progettiPage,
    .progettiPage main{
      min-height: 100dvh;
    }

    .progettiPage .siteFooter{
      min-height: auto;
    }
  }
}

@supports (-webkit-touch-callout: none){
  .progettiPage .projPhoto img{
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: unset !important;
  }
}

@media (max-width: 1000px){
  .progettiPage .projPhoto{
    height: auto !important;
  }
}

body.home .heroSlides,
body.home .heroSlide{
  height: 100% !important;
}

body.home{
  padding-top: 0 !important;
}

body.home main{
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.home .heroSlider,
body.home .heroContent{
  height: calc(115dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom)) !important;
  min-height: calc(115dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom)) !important;
}

@supports not (height: 100dvh){
  body.home .heroSlider,
  body.home .heroContent{
    height: 100vh !important;
    min-height: 100vh !important;
  }
}

@media (hover: hover) and (pointer: fine){
  body.home{
    overflow: hidden !important;
    overscroll-behavior: none;
  }
}

@supports (-webkit-touch-callout: none){
  html:has(body.home),
  body.home{
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
    height: 100dvh;
  }

  body.home main{
    overflow: hidden !important;
  }

  body.home .heroSlider{
    margin-top: calc(-1 * env(safe-area-inset-top)) !important;
  }

  body.home .heroSlides,
  body.home .heroSlide{
    transform: scale(1.06) translateY(2.5%);
    transform-origin: center center;
  }
}
