/* css/category-custom.css */

/* Hero Section */
.category-hero-section {
    background-size: cover;
    background-position: center center;
    padding: 60px 20px; /* Adatta il padding */
    text-align: center;
    position: relative;
    color: #fff; /* Colore testo predefinito per la hero, potrebbe servire un overlay scuro sull'immagine */
    margin-bottom: 30px;
}

.category-hero-section::before { /* Overlay opzionale per leggibilità testo */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4); /* Overlay scuro */
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Adatta la larghezza */
    margin: 0 auto;
}

.category-hero-content .woocommerce-breadcrumb {
    color: #f0f0f0; /* Colore breadcrumb */
    font-size: 0.9em;
    margin-bottom: 15px;
}
.category-hero-content .woocommerce-breadcrumb a {
    color: #fff;
}

.category-hero-content .page-title {
    color: #fff; /* Colore titolo */
    margin-bottom: 0; /* Rimuovi margine se breadcrumb è sopra */
    font-size: 2.5em; /* Adatta la dimensione */
}

/* Descrizione Estesa (sopra i prodotti) */
.term-extended-description {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9; /* Sfondo leggero per distinguerla */
    border-left: 4px solid #0073aa; /* Colore primario del tuo tema o un colore d'accento */
}
.term-extended-description p:last-child {
    margin-bottom: 0;
}


/* Contenuti Estesi (sotto i prodotti) */
.category-extended-content-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee; /* Separatore */
}

.category-bottom-content,
.category-faq-section,
.category-cta-section {
    margin-bottom: 30px;
}

.category-bottom-content img {
    max-width: 100%;
    height: auto;
}

/* Sezione FAQ */
.faq-main-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center; /* O a sinistra, come preferisci */
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden; /* Per angoli arrotondati se usi sfondi */
}

.faq-question {
    font-size: 1.2em;
    padding: 15px 20px;
    margin: 0;
    background-color: #f7f7f7; /* Sfondo per la domanda */
    cursor: pointer; /* Se vuoi implementare un accordion JS */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { /* Indicatore per accordion JS, opzionale */
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
}
.faq-item.active .faq-question::after {
    content: '-';
}


.faq-answer {
    padding: 15px 20px;
    background-color: #fff;
    /* display: none; */ /* Da gestire con JS per accordion */
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}


/* CTA Section */
.category-cta-section {
    text-align: center;
    padding: 20px;
    background-color: #eef7ff; /* Sfondo leggermente diverso */
    border-radius: 4px;
}

.category-cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0073aa; /* Colore primario o d'accento */
    color: #fff !important; /* Forza colore testo se Divi lo sovrascrive */
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.category-cta-button:hover {
    background-color: #005a8c; /* Colore hover */
    color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-hero-section {
        padding: 40px 15px;
    }
    .category-hero-content .page-title {
        font-size: 2em;
    }
    .faq-question {
        font-size: 1.1em;
    }
}