/* ============================================================
   Immobiliare Bahiana — Layout
   ============================================================ */

/* ===== BETA BANNER ===== */
.beta-banner {
  background: var(--bahiana-siena);
  color: var(--bg);
  text-align: center;
  font-size: 13px;
  padding: 10px 20px;
  letter-spacing: 0.02em;
}
.beta-banner span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 11px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.logo-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

.nav-lang {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  letter-spacing: 0.1em;
}
.lang-btn.active {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: clamp(60px, 10vw, 140px) var(--gutter) clamp(80px, 12vw, 160px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-title {
  max-width: 900px;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== PRINCIPLE (3 colonne idee guida) ===== */
.principle {
  padding: var(--section-y) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.principle-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle-number {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent-warm);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.principle-item h3 {
  font-family: var(--serif);
}

.principle-item p {
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .principle-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== FEATURED PROJECTS ===== */
.featured {
  padding: var(--section-y) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  display: block;
  color: inherit;
  transition: transform 300ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card .cover {
  aspect-ratio: 4/5;
  background: var(--bahiana-pietra);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.project-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: 500;
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.project-card .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-card .price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}

.project-skeleton {
  aspect-ratio: 4/5;
  background: var(--bahiana-pietra);
  border-radius: var(--radius);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

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

/* ===== BRIDGE (casa vacanze → buyer) ===== */
.bridge {
  background: var(--bahiana-pietra);
  padding: var(--section-y) var(--gutter);
  text-align: center;
}

.bridge-content {
  max-width: 700px;
  margin: 0 auto;
}

.bridge-content h2 {
  margin-bottom: 24px;
}

.bridge-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--ink-soft);
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--hairline);
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 12px;
}

.footer a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.footer a:hover { color: var(--ink); }

.footer p {
  font-size: 14px;
}

.footer-tag {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

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