
:root {
    --color-blue: rgb(15, 31, 61);
    --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);
}

.opinioni {
    color:white;
}
.opinioni img {
    margin-right: 20px;
    /* padding-bottom:3rem; */
}
.opinioni .col-md-5  {
text-align: center;
}

.opinioni .row {
    padding-bottom: 3rem;
}

/* FONT */

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

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

p {
    font-size: 1.15rem;
}

.title-hero p:last-child {
    font-size: 14px;
}
.title-hero p:nth-child(2) {
    font-size: 20px;
}
.opinioni p:first-child {
    font-size: 35px;
    padding: 3rem 0;
}
.opinioni div:nth-child(2) p:first-child {
    font-size: 21px;
    padding: 3rem 0;
}

.opinioni div:nth-child(2) p:last-child {
    font-size: 19px;
    padding: 3rem 0;
}

.col-md-7 p:not(:first-child):not(:nth-child(2)) {
    font-size: 19px;
  }
.col-md-7 p:nth-child(2) {
font-size: 21px;
}
.title-form {
    font-size: 34px;
    font-weight: 700;
}
.first-text-form {
    font-size:27px;
}


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

a.cta {
    font-size: 20px;
    border-radius: 25px;
    letter-spacing: 3px;
    font-weight: 600;
}
.text-shadow {
    text-shadow: 1px 1px 2px black;
}
.tnk-title {
    padding-top: 15rem;
}
.cta {
    padding: 20px 25px;
}

.bg-header {
    /* Background image ora gestito tramite picture element per LCP */
    background-image: url('img_convenzioni/hero_conventions.webp');
    /* background: linear-gradient(180deg, rgb(0 0 0 / 17%) 0%, rgb(0 0 0 / 36%) 84%); */
    position: relative;
    overflow: hidden;
    padding: 4rem 0 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}
.bg-header-form {
    padding: 0;
}
.title-hero {
    background-color: rgba(15, 31, 61, 0.7);
    padding: 8rem 4rem 3rem;
    line-height: 2rem;
}
.title-hero p {
    margin-top: 1rem;
}
.title-hero div {
    margin-top: 5rem;
}
.title-hero p:last-child {
    margin-top: 20px;
    text-align: center;
}

.perks {
    color:white;
    padding:0 2rem;
}
.perks img {
    object-fit: cover;
    width: 100%;
    height: 500px;
}

.perks p {
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 2rem;
}
.bg-light-gray {
    background-color: rgb(225, 221, 222);
}
.bg-ligher-gray {
    background-color: rgb(235, 235, 235);
}
/* 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;
}

.why h2 {
    margin-bottom: 25px;
    font-weight: 600;
}
.why h4 {
    color: var(--color-blue);
    font-weight: 700;
}
.why p {
    
    color:black;
    line-height: 2rem;
    letter-spacing: 1px;
}
.why p, .why h4 {
    padding: 0 2rem;
}

.why img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.why .top {
    text-align: center;
    font-size: 45px;
    font-weight: 700;
}

/* 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, .7);
    border-radius: 10px;
    padding:40px;
    color: var(--color-blue);
}
.white-overlay {
    background-color: rgba(250, 250, 250, .70);
    padding: 3rem 3rem 20px;
}

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

.btn-form {
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
}

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;
}
.bold {
    font-weight: 600;
}

.trustpilot .top {
    padding: 4rem 2rem;
}

.trustpilot .top .col-md-3 {
    padding-right: 2rem;
}

.trustpilot p {
    color: black;
}

.trustpilot .top .row:first-child div:nth-child(2) {
    text-align: end;
}

.trustpilot div:nth-child(2) h2 {
    text-align: end;
    /* font-size: 55px; */
    font-size: 45px;
    font-weight: 600;
}
.trustpilot div:nth-child(2) p {
    color: var(--color-blue);
    /* padding: 20px 0; */
    letter-spacing: 1.5px;
    line-height: 25px;
    font-size: 20px;
    /* font-size: 24px; */
    /* margin-top: 50px; */
}
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 {
    border-radius: 15px;
    /* box-shadow: 1px -1px 20px #0f1f3d1a; */
    /* width: 600px; */
}

.bg-header-tnk {
    background-image: url('img_convenzioni/hero_conventions.webp');
    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: 12px;
    line-height: 17px;
    color: var(--color-blue)
}
.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: 24px;
}
.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;
    padding-top: 16rem;

}
#form {
    padding: 30px !important;
}
#formMob, #form {
    margin:auto;
    width: 40%;
}

#WebToLeadForm .bottom {
    max-width:50%;
    margin:auto;
}
.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:18px;
    white-space: normal;
    padding:10px;
}

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

@media screen and (max-width:1200px) {
    #formMob, #form {
        width: 60%;
    }
}

@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;
    }
}

.convenzione-section {
    background-color: var(--color-grey);
    padding: 60px 0;
}

.convenzione-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.convenzione-description,
.convenzione-conditions,
.convenzione-cta {
    color: #686B6F;
}

.convenzione-image-wrapper {
    background-color: var(--color-grey);
    border-radius: 10px;
    padding: 10px;
    /* margin-top: 20px; */
    text-align: center;
}

.convenzione-image-wrapper img {
border-radius: 10px;
    object-fit: contain;
}

.convenzione-title {
    font-size: 28px;
    font-weight: 600;
}

.convenzione-subtitle {
    font-weight: 700;
}

.convenzione-description {
    margin-bottom: 15px;
}

.convenzione-conditions {
    margin-bottom: 15px;
}

.convenzione-cta {
    margin-top: 20px;
}

.convenzione-card p {
    font-size: 1.1rem;
}

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

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

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

@media screen and (max-width:768px) {
    #formMob, #form {
        width: 100%;
        padding:0;
    }
    nav .col-12, .myes-logo {
        text-align:center;
    }
    #tnk-back-to-home {

        font-size: 1rem;
    }
    .cta {
        padding: 15px 20px;
        font-size: 10px;
        white-space: nowrap;
    }

    .trustpilot .top .col-md-3 {
        max-width: 300px;
        margin:auto
    }
    .trustpilot .top {
        padding: 0;
    }
    .trustpilot div:nth-child(2) p {
        padding:0;
        margin-top: 0;
        
    }

    .perks img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        padding-bottom: 2rem;
    }
}