

/* stile generale */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* stile header */
header {
    background: linear-gradient(135deg, #031f4a, #2bbcedce, rgb(4, 64, 61));
    border-radius: 0 0 20px 20px !important; 
    margin-bottom: 20px;
    background-size: 400% 400% !important; 
    animation: gradientMove 15s ease infinite !important;
    transition: all 0.5s ease !important;
}


header h2 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header .container {
    transition: transform 0.5s ease-in-out;
}


header:hover .container {
    transform: scale(1.1);
}
/*keyframe ch permettono al gradiente dell'header di muoversi*/
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.subtitle {
    color: black;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* stile della form */
.form-group {
    margin-bottom: 0;
}

.form-select {
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select:hover {
    border-color: #adb5bd;
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* stile delle card */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* impostzioni stile mappa */
#map {
    height: 500px;
    width: 100%;
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

/* responsive */
@media (max-width: 768px) {
    .controls-section .row > div {
        margin-bottom: 1rem;
    }
    
    .controls-section .row > div:last-child {
        margin-bottom: 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    #map {
        height: 400px;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    .form-select {
        font-size: 1rem !important;
    }
    
    #map {
        height: 350px;
    }
}

/*stile dei link*/
a:link {
  color: white;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: white;
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: red;
  background-color: transparent;
  text-decoration: none;
}
a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: none;
}


/* stile del footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #031f4a, #2bbcedce, rgb(4, 64, 61));
    border-radius: 20px 20px 0px 0px !important;
    background-size: 400% 400% !important; 
    animation: gradientMove 15s ease infinite !important;
    transition: all 0.5s ease !important;
    
}
/*keyframe ch permettono al gradiente del footer di muoversi*/
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Loading state for selects */
select:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
}

/* Animation for subtitle */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    animation: fadeIn 0.5s ease-out;
}

/* Custom scrollbar for selects */
.form-select::-webkit-scrollbar {
    width: 8px;
}

.form-select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-select::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.form-select::-webkit-scrollbar-thumb:hover {
    background: #555;
}





