/*
 * Beauty & Glam — visual system
 *
 * Direction: the finished centres are treated like a gallery of architectural
 * prints. One immersive project opens the page; the portfolio changes scale
 * and crop instead of becoming a row of identical cards.
 */
:root {
  --bg-ground: #f4f2ec;
  --bg-ink: #142628;
  --bg-deep: #0b292b;
  --bg-water: #82d8cc;
  --bg-fog: #e3ece8;
  --bg-muted: #526765;
  --bg-soft-ink: #344846;
}

html body {
  background: var(--bg-ground);
  color: var(--bg-ink);
  font-family: Jost, system-ui, sans-serif;
}

/* Project path navigation on inner pages. */
html body .bg-project-navigation {
  position: relative;
  z-index: 20;
  background: var(--bg-fog);
  color: var(--bg-ink);
}

html body .bg-project-navigation__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1240px, calc(100% - 72px));
  min-height: 54px;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

html body .bg-project-navigation__inner::-webkit-scrollbar { display: none; }

html body .bg-project-navigation__label {
  color: var(--bg-muted);
  font-size: 13px;
  font-weight: 500;
}

html body .bg-project-navigation a {
  padding-block: 16px;
  color: var(--bg-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

html body .bg-project-navigation a:hover,
html body .bg-project-navigation a:focus-visible { color: var(--bg-deep); }

html body .bg-project-navigation__sector { color: var(--bg-muted) !important; }

/* Inner pages use the same materials without forcing the homepage composition. */
html body.bg-inner-page #qodef-page-content,
html body.bg-inner-page .elementor-section-wrap { background: var(--bg-ground); }

html body.bg-inner-page :is(.intro, .segments, .feature, .method, .cards, .gallery-sec, .contact) { position: relative; }

html body.bg-inner-page :is(.intro, .feature, .method, .contact):nth-of-type(even) { background: var(--bg-fog); }

html body.bg-inner-page :is(.intro, .feature, .method, .segments, .cards, .contact) h2 {
  max-width: 18ch;
  color: var(--bg-ink) !important;
  font-family: Jost, system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -.055em !important;
}

html body.bg-inner-page :is(.intro, .feature, .method, .segments, .cards, .contact) p { color: var(--bg-soft-ink); }

html body.bg-inner-page .segments .card,
html body.bg-inner-page .cards .card,
html body.bg-inner-page .feature .card {
  border: 0;
  border-radius: 0;
  background: var(--bg-fog);
}

html body.bg-inner-page .segments .card:hover,
html body.bg-inner-page .cards .card:hover,
html body.bg-inner-page .feature .card:hover {
  background: #d5e5df;
  transform: translateY(-3px);
}

/* Catalog routes keep a quieter, product-first surface. */
html body.bg-site-catalog #qodef-page-outer,
html body.bg-site-catalog #qodef-page-inner { background: var(--bg-ground); }

html body.bg-site-catalog #qodef-page-inner {
  padding-top: clamp(42px, 6vw, 88px) !important;
  padding-bottom: clamp(64px, 8vw, 112px) !important;
}

html body.bg-site-catalog .qodef-page-title,
html body.bg-site-catalog .qodef-page-title-inner { min-height: 0 !important; }

html body.bg-site-catalog :is(.qodef-woo-product-title, .qodef-e-title) {
  color: var(--bg-ink) !important;
  font-family: Jost, system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -.025em !important;
}

html body.bg-site-catalog :is(.qodef-woo-product-image, .qodef-e-media-image) {
  border-radius: 0 !important;
  background: var(--bg-fog) !important;
}

/* Homepage: one finished space fills the first screen. */
html body.home header#nav.nav,
html body.home header#nav.nav.shrink {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  min-height: 82px;
  background: transparent !important;
}

html body.home header#nav.nav .wrap { min-height: 82px; width: min(1380px, calc(100% - 64px)); }
html body.home header#nav.nav .menu { gap: clamp(16px, 1.8vw, 30px); }

html body.home header#nav.nav .menu a {
  color: rgba(255, 255, 255, .92) !important;
  font-size: 12px;
  letter-spacing: .035em;
}

html body.home header#nav.nav .menu a:hover,
html body.home header#nav.nav .menu a:focus-visible,
html body.home header#nav.nav .menu .current-menu-item > a { color: var(--bg-water) !important; }

html body.home header#nav.nav .menu > li:last-child > a {
  padding: 12px 18px;
  background: var(--bg-water);
  color: var(--bg-deep) !important;
}

html body.home .elementor-element-bgindexh #top.hero.bright {
  min-height: 100svh !important;
  height: 100svh !important;
  background: var(--bg-deep) !important;
  color: #fff;
}

html body.home .elementor-element-bgindexh #top.hero.bright .hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  clip-path: none;
  border: 0;
}

html body.home .elementor-element-bgindexh #top.hero.bright .hero-bg::after { background: rgba(11, 41, 43, .48) !important; }

html body.home .elementor-element-bgindexh #top.hero.bright .wrap {
  display: flex;
  align-items: end !important;
  width: min(1380px, calc(100% - 64px));
  min-height: 100svh;
  padding: 82px 0 8.5vh !important;
}

html body.home .elementor-element-bgindexh #top.hero.bright .hero-inner {
  width: min(720px, 56%) !important;
  max-width: 720px !important;
}

html body.home .elementor-element-bgindexh #top.hero.bright h1 {
  max-width: 11ch;
  margin: 0 0 26px;
  color: #fff !important;
  font-family: Jost, system-ui, sans-serif !important;
  font-size: clamp(58px, 8.1vw, 118px) !important;
  font-weight: 500 !important;
  line-height: .88 !important;
  letter-spacing: -.075em !important;
}

html body.home .elementor-element-bgindexh #top.hero.bright h1::before { display: none; }

html body.home .elementor-element-bgindexh #top.hero.bright p {
  max-width: 49ch !important;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .88) !important;
  font-size: 17px !important;
  line-height: 1.56;
}

html body.home .elementor-element-bgindexh #top .hero-actions {
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

html body.home .elementor-element-bgindexh #top .hero-actions .btn {
  min-height: 50px;
  border-radius: 0;
  padding: 14px 22px;
  font-size: 13px;
}

html body.home .elementor-element-bgindexh #top .hero-actions .btn.solid {
  background: var(--bg-water) !important;
  color: var(--bg-deep) !important;
}

html body.home .elementor-element-bgindexh #top .hero-actions .btn:not(.solid) {
  min-height: 0;
  padding: 12px 0;
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 7px;
}

html body.home .elementor-element-bgindexh #top .hero-kpis { display: none; }

/* Portfolio: a rail of real work with changing image ratios. */
html body.home .elementor-element-bgindexh #realizzazioni-home {
  padding: clamp(92px, 11vw, 168px) 0 clamp(96px, 12vw, 180px) !important;
  background: var(--bg-ground) !important;
}

html body.home .elementor-element-bgindexh #realizzazioni-home > .wrap {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 96px);
  width: min(1380px, calc(100% - 64px));
}

html body.home .elementor-element-bgindexh #realizzazioni-home .sec-head {
  display: block !important;
  grid-column: 1;
  align-self: start;
  margin: 0 0 24px !important;
}

html body.home .elementor-element-bgindexh #realizzazioni-home .sec-head > div { max-width: 26ch; }
html body.home .elementor-element-bgindexh #realizzazioni-home :is(h2, p) { color: var(--bg-ink) !important; }

html body.home .elementor-element-bgindexh #realizzazioni-home h2 {
  max-width: 9ch !important;
  font-family: Jost, system-ui, sans-serif !important;
  font-size: clamp(38px, 3.5vw, 56px) !important;
  font-weight: 500 !important;
  line-height: .94 !important;
  letter-spacing: -.065em !important;
}

html body.home .elementor-element-bgindexh #realizzazioni-home .sec-head p {
  margin-top: 24px;
  color: var(--bg-muted) !important;
  font-size: 15px;
  line-height: 1.55;
}

html body.home .elementor-element-bgindexh #realizzazioni-home .sec-head > .btn {
  display: inline-flex;
  margin-top: 26px;
  padding: 10px 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--bg-ink) !important;
  text-decoration: underline;
  text-underline-offset: 7px;
}

html body.home .elementor-element-bgindexh #realizzazioni-home .sec-head > .btn::after {
  display: none !important;
}

html body.home .elementor-element-bgindexh #realizzazioni-home .sec-head > .btn span {
  color: inherit !important;
}

html body.home .elementor-element-bgindexh #bgHomeProjects {
  display: flex !important;
  grid-column: 2;
  align-self: start;
  align-items: end;
  gap: clamp(12px, 1.4vw, 22px) !important;
  min-width: 0;
  width: 100% !important;
  max-width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 0 0 18px !important;
  cursor: grab;
  scrollbar-color: var(--bg-ink) transparent;
}

html body.home .elementor-element-bgindexh #bgHomeProjects:active { cursor: grabbing; }

html body.home .elementor-element-bgindexh #bgHomeProjects > .card {
  flex: 0 0 clamp(230px, 21vw, 318px) !important;
  align-self: end;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body.home .elementor-element-bgindexh #bgHomeProjects > .card .c-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-fog);
}

html body.home .elementor-element-bgindexh #bgHomeProjects > .card:nth-child(2) .c-img,
html body.home .elementor-element-bgindexh #bgHomeProjects > .card:nth-child(5) .c-img { aspect-ratio: 16 / 10; }

html body.home .elementor-element-bgindexh #bgHomeProjects > .card:nth-child(3) .c-img,
html body.home .elementor-element-bgindexh #bgHomeProjects > .card:nth-child(7) .c-img { aspect-ratio: 1; }

html body.home .elementor-element-bgindexh #bgHomeProjects > .card .c-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 0 !important;
}

html body.home .elementor-element-bgindexh #bgHomeProjects > .card h3 {
  color: var(--bg-ink) !important;
  font-family: Jost, system-ui, sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

html body.home .elementor-element-bgindexh #bgHomeProjects > .card .go {
  color: var(--bg-muted) !important;
  font-size: 12px;
  white-space: nowrap;
}

html body.home .elementor-element-bgindexh #settori { background: var(--bg-fog) !important; }

html body.home .elementor-element-bgindexh #settori .bg-sector-card,
html body.home .elementor-element-bgindexh #settori .bg-sector-card:nth-child(n+4) {
  border-radius: 0;
}

html body.home .elementor-element-bgindexh #cosa-facciamo { background: var(--bg-ground) !important; }
html body.home .elementor-element-bgindexh #cosa-facciamo .bg-supplies-photo { border-radius: 0; background: var(--bg-fog); }
html body.home .elementor-element-bgindexh #metodo { background: var(--bg-ground) !important; }
html body.home .elementor-element-bgindexh #metodo .steps { border-top: 0; }
html body.home .elementor-element-bgindexh #metodo .step { border-right: 0; }
html body.home .elementor-element-bgindexh #metodo .bg-step-number { display: none; }

html body.home .elementor-element-bgindexh #metodo .bar {
  width: 52px;
  height: 4px;
  background: var(--bg-water) !important;
}

html body.home .elementor-element-bgindexh #contatti-cta { background: var(--bg-deep) !important; }

html body.home .elementor-element-bgindexh #contatti-cta .btn.solid {
  background: var(--bg-water) !important;
  color: var(--bg-deep) !important;
}

html body.home a:focus-visible,
html body.home button:focus-visible,
html body.bg-inner-page a:focus-visible,
html body.bg-site-catalog a:focus-visible {
  outline: 3px solid var(--bg-water);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  html body .bg-project-navigation__inner { width: calc(100% - 40px); gap: 18px; }
  html body .bg-project-navigation__label { display: none; }
  html body .bg-project-navigation a { padding-block: 16px; font-size: 12px; }

  html body.home header#nav.nav,
  html body.home header#nav.nav.shrink,
  html body.home header#nav.nav .wrap { min-height: 68px; }

  html body.home header#nav.nav .wrap,
  html body.home .elementor-element-bgindexh #top.hero.bright .wrap,
  html body.home .elementor-element-bgindexh #realizzazioni-home > .wrap { width: calc(100% - 36px); }

  html body.home .elementor-element-bgindexh #top.hero.bright .wrap {
    min-height: 100svh;
    padding: 68px 0 42px !important;
  }

  html body.home .elementor-element-bgindexh #top.hero.bright .hero-inner { width: 100% !important; max-width: 560px !important; }
  html body.home .elementor-element-bgindexh #top.hero.bright h1 { max-width: 10ch; font-size: clamp(52px, 15vw, 76px) !important; }
  html body.home .elementor-element-bgindexh #top.hero.bright p { font-size: 16px !important; }

  html body.home .elementor-element-bgindexh #top .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  html body.home .elementor-element-bgindexh #realizzazioni-home { padding: 72px 0 92px !important; }
  html body.home .elementor-element-bgindexh #realizzazioni-home > .wrap { display: block; }
  html body.home .elementor-element-bgindexh #realizzazioni-home h2 { max-width: 10ch; }

  html body.home .elementor-element-bgindexh #bgHomeProjects {
    margin-top: 42px;
    padding-bottom: 18px !important;
  }

  html body.home .elementor-element-bgindexh #bgHomeProjects > .card { flex-basis: min(72vw, 300px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body .bg-project-navigation a,
  html body.bg-inner-page .segments .card,
  html body.bg-inner-page .cards .card,
  html body.bg-inner-page .feature .card,
  html body.home .elementor-element-bgindexh #bgHomeProjects > .card .c-img img { transition: none; }
}
