/* =====================================================
   IBRICO - HOMEPAGE MARKETPLACE TOP
   File: /home-ibrico/home-ibrico.css
===================================================== */

:root{
    --ibrico-blue:#072f5f;
    --ibrico-blue-dark:#041f40;
    --ibrico-red:#e30613;
    --ibrico-yellow:#ffcc00;
    --ibrico-text:#10213f;
    --ibrico-muted:#64748b;
    --ibrico-light:#f4f7fb;
    --ibrico-border:#e5e7eb;
}

.ibrico-home-new,
.ibrico-home-new *{box-sizing:border-box;}

.ibrico-home-new{
    width:100%;
    background:#fff;
    color:var(--ibrico-text);
    font-family:Arial, Helvetica, sans-serif;
    overflow:hidden;
}

.ibrico-home-new a{text-decoration:none !important;}

/* HERO */

.ibrico-hero-new{
    width:100%;
    min-height:455px;
    padding:54px 18px 66px;
    position:relative;
    overflow:hidden;
    background-color:#062f5f;
    background-image:
        linear-gradient(105deg, rgba(7,47,95,1) 0%, rgba(7,47,95,.98) 30%, rgba(7,47,95,.84) 43%, rgba(7,47,95,.38) 61%, rgba(7,47,95,.08) 100%),
        url("images/hero-ibrico-banco-lavoro.png");
    background-size:cover;
    background-position:center right;
    background-repeat:no-repeat;
}

.ibrico-hero-new::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(255,255,255,.05), transparent 40%), radial-gradient(circle at 18% 20%, rgba(255,204,0,.10), transparent 22%);
    pointer-events:none;
}

.ibrico-hero-inner{
    width:min(1240px,100%);
    margin:0 auto;
    min-height:335px;
    display:flex;
    align-items:center;
    position:relative;
    z-index:2;
}

.ibrico-hero-text{
    width:100%;
    max-width:640px;
    color:#fff;
}

.ibrico-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--ibrico-yellow);
    color:var(--ibrico-blue);
    padding:10px 20px;
    border-radius:10px;
    font-size:15px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.2px;
    margin-bottom:22px;
    box-shadow:0 12px 26px rgba(0,0,0,.18);
}

.ibrico-hero-text h1{
    margin:0 0 18px;
    color:#fff;
    font-size:clamp(38px,4.4vw,62px);
    line-height:1.04;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:-1.6px;
    text-shadow:0 10px 24px rgba(0,0,0,.22);
}

.ibrico-hero-text h1 mark{background:transparent;color:var(--ibrico-yellow);padding:0;}

.ibrico-hero-text p{
    margin:0;
    max-width:590px;
    color:rgba(255,255,255,.96);
    font-size:19px;
    line-height:1.48;
    font-weight:600;
}

.ibrico-hero-buttons{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px;}

.ibrico-btn-main,
.ibrico-btn-alt{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:54px;
    padding:0 28px;
    border-radius:8px;
    font-size:15px;
    font-weight:950;
    text-transform:uppercase;
    transition:.22s ease;
    white-space:nowrap;
}

.ibrico-btn-main{background:var(--ibrico-yellow);color:var(--ibrico-blue) !important;box-shadow:0 12px 28px rgba(0,0,0,.20);}
.ibrico-btn-main::after{content:"›";font-size:24px;line-height:0;margin-left:12px;}
.ibrico-btn-alt{background:rgba(255,255,255,.04);color:#fff !important;border:2px solid rgba(255,255,255,.72);}
.ibrico-btn-main:hover,.ibrico-btn-alt:hover{transform:translateY(-2px);}

.ibrico-mini-services{display:flex;flex-wrap:wrap;gap:18px;margin-top:28px;}
.ibrico-mini-services span{display:inline-flex;align-items:center;color:#fff;font-size:14px;font-weight:900;}

/* TRUST */

.ibrico-trust{
    width:min(1240px,calc(100% - 32px));
    margin:28px auto 0;
    background:#fff;
    border:1px solid var(--ibrico-border);
    border-radius:12px;
    box-shadow:0 18px 45px rgba(7,47,95,.10);
    display:grid;
    grid-template-columns:repeat(4,1fr);
    overflow:hidden;
}

.ibrico-trust-item{
    min-height:112px;
    padding:24px 26px;
    display:flex;
    align-items:center;
    gap:18px;
    border-right:1px solid var(--ibrico-border);
}

.ibrico-trust-item:last-child{border-right:none;}
.ibrico-trust-item>span{width:42px;height:42px;display:flex;align-items:center;justify-content:center;font-size:28px;flex:0 0 auto;}
.ibrico-trust-item strong{display:block;color:var(--ibrico-blue);font-size:15px;font-weight:950;text-transform:uppercase;line-height:1.22;}
.ibrico-trust-item small{display:block;margin-top:4px;color:#475569;font-size:13px;line-height:1.35;font-weight:600;}

/* SEZIONI */

.ibrico-section-new,
.ibrico-offers-new,
.ibrico-promo-grid,
.ibrico-final-trust{
    width:min(1240px,calc(100% - 32px));
    margin-left:auto;
    margin-right:auto;
}

.ibrico-section-new{padding:46px 0 24px;}
.ibrico-offers-new{padding:34px 0 22px;}

.ibrico-head{margin-bottom:20px;}
.ibrico-head span{
    display:inline-flex;
    align-items:center;
    color:#111827;
    font-size:24px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:-.3px;
    position:relative;
    padding-left:18px;
}
.ibrico-head span::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:999px;background:var(--ibrico-red);}
.ibrico-head h2{display:none;}
.ibrico-head-row{display:flex;align-items:center;justify-content:space-between;gap:20px;}
.ibrico-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border-radius:999px;padding:0 4px;color:var(--ibrico-blue) !important;font-size:14px;font-weight:900;white-space:nowrap;}
.ibrico-link::after{content:"›";font-size:26px;margin-left:10px;}

/* CATEGORIE */

.ibrico-categories-new{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;}
.ibrico-categories-new a{
    min-height:190px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:#fff;
    border:1px solid var(--ibrico-border);
    border-radius:12px;
    padding:22px 16px;
    color:var(--ibrico-blue) !important;
    box-shadow:0 10px 26px rgba(7,47,95,.07);
    transition:.22s ease;
    text-align:center;
}
.ibrico-categories-new a:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(7,47,95,.14);border-color:rgba(7,47,95,.22);}
.ibrico-cat-icon{width:74px;height:74px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f8fafc;font-size:42px;box-shadow:inset 0 0 0 1px #eef2f7;}
.ibrico-categories-new strong{display:block;color:#111827;font-size:15px;font-weight:950;text-transform:uppercase;}
.ibrico-categories-new small{display:none;}
.ibrico-categories-new em{color:var(--ibrico-red);font-style:normal;font-size:28px;line-height:1;font-weight:900;}

/* PRODOTTI */

.ibrico-products-new ul.products{
    margin:0 !important;
    display:grid !important;
    grid-template-columns:repeat(5,1fr) !important;
    gap:18px !important;
}
.ibrico-products-new ul.products li.product{
    width:100% !important;
    float:none !important;
    margin:0 !important;
    background:#fff;
    border:1px solid var(--ibrico-border);
    border-radius:12px;
    padding:14px !important;
    box-shadow:0 10px 26px rgba(7,47,95,.08);
    overflow:hidden;
    transition:.22s ease;
    position:relative;
}
.ibrico-products-new ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(7,47,95,.14);}
.ibrico-products-new ul.products li.product img{width:100%;border-radius:10px;background:#f8fafc;aspect-ratio:1/1;object-fit:contain;padding:10px;margin:0 0 10px !important;}
.ibrico-products-new ul.products li.product .woocommerce-loop-product__title{color:#111827;font-size:14px !important;line-height:1.35;font-weight:800;min-height:58px;padding:8px 0 6px !important;}
.ibrico-products-new ul.products li.product .price{color:var(--ibrico-red) !important;font-size:18px !important;font-weight:950 !important;}
.ibrico-products-new ul.products li.product .price del{color:#64748b !important;opacity:.8 !important;font-size:13px;}
.ibrico-products-new ul.products li.product .button{width:100%;min-height:42px;display:flex !important;align-items:center;justify-content:center;text-align:center;border-radius:7px;background:var(--ibrico-blue);color:#fff !important;font-size:12px;font-weight:950;text-transform:uppercase;padding:10px 12px;margin-top:10px;}
.ibrico-products-new ul.products li.product .button:hover{background:var(--ibrico-red);color:#fff !important;}
.ibrico-products-new span.onsale{min-height:auto;min-width:auto;border-radius:7px;background:var(--ibrico-red);color:#fff;padding:7px 10px;font-size:12px;font-weight:950;line-height:1;top:10px;left:10px;right:auto;}

/* PROMO */

.ibrico-promo-grid{padding:20px 0 26px;display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.ibrico-promo-card{min-height:190px;border-radius:12px;padding:32px 36px;position:relative;overflow:hidden;color:#fff;box-shadow:0 18px 40px rgba(7,47,95,.14);}
.ibrico-promo-card span{display:inline-flex;background:var(--ibrico-yellow);color:#111827;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:950;text-transform:uppercase;margin-bottom:18px;}
.ibrico-promo-card h2{margin:0;color:inherit;font-size:30px;line-height:1.1;font-weight:950;text-transform:uppercase;}
.ibrico-promo-card a{display:inline-flex;margin-top:20px;background:var(--ibrico-red);color:#fff !important;border-radius:7px;min-height:42px;align-items:center;padding:0 20px;font-size:13px;font-weight:950;text-transform:uppercase;}
.ibrico-promo-blue{background:radial-gradient(circle at 76% 48%,rgba(255,204,0,.22),transparent 24%),linear-gradient(135deg,#062f5f 0%,#041f40 100%);}
.ibrico-promo-blue::after{content:"%";position:absolute;right:50px;bottom:22px;width:92px;height:92px;display:flex;align-items:center;justify-content:center;background:var(--ibrico-red);color:#fff;border-radius:50%;font-size:54px;font-weight:950;box-shadow:0 18px 35px rgba(0,0,0,.22);}
.ibrico-promo-yellow{background:radial-gradient(circle at 82% 50%,rgba(255,255,255,.34),transparent 24%),linear-gradient(135deg,#ffcc00 0%,#ffdb4d 100%);color:#111827;}
.ibrico-promo-yellow a{background:var(--ibrico-blue);}

/* TRUST FINALE */

.ibrico-final-trust{margin-bottom:46px;background:#f5f9ff;border:1px solid #e4edf7;border-radius:12px;padding:24px 26px;display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.ibrico-final-trust div{display:grid;grid-template-columns:46px 1fr;column-gap:14px;align-items:start;}
.ibrico-final-trust span{grid-row:span 2;font-size:34px;}
.ibrico-final-trust strong{display:block;color:#111827;font-size:14px;font-weight:950;text-transform:uppercase;line-height:1.3;}
.ibrico-final-trust small{color:#475569;font-size:13px;line-height:1.35;}

/* RESPONSIVE */

@media(max-width:1100px){
    .ibrico-hero-new{min-height:420px;background-position:64% center;}
    .ibrico-trust{grid-template-columns:repeat(2,1fr);}
    .ibrico-trust-item:nth-child(2){border-right:none;}
    .ibrico-trust-item:nth-child(1),.ibrico-trust-item:nth-child(2){border-bottom:1px solid var(--ibrico-border);}
    .ibrico-categories-new{grid-template-columns:repeat(3,1fr);}
    .ibrico-products-new ul.products{grid-template-columns:repeat(3,1fr) !important;}
    .ibrico-final-trust{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:768px){
    .ibrico-hero-new{
        min-height:auto;
        padding:42px 16px 52px;
        background-image:linear-gradient(90deg,rgba(7,47,95,.99) 0%,rgba(7,47,95,.96) 62%,rgba(7,47,95,.75) 100%),url("images/hero-ibrico-banco-lavoro.png");
        background-position:72% center;
    }
    .ibrico-hero-inner{min-height:auto;}
    .ibrico-badge{font-size:12px;padding:9px 14px;margin-bottom:16px;}
    .ibrico-hero-text h1{font-size:34px;letter-spacing:-1px;}
    .ibrico-hero-text p{font-size:16px;}
    .ibrico-hero-buttons{flex-direction:column;gap:12px;}
    .ibrico-btn-main,.ibrico-btn-alt{width:100%;}
    .ibrico-mini-services{gap:10px;}
    .ibrico-mini-services span{width:100%;font-size:13px;}
    .ibrico-trust{grid-template-columns:1fr;margin-top:18px;}
    .ibrico-trust-item{border-right:none;border-bottom:1px solid var(--ibrico-border);}
    .ibrico-trust-item:last-child{border-bottom:none;}
    .ibrico-head-row{align-items:flex-start;flex-direction:column;gap:8px;}
    .ibrico-categories-new{grid-template-columns:repeat(2,1fr);gap:14px;}
    .ibrico-categories-new a{min-height:160px;}
    .ibrico-products-new ul.products{grid-template-columns:repeat(2,1fr) !important;gap:14px !important;}
    .ibrico-promo-grid{grid-template-columns:1fr;}
    .ibrico-final-trust{grid-template-columns:1fr;}
}

@media(max-width:480px){
    .ibrico-products-new ul.products{grid-template-columns:1fr !important;}
    .ibrico-categories-new{grid-template-columns:1fr;}
    .ibrico-promo-card{padding:26px 24px;}
    .ibrico-promo-card h2{font-size:24px;}
}
