@font-face {
    font-display: swap;
    font-family: 'Autumn in September';
    font-style: normal;
    font-weight: normal;
    src: url('font/AutumninSeptember.eot');
    src: url('font/AutumninSeptember.eot?#iefix') format('embedded-opentype'),
         url('font/AutumninSeptember.woff2') format('woff2'),
         url('font/AutumninSeptember.woff') format('woff'),
         url('font/AutumninSeptember.svg#AutumninSeptember') format('svg');
}

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

body {
    background-color: #04052e;
}

img {
    pointer-events: none;
}

.menu {
    height: 100%;
}

@media screen and (orientation:portrait) {
    header {
        background-color: #0ff4c6;
        height: 30vh;
        text-align: center;
        top: 0px;
        z-index: 1;
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        list-style-type: none;
    }

    .submenu {
        background-color: #f4e409;
        text-align: center;
        top: 30vh;
        z-index: 1;
    }

    .submenu ul {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        list-style-type: none;
    }

}

@media screen and (orientation:landscape) {
    header {
        background-color: #0ff4c6;
        height: 6vh;
        position: sticky;
        text-align: center;
        top: 0px;
        z-index: 1;
    }

    .menu ul {
        display: flex;
        flex-direction: row;
        gap: 18px;
        height: 100%;
        justify-content: center;
        list-style-type: none;
    }

    .submenu {
	background-color: #f4e409;
	height: 4vh;
	position: sticky;
        text-align: center;
        top: 6vh;
	z-index: 1;
    }

    .submenu ul {
        display: flex;
        flex-direction: row;
        gap: 18px;
        height: 100%;
        justify-content: center;
        list-style-type: none;
    }

}

.menu a {
    display: block;
    line-height: 6vh;
}

.menu ul li a {
    color: #af3e4d;
    font-family: 'Autumn in September';
    font-size: 4vh;
    height: 100%;
    padding-left: 9px;
    padding-right: 9px;
    text-decoration: none;
}

.menu ul li a:hover {
    background-color: #f4e409;
    border-radius: 7px;
}

.submenu a {
    display: block;
    line-height: 4vh;
}

.submenu ul li a {
    color: #af3e4d;
    font-family: 'Autumn in September';
    font-size: 3vh;
    height: 100%;
    padding-left: 9px;
    padding-right: 9px;
    text-decoration: none;
}

.submenu ul li a:hover {
    background-color: #0ff4c6;
    border-radius: 5px;
}

@media screen and (orientation:portrait) {
    .main-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding: 3%;
    }

    .onethird img {
        object-fit: contain;
	width: 27%;
	margin: auto;
    }

    .onethird {
        display: flex;
        flex-direction: column;
        max-height: 100%;
        width: 90%;
    }

    .twothirds {
        height: 100%;
	max-width: 100%;
        position: relative;
        padding: 3%;
    }

}

@media screen and (orientation:landscape) {
    .main-content {
        align-items: center;
        display: flex;
        flex-direction: row;
        height: 30vh;
        justify-content: space-around;
        padding: 3%;
    }

    .onethird img {
        height: 12vh;
        object-fit: contain;
	width: 27%;
	margin: auto;
    }

    .onethird {
        display: flex;
        flex-direction: column;
        max-height: 100%;
        width: 27%;
    }

    .twothirds {
        height: 100%;
        position: relative;
        overflow: hidden;
        width: 63%;
    }
}

.onethird p {
    color: #ead7d1;
    font-family: 'Autumn in September';
    font-size: 5vh;
    text-align: center;
    font-weight: bold;
}

.twothirds video {
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    width: 100%;
}

@media screen and (orientation:portrait) {
    .riquadri {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding-bottom: 2%;
        padding-left: 3%;
        padding-right: 3%;
    }

    .riquadro {
        background-color: #ead7d1;
        border-radius: 9px;
        margin-bottom: 3%;
        margin-top: 3%;
        max-height: 96vh;
        overflow: hidden;
        width: 100%;
    }

    figcaption {
        color: #af3e4d;
        font-family: 'Autumn in September';
        font-size: 3vh;
        padding-bottom: 3%;
        padding-left: 3%;
        padding-right: 3%;
        text-align: center;
    }

    .bordered-image {
        display: block;
        height: auto;
	margin-left: auto;
	margin-right: auto;
        max-height: 90vh;
        max-width: 100%;
        object-fit: contain;
        padding: 3%;
        width: auto;
    }

}

@media screen and (orientation:landscape) {
    .riquadri {
        display: flex;
        flex-direction: row;
        height: 64vh;
        justify-content: space-around;
        padding-bottom: 2%;
        padding-left: 3%;
        padding-right: 3%;
    }

    .riquadro {
        background-color: #ead7d1;
        border-radius: 9px;
        overflow: hidden;
        width: 27%;
    }

    figcaption {
        color: #af3e4d;
        font-family: 'Autumn in September';
        font-size: 3vh;
        padding-left: 3%;
        padding-right: 3%;
        text-align: center;
    }

    .bordered-image {
        display: block;
        height: auto;
        max-height: 90%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        object-fit: contain;
        padding: 3%;
        width: auto;
    }
}

figcaption a {
    text-decoration: none;
}

figcaption a:visited {
    color: #af3e4d;
}

@media screen and (orientation:portrait) {
    .contenuto {
        display: flex;
        flex-direction: column;
        height: 33%;
        justify-content: space-around;
        padding-bottom: 2%;
        padding-left: 3%;
        padding-right: 3%;
    }

    .normal-text {
        color: #ead7d1;
        display: inline-block;
        font-family: 'Autumn in September';
        font-size: 3vh;
        height: 100%;
        padding-bottom: 2%;
        padding-top: 1%;
        text-align: justify;
        text-justify: inter-word;
    }

    .contatti {
        color: #ead7d1;
        display: inline-block;
        font-family: 'Autumn in September';
        font-size: 7vw;
        height: 100%;
	max-width: 100%;
        padding-bottom: 2%;
        padding-top: 1%;
        text-align: justify;
        text-justify: inter-word;
    }
}

@media screen and (orientation:landscape) {
    .contenuto {
        display: flex;
        flex-direction: row;
        height: 33%;
        justify-content: space-around;
	max-height: 94vh;
        padding-bottom: 2%;
        padding-left: 3%;
        padding-right: 3%;
    }

    .normal-text {
        color: #ead7d1;
        display: inline-block;
        font-family: 'Autumn in September';
        font-size: 3vh;
        height: 100%;
        padding: 3%;
        text-align: justify;
        text-justify: inter-word;
    }

    .contatti {
        color: #ead7d1;
        display: inline-block;
        font-family: 'Autumn in September';
        font-size: 3vh;
        height: 100%;
        padding: 5%;
        text-align: justify;
        text-justify: inter-word;
    }

    table {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
}

.contatti a:link{
    color: #ead7d1;
    text-decoration: none;
}

.contatti a:visited{
    color: #ead7d1;
    text-decoration: none;
}
