/* ============================================================
   STILI LANDING PAGE - SOLUZIONI INTERNET
   ============================================================ */

/* --- Layout Generale --- */
.landing-hero {
    background: #f7f8f9;
    padding: 20px 20px 60px;
    text-align: center;
}
.landing-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
}
.landing-hero .sottotitolo {
    font-size: 1.15rem;
    color: #2d4059;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.box-pro {
    background: #1e73be;
    color: #fff;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* --- Card Aree --- */
.aree-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 30px auto;
}
.area-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    flex: 1 1 150px;
}
.area-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a2e;
    font-weight: 700;
}
.area-card:hover {
    border-color: #1e73be;
    box-shadow: 0 4px 15px rgba(30,115,190,0.1);
}
.area-card.selezionata {
    border-color: #1e73be;
    background: #eef3f9;
}
.area-card.vuota {
    background: #f9f9f9;
    border: 2px dashed #ccc;
    cursor: default;
}
.area-card.vuota h3 {
    color: #999;
    font-weight: 400;
}

/* --- Selettore Località --- */
.selettore-localita {
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: left;
}
.selettore-localita label {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.selettore-localita select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
}
.selettore-localita select:focus {
    outline: none;
    border-color: #1e73be;
}

/* --- Pulsanti --- */
.btn-primary {
    display: inline-block;
    background: #1e73be;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #155a96;
    color: #fff;
}
.btn-primary:disabled, .btn-primary.spento {
    background: #a0c4e8;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Scompartimenti Stagni (Nascosti di default) --- */
#contenuto-scenari, #contenuto-rassicurazione, #contenuto-form {
    display: none;
}

/* --- Scenari --- */
.landing-scenari {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.grid-scenari {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.card-scenario {
    background: #f7f8f9;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.card-scenario:hover {
    border-color: #1e73be;
    box-shadow: 0 4px 15px rgba(30,115,190,0.1);
}
.card-scenario.selezionato {
    border-color: #1e73be;
    background: #eef3f9;
}
.card-scenario h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    padding-right: 30px; /* Spazio per il pallino */
}
.card-scenario p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* --- Pallino di selezione --- */
.check-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    transition: all 0.2s;
}
.card-scenario.selezionato .check-indicator {
    border-color: #1e73be;
    background: #1e73be;
    box-shadow: inset 0 0 0 4px #fff;
}

/* --- Rassicurazione --- */
.landing-rassicurazione {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: #f0f7ee;
}
.landing-rassicurazione h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.landing-rassicurazione p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* --- Form --- */
.landing-modulo {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.landing-modulo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 10px;
}
.landing-modulo .sottotitolo {
    font-size: 1.05rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #1e73be;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.checkbox-group input {
    width: auto;
    margin-top: 5px;
}
.checkbox-group label {
    font-weight: 400;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* --- Chiusura --- */
.landing-chiusura {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: #1a1a2e;
    color: #fff;
}
.landing-chiusura h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}
.landing-chiusura p {
    font-size: 1.05rem;
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 15px;
}
.landing-chiusura a {
    color: #4fc3f7;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bottom-bar-mobile {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }
    .bottom-bar-logo {
        text-align: center;
    }

    .landing-hero h1 { font-size: 1.8rem; }
    .landing-hero .sottotitolo { font-size: 1.05rem; }
    .landing-scenari h2, .landing-mappa h2, .landing-rassicurazione h2, .landing-modulo h2, .landing-chiusura h2 { font-size: 1.5rem; }
    .grid-scenari { grid-template-columns: 1fr; }
    .aree-grid .area-card { flex: 1 1 100%; }
    .box-pro { font-size: 1.1rem; padding: 12px 20px; }
}

/* --- Bottom Bar Mobile --- */
.bottom-bar-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
}

.bottom-bar-mobile {
        padding: 10px 15px;
    }
    .bottom-bar-logo img {
        height: 35px;
        width: auto;
    }
    .bottom-bar-actions {
        display: flex;
        gap: 10px;
    }
    .bottom-bar-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 10px 15px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        color: #fff;
        background: #1e73be;
        transition: background 0.2s;
    }
    .bottom-bar-btn.whatsapp {
        background: #25D366;
    }
    .bottom-bar-btn:hover {
        opacity: 0.9;
    }

}

/* Padding globale per la bottom bar fissa */
body {
    padding-bottom: 80px !important;
}

/* Centratura globale dei contenitori */
.site-container {
    display: flex;
    justify-content: center;
}
.content-area {
    width: 100%;
    max-width: 1200px; /* Larghezza massima del contenuto */
    margin: 0 auto;
}
.page-content {
    width: 100%;
}

/* Stili per "veloce e affidabile" */
.riga-veloce-affidabile {
    font-size: 3rem; /* Aumentato di un punto per desktop */
}
.congiunzione-e {
    font-size: 2rem; /* Ridotto di un punto per desktop */
}

/* Regole per mobile */
@media (max-width: 768px) {
    .riga-veloce-affidabile {
        font-size: 1.8rem; /* Ridotto di un punto per mobile */
    }
    .congiunzione-e {
        font-size: 1rem; /* Ridotto di due punti per mobile */
    }
}



/* Gestione a capo nel box Internet-PRO */
.solo-mobile {
    display: none; /* Nascosto su desktop */
}

@media (max-width: 768px) {
    .solo-mobile {
        display: inline; /* Visibile su mobile */
    }
    .box-pro {
        width: 90% !important; /* Forza il box a essere largo abbastanza per 2 righe */
        font-size: 1.2rem !important; /* Riduce leggermente il font su mobile */
        padding: 15px 20px !important;
    }
}

/* Riduzione dimensioni box su mobile per mantenere la struttura a 3 righe */
@media (max-width: 768px) {
    .box-pro {
        padding: 15px 20px !important;
    }
    .box-pro div:nth-child(1) {
        font-size: 0.8rem !important;
    }
    .box-pro div:nth-child(2) {
        font-size: 1.5rem !important;
    }
    .box-pro div:nth-child(3) {
        font-size: 0.7rem !important;
    }
}

/* Stile per il testo giustificato con sillabazione */
.testo-giustificato {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}



/* Stili specifici per mobile */
@media (max-width: 768px) {
    .box-pro {
        padding: 15px 20px !important;
        width: 90% !important;
    }
    
    
    
}

/* Stili per il box Internet-PRO */
.box-pro-riga1 {
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 400;
}
.box-pro-riga2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    line-height: 1.2;
}
.box-pro-riga3 {
    font-size: 0.8rem;
    font-style: italic;
    font-weight: normal;
    opacity: 0.9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .box-pro {
        padding: 15px 20px !important;
        width: 90% !important;
    }
    .box-pro-riga1 {
        font-size: 0.8rem;
    }
    .box-pro-riga2 {
        font-size: 2.2rem;
    }
    .box-pro-riga3 {
        font-size: 0.65rem;
    }
    .badge-rotondo {
        width: 70px !important;
        height: 70px !important;
        top: -15px !important;
        right: -15px !important;
    }
    .badge-rotondo span {
        font-size: 0.45rem !important;
    }
    .badge-rotondo span:nth-child(1) {
        font-size: 0.55rem !important;
    }
}

/* Stile per il box del testo dinamico (effettivamente nella zona di...) */
.box-testo-dinamico {
    background: #f7f8f9;
    padding: 20px 40px;
    border-radius: 12px;
    margin: 0 auto 30px;
    max-width: 800px;
    border: 1px solid #e8e8e8;
}
.box-testo-dinamico p {
    font-size: 1.15rem;
    color: #2d4059;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .box-testo-dinamico {
        padding: 15px 20px;
        width: 90%;
    }
    .box-testo-dinamico p {
        font-size: 1rem;
        line-height: 1.3;
    }
}
