html,body{
    --bg: #F4F4F4;
    --Color: #239A94;
    --Write : #FFBC2B;
    --logo_B: url("./Assets/Logo_B.svg");
    --logo_W: url("./Assets/Logo_W.svg");
    --txt : #404040;
    --babes: "Bebas Neue", sans-serif;
    --Roboto: "Roboto Condensed", sans-serif;
    --Archivio: "Archivo Narrow", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--txt);
    font-family: var(--Roboto);
    background-color: var(--bg);
}
/*--------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 10px;
    background-color: #239A94;

}
::-webkit-scrollbar-track {
    background: transparent;
    
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}
/*--------------------------------------------------------------*/
h1 {
    font-family: var(--babes);
    font-size: 22vh;
    letter-spacing: 2px;
    color: var(--txt);
    line-height: 20vh;
    @media (max-width: 1022px) {
            font-size: 22vw;
            line-height: 20vw;
    }
}
@media (max-aspect-ratio: 1/1) {
    h1 {
        line-height: 10vh;
        font-size: clamp(5rem, 15vw, 15rem);
    }
}
@media (min-aspect-ratio: 1/1) {
    h1 {
        font-size: 12vw;
        line-height: 10vw;
    }
}
h2{
    letter-spacing: 2px;
    color: var(--txt);
    display: flex;
    align-items: center;
    margin: 0;

    @media (max-width: 1022px) {
        
    }
}
h2 img{
    height: 10vh;
    margin: 10px;
}
h3{
    font-weight: 300;
}
h4{
    font-family: var(--Archivio);
    font-size: 4rem;
    margin: 20px;

        font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.95;
    font-weight: 500;
    margin: 0 0 3rem 0;
}

.highlighted{
    color: var(--Write);
    padding-left: 1rem;
}

/*--------------------------------------------------------------*/

/************************/
/* =========================
   WHY CEAL
   ========================= */

.why-ceal {
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8vw;
    padding: 10vh 8vw;
    box-sizing: border-box;
}

/* IMAGE */

.why-ceal-image {
    width: 42%;
    max-width: 650px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.why-ceal-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* CONTENT */

.why-ceal-content {
    width: 42%;
    max-width: 600px;
}

.section-label {
    display: block;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.why-ceal-content h2 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.95;
    font-weight: 500;
    margin: 0 0 3rem 0;
    width: min-content;
}

.why-ceal-content p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.why-ceal-small {
    font-size: 1rem !important;
    opacity: 0.65;
    max-width: 450px;
}

.why-ceal-line {
    width: 60px;
    height: 2px;
    background: currentColor;
    margin: 2.5rem 0;
}

@media (max-width: 800px) {

    .why-ceal {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4rem;
        padding: 10vh 7vw;
    }

    .why-ceal-image {
        width: 100%;
        max-width: none;
    }

    .why-ceal-content {
        width: 100%;
        max-width: none;
    }

    .why-ceal-content h2 {
        font-size: clamp(3rem, 10vw, 5rem);
        margin-bottom: 2rem;
    }

    .why-ceal-content p {
        font-size: 1.15rem;
    }
}
/*--------------------------------------------------------------*/

/* =========================
   PRODUCT SECTION
   ========================= */

.product-section {
    width: 100%;
    min-height: 100vh;
    padding: 12vh 8vw;
    box-sizing: border-box;

    display: flex;
    align-items: center;
}

.product-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8vw;
}

/* INFO */

.product-info {
    width: 45%;
    max-width: 650px;
}

.product-logo {
    margin-bottom: 2rem;
}

.product-logo img {
    width: 180px;
    max-width: 50%;
}

.product-info h2 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.95;
    font-weight: 500;

    margin: 0 0 2.5rem 0;
}

.product-info p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.product-info p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.5;

    max-width: 550px;
    margin-bottom: 2.5rem;
}

/* BUTTONS */

.product-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.9rem 1.8rem;

    border: 1px solid var(--Color);
    color: var(--Color);

    text-decoration: none;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1rem;

    transition: 0.25s ease;
}

.product-button:hover {
    transform: translateY(-3px);
}

.product-button.secondary {
    opacity: 0.55;
}

/* VISUAL */

.product-visual {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000vw;

}

.product-visual img {
    width: 90vw;
    max-width: 750px;
    height: auto;

    display: block;

    transition: transform 0.5s ease;
}

.product-visual img:hover {
    transform: scale(1.02);
}

@media (max-width: 800px) {
    .product-section{
        padding:0;
    }
}

/*--------------------------------------------------------------*/

/* =========================
   3DFIED STEPS
   ========================= */

.steps-section {
    width: 100%;
    min-height: 80vh;

    padding: 10vh 8vw;
    box-sizing: border-box;
}

.steps-title {
    margin-bottom: 8vh;
    
}

.steps-title h2 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(3.5rem, 6vw, 7rem);
    line-height: 0.9;
    font-weight: 500;
    align-items: end;
    margin: 0;
}

.steps-title p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}


.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4vw;
    padding: 30px;
}

.step {
    border-top: 1px solid currentColor;
    padding-top: 1.5rem;
}

.step-number {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1rem;
    opacity: 0.5;
}

.step h3 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 2rem;
    font-weight: 500;

    margin: 2rem 0 1rem;
}

.step p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.15rem;
    line-height: 1.5;

    max-width: 300px;
}

.steps-video{
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (max-width: 800px) {
    .steps-grid{
        grid-template-columns: none;
        padding: 0;
    }

    .steps-video{
        display: flex;
        flex-direction: column;
    }
}

/*--------------------------------------------------------------*/

.demo-section {
    width: 100%;
    padding: 10vh 8vw 15vh;
    box-sizing: border-box;
}

.demo-video {
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

.demo-video video {
    width: 100%;
    height: auto;
    display: block;
}

.demo-section h2 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(3.5rem, 7vw, 8rem);
    line-height: 0.9;
    font-weight: 500;

    margin: 5vh 0 0;
}

@media (max-width: 800px) {
    .demo-section{
        padding:0;
    }
}

/*--------------------------------------------------------------*/

.logo{
    background-image: var(--logo_W);
    background-repeat: no-repeat;
    background-size: contain; /* oppure cover o una dimensione precisa */
    background-position: center;
    width: calc(22px * 2);
    height: calc(28px * 2);
    margin: 10px;
}
.lateral{
    margin: 20px;
    color: var(--bg);
    cursor: pointer;
}

.icon{
    width: 2%;
    color: var(--Color);
}

.icon path{
    fill: red;
}
/*--------------------------------------------------------------*/

.bottom{
    width: stretch;
    background-color: var(--txt);
    height: 100px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: var(--bg);
    padding: 20px;

}
/*--------------------------------------------------------------*/

video{
    width: 40vw;
    border-radius: 5px;
    @media (max-width: 500px) {
        width: min(90%, 600px);
        height: auto;
    }
}



/*--------------------------------------------------------------*/

.imgcard{
    width: min(40%,1000px);
    aspect-ratio: 4 / 3;
    object-fit: cover;

    @media (max-width: 500px) {
        width: min(90%,1000px);
        height: auto;
    }
}

.imgcard:hover{
    object-fit: scale-down;

}

/*--------------------------------------------------------------*/
.topbar_{
    position: absolute;
    top: 0;
    left: 0;
    height: 80px;
    width: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    transition: height 1.5s ease;
    background-color: var(--bg);
    z-index: 10;
}
.topbar-content {
    height: 80px;
    display: flex;
    align-items: center;
}
.topbar-content .logo{
    background-image: var(--logo_B);
}
.topbar-content .lateral{
    color: var(--txt);
}
.topbar.compact {
    height: 0px; /* lascia una piccola "lingua" */
}

/*--------------------------------------------------------------*/

.page{
    /*height: 100vh;*/
    display: flex;
    align-items: center;
}

@media (max-width: 800px) {
    .page{
        flex-direction: column;
    }
}

.page-long{
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.intropage {
    position: relative;
    background: var(--Color);
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100vh;
}
/* immagine trasparente sopra */
.intropage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("Assets/programmatore-informatico.png");
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* trasparenza immagine */
}
/* contenuto sopra tutto */
.intropage > * {
    position: relative;
    z-index: 1;
}
.title{
    margin: 3vw;
    color: var(--Write);
}
.banner{
    background-color: white;
    box-shadow: 0px 0px 5px 0px #00000015;
    margin: 5px;
    width: -webkit-fill-available;

}
.slot{
    display: flex;
    justify-content: space-evenly;
    padding: 20px;
    margin: 5px;
    align-items:center;
    @media (max-width: 500px) {
        flex-direction:column;
        text-align: center;
    }
}

.down{
    @media (max-width: 500px) {
        flex-direction:column-reverse
    }
}

.swap{
    flex-direction:row-reverse
}

.centered{
    justify-content: center;
}

.clear{
    justify-content: center;
    margin: 0;
    padding: 0;
    @media (max-width: 500px) {
        flex-direction:column
    }
}

.card{
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    @media (max-width: 500px) {
        width: 90%;
    }
}


.container {
    perspective: 1200px;
    background-color: #6fd0aa36;
    /*overflow: hidden;*/
    width: 30vw;
    height: 40vh;
    
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    @media (max-width: 500px) {
        width: 50vw;
        height: 20vh;
    }
}
.iim {
    width: 70vw;
    transform:
        perspective(1000px)
        rotateX(10deg)
        rotateY(-25deg)
        translateZ(0);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,.02));
    transform-style: preserve-3d;
    transition: transform .5s ease;
    border-radius: 5px;
    @media (max-width: 500px) {
            width: auto;
            height: 40vh;
    }
}
.iim:hover {
    transform:
        rotateX(0deg)
        rotateY(0)
        translateZ(50px);
}


