/* ================== IMPOSTAZIONI GLOBALI E VARIABILI ================== */

:root {
    --dark-bg: #0d1a26;
    --section-bg-light: #132232;
    --card-bg: #192c3f;

    --accent-gold: #e2c186;
    --accent-green: #00e5a8;
    --accent-red: #ff5c5c;

    --text-light: #f0f0f0;
    --text-secondary: #a8b2b9;

    --panel-bg: rgba(13, 26, 38, 0.66);
    --panel-border: rgba(226, 193, 134, 0.28);
    --panel-border-green: rgba(0, 229, 168, 0.28);
    --panel-border-red: rgba(255, 92, 92, 0.28);

    --panel-text: #d8e0e6;
    --panel-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
}

h1,
h2,
h3 {
    color: var(--accent-gold);
    font-weight: 600;
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================== HEADER DINAMICO ================== */
.header {
    background: var(--section-bg-light);
    padding: 1.5rem 0;
    border-bottom: 1px solid #2a3a4a;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s ease-in-out;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 76px;
    width: auto;
    max-width: 260px;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease-in-out;
}

.header.scrolled .logo img {
    height: 58px;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-gold), #f1d7a7);
    color: var(--dark-bg);
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(0, 229, 168, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(0, 229, 168, 0.10);
    filter: brightness(1.02);
}

/* --- NAVIGAZIONE HEADER (MODIFICATA STILE BOTTONI) --- */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a3a4a;
    background: rgba(13, 26, 38, 0.6);
    color: #f0f0f0;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.nav-toggle:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.main-nav {
    display: flex;
    gap: 0.8rem;
    /* Spazio tra i bottoni */
    align-items: center;
}

/* MODIFICA: Stile Bottoni Header (uguali al footer) */
.main-nav a {
    text-decoration: none;
    background: var(--accent-gold);
    /* Sfondo dorato */
    color: var(--dark-bg);
    /* Testo scuro */
    font-weight: 600;
    border-radius: 5px;
    /* Angoli smussati */
    padding: 0.5rem 1rem;
    /* Spaziatura interna */
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(226, 193, 134, 0.3);
    background-color: #ebd1a0;
    /* Leggermente più chiaro all'hover */
    color: var(--dark-bg);
}

/* Highlight per la pagina corrente (Active state) */
.main-nav a[aria-current="page"] {
    background-color: #fff;
    /* Bianco per distinguere la pagina attiva */
    color: var(--dark-bg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Gestione Nav Mobile */
@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: rgba(13, 26, 38, 0.98);
        border: 1px solid #2a3a4a;
        border-radius: 14px;
        z-index: 999;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
}

/* ================== STILI GENERALI DELLE SEZIONI ================== */
section {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

section.qe-tight-top {
    padding-top: 2.5rem;
}

section.qe-tight-bottom {
    padding-bottom: 2.5rem;
}

.qe-lead {
    background: rgba(13, 26, 38, 0.44);
    border-bottom: 5px solid rgba(0, 229, 168, 0.70);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 16px;
    padding: 1.05rem 1.1rem;
    margin: 1rem auto 0;
    color: var(--panel-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 900px;
}

.qe-lead strong {
    color: var(--text-light);
}

.qe-lead em {
    color: var(--text-light);
}

.qe-lead-gold {
    border-bottom-color: rgba(226, 193, 134, 0.70);
}

.qe-lead-neutral {
    border-bottom-color: rgba(168, 178, 185, 0.35);
}

.qe-boundaries {
    margin: 1.1rem auto 0;
    max-width: 900px;
    background: rgba(13, 26, 38, 0.30);
    border: 1px solid rgba(226, 193, 134, 0.20);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

section h1,
section h2 {
    margin-bottom: 1.5rem;
}

.vision,
.focus,
.footer {
    background-color: var(--section-bg-light);
}

.hero h1 {
    font-size: 2.5rem;
}

.qe-hero-copy p:not(.qe-plain),
.qe-hero-copy .subtitle:not(.qe-plain) {
    background: var(--panel-bg);
    border-bottom: 4px solid rgba(0, 229, 168, 0.60);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    margin: 1rem 0 0;
    color: var(--panel-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero .section-note,
.background-section .section-note {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 1.25rem auto 0;
    color: var(--text-secondary);
    max-width: 900px;
}

.qe-hero-copy p:first-of-type {
    margin-top: 1.5rem;
}

.qe-hero-copy p+p {
    margin-top: 0.75rem;
}

.qe-hero-copy p a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vision h2,
.approach h2,
.focus h2,
.contact-section h2 {
    font-size: 2.2rem;
}

/* ================== EFFETTO SFONDO PARALLASSE ================== */
.background-section {
    position: relative;
    isolation: isolate;
    background-image: linear-gradient(rgba(13, 26, 38, 0.84), rgba(13, 26, 38, 0.84)), url('assets/images/quantic-eagle-investimenti_trading_quantico_futuristico_trading_ai_intelligenza_artificiale_assets_management.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: transparent;
}

.approach .feature-card {
    background: var(--card-bg);
}

/* ================== SEZIONE APPROACH (CARDS STANDARD) ================== */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #2a3a4a;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-card h3 strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ================== SEZIONE CONTATTI ================== */
.contact-subtitle {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a3a4a;
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.honeypot-field {
    display: none !important;
}

.privacy-consent {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    justify-content: center;
}

.privacy-consent input[type="checkbox"] {
    width: auto;
}

.privacy-consent a {
    text-decoration: underline;
}

#form-status {
    margin-top: 1rem;
    font-weight: 600;
}

.form-success {
    color: #7bdcb5;
}

.form-error {
    color: #cf2e2e;
}

/* ================== FOOTER ================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid #2a3a4a;
    background-color: var(--section-bg-light);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0;
}

.footer-links a {
    background: var(--accent-gold);
    color: var(--dark-bg);
    font-weight: 600;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(226, 193, 134, 0.15);
    color: var(--dark-bg);
}

.language-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.8rem;
    max-width: 800px;
    margin: 0;
}

.language-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.language-links a:hover {
    color: var(--accent-gold);
}

.footer .company-info {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a3a4a;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.6;
    text-align: center;
}

/* ================== MEDIA QUERIES GLOBALI ================== */
@media (max-width: 768px) {

    h1,
    .hero h1,
    .contact-section h2 {
        font-size: 2rem;
    }

    h2,
    .vision h2,
    .approach h2,
    .focus h2 {
        font-size: 1.8rem;
    }

    .nav-container {
        flex-direction: row;
        /* Manteniamo row per logo e toggle */
    }

    .header.scrolled {
        padding: 1rem 0;
    }

    section {
        padding: 3.5rem 1rem;
    }

    section.qe-tight-top {
        padding-top: 2rem;
    }

    section.qe-tight-bottom {
        padding-bottom: 2rem;
    }

    .qe-lead {
        padding: 0.95rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer .container {
        gap: 1.5rem;
    }

    .footer-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .language-links {
        gap: 0.3rem 0.6rem;
    }
}

/* ================== STILI AGGIUNTIVI (PAGINA PROJECT/VISUAL) ================== */

/* Griglia per i report grafici */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

/* Card specifica per le immagini */
.visual-card {
    padding: 1rem;
    background: var(--card-bg);
    text-align: left;
}

.visual-card img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #2a3a4a;
    margin-bottom: 1rem;
}

.visual-card h4 {
    margin-top: 0.5rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.visual-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Container Dashboard */
.dashboard-preview {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--accent-gold);
    margin-top: 2rem;
    text-align: center;
}

.dashboard-desc {
    margin-bottom: 1.5rem;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a3a4a;
}

/* Stili per la pagina del progetto (Details) */
.details-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.detail-card {
    background-color: rgba(13, 26, 38, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a3a4a;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(226, 193, 134, 0.1);
}

.detail-card h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-card p {
    margin: 0;
    max-width: 100%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.intro-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #2a3a4a;
}

.intro-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* ================== INSIGHTS FAQ / ACCORDION ================== */
.subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.section-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.notes-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Scope everything to .qe-faq to avoid impacting other details usage */
.qe-faq details.detail-card {
    cursor: default;
    scroll-margin-top: 110px;
}

.qe-faq details.detail-card summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}

.qe-faq details.detail-card summary::-webkit-details-marker {
    display: none;
}

.qe-faq details.detail-card summary:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 10px;
}

.qe-faq .faq-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.qe-faq .faq-summary h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.3;
}

.qe-faq .faq-summary p {
    margin: 0.5rem 0 0;
    max-width: 100%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.qe-faq .faq-icon {
    border: 1px solid #2a3a4a;
    background: rgba(13, 26, 38, 0.35);
    color: var(--accent-gold);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: none;
    user-select: none;
}

.qe-faq .faq-icon::before {
    content: '+';
}

.qe-faq details[open] .faq-icon {
    background: rgba(226, 193, 134, 0.12);
    border-color: var(--accent-gold);
}

.qe-faq details[open] .faq-icon::before {
    content: '−';
}

.qe-faq .faq-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a3a4a;
}

.qe-faq .faq-body h4 {
    margin: 0 0 0.75rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.qe-faq .faq-body p {
    margin: 0.75rem 0 0;
    max-width: 100%;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .qe-faq .faq-summary {
        grid-template-columns: 1fr;
    }

    .qe-faq .faq-icon {
        width: 40px;
        height: 40px;
    }
}

/* ================== QE STORY CALLOUTS (ICON + PANEL) ================== */

.qe-story-cards {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
    text-align: left;
}

.qe-story-card {
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.70), rgba(13, 26, 38, 0.50));
    border: 1px solid rgba(226, 193, 134, 0.18);
    border-radius: 16px;
    padding: 1.25rem 1.3rem;
    color: var(--panel-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.qe-story-card-problem {
    border-color: rgba(226, 193, 134, 0.22);
}

.qe-story-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 168, 0.22);
    background: rgba(13, 26, 38, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.qe-story-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-story-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.qe-story-label {
    margin: 0;
    max-width: none;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 168, 0.22);
    background: rgba(0, 229, 168, 0.08);
}

.qe-story-question {
    margin: 0.85rem 0 0;
    color: var(--text-light);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.35;
    background: rgba(226, 193, 134, 0.14);
    border: 1px solid rgba(226, 193, 134, 0.35);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.qe-story-emphasis-box {
    border: 1px solid rgba(0, 229, 168, 0.28);
    background: rgba(0, 229, 168, 0.10);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.qe-story-text {
    margin: 0.75rem 0 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-points {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    color: var(--panel-text);
    display: grid;
    gap: 0.55rem;
}

.qe-points li {
    margin: 0;
    padding-left: 1.35rem;
    position: relative;
}

.qe-points li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(0, 229, 168, 0.80);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.12);
    position: absolute;
    left: 0;
    top: 0.45rem;
}

.qe-risk-tags {
    list-style: none;
    margin: 0.95rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.qe-tag {
    display: block;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: none;
}

.qe-tag strong {
    color: var(--text-light);
    font-weight: 800;
}

.qe-tag-risk {
    border: 1px solid var(--panel-border-red);
    background: rgba(255, 92, 92, 0.10);
    color: var(--panel-text);
}

.qe-story-emphasis {
    margin: 0.95rem 0 0;
    max-width: none;
    color: var(--text-light);
    font-weight: 700;
}

.qe-story-emphasis-good {
    border-left: 3px solid rgba(0, 229, 168, 0.65);
    padding-left: 0.75rem;
    color: var(--panel-text);
}

@media (max-width: 768px) {
    .qe-story-card {
        flex-direction: column;
    }

    .qe-story-icon {
        width: 42px;
        height: 42px;
    }

    .qe-story-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ================== PREVIEW ACCESS LANDING (LAYOUT + VISUAL) ================== */

.qe-hero {
    overflow: hidden;
}

.qe-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.25rem;
    align-items: start;
}

.qe-hero-copy {
    text-align: left;
}

.qe-kicker {
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.qe-h1-prefix {
    color: var(--text-light);
    font-size: 2.5rem;
}

.qe-hero h1 {
    margin-top: 0.65rem;
    margin-bottom: 0.85rem;
    font-size: 2.5rem;
    line-height: 1.12;
}

.qe-hero-callouts {
    margin-top: 1.15rem;
    display: grid;
    gap: 0.9rem;
    max-width: 820px;
}

.qe-hero-callout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(13, 26, 38, 0.44);
    border-bottom: 5px solid rgba(0, 229, 168, 0.70);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 16px;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-hero-callout-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 168, 0.24);
    background: rgba(13, 26, 38, 0.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30);
}

.qe-hero-callout-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-green);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-hero-callout-text {
    margin: 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
    align-items: center;
    margin-top: 1.25rem;
}

.qe-tertiary-link {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

.qe-hero-panel {
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.78), rgba(13, 26, 38, 0.60));
    border: 1px solid var(--panel-border-green);
    border-radius: 18px;
    padding: 1.4rem 1.4rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    gap: 1rem;
}

.qe-panel-title {
    margin: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 229, 168, 0.16);
    font-size: 1.25rem;
    color: var(--text-light);
}

.qe-panel-subtitle {
    margin: 0.25rem 0 0;
    font-size: 1.02rem;
    color: var(--text-light);
}

.qe-panel-note {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    max-width: none;
}

.qe-checklist {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--panel-text);
    display: grid;
    gap: 0.55rem;
}

.qe-checklist li {
    margin: 0;
    padding-left: 1.35rem;
    position: relative;
    line-height: 1.55;
}

.qe-checklist li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(0, 229, 168, 0.80);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.12);
    position: absolute;
    left: 0;
    top: 0.45rem;
}

.qe-checklist-muted {
    color: var(--text-secondary);
}

.qe-checklist-muted li::before {
    background: rgba(0, 229, 168, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.08);
}

.qe-plain {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.qe-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qe-proof-section {
    position: relative;
}

.qe-gates .feature-card {
    background: linear-gradient(180deg, rgba(25, 44, 63, 0.95), rgba(19, 34, 50, 0.95));
    border: 1px solid rgba(0, 229, 168, 0.16);
}

.qe-gates .feature-card h3 {
    min-height: 4.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.qe-gates .feature-card h3 strong {
    white-space: nowrap;
}

.qe-gates .feature-card p {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

@media (max-width: 768px) {
    .qe-gates .feature-card {
        padding: 1.4rem;
    }

    .qe-gates .feature-card h3 {
        min-height: 5.4rem;
    }
}

.qe-gates .qe-gate-media {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 193, 134, 0.18);
}

.qe-gates .qe-gate-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a3a4a;
    background: rgba(13, 26, 38, 0.35);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.qe-gates .qe-gate-link:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 193, 134, 0.60);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

.qe-gates .qe-gate-link img,
.qe-gates .qe-gate-img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    display: block;
    object-fit: contain;
}

.qe-gates .qe-gate-caption {
    margin: 0.65rem 0 0;
    max-width: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {

    .qe-gates .qe-gate-link img,
    .qe-gates .qe-gate-img {
        height: 160px;
    }
}

.qe-section-head {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.qe-problem-section .subtitle {
    max-width: 900px;
}

.qe-solution-panel {
    max-width: 980px;
    margin: 1.5rem auto 0;
    text-align: left;
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.58), rgba(13, 26, 38, 0.38));
    border: 1px solid rgba(0, 229, 168, 0.30);
    border-radius: 18px;
    padding: 1.25rem 1.25rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

.qe-solution-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    align-items: start;
}

.qe-solution-panel h3 {
    margin: 0 0 0.35rem;
    color: var(--text-light);
    font-size: 1.25rem;
}

.qe-solution-panel p {
    margin: 0.6rem 0 0;
    max-width: none;
    color: var(--panel-text);
}

.qe-solution-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.qe-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.qe-pill-good {
    border: 1px solid rgba(0, 229, 168, 0.28);
    background: rgba(0, 229, 168, 0.10);
    color: var(--panel-text);
}

.qe-pill-gold {
    border: 1px solid rgba(226, 193, 134, 0.35);
    background: rgba(226, 193, 134, 0.12);
    color: var(--panel-text);
    padding: 0.45rem 0.95rem;
    line-height: 1.35;
}

.qe-gate-pills {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.qe-solution-cta {
    margin-top: 1.1rem;
    display: flex;
    justify-content: flex-start;
}

.qe-highlight-card {
    border-color: rgba(0, 229, 168, 0.22);
    background: linear-gradient(180deg, rgba(13, 26, 38, 0.55), rgba(13, 26, 38, 0.35));
}

.qe-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.qe-badge {
    display: inline-block;
    border: 1px solid rgba(0, 229, 168, 0.26);
    background: rgba(0, 229, 168, 0.10);
    color: var(--panel-text);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.qe-request-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.qe-request-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: start;
    text-align: left;
}

.qe-request-copy h2 {
    margin-bottom: 0.75rem;
}

.qe-request-points {
    margin-top: 1.25rem;
    background: rgba(13, 26, 38, 0.55);
    border: 1px solid rgba(0, 229, 168, 0.18);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-form-panel {
    background: rgba(19, 34, 50, 0.88);
    border: 1px solid rgba(0, 229, 168, 0.22);
    border-radius: 18px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-form-title {
    margin: 0 0 0.45rem;
    color: var(--text-light);
    font-size: 1.25rem;
}

.qe-form-subtitle {
    margin: 0 0 1.45rem;
    color: var(--text-secondary);
    max-width: none;
}

.qe-form-panel .contact-form {
    max-width: none;
    margin: 0;
}

.qe-form-panel .contact-form input,
.qe-form-panel .contact-form textarea {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 229, 168, 0.14);
}

.qe-form-panel .contact-form textarea {
    min-height: 360px;
    resize: vertical;
}

.qe-form-panel .contact-form input:focus,
.qe-form-panel .contact-form textarea:focus {
    border-color: rgba(0, 229, 168, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.12);
}

.qe-disclaimer-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.qe-disclaimer-panel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: rgba(13, 26, 38, 0.55);
    border: 1px solid rgba(0, 229, 168, 0.18);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.qe-disclaimer-text {
    margin: 0;
    max-width: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .qe-hero-grid {
        grid-template-columns: 1fr;
    }

    .qe-request-grid {
        grid-template-columns: 1fr;
    }

    .qe-story-grid {
        grid-template-columns: 1fr;
    }

    .qe-solution-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .qe-hero h1 {
        font-size: 2.25rem;
    }

    .qe-hero-actions {
        align-items: stretch;
    }

    .qe-hero-actions .cta-button {
        width: 100%;
        text-align: center;
    }
}

.qe-gold-strong {
    color: var(--accent-gold);
    font-weight: 800;
}

/* PROJECT HERO ONLY: forza bordo inferiore gold (non influenza altre pagine) */
#project-hero .qe-lead.qe-lead-neutral {
    border-bottom-color: rgba(226, 193, 134, 0.70);
}

/* ================== QE UTILITY (BACK TO TOP + IT/EN) ================== */

.qe-utility {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;

    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));

    max-width: calc(100vw - 2rem);

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.qe-utility.qe-utility--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.qe-utility-group {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;

    max-width: 100%;

    border: 1px solid rgba(0, 229, 168, 0.18);
    background: rgba(13, 26, 38, 0.55);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qe-utility-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.65rem 0.85rem;
    cursor: pointer;

    min-height: 48px;

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.qe-utility-btn-top {
    text-decoration: none;
}

.qe-utility-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qe-utility-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(226, 193, 134, 0.22);
}

.qe-utility-btn:hover {
    background: rgba(226, 193, 134, 0.10);
}

.qe-utility-btn:active {
    background: rgba(226, 193, 134, 0.16);
}

.qe-utility-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: -2px;
}

.qe-utility-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.65rem);

    min-width: 160px;
    max-width: calc(100vw - 2rem);

    display: none;
    padding: 0.4rem;
    border-radius: 14px;

    background: rgba(13, 26, 38, 0.92);
    border: 1px solid rgba(226, 193, 134, 0.22);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.50);
}

.qe-utility.qe-utility--open .qe-utility-menu {
    display: grid;
    gap: 0.35rem;
}

.qe-utility-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.6rem 0.8rem;
    border-radius: 10px;

    color: var(--text-light);
    background: rgba(19, 34, 50, 0.75);
    border: 1px solid rgba(0, 229, 168, 0.14);

    font-weight: 700;
    text-decoration: none;

    min-height: 44px;
}

.qe-utility-menu-item:hover {
    background: rgba(226, 193, 134, 0.14);
    border-color: rgba(226, 193, 134, 0.35);
    color: var(--text-light);
}

.qe-utility-menu-item:active {
    background: rgba(226, 193, 134, 0.18);
}

.qe-utility-menu-item:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

@media (hover: none) {
    .qe-utility-btn:hover {
        background: transparent;
    }
}

@media (max-width: 768px) {
    .qe-utility {
        right: 1rem;
        bottom: 1rem;

        right: calc(0.85rem + env(safe-area-inset-right));
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
    }

    .qe-utility-btn {
        padding: 0.6rem 0.75rem;
        min-height: 48px;
    }
}

@media (max-width: 420px) {
    .qe-utility-btn span {
        display: none;
    }

    .qe-utility-btn {
        gap: 0;
        padding: 0.65rem 0.8rem;
    }

    .qe-utility-menu {
        min-width: 140px;
    }
}