/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #ffffff;
    color: #202945;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f1f1;
}

.logo-search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 30px;
    width: auto;
}

.search-form {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 24px;
    box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
    transition: box-shadow .3s ease;
}

.search-form:hover {
    box-shadow: 0 3px 11px 0 rgb(62 65 61 / 18%);
}

.search-form input[type="text"] {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 12px;
    background: url('https://www.econfind.com/assets/images/search-icon.svg') no-repeat center;
    background-size: 22px;
    border: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.clear-icon {
    position: absolute;
    right: 40px;
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: #c3c8da;
}

/* REVIEW */


.review-flex { display: flex; flex-wrap: wrap; align-items: flex-start; margin-bottom: 2rem; gap: 1.5rem; }
.review-number { font-size: 1.4rem; font-weight: 700; color: #2b3d63; margin-bottom: .5rem; }
.review-text { flex: 1 1 60%; }
.review-btn { display: inline-block; margin-top: 1rem; padding: 0.6rem 1.2rem; border: 1px solid #2b3d63; border-radius: 6px; background: transparent; color: #2b3d63; font-weight: 600; text-decoration: none; transition: all 0.2s ease; cursor: pointer; }
.review-btn:hover { background: #2b3d63; color: #fff; }
.review-img { flex: 1 1 35%; text-align: right; }
.review-img img { height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 464px; }
@media(max-width:768px){ .review-flex{flex-direction:column;} .review-img{text-align:center;} }


/* Results Header */
.results-header {
    background: #f8f9fa;
    padding: 15px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.results-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-label {
    color: #126adf;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid #126adf;
    padding-bottom: 0px;
}

.results-title {
    font-size: 18px;
    color: #202945;
    font-weight: 600;
}

.results-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #70757a;
}

.disclaimer-popup {
    position: relative;
    display: inline-block;
}

.disclaimer-text {
    cursor: pointer;
    color: #70757a;
    text-decoration: underline;
}

.popup-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
    font-size: 12px;
    line-height: 1.5;
}

.disclaimer-popup:hover .popup-content {
    display: block;
}

/* Methodology / Incipit */
.methodology {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    margin-bottom: 40px;
    background: #fdf9f0;
    border-radius: 15px;
}

.methodology h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 6px;
}

.methodology p {
    color: #4d5156;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Cards 3-col (layout Trading) riusate per i POS */
.broker-cards-section {
    margin-bottom: 60px;
}

.broker-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.broker-card[role="link"] {
    cursor: pointer;
}

.broker-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 2px solid #e8eaed;
    position: relative;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.broker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-color: #4285f4;
}

.broker-card.featured {
    background: linear-gradient(to bottom, #fffcf3, #fff);
    border-color: #fbbc04;
}

.broker-card.featured:hover {
    border-color: #f9ab00;
    box-shadow: 0 8px 24px rgb(255 190 1 / 22%);
}

.broker-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbc04, #f9ab00);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(251,188,4,.3);
    z-index: 10;
}

.broker-rank {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #4285f4;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.broker-card.featured .broker-rank {
    background: linear-gradient(135deg, #fbbc04, #f9ab00);
    color: #fff;
    box-shadow: 0 2px 8px rgba(251,188,4,.3);
}

.broker-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}

.broker-logo {
    height: 170px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 12px;
}

.broker-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    color: #fbbc04;
    font-size: 18px;
    letter-spacing: 2px;
}

.score {
    color: #5f6368;
    font-size: 16px;
    font-weight: 600;
}

.rating-label {
    font-size: 12px;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

/* Key Features (adattate ai POS) */
.broker-key-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.key-feature {
    text-align: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.key-feature-label {
    font-size: 12px;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.key-feature-value {
    font-size: 20px;
    font-weight: 700;
    color: #0d8043;
}

.key-feature-value.special {
    color: #1a73e8;
}

/* Bullets & Chips */
.broker-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.broker-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #3c4043;
    line-height: 1.6;
}

.broker-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0d8043;
    font-weight: bold;
    font-size: 16px;
}

.broker-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.feature-chip {
    background: #e8f0fe;
    color: #1967d2;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Badges */
.broker-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trust-badge {
    background: #e6f7eb;
    color: #0d8043;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* CTA */
.broker-cta {
    display: block;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
    padding: 16px 24px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: all .3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.broker-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .5s ease;
}

.broker-card:hover .broker-cta::before {
    left: 100%;
}

.broker-cta.featured-cta {
    background: linear-gradient(135deg, #fbb504, #f9a100);
    font-size: 17px;
    padding: 12px 24px;
}

/* Toggle Details */
.broker-details-toggle {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8eaed;
}

.details-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
}

.details-button:hover {
    color: #1557b0;
    background: #f8f9fa;
    border-radius: 8px;
}

.details-arrow {
    transition: transform .3s ease;
}

.details-button.active .details-arrow {
    transform: rotate(180deg);
}

.broker-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8eaed;
}

.broker-details.show {
    display: block;
}

.details-table {
    width: 100%;
    font-size: 13px;
}

.details-table tr {
    border-bottom: 1px solid #f8f9fa;
}

.details-table td {
    padding: 10px 4px;
    vertical-align: top;
}

.details-table td:first-child {
    color: #70757a;
    width: 40%;
    font-weight: 500;
}

/* Footer */
.broker-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f8f9fa;
    color: #70757a;
    font-size: 12px;
}

/* FAQ */
.faq-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.faq-header {
    font-size: 20px;
    color: #202945;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eaed;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    background: #fff;
    color: #202945;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all .3s ease;
    position: relative;
    padding-right: 40px;
}

.faq-question:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.faq-question::after {
    content: 'â–¼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform .3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 15px 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
    font-size: 15px;
    line-height: 1.6;
    color: #5f6368;
}

.faq-answer.show {
    display: block;
}

.faq-answer a {
    color: #1a73e8;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Results (snippet) */
.search-results-section {
    margin-top: 40px;
}

.result-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all .3s ease;
}

.result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.result-site-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.site-icon {
    width: 20px;
    height: 20px;
}

.site-details {
    display: flex;
    flex-direction: column;
}

.result-site-name {
    font-size: 14px;
    color: #202945;
    font-weight: 500;
}

.site-details span {
    font-size: 12px;
    color: #70757a;
}

.result-link {
    display: block;
    font-size: 18px;
    color: #1a0dab;
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 600;
}

.result-link:hover {
    text-decoration: underline;
}

.result-snippet {
    color: #4d5156;
    font-size: 15px;
    line-height: 1.5;
}

.sitelinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8eaed;
}

.sitelink-item h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
}

.sitelink-item a {
    color: #1a0dab;
    text-decoration: none;
}

.sitelink-item a:hover {
    text-decoration: underline;
}

.sitelink-description {
    color: #70757a;
    font-size: 14px;
    line-height: 1.4;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.pagination a {
    display: inline-block;
    padding: 10px 30px;
    background: #f1f3f4;
    color: #202124;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    transition: all .3s ease;
}

.pagination a:hover {
    background: #e8eaed;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e8eaed;
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.slogan {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 20px;
}

.disclaimer {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.disclaimer p {
    font-size: 12px;
    color: #70757a;
    line-height: 1.6;
    text-align: left;
}

.footer-links {
    font-size: 12px;
    color: #70757a;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .broker-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .sitelinks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo-search-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-form {
        max-width: 100%;
        width: 100%;
    }

    .results-header-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .results-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .broker-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .broker-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .broker-key-features {
        grid-template-columns: 1fr 1fr;
    }

    .broker-details-toggle {
        display: block !important;
    }

    .broker-details {
        display: none !important;
    }

    .broker-details.show {
        display: block !important;
    }

    .pagination a {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .broker-badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .broker-rank {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .results-title {
        font-size: 16px;
    }

    .broker-key-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
