/* The archived Wix pages use fixed desktop grids. Reflow them on small screens. */
.mobile-navigation { display: none; }
/* Architetto: thin gap between the three photos inside each right-hand strip. */
.arch-strip {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}
.arch-strip .sFiSiq {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  object-fit: contain;
}
/* Hide the legacy Wix horizontal divider everywhere. */
.wixui-horizontal-line { display: none !important; }
/* Libri: static row of cover images instead of the non-working Wix slideshow. */
.libri-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
}
.libri-gallery img {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}
/* Section headings that link to the same page as their image (color strategist). */
#PAGES_CONTAINER .wixui-rich-text a.ref-link {
  color: inherit !important;
  text-decoration: none !important;
}
/* Attività produttive: four images in a two-by-two grid. */
#WPhth-12dc { height: auto !important; }
#WPhth-12dc > .apPOZK, #WPhte-ltl { display: none !important; }
.produttive-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.produttive-photo {
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.produttive-photo-main { background-image: url("34bfed8534e4.jpg"); background-size: 100% 100%; }
.produttive-photo-one { background-image: url("produttive-dettaglio-1.png"); }
.produttive-photo-two { background-image: url("produttive-dettaglio-2.png"); }
.produttive-photo-three { background-image: url("produttive-dettaglio-3.png"); }
/* Attività produttive: extend the yellow panel to fit the added project. */
#Cntnr3-16va {
  grid-area: 3 / 1 / 8 / 2 !important;
  align-self: stretch !important;
  height: auto !important;
}
/* Interiors gallery: show only the first photo. */
#WPhtg-3z2 { height: auto !important; }
#WPhtg-3z2 > .apPOZK, #WPhtd-1bxq { display: none !important; }
.interni-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}
.interni-photo {
  aspect-ratio: 450 / 325;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.interni-photo-main { background-image: url("a12943b6b88a.jpg"); }
.interni-photo-one { background-image: url("interni-dettaglio-1.png"); }
.interni-photo-two { background-image: url("interni-dettaglio-2.png"); }
.interni-photo-three { background-image: url("interni-dettaglio-3.png"); }
.interni-photo-one, .interni-photo-two, .interni-photo-three { display: none; }
/* Four equally sized images on the residential projects page. */
#WPhtf-5f8 { height: auto !important; }
#WPhtf-5f8 > .apPOZK, #WPht8-155b { display: none !important; }
.residenziale-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}
.residenziale-photo {
  aspect-ratio: 16 / 9;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.residenziale-photo-main { order: 3; background-image: url("f92fb1702816.jpg"); background-size: 57% 100%; }
.residenziale-photo-one { order: 2; background-image: url("residenziale-dettaglio-1-rifilata.png"); }
.residenziale-photo-two { order: 1; background-image: url("residenziale-dettaglio-2.png"); }
.residenziale-photo-three { order: 4; background-image: url("residenziale-dettaglio-3.png"); }
#Msnry1-som, #Msnry1-som iframe { height: 1150px !important; }
/* Remove the decorative frame around the site header. */
#SITE_HEADER > .czvMsF > .BXpZhs,
#SITE_HEADER > .czvMsF > .BXpZhs > .ckgc3x,
#SITE_FOOTER > .czvMsF > .BXpZhs,
#SITE_FOOTER > .czvMsF > .BXpZhs > .ckgc3x {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Four equally sized home labels, directly above their associated images. */
#mainPage :is(#StBttn0-pel, #StBttn2-9dm, #StBttn1-9fi, #StBttn3-1e6o) {
  --fnt: normal normal normal 27px/1.1 Urbanist, sans-serif !important;
}
#mainPage :is(#WPht1,#WPhtc,#WPhtb,#WPhta) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#mainPage :is(#WPht1,#WPhtc,#WPhtb,#WPhta) > a {
  display: block;
  width: 100%;
  height: 100%;
}
#mainPage :is(#StBttn0-pel,#StBttn2-9dm,#StBttn1-9fi,#StBttn3-1e6o) > a {
  display: flex;
  width: 100%;
  height: 100%;
}
#mainPage #WPht1 img { object-position: center center !important; }
#mainPage #WPhta img { object-position: center bottom !important; }
@media (min-width: 1000px) {
  #Cntnr6-e58 {
    grid-area: 3 / 1 / 8 / 2 !important;
    align-self: stretch !important;
    height: auto !important;
  }
  #WPhtf-5f8 {
    grid-area: 2 / 1 / 9 / 2 !important;
    align-self: stretch !important;
    margin-bottom: 0 !important;
  }
  #WPhtf-5f8 .residenziale-gallery {
    height: 100%;
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }
  #WPhtf-5f8 .residenziale-photo { aspect-ratio: auto; min-height: 0; }
  #WPhtf-5f8 .residenziale-photo-main { background-size: 83.5% 100%; }
  /* Architetto: align each right-hand photo with the bottom edge of the left photo. */
  #WPht3-5uu { transform: translateY(-9.6px); }
  #WPht5-ccz { transform: translateY(-12.2px); }
  #WPht6-2lq { transform: translateY(-3.6px); }
  #SITE_HEADER #DrpDwnMn0 {
    pointer-events: none;
  }
  #SITE_HEADER #DrpDwnMn0navContainer {
    pointer-events: auto;
  }
  #SITE_HEADER :is(#DrpDwnMn0navContainer,#DrpDwnMn0itemsContainer) {
    height: 35px !important;
  }
  :is(#WPht8-ze6,#WPhtd-198b,#WPhte-rwf,#WPhtf-9w5,#WPhtg-13u1,#WPhth-14nj) {
    height: 480px !important;
  }
  :is(#WPht8-ze6,#WPhtd-198b,#WPhte-rwf,#WPhtf-9w5,#WPhtg-13u1,#WPhth-14nj) img {
    object-fit: contain !important;
    object-position: center top !important;
  }
  #mainPage [data-mesh-id="ContainermainPageinlineContent-gridContainer"] {
    display: grid !important;
    width: 940px !important;
    margin: 0 auto !important;
    grid-template-columns: repeat(4, 220px) !important;
    grid-template-rows: 48px auto auto !important;
    gap: 0 20px !important;
    min-height: 0 !important;
  }
  #mainPage [data-mesh-id="ContainermainPageinlineContent-gridContainer"] > :is(#Cntnr1,#Cntnrd,#Cntnrc,#Cntnrb,#StBttn3-1e6o,#WPht1,#WPhtc,#WPhtb,#WPhta) {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    width: 220px !important;
    left: auto !important;
  }
  #mainPage :is(#Cntnr1,#Cntnrd,#Cntnrc,#Cntnrb) { height: 48px !important; }
  #mainPage #Cntnr1 { grid-area: 1 / 1 !important; }
  #mainPage #Cntnrd { grid-area: 1 / 2 !important; }
  #mainPage #Cntnrc { grid-area: 1 / 3 !important; }
  #mainPage #Cntnrb, #mainPage #StBttn3-1e6o { grid-area: 1 / 4 !important; }
  #mainPage #WPht1 { grid-area: 2 / 1 !important; }
  #mainPage #WPhtc { grid-area: 2 / 2 !important; }
  #mainPage #WPhtb { grid-area: 2 / 3 !important; }
  #mainPage #WPhta { grid-area: 2 / 4 !important; }
  #mainPage :is(#WPht1,#WPhtc,#WPhtb,#WPhta) { height: 514px !important; }
  #mainPage #WFcbkLk0-1a2o { grid-area: 3 / 1 / 4 / 3 !important; position: relative !important; left: auto !important; margin: 12px 0 !important; }
  #mainPage :is(#Cntnr1,#Cntnrd,#Cntnrc) [data-testid="inline-content"],
  #mainPage :is(#Cntnr1,#Cntnrd,#Cntnrc) [data-testid="mesh-container-content"] {
    width: 100% !important;
    height: 48px !important;
  }
  #mainPage :is(#StBttn0-pel,#StBttn2-9dm,#StBttn1-9fi,#StBttn3-1e6o) {
    position: relative !important;
    left: auto !important;
    margin: 0 !important;
    width: 220px !important;
    height: 48px !important;
  }
  #SITE_HEADER #WRchTxt4 {
    margin-left: calc((100% - 980px) * 0.5) !important;
  }
  #SITE_HEADER #DrpDwnMn0navContainer {
    left: calc((100% - 980px) * 0.5 + 371px) !important;
    width: 589px !important;
  }
  #SITE_HEADER #DrpDwnMn0itemsContainer {
    display: flex !important;
    justify-content: space-between !important;
    text-align: left !important;
  }
  #SITE_HEADER #DrpDwnMn0itemsContainer > li {
    width: auto !important;
  }
  #SITE_HEADER #DrpDwnMn0itemsContainer .hAdMV6 {
    padding: 0 !important;
  }
  #SITE_HEADER #DrpDwnMn0itemsContainer .bNEwT7 {
    padding: 0 7px !important;
  }
}
@media (max-width: 999px) {
  html, body, #SITE_CONTAINER, #site-root, #masterPage, #PAGES_CONTAINER,
  #SITE_PAGES, #SITE_PAGES_TRANSITION_GROUP, #SITE_HEADER, #SITE_FOOTER {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html, body { overflow-x: hidden; }
  #SITE_HEADER [data-mesh-id="SITE_HEADERinlineContent-gridContainer"] {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 0 12px;
    padding: 16px !important;
    margin: 0 !important;
    min-height: 0 !important;
  }
  #SITE_HEADER #WPht5-1bh1 {
    grid-area: 1 / 1 / 3 / 2 !important;
    position: static !important;
    margin: 0 !important;
    width: 80px !important;
    height: 80px !important;
  }
  #SITE_HEADER #SITE_STRUCTURE_WRichText_0,
  #SITE_HEADER #WRchTxt4 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  #SITE_HEADER #SITE_STRUCTURE_WRichText_0 { grid-area: 1 / 2 / 2 / 3 !important; }
  #SITE_HEADER #SITE_STRUCTURE_WRichText_0 h1,
  #SITE_HEADER #SITE_STRUCTURE_WRichText_0 h1 span {
    font-size: clamp(22px, 6vw, 32px) !important;
    text-align: left !important;
  }
  #SITE_HEADER #WRchTxt4 { grid-area: 2 / 2 / 3 / 3 !important; }
  #SITE_HEADER #WRchTxt4 p {
    width: auto !important;
    white-space: normal !important;
    text-align: left !important;
  }
  #SITE_HEADER #WRchTxt4 p:first-child span { font-size: clamp(11px, 3.6vw, 14px) !important; }
  #SITE_HEADER #WRchTxt4 p:not(:first-child) { display: none; }
  #SITE_HEADER #DrpDwnMn0 { display: none !important; }
  #SITE_HEADER .mobile-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 0 16px 16px;
    font: 16px/1.4 Urbanist, sans-serif;
    color: rgb(25, 25, 127);
  }
  #SITE_HEADER .mobile-navigation a,
  #SITE_HEADER .mobile-navigation summary {
    color: inherit;
    display: block;
    padding: 8px 0;
    cursor: pointer;
  }
  #SITE_HEADER .mobile-navigation details { position: relative; }
  #SITE_HEADER .mobile-navigation details[open] {
    flex-basis: 100%;
  }
  #SITE_HEADER .mobile-navigation details a {
    padding: 8px 12px;
  }
  #SITE_HEADER #DrpDwnMn0navContainer,
  #SITE_HEADER #DrpDwnMn0itemsContainer {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 4px !important;
  }
  #SITE_HEADER #DrpDwnMn0itemsContainer > li {
    position: static !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
  }
  #SITE_HEADER #DrpDwnMn0itemsContainer > li a { padding: 7px 4px; }
  #SITE_HEADER #DrpDwnMn0itemsContainer > li p { line-height: 1.4 !important; }
  #SITE_HEADER #DrpDwnMn0__more__,
  #SITE_HEADER #DrpDwnMn08,
  #SITE_HEADER #DrpDwnMn0dropWrapper,
  #SITE_HEADER #FvGrdLn1-1b6z,
  #SITE_HEADER #comp-imqczdjk { display: none !important; }
  #SITE_HEADER #DrpDwnMn07 a { visibility: visible !important; }

  #PAGES_CONTAINER { margin: 0 !important; padding: 0 16px; box-sizing: border-box; }
  #PAGES_CONTAINER * { max-width: 100%; box-sizing: border-box; min-width: 0; }
  #PAGES_CONTAINER article.post-list-item {
    flex-direction: column !important;
    height: auto !important;
  }
  #PAGES_CONTAINER article.post-list-item > div {
    width: 100% !important;
    height: auto !important;
    flex: none !important;
  }
  #PAGES_CONTAINER article.post-list-item .post-list-item-wrapper {
    padding: 16px !important;
  }
  #PAGES_CONTAINER .NtBDdE {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 6px;
  }
  #PAGES_CONTAINER .NtBDdE .MABqta { display: contents !important; }
  #PAGES_CONTAINER [data-testid="mesh-container-content"],
  #SITE_FOOTER [data-testid="mesh-container-content"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }
  #PAGES_CONTAINER [data-testid="mesh-container-content"] > *,
  #SITE_FOOTER [data-testid="mesh-container-content"] > * {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    grid-area: auto !important;
    box-sizing: border-box;
  }
  #PAGES_CONTAINER .wixui-rich-text,
  #SITE_FOOTER .wixui-rich-text { overflow-wrap: anywhere; }
  #PAGES_CONTAINER .wixui-rich-text :is(h1,h2,h3,h4,h5,h6,p,span),
  #SITE_FOOTER .wixui-rich-text :is(h1,h2,h3,h4,h5,h6,p,span) {
    max-width: 100%;
  }
  #PAGES_CONTAINER .wixui-rich-text :is(.font_8,.font_9,.font_10),
  #PAGES_CONTAINER .wixui-rich-text :is(.font_8,.font_9,.font_10) span {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  #PAGES_CONTAINER .wixui-rich-text :is(h1,h2,h3,h4),
  #PAGES_CONTAINER .wixui-rich-text :is(h1,h2,h3,h4) span {
    font-size: clamp(24px, 7vw, 36px) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }
  #PAGES_CONTAINER img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  #PAGES_CONTAINER .wixui-image { height: auto !important; }
  #PAGES_CONTAINER .wixui-image img {
    width: auto !important;
    max-height: 360px !important;
  }
  #PAGES_CONTAINER :is(#WPht8-ze6,#WPhtd-198b,#WPhte-rwf,#WPhtf-9w5,#WPhtg-13u1,#WPhth-14nj) img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  #PAGES_CONTAINER .myoKiH {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  #PAGES_CONTAINER .myoKiH > a {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px;
    box-sizing: border-box;
  }
  #PAGES_CONTAINER .myoKiH .wixui-button__label {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  #mainPage .myoKiH .wixui-button__label { font-size: 27px; line-height: 1.1; }
  #mainPage .wixui-image img { width: 100% !important; max-height: none !important; }
  #mainPage :is(#WPht1,#WPhtc,#WPhtb,#WPhta) { aspect-ratio: 220 / 514; }
  #mainPage #Cntnr1 { order: 1; }
  #mainPage #WPht1 { order: 2; }
  #mainPage #Cntnrd { order: 3; }
  #mainPage #WPhtc { order: 4; }
  #mainPage #Cntnrc { order: 5; }
  #mainPage #WPhtb { order: 6; }
  #mainPage #Cntnrb { display: none !important; }
  #mainPage #StBttn3-1e6o { order: 8; background: rgb(152,134,114); }
  #mainPage #WPhta { order: 9; }
  #mainPage #WFcbkLk0-1a2o { display: none !important; }
  #PAGES_CONTAINER #Msnry1-som { height: 800px !important; }
  #PAGES_CONTAINER #Msnry1-som iframe { width: 100% !important; height: 800px !important; }
  #PAGES_CONTAINER .wixui-horizontal-line { display: none !important; }
  #PAGES_CONTAINER iframe { max-width: 100%; }
  #SITE_FOOTER { padding: 24px 16px; box-sizing: border-box; }
  #SITE_FOOTER [data-testid="mesh-container-content"] { gap: 10px; }
  /* Architetto: title, large photo, then the three small photos, for each section. */
  #PAGES_CONTAINER [data-testid="mesh-container-content"]:has(#WRchTxte-9ru) { gap: 0 !important; }
  #PAGES_CONTAINER #WRchTxte-9ru { order: 1; }
  #PAGES_CONTAINER #WRchTxt8-15i0 { order: 2; margin-top: 14px !important; }
  #PAGES_CONTAINER #WPht4-165a { order: 3; margin-top: 4px !important; }
  #PAGES_CONTAINER #WPht3-5uu { order: 4; margin-top: 12px !important; }
  #PAGES_CONTAINER #WRchTxt9-11ea { order: 5; margin-top: 44px !important; }
  #PAGES_CONTAINER #WPht5-1a2i { order: 6; margin-top: 4px !important; }
  #PAGES_CONTAINER #WPht5-ccz { order: 7; margin-top: 12px !important; }
  #PAGES_CONTAINER #WRchTxtb-dk8 { order: 8; margin-top: 44px !important; }
  #PAGES_CONTAINER #WPht6-iun { order: 9; margin-top: 4px !important; }
  #PAGES_CONTAINER #WPht6-2lq { order: 10; margin-top: 12px !important; }
}
