* {
    box-sizing: border-box; /* Previene la compenetrazione delle grid[cite: 2] */
}

:root {
    --bg-dark: rgb(10, 15, 36);
    --accent: #0161EA;
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-dim: #b8c2d9;
}

body {
    background-color: var(--bg-dark); /*[cite: 2] */
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

/* LA HEADER SFOCATA */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 19, 0.72); /* Sfondo scuro trasparente */
    backdrop-filter: blur(8px); /* L'effetto vetro sfocato */
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 42px;
    width: auto;
}

.brand {
    font-weight: 800;
    letter-spacing: .4px;
    text-decoration: none; /* Toglie la sottolineatura brutta */
    color: white;
}

/* NAVIGAZIONE */
.nav {
    margin-left: auto;
    display: flex;
    gap: 14px;
    align-items: center;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: 0.3s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-play {
    background: var(--accent) !important; /* Colore blu del brand */
    font-weight: bold;
    border-radius: 8px;
    padding: 8px 20px !important;
    box-shadow: 0 4px 15px rgba(1, 97, 234, 0.3); /* Un leggero bagliore */
    transition: transform 0.2s;
}

.btn-play:hover {
    transform: scale(1.05); /* Si ingrandisce leggermente al passaggio */
    background: #0a3ea3 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.staff-grid {
    display: grid;
    /* Crea colonne stabili che non si sovrappongono[cite: 2] */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.staff-card {
    background: rgba(255, 255, 255, 0.03); /*[cite: 2] */
    border: 1px solid var(--border); /*[cite: 2] */
    border-radius: 20px; /*[cite: 2] */
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease; /*[cite: 2] */
    width: 100%;
    max-width: 320px;
}

.staff-card:hover {
    transform: translateY(-10px); /*[cite: 2] */
    border-color: var(--accent); /*[cite: 2] */
    box-shadow: 0 10px 30px rgba(1, 97, 234, 0.2); /*[cite: 2] */
}

.staff-card img {
    width: 110px; /*[cite: 2] */
    height: 110px; /*[cite: 2] */
    border-radius: 50%; /*[cite: 2] */
    margin-bottom: 15px;
    border: 3px solid var(--accent); /*[cite: 2] */
    object-fit: cover;
}

.role {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
}

.info-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: transparent;
    color: white;
    cursor: pointer;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0d142d;
    margin: 10% auto;
    padding: 35px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}

/* CONTENITORE TASTO */
.apply-container {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 30px;
}

.btn-apply-staff {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(1, 97, 234, 0.3);
}

.btn-apply-staff:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(1, 97, 234, 0.5);
    filter: brightness(1.1);
}

/* CONTENITORE MODULO */
.form-container {
    display: none; /* Nascosto di default */
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}