/* ═══════════════════════════════════════════
   TEMPIOCASA — pages.css
   Page-specific layout styles
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   HERO — aggiornato per tempio_notte.webp
   Effetti: ken-burns lento, overlay verde/dorato,
   vignette cinematica, testo con reveal animato,
   particelle luminose, linea decorativa dorata
══════════════════════════════════════════════════════ */


.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* ── Background: tempio_notte con ken-burns lento ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/tempio_notte.webp') center 17% / cover no-repeat;
  transform: scale(1.08);
  animation: heroBgKenBurns 18s ease-out forwards;
  will-change: transform;
}

@keyframes heroBgKenBurns {
  0%   { transform: scale(1.08) translateY(0px); }
  100% { transform: scale(1.0)  translateY(-12px); }
}

/* ── Overlay leggero — lascia respirare la foto notturna ── */
.hero-overlay {
  position: absolute;
  inset: 0;
}

/* Layer 1: vignette laterale ridotta — solo bordi scuri */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 90% at 50% 55%,
    transparent 0%,
    rgba(10, 18, 10, .22) 65%,
    rgba(8,  14,  8, .52) 100%
  );
}

/* Layer 2: gradiente verticale leggero — scuro solo in basso per leggibilità testo */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 20, 12, .96)  0%,
    rgba(14, 22, 14, .60)  25%,
    rgba(10, 18, 10, .18)  55%,
    rgba(0,  0,  0,  .08) 100%
  );
}

/* ── Linea decorativa orizzontale dorata ── */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(184, 149, 58, .0) 15%,
    rgba(184, 149, 58, .9) 40%,
    rgba(212, 174, 90, 1)  50%,
    rgba(184, 149, 58, .9) 60%,
    rgba(184, 149, 58, .0) 85%,
    transparent 100%
  );
  z-index: 3;
  animation: goldLineReveal 2.4s cubic-bezier(.4,0,.2,1) 1.2s both;
}

@keyframes goldLineReveal {
  from { opacity: 0; transform: scaleX(.3); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* ── Particelle lucciole: SVG inline come data-uri ──
   Punti irregolari con animazione flicker asincrona
   Molto più visibili di background-image radial-gradient 1px ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: particlesFadeIn 2s ease 2.2s forwards;
}

.hero-particles span {
  position: absolute;
  border-radius: 50%;
  animation: flicker linear infinite;
}

/* Oro — luci dorate (finestre/lampioni nella foto) */
.hero-particles span:nth-child(1)  { width:3px;height:3px;background:rgba(212,174,90,.85);top:18%;left:12%;animation-duration:3.1s;animation-delay:0s; }
.hero-particles span:nth-child(2)  { width:2px;height:2px;background:rgba(255,220,130,.70);top:22%;left:28%;animation-duration:4.2s;animation-delay:.6s; }
.hero-particles span:nth-child(3)  { width:4px;height:4px;background:rgba(212,174,90,.90);top:15%;left:42%;animation-duration:2.8s;animation-delay:1.1s; }
.hero-particles span:nth-child(4)  { width:2px;height:2px;background:rgba(255,230,150,.65);top:28%;left:58%;animation-duration:5.0s;animation-delay:.3s; }
.hero-particles span:nth-child(5)  { width:3px;height:3px;background:rgba(212,174,90,.80);top:20%;left:72%;animation-duration:3.6s;animation-delay:1.8s; }
.hero-particles span:nth-child(6)  { width:2px;height:2px;background:rgba(255,200,80,.60); top:32%;left:85%;animation-duration:4.5s;animation-delay:.9s; }
.hero-particles span:nth-child(7)  { width:5px;height:5px;background:rgba(212,174,90,.75);top:12%;left:55%;animation-duration:3.3s;animation-delay:2.2s; }
.hero-particles span:nth-child(8)  { width:2px;height:2px;background:rgba(255,240,170,.55);top:35%;left:22%;animation-duration:6.0s;animation-delay:.2s; }
/* Bianchi — stelle e luci fredde */
.hero-particles span:nth-child(9)  { width:2px;height:2px;background:rgba(255,255,255,.50);top:8%; left:8%; animation-duration:4.8s;animation-delay:1.4s; }
.hero-particles span:nth-child(10) { width:1px;height:1px;background:rgba(255,255,255,.70);top:10%;left:35%;animation-duration:3.9s;animation-delay:.7s; }
.hero-particles span:nth-child(11) { width:2px;height:2px;background:rgba(255,255,255,.45);top:6%; left:62%;animation-duration:5.2s;animation-delay:1.9s; }
.hero-particles span:nth-child(12) { width:1px;height:1px;background:rgba(200,220,255,.65);top:14%;left:78%;animation-duration:4.1s;animation-delay:.5s; }
.hero-particles span:nth-child(13) { width:2px;height:2px;background:rgba(255,255,255,.40);top:25%;left:90%;animation-duration:3.7s;animation-delay:2.5s; }
.hero-particles span:nth-child(14) { width:1px;height:1px;background:rgba(200,230,255,.55);top:5%; left:48%;animation-duration:6.5s;animation-delay:.1s; }
/* Grandi — effetto flare luminoso */
.hero-particles span:nth-child(15) { width:6px;height:6px;background:rgba(212,174,90,.30);top:17%;left:20%;animation-duration:7.0s;animation-delay:3s;   filter:blur(2px); }
.hero-particles span:nth-child(16) { width:8px;height:8px;background:rgba(255,200,100,.20);top:22%;left:65%;animation-duration:8.0s;animation-delay:2.1s; filter:blur(3px); }
.hero-particles span:nth-child(17) { width:5px;height:5px;background:rgba(212,174,90,.25);top:10%;left:40%;animation-duration:6.2s;animation-delay:1.3s; filter:blur(2px); }
.hero-particles span:nth-child(18) { width:7px;height:7px;background:rgba(255,240,180,.18);top:30%;left:80%;animation-duration:9.0s;animation-delay:4s;   filter:blur(3px); }

@keyframes flicker {
  0%,100% { opacity: 1;    transform: scale(1);   }
  20%      { opacity: .3;  transform: scale(.7);  }
  40%      { opacity: .9;  transform: scale(1.1); }
  60%      { opacity: .5;  transform: scale(.85); }
  80%      { opacity: .95; transform: scale(1);   }
}

@keyframes particlesFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Contenuto ── */
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-9);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  align-items: flex-end;
}

/* ── Eyebrow: riga sottile dorata con reveal ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: eyebrowReveal .7s cubic-bezier(.4,0,.2,1) .5s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--c-gold);
  animation: lineGrow .6s cubic-bezier(.4,0,.2,1) .7s forwards;
}

@keyframes eyebrowReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 28px; }
}

/* ── Titolo: reveal a parole con clip-path ── */
.hero-headline {
  color: var(--c-white);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: headlineReveal .9s cubic-bezier(.22,1,.36,1) .85s forwards;
  text-shadow: 0 4px 32px rgba(0,0,0,.45);
}

.hero-headline em {
  color: var(--c-gold-pale);
  font-style: italic;
  display: block;
  opacity: 0;
  animation: headlineReveal .9s cubic-bezier(.22,1,.36,1) 1.1s forwards;
}

@keyframes headlineReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Sottotitolo ── */
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.58);
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: var(--space-7);
  font-weight: 300;
  opacity: 0;
  animation: fadeSlideUp .8s cubic-bezier(.4,0,.2,1) 1.35s forwards;
}

/* ── CTA buttons ── */
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp .7s cubic-bezier(.4,0,.2,1) 1.55s forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stat numbers con stagger ── */
.hero-stats {
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: var(--space-7);
  opacity: 0;
  animation: fadeSlideUp .8s cubic-bezier(.4,0,.2,1) 1.7s forwards;
}

.hero-stat {
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }

/* Accent line sinistra al hover */
.hero-stat::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-7) - 1px);
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 0;
  background: var(--c-gold);
  transition: height .3s ease, transform .3s ease;
}
.hero-stat:hover::before {
  height: 70%;
  transform: translateY(-50%) scaleY(1);
}

.hero-stat-n {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--c-gold);
  line-height: 1;
  display: block;
  transition: color .2s ease;
}
.hero-stat:hover .hero-stat-n { color: var(--c-gold-lt); }

.hero-stat-l {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.32);
  margin-top: 4px;
  display: block;
}

/* ── Scroll indicator ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  animation: fadeSlideUp .6s ease 2.5s forwards;
}
.hero-scroll-hint span {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}
.hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 11px;
  position: relative;
}
.hero-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--c-gold);
  border-radius: 2px;
  animation: mouseScroll 2s ease-in-out infinite 3s;
}
@keyframes mouseScroll {
  0%   { top: 5px;  opacity: 1; }
  60%  { top: 17px; opacity: .4; }
  100% { top: 5px;  opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
  .hero-stat { border-bottom: none; padding: 0; }
  .hero-stat::before { display: none; }
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: center 10%;
  }
  .hero-scroll-hint { display: none; }
}



/* ═══ HOME — STRIP ═══ */
.strip {
  background: var(--c-forest);
  border-top: 1px solid rgba(255,255,255,.06);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.strip-item {
  padding: var(--space-7) var(--space-7);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  border-right: 1px solid rgba(255,255,255,.08);
}
.strip-item:last-child { border-right: none; }
.strip-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.strip-item h2 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: var(--space-2);
  font-weight: 400;
}
.strip-item p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(255,255,255,.70);
}
@media (max-width: 768px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: var(--space-6) var(--space-5); }
  .strip-item:last-child { border-bottom: none; }
}

/* ═══ HOME — IN EVIDENZA ═══ */
.evidenza-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.filter-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--c-stone);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.filter-tab {
  background: none;
  border: none;
  border-right: 1px solid var(--c-stone);
  padding: 10px 22px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-dust);
  transition: all var(--t-fast);
}
.filter-tab:last-child { border-right: none; }
.filter-tab:hover { background: var(--c-warm); color: var(--c-forest); }
.filter-tab.active { background: var(--c-forest); color: #fff; }

/* ═══ HOME — SERVICES ═══ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-warm);
}
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: end;
  margin-bottom: var(--space-8);
}
.services-intro p {
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--c-dust);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { grid-template-columns: 1fr; gap: var(--space-5); }
  .service-card { border-right: none; }
}

/* ═══ HOME — PERCHÉ / SPLIT ═══ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.split-image {
  position: relative;
  overflow: hidden;
}
.split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55) saturate(.85);
}
.split-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--c-ink));
}
.split-image-logo {
  position: absolute;
  bottom: 32px;
  left: 32px;
  opacity: .45;
}
.split-image-logo img {
  height: 52px;
  mix-blend-mode: screen;
  filter: brightness(2.5) saturate(1.6);
  position: relative;
}
.split-content {
  background: var(--c-ink);
  padding: var(--space-10) var(--space-9);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-content h2 { color: #fff; margin-bottom: var(--space-4); }
.split-content h2 em { color: var(--c-gold-pale); }
.split-content > p {
  font-size: var(--text-sm);
  line-height: 1.9;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--space-8);
  font-weight: 300;
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.value-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: var(--space-5) var(--space-4);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.value-card:hover {
  border-color: rgba(90,145,120,.4);
  background: rgba(255,255,255,.07);
}
.value-card-icon { font-size: 1.2rem; margin-bottom: var(--space-3); }
.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #fff;
  margin-bottom: var(--space-2);
  font-weight: 400;
}
.value-card p { font-size: .77rem; line-height: 1.72; color: rgba(255,255,255,.70); }
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .split-image { min-height: 280px; position: relative; }
  .split-image img { position: absolute; }
  .split-image-overlay { background: linear-gradient(to bottom, transparent 50%, var(--c-ink)); }
  .split-content { padding: var(--space-8) var(--px); }
}

/* ═══ HOME — CTA BAND ═══ */
.cta-band {
  background: linear-gradient(135deg, var(--c-pine) 0%, var(--c-forest) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-9) 0;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/tempio_sfondo.webp') center/cover no-repeat;
  opacity: .06;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band h2 em { color: var(--c-gold-pale); }
.cta-band p { font-size: var(--text-base); color: rgba(255,255,255,.6); max-width: 500px; line-height: 1.8; }
@media (max-width: 768px) {
  .cta-band-inner { grid-template-columns: 1fr; }
}

/* ═══ IMMOBILI PAGE — LAYOUT ═══ */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.listings-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.results-count {
  font-size: var(--text-sm);
  color: var(--c-dust);
}
.view-toggle { display: flex; gap: var(--space-1); }
.view-btn {
  background: none;
  border: 1px solid var(--c-stone);
  padding: 7px 12px;
  font-size: var(--text-sm);
  color: var(--c-dust);
  transition: all var(--t-fast);
}
.view-btn.active { background: var(--c-forest); border-color: var(--c-forest); color: #fff; }
.listings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.listings-grid.list-view { grid-template-columns: 1fr; }
.listings-grid.list-view .prop-card { flex-direction: row; }
.listings-grid.list-view .prop-card-img { width: 240px; height: auto; flex-shrink: 0; }
@media (max-width: 1100px) {
  .listings-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}
@media (max-width: 600px) {
  .listings-grid, .listings-grid.list-view { grid-template-columns: 1fr; }
  .listings-grid.list-view .prop-card { flex-direction: column; }
  .listings-grid.list-view .prop-card-img { width: 100%; height: 220px; }
}

/* ═══ SCHEDA IMMOBILE ═══ */
.scheda-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-7);
  align-items: start;
}
.scheda-gallery {}
.gallery-main {
  height: 480px;
  overflow: hidden;
  background: var(--c-warm);
  margin-bottom: var(--space-2);
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--t-base);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.gallery-thumb {
  height: 72px;
  overflow: hidden;
  background: var(--c-warm);
  cursor: pointer;
  opacity: .6;
  transition: opacity var(--t-fast);
  border: 2px solid transparent;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--c-forest);
}
.scheda-info {}
.scheda-price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--c-forest);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.scheda-price small {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--c-dust);
  font-weight: 400;
}
.scheda-loc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.70);
  margin-bottom: var(--space-5);
  display: flex; align-items: center; gap: 4px;
}
.scheda-feats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  background: var(--c-warm);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.scheda-feat { display: flex; gap: var(--space-3); align-items: center; }
.scheda-feat-icon { font-size: 1.1rem; color: var(--c-forest); }
.scheda-feat small {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-dust);
}
.scheda-feat span { font-size: var(--text-sm); font-weight: 600; color: var(--c-ink); }
.scheda-sidebar-box {
  background: var(--c-white);
  border: 1px solid rgba(200,191,176,.45);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.sidebar-box-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--c-forest);
  margin-bottom: var(--space-5);
  font-weight: 400;
}
.sidebar-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.sidebar-actions .btn { justify-content: center; }
.mutuo-box {
  background: var(--c-warm);
  border: 1px solid rgba(200,191,176,.45);
  padding: var(--space-5);
  margin-top: var(--space-4);
}
.mutuo-box h5 { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-dust); margin-bottom: var(--space-3); }
.mutuo-row { display: flex; gap: var(--space-2); align-items: center; }
.mutuo-result { font-size: var(--text-sm); color: var(--c-forest); font-weight: 600; margin-top: var(--space-2); }
@media (max-width: 1100px) {
  .scheda-layout { grid-template-columns: 1fr; }
  .scheda-sidebar-box { position: static; }
  .gallery-main { height: 320px; }
}

/* ═══ CHI SIAMO ═══ */
.about-hero {
  background: var(--c-forest);
  padding: calc(var(--nav-h) + 72px) 0 72px;
  position: relative;
  overflow: hidden;
}
.about-hero-wm {
  position: absolute;
  right: -60px;
  bottom: -60px;
  font-family: var(--font-serif);
  font-size: 16rem;
  color: rgba(255,255,255,.025);
  letter-spacing: -8px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  display: block;
  border: 1px solid var(--c-stone);
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--c-stone);
  z-index: -1;
}
.about-nums {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-7) 0;
}
.about-num {
  padding: var(--space-5);
  background: var(--c-warm);
  border-left: 3px solid var(--c-forest);
}
.about-num-n {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--c-forest);
  line-height: 1;
}
.about-num-l {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-dust);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap::after { display: none; }
}

/* ═══ VALUTAZIONE PAGE ═══ */
.val-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-7);
  align-items: start;
}
.val-form-box {
  background: var(--c-white);
  border: 1px solid rgba(200,191,176,.45);
  padding: var(--space-8);
}
.val-steps-bar {
  display: flex;
  margin-bottom: var(--space-7);
}
.val-step-indicator {
  flex: 1;
  text-align: center;
  padding: var(--space-3) var(--space-2);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-stone);
  border-bottom: 2px solid var(--c-warm);
  transition: all var(--t-base);
}
.val-step-indicator.active { color: var(--c-forest); border-color: var(--c-forest); }
.val-step-indicator.done   { color: var(--c-sage);   border-color: var(--c-sage); }
.val-step-panel { display: none; }
.val-step-panel.active { display: block; animation: fadeInUp .4s var(--ease) both; }
.val-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.val-type-option {
  border: 1.5px solid var(--c-stone);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  border-radius: var(--r-sm);
}
.val-type-option:hover, .val-type-option.selected {
  border-color: var(--c-forest);
  background: rgba(27,58,45,.04);
}
.val-type-icon { font-size: 1.8rem; margin-bottom: var(--space-2); }
.val-type-option h5 { font-size: var(--text-sm); font-weight: 600; color: var(--c-forest); }
.val-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-warm);
}
.val-info-sidebar {
  background: var(--c-forest);
  padding: var(--space-8) var(--space-7);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  color: #fff;
}
.val-info-sidebar h3 {
  font-size: 1.6rem;
  color: var(--c-gold-pale);
  margin-bottom: var(--space-3);
}
.val-info-sidebar > p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}
.val-promise {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
}
.val-promise-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.val-promise h5 { font-size: var(--text-sm); color: #fff; margin-bottom: 3px; font-weight: 600; }
.val-promise p { font-size: .77rem; color: rgba(255,255,255,.5); line-height: 1.7; }
@media (max-width: 1100px) {
  .val-layout { grid-template-columns: 1fr; }
  .val-info-sidebar { position: static; }
}
@media (max-width: 768px) {
  .val-form-box { padding: var(--space-5); }
  .val-type-grid { grid-template-columns: 1fr; }
  .val-info-sidebar { padding: var(--space-6) var(--space-4); }
  .val-steps-bar { overflow-x: auto; }
}

/* ═══ BLOG PAGE ═══ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-7);
  align-items: start;
}
.blog-featured-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.blog-list-item {
  display: flex;
  gap: var(--space-5);
  background: var(--c-white);
  border: 1px solid rgba(200,191,176,.45);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: box-shadow var(--t-base);
  cursor: pointer;
}
.blog-list-item:hover { box-shadow: var(--shadow-sm); }
.blog-list-img {
  width: 160px;
  flex-shrink: 0;
  overflow: hidden;
}
.blog-list-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-list-body { padding: var(--space-5); }
.blog-list-body .blog-card-cat { display: block; margin-bottom: var(--space-2); }
.blog-list-body h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.blog-list-body p { font-size: var(--text-sm); color: var(--c-dust); line-height: 1.72; }
.blog-sidebar-widget {
  background: var(--c-white);
  border: 1px solid rgba(200,191,176,.45);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.blog-sidebar-widget h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--c-forest);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--c-warm);
  font-weight: 400;
}
.recent-post {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-warm);
  cursor: pointer;
}
.recent-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.recent-post-img {
  width: 56px; height: 56px;
  overflow: hidden;
  flex-shrink: 0;
}
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-post h5 { font-size: var(--text-sm); font-weight: 500; color: var(--c-ink); line-height: 1.35; margin-bottom: 3px; }
.recent-post small { font-size: .62rem; color: var(--c-stone); }
.cat-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-cloud a {
  font-size: .65rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--c-warm);
  color: var(--c-dust);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.cat-cloud a:hover { background: var(--c-forest); color: #fff; }
@media (max-width: 1000px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-featured-pair { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-list-item { flex-direction: column; }
  .blog-list-img { width: 100%; height: 180px; }
}

/* ═══ CONTATTI PAGE ═══ */
.contatti-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}
.contatti-form-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--c-forest);
  margin-bottom: var(--space-3);
}
.contatti-form-sub {
  font-size: var(--text-sm);
  color: var(--c-dust);
  margin-bottom: var(--space-7);
  line-height: 1.8;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.contatti-info h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--c-forest);
  margin-bottom: var(--space-2);
  font-weight: 400;
}
.contatti-info-sub {
  font-size: var(--text-sm);
  color: var(--c-dust);
  margin-bottom: var(--space-7);
  line-height: 1.8;
}
.map-box {
  background: var(--c-warm);
  height: 220px;
  border: 1px solid var(--c-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--c-dust);
  margin-top: var(--space-6);
  cursor: pointer;
  transition: background var(--t-fast);
}
.map-box:hover { background: var(--c-stone); }
@media (max-width: 900px) {
  .contatti-layout { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ═══ MOBILE GLOBAL IMPROVEMENTS ═══ */
@media (max-width: 768px) {
  /* Listings results head: sort + toggle su riga separata */
  .listings-results-head { gap: var(--space-2); }
  .sort-select, .map-btn { font-size: var(--text-xs); }

  /* Hero strip (home) spacing */
  .hero-stat-n { font-size: 2rem; }

  /* About nums */
  .about-nums { grid-template-columns: 1fr 1fr; }

  /* Scheda gallery thumbs */
  .gallery-main { height: 240px; }
  .gallery-thumb { height: 54px; }

  /* Blog list item image */
  .blog-list-img { width: 120px; }
}

@media (max-width: 480px) {
  /* Single column filter chips on tiny screens */
  .filter-chips { gap: 6px; }
  .filter-chip { font-size: .62rem; padding: 7px 10px; }

  /* Pagination: smaller buttons */
  .page-btn { width: 32px; height: 32px; font-size: .75rem; }

  /* About nums stacked */
  .about-nums { grid-template-columns: 1fr; }

  /* Value grid in split section */
  .value-grid { grid-template-columns: 1fr; }
}
