/* VendoCasa app extras — Petronas palette + WOW motion */

.hero-lead {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-lead .hero-bg {
  animation: heroPan 18s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to { transform: scale(1.12) translate3d(-2%, 1%, 0); }
}
.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
  letter-spacing: -0.02em;
  animation: fadeUp .8s ease both;
}
.hero-lead h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  max-width: 16ch;
  animation: fadeUp .9s .1s ease both;
}
.hero-lead h1 em { font-style: italic; color: #E6F7F6; }
.hero-lead h1 strong { color: #fff; }
.hero-sub {
  color: rgba(255,255,255,.85);
  margin: 1rem 0 1.75rem;
  max-width: 40ch;
  animation: fadeUp .9s .2s ease both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .9s .3s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: .9rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .2s;
  box-shadow: 0 8px 24px rgba(0,161,156,.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,122,118,.45);
}
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff !important;
  padding: .9rem 1.4rem;
  border-radius: 8px;
  transition: background .2s, transform .25s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.section { padding: 4rem 0; }
.section-alt { background: var(--surface-alt); }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.why-grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.why-grid article, .listing-card, .post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.listing-card, .post-card { display: block; }
.listing-card:hover, .post-card:hover, .why-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.listing-img {
  height: 140px;
  border-radius: 8px;
  margin-bottom: .75rem;
  transition: transform .5s ease;
}
.listing-card:hover .listing-img { transform: scale(1.04); }
.section-more { margin-top: 1.5rem; }
.section-more a { color: var(--primary-dark); font-weight: 600; }
.cta-band {
  background: linear-gradient(135deg, #007A76, #00A19C);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.18), transparent 50%);
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  from { transform: translateX(-10%) rotate(0deg); }
  to { transform: translateX(10%) rotate(8deg); }
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 1rem; font-family: var(--font-serif); }

.val-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.val-copy { animation: fadeUp .7s ease both; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  color: var(--primary-dark);
  font-weight: 700;
}
.prose .blog-content { margin-top: 1.5rem; line-height: 1.7; }
.prose .blog-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* ===== Articolo stile Dove.it ===== */
.article-page {
  background: linear-gradient(180deg, #E6F7F6 0%, #fff 180px);
  padding-bottom: 2.5rem;
}
.article-shell {
  max-width: 780px;
  padding-top: 2.25rem;
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  align-items: center;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.article-meta a {
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(0,122,118,.25);
}
.article-meta-sep { opacity: .45; }
.article-cover {
  margin: 0 0 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-cover img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.article-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: .88;
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin: 2.1rem 0 .85rem;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 .6rem;
}
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.article-body li { margin: .4rem 0; }
.article-body a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body strong { color: var(--ink); }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
}
.article-mid-cta {
  margin: 2.25rem 0;
}
.article-mid-cta-inner {
  background: linear-gradient(120deg, #0D2B2A, #007A76 55%, #00A19C);
  color: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: .65rem;
  justify-items: start;
}
.article-mid-cta-inner h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}
.article-mid-cta-inner p {
  margin: 0;
  opacity: .92;
  max-width: 42ch;
}
.article-mid-cta-inner .btn-primary {
  background: #fff;
  color: #007A76 !important;
  margin-top: .35rem;
}
.article-share {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-share p {
  font-weight: 700;
  margin: 0 0 .75rem;
}
.article-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.article-share-links a {
  display: inline-flex;
  padding: .5rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.article-share-links a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.article-cta-band {
  margin: 2.5rem 0 0;
  padding: 2.5rem 0;
  background: linear-gradient(120deg, #0D2B2A, #007A76 50%, #00A19C);
  color: #fff;
  text-align: center;
}
.article-cta-band h2 {
  font-family: var(--font-serif);
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.article-cta-band p {
  margin: 0 auto 1.2rem;
  max-width: 42ch;
  opacity: .92;
}
.article-cta-band .btn-primary {
  background: #fff;
  color: #007A76 !important;
}
.article-related {
  padding: 2.75rem 0 1rem;
}
.article-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.article-related h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .85rem;
}
.related-list a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: .85rem;
  align-items: center;
  padding: .35rem;
  border-radius: 12px;
  transition: background .2s;
}
.related-list a:hover { background: var(--primary-soft); }
.related-thumb {
  width: 88px;
  height: 66px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  display: block;
}
.related-thumb-ph { background: linear-gradient(135deg, #007A76, #00A19C); }
.related-text {
  display: grid;
  gap: .2rem;
}
.related-text small {
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.related-text strong {
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 700;
}
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  color: var(--muted);
  font-size: .88rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.article-breadcrumb a { color: var(--primary-dark); font-weight: 600; }

@media (max-width: 800px) {
  .article-related-grid { grid-template-columns: 1fr; gap: 2rem; }
  .article-shell { padding-top: 1.5rem; }
}
.muted { color: var(--muted); }

/* Scroll reveal */
.wow {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.wow.is-visible {
  opacity: 1;
  transform: none;
}
.wow-delay-1 { transition-delay: .08s; }
.wow-delay-2 { transition-delay: .16s; }
.wow-delay-3 { transition-delay: .24s; }

.navbar {
  backdrop-filter: saturate(140%) blur(8px);
  transition: box-shadow .3s, background .3s;
}
.navbar.is-scrolled {
  box-shadow: 0 8px 28px rgba(13,43,42,.1);
}

#avm-widget-container {
  animation: fadeUp .8s .15s ease both;
}

/* ===== Listings Dove.it-like ===== */
.listings-hero {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(180deg, #E6F7F6 0%, #fff 100%);
}
.listings-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: .35rem 0;
}
.listings-count { color: var(--muted); }
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.listings-filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  position: sticky;
  top: 88px;
}
.listings-filters h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.filter-panel label { display: block; margin-bottom: .9rem; font-size: .85rem; font-weight: 600; }
.filter-panel select, .filter-panel input {
  width: 100%; margin-top: .35rem; padding: .65rem .75rem;
  border: 1px solid var(--border); border-radius: 10px; font: inherit;
}
.filter-reset { display: inline-block; margin-top: .75rem; color: var(--muted); font-size: .9rem; }

.listing-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform .3s, box-shadow .3s;
}
.listing-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing-row-media {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 180px;
  background: #E6F7F6;
}
.listing-row-media img, .listing-ph, .detail-main {
  width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block;
}
.listing-ph { background: linear-gradient(135deg, #007A76, #00A19C); min-height: 180px; }
.badge-premium {
  position: absolute; top: 12px; left: 12px;
  background: #0D2B2A; color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3rem .55rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.listing-row-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.listing-row-top h2 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.listing-row-top h2 a:hover { color: var(--primary-dark); }
.listing-price { font-size: 1.35rem; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.listing-place { color: var(--muted); margin: .4rem 0; }
.listing-desc { color: var(--ink); opacity: .85; margin: .4rem 0 .8rem; }
.listing-specs { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.listing-specs li {
  background: var(--primary-soft); color: var(--ink);
  padding: .35rem .65rem; border-radius: 999px; font-size: .85rem;
}
.listing-cta {
  display: inline-block; font-weight: 700; color: var(--primary-dark);
  border-bottom: 2px solid var(--primary); padding-bottom: 2px;
}
.detail-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; margin-top: 1rem; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--primary-dark); margin: .75rem 0; }
.detail-side { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.breadcrumb a { color: var(--primary-dark); }
.empty-listings { padding: 2rem; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.listings-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.25rem 0;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(120deg, #0D2B2A, #007A76 55%, #00A19C);
  color: #fff;
}
.listings-inline-cta h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.listings-inline-cta p { margin: 0; opacity: .9; font-size: .95rem; }
.listings-inline-cta .btn-primary {
  background: #fff;
  color: #007A76 !important;
  white-space: nowrap;
}
.paginator { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pag-btn {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); color: var(--ink); font-weight: 600;
}
.pag-btn.active, .pag-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Blog / Guide / News — Dove.it horizontal ===== */
.blog-hero {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(180deg, #E6F7F6 0%, #fff 100%);
}
.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  margin: .35rem 0 0;
  max-width: 36ch;
  line-height: 1.2;
}
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.cat-chip {
  display: inline-block;
  padding: .45rem .95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.cat-chip:hover { border-color: var(--primary); color: var(--ink); }
.cat-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-row:first-child { padding-top: 0; }
.blog-row-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 160px;
  background: #E6F7F6;
}
.blog-row-media img,
.blog-row-ph {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.blog-row:hover .blog-row-media img { transform: scale(1.04); }
.blog-row-ph { background: linear-gradient(135deg, #007A76, #00A19C); }
.blog-row-cat {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary-dark);
  margin: 0 0 .4rem;
}
.blog-row-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.3;
  margin: 0 0 .45rem;
}
.blog-row-body h2 a:hover { color: var(--primary-dark); }
.blog-row-date {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 .65rem;
}
.blog-row-excerpt {
  margin: 0;
  color: var(--ink);
  opacity: .85;
  line-height: 1.55;
  max-width: 62ch;
}
.blog-inline-cta { margin: 1.25rem 0; }
@media (max-width: 760px) {
  .blog-row { grid-template-columns: 1fr; gap: .9rem; }
  .blog-row-media img, .blog-row-ph { min-height: 180px; }
}

@media (max-width: 900px) {
  .val-layout { grid-template-columns: 1fr; }
  .hero-lead { min-height: 78vh; }
  .listings-layout, .listing-row, .detail-layout { grid-template-columns: 1fr; }
  .listings-filters { position: static; }
}

/* ===== Perché VendoCasa — WOW ===== */
.why-wow {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  background: #0D2B2A;
  color: #fff;
}
.why-wow-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% 20%, rgba(0,161,156,.45), transparent 60%),
    radial-gradient(700px 380px at 90% 80%, rgba(51,181,176,.28), transparent 55%),
    linear-gradient(160deg, #0D2B2A 0%, #063836 55%, #0D2B2A 100%);
  animation: whyGlow 10s ease-in-out infinite alternate;
}
@keyframes whyGlow {
  from { transform: scale(1) translate(0,0); }
  to { transform: scale(1.06) translate(-1%, 1%); }
}
.why-wow-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: center;
}
.why-wow-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin: .4rem 0 1rem;
  letter-spacing: -.02em;
}
.why-wow-intro h2 em {
  font-style: italic;
  background: linear-gradient(120deg, #E6F7F6, #33B5B0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-wow .eyebrow { color: #33B5B0; }
.why-wow-lead {
  color: rgba(255,255,255,.78);
  max-width: 36ch;
  margin: 0 0 1.5rem;
  line-height: 1.55;
  font-size: 1.05rem;
}
.why-wow-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.why-wow-item {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,1,.36,1), background .3s, border-color .3s, box-shadow .4s;
}
.why-wow-item::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(circle, rgba(0,161,156,.35), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
}
.why-wow-item:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(0,161,156,.16);
  border-color: rgba(0,161,156,.45);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.why-wow-item:hover::before { opacity: 1; }
.why-wow-icon {
  width: 48px;
  height: 48px;
  color: #33B5B0;
  margin-bottom: .75rem;
  animation: whyIconFloat 4s ease-in-out infinite;
}
.why-wow-item:nth-child(2) .why-wow-icon { animation-delay: .4s; }
.why-wow-item:nth-child(3) .why-wow-icon { animation-delay: .8s; }
.why-wow-item:nth-child(4) .why-wow-icon { animation-delay: 1.2s; }
@keyframes whyIconFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.why-wow-num {
  position: absolute;
  top: .85rem;
  right: 1rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255,255,255,.12);
  letter-spacing: -.02em;
  transition: color .3s, transform .3s;
}
.why-wow-item:hover .why-wow-num {
  color: rgba(51,181,176,.55);
  transform: scale(1.08);
}
.why-wow-item h3 {
  margin: 0 0 .45rem;
  font-size: 1.15rem;
  position: relative;
}
.why-wow-item p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.5;
  position: relative;
}

/* ===== Featured carousel ===== */
.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.carousel-nav { display: flex; gap: .5rem; }
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.carousel-btn:disabled {
  opacity: .35;
  cursor: default;
}
.feat-carousel { position: relative; }
.feat-viewport {
  overflow: hidden;
  margin: 0 -.4rem;
  padding: .4rem;
}
.feat-track {
  display: flex;
  gap: 1.1rem;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.feat-slide {
  flex: 0 0 calc((100% - 3.3rem) / 4);
  min-width: 0;
  margin: 0;
}
.feat-img { height: 160px; }
.feat-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: .2rem .5rem;
  border-radius: 999px;
  margin-bottom: .4rem;
}
.feat-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.15rem;
}
.feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(13,43,42,.2);
  cursor: pointer;
  padding: 0;
  transition: width .25s, background .25s;
}
.feat-dot.active {
  width: 22px;
  background: var(--primary);
}

@media (max-width: 1100px) {
  .feat-slide { flex-basis: calc((100% - 2.2rem) / 3); }
}
@media (max-width: 800px) {
  .why-wow-inner { grid-template-columns: 1fr; gap: 2rem; }
  .feat-slide { flex-basis: calc((100% - 1.1rem) / 2); }
}
@media (max-width: 560px) {
  .why-wow-stage { grid-template-columns: 1fr; }
  .feat-slide { flex-basis: 100%; }
  .featured-head { align-items: center; }
}

/* ===== Auth login / registrati ===== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(800px 360px at 10% 0%, rgba(0,161,156,.18), transparent 55%),
    radial-gradient(700px 320px at 100% 100%, rgba(0,122,118,.12), transparent 50%),
    linear-gradient(180deg, #E6F7F6 0%, #fff 45%, #F4FBFA 100%);
}
.auth-panel {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 18px 50px rgba(13, 43, 42, 0.1);
}
.auth-panel h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: .25rem 0 .5rem;
  letter-spacing: -.02em;
}
.auth-sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.45;
  font-size: .95rem;
}
.auth-error {
  background: #fdecec;
  color: #a12828;
  border: 1px solid #f3c4c4;
  border-radius: 10px;
  padding: .75rem .9rem;
  margin: 0 0 1rem;
  font-size: .9rem;
  font-weight: 600;
}
.auth-form {
  display: grid;
  gap: 1rem;
}
.auth-field {
  display: grid;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
}
.auth-field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: .8rem;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(0,161,156,.25);
  border-radius: 12px;
  padding: .85rem 1rem;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input::placeholder {
  color: #8aa3a1;
  font-weight: 400;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,161,156,.14);
}
.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: .35rem;
  text-align: center;
  font: inherit;
}
.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}
.auth-switch a {
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(0,122,118,.3);
}
.auth-switch a:hover { border-bottom-color: var(--primary-dark); }

.ext-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.ext-filter label {
  display: grid;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 700;
}
.ext-filter input {
  min-width: 220px;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

/* Annunci esterni: Mitula non cliccabile; Idealista sì (per-row) */
.ext-list--no-click,
.ext-list--no-click a,
.ext-row--no-click,
.ext-row--no-click a,
.feat-carousel--no-click,
.feat-carousel--no-click a.feat-slide {
  pointer-events: none;
  cursor: default;
}
.ext-list--no-click a,
.ext-row--no-click a,
.feat-carousel--no-click a.feat-slide,
a.feat-slide--no-click {
  text-decoration: none;
}
a.feat-slide--no-click {
  pointer-events: none;
  cursor: default;
}

.ext-removed-note {
  margin: .5rem 0 .75rem;
  padding: .65rem .8rem;
  background: #fff8f0;
  border-left: 3px solid #c47a2c;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.45;
}
.ext-mq-price {
  margin: -.35rem 0 .75rem;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 600;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .9rem;
}
.breadcrumb-list li:not(:last-child)::after {
  content: '·';
  margin-left: .5rem;
  color: var(--muted);
}
.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list [aria-current="page"] { color: var(--ink); }
.ext-prose {
  margin-top: 2.5rem;
  max-width: 68ch;
}
.ext-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 1.75rem 0 .65rem;
}
.ext-prose p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.ext-lead-box {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(160deg, var(--primary-soft), #fff 70%);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ext-lead-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .25rem;
}
.ext-lead-sub {
  margin: 0 0 .85rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.4;
}
.ext-interest-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .65rem;
}
.ext-interest-form input[type="text"],
.ext-interest-form input[type="email"] {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.ext-consent {
  display: flex !important;
  align-items: flex-start;
  gap: .5rem;
  font-weight: 500 !important;
  line-height: 1.35;
}
.ext-consent input { margin-top: .2rem; }
.ext-form-msg { margin: .65rem 0 0; font-size: .88rem; }
.ext-form-msg--ok { color: var(--primary-dark); }
.ext-form-msg--err { color: #b42318; }
.ext-detail .ext-outbound { margin-top: .75rem; }

.btn-ghost-ink {
  display: inline-block;
  margin-top: .75rem;
  border: 1px solid var(--border);
  color: var(--ink) !important;
  padding: .75rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost-ink:hover {
  border-color: var(--primary);
  color: var(--primary-dark) !important;
  background: var(--primary-soft);
}
.ext-detail .ext-outbound {
  display: inline-block;
  margin-top: 1rem;
}
.ext-outbound-note,
.ext-disclaimer {
  margin-top: .85rem;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--muted);
}
.ext-disclaimer { margin-top: 1rem; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
}
.cookie-banner--in {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner--out {
  opacity: 0;
  transform: translateY(16px);
}
.cookie-banner__inner {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  background:
    linear-gradient(135deg, rgba(230,247,246,.97) 0%, rgba(255,255,255,.98) 55%),
    #fff;
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 -8px 40px rgba(13,43,42,.12);
}
.cookie-banner__copy {
  flex: 1;
  min-width: 0;
}
.cookie-banner__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.cookie-banner__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-banner__text a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 700;
  padding: .7rem 1.05rem;
  border-radius: 8px;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.cookie-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,161,156,.28);
}
.cookie-btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.cookie-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.cookie-btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}
@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

.page-hero--compact {
  padding: 3.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%);
}
.page-hero--compact h1 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0 0 .5rem;
}
.page-hero--compact .lead {
  color: var(--muted);
  margin: 0;
  max-width: 48ch;
}
.legal-prose {
  max-width: 68ch;
}
.legal-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2rem 0 .75rem;
}
.legal-prose p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.legal-prose code {
  font-size: .85em;
  background: var(--primary-soft);
  color: var(--ink);
  padding: .1em .35em;
  border-radius: 4px;
}
.legal-updated {
  font-size: .85rem;
  opacity: .8;
  margin-top: 2rem !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .wow { opacity: 1; transform: none; }
  .feat-track { transition: none !important; }
  .cookie-banner,
  .cookie-banner--in,
  .cookie-banner--out {
    transition: none !important;
    transform: none !important;
  }
}
