* { box-sizing: border-box; }


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: Arial;
    color: #000000;
    background: #eeeeee;
}

.section { width: 100%; }




/********************************************************************/
/**************** Barra Orizzontale 1 - Logo container, Logo ********/
/********************************************************************/
.topbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 10vw;
    padding: 1vw 5vw 1vw 3vw;
    background: #eeeeee;
    border-bottom: 0.06vw solid #b9c0c8;
    display: flex;
    align-items: center;
}

.brand{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3.5vw;
    background: #ffffff;
    padding: 0.25vw 0.25vw;
    border: 0.06vw solid #b9c0c8;
    border-radius: 0.8vw;
    background: #00505B;
}

.logo {
    display: block;
    width: auto;
    max-width: 7vw;
    max-height: 7vw;
    object-fit: contain;
    margin: 0;
}

.login-area {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1vw;
}

.login-form,
.user-panel {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25vw;
}

input,
button {
    height: 2.7vw;
    border-radius: 0.5vw;
    font-size: 1.2vw;
}

input {
    width: 20vw;
    padding: 0.25vw 0.3vw;
    border: 0.06vw solid #b9c0c8;
    background: #ffffff;
}

button {
    padding: 0.4vw 0.4vw;
    border: 0.06vw solid #b9c0c8;
    background: #00505B;
    color: #ffffff;
    cursor: pointer;
}

button:hover { filter: brightness(1.15); }
button:disabled { opacity: .65; cursor: wait; }

.inline-message {
    font-size: 0.9vw;
    text-align: right;
    padding: 0.2vw 0.2vw;
}

.inline-message.success { color: #166534; }
.inline-message.error { color: #b91c1c; }





/********************************************************************/
/**************** Barra Orizzontale 2 - Immagine e Testo ************/
/********************************************************************/
.hero {
    position: relative;
    width: 100%;
    height: 54vw;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    overflow: auto;
}

.hero-title{
    position:absolute;
    top:15vw;
    width:100%;
    text-align:center;
    color:#ffffff;
    font-size:4.2vw;
    font-weight:700;
    line-height:1;
    letter-spacing:0.05vw;
    text-shadow:
        0 0.4vw 1vw rgba(0,0,0,0.8);
    z-index:20;
}




/********************************************************************/
/************ Barra Orizzontale 3 e 4 - schede su sfondo grigio *****/
/********************************************************************/
.light-section {
    background: #eeeeee;
    color: #000000;
    padding: 1vw 3vw 4vw 3vw;
}

.navy-section {
    background: #00505B;
    color: #ffffff;
    padding: 4vw 3vw 4vw 3vw;
}

.four-columns {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3vw;
}

.card {
    width: 100%;
    height: 34vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: #000000;
    border-radius: 0.7vw;
    box-shadow:
        0 0.35vw 1vw rgba(0,0,0,.10);
}

.card-image {
    flex: 0 0 12vw;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.card-body {
    flex: 0 0 20vw;
    padding: 1.3vw 1.6vw;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.card-body h2 {
    margin: 0 0 0.9vw 0;
    font-size: 1.7vw;
    font-weight: 700;
    line-height: 1.1;
    color: #00505B;
}

.card-body p {
    margin: 0;
    font-size: 1.2vw;
    line-height: 1.1;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}







/********************************************************************/
/**************** Barra Orizzontale 5 - disclaimer ******************/
/********************************************************************/
.disclaimer-section {
    background: #eeeeee;
    color: #000000;
    padding: 2vw 3vw 4vw 3vw;
}

.disclaimer-section h2 {
    font-size: 1.6vw;
    font-weight: 700;
    color: #000000;
    text-align: left;
}

.disclaimer-section .container {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.disclaimer-section .disclaimer-text,
.disclaimer-section .disclaimer-text p {
    font-size: 1.2vw;
    line-height: 1.1;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}




/********************************************************************/
/**************** Barra Orizzontale 6 - pie di pagina ***************/
/********************************************************************/
.footer {
    padding: 0.7vw 0.3vw;
    text-align: center;
    color: #ffffff;
    background: #00505B;
    font-size: 1.2vw;
    line-height: 1.1;
}


