/* style.css */

:root {
  --bg: #f7f7f5;
  --bg-soft: #fcfbf8;
  --panel: #ffffff;

  --text: #2b2b2b;
  --text-soft: #444444;
  --muted: #6b6b6b;

  --line: #e7e2d7;
  --line-strong: #d8cfbe;

  --brand: #d4af37;
  --brand-light: #e6c76a;
  --brand-dark: #b8962e;
  --brand-soft: #f8f4eb;
  --brand-gradient: linear-gradient(135deg, var(--brand), var(--brand-light));
  --brand-gradient-strong: linear-gradient(135deg, var(--brand), var(--brand-dark));
  --split-gradient: linear-gradient(90deg, #e8c15e 0%, #e3bd5f 42%, #d9c99e 52%, #d7d2ca 100%);
  --surface-gradient: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);

  --accent: #8c8c8c;
  --accent-dark: #5f5f5f;
  --accent-soft: #f1efea;

  --white: #ffffff;
  --black: #1f1f1f;

  --focus: rgba(212, 175, 55, .18);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-lg: 0 20px 50px rgba(43, 43, 43, .10);
  --shadow-md: 0 12px 32px rgba(43, 43, 43, .08);
  --shadow-sm: 0 6px 18px rgba(43, 43, 43, .05);
  --shadow-brand: 0 12px 24px rgba(212, 175, 55, .22);

  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, .08), transparent 28%),
    radial-gradient(circle at left center, rgba(140, 140, 140, .06), transparent 24%),
    linear-gradient(180deg, #fdfcf9 0%, var(--bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a,
button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 18px 24px 24px;
}

/* HERO */
.hero {
  width: min(1540px, calc(100% - 32px));
  min-height: 0;
  height: clamp(430px, 36vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 42px 54px 46px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .14)),
    url("asset/home/sfondo-vero.png") center / cover no-repeat;
  filter: saturate(1.18) contrast(1.06);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .04));
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}

.hero>* {
  position: relative;
  z-index: 1;
}

/* TOPBAR */
.siteTopbarWrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(247, 247, 245, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, .10);
}

.siteTopbar {
  width: min(var(--container), 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.langSwitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.langBtn {
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.langBtn:hover {
  color: var(--text);
  background: #f6f2e7;
}

.langBtn.active {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.loginBtn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}

.loginBtn:hover {
  background: #f8f4eb;
  border-color: var(--line-strong);
}

.userActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.userHello {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* BRAND */
.brandBox {
  display: none;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.brandLogo {
  width: clamp(86px, 10vw, 122px);
  height: clamp(68px, 8vw, 96px);
  border-radius: 0;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  overflow: visible;
}

.brandLogoImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  filter:
    drop-shadow(0 1px 1px rgba(20, 20, 20, .78)) drop-shadow(0 4px 7px rgba(20, 20, 20, .62)) drop-shadow(0 10px 18px rgba(20, 20, 20, .40));
  box-shadow: none;
}

.brandText {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brandName {
  color: #ffc400 !important;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ffc400 !important;
  -webkit-text-stroke: 1.35px rgba(67, 42, 0, .72);
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 1px rgba(0, 0, 0, .72),
    0 5px 10px rgba(0, 0, 0, .62),
    0 14px 28px rgba(0, 0, 0, .42);
}

.brandTag {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.05;
  font-weight: 800;
  text-shadow:
    0 2px 7px rgba(0, 0, 0, .38),
    0 10px 24px rgba(0, 0, 0, .16);
}

/* TABS */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  position: relative;
  z-index: 2;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: rgba(43, 43, 43, .78);
  font-size: 17px;
  font-weight: 800;
  background: rgba(255, 255, 255, .32);
  border: 1px solid rgba(255, 255, 255, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: .18s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, .52);
}

.tab.active {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
  box-shadow: var(--shadow-sm);
}

/* SEARCH CARD */
.searchCard {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  position: relative;
  z-index: 20;
}

.field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field:hover {
  border-color: var(--line-strong);
  background: #fffdfa;
}

.field:focus-within {
  border-color: rgba(212, 175, 55, .42);
  box-shadow: 0 0 0 4px var(--focus);
}

.fieldText {
  flex: 1 1 auto;
}

.fieldSelect {
  position: relative;
  z-index: 30;
}

.fieldIcon {
  flex: 0 0 auto;
  color: #8f8778;
  font-size: 16px;
  user-select: none;
}

.field input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.field input[type="text"]::placeholder {
  color: #928b80;
}

.ctaBtn {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(212, 175, 55, .24);
  transition: .18s ease;
}

.ctaBtn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.ctaBtn:active {
  transform: translateY(0);
}

/* DROPDOWN */
.dropdownBtn {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.dropdownLabel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.dropdownChevron {
  color: #8f8778;
  transition: transform .18s ease;
  flex: 0 0 auto;
}

.dropdownBtn[aria-expanded="true"] .dropdownChevron {
  transform: rotate(180deg);
}

.dropdownPanel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, 92vw);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dropdownPanel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdownHead,
.dropdownFoot {
  padding: 12px 14px;
  background: #fff;
}

.dropdownHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.dropdownTitle {
  font-size: 17px;
  font-weight: 900;
}

.dropdownClose {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: .18s ease;
}

.dropdownClose:hover {
  background: #f6f2e7;
  color: var(--text);
}

.dropdownList {
  max-height: 340px;
  overflow: auto;
  padding: 10px 12px;
}

.dropdownList::-webkit-scrollbar {
  width: 10px;
}

.dropdownList::-webkit-scrollbar-thumb {
  background: #d7cfbf;
  border-radius: 999px;
  border: 2px solid #fff;
}

.checkGroup {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #efe9dd;
}

.checkGroup:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.checkGroupTitle {
  padding: 4px 10px 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #928b80;
}

.checkRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s ease;
}

.checkRow:hover {
  background: #fbf8f1;
}

.checkRowStrong .checkText {
  font-weight: 900;
}

.checkInput {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #d2c8b8;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  background: #fff;
  cursor: pointer;
}

.checkInput:checked {
  background: var(--brand);
  border-color: var(--brand);
}

.checkInput:checked::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.checkText {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.dropdownFoot {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.applyBtn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.applyBtn:hover {
  filter: brightness(1.04);
}

/* QUICK ACTIONS */
.quickActionsSection {
  width: min(var(--container), 100%);
  margin: 14px auto 0;
}

.quickActionsWrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
}

.quickActionCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .18s ease;
}

.quickActionCard:hover {
  transform: translateY(-3px);
}

.quickActionIcon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #e9eef3;
  border: 1px solid rgba(0, 0, 0, .04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  transition: all .18s ease;
}

.quickActionIcon svg {
  width: 42px;
  height: 42px;
  stroke: var(--brand-dark);
}

.quickActionCard:hover .quickActionIcon {
  background: #f5ead0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

.quickActionText {
  font-size: 17px;
  font-weight: 800;
  color: #5f6b76;
  letter-spacing: .04em;
}

/* MOBILE */
@media (max-width: 560px) {
  .quickActionsWrap {
    gap: 20px;
  }

  .quickActionIcon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }

  .quickActionIcon svg {
    width: 28px;
    height: 28px;
  }

  .quickActionText {
    font-size: 15px;
  }
}

/* HIGHLIGHT */
.highlightSection {
  width: min(var(--container), 100%);
  margin: 18px auto 0;
}

.highlightWrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.highlightVideoCard {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, .10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fcfaf4 100%);
  display: flex;
  flex-direction: column;
}

.videoSlider {
  position: relative;
  width: 100%;
}

.videoTrack {
  display: flex;
  width: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

.videoSlide {
  min-width: 100%;
  width: 100%;
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tiktokEmbedWrap {
  width: 100%;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.tiktokEmbedWrap .tiktok-embed {
  width: 325px !important;
  max-width: 325px !important;
  min-width: 280px !important;
  height: 620px !important;
  margin: 0 auto !important;
}

.tiktokEmbedWrap iframe {
  width: 325px !important;
  height: 620px !important;
  max-height: 620px !important;
}

.tiktokLink {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  overflow: hidden;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tiktokLink:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.tiktokLink:hover .tiktokPlayIcon {
  opacity: 1;
}

.tiktokPlayIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 26px;
  opacity: 0;
  transition: opacity .2s ease;
}

.videoNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: .18s ease;
}

.videoNav:hover {
  background: #fff8ea;
  border-color: var(--line-strong);
}

.videoNav--prev {
  left: 8px;
}

.videoNav--next {
  right: 8px;
}

.videoDots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.videoDot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: #d8cfbe;
  cursor: pointer;
  transition: .18s ease;
}

.videoDot.is-active {
  width: 28px;
  background: var(--brand-dark);
}

.highlightStatsRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.statItem {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.statNumber {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -.02em;
}

.statLabel {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

/* ULTIMI ANNUNCI */
.latestSection {
  width: min(var(--container), 100%);
  margin: 26px auto 0;
}

.latestWrap {
  width: 100%;
}

.latestHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.latestHead h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
}

.latestLink {
  text-decoration: none;
  font-weight: 800;
  color: var(--brand-dark);
}

.latestGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.propertyCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.propertyCard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.propertyCard__media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #efebe3;
  flex: 0 0 240px;
}

.propertyCard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.propertyCard__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.propertyCard__price {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.1;
}

.propertyCard__meta {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.propertyCard__label {
  font-weight: 800;
}

.propertyCard__btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, #313131, #585858);
  color: #fff;
  transition: transform .18s ease, opacity .18s ease;
}

.propertyCard__btn:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.latestEmpty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
}

.instagramEmbedWrap {
  width: min(100%, 540px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 24, 30, .08);
}

.instagramEmbedWrap iframe {
  width: 100%;
  height: 720px;
  display: block;
  border: 0;
  background: #fff;
}

/* RECENSIONI GOOGLE */
.googleReviewsSection {
  width: min(var(--container), 100%);
  margin: 36px auto 0;
  padding: 30px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #faf8f3 100%);
  box-shadow: var(--shadow-sm);
}

.googleReviewsHead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 30px 22px;
  text-align: center;
}

.googleReviewsHead>div {
  width: 100%;
}

.googleReviewsHead,
.googleReviewsHead>div,
.googleReviewsEyebrow,
.googleReviewsHead h2 {
  text-align: center !important;
}

.googleReviewsEyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.googleReviewsHead h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
}

.googleReviewsRating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.googleReviewsG {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #4285f4;
  font: 900 27px/1 Arial, sans-serif;
}

.googleReviewsRating>span:last-child {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 7px;
}

.googleReviewsRating strong {
  font-size: 20px;
}

.googleReviewsRating small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.googleReviewsStars,
.googleReviewCard__stars {
  color: #f9ab00;
  letter-spacing: 2px;
}

.googleReviewsMarquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.googleReviewsTrack {
  display: flex;
  width: max-content;
  animation: googleReviewsScroll 38s linear infinite;
}

.googleReviewsMarquee:hover .googleReviewsTrack,
.googleReviewsMarquee:focus-within .googleReviewsTrack {
  animation-play-state: paused;
}

.googleReviewsGroup {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.googleReviewCard {
  width: 310px;
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 31, 23, .06);
  text-align: left !important;
}

.googleReviewCard * {
  text-align: left !important;
}

.googleReviewCard:first-child {
  margin-left: 16px;
}

.googleReviewCard__stars {
  margin-bottom: 12px;
  font-size: 15px;
}

.googleReviewCard strong {
  font-size: 19px;
}

.googleReviewCard p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.googleReviewCard__source {
  margin-top: auto;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.googleReviewsCta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 0;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

@keyframes googleReviewsScroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .googleReviewsTrack {
    animation: none;
  }

  .googleReviewsMarquee {
    overflow-x: auto;
    mask-image: none;
  }

  .googleReviewsGroup[aria-hidden="true"] {
    display: none;
  }
}

/* CTA FINALE */
.finalCtaSection {
  width: min(var(--container), 100%);
  margin: 36px auto 0;
}

.finalCtaWrap {
  background:
    var(--split-gradient);
  border-radius: 28px;
  padding: 42px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.finalCtaWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .26), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(92, 76, 42, .07)),
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, .035) 0,
      rgba(255, 255, 255, .035) 1px,
      transparent 1px,
      transparent 7px);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.finalCtaTitle {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-inline: auto;
}

.finalCtaActions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.finalCtaBtn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}

.finalCtaBtn:hover {
  transform: translateY(-2px);
}

.finalCtaBtn--primary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid #fff;
}

.finalCtaBtn--ghost {
  background: rgba(255, 255, 255, .32);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* FOOTER */
.footer {
  padding: 22px 24px;
}

.footerInner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(43, 43, 43, .08);
  text-align: center;
}

.footerInner p {
  margin: 4px 0;
  color: #6f6a62;
  font-size: 15px;
  line-height: 1.6;
}

.footerInner strong {
  color: var(--text);
  font-weight: 800;
}

.footerCopy {
  color: #918a80;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .page {
    gap: 16px;
    padding: 18px;
  }

  .hero {
    width: 100%;
    height: clamp(380px, 48vw, 480px);
    min-height: 0;
    padding: 24px 18px 28px;
    border-radius: 20px;
  }

  .siteTopbarWrap {
    margin-bottom: 16px;
  }

  .siteTopbar {
    justify-content: center;
    gap: 12px;
  }

  .brand {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .brandText {
    align-items: center;
  }

  .searchCard {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .fieldText,
  .fieldSelect,
  .ctaBtn {
    width: 100%;
    flex: unset;
  }

  .dropdownPanel {
    width: 100%;
    left: 0;
  }

  .highlightVideoCard {
    padding: 22px;
    border-radius: 22px;
  }

  .highlightStatsRow {
    grid-template-columns: 1fr;
  }

  .latestGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .propertyCard__media {
    height: 220px;
    flex-basis: 220px;
  }

  .finalCtaWrap {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .finalCtaActions {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 12px;
    gap: 14px;
  }

  .siteTopbar {
    flex-direction: column;
    gap: 10px;
  }

  .userActions {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    height: auto;
    min-height: auto;
    justify-content: flex-start;
    padding: clamp(238px, 56vw, 312px) 12px 18px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .95) 62%, rgba(255, 255, 255, .95) 100%),
      url("asset/home/sfondo-vero.png") center top / 100% auto no-repeat;
  }

  .brandLogo {
    width: 72px;
    height: 56px;
    flex-basis: auto;
  }

  .brandTag {
    font-size: 18px;
  }

  .tabs {
    gap: 8px;
    margin-bottom: 12px;
  }

  .tab {
    min-height: 40px;
    padding: 0 14px;
    font-size: 16px;
  }

  .field,
  .ctaBtn {
    min-height: 50px;
  }

  .dropdownList {
    max-height: 280px;
  }

  .quickActionsWrap {
    gap: 14px;
  }

  .quickActionIcon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }

  .quickActionIcon svg {
    width: 32px;
    height: 32px;
  }

  .quickActionText {
    font-size: 14px;
  }

  .highlightVideoCard {
    padding: 18px;
    border-radius: 18px;
  }

  .statItem {
    border-radius: 16px;
    padding: 16px;
  }

  .videoNav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .tiktokEmbedWrap .tiktok-embed {
    max-width: 100% !important;
  }

  .instagramEmbedWrap iframe {
    height: 650px;
  }

  .latestGrid {
    grid-template-columns: 1fr;
  }

  .latestHead {
    flex-direction: column;
    align-items: flex-start;
  }

  .propertyCard__media {
    height: 210px;
    flex-basis: 210px;
  }

  .googleReviewsSection {
    margin-top: 28px;
    padding-top: 22px;
    border-radius: 20px;
  }

  .googleReviewsHead {
    align-items: center;
    flex-direction: column;
    padding: 0 18px 18px;
  }

  .googleReviewCard {
    width: min(280px, calc(100vw - 64px));
    min-height: 180px;
  }

  .finalCtaSection {
    margin-top: 28px;
  }

  .finalCtaWrap {
    padding: 24px 14px;
    border-radius: 20px;
  }

  .finalCtaTitle {
    font-size: clamp(26px, 7vw, 34px);
  }

  .finalCtaActions {
    flex-direction: column;
    align-items: stretch;
  }

  .finalCtaBtn {
    width: 100%;
  }

  .footer {
    padding: 18px 14px;
  }

  .footerInner p {
    font-size: 14px;
  }

  .footerCopy {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .tiktokEmbedWrap {
    height: 560px;
  }

  .tiktokEmbedWrap .tiktok-embed,
  .tiktokEmbedWrap iframe {
    width: 280px !important;
    height: 560px !important;
    max-height: 560px !important;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: clamp(214px, 58vw, 244px);
  }

  .tabs {
    width: 100%;
    margin-bottom: 10px;
  }

  .tab {
    flex: 1 1 calc(50% - 4px);
    padding: 0 10px;
  }

  .searchCard {
    padding: 10px;
    gap: 8px;
    border-radius: 18px;
  }

  .field,
  .ctaBtn {
    min-height: 48px;
    border-radius: 12px;
  }

  .quickActionIcon {
    width: 66px;
    height: 66px;
  }

  .propertyCard__media {
    height: 190px;
    flex-basis: 190px;
  }
}

/* =========================
   BOX REFRESH - SERVIZI
   ========================= */
.searchCard,
.highlightVideoCard,
.statItem,
.propertyCard,
.latestEmpty,
.dropdownPanel {
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(18, 24, 30, .07);
}

.searchCard {
  padding: 12px;
}

.field,
.dropdownClose,
.applyBtn,
.propertyCard__btn {
  border-radius: 6px;
}

.quickActionCard {
  min-height: 154px;
  padding: 18px 12px;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(18, 24, 30, .06);
}

.quickActionCard:hover,
.propertyCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(18, 24, 30, .11);
  border-color: #c4cbbf;
}

.quickActionIcon {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: #1f332d;
  border: 0;
  box-shadow: none;
}

.quickActionIcon svg {
  width: 34px;
  height: 34px;
  stroke: var(--brand);
}

.quickActionCard:hover .quickActionIcon {
  background: #31473f;
  box-shadow: none;
}

.quickActionText {
  color: var(--text);
  font-weight: 900;
}

.highlightVideoCard {
  background: #ffffff;
  padding: 24px;
}

.statItem {
  border-left: 6px solid #1f332d;
  border-radius: 8px;
  text-align: center;
}

.propertyCard {
  border-radius: 8px;
}

.propertyCard__btn {
  background: #1f332d;
}

@media (max-width: 560px) {
  .quickActionCard {
    min-height: 132px;
    padding: 14px 10px;
  }

  .quickActionIcon {
    width: 58px;
    height: 58px;
    border-radius: 6px;
  }

  .quickActionIcon svg {
    width: 28px;
    height: 28px;
  }
}

.quickActionCard--pillars .quickActionIcon {
  background: var(--brand-gradient);
}

.quickActionCard--pillars .quickActionIcon svg {
  stroke: #1f332d;
}

.quickActionCard--pillars:hover .quickActionIcon {
  background: var(--brand-gradient-strong);
}

/* Quick actions: icone gialle coerenti con il brand. */
.quickActionCard .quickActionIcon {
  background: var(--brand-gradient);
}

.quickActionCard .quickActionIcon svg {
  stroke: #1f332d;
}

.quickActionCard:hover .quickActionIcon {
  background: var(--brand-gradient-strong);
}

/* L'allineamento viene deciso dai singoli componenti. */
body {
  text-align: center;
}

/* =========================
   SISTEMA TIPOGRAFICO GLOBALE
   ========================= */
@font-face {
  font-family: "Roboto";
  src: url("asset/fonts/roboto/Roboto-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("asset/fonts/roboto/Roboto-Italic-Variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --type-h1: clamp(34px, 4vw, 52px);
  --type-h2: clamp(27px, 2.6vw, 34px);
  --type-h3: clamp(22px, 2vw, 27px);
  --type-h4: 21px;
  --type-body: 20px;
  --type-ui: 19px;
  --type-small: 17px;
  --leading-heading: 1.12;
  --leading-body: 1.65;
}

html,
body,
body *,
body *::before,
body *::after {
  font-family: "Roboto", sans-serif !important;
}

h1 {
  font-size: var(--type-h1) !important;
  line-height: var(--leading-heading) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}

h2 {
  font-size: var(--type-h2) !important;
  line-height: var(--leading-heading) !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
}

h3 {
  font-size: var(--type-h3) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

h4,
h5,
h6 {
  font-size: var(--type-h4) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

p,
li,
blockquote {
  font-size: var(--type-body) !important;
  line-height: var(--leading-body) !important;
}

a,
button,
label,
input,
select,
textarea,
legend,
td,
th,
figcaption {
  font-size: var(--type-ui) !important;
  line-height: 1.45 !important;
}

body span:not([aria-hidden="true"]) {
  font-size: var(--type-ui) !important;
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
  font-size: inherit !important;
}

small,
.googleReviewCard__source,
.teamThumbText small {
  font-size: var(--type-small) !important;
  line-height: 1.45 !important;
}

/* Elementi informativi che richiedono una gerarchia numerica distinta. */
.statNumber {
  font-size: clamp(32px, 4vw, 44px) !important;
  line-height: 1 !important;
}

.propertyCard__price {
  font-size: 24px !important;
  line-height: 1.15 !important;
}

/* Titoli che, per richiesta grafica, devono rimanere su una sola riga. */
.methodMainTitle {
  font-size: clamp(18px, 4vw, 52px) !important;
}

.methodFinalCta h2 {
  font-size: clamp(13px, 2.2vw, 30px) !important;
}

.teamFinalTextLine {
  font-size: clamp(12px, 2.4vw, 34px) !important;
}

@media (max-width: 560px) {
  :root {
    --type-h1: 30px;
    --type-h2: 25px;
    --type-h3: 21px;
    --type-h4: 18px;
    --type-body: 17px;
    --type-ui: 16px;
    --type-small: 14px;
  }
}

/* Correzioni responsive per home e footer. */
@media (max-width: 560px) {
  .page {
    width: 100%;
    padding: 10px;
    overflow: hidden;
  }

  .hero {
    width: 100%;
    min-height: 0;
    height: auto;
    justify-content: flex-end;
    padding: 210px 12px 16px;
    background: linear-gradient(180deg, transparent 0 180px, rgba(250, 248, 242, .92) 210px, #faf8f2 250px),
      url("asset/home/sfondo-vero.png") center top / auto 210px no-repeat;
  }

  .brandBox {
    width: 100%;
  }

  .brand {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .brandText {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }

  .brandName,
  .brandTag {
    text-align: left;
    white-space: normal;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    min-width: 0;
    flex: 1 1 0;
  }

  .searchCard {
    width: 100%;
    box-sizing: border-box;
  }

  .field,
  .dropdownBtn,
  .field input {
    min-width: 0;
    text-align: left;
  }

  .ctaBtn {
    width: 100%;
    min-height: 50px;
  }

  .quickActionsWrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quickActionCard {
    min-width: 0;
    min-height: 126px;
    padding: 14px 8px;
  }

  .quickActionText {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .latestSection,
  .latestWrap,
  .latestGrid {
    min-width: 0;
    width: 100%;
  }

  .propertyCard,
  .propertyCard__body {
    min-width: 0;
  }

  .propertyCard__media {
    height: auto;
    flex-basis: auto;
    aspect-ratio: 16/10;
  }

  .propertyCard__body,
  .propertyCard__body * {
    text-align: left;
  }

  .propertyCard__btn {
    width: 100%;
    text-align: center;
  }

  .finalCtaActions {
    width: 100%;
  }

  .finalCtaBtn {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .footer {
    width: 100%;
    padding: 16px 12px 22px;
  }

  .footerInner {
    width: 100%;
  }

  .footerCompany {
    display: grid;
    gap: 3px;
  }

  .footerCompany span,
  .footerCompany strong {
    display: block;
  }

  .footerLegalLinks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 12px 0;
  }

  .footerLegalLinks a,
  .footerLegalLinks button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
}

@media (max-width:380px) {
  .hero {
    padding-top: 190px;
    background: linear-gradient(180deg, transparent 0 160px, rgba(250, 248, 242, .92) 190px, #faf8f2 230px),
      url("asset/home/sfondo-vero.png") center top / auto 190px no-repeat;
  }
}

/* Sezione Reel Instagram: cornice video compatta e navigazione esterna. */
.instagramSectionHead {
  margin: 0 auto 22px;
  text-align: center;
}

.instagramSectionEyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: 14px !important;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.instagramSectionHead h2 {
  margin: 0;
}

.instagramSectionHead p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 17px !important;
}

.highlightVideoCard .videoSlider {
  width: min(100%, 520px);
  margin: 0 auto;
}

.highlightVideoCard .videoNav--prev {
  left: -58px;
}

.highlightVideoCard .videoNav--next {
  right: -58px;
}

.instagramEmbedWrap {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 9/16;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
}

.instagramEmbedWrap iframe {
  width: 100%;
  height: 760px;
}

.instagramEmbedWrap .cookieMediaPlaceholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 28px 24px;
}

.instagramEmbedWrap .cookieMediaPlaceholder[hidden] {
  display: none !important;
}

.instagramProfileLink {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.instagramProfileLink:hover {
  transform: translateY(-2px);
  border-color: var(--brand-dark);
  background: var(--brand-soft);
}

@media (max-width:650px) {
  .highlightVideoCard .videoSlider {
    width: 100%;
    padding: 0 4px;
  }

  .highlightVideoCard .videoNav {
    top: 50%;
    width: 42px;
    height: 42px;
  }

  .highlightVideoCard .videoNav--prev {
    left: -8px;
  }

  .highlightVideoCard .videoNav--next {
    right: -8px;
  }

  .instagramEmbedWrap {
    width: min(100%, 360px);
    border-radius: 16px;
  }

  .instagramEmbedWrap iframe {
    height: 720px;
  }

  .instagramSectionHead {
    margin-bottom: 16px;
  }

  .instagramSectionHead p {
    font-size: 15px !important;
  }

  .videoDots {
    margin-top: 14px;
  }

  .instagramProfileLink {
    width: 100%;
    margin-top: 14px;
  }
}

/* Hero mobile: titolo grande direttamente sulla fotografia. */
@media (max-width:560px) {
  .hero {
    padding-top: 230px;
    background:
      linear-gradient(180deg, transparent 0 195px, rgba(250,248,242,.92) 230px, #faf8f2 270px),
      url("asset/home/sfondo.png") center top / auto 230px no-repeat;
  }

  .hero .brandBox {
    display: flex;
    position: absolute;
    top: 58px;
    left: 22px;
    right: auto;
    width: auto;
    max-width: calc(100% - 44px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero .brand {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
  }

  .hero .brandLogo {
    display: grid;
    width: 68px;
    height: 36px;
    margin: 0 0 2px 7px;
    place-items: center;
    overflow: visible;
  }

  .hero .brandLogoImg {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.28));
  }

  .hero .brandText { align-items: flex-start; }

  .hero .brandName {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-text-stroke: 0 !important;
    font-size: clamp(30px, 8.7vw, 40px) !important;
    line-height: .95 !important;
    letter-spacing: -.035em;
    white-space: nowrap;
    text-shadow: 0 3px 10px rgba(0,0,0,.62);
  }

  .hero .brandTag {
    margin-top: 8px;
    color: #fff;
    font-size: clamp(15px, 4.4vw, 19px) !important;
    line-height: 1.05 !important;
    font-weight: 900;
    white-space: nowrap;
    text-shadow: 0 2px 7px rgba(0,0,0,.65);
  }
}

@media (max-width:380px) {
  .hero {
    padding-top: 210px;
    background:
      linear-gradient(180deg, transparent 0 175px, rgba(250,248,242,.92) 210px, #faf8f2 250px),
      url("asset/home/sfondo.png") center top / auto 210px no-repeat;
  }
  .hero .brandBox { top: 48px; left: 16px; right: auto; max-width: calc(100% - 32px); }
  .hero .brandLogo { width: 60px; height: 32px; margin-left: 6px; }
  .hero .brandName { font-size: 30px !important; }
  .hero .brandTag { font-size: 15px !important; }
}
