/* GLOBALI */
html { scroll-behavior: smooth;}
.bg-blue {background-color: #282957;}
.bg-rosso {background-color: #dd4343;}
.strong {font-weight: 600;}
.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.hero {overflow-x: hidden;}
.hero.hero-large {min-height: 850px;}
.bg-error {background: #C1292E !important;}

.skip-to-content {
  background: #1877ec;
  color: #fff !important;
  height: 35px;
  padding: 8px 16px;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s;
  border-radius: 0 0 5px 5px;
  z-index: 999;
}
.header-dark #header:not(.scrolled) a.skip-to-content {color: #fff !important;}

.skip-to-content:focus {
  transform: translateY(0%);
  text-decoration: none;
}

#header .logo svg path.liquido {fill: #28285b;}

/* FOOTER */
.footer-nav ul {
	list-style: none;
	text-align: left;
}
.footer-nav ul ul {margin-left:initial;}
.footer-nav ul ul li::before, 
.card-footer a::before {
	content:''; 
	display:inline-block; 
	height:1em; 
	width:1em; 
	background-image:url('../images/fiamma.svg'); 
	background-size:contain; 
	background-repeat:no-repeat; 
}
.footer-nav ul a {
	text-decoration: none;
	color: #fff;
}
/* SEZIONE SPETTACOLI */
.hero-large + .tags {
	display: block;
	margin: 20px;
	text-align: center;
}

.card {
    border: 0;
    box-shadow: 0 0.25rem 1rem rgba(48,55,66,.15);
    height: 100%;
}

/* Responsive adjustments - solo per le dimensioni del testo */
@media (max-width: 480px) {
  .mobile-container .overlay-menu a {
    font-size: 18px !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
  }
  
  .mobile-container .overlay-menu ul ul a {
    font-size: 16px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
  }
  
  .skip-to-content {
    left: 15px;
    font-size: 13px;
    padding: 10px 16px;
  }
  
  .skip-to-content:focus {
    top: 15px;
  }
}/* CSS per miglioramenti di accessibilità e performance */

/* Skip link migliorato per navigazione da tastiera */
.skip-to-content {
  position: absolute;
  top: -50px;
  left: 20px;
  background: linear-gradient(135deg, #1877ec 0%, #282957 100%);
  color: #ffffff;
  padding: 5px 20px;
  text-decoration: none;
  border-radius: 25px;
  z-index: 10000;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.skip-to-content:focus {
  top: 20px;
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* Menu mobile con migliore accessibilità - stile originale */
.mobile-logo img, .mobile-logo svg {margin-left: 0;}
.button_container {
  background: transparent;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button_container:focus {
  outline: 3px solid #007acc;
  outline-offset: 2px;
}

.button_container:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Stati focus migliorati */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #007acc;
  outline-offset: 2px;
}

/* Contrasto migliorato per link - senza cambi per visitati */
a {
  color: #0066cc;
  text-decoration: underline;
}

a:hover {
  color: #004499;
  text-decoration: none;
}

/* Rimuovi stili per link visitati nel menu */
.mobile-container .overlay-menu a:visited,
.navbar a:visited,
.dropmenu a:visited {
  color: inherit;
  text-decoration: none;
}

/* Menu mobile overlay - stile originale ma elementi più grandi */
.mobile-container .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 40px 20px;
}

.mobile-container .overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* Logo mobile centrato */
.mobile-container .mobile-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
}

/* Menu mobile - solo elementi più grandi, stile invariato */
.mobile-container .overlay-menu a {
  font-size: 20px !important;
  padding: 16px 20px !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
  display: block !important;
  color: #ffffff !important;
}

/* Sottomenu mobile - anche questi leggermente più grandi */
.mobile-container .overlay-menu ul ul a {
  font-size: 18px !important;
  padding: 14px 18px !important;
  color: #ffffff !important;
}

/* Fix per toggler del menu mobile - corregge dimensioni del span.toggler */
.mobile-container .overlay-menu .toggler {
  line-height: 1.4 !important;
  color: #ffffff !important;
  padding: 16px !important;

}

/* Link del menu senza cambi di colore per visitati */
.mobile-container .overlay-menu a,
.mobile-container .overlay-menu a:visited,
.mobile-container .overlay-menu a:link {
  color: #ffffff !important;
  text-decoration: none !important;
}

.mobile-container .overlay-menu a:hover,
.mobile-container .overlay-menu a:focus {
  text-decoration: none !important;
  color: #ffffff !important;
}

/* Prevenire scroll quando menu è aperto */
body.mobile-menu-open {
  overflow: hidden;
}

/* Lazy loading immagini */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* Miglioramenti per riduzione movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modalità ad alto contrasto */
@media (prefers-contrast: high) {
  a {
    color: #0000ff;
    background: #ffffff;
  }
  
  button {
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .skip-to-content {
    background: linear-gradient(135deg, #282957 0%, #1877ec 100%);
    color: #ffffff;
  }
  
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline-color: #66ccff;
  }
}

/* Miglioramenti per stampa */
@media print {
  .skip-to-content,
  .mobile-menu,
  .button_container,
  .mobile-container {
    display: none !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* Focus management per dialog/modal */
.overlay[aria-modal="true"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Indicatori di caricamento accessibili */
.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007acc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ARIA live regions per messaggi dinamici */
.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;
}

[aria-live] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Slider testimonianze */
.testimonials-section {
    margin: 1rem 0;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
    color: #282957;
    margin-bottom: 3rem;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin: 0 auto;
    max-width: 800px;
    min-height: 200px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    transition: opacity 0.3s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333333;
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.testimonial-content blockquote p {
    margin: 0;
}

.testimonial-author h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #282957;
}

.testimonial-author .event {
    display: block;
    font-style: normal;
    margin-bottom: 0.3rem;
    color: #666666;
    font-size: 0.9rem;
}

.testimonial-author .location {
    color: #999999;
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.prev, .next {
    background: #ffffff;
    border: 1px solid #282957;
    color: #282957;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: normal;
    transition: all 0.2s ease;
}

.prev:hover, .next:hover {
    background: #C1292E;
    border-color: #C1292E;
    color: #ffffff;
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.dot.active {
    background: #282957;
}

.dot:hover {
    background: #C1292E;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 2rem 0;
    }
    
    .testimonials-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .testimonials-slider {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1.1rem;
    }
    
    .slider-controls {
        margin-top: 1.5rem;
    }
    
    .prev, .next {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .testimonials-slider {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1rem;
    }
    
    .testimonial-author h4 {
        font-size: 0.9rem;
    }
    
    .testimonial-author .event,
    .testimonial-author .location {
        font-size: 0.8rem;
    }
}
/* Stili per la fonte della testimonianza */
.testimonial-source {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.source-link,
.source-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-link:hover {
    color: #0066cc;
    text-decoration: none;
}

.source-icon {
    flex-shrink: 0;
}

/* Colori specifici per le icone social */
.source-link:hover .source-icon path {
    transition: fill 0.2s ease;
}

/* Facebook */
.source-link[href*="facebook"]:hover {
    color: #1877f2;
}

/* Instagram */
.source-link[href*="instagram"]:hover {
    color: #e4405f;
}

/* Google */
.source-link[href*="google"]:hover {
    color: #4285f4;
}

@media (max-width: 480px) {
    .testimonial-source {
        margin-top: 0.8rem;
        padding-top: 0.6rem;
    }
    
    .source-link,
    .source-text {
        font-size: 0.8rem;
    }
}

/**
 * CSS per sezioni FAQ - Mana Spettacoli
 * Stile professionale, accessibile e responsive
 * 
 * Applica automaticamente a tutte le FAQ del sito usando le classi comuni
 */

/* ==================================
   CONTAINER PRINCIPALE FAQ
   ================================== */

.faq-section {
  max-width: 100%;
  margin: 3rem 0;
  padding: 0;
}

/* Titolo della sezione FAQ */
.faq-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #e74c3c;
  text-align: left;
}

/* ==================================
   SINGOLA FAQ ITEM
   ================================== */

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ecf0f1;
  transition: all 0.3s ease;
}

/* Rimuovi bordo dall'ultimo elemento */
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Effetto hover sulla FAQ (opzionale, puoi rimuoverlo se preferisci) */
.faq-item:hover {
  background-color: #fafafa;
  padding: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 8px;
}

/* ==================================
   DOMANDA (H3)
   ================================== */

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  line-height: 1.4;
}

.faq-question {
  color: #e74c3c;
  font-weight: 600;
  display: block;
  position: relative;
  padding-left: 1.5rem;
}

/* Icona "Q:" prima della domanda */
.faq-question::before {
  content: "Q:";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #c0392b;
}

/* ==================================
   RISPOSTA
   ================================== */

.faq-answer {
  margin-top: 0.75rem;
}

.faq-answer [itemprop="text"] {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #34495e;
  padding-left: 1.5rem;
  position: relative;
}

/* Icona "A:" prima della risposta (opzionale) */
.faq-answer [itemprop="text"]::before {
  content: "A:";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: #7f8c8d;
}

/* ==================================
   ACCESSIBILITÀ
   ================================== */

/* Focus visibile per navigazione da tastiera */
.faq-item h3:focus,
.faq-question:focus,
.faq-item a:focus {
  outline: 3px solid #e74c3c;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Focus visibile anche su tutto l'item se contiene link cliccabili */
.faq-item:focus-within {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
  border-radius: 8px;
}

/* Migliora la leggibilità per utenti con difficoltà visive */
@media (prefers-contrast: high) {
  .faq-question {
    color: #000;
    font-weight: 700;
  }
  
  .faq-answer [itemprop="text"] {
    color: #000;
  }
  
  .faq-item {
    border-bottom: 2px solid #000;
  }
}

/* Rispetta le preferenze di animazione ridotte */
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item:hover {
    transition: none;
  }
}

/* ==================================
   RESPONSIVE DESIGN
   ================================== */

/* Tablet */
@media (max-width: 768px) {
  .faq-section {
    margin: 2rem 0;
  }
  
  .faq-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .faq-item h3 {
    font-size: 1.25rem;
  }
  
  .faq-answer [itemprop="text"] {
    font-size: 1rem;
    padding-left: 1.5rem;
  }
  
  .faq-question {
    padding-left: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .faq-section {
    margin: 1.5rem 0;
  }
  
  .faq-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }
  
  .faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .faq-item h3 {
    font-size: 1.15rem;
  }
  
  .faq-question {
    padding-left: 1.25rem;
  }
  
  .faq-answer [itemprop="text"] {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.25rem;
  }
  
  /* Riduci effetto hover su mobile per migliorare performance */
  .faq-item:hover {
    background-color: transparent;
    padding: 0;
    margin: 0 0 1.5rem 0;
  }
}

/* ==================================
   VARIANTI DI STILE (OPZIONALI)
   ================================== */

/* Rimuovi commento per avere uno stile "card" più definito */

.faq-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}


/* ==================================
   PRINT STYLES
   ================================== */

@media print {
  .faq-section {
    page-break-inside: avoid;
  }
  
  .faq-item {
    page-break-inside: avoid;
    border-bottom: 1px solid #000;
  }
  
  .faq-item:hover {
    background-color: transparent;
    padding: 0;
    margin: 0 0 1.5rem 0;
  }
  
  .faq-question,
  .faq-answer [itemprop="text"] {
    color: #000;
  }
}