/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* --- Global Styles & Resets --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #121212; /* Sfondo nero/grigio scuro */
    color: #e0e0e0; /* Testo grigio chiaro */
    padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 600;
}

.nav-link.active {
    color: #ffffff !important;
}

/* --- Container & Layout --- */
.container {
    background-color: transparent; /* Rimuove lo sfondo bianco */
    padding: 2rem 1rem;
    border-radius: 0;
    box-shadow: none;
}

/* --- Pulsanti --- */
.btn {
    font-weight: 600;
    border-radius: 0.25rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #f8f9fa;
    color: #121212;
    border: 1px solid #f8f9fa;
}

.btn-primary:hover {
    background-color: #121212;
    color: #f8f9fa;
    border: 1px solid #f8f9fa;
}

.btn-success {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* --- Forms --- */
.form-control {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
}

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

/* --- Sezioni Specifiche --- */

/* Homepage - 3 step */
.homepage-section {
    background-color: #1c1c1c;
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

/* About Page - Team */
.team-member {
    background-color: #1c1c1c;
    padding: 1.5rem;
    border-radius: 0.25rem;
    height: 100%;
    border: 1px solid #333;
}

.team-member h3 {
    color: #ffffff;
}

/* Contact Page - AI Section */
#generate-image-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 0.25rem 0.5rem; /* Smaller padding for a smaller button */
    font-size: 0.8rem;
}

#image-preview-container {
    min-height: 100px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    margin-top: 0; /* Reset margin */
}

#generated-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 0.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#error-message {
    background-color: #ff4d4d20;
    color: #ff4d4d;
    padding: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #ff4d4d;
}

/* --- Footer --- */
.footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #888;
    padding: 1rem 0;
}

/* --- Logo in Navbar --- */
.navbar-brand img {
    height: 60px; /* Adjust height as needed */
    margin-right: 10px;
}

/* --- Video Section --- */
.video-container {
    width: 100%;
    max-width: 800px; /* Or adjust as needed */
    margin: 2rem auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    border-radius: 0.25rem;
    overflow: hidden; /* Ensures the video respects the border-radius */
}

.video-container video {
    width: 100%;
    display: block;
}