body{
    background:#f4f7fb;
}

/* BACHECA */

.tia-board{
    max-width:1180px;
    margin:40px auto;
    padding:0 18px;
}

.tia-search-hero{
    background:#fff;
    border-radius:28px;
    padding:50px;
    margin-bottom:30px;
    box-shadow:0 10px 35px rgba(0,0,0,.06);
}

.tia-mini{
    display:inline-block;
    padding:8px 16px;
    background:#edf4ff;
    color:#2563eb;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    margin-bottom:18px;
}

.tia-search-hero h2{
    font-size:44px;
    line-height:1.1;
    margin:0 0 14px;
    color:#0f172a;
}

.tia-search-hero p{
    font-size:17px;
    color:#64748b;
    max-width:760px;
}

.tia-search-bar{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:14px;
    margin-top:28px;
}

.tia-search-bar input,
.tia-search-bar select{
    height:58px;
    border:0;
    background:#f8fafc;
    border-radius:16px;
    padding:0 18px;
    font-size:15px;
}

.tia-search-bar button{
    height:58px;
    border:0;
    border-radius:16px;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

/* CARD */

.tia-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:26px;
}

.tia-card{
    background:#fff;
    border-radius:24px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.tia-card-top{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:20px;
}

.tia-avatar-clean{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#eff6ff;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.tia-avatar-dot{
    width:16px;
    height:16px;
    border-radius:50%;
    background:#2563eb;
}

.tia-head{
    flex:1;
}

.tia-prof{
    display:inline-block;
    font-size:13px;
    font-weight:700;
    color:#2563eb;
    margin-bottom:6px;
}

.tia-card h3{
    margin:0;
    font-size:24px;
    color:#0f172a;
}

.tia-loc{
    color:#64748b;
    font-size:14px;
    margin-top:5px;
}

.tia-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.tia-meta span{
    background:#f1f5f9;
    padding:8px 12px;
    border-radius:12px;
    font-size:13px;
    font-weight:600;
}

.tia-desc{
    font-size:15px;
    line-height:1.7;
    color:#475569;
    margin-bottom:25px;
}

.tia-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:18px;
    border-top:1px solid #e2e8f0;
}

.tia-mail{
    font-size:14px;
    color:#64748b;
}

.tia-contact-btn{
    border:0;
    background:#2563eb;
    color:#fff;
    padding:12px 18px;
    border-radius:14px;
    font-weight:700;
    cursor:pointer;
}

.tia-empty{
    grid-column:1/-1;
    background:#fff;
    padding:24px;
    border-radius:18px;
    color:#64748b;
}

/* FORM */

.tia-form-wrap{
    max-width:520px;
    margin:40px auto;
    padding:0;
}

.tia-form-box{
    background:#fff;
    padding:30px;
    border-radius:18px;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    border:1px solid #f0f0f0;
}

.tia-form-box h2{
    text-align:center;
    margin-bottom:25px;
    font-size:26px;
    font-weight:700;
    color:#007aff;
}

.tia-form-grid{
    display:block;
}

.tia-form-grid input,
.tia-form-grid select,
.tia-form-grid textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #d0d0d0;
    border-radius:10px;
    margin-top:5px;
    margin-bottom:14px;
    font-size:15px;
    background:#fafafa;
}

.tia-form-grid textarea{
    height:130px;
    resize:vertical;
}

.tia-check-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:8px 12px;
    margin:8px 0 14px;
    padding:0;
    background:transparent;
    border:0;
}

.tia-check-wrap label{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    color:#001344;
}

.tia-check-wrap input[type="checkbox"]{
    width:16px;
    height:16px;
    margin:0;
}

.tia-submit{
    margin-top:18px;
    width:100%;
    padding:15px;
    height:auto;
    background:#007aff;
    color:#fff;
    font-size:18px;
    border-radius:12px;
    border:0;
    cursor:pointer;
    font-weight:600;
}

.tia-submit:hover{
    background:#005fcc;
}

.tia-success{
    max-width:520px;
    margin:20px auto;
    background:#dcfce7;
    color:#166534;
    padding:18px;
    border-radius:16px;
    font-weight:700;
}

/* POPUP */

#contattaBox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.65);
    z-index:999999;
    justify-content:center;
    align-items:center;
}

#contattaInner{
    width:430px;
    max-width:92vw;
    background:#fff;
    padding:28px;
    border-radius:22px;
    box-shadow:0 25px 60px rgba(0,0,0,.25);
}

#contattaInner h3{
    margin:0 0 20px;
    color:#0f172a;
    font-size:24px;
}

#contattaInner label{
    display:block;
    margin:12px 0 6px;
    font-size:14px;
    font-weight:600;
    color:#334155;
}

#contattaInner input,
#contattaInner textarea{
    width:100%;
    border:1px solid #d0d7e2;
    border-radius:12px;
    padding:12px;
    background:#f8fafc;
    font-size:15px;
}

#contattaInner textarea{
    height:120px;
    resize:vertical;
}

#contattaInner button{
    width:100%;
    margin-top:18px;
    padding:14px;
    border:0;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

/* MOBILE DEFINITIVO */

@media(max-width:768px){

    body{
        background:#f6f8fb;
    }

    .tia-board{
        max-width:100%;
        margin:18px auto;
        padding:0 14px;
    }

    .tia-search-hero{
        padding:24px 18px;
        border-radius:20px;
        margin-bottom:20px;
    }

    .tia-mini{
        font-size:11px;
        padding:6px 12px;
        margin-bottom:12px;
    }

    .tia-search-hero h2{
        font-size:28px;
        line-height:1.15;
        margin:8px 0 10px;
    }

    .tia-search-hero p{
        font-size:15px;
        line-height:1.55;
    }

    .tia-search-bar{
        grid-template-columns:1fr;
        gap:10px;
        margin-top:20px;
    }

    .tia-search-bar input,
    .tia-search-bar select,
    .tia-search-bar button{
        width:100%;
        height:52px;
        border-radius:14px;
        padding:0 14px;
        font-size:15px;
        box-sizing:border-box;
    }

    .tia-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .tia-card{
        border-radius:20px;
        padding:20px;
    }

    .tia-card-top{
        align-items:flex-start;
        gap:12px;
        margin-bottom:14px;
    }

    .tia-avatar-clean{
        width:38px;
        height:38px;
        min-width:38px;
    }

    .tia-avatar-dot{
        width:12px;
        height:12px;
    }

    .tia-card h3{
        font-size:22px;
        line-height:1.2;
    }

    .tia-prof{
        font-size:12px;
        margin-bottom:4px;
    }

    .tia-loc{
        font-size:13px;
    }

    .tia-meta{
        gap:8px;
        margin:12px 0 14px;
    }

    .tia-meta span{
        padding:7px 10px;
        border-radius:10px;
        font-size:12px;
    }

    .tia-desc{
        font-size:14px;
        line-height:1.6;
        margin-bottom:18px;
    }

    .tia-bottom{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .tia-mail{
        font-size:13px;
    }

    .tia-contact-btn{
        width:100%;
        height:48px;
        border-radius:14px;
        font-size:15px;
    }

    .tia-form-wrap{
        max-width:none;
        margin:24px auto;
        padding:0 14px;
    }

    .tia-form-box{
        padding:22px;
        border-radius:20px;
    }

    .tia-form-box h2{
        font-size:25px;
        margin-bottom:20px;
    }

    .tia-form-grid input,
    .tia-form-grid select,
    .tia-form-grid textarea{
        font-size:15px;
        margin-bottom:12px;
    }

    .tia-form-grid textarea{
        height:120px;
    }

    .tia-check-wrap{
        gap:8px;
        margin-bottom:12px;
    }

    .tia-check-wrap label{
        width:100%;
        padding:8px 0;
        font-size:14px;
    }

    .tia-submit{
        height:52px;
        border-radius:14px;
        font-size:16px;
    }
}
.tia-form-intro{
    font-size:15px;
    line-height:1.6;
    color:#64748b;
    text-align:center;
    margin:-10px 0 24px;
}