/* ===== STILI GLOBALI DI BASE ===== */

/* Reset universale per tutti gli elementi */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Stili del body principale */
:root {
  --color-night: #0b0b0c;
  --color-anthracite: #141416;
  --color-white: #f7f5f0;
  --color-muted: #c8c4bc;
  --color-gold: #c6a35a;
  --color-bronze: #a67c3c;
}

body {
  margin: 0;
  /* Font stack con Montserrat come font principale e fallback */
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  /* Miglioramento rendering font su diversi browser */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Colori principali del tema */
  background-color: #0b0b0c;
  background-color: var(--color-night);
  color: #f7f5f0;
  color: var(--color-white);
}

/* Scroll fluido per tutta la pagina */
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== STILI GLOBALI APPLICAZIONE ===== */

/* Animazione per loader */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Container principale dell'applicazione */
.App {
  width: 100%;
  max-width: 100vw;
}

/* Utility: visually hidden, accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Stili standard per tutte le sezioni */
section {
  padding: 100px 5%; /* Padding verticale e orizzontale responsive */
  position: relative;
}

/* Container centrale con larghezza massima */
.container {
  max-width: 1400px;
  margin: 0 auto; /* Centra il contenuto */
}

/* ===== TITOLI DI SEZIONE ===== */

/* Titolo principale delle sezioni */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

/* Linea decorativa sotto il titolo */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #C6A35A, #A67C3C);
}

/* Sottotitolo delle sezioni */
.section-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 60px;
  font-weight: 300;
}

/* ===== ANIMAZIONI SEMPLICI ===== */

/* Animazione fade in con movimento dal basso */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animazione fade in semplice */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Classi utility per animazioni */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Adattamento per tablet e mobile */
@media (max-width: 768px) {
  section {
    padding: 60px 5%; /* Riduce padding su mobile */
  }

  .section-title {
    font-size: 2rem; /* Riduce dimensione titolo */
  }

  .section-subtitle {
    font-size: 1rem; /* Riduce dimensione sottotitolo */
  }
}

/* ===== STILI PERSONALIZZATI IUBENDA COOKIE BANNER ===== */

/* Personalizzazione del banner cookie Iubenda */
#iubenda-cs-banner {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%) !important;
  border-top: 2px solid #C6A35A !important;
  box-shadow: 0 -4px 20px rgba(198, 163, 90, 0.2) !important;
}

/* Testo del banner */
#iubenda-cs-banner .iubenda-cs-content {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Link nel banner */
#iubenda-cs-banner a {
  color: #C6A35A !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.3s ease !important;
}

#iubenda-cs-banner a:hover {
  color: #C6A35A !important;
}

/* Pulsanti del banner */
#iubenda-cs-banner .iubenda-cs-btn-primary,
#iubenda-cs-banner button[class*="accept"] {
  background: linear-gradient(135deg, #C6A35A, #C6A35A) !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(198, 163, 90, 0.3) !important;
}

#iubenda-cs-banner .iubenda-cs-btn-primary:hover,
#iubenda-cs-banner button[class*="accept"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(198, 163, 90, 0.4) !important;
}

/* Pulsante rifiuta/personalizza */
#iubenda-cs-banner .iubenda-cs-btn-secondary,
#iubenda-cs-banner button[class*="reject"],
#iubenda-cs-banner button[class*="customize"] {
  background: transparent !important;
  color: #C6A35A !important;
  border: 2px solid #C6A35A !important;
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
}

#iubenda-cs-banner .iubenda-cs-btn-secondary:hover,
#iubenda-cs-banner button[class*="reject"]:hover,
#iubenda-cs-banner button[class*="customize"]:hover {
  background: #C6A35A !important;
  color: #000000 !important;
  transform: translateY(-2px) !important;
}

/* Pulsante chiudi */
#iubenda-cs-banner .iubenda-cs-close-btn {
  color: #C6A35A !important;
  font-size: 24px !important;
  transition: all 0.3s ease !important;
}

#iubenda-cs-banner .iubenda-cs-close-btn:hover {
  color: #C6A35A !important;
  transform: rotate(90deg) !important;
}

/* Responsive per il banner */
@media (max-width: 768px) {
  #iubenda-cs-banner {
    font-size: 13px !important;
  }
  
  #iubenda-cs-banner .iubenda-cs-btn-primary,
  #iubenda-cs-banner .iubenda-cs-btn-secondary,
  #iubenda-cs-banner button {
    padding: 10px 20px !important;
    font-size: 12px !important;
  }
}

/* ===== ANIMAZIONI GLOBALI ===== */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In - Animazione per CTA e bottoni con effetto bounce */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scale Up */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Zoom In */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In Up */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bounce In */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

/* Rotate In */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg);
  }

  to {
    opacity: 1;
    transform: rotate(0);
  }
}

/* Classi di Animazione - Inizialmente invisibili */
.animate-fade-in,
.animate-fade-in-up,
.animate-fade-in-down,
.animate-fade-in-left,
.animate-fade-in-right,
.animate-scale-up,
.animate-scale-in,
.animate-zoom-in,
.animate-slide-in-up,
.animate-bounce-in,
.animate-rotate-in {
  opacity: 0;
  visibility: hidden;
}

/* Quando l'elemento diventa visibile durante lo scroll */
.animate-fade-in.is-visible {
  animation: fadeIn 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

.animate-fade-in-up.is-visible {
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 1;
  visibility: visible;
}

.animate-fade-in-down.is-visible {
  animation: fadeInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 1;
  visibility: visible;
}

.animate-fade-in-left.is-visible {
  animation: fadeInLeft 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

.animate-fade-in-right.is-visible {
  animation: fadeInRight 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

.animate-scale-up.is-visible {
  animation: scaleUp 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

/* Animazione Scale In per CTA - Effetto bounce elastico */
.animate-scale-in.is-visible {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  visibility: visible;
}

.animate-zoom-in.is-visible {
  animation: zoomIn 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

.animate-slide-in-up.is-visible {
  animation: slideInUp 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

.animate-bounce-in.is-visible {
  animation: bounceIn 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

.animate-rotate-in.is-visible {
  animation: rotateIn 1s ease-out forwards;
  opacity: 1;
  visibility: visible;
}

/* Ritardi per animazioni staggered */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-150 {
  animation-delay: 0.15s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-250 {
  animation-delay: 0.25s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-350 {
  animation-delay: 0.35s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-450 {
  animation-delay: 0.45s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-550 {
  animation-delay: 0.55s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-650 {
  animation-delay: 0.65s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-750 {
  animation-delay: 0.75s;
}

.delay-800 {
  animation-delay: 0.8s;
}

/* Classe per elementi visibili - rimossa perché gestita sopra */

/* Smooth scroll per tutta la pagina */
html {
  scroll-behavior: smooth;
}

/* Transizioni fluide per hover su elementi interattivi (evita forced reflows su *) */
a, button, input, select, textarea, .btn-primary, .btn-secondary, .hero-call-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Animazione hover per card generiche */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(198, 163, 90, 0.3);
}

/* Animazione glow per elementi interattivi */
.hover-glow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(198, 163, 90, 0.6);
  transform: scale(1.02);
}
/* ===== STILI LANGUAGE SELECTOR (DESKTOP & MOBILE) ===== */

/* --- VERSIONE DESKTOP (IN ALTO A DESTRA NELLA NAVBAR) --- */
.navbar-lang-desktop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 22, 30, 0.85);
  border: 1.2px solid rgba(198, 163, 90, 0.38);
  border-radius: 20px;
  padding: 3px 8px;
  margin-left: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.navbar-lang-desktop:hover {
  border-color: rgba(198, 163, 90, 0.65);
}

.desktop-lang-btn {
  background: transparent;
  border: 1.5px solid transparent;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.lang-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lang-flag-svg {
  display: block;
  border-radius: 3px;
}

.desktop-lang-btn .lang-flag-badge {
  filter: grayscale(35%) opacity(0.7);
}

.desktop-lang-btn:hover .lang-flag-badge {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.18);
}

.desktop-lang-btn.active {
  background: rgba(229, 195, 120, 0.22);
  border-color: rgba(229, 195, 120, 0.7);
  box-shadow: 0 0 10px rgba(229, 195, 120, 0.35);
}

.desktop-lang-btn.active .lang-flag-badge {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.12);
}

.lang-divider {
  color: rgba(198, 163, 90, 0.4);
  font-size: 0.85rem;
  -webkit-user-select: none;
          user-select: none;
  margin: 0 1px;
}

@media (max-width: 968px) {
  .navbar-lang-desktop {
    display: none !important;
  }
}

/* --- VERSIONE MOBILE: EMOJI BANDIERE NELLA STESSA RIGA DI LOGO E X (AL CENTRO SOPRA HOME) --- */
.navbar-lang-mobile-center {
  display: none;
}

@media (max-width: 968px) {
  .navbar-lang-mobile-center {
    display: none;
  }

  .navbar.menu-open .navbar-lang-mobile-center {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    pointer-events: auto;
  }
}

.mobile-lang-flags-container {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(20, 22, 30, 0.95);
  border: 1.3px solid rgba(198, 163, 90, 0.5);
  border-radius: 22px;
  padding: 3px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(198, 163, 90, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-flag-btn {
  background: transparent;
  border: 1.5px solid transparent;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  min-height: 32px;
  min-width: 36px;
  touch-action: manipulation;
}

.mobile-flag-btn .lang-flag-svg {
  display: block;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mobile-flag-btn:not(.active) .lang-flag-svg {
  filter: grayscale(35%) opacity(0.65);
}

.mobile-flag-btn:hover .lang-flag-svg {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15);
}

.mobile-flag-btn.active {
  background: rgba(229, 195, 120, 0.25);
  border-color: rgba(229, 195, 120, 0.75);
  box-shadow: 0 0 10px rgba(229, 195, 120, 0.35);
}

.mobile-flag-btn.active .lang-flag-svg {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.12);
}

.mobile-flag-sep {
  color: rgba(198, 163, 90, 0.45);
  font-size: 0.85rem;
  -webkit-user-select: none;
          user-select: none;
  margin: 0 1px;
}

/* Nascondi completamente qualsiasi vecchio selettore lingua con testo dal menu mobile */
.nav-mobile-lang-drawer,
.nav-mobile-lang-label,
.nav-mobile-lang-buttons,
.mobile-lang-btn {
  display: none !important;
}
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999999 !important;
  isolation: isolate;
  transition: all 0.3s ease;
  padding: 14px 0 !important;
  background: #0b0b0c !important;
  border-bottom: 1px solid rgba(198, 163, 90, 0.18);
}

.navbar.scrolled {
  background: rgba(11, 11, 12, 0.98) !important;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 10px 0 !important;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Icone social a destra nella navbar (Desktop) */
.navbar-socials-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.nav-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(198, 163, 90, 0.08);
  border: 1px solid rgba(198, 163, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C6A35A;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-social-btn:hover {
  background: #C6A35A;
  color: #0b0b0c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 163, 90, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-image {
  height: 40px;
  width: 40px;
  transition: all 0.3s ease;
  /* Ottimizzazioni per performance */
  will-change: transform;
  contain: layout style paint;
}

.navbar.scrolled .logo-image {
  height: 40px;
  width: 40px;
}

/* Forza dimensioni fisse pulsante anche quando navbar è scrolled */
.navbar.scrolled .cta-button {
  padding: 0 !important;
  padding-left: 12px !important;
  font-size: 0.7rem !important;
  min-width: 110px !important;
  max-width: 110px !important;
  width: 110px !important;
  height: 28px !important;
  line-height: 28px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #C6A35A, #C6A35A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: #fff;
  margin-top: -5px;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: #f7f5f0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: none;
  transition: all 0.3s ease;
  position: relative;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C6A35A;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #C6A35A;
}

.nav-link.active::after {
  width: 100%;
}

/* Quando l'utente passa con il cursore su un altro link del menu, evidenzia solo quello sotto il mouse */
.nav-menu:hover .nav-link.active:not(:hover) {
  color: #f7f5f0;
}

.nav-menu:hover .nav-link.active:not(:hover)::after {
  width: 0;
}

.navbar .cta-button {
  background: #C6A35A !important;
  color: #F4F5F7 !important;
  border: none !important;
  padding: 0 !important;
  padding-left: 12px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border-radius: 6px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  width: 110px !important;
  height: 28px !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  box-sizing: border-box !important;
  line-height: 28px !important;
}

.navbar .cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 20px rgba(198, 163, 90, 0.4) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: #F4F5F7;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 1100px) {
  .navbar .cta-button {
    padding: 0 !important;
    padding-left: 12px !important;
    font-size: 0.7rem !important;
    min-width: 110px !important;
    max-width: 110px !important;
    width: 110px !important;
    height: 28px !important;
    line-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 968px) {

  /* Su mobile la navbar è sempre dello stesso colore */
  .navbar {
    background: #141416 !important;
  }

  /* Quando il menu è aperto, mantieni la navbar in cima e copri il gap */
  .navbar.menu-open {
    position: fixed !important;
    top: 0 !important;
    min-height: 90px !important;
    padding-bottom: 25px !important;
    box-shadow: none !important;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
  }

  .nav-menu {
    position: fixed !important;
    left: -100% !important;
    top: 90px !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 90px) !important;
    max-height: calc(100dvh - 90px) !important;
    flex-direction: column !important;
    background: #141416 !important;
    text-align: center !important;
    transition: left 0.3s ease !important;
    padding: 20px 0 180px 0 !important;
    gap: 0 !important;
    z-index: 998 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
  }

  .nav-menu .nav-link {
    padding: 20px 0 !important;
    font-size: 1.2rem !important;
    letter-spacing: 0.8px !important;
    width: 100% !important;
    display: block !important;
    color: #F4F5F7 !important;
    flex-shrink: 0 !important;
  }

  /* Evidenzia in giallo SOLO la pagina attiva nel menu mobile */
  .nav-menu .nav-link.active {
    color: #C6A35A !important;
    font-weight: 700 !important;
  }

  /* Rimuovi colore giallo su hover generico nel menu mobile per evitare stati toccati bloccati */
  .nav-menu .nav-link:hover {
    color: inherit !important;
  }

  /* Nascondi la linea gialla sotto i link nel menu mobile */
  .nav-menu .nav-link::after {
    display: none !important;
  }

  .nav-menu.active {
    left: 0 !important;
  }

  .navbar-socials-desktop {
    display: none !important;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  .navbar .cta-button {
    padding: 0 !important;
    padding-left: 12px !important;
    font-size: 0.7rem !important;
    order: 1 !important;
    margin-right: 15px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    width: 110px !important;
    height: 28px !important;
    line-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dest-horizontal-bar {
    display: none !important;
  }

  .nav-dropdown-mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(198, 163, 90, 0.15);
    border-bottom: 1px solid rgba(198, 163, 90, 0.15);
    padding: 8px 0;
    margin: 8px 0 14px;
  }

  .nav-dropdown.open .nav-dropdown-mobile-menu {
    display: flex !important;
  }

  .nav-mobile-cat-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 10px;
    border-bottom: 1px solid rgba(198, 163, 90, 0.15);
    margin-bottom: 6px;
  }

  .nav-mobile-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(198, 163, 90, 0.25);
    border-radius: 16px;
    color: #cfcfcf;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
  }

  .nav-mobile-tab-btn:hover {
    color: #ffffff;
    border-color: #C6A35A;
  }

  .nav-mobile-tab-btn.active {
    background: linear-gradient(135deg, #C6A35A 0%, #E5C378 100%);
    color: #0b0c0e;
    border-color: #C6A35A;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(198, 163, 90, 0.3);
  }

  .nav-mobile-cat-items {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-dropdown-mobile-menu .nav-dropdown-item {
    padding: 9px 16px !important;
    font-size: 0.86rem !important;
    color: #dfdfdf !important;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
  }

  .nav-dropdown-mobile-menu .nav-dropdown-item:hover,
  .nav-dropdown-mobile-menu .nav-dropdown-item.active {
    color: #C6A35A !important;
    font-weight: 700 !important;
  }

  .nav-dropdown-mobile-menu .nav-dropdown-item-special {
    color: #C6A35A !important;
    font-weight: 700 !important;
    font-size: 0.84rem !important;
    margin-top: 6px;
    padding-top: 10px !important;
    border-top: 1px dashed rgba(198, 163, 90, 0.25);
  }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  font-size: 0.7rem;
  color: #c6a35a;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: #C6A35A !important;
}

.nav-dropdown.open .nav-dropdown-toggle::after,
.nav-dropdown.active .nav-dropdown-toggle::after,
.nav-dropdown-toggle.active::after {
  width: 100% !important;
}

.nav-dropdown.open .nav-caret,
.nav-dropdown.active .nav-caret,
.nav-dropdown-toggle.active .nav-caret {
  color: #C6A35A !important;
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-mobile-menu {
  display: none;
}

/* ============================================================
   BARRA ORIZZONTALE DESTINAZIONI (DESKTOP)
   ============================================================ */
.nav-dest-horizontal-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(13, 13, 15, 0.98);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-top: 1px solid rgba(198, 163, 90, 0.22);
  border-bottom: 1px solid rgba(198, 163, 90, 0.35);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
  z-index: 9999998;
}

.nav-dest-horizontal-bar.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dest-h-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 3% 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

/* TABS SELEZIONE: CITTÀ | ESCURSIONI | TOUR */
.dest-h-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 6px;
  border-radius: 24px;
  border: 1px solid rgba(198, 163, 90, 0.28);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

.dest-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  color: #b3b3b3;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.dest-tab-btn:hover {
  color: #ffffff;
  background: rgba(198, 163, 90, 0.12);
  border-color: rgba(198, 163, 90, 0.3);
}

.dest-tab-btn.active {
  background: linear-gradient(135deg, #C6A35A 0%, #E5C378 100%);
  color: #0b0c0e;
  border-color: #C6A35A;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(198, 163, 90, 0.35);
}

.dest-h-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
}

.dest-h-link {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 8px;
  border-radius: 4px;
}

.dest-h-link:hover,
.dest-h-link.active {
  color: #E5C378;
  background: rgba(198, 163, 90, 0.08);
  transform: translateY(-1px);
  font-weight: 700;
}

.dest-h-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: #C6A35A;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.dest-h-link:hover::after,
.dest-h-link.active::after {
  transform: scaleX(1);
}

.dest-h-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dest-h-recommend-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 163, 90, 0.12);
  border: 1px solid rgba(198, 163, 90, 0.4);
  border-radius: 20px;
  padding: 5px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.dest-h-recommend-link .recommend-text {
  font-size: 0.78rem;
  color: #c0c0c0;
  font-weight: 400;
}

.dest-h-recommend-link .recommend-cta {
  font-size: 0.78rem;
  color: #C6A35A;
  font-weight: 700;
}

.dest-h-recommend-link:hover {
  background: rgba(198, 163, 90, 0.24);
  border-color: #C6A35A;
  box-shadow: 0 4px 14px rgba(198, 163, 90, 0.25);
  transform: translateY(-1px);
}

.dest-h-recommend-link:hover .recommend-text {
  color: #ffffff;
}

.dest-h-recommend-link:hover .recommend-cta {
  color: #dfba69;
}

@media (max-width: 1250px) and (min-width: 969px) {
  .dest-h-tabs {
    gap: 5px;
    padding: 3px 4px;
  }

  .dest-tab-btn {
    font-size: 0.7rem;
    padding: 3px 12px;
  }

  .dest-h-links {
    gap: 10px;
  }

  .dest-h-link {
    font-size: 0.73rem;
    padding: 3px 5px;
  }

  .dest-h-recommend-link {
    padding: 4px 12px;
  }

  .dest-h-recommend-link .recommend-text,
  .dest-h-recommend-link .recommend-cta {
    font-size: 0.74rem;
  }
}

/* ===== ICONE SOCIAL MENU MOBILE ===== */
.nav-mobile-socials-drawer {
  display: none;
}

@media (max-width: 1150px) and (min-width: 969px) {
  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.78rem;
    letter-spacing: 0.4px;
  }

  .navbar-socials-desktop {
    gap: 6px;
    margin-left: 10px;
  }

  .nav-social-btn {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 968px) {
  .navbar-socials-desktop {
    display: none !important;
  }

  .nav-mobile-socials-drawer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 30px;
    margin-top: 15px;
    border-top: 1px solid rgba(198, 163, 90, 0.2);
    width: 80%;
  }

  .nav-mobile-socials-label {
    color: #C6A35A;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
  }

  .nav-mobile-socials-row {
    display: flex;
    gap: 12px;
  }

  .nav-mobile-socials-row .nav-social-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .nav-menu .nav-link {
    font-size: 0.98rem !important;
    padding: 12px 0 !important;
  }

  .nav-dropdown-mobile-menu .nav-dropdown-item {
    font-size: 0.82rem !important;
    padding: 8px 14px !important;
  }
}
/* ===== FOOTER CSS ELEGANTE E RESPONSIVE ===== */

.footer {
  background: #0a0a0c;
  border-top: 1px solid rgba(198, 163, 90, 0.25);
  padding: 70px 5% 30px;
  position: relative;
  overflow: hidden;
}

/* Linea dorata con sfumatura in cima al footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #C6A35A 50%, transparent 100%);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Griglia desktop a 7 sezioni perfettamente bilanciata */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.05fr 1.25fr 0.9fr 0.9fr 0.9fr 1.35fr;
  grid-gap: 30px;
  gap: 30px;
  margin-bottom: 50px;
  align-items: start;
}

.footer-section {
  text-align: left;
}

/* Titoli delle sezioni del footer in oro elegante */
.footer-section h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #C6A35A;
  margin-bottom: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Sezione Brand / Logo */
.footer-brand .footer-logo-link {
  display: inline-block;
  margin-bottom: 15px;
  transition: opacity 0.3s ease;
}

.footer-brand .footer-logo-link:hover {
  opacity: 0.85;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-description {
  font-size: 0.88rem;
  color: #a8a8a8;
  line-height: 1.7;
  font-weight: 300;
  max-width: 270px;
  margin: 0;
}

/* Liste e Link delle sezioni */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #b5b5b5;
  line-height: 1.5;
}

.footer-section ul li a {
  color: #b5b5b5;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: #C6A35A;
  transform: translateX(4px);
}

/* Orari badge */
.footer-hours-badge {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #C6A35A !important;
  letter-spacing: 1px;
  margin-bottom: 6px !important;
}

/* Contatti */
.footer-contact-link {
  color: #b5b5b5;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contact-link:hover {
  color: #C6A35A;
}

.footer-contact-link.gold {
  color: #C6A35A;
  font-size: 0.85rem;
  word-break: break-all;
}

.footer-piva {
  font-size: 0.82rem !important;
  color: #aaa !important;
  margin-top: 10px;
}

/* Barra inferiore copyright e crediti */
.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(198, 163, 90, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  font-size: 0.84rem;
  color: #aaa;
  margin: 0;
}

.footer-credit a {
  color: #C6A35A;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-credit a:hover {
  opacity: 0.85;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Schermi laptop e medi (1025px - 1280px) */
@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.2fr 0.8fr 0.8fr 0.8fr 1.3fr;
    gap: 20px;
  }
}

/* Schermi tablet grandi e laptop piccoli (851px - 1024px) */
@media (max-width: 1024px) {
  .footer {
    padding: 60px 4% 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: span 4;
    margin-bottom: 10px;
  }

  .footer-description {
    max-width: 550px;
  }
}

/* Tablet e smartphone grandi (577px - 850px) */
@media (max-width: 850px) {
  .footer {
    padding: 50px 4% 25px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-description {
    max-width: 100%;
  }
}

/* Smartphone (<= 576px) */
@media (max-width: 576px) {
  .footer {
    padding: 45px 5% 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 1;
    text-align: left;
  }

  .footer-section h4 {
    margin-bottom: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== STILI PULSANTE WHATSAPP ===== */

/* Pulsante fisso in basso a destra */
.whatsapp-button {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #000 !important;
  border: 2px solid #C6A35A !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Effetto hover */
.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(198, 163, 90, 0.4);
  border-color: #C6A35A;
  background-color: #1a1a1a;
}

/* Effetto click */
.whatsapp-button:active {
  transform: scale(0.95);
}

/* Icona WhatsApp */
.whatsapp-icon {
  width: 32px;
  height: 32px;
  color: #C6A35A;
  transition: color 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon {
  color: #C6A35A;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .whatsapp-button {
    width: 55px !important;
    height: 55px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
  
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* Animazione pulse GPU composited (zero repaints e zero main-thread block) */
.whatsapp-button::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid rgba(198, 163, 90, 0.7);
  pointer-events: none;
  animation: waPulseGpu 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes waPulseGpu {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.whatsapp-button:hover::after {
  animation: none;
}

