﻿

/*==========================================
			       Video
==========================================*/

.video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.video-wrap iframe,
.video-wrap object,
.video-wrap embed {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

iframe {
	border: none;
}

.video-bg-small {
	text-align: center;
	height: 500px;
	position: relative;
	overflow: hidden;
}

.video-bg-full {
	text-align: center;
	height: 100%;
	min-height: 100%;
	position: relative;
	overflow: hidden;
}

.video-bg-full .video-content-tit,
.video-bg-small .video-content-tit,
.video-bg-full .video-content-tit-borded,
.video-bg-small .video-content-tit-borded {
	width: 830px;
	max-width: 100%;
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
	margin-top: -30px; /* only boxed version */
}

.video-content-tit-borded h2 {
	border: 5px solid #fff;
	font-family: 'Raleway', sans-serif;
	padding: 40px;
	margin: 5px;
	font-size: 50px;
	line-height: 60px;
	text-align: center;
	display: inline-block;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: #fff;
	opacity: 0.7;
}

.video-content-tit h2 {
	font-size: 70px;
	color: #fff;
	font-weight: 300;
	text-transform: uppercase;
	padding-top: 20px;
}

.video-content-tit h3 {
	font-size: 20px;
	color: #fff;
	font-weight: 300;
	text-transform: uppercase;
	margin-bottom: 22px;
}

.video-content-tit p {
	font-size: 13px;
	color: #fff;
	margin-bottom: 22px;
}

.btn-bg {
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: transparent;
	border: 2px solid #fff;
	padding-top: 12px;
	padding-right: 50px;
	padding-left: 50px;
	padding-bottom: 12px;
	cursor: pointer;
	letter-spacing: 1px;
	text-align: center;
	-webkit-transition: .4s background ease;
	-moz-transition: .4s background ease;
	-o-transition: .4s background ease;
	transition: .4s background ease;
}

.btn-bg:hover {
	color: #fff;
	background: rgba(255,255,255,0.20)
}

.btn-play {
	display: inline-block;
	font-size: 20px;
	margin: 0 2px;
	border: 2px solid #E6E6E6;
	width: 100px;
	height: 50px;
	line-height: 50px;
	color: #B9B9B9;
	border-radius: 2px;
}

.btn-play:hover {
	color: #fff;
	background: rgba(255,255,255,0.20)
}

.video-overlay-dark {
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: 0.8;
	position: absolute;
	top: 0;
	left: 0
}

.video-overlay-blue {
	width: 100%;
	height: 100%;
	background-color: #4D5C71;
	opacity: 0.5;
	position: absolute;
	top: 0;
	left: 0
}

.pattern {
	background-image: url(https://www.youtube.com/watch?v=i-_l7F7v5WM);
	background-repeat: repeat;
	background-attachment: scroll;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0
}

.mobile-img {
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}










.video-background {
    position: relative;
    width: 100%;
    height: 500px; /* Altezza fissa */
    overflow: hidden;
}

/* Il video si adatta alla dimensione del contenitore */
.video-background video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Centrato orizzontalmente */
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; /* Garantisce che il video copra l'intera area */
    object-position: center; /* Centra il video */
}

/* Overlay semi-trasparente sopra il video */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Colore nero semi-trasparente */
}

/* Testo sopra il video */
.text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    z-index: 10;
}

/* Media query per dispositivi mobili */
@media screen and (max-width: 768px) {
    .video-background {
        height: 500px; /* Mantieni l'altezza fissa su dispositivi mobili */
    }

    .text-content {
        font-size: 1.5rem; /* Riduci la dimensione del testo su dispositivi più piccoli */
    }
}