html, body
{  
    --font-color:#0a0a0a;
    --font-color-title:#0D2B52;
    --font-color-title-light:#235E9F;
    --font-color-negative:rgb(255,255,255);

    --bg-color-extra-dark: #021239;
    --bg-color-extra-light: #F5F8FC;

    --border-color: #D8E1EC;

    --icon-color:#3B83C2;

    font-family:"Open Sans", Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.5em;

    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

/*Container*/
.container
{
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}
body section:nth-child(odd)
{
    background-color: var(--bg-color-extra-light);
}

section
{
    padding-bottom: 2rem;
}

.p404 section
{
    height: 100vh;
}

.p404 footer
{
    position:absolute;
    bottom:0;
    width: 100%;
}

footer
{
    background-color: var(--bg-color-extra-dark);
    color: var(--font-color-negative);
}

footer h2
{
    color: var(--font-color-negative);
}

footer .container:last-child
{
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0.8rem;    

}
/*Helpers*/
.text-center
{
    text-align: center;
}

.maxw100
{
    max-width: 100%;
}

.dnone
{
    display: none;
}

.visibilityhidden
{
    visibility: hidden;
}

/*Tipografia*/
h1,h2,h3 .subtitle
{
    color: var(--font-color-title);
    font-weight: 800;
    line-height: 1.5em;
}

h1
{
    font-size: 4rem;
    margin: 0.4em 0;
}

h2
{
    font-size: 2rem;
    color: var(--font-color-title-light);
}

h3
{
    font-size: 1.2rem;
    text-transform: uppercase;
}

.subtitle
{
    font-size: 1.5rem;
}

.smalltitle
{
    font-size: 1.5rem;
    text-transform: uppercase;

}

.smalltitle ~ h3
{
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

/*Banner Section*/
.banner-section
{
    background-image: url("https://storage.googleapis.com/davideluppoli.it/cover.png");
    background-position-x:right;
    background-repeat: no-repeat;
    background-size:contain;
}

.p404 .banner-section
{
    background-image: url("https://storage.googleapis.com/davideluppoli.it/cover404.png");
    background-position-x:right;
    background-repeat: no-repeat;
    background-size:contain;
}

.banner-section h1
{
    width: 70%;
}

.p404 .banner-section div
{
    width: 70%;
}
/* Menu di navigazione*/
nav
{
    position: fixed;
    top:0;
    width: 100%;
    height: 6rem;
    background-color: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--border-color);
}

nav + section
{
    margin-top: 6rem;
}
nav .container
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav a
{
    
    color: var(--font-color-title-light);
    text-decoration: none;
}

#menu a
{
    font-size: 0.85rem;
    margin-left: 1rem;
}

#logo
{
    font-weight: 800;
    font-size: 1.3rem;
}

#logo span
{
    font-size: 0.85em;
    font-weight: 400;
}

#hamburgermenu
{
    display: none;
    border: none;
    background-color: transparent;
    font-size: 1.8rem;
}

/*Boxes*/
.boxes
{
    display: grid;
    column-gap: 1rem;
    row-gap: 1rem;
}

.boxes-2-columns
{
    grid-template-columns: 50% 50%;
}

.boxes-3-columns
{
    grid-template-columns: 33.333% 33.333% auto;
}

.boxes-double-gap
{
    column-gap: 2rem;
    row-gap: 2rem;
}

.box
{
    margin-bottom: 1rem;
    padding: 0px;
}

.box-bordered
{
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 20px;
}

.box-icon
{
    font-size: 1.7rem;
    color: var(--icon-color);
}

/*Timeline*/
.timeline-row
{
    display: grid;
    grid-template-columns: 6rem auto;
    border-left: 4px dotted darkgrey;
    row-gap: 2.5rem;
    margin-top: 2rem;
}

.timeline-row .bi
{
    margin-right: 1rem;
    position: relative;
    left: -0.7rem;
    font-size: 1.2rem;
    color: var(--icon-color);
}

.timeline-row h3 
{
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0rem;
}

/*Buttons*/
.btn
{
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: background-color 0.3s ease;
}

.btn:hover
{
    background: #6C9BCC;
    transition: background-color 0.3s ease;
}

.btn-icon
{
    font-size: 2rem;
    margin: 0 2rem 0 0;
    background-color: var(--icon-color);
    border: 2px solid var(--font-color-negative);
    color: var(--font-color-negative);
    padding: 0.7rem;
    border-radius: 2rem;
    
}
.btn-clear
{
    background-color: var(--bg-color-extra-light);
    color: var(--font-color);
    border: 1px solid var(--font-color-negative)
}

.btn-white
{
    background-color: var(--font-color-negative);
    color: var(--font-color);
    border: 1px solid var(--border-color);
}

@media screen and (max-width:1280px)
{
    html,body
    {
        font-size: 16px;
    }
    .container
    {
        max-width: 960px;
    }
}

@media screen and (max-width:1040px)
{
    html
    {
        font-size: 12px;
    }
    .container
    {
        max-width: 720px;
    }

    #Cybersecurity .boxes-3-columns
    {
        grid-template-columns: 50% 50%;
    }

    #MiaFormazione .boxes-2-columns
    {
        grid-template-columns: 100%;
    }

    #Contatti .boxes
    {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width:800px)
{
    html
    {
        font-size: 11px;
    }
    .container
    {
        width: 95%;
        max-width: none;
        margin: auto;
    }
    .maxw100
    {
        max-width: 70%;
    }
}

@media screen and (max-width:700px)
{
    html
    {
        font-size: 11px;
    }
    .container
    {
        width: 95%;
        max-width: none;
        margin: auto;
    }

    .boxes-2-columns
    {
        grid-template-columns: 100%;
    }

    .boxes-3-columns, #Cybersecurity .boxes-3-columns
    {
        grid-template-columns: 100%;
    }
}

@media screen and (max-width:550px)
{
    #hamburgermenu
    {
        display:block;
    }
    #menu
    {
        position: absolute;
        width: 100%;
        top:6rem;
        left: 0;
        display: flex;
        flex-direction: column;
        background-color: var(--bg-color-extra-light);
        border: 1px solid var(--border-color);
        box-shadow: 1px 1px var(--border-color);
    }
    #menu a
    {
        font-size: 1.1rem;
        line-height: 3em;
    }

    body:not(.mobile) #menu
    {
        visibility: hidden;
    }
}

