.scroll-to-top-button {
    position: fixed;
    bottom: 60px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: linear-gradient(135deg, #4A90E2 0%, #7BB3F0 100%); /* ✅ BLU CHIARO */
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 2s ease-in-out infinite;
}

.scroll-to-top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #7BB3F0 0%, #4A90E2 100%); /* ✅ BLU CHIARO INVERTO AL HOVER */
    animation-play-state: paused;
}

.scroll-to-top-button:active {
    transform: translateY(0);
}

.scroll-icon {
    line-height: 1;
    font-size: 18px;
}

.scroll-to-top-button {
    animation: fadeInUp 0.3s ease-out, float 2s ease-in-out infinite 0.3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .scroll-to-top-button {
        width: 34px;
        height: 34px;
        bottom: 75px;
        right: 16px;
    }
    
    .scroll-icon {
        font-size: 18px;
    }
}.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0d6efd;
    will-change: transform;
} .navbar-logo {
    width: 300px;
    height: auto;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem !important;
}

.logo-hover {
    cursor: pointer;
    transition: transform 0.6s ease-in-out; /* ✅ AGGIUNGI: Transizione per la rotazione */
}

/* ✅ MODIFICA: Animazione di rotazione al hover del logo */
.logo-hover:hover {
    transform: rotate(360deg);
}

/* ✅ NAVBAR BIANCA CON BORDER-BOTTOM DI DEFAULT */
.navbar {
    background: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-bottom: 1px solid black;
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
}

/* ✅ QUANDO NON C'È LA CLIENT NAVBAR, AGGIUNGI L'OMBRA */
.navbar.with-shadow {
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

.navbar-brand {
    color: #1e293b !important;
}

.navbar-nav .nav-link {
    color: rgba(30, 41, 59, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: #1e293b !important;
    background-color: rgba(30, 41, 59, 0.1);
}

.navbar-nav .nav-link.active {
    color: #1e293b !important;
    background-color: rgba(30, 41, 59, 0.15);
    font-weight: 600;
}

.navbar-toggler {
    border-color: rgba(30, 41, 59, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ✅ DROPDOWN MENU STYLING */
.dropdown-menu {
    background: white !important;
    border: 1px solid rgba(30, 41, 59, 0.1);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: #1e293b !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

/* ✅ RESPONSIVE */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 990px) {
    /* Nascondi i link della navbar su schermi da laptop */
    .navbar-nav .nav-link {
        display: none;
    }
    
    /* Mostra il burger menu */
    .navbar-toggler {
        display: block !important;
    }
    
    /* Stile per il menu collassato */
    .navbar-collapse {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
        padding: 1rem;
    }
    
    /* Mostra i link nel menu collassato */
    .navbar-collapse .nav-link {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
        margin: 0;
        border-radius: 0;
        white-space: nowrap;
    }
    
    /* linea per tutti i link top-level nel collapse */
.navbar-collapse .navbar-nav > .nav-link,
.navbar-collapse .navbar-nav > .nav-item > .nav-link {
  border-bottom: 1px solid #e9ecef;
}
    
    /* Stile per i dropdown nel menu collassato */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-collapse .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
        width: 100px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 45px;
        width: 90px;
    }
}

/* ✅ STILI PER DROPDOWN INTEGRATI */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e40af;
}

.dropdown-toggle::after {
    display: none; /* Rimuove la freccia di Bootstrap */
}

/* ✅ RESPONSIVE PER DROPDOWN */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        border-bottom: none;
    }
}

/* ✅ AGGIUNGI: Allineamento icone con testo */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

/* ✅ OPPURE più specifico per le icone */
.navbar-nav .nav-link .me-1 {
    display: flex;
    align-items: center;
}

/* ✅ OPPURE ancora più specifico */
.hover-effect {
    display: flex !important;
    align-items: center !important;
}

/* ✅ CONTAINER DEL LOGO */
.navbar-brand-container {
    padding: 0;
    margin-right: 2rem !important;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ✅ TESTO LOGO CON FONT DUNE RISE - PIÙ PICCOLO */
.navbar-logo-text {
    font-family: 'Sansation', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    color: #1e293b !important;
    letter-spacing: 0.1em;
    cursor: pointer; /* ✅ AGGIUNGI: Cursor pointer per il testo */
    transition: none; /* ✅ AGGIUNGI: Nessuna transizione per il testo */
}

/* ✅ NUOVO: Quando si fa hover sul testo, ruota il logo */
.navbar-logo-text:hover + .logo-hover,
.logo-container:hover .logo-hover {
    transform: rotate(360deg);
}

/* ✅ ASSICURATI CHE IL TESTO NON RUOTI */
.navbar-logo-text:hover {
    transform: none;
}

/* ✅ BANNER AMBIENTE DI SVILUPPO */
.dev-environment-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #dc3545; /* Rosso */
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    z-index: 1040; /* Sopra la navbar (1030) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    display: flex; /* ✅ Flex per dividere il banner */
    align-items: center;
    justify-content: center;
}

/* ✅ BANNER DIVISO IN DUE PARTI */
.dev-environment-banner.split-banner {
    padding: 0; /* ✅ Rimuovi padding per permettere alle sezioni di occupare tutto lo spazio */
}

/* ✅ SEZIONE AMBIENTE DI SVILUPPO (metà sinistra) */
.banner-section.banner-dev {
    flex: 1;
    background-color: #dc3545; /* Rosso */
    color: white;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ✅ SEZIONE DEBUG ATTIVO (metà destra) */
.banner-section.banner-debug {
    flex: 1;
    background-color: #000000; /* Nero */
    color: #00ff00; /* Verde fluo */
    padding: 8px 0;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.6); /* ✅ Effetto glow verde */
    opacity: 0.9;
}

/* ✅ BANNER SOLO DEBUG (quando non siamo in dev ma debug è attivo) */
.banner-section.banner-debug-full {
    width: 100%;
    background-color: #000000; /* Nero */
    color: #00ff00; /* Verde fluo */
    padding: 8px 0;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.6); /* ✅ Effetto glow verde */
    opacity: 0.9;
}

/* ✅ Aggiungi padding-top alla navbar quando c'è il banner */
.navbar:has(+ .dev-environment-banner),
body:has(.dev-environment-banner) .navbar {
    margin-top: 0;
}

/* ✅ Alternativa: aggiungi padding-top al body quando c'è il banner */
body:has(.dev-environment-banner) {
    padding-top: 40px; /* Altezza banner + navbar */
}

/* ✅ Oppure aggiungi margin-top alla navbar quando il banner è presente */
.dev-environment-banner ~ .navbar {
    margin-top: 40px;
}

/* ✅ RESPONSIVE: Su schermi piccoli, il banner può diventare verticale */
@media (max-width: 768px) {
    .dev-environment-banner.split-banner {
        flex-direction: column;
    }
    
    .banner-section {
        width: 100%;
    }
}

/* Titoletti sezione più evidenti */
.dropdown-section-title {
    margin: 0.35rem 0 0.55rem;
    padding: 0 0.55rem;
    font-size: 0.78rem;
    font-weight: bold;          /* più grassetto */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #006aff;            /* leggermente più scuro */
  }
  
  /* Più margine/sfalsamento a sinistra per le opzioni */
  .coc-dropdown .dropdown-item {
    border-bottom: none;
    border-radius: 8px;
    padding: 0.55rem 0.75rem 0.55rem 1.15rem; /* + spazio a sinistra */
    margin-left: 0.35rem;                      /* rientro extra */
    width: calc(100% - 0.35rem);
  }

  .coc-dropdown .dropdown-section {
    border-left: 2px solid #e2e8f0;
    padding-left: 0.25rem;
  }.language-switcher {
  margin-right: 0.5rem;
  position: relative;
}

.language-switcher__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 4.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #212529;
  font-weight: 600;
}

.language-switcher__toggle:hover,
.language-switcher__toggle:focus-visible {
  background-color: rgba(0, 0, 0, 0.05);
  outline: none;
}

.language-switcher__toggle.dropdown-toggle::after {
  margin-left: 0.15rem;
  vertical-align: middle;
}

.language-switcher__menu {
  min-width: 10.5rem;
  padding: 0.35rem 0;
  margin-top: 0.35rem;
  right: 0;
  left: auto;
}

.language-switcher__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.language-switcher__item.is-active {
  font-weight: 600;
  background-color: rgba(132, 0, 255, 0.08);
}

.language-switcher__flag-svg {
  width: 1.5rem;
  height: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.language-switcher__code {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 1.25rem;
}

.language-switcher__label {
  font-size: 0.875rem;
  color: #495057;
}
.footer {
  background-color: white;
  color: rgb(0, 0, 0);
  padding: 2rem 0 1rem 0;
  width: 100%;
  border-top: 1px solid #eaeaea;
}

.footer-content {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .footer-content {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .footer-content {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .footer-content {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .footer-content {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .footer-content {
    max-width: 1320px;
  }
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-section {
  margin: 0 1rem;
  min-width: 200px;
}

.footer-section h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-section ul li {
  margin-bottom: 0;
}

.footer-section a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-section ul li:not(:last-child) a::after {
  content: '|';
  position: absolute;
  right: -1rem;
  color: #666;
  opacity: 0.5;
}

.footer-section a:hover {
  color: #000;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #666;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #000;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
}

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

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    margin: 1rem 0;
  }

  .footer-section ul {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

.footer-section .footer-orari {
  display: block !important;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
  color: #444;
}
.footer-section .footer-orari li {
  display: block !important;
  margin-bottom: 0.2rem;
}

/* ✅ BANNER COOKIE PERSONALIZZATO */
.custom-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  animation: slideUp 0.4s ease-out;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.cookie-icon {
  font-size: 32px;
  flex-shrink: 0;
  margin-top: 4px;
}

.cookie-text h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.cookie-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cookie-btn:hover::before {
  left: 100%;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.cookie-btn-reject {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.cookie-btn-reject:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.cookie-btn-customize {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cookie-btn-customize:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ✅ RESPONSIVE */
@media (max-width: 768px) {
  .custom-cookie-banner {
    padding: 20px;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .cookie-banner-text {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .cookie-icon {
    font-size: 28px;
    margin-top: 0;
  }
  
  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .cookie-banner-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
.faq-page {
    padding: 4rem 0;
    min-height: 70vh;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.faq-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    margin-top: 3rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    background: #ffffff;
    border: none;
    padding: 1.5rem;
}

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.faq-answer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 2px solid #e2e8f0;
}

.faq-answer-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.faq-answer-content strong {
    font-weight: 700;
    color: #1e293b;
}

.faq-answer-content ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

.faq-cta {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 3rem;
    border-radius: 20px;
    color: #ffffff;
}

.faq-cta-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
}

.faq-cta-text {
    color: #e2e8f0;
    font-size: 1.1rem;
}

.faq-cta .btn-primary {
    background: #ffd700;
    border: none;
    color: #1e293b;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.faq-cta .btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

@media (max-width: 768px) {
    .faq-main-title {
        font-size: 2rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
    }
    
    .faq-question-text {
        font-size: 1rem;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
    }
}