@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600;6..12,700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Zeyada&display=swap");

@font-face {
    font-family: aptos;
    src: url(fonts/aptos.ttf);
}

@font-face {
    font-family: aptosBold;
    src: url(fonts/aptos-bold.ttf);
}

@font-face {
    font-family: aptosItalic;
    src: url(fonts/aptos-italic.ttf);
}

:root {
    --primary: #1abfb7;
    --secondary: #2ce2d9;
    --secondary-lighter: hsla(177, 89%, 73%);
    --tertiary:      #003350;
    --medium-light:  #e6e6e6;
    --light:         #f7f7f7;
    --white:         #ffffff;
    --dark:          #15112b;
    --medium-dark:   #1c1738;
    --danger:        #ffc107;
    --link-light:    white;
    --link-dark: $dark;
    --link-decoration: none;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: aptos;
    color: var(--tertiary);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--tertiary);
}

/* HEADER */

.logo {
    font-family: 'Zeyada', sans-serif ;
    color: var(--white);
    font-size: 3rem;
}

.topbar{
    background-color: var(--tertiary);
    color: white;
}

.btn-blog {
    font-style: italic;
    color: var(--danger) !important;
}

.btn-blog:hover{
    color: var(--dark) !important;
}

.sndbar {
    background-color: var(--tertiary);
    color: white;
}

.social {
    max-height: 2rem;
}

.text-white {
    color: var(--white);
}

/* PARTICLES */

#particles-js{
    width: 100%;
    height: 100%;
    position: fixed;
    background-image: url('');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: -999;
}

.body-particles{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* MAIN */

.intro {
    margin-top: 10rem;
    color: white;
}

.bg-dark {
    background-color: var(--tertiary) !important;
}

.btn-contatti {
    padding:0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    z-index: 111;
    max-width: fit-content;
    align-self: flex-end;
}

.btn-contatti:hover {
    transform:rotate(0.5deg);
    background-color: var(--secondary);
    color: var(--tertiary);
}

.fade-in{opacity: 0; transform: translateY(20vh);transition: all 1s cubic-bezier(.215, .61, .355, 1);}
.fade-in.in-page{opacity:1; transform: translateY(0vh);}
.fade-left{opacity: 0; transform: translateX(-20vw);transition: all 1s cubic-bezier(.215, .61, .355, 1);}
.fade-left.in-page{opacity:1; transform: translateX(0vw);}
.fade-right{opacity: 0; transform: translateX(20vw);transition: all 1s cubic-bezier(.215, .61, .355, 1);}
.fade-right.in-page{opacity:1; transform: translateX(0vw);}

.about {
    width: 75%;
    flex-direction: column;
}

.about-img img{
    max-width: 60vh;
    max-height: 40vh;
}

.card-header {
    color: var(--tertiary);
}

.card-body {
    min-height: 20vh;
    color: var(--tertiary);
}

.border-info {
    background-color: lightcyan;
}

.border-success {
    background-color: #90ee904f;
}

.border-danger {
    background-color: lightpink;
}

.border-warning {
    background-color: lightyellow;
}

.recapiti {
    font-size:large;
}

footer {
    background-color: var(--tertiary);
    color: var(--white);
}

footer a {
    color: var(--white) !important;
}

footer a:hover {
    color: grey !important;
}


.list-group-item {
    background-color: transparent;
}

.no-display {
    display: none !important; 
}

.display {
    display: flex;
}

.display-block {
    display: block;
}

.field {
    flex-direction: column;
}

.hidden {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    visibility: hidden;
    background-color: var(--tertiary);
}

h5 {
    font-size: 1rem;
    color: var(--primary) !important;
}

h4 {
    color: var(--tertiary);
    opacity: 0.4;
}

.w90-50 {
    width: 90%;
}

.w90-75 {
    width: 90%;
}

/* MEDIA QUERIES */

@media screen and (min-width: 576px) {

}

@media screen and (min-width: 768px) {
    .intro {
        margin-top: 7rem;
    }
}

@media screen and (min-width: 997px) {
    .about {
        flex-direction: row;
    }

    .w80-50 {
        width: 50%;
    }

    .w90-75 {
        width: 75%;
    }

    .w90-50 {
        width: 50%;
    }
}

@media screen and (min-width: 1400px) {
    .about {
        width: 50%;
    }
}

@media screen and (min-width: 1800px) {
}