/*
 * NextCasa – Single agenzia (layout 1:1 mockup HTML v9).
 * Caricato solo su is_singular('houzez_agency') da inc/assets.php.
 */

/* --------------------------------------------------------------------------
 * Reset locale equivalente a quello globale del mockup
 * (`*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }`),
 * limitato alle sezioni della scheda agenzia per non toccare header, footer,
 * dashboard Houzez e contenuti editoriali del resto del sito.
 * -------------------------------------------------------------------------- */
body.nextcasa-ui .nc-agency-hero,
body.nextcasa-ui .nc-stats-bar-wrap,
body.nextcasa-ui .nc-agency-content,
body.nextcasa-ui .nc-agency-hero *,
body.nextcasa-ui .nc-stats-bar-wrap *,
body.nextcasa-ui .nc-agency-content *,
body.nextcasa-ui .nc-agency-hero *::before,
body.nextcasa-ui .nc-stats-bar-wrap *::before,
body.nextcasa-ui .nc-agency-content *::before,
body.nextcasa-ui .nc-agency-hero *::after,
body.nextcasa-ui .nc-stats-bar-wrap *::after,
body.nextcasa-ui .nc-agency-content *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.nextcasa-ui .nc-agency-hero,
body.nextcasa-ui .nc-stats-bar-wrap,
body.nextcasa-ui .nc-agency-content {
  line-height: 1.6;
}

body.nextcasa-ui .nc-agency-hero img,
body.nextcasa-ui .nc-agency-content img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* Reset dei button, presente nel mockup come regola globale. */
body.nextcasa-ui .nc-agency-tab-link,
body.nextcasa-ui .nc-form-submit,
body.nextcasa-ui .nc-prop-card-fav {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}



body.nextcasa-ui .nc-agency-hero {
  position: relative;
  padding: 30px 0 60px;
  /* Il velo blu resta sempre; la foto arriva da ACF come inline style. */
  background-color: var(--nc-blue-deeper);
  background-image: linear-gradient(135deg, rgba(0,29,64,0.95) 0%, rgba(0,61,130,0.88) 60%, rgba(0,61,130,0.7) 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}


body.nextcasa-ui .nc-agency-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,168,37,0.18) 0%, transparent 60%);
  pointer-events: none;
}


body.nextcasa-ui .nc-agency-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  position: relative;
}


body.nextcasa-ui .nc-agency-breadcrumb a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color var(--nc-transition);
}


body.nextcasa-ui .nc-agency-breadcrumb a:hover { color: var(--nc-gold); }


body.nextcasa-ui .nc-agency-breadcrumb .sep { color: rgba(255,255,255,0.4); }


body.nextcasa-ui .nc-agency-breadcrumb [aria-current="page"] { color: var(--nc-gold); font-weight: 600; }


body.nextcasa-ui .nc-agency-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: center;
}


@media (max-width: 768px) {

  body.nextcasa-ui .nc-agency-hero-content { grid-template-columns: 100px 1fr; gap: 20px; }


}


@media (max-width: 600px) {

  body.nextcasa-ui .nc-agency-hero-content { grid-template-columns: 1fr; gap: 18px; text-align: center; }


}


body.nextcasa-ui .nc-agency-logo {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  padding: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  position: relative;
}


body.nextcasa-ui .nc-agency-logo::before {
  content: '';
  position: absolute; inset: -4px;
  border: 2px solid var(--nc-gold);
  border-radius: 50%;
  opacity: 0.6;
}


body.nextcasa-ui .nc-agency-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


body.nextcasa-ui .nc-agency-logo-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nc-gold) 0%, var(--nc-gold-light) 100%);
  color: var(--nc-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; font-weight: 800;
  letter-spacing: -0.02em;
}


@media (max-width: 768px) {
 body.nextcasa-ui .nc-agency-logo { width: 100px; height: 100px; }
 body.nextcasa-ui .nc-agency-logo-placeholder { font-size: 2.5rem; }
 
}


@media (max-width: 600px) {
 body.nextcasa-ui .nc-agency-logo { margin: 0 auto; }
 
}


body.nextcasa-ui .nc-agency-info-block { min-width: 0; }


body.nextcasa-ui .nc-agency-info-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(249,168,37,0.18);
  border: 1px solid rgba(249,168,37,0.4);
  color: var(--nc-gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}


body.nextcasa-ui .nc-agency-info-tag svg { width: 12px; height: 12px; }


body.nextcasa-ui .nc-agency-info-block h1 {
  color: inherit;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}


body.nextcasa-ui .nc-agency-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}


body.nextcasa-ui .nc-agency-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


body.nextcasa-ui .nc-agency-meta-item svg { width: 14px; height: 14px; color: var(--nc-gold); flex-shrink: 0; }


body.nextcasa-ui .nc-agency-rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


body.nextcasa-ui .nc-agency-rating-inline .nc-stars {
  color: var(--nc-gold);
  font-size: 15px;
  letter-spacing: 1px;
}


body.nextcasa-ui .nc-agency-rating-inline strong { font-weight: 800; }


body.nextcasa-ui .nc-agency-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


@media (max-width: 600px) {
 body.nextcasa-ui .nc-agency-hero-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
 
}


body.nextcasa-ui .nc-agency-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--nc-transition);
  white-space: nowrap;
}


body.nextcasa-ui .nc-agency-hero-btn.is-primary {
  background: var(--nc-gold);
  color: var(--nc-blue);
  box-shadow: 0 4px 14px rgba(249,168,37,0.3);
}


body.nextcasa-ui .nc-agency-hero-btn.is-primary:hover {
  background: var(--nc-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,168,37,0.4);
}


body.nextcasa-ui .nc-agency-hero-btn.is-ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}


body.nextcasa-ui .nc-agency-hero-btn.is-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
}


body.nextcasa-ui .nc-agency-hero-btn svg { width: 14px; height: 14px; }


body.nextcasa-ui .nc-stats-bar-wrap {
  margin-top: -36px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}


body.nextcasa-ui .nc-stats-bar {
  max-width: var(--nc-container);
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: var(--nc-shadow-strong);
  padding: 22px 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
body.nextcasa-ui .nc-stat-text { min-width: 0; }
body.nextcasa-ui .nc-stat-text strong { overflow-wrap: anywhere; }


@media (max-width: 768px) {
 body.nextcasa-ui .nc-stats-bar { grid-template-columns: repeat(2, 1fr); padding: 20px 24px; }
 
}


@media (max-width: 480px) {
 body.nextcasa-ui .nc-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 20px; gap: 16px; }
}

/* Su schermi molto stretti "Recensioni verificate" non entra in mezza colonna:
   le voci passano in colonna singola invece di sfondare la barra. */
@media (max-width: 360px) {
 body.nextcasa-ui .nc-stats-bar { grid-template-columns: minmax(0, 1fr); }
 body.nextcasa-ui .nc-stat-item:not(:last-child)::after { display: none; }
}


body.nextcasa-ui .nc-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}


body.nextcasa-ui .nc-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--nc-border-soft);
}


@media (max-width: 768px) {

  body.nextcasa-ui .nc-stat-item:nth-child(2)::after { display: none; }


}


@media (max-width: 480px) {

  body.nextcasa-ui .nc-stat-item::after { display: none; }


}


body.nextcasa-ui .nc-stat-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--nc-light-blue);
  color: var(--nc-blue);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}


body.nextcasa-ui .nc-stat-icon svg { width: 22px; height: 22px; }


body.nextcasa-ui .nc-stat-text strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nc-text);
  line-height: 1;
  margin-bottom: 4px;
}


body.nextcasa-ui .nc-stat-text span {
  font-size: 12px;
  color: var(--nc-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


body.nextcasa-ui .nc-agency-content {
  padding: 60px 0 80px;
}


body.nextcasa-ui .nc-content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}


@media (max-width: 1024px) {

  body.nextcasa-ui .nc-content-layout { grid-template-columns: 1fr; }


}


body.nextcasa-ui .nc-about-section {
  background: white;
  border: 1px solid var(--nc-border-soft);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--nc-shadow);
}


body.nextcasa-ui .nc-about-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


body.nextcasa-ui .nc-about-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--nc-blue) 0%, var(--nc-gold) 100%);
  border-radius: 2px;
}


body.nextcasa-ui .nc-agency-description {
  color: var(--nc-text-secondary);
  line-height: 1.7;
  font-size: 15px;
}


body.nextcasa-ui .nc-agency-description p { margin-bottom: 14px; }


body.nextcasa-ui .nc-agency-description p:last-child { margin-bottom: 0; }


body.nextcasa-ui .nc-agency-description strong { color: var(--nc-text); font-weight: 700; }


body.nextcasa-ui .nc-agency-description h3 {
  color: var(--nc-blue);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}


body.nextcasa-ui .nc-agency-description ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}


body.nextcasa-ui .nc-agency-description ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
}


body.nextcasa-ui .nc-agency-description ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f9a825' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}


body.nextcasa-ui .nc-agency-tabs-wrap {
  background: white;
  border: 1px solid var(--nc-border-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--nc-shadow);
}


body.nextcasa-ui .nc-agency-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--nc-border-soft);
  background: var(--nc-bg-alt);
  list-style: none;
}


body.nextcasa-ui .nc-agency-tabs-nav li { flex: 1; }


body.nextcasa-ui .nc-agency-tab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nc-text-secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all var(--nc-transition);
  width: 100%;
}


body.nextcasa-ui .nc-agency-tab-link:hover {
  color: var(--nc-blue);
  background: rgba(255,255,255,0.5);
}


body.nextcasa-ui .nc-agency-tab-link.is-active {
  color: var(--nc-blue);
  background: white;
  border-bottom-color: var(--nc-gold);
}


body.nextcasa-ui .nc-agency-tab-link svg { width: 16px; height: 16px; }


body.nextcasa-ui .nc-tab-badge {
  background: var(--nc-light-blue);
  color: var(--nc-blue);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}


body.nextcasa-ui .nc-agency-tab-link.is-active .nc-tab-badge { background: var(--nc-gold); color: var(--nc-blue); }


body.nextcasa-ui .nc-tab-content { display: none; padding: 28px; }


body.nextcasa-ui .nc-tab-content.is-active { display: block; animation: nc-fade-in 0.4s ease; }


@keyframes nc-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


body.nextcasa-ui .nc-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}


body.nextcasa-ui .nc-prop-card {
  background: white;
  border: 1px solid var(--nc-border-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--nc-transition);
}


body.nextcasa-ui .nc-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nc-shadow-card);
  border-color: transparent;
}


body.nextcasa-ui .nc-prop-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}


body.nextcasa-ui .nc-prop-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}


body.nextcasa-ui .nc-prop-card:hover .nc-prop-card-img img { transform: scale(1.06); }


body.nextcasa-ui .nc-prop-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--nc-blue);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


body.nextcasa-ui .nc-prop-card-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nc-text-muted);
  cursor: pointer;
  transition: all var(--nc-transition);
}


body.nextcasa-ui .nc-prop-card-fav:hover { color: #dc2626; background: white; transform: scale(1.1); }


body.nextcasa-ui .nc-prop-card-fav svg { width: 16px; height: 16px; }


body.nextcasa-ui .nc-prop-card-info { padding: 16px; }


body.nextcasa-ui .nc-prop-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--nc-blue);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}


body.nextcasa-ui .nc-prop-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--nc-text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


body.nextcasa-ui .nc-prop-card-loc {
  font-size: 12px;
  color: var(--nc-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}


body.nextcasa-ui .nc-prop-card-loc svg { width: 12px; height: 12px; }


body.nextcasa-ui .nc-prop-card-meta {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--nc-border-soft);
  font-size: 12px;
  color: var(--nc-text-secondary);
}


body.nextcasa-ui .nc-prop-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


body.nextcasa-ui .nc-prop-card-meta svg { width: 13px; height: 13px; opacity: 0.7; }


body.nextcasa-ui .nc-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}


body.nextcasa-ui .nc-agent-card {
  background: white;
  border: 1px solid var(--nc-border-soft);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all var(--nc-transition);
}


body.nextcasa-ui .nc-agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nc-shadow-card);
  border-color: transparent;
}


body.nextcasa-ui .nc-agent-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nc-blue) 0%, var(--nc-blue-dark) 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}


body.nextcasa-ui .nc-agent-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }


body.nextcasa-ui .nc-agent-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}


body.nextcasa-ui .nc-agent-role {
  font-size: 12px;
  color: var(--nc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 14px;
}


body.nextcasa-ui .nc-agent-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}


body.nextcasa-ui .nc-agent-action {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nc-bg-alt);
  color: var(--nc-blue);
  border-radius: 10px;
  transition: all var(--nc-transition);
}


body.nextcasa-ui .nc-agent-action:hover { background: var(--nc-blue); color: white; transform: translateY(-2px); }


body.nextcasa-ui .nc-agent-action svg { width: 14px; height: 14px; }


body.nextcasa-ui .nc-reviews-summary-card {
  background: linear-gradient(135deg, var(--nc-gold) 0%, var(--nc-gold-light) 100%);
  color: var(--nc-blue);
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 24px;
  text-align: center;
}


body.nextcasa-ui .nc-reviews-summary-rating {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}


body.nextcasa-ui .nc-reviews-summary-stars {
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin: 8px 0;
}


body.nextcasa-ui .nc-reviews-summary-text {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}


body.nextcasa-ui .nc-review-list { display: flex; flex-direction: column; gap: 16px; }


body.nextcasa-ui .nc-review-item {
  background: var(--nc-bg-alt);
  border-radius: 14px;
  padding: 22px;
}


body.nextcasa-ui .nc-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}


body.nextcasa-ui .nc-review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nc-blue) 0%, var(--nc-blue-dark) 100%);
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


body.nextcasa-ui .nc-review-name { font-size: 14px; font-weight: 700; color: var(--nc-text); }


body.nextcasa-ui .nc-review-date { font-size: 12px; color: var(--nc-text-muted); }


body.nextcasa-ui .nc-review-stars { color: var(--nc-gold); font-size: 14px; letter-spacing: 1px; margin-left: auto; }


body.nextcasa-ui .nc-review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--nc-text-secondary);
  font-style: italic;
}


body.nextcasa-ui .nc-agency-sidebar {
  position: sticky;
  top: calc(var(--nc-header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}


@media (max-width: 1024px) {
 body.nextcasa-ui .nc-agency-sidebar { position: static; }
 
}


body.nextcasa-ui .nc-side-widget {
  background: white;
  border: 1px solid var(--nc-border-soft);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--nc-shadow);
}


body.nextcasa-ui .nc-side-widget h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nc-blue);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nc-gold);
  width: 100%;
}


body.nextcasa-ui .nc-side-widget h3 svg { width: 16px; height: 16px; }


body.nextcasa-ui .nc-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


body.nextcasa-ui .nc-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}


body.nextcasa-ui .nc-contact-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--nc-light-blue);
  color: var(--nc-blue);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


body.nextcasa-ui .nc-contact-icon svg { width: 16px; height: 16px; }


body.nextcasa-ui .nc-contact-row { flex: 1; min-width: 0; }


body.nextcasa-ui .nc-contact-row strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nc-text-muted);
  margin-bottom: 2px;
}


body.nextcasa-ui .nc-contact-row a,
body.nextcasa-ui .nc-contact-row span {
  font-size: 13px;
  color: var(--nc-text);
  font-weight: 500;
  word-break: break-word;
}


body.nextcasa-ui .nc-contact-row a {
  color: var(--nc-blue);
  font-weight: 600;
  transition: color var(--nc-transition);
}


body.nextcasa-ui .nc-contact-row a:hover { color: var(--nc-gold); }


body.nextcasa-ui .nc-agency-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--nc-border-soft);
}


body.nextcasa-ui .nc-social-icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nc-bg-alt);
  color: var(--nc-blue);
  border-radius: 10px;
  transition: all var(--nc-transition);
}


body.nextcasa-ui .nc-social-icon:hover { background: var(--nc-blue); color: white; transform: translateY(-2px); }


body.nextcasa-ui .nc-social-icon svg { width: 14px; height: 14px; }


body.nextcasa-ui .nc-hours-list { list-style: none; }


body.nextcasa-ui .nc-hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--nc-border-soft);
}


body.nextcasa-ui .nc-hours-list li:last-child { border-bottom: none; }


body.nextcasa-ui .nc-hours-list li.is-today {
  background: var(--nc-sky);
  margin: 0 -10px;
  padding: 10px;
  border-radius: 8px;
}


body.nextcasa-ui .nc-hours-list li.is-today::after {
  content: 'Oggi';
  display: inline-block;
  background: var(--nc-blue);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  margin-left: 6px;
}


body.nextcasa-ui .nc-hours-day { font-size: 13px; font-weight: 700; color: var(--nc-text); }


body.nextcasa-ui .nc-hours-time { font-size: 12px; color: var(--nc-text-secondary); text-align: right; line-height: 1.4; }


body.nextcasa-ui .nc-hours-time.is-closed { color: #dc2626; font-weight: 700; }


body.nextcasa-ui .nc-form-widget input,
body.nextcasa-ui .nc-form-widget select,
body.nextcasa-ui .nc-form-widget textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--nc-border);
  border-radius: 10px;
  font-family: inherit; font-size: 13px;
  background: white;
  color: var(--nc-text);
  transition: all var(--nc-transition);
  margin-bottom: 10px;
}


body.nextcasa-ui .nc-form-widget input:focus,
body.nextcasa-ui .nc-form-widget select:focus,
body.nextcasa-ui .nc-form-widget textarea:focus {
  outline: none;
  border-color: var(--nc-blue);
  box-shadow: 0 0 0 3px rgba(0,61,130,0.08);
}


body.nextcasa-ui .nc-form-widget textarea { resize: vertical; min-height: 80px; }


body.nextcasa-ui .nc-form-submit {
  width: 100%;
  padding: 12px;
  background: var(--nc-blue);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--nc-transition);
}


body.nextcasa-ui .nc-form-submit:hover { background: var(--nc-blue-dark); transform: translateY(-1px); }


body.nextcasa-ui .nc-form-submit svg { width: 14px; height: 14px; }


body.nextcasa-ui .nc-form-privacy {
  font-size: 11px;
  color: var(--nc-text-muted);
  margin-top: 8px;
  text-align: center;
}


body.nextcasa-ui .nc-form-privacy a { color: var(--nc-blue); text-decoration: underline; }


body.nextcasa-ui .nc-reviews-widget {
  background: linear-gradient(135deg, var(--nc-blue) 0%, var(--nc-blue-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}


body.nextcasa-ui .nc-reviews-widget::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(249,168,37,0.2) 0%, transparent 70%);
}


body.nextcasa-ui .nc-reviews-widget h3 {
  color: white;
  border-bottom-color: var(--nc-gold);
}


body.nextcasa-ui .nc-reviews-widget-rating {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--nc-gold);
  margin-bottom: 6px;
  position: relative;
}


body.nextcasa-ui .nc-reviews-widget-stars {
  color: var(--nc-gold);
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
  position: relative;
}


body.nextcasa-ui .nc-reviews-widget-count {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 14px;
  position: relative;
}


body.nextcasa-ui .nc-reviews-widget-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--nc-gold);
  color: var(--nc-blue);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  transition: all var(--nc-transition);
}


body.nextcasa-ui .nc-reviews-widget-link:hover { background: var(--nc-gold-light); transform: translateY(-2px); }


/* --------------------------------------------------------------------------
 * Integrazioni NextCasa: elementi presenti nel mockup come stili inline,
 * più gli stati dinamici che il mockup statico non prevedeva.
 * -------------------------------------------------------------------------- */

body.nextcasa-ui .nc-agency-rating-count { opacity: 0.85; }


body.nextcasa-ui .nc-agency-hero .nc-breadcrumbs,
body.nextcasa-ui .nc-agency-hero .nc-agency-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); }

body.nextcasa-ui .nc-agency-hero .nc-breadcrumbs a { color: rgba(255,255,255,0.85); font-weight: 500; }

body.nextcasa-ui .nc-agency-hero .nc-breadcrumbs a:hover { color: var(--nc-gold); }


body.nextcasa-ui .nc-agency-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }


/* Solo il link che avvolge la foto riempie il riquadro: il cuore dei preferiti
   è dentro lo stesso contenitore e, prendendo il 100% con il suo bordo tondo,
   disegnava un ovale bianco sopra l'immagine. */
body.nextcasa-ui .nc-prop-card-img > a:not(.nc-prop-card-fav) { display: block; width: 100%; height: 100%; }

body.nextcasa-ui .nc-prop-card-badge.is-rent { background: #16a34a; }

body.nextcasa-ui .nc-prop-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--nc-bg-alt); color: var(--nc-text-muted);
}

body.nextcasa-ui .nc-prop-card-placeholder svg { width: 34px; height: 34px; }

body.nextcasa-ui .nc-prop-card-title a { color: inherit; }

body.nextcasa-ui .nc-prop-card:hover .nc-prop-card-title a { color: var(--nc-blue); }


body.nextcasa-ui .nc-agent-card h3 a { color: inherit; }

body.nextcasa-ui .nc-agent-card h3 a:hover { color: var(--nc-blue); }

body.nextcasa-ui .nc-agent-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--nc-light-blue); color: var(--nc-blue);
  font-weight: 800; font-size: 26px; letter-spacing: 0.02em;
}


body.nextcasa-ui .nc-tab-more { text-align: center; margin-top: 32px; }

body.nextcasa-ui .nc-tab-more a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--nc-blue); color: #fff;
  border-radius: 10px; font-weight: 700; font-size: 14px;
  transition: all var(--nc-transition);
}

body.nextcasa-ui .nc-tab-more a:hover { background: var(--nc-blue-dark); }

body.nextcasa-ui .nc-tab-more a svg { width: 14px; height: 14px; }


body.nextcasa-ui .nc-tab-empty {
  margin: 0; padding: 34px 22px;
  border: 1px dashed var(--nc-border);
  border-radius: var(--nc-radius);
  background: var(--nc-bg-alt);
  color: var(--nc-text-secondary);
  text-align: center; font-size: 14px;
}


body.nextcasa-ui .nc-form-notice {
  margin: 0 0 16px; padding: 12px 14px;
  border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.5;
}

body.nextcasa-ui .nc-form-notice.is-ok { background: #e7f7ee; color: #10633c; border: 1px solid #b7e4cb; }

body.nextcasa-ui .nc-form-notice.is-error { background: #fdeceb; color: #8f2019; border: 1px solid #f5c2be; }


body.nextcasa-ui .nc-hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


body.nextcasa-ui .nc-tab-content[hidden] { display: none; }


@media (prefers-reduced-motion: reduce) {

  body.nextcasa-ui .nc-tab-content.is-active { animation: none; }

  body.nextcasa-ui .nc-prop-card,
body.nextcasa-ui .nc-agent-card,
body.nextcasa-ui .nc-agency-hero-btn,
body.nextcasa-ui .nc-tab-more a { transition: none; }

  body.nextcasa-ui .nc-prop-card:hover,
body.nextcasa-ui .nc-agent-card:hover { transform: none; }


}


/* --------------------------------------------------------------------------
 * Allineamento al box model del mockup.
 * Il mockup usa .container con max-width 1280px E padding interno 24px,
 * mentre .nc-container del tema è larga 1280px senza padding: senza questa
 * correzione la colonna centrale risulterebbe 48px più larga e la griglia
 * annunci passerebbe da due a tre colonne.
 * -------------------------------------------------------------------------- */

body.nextcasa-ui .nc-agency-hero > .nc-container,
body.nextcasa-ui .nc-agency-content > .nc-container {
  width: min(100%, var(--nc-container));
  /* il reset locale azzera i margini: qui va riaffermato il centraggio */
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 768px) {
  body.nextcasa-ui .nc-agency-hero > .nc-container,
    body.nextcasa-ui .nc-agency-content > .nc-container {
    padding-inline: 16px;
  }
}

/* Le intestazioni della scheda usano l'interlinea del mockup (1.6), non quella
   compatta che main.css applica globalmente a h1-h4. */
body.nextcasa-ui .nc-agency-info-block h1,
body.nextcasa-ui .nc-about-section h2,
body.nextcasa-ui .nc-agency-description h3,
body.nextcasa-ui .nc-side-widget h3,
body.nextcasa-ui .nc-agent-card h3,
body.nextcasa-ui .nc-prop-card-title {
  line-height: 1.6;
}

body.nextcasa-ui .nc-agency-info-block h1 { line-height: 1.1; }
body.nextcasa-ui .nc-prop-card-title { line-height: 1.4; }

/* main.css applica `font: inherit` ai button e con esso eredita anche
   l'interlinea 1.6: nel mockup i button restano a `line-height: normal`. */
body.nextcasa-ui .nc-agency-tab-link,
body.nextcasa-ui .nc-agency-tab-link .nc-tab-badge,
body.nextcasa-ui .nc-form-submit,
body.nextcasa-ui .nc-prop-card-fav {
  line-height: normal;
}

/* --------------------------------------------------------------------------
 * Patch mobile del mockup v9, riportate qui perché nel file sorgente vivono
 * in un blocco globale condiviso da tutte le pagine.
 * -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  /* Il mockup ha min-width:auto sugli elementi della griglia e a 390px
     produce 459px di larghezza, cioè scroll orizzontale. Il design non
     cambia, ma la pagina smette di scorrere in orizzontale. */
  body.nextcasa-ui .nc-agency-main,
  body.nextcasa-ui .nc-agency-sidebar {
    min-width: 0;
  }

  body.nextcasa-ui .nc-agency-content { padding: 32px 0; }

  body.nextcasa-ui .nc-about-section,
  body.nextcasa-ui .nc-agency-tabs-wrap,
  body.nextcasa-ui .nc-side-widget,
  body.nextcasa-ui .nc-prop-card,
  body.nextcasa-ui .nc-agent-card,
  body.nextcasa-ui .nc-review-item {
    border-radius: 18px;
  }

  body.nextcasa-ui .nc-agency-info-block h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    letter-spacing: -0.02em;
  }

  body.nextcasa-ui .nc-agency-hero-btn,
  body.nextcasa-ui .nc-form-submit {
    padding: 14px 22px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* 16px evita lo zoom automatico dei campi su iOS. */
  body.nextcasa-ui .nc-form-widget input,
  body.nextcasa-ui .nc-form-widget textarea,
  body.nextcasa-ui .nc-form-widget select {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 12px;
  }

  /* Aree di tocco da 44px sui comandi compatti. */
  body.nextcasa-ui .nc-agent-action,
  body.nextcasa-ui .nc-social-icon,
  body.nextcasa-ui .nc-prop-card-fav {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  body.nextcasa-ui .nc-agency-hero,
  body.nextcasa-ui .nc-agency-content {
    font-size: 15px;
    line-height: 1.55;
  }

  body.nextcasa-ui .nc-agency-info-block h1,
  body.nextcasa-ui .nc-about-section h2,
  body.nextcasa-ui .nc-agency-description h3,
  body.nextcasa-ui .nc-agency-description p,
  body.nextcasa-ui .nc-prop-card-title,
  body.nextcasa-ui .nc-review-text {
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  body.nextcasa-ui .nc-prop-card:hover,
  body.nextcasa-ui .nc-agent-card:hover,
  body.nextcasa-ui .nc-agency-hero-btn:hover {
    transform: none;
  }

  body.nextcasa-ui .nc-prop-card:active,
  body.nextcasa-ui .nc-agent-card:active,
  body.nextcasa-ui .nc-agency-tab-link:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }
}

/* Su schermi stretti le tre tab non entrano nella riga: nel mockup la terza
   viene tagliata dall'overflow hidden del contenitore. Qui la barra diventa
   scorrevole in orizzontale, così "Recensioni" resta sempre raggiungibile. */
@media (max-width: 640px) {
  body.nextcasa-ui .nc-agency-tabs-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  body.nextcasa-ui .nc-agency-tabs-nav::-webkit-scrollbar { display: none; }

  body.nextcasa-ui .nc-agency-tabs-nav li {
    flex: 1 0 auto;
    scroll-snap-align: start;
  }

  body.nextcasa-ui .nc-agency-tab-link {
    padding: 16px 14px;
    gap: 6px;
    white-space: nowrap;
  }
}
