:root {
  color-scheme: dark;
  --lime: #99c900;
  --charcoal: #202221;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #171918;
  color: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.splash {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #252725 url("assets/render-esterno.jpg") center / cover no-repeat;
}

.gallery {
  position: absolute;
  inset: 0 0 0 28%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  z-index: 1;
}

/* BANDE BIANCHE 1 e 2: divisori tra le tre immagini */
.gallery::before,
.gallery::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 6px;
  background: #fff;
  pointer-events: none;
}
.gallery::before { left: 33.3333%; }
.gallery::after { left: 66.6667%; }

.render {
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.render img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.render-exterior img { object-position: 50% 50%; }
.render-interior img { object-position: 55% 50%; }
.render-terrace img { object-position: 50% 50%; }

.brand-panel {
  width: 28%;
  min-width: 360px;
  min-height: 100svh;
  padding: clamp(28px, 4.2vh, 52px) clamp(26px, 2.1vw, 42px) 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(25, 27, 26, .86);
  /* BANDA BIANCA 3: divisore tra fascia scura e prima immagine */
  border-right: 6px solid #fff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.logo {
  display: block;
  width: clamp(150px, 11.8vw, 198px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  align-self: center;
  margin: 0 0 clamp(22px, 3.2vh, 38px);
}

h1 {
  margin: 0;
  color: #f8f8f6;
  font: 500 clamp(40px, 3.55vw, 62px)/.98 "Cormorant Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

h1 em {
  color: var(--lime);
  font-family: inherit;
  font-style: italic;
  font-weight: bold;
  font-size: 1.2em;
  letter-spacing: 0.02em;
}

.accent {
  width: 68px;
  height: 4px;
  margin: 22px 0 16px;
  background: var(--lime);
}

.intro {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.42;
}

.contacts {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  font-style: normal;
}

.contacts a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 14px;
  color: #f7f7f5;
  text-decoration: none;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.25;
}

.contacts a:hover span { text-decoration: underline; }

.contacts svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  border-top: 3px solid var(--lime);
  color: #f7f7f5;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(11px, .86vw, 15px);
  line-height: 1.4;
}

.services i {
  padding: 0 .28em;
  color: var(--lime);
  font-style: normal;
}

@media (max-width: 1100px) {
  .brand-panel {
    width: 34%;
    min-width: 320px;
    padding-left: 26px;
    padding-right: 26px;
  }
  .gallery { left: max(34%, 320px); }
}

@media (max-width: 720px) {
  .splash {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .backdrop {
    position: absolute;
    inset: 0 0 auto;
    height: 72svh;
    background-position: center;
  }
  .brand-panel {
    order: 1;
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 100svh;
    padding: 26px 24px 24px;
    background: rgba(25, 27, 26, .84);
    border-right: 0;
    border-bottom: 6px solid #fff;
  }
  .logo {
    width: 130px;
    margin-bottom: 22px;
  }
  h1 { font-size: clamp(42px, 11vw, 58px); }
  .accent { margin: 18px 0 14px; }
  .intro { font-size: 17px; max-width: 34ch; }
  .contacts { gap: 14px; margin-top: 24px; }
  .contacts a { font-size: 15px; }
  .services {
    margin-top: 30px;
    padding-top: 15px;
    white-space: normal;
    font-size: 12px;
  }
  /* Su mobile i render sono in colonna, quindi i divisori verticali non servono */
  .gallery::before,
  .gallery::after { display: none; }
  .gallery {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    z-index: auto;
  }
  .render { height: 68svh; }
}
