﻿body {
    font-family: 'BDOGrotesk', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin:0;
    padding-top: 80px;
}

h2 {
    font-family: 'Bellefair', serif !important;
}

/* Navbar bianca */
.navbar {
    background: white;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95) !important;
    padding: 0.5rem 1rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.navbar .nav-link { color: #333 !important; transition: color 0.3s; font-weight: 500 !important; }
.navbar .nav-link:hover { color: #0d6efd !important; }
.navbar .navbar-brand { color: #333 !important; }

/* Hero */
.hero {
    position: relative;
    background: url('hero-image.jpg') center/cover no-repeat fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease forwards;
    opacity: 0;
}
.hero h1 { font-size: 3rem; font-weight:700; }
.hero p { font-size: 1.4rem; }
.hero .btn { margin-top:1rem; }

/* Sections */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.section.visible { opacity: 1; transform: translateY(0); }

/* Services cards hover & icon animation */
.service-card {
    transition: transform 0.4s, box-shadow 0.4s;
    cursor:pointer;
}
.service-card:hover { transform: translateY(-15px); box-shadow:0 15px 35px rgba(0,0,0,0.3); }
.service-card i {
    display: inline-block;
    transition: transform 0.5s, color 0.5s;
}
.service-card.visible i { transform: scale(1.2); color: #0d6efd; }

/* Property cards parallasse + overlay + micro-movimenti */
.property-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.2s ease;
    transform: translateY(var(--parallax, 0)) rotateX(0deg);
}
.property-card:hover { transform: translateY(calc(var(--parallax, 0) - 5px)) rotateX(1deg); }
.property-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}
.property-card:hover img { transform: scale(1.1); }
.property-overlay {
    position: absolute;
    inset:0;
    background: rgba(13,110,253,0.7);
    color:white;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    opacity:0;
    transition: opacity 0.4s, transform 0.4s;
    padding:20px;
    transform: translateY(20px);
}
.property-card:hover .property-overlay {
    opacity:1;
    transform: translateY(0);
}
.property-overlay h5, .property-overlay p {
    transform: translateY(20px);
    opacity:0;
    transition: all 0.5s ease;
}
.property-card:hover .property-overlay h5,
.property-card:hover .property-overlay p {
    transform: translateY(0);
    opacity:1;
}

/* Footer */
.footer { background:#111; color:#fff; padding:50px 0; }
.footer a { color:#fff; text-decoration:none; }

/* Animations */
@keyframes fadeInUp { from { opacity:0; transform:translateY(50px); } to { opacity:1; transform:translateY(0); } }

/* Navbar */
.navbar { transition: background 0.4s, padding 0.4s, box-shadow 0.4s; }
.navbar.scrolled { background: rgba(255,255,255,0.95) !important; padding: 0.5rem 1rem !important; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.navbar .nav-link { color: #333 !important; transition: color 0.3s; }
.navbar .nav-link:hover { color: #0d6efd !important; }
.navbar .navbar-brand { color: #333 !important; }

/* Dropdown multi-level */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-left: 0.1rem; display: none; border-radius: 0.25rem; }
.dropdown-submenu:hover > .dropdown-menu { display: block; }
@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu { left: 0; top: auto; margin-left: 0; }
}

.real-estate-bg-card {
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  overflow: hidden;
  height: 280px; /* stessa altezza per tutte le card */
  padding: 0 10px;
  background-clip: content-box;

  
}
.real-estate-bg-overlay {
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.real-estate-bg-overlay h5 {
  font-family: 'Bellefair', serif !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 1.4rem;
  color: white;
}
.real-estate-bg-overlay p {
  font-family: 'BDOGrotesk', sans-serif;
  color: white;
}

.section {
    scroll-margin-top: 100px;
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);

    padding: 10px 0;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'BDOGrotesk', sans-serif;
}

.sticky-footer i {
    color: #fff;
}

.sticky-footer .footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.sticky-footer .footer-link:hover {
    color: #f0c14b; /* luxury gold accent */
}

body {
    padding-bottom: 60px; /* evita che copra il contenuto */
}

/* Mobile: icone + testo compatto */
@media (max-width: 768px) {
    .sticky-footer .container {
        justify-content: space-around;
    }
    .sticky-footer span, .sticky-footer .footer-link {
        font-size: 0.8rem;
    }
}

.navbar.scrolled {
    background-color: rgba(255,255,255,0.95) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.real-estate-bg-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

.section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}
.team-card {
    background: #fff;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.team-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-role {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.team-desc {
    font-size: 0.95rem;
    color: #555;
}

.magazine-section {
    background: #fff;
}

.mag-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}

.mag-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mag-card:hover img {
    transform: scale(1.05);
}

.mag-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.mag-category {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.mag-card h3,
.mag-card h5 {
    margin: 10px 0;
}

.mag-card a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* featured */
.mag-card.featured {
    height: 500px;
}

/* small */
.mag-card.small {
    height: 240px;
}

/* normal grid */
.mag-card:not(.featured):not(.small) {
    height: 280px;
}

