/* Single Agenzia Template Styles */
.single-ag-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

@media (min-width: 1200px) {
    .single-ag-container {
        max-width: 1200px;
    }
}

/* Hero Section */
.single-ag-hero__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.single-ag-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 5rem;
    margin-top: 1rem;
}

.single-ag-hero__left {
    text-align: center;
}

.single-ag-hero__right {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
    justify-content: flex-end;
}

.single-ag-hero__logo-wrap {
    margin-bottom: 5px;
}

.single-ag-hero__logo {
    height: 55px;
    margin: 0 auto;
    object-fit: contain;
}

.single-ag-hero__title-seo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 22px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.single-ag-hero__subtitle-seo h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #072a56;
    margin-bottom: 15px;
}

.single-ag-hero__description-seo {
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
}

.single-ag-hero__title {
    margin: 0 0 16px;
    font-size: 32px;
    color: #1a1a1a;
}

.single-ag-hero__feature-tag {
    display: inline-block;
    background: #e9f3dc;
    color: #395c0b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.single-ag-hero__rating {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.single-ag-hero__rating-number {
    font-size: 14px;
    height: 14px;
    color: #3333339c;
}

.single-ag-hero__trustpilot-logo {
    display: flex;
    width: 100%;
    max-width: 90px;
}

.single-ag-hero__trustpilot-text {
    font-size: 15px;
    color: #000000;
    display: flex;
    position: relative;
    justify-content: center;
    column-gap: 11px;
    flex-direction: row;
    align-content: flex-end;
    align-items: flex-start;
}

.single-ag-hero__star {
    font-size: 18px;
    position: relative;
}

.single-ag-hero__star.filled {
    content: '\2605';
    color: #ffa62f;
}

.single-ag-hero__star.half-filled {
    content: '\2605';
    color: #ffa62f40;
}

.single-ag-hero__star.half-filled::before {
    content: '\2605';
    position: absolute;
    left: 0;
    top: -2px;
    width: 50%;
    overflow: hidden;
    color: #ffa62f;
}

.single-ag-hero__star.empty {
    content: '\2606';
    color: #ffa83c40;
}

.single-ag-hero__rating-num {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* CTA Section */
.single-ag-hero__cta {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.single-ag-hero__pricing {
    margin-bottom: 20px;
}

.single-ag-hero__price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.single-ag-hero__price-value {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.single-ag-hero__price-subtitle {
    font-size: 14px;
    color: #666;
}

.single-ag-hero__button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
}

.single-ag-hero__button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.single-ag-hero__button--primary {
    background: #136fcb;
    color: #fff !important;
    font-weight: 500;
}

.single-ag-hero__button--primary:hover {
    background: #135e96;
}

.single-ag-hero__button--secondary {
    color: #444;
    border: 1px solid #0262aa75;
    font-weight: 400;
}

.single-ag-hero__button--secondary:hover {
    background: #e9ecef;
    font-weight: 400 !important;
}

.single-ag-hero__button:hover {
    background: #2496eb;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.single-ag-hero__disclaimer {
    font-size: 12px;
    color: #666;
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

/* Main Content */
.single-ag-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 90px 0;
}

.single-ag-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px;
    padding: 30px;
    margin-bottom: 30px;
}

.single-ag-content a {
    color: #058aff;
    text-decoration: underline;
}

.single-ag-section__title {
    font-size: 1.87rem;
    line-height: 1.70;
    font-weight: 800;
    color: inherit;
    position: relative;
    margin: 0 0 1rem;
    padding-top: 0!important;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
}

.single-ag-section__title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    border-radius: 3px;
}

.single-ag-overview__content,
.single-ag-details__content {
    color: inherit;
    line-height: 1.6;
    font-size: 16px;
}

/* Features Grid */
.single-ag-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.single-ag-features__card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.single-ag-features__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.single-ag-features__title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    text-align: center;
}

/* Sidebar Widgets */
.single-ag-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px;
    padding: 24px;
    margin-bottom: 24px;
}

.single-ag-widget__title {
    margin: 0 0 16px;
    font-size: 18px;
    color: inherit;
    font-weight: 600;
}


.single-ag-hero__disclaimer {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

.single-ag-widget__disclaimer {
    margin-top: 10px;
    padding: 8px;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 4px;
}


.single-ag-widget--cta .single-ag-widget__disclaimer {
    display: block;
    margin-top: 12px;
}



/* Category Widget */
.single-ag-category__name {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Trustpilot Widget */
.single-ag-trustpilot__score {
    font-size: 24px;
    font-weight: 700;
    color: #00b67a;
    text-align: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

/* Quick Info Widget */
.single-ag-quickinfo__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-ag-quickinfo__item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-ag-quickinfo__item:last-child {
    border-bottom: none;
}

.single-ag-quickinfo__label {
    color: #666;
    font-size: 14px;
}

.single-ag-quickinfo__value {
    color: inherit;
    font-weight: 500;
    text-align: right;
    font-size: 14px;
}

.single-ag-undertext-value {
    font-size: 11px;
    margin-top: 0px;
    color: #595959;
}

/* Widget CTA Button */
.single-ag-widgetcta__button {
    display: block;
    background: #136fcb;
    color: white !important;
    padding: 11px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.single-ag-widgetcta__button:hover {
    background: #008afe;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Screenshot */
.single-ag-hero__screenshot img {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px;
    float: right;
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: cover;
    border-radius: 5px;
}

/* VIDEO */
.single-ag-video {
    position: relative;
    width: 100%;
    max-width: 700px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.single-ag-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ */
.single-ag-faq-section {
    margin: 8rem auto;
    padding: 0 20px;
}

.single-ag-faq-list {
    margin-top: 50px;
}

.single-ag-faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    width: 100%;
}

.single-ag-faq-trigger {
    width: 100%;
    text-align: left;
    padding: 20px 40px 20px 0;
    position: relative;
    border: none;
    background: none !important;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    color: inherit;
    display: flex;
    box-shadow: none !important;
}

.single-ag-faq-trigger:hover {
    color: #2271b1;
    background: none;
    box-shadow: none;
}

.single-ag-faq-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
}

.single-ag-faq-icon::before,
.single-ag-faq-icon::after {
    content: '';
    position: absolute;
    background: #666;
    transition: transform 0.3s ease;
}

.single-ag-faq-icon::before {
    width: 1.5px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.single-ag-faq-icon::after {
    width: 100%;
    height: 1.5px;
    top: 50%;
    transform: translateY(-50%);
}

.single-ag-faq-trigger.active .single-ag-faq-icon::before {
    transform: translateX(-50%) rotate(90deg);
}

.single-ag-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.single-ag-faq-answer {
    padding: 0 0 20px;
    color: #666;
    line-height: 1.6;
}

.single-ag-faq-description {
    font-size: 1.25rem;
    font-weight: 400;
    color: #5a5f6a;
}

/* Agenzia Badge */
.agenzia-badge {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
}

.agenzia-badge-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

/* Tabella Singola on Single */
.single-ag-container .tabelle_container .single_row {
    box-shadow: none !important;
}

.single-ag-container .tabelle_container .main_row {
    background: #fff;
    border-radius: inherit;
    padding: 0;
}

.single-ag-container .tabelle_container .single_row .bottom_bar {
    background: none;
}

.single-ag-container .single-ag-sidebar .tabelle_container {
    max-width: 100%;
    padding-bottom: 0;
}

.single-ag-container .single-ag-sidebar .tabelle_container .single_row {
    display: block;
    margin-bottom: 0;
}

.single-ag-container .single-ag-sidebar .tabelle_container .main_row {
    flex-direction: column;
    align-items: center;
    display: flex;
    position: relative;
    transition: 2s ease-in;
    justify-content: space-around;
    min-height: 200px;
}

.single-ag-container .single-ag-sidebar .tabelle_container .single_row .main_row .rating-container {
    flex-grow: 1;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin-top: -10px;
    align-items: center;
    font-size: 14px;
}

.single-ag-container .single-ag-sidebar .tabelle_container .brand img {
    padding-bottom: 13px;
    height: auto;
    width: auto;
    padding-left: 0;
}

.single-ag-container .single-ag-sidebar .tabelle_container .brand {
    border-right: none;
    height: 100%;
    width: 100%;
    min-width: 117px;
    flex-direction: row;
    margin-top: 0;
}

.single-ag-container .single-ag-sidebar .tabelle_container .logobrand {
    padding-left: 0;
}

.single-ag-container .single-ag-sidebar .tabelle_container .caratteristiche {
    padding-left: 10px;
    flex-basis: 55%;
    order: 2;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 25px 15px;
    flex-direction: column;
}

.single-ag-container .single-ag-sidebar .tabelle_container .feature {
    order: 3;
    flex-basis: 50%;
    display: flex;
    width: 100%;
    padding-left: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    flex-direction: column;
    justify-content: center;
    border: none;
    padding: 2px;
    margin: 25px 0;
}

.single-ag-container .single-ag-sidebar .tabelle_container .cta-btn-container {
    display: inline-block;
    align-items: center;
    justify-content: center;
    order: 5;
    margin: 0;
    flex-basis: 100%;
    width: 100%;
}

.single-ag-container .single_row .main_row .cta-btn button {
    border-radius: 5px !important;
    font-family: inherit;
    padding: 11px;
    font-size: 17px;
}

.single-ag-container .single-ag-sidebar .bottom_bar {
    display: none;
}

.single-ag-container .single-ag-sidebar .feature_mini {
    display: none;
}

/* Articoli correlati */
.single-ag-related__article {
    margin: 60px auto;
    padding: 0 20px;
}

.single-ag-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
    gap: 24px;
    justify-content: start;
    margin: 50px 0;
}

.single-ag-article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single-ag-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.single-ag-article-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.single-ag-article-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-ag-article-card:hover .single-ag-article-card__image img {
    transform: scale(1.05);
}

.single-ag-article-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.single-ag-article-card__title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #2271b1;
    font-weight: 600;
}

.single-ag-article-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.single-ag-article-card__title a:hover {
    color: #135e96;
}

.single-ag-article-card__excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-top: auto;
}

/* Related Agency */
.single-ag-related {
    margin: 8rem auto;
    padding: 0 20px;
}

.single-ag-related .tab_horizontal_primary {
    margin: 30px 0 0;
}

.single-ag-related .tabelle_orizzontali_container {
    padding-right: 60px;
}

.single-ag-related .tabelle_orizzontali_container::after {
    width: 50px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .single-ag-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .single-ag-articles__grid {
        justify-content: center;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .single-ag-hero__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-ag-grid {
        grid-template-columns: 1fr;
        margin: 30px 0;
    }
}

@media (max-width: 768px) {
    .single-ag-container {
        padding: 10px;
    }

    .single-ag-section__title {
        font-size: 1.5rem;
    }

    .single-ag-hero {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
        margin-bottom: 2rem;
    }

    .single-ag-hero__left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .single-ag-hero__logo-wrap {
        width: 100px;
        margin: 0 auto 15px auto;
    }

    .single-ag-hero__title-seo {
        font-size: 2rem;
    }

    .single-ag-hero__subtitle-seo {
        font-size: 1rem;
    }

    .single-ag-hero__button-group {
        flex-direction: column;
        gap: 10px;
    }

    .single-ag-hero__button {
        width: 100%;
        min-width: auto;
    }

    .single-ag-hero__right {
        margin-top: 20px;
        justify-content: center;
    }

    .single-ag-hero__screenshot img {
        float: none;
        margin: 0 auto;
        max-height: 200px;
    }

    .single-ag-features__grid {
        grid-template-columns: 1fr;
    }

    .single-ag-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .single-ag-sidebar {
        order: -1;
    }

    .single-ag-faq-section {
        margin: 30px auto;
        padding: 0 15px;
    }

    .single-ag-articles__grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .single-ag-article-card {
        max-width: 100%;
    }

    .single-ag-container .tabelle_container .main_row {
        padding: 0;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .single-ag-hero__title {
        font-size: 1.5rem;
    }

    .single-ag-hero__price-value {
        font-size: 1.5rem;
    }

    .single-ag-faq-trigger {
        font-size: 1rem;
        padding: 15px 30px 15px 0;
    }

    .single-ag-quickinfo__label,
    .single-ag-quickinfo__value {
        font-size: 0.875rem;
    }

    .single-ag-related {
        margin: 3rem auto;
    }
}