/* ==========================================
   STILI GENERALI E LAYOUT PORTALE FIAMMA MONZA
   ================================---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Sfondo Video in Loop */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-bg video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* Overlay per la leggibilità con trasparenza fissa al 90% (trasparenza del 10%) */
.site-overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Elementi con opacità fissa al 90% (nessuna animazione di ritardo) */
.site-overlay header,
.site-overlay .hero,
.site-overlay .card,
.site-overlay .teams-grid,
.site-overlay footer {
    opacity: 0.9;
}

/* Header e Barra di Navigazione */
header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid #d32f2f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    color: #111;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-area span {
    color: #d32f2f;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: #d32f2f;
}

/* Contenitore Principale */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* Sezione Hero / Intestazione Pagina */
.hero {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #d32f2f;
}

.hero h1 {
    font-size: 2.2rem;
    color: #111;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.05rem;
    color: #666;
}

/* Riquadri / Card Generali */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #d32f2f;
}

.card h2 {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 8px;
}

/* Immaginiresponsive */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Griglia delle Squadre (Home e Indice Squadre) */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.team-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #d32f2f;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.2);
}

.team-card h3 {
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 10px;
}

.team-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Griglia Rosa Giocatrici */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.player-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.player-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #d32f2f;
    background-color: #eee;
}

.player-card p {
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 4px;
}

/* Pulsanti */
.btn-primary {
    display: inline-block;
    background-color: #d32f2f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #b71c1c;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid #ddd;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #555;
    margin-top: auto;
}