/* ============================================================
   Stefano Porta Consulenze Immobiliari — stile "editoriale chiaro"
   Palette derivata dal logo: blu navy + oro, su fondi caldi.
   ============================================================ */

:root {
  --navy: #16305c;
  --navy-deep: #0e2244;
  --navy-ink: #0b1c39;
  --gold: #d9a123;
  --gold-soft: #eec95f;
  --paper: #fdfcf8;
  --sand: #f4f0e6;
  --sand-deep: #ebe5d6;
  --line: #e3dcc9;
  --ink: #1f2733;
  --body: #4d5563;
  --muted: #77706048;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(22, 48, 92, 0.06), 0 4px 14px rgba(22, 48, 92, 0.06);
  --shadow-md: 0 2px 6px rgba(22, 48, 92, 0.07), 0 14px 34px rgba(22, 48, 92, 0.10);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--navy); }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.narrow { width: min(760px, 92vw); }

.section-pad { padding: clamp(64px, 9vw, 110px) 0; }

.soft-bg { background: var(--sand); }

.muted { color: var(--body); }

.lead {
  font-size: 1.16rem;
  color: var(--body);
  max-width: 56ch;
}

.lead-small { font-size: 1.08rem; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.eyebrow.light { color: var(--gold-soft); }
.eyebrow.light::before { background: var(--gold-soft); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo { width: 52px; height: auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-copy small {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 48, 92, 0.22);
}
.btn-primary:hover { background: var(--navy-deep); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: rgba(22, 48, 92, 0.06); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 6px 18px rgba(217, 161, 35, 0.3);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--sand); }

.btn-small { padding: 9px 20px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(217, 161, 35, 0.10), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(22, 48, 92, 0.06), transparent 60%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 { max-width: 17ch; }

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

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.trust-strip span {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Hero panel */
.hero-panel { display: grid; gap: 18px; }

.agency-logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px;
  display: flex;
  justify-content: center;
}
.agency-logo-card img { width: min(210px, 55%); }

.hero-fact-card {
  background: var(--navy);
  color: #dbe3f2;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}
.hero-fact-card h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.hero-fact-card p { margin: 0; font-size: 0.98rem; }
.card-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
  margin: 0 0 10px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.mini-stats strong {
  display: block;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.02rem;
}
.mini-stats span { font-size: 0.78rem; color: var(--body); }

/* ---------- Credential ribbon under hero ---------- */
.cred-ribbon {
  background: var(--navy-ink);
  color: #c6d2e6;
  padding: 16px 0;
}
.cred-ribbon .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 36px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.cred-ribbon strong { color: #fff; font-weight: 700; }
.cred-ribbon .dot { color: var(--gold); }
.cred-ribbon img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

/* ---------- Section headings ---------- */
.section-heading {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading p:last-child { margin-bottom: 0; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  gap: 22px;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 161, 35, 0.55);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  color: var(--navy);
  margin-bottom: 20px;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.22rem; }
.service-card p { font-size: 0.96rem; margin: 0; }

/* ---------- Split / method ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.split-grid > div:first-child { position: sticky; top: 110px; }

.timeline { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  position: relative;
  padding-bottom: 34px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 54px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step > span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 1.18rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.97rem; }

/* ---------- Valuation preview (navy band) ---------- */
.valuation-preview-section {
  background:
    radial-gradient(700px 400px at 110% 0%, rgba(217, 161, 35, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #ccd7ea;
}
.valuation-preview-section h2 { color: #fff; max-width: 22ch; }
.valuation-preview-section .lead,
.valuation-preview-section p { color: #ccd7ea; }

.valuation-disclaimer {
  font-size: 0.92rem;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  color: #b9c7de;
}

.valuation-preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.valuation-preview-card {
  display: grid;
  gap: 14px;
}
.valuation-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  backdrop-filter: blur(4px);
}
.valuation-step span {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-soft);
}
.valuation-step strong { color: #fff; font-size: 1.05rem; }
.valuation-step small { color: #b9c7de; font-size: 0.88rem; }

/* ---------- Portfolio ---------- */
.portfolio-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.portfolio-category-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.portfolio-category-nav a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.portfolio-category { padding: 34px 0; }
.portfolio-category + .portfolio-category { border-top: 1px solid var(--line); }

.portfolio-category-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 48px;
  align-items: end;
  margin-bottom: 28px;
}
.portfolio-category-heading h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0;
}
.portfolio-category-heading p {
  margin: 0 0 6px;
  font-size: 0.98rem;
  max-width: 52ch;
}

.portfolio-deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.deal-column-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.deal-column-title span {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
}
.deal-column-title h4 {
  margin: 0;
  font-size: 0.85rem;
  font-family: var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--body);
  font-weight: 700;
}

.property-slot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.property-slot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.property-slot-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.property-slot-image span {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 28, 57, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}
.property-slot-featured .property-slot-image span { background: var(--gold); color: var(--navy-ink); }

.property-slot-content {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.property-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.property-slot-content h5 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.property-slot-content > p { font-size: 0.94rem; margin-bottom: 16px; }

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.property-meta span {
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mini-btn:hover { border-color: var(--navy); background: rgba(22, 48, 92, 0.05); }
.mini-btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini-btn-primary:hover { background: var(--navy-deep); color: #fff; }
.mini-btn-whatsapp { background: #1fa855; border-color: #1fa855; color: #fff; }
.mini-btn-whatsapp:hover { background: #178a45; border-color: #178a45; color: #fff; }
.mini-btn-disabled {
  color: #a9a290;
  background: var(--sand);
  border-style: dashed;
  cursor: default;
}

.portfolio-updated {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 10px;
}
.portfolio-updated::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1d8348;
  flex: none;
  box-shadow: 0 0 0 3px rgba(29, 131, 72, 0.18);
}

/* ---------- About / credentials ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.portrait-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  display: flex;
  justify-content: center;
}
.portrait-card img { width: min(240px, 70%); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.badges span {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
}

.professional-credentials { margin-top: clamp(48px, 7vw, 80px); }

.fimaa-showcase {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border-top: 3px solid var(--gold);
}
.fimaa-card {
  width: clamp(140px, 16vw, 190px);
}

.credential-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-top: 20px;
}
.credential-list > div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.credential-list span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.credential-list strong { color: var(--ink); font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-list { display: grid; gap: 12px; margin-top: 26px; }
.contact-list a,
.contact-static {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-list a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.contact-list strong {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-list span { color: var(--ink); font-weight: 600; }

/* ---------- Forms ---------- */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  gap: 18px;
  border-top: 3px solid var(--navy);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22, 48, 92, 0.12);
}
.contact-form textarea { resize: vertical; }

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

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--navy);
}
.form-section-title:first-child {
  padding-top: 0;
  border-top: 0;
}
.form-section-title span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}
.form-section-title strong {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-note { font-size: 0.85rem; color: var(--body); margin: 0; }

.valuation-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Dark CTA band ---------- */
.dark-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #ccd7ea;
}
.dark-section h2 { color: #fff; }
.dark-section p { color: #ccd7ea; }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

/* ---------- Property pages ---------- */
.property-hero {
  background:
    radial-gradient(800px 420px at 90% -20%, rgba(217, 161, 35, 0.10), transparent 60%),
    var(--paper);
}

.property-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.property-media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.media-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
}
.media-shortcuts a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.media-shortcuts a:hover { color: var(--navy-deep); }

.property-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  display: grid;
  gap: 4px;
}
.summary-card span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.summary-card strong {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.12rem;
}

.media-access-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.media-access-grid { display: grid; gap: 16px; }
.media-access-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.media-access-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 161, 35, 0.55);
}
.media-access-card span {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
}
.media-access-card strong { color: var(--ink); font-size: 1.06rem; }
.media-access-card small { color: var(--body); font-size: 0.88rem; }

.property-info-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}

.info-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.side-panel { border-top: 3px solid var(--gold); }

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}
.clean-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.97rem;
}
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.small-note { font-size: 0.85rem; color: var(--body); }

.property-badges { margin-top: 18px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(11, 28, 57, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Plan page ---------- */
.plan-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px;
}
.plan-actions { margin-top: 20px; }

/* ---------- Valuation page ---------- */
.valuation-hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.valuation-hero-card img { width: min(190px, 55%); }
.valuation-hero-note { display: grid; gap: 4px; }
.valuation-hero-note strong { color: var(--navy); font-size: 1.05rem; }
.valuation-hero-note span { font-size: 0.92rem; color: var(--body); }

.valuation-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.valuation-process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.valuation-process-card span {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.valuation-process-card h2 { font-size: 1.25rem; }
.valuation-process-card p { margin: 0; font-size: 0.95rem; }

.valuation-form-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.valuation-checklist {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin-top: 22px;
}
.valuation-checklist strong {
  display: block;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.valuation-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.valuation-checklist li {
  padding-left: 20px;
  position: relative;
  font-size: 0.94rem;
}
.valuation-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Legal page ---------- */
.legal-page h1 { margin-bottom: 18px; }
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-ink);
  color: #b6c2d8;
  padding-top: clamp(48px, 7vw, 72px);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: 44px;
}
.footer-grid h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  color: #b6c2d8;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.footer-grid a:hover { color: var(--gold-soft); }

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-logo-card,
.footer-fimaa-card {
  background: #fff;
  border-radius: 10px;
  padding: 9px;
  width: 74px;
}

.footer-credentials { font-size: 0.86rem; line-height: 1.7; }
.footer-credentials strong { color: #fff; }
.footer-address { color: #b6c2d8; margin: 8px 0 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: #8b98b0;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin-inline: auto;
  max-width: 640px;
  background: var(--navy-ink);
  color: #ccd7ea;
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(6, 16, 36, 0.4);
  padding: 18px 22px;
  align-items: center;
  gap: 18px;
  z-index: 90;
}
.cookie-banner p { margin: 0; font-size: 0.88rem; flex: 1; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fa855;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(23, 138, 69, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .property-summary-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid,
  .split-grid,
  .valuation-preview-grid,
  .about-grid,
  .contact-grid,
  .property-detail-grid,
  .media-access-panel,
  .property-info-grid,
  .valuation-form-grid,
  .plan-layout { grid-template-columns: 1fr; }
  .split-grid > div:first-child { position: static; }
  .fimaa-showcase { grid-template-columns: 1fr; justify-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .portfolio-category-heading { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 5vw 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: 999px; }

  .cards-4 { grid-template-columns: 1fr; }
  .portfolio-deal-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .property-summary-grid { grid-template-columns: 1fr 1fr; }
  .form-two-cols, .form-three-cols { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; }
  .credential-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list a, .contact-static { grid-template-columns: 1fr; gap: 2px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .property-summary-grid { grid-template-columns: 1fr 1fr; }
}

/* Caratteristiche dell'immobile nella scheda pubblica */
.property-features {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
.property-features li {
  border: 1px solid rgba(22, 47, 96, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.92rem;
  color: #162F60;
  background: #fff;
}
