/* ================================================
   FIX COMPLETO PULSANTI - Tutto il Sito
   Mobile e Desktop
   ================================================ */

/* ===== PULSANTI GENERALI ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    margin: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: #ffffff !important;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00d9ff !important;
    border: 2px solid #00d9ff;
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== HERO SECTION - PULSANTI ===== */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons .btn {
    flex: 0 0 auto;
    margin: 0;
    min-width: 180px;
}

/* ===== SERVICES SECTION - PULSANTI ===== */
.service-card .btn,
.additional-service-card .btn {
    display: block;
    width: 100%;
    margin: 1rem 0 0 0;
    padding: 0.75rem 1.5rem;
}

/* ===== ABOUT SECTION - PULSANTI ===== */
.about-content .btn {
    display: inline-block;
    margin: 1rem 0.5rem 0 0;
}

/* ===== CTA SECTIONS - PULSANTI ===== */
.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-buttons .btn {
    flex: 0 0 auto;
    margin: 0;
}

/* ===== NAVBAR - PULSANTE CTA ===== */
.nav-menu .btn {
    margin: 0 0 0 1rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== MOBILE (sotto 768px) ===== */
@media (max-width: 768px) {
    /* Pulsanti generali mobile */
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Hero buttons mobile */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
        margin: 0;
    }
    
    /* CTA buttons mobile */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    /* About buttons mobile */
    .about-content .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Navbar button mobile */
    .nav-menu .btn {
        width: 100%;
        margin: 1rem 0;
        text-align: center;
    }
}

/* ===== TABLET (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        min-width: 160px;
    }
}

/* ===== DESKTOP LARGE (oltre 1200px) ===== */
@media (min-width: 1200px) {
    .hero-buttons .btn {
        min-width: 200px;
        padding: 1.1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* ===== FIX SOVRAPPOSIZIONI ===== */
.btn + .btn {
    margin-left: 0;
}

/* Assicura che i pulsanti non si sovrappongano */
.hero-buttons,
.cta-buttons,
.about-buttons {
    clear: both;
    overflow: visible;
}

/* Fix per pulsanti inline */
.btn-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ===== FIX SPECIFICO INDEX.PHP ===== */
/* Hero section index */
.hero .hero-buttons {
    margin-top: 2rem;
    padding: 0;
}

/* Services section index */
.services .service-card {
    display: flex;
    flex-direction: column;
}

.services .service-card .btn {
    margin-top: auto;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* ===== FIX LAYOUT GENERALE ===== */
/* Assicura che nessun elemento si sovrapponga */
section {
    clear: both;
    overflow: visible;
}

.container {
    position: relative;
    overflow: visible;
}

/* Fix per flex container con pulsanti */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.flex-container .btn {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }
    
    .flex-container .btn {
        width: 100%;
    }
}
