:root {
    /* https://coolors.co/ffa400-009ffd-2a2a72-232528-eaf6ff */
    /* --orange-web: #ffa400ff;
    --celestial-blue: #009ffdff;
    --royal-blue-traditional: #2a2a72ff;
    --raisin-black: #232528ff;
    --alice-blue: #eaf6ffff; */

    /* https://coolors.co/0a2463-fb3640-605f5e-247ba0-e2e2e2 */
    --royal-blue-traditional: #0a2463ff;
    --royal-blue-traditional-opac: rgba(10, 37, 99, 0.75);
    --imperial-red: #fb3640ff;
    --red: #e63946ff;
    --imperial-red-grey: hsl(357, 96%, 55%);
    --davys-gray: #605f5eff;
    --cerulean: #247ba0ff;
    --platinum: #e2e2e2ff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    font-family: sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--cerulean);
    display: flex;
    flex-direction: column;
    min-width: 375px;
    min-height: 100vh;
    justify-content: space-between;
    font-family: sans-serif;
}

header{
    background-color: var(--royal-blue-traditional);
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    top: 0;
    width: 100%;
    align-self: flex-start; /* Per evitare che l'header si sovrapponga al contenuto */
    z-index: 1000; /* Per assicurarsi che l'header sia sempre sopra il contenuto */
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

header img.logo, nav ul {
    padding: 0 5px;
    margin: 10px 0px;
}
header img.logo {
    position: relative;
    height: 50px;
    top: -10px;
}

nav li {
    list-style: none;
    position: relative;
    height: 64px;
    width: 20%;
}

nav a {
    /*color: var(--platinum);
    line-height: 50px;
    text-decoration: none;
    font-size: 1.2em; */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: #fff;
}
nav a:hover {
    text-decoration: underline;
}
li a .icon {
    position: relative;
    top: 5px;
    display: block;
    line-height: 44px;
    text-align: center;
    font-size: 2em;
    transition: 0.5s;
}
li.active a .icon {
    font-size: 1.5em;
    transform: translateY(-10px);
}
li a .text {
    position: relative;
    bottom: 15px;
    align-items: center;
    font-size: 0.8em;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: 0.25s;
    transform: scale(0);
    visibility: hidden;
}

li a .long {
    font-size: 0.7em;
}
li.active a .text {
    transform: scale(1);
    visibility: visible;
}

ul .indicator {
    position: absolute;
    top: 100;
    left: 25;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--cerulean);
    transition: 0.5s;
}
/* footer {
    padding: 15px 0;
    background-color: var(--imperial-red);
    text-align: center;
} */

footer {
    background-color: #242323;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 14px;
	color: gray;
}
footer div {
	padding: 10px;
}
footer h3 {
	color: #f5f5f5;
	padding: 10px 2px;
}
footer p, footer li {
	padding: 5px 2px;
	font-weight: bold;
}
footer div.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	width: 80%;
	margin-bottom: solid #f5f5f5 2px;
}
footer div.footer-section {
	flex-basis: 1;
}
footer li {
	list-style: none;
}
footer a {
    text-decoration: none;
    color: gray;
}
footer a:hover {
    color: var(--imperial-red);
	text-decoration: underline;
}
footer div.footer-bottom {
	background-color: #242323;
	/* width: 100%; */
	text-align: center;
}
footer div.social-links {
    display: flex;
    flex-direction: column;
}
footer div.social-links a {
    margin: 5px 0;
}

main {
    background-color: var(--platinum);
    flex: 1;    
}

main h2 {
    margin-bottom: 10px;
}
section {
    /* height: fit-content; */
    /* padding: 20px 30px; */
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: center; */
    /* align-items: center; */
    padding-top: 40px;
    padding-bottom: 40px;
}
section:first-child {
    /* padding-top: 100px; */
}
section.stile_1 {
    /* display: flex; */
    /* flex-direction: column; */
    background-color: var(--cerulean);
    color: var(--platinum);
}
section > div:not(#popup):not(#overlay):not(.stadio)  {
    width: 80%; 
    /* min-height: fit-content;*/
    /* border-radius: 20px; */
    padding: 15px;
    margin: auto;
}

@media only screen and (min-width: 1024px) {
    section > div:not(#popup):not(#overlay):not(.stadio) {max-width: 60%;}
}
@media only screen and (max-width: 400px) {
    section > div:not(#popup):not(#overlay):not(.stadio)  {max-width: 90%;}    
}

section div h2 {
    font-size: 42px;
}
section div p {
    font-size: 18px;
}
div {
    box-sizing: border-box;
}
div p {
    margin-bottom: 10px;
}
div.img-row {
    display: flex;
    flex-direction: row;
}
div.card {
    box-shadow: 0 5px 10px var(--davys-gray);
    border-radius: 20px;
    overflow: hidden;
    /* padding: 15px; */
}
em {
    color: var(--imperial-red);
    font-family: serif;
}
input[type=submit] {
    border-radius: 15px;
    background-color: var(--royal-blue-traditional);
    color: var(--platinum);
    font-size: 1em;
}
.center {
    text-align: center;
}
.fullpage {
    /* min-height: 80vh; */
}
.in_lavorazione {
    border-bottom: 5px solid var(--imperial-red);
}

header {
    box-sizing: border-box;
    background-origin: padding-box;
    display: grid;
    grid-template-columns: auto 300px;
}

header a {
    grid-row: 1;
    grid-column: 1;    
    padding-left: 8px;
}

nav {
    grid-row: 1;
    grid-column: 2;
    align-self: flex-end;
    padding-right: 12px;
}   

header ul {
    display: flex;
    flex-direction: row;
    justify-content: end;
}