/* ============================================================
   GABRIELLA MIELE — IMMOBILIARE DI LUSSO · ROMA
   ============================================================ */

/* ----- VARIABILI ----- */
:root {
  --forest:    #1C3820;
  --pine:      #2B5535;
  --sage:      #4A7A5A;
  --cream:     #F4F1EA;
  --parchment: #EAE5D8;
  --white:     #FFFFFF;
  --ink:       #181818;
  --slate:     #3e3e3e;
  --mist:      #C8C2B6;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --radius:    10px;
  --nav-h:     52px;
  --nav-top:   1rem;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ----- TIPOGRAFIA ----- */
h1, h2, h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
}
em { font-style: italic; }

/* ----- CONTENITORE ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVIGAZIONE
   ============================================================ */
.nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  padding-top: 1.25rem;
}
.nav-inner {
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-sig {
  height: 29px;
  width: auto;
  display: block;
}
.logo-rog {
  height: 32px;
  width: auto;
  display: block;
  order: -1;
}

/* Nav links */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--forest);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--pine);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(calc(100% - 2rem), 1200px);
  z-index: 190;
  background: rgba(244, 241, 234, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.mobile-link {
  font-size: 1.5rem;
  font-family: 'Newsreader', serif;
  font-weight: 400;
  padding: 0.5rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--parchment);
  transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--pine); }
.mobile-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  color: var(--pine) !important;
  border-bottom: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h) - 1.25rem);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 2rem;
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine);
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-title em {
  color: var(--pine);
  font-weight: 400;
}
.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: #3a3a3a;
  line-height: 1.55;
  max-width: 400px;
}

/* Hero Visual */
.hero-visual { position: relative; }
.hero-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}
.hero-img:hover { transform: scale(1.04); }
.hero-shape {
  position: absolute;
  top: -24px; right: -24px;
  width: 80%;
  height: 80%;
  border: 1px solid var(--pine);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.35;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--mist);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--pine);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-rule {
  width: 32px; height: 1.5px;
  background: var(--pine);
  margin-bottom: 1rem;
}
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--ink);
}

/* ============================================================
   IMMOBILI
   ============================================================ */
.listings-section {
  padding: 7rem 0;
  background: var(--cream);
}
.section-header {
  margin-bottom: 2.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.listing-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.55rem 1.6rem;
  border: 1.5px solid var(--pine);
  border-radius: 2rem;
  background: transparent;
  color: var(--pine);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--pine);
  color: #fff;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ----- CARD ----- */
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.listing-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--parchment);
  flex-shrink: 0;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s, background 0.2s;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: var(--white); }
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }
.carousel-btn svg { flex-shrink: 0; }

.carousel-dots {
  position: absolute;
  bottom: 0.75rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.carousel-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dot.active {
  background: var(--white);
  transform: scale(1.4);
}

/* Card body */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-price {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--pine);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.card-divider {
  width: 24px; height: 1px;
  background: var(--mist);
  margin: 0.75rem 0;
}
.card-title {
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.card-desc {
  font-size: 0.95rem;
  color: #3a3a3a;
  line-height: 1.55;
  font-weight: 400;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Specs */
.card-specs {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--parchment);
  margin-bottom: 1.25rem;
}
.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.spec-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.spec-value {
  font-family: 'Newsreader', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.spec-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Card detail button */
.card-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 0.5rem;
}
.card-detail-btn:hover {
  background: var(--pine);
  transform: translateY(-1px);
}

/* Card WhatsApp button */
.card-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--forest);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
}
.card-wa:hover {
  background: var(--forest);
  color: var(--cream);
}

/* ============================================================
   PULSANTI
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(28, 56, 32, 0.25);
}
.btn-primary:hover {
  background: var(--pine);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 56, 32, 0.32);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 56, 32, 0.32);
}

/* ============================================================
   CHI SONO
   ============================================================ */
.about-section {
  padding: 8rem 0;
  background: var(--parchment);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-img-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-location {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: rgba(244,241,234,0.94);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pine);
}
.about-image-col { position: relative; }
.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.about-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
}
.about-title em { color: var(--pine); }
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-text p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #3a3a3a;
  line-height: 1.6;
}
.about-text em { color: var(--ink); font-weight: 400; font-style: italic; }

/* ============================================================
   VENDI CASA
   ============================================================ */
.sell-section {
  padding: 7rem 0;
  background: var(--forest);
  color: var(--cream);
}
.sell-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.sell-section .section-rule { background: rgba(244,241,234,0.25); }
.sell-section .section-eyebrow { color: rgba(244,241,234,0.55); }
.sell-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.sell-title em { color: rgba(244,241,234,0.6); font-style: italic; }
.sell-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(244,241,234,0.88);
  line-height: 1.6;
}
.sell-cta {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.sell-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.sell-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(244,241,234,0.06);
  border: 1px solid rgba(244,241,234,0.10);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.sell-card:hover {
  background: rgba(244,241,234,0.10);
  border-color: rgba(244,241,234,0.18);
}
.sell-card-icon {
  color: rgba(244,241,234,0.55);
  flex-shrink: 0;
  margin-top: 1px;
}
.sell-card-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(244,241,234,0.95);
  line-height: 1.3;
  margin-bottom: 2px;
}
.sell-card-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(244,241,234,0.5);
  line-height: 1.3;
}
.sell-section .btn-primary {
  background: var(--cream);
  color: var(--forest);
  box-shadow: none;
  align-self: flex-start;
}
.sell-section .btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--forest);
  color: var(--cream);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(244,241,234,0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
}
.footer-sig {
  height: 35px;
  width: auto;
  display: block;
  filter: invert(1);
  opacity: 0.85;
}
.footer-offices {
  display: flex;
  gap: 2.5rem;
}
.footer-office {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(244,241,234,0.65);
  line-height: 1.5;
}
.footer-office-city {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.4);
  margin-bottom: 2px;
}
.footer-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.75;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.footer-wa:hover { opacity: 1; }
.footer-copy {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.35;
  letter-spacing: 0.05em;
}

/* ============================================================
   ANIMAZIONI
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero animations — play on load */
.fade-up {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

/* Scroll-triggered reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.listing-card.reveal {
  transition-delay: var(--card-delay, 0s);
}

/* Split-word heading animation */
.split-word {
  display: inline-block;
  vertical-align: baseline;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.split-word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 48px; }

  .nav { padding: 0.75rem 1rem 0; }

  .nav-right .nav-link,
  .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
    gap: 3rem;
    min-height: auto;
  }
  .hero-content { padding-top: 0; gap: 1.25rem; }
  .hero-visual { order: -1; }
  .hero-image-wrap { aspect-ratio: 9/10; }
  .hero-shape { display: none; }
  .hero-scroll { display: none; }

  .listings-section { padding: 5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .listings-grid { grid-template-columns: 1fr; }

  .sell-section { padding: 5rem 0; }
  .sell-inner { grid-template-columns: 1fr; gap: 3rem; }
  .sell-cards { grid-template-columns: 1fr; }
  .sell-section .btn-primary { align-self: stretch; justify-content: center; }

  .about-section { padding: 5rem 0; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-img-frame { aspect-ratio: 4/3; }
  .about-image-col { order: -1; }

  .footer-inner { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .footer-offices { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-title { font-size: 2.6rem; }
  .card-specs { gap: 1rem; }
}
