body {
  margin: 0;
  font-family: "Josefin Sans", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: white !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1rem 2rem;
  background-color: #fff !important;
  border-bottom: 1px solid #e4e4e4;
  height: 120px;
}

.logo img {
  height: 50px;
  width: 50px;
  transform: scale(2.5);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(120deg, #6a11cb, #2575fc);
  color: white;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: white;
  color: #2575fc;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #f1f1f1;
}

.houses {
  padding: 4rem 2rem;
  text-align: center;
}

.houses h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.house-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.house-card {
  background: #fff;
  border-radius: 12px;
  /*padding: 1.5rem;*/
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.2s;
  position: relative;
  max-width: 350px;
}

.top-card {
  position: relative;
  width: 100%;
  max-height: 250px;
}

.house-image {
  width: 100%;
  height: 240px;     
  background-size: 100%;
  will-change: transform, background-size;
  background-position: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: all .3s ease;
  max-height: 240px;
}

.house-card:hover {
  transform: scale(1.01);
  transition: all .3s ease;
}

.top-card:hover > .house-image {
  transform: scale(1.01);
  transition: all .3s ease;
  cursor: pointer;
}

.house-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.btn-small {
  display: inline-block;
  margin-top: 1rem;
  background: #2575fc;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-small:hover {
  background: #1256c3;
}

.for-sale {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  text-transform: uppercase;
  padding: 8px;
  background-color: rgb(0, 0, 0, 0.2);
  border-radius: 8px;
  font-weight: bold;
  color: white;
  font-size: 12px;
  transition: all .3s ease;
  letter-spacing: .8px;
  cursor: pointer;
}

.for-sale:hover {
  transition: all .1s ease;
  background-color: #ed2027;
}

.top-card:hover > .house-image::after {
  opacity: 1;
}

.house-image::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .502);
    opacity: 0;
    transition: all .3s ease;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.body-card {
  padding: 15px;
}

.home-title {
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 22px;
  font-weight: bold;
  transition: all .3s ease;
}

.home-title:hover {
  cursor: pointer;
  color: #ed2027 !important;
  transition: all .3s ease;
}

.home-location {
  display: flex;
  align-items: center;
  align-content: center;
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-top: 10px;
  flex-wrap: wrap;
}

.home-location > span {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-infos {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
}

.home-infos > * {
  margin-right: 20px;
  font-size: 18px;
}

.swiper {
  width: 100%;
  height: 60vh;
}

.swiper-slide {
  width: 50%;
  text-align: center;
  font-size: 18px;
  background: #ffffff;
  display: flex;
}

.slide-bg {
  width: 100%;       /* larghezza desiderata */
  height: 60vh;      /* altezza desiderata */
  background-size: cover;     /* l'immagine riempie il div */
  background-position: center; /* centrata */
}

.swiper-button-prev, .swiper-button-next {
    width: 60px;
    height: 60px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e4e4e4;
    background-color: #fff;
    border-radius: 8px;
    transition: all .3s ease;
    left: 30px;
    color: #161e2d;
}


.swiper-button-prev:hover, .swiper-button-next:hover {
    background-color: #ed2027;
    border-color: #ed2027;
    color: white;
}

.swiper-button-next {
  left: calc(100% - 90px);
}

.swiper-button-prev:after, .swiper-button-next:after {
  font-size: 20px;
}


.central-box {
  max-width: 100%;      /* larghezza contenitore */
  margin-top: -100px;    /* fa “salire” sopra le immagini */
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  height: 100%;
  z-index: 20;
  min-width: 90%;
}

.central-box > * {
  z-index: 10;
}

.cursor-text {
  cursor: text !important;
}

.status {
  background-color: #ed2027;
  text-transform: uppercase;
  color: white;
  font-weight: bold;
  width: 120px;
  height: 40px;
  line-height: 40px;        /* 👈 centratura verticale */
  font-size: 15px;
  text-align: center;       /* 👈 centratura orizzontale */
  border-radius: 12px;
  cursor: pointer;
}


.home-header {
  border-bottom: 1px solid #e4e4e4;
}

.home-page-infos {
  display: flex;
  flex-direction: row;
  font-size: 20px;
}

.structural-info {
  min-width: 50%;
  max-width: 50%;
  display: flex;
  flex-direction: row;
}

.structural-info > span:not(:last-child) {
  margin-right: 30px;
}

.description {
  font-size: 18px;
  border-bottom: 1px solid #e4e4e4;
}

.contact {
  position: sticky;
  background-color: #f7f7f7;
  border-radius: 12px;
  padding: 15px;
}

.home-page-body {
  display: flex;
}

.description-title {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 18px;
}

.details-title {
  font-weight: bold;
  font-size: 22px;
  font-weight: bold;
}

.detail-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  cursor: pointer;
  border-radius: 8px;
  background-color: #f7f7f7;
  cursor: pointer;
  transition: all .3s ease;
}

.detail-box:hover {
  background-color: #ed2027;
  color: white;
}

.detail-title {
  font-size: 18px;
  font-weight: bold;
  color: #161e2d;
}

.detail-info {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  font-size: 18px;
}
.details-border {
  border-bottom: 1px solid #e4e4e4;
}