﻿
/*EFFETTO CSS PER HOME PAGE dialog PRESENTAZIONE*/
h2, p {
    color: #bf4;
    padding-left: 30px;
    padding-right: 30px;}

section {
    position: relative;
    height: 100vh;
    display: flex;
}

section .screen {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1s;
    overflow: hidden;
}

section .screen:hover {
    flex-grow: 4;
}

section .screen:nth-child(1) {
    background: #000;
}

section .screen:nth-child(2) {
    background: #FF4646;
}

section .screen .card {
    max-width: 350px;
    text-align: center;
    transition: 0.5s;
}

section .screen .card .imgBox {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

    section .screen .card .imgBox img {
        max-width: 100%;
    }

section .screen .card a {
    padding: 10px 20px;
    background: #262626;
    color: #fff;
    text-decoration: none;
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0px;
    background: #000;
    transition: 0.5s;
    opacity: 0;
    visibility: hidden;
}

section .screen:nth-child(2) .content {
    background: #bf4747;
}

section .screen .card a:hover ~ .content,
.content:hover {
    opacity: 1;
    visibility: visible;
}
