/* ==========================================================================
   UP AGENZIA WEB - MODERN FAQ PAGE STYLES
   ========================================================================== */

.faq-page-main {
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
    padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.faq-hero-section {
    position: relative;
    padding: 130px 0 70px 0;
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 50%, #1e293b 100%);
    color: #ffffff;
    overflow: hidden;
}

.faq-hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, rgba(255, 87, 34, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq-hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(30, 41, 59, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.faq-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 24px;
}

.faq-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-breadcrumb a:hover {
    color: #ff5722;
}

.faq-breadcrumb .sep {
    font-size: 10px;
    color: #64748b;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 87, 34, 0.15);
    color: #ff7043;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.faq-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.faq-hero-title .highlight-gradient {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-hero-desc {
    font-size: 17px;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 35px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Search & Filter Bar
   -------------------------------------------------------------------------- */
.faq-search-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.faq-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 8px 6px 22px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-search-box:focus-within {
    border-color: #ff5722;
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.2);
}

.faq-search-box i.search-icon {
    color: #94a3b8;
    font-size: 17px;
    margin-right: 12px;
}

.faq-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background: transparent !important;
    padding: 10px 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

.faq-search-input::placeholder {
    color: #94a3b8 !important;
}

.faq-search-clear {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    margin-right: 6px;
}

.faq-search-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Category Filter Tabs / Pills
   -------------------------------------------------------------------------- */
.faq-filter-section {
    padding: 24px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 75px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.faq-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.faq-pill-btn i {
    font-size: 13px;
    color: #64748b;
    transition: color 0.2s ease;
}

.faq-pill-btn:hover {
    background: #f1f5f9;
    color: #ff5722;
    border-color: #cbd5e1;
}

.faq-pill-btn:hover i {
    color: #ff5722;
}

.faq-pill-btn.active {
    background: #ff5722;
    color: #ffffff;
    border-color: #ff5722;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.28);
}

.faq-pill-btn.active i {
    color: #ffffff;
}

.faq-pill-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 2px;
}

.faq-pill-btn.active .faq-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   FAQ Main Content & Category Groups
   -------------------------------------------------------------------------- */
.faq-content-section {
    padding: 60px 0 80px 0;
}

.faq-group-block {
    margin-bottom: 50px;
    scroll-margin-top: 150px;
}

.faq-group-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-group-header .group-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.faq-group-header .group-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.faq-group-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.faq-group-header p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   FAQ Accordion Cards
   -------------------------------------------------------------------------- */
.faq-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-card-modern {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.faq-card-modern:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.faq-card-modern.active {
    border-color: #ff7043;
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.08);
}

.faq-question-btn {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.faq-question-btn:hover {
    color: #ff5722;
}

.faq-card-modern.active .faq-question-btn {
    color: #ff5722;
}

.faq-toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.faq-card-modern:hover .faq-toggle-icon {
    background: #e2e8f0;
    color: #0f172a;
}

.faq-card-modern.active .faq-toggle-icon {
    background: #ff5722;
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-answer-pane {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.25s ease;
    padding: 0 24px;
}

.faq-card-modern.active .faq-answer-pane {
    max-height: 500px;
    padding: 0 24px 22px 24px;
    transition: max-height 0.4s ease-in-out, padding 0.25s ease;
}

.faq-answer-pane p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.faq-answer-pane ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
    color: #475569;
}

.faq-answer-pane li {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* No results state */
.faq-no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin: 30px 0;
}

.faq-no-results i {
    font-size: 42px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.faq-no-results h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.faq-no-results p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   CTA Support Card
   -------------------------------------------------------------------------- */
.faq-support-section {
    padding: 20px 0 70px 0;
}

.faq-support-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 45px 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.faq-support-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.faq-support-info {
    max-width: 580px;
    position: relative;
    z-index: 2;
}

.faq-support-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 87, 34, 0.18);
    color: #ff7043;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-support-info h3 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.faq-support-info p {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

.faq-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.btn-faq-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff5722;
    color: #ffffff !important;
    padding: 13px 26px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-faq-contact:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 87, 34, 0.45);
}

.btn-faq-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 13px 24px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.btn-faq-whatsapp i {
    color: #25d366;
    font-size: 18px;
}

.btn-faq-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Modern Newsletter Section (Consistent with Home, Prezzi, Portfolio)
   -------------------------------------------------------------------------- */
.home-newsletter-widget {
    position: relative;
    padding: 60px 0 80px 0;
    background: #ffffff;
    overflow: hidden;
}

.home-newsletter-widget .newsletter-card-inner {
    position: relative;
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 60%, #1e293b 100%);
    border-radius: 24px;
    padding: 56px 48px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.home-newsletter-widget .newsletter-card-inner::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.2) 0%, rgba(255, 87, 34, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-newsletter-widget .newsletter-card-inner::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-newsletter-widget .newsletter-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.home-newsletter-widget .newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 87, 34, 0.16);
    color: #ff7043;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.home-newsletter-widget .newsletter-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.home-newsletter-widget .newsletter-desc {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 32px;
}

.home-newsletter-widget .newsletter-form-modern {
    display: flex;
    flex-direction: row;
    gap: 12px;
    max-width: 580px;
    margin: 0 auto;
}

.home-newsletter-widget .newsletter-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 50px !important;
    padding: 14px 22px !important;
    font-size: 15px !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    height: auto !important;
    line-height: normal !important;
}

.home-newsletter-widget .newsletter-input-field::placeholder {
    color: #94a3b8 !important;
}

.home-newsletter-widget .newsletter-input-field:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #ff5722 !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.25) !important;
}

.home-newsletter-widget .newsletter-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff5722;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.35);
    transition: all 0.25s ease;
}

.home-newsletter-widget .newsletter-submit-btn:hover {
    background: #e64a19;
    box-shadow: 0 12px 26px rgba(255, 87, 34, 0.5);
    transform: translateY(-2px);
}

.home-newsletter-widget .newsletter-submit-btn i {
    transition: transform 0.2s ease;
}

.home-newsletter-widget .newsletter-submit-btn:hover i {
    transform: translateX(4px);
}

.home-newsletter-widget .newsletter-note {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 14px;
    margin-bottom: 0;
}

.home-newsletter-widget .newsletter-note i {
    color: #22c55e;
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .faq-hero-section {
        padding: 110px 0 50px 0;
    }
    .faq-hero-title {
        font-size: 32px;
    }
    .faq-hero-desc {
        font-size: 15.5px;
    }
    .faq-filter-section {
        top: 65px;
    }
    .faq-support-card {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }
    .faq-support-info {
        max-width: 100%;
    }
    .faq-support-actions {
        justify-content: center;
        width: 100%;
    }
    .home-newsletter-widget .newsletter-card-inner {
        padding: 40px 24px;
    }
    .home-newsletter-widget .newsletter-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .faq-hero-section {
        padding: 95px 0 45px 0;
    }
    .faq-hero-title {
        font-size: 26px;
    }
    .faq-pills-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .faq-pill-btn {
        white-space: nowrap;
    }
    .faq-question-btn {
        font-size: 15px;
        padding: 16px 18px;
    }
    .faq-answer-pane {
        padding: 0 18px;
    }
    .faq-card-modern.active .faq-answer-pane {
        padding: 0 18px 18px 18px;
    }
    .home-newsletter-widget .newsletter-form-modern {
        flex-direction: column;
        gap: 12px;
    }
    .home-newsletter-widget .newsletter-input-field,
    .home-newsletter-widget .newsletter-submit-btn {
        width: 100%;
    }
    .faq-support-actions {
        flex-direction: column;
    }
    .btn-faq-contact,
    .btn-faq-whatsapp {
        width: 100%;
        justify-content: center;
    }
}
