/* 
Theme Name: Ambasciatori 
Template Name: FAQ
*/

/* ============== HERO SECTION (FAQ) ================ */
.hero-faq {
    position: relative;
    color: var(--text-white);
    padding: 120px 0 100px;
    text-align: center;
}

.hero-faq .hero-bg,
.hero-faq .hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    background: #0d1b31;
}

.hero-faq .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 137, 190, 0.2);
    /* Transparent light blue overlay */
    z-index: -1;
}

.hero-faq .hero-content {
    position: relative;
    z-index: 1;
}

.hero-faq .hero-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-faq .hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-faq .hero-desc {
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
}

/* ============== FAQ LIST SECTION ================ */
.faq-list-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list-section .section-heading h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    display: flex;
    flex-direction: column;
}

.faq-question {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 15px 20px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    transition: border-radius 0.3s ease;
}

.faq-icon {
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-answer {
    background-color: #fff;
    padding: 0 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Active State for Accordion */
.faq-item.active .faq-question {
    border-radius: 4px 4px 0 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
    /* arbitrary large height for animation */
    opacity: 1;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============== FORM SECTION ================ */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-section .section-heading {
    margin-bottom: 40px;
}

.contact-section .section-heading h2 {
    color: var(--primary-color);
    font-size: 32px;
}

.contact-section .section-heading p {
    color: #444;
    font-size: 18px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.associazione-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fcfcfc;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit.full-width {
    width: 100%;
    margin-top: 10px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 18px;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .hero-faq .hero-title {
        font-size: 36px;
    }
    .hero-faq .hero-bg img {
            object-position: -1vw center;
    }
}
