/* Home Page Specific Styles */
:root {
    --brand-green-ape: #33aa11;
}
.how-it-works-section {
    transition: background 0.5s ease;
    z-index: 1;
    /* Assicura che l'ape stia sopra altre sezioni se necessario */
}

.how-it-works-section.bg-privati {
    background: linear-gradient(90deg, #f0fdf4, #dcfce7 50%, #f0fdf4);
}

.how-it-works-section.bg-professionisti {
    background: linear-gradient(90deg, #fafcff, #e6f4ff 50%, #f0f9ff);
}

/* Tabs Toggle */
.how-tabs-container {
    background-color: #fff;
    padding: 0;
    border-radius: 100px;
    display: inline-flex;
    border: 2px solid #000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.how-tab-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    /* Default per 2 bottoni */
    background-color: #000;
    border-radius: 100px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.how-tab-btn {
    background: transparent !important;
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    flex: 1;
    white-space: nowrap;
}

.how-tab-btn.active {
    color: #fff;
}

/* Content & Cards */
.how-content-wrapper {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.how-content-wrapper.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.how-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.how-number {
    width: 36px;
    height: 36px;
    background-color: var(--ape-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 24px;
}

.how-card h4 {
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--ape-dark);
}

.how-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ape-gray-600);
}

.hover-move-right i {
    transition: transform 0.2s ease;
}

.hover-move-right:hover i {
    transform: translateX(4px);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Desktop Overrides (min-width: 992px) */
@media (min-width: 992px) {
    .ape-floating-icon {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        z-index: 10;
        pointer-events: none;
        display: block !important;
    }

    .ape-floating-icon.floating-start img {
        position: absolute;
        top: 0;
        left: 0;
        width: 130px;
        transform: translateY(-50%) rotate(-12deg);
    }

    .ape-floating-icon.floating-end img {
        position: absolute;
        top: 0;
        right: 0;
        width: 130px;
        transform: translateY(-30%) rotate(+12deg);
    }

    .ape-floating-icon.floating-start.floating-bigger img {
        width: 240px;
        transform: translateY(-40%) rotate(-12deg);
    }

    .ape-floating-icon.floating-end.floating-bigger img {
        width: 240px;
        transform: translateY(-10%) rotate(+12deg);
    }

    .how-tab-btn {
        padding: 10px 32px;
    }

    .how-card {
        padding: 30px 24px;
    }

    .how-card h4 {
        font-size: 1.3rem;
    }
}

/* Comparison Section */
.bg-comparison-badge {
    background-color: #f1f8e9;
}

.mobile-comparison-pill {
    width: 100%;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.mobile-comparison-pill.bg-highlight-pill {
    background-color: #f1f8e9;
}

.mobile-comparison-pill.bg-grey-pill {
    background-color: #f5f5f5;
}

.bg-light-opacity-5 {
    background-color: rgba(0, 0, 0, 0.03);
}

.text-dark-opacity-50 {
    color: rgba(0, 0, 0, 0.5) !important;
}

.text-1-2 {
    font-size: 0.72rem !important;
}

.text-1-5 {
    font-size: 0.75rem !important;
}

.rounded-top-5 {
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
}

.table-comparison {
    border-collapse: separate;
    border-spacing: 0;
}

.table-comparison .highlight-column {
    background-color: #f1f8e9;
    /* Light green consistent throughout the column */
    width: 20%;
}

.table-comparison th,
.table-comparison td {
    border-color: #eee !important;
}

.table-comparison tr:hover td:not(.highlight-column) {
    background-color: #f9fafb;
}

.table-comparison tr:hover td.highlight-column {
    background-color: #e8f5e9;
}

.rounded-top-4 {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.rounded-bottom-4 {
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.last-child-border-0:last-child {
    border-bottom: 0 !important;
}

@media (max-width: 767.98px) {
    .section-comparison .row.g-2>div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mobile-comparison-section .col-4 {
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* Quality Difference Section */
.quality-card {
    border: 1px solid transparent !important;
    border-radius: 1rem !important;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quality-card h3 {
    text-transform: none !important;
    line-height: 1.25;
    font-size: 2rem !important;
}

@media (max-width: 991.98px) {
    .quality-card {
        padding: 1.5rem !important;
    }

    .quality-card h3 {
        font-size: 1.6rem !important;
    }
}

.quality-card-negative {
    background-color: #fff5f5;
    /* Light red/pinkish */
    border-color: #ffe3e3 !important;
}

.quality-card-positive {
    background-color: #f0fdf4;
    /* Light green */
    border-color: #dcfce7 !important;
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04) !important;
}
.quality-illustration {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.grayscale-filter {
    filter: grayscale(100%);
    opacity: 0.15;
}

.dotted-line-red {
    width: 80px;
    height: 1px;
    border-top: 2px dashed #dc3545;
    transform: rotate(-30deg);
    transform-origin: right center;
    margin-right: -10px;
}

.single-tech-icon {
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #333;
    z-index: 2;
}

.space-y-4>li+li {
    margin-top: 1.25rem;
}

.max-w-6xl {
    max-width: 1140px;
}

/* Use Cases Section */
.bg-gradient-use-cases {
    background: linear-gradient(180deg, #FAF9F5 0%, #F0EFEB 100%) !important;
}

.use-case-card {
    min-height: 240px;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    padding: 30px !important;
    /* Ridotto il padding */
}

.use-case-card h3 {
    text-transform: none !important;
    line-height: 1.3;
    color: #111;
    font-size: 1.15rem !important;
}

.use-case-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem !important;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

.use-case-card:hover .learn-more-link {
    color: #999 !important;
}

.use-case-icon {
    width: 44px;
    height: 44px;
    background-color: #f0fdf4 !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease;
}

.use-case-icon i {
    font-size: 18px;
    color: #22c55e !important;
}

.learn-more-link {
    color: #b0b0b0 !important;
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
}

.learn-more-link i {
    font-size: 9px;
    margin-left: 5px;
}

/* Target Audience Section */
.bg-gradient-audience {
    background: linear-gradient(180deg, #FAF9F5 0%, #F0EFEB 100%) !important;
}

.audience-card {
    border-radius: 24px !important;
    /* Unificato con use-cases */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    padding: 30px !important;
    /* Unificato con use-cases */
}

.audience-card h3 {
    text-transform: none !important;
    line-height: 1.3;
}

.audience-card p {
    font-size: 0.95rem !important;
}

.audience-card:hover {
    transform: translateY(-8px);
    /* Unificato con use-cases */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.audience-icon-wrapper {
    transition: transform 0.3s ease;
}

.audience-card:hover .audience-icon-wrapper {
    transform: translateY(-5px);
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* APE Structure Section */
.ape-structure-badge {
    background-color: #eaf6e7;
    color: var(--ape-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-ape-green {
    color: var(--ape-primary);
}

.analysis-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

.analysis-icon {
    width: 44px;
    height: 44px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.analysis-icon i {
    color: var(--ape-primary);
    font-size: 18px;
}

/* Certificate Graphic Styling */
.certificate-container {
    perspective: 1000px;
}

.certificate-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: rotate(-3deg);
    position: relative;
    max-width: 500px;
    margin-left: auto;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.cert-title {
    font-weight: 800;
    color: #1a2b3c;
    font-size: 18px;
    line-height: 1.2;
    max-width: 250px;
}

.cert-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 30px;
}

.cert-bar {
    height: 12px;
    border-radius: 0 100px 100px 0;
}

.class-box {
    position: absolute;
    right: 40px;
    top: 180px;
    background: #ffcc33;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(255, 204, 51, 0.3);
}

.indice-ep {
    position: absolute;
    right: 40px;
    top: 275px;
    text-align: center;
    width: 80px;
}

.indice-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.indice-value {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.validity-overlay {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    transform: rotate(3deg);
}

.validity-icon {
    width: 36px;
    height: 36px;
    background: #eaf6e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ape-primary);
}

.validity-text span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.validity-text strong {
    font-size: 16px;
    color: #111;
}

/* NEW APE Structure Card Styles (Pixel Perfect) */
.ape-structure-badge {
    display: inline-block;
    background-color: #e8f5e9;
    color: #33aa11;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 1rem;
    border-radius: 50rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-ape-green {
    color: #33aa11;
}

.text-primary-ape {
    color: #33aa11;
}

.text-primary-ape:hover {
    color: #267c0d;
}

.btn-primary-ape {
    background-color: #33aa11;
    border-color: #33aa11;
    color: #fff;
}

.btn-primary-ape:hover {
    background-color: #267c0d;
    border-color: #267c0d;
    color: #fff;
    transform: translateY(-2px);
}

.hover-move-right i {
    transition: transform 0.2s ease;
}

.hover-move-right:hover i {
    transform: translateX(4px);
}

.analysis-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.analysis-icon {
    width: 48px;
    height: 48px;
    background-color: #e8f5e9;
    color: #33aa11;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Certificate Card Specifics */
.certificate-container {
    position: relative;
}

/* Background Glow Effect */
.certificate-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(5deg);
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, #bbf7d0 0%, #fef9c3 100%);
    filter: blur(40px);
    z-index: 0;
    border-radius: 30px;
    opacity: 0.6;
}

.certificate-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    position: relative;
    overflow: visible;
    transform: rotate(2deg);
    /* Rotation as requested */
    max-width: 100%;
    margin-left: 0;
    z-index: 1;
}

.energy-bar {
    position: relative;
    margin-bottom: 0;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    height: 24px;
    border-radius: 0 8px 8px 0;
}

.rating-box {
    background: #ffc107;
    border-radius: 12px;
    /* Slightly less rounded */
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Footer Season Cards */
.season-card {
    background: #fff !important;
    /* Override bg-light */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 16px !important;
    padding: 1.5rem !important;
    transition: transform 0.2s ease;
}

.season-card:hover {
    transform: translateY(-2px);
}

/* Validity Badge - Refined to match image */
.validity-badge {
    position: absolute !important;
    bottom: -30px;
    left: -40px;
    background: #fff;
    padding: 1.25rem 2rem;
    border-radius: 20px;
    /* More rounded */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
    transform: rotate(-2deg);
    /* Counter-rotate slightly or match perspective */
}

/* Specific structure updates to match sections in PHP if needed,
   but targeting classes from previous step */
.certificate-card .bg-light {
    background-color: #F9FAFB !important;
}

.letter-spacing-05 {
    letter-spacing: 0.05em;
}

.line-height-1 {
    line-height: 1;
}

.line-height-2 {
    line-height: 1.2;
}

.opacity-2 {
    opacity: 0.2;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .certificate-card {
        padding: 1.5rem;
        margin-top: 2rem;
        transform: none;
        /* No rotation on mobile for better readability */
    }

    .certificate-container::before {
        display: none;
        /* Simplify on mobile */
    }

    .validity-badge {
        position: static !important;
        margin-top: 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        width: 100%;
        justify-content: center;
        transform: none;
    }

    .validity-badge {
        left: 0;
        bottom: 0;
    }
}

/* FAQ Section Re-implementation (Pixel Perfect) */
.faq-section {
    background: linear-gradient(90deg, #f0fdf4, #dcfce7 50%, #f0fdf4);
}

.faq-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a2b3c;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none !important;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #1a2b3c;
    padding-right: 20px;
}

.faq-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-wrapper {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-inner {
    padding: 0 30px 30px 30px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.faq-inner strong {
    color: #1a2b3c;
    font-weight: 700;
}

/* FAQ Footer */
.faq-footer-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2b3c;
}

.faq-footer-text {
    font-size: 1.1rem;
    color: #64748b;
}

.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    background: #ffffff;
    border: 2px solid #1a2b3c;
    border-radius: 9999px;
    color: #1a2b3c !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.faq-contact-btn:hover {
    background: #f8fafc;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-contact-btn svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 32px;
    }

    .faq-footer-title {
        font-size: 36px;
    }
}

@media (min-width: 992px) {
    .faq-title {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .faq-trigger {
        padding: 20px;
    }

    .faq-inner {
        padding: 0 20px 20px 20px;
    }

    .faq-question {
        font-size: 16px;
    }
}

/* Section When APE is NOT required */
.section-not-required {
    background: linear-gradient(90deg, #f0fdf4, #dcfce7 50%, #f0fdf4) !important;
}

.video-wrapper {
    position: relative;
    background: #000;
    line-height: 0;
}

.video-wrapper video {
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991.98px) {
    .section-not-required {
        text-align: center;
    }
}

.btn-not-required {
    background: #fff !important;
    border: 1px solid #1a2b3c !important;
    color: #1a2b3c !important;
}

.btn-not-required:hover {
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Top Rated Section (Pixel Perfect) */

.top-rated-card {
    border-radius: 24px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.top-rated-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b3c;
    line-height: 1;
}

@media (min-width: 992px) {
    .stat-number {
        font-size: 3.5rem;
    }
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2b3c;
    text-transform: none;
}

.stat-desc {
    font-size: 1rem;
    line-height: 1.5;
}

.card-gradient-slate {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.card-gradient-trust {
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
}

.card-gradient-indigo {
    background: linear-gradient(135deg, #f5f3ff 0%, #f1f5f9 100%);
}

.card-gradient-amber {
    background: linear-gradient(135deg, #fffbeb 60%, #f5f5f4 100%);
}

.card-gradient-rose {
    background: linear-gradient(135deg, #fff1f2 70%, #f5f5f4 100%);
}

.card-image-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrap img {
    max-height: 100%;
    object-fit: contain;
}

.lottie-container {
    background: transparent;
}

/* Technicians Network Section */
.pill-badge-green {
    background-color: #f0fdf4;
    color: #16a34a;
    letter-spacing: 0.05em;
    display: inline-block;
}

.text-primary-green {
    color: #10b981 !important;
}

.tech-stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.tech-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    background: #f8fafc;
}

.btn-proape {
    background: #004d40 !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0, 77, 64, 0.2);
    transition: all 0.3s ease;
}

.btn-proape:hover {
    background: #00332c !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 77, 64, 0.3);
}

.btn-work-with-us:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.text-muted-opacity-50 {
    color: rgba(108, 117, 125, 0.6) !important;
}

/* Porta un amico Section */
.section-porta-un-amico {
    background: linear-gradient(90deg, #f0fdf4, #dcfce7 50%, #f0fdf4) !important;
}

/* Technicians Network Map Refinements */
.tech-map-wrapper {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.italy-map-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

#italy-dynamic-map {
    width: 100%;
    height: auto;
    display: block;
}

.italy-path-group {
    pointer-events: none;
}

/* Tecnicians Network Map Section */
.tech-map-wrapper {
    min-height: 500px;
}


.availability-floating-card {
    top: 16%;
    right: 24%;
    min-width: 150px;
    padding: 8px 8px !important;
    border-radius: 12px !important;
    z-index: 10;
    transition: all 0.3s ease;
    rotate: 5deg;
}

.availability-floating-card:hover {
    transform: translateY(-5px);
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

@media (min-width: 991.98px) {
    .map-bg-circles {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 650px;
        height: 650px;
        border-radius: 50%;
        border: 1px dashed rgba(0, 0, 0, 0.1);
        z-index: -1;
    }

    .map-bg-circles::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 450px;
        height: 450px;
        border-radius: 50%;
        border: 1px dashed rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 991.98px) {
    .tech-map-wrapper {
        min-height: auto;
    }

    .availability-floating-card {
        top: 0;
        right: 0;
        rotate: 0deg;
    }
}

.italy-map-container {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.italy-map-svg {
    width: 100%;
    height: auto;
    opacity: 0.25;
}

/* Container per i puntini */
.map-dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Puntini verdi */
.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Animazione puntini */
@keyframes pulse-dot {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.6);
    }
}

/* Ritardo animazione per effetto cascata */
.map-dot:nth-child(2n) {
    animation-delay: 0.3s;
}

.map-dot:nth-child(3n) {
    animation-delay: 0.6s;
}

.map-dot:nth-child(4n) {
    animation-delay: 0.9s;
}

.map-dot:nth-child(5n) {
    animation-delay: 1.2s;
}

/* Blog section */
.blog-home-section {
    background-color: #fff;
}

.blog-section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 12px;
}

.blog-section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
}

.blog-card-image-wrapper {
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: inherit;
    transition: transform 0.4s ease-out;
    display: block;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}

.blog-category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.90);
    color: #33aa11;
    padding: 0 10px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-card-content {
    padding: 24px 0;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #4CAF50;
}

.blog-card-meta {
    font-size: 0.9375rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-separator {
    color: #d1d5db;
    font-weight: 300;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4CAF50;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    color: #45a049;
    gap: 12px;
}

.btn-view-all svg {
    transition: transform 0.2s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-section-title {
        font-size: 2.25rem;
    }

    .blog-section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .blog-section-title {
        font-size: 1.875rem;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-title {
        font-size: 1.125rem;
    }

    .blog-card-content {
        padding: 20px 24px 24px;
    }

    .btn-view-all {
        margin-top: 30px;
        font-size: 1rem;
    }
}