﻿.hero {
    color: #1d3557;
}

.hero-content {
    z-index: 1;
    min-height: 70vh;
}

.hero-text {
    position: absolute;
    z-index: 10;
    text-align: right;
    padding: 20vh 40px;
    right: 0;
}

    .hero-text h1 {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

.hero-content img {
    position: absolute;
    max-width: 100%;
/*    max-height: 100%;*/
    top: 0;
    left: 0;
}

.cta {
    padding: 12px 24px;
    background-color: #1d3557;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .cta:hover {
        background-color: #457b9d;
        transform: scale(1.05);
    }

.features {
    clear: both;
    position: relative;
    padding: 40px 20px;
    text-align: center;
}

    .features h2 {
        margin-bottom: 20px;
    }

.feature-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1.2em;
}

.cards {
    background-color: #f0f4f8;
    padding: 60px 20px;
    text-align: center;
}

    .cards h2 {
        font-size: 2em;
        color: #1d3557;
        margin-bottom: 40px;
    }

.cards-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cards-slider {
    background-color: #f0f4f8;
    padding: 60px 20px;
    text-align: center;
}

    .cards-slider h2 {
        font-size: 2em;
        color: #1d3557;
        margin-bottom: 30px;
    }

.cards-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cards-track {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    scroll-snap-type: x mandatory;
}

.card {
    flex: 0 0 250px;
    margin-right: 20px;
    background-color: white;
    padding: 30px;
    scroll-snap-align: start;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }

    .card span {
        font-size: 2.5em;
        display: block;
        margin-bottom: 15px;
    }

    .card h3 {
        font-size: 1.3em;
        color: #007acc;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 0.95em;
        color: #555;
    }

.prev, .next {
    font-size: 1.5em;
    background-color: #1d3557;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .prev:hover, .next:hover {
        background-color: #457b9d;
    }

.box {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

    .box:hover {
        transform: translateY(-5px);
    }

    .box span {
        font-size: 2.5em;
        display: block;
        margin-bottom: 15px;
    }

    .box h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
        color: #007acc;
    }

    .box p {
        font-size: 0.95em;
        color: #555;
    }

.preview {
    padding: 60px 20px;
    background-color: #eef2f7;
    text-align: center;
}

    .preview h2 {
        font-size: 2em;
        margin-bottom: 30px;
        color: #1d3557;
    }

.video-box > video {
    width: 100%!important;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 400px;
    margin: 40px auto;
    border-radius: 12px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 0;
}

    .slide.active {
        opacity: 1;
        transform: scale(1);
        z-index: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

.slider-controls button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #1d3557;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-text {
        display: block;
        position: relative;
        z-index: 10;
        text-align: center;
        padding: 0;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .feature-box {
        flex-direction: column;
        gap: 15px;
    }

    .cards-grid {
        flex-direction: column;
        align-items: center;
    }

    .cards-track {
        padding: 0 10px;
    }

    .card {
        flex: 0 0 250px;
        margin-right: 20px;
    }
}


.logo-loader {
    position: fixed;
    top: 0;
    transform: translateX(0) scale(0.8);
    opacity: 0;
    z-index: 9999;
    animation: logoIntro 2.5s ease-out forwards;
    height: auto;
}

@keyframes logoIntro {
    0% {
        top: 0;
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }

    40% {
        top: -20%;
        opacity: 0.8;
        transform: translateX(0) scale(2);
    }

    70% {
        top: -5%;
        transform: translateX(0) scale(1);
    }

    100% {
        top: 20px;
        opacity: 1;
        transform: translateX(0) scale(0.8);
        margin: 0 auto;
    }
}

.logo-final {
    position: absolute; /* oppure relative, se preferisci */
    top: 20px;
    opacity: 1;
    z-index:999;
}