/* ════════════════════════════════════════
   HOME — public/index.html (I Sarcofagi del Re)
   Stili specifici della pagina principale
════════════════════════════════════════ */

/* ─── Header (home: fixed, trasparente inizialmente) ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.25rem 2rem;
}
.site-header.scrolled {
  background: rgba(27, 58, 92, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  padding: 0.75rem 2rem;
}
.header-logo img { height: 42px; }
.header-logo-text { font-size: 1.35rem; }
.header-subtitle {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-left: 1rem;
}
@media (min-width: 640px) {
  .header-subtitle { display: inline; }
}
.header-nav { gap: 2rem; }
.header-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(27, 58, 92, 0.97);
    backdrop-filter: blur(16px);
    padding: 2rem;
    gap: 1.25rem;
    animation: fadeIn 0.3s ease;
  }
  .header-nav.open a {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
  }
}

/* ─── Hero (home: 100vh) ─── */
.hero { min-height: 100vh; }
.hero-title { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 520px;
}
.hero-scroll { bottom: 2.5rem; }
.hero-scroll-line { height: 40px; }

/* ─── Footer (home: 3 colonne) ─── */
.footer-inner { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ─── Intro / Chi Siamo ─── */
.intro {
  padding: 7rem 2rem;
  background: var(--ivory);
}
.intro-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .intro-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.intro-img-wrap { position: relative; }
.intro-img-accent {
  position: absolute;
  top: -12px; left: -12px; right: 12px; bottom: 12px;
  border: 2px solid var(--terracotta);
  border-radius: 1rem;
  opacity: 0.3;
}
.intro-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px rgba(27, 58, 92, 0.15);
}

/* ─── Properties ─── */
.properties {
  padding: 7rem 2rem;
  background: #fff;
}
.properties-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.properties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
@media (max-width: 768px) {
  .properties-grid { grid-template-columns: 1fr; }
}
.prop-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(27, 58, 92, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: inherit;
  display: block;
}
.prop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(27, 58, 92, 0.16);
}
.prop-card-img-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.prop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.prop-card:hover .prop-card-img { transform: scale(1.06); }
.prop-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,58,92,0.6) 0%, transparent 60%);
}
.prop-card-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}
.prop-card-body { padding: 2rem; }
.prop-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.prop-card-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.prop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
}
.prop-card-price { font-size: 0.85rem; color: #aaa; }
.prop-card-price strong { color: var(--navy); font-size: 1.1rem; }
.prop-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s;
}
.prop-card:hover .prop-card-link { gap: 0.65rem; }

/* Coming soon variant */
.prop-card-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.prop-card-soon .prop-card-img-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5c3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prop-card-soon-icon { font-size: 4rem; opacity: 0.2; }

/* ─── Gallery ─── */
.gallery {
  padding: 7rem 2rem;
  background: var(--ivory);
}
.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 3.5rem;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 92, 0.0);
  transition: background 0.4s;
}
.gallery-item:hover::after { background: rgba(27, 58, 92, 0.2); }
.gallery-item-lg {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 600px) {
  .gallery-item-lg { grid-column: span 1; grid-row: span 1; }
}

/* ─── Territory ─── */
.territory {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.territory-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.1);
}
.territory-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  padding: 5rem 3rem;
  color: #fff;
}
@media (max-width: 768px) {
  .territory-content { padding: 4rem 2rem; max-width: 100%; }
}
.territory-content .section-divider { background: rgba(255,255,255,0.3); }

/* ─── Features ─── */
.features {
  padding: 7rem 2rem;
  background: #fff;
}
.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  transition: background 0.3s, transform 0.3s;
}
.feature-item:hover {
  background: var(--ivory);
  transform: translateY(-5px);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.6;
}
