/* =============================================
   M&C Immobiliare - Stylesheet
   ============================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --green:        #193722;
  --green-mid:    #1e4228;
  --green-light:  #234d30;
  --gold:         #ae8331;
  --gold-light:   #c9a04a;
  --gold-pale:    #f5ecd4;
  --white:        #ffffff;
  --off-white:    #f7f6f2;
  --black:        #111111;
  --gray-100:     #f2f2f0;
  --gray-200:     #e5e5e2;
  --gray-400:     #9a9a96;
  --gray-600:     #555550;
  --font-serif:   'Montserrat', system-ui, sans-serif;
  --font-sans:    'Montserrat', system-ui, sans-serif;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.11);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.15);
  --radius:       10px;
  --radius-lg:    18px;
  --nav-height:   76px;
  --transition:   0.35s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--green);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--gray-600); line-height: 1.75; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { max-width: 560px; font-size: 1.05rem; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-dark:hover {
  background: var(--green);
  color: var(--white);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--green);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.navbar.solid {
  background: var(--green);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 92px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 128px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 18px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 9px 20px;
  margin-left: 8px;
}

.nav-links .nav-cta:hover {
  background: var(--gold-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
  padding: 6px 0;
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-menu .mobile-cta {
  margin-top: 24px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(25, 55, 34, 0.82) 0%,
    rgba(25, 55, 34, 0.55) 60%,
    rgba(25, 55, 34, 0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 1;
}

.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Reviews Bar ── */
.reviews-bar {
  background: var(--green);
  padding: 20px 0;
}

.reviews-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reviews-stars {
  color: #FFD700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.reviews-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 500;
}

.reviews-text strong { color: var(--gold-light); }

.reviews-link {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews-link:hover { color: var(--white); }

/* ── Services ── */
.services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p { font-size: 0.92rem; }

/* ── Property Cards ── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.prop-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.prop-img {
  position: relative;
  overflow: hidden;
  height: 230px;
}

.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.prop-card:hover .prop-img img { transform: scale(1.06); }

.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}

.prop-badge.sold { background: var(--gray-600); }
.prop-badge.new  { background: var(--green); }

.prop-body { padding: 22px 24px; }

.prop-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.prop-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1.35;
}

.prop-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.prop-location svg { width: 13px; height: 13px; flex-shrink: 0; }

.prop-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}

.prop-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
}

.prop-meta-item svg { width: 15px; height: 15px; color: var(--gold); stroke: var(--gold); fill: none; stroke-width: 1.8; }

.prop-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
}

/* ── Section CTA ── */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Mini Blog ── */
.blog-mini { background: var(--off-white); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img { transform: scale(1.06); }

.blog-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--gray-400);
}

.blog-cat {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color var(--transition);
}

.blog-card:hover .blog-title { color: var(--gold); }

.blog-excerpt {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.blog-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}

.blog-link:hover { gap: 10px; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--green);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb svg { width: 12px; height: 12px; }

/* ── Filters (Catalog) ── */
.filters-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.filters-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.filters-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── Counters (Chi Siamo) ── */
.counters { background: var(--green); }

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.counter-item { padding: 24px 16px; }

.counter-value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.counter-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── About / Team ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

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

.about-text .section-label { display: block; }

.about-text p { margin-bottom: 18px; }

.about-values {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-value-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-value-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; }

.about-value-text h4 { font-size: 0.95rem; margin-bottom: 2px; }
.about-value-text p  { font-size: 0.87rem; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 20px; }

.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.8; }

.contact-detail-body h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 4px; }
.contact-detail-body p, .contact-detail-body a { font-size: 0.95rem; color: var(--green); font-weight: 500; }
.contact-detail-body a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 1.8; }
.social-link:hover { background: var(--gold); transform: translateY(-3px); }

/* ── Contact Form ── */
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(174,131,49,0.12);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-submit { width: 100%; margin-top: 8px; justify-content: center; padding: 15px; font-size: 0.95rem; }

.form-note { font-size: 0.78rem; color: var(--gray-400); text-align: center; margin-top: 12px; }

/* ── Map ── */
.map-section { padding: 0; }
.map-container {
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 56px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ── Hours ── */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.hours-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.hours-day { font-weight: 600; font-size: 0.88rem; color: var(--green); margin-bottom: 4px; }
.hours-time { font-size: 0.95rem; color: var(--gray-600); }
.hours-closed { color: var(--gray-400); font-style: italic; }

/* ── Footer ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}

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

.footer-brand .nav-logo { margin-bottom: 0; }

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social { display: flex; gap: 10px; margin-top: 24px; }

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.8; }
.footer-social a:hover { background: var(--gold); }
.footer-social a:hover svg { stroke: var(--white); }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--gold-light); }

.footer-address { display: flex; flex-direction: column; gap: 12px; }

.footer-address-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.87rem;
}

.footer-address-item svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Divider ── */
.gold-divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px 0 28px;
}

.gold-divider.centered { margin-left: auto; margin-right: auto; }

/* ── Utility ── */
.bg-off-white { background: var(--off-white); }
.bg-green     { background: var(--green); }
.text-center  { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* ============================================
   PROPERTY DETAIL PAGE
   ============================================ */

/* ── Gallery ── */
.prop-gallery { background: #0a0a0a; position: relative; }

.gallery-main-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/7;
  cursor: zoom-in;
}
.gallery-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  display: block;
}
.gallery-overlay { position: absolute; inset: 0; pointer-events: none; }

.gallery-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: all;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: all 0.2s; z-index: 5;
}
.gallery-nav-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav-btn.prev { left: 20px; }
.gallery-nav-btn.next { right: 20px; }
.gallery-nav-btn svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2.5; }

.gallery-counter {
  position: absolute; top: 20px; right: 20px;
  background: rgba(0,0,0,0.58); color: #fff;
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  pointer-events: none;
  display: flex; align-items: center; gap: 7px;
  backdrop-filter: blur(4px);
}
.gallery-counter svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 1.8; }

.video-btn {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(0,0,0,0.72); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35); border-radius: 32px;
  padding: 10px 22px 10px 12px;
  font-size: 0.88rem; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; pointer-events: all;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.2s; backdrop-filter: blur(6px);
}
.video-btn:hover { background: rgba(0,0,0,0.88); border-color: rgba(255,255,255,0.7); }
.video-btn-icon {
  width: 30px; height: 30px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.video-btn-icon svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }

.share-save-btns {
  position: absolute; bottom: 24px; right: 24px;
  display: flex; gap: 8px; pointer-events: all;
}
.share-save-btn {
  background: rgba(255,255,255,0.92); border: none; border-radius: 24px;
  padding: 9px 18px; font-size: 0.82rem; font-weight: 600;
  font-family: var(--font-sans); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s; color: var(--black);
  backdrop-filter: blur(4px);
}
.share-save-btn:hover { background: #fff; }
.share-save-btn svg { width: 15px; height: 15px; stroke: var(--green); fill: none; stroke-width: 2; }

/* Thumbnails */
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 3px; background: #0a0a0a; padding: 3px;
}
.gallery-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  cursor: pointer; opacity: 0.55; transition: opacity 0.2s;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  z-index: 3000; display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 2.2rem; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.5; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.55); font-size: 0.88rem;
}

/* Video Modal */
.video-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 3000; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative; width: 100%; max-width: 960px;
  background: #000; border-radius: 12px; overflow: hidden;
}
.video-modal-inner iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }
.video-modal-close {
  position: absolute; top: -46px; right: 0;
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 2rem; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.video-modal-close:hover { color: #fff; }

/* ── Detail Layout ── */
.prop-detail-section { padding: 48px 0 96px; }
.prop-detail-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 48px; align-items: start;
}

/* Breadcrumb */
.prop-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--gray-400); margin-bottom: 28px;
}
.prop-breadcrumb a { color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.prop-breadcrumb a:hover { color: var(--gold); }
.prop-breadcrumb svg { width: 13px; height: 13px; stroke: var(--gray-400); fill: none; stroke-width: 2.5; }

/* Header */
.prop-detail-header {
  padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); margin-bottom: 32px;
}
.prop-detail-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 14px;
}
.prop-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.prop-detail-badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--gold-pale); color: var(--gold);
}
.prop-detail-badge.affitto { background: #e8f0fd; color: #1a5fc4; }
.prop-detail-badge.nuovo { background: #e8f7ee; color: #1a7a40; }
.prop-detail-price-main {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800;
  color: var(--green); letter-spacing: -0.03em;
}
.prop-detail-title {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 700;
  color: var(--black); margin-bottom: 12px; line-height: 1.25;
}
.prop-detail-location {
  display: flex; align-items: center; gap: 7px;
  color: var(--gray-600); font-size: 0.95rem;
}
.prop-detail-location svg {
  width: 16px; height: 16px; stroke: var(--gold); fill: none;
  stroke-width: 2; flex-shrink: 0;
}

/* Stats bar */
.prop-stats-row {
  display: flex; gap: 0;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 40px; background: #fff;
}
.prop-stat-item {
  flex: 1; padding: 20px 14px; text-align: center;
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.prop-stat-item:last-child { border-right: none; }
.prop-stat-icon {
  width: 38px; height: 38px; background: var(--gold-pale);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.prop-stat-icon svg { width: 19px; height: 19px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.prop-stat-value { font-size: 1.05rem; font-weight: 700; color: var(--green); line-height: 1.2; }
.prop-stat-label { font-size: 0.7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; }

/* Sections */
.prop-section { margin-bottom: 40px; }
.prop-section-title {
  font-size: 1.05rem; font-weight: 700; color: var(--green);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-pale);
  display: flex; align-items: center; gap: 8px;
}
.prop-section-title svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; }

.prop-description { color: var(--gray-600); line-height: 1.85; }
.prop-description p { margin-bottom: 16px; }
.prop-description p:last-child { margin-bottom: 0; }

/* Features */
.prop-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.prop-feature-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--gray-600);
  padding: 11px 14px; background: var(--gray-100); border-radius: 9px;
}
.prop-feature-check {
  width: 20px; height: 20px; background: var(--green);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.prop-feature-check svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 3; }

/* Details table */
.prop-details-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prop-details-table tr { border-bottom: 1px solid var(--gray-200); }
.prop-details-table tr:last-child { border-bottom: none; }
.prop-details-table td { padding: 13px 0; vertical-align: middle; }
.prop-details-table td:first-child {
  color: var(--gray-400); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04em; width: 45%;
}
.prop-details-table td:last-child { color: var(--green); font-weight: 600; }

.energy-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 5px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.energy-A { background: #1b5e20; color: #fff; }
.energy-B { background: #388e3c; color: #fff; }
.energy-C { background: #7cb342; color: #fff; }
.energy-D { background: #c6cc00; color: #333; }
.energy-E { background: #f9a825; color: #333; }
.energy-F { background: #ef6c00; color: #fff; }
.energy-G { background: #c62828; color: #fff; }

/* Floor plan placeholder */
.floor-plan-placeholder {
  background: var(--gray-100); border: 2px dashed var(--gray-200);
  border-radius: var(--radius); padding: 48px 24px; text-align: center;
  color: var(--gray-400);
}
.floor-plan-placeholder svg { width: 44px; height: 44px; stroke: var(--gray-200); fill: none; margin: 0 auto 12px; display: block; }
.floor-plan-placeholder p { font-size: 0.88rem; }

/* ── Sidebar ── */
.prop-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); }

.sidebar-price-card {
  background: var(--green); color: #fff;
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 16px;
}
.sidebar-price-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55); margin-bottom: 6px;
}
.sidebar-price-value {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px;
}
.sidebar-cta-group { display: flex; flex-direction: column; gap: 10px; }
.sidebar-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 9px;
  font-size: 0.9rem; font-weight: 700; font-family: var(--font-sans);
  cursor: pointer; border: none; text-decoration: none; transition: all 0.2s;
  text-align: center;
}
.sidebar-btn svg { width: 17px; height: 17px; }
.sidebar-btn-gold { background: var(--gold); color: #fff; }
.sidebar-btn-gold svg { stroke: #fff; fill: none; stroke-width: 2; }
.sidebar-btn-gold:hover { background: var(--gold-light); color: #fff; }
.sidebar-btn-outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff;
}
.sidebar-btn-outline svg { stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 2; }
.sidebar-btn-outline:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); color: #fff; }

.sidebar-agent-card {
  background: var(--off-white); border-radius: var(--radius-lg);
  padding: 24px 20px; margin-bottom: 16px; text-align: center;
}
.agent-avatar {
  width: 74px; height: 74px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 14px; display: block;
  border: 3px solid var(--gold);
}
.agent-name { font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: 3px; }
.agent-role { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 16px; }
.agent-contacts { display: flex; flex-direction: column; gap: 8px; }
.agent-contact-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.88rem; color: var(--green); font-weight: 600;
  text-decoration: none; padding: 10px 14px;
  background: #fff; border-radius: 8px; transition: all 0.2s;
}
.agent-contact-link:hover { background: var(--gold-pale); color: var(--gold); }
.agent-contact-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.sidebar-form-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
.sidebar-form-title { font-size: 0.95rem; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.sidebar-form input,
.sidebar-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--gray-200); border-radius: 8px;
  font-family: var(--font-sans); font-size: 0.88rem; color: var(--black);
  margin-bottom: 10px; transition: border-color 0.2s;
  background: var(--off-white); box-sizing: border-box;
}
.sidebar-form textarea { min-height: 88px; resize: vertical; }
.sidebar-form input:focus, .sidebar-form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.sidebar-form-submit {
  width: 100%; padding: 13px; background: var(--green); color: #fff;
  border: none; border-radius: 8px; font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-top: 2px;
}
.sidebar-form-submit:hover { background: var(--green-mid); }

/* Similar properties */
.similar-section { background: var(--off-white); padding: 72px 0; }

/* Card link — make whole card clickable */
.prop-card { position: relative; cursor: pointer; }
.prop-card-link {
  position: absolute; inset: 0; z-index: 1;
  border-radius: var(--radius); text-indent: -9999px; overflow: hidden;
}
.prop-card .prop-footer { position: relative; z-index: 2; }

/* ── Responsive: Property Detail ── */
@media (max-width: 1024px) {
  .prop-detail-grid { grid-template-columns: 1fr; }
  .prop-sidebar { position: static; }
  .gallery-main-wrap { aspect-ratio: 16/8; }
}
@media (max-width: 768px) {
  .gallery-main-wrap { aspect-ratio: 4/3; }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
  .gallery-nav-btn { width: 40px; height: 40px; }
  .share-save-btns { display: none; }
  .prop-stats-row { flex-wrap: wrap; }
  .prop-stat-item { flex: 0 0 50%; border-bottom: 1px solid var(--gray-200); }
  .prop-stat-item:nth-child(even) { border-right: none; }
  .prop-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .video-btn span:not(.video-btn-icon) { display: none; }
  .prop-detail-section { padding: 32px 0 64px; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { aspect-ratio: 16/9; max-height: 400px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section-pad { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .filters-grid { flex-direction: column; }
  .map-container { height: 300px; }
  .contact-form { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .properties-grid, .blog-grid, .services-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
}
