/* ==========================================================================
   Antonella Baiocchi — Consulente Immobiliare
   Design tokens: travertino/terracotta romana, Cormorant Garamond + Public Sans
   ========================================================================== */

:root{
  --stone: #EDE7DB;        /* travertino / plaster background */
  --stone-deep: #E2D9C8;   /* section alternate background */
  --card: #F8F4EA;         /* card surface, lighter than bg */
  --ink: #2A2521;          /* near-black warm ink, primary text */
  --ink-soft: #55493F;     /* secondary text */
  --terracotta: #6E1E2B;   /* primary accent — Roman brick */
  --terracotta-dark: #4A1119;
  --ochre: #B0812E;        /* secondary accent — seal / gold */
  --taupe: #8F8272;        /* borders, muted labels */
  --line: rgba(42,37,33,0.14);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1{ font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2{ font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3{ font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; }

p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  display:inline-block;
  margin-bottom: 0.9em;
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237,231,219,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 32px;
  padding: 18px 32px;
  max-width: 1320px;
  margin: 0 auto;
}

.brand-wrap{ flex-shrink: 0; }

.brand{
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand em{ font-style: italic; color: var(--terracotta); }

.nav-links{
  display:flex;
  gap: 28px;
  list-style:none;
  margin:0; padding:0;
  flex-wrap: nowrap;
}
.nav-links a{
  text-decoration:none;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-links a:hover{ color: var(--terracotta); }
.nav-links a.active{ color: var(--terracotta); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background: var(--ochre);
}

.nav-toggle{ display:none; }

@media (max-width: 800px){
  .nav-wrap{ flex-wrap: wrap; }
  .nav-links{
    display: none;
    width: 100%;
    background-color: #EDE7DB !important;
    flex-direction: column;
    align-items:flex-start;
    gap: 0;
    padding: 12px 0 4px;
  }
  .nav-links.open{ display: flex; }
  .nav-links li{ width:100%; border-bottom: 1px solid var(--line); background-color: #EDE7DB; }
  .nav-links a{ display:block; padding: 14px 0; background-color: #EDE7DB; }
  .nav-toggle{
    display:block;
    background:none; border:none;
    font-size: 1.6rem;
    color: var(--ink);
    cursor:pointer;
  }
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration:none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .2s ease;
}
.btn-primary{ background: var(--terracotta); color: #F8F4EA; }
.btn-primary:hover{ background: var(--terracotta-dark); }
.btn-outline{ border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--stone); }

/* ---------------- Seal / signature element ---------------- */
.seal{
  width: 148px; height: 148px;
  flex-shrink: 0;
}
.seal-inline{
  width: 96px; height:96px;
}

/* ---------------- Hero ---------------- */
.hero{
  padding: 90px 0 70px;
  position: relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items:center;
}
.hero h1{ margin-bottom: 0.3em; }
.hero .lede{ font-size: 1.15rem; max-width: 46ch; }
.hero-cta{ display:flex; gap:16px; margin-top: 34px; flex-wrap:wrap; }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-grid .hero-seal-col{ order:-1; display:flex; justify-content:center; }
}

/* ---------------- Page-hero with seal, reused across all sub-pages ---------------- */
.page-hero-grid{
  display:grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items:center;
}
@media (max-width: 860px){
  .page-hero-grid{ grid-template-columns: 1fr; }
  .page-hero-grid .hero-seal-col{ order:-1; margin-bottom: 12px; }
}
.hero-seal-col{ display:flex; justify-content:center; }
.hero-seal-col img{ width:100%; max-width:300px; height:auto; margin:0 auto; display:block; }

/* Stamp-impact entrance: starts small, lands with an overshoot, settles — like a real stamp hitting paper */
@keyframes stampImpact{
  0%{ opacity:0; transform: scale(0.3) rotate(-10deg); }
  55%{ opacity:1; transform: scale(1.14) rotate(3deg); }
  75%{ transform: scale(0.94) rotate(-1.5deg); }
  100%{ opacity:1; transform: scale(1) rotate(0deg); }
}
.seal-stamp{
  animation: stampImpact 0.9s cubic-bezier(.25,.65,.3,1) both;
  animation-delay: 0.15s;
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce){
  .seal-stamp{ animation: none; opacity: 1; }
}

/* ---------------- Sections ---------------- */
.section{ padding: 88px 0; }
.section-alt{ background: var(--stone-deep); }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.divider{
  width: 64px; height: 2px;
  background: var(--ochre);
  border:none;
  margin: 28px 0;
}
.divider.center{ margin-left:auto; margin-right:auto; }

/* ---------------- Method phases: stamp track ---------------- */
.stamp-track{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  position: sticky;
  top: 76px;
  z-index: 40;
  margin-bottom: 6px;
  padding: 22px 6px 26px;
  background: rgba(237,231,219,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.stamp-item{
  display:flex; flex-direction:column; align-items:center;
  background:none; border:none; cursor:pointer; padding: 0;
  font-family: var(--body); flex: 1; min-width: 0; position: relative;
  transition: opacity .2s ease;
}
.stamp-mark{
  width: 72px; height: 72px; margin-bottom: 10px;
  position: relative; z-index: 1;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.8,.3,1.2), filter .35s ease;
}
.stamp-svg, .stamp-photo{
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity .3s ease;
}
.stamp-svg{ overflow: visible; opacity: 0.3; }
.stamp-photo{ opacity: 0; object-fit: contain; }
.ring-outer{ fill:none; stroke: var(--terracotta); stroke-width: 3.4; }
.ring-inner{ fill:none; stroke: var(--terracotta); stroke-width: 0.9; }
.stamp-num{ font-family: var(--display); font-weight: 600; fill: var(--terracotta); }

.stamp-item.active .stamp-svg{ opacity: 1; }
.stamp-item.done .stamp-svg{ opacity: 0.62; }

.stamp-item:hover{ z-index: 6; }
.stamp-item:hover .stamp-mark{
  transform: scale(1.55);
  filter: drop-shadow(-1px -1px 0.5px rgba(255,255,255,0.65)) drop-shadow(1.5px 2px 2px rgba(42,37,33,0.4));
}
.stamp-item:hover .stamp-svg{ opacity: 0; }
.stamp-item:hover .stamp-photo{ opacity: 1; }

.stamp-title{ font-size: 0.74rem; text-align:center; color: var(--ink-soft); line-height: 1.3; padding: 0 4px; }
.stamp-item.active .stamp-title{ color: var(--ink); font-weight: 700; }
@media (max-width: 760px){
  .stamp-track{ flex-wrap: wrap; row-gap: 34px; }
  .stamp-item{ flex: 0 0 33.333%; }
}

.phase-detail{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 34px 36px;
  margin-top: 26px;
}
.phase-extra{
  display: none;
  background: var(--stone-deep);
  border: 1px solid var(--line);
  border-top: none;
  padding: 34px 36px;
}
.phase-extra.open{ display: block; }
.phase-detail-num{
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--terracotta);
  display:block;
  margin-bottom: 10px;
}
.phase-detail h3{ margin-bottom: 12px; }
.phase-detail p{ margin-bottom: 0; max-width: 62ch; }

@media (max-width: 640px){
}

/* ---------------- Cards ---------------- */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 34px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px){ .grid-3{ grid-template-columns: 1fr; } }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:center;
}
@media (max-width: 860px){ .grid-2{ grid-template-columns: 1fr; } }

/* ---------------- Reviews ---------------- */
.review-card{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px 30px 26px;
  position:relative;
}
.review-stars{ color: var(--ochre); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-quote{ font-family: var(--display); font-size: 1.2rem; font-style: italic; color: var(--ink); line-height:1.45; }
.review-name{
  margin-top: 20px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--taupe);
  font-weight: 600;
}
.review-verified{
  display:inline-flex; align-items:center; gap:6px;
  font-size: 0.72rem; text-transform:uppercase; letter-spacing:0.05em;
  color: var(--terracotta); font-weight:700; margin-top:10px;
}

/* ---------------- Property listings ---------------- */
.listing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
@media (max-width: 900px){ .listing-grid{ grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px){ .listing-grid{ grid-template-columns: 1fr; } }

.listing-card{
  background: none;
  border: none;
}
.listing-photo{
  aspect-ratio: 4/3;
  background: var(--stone-deep);
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
.listing-photo .placeholder-label{
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
}
.listing-stamp{
  position:absolute; top:16px; left:16px;
  width: 56px; height: 56px;
}
.listing-stamp svg{ width:100%; height:100%; overflow: visible; }
.listing-stamp .stamp-ring{ transform-origin: center; transform: rotate(-7deg); }
.listing-stamp .stamp-label{ font-family: var(--body); font-weight:700; letter-spacing:0.01em; fill: var(--terracotta); }
.listing-stamp.venduto .stamp-label{ fill: var(--taupe); }
.listing-body{ padding: 18px 2px 0; border-top: 1px solid var(--line); margin-top: 18px; }
.listing-price{
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.listing-address{ font-weight:600; font-size: 0.95rem; margin-bottom: 8px; color: var(--ink); }
.listing-meta{
  font-size: 0.82rem;
  color: var(--taupe);
  display:flex;
  gap: 14px;
  margin-bottom: 0;
}
.listing-note{
  font-size: 0.72rem;
  color: var(--taupe);
  font-style: italic;
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--stone-deep);
  border-left: 2px solid var(--ochre);
}

/* ---------------- Awards ---------------- */
.award-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px){ .award-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .award-grid{ grid-template-columns: 1fr; } }

.award-card{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0 0 26px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  overflow: hidden;
}
.award-photo{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.award-photo.pos-top{
  object-position: center 15%;
}
.award-card-body{
  padding: 0 26px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.award-medal{
  width: 46px; height:46px;
  flex-shrink:0;
}
.award-year{
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ochre);
}
.award-title{ font-size: 1.05rem; font-weight:600; color: var(--ink); margin: 0; }
.award-issuer{ font-size: 0.82rem; color: var(--taupe); text-transform:uppercase; letter-spacing:0.04em; font-weight:600; }
.award-cat{ font-size: 0.88rem; color: var(--ink-soft); margin:0; }

/* ---------------- Document cards ---------------- */
.doc-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px){ .doc-grid{ grid-template-columns: 1fr; } }

.doc-card{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.doc-icon{
  width: 40px; height:40px;
}
.doc-title{ font-family: var(--display); font-size: 1.3rem; margin: 0; }
.doc-desc{ font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--ink);
  color: var(--stone);
  padding: 56px 0 32px;
}
.site-footer a{ color: var(--stone); text-decoration:none; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr; gap: 30px; } }
.footer-grid h4{ font-family: var(--body); font-size: 0.78rem; text-transform:uppercase; letter-spacing:0.08em; color: var(--ochre); margin-bottom: 16px; font-weight:700;}
.footer-grid p, .footer-grid a{ color: rgba(237,231,219,0.75); font-size: 0.92rem; }
.footer-bottom{
  border-top: 1px solid rgba(237,231,219,0.15);
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(237,231,219,0.5);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}

/* ---------------- Page hero (interior pages) ---------------- */
.page-hero{
  padding: 64px 0 50px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow{ margin-bottom: 0.6em; }

/* ---------------- Utility ---------------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.small{ font-size: 0.88rem; }
.list-check{ list-style:none; margin:0; padding:0; }
.list-check li{
  padding-left: 28px;
  position:relative;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.list-check li::before{
  content:"";
  position:absolute; left:0; top: 8px;
  width: 10px; height: 10px;
  border: 1.5px solid var(--terracotta);
  transform: rotate(45deg);
}
