<?php if (!defined('ABSPATH')) exit; ?>
<div class="annfu">
    <h1>Annunci Funebri / Pannello di amministrazione</h1>

    <?php
    // Mostra messaggio di successo dopo reset opzioni
    if (get_transient('annfu_reset_success')) {
        delete_transient('annfu_reset_success');
        echo '<div class="notice notice-success is-dismissible"><p><strong>Le opzioni sono state ripristinate ai valori predefiniti.</strong></p></div>';
    }

    $onoranzaFunebreId = get_option('annfu_onoranza_funebre_id', '');
    $paginaAnnunci = get_option('annfu_page_annunci', ANNFU_PAGE_ANNUNCI);
    $paginaAnnuncio = get_option('annfu_page_annuncio', ANNFU_PAGE_ANNUNCIO);
    $paginaDiretta = get_option('annfu_page_diretta', ANNFU_PAGE_DIRETTA);
    $fotoWAnnuncio = get_option('annfu_foto_w_annuncio', ANNFU_FOTO_W_ANNUNCIO);
    $fotoHAnnuncio = get_option('annfu_foto_h_annuncio', ANNFU_FOTO_H_ANNUNCIO);
    $maxPerPage = get_option('annfu_max_per_page', 12);
    $pagine = get_option('annfu_pages', 5);
    $ultimiAnnunci = get_option('annfu_ultimi_annunci', 8);
    $ultimiAnnunciPerSlide = get_option('annfu_ultimi_annunci_per_slide', 4);
    $bootstrap = get_option('annfu_bootstrap', 4);
    $template = get_option('annfu_template', 'default');
    $showLightbox = get_option('annfu_lightbox', 0);
    $linkFiori = get_option('annfu_link_fiori', '');
    $showBreadcrumbs = get_option('annfu_breadcrumbs', 0);
    $showPoweredBy = get_option('annfu_poweredby', 1);
    $showEpigrafeFacebook = get_option('annfu_epigrafe_facebook', 0);
    $abilitaNotifichePwa = get_option('annfu_abilita_notifiche_pwa', 0);
    $notifichePwaFixed = get_option('annfu_notifiche_pwa_fixed', 0);
    $customPrivacy = get_option('annfu_custom_privacy', '');
    $css = get_option('annfu_css', '');
    $cssPwa = get_option('annfu_css_pwa', '');
    $searchConsole = get_option('annfu_search_console', '');
    $templateElementorAnnunci = get_option('annfu_template_elementor_annunci', '');
    $templateElementorAnnuncio = get_option('annfu_template_elementor_annuncio', '');
    $templateElementorDiretta = get_option('annfu_template_elementor_diretta', '');

    // Recupera i template Elementor disponibili per tipo di pagina
    $elementorTemplatesAnnunci = [];
    $elementorTemplatesAnnuncio = [];
    $elementorTemplatesDiretta = [];

    if (did_action('elementor/loaded') && class_exists('ANNFU_Gestore_Template')) {
        // Template per Lista Annunci
        $queryAnnunci = new WP_Query([
            'post_type' => ANNFU_Gestore_Template::TIPO_POST_TEMPLATE,
            'post_status' => 'publish',
            'posts_per_page' => -1,
            'orderby' => 'title',
            'order' => 'ASC',
            // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Required to filter templates by type.
            'meta_query' => [
                [
                    'key' => ANNFU_Gestore_Template::META_TIPO_PAGINA,
                    'value' => 'lista_annunci',
                    'compare' => '='
                ]
            ]
        ]);
        if ($queryAnnunci->have_posts()) {
            while ($queryAnnunci->have_posts()) {
                $queryAnnunci->the_post();
                $elementorTemplatesAnnunci[get_the_ID()] = get_the_title();
            }
            wp_reset_postdata();
        }

        // Template per Dettaglio Annuncio
        $queryAnnuncio = new WP_Query([
            'post_type' => ANNFU_Gestore_Template::TIPO_POST_TEMPLATE,
            'post_status' => 'publish',
            'posts_per_page' => -1,
            'orderby' => 'title',
            'order' => 'ASC',
            // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Required to filter templates by type.
            'meta_query' => [
                [
                    'key' => ANNFU_Gestore_Template::META_TIPO_PAGINA,
                    'value' => 'dettaglio_annuncio',
                    'compare' => '='
                ]
            ]
        ]);
        if ($queryAnnuncio->have_posts()) {
            while ($queryAnnuncio->have_posts()) {
                $queryAnnuncio->the_post();
                $elementorTemplatesAnnuncio[get_the_ID()] = get_the_title();
            }
            wp_reset_postdata();
        }

        // Template per Diretta Streaming
        $queryDiretta = new WP_Query([
            'post_type' => ANNFU_Gestore_Template::TIPO_POST_TEMPLATE,
            'post_status' => 'publish',
            'posts_per_page' => -1,
            'orderby' => 'title',
            'order' => 'ASC',
            // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Required to filter templates by type.
            'meta_query' => [
                [
                    'key' => ANNFU_Gestore_Template::META_TIPO_PAGINA,
                    'value' => 'diretta_streaming',
                    'compare' => '='
                ]
            ]
        ]);
        if ($queryDiretta->have_posts()) {
            while ($queryDiretta->have_posts()) {
                $queryDiretta->the_post();
                $elementorTemplatesDiretta[get_the_ID()] = get_the_title();
            }
            wp_reset_postdata();
        }
    }

    if (get_option('annfu_invito_download_pwa_android') == '') {
        update_option('annfu_invito_download_pwa_android', 'Scarica la nostra app');
    }
    if (get_option('annfu_invito_download_pwa_ios') == '') {
        update_option('annfu_invito_download_pwa_ios', 'Installa la nostra cliccando sul pulsante "condividi" e poi su "aggiungi alla schermata home"');
    }

    $afOptions = annfu_get_options();
    $afOptionsValues = annfu_get_options_values();

    $templates = ['default' => 'Default', 'alternativo' => 'Alternativo (blocchi)'];
    if ($onoranzaFunebreId && file_exists(ANNFU_PLUGIN_PATH . 'templates/' . $onoranzaFunebreId . '/_annuncio.php')) {
        $templates = $templates + [$onoranzaFunebreId => 'Personalizzato'];
    } elseif (array_intersect(explode(",", $onoranzaFunebreId), ANNFU_GRUPPO_CONCORDIA) && file_exists(ANNFU_PLUGIN_PATH . 'templates/concordia/_annuncio.php')) {
        $templates = $templates + ['concordia' => 'Personalizzato Concordia'];
    } elseif (array_intersect(explode(",", $onoranzaFunebreId), ANNFU_PFA) && file_exists(ANNFU_PLUGIN_PATH . 'templates/pfa/_annuncio.php')) {
        $templates = $templates + ['pfa' => 'Personalizzato PFA'];
    }
    ?>

    <div class="annfu_form_wrap">

        <form method="post" action="options.php">

            <div> <!-- tabs container -->

                <!-- nav tabs -->
                <div class="nav nav-tabs" role="tablist">
                    <a class="nav-item nav-link active" href="#annfu_home" role="tab" data-toggle="tab">Utilizzo</a>
                    <a class="nav-item nav-link" href="#annfu_colors" role="tab" data-toggle="tab">Colori</a>
                    <a class="nav-item nav-link" href="#annfu_css_custom" role="tab" data-toggle="tab">CSS
                        personalizzato</a>
                    <a class="nav-item nav-link" href="#annfu_testi" role="tab" data-toggle="tab">Testi aggiuntivi</a>
                    <a class="nav-item nav-link" href="#annfu_own_privacy" role="tab" data-toggle="tab">Privacy
                        personalizzata</a>
                    <?php if (did_action('elementor/loaded')): ?>
                    <a class="nav-item nav-link" href="#annfu_template_elementor" role="tab" data-toggle="tab">Template Elementor</a>
                    <?php endif; ?>
                </div>

                <div class="tab-content"> <!-- tab panes -->

                    <div role="tabpanel" class="tab-pane p-3 active" id="annfu_home">
                        <div class="annfu-admin-two-columns">
                            <!-- Colonna principale (2/3) -->
                            <div class="annfu-admin-main-column">
                                <h4><i class="fas fa-cog"></i> Configurazione</h4>
                        <?php settings_fields('af-settings'); ?>
                        <?php do_settings_sections('af-settings'); ?>

                        <!-- ID Onoranza Funebre -->
                        <div class="annfu-config-box">
                            <h5><i class="fas fa-building"></i> ID Onoranza Funebre</h5>
                            <div>
                                <input type="text" name="annfu_onoranza_funebre_id"
                                       value="<?php echo esc_attr($onoranzaFunebreId) ?>"
                                       class="annfu-input annfu-input-medium"
                                       placeholder="es: 123 o 123,456,789"/>
                                <p class="annfu-helper-text">
                                    In caso di più onoranze, separare i valori con la virgola
                                </p>
                            </div>
                        </div>

                        <!-- BOX GENERALE -->
                        <div class="annfu-config-box">
                            <h5><i class="fas fa-sliders-h"></i> Generale</h5>

                            <!-- Bootstrap Version -->
                            <div class="annfu-form-group">
                                <label class="annfu-form-label">Versione Bootstrap:</label>
                                <label class="annfu-form-label-inline"><input type="radio" name="annfu_bootstrap" value="3" <?php echo $bootstrap == '3' ? 'checked="checked"' : '' ?>/> Bootstrap 3</label>
                                <label class="annfu-form-label-inline"><input type="radio" name="annfu_bootstrap" value="4" <?php echo $bootstrap == '4' ? 'checked="checked"' : '' ?>/> Bootstrap 4</label>
                                <label class="annfu-form-label-inline"><input type="radio" name="annfu_bootstrap" value="0" <?php echo $bootstrap == '0' ? 'checked="checked"' : '' ?>/> Non utilizza Bootstrap</label>
                            </div>

                            <!-- Template PHP -->
                            <?php if (count($templates) > 1): ?>
                            <div class="annfu-form-group">
                                <label class="annfu-form-label">Template:</label>
                                <?php foreach ($templates as $k => $v): ?>
                                    <label class="annfu-form-label-inline">
                                        <input type="radio" name="annfu_template" value="<?php echo esc_attr($k); ?>" <?php echo $template == $k ? 'checked="checked"' : '' ?>/>
                                        <?php echo esc_html($v); ?>
                                    </label>
                                <?php endforeach ?>
                            </div>
                            <?php endif; ?>

                            <!-- Link Fiori -->
                            <div>
                                <label class="annfu-form-label">Link alla pagina dei fiori:</label>
                                <input type="text" name="annfu_link_fiori"
                                       value="<?php echo esc_attr($linkFiori) ?>"
                                       class="annfu-input annfu-input-full"
                                       placeholder="https://..."/>
                            </div>
                        </div>

                        <!-- BOX LISTA ANNUNCI -->
                        <div class="annfu-config-box">
                            <h5 class="annfu-title-lista"><i class="fas fa-list"></i> Lista Annunci</h5>

                            <!-- Slug e Template -->
                            <div class="annfu-form-group-inline annfu-with-margin annfu-align-start">
                                <div>
                                    <div class="annfu-form-label-wrapper">
                                        <label class="annfu-form-label">Slug pagina:</label>
                                        <?php if ($paginaAnnunci != ''): ?>
                                            <a href="<?php echo esc_url(get_site_url() . '/' . $paginaAnnunci); ?>" target="_blank" class="annfu-link-inline"><i class="fas fa-external-link-alt"></i> Visualizza</a>
                                        <?php endif; ?>
                                    </div>
                                    <input type="text" name="annfu_page_annunci"
                                           value="<?php echo esc_attr($paginaAnnunci) ?>"
                                           class="annfu-input annfu-input-fullwidth"
                                           placeholder="es: annunci-funebri"/>
                                </div>
                                <?php if (!empty($elementorTemplatesAnnunci)): ?>
                                <div>
                                    <label class="annfu-form-label">Template:</label>
                                    <select name="annfu_template_elementor_annunci" class="annfu-input annfu-input-fullwidth">
                                        <option value="">Template predefinito</option>
                                        <?php foreach ($elementorTemplatesAnnunci as $templateId => $templateTitle): ?>
                                            <option value="<?php echo esc_attr($templateId); ?>" <?php selected($templateElementorAnnunci, $templateId); ?>>
                                                <?php echo esc_html($templateTitle); ?>
                                            </option>
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                                <?php endif; ?>
                            </div>

                            <!-- Numero annunci per pagina -->
                            <div class="annfu-form-group-inline">
                                <div>
                                    <label class="annfu-form-label">Annunci per pagina:</label>
                                    <input type="text" name="annfu_max_per_page"
                                           value="<?php echo esc_attr($maxPerPage) ?>"
                                           class="annfu-input annfu-input-small"
                                           placeholder="12"/>
                                </div>
                                <div>
                                    <label class="annfu-form-label">Numero pagine paginazione:</label>
                                    <input type="text" name="annfu_pages"
                                           value="<?php echo esc_attr($pagine) ?>"
                                           class="annfu-input annfu-input-small"
                                           placeholder="5"/>
                                    <p class="annfu-helper-text-small">Pagine prima e dopo quella corrente</p>
                                </div>
                            </div>
                        </div>

                        <!-- BOX DETTAGLIO ANNUNCIO -->
                        <div class="annfu-config-box">
                            <h5 class="annfu-title-dettaglio"><i class="fas fa-newspaper"></i> Dettaglio Annuncio</h5>

                            <!-- Slug e Template -->
                            <div class="annfu-form-group-inline annfu-with-margin annfu-align-start">
                                <div>
                                    <div class="annfu-form-label-wrapper">
                                        <label class="annfu-form-label">Slug pagina:</label>
                                        <?php if ($paginaAnnuncio != ''): ?>
                                            <a href="<?php echo esc_url(get_site_url() . '/' . $paginaAnnuncio); ?>" target="_blank" class="annfu-link-inline"><i class="fas fa-external-link-alt"></i> Visualizza</a>
                                        <?php endif; ?>
                                    </div>
                                    <input type="text" name="annfu_page_annuncio"
                                           value="<?php echo esc_attr($paginaAnnuncio) ?>"
                                           class="annfu-input annfu-input-fullwidth"
                                           placeholder="es: annuncio"/>
                                </div>
                                <?php if (!empty($elementorTemplatesAnnuncio)): ?>
                                <div>
                                    <label class="annfu-form-label">Template:</label>
                                    <select name="annfu_template_elementor_annuncio" class="annfu-input annfu-input-fullwidth">
                                        <option value="">Template predefinito</option>
                                        <?php foreach ($elementorTemplatesAnnuncio as $templateId => $templateTitle): ?>
                                            <option value="<?php echo esc_attr($templateId); ?>" <?php selected($templateElementorAnnuncio, $templateId); ?>>
                                                <?php echo esc_html($templateTitle); ?>
                                            </option>
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                                <?php endif; ?>
                            </div>

                            <!-- Dimensioni Foto -->
                            <div>
                                <label class="annfu-form-label">Dimensioni foto (px):</label>
                                <div class="annfu-dimensions-input">
                                    <input type="text" name="annfu_foto_w_annuncio"
                                           value="<?php echo esc_attr($fotoWAnnuncio) ?>"
                                           class="annfu-input annfu-input-small"
                                           placeholder="Larghezza"/>
                                    <span>×</span>
                                    <input type="text" name="annfu_foto_h_annuncio"
                                           value="<?php echo esc_attr($fotoHAnnuncio) ?>"
                                           class="annfu-input annfu-input-small"
                                           placeholder="Altezza"/>
                                </div>
                            </div>
                        </div>

                        <!-- BOX DIRETTA STREAMING -->
                        <div class="annfu-config-box">
                            <h5 class="annfu-title-diretta"><i class="fas fa-video"></i> Diretta Streaming</h5>

                            <!-- Slug e Template -->
                            <div class="annfu-form-group-inline annfu-align-start">
                                <div>
                                    <div class="annfu-form-label-wrapper">
                                        <label class="annfu-form-label">Slug pagina:</label>
                                        <?php if ($paginaDiretta != ''): ?>
                                            <a href="<?php echo esc_url(get_site_url() . '/' . $paginaDiretta); ?>" target="_blank" class="annfu-link-inline"><i class="fas fa-external-link-alt"></i> Visualizza</a>
                                        <?php endif; ?>
                                    </div>
                                    <input type="text" name="annfu_page_diretta"
                                           value="<?php echo esc_attr($paginaDiretta) ?>"
                                           class="annfu-input annfu-input-fullwidth"
                                           placeholder="es: diretta"/>
                                </div>
                                <?php if (!empty($elementorTemplatesDiretta)): ?>
                                <div>
                                    <label class="annfu-form-label">Template:</label>
                                    <select name="annfu_template_elementor_diretta" class="annfu-input annfu-input-fullwidth">
                                        <option value="">Template predefinito</option>
                                        <?php foreach ($elementorTemplatesDiretta as $templateId => $templateTitle): ?>
                                            <option value="<?php echo esc_attr($templateId); ?>" <?php selected($templateElementorDiretta, $templateId); ?>>
                                                <?php echo esc_html($templateTitle); ?>
                                            </option>
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                                <?php endif; ?>
                            </div>
                        </div>

                        <!-- BOX CAROSELLO -->
                        <div class="annfu-config-box">
                            <h5><i class="fas fa-images"></i> Carosello</h5>

                            <div class="annfu-form-group-inline">
                                <div>
                                    <label class="annfu-form-label">Annunci da visualizzare:</label>
                                    <input type="text" name="annfu_ultimi_annunci"
                                           value="<?php echo esc_attr($ultimiAnnunci) ?>"
                                           class="annfu-input annfu-input-small"
                                           placeholder="8"/>
                                </div>
                                <div>
                                    <label class="annfu-form-label">Annunci per slide:</label>
                                    <input type="text" name="annfu_ultimi_annunci_per_slide"
                                           value="<?php echo esc_attr($ultimiAnnunciPerSlide) ?>"
                                           class="annfu-input annfu-input-small"
                                           placeholder="4"/>
                                </div>
                            </div>
                        </div>

                        <!-- BOX ALTRE OPZIONI -->
                        <div class="annfu-config-box">
                            <h5><i class="fas fa-ellipsis-h"></i> Altre Opzioni</h5>

                            <div class="annfu-checkbox-grid">
                                <label class="annfu-form-label-inline">
                                    <input type="checkbox" name="annfu_epigrafe_facebook" value="1" <?php echo $showEpigrafeFacebook == 1 ? 'checked="checked"' : '' ?>/>
                                    <span>Visualizza epigrafe in anteprima Facebook</span>
                                </label>

                                <label class="annfu-form-label-inline">
                                    <input type="checkbox" name="annfu_lightbox" value="1" <?php echo $showLightbox == 1 ? 'checked="checked"' : '' ?>/>
                                    <span>Utilizza lightbox per le foto</span>
                                </label>

                                <label class="annfu-form-label-inline">
                                    <input type="checkbox" name="annfu_breadcrumbs" value="1" <?php echo $showBreadcrumbs == 1 ? 'checked="checked"' : '' ?>/>
                                    <span>Visualizza breadcrumbs nella pagina dell'annuncio</span>
                                </label>

                                <label class="annfu-form-label-inline">
                                    <input type="checkbox" name="annfu_poweredby" value="1" <?php echo $showPoweredBy == 1 ? 'checked="checked"' : '' ?>/>
                                    <span>Visualizza "powered by annuncifunebri.it"</span>
                                </label>

                                <label class="annfu-form-label-inline">
                                    <input type="checkbox" name="annfu_abilita_notifiche_pwa" value="1" <?php echo $abilitaNotifichePwa == 1 ? 'checked="checked"' : '' ?>/>
                                    <span>Abilita notifiche push PWA</span>
                                </label>

                                <label class="annfu-form-label-inline">
                                    <input type="checkbox" name="annfu_notifiche_pwa_fixed" value="1" <?php echo $notifichePwaFixed == 1 ? 'checked="checked"' : '' ?>/>
                                    <span>Ancora in alto il messaggio di invito a scaricare la PWA</span>
                                </label>
                            </div>

                            <!-- Google Search Console -->
                            <div class="annfu-divider">
                                <label class="annfu-form-label">Codice Google Search Console:</label>
                                <input type="text" name="annfu_search_console"
                                       value="<?php echo esc_attr($searchConsole) ?>"
                                       class="annfu-input annfu-input-full"
                                       placeholder="Codice fornito dalla Google Search Console"/>
                                <p class="annfu-helper-text-small">
                                    <a href="https://search.google.com/u/6/search-console/welcome" target="_blank"><i class="fas fa-external-link-alt"></i> Ottieni il codice dalla Search Console</a>
                                </p>
                            </div>
                        </div>

                        <br/>
                        <input type="submit" value="<?php echo esc_attr__('Salva configurazione', 'annuncifunebri-onoranza'); ?>"
                               class="button button-primary" id="submit"
                               name="submit">

                            </div><!-- end main column -->

                            <!-- Sidebar (1/3) -->
                            <div class="annfu-admin-sidebar-column">
                                <!-- Sezione Shortcodes -->
                                <h4><i class="fas fa-code"></i> Shortcodes Disponibili</h4>
                                <div class="annfu-info-box">
                                    <p>Inserisci questi codici nelle tue pagine WordPress per visualizzare i contenuti del plugin:</p>
                                    <div class="annfu-shortcode-grid">
                                        <div class="annfu-shortcode-item">
                                            <div class="annfu-shortcode-label lista"><i class="fas fa-list"></i> Lista Annunci</div>
                                            <code class="annfu-shortcode-code">[ANNFU_ANNUNCI]</code>
                                        </div>
                                        <div class="annfu-shortcode-item">
                                            <div class="annfu-shortcode-label dettaglio"><i class="fas fa-newspaper"></i> Dettaglio Annuncio</div>
                                            <code class="annfu-shortcode-code">[ANNFU_ANNUNCIO]</code>
                                        </div>
                                        <div class="annfu-shortcode-item">
                                            <div class="annfu-shortcode-label diretta"><i class="fas fa-video"></i> Diretta Streaming</div>
                                            <code class="annfu-shortcode-code">[ANNFU_DIRETTA]</code>
                                        </div>
                                    </div>
                                    <p class="annfu-info-note">
                                        <i class="fas fa-lightbulb"></i> <strong>Nota:</strong> In caso di problemi, contatta <a href="mailto:info@annuncifunebri.it">info@annuncifunebri.it</a>
                                    </p>
                                </div>
                            </div><!-- end sidebar -->
                        </div><!-- end two columns -->

                    </div>

                    <div role="tabpanel" class="tab-pane p-3" id="annfu_colors">
                        <?php include_once('_backoffice-colors.php'); ?>
                    </div>

                    <div role="tabpanel" class="tab-pane p-3" id="annfu_css_custom">
                        <div class="annfu_form_row">
                            <p>CSS personalizzato</p>
                            <textarea rows="30" cols="80" name="annfu_css" id="annfu_textarea" class="annfu_textarea"
                                      placeholder="<?php esc_attr_e('CSS personalizzato', 'annuncifunebri-onoranza') ?>"><?php echo esc_textarea($css) ?></textarea>
                            <div id="annfu_editor"></div>
                        </div>
                        <div class="annfu_form_row mt-4">
                            <p>CSS personalizzato banner PWA</p>
                            <textarea rows="30" cols="80" name="annfu_css_pwa" id="annfu_textarea_pwa"
                                      class="annfu_textarea"
                                      placeholder="<?php esc_attr_e('CSS personalizzato PWA', 'annuncifunebri-onoranza') ?>"><?php echo esc_textarea($cssPwa) ?></textarea>
                            <div id="annfu_editor_pwa"></div>
                        </div>
                        <input type="submit" value="<?php echo esc_attr__('Salva CSS personalizzato', 'annuncifunebri-onoranza'); ?>"
                               class="button button-primary" id="submit"
                               name="submit">
                    </div>

                    <div role="tabpanel" class="tab-pane p-3" id="annfu_testi">
                        <?php include_once('_testi-aggiuntivi.php'); ?>
                    </div>

                    <div role="tabpanel" class="tab-pane p-3" id="annfu_own_privacy">
                        <?php include_once('_custom-privacy.php'); ?>
                    </div>

                    <div role="tabpanel" class="tab-pane p-3" id="annfu_template_elementor">
                        <?php if (file_exists(ANNFU_PLUGIN_PATH . '_template-elementor.php')): ?>
                            <?php include_once('_template-elementor.php'); ?>
                        <?php else: ?>
                            <div class="notice notice-error"><p>File template-elementor.php non trovato.</p></div>
                        <?php endif; ?>
                    </div>

                </div> <!-- end tab panes -->

            </div> <!-- end tabs container -->

        </form>
    </div>
</div>