/*
Theme Name: F1 Paddock
Theme URI: https://f1paddock.it
Author: Gemini
Description: Tema F1 ultra-veloce per la stagione 2026. Sfondo bianco, testi bianchi in header/box news. Classifiche e Calendario gestite da IA Gemini con Grounding su Google Calendar.
Version: 2.8
License: GNU General Public License v2 or later
Text Domain: f1-paddock
*/

:root {
    --f1-red: #e10600;
    --f1-black: #0f0f0f;
    --f1-carbon: #1a1a1a;
    --f1-gold: #fbbf24;
    --f1-white: #ffffff;
}

body {
    background-color: var(--f1-white);
    color: var(--f1-black);
    font-family: 'Inter', sans-serif;
}

header, footer {
    color: var(--f1-white) !important;
}

.grid-stall-content {
    background-color: var(--f1-black);
    color: var(--f1-white);
}

.carbon-bg {
    background-color: var(--f1-carbon);
    background-image: linear-gradient(45deg, #111 25%, transparent 25%), 
                      linear-gradient(-45deg, #111 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #111 75%), 
                      linear-gradient(-45deg, transparent 75%, #111 75%);
    background-size: 4px 4px;
    color: var(--f1-white);
}

.slanted { clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%); }

.asphalt-grid {
    background-color: var(--f1-white);
    background-image: radial-gradient(#e5e7eb 1.5px, transparent 0);
    background-size: 30px 30px;
}

.grid-stall {
    position: relative;
    border-left: 5px solid var(--f1-gold);
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.grid-number {
    font-size: 6rem;
    font-weight: 900;
    font-style: italic;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -1.5rem;
    right: 1rem;
    z-index: 0;
}

.ai-loading-pulse {
    animation: pulse-gray 1.5s infinite;
}
@keyframes pulse-gray {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.session-row:last-child { border-bottom: none; }
/* --- NUOVI STILI: CERCHI STATISTICHE --- */
/* CONTENITORE */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    margin: 120px 0;
    clear: both;
}

/* CARD (non badge circolare) */
.stat-badge {
    width: 100%;
    min-height: 220px;
    padding: 20px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 3px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    text-align: center;
}

/* TESTO PRINCIPALE */
.stat-badge .stat-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2937;
}

/* ETICHETTA */
.stat-badge .stat-label {
    margin-top: 14px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #6b7280;
}

/* HOVER */
.stat-badge:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* MOBILE */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
h2 {
  font-size: 2rem !important;
  font-weight: 600  !important;
  margin: 1.5rem 0  !important;
}
h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #333;
}
a:link {
  color: #0066cc;
}

a:visited {
  color: #663399;
}

a:hover {
  color: #003366;
  text-decoration: underline;
}

a:active {
  color: #000;
}
h1{
	color: white
}