/* ============================================================
   Hello Pizza Child — custom.css
   CSS migrato dal pannello "Personalizza" di produzione.
   Pulito dai riferimenti Listingpro (tema non più in uso).
   ============================================================ */


/* ============================================================
   1. TIPOGRAFIA GLOBALE
   ============================================================ */

/* Solo paragrafo di testo standard.
   Tutto il resto (bottoni, span, link, label) è gestito da Elementor. */
p {
    font-family: "Lato", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #7f7f7f;
    line-height: 24px;
}


/* ============================================================
   2. MENU SCUOLA (Elementor nav dropdown)
   ============================================================ */

.menu-scuola .elementor-nav-menu--dropdown,
.menu-scuola .elementor-nav-menu .sub-menu {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.menu-scuola .elementor-nav-menu--dropdown a,
.menu-scuola .sub-menu a { padding: 16px 22px; }

.menu-scuola li.menu-item-has-children.hold-open > .sub-menu,
.menu-scuola li.menu-item-has-children.hold-open > .elementor-nav-menu--dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
    pointer-events: auto;
}


/* ============================================================
   3. AJAX SEARCH LITE
   ============================================================ */

div.asl_w, div.asl_w *, div.asl_r, div.asl_r *,
div.asl_s, div.asl_s * {
    box-sizing: content-box;
    padding: 0;
    margin: 0;
    border: 0;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    text-decoration: none;
    text-align: left;
    letter-spacing: normal;
    border-radius: 15px !important;
}

#ajaxsearchlite1 .probox .proinput input.orig,
#ajaxsearchlite1 .probox .proinput input.autocomplete {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}
#ajaxsearchlite1 .probox .proinput input::placeholder {
    font-size: 18px !important;
    font-weight: 600 !important;
}


/* ============================================================
   4. FORUM (wpForo)
   ============================================================ */

.forum-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 0 0 24px;
    width: 100%;
}

.pf-title {
    font-family: "Lato", Sans-serif;
    font-size: 40px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0;
    color: #000;
}

.pf-tabs { display: inline-flex; gap: 14px; margin-bottom: 18px; }

.pf-tab {
    padding: 7px 20px;
    border-radius: 999px;
    border: 1px solid #e30614;
    font-size: 13px;
    text-decoration: none;
    color: #e30614;
    background: #fff;
    transition: 0.2s;
}
.pf-tab:hover { background: #ffe6e4; }
.pf-tab--active {
    background: #e30614;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pf-strip {
    background: #e30614;
    color: #fff;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.forum-search-form input[type="search"] {
    width: 100%;
    background: #D50101;
    border: none;
    padding: 12px 54px 12px 22px;
    border-radius: 999px;
    font-size: 18px;
    font-family: "Lato", Sans-serif;
    color: #fff;
    box-sizing: border-box;
}
.forum-search-form input[type="search"]::placeholder { color: #fff; }
.forum-search-form button[type="submit"] {
    position: absolute;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    padding: 0;
}


/* ============================================================
   5. GTRANSLATE (switcher lingue footer)
   ============================================================ */

.gt_switcher {
    width: 220px !important;
    max-width: 100% !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    font-family: inherit !important;
    overflow: visible !important;
}

.gt_switcher *,
.gt_switcher *::before,
.gt_switcher *::after { box-sizing: border-box !important; }

.gt_switcher .gt_selected {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 30 !important;
    overflow: visible !important;
}

.gt_switcher .gt_selected > a {
    width: 100% !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 38px 0 12px !important;
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #2f2f2f !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    position: relative !important;
}
.gt_switcher .gt_selected > a:hover {
    background: #181818 !important;
    border-color: #4a4a4a !important;
}

.gt_switcher .gt_selected i,
.gt_switcher .gt_selected svg,
.gt_switcher .gt_selected [class*="arrow"],
.gt_switcher .gt_selected [class*="icon"],
.gt_switcher .gt_selected::before,
.gt_switcher .gt_selected::after,
.gt_switcher .gt_selected > a::before {
    display: none !important;
    content: none !important;
}

.gt_switcher .gt_selected > a::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    right: 13px !important;
    top: 50% !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 1.5px solid #9a9a9a !important;
    border-bottom: 1.5px solid #9a9a9a !important;
    transform: translateY(-65%) rotate(45deg) !important;
    pointer-events: none !important;
}

.gt_switcher .gt_option,
.gt_switcher.open .gt_option {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    background: #111 !important;
    border: 1px solid #2f2f2f !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 20 !important;
}

.gt_switcher .gt_option a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 12px !important;
    margin: 0 !important;
    color: #fff !important;
    background: #111 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.gt_switcher .gt_option a:last-child { border-bottom: none !important; }
.gt_switcher .gt_option a:hover { background: #1b1b1b !important; }

.gt_switcher img,
.gt_switcher .gt_selected img,
.gt_switcher .gt_option img,
.gt_switcher a img {
    width: 20px !important;
    height: 14px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    display: block !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.gt_switcher a,
.gt_switcher span,
.gt_switcher div {
    font-family: inherit !important;
    color: #fff !important;
}

#google_translate_element2 {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    opacity: 0 !important;
}

.footer-lang-box,
.footer-lang-box .elementor-widget-container,
.footer-lang-box .elementor-widget-wrap,
.footer-lang-box .elementor-shortcode,
.footer-lang-box .elementor-html { overflow: visible !important; }


/* ============================================================
   6. VARIE
   ============================================================ */

/* Nasconde immagini profilo utente nei post Elementor */
.elementor-posts .elementor-post__avatar img { display: none; }

/* Bottone WhatsApp flottante */
.wa-float-round {
    position: fixed !important;
    right: 18px !important;
    bottom: 100px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    text-decoration: none !important;
}
.wa-float-round i { font-size: 30px; line-height: 1; }


/* ============================================================
   7. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .pf-tabs { flex-wrap: wrap; gap: 10px; }
    .pf-strip { flex-direction: column; text-align: center; gap: 4px; }
    .forum-header-line { flex-direction: column; align-items: flex-start; gap: 14px; }
    .forum-search-form { max-width: 100%; }
}

@media (max-width: 767px) {
    .footer-lang-box .elementor-widget-shortcode,
    .footer-lang-box .elementor-widget-container,
    .footer-lang-box .elementor-shortcode,
    .footer-lang-box .gtranslate_wrapper,
    .footer-lang-box .gt_switcher,
    .footer-lang-box .gt_switcher .gt_selected,
    .footer-lang-box .gt_switcher .gt_selected > a,
    .footer-lang-box .gt_switcher .gt_option {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
