/* ===============================================================
   TOP EVENTI IMMOBILIARE — CSS UNIFICATO
   Brand palette: navy #0f1729 + oro #c8a96e
   Tipografia: Playfair Display (heading) + Inter (body)
   =============================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px; line-height: 1.65; color: #1a1a2e; background: #fff;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: #b8960c; text-decoration: none; transition: color .15s; }
a:hover { color: #0f1729; }
button { font-family: inherit; cursor: pointer; }

/* Design tokens */
:root {
  --navy: #0f1729; --navy-deep: #0a0f1c; --navy-light: #1a2438;
  --gold: #c8a96e; --gold-deep: #b8960c;
  --cream: #f5f0e2; --paper: #fafaf7;
  --ink: #1a1a2e; --ink-soft: #555;
  --line: #eee9d9; --white: #fff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --gutter: 24px; --section-pad: 80px;
  --container: 1240px; --container-narrow: 920px;
  --radius: 12px; --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15,23,41,.06);
  --shadow: 0 8px 24px rgba(15,23,41,.10);
  --shadow-lg: 0 20px 56px rgba(15,23,41,.18);
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
p { margin-bottom: 1em; } p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--navy); }

/* Layout utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) var(--gutter); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-paper { background: var(--paper); }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 8px; font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: rgba(15,23,41,.3); }
.btn-ghost-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-logo { display: flex; align-items: center; gap: 8px; }
.site-logo img { height: 44px; width: auto; }
.site-logo__brand { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 18px; line-height: 1.1; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav__link { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: .8px; text-transform: uppercase; padding: 8px 0; position: relative; }
.main-nav__link:hover { color: var(--gold-deep); }
.main-nav__link.is-active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.main-nav__item { position: relative; }
.main-nav__item .dropdown { position: absolute; top: 100%; left: -16px; background: var(--white); padding: 10px 0; min-width: 240px; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s; border: 1px solid var(--line); z-index: 50; }
.main-nav__item:hover .dropdown, .main-nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 18px; font-size: 13px; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.dropdown a:hover { background: var(--paper); color: var(--gold-deep); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { width: 28px; height: 2px; background: var(--navy); transition: .2s; }
.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { position: fixed; inset: 0; background: var(--navy); display: none; flex-direction: column; padding: 100px 32px 32px; z-index: 90; overflow-y: auto; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { color: var(--white); font-size: 18px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); text-transform: uppercase; letter-spacing: 1px; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .sub { padding-left: 20px; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%); color: var(--white); padding: 110px var(--gutter) 100px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 18% 28%, rgba(200,169,110,.15), transparent 50%), radial-gradient(circle at 82% 72%, rgba(200,169,110,.10), transparent 50%); }
.hero__inner { max-width: var(--container); margin: 0 auto; position: relative; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: #cfd2db; max-width: 680px; margin: 18px 0 32px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* WhatsApp float */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #25D366; color: var(--white); padding: 12px 18px 12px 14px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .15s; }
.wa-float:hover { transform: scale(1.05); color: var(--white); }
.wa-float svg { width: 22px; height: 22px; }

/* Footer */
.site-footer { background: var(--navy); color: #c2c8d4; padding: 64px var(--gutter) 32px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; font-family: var(--sans); font-weight: 600; }
.footer-col p, .footer-col li { font-size: 14px; line-height: 1.7; color: #b8c0cc; }
.footer-col a { color: #d4dae3; }
.footer-col a:hover { color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-comuni { padding: 36px 0 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-comuni h4 { color: var(--gold); font-family: var(--serif); font-size: 24px; margin-bottom: 8px; font-weight: 600; }
.footer-comuni .sub { font-size: 13px; color: #9aa1b3; margin-bottom: 24px; }
.footer-zone { margin-bottom: 18px; }
.footer-zone h5 { color: var(--gold); font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 600; }
.footer-zone p { font-size: 13px; color: #b8c0cc; line-height: 1.55; }
.footer-zone a { color: #cfd2db; white-space: nowrap; }
.footer-bottom { padding: 24px 0 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #8a91a0; }
.footer-bottom a { color: #b8c0cc; }

/* Stats bar */
.stats-bar { background: var(--navy); padding: 48px var(--gutter); color: var(--white); border-top: 1px solid rgba(200,169,110,.15); border-bottom: 1px solid rgba(200,169,110,.15); }
.stats-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); color: var(--gold); line-height: 1; font-weight: 600; }
.stat .lbl { font-size: 13px; color: #b8c0cc; margin-top: 8px; letter-spacing: .5px; text-transform: uppercase; }

/* Responsive */
@media (max-width: 980px) {
  .hero { padding: 80px var(--gutter) 70px; }
  .section { padding: 60px var(--gutter); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 36px; }
  :root { --section-pad: 60px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-logo__brand { font-size: 14px; }
  .site-logo img { height: 36px; }
  .hero { padding: 60px 18px 50px; }
  .hero h1 { font-size: 30px; line-height: 1.2; }
  .hero p.lead { font-size: 15px; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .section { padding: 48px 18px; }
  .footer-zone p { font-size: 12px; line-height: 1.7; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* ===============================================================
   PAGINA COMUNE (template SEO localized)
   =============================================================== */
.comune-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 90px var(--gutter) 70px;
  position: relative;
  overflow: hidden;
}
.comune-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 25% 30%, rgba(200,169,110,.16), transparent 50%);
}
.comune-hero__inner { max-width: var(--container-narrow); margin: 0 auto; position: relative; }
.comune-hero h1 { color: var(--white); margin-bottom: 18px; }
.comune-hero__breadcrumb { font-size: 13px; color: #9aa1b3; margin-bottom: 18px; }
.comune-hero__breadcrumb a { color: #cfd2db; }
.comune-hero__lead { font-size: 18px; color: #cfd2db; max-width: 720px; margin-bottom: 32px; }
.comune-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.comune-content { padding: 64px var(--gutter); }
.comune-content__inner { max-width: var(--container-narrow); margin: 0 auto; }
.comune-content h2 {
  font-size: 30px; margin: 48px 0 18px; padding-left: 16px;
  border-left: 4px solid var(--gold);
}
.comune-content h2:first-child { margin-top: 0; }
.comune-content h3 { font-size: 21px; margin: 28px 0 12px; }
.comune-content p { margin-bottom: 16px; font-size: 17px; line-height: 1.75; color: #333; }
.comune-content ul { margin: 0 0 24px 22px; }
.comune-content ul li { margin-bottom: 8px; font-size: 16px; }
.comune-content hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.comune-cta-band {
  background: var(--paper);
  padding: 56px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.comune-cta-band h2 { font-size: 28px; margin-bottom: 16px; }
.comune-cta-band p { color: var(--ink-soft); max-width: 580px; margin: 0 auto 24px; }

.comune-nearby {
  padding: 56px var(--gutter);
  background: var(--white);
}
.comune-nearby__inner { max-width: var(--container-narrow); margin: 0 auto; }
.comune-nearby h3 { font-size: 22px; margin-bottom: 8px; }
.comune-nearby p { font-size: 15px; color: var(--ink-soft); line-height: 2; }
.comune-nearby a { display: inline-block; margin: 0 6px 8px 0; color: var(--gold-deep); font-weight: 500; padding: 4px 10px; border-radius: 6px; background: var(--paper); transition: all .15s; }
.comune-nearby a:hover { background: var(--navy); color: var(--white); }

/* ===============================================================
   PAGINA BLOG / ARTICOLO
   =============================================================== */
.article-hero {
  padding: 60px var(--gutter) 40px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.article-hero__inner { max-width: var(--container-narrow); margin: 0 auto; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13px; margin-bottom: 18px; align-items: center; }
.article-meta .cat { background: var(--gold); color: var(--navy); padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.article-meta time { font-weight: 500; }
.article-hero h1 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 18px; }
.article-excerpt { font-size: 18px; color: var(--ink-soft); line-height: 1.6; max-width: 720px; }

.article-body { padding: 56px var(--gutter); }
.article-body__inner { max-width: 760px; margin: 0 auto; }
.article-body h2 { margin: 40px 0 14px; font-size: 28px; }
.article-body h3 { margin: 28px 0 12px; font-size: 21px; }
.article-body p { margin-bottom: 18px; font-size: 18px; line-height: 1.8; color: #2a2a2a; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; font-size: 17px; line-height: 1.8; }
.article-body ul li, .article-body ol li { margin-bottom: 8px; }
.article-body blockquote { border-left: 4px solid var(--gold); padding: 14px 20px; margin: 24px 0; background: var(--paper); font-style: italic; color: var(--navy); }
.article-body img { border-radius: var(--radius); margin: 20px auto; max-width: 100%; height: auto; }
.article-body a { color: var(--gold-deep); text-decoration: underline; text-decoration-color: rgba(184,150,12,.4); text-underline-offset: 3px; }

.article-related {
  background: var(--paper);
  padding: 60px var(--gutter);
  border-top: 1px solid var(--line);
}
.article-related__inner { max-width: var(--container); margin: 0 auto; }
.article-related h3 { font-size: 24px; margin-bottom: 28px; text-align: center; }
.article-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: var(--white); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card .cat { color: var(--gold-deep); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.related-card h4 { font-size: 17px; margin: 8px 0 12px; color: var(--navy); }
.related-card p { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 980px) {
  .comune-content h2 { font-size: 24px; }
  .article-related__grid { grid-template-columns: 1fr; }
  .article-body p { font-size: 17px; }
}

/* ===============================================================
   COMUNE & BLOG — REVAMP per allinearli al design della home
   =============================================================== */

/* COMUNE HERO – più ricco, con badge e stats inline */
.comune-hero { padding: 100px var(--gutter) 70px; }
.comune-hero::before {
  background-image:
    radial-gradient(circle at 18% 25%, rgba(200,169,110,.18), transparent 50%),
    radial-gradient(circle at 82% 75%, rgba(200,169,110,.12), transparent 50%);
}
.comune-hero__inner { max-width: var(--container); }
.comune-hero__eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: 99px;
  background: rgba(200,169,110,.12); color: var(--gold);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 22px; border: 1px solid rgba(200,169,110,.3);
}
.comune-hero__breadcrumb { font-size: 13px; color: #9aa1b3; margin-bottom: 14px; }
.comune-hero__breadcrumb a { color: #cfd2db; }
.comune-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; }
.comune-hero__lead { font-size: clamp(16px, 1.4vw, 18px); color: #cfd2db; max-width: 760px; margin-bottom: 32px; line-height: 1.65; }
.comune-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* COMUNE PROMISE BAND – 3 card "promise" sotto hero (come home stats) */
.comune-promise {
  background: var(--paper);
  padding: 56px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.comune-promise__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.promise-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.promise-card__icon {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.promise-card__icon svg { width: 24px; height: 24px; }
.promise-card h4 { font-family: var(--sans); font-size: 15px; margin-bottom: 4px; color: var(--navy); font-weight: 700; }
.promise-card p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* COMUNE CONTENT – styling più premium dei contenuti */
.comune-content { padding: 72px var(--gutter); background: var(--white); }
.comune-content__inner { max-width: 920px; }
.comune-content h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 48px 0 18px;
  padding: 0;
  border-left: none;
  position: relative; padding-left: 0;
  color: var(--navy);
}
.comune-content h2::before {
  content: ""; display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  margin-bottom: 16px; border-radius: 99px;
}
.comune-content h2:first-child { margin-top: 0; }
.comune-content h3 { font-size: 22px; margin: 32px 0 12px; color: var(--navy); }
.comune-content p { font-size: 17px; line-height: 1.8; color: #2a2a2a; margin-bottom: 18px; }
.comune-content p strong { color: var(--navy); }
.comune-content ul { margin: 0 0 28px 0; padding: 0; list-style: none; }
.comune-content ul li {
  margin-bottom: 10px; padding-left: 28px; position: relative; font-size: 16px; line-height: 1.6;
}
.comune-content ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-weight: 700; font-size: 18px;
}
.comune-content hr { display: none; }

/* "Operiamo anche in" come pillole eleganti con hover gold */
.comune-content h2:last-of-type + p a,
.comune-content a[href*="agenzia-immobiliare-"] {
  display: inline-block; margin: 4px 4px 4px 0;
  padding: 8px 16px; border-radius: 99px;
  background: var(--paper); color: var(--navy); font-weight: 500;
  font-size: 14px; border: 1px solid var(--line); text-decoration: none;
  transition: all .15s;
}
.comune-content h2:last-of-type + p a:hover,
.comune-content a[href*="agenzia-immobiliare-"]:hover {
  background: var(--navy); color: var(--gold); border-color: var(--navy); transform: translateY(-1px);
}

/* CTA band per comune (più ricca, come home) */
.comune-cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 72px var(--gutter); text-align: center;
  position: relative; overflow: hidden;
}
.comune-cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, rgba(200,169,110,.12), transparent 60%);
}
.comune-cta-band .eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: 99px;
  background: rgba(200,169,110,.12); color: var(--gold);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 16px; border: 1px solid rgba(200,169,110,.3);
  position: relative;
}
.comune-cta-band h2 { color: var(--white); max-width: 760px; margin: 0 auto 12px; font-size: clamp(26px, 3.2vw, 36px); position: relative; }
.comune-cta-band p { color: #cfd2db; max-width: 600px; margin: 0 auto 28px; font-size: 16px; position: relative; }
.comune-cta-band .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }

/* ===== BLOG / ARTICOLO – RICH ===== */
.article-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white); padding: 90px var(--gutter) 60px;
  position: relative; overflow: hidden;
  border-bottom: none;
}
.article-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, rgba(200,169,110,.15), transparent 50%);
}
.article-hero__inner { max-width: 880px; position: relative; }
.article-hero h1 { color: var(--white); margin-bottom: 22px; font-size: clamp(28px, 4.5vw, 48px); line-height: 1.15; }
.article-meta { color: #cfd2db; }
.article-meta .cat {
  background: var(--gold); color: var(--navy);
  padding: 5px 14px; border-radius: 99px;
  font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}
.article-meta time { font-weight: 500; }
.article-excerpt { font-size: clamp(16px, 1.6vw, 19px); color: #cfd2db; line-height: 1.6; max-width: 760px; }
.article-breadcrumb { font-size: 13px; color: #9aa1b3; margin-bottom: 16px; }
.article-breadcrumb a { color: #cfd2db; }

.article-body { background: var(--white); padding: 64px var(--gutter); }
.article-body__inner { max-width: 740px; }
/* Drop cap sul primo paragrafo */
.article-body__inner > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 64px; line-height: .85;
  float: left; padding: 6px 14px 0 0; color: var(--gold-deep); font-weight: 700;
}
.article-body h2 {
  margin: 48px 0 16px; font-size: clamp(24px, 2.8vw, 30px); position: relative;
}
.article-body h2::before {
  content: ""; display: block; width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  margin-bottom: 14px; border-radius: 99px;
}
.article-body h3 { margin: 32px 0 14px; font-size: 21px; color: var(--navy); }
.article-body p { font-size: 18px; line-height: 1.85; color: #2a2a2a; margin-bottom: 20px; }
.article-body p strong { color: var(--navy); }
.article-body ul, .article-body ol { margin: 0 0 26px 0; padding: 0; list-style: none; }
.article-body ul li, .article-body ol li {
  padding-left: 28px; position: relative; font-size: 17px; line-height: 1.7; margin-bottom: 10px;
}
.article-body ul li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-weight: 700;
}
.article-body ol { counter-reset: numli; }
.article-body ol li { counter-increment: numli; }
.article-body ol li::before {
  content: counter(numli);
  background: var(--gold); color: var(--navy);
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; left: 0; top: 3px;
}
.article-body blockquote {
  border-left: 4px solid var(--gold); padding: 16px 24px;
  margin: 28px 0; background: var(--paper);
  font-style: italic; color: var(--navy);
  font-size: 19px; line-height: 1.6; border-radius: 0 8px 8px 0;
}
.article-body img {
  border-radius: var(--radius); margin: 24px auto;
  box-shadow: var(--shadow-sm);
}
.article-body a {
  color: var(--gold-deep); text-decoration: underline;
  text-decoration-color: rgba(184,150,12,.4); text-underline-offset: 3px;
  font-weight: 500;
}
.article-body a:hover { color: var(--navy); text-decoration-color: var(--navy); }

/* Articoli correlati – stile prop-card */
.article-related { background: var(--paper); padding: 64px var(--gutter); border-top: 1px solid var(--line); }
.article-related h3 {
  font-size: 24px; margin-bottom: 8px; text-align: center;
  position: relative; padding-bottom: 16px;
}
.article-related h3::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  margin: 12px auto 0; border-radius: 99px;
}
.article-related__sub { text-align: center; color: var(--ink-soft); margin-bottom: 36px; font-size: 14px; }
.article-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--container); margin: 0 auto; }
.related-card {
  background: var(--white); padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200,169,110,.4); }
.related-card .cat {
  display: inline-block; padding: 4px 10px; border-radius: 99px;
  background: var(--paper); color: var(--gold-deep);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 12px; align-self: flex-start;
}
.related-card h4 {
  font-family: var(--serif); font-size: 18px;
  margin: 0 0 10px; color: var(--navy); line-height: 1.3; font-weight: 600;
}
.related-card p {
  font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 14px;
  flex: 1;
}
.related-card .more {
  color: var(--gold-deep); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

@media (max-width: 980px) {
  .comune-promise__inner { grid-template-columns: 1fr; gap: 14px; }
  .promise-card { padding: 18px; }
  .article-related__grid { grid-template-columns: 1fr; }
  .comune-content { padding: 48px var(--gutter); }
  .article-body { padding: 48px var(--gutter); }
  .article-body__inner > p:first-of-type::first-letter { font-size: 48px; }
}
@media (max-width: 640px) {
  .comune-hero { padding: 60px 18px 50px; }
  .comune-promise { padding: 36px 18px; }
  .comune-content { padding: 40px 18px; }
  .comune-cta-band { padding: 50px 18px; }
  .comune-content p { font-size: 16px; }
  .article-hero { padding: 56px 18px 44px; }
  .article-body { padding: 40px 18px; }
  .article-body p { font-size: 16px; line-height: 1.7; }
  .article-related { padding: 44px 18px; }
}

/* ===============================================================
   SVG ILLUSTRATIONS — Property cards, hero decorations, dividers
   Tutte custom, palette navy/oro
   =============================================================== */

/* Property card con SVG illustration */
.prop-card__svg {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f5f0e2 0%, #faf5e8 100%);
  overflow: hidden;
  display: flex; align-items: end; justify-content: center;
}
.prop-card__svg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(200,169,110,.18), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(200,169,110,.08) 60px 61px);
  pointer-events: none;
}
.prop-card__svg svg { position: relative; width: 70%; max-width: 280px; height: auto; }

/* Hero decoration corner */
.hero-decor {
  position: absolute; pointer-events: none; opacity: .12;
}
.hero-decor.tr { top: 24px; right: 24px; width: 200px; height: 200px; }
.hero-decor.bl { bottom: 24px; left: 24px; width: 160px; height: 160px; }

/* Section dividers SVG */
.divider-line {
  display: block; max-width: 56px; margin: 12px auto 24px;
  height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

/* Blog article: replace embedded images with decorative box */
.article-body img {
  display: none;  /* nascondi le foto wp */
}
.article-decor {
  margin: 32px 0; padding: 28px 24px;
  background: linear-gradient(135deg, var(--paper) 0%, #f5f0e2 100%);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex; gap: 18px; align-items: center;
}
.article-decor svg { flex-shrink: 0; width: 56px; height: 56px; color: var(--gold-deep); }
.article-decor p { margin: 0; font-style: italic; color: var(--navy); font-size: 17px; line-height: 1.5; }

/* Stat / quote inline */
.inline-stat {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); color: var(--gold-deep); font-weight: 600;
}

/* Tag pillole decorative (zone, badge) */
.svg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--paper);
  color: var(--gold-deep); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; border-radius: 99px;
  border: 1px solid var(--line);
}
.svg-badge svg { width: 12px; height: 12px; }

/* Wave decoration above CTA */
.wave-decor {
  display: block; width: 100%; height: 60px;
  background: var(--navy);
}

/* ===============================================================
   CONTACT BLOCK — finale pagine comune (form contatti)
   =============================================================== */
.contact-block {
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
  padding: 72px var(--gutter);
  border-top: 1px solid var(--line);
}
.contact-block__inner { max-width: 1080px; margin: 0 auto; }
.contact-block__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.contact-block__eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: 99px;
  background: var(--paper); color: var(--gold-deep);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 18px; border: 1px solid var(--line);
}
.contact-block__head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.contact-block__head p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

.contact-form {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto 40px;
}
.contact-form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 18px;
}
.contact-form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 18px;
}
.contact-form label span {
  display: block; margin-bottom: 6px; letter-spacing: .3px;
}
.contact-form em { color: var(--gold-deep); font-style: normal; margin-left: 2px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit; font-size: 15px;
  background: var(--white); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(200,169,110,.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form__submit {
  margin-top: 8px; width: 100%; justify-content: center;
  font-size: 15px; padding: 16px;
}
.contact-form__privacy {
  margin-top: 14px; font-size: 12px; color: var(--ink-soft);
  text-align: center; line-height: 1.5;
}
.contact-form__privacy a { color: var(--gold-deep); text-decoration: underline; }

.contact-block__alt {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1080px; margin: 0 auto;
}
.contact-alt-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; text-align: center;
}
.contact-alt-card strong {
  display: block; font-size: 11px; color: var(--gold-deep);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.contact-alt-card a, .contact-alt-card span {
  display: block; color: var(--navy); font-weight: 600; font-size: 15px;
  line-height: 1.4; margin-bottom: 6px;
}
.contact-alt-card a { transition: color .15s; }
.contact-alt-card a:hover { color: var(--gold-deep); }
.contact-alt-card small {
  display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.4;
}

@media (max-width: 980px) {
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .contact-block__alt { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .contact-block { padding: 48px 18px; }
  .contact-form { padding: 24px 18px; }
  .contact-block__alt { grid-template-columns: 1fr; }
}
