/*
 * Author: Luca Arzilli, ALSolutions
 *
 * Project Name: Il Cerreto
 *
 */

/* HOME PAGE */

/* HEADER */

header.header-video {
	height: 90vh;
	padding: 0;
	overflow: hidden;
}

header.header-video .header-video-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

header.header-video .header-video-wrapper iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; /* 16:9 */
	min-height: 90vh;
	min-width: 177.78vh; /* 16:9 of 90vh */
	transform: translate(-50%, -50%);
}

header .col {
	padding: 0px;
}

#gallery .col-md-4, #gallery .col-xs-12 {
	margin-bottom: 0px;
	padding-right: 0px;
	padding-left: 0px;
}

#company img {
	width:20vw;
}

@media (max-width: 576px) {
	#company img {
		width:50vw;
	}
	#company {
		padding: 50px 0px;	
	}
}

/* POPUP STYLES */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    max-height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.popup-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-overlay-white {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.popup-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.popup-logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.popup-logo-img {
    height: 100px;
    width: auto;
}

.popup-text {
    margin-top: 40px;
}
.popup-content .popup-description {
    overflow-y: auto;
    max-height: 200px;
    margin-bottom: 15px;
    text-align: left;
}

.popup-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.popup-subtitle {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 25px !important;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.popup-offer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2f740c;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    margin: 0 0 30px 0;
}

.popup-button-container {
    margin-top: 10px;
}

.popup-button {
    line-height: 30px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.popup-close span {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        height: 85vh;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .popup-title {
        font-size: 2rem;
    }
    
    .popup-subtitle {
        font-size: 1.1rem;
    }
    
    .popup-offer {
        font-size: 1.2rem;
    }
    
    
    .popup-logo-img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .popup-title {
        font-size: 1.6rem;
    }
    
    .popup-subtitle {
        font-size: 1rem;
    }
    
    .popup-offer {
        font-size: 1.1rem;
    }
    
    
    .popup-logo-img {
        height: 40px;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
    
    .popup-close span {
        font-size: 20px;
    }
}