.cs-schemi-grid{

display:grid;

grid-template-columns:repeat(auto-fill,minmax(320px,1fr));

gap:30px;

}

.cs-card{

background:#fff;

border-radius:18px;

overflow:hidden;

box-shadow:0 10px 35px rgba(0,0,0,.08);

transition:.3s;

}

.cs-card:hover{

transform:translateY(-6px);

}

.cs-image img{

display:block;

width:100%;

height:320px !important;

object-fit:cover;

}

.cs-content{

padding:25px;

}

.cs-content h3{
    
    font-family: "Poppins";

margin:0 0 15px;

font-size:24px;

text-transform: uppercase !important;

height: 60px;

}

.cs-badge{

display:inline-block;

padding:8px 14px;

border-radius:30px;

font-size:13px;

font-weight:700;

margin-bottom:20px;

}

.cs-free{

background:#E8FAEC;

color:#248046;

}

.cs-paid{

background:#FFF1E8;

color:#C05B00;

}

.cs-button a{

display:block;

background:#782F88;

color:#fff;

text-align:center;

padding:14px;

border-radius:8px;

text-decoration:none;

font-weight:700;

border: 1px solid #782F88;

}

.cs-button a:hover{

display:block;

background:#fff;

color:#782F88;

text-align:center;

padding:14px;

border-radius:8px;

text-decoration:none;

font-weight:700;

}

/* ==========================
   Badge difficoltà
========================== */

.cs-image{
	position:relative;
}

.cs-difficulty{

	position:absolute;
	top:12px;
	right:12px;

	padding:6px 12px;

	border-radius:30px;

	background:#666;

	color:#fff;

	font-size:12px;

	font-weight:600;

	line-height:1;

	z-index:20;

	box-shadow:0 2px 8px rgba(0,0,0,.15);

}

/* Principiante */

.cs-difficulty.principiante{
	background:#4CAF50;
}

/* Intermedio */

.cs-difficulty.intermedio{
	background:#F39C12;
}

/* Esperto */

.cs-difficulty.esperto{
	background:#E53935;
}

/* ==========================================================
   CARD ORIZZONTALE SCHEMI
========================================================== */

.cs-card-horizontal{
    display:flex;
    gap:24px;
    align-items:stretch;

    padding:20px;

    border:1px solid #ececec;
    border-radius:18px;

    background:#fff;

    transition:.25s ease;
}

.cs-card-horizontal:hover{
    border-color:#d8d8d8;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}


/* ==========================================================
   IMMAGINE
========================================================== */

.cs-card-horizontal__image{
    width:150px;
    flex:0 0 150px;
}

.cs-card-horizontal__image img{
    display:block;

    width:100%;
    aspect-ratio:1;

    object-fit:cover;

    border-radius:14px;
}


/* ==========================================================
   CONTENUTO
========================================================== */

.cs-card-horizontal__content{
    flex:1;

    display:flex;
    flex-direction:column;
}


/* ==========================================================
   HEADER
========================================================== */

.cs-card-horizontal__header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.cs-card-horizontal__title{
    margin:0;

    font-size:24px;
    line-height:1.25;
    font-weight:700;
}


/* ==========================================================
   BADGE
========================================================== */

.cs-card-horizontal .cs-badge{
    white-space:nowrap;
    flex-shrink:0;
}


/* ==========================================================
   DIFFICOLTÀ
========================================================== */

.cs-card-horizontal__difficulty{
    margin-top:14px;
}


/* ==========================================================
   FOOTER
========================================================== */

.cs-card-horizontal__footer{
    margin-top:auto;

    display:flex;
    justify-content:flex-end;
    align-items:center;

    padding-top:20px;
}

.cs-card-horizontal__footer .button{
    min-width:220px;
    text-align:center;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:768px){

    .cs-card-horizontal{
        flex-direction:column;
    }

    .cs-card-horizontal__image{
        width:100%;
        flex:none;
    }

    .cs-card-horizontal__image img{
        aspect-ratio:16/9;
    }

    .cs-card-horizontal__header{
        flex-direction:column;
        gap:12px;
    }

    .cs-card-horizontal__footer{
        justify-content:stretch;
    }

    .cs-card-horizontal__footer .button{
        width:100%;
        min-width:0;
    }

}

.cs-products-list{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:12px;
    flex-wrap:wrap;
    margin-bottom: 12px;
}

.cs-product-thumb{
    position:relative;
    width:52px;
    height:52px;
    display:block;
    border-radius:50%;
    overflow:hidden;
    border:2px solid #eee;
    transition:.25s;
}

.cs-product-thumb:hover{
    border-color:#782f88;
    transform:translateY(-2px);
}

.cs-product-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.cs-product-tooltip{
    position:absolute;
    left:50%;
    bottom:calc(100% + 10px);
    transform:translateX(-50%);
    background:#222;
    color:#fff;
    padding:6px 10px;
    border-radius:6px;
    font-size:12px;
    white-space:nowrap;
    opacity:0;
    visibility:hidden;
    transition:.2s;
    pointer-events:none;
    z-index:20;
}

.cs-product-tooltip:after{
    content:"";
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    border:6px solid transparent;
    border-top-color:#222;
}

.cs-product-thumb:hover .cs-product-tooltip{
    opacity:1;
    visibility:visible;
}

/* ======================================================
   RESPONSIVE TABLET
====================================================== */

@media (max-width:1024px){

    /* GRID */

    .cs-schemi-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:24px;
    }

    /* CARD */

    .cs-content{
        padding:22px;
    }

    .cs-content h3{
        font-size:21px;
        height:auto;
        min-height:56px;
        line-height:1.3;
    }

    .cs-image img{
        height:260px !important;
    }

    /* CARD ORIZZONTALE */

    .cs-card-horizontal{
        gap:20px;
        padding:18px;
    }

    .cs-card-horizontal__image{
        width:130px;
        flex:0 0 130px;
    }

    .cs-card-horizontal__title{
        font-size:21px;
    }

    .cs-card-horizontal__footer .button{
        min-width:180px;
    }

}


/* ======================================================
   RESPONSIVE MOBILE
====================================================== */

@media (max-width:767px){

    /* GRID */

    .cs-schemi-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    /* CARD */

    .cs-card{
        border-radius:14px;
    }

    .cs-image img{
        height:220px !important;
    }

    .cs-content{
        padding:18px;
    }

    .cs-content h3{
        font-size:18px;
        min-height:auto;
        height:auto;
        line-height:1.35;
        margin-bottom:12px;
    }

    /* Badge */

    .cs-badge{
        font-size:12px;
        padding:7px 12px;
        margin-bottom:15px;
    }

    .cs-difficulty{
        top:10px;
        right:10px;
        font-size:11px;
        padding:6px 10px;
    }

    /* Pulsanti */

    .cs-button a{
        width:100%;
        padding:14px;
        box-sizing:border-box;
    }

    /* CARD ORIZZONTALE */

    .cs-card-horizontal{
        gap:16px;
        padding:16px;
        border-radius:14px;
    }

    .cs-card-horizontal__image{
        width:100%;
        flex:none;
    }

    .cs-card-horizontal__image img{
        width:100%;
        aspect-ratio:16/9;
    }

    .cs-card-horizontal__header{
        gap:10px;
    }

    .cs-card-horizontal__title{
        font-size:18px;
        line-height:1.3;
    }

    .cs-card-horizontal__difficulty{
        margin-top:10px;
    }

    .cs-card-horizontal__footer{
        padding-top:18px;
    }

    .cs-card-horizontal__footer .button{
        width:100%;
        min-width:0;
    }

    /* Prodotti collegati */

    .cs-products-list{
        gap:10px;
    }

    .cs-product-thumb{
        width:46px;
        height:46px;
    }

    /* Tooltip inutilizzabile su touch */

    .cs-product-tooltip{
        display:none;
    }

}


/* ======================================================
   EXTRA SMALL
====================================================== */

@media (max-width:480px){

    .cs-image img{
        height:200px !important;
    }

    .cs-content{
        padding:16px;
    }

    .cs-content h3{
        font-size:17px;
    }

    .cs-card-horizontal{
        padding:14px;
    }

    .cs-product-thumb{
        width:42px;
        height:42px;
    }

    .cs-badge{
        font-size:11px;
        padding:6px 10px;
    }

}