/* Container Principale */
.iata-faq-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #2c3e50;
}

/* Titolo della Sezione */
.iata-faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #4a1525; /* Rosso profondo/Bordeaux spirituale */
  font-weight: 600;
}

/* Singolo Elemento dell'Accordion */
.iata-faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
  background-color: #fafbfc;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.iata-faq-item:hover {
  background-color: #f4f6f8;
}

/* Bottone della Domanda */
.iata-faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: color 0.3s ease;
}

.iata-faq-question:focus {
  outline: none;
}

/* Icona + / - gestita con CSS puro */
.iata-faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.iata-faq-icon::before,
.iata-faq-icon::after {
  content: '';
  position: absolute;
  background-color: #8a6d3b; /* Oro scuro/ottone */
  transition: transform 0.3s ease;
}

/* Linea Orizzontale del più */
.iata-faq-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

/* Linea Verticale del più */
.iata-faq-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

/* Stato Attivo (FAQ Aperta) */
.iata-faq-item.active {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-left: 4px solid #8a6d3b; /* Evidenziatura in oro */
}

.iata-faq-item.active .iata-faq-question {
  color: #4a1525;
}

/* Trasformazione dell'icona da + a - quando attiva */
.iata-faq-item.active .iata-faq-icon::after {
  transform: rotate(90deg);
  opacity: 0; /* Nasconde la linea verticale, lasciando solo quella orizzontale (-) */
}

/* Contenitore della Risposta */
.iata-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1); /* Animazione fluida */
}

/* Mostra la risposta quando l'item è attivo */
.iata-faq-item.active .iata-faq-answer {
  max-height: 1000px; /* Valore alto per permettere l'estensione del testo */
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Testo della Risposta */
.iata-faq-answer p {
  padding: 0 20px 20px 20px;
  margin: 0;
  text-align: left;
  line-height: 1.6;
  font-size: 1rem;
  color: #555;
}

.iata-faq-answer em {
  font-style: italic;
  color: #4a1525;
}
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.75);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 99999; /* Priorità massima sulla Home Page */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        /* Classe attivata via JS */
        .modal-overlay.is-active {
            opacity: 1;
            visibility: visible;
        }

        .modal-container {
    background-color: #ffffff;
    width: 95%; /* Leggermente più ampia per dare respiro al testo dell'immagine su mobile */
    max-width: 600px; /* Portata a 600px per rendere leggibili i testi piccoli in basso */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-30px);
    transition: transform 0.4s ease;
    box-sizing: border-box;
}

        .modal-overlay.is-active .modal-container {
            transform: translateY(0);
        }

        /* Pulsante di chiusura (X) */
        .modal-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            font-size: 22px;
            font-weight: bold;
            color: #222;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10;
            box-shadow: 0 2px 6px rgba(0,0,0,0.25);
            transition: background 0.2s ease, color 0.2s ease;
        }

        .modal-close-btn:hover {
            background: #ffffff;
            color: #9c27b0;
        }

        /* Contenuto della modale */
        .modal-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

        .modal-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; /* Permette all'altezza di adattarsi proporzionalmente */
    display: block !important;
    /* Cambiato l'aspect-ratio per combaciare perfettamente con le proporzioni native del tuo file (2.5:1) */
    aspect-ratio: 25 / 10 !important; 
    /* Contiene l'immagine preservandone ogni singolo pixel senza zoom o ritagli */
    object-fit: contain !important; 
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
}

        .modal-content-text {
    padding: 20px 25px 30px 25px; /* Ottimizzato lo spazio sotto l'immagine */
    text-align: center;
}

        /* Brand Tag sopra il titolo */
        .modal-brand-tag {
            font-family: sans-serif;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #7209b7;
            font-weight: bold;
            margin-bottom: 8px;
            display: block;
        }

        .modal-title {
            margin: 0 0 12px 0;
            font-size: 1.6rem;
            color: #111;
            font-family: sans-serif;
            line-height: 1.2;
        }

        .modal-details {
            margin: 0 0 25px 0;
            font-size: 0.95rem;
            color: #444;
            font-family: sans-serif;
            line-height: 1.5;
        }

        .modal-details strong {
            color: #000;
        }

        /* Bottone Call to Action (CTA) diretto alla pagina interna */
        .modal-cta-btn {
            display: inline-block;
            background-color: #7209b7;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 35px;
            border-radius: 4px;
            font-weight: bold;
            font-family: sans-serif;
            font-size: 1rem;
            transition: background-color 0.2s ease, transform 0.2s ease;
            box-shadow: 0 5px 15px rgba(114, 9, 183, 0.3);
        }

        .modal-cta-btn:hover {
            background-color: #e0e0e0;
            transform: translateY(-1px);
        }