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

img {
    max-width: 100%;
    height:auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    color:black;
    text-decoration: none;
}

body {
    font-family: 'Roboto', sans-serif;
}

.logo {
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    
}

h1 {
    color:white;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.header-image {
    position: relative;
    height: 100vh;
    width: 100%;
    object-fit: cover;
}

.video-container:before {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color:#00000067;
    top:0;
    left: 0;
    z-index: 10;
    content:'';
}

.video-container.hidden:before {
   display: none;
}

.video-container {
    position: relative;
    overflow: hidden;
	width: 100%;
	/* Keep it the right aspect-ratio */
	aspect-ratio: 16/9;
	/* No clicking/hover effects */
    z-index:0;
    height: 100vh;
}

.video-player {
    position: absolute;
    content:'PLAY VIDEO';
    left:50%;
    transform:translateX(-50%);
    top:calc(50% - 25px);
    width: 200px;
    height: 50px;
    background-color: white;
    color:black;
    font-weight:800;
    text-align: center;
    border-radius: 50px;
    z-index: 100;
    cursor: pointer;
    padding: 15px;
}

.video-player:before {
    position: absolute;
    content: '';
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    background-color: #ffffff67;
    transform: translate(-15px,-15px );
    z-index: -1;
    top: 0;
    left: 0;
    border-radius: 100px;
    animation: pulse 2s infinite;
    transform-origin: center;
}

iframe {
	width: 300%;
	height: 100%;
	margin-left: -100%;  
    display: none;
}

.hidden iframe {
    display: block !important;
}

.main-menu {
    display: flex;
    position: relative;
    z-index: 10;
    width: 100%;
    justify-content: space-between;
    max-width: 1480px;
    position: absolute;
    z-index: 10;
    top:50px;
    left:50%;
    content: '';
    transform: translateX(-50%);
}

.primary-nav ul, .primary-nav li {
    list-style: none;
}

.primary-nav {
    display: flex;
    justify-content: center;
    gap:25px;
}

.primary-nav a, .written-logo     {
    font-size: 18px;
    font-weight: 500;
    color: white;
}


p {
    font-size: 18px;
    line-height: 26px;
}

.about .flex-wrapper {
    align-items: center;
    margin-top: 80px;
}

.about h2 {
    font-size: 48px;
    margin-bottom: 25px;
    font-weight: 500;
}

.about__content {
    max-width: 450px;
    margin:0 auto;
}

.firma {
    margin-top: 25px;
    font-family: 'Cherish', cursive;
    font-size: 45px;
    transform:rotate(-2deg);

}

.flex-wrapper {
    display: flex;
    gap:30px;
}

.col-70 {
    width: 70%;
}

.col-30 {
    width: 30%;
}

.col-60 {
    width: 60%;
    background-color: azure;
}

.col-40 {
    width: 40%;
}

.pubblicazioni {
    margin:120px 0;
}

.pubblicazioni .flex-wrapper {
    display: flex;
    gap: 0px;
}


.primary-btn {
    background-color: black;
    color:white;
    border:0;
    padding:12px 18px;
    font-weight: 500;
    margin-top: 25px;
    font-size: 16px;
    cursor: pointer;
}

.col-100 {
    width: 100%;
    margin-bottom: 80px;
}

.col-50 {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.pubblicazioni .col-50 {
    text-align: center;
}

.book1 {
    background-color: #c1e7ff;
    color: #000;
}

.book1, .book2 {
    padding:20px 0 80px 0;
}

.book2 {
    background-color: #f7f7f7;
}

.pubblicazioni h2 {
    font-weight: 500;
    font-size: 52px;
    text-align: center;
}

.pubblicazioni h4 {
    margin-bottom: 10px;
    font-size: 22px;
    text-align: center;
}

.col-100.social {
    margin-bottom: 0;
}

.social-container {
    padding: 30px 0;
    background: #f2f2f2;
}

.social-icons {
    display: flex;
    margin-top:15px;
    gap:15px;
    justify-content: center;
}

.social-icons img {
    max-width: 30px;
}

.youtube .written__content, .social .written__content {
    text-align: center;
}

.eapps-instagram-feed-container {
    width: 100%;
    margin: 50px 0;
}

footer {
    background-color:#383838;
    color:white;
    gap:25px;
    padding:20px;
    width: 100%;
} 

footer p{
    text-align: center;
}

.privacy-info {
    margin:15px auto;
    text-align: center;
}

.privacy-info a{
   color:white;
}

.es-layout-grid-content {
    max-width: 100%;
    width: 100%;
}

.eapps-instagram-feed-posts-item-template-tile .eapps-instagram-feed-posts-item-image {
    transition: transform .3s ease,filter .3s;
    left: 50%;
    transform: scale(1) translate(-50%,-50%);
    transform-origin: 0 0;
    backface-visibility: hidden;
    max-width: 100% !important;
    object-fit: cover;
}

#eapps-instagram-feed-1 > a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    width: 190px;
    height: 30px;
    pointer-events: none;
}

#eapps-instagram-feed-1 a, #eapps-instagram-feed-popup-1 a {
    pointer-events: none;
}

/* Animation */

.video-player[data-aos^=fade][data-aos^=fade].aos-animate {
    opacity: 1;
    transform: translateX(-50%) !important;
}

@keyframes pulse {
    0%,100% {
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        transform: translate(-15px,-15px );
        opacity: .5;
    }
    50% {
        width: calc(100% + 40px);
        height: calc(100% + 40px);
        transform: translate(-20px,-20px );
        opacity: 1;
    }
}

@media(max-width:768px){
 .flex-wrapper {
        flex-direction: column;
    }

    .col-100, .col-30, .col-40, .col-50, .col-60, .col-70 {
        width: 100%;
        padding:0 15px;
    }

    .book1, .book2 {
        padding: 20px 0 60px 0;
    }

    p {
        font-size: 16px !important;
        line-height: 24px;
        font-weight: 300;
    }

    h2 {
        font-size: 38px !important;
    }

    .col-100 {
        width: 100%;
        margin-bottom: 40px;
    }

    body {
        max-width: 100%;
    }

    .header-image, .video-container{
        height: 50vh;
    }

    .flex-reverse {
        flex-direction: column-reverse;
    }

    .video-player {
        width: 160px;
    }

    @keyframes pulse {
        0%,100% {
            width: calc(100% + 20px);
            height: calc(100% + 20px);
            transform: translate(-10px,-10px );
            opacity: .5;
        }
        50% {
            width: calc(100% + 30px);
            height: calc(100% + 30px);
            transform: translate(-15px,-15px );
            opacity: 1;
        }
    }

}