/* Stili per la homepage di ricerca */
.homepage-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;

}

body{
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.search-wrapper {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.logo-container {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.site-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: #333;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lotto-search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.search-fields {
    margin-bottom: 2rem;
}

.field-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.field-group input {
    width: calc(100% - 70px);
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

#field-group-codice-lotto, #field-group-data-lotto, #field-group-ref-vendita {
    background-image: url("../i/lotto.svg");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size:40px 40px;
}
#field-group-data-lotto {
    background-image: url("../i/data-di-fabbricazione.svg");
}
#field-group-ref-vendita{
    background-image: url("../i/codice.svg");
}
.field-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    transform: translateY(-2px);
}

.field-group input:hover {
    border-color: #007cba;
}

.search-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.error-message {
    margin-top: 2rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(114, 28, 36, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Animazioni */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .homepage-search-container {
        padding: 1rem;
        min-height: 60vh;
    }

    .search-wrapper {
        max-width: 90%;
    }

    .lotto-search-form {
        padding: 1.5rem;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        margin-bottom: 2rem;
    }

    .lotto-search-form {
        padding: 1.2rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .search-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
