/* SubitoClick Annunci - Marketplace CSS (Matching cover.jpg - 100% Light Theme) */
:root {
  --primary-yellow: #f5a623;
  --primary-yellow-hover: #e09618;
  --primary-yellow-light: #fff8eb;
  --accent-green: #28a745;
  --accent-green-hover: #218838;
  --text-dark: #111827;
  --text-body: #4b5563;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-filter: #f3f4f6;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --footer-bg: #ffffff;
  --footer-bottom: #f8fafc;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* WIDER MAX-WIDTH (1400px) */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

/* 1. Header (Light, clean, high-contrast) */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.03);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title h1 {
  font-size: 1.55rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-title span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.btn-publish-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.25);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-publish-green:hover {
  background: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.35);
}

.btn-publish-green svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* 2. Yellow Navigation Bar (100% width) */
.site-nav-yellow {
  background: var(--primary-yellow);
  box-shadow: 0 3px 10px rgba(245, 166, 35, 0.25);
}

.nav-bar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  color: #111827;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 14px 32px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #000000;
  background: rgba(0, 0, 0, 0.09);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: #111827;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.4;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    gap: 0;
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .nav-bar-wrap {
    flex-direction: column;
  }
}

/* 3. Search & Filter Bar Card (Light, refined card) */
.search-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin: 30px 0 32px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  position: relative;
}

.search-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-yellow-hover);
  background: var(--primary-yellow-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr auto;
  gap: 18px;
  align-items: flex-end;
}

@media (max-width: 992px) {
  .search-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-form-grid .filter-btn-col {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .search-form-grid {
    grid-template-columns: 1fr;
  }
  .search-form-grid .filter-btn-col {
    grid-column: span 1;
  }
}

.filter-col {
  display: flex;
  flex-direction: column;
}

.filter-col label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.filter-col select,
.filter-col input {
  width: 100%;
  height: 46px;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.filter-col select:focus,
.filter-col input:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.22);
}

.btn-filter-search {
  height: 46px;
  padding: 0 36px;
  background: var(--primary-yellow);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.btn-filter-search:hover {
  background: var(--primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.45);
}

.btn-filter-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}

/* 4. Top Category Cards Grid (Grayscale 4-cols with Click button) */
.category-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .category-hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .category-hero-grid {
    grid-template-columns: 1fr;
  }
}

.cat-hero-card {
  position: relative;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #111827;
  text-decoration: none;
  display: block;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-yellow);
}

.cat-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
  display: block;
}

.cat-hero-card:hover img {
  transform: scale(1.08);
  filter: grayscale(30%);
  opacity: 0.95;
}

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.cat-hero-icon {
  width: 38px;
  height: 38px;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.cat-hero-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.cat-hero-title {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}

.btn-card-click {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #111827;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 7px 32px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cat-hero-card:hover .btn-card-click {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* 5. Banner Ads Row (3 columns) */
.banner-ads-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 55px;
  align-items: start;
}

@media (max-width: 1024px) {
  .banner-ads-row {
    grid-template-columns: 1fr 1fr;
  }
  .banner-ads-row .ad-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .banner-ads-row {
    grid-template-columns: 1fr;
  }
  .banner-ads-row .ad-card-wide {
    grid-column: span 1;
  }
}

.ad-card-wide {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #d8ddf4;
  height: 295px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card-wide:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ad-card-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-card-tall {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card-tall:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ad-card-tall-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.ad-card-tall-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ad-card-tall:hover .ad-card-tall-img img {
  transform: scale(1.05);
}

.ad-banner-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: #111827;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ad-card-caption {
  padding: 16px 18px 20px;
}

.ad-card-caption h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.ad-card-caption p {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* 6. NEW HOME SECTION: How It Works & Local Benefits (100% Light) */
.how-it-works-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 65px 0 75px;
  margin-bottom: 55px;
}

.section-tag-pill {
  display: inline-block;
  background: var(--primary-yellow-light);
  color: var(--primary-yellow-hover);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.how-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 45px;
}

.how-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.how-header p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

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

.step-card {
  background: #fdfdfd;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-yellow);
}

.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #e5e7eb;
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-yellow-light);
  color: var(--primary-yellow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Spotlight Banner Card in How-it-Works */
.spotlight-banner-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .spotlight-banner-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

.spotlight-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.spotlight-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.spotlight-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spotlight-content h3 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.spotlight-content p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 22px;
}

.spotlight-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.spotlight-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.spotlight-bullets svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
  flex-shrink: 0;
}

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

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1.5px solid var(--border-dark);
  transition: all 0.2s ease;
}

.btn-outline-dark:hover {
  background: var(--bg-filter);
  border-color: var(--text-dark);
}

/* 7. Directory Polygonal Background Section (100% Light) */
.directory-poly-section {
  background-color: #f3f5f8;
  background-image: 
    linear-gradient(135deg, rgba(243, 245, 248, 0.92) 0%, rgba(235, 239, 245, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300' viewBox='0 0 400 300'%3E%3Cpath d='M0 0 L150 120 L300 40 L400 180 L280 300 L90 280 L0 300 Z' fill='none' stroke='rgba(0,0,0,0.04)' stroke-width='1.5'/%3E%3Cpath d='M150 120 L280 300 M300 40 L280 300 M150 120 L90 280' fill='none' stroke='rgba(0,0,0,0.03)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: cover;
  padding: 65px 0 75px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 55px;
}

.directory-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 38px;
}

.directory-header h2 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.directory-header p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
}

.directory-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 50px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .directory-box {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px;
  }
}

.directory-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.directory-col li {
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
}

.directory-col li:last-child {
  border-bottom: none;
}

.directory-col a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-col a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-yellow);
  transition: transform 0.2s, background 0.2s;
}

.directory-col a:hover {
  color: var(--primary-yellow-hover);
  padding-left: 6px;
}

.directory-col a:hover::before {
  transform: scale(1.6);
  background: var(--primary-yellow-hover);
}

/* 8. Listings Grid Section */
.listings-section {
  margin-bottom: 75px;
}

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

.section-head-wrap h3 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.section-head-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

@media (max-width: 1100px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.listing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.listing-img-box {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: #f1f5f9;
}

.listing-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-yellow);
  color: #111827;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.listing-price-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #ffffff;
  color: var(--primary-yellow-hover);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 900;
  border: 1px solid var(--border);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.listing-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.listing-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.listing-title:hover {
  color: var(--primary-yellow-hover);
}

.listing-desc {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.listing-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.listing-btn-view {
  background: var(--bg-filter);
  color: var(--text-dark);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-dark);
  font-size: 0.82rem;
  transition: all 0.2s;
}

.listing-btn-view:hover {
  background: var(--primary-yellow);
  color: #000;
  border-color: var(--primary-yellow);
}

/* 9. 100% LIGHT THEME FOOTER (Never dark mode!) */
.site-footer {
  background: #ffffff;
  color: var(--text-body);
  padding: 60px 0 0;
  border-top: 3px solid var(--primary-yellow);
  margin-top: auto;
}

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

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

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

.footer-col h4 {
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-yellow-hover);
  text-decoration: underline;
}

.footer-bottom {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* Page Hero for Inner Pages */
.page-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 38px 0;
  margin-bottom: 35px;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}


/* ==========================================================================
   PAGE SPECIFIC STYLES (Consolidated from in-page <style> tags)
   ========================================================================== */

/* Extracted from annuncio.php */
.ad-detail-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      gap: 36px;
      margin: 35px 0 60px;
    }
    @media (max-width: 900px) {
      .ad-detail-grid {
        grid-template-columns: 1fr;
      }
    }
    .ad-main-img-box {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
      margin-bottom: 24px;
      box-shadow: var(--shadow-sm);
    }
    .ad-main-img-box img {
      width: 100%;
      height: 440px;
      object-fit: cover;
      display: block;
    }
    .ad-content-box {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 32px;
      box-shadow: var(--shadow-sm);
    }
    .ad-price-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .ad-price-display {
      font-size: 2.2rem;
      font-weight: 900;
      color: var(--primary-yellow-hover);
    }
    .ad-meta-tags {
      display: flex;
      gap: 16px;
      color: var(--text-muted);
      font-size: 0.88rem;
      border-bottom: 1px solid var(--border);
      padding-bottom: 18px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }
    .ad-meta-tags span {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .ad-meta-tags svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }
    .ad-specs-table {
      width: 100%;
      border-collapse: collapse;
      margin: 24px 0;
      font-size: 0.92rem;
    }
    .ad-specs-table th, .ad-specs-table td {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      text-align: left;
    }
    .ad-specs-table th {
      background: var(--bg-filter);
      color: var(--text-dark);
      width: 35%;
      font-weight: 700;
    }
    .seller-contact-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-top: 4px solid var(--primary-yellow);
      border-radius: var(--radius-sm);
      padding: 30px;
      box-shadow: var(--shadow-sm);
      position: sticky;
      top: 20px;
    }
    .breadcrumb-row {
      background: var(--bg-filter);
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    .breadcrumb-row a {
      color: var(--text-dark);
      text-decoration: none;
      font-weight: 600;
    }
    .breadcrumb-row span {
      margin: 0 6px;
    }

/* Extracted from chi-siamo.php */
.story-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
      margin: 40px 0 60px;
    }
    @media (max-width: 860px) {
      .story-grid {
        grid-template-columns: 1fr;
      }
    }
    .story-img-box {
      border-radius: var(--radius-sm);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .story-img-box img {
      width: 100%;
      height: 380px;
      object-fit: cover;
      display: block;
    }
    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin: 30px 0 50px;
    }
    @media (max-width: 860px) {
      .stats-row {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .stat-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 28px;
      text-align: center;
      box-shadow: var(--shadow-sm);
    }
    .stat-number {
      font-size: 2.2rem;
      font-weight: 900;
      color: var(--primary-yellow-hover);
      margin-bottom: 4px;
    }
    .stat-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-dark);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin: 40px 0 70px;
    }
    @media (max-width: 768px) {
      .pillars-grid {
        grid-template-columns: 1fr;
      }
    }
    .pillar-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 30px;
      box-shadow: var(--shadow-sm);
    }
    .pillar-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(245, 166, 35, 0.15);
      color: var(--primary-yellow-hover);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }
    .pillar-icon svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
    }

/* Extracted from contatti.php */
.contact-grid {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 40px;
      margin: 40px 0 70px;
    }
    @media (max-width: 860px) {
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }
    .contact-info-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 36px;
      box-shadow: var(--shadow-sm);
    }
    .contact-item {
      display: flex;
      gap: 16px;
      align-items: flex-start;
      margin-bottom: 24px;
    }
    .contact-icon-box {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(245, 166, 35, 0.12);
      color: var(--primary-yellow-hover);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .contact-icon-box svg {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
    }
    .contact-form-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 36px;
      box-shadow: var(--shadow-sm);
    }

/* Extracted from pubblica-annuncio.php */
.publish-container {
      max-width: 860px;
      margin: 40px auto 70px;
    }
    .form-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 36px 40px;
      box-shadow: var(--shadow-sm);
    }
    .form-grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    @media (max-width: 640px) {
      .form-grid-2 {
        grid-template-columns: 1fr;
      }
      .form-card {
        padding: 24px;
      }
    }
    .features-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 35px;
    }
    @media (max-width: 768px) {
      .features-row {
        grid-template-columns: 1fr;
      }
    }
    .feat-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 24px;
      text-align: center;
      box-shadow: var(--shadow-sm);
    }
    .feat-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(245, 166, 35, 0.15);
      color: var(--primary-yellow-hover);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
    }
    .feat-icon svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
    }

/* Extracted from sicurezza.php */
.safety-rules-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin: 40px 0 60px;
    }
    @media (max-width: 900px) {
      .safety-rules-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 600px) {
      .safety-rules-grid {
        grid-template-columns: 1fr;
      }
    }
    .safety-rule-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 30px;
      box-shadow: var(--shadow-sm);
    }
    .safety-rule-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(245, 166, 35, 0.15);
      color: var(--primary-yellow-hover);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }
    .safety-rule-icon svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
    }


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Safeguard Rules */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
