:root {
  --ink: #1C2329;
  --muted: #68717A;
  --paper: #F7F3EA;
  --sand: #EFE7DA;
  --mist: #EEF1F2;
  --white: #FFFFFF;
  --blue: #142635;
  --accent: #9A5F33;
  --line: rgba(28, 35, 41, .14);
  --radius: 18px;
  --max: 1240px;
  --font: "Italiana", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home-page {
  height: 100svh;
  overflow: hidden;
  background: #0f1519;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.04em;
  line-height: 1.02;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.85rem, 7.2vw, 6.6rem);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4.7rem);
}

h3 {
  font-size: clamp(1.24rem, 2.1vw, 2rem);
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - 42px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(241, 234, 223, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(28, 35, 41, .08);
}

.home-page .site-header {
  background: linear-gradient(180deg, rgba(9, 14, 18, .62), rgba(9, 14, 18, .18) 72%, rgba(9, 14, 18, 0));
  border-bottom: 0;
  color: #fff;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 760;
  letter-spacing: -.03em;
  min-width: 0;
}

.brand img {
  width: 150px;
  height: auto;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand small {
  color: rgba(28, 35, 41, .62);
  font-size: .72rem;
  letter-spacing: .03em;
  font-weight: 700;
}

.home-page .brand img,
.site-footer .footer-logo {
  filter: brightness(0) invert(1);
}

.home-page .brand small {
  color: rgba(255, 255, 255, .72);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.nav-dropdown-toggle,
.language-toggle {
  color: rgba(28, 35, 41, .72);
  font-family: var(--font);
  font-size: .86rem;
  font-weight: 780;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.is-active,
.nav-dropdown.is-current .nav-dropdown-toggle,
.nav-dropdown-toggle:hover,
.language-toggle:hover {
  color: var(--ink);
}

.home-page .main-nav a,
.home-page .nav-dropdown-toggle,
.home-page .language-toggle {
  color: rgba(255, 255, 255, .78);
}

.home-page .main-nav a:hover,
.home-page .nav-dropdown-toggle:hover,
.home-page .language-toggle:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
}

.nav-dropdown,
.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle,
.language-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.language-toggle {
  min-height: 34px;
  min-width: 48px;
  padding: 0 12px;
  border: 1px solid rgba(28, 35, 41, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .30);
}

.home-page .language-toggle {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .08);
}

.nav-dropdown-menu,
.language-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 210px;
  min-width: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 243, 234, .98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .14);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.language-menu {
  left: auto;
  right: 0;
  min-width: 172px;
  transform: translate(0, 8px);
}

.home-page .nav-dropdown-menu,
.home-page .language-menu {
  background: rgba(20, 38, 53, .96);
  border-color: rgba(255, 255, 255, .14);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu,
.language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu,
.language-switcher.is-open .language-menu {
  transform: translate(0, 0);
}

.nav-dropdown-menu a,
.language-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: .86rem;
  font-weight: 760;
  text-align: left;
  white-space: wrap;
  cursor: pointer;
}

.home-page .nav-dropdown-menu a,
.home-page .language-menu button {
  color: rgba(255, 255, 255, .86);
}

.nav-dropdown-menu a:hover,
.language-menu button:hover,
.language-menu button.is-active {
  background: rgba(36, 55, 70, .08);
  color: var(--ink);
}

.home-page .nav-dropdown-menu a:hover,
.home-page .language-menu button:hover,
.home-page .language-menu button.is-active {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.home-shell {
  position: relative;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: #11191f;
}

.home-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}

.home-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 17, .86) 0%, rgba(8, 13, 17, .58) 34%, rgba(8, 13, 17, .24) 66%, rgba(8, 13, 17, .42) 100%),
    linear-gradient(0deg, rgba(8, 13, 17, .72) 0%, rgba(8, 13, 17, .10) 46%, rgba(8, 13, 17, .54) 100%);
}

.home-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 142px 0 62px;
  color: #fff;
}

.home-copy {
  max-width: 820px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .76);
  font-size: .72rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.home-copy h1 {
  margin-bottom: 18px;
  max-width: 820px;
  color: #fff;
  text-wrap: balance;
}

.home-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 780;
  letter-spacing: .02em;
  border: 1px solid currentColor;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .42);
}

.button-light:hover {
  background: #fff;
  color: var(--ink);
}

.video-panel {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  width: min(350px, calc(100vw - 64px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(10, 16, 20, .30);
  backdrop-filter: blur(14px);
  color: #fff;
  border-radius: 18px;
}

.video-panel strong {
  display: block;
  margin-bottom: 5px;
  font-size: .95rem;
}

.video-panel span {
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
}

.video-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.video-dot {
  width: 34px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
}

.video-dot.is-active {
  background: #fff;
}

.page-main {
  padding-top: 78px;
}

.page-hero {
  padding: clamp(62px, 8vw, 104px) 0 clamp(46px, 6vw, 78px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact-hero h1 {
  max-width: 930px;
  font-size: clamp(2.55rem, 5.2vw, 5.2rem);
}

.page-hero.alt {
  background: var(--mist);
}

.page-label {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 830;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  text-wrap: balance;
}

.page-hero p {
  max-width: 700px;
  font-size: 1.08rem;
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section.sand {
  background: var(--sand);
}

.section.mist {
  background: var(--mist);
}

.section.white {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr);
}

.text-block p {
  font-size: 1.02rem;
  max-width: 640px;
}

.image-box {
  overflow: hidden;
  border-radius: var(--radius);
  background: #d9dedf;
  min-height: 340px;
}

.image-box img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

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

.card {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.card span,
.project-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.card h3 {
  margin-bottom: 12px;
}

.project-card {
  display: grid;
  gap: 18px;
}

.project-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d9dedf;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.project-card:hover .thumb img {
  transform: scale(1.035);
}

.project-card h3 {
  margin: 0 0 8px;
}

.project-card p {
  margin: 0;
}

.project-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 5vw, 68px) 0;
}

.project-full .image-box {
  min-height: 390px;
}

.detail-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.detail-list div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.contact-lines {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-lines a,
.contact-lines span {
  font-size: clamp(1.08rem, 1.9vw, 1.7rem);
  letter-spacing: -.03em;
  font-weight: 650;
  color: var(--ink);
}

.map-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d9dedf;
  border: 1px solid var(--line);
}

.map-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.map-card span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  font-weight: 800;
}

.map-card span::after {
  content: "↗";
}

.hours {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hours p {
  margin-bottom: 8px;
}

.site-footer {
  background: var(--blue);
  color: #fff;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .7fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-logo {
  width: clamp(120px, 15vw, 160px);
  margin-bottom: 14px;
  z-index: 0;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .72);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .brand img {
    width: 136px;
  }

  .main-nav {
    gap: 20px;
  }

  .home-copy {
    max-width: 700px;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(28, 35, 41, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
    color: var(--ink);
  }

  .home-page .nav-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .30);
    background: rgba(255, 255, 255, .08);
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    margin: 2px 0;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(247, 243, 234, .97);
    border: 1px solid rgba(28, 35, 41, .12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
  }

  .main-nav.is-open {
    display: flex;
  }

  .home-page .main-nav {
    background: rgba(20, 38, 53, .96);
    border-color: rgba(255, 255, 255, .14);
  }

  .main-nav a,
  .nav-dropdown-toggle,
  .language-toggle {
    min-height: 44px;
    padding: 12px;
    border-radius: 12px;
    color: var(--ink);
    text-align: left;
  }

  .language-toggle {
    width: 100%;
    border-color: rgba(28, 35, 41, .14);
    background: rgba(255, 255, 255, .50);
  }

  .home-page .main-nav a,
  .home-page .nav-dropdown-toggle,
  .home-page .language-toggle {
    color: rgba(255, 255, 255, .86);
  }

  .nav-dropdown,
  .language-switcher {
    display: block;
  }

  .nav-dropdown-menu,
  .language-menu {
    position: static;
    min-width: 0;
    margin-top: 2px;
    padding: 6px;
    box-shadow: none;
    border-radius: 14px;
    background: rgba(36, 55, 70, .06);
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .language-menu {
    right: auto;
  }

  .home-page .nav-dropdown-menu,
  .home-page .language-menu {
    background: rgba(255, 255, 255, .08);
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .language-switcher.is-open .language-menu,
  .language-switcher:focus-within .language-menu {
    display: block;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .language-switcher:hover .language-menu {
    transform: none;
  }

  .split,
  .split.reverse,
  .project-full,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .home-content {
    padding-bottom: 172px;
  }

  .video-panel {
    left: 21px;
    right: 21px;
    bottom: 24px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 126px;
  }

  .brand span {
    display: none;
  }

  .main-nav {
    top: 70px;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3.2rem);
  }

  .home-shell {
    min-height: 540px;
  }

  .home-content {
    align-items: flex-end;
    padding: 116px 0 168px;
  }

  .home-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
    margin-bottom: 14px;
  }

  .home-copy p {
    font-size: .96rem;
    max-width: 100%;
  }

  .kicker {
    font-size: .66rem;
    margin-bottom: 14px;
  }

  .home-actions {
    margin-top: 22px;
  }

  .home-actions .button {
    width: 100%;
    min-height: 44px;
  }

  .video-panel {
    padding: 14px;
  }

  .page-main {
    padding-top: 70px;
  }

  .page-hero {
    padding-top: 46px;
  }

  .page-hero.compact-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.45rem);
  }

  .page-hero p {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  .image-box,
  .project-full .image-box {
    min-height: 250px;
  }

  .map-card img {
    height: 250px;
  }
}

@media (max-height: 700px) and (min-width: 760px) {
  .home-copy h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
  }

  .home-content {
    padding-bottom: 38px;
  }

  .video-panel {
    bottom: 24px;
  }
}


/* PROJECTS - PIANE CASA / RESIDENTIAL PLANS */
.project-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card .thumb {
  background: #fff;
}

.plan-card .thumb img {
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.plan-section {
  border-top: 1px solid var(--line);
}

.plan-feature {
  align-items: start;
}

.plan-image-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 52px rgba(28, 35, 41, .08);
}

.plan-image-card img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: #fff;
}

.plan-image-card span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  font-weight: 820;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.plan-image-card span::after {
  content: "↗";
  color: var(--muted);
}

@media (max-width: 1120px) {
  .project-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .project-overview-grid {
    grid-template-columns: 1fr;
  }

  .plan-card .thumb img {
    padding: 8px;
  }

  .plan-image-card img {
    max-height: none;
  }
}


/* VIDEO INTRODUTTIVI PAGINE PROGETTO */
.project-video-hero {
  width: 100%;
  height: min(62vh, 680px);
  min-height: 360px;
  overflow: hidden;
  background: #101820;
  border-bottom: 1px solid var(--line);
}

.project-video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 920px) {
  .project-video-hero {
    height: 46vh;
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .project-video-hero {
    height: 38vh;
    min-height: 240px;
  }
}

/* HOME — NAVBAR COMPLETAMENTE TRASPARENTE */
body.home-page .site-header {
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 0 !important;
  box-shadow: none;
}

body.home-page .header-inner {
  text-shadow: 0 1px 18px rgba(0, 0, 0, .34);
}

body.home-page .brand img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 14px rgba(0, 0, 0, .28));
}

body.home-page .main-nav a,
body.home-page .nav-dropdown-toggle,
body.home-page .language-toggle {
  text-shadow: 0 1px 14px rgba(0, 0, 0, .34);
}

body.home-page .nav-toggle {
  background: rgba(0, 0, 0, .10);
  border-color: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (max-width: 920px) {
  body.home-page .main-nav {
    background: rgba(20, 38, 53, .96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

/* VIDEO QUALITY + OVERLAY UNIFORME */
.home-video {
  opacity: 1;
  filter: saturate(1.04) contrast(1.025);
}

.home-overlay {
  background: linear-gradient(270deg,
      rgba(8, 13, 17, .16) 0%,
      rgba(8, 13, 17, .22) 42%,
      rgba(8, 13, 17, .31) 100%);
}

.project-video-hero {
  position: relative;
}

.project-video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(270deg,
      rgba(8, 13, 17, .10) 0%,
      rgba(8, 13, 17, .16) 45%,
      rgba(8, 13, 17, .24) 100%);
}

.project-video-hero video {
  filter: saturate(1.04) contrast(1.025);
}


/* CONTACT FORM COMPILABILE */
.contact-form-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.contact-form-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 52px rgba(28, 35, 41, .07);
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full,
.form-actions {
  grid-column: 1 / -1;
}

.form-field span,
.form-consent span {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(28, 35, 41, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.caldera-style-form .form-field textarea {
  min-height: 130px;
}

.form-field-file input[type="file"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px dashed rgba(28, 35, 41, .26);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--muted);
  cursor: pointer;
}

.form-file-caption,
.form-file-list {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.4;
}

.form-file-list:not(:empty) {
  color: var(--accent);
  font-weight: 720;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(154, 95, 51, .62);
  box-shadow: 0 0 0 4px rgba(154, 95, 51, .10);
  background: #fff;
}

.form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.form-consent span {
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: none;
  font-size: .92rem;
  font-weight: 620;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 4px;
}

.form-actions p {
  flex: 1 1 280px;
  margin: 0;
  font-size: .92rem;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  flex: 1 1 100%;
  margin: 0;
  font-size: .92rem;
  font-weight: 720;
}

.form-status:empty {
  display: none;
}

.form-status.is-pending {
  color: var(--muted);
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: #9A3324;
}

.contact-form-panel button[disabled] {
  opacity: .68;
  cursor: wait;
  transform: none;
}

.button-dark {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 920px) {

  .contact-form-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    width: 100%;
  }
}

/* FOOTER SOCIAL LINKS */
.footer-socials {
  display: grid;
  gap: 8px;
  margin: 18px 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-socials a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .86) !important;
  font-weight: 780;
  letter-spacing: .02em;
}

.footer-socials a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
}

.footer-socials a:hover {
  color: #ffffff !important;
}

/* CORREZIONE THUMBNAIL PIANTE DELLA CASA — immagine piena come le altre card */
.plan-card .thumb {
  aspect-ratio: 4 / 3;
  background: #d9dedf;
}

.plan-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 50%;
  padding: 0 !important;
  background: #d9dedf;
}

@media (max-width: 640px) {
  .plan-card .thumb img {
    padding: 0 !important;
    object-position: 38% 50%;
  }
}


/* PAGINA PIANTE DELLA CASA SEPARATA */
.plans-page .plans-hero {
  background: var(--paper);
}

.plan-standalone-section {
  padding-top: 80px;
}

.plan-feature-single {
  align-items: center;
}

.plan-feature-single .plan-image-card {
  min-height: 420px;
}

.plan-feature-single .plan-image-card img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {

  .plan-feature-single .plan-image-card,
  .plan-feature-single .plan-image-card img {
    min-height: 300px;
  }
}

/* ALTERNANZA SEZIONI — prima sezione bianca, seconda beige */
body:not(.home-page) .page-main {
  background: var(--white);
}

body:not(.home-page) .page-hero,
body:not(.home-page) .page-hero.alt,
body:not(.home-page) .plans-page .plans-hero {
  background: var(--white) !important;
}

/* Dopo il titolo pagina: beige, poi bianco, poi beige, poi bianco. */
body:not(.home-page) main.page-main>.page-hero+.section,
body:not(.home-page) main.page-main>.project-video-hero+.page-hero+.section {
  background: var(--sand) !important;
}

body:not(.home-page) main.page-main>.page-hero+.section+.section,
body:not(.home-page) main.page-main>.project-video-hero+.page-hero+.section+.section {
  background: var(--white) !important;
}

body:not(.home-page) main.page-main>.page-hero+.section+.section+.section,
body:not(.home-page) main.page-main>.project-video-hero+.page-hero+.section+.section+.section {
  background: var(--sand) !important;
}

body:not(.home-page) main.page-main>.page-hero+.section+.section+.section+.section,
body:not(.home-page) main.page-main>.project-video-hero+.page-hero+.section+.section+.section+.section {
  background: var(--white) !important;
}


/* HOME: transizione più morbida tra i video */
.home-video {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 2.4s ease-in-out, visibility 0s linear 2.4s, transform 8s ease-out;
  will-change: opacity, transform;
  transform: scale(1.02);
  backface-visibility: hidden;
}

.home-video.is-active {
  opacity: 1 !important;
  visibility: visible;
  transition: opacity 2.4s ease-in-out, visibility 0s linear 0s, transform 12s ease-out;
  transform: scale(1.06);
}

.home-overlay {
  background: linear-gradient(270deg,
      rgba(8, 13, 17, .16) 0%,
      rgba(8, 13, 17, .23) 42%,
      rgba(8, 13, 17, .32) 100%);
}

/* AEROPORTI: apertura a video pieno come la home, con contenuti sotto */
body.aero-page .page-main {
  padding-top: 0;
}

.aero-full-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #6f7d79;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.aero-full-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aero-bg-video {
  object-fit: cover;
  object-position: 70% center;
  filter: blur(34px) saturate(1.10) contrast(1.04);
  transform: scale(1.28);
  opacity: .82;
}

.aero-main-video {
  object-fit: contain;
  object-position: 82% center;
  opacity: .96;
  filter: saturate(1.05) contrast(1.03);
}

.aero-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 46%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(270deg,
      rgba(8, 13, 17, .08) 0%,
      rgba(8, 13, 17, .22) 45%,
      rgba(8, 13, 17, .70) 100%);
}

.aero-hero-content {
  position: relative;
  z-index: 2;
  padding: 150px 0 72px;
  color: #fff;
}

.aero-hero-content .page-label {
  color: rgba(255, 255, 255, .76);
}

.aero-hero-content h1 {
  max-width: 860px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.4rem);
  text-wrap: balance;
}

.aero-hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

body.aero-page .site-header {
  transition: background .28s ease, border-color .28s ease, color .28s ease;
}

body.aero-page:not(.aero-scrolled) .site-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: #fff;
}

body.aero-page:not(.aero-scrolled) .header-inner {
  text-shadow: 0 1px 18px rgba(0, 0, 0, .34);
}

body.aero-page:not(.aero-scrolled) .brand img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 14px rgba(0, 0, 0, .28));
}

body.aero-page:not(.aero-scrolled) .brand small,
body.aero-page:not(.aero-scrolled) .main-nav a,
body.aero-page:not(.aero-scrolled) .nav-dropdown-toggle,
body.aero-page:not(.aero-scrolled) .language-toggle {
  color: rgba(255, 255, 255, .82);
}

body.aero-page:not(.aero-scrolled) .main-nav a:hover,
body.aero-page:not(.aero-scrolled) .nav-dropdown-toggle:hover,
body.aero-page:not(.aero-scrolled) .language-toggle:hover {
  color: #fff;
}

body.aero-page:not(.aero-scrolled) .language-toggle {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .08);
}

body.aero-page:not(.aero-scrolled) .nav-dropdown-menu,
body.aero-page:not(.aero-scrolled) .language-menu {
  background: rgba(20, 38, 53, .96);
  border-color: rgba(255, 255, 255, .14);
}

body.aero-page:not(.aero-scrolled) .nav-dropdown-menu a,
body.aero-page:not(.aero-scrolled) .language-menu button {
  color: rgba(255, 255, 255, .86);
}

body.aero-page:not(.aero-scrolled) .nav-dropdown-menu a:hover,
body.aero-page:not(.aero-scrolled) .language-menu button:hover,
body.aero-page:not(.aero-scrolled) .language-menu button.is-active {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

body.aero-page.aero-scrolled .site-header {
  background: rgba(241, 234, 223, .94) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(28, 35, 41, .08) !important;
}

body.aero-page main.page-main>.aero-full-hero+.section {
  background: var(--white) !important;
}

body.aero-page main.page-main>.aero-full-hero+.section+.section {
  background: var(--sand) !important;
}

@media (max-width: 920px) {
  .aero-full-hero {
    min-height: 560px;
  }

  .aero-main-video {
    object-fit: cover;
    object-position: center;
    opacity: .78;
  }

  .aero-hero-overlay {
    background: linear-gradient(0deg,
        rgba(8, 13, 17, .70) 0%,
        rgba(8, 13, 17, .34) 52%,
        rgba(8, 13, 17, .42) 100%);
  }

  .aero-hero-content {
    padding: 120px 0 46px;
  }

  .aero-hero-content h1 {
    font-size: clamp(2.6rem, 12vw, 4.8rem);
  }

  body.aero-page:not(.aero-scrolled) .main-nav {
    background: rgba(20, 38, 53, .96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-video {
    transition: none;
  }
}

/* STUDIO — pagina più strutturata e autorevole */
.studio-page .studio-opening {
  border-bottom: 0;
}

.studio-opening-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(320px, .56fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: end;
}

.studio-opening-grid p {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.62;
}

.studio-visual-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: var(--radius);
  background: #d8dddc;
  box-shadow: 0 20px 60px rgba(28, 35, 41, .10);
}

.studio-visual-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(.96) contrast(1.02);
}

.studio-visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(10, 16, 20, .42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
}

.studio-visual-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
}

.studio-visual-caption span {
  color: rgba(255, 255, 255, .76);
  font-size: .88rem;
}

.studio-section-head {
  display: flex;
  width: 100%;
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.studio-section-head h2 {
  margin-bottom: 0;
}

.studio-section-head p {
  margin: 0 0 6px;
  font-size: 1.03rem;
  line-height: 1.6;
}

.studio-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.studio-domain-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .62);
}

.studio-domain-card span,
.studio-process-list span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.studio-domain-card span {
  margin-bottom: auto;
  color: var(--accent);
}

.studio-domain-card h3 {
  margin: 4px 0 10px;
  font-size: clamp(1.28rem, 1.7vw, 1.72rem);
}

.studio-domain-card p {
  margin: 0;
  font-size: .98rem;
}

.studio-process-list {
  display: grid;
  gap: 12px;
}

.studio-process-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.studio-process-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.studio-process-list h3 {
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 1.7vw, 1.68rem);
}

.studio-process-list p {
  max-width: 620px;
  margin: 0;
}

.studio-tool-list {
  display: grid;
  gap: 14px;
}

.studio-tool-list div {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
}

.studio-tool-list strong {
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.studio-final-card {
  max-width: 980px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: clamp(20px, 3vw, 30px);
  background: var(--blue);
  color: #fff;
}

.studio-final-card .page-label,
.studio-final-card p {
  color: rgba(255, 255, 255, .72);
}

.studio-final-card h2 {
  max-width: 820px;
  color: #fff;
}

.studio-final-card p {
  max-width: 680px;
  font-size: 1.05rem;
}

.studio-final-card .button {
  margin-top: 14px;
  color: #fff;
  border-color: rgba(255, 255, 255, .46);
}

.studio-final-card .button:hover {
  background: #fff;
  color: var(--ink);
}

@media (max-width: 1040px) {

  .studio-opening-grid,
  .studio-section-head,
  .studio-domain-grid {
    grid-template-columns: 1fr;
  }

  .studio-domain-grid {
    gap: 14px;
  }

  .studio-domain-card {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .studio-opening-grid p {
    font-size: .98rem;
  }

  .studio-visual-card,
  .studio-visual-card img {
    min-height: 300px;
  }

  .studio-domain-card {
    min-height: 0;
    padding: 22px;
  }

  .studio-domain-card span {
    margin-bottom: 28px;
  }

  .studio-process-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .studio-tool-list div {
    min-height: 76px;
  }

  .studio-final-card {
    padding: 26px;
  }
}

/* EDILIZIA — galleria residenziale per singola casa */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.section-head p {
  max-width: 680px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.house-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.house-card {
  appearance: none;
  display: grid;
  gap: 13px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}

.house-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d9dedf;
}

.house-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
}

.house-card:hover .house-card-image img,
.house-card:focus-visible .house-card-image img {
  transform: scale(1.035);
  filter: contrast(1.03);
}

.house-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 8px;
  border-radius: var(--radius);
}

.house-card-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.house-card strong {
  display: block;
  max-width: 420px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.house-card small {
  display: block;
  max-width: 360px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.48;
}

body.modal-open {
  overflow: hidden;
}

.house-modal[hidden] {
  display: none;
}

.house-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
}

.house-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 20, .72);
  backdrop-filter: blur(10px);
}

.house-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1180px, calc(100vw - 56px));
  max-height: min(820px, calc(100svh - 56px));
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .38);
}

.house-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(10, 16, 20, .48);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.house-modal-media {
  position: relative;
  min-height: min(66svh, 640px);
  background: #12191f;
}

.house-modal-media img {
  width: 100%;
  height: 100%;
  min-height: min(66svh, 640px);
  object-fit: contain;
}

.house-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(10, 16, 20, .50);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.house-modal-prev {
  left: 18px;
}

.house-modal-next {
  right: 18px;
}

.house-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.house-modal-footer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.house-modal-footer span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.house-modal-thumbs {
  display: flex;
  gap: 8px;
  max-width: 58%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.house-thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #d9dedf;
  cursor: pointer;
  opacity: .72;
}

.house-thumb.is-active {
  border-color: var(--blue);
  opacity: 1;
}

.house-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 920px) {
  .house-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .house-modal {
    padding: 16px;
  }

  .house-modal-dialog {
    width: calc(100vw - 32px);
    max-height: calc(100svh - 32px);
  }

  .house-modal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .house-modal-thumbs {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .house-grid {
    grid-template-columns: 1fr;
  }

  .house-card-image {
    aspect-ratio: 4 / 3.05;
  }

  .house-modal {
    padding: 0;
  }

  .house-modal-dialog {
    width: 100vw;
    height: 100svh;
    max-height: none;
    border-radius: 0;
  }

  .house-modal-media,
  .house-modal-media img {
    min-height: 68svh;
  }

  .house-modal-nav {
    width: 42px;
    height: 42px;
  }

  .house-modal-prev {
    left: 12px;
  }

  .house-modal-next {
    right: 12px;
  }

  .house-modal-footer {
    padding: 16px;
  }

  .house-thumb {
    width: 68px;
    height: 48px;
  }
}


/* EDILIZIA — modal galleria con descrizione intervento */
.house-modal-dialog {
  grid-template-rows: none;
  width: min(1240px, calc(100vw - 56px));
  max-height: min(840px, calc(100svh - 56px));
  background: var(--paper);
}

.house-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .62fr);
  min-height: min(76svh, 780px);
}

.house-modal-media {
  min-height: 0;
  height: 100%;
  background: #11191f;
}

.house-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.house-modal-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 46px);
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.house-modal-kicker {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.house-modal-info h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.55rem);
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--ink);
}

.house-modal-info p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.58;
}

.house-modal-meta {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.house-modal-meta div {
  display: grid;
  gap: 3px;
}

.house-modal-meta strong {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.house-modal-meta span {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 760;
  line-height: 1.35;
}

.house-modal-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.house-modal-footer>span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.house-modal-thumbs {
  max-width: 100%;
}

.house-modal-close {
  border-color: rgba(28, 35, 41, .18);
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
}

@media (max-width: 900px) {
  .house-modal {
    padding: 14px;
  }

  .house-modal-dialog {
    width: calc(100vw - 28px);
    max-height: calc(100svh - 28px);
    overflow-y: auto;
  }

  .house-modal-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .house-modal-media {
    min-height: 46svh;
  }

  .house-modal-info {
    padding: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .house-modal-nav {
    width: 42px;
    height: 42px;
  }
}

/* EDILIZIA — vista dedicata fullscreen per singola casa */
.house-modal {
  padding: 0 !important;
  background: var(--paper);
}

.house-modal-backdrop {
  background: rgba(10, 16, 20, .86);
  backdrop-filter: blur(8px);
}

.house-modal-dialog {
  width: 100vw !important;
  height: 100svh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: var(--paper);
}

.house-modal-layout {
  height: 100svh;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .55fr);
}

.house-modal-media {
  height: 100svh !important;
  min-height: 0 !important;
}

.house-modal-media img {
  height: 100svh !important;
  min-height: 0 !important;
  object-fit: contain;
}

.house-modal-info {
  height: 100svh;
  overflow-y: auto;
  padding: clamp(32px, 4vw, 72px) clamp(26px, 3vw, 52px);
}

.house-modal-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  z-index: 8;
}

.house-modal-thumbs {
  padding-bottom: 6px;
}

@media (max-width: 900px) {
  .house-modal-dialog {
    overflow-y: auto !important;
  }

  .house-modal-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh !important;
  }

  .house-modal-media {
    height: 58svh !important;
    min-height: 58svh !important;
    flex: 0 0 58svh;
  }

  .house-modal-media img {
    height: 58svh !important;
    min-height: 58svh !important;
  }

  .house-modal-info {
    height: auto;
    min-height: 42svh;
    overflow: visible;
    padding: 26px 22px 32px;
  }

  .house-modal-close {
    top: 14px;
    right: 14px;
  }
}

/* EDILIZIA — immagini fullscreen uniformi nella vista casa */
.house-modal-media {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #101820 !important;
}

.house-modal-media img[data-house-modal-image] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 900px) {
  .house-modal-media img[data-house-modal-image] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}


/* EDILIZIA — pagine separate tradizionale / legno */
.nav-menu-group {
  display: grid;
  gap: 4px;
}

.nav-menu-label {
  display: block;
  padding: 8px 12px 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.nav-subitem {
  padding-left: 22px !important;
}

.project-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.building-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
}

.house-grid-single {
  grid-template-columns: minmax(260px, 420px);
}

.house-card-image img {
  transform: scale(1.001);
  will-change: transform, filter;
}

.house-card:hover .house-card-image img,
.house-card:focus-visible .house-card-image img {
  transform: scale(1.055);
}

.house-modal-media img[data-house-modal-image] {
  animation: houseImageSoftIn .72s cubic-bezier(.2, .72, .2, 1) both;
  will-change: transform, opacity, filter;
}

.house-modal-media img[data-house-modal-image].is-changing {
  animation: houseImageSoftIn .72s cubic-bezier(.2, .72, .2, 1) both;
}

@keyframes houseImageSoftIn {
  0% {
    opacity: .78;
    transform: scale(1.025);
    filter: saturate(.96) contrast(.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) contrast(1);
  }
}

.house-modal[aria-hidden="false"] .house-modal-info {
  animation: houseInfoSoftIn .52s ease both;
}

@keyframes houseInfoSoftIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 920px) {
  .building-choice-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu-label {
    padding: 12px 12px 4px;
  }

  .nav-subitem {
    padding-left: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .house-card-image img,
  .house-modal-media img[data-house-modal-image],
  .house-modal[aria-hidden="false"] .house-modal-info {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 920px) {

  /* Permette lo scorrimento fluido all'interno del menu mobile se è lungo */
  .main-nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100svh - 90px);
  }

  /* Impedisce che il menu resti nascosto da logiche di hover desktop */
  .nav-dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    transform: none !important;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(20, 38, 53, 0.04) !important;
    padding-left: 12px;
    margin-top: 4px;
  }

  /* Quando il dropdown è aperto tramite classe JS, mostra il menu */
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block !important;
  }

  /* Allinea il trigger dei servizi per mobile */
  .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}


/* EDILIZIA — mantiene la pagina introduttiva e rende il titolo del gruppo cliccabile */
.nav-menu-label.nav-building-home {
  color: var(--muted) !important;
  text-transform: uppercase;
}

.nav-menu-label.nav-building-home:hover,
.nav-menu-label.nav-building-home:focus-visible {
  color: var(--ink) !important;
  background: rgba(36, 55, 70, .08);
}

body.home-page .nav-menu-label.nav-building-home {
  color: rgba(255, 255, 255, .66) !important;
}

body.home-page .nav-menu-label.nav-building-home:hover,
body.home-page .nav-menu-label.nav-building-home:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, .10);
}

.building-choice-page .project-full {
  align-items: center;
}

/* OPERE PUBBLICHE — interventi reali sul campo */
.public-field-section {
  border-top: 1px solid var(--line);
}

.public-field-wrap {
  display: grid;
  gap: clamp(30px, 5vw, 70px);
}

.public-field-intro {
  max-width: 930px;
}

.public-field-intro h2 {
  max-width: 900px;
  margin-bottom: 18px;
}

.public-field-intro p {
  max-width: 700px;
  font-size: 1.06rem;
}

.public-field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .82fr);
  gap: clamp(26px, 4.8vw, 64px);
  align-items: stretch;
}

.public-field-video {
  position: relative;
  min-height: clamp(360px, 54vw, 660px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #11191f;
  box-shadow: 0 22px 64px rgba(28, 35, 41, .10);
}

.public-field-video video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.01);
}

.public-field-text {
  align-self: center;
}

.public-field-text h3 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.5vw, 3.6rem);
}

.public-field-text>p {
  max-width: 560px;
  font-size: 1.02rem;
}

.public-field-gallery {
  display: grid;
  grid-template-columns: 1.2fr .85fr .85fr 1.2fr;
  gap: 14px;
}

.public-field-gallery figure,
.public-field-thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d9dedf;
}

.public-field-gallery figure:nth-child(2),
.public-field-gallery figure:nth-child(3),
.public-field-thumb:nth-child(2),
.public-field-thumb:nth-child(3) {
  aspect-ratio: 4 / 4.7;
  transform: translateY(22px);
}

.public-field-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease, filter .75s ease;
}

.public-field-gallery figure:hover img,
.public-field-thumb:hover img,
.public-field-thumb:focus-visible img {
  transform: scale(1.045);
  filter: contrast(1.04);
}

@media (max-width: 920px) {
  .public-field-layout {
    grid-template-columns: 1fr;
  }

  .public-field-video {
    min-height: 520px;
  }

  .public-field-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-field-gallery figure:nth-child(2),
  .public-field-gallery figure:nth-child(3),
  .public-field-thumb:nth-child(2),
  .public-field-thumb:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .public-field-video {
    min-height: 420px;
  }

  .public-field-gallery {
    grid-template-columns: 1fr;
  }

  .public-field-gallery figure,
  .public-field-thumb {
    aspect-ratio: 4 / 3.2;
  }
}


/* OPERE PUBBLICHE — galleria sopralluogo come vista fullscreen */
.public-field-thumb {
  padding: 0;
  border: 0;
  appearance: none;
  cursor: pointer;
  font: inherit;
  display: block;
  box-shadow: none;
}

.public-field-thumb:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.public-field-video video {
  object-position: center center;
  background: #11191f;
}

.public-field-section .house-modal-media img[data-house-modal-image] {
  transition: opacity .42s ease, transform .9s cubic-bezier(.2, .72, .2, 1), filter .42s ease;
}

.public-field-section .house-modal-media img[data-house-modal-image].is-changing {
  animation: publicFieldImageCrossfade .95s cubic-bezier(.2, .72, .2, 1) both, publicFieldImageDrift 10s ease-in-out .95s infinite alternate;
}

.public-field-section .house-thumb img {
  transition: transform .35s ease, filter .35s ease;
}

.public-field-section .house-thumb:hover img,
.public-field-section .house-thumb.is-active img {
  transform: scale(1.06);
  filter: contrast(1.04);
}

@keyframes publicFieldImageCrossfade {
  0% {
    opacity: 0;
    transform: scale(1.035);
    filter: blur(7px) saturate(.94);
  }

  55% {
    opacity: 1;
    filter: blur(0) saturate(1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes publicFieldImageDrift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.018) translate3d(7px, -5px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .public-field-section .house-modal-media img[data-house-modal-image].is-changing,
  .public-field-section .house-thumb img {
    animation: none !important;
    transition: none !important;
  }
}


/* OPERE PUBBLICHE — correzione video e galleria a 3 immagini */
.public-field-video video {
  object-fit: cover;
  object-position: center top;
  transform: scale(1.055);
}

.public-field-gallery {
  grid-template-columns: 1.12fr .92fr 1.12fr !important;
}

.public-field-thumb:nth-child(2) {
  aspect-ratio: 4 / 4.7;
  transform: translateY(22px);
}

.public-field-thumb:nth-child(3) {
  aspect-ratio: 4 / 5;
  transform: none;
}

@media (max-width: 920px) {
  .public-field-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .public-field-thumb:nth-child(2),
  .public-field-thumb:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .public-field-gallery {
    grid-template-columns: 1fr !important;
  }
}


/* OPERE PUBBLICHE — video più basso e album ferroviario unico */
.public-field-video {
  min-height: 0 !important;
  height: clamp(280px, 34vw, 430px) !important;
}

.public-field-video video {
  min-height: 0 !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  transform: scale(1.025) !important;
}

.public-field-gallery-single {
  display: block !important;
  max-width: min(760px, 100%) !important;
}

.public-field-album-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(260px, .72fr);
  align-items: stretch;
  width: 100%;
  min-height: 320px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 22px 64px rgba(28, 35, 41, .08);
}

.public-field-album-image {
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: #d9dedf;
}

.public-field-album-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease, filter .75s ease;
}

.public-field-album-card:hover .public-field-album-image img,
.public-field-album-card:focus-visible .public-field-album-image img {
  transform: scale(1.035);
  filter: contrast(1.04);
}

.public-field-album-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

.public-field-album-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 3vw, 42px);
}

.public-field-album-copy span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.public-field-album-copy strong {
  font-size: clamp(1.55rem, 2.6vw, 2.55rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.public-field-album-copy small {
  max-width: 330px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

.public-field-section .house-modal-layout {
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, .48fr) !important;
}

.public-field-section .house-modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2.2vw, 34px);
  background: #0f1519;
}

.public-field-section .house-modal-media img[data-house-modal-image] {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: calc(100svh - 68px) !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.public-field-section .house-modal-media img[data-house-modal-image].is-changing {
  animation: publicFieldImageSoftIn .72s cubic-bezier(.2, .72, .2, 1) both !important;
}

@keyframes publicFieldImageSoftIn {
  0% {
    opacity: 0;
    filter: blur(5px) saturate(.96);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
  }
}

@media (max-width: 920px) {
  .public-field-video {
    height: clamp(260px, 54vw, 380px) !important;
  }

  .public-field-album-card {
    grid-template-columns: 1fr;
  }

  .public-field-album-image {
    min-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .public-field-section .house-modal-layout {
    grid-template-columns: 1fr !important;
  }

  .public-field-section .house-modal-media {
    height: 68svh !important;
  }

  .public-field-section .house-modal-media img[data-house-modal-image] {
    max-height: calc(68svh - 36px) !important;
  }
}

@media (max-width: 640px) {
  .public-field-video {
    height: 300px !important;
  }

  .public-field-gallery-single {
    max-width: 100% !important;
  }

  .public-field-album-copy {
    padding: 22px;
  }
}

/* OPERE PUBBLICHE — dimensione video ferrovia indicata a video */
.public-field-video {
  height: clamp(540px, 48vw, 620px) !important;
  min-height: 0 !important;
}

.public-field-video video {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center 46% !important;
  transform: scale(1.045) !important;
}

@media (max-width: 920px) {
  .public-field-video {
    height: clamp(440px, 72vw, 560px) !important;
  }
}

@media (max-width: 640px) {
  .public-field-video {
    height: 430px !important;
  }
}


/* MATERIALI EDILIZIA — immagini di atmosfera per tradizionale / legno */
.material-thumb img {
  filter: saturate(.96) contrast(1.02);
}

.material-story-section {
  position: relative;
  overflow: hidden;
}

.material-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.material-story-grid.reverse {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.material-story-media {
  min-height: clamp(360px, 48vw, 620px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #11191f;
  box-shadow: 0 22px 60px rgba(28, 35, 41, .12);
}

.material-story-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.2s ease, filter 1.2s ease;
}

.material-story-media:hover img {
  transform: scale(1.045);
  filter: contrast(1.04) saturate(1.02);
}

.material-story-copy p {
  max-width: 640px;
  font-size: clamp(1rem, 1.12vw, 1.12rem);
}

.material-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.material-detail-grid.one-detail {
  grid-template-columns: minmax(0, .7fr);
}

.material-detail-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #d9dedf;
  border: 1px solid var(--line);
}

.material-detail-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.material-detail-grid figcaption {
  padding: 11px 12px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 820;
  line-height: 1.25;
}

.studio-territory-image-section {
  background: var(--sand) !important;
}

.territory-image-box img {
  object-position: center center;
}

body:not(.home-page) main.page-main>.project-video-hero+.page-hero+.material-story-section {
  background: var(--white) !important;
}

body:not(.home-page) main.page-main>.project-video-hero+.page-hero+.material-story-section+.house-gallery-section {
  background: var(--sand) !important;
}

@media (max-width: 920px) {

  .material-story-grid,
  .material-story-grid.reverse {
    grid-template-columns: 1fr;
  }

  .material-story-media {
    min-height: 320px;
  }

  .material-detail-grid,
  .material-detail-grid.one-detail {
    grid-template-columns: 1fr;
  }
}

/* NAVBAR — blu scuro uniforme e testi/logo leggibili */
:root {
  --nav-blue: #142635;
  --nav-blue-soft: #20394A;
  --nav-text: #F7F3EA;
  --nav-text-muted: rgba(247, 243, 234, .72);
}

.site-header,
body.home-page .site-header,
body.aero-page .site-header,
body.aero-page:not(.aero-scrolled) .site-header,
body.aero-page.aero-scrolled .site-header {
  background: rgba(20, 38, 53, .96) !important;
  color: var(--nav-text) !important;
  border-bottom: 1px solid rgba(247, 243, 234, .12) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .12) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
}

body.home-page .header-inner,
body.aero-page:not(.aero-scrolled) .header-inner {
  text-shadow: none !important;
}

.brand,
.brand strong,
.brand small,
.main-nav a,
.nav-dropdown-toggle,
.language-toggle,
.nav-menu-label.nav-building-home,
body.home-page .brand small,
body.aero-page:not(.aero-scrolled) .brand small,
body.aero-page:not(.aero-scrolled) .main-nav a,
body.aero-page:not(.aero-scrolled) .nav-dropdown-toggle,
body.aero-page:not(.aero-scrolled) .language-toggle,
body.home-page .main-nav a,
body.home-page .nav-dropdown-toggle,
body.home-page .language-toggle,
body.home-page .nav-menu-label.nav-building-home {
  color: var(--nav-text-muted) !important;
  text-shadow: none !important;
}

.brand strong,
.main-nav a:hover,
.main-nav a.is-active,
.nav-dropdown.is-current .nav-dropdown-toggle,
.nav-dropdown-toggle:hover,
.language-toggle:hover,
.nav-menu-label.nav-building-home:hover,
.nav-menu-label.nav-building-home:focus-visible,
body.home-page .main-nav a:hover,
body.home-page .nav-dropdown-toggle:hover,
body.home-page .language-toggle:hover,
body.home-page .nav-menu-label.nav-building-home:hover,
body.aero-page:not(.aero-scrolled) .main-nav a:hover,
body.aero-page:not(.aero-scrolled) .nav-dropdown-toggle:hover,
body.aero-page:not(.aero-scrolled) .language-toggle:hover {
  color: var(--nav-text) !important;
}

.brand img,
body.home-page .brand img,
body.aero-page:not(.aero-scrolled) .brand img {
  filter: brightness(0) invert(1) !important;
}

.language-toggle,
body.home-page .language-toggle,
body.aero-page:not(.aero-scrolled) .language-toggle {
  border-color: rgba(247, 243, 234, .32) !important;
  background: rgba(247, 243, 234, .08) !important;
}

.nav-dropdown-menu,
.language-menu,
body.home-page .nav-dropdown-menu,
body.home-page .language-menu,
body.aero-page:not(.aero-scrolled) .nav-dropdown-menu,
body.aero-page:not(.aero-scrolled) .language-menu {
  background: rgba(20, 38, 53, .98) !important;
  border-color: rgba(247, 243, 234, .14) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22) !important;
}

.nav-dropdown-menu a,
.language-menu button,
.nav-subitem,
body.home-page .nav-dropdown-menu a,
body.home-page .language-menu button,
body.aero-page:not(.aero-scrolled) .nav-dropdown-menu a,
body.aero-page:not(.aero-scrolled) .language-menu button {
  color: var(--nav-text-muted) !important;
}

.nav-dropdown-menu a:hover,
.language-menu button:hover,
.language-menu button.is-active,
.nav-menu-label.nav-building-home:hover,
.nav-menu-label.nav-building-home:focus-visible,
body.home-page .nav-dropdown-menu a:hover,
body.home-page .language-menu button:hover,
body.home-page .language-menu button.is-active,
body.aero-page:not(.aero-scrolled) .nav-dropdown-menu a:hover,
body.aero-page:not(.aero-scrolled) .language-menu button:hover,
body.aero-page:not(.aero-scrolled) .language-menu button.is-active {
  background: rgba(247, 243, 234, .10) !important;
  color: var(--nav-text) !important;
}

.nav-toggle,
body.home-page .nav-toggle,
body.aero-page:not(.aero-scrolled) .nav-toggle {
  color: var(--nav-text) !important;
  border-color: rgba(247, 243, 234, .30) !important;
  background: rgba(247, 243, 234, .08) !important;
}

@media (max-width: 920px) {

  .main-nav,
  body.home-page .main-nav,
  body.aero-page:not(.aero-scrolled) .main-nav {
    background: rgba(20, 38, 53, .98) !important;
    border-color: rgba(247, 243, 234, .14) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24) !important;
  }

  .main-nav a,
  .nav-dropdown-toggle,
  .language-toggle,
  .nav-menu-label.nav-building-home,
  body.home-page .main-nav a,
  body.home-page .nav-dropdown-toggle,
  body.home-page .language-toggle,
  body.aero-page:not(.aero-scrolled) .main-nav a,
  body.aero-page:not(.aero-scrolled) .nav-dropdown-toggle,
  body.aero-page:not(.aero-scrolled) .language-toggle {
    color: var(--nav-text-muted) !important;
  }

  .nav-dropdown-menu,
  .language-menu,
  body.home-page .nav-dropdown-menu,
  body.home-page .language-menu,
  body.aero-page:not(.aero-scrolled) .nav-dropdown-menu,
  body.aero-page:not(.aero-scrolled) .language-menu {
    background: rgba(247, 243, 234, .08) !important;
    border-color: rgba(247, 243, 234, .10) !important;
    box-shadow: none !important;
  }
}

/* CORREZIONE — sulla home la navbar resta trasparente sopra il video */
body.home-page .site-header {
  background: linear-gradient(180deg, rgba(9, 14, 18, .54), rgba(9, 14, 18, .16) 70%, rgba(9, 14, 18, 0)) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.home-page .brand,
body.home-page .brand strong,
body.home-page .brand small,
body.home-page .main-nav a,
body.home-page .nav-dropdown-toggle,
body.home-page .language-toggle,
body.home-page .nav-menu-label.nav-building-home {
  color: rgba(255, 255, 255, .84) !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .24) !important;
}

body.home-page .brand strong,
body.home-page .main-nav a:hover,
body.home-page .nav-dropdown-toggle:hover,
body.home-page .language-toggle:hover,
body.home-page .nav-menu-label.nav-building-home:hover,
body.home-page .nav-menu-label.nav-building-home:focus-visible {
  color: #fff !important;
}

body.home-page .brand img {
  filter: brightness(0) invert(1) !important;
}

body.home-page .language-toggle {
  border-color: rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .08) !important;
}

body.home-page .nav-dropdown-menu,
body.home-page .language-menu {
  background: rgba(20, 38, 53, .96) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22) !important;
}

body.home-page .nav-dropdown-menu a,
body.home-page .language-menu button {
  color: rgba(255, 255, 255, .86) !important;
}

body.home-page .nav-dropdown-menu a:hover,
body.home-page .language-menu button:hover,
body.home-page .language-menu button.is-active {
  background: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

body.home-page .nav-toggle {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .30) !important;
  background: rgba(255, 255, 255, .08) !important;
}

@media (max-width: 920px) {
  body.home-page .main-nav {
    background: rgba(20, 38, 53, .96) !important;
    border-color: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24) !important;
  }

  body.home-page .nav-dropdown-menu,
  body.home-page .language-menu {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .10) !important;
    box-shadow: none !important;
  }
}


/* LOGO NAVBAR — nuovo simbolo solo nell’intestazione */
.brand img.navbar-logo {
  width: 64px !important;
  height: 48px !important;
  max-height: 48px !important;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-footer .footer-logo {
  width: 150px;
}

@media (max-width: 920px) {
  .brand img.navbar-logo {
    width: 58px !important;
    height: 44px !important;
    max-height: 44px !important;
  }
}

@media (max-width: 640px) {
  .brand img.navbar-logo {
    width: 52px !important;
    height: 40px !important;
    max-height: 40px !important;
  }
}

/* CORREZIONE DIMENSIONE LOGO NAVBAR — stessa scala del vecchio logo */
.brand img.navbar-logo {
  width: 150px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 920px) {
  .brand img.navbar-logo {
    width: 136px !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 640px) {
  .brand img.navbar-logo {
    width: 126px !important;
    height: auto !important;
    max-height: none !important;
  }
}


/* SPAZIATURA LOGO NAVBAR — più aria sopra e sotto */
.site-header .header-inner {
  min-height: 96px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

body:not(.home-page) .page-main {
  padding-top: 116px !important;
}

body.aero-page .project-video-hero {
  margin-top: -116px;
}

@media (max-width: 920px) {
  .site-header .header-inner {
    min-height: 88px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body:not(.home-page) .page-main {
    padding-top: 104px !important;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    min-height: 82px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  body:not(.home-page) .page-main {
    padding-top: 96px !important;
  }
}


/* PALETTE DEFINITIVA — architettura e ingegneria */
:root {
  --blue: #142635;
  --ink: #1C2329;
  --muted: #68717A;
  --paper: #F7F3EA;
  --sand: #EFE7DA;
  --mist: #EEF1F2;
  --accent: #9A5F33;
  --white: #FFFFFF;
  --line: rgba(28, 35, 41, .14);
  --nav-blue: #142635;
  --nav-blue-soft: #20394A;
  --nav-text: #F7F3EA;
  --nav-text-muted: rgba(247, 243, 234, .74);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.site-header,
body.aero-page .site-header,
body.aero-page.aero-scrolled .site-header {
  background: rgba(20, 38, 53, .97) !important;
  border-bottom-color: rgba(247, 243, 234, .13) !important;
}

body.home-page .site-header {
  background: linear-gradient(180deg, rgba(8, 13, 17, .52), rgba(8, 13, 17, .15) 70%, rgba(8, 13, 17, 0)) !important;
}

.nav-dropdown-menu,
.language-menu,
body.aero-page:not(.aero-scrolled) .nav-dropdown-menu,
body.aero-page:not(.aero-scrolled) .language-menu {
  background: rgba(20, 38, 53, .985) !important;
}

.main-nav a:hover,
.main-nav a.is-active,
.nav-dropdown.is-current .nav-dropdown-toggle,
.nav-dropdown-toggle:hover,
.language-toggle:hover,
.nav-menu-label.nav-building-home:hover,
.nav-menu-label.nav-building-home:focus-visible {
  color: var(--white) !important;
}

.button:not(.button-light),
.contact-form button,
.form-submit,
button[type="submit"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper);
}

.button:not(.button-light):hover,
.contact-form button:hover,
.form-submit:hover,
button[type="submit"]:hover {
  background: #fff;
  border-color: #20394A;
}

.kicker,
.page-label,
.card span,
.project-card span,
.house-card-meta,
.material-label,
.field-label,
.meta-label {
  color: var(--accent);
}

::selection {
  background: rgba(154, 95, 51, .22);
}

.card,
.project-card,
.image-box,
.house-card-image,
.material-story-media,
.material-detail-card,
.public-field-card,
.rail-album-card {
  border-color: rgba(184, 178, 168, .48);
}


/* HOME — accenti bianchi al posto del rame */
body.home-page .kicker,
body.home-page .page-label,
body.home-page .card span,
body.home-page .project-card span,
body.home-page .house-card-meta,
body.home-page .material-label,
body.home-page .field-label,
body.home-page .meta-label {
  color: var(--white) !important;
}

body.home-page ::selection {
  background: rgba(255, 255, 255, .24);
}

/* ACCENTO — link di contenuto in rame (email, instagram, mappa) */
.contact-lines a {
  color: var(--accent);
}

.contact-lines a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.map-card:hover span {
  color: var(--accent);
}

/* PRIVACY POLICY / DISCLAIMER */
.privacy-content {
  max-width: 980px;
}

.privacy-content h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  letter-spacing: -.035em;
}

.privacy-content h2:not(:first-child) {
  margin-top: 48px;
}

.privacy-content h3 {
  margin: 34px 0 12px;
  color: var(--accent);
  font-size: 1.12rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.privacy-content p {
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.footer-links a[href="privacy-policy-disclaimer.html"],
.footer-links a[href="photographic-credits.html"] {
  color: rgba(255, 255, 255, .78);
}

.footer-links a[href="privacy-policy-disclaimer.html"]:hover,
.footer-links a[href="photographic-credits.html"]:hover {
  color: #fff;
}



/* FIX DEFINITIVO PRIVACY: tutto bianco, tranne navbar e footer */
body:not(.home-page) main.page-main.privacy-page,
body:not(.home-page) main.page-main.privacy-page>.page-hero,
body:not(.home-page) main.page-main.privacy-page>.page-hero.alt,
body:not(.home-page) main.page-main.privacy-page>.privacy-hero-white,
body:not(.home-page) main.page-main.privacy-page>.page-hero+.section,
body:not(.home-page) main.page-main.privacy-page>.section,
body:not(.home-page) main.page-main.privacy-page .section,
body:not(.home-page) main.page-main.privacy-page .section.white,
body:not(.home-page) main.page-main.privacy-page .privacy-content {
  background: #ffffff !important;
}

body:not(.home-page) main.page-main.privacy-page>.page-hero+.section {
  border-top: 1px solid rgba(28, 35, 41, .08);
}

.privacy-content a {
  color: var(--accent);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FONT GLOBALE: Italiana su tutto il sito */
html,
body,
button,
input,
select,
textarea,
.main-nav a,
.nav-dropdown-toggle,
.language-toggle,
.button {
  font-family: "Italiana", Georgia, "Times New Roman", serif !important;
}

/* LEGGIBILITÀ FONT ITALIANA: testi piccoli più marcati */
body {
  font-synthesis-weight: auto;
}

p,
li,
small,
span,
label,
input,
select,
textarea,
button,
.footer-links a,
.footer-socials a,
.main-nav a,
.nav-dropdown-toggle,
.language-toggle,
.brand small,
.kicker,
.page-label,
.video-panel span,
.form-field span,
.form-consent span,
.form-file-caption,
.form-file-list,
.form-status,
.card p,
.project-card p,
.studio-domain-card p,
.plan-card p,
.contact-lines,
.hours p,
.site-footer p {
  font-weight: 700;
}

input::placeholder,
textarea::placeholder {
  font-weight: 700;
  opacity: .78;
}

.home-copy p,
.page-hero p,
.privacy-content p,
.text-block p {
  font-weight: 650;
}

.footer-links a,
.main-nav a,
.nav-dropdown-toggle,
.language-toggle,
.page-label,
.kicker,
.form-field span {
  letter-spacing: .11em;
}

/* SERVIZI: menu principale e sotto-menu Edilizia a destra */
.nav-dropdown-menu {
  min-width: 360px;
}

.nav-flyout {
  position: relative;
}

.nav-flyout-label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--nav-text-muted) !important;
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.nav-flyout-label::after {
  content: "›";
  margin-left: 18px;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.nav-flyout-menu {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  min-width: 250px;
  padding: 10px;
  border: 1px solid rgba(247, 243, 234, .14);
  border-radius: 16px;
  background: rgba(20, 38, 53, .985);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-flyout:hover .nav-flyout-menu,
.nav-flyout:focus-within .nav-flyout-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-flyout-label:hover,
.nav-flyout-label:focus-visible {
  background: rgba(247, 243, 234, .10) !important;
  color: var(--nav-text) !important;
}

.nav-flyout-menu .nav-subitem {
  padding-left: 12px !important;
}

.service-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.service-card {
  min-height: 250px;
  padding: 24px;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(154, 95, 51, .30);
}

.service-card span,
.service-content h2,
.service-list li::marker {
  color: var(--accent);
}

.service-content {
  max-width: 980px;
}

.service-content h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.service-content p,
.service-content li {
  max-width: 900px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.3em;
}

@media (max-width: 1120px) {
  .service-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 920px) {
  .service-overview-grid {
    grid-template-columns: 1fr !important;
  }
}


/* SERVIZI CATASTALI: elenco puntato più leggibile */
.cadastral-services-page .service-list li {
  font-size: clamp(1.24rem, 2.1vw, 1.48rem);
  line-height: 1.85;
  font-weight: 760;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: stretch;
}

.blog-card {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 48px rgba(20, 38, 53, .08);
}

.blog-card h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.blog-card p {
  max-width: 780px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
  font-weight: 700;
}

.blog-card .page-label {
  color: var(--accent);
}

@media (max-width: 920px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* BLOG: una sola notizia */
.blog-page .blog-grid {
  grid-template-columns: minmax(0, 900px);
}

.blog-page .blog-card {
  max-width: 900px;
}



/* BLOG: video identico alle pagine servizio, non interattivo */
.blog-page .project-video-hero video {
  pointer-events: none;
}

/* CERTIFICAZIONE ENERGETICA: video foresta non interattivo */
.service-detail-page .project-video-hero video {
  pointer-events: none;
}

.dropdown-arrow-services {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  padding: 0 10px;
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.5s ease-in-out;
  /* Regola la fluidità e la velocità del giro */
}

.dropdown-arrow-services:hover {
  color: #fff;
}

.nav-dropdown.is-open .dropdown-arrow-services {
  transform: rotate(-180deg);
}

/* Permette al click sulla freccia di chiudere il menu anche se il mouse
   è ancora fisicamente sopra il dropdown (altrimenti il puro :hover CSS
   lo terrebbe visibile a prescindere dalle classi JS) */
.nav-dropdown.dropdown-force-closed .nav-dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

/* BLOG: link articolo esterno */
.blog-link-button {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
}


/* VIDEO COMPATIBILITÀ IDRAULICA: non interattivo */
.hydraulic-page .project-video-hero video {
  pointer-events: none;
}

/* VIDEO INTERNI: loop più pulito e senza stacco visibile */
body:not(.home-page) video:not(.home-video) {
  background: #101820;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

body:not(.home-page) .project-video-hero {
  background: #101820;
}


/* SERVIZI: card con immagine */
.service-card-image {
  padding: 0 !important;
  overflow: hidden;
  align-content: stretch;
  gap: 0;
  background: #fff;
}

.service-card-image .thumb {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: #fff;
}

.service-card-image .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.service-card-image .thumb img.is-contain {
  object-fit: contain;
  padding: 10px;
}

.service-card-image>div:last-child {
  padding: 24px;
}

.service-card-image:hover .thumb img {
  transform: scale(1.025);
}

.service-card-image:hover .thumb img.is-contain {
  transform: scale(1.01);
}

/* NAV SERVIZI */
.nav-dropdown>.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

.nav-building-group {
  display: grid;
  margin: 2px 0 6px;
}

.nav-building-group .nav-menu-label {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .86rem;
  letter-spacing: .04em;
}

.nav-building-group .nav-subitem {
  padding: 8px 12px 8px 24px !important;
  border-radius: 10px;
  font-size: .82rem !important;
  opacity: .92;
}

.nav-building-group .nav-subitem::before {
  content: "—";
  margin-right: 8px;
  color: var(--accent);
}

@media (min-width: 921px) {
  .nav-dropdown::after {
    content: "";
    position: absolute;
    inset: 100% -18px auto;
    height: 18px;
  }

  .nav-dropdown-menu {
    top: calc(100% + 4px);
  }

  .nav-dropdown.is-hovering .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

/* FIX LOGO FOOTER SU SCHERMI STRETTI */
.site-footer .footer-grid > * {
  min-width: 0;
}

.site-footer .footer-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 640px) {
  .site-footer .footer-logo {
    width: min(150px, 100%);
    margin-right: auto;
  }
}

hr{
  border:none;
  border-bottom: 1px solid rgba(154, 95, 51, .35);
}