*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.site {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr);
}

body {
    margin: 0;
    padding: 0;
    font-family: "Titillium Web", sans-serif;
}


h1 {
    color: #406180;
    font-size: 30px;
}

/* START NAVIGATION */

.nav-logo-ext {
    display: none;
}

nav {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: #406180;
    box-shadow: inset 0px -1px 0px #111111;
    z-index: 999;
}

.nav-logo {
    position: fixed;
    padding: 0;
    margin-right: 85px;
    right: 0;
}

.humburger {
    display: none;
}

.navlinks-container {
    margin-left: 60px;
}

.navlinks-container a {
    margin: 0 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fafafa;
    display: inline-block;
    position: relative;
}

.navlinks-container a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: #ff4f1a;
    transition: transform 0.3s ease-out;    
}

.navlinks-container a:hover::after {
    transform: scaleX(1);
}

.nav-login a {
    margin-right: 15px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fafafa;
    display: inline-block;
    position: relative;
}

.nav-login a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: #ff4f1a;
    transition: transform 0.3s ease-out;    
}

.nav-login a:hover::after {
    transform: scaleX(1);
}


@media screen and (max-width: 900px) {
    nav {
        padding: 15px 25px;
        position: relative;
    }

    .nav-logo {
        display: none;
    }

    .nav-logo-ext {
        display: flex;
        padding: 0;
        margin: 0 auto;
    }


    /* humburger */

    .humburger {
        width: 20px;
        height: 20px;
        cursor: pointer;
        border: none;
        display: flex;
        background: #406180;
        align-items: center;
        position: relative;
    }

    .humburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fafafa;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s ease-out;
    }

    .humburger span:nth-child(1), .humburger span:nth-child(3) {
        transition: transform 0.3s ease-out;
    }

    .humburger span:nth-child(1) {
        transform: translateY(7px);
    }

    .humburger span:nth-child(3) {
        transform: translateY(-7px);
    }

    .humburger.open span:nth-child(1) {
        transform: translate(0) rotate(135deg);
    }

    .humburger.open span:nth-child(2) {
        opacity: 0;
        transform: opacity 0s ease-out;
    }

    .humburger.open span:nth-child(3) {
        transform: translate(0) rotate(-135deg);
    }

    .navlinks-container {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        align-items: flex-start;
        position: absolute;
        background: #406180;
        top: 100%;
        left: 0;
        height: 100vh;
        padding: 15px 50px 15px 20px;
        transform: translate(-100%);
        /* transition: transform 0.3s ease-out; */
    }

    .open {
        transform: translate(0%);
    }

    .navlinks-container a {
        font-size: 18px;
        margin: 10px 0;
    }  
}

.payoff {
    margin-top: 50px;
}

.menu-container {
    display: flex;
    flex-direction: column;
    margin-right: 0;
    align-items: flex-end;
    vertical-align: middle;
}

.menu-container a {
    margin: 6px 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fafafa;
    display: inline-block;
    position: relative;
}


/* END NAVIGATION */

.banner-card {
    position: relative;
}

.banner-card img {
    max-width: 100%;
    height: auto;
}

.main-title {
    position: absolute;
    width: 100%;
    top: 85%;
}

.main-title h1 {
    color: #ff4f1a;
    font-size: 20;
    font-weight: 400;
    text-align: center;
    transform: translateY(-50%);
}

.text {
    background: #fafafa;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.content-text {
    padding: 20px 50px;
}

.content-text h2 {
    text-align: center;
    color: #0082FF;
    font-weight: 300;
}

.content-text p {
    text-justify: auto;
    text-align: justify;
}

.content-text span {
    font-weight: 700;
}

@media screen and (min-width: 768px) {
    .content-text {
        padding: 20px 100px;
    }
}

@media screen and (min-width: 1024px) {
    .content-text {
        padding: 20px 200px;
    }
}

@media screen and (min-width: 1366px) {
    .content-text {
        padding: 20px 300px;
    }
}

@media screen and (min-width: 1800px) {
    .content-text {
        padding: 20px 400px;
    }
}



.griglia {
    width: 1200px;
    height: 1000px;
    margin-top: 60px;
    /* margin-bottom: 30px; */
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
    grid-template-columns: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
}

.casella-text {
    padding: 30px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.casella-text p {
    text-justify: auto;
    text-align: justify;
}

.casella-text span {
    font-weight: 700;
}

.casella-1 {
    grid-row: 1 / 6;
    grid-column: 1 / 7;
}

.casella-2 img {
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.casella-2 {
    grid-row: 1 / 6;
    grid-column: 7 / 13;
}

.casella-3 img {
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.casella-3 {
    grid-row: 6 / 11;
    grid-column: 1 / 7;
}
.casella-4 {
    grid-row: 6 / 11;
    grid-column: 7 / 13;
}

@media screen and (max-width: 1200px) {
    .griglia {
        width: 800px;
        height: 1200px;
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
        grid-template-columns: 100px 100px 100px 100px 100px 100px 100px 100px;
    }
    .casella-1 {
        grid-row: 1 / 7;
        grid-column: 1 / 6;
    }
    
    .casella-2 {
        grid-row: 1 / 7;
        grid-column: 6 / 9;
    }
    .casella-3 {
        grid-row: 7 / 13;
        grid-column: 1 / 4;
    }
    .casella-4 {
        grid-row: 7 / 13;
        grid-column: 4 / 9;
    }
}

@media screen and (max-width: 800px) {
    .griglia {
        width: 400px;
        height: 1500px;
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
        grid-template-columns: 100px 100px 100px 100px;
    }
    .casella-1 {
        grid-row: 1 / 8;
        grid-column: 1 / 5;
    }
    
    .casella-2 {
        display: none;
        grid-row: 6 / 9;
        grid-column: 1 / 5;
    }

    .casella-3 img {
        border-radius: 10px;
    }
    .casella-3 {
        grid-row: 8 / 10;
        grid-column: 1 / 5;
    }
    .casella-4 {
        grid-row: 10 / 17;
        grid-column: 1 / 5;
    }
}

@media screen and (max-width: 400px) {
    .griglia {
        width: 300px;
        height: 1800px;
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
        grid-template-columns: 100px 100px 100px;
    }
    .casella-1 {
        grid-row: 1 / 10;
        grid-column: 1 / 4;
    }
    
    .casella-2 {
        display: none;
        grid-row: 6 / 9;
        grid-column: 1 / 4;
    }

    .casella-3 img {
        border-radius: 10px;
    }
    .casella-3 {
        grid-row: 10 / 12;
        grid-column: 1 / 4;
    }
    .casella-4 {
        grid-row: 12 / 19;
        grid-column: 1 / 4;
    }
}


.cloud {
    width: 1000px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.cloud img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 1200px) {
    .cloud {
        width: 800px;
    }
}

@media screen and (max-width: 800px) {
    .cloud {
        width: 550px;
    }
}

@media screen and (max-width: 600px) {
    .cloud {
        width: 400px;
    }
}

@media screen and (max-width: 400px) {
    .cloud {
        width: 300px;
    }
}


.griglia-2 {
    width: 1200px;
    height: 1000px;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
    grid-template-columns: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
}

.casella-text {
    padding: 30px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.casella-text p {
    text-justify: auto;
    text-align: justify;
}

.casella-text span {
    font-weight: 700;
}

.casella-5 {
    grid-row: 1 / 6;
    grid-column: 1 / 7;
}

.casella-6 img {
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.casella-6 {
    grid-row: 1 / 6;
    grid-column: 7 / 13;
}

.casella-7 img {
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.casella-7 {
    grid-row: 6 / 11;
    grid-column: 1 / 7;
}
.casella-8 {
    grid-row: 6 / 11;
    grid-column: 7 / 13;
}

@media screen and (max-width: 1200px) {
    .griglia-2 {
        width: 800px;
        height: 1200px;
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
        grid-template-columns: 100px 100px 100px 100px 100px 100px 100px 100px;
    }
    .casella-5 {
        grid-row: 1 / 7;
        grid-column: 1 / 6;
    }
    
    .casella-6 {
        grid-row: 1 / 7;
        grid-column: 6 / 9;
    }
    .casella-7 {
        grid-row: 7 / 13;
        grid-column: 1 / 4;
    }
    .casella-8 {
        grid-row: 7 / 13;
        grid-column: 4 / 9;
    }
}

@media screen and (max-width: 800px) {
    .griglia-2 {
        width: 400px;
        height: 1000px;
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
        grid-template-columns: 100px 100px 100px 100px;
    }
    .casella-5 {
        grid-row: 1 / 5;
        grid-column: 1 / 5;
    }

    .casella-6 img {
        border-radius: 10px;
    }
    
    .casella-6 {
        grid-row: 5 / 7;
        grid-column: 1 / 5;
    }

    .casella-7 {
        display: none;
        grid-row: 8 / 10;
        grid-column: 1 / 5;
    }
    .casella-8 {
        grid-row: 7 / 11;
        grid-column: 1 / 5;
    }
}

@media screen and (max-width: 400px) {
    .griglia-2 {
        width: 300px;
        height: 1200px;
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-rows: 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
        grid-template-columns: 100px 100px 100px;
    }
    
    .casella-5 {
        grid-row: 1 / 6;
        grid-column: 1 / 4;
    }

    .casella-6 img {
        border-radius: 10px;
    }
    
    .casella-6 {
        grid-row: 6 / 8;
        grid-column: 1 / 4;
    }

    .casella-7 {
        display: none;
        grid-row: 10 / 12;
        grid-column: 1 / 4;
    }
    .casella-8 {
        grid-row: 8 / 13;
        grid-column: 1 / 4;
    }
}