/* FONTS */
@font-face {
    font-family: 'Gilroy';
    src: url("../Fonts/Gilroy-Regular.woff") format('opentype');
}

@font-face {
    font-family: 'Gilroy-bold';
    src: url("../Fonts/Gilroy-Bold.woff") format('opentype');
}

@font-face {
    font-family: 'Gilroy-medium';
    src: url("../Fonts/Gilroy-Medium.woff") format('opentype');
}

/* RESET */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* COMMON */
body {
    /*background: url("../img/Herobanner geo.jpg") no-repeat top center fixed;*/
    /*-webkit-background-size: cover;*/
    /*-moz-background-size: cover;*/
    /*-o-background-size: cover;*/
    /*background-size: cover;*/

    position: relative;
}

.hero {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
}

.hero img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    position: fixed;
}

.container {
    width: 80%;
    max-width: 850px;
    margin: auto;
}

.formattazione-principale {
    text-align: center;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.pulsante {
    border: 1px solid white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 202px;
    font-size: 1rem;
    font-family: 'Gilroy', sans-serif;
    margin: 3px;
    height: 3em;
}

/* HEADER */
.logo {
    /*margin-top: 100px;*/
    padding-top: 2em;
    text-align: center;
}

.logo img {
    width: 250px;
    height: 45px;
}

/* HEADER END */

/* MAIN */
main {
    background-color: #00000078;
    /*padding: 0.5em 0.5em 2em 0.5em;*/
    margin-top: 1em;
}

.titolo {
    font-size: 3.2rem;
    margin-top: 0.25em;
    font-family: 'Gilroy-medium', sans-serif;
    line-height: 55px;
}

.sotto-titolo {
    font-size: 1.6rem;
    font-family: 'Gilroy', sans-serif;
    margin-top: 25px;
    line-height: normal;
    color: white;
}

.sotto-titolo-2 {
    font-size: 1.3rem;
    font-family: 'Gilroy', sans-serif;
    margin-top: 25px;
    line-height: normal;
    color: white;
}

.testo-principale {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    text-align: left;
    /* margin-left:1em;*/
    line-height: normal;
}

ol.testo-principale.formattazione-principale {
    margin-left: 2em;
}

.container-pulsanti {
    display: flex;
    width: auto;
    margin: 0 20%;
    margin-top: 1em;
}

h3.sotto-titolo {
    text-decoration: underline;
}

/*.container-pulsanti a:first-child{
    padding: 12px;
}*/
.pulsante img {
    margin-right: 10px;
}

.testo-pulsanti {
    margin-top: 3px;
}

.titolo-sezione {
    font-size: 2.8rem;
    margin-top: 70px;
    font-family: 'Gilroy-medium', sans-serif;
}

/* MAIN END */

/* FOOTER */
.contenuto-footer {
    color: white;
    font-family: Gilroy, sans-serif;
    font-size: 1rem;
    text-align: center;
    margin-top: 1em;
    margin-bottom: 2em;
    line-height: 1.75em;
}

.link-mail {
    text-decoration: revert;
}

/* FOOTER END */

/* Media query */
@media all and (max-width: 750px) {

    /* MAIN */
    .titolo {
        font-size: 2.8rem;
    }

    .sotto-titolo {
        font-size: 1.2rem;
    }

    .container-pulsanti {
        display: block;
        width: 100%;
    }

    .container-pulsanti a {
        margin-bottom: 1em;
    }

    .pulsante {
        width: 70%;
        margin: auto;
    }

    /* MAIN END */
}

@media all and (min-width: 751px) and (max-width: 799px) {

    /* MAIN */
    .container-pulsanti {
        width: 75%;
    }

    /* MAIN END */
}

@media all and (min-width: 800px) and (max-width: 1070px) {

    /* MAIN */
    .container-pulsanti {
        width: 100%;
        margin: 1em 11% 0 11%;
    }
    /* MAIN END */
}

@media all and (min-width: 750px) {
    .container-home {
        min-height: 13vh !important;
    }
}
@media all and (max-width: 799px) {
    .container-pulsanti {
        margin: 0;
        margin-top: 1em;
    }
}
 

/* tasto dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 0;
}
.dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid #eee;
}
.dropdown-item:hover {
    background-color: #f1f1f1;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown menu con angoli arrotondati e sfondo semitrasparente */
.custom-dropdown {
    background-color: rgba(255, 255, 255, 0.9); /* semitrasparente */
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(5px); /* effetto moderno vetroso */
    border: 1px solid rgba(255,255,255,0.2);
}

/* Dropdown item */
.custom-dropdown .dropdown-item {
    font-family: 'Gilroy', sans-serif;
    font-size: 1rem;
    color: black;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Hover su item */
.custom-dropdown .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Ultimo item senza bordo */
.custom-dropdown .dropdown-item:last-child {
    border-bottom: none;
}
