/* Reset e impostazioni base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Logo centrale sempre visibile */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    display: none;
}

.logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Container principale */
.main-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Box delle ville */
.villa-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.villa-box:first-child {
    border-right: 2px solid rgba(255, 255, 255, 0.5);
}

/* Immagine di background */
.villa-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay scuro per contrasto testo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    transition: background 0.3s ease;
}

/* Informazioni villa */
.villa-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    padding: 0 20px;
    width: 100%;
}

.villa-name {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.villa-location {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effetto hover - più elaborato e bello */
.villa-box:hover {
    flex: 1.2;
}

.villa-box:hover .villa-image {
    transform: scale(1.08);
}

.villa-box:hover .overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.villa-box:hover .villa-name {
    transform: translateY(-10px) scale(1.05);
    letter-spacing: 4px;
    opacity: 1;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9);
}

.villa-box:hover .villa-location {
    transform: translateY(10px);
    opacity: 1;
    letter-spacing: 4px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
}

/* Responsive design - Tablet */
@media screen and (max-width: 1024px) {
    .logo {
        width: 120px;
    }

    .villa-name {
        font-size: 3.5rem;
        letter-spacing: 1px;
    }

    .villa-location {
        font-size: 1.3rem;
    }
}

/* Responsive design - Mobile */
@media screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .villa-box {
        flex: 1;
    }

    .villa-box:first-child {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    }

    .logo {
        width: 100px;
    }

    .villa-name {
        font-size: 3rem;
        letter-spacing: 0px;
    }

    .villa-location {
        font-size: 1.1rem;
    }

    /* Hover effect su mobile - ridotto */
    .villa-box:hover {
        flex: 1.08;
    }

    .villa-box:hover .villa-image {
        transform: scale(1.02);
    }
}

/* Responsive design - Mobile piccolo */
@media screen and (max-width: 480px) {
    .logo {
        width: 80px;
    }

    .villa-name {
        font-size: 2.5rem;
    }

    .villa-location {
        font-size: 1rem;
    }
}
