/* =========================================================
   PRIME RESIDENCE BOLOGNA
   PREMIUM EDITORIAL WEBSITE
   ========================================================= */

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;

  font-family: "DM Sans", sans-serif;

  background: #f3f0e9;
  color: #151515;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.intro-active {
  overflow: hidden;
}

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

button {
  font-family: inherit;
}


/* =========================
   VARIABLES
========================= */

:root {
  --black: #111111;
  --dark: #191919;
  --white: #ffffff;

  --ivory: #f3f0e9;
  --cream: #e9e4da;

  --gold: #b6a27a;

  --border: rgba(17, 17, 17, 0.16);

  --serif: "Playfair Display", serif;
  --sans: "DM Sans", sans-serif;
}


/* =========================================================
   INTRO / LOADER
========================================================= */

.loader {
  position: fixed;

  inset: 0;

  z-index: 9999;

  width: 100%;
  height: 100vh;

  background: var(--black);
  color: var(--white);

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  transform: translate3d(0, 0, 0);

  will-change: transform;

  overflow: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.loader-logo {
  font-family: var(--serif);

  font-size: clamp(48px, 8vw, 105px);

  font-weight: 400;

  letter-spacing: 0.08em;

  line-height: 1;
}

.loader-line {
  width: 70px;
  height: 1px;

  background: rgba(255,255,255,0.5);

  margin: 24px 0;
}

.loader-subtitle {
  font-size: 9px;

  letter-spacing: 0.42em;

  margin-left: 0.42em;

  opacity: 0.65;
}

.scroll-enter {
  position: absolute;

  left: 50%;
  bottom: 55px;

  transform: translateX(-50%);

  font-size: 8px;

  letter-spacing: 0.28em;

  color: rgba(255,255,255,0.55);

  animation:
    scrollEnter 2s ease-in-out infinite;

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

@keyframes scrollEnter {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 92px;

  z-index: 1000;

  display: flex;
  align-items: center;

  justify-content: space-between;

  padding: 0 5vw;

  color: white;

  mix-blend-mode: difference;

  transition:
    height 0.5s ease,
    padding 0.5s ease;
}

.navbar.scrolled {
  height: 70px;

  padding-left: 3vw;
  padding-right: 3vw;
}

.nav-logo {
  display: flex;

  flex-direction: column;

  line-height: 1;

  font-family: var(--serif);

  font-size: 22px;

  letter-spacing: 0.08em;

  flex-shrink: 0;
}

.nav-logo span {
  font-family: var(--sans);

  font-size: 6px;

  letter-spacing: 0.28em;

  margin-top: 7px;

  opacity: 0.75;
}

.desktop-nav {
  display: flex;

  gap: 38px;

  margin-left: auto;
  margin-right: 42px;
}

.desktop-nav a {
  position: relative;

  font-size: 9px;

  letter-spacing: 0.2em;

  white-space: nowrap;

  transition:
    opacity 0.3s ease;
}

.desktop-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: currentColor;

  transition:
    width 0.4s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;

  align-items: center;

  gap: 25px;
}

.language-switch {
  display: flex;

  gap: 9px;

  font-size: 8px;

  letter-spacing: 0.15em;
}

.language-switch span {
  opacity: 0.4;
}

.language-switch .active {
  opacity: 1;
}

.book-button {
  border: 1px solid rgba(255,255,255,0.6);

  padding: 13px 20px;

  font-size: 8px;

  letter-spacing: 0.2em;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.book-button:hover {
  background: white;
  color: black;
}

.menu-button {
  display: none;

  border: 0;

  background: transparent;

  width: 35px;
  height: 30px;

  cursor: pointer;
}

.menu-button span {
  display: block;

  width: 25px;
  height: 1px;

  background: currentColor;

  margin: 7px 0;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
  position: fixed;

  inset: 0;

  z-index: 999;

  background: var(--black);

  color: white;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  gap: 30px;

  opacity: 0;

  visibility: hidden;

  transform: translateY(-20px);

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--serif);

  font-size: 34px;
}

.mobile-menu a:last-child {
  font-family: var(--sans);

  font-size: 9px;

  letter-spacing: 0.25em;

  margin-top: 20px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 100vh;
  height: 100vh;

  background: #222;

  color: white;

  overflow: hidden;
}

.hero-image {
  position: absolute;

  inset: 0;
}

.photo-placeholder {
  width: 100%;
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #383838,
      #171717
    );

  color: rgba(255,255,255,0.65);

  font-size: 10px;

  letter-spacing: 0.35em;

  text-align: center;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.72),
      rgba(0,0,0,0.15)
    );
}

.hero-content {
  position: absolute;

  left: 8vw;
  bottom: 13vh;

  max-width: 750px;

  z-index: 2;
}

.eyebrow {
  font-size: 9px;

  letter-spacing: 0.3em;

  margin-bottom: 30px;

  opacity: 0.75;
}

.hero h1 {
  font-family: var(--serif);

  font-size: clamp(58px, 8vw, 125px);

  font-weight: 400;

  line-height: 0.92;

  letter-spacing: -0.035em;
}

.hero h1 em {
  font-weight: 400;
}

.hero-description {
  max-width: 390px;

  margin-top: 38px;

  font-size: 13px;

  line-height: 1.8;

  color: rgba(255,255,255,0.72);
}

.hero-link {
  display: inline-flex;

  align-items: center;

  gap: 20px;

  margin-top: 45px;

  padding-bottom: 10px;

  border-bottom:
    1px solid rgba(255,255,255,0.45);

  font-size: 8px;

  letter-spacing: 0.25em;

  transition:
    gap 0.4s ease;
}

.hero-link:hover {
  gap: 30px;
}

.hero-index {
  position: absolute;

  right: 5vw;
  bottom: 7vh;

  font-size: 9px;

  letter-spacing: 0.2em;
}

.hero-index span {
  opacity: 0.4;

  margin: 0 8px;
}

.hero-scroll {
  position: absolute;

  right: 5vw;
  top: 50%;

  transform:
    translateY(-50%)
    rotate(90deg);

  font-size: 7px;

  letter-spacing: 0.35em;

  display: flex;

  align-items: center;

  gap: 15px;
}

.hero-scroll span {
  width: 45px;
  height: 1px;

  background: rgba(255,255,255,0.6);
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(35px);

  transition:
    opacity 1s cubic-bezier(.22,1,.36,1),
    transform 1s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section-number {
  font-size: 8px;

  letter-spacing: 0.2em;

  opacity: 0.5;
}

.section-label {
  font-size: 8px;

  letter-spacing: 0.3em;
}


/* =========================================================
   INTRO
========================================================= */

.intro-section {
  width: 100%;

  padding:
    17vw 8vw;

  background: var(--ivory);
}

.intro-grid {
  display: grid;

  grid-template-columns:
    1fr 2fr;

  gap: 8vw;

  margin-top: 70px;

  align-items: start;
}

.intro-label {
  font-size: 8px;

  letter-spacing: 0.25em;

  padding-top: 10px;
}

.intro-text {
  max-width: 780px;
}

.intro-text h2 {
  font-family: var(--serif);

  font-size:
    clamp(48px, 6vw, 90px);

  line-height: 0.95;

  font-weight: 400;

  letter-spacing: -0.03em;
}

.intro-text h2 em {
  font-style: italic;
}

.intro-text p {
  max-width: 530px;

  margin-top: 45px;

  font-size: 14px;

  line-height: 1.9;

  color: #5e5a53;
}

.intro-text p + p {
  margin-top: 18px;
}


/* =========================================================
   RESIDENCES
========================================================= */

.residences-section {
  width: 100%;

  background: var(--cream);

  padding:
    9vw 8vw 15vw;
}

.section-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  border-bottom:
    1px solid var(--border);

  padding-bottom: 20px;
}

.residence-list {
  margin-top: 100px;

  display: flex;

  flex-direction: column;

  gap: 150px;
}

.residence-card {
  display: grid;

  grid-template-columns:
    1.15fr 0.85fr;

  gap: 8vw;

  align-items: center;
}

.residence-card.reverse {
  grid-template-columns:
    0.85fr 1.15fr;
}

.residence-card.reverse .residence-image {
  order: 2;
}

.residence-card.reverse .residence-info {
  order: 1;
}

.residence-image {
  height: 600px;

  overflow: hidden;
}

.residence-image .photo-placeholder {
  transition:
    transform 1.2s cubic-bezier(.22,1,.36,1);
}

.residence-card:hover
.residence-image
.photo-placeholder {
  transform: scale(1.04);
}

.residence-info {
  position: relative;
}

.residence-number {
  font-size: 8px;

  letter-spacing: 0.25em;

  color: #777168;

  margin-bottom: 30px;
}

.residence-info h3 {
  font-family: var(--serif);

  font-size:
    clamp(40px, 4.5vw, 70px);

  line-height: 1;

  font-weight: 400;

  letter-spacing: -0.03em;
}

.residence-type {
  font-size: 8px;

  letter-spacing: 0.28em;

  margin-top: 18px;

  color: #756e64;
}

.residence-description {
  max-width: 400px;

  margin-top: 40px;

  font-size: 13px;

  line-height: 1.8;

  color: #5e5a53;
}

.residence-details {
  display: flex;

  flex-wrap: wrap;

  gap: 18px;

  margin-top: 35px;
}

.residence-details span {
  font-size: 7px;

  letter-spacing: 0.18em;

  border-top:
    1px solid var(--border);

  padding-top: 10px;
}

.discover-link {
  display: inline-flex;

  align-items: center;

  gap: 20px;

  margin-top: 45px;

  padding-bottom: 10px;

  border-bottom:
    1px solid #555;

  font-size: 8px;

  letter-spacing: 0.25em;

  transition:
    gap 0.4s ease;
}

.discover-link:hover {
  gap: 30px;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.experience-section {
  position: relative;

  min-height: 100vh;

  color: white;

  overflow: hidden;

  background: var(--black);
}

.experience-image {
  position: absolute;

  inset: 0;
}

.experience-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.8),
      rgba(0,0,0,0.3)
    );
}

.experience-content {
  position: relative;

  z-index: 2;

  padding:
    9vw 8vw;
}

.experience-label {
  font-size: 8px;

  letter-spacing: 0.3em;

  margin-top: 80px;
}

.experience-content h2 {
  font-family: var(--serif);

  font-size:
    clamp(55px, 7vw, 110px);

  font-weight: 400;

  line-height: 0.92;

  margin-top: 40px;

  letter-spacing: -0.03em;
}

.experience-content h2 em {
  font-style: italic;
}

.experience-features {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 40px;

  max-width: 850px;

  margin-top: 100px;
}

.feature {
  display: flex;

  gap: 25px;

  border-top:
    1px solid rgba(255,255,255,0.35);

  padding-top: 20px;
}

.feature > span {
  font-size: 8px;

  opacity: 0.5;
}

.feature h4 {
  font-size: 9px;

  letter-spacing: 0.25em;

  font-weight: 400;
}

.feature p {
  margin-top: 14px;

  font-size: 11px;

  line-height: 1.7;

  color:
    rgba(255,255,255,0.65);
}


/* =========================================================
   BOLOGNA
========================================================= */

.bologna-section {
  width: 100%;

  padding:
    10vw 8vw 13vw;

  background: var(--ivory);
}

.bologna-grid {
  display: grid;

  grid-template-columns:
    0.8fr 1.2fr;

  gap: 10vw;

  align-items: center;

  margin-top: 90px;
}

.bologna-text h2 {
  font-family: var(--serif);

  font-size:
    clamp(55px, 6vw, 95px);

  line-height: 0.95;

  font-weight: 400;

  margin-top: 35px;

  letter-spacing: -0.04em;
}

.bologna-text h2 em {
  font-style: italic;
}

.bologna-text p {
  max-width: 390px;

  margin-top: 45px;

  font-size: 13px;

  line-height: 1.8;

  color: #625d55;
}

.bologna-text p + p {
  margin-top: 15px;
}

.bologna-image {
  height: 700px;

  overflow: hidden;
}

.bologna-image .photo-placeholder {
  transition:
    transform 1.2s cubic-bezier(.22,1,.36,1);
}

.bologna-image:hover .photo-placeholder {
  transform: scale(1.03);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
  width: 100%;

  background: var(--black);

  color: white;

  padding:
    13vw 8vw;
}

.cta-inner {
  max-width: 1000px;
}

.cta-inner h2 {
  font-family: var(--serif);

  font-weight: 400;

  font-size:
    clamp(65px, 9vw, 140px);

  line-height: 0.9;

  letter-spacing: -0.045em;

  margin-top: 35px;
}

.cta-inner h2 em {
  font-style: italic;
}

.cta-button {
  display: inline-flex;

  align-items: center;

  gap: 25px;

  margin-top: 70px;

  padding: 18px 25px;

  border:
    1px solid rgba(255,255,255,0.5);

  font-size: 8px;

  letter-spacing: 0.25em;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.cta-button:hover {
  background: white;

  color: black;

  transform: translateY(-3px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  width: 100%;

  background: var(--black);

  color: white;

  padding:
    0 8vw 35px;
}

.footer-top {
  border-top:
    1px solid rgba(255,255,255,0.15);

  padding-top: 45px;

  padding-bottom: 100px;

  display: grid;

  grid-template-columns:
    1fr 1fr 1fr;
}

.footer-logo {
  font-family: var(--serif);

  font-size: 32px;

  letter-spacing: 0.08em;
}

.footer-subtitle {
  font-size: 7px;

  letter-spacing: 0.3em;

  margin-top: 8px;

  opacity: 0.5;
}

.footer-contact {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.footer-contact a {
  font-size: 11px;

  opacity: 0.7;

  transition:
    opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 1;
}

.footer-social {
  text-align: right;
}

.footer-social a {
  font-size: 8px;

  letter-spacing: 0.2em;
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  padding-top: 20px;

  border-top:
    1px solid rgba(255,255,255,0.1);

  font-size: 7px;

  letter-spacing: 0.18em;

  opacity: 0.4;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-button {
  position: fixed;

  right: 28px;
  bottom: 28px;

  z-index: 900;

  display: flex;

  align-items: center;

  gap: 9px;

  padding: 13px 17px;

  background: #111;

  color: white;

  border-radius: 50px;

  font-size: 7px;

  letter-spacing: 0.18em;

  box-shadow:
    0 10px 35px rgba(0,0,0,0.2);

  transition:
    transform 0.3s ease;
}

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

.whatsapp-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #69d26f;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .desktop-nav,
  .language-switch,
  .book-button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .navbar {
    height: 75px;

    padding:
      0 6vw;
  }

  .nav-logo {
    font-size: 20px;
  }

  .hero-content {
    left: 7vw;
    right: 7vw;

    bottom: 12vh;
  }

  .hero h1 {
    font-size:
      clamp(55px, 14vw, 90px);
  }

  .hero-description {
    font-size: 12px;

    max-width: 330px;
  }

  .hero-scroll {
    display: none;
  }

  .intro-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .residence-card,
  .residence-card.reverse {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .residence-card.reverse .residence-image {
    order: 1;
  }

  .residence-card.reverse .residence-info {
    order: 2;
  }

  .residence-image {
    height: 480px;
  }

  .experience-features {
    grid-template-columns: 1fr;

    gap: 30px;

    max-width: 400px;
  }

  .bologna-grid {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .bologna-image {
    height: 500px;
  }

  .footer-top {
    grid-template-columns: 1fr;

    gap: 50px;

    padding-bottom: 70px;
  }

  .footer-social {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 10px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .loader-logo {
    font-size: 52px;
  }

  .loader-subtitle {
    font-size: 7px;

    letter-spacing: 0.3em;
  }

  .scroll-enter {
    bottom: 35px;

    font-size: 7px;
  }

  .hero {
    min-height: 100svh;

    height: 100svh;
  }

  .hero-content {
    bottom: 13vh;
  }

  .hero-description {
    margin-top: 28px;
  }

  .hero-link {
    margin-top: 32px;
  }

  .intro-section {
    padding:
      25vw 7vw;
  }

  .intro-grid {
    margin-top: 55px;
  }

  .intro-text h2 {
    font-size: 50px;
  }

  .residences-section {
    padding:
      18vw 7vw 25vw;
  }

  .residence-list {
    margin-top: 65px;

    gap: 100px;
  }

  .residence-image {
    height: 400px;
  }

  .residence-info h3 {
    font-size: 48px;
  }

  .experience-content {
    padding:
      18vw 7vw;
  }

  .experience-label {
    margin-top: 65px;
  }

  .experience-content h2 {
    font-size: 58px;
  }

  .experience-features {
    margin-top: 70px;
  }

  .bologna-section {
    padding:
      18vw 7vw 25vw;
  }

  .bologna-grid {
    margin-top: 60px;
  }

  .bologna-text h2 {
    font-size: 58px;
  }

  .bologna-image {
    height: 420px;
  }

  .cta-section {
    padding:
      22vw 7vw;
  }

  .cta-inner h2 {
    font-size: 68px;
  }

  .cta-button {
    margin-top: 50px;
  }

  footer {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .whatsapp-button {
    right: 18px;
    bottom: 18px;
  }
}


/* =========================================================
   EXTRA FIXES
========================================================= */

html,
body,
main,
section,
footer {
  max-width: 100%;
}

main {
  width: 100%;
}

img {
  max-width: 100%;
}

.reveal {
  will-change: opacity, transform;
}

.photo-placeholder span {
  display: block;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
