/* ******************************************************* */
/* **************   SEZIONE STILI GENERALI   ************** */
/* ******************************************************* */

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 20px;
}

.compare-container {
    max-width: 1200px;
    margin: auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.compare-table thead {
    background: #1e88e5;
    color: #ffffff;
}

.compare-table th {
    padding: 14px;
    font-size: 15px;
    text-align: left;
}

.compare-table td {
    padding: 14px;
    font-size: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.compare-table tbody tr:nth-child(even) {
    background: #f9fbfd;
}

.compare-table tbody tr:hover {
    background: #eaf3ff;
    transition: 0.2s;
}

.compare-logo {
    width: 60px;
    height: auto;
    display: block;
    margin: auto;
}

.compare-link {
    display: inline-block;
    background: #1e88e5;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.compare-link:hover {
    background: #1565c0;
}

@media (max-width: 768px) {
    .compare-table thead {
        display: none;
    }

    .compare-table tr {
        display: block;
        margin-bottom: 15px;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        padding: 10px;
    }

    .compare-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border-bottom: none;
    }

    .compare-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
    }

    .compare-logo {
        width: 50px;
    }
}

/* ******************************************************* */
/* **************   STILE FORM FACILE.IT   **************** */
/* ******************************************************* */

.finarec-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
    margin-bottom:30px;
}

.finarec-step {
    margin-bottom:25px;
}

.finarec-step-header {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:10px;
}

.finarec-step-number {
    background:#ff7f00;
    color:white;
    font-weight:700;
    font-size:18px;
    width:32px;
    height:32px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.finarec-step-title {
    font-size:20px;
    font-weight:700;
    color:#333;
}

.finarec-step-body {
    background:#fff8e6;
    padding:15px;
    border-radius:10px;
    border-left:6px solid #ff7f00;
}

.finarec-label {
    font-weight:600;
    margin-top:10px;
    display:block;
}

.finarec-select {
    width:100%;
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:16px;
    margin-bottom:10px;
}

.finarec-button {
    width:100%;
    padding:14px;
    background:#ff7f00;
    color:white;
    font-size:20px;
    font-weight:700;
    border:none;
    border-radius:10px;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

/* ******************************************************* */
/* **************   ANIMAZIONE SPINNER   ******************* */
/* ******************************************************* */

@keyframes spin {
    from { transform:rotate(0deg); }
    to { transform:rotate(360deg); }
}

/* ******************************************************* */
/* **************   BLOCCO 2 – CSS AGGIUNTIVO   ************ */
/* ******************************************************* */

#boxFiltri {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

#boxFiltri select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #90caf9;
    font-size: 15px;
    background: #ffffff;
    min-width: 180px;
}

#boxFiltri button {
    padding: 10px 18px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: 0.2s;
}

#boxFiltri button:hover {
    background: #1565c0;
}

/* ******************************************************* */
/* **************   BOX PREZZO MEDIO   ********************* */
/* ******************************************************* */

#prezzoMedioBox {
    padding: 12px 18px;
    background: #e3f2fd;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 20px;
    display: none;
}

#prezzoMedio {
    font-weight: 800;
    color: #0d47a1;
}

/* ******************************************************* */
/* **************   LOADER FINAREC   *********************** */
/* ******************************************************* */

#loaderFinarec {
    display: none;
    text-align: center;
    margin: 25px 0;
}

#loaderFinarec div {
    width: 45px;
    height: 45px;
    border: 5px solid #ff7f00;
    border-top-color: transparent;
    border-radius: 50%;
    margin: auto;
    animation: spin 1s linear infinite;
}

/* ******************************************************* */
/* **************   BOX PROPOSTA FINAREC   **************** */
/* ******************************************************* */

#boxFinarec {
    display: none;
    background: #fff8e6;
    border-left: 6px solid #ff7f00;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#boxFinarec h3 {
    margin-top: 0;
    color: #b8860b;
}

#boxFinarec ul {
    margin: 10px 0 15px 20px;
}

#boxFinarec li {
    margin-bottom: 6px;
    font-size: 15px;
}

/* ******************************************************* */
/* **************   BOTTONI ORDINAMENTO   ***************** */
/* ******************************************************* */

.btn-ordinamento-regione,
.btn-ordinamento-ente {
    padding: 10px 18px;
    background: #43a047;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.btn-ordinamento-regione:hover,
.btn-ordinamento-ente:hover {
    background: #2e7d32;
}

/* ******************************************************* */
/* **************   RESPONSIVE FILTRI   ******************** */
/* ******************************************************* */

@media (max-width: 768px) {
    #boxFiltri {
        flex-direction: column;
        align-items: stretch;
    }

    #boxFiltri select,
    #boxFiltri button {
        width: 100%;
    }
}

.finarec-info-box{
    max-width:950px;
    margin:20px auto;
    padding:15px 20px;
    background:#fff8e1;
    border-left:6px solid #ff9800;
    border-radius:8px;
    box-shadow:0 2px 5px rgba(0,0,0,0.08);
}

.finarec-info-box h3{
    margin-top:0;
    color:#0d47a1;
}

.finarec-info-box ul{
    margin:0;
    padding-left:20px;
}

.finarec-info-box li{
    margin-bottom:8px;
    line-height:1.5;
}
#prezzoMedioBox {
display: none;
}