body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh; /* Impedisce che il contenuto vada al di fuori della finestra del browser */
}

.container {
    display: flex;
    text-align: center;
    justify-content: center;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    height: calc(100vh - 153px);
}

.content {
    display: flex;
    justify-content: space-around;
    margin: 50px;
}

header {
    height: 150px;
    background-color: #fff;
    color: #428BCA;
    text-align: center;
    display: flex;
    flex-direction: row;
    border-bottom: 3px solid #dbdbdbc2;
    align-items: center;
}
header > h1{
    margin-left: 15%;
}

#logo{
    width: 150px;
    padding: 15px;
    margin-left: 20px;
}

.content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

.rectangle {
    max-width: 300px;
	width: 80%;
    height: 200px;
    background-color: #d6d6d6b5;
    margin: 6vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 2px solid rgba(194, 194, 194, 0.747);
    transition: transform 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}
.rectangle >  h2 {
    color: #428BCA;
    margin: 0;
    margin-left: -20px;
    padding: 2px;
}
.rectangle:hover {
    transform: scale(1.10);
}

.rectImg{
    width: 100px;
    background: transparent;
}
.first, .second{
   max-height: calc(100vh - 154px)
}


@media (max-width: 850px){
	.container {
		height: auto;
	}
	.content {		
		flex-direction: column;
		margin: 0;
	}
	header {
		height: 200px;
		flex-direction: column;
		height: auto;
	}
	header > h1 {
		margin-left: 0;
		margin: 0;
	}
	#logo {
		margin-left: 0;
	}
	body > div > div > div.second > a:nth-child(1) > div {
		margin-top: 0;
	}
}