/* Font faces */
@font-face {
    font-family: 'Gilroy';
    src: local('Gilroy Regular'), local('Gilroy-Regular'), url('./fonts/Gilroy-Regular.woff2') format('woff2'), url('./fonts/Gilroy-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: local('Gilroy Regular Italic'), local('Gilroy-RegularItalic'), url('./fonts/Gilroy-RegularItalic.woff2') format('woff2'), url('./fonts/Gilroy-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: local('Gilroy SemiBold'), local('Gilroy-SemiBold'), url('./fonts/Gilroy-SemiBold.woff2') format('woff2'), url('./fonts/Gilroy-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: local('Gilroy Bold'), local('Gilroy-Bold'), url('./fonts/Gilroy-Bold.woff2') format('woff2'), url('./fonts/Gilroy-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Reset and base styles */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    font-family: 'Gilroy', sans-serif;
    background: #fff;
    color: #666;
    font-size: 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif !important;
}

ol, ul {
    list-style: none;
}

li {
    margin-bottom: 10px;
}

/* Layout */
.section {
    padding: 95px 0;
}

.text-center {
    text-align: center;
}

.pair {
    background: #f8f8f8;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1040px;
    }
}

/* Header styles */
header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    z-index: 999;
    transition: all 0.3s ease-in-out;
}

header.fixed {
    background: #fff;
    border-bottom: 1px solid #cecece;
}

.header-unpin {
    position: fixed;
    opacity: 0;
    transform: translate3d(0, -100%, 0);
    transition: all 0.3s ease-in-out;
}

.header-pin {
    position: fixed;
    background: #fff;
    opacity: 1;
    border-bottom: 1px solid #cecece;
    transform: translate3d(0, 0%, 0);
    transition: all 0.6s ease-in-out;
}

.header-inner {
    padding: 25px 0;
    overflow: hidden;
}

.logo {
    font-family: 'Lobster', cursive;
    color: #000;
    float: left;
    font-size: 1.6em;
}

/* Navigation styles */
header ul {
    float: right;
    position: relative;
    top: 4px;
}

header ul li {
    float: left;
    list-style: none;
    margin-left: 25px;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header ul li a {
    color: #000000; /* Testo nero di base */
    font-weight: bold; /* Testo in grassetto */
    font-size: 0.8em;
    transition: color 0.3s ease-in-out; /* Transizione per il cambio colore */
}

header ul:hover li {
    opacity: 0.7;
}

header ul li:hover {
    opacity: 1;
}

header ul li:hover a {
    color: #333333; /* Cambia a un grigio scuro (2-3 toni più chiaro) al passaggio del mouse */
}


/* Typography */
h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.7em;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #000;
    display: flex;
}

h4 {
    font-family: 'Gilroy', sans-serif;
    margin-bottom: 25px;
    font-weight: 600;
    color: #000;
    font-size: 1.2em;
}

a, a:hover {
    text-decoration: none;
    color: #000;
}

p {
    line-height: 1.7em;
    margin-bottom: 2em;
    color: #2b2b2b;
}

strong {
    font-weight: 600;
    color: #1f1f1f;
}

/* Button styles */
.mcbutton {
    padding: 11px 45px;
    margin-top: 20px;
    display: inline-block;
    border-radius: 4px;
    margin-right: 10px;
    color: #000;
    border: 2px solid #000;
    font-weight: 600;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .7em;
    position: relative;
    width: 100%;
    text-align: center;
}

.mcbutton::before,
.mcbutton::after {
    content: '';
    display: block;
    position: absolute;
    width: 0;
    height: 2px;
    background: #000;
    transition: all 0.2s ease-in-out;
    z-index: 99;
}

.mcbutton::before {
    left: 0;
    top: 0;
}

.mcbutton::after {
    right: 0;
    bottom: 0;
}

.mcbutton:hover::before,
.mcbutton:hover::after {
    width: 100%;
    transition: all 0.4s ease-in-out;
}

.mcbutton span::before,
.mcbutton span::after {
    content: '';
    display: block;
    position: absolute;
    width: 2px;
    height: 0;
    background: #000;
    transition: all 0.3s ease-in-out;
}

.mcbutton span::before {
    left: 0;
    top: 0;
}

.mcbutton span::after {
    right: 0;
    bottom: 0;
}

.mcbutton:hover span::before,
.mcbutton:hover span::after {
    height: 100%;
    transition: all 0.3s ease-in-out;
}

.mcbutton.primary {
    background: #FFC107;
}

.mcbutton.black {
    background: #1b1b1b;
    color: #fff;
}

.lead .mcbutton.primary {
    border-color: #a2a2a2;
}

.lead .mcbutton {
    padding: 16px 45px;
    font-size: 0.6em;
}

.mcbutton i {
    color: inherit;
    font-size: 1.5em;
    margin-right: 10px;
}

/* Intro section */
.intro {
    width: 100% !important;
    margin: 0 auto !important;
    background: url(../img/head22.jpg) no-repeat center center !important;
    background-size: cover !important;
    margin-bottom: 0px !important;
    height: 70vh !important;
    min-height: 370px !important;
    max-height: 370px !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 80px !important;
}

.intro h1 {
    margin-top: 0;
    font-size: 3.3em;
    color: #000;
    font-weight: 100;
    margin-bottom: 35px;
    text-align: center;
}

.tagline {
    color: #3a3a3a;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
    font-size: 17px;
}

.lead {
    margin-bottom: 2em;
}

.lead .mcbutton {
    border-color: #595959;
    cursor: pointer;
}

/* Box styles */
.box-container {
    display: inline-block;
    margin: 0;
    padding: 0;
    margin-top: 1.4em;
    width: 100%;
}

.box {
    list-style-type: none;
    float: left;
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.2s, transform 0.35s;
}

.box.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.4s, transform 0.35s;
}

.box .inner {
    padding: 10px;
    position: relative;
}

.box a {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.box img {
    width: calc(100% + 50px);
    max-width: calc(100% + 50px);
    transition: opacity 0.35s, transform 0.35s;
    transform: translate3d(-40px, 0, 0);
}

.box a::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.4s;
}

.three-cols .box {
    width: 100%;
}

.four-cols .box {
    width: 23.1%;
}

.four-cols .box:nth-child(4n+0) {
    margin-right: 0;
}

.four-cols .box:nth-child(4n+1) {
    clear: both;
    margin-left: 0;
}

/* Footer styles */
footer {
    text-align: center;
    color: #666;
    margin: 2rem 0;
}

footer a {
    color: #000;
}

.copyright {
    font-size: 0.8em;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;  /* Imposta la direzione del layout su colonna per il mobile */
    }

    .main-nav ul {
        flex-direction: column;  /* Dispone le voci del menu in colonna */
        width: 100%;  /* Imposta la larghezza al 100% del viewport */
        background-color: #fff;  /* Sfondo bianco per il menu mobile */
        display: none;  /* Nasconde il menu di default */
        padding: 10px;  /* Aggiunge padding interno */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Aggiunge un'ombra leggera per evidenziare il menu */
    }

    .main-nav ul.active {  
        display: flex;  /* Mostra il menu quando ha la classe 'active' */
    }

    .main-nav ul li {
        margin-right: 0;  /* Rimuove il margine a destra delle voci del menu */
        margin-bottom: 10px;  /* Aggiunge uno spazio tra le voci del menu */
        text-align: center;  /* Centra il testo delle voci del menu */
    }

    .mobile-menu-toggle {
        display: block;  /* Rende visibile il pulsante per aprire il menu */
        cursor: pointer;  /* Imposta il cursore a "pointer" per indicare che è cliccabile */
    }
}

header ul li:hover a {
    color: #f7f3e9; /* Cambia il colore del testo a un tono chiaro (panna) */
}

