

:root {
    --color-blue: #0F1F3D;
    --color-red: #f00000;
    --primary-font: 'Montserrat', sans-serif;
    --color-grey: #FAFAFA;
}

body {
    font-family: var(--primary-font);
    color: #686B6F;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42857143;
}


/* COLOR */

.bg-red {
    background-color: var(--color-red);
}

.color-red {
    color: var(--color-red);
}

.bg-blu, .bg-blue {
    background-color: var(--color-blue);
}

.color-blu {
    color: var(--color-blue);
}

.bg-grey {
    background-color: var(--color-grey);
}


/* FONT */

h2 {
    color: var(--color-blue);
    font-size: 35px;
}

h3 {
    color: var(--color-blue);
    font-size: 23px;
}

p {
    font-size: 1.15rem;
}

a:hover {
    color: var(--color-blue);
}

a.cta {
    font-size: 18px;
    border-radius: 10px;
    letter-spacing: 3px;
    font-weight: 600;
}

.bg-header {
    /* Background image ora gestito tramite picture element per LCP */
    background: linear-gradient(180deg, rgb(0 0 0 / 17%) 0%, rgb(0 0 0 / 36%) 84%);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Stili per le immagini ottimizzate */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Assicura che il testo sia sopra l'immagine */
.text-border {
    position: relative;
    z-index: 1;
}
.bg-error {
    height:100vh;
}

.bg-form {
    background-color: rgba(250, 250, 250, .85);
    border-radius: 10px;
    padding:40px;
    color: var(--color-blue);
}

.text-privacy {
    color: #686B6F;
    font-size: 10px;
}

.btn-form {
    font-size: 20px;
    font-weight: 500;
}

p.title2 {
    font-size: 25px;
    font-weight: 500;
    text-shadow: 1px 1px 0px black;
}

p.title1 {
    font-size: 33px;
    font-weight: 500;
    text-shadow: 1px 1px 0px black;
}

p {
    word-wrap: break-word;
}

p.number {
    font-size: 80px;
    font-weight: bold;
}

p.number .perc {
    font-size: 50px;
    color: var(--color-red);
}

.forza {
    padding-bottom: 200px;
}

.corsi {
    padding-top: 200px;
}

.container-perc {
    box-shadow: 1px -1px 20px #0f1f3d1a;
    border: 1px solid #0f1f3d1a;
    border-radius: 15px;
    background-color: white;
    width: 1300px;
    position: absolute;
}

.box-corsi {
    box-shadow: 1px -1px 20px #0f1f3d1a;
    border-radius: 15px;
}

img.bord {
    border-radius: 15px 15px 0px 0px;
}

p.text-corsi {
    font-size: 15px;
}

a.cta-corsi {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 2px;
}

p.footer {
    font-size: 12px;
}

.card-rec {
    background-color: white;
    border-radius: 15px;
    /* box-shadow: 1px -1px 20px #0f1f3d1a; */
    width: 600px;
}

.bg-header-tnk {
    background-image: url('img_bring-a-friend/baf_header.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

.test {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-check{
    text-align: left !important;
}
.privacy-form.privacy_optional{
    margin-top: 10px;
}

p.privacy {
    font-size: 11px;
    line-height: 17px;
    color: #686B6F;
}
.footer a {
    color:inherit;
    text-decoration: none;
}

.footer a:hover {
    color:rgb(71, 116, 212);
}
.cta-coupon {
    margin-top: 3rem;
    background-color: var(--color-blue);
    border-radius: 10px;
    transition: 0.3s;
}

.cta-coupon a {
    width: 20%;
}
.privacy-form a {
    color:inherit;
}
#tnk-back-to-home {
    background-color: var(--color-red);
    padding:15px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-family: var(--primary-font)!important;
    transition: 0.3s;
    
}
.tnk-anchor-back {
    max-width:40%;
    min-width: 200px;
    margin:auto;
}
a {
    color:inherit;
    text-decoration: none;
}

#tnk-back-to-home:hover {
    color: var(--color-blue);
    opacity:75%;
}
.cta-coupon:hover {
    opacity:75%;
    color:white;
}
h1 {
    font-size: 26px;
}
.header {
    text-align: center;
    margin:auto;
}
nav {
    position:fixed;
    top: 0;
    left:0;
    z-index: 999;
    width: 100%;
}
.box {
    padding: 20px 20px;
    color: var(--color-red);
}
.box img {
    max-width: 250px;
    margin-bottom: 20px;
}
.bg-form {
    text-align: center;
    background-color: var(--color-grey);
    padding-top: 16rem;

}
#form {
    padding: 30px !important;
}
#formMob, #form {
    margin:auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 1px 1px 15px rgb(230, 230, 230);
}
.bg-form i {
    color: #686B6F;
}
.microcopy p {
    color: var(--color-blue)!important;
    text-align: center;
    font-size: 20px;
    padding-top: 10px;

}
.header {
    width: 80%;
}
.header h1, .header h2 {
    font-size: 30px;
}
.header p {
    font-size: 22px;
}
.btn-form, .microcopy p {
    font-size:16px;
    white-space: normal;
}

@media screen and (max-width: 1300px) {
    .bg-form {
        padding-top: 2rem;
    }
}

@media screen and (max-width: 760px) {
    .desktop {
        display:none !important;
    }
}

@media screen and (max-width: 576px) {
    /* Ottimizzazioni per mobile e LCP */
    .header-bg-image {
        object-position: center;
    }
    
    .box img {
        max-width: 200px;
    }

    .btn-form, .microcopy p {
        font-size:16px;
        white-space: normal;
    }
    .desktop {
        display:none !important;
    }
    br {
        display: none;
    }
    .container-perc {
        width: 100%;
        position: relative;
    }
    .forza {
        padding-bottom: 50px;
    }
    .corsi {
        padding-top: inherit;
    }
    .card-rec {
        width: 100%;
    }
    h2 {
        font-size: 23px;
    }
    p.number {
        font-size: 65px;
    }
    a.cta {
        font-size: 13px;
    }
    p.footer {
        font-size: 10px;
    }

    .cta-mobile {
        background-color: #fff;
        padding: 20px;
        text-align: center;
        bottom: 0px;
        z-index: 100;
        border-top: 1px solid var(--color-grey)
    }
    a.cta-scroll-mobile {
        text-decoration: none;
        font-weight: 500;
        font-size: 20px;
        color: #fff;
    }
}

@media screen and (min-width: 577px) and (max-width: 1366px) {

    .container-perc {
        width: 100%;
        position: relative;
    }
    .forza {
        padding-bottom: 50px;
    }
    .corsi {
        padding-top: inherit;
    }
    .card-rec {
        width: 500px;
    }
    p.number {
        font-size: 55px;
    }
    .fs-4 {
        font-size: 1.2rem!important;
    }
    h2 {
        font-size: 30px;
    }
    br {
        display: none;
    }
    img.skill {
        margin-right: 15px;
    }
}

@media screen and (min-width: 100px) and (max-width: 768px) {
    .logo {
        text-align:center;
    }
}