/**
 * Easy Contact Srl - Landing Page Styles
 *
 * Stili specifici per le landing page di Google Ads
 * Ottimizzate per la conversione e la UI/UX
 */

/* Energy Hero Section */
.energy-hero {
    position: relative;
    background: linear-gradient(-45deg, #0A1A3A, #143C77, #1E5EA8, #0066CC);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%2302337f' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.energy-hero .page-title {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.energy-hero .page-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.phone-hero {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 25px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse-phone 2s infinite;
}

.phone-label {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-phone-number:hover {
    transform: scale(1.05);
    color: #FF6B00;
}

.phone-icon-animated {
    animation: shake 2s infinite;
    display: inline-block;
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    2% { transform: rotate(10deg); }
    4% { transform: rotate(-10deg); }
    6% { transform: rotate(10deg); }
    8% { transform: rotate(-10deg); }
    10% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.operator-counter-container {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 10px 25px;
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.operator-counter-text {
    font-size: 1.1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Service Tabs Navigation */
.quick-service-nav {
    background-color: #fff;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.service-tabs {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.service-tab {
    flex: 1;
    text-align: center;
    padding: 15px 5px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
}

.service-tab i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #777;
    transition: all 0.3s ease;
}

.service-tab.active {
    color: #0066CC;
    border-bottom-color: #0066CC;
}

.service-tab.active i {
    color: #0066CC;
}

.service-tab:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Service Cards */
.service-cards-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6B00;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 1;
}

.card-header {
    padding: 25px 25px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC, #0099FF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.card-body {
    padding: 5px 25px 20px;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.card-features li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li i {
    color: #0066CC;
    margin-top: 3px;
}

.card-price {
    text-align: center;
    margin: 20px 0;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0066CC;
}

.card-footer {
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.btn-full {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.btn-full:last-child {
    margin-bottom: 0;
}

/* Premium Card */
.premium-card {
    border: 2px solid #0066CC;
    transform: scale(1.03);
}

.premium-card .card-icon {
    background: linear-gradient(135deg, #0066CC, #004C99);
}

.premium-card .card-badge {
    background: #0066CC;
}

/* Special Offer Card */
.special-offer-card {
    border: 2px solid #FF6B00;
}

.special-offer-card .card-icon {
    background: linear-gradient(135deg, #FF6B00, #FF9500);
}

.special-offer-card .card-badge {
    background: #FF6B00;
}

.offer-badge {
    text-align: center;
    background: linear-gradient(135deg, #FF6B00, #FF9500);
    color: white;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.offer-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

/* Energy CTA Box */
.energy-cta-box {
    margin-top: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0066CC, #004C99);
    color: white;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.cta-box-content {
    padding: 30px;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cta-box-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-box-icon i {
    font-size: 2.5rem;
    color: white;
}

.cta-box-text {
    flex: 1;
    min-width: 200px;
}

.cta-box-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: white;
}

.cta-box-text p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-box-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-left: auto;
}

.cta-box-note {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Mobile CTA and Floating CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-cta a {
    flex: 1;
    margin: 0 5px;
    text-align: center;
}

.cta-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chat-bubble i {
    margin-right: 8px;
}

.cta-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f44336;
    color: white;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 5px;
    vertical-align: middle;
}

.cta-badge.pulse {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Help Popup */
.help-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.help-popup.show .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #777;
    cursor: pointer;
    z-index: 10;
}

.popup-header {
    padding: 25px;
    background: linear-gradient(135deg, #0066CC, #004C99);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.popup-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-icon i {
    font-size: 2rem;
    color: white;
}

.popup-title h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.popup-title p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.popup-body {
    padding: 25px;
}

.operator-status {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.wait-time {
    width: 100%;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

.popup-options, .popup-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.popup-buttons {
    margin: 15px 0;
}

.popup-buttons .btn {
    width: 80%;
    margin-bottom: 10px;
    font-size: 1.15rem;
    padding: 15px 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-buttons .btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.popup-buttons .btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.popup-call-btn {
    animation: pulse 2s infinite;
}

.popup-or {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #666;
    position: relative;
}

.popup-or::before, 
.popup-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: #ddd;
}

.popup-or::before {
    right: calc(100% + 10px);
}

.popup-or::after {
    left: calc(100% + 10px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

.popup-phone-form {
    width: 100%;
    text-align: center;
}

.popup-phone-form p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.popup-input-group {
    display: flex;
    gap: 10px;
}

.popup-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.popup-success {
    text-align: center;
    padding: 20px 0;
}

.popup-success i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 15px;
}

.popup-success p {
    font-size: 1.1rem;
    color: #333;
}

.popup-footer {
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* Comparison Table */
.comparison-section {
    padding: 60px 0;
    background-color: #fff;
}

.comparison-table-wrapper {
    margin-top: 40px;
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    overflow: hidden;
}

.comparison-table th, 
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #444;
}

.comparison-table tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.comparison-table .provider-logo {
    display: block;
    margin: 0 auto 10px;
}

.comparison-table .fas.fa-check.green {
    color: #4caf50;
}

.comparison-table .fas.fa-times.red {
    color: #f44336;
}

.comparison-table .action-row td {
    padding-top: 20px;
    padding-bottom: 20px;
}

.comparison-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #FF6B00;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    background-color: #FF5500;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: #0066CC;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.btn-secondary:hover {
    background-color: #0055aa;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, #FF6B00, #FF9500);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #FF5500, #FF8400);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background-color: white;
    color: #0066CC;
    border: 2px solid #0066CC;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background-color: #f0f7ff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Phones */
.phone-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #0066CC;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .energy-hero {
        padding: 40px 0;
    }
    
    .energy-hero .page-title {
        font-size: 2rem;
    }
    
    .energy-hero .page-subtitle {
        font-size: 1.1rem;
    }
    
    .operator-counter-container {
        padding: 8px 15px;
    }
    
    .operator-counter-text {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-tab i {
        font-size: 1.2rem;
    }
    
    .service-tab span {
        font-size: 0.8rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .premium-card {
        transform: scale(1);
    }
    
    .cta-box-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-box-buttons {
        margin-left: 0;
        justify-content: center;
    }
    
    .mobile-cta {
        display: flex;
    }
    
    .cta-floating {
        display: none;
    }
    
    .comparison-table th, 
    .comparison-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .popup-input-group {
        flex-direction: column;
    }
    
    .popup-input-group input {
        margin-bottom: 10px;
    }
}