:root {
  --font-family-apple: 'Playfair Display', serif;
  --color-primary: #a67c52;
  --color-dark: #111;
  --color-light: #f9f9f9;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-family-apple);
  color: #333;
  background-color: #fff;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Typography */
h1,
h2 {
  font-weight: 600;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3,
h4 {
  color: var(--color-primary);
}

p {
  font-size: 1rem;
}

/* Utility Classes */
.bg-light {
  background-color: #F5F5F5 !important;
}

.rounded-border {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

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

.btn-primary {
  background-color: var(--color-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

/* Layout */
.section {
  padding: 80px 0;
}

/* Navbar Apple Style */
.navbar {
  background-color: #F5F5F5;
  padding: 0.75rem 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: #F5F5F5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
}

.nav-link {
  color: var(--color-dark) !important;
  font-weight: 500;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--color-primary) !important;
  background-color: #F5F5F5;
}

/* Dropdown */
.dropdown-menu {
  min-width: 120px;
  font-size: 0.9rem;
  background-color: #F5F5F5;
  border: none;
  color: black;
  z-index:1060;
}

.dropdown-item {
  color: black;
}

.dropdown-item.active {
  background-color: #F5F5F5;
  color: var(--color-primary);
  font-weight: 600;
}

/* Mobile Menu */
.navbar-collapse {
  background-color: #F5F5F5;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 1050;
}

@media (max-width: 992px) {
 .navbar-collapse.show {
    background-color: #F5F5F5; !important;
    color: black;
  }

  .navbar-collapse.show .nav-link,
  .navbar-collapse.show .dropdown-item,
  .navbar-collapse.show .navbar-brand,
  .navbar-collapse.show .dropdown-toggle {
    color: black !important;
  }

  .navbar-collapse.show .dropdown-menu {
    background-color: #F5F5F5;
    border: none;
    box-shadow: none;
	  z-index:1060;

  }
}

@media (min-width: 992px) {
  .navbar-collapse {
    position: relative;
    top: auto;
    width: auto;
    background-color: transparent;
    box-shadow: none;
  }
}

/* Footer */
footer {
  background-color: #F5F5F5;
  color: black;
}

footer a {
  text-decoration: none;
  color: black;
}

footer a:hover {
  font-weight: 600;
  color: var(--color-primary);
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Cards */
.service-card {
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Scrollbar personalizzata (WebKit solo) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: white;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #F5F5F5;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-light);
}

#testimonials{
	min-height:371px;
}

/* Carousel */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-indicators {
  bottom: 10px;
}

.carousel-indicators button {
  background-color: var(--color-primary);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}



.overlay-blocker {
  pointer-events: none;
}

.dropdown-menu {
  z-index: 1060;
}



/* Posizionamento e animazioni */
.assistant-wrapper {
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1060; /* Sovra gli altri elementi */
}

.assistant-wrapper:hover {
  transform: translateY(-5px);
}

/* Pannello assistente */
.assistant-panel {
  max-width: 300px;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem; /* Testo più piccolo su mobile */
}

/* Media Query per schermi piccoli */
@media (max-width: 576px) {
  .assistant-panel {
    max-width: 90vw;
    font-size: 0.8125rem;
  }

  .assistant-wrapper button {
    width: 48px;
    height: 48px;
    padding: 0.45rem;
  }

  .assistant-content .btn-sm {
    font-size: 0.75rem;
  }
}

/* Effetto sonar opzionale (solo su desktop) */
@media (min-width: 768px) {
  .btn-primary:hover::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.2);
    animation: pulse 2s infinite;
    z-index: -1;
  }
}

/* Animazione pulsante */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}



/* Apple-style loader */
.apple-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #007AFF;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transition: opacity 0.3s ease;
  
  color:red;
  z-index:1070;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(2); }
}
/* Effetto sfondo semi-trasparente con blur */
#appleLoader {
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9999 !important;
}

/* Nasconde il contenuto principale finché il loader è visibile */
body.loading #appleLoader ~ * {
  visibility: hidden;
}
 
body.loading #appleLoader {
  visibility: visible !important;
}



/* Stili per la modale */
#imageModal .modal-content {
  background-color: #f9f9f9;;
  padding:1.6%;
}

#imageModal .carousel-item img {
  transition: transform 0.3s ease;
}

#imageModal .carousel-item img:hover {
  transform: scale(1.05);
}

#imageModal .carousel-control-prev-icon,
#imageModal .carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

#thumbnailContainer img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#thumbnailContainer img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#thumbnailContainer img.active-thumbnail {
  border: 2px solid var(--color-primary);
}



/* Team Cards Styles */
.card {
  border-radius: 10px !important;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
}

.card-body {
  position: relative;
}

/* Contact Links */
.card-body a {
  color: #212529;
  transition: all 0.3s ease;
}

.card-body a:hover {
  color: #005BBB;
  transform: translateX(3px);
}

.card-body .bi {
  transition: transform 0.2s ease;
}

.card-body a:hover .bi {
  transform: scale(1.1);
}

/* Location Badges */
.badge.bg-primary {
  background-color: #a67c52 !important;
  font-weight: 500;
}

/* Glass effect (optional) */
.card-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  z-index: -1;
  opacity: 0.05;
}

@media (max-width: 768px) {
  .card-body {
    padding: 2rem 1.5rem !important;
  }
  
  .card-body h5 {
    font-size: 1.25rem;
  }
  
  .card-body .vstack .bi {
    font-size: 0.85rem;
  }
}