@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;600;700&display=swap');

@font-face { font-family: 'Formula1'; src: url('../font/Formula1-Regular_web_0.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Formula1'; src: url('../font/Formula1-Bold_web_0.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Formula1'; src: url('../font/Formula1-Wide_web_0.ttf') format('truetype'); font-weight: 800; font-style: normal; }

body, html {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    overflow-x: hidden;
}
.navbar-custom {
    display: flex;
    width: 100%;
    height: 64px;
    padding: 0 40px;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    border-bottom: 2px solid #e10600;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}
.navbar-custom .logo {
    color: #e10600;
    font-weight: 900;
    font-style: italic;
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
}
.navbar-custom nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 25px;
    font-size: 14px;
    transition: 0.3s ease;
}
.navbar-custom nav a:hover {
    color: #e10600;
}
.hero-container {
    position: relative;
    padding: 100px 40px;
    background-color: #0b0b0b;
}
.season-label {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #E10600;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.linea-rossa {
    width: 32px;
    height: 1px;
    background: #E10600;
}
.hero-title {
    color: #FFF;
    font-family: 'Formula1', sans-serif;
    font-size: 100px;
    font-weight: 500;
    line-height: 108px;
    letter-spacing: -3.6px;
    text-transform: uppercase;
    margin: 20px 0;
}
.hero-desc {
    color: #FFF;
    font-size: 16px;
    font-weight: 350;
    line-height: 25.6px;
    max-width: 500px;
    margin-bottom: 30px;
}
.btn-container {
    display: flex;
    gap: 15px;
}
.btn-red {
    background: #E10600;
    color: #FFF;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}
.btn-black {
    background: rgba(255,255,255,0.1);
    color: #FFF;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #FFF;
}
.countdown-box {
    position: absolute;
    right: 33.58px;
    top: 215px;
    width: 300px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}
.ticker-wrap {
    width: 100%;
    background-color: #E10600;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    position: relative;
    z-index: 10;
}
.ticker-track {
    display: inline-block;
    animation: f1-ticker 25s linear infinite;
}
.ticker-item {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.90);
    padding: 0 40px;
}
@keyframes f1-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 100px 80px 20px 80px;
}
.section-header-circuits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 80px 20px 80px;
}
.section-title {
    color: #FFF;
    font-family: 'Formula1', sans-serif;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.96px;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}
.view-all {
    color: #E10600;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    transition: 0.3s;
}
.view-all:hover {
    color: #FFF;
}
.cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-bottom: 80px;
    flex-wrap: wrap;
}
.driver-card {
    position: relative;
    overflow: hidden;
    display: flex;
    width: 425.34px;
    height: 400px;
    padding: 32px 28px;
    flex-direction: column;
    gap: 16px;
    border-radius: 8px;
    border: 1px solid #1A1A1A;
    background: #111;
    transition: border-color 0.3s ease;
}
.driver-card:hover {
    border-color: var(--team-color);
}
.side-line {
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 100%;
}
.scuderia {
    color: var(--team-color);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.driver-name {
    color: #FFF;
    font-size: 36px;
    font-weight: 900;
    line-height: 36px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    max-width: 55%;
}
.helmet-container {
    position: absolute;
    right: 0; top: 0;
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}
.helmet-img {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.7));
    transition: transform 0.4s ease;
}
.helmet-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--team-color) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}
.driver-card:hover .helmet-img {
    transform: scale(1.05) rotate(-4deg);
}
.bg-number {
    position: absolute;
    right: -10px; bottom: -10px;
    color: rgba(255, 255, 255, 0.03);
    font-size: 120px;
    font-weight: 900;
    pointer-events: none;
    z-index: 0;
    margin: 0;
    line-height: 1;
    transition: color 0.2s ease;
}
.driver-card:hover .bg-number {
    color: var(--team-color);
}
.points {
    color: #FFF;
    font-family: 'Formula1', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 64px;
    position: relative;
    z-index: 1;
}
.driver-label-punti {
    color: #555;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.95px;
    text-transform: uppercase;
}
a:has(.driver-card) {
    text-decoration: none;
    color: inherit;
    display: block;
}
a:hover .driver-card {
    border-color: var(--team-color);
}
a:has(.circuit-card) {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
a:hover .circuit-card {
    border-color: #E10600;
    background: #000;
}
.team-card-home {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 425.34px;
    height: 200px;
    padding: 28px 28px 28px 32px;
    border-radius: 8px;
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    gap: 12px;
    cursor: pointer;
}
.team-card-home:hover {
    border-color: var(--team-color, #E10600);
    transform: translateY(-2px);
}
a:has(.team-card-home) {
    text-decoration: none;
    color: inherit;
    display: block;
}
a:hover .team-card-home {
    border-color: var(--team-color, #E10600);
    transform: translateY(-2px);
}
.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.scuderie-container {
    display: flex;
    flex-direction: column;
    padding: 40px 80px;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}
.scuderia-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}
.scuderia-row, .team-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 32px;
    border-radius: 8px;
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    gap: 40px;
}
.scuderia-row:hover, .team-card:hover {
    border-color: var(--team-color, #E10600);
    transform: translateY(-2px);
}
.scuderia-side-bar {
    position: absolute;
    left: 0; top: 0;
    width: 4px;
    height: 100%;
    background: var(--team-color, #E10600);
}
.scuderia-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 2;
    min-width: 0;
}
.scuderia-position-label, .team-position {
    color: #E10600;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.65px;
    text-transform: uppercase;
    margin: 0;
}
.scuderia-nome, .scuderia1 {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.64px;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}
.scuderia-piloti {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.pilota-badge {
    display: flex;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #1A1A1A;
    background: #1A1A1A;
    color: #BBB;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}
.scuderia-stats {
    display: flex;
    gap: 40px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.stat-big {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}
.stat-tiny {
    color: #444;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-item .stat-val {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 32px;
    text-align: center;
}
.stat-item .stat-lbl {
    color: #444;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}
.scuderia-punti-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    text-align: right;
}
.scuderia-punti-numero, .team-points {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}
.scuderia-punti-label, .team-label-punti {
    color: #444;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.stats-container {
    display: flex;
    width: 100%;
    margin: 40px auto;
    padding: 0 80px 80px 80px;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
}
.stat-block {
    display: flex;
    padding: 32px 28px;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
}
.stat-number {
    color: #E10600;
    font-family: 'Formula1', sans-serif;
    font-size: 56px;
    font-weight: 500;
}
.stat-label {
    color: #FFF;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}
.circuits-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0 80px 80px 80px;
    box-sizing: border-box;
}
a:has(.circuit-card) {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.circuit-card {
    display: flex;
    padding: 32px 28px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-radius: 8px;
    border: 1px solid #1A1A1A;
    background: #111;
    transition: 0.3s ease;
    box-sizing: border-box;
    height: 320px;
}
.circuit-card:hover {
    border-color: #E10600;
    background: #000000;
}
a:hover .circuit-card {
    border-color: #E10600;
    background: #000000;
}
.circuit-img-map {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.circuit-card:hover .circuit-img-map {
    transform: scale(1.05) rotate(-4deg);
}
.circuit-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    text-align: center;
}
.circuit-name {
    color: #FFF;
    font-family: 'Formula1', sans-serif;
    font-size: 18px;
    font-weight: 700;
}
.circuit-event {
    color: #FFF;
    font-family: 'Formula1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}
.circuit-date {
    color: #555;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}
.sponsors-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 80px 0 80px;
    background-color: #000;
    overflow: hidden;
}
.sponsor-block-one, .sponsor-block-two {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    width: 100%;
    gap: 40px;
}
.sponsor-block-one img, .sponsor-block-two img {
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}
.sponsor-block-one img:hover, .sponsor-block-two img:hover {
    opacity: 1;
}
.sd-hero {
    background: #000;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
}
.sd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 40px 80px 20px 80px;
    box-sizing: border-box;
}
.sd-logo-wrap {
    display: flex;
    justify-content: center;
    padding: 60px 0 40px 0; 
}
.sd-logo {
    height: 80px;
    object-fit: contain;
    filter: brightness(1);
}
.sd-car-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 40px 40px 40px; 
    box-sizing: border-box;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, #000 70%);
}
.sd-car {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
}
.sd-car-label {
    color: #ffffff; 
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 12px 0 0 0;
}
.sd-name-block {
    text-align: center;
    padding: 48px 40px 24px 40px; 
}
.sd-separator {
    width: 100%;
    height: 2px;
    margin: 24px 0;
}
.sd-numbers {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 20px 80px;
    width: 100%;
    box-sizing: border-box;
}
.sd-num-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sd-num-lbl {
    color: #555;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}
.sd-num-val {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}
.sd-drivers-title {
    padding: 40px 0 24px 0;
    text-align: center;
}
.sd-drivers-row {
    display: flex;
    gap: 0;
    justify-content: center;
    width: 100%;
    padding: 0 80px;
    box-sizing: border-box;
}
.sd-drivers-row a {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    max-width: 400px;
}
.sd-driver-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    background: #0a0a0a;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.sd-driver-foto {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}
.sd-driver-card:hover .sd-driver-foto {
    transform: scale(1.04);
}
.sd-driver-number {
    position: absolute;
    right: 0px;
    bottom: 60px;
    color: rgba(255,255,255,0.08);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 200px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
}
.sd-driver-card:hover .sd-driver-number {
    color: var(--team-color);
}
.sd-driver-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sd-driver-name {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.sd-driver-pts {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.piloti-page-header {
    display: flex;
    padding: 60px 80px 20px 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
    background-color: #000;
}
.red-line-arrow {
    display: block;
    width: 24px;
    height: 14px;
    color: #E10600;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 0.5;
    overflow: hidden;
}
.red-line-arrow:hover {
    color: white;
}
.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}
.breadcrumb-text {
    color: #FFF;
    font-family: "Barlow Condensed";
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3.9px;
    text-transform: uppercase;
}
.f1-label-top {
    color: #E10600;
    font-family: "Barlow Condensed";
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.75px;
    text-transform: uppercase;
    margin: 0;
}
.main-title-grid {
    color: #FFF;
    font-family: "Barlow Condensed";
    font-size: 80px;
    font-weight: 900;
    line-height: 76px;
    letter-spacing: -2.4px;
    text-transform: uppercase;
    margin: 0;
}
.main-title-grid .text-red {
    color: #E10600;
}
.sub-description {
    color: #555;
    font-family: "Barlow";
    font-size: 15px;
    font-weight: 300;
    margin-top: 8px;
}
.buttons-container-wrapper {
    display: flex;
    width: 100%;
    max-width: 1440px;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 80px;
    box-sizing: border-box;
}
.team-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-btn {
    display: flex;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    color: #FFF;
    font-family: "Barlow Condensed";
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.filter-btn.active {
    border: 1px solid rgba(225, 6, 0, 0.30);
    background: rgba(225, 6, 0, 0.10);
    color: #E10600;
}
.filter-btn:hover {
    border-color: rgba(225, 6, 0, 0.5);
}
.glossario-header {
    display: flex;
    padding: 60px 80px 20px 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background-color: #000;
}
.glossario-title {
    color: #FFF;
    font-family: "Barlow Condensed";
    font-size: 80px;
    font-weight: 900;
    line-height: 76px;
    letter-spacing: -2.4px;
    text-transform: uppercase;
    margin: 0;
}
.glossario-sub {
    color: #555;
    font-family: "Barlow";
    font-size: 15px;
    font-weight: 300;
    margin-top: 8px;
}
.letter-divider {
    display: flex;
    padding: 40px 80px 20px 80px;
    align-items: center;
    gap: 20px;
}
.letter-badge {
    display: flex;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(225, 6, 0, 0.30);
    background: rgba(225, 6, 0, 0.10);
    color: #E10600;
    font-family: "Barlow Condensed";
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}
.glossario-container {
    padding: 0 80px 80px 80px;
}
.glossario-header-item {
    display: flex;
    padding: 20px 28px;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
    padding-right: 60px;
}
.glossario-header-item::after {
    content: none;
}
.glossario-item.active .glossario-header-item::after {
    content: none;
}
.tire-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.6s ease, filter 0.3s ease;
    filter: brightness(0.6);
    transform: rotate(0deg);
}
.glossario-item.active .tire-icon {
    transform: rotate(180deg);
    filter: brightness(1) drop-shadow(0 0 6px #E10600);
}
.glossario-header-item:hover .tire-icon {
    filter: brightness(0.9);
}
.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-top: 32px;
    margin-bottom: 20px;
}
#glossarySearch {
    width: 100%;
    background-color: #0F0F0F;
    border: 1px solid #1A1A1A;
    border-radius: 4px;
    padding: 16px 48px 16px 20px;
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    outline: none;
    transition: all 0.3s ease;
}
#glossarySearch:focus {
    border-color: rgba(225, 6, 0, 0.6);
    background-color: #151515;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.1);
}
#glossarySearch::placeholder {
    color: #ffffff;
    opacity: 1;
}
.term-title {
    color: #FFF;
    font-family: "Barlow Condensed";
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    display: block;
}
.term-subtitle {
    color: #555;
    font-family: "Barlow Condensed";
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.65px;
    text-transform: uppercase;
    align-self: stretch;
}
.glossario-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: transparent;
}
.glossario-item.active .glossario-content {
    max-height: 500px;
}
.content-inner {
    display: flex;
    width: 100%;
    max-width: 1180px;
    padding: 20px 0 20px 32px;
    flex-direction: column;
    color: #FFF;
    font-family: "Barlow";
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
}
.calendar-wrapper {
    padding: 40px 80px 80px 80px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.race-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 80px;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.race-row.past {
    opacity: 0.38;
    filter: grayscale(0.4);
}
.race-row.next {
    border: 1px solid rgba(225, 6, 0, 0.45);
    background: rgba(225, 6, 0, 0.06);
    border-radius: 6px;
}
.race-row.future {
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
    border-radius: 6px;
}
.race-row.future:hover {
    border-color: rgba(225, 6, 0, 0.3);
    background: #111;
}
.race-row.has-results.active {
    border-color: var(--winner-color, rgba(225, 6, 0, 0.45)) !important;
    background: rgba(0, 0, 0, 0.85) !important;
    box-shadow: 0 0 24px -4px var(--winner-color, rgba(225, 6, 0, 0.3));
}
.race-row.past.active {
    opacity: 1 !important;
    filter: none !important;
}
.race-row-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 80px;
}
.race-row-header.clickable {
    cursor: pointer;
}
.race-date-col {
    display: flex;
    width: 100px;
    padding: 24px 32px 24px 0;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    justify-content: center;
}
.race-month {
    color: #E10600;
    text-align: right;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.65px;
    text-transform: uppercase;
    width: 100%;
}
.race-day {
    color: #FFF;
    text-align: right;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    width: 100%;
}
.race-row.past .race-month,
.race-row.past .race-day { color: #555; }
.divider-dot-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 12px 0;
    align-self: stretch;
}
.divider-dot-wrapper::before {
    content: '';
    width: 1px;
    background: #1A1A1A;
    position: absolute; top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%);
}
.race-row.next .divider-dot-wrapper::before { background: rgba(225, 6, 0, 0.3); }
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #1A1A1A; border: 2px solid #2A2A2A;
    position: relative; z-index: 1; flex-shrink: 0;
}
.race-row.next .dot {
    background: #E10600; border-color: rgba(225, 6, 0, 0.4);
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.5);
}
.race-content-col {
    display: flex;
    padding: 20px 28px;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    align-self: stretch;
    gap: 24px;
    min-width: 0;
}
.race-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.race-flag {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.race-name-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.next-label {
    color: #E10600;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.next-label::before {
    content: '';
    width: 6px; height: 6px;
    background: #E10600;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}
.race-circuit-name {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}
.race-country-name {
    color: #444;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.race-stats-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    min-width: 500px;
}
.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    flex-shrink: 0;
    padding: 0 20px;
    border-left: 1px solid #1A1A1A;
    gap: 4px;
}
.record-box {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    align-items: flex-start !important;
    overflow: hidden;
    flex-shrink: 0;
}
.record-box .stat-big {
    white-space: nowrap;
    font-size: 20px;
}
.record-box .stat-tiny {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: block;
}
.record-time {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 24px;
}
.record-sub {
    color: #b0b0b0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.race-row.past .record-time,
.race-row.past .record-sub { color: #b0b0b0; }
.accordion-arrow {
    margin-left: 12px;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tire-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.6s ease;
    filter: brightness(0.6); 
}
.race-row.active .tire-icon {
    transform: rotate(180deg);
    filter: brightness(1) drop-shadow(0 0 6px #E10600);
}
.race-row-header:hover .tire-icon {
    filter: brightness(0.9);
    
}
.race-results-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: transparent;
}
.race-row.active .race-results-panel {
    max-height: 300px;
}
.podio-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Barlow Condensed", sans-serif;
    table-layout: fixed;
}
.podio-table th {
    color: #333;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 6px 12px;
    text-align: left;
    border-bottom: 1px solid #1A1A1A;
}
.podio-table th:nth-child(1),
.podio-table td:nth-child(1) { width: 50px; }
.podio-table th:nth-child(2),
.podio-table td:nth-child(2) { width: auto; }
.podio-table th:nth-child(3),
.podio-table td:nth-child(3) { width: 35%; }
.podio-table th:nth-child(4),
.podio-table td:nth-child(4) { width: 60px; text-align: right; }
.podio-table td {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.podio-table tr.pos-1 td,
.podio-table tr.pos-2 td,
.podio-table tr.pos-3 td { color: inherit; }
.pos-num {
    font-size: 20px;
    font-weight: 900;
    width: 40px;
}
.pilota-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}
.race-row.has-results.future:hover,
.race-row.has-results.past:hover {
    border-color: rgba(225, 6, 0, 0.3);
}
.race-number-badge {
    display: flex;
    padding: 4px 10px;
    flex-shrink: 0;
}
.race-number-text {
    color: #818181;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}
.race-circuit-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.race-circuit-link .race-circuit-name {
    transition: color 0.2s ease;
}
.race-circuit-link:hover .race-circuit-name {
    color: #E10600;
}
.race-circuit-link::after {
    content: '→';
    color: transparent;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}
.race-circuit-link:hover::after {
    color: #E10600;
}
.scuderia-detail-stats {
    display: flex;
    gap: 2px;
    padding: 40px 80px;
}
.detail-stat-block {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 32px 28px;
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
    align-items: center;
    text-align: center;
}
.detail-stat-num {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}
.detail-stat-lbl {
    color: #555;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}
.detail-car-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 80px;
    gap: 40px;
    background: #0a0a0a;
}
.detail-car-img {
    max-width: 900px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    transition: transform 0.4s ease;
}
.detail-car-img:hover {
    transform: scale(1.02);
}
.detail-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
}
.detail-logo-img {
    max-width: 97px;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.scuderia-tech-info {
    width: 100%;
    background: #0a0a0a;
}
.tech-specs {
    display: flex;
    flex-direction: row;
    gap: 80px;
    justify-content: center;
    padding-top: 50px;
}
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.tech-lbl {
    color: #555;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.tech-val {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}
.pilota-detail-card {
    position: relative;
    overflow: hidden;
    width: 320px;
    height: 460px;
    border-radius: 8px;
    border: 1px solid #1A1A1A;
    background: #111;
    transition: border-color 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}
.pilota-detail-card:hover {
    border-color: var(--team-color);
}
.pilota-detail-card .side-line {
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    z-index: 3;
}
.pilota-detail-foto {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}
.pilota-detail-card:hover .pilota-detail-foto {
    transform: scale(1.03);
}
.pilota-detail-bg-number {
    position: absolute;
    right: -10px; bottom: -5px;
    color: rgba(255, 255, 255, 0.08);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 280px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}
.pilota-detail-card:hover .pilota-detail-bg-number {
    color: var(--team-color);
}
.pilota-detail-info {
    position: absolute;
    bottom: 20px; left: 16px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pilota-detail-badge {
    display: inline-flex;
    height: 30px;
    padding: 6px 14px;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #1A1A1A;
    background: rgba(26, 26, 26, 0.85);
    color: #BBB;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
.circuits-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 40px 80px 80px 80px;
}
.circuit-list-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.circuit-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    gap: 40px;
}
.circuit-list-row:hover { border-color: #E10600; }
.circuit-list-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}
.circuit-list-num {
    color: #E10600;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    flex-shrink: 0;
}
.circuit-list-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.circuit-list-name {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}
.circuit-list-stats {
    display: flex;
    gap: 20px;
    color: #555;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.circuit-list-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.circuit-list-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
}
.circuit-list-map {
    width: 100px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(0.3);
    transition: filter 0.3s ease;
}
.circuit-list-row:hover .circuit-list-map {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(320deg);
}
.circ-datetime {
    padding: 16px 40px;
    color: #E10600;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #000;
}
.circ-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px 0 40px; 
    gap: 20px;
    min-height: 380px;
    box-sizing: border-box;
}
.circ-hero-left {
    flex: 1;
    display: flex;
    align-items: center; 
    min-width: 0;
}
.circ-hero-title {
    font-family: 'Formula1', sans-serif;
    font-size: 80px;
    line-height: 0.9;
    text-transform: uppercase;
    color: #FFF;
    margin: 0;
}
.circ-hero-paese {
    color: #E10600;
}
.circ-hero-right {
    flex: 0 0 420px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}
.circ-map-img {
    width: 480px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(225,6,0,0.5));
}
.circ-car-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 0 40px 60px 40px;
    background: #000;
    box-sizing: border-box;
}
.circ-car-left { flex: 1; min-width: 0; }
.circ-car-right { flex: 1; min-width: 0; }
.circ-section-title {
    color: #E10600;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 40px 0 16px 0;
}
.circ-stats-row {
    display: flex;
    gap: 40px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.circ-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.circ-stat-lbl {
    color: #555;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.circ-stat-val {
    color: #FFF;
    font-family: 'Formula1', sans-serif;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}
.circ-record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #1A1A1A;
    max-width: 500px;
}
.circ-record-pilota-link,
a.circ-record-pilota-link,
a.circ-record-pilota-link:link,
a.circ-record-pilota-link:visited {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}
.circ-record-pilota-link::after {
    content: none;
}
.circ-record-pilota-link .circ-record-pilota {
    font-family: "Barlow Condensed", sans-serif;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
.circ-record-pilota-link:hover .circ-record-pilota {
    color: var(--team-color, #E10600);
    text-shadow: 0 0 20px var(--team-color, #E10600);
}
.circ-record-time {
    color: #FFF;
    font-family: 'Formula1', sans-serif;
    font-size: 24px; 
    font-weight: 700;
}
.race-countdown {
    display: flex;
    flex-direction: row;  
    gap: 8px;
    padding: 10px 28px 16px 152px;
    border-top: 1px solid rgba(225, 6, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(225, 6, 0, 0.08);
    border: 1px solid rgba(225, 6, 0, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    min-width: 52px;
}
.countdown-num {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #E10600;
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1;
}
.countdown-lbl {
    display: block;
    font-size: 9px;
    letter-spacing: .1em;
    color: rgba(255,255,255,0.4);
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
}
.circ-settori-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
    padding: 0 40px 80px 40px;
    box-sizing: border-box;
}
.circ-settore-card {
    flex: 1;
    padding: 28px 28px 28px 32px;
    border: 1px solid #1A1A1A;
    background: #0F0F0F;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.circ-settore-bar {
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: #E10600;
}
.circ-settore-title {
    color: #FFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin: 0 0 8px 0;
}
.circ-settore-label {
    color: #555;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
}
.circ-settore-text {
    color: #CCC;
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}
.circ-section-wrapper { 
    padding: 0 40px; 
}
.circ-risultati-row { 
    display: flex; 
    gap: 0;
    width: 100%; 
}
.circ-risultato-card { 
    position: relative; 
    overflow: hidden; 
    flex: 1; 
    padding: 24px 24px 24px 28px; 
    border: 1px solid #1A1A1A; 
    background: #0F0F0F; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    transition: border-color 0.3s ease;
}
.circ-risultato-card:hover { 
    border-color: var(--team-color); 
}
.circ-card-bar { 
    position: absolute; 
    left: 0; 
    top: 0; 
    width: 3px; 
    height: 100%; 
}
.circ-ris-scuderia { 
    font-family: "Barlow Condensed", sans-serif; 
    font-size: 10px; 
    font-weight: 700; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
}
.circ-ris-nome { 
    color: #FFF; 
    font-family: "Barlow Condensed", sans-serif; 
    font-size: 20px; 
    font-weight: 900; 
    line-height: 1.1; 
    text-transform: uppercase; 
}
.circ-ris-pos-wrap { 
    display: flex; 
    align-items: baseline; 
    gap: 4px; 
    margin-top: 8px; 
}
.circ-ris-pos { 
    color: #FFF; 
    font-family: "Barlow Condensed", sans-serif; 
    font-size: 40px; 
    font-weight: 900; 
    line-height: 1; 
}
.circ-ris-lbl { 
    color: #555; 
    font-family: "Barlow Condensed", sans-serif; 
    font-size: 10px; 
    font-weight: 600; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
}
.circ-bg-number { 
    position: absolute; 
    right: -10px; 
    bottom: -10px; 
    color: rgba(255,255,255,0.04); 
    font-family: "Barlow Condensed", sans-serif; 
    font-size: 120px; 
    font-weight: 900; 
    line-height: 1; 
    pointer-events: none; 
}
.circ-risultato-card:hover .circ-bg-number { 
    color: var(--team-color); 
}
.pilota-hero-wrapper {
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding: 0 80px;
    box-sizing: border-box;
    gap: 100px;
    min-height: 700px;
}
.pilota-hero-left {
    flex: 1;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap:20px;
}
.pilota-scuderia-label {
    color: var(--team-color);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}
.pilota-logo-scuderia {
    height: 48px;
    object-fit: contain;
    object-position: left;
    margin-bottom: 24px;
    display: block;
}
.pilota-nome-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 80px;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin: 0 0 40px 0;
}
.pilota-nome-title .nome {
    color: #FFF;
}
.pilota-nome-title .cognome {
    color: var(--team-color);
}
.pilota-info-row {
    display: flex;
    gap: 80px;
    margin-bottom: 48px;
}
.pilota-info-item-lbl {
    color: #555;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}
.pilota-info-item-val {
    color: #FFF;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}
.pilota-records-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
    color: #FFF;
}
.pilota-records-title span {
    color: var(--team-color);
}
.pilota-stats-row {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.pilota-stat-lbl {
    color: #555;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}
.pilota-stat-val {
    color: #FFF;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}
.pilota-stat-val.accent {
    color: var(--team-color);
}
.pilota-hero-right {
    flex: 0 0 420px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 700px;
}
.pilota-bg-number {
    position: absolute;
    bottom: 0;
    right: -20px;
    color: var(--team-color);
    opacity: 0.55;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 320px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.pilota-foto {
    width: 420px;
    height: 750px;
    object-fit: contain;
    object-position: center bottom;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}
.pilota-storia-wrapper {
    padding: 60px 80px;
    background: #000;
    width: 100%;
    box-sizing: border-box;
}
.pilota-storia-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--team-color);
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
}
.pilota-storia-text {
    color: #AAA;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin: 0;
}
.pilota-hero-bg {
    background: radial-gradient(ellipse at right, var(--team-color-alpha, rgba(255,255,255,0.1)) 0%, #000 60%);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-custom {
    background-color: #000000;
    padding: 40px 60px; 
    border-top: 2px solid #e10600;
    box-sizing: border-box;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 50px;
}
.footer-logo {
    width: 420px;
    max-width: none;
    height: auto;
    aspect-ratio: 759 / 190;
    object-fit: contain;
}
.footer-copy {
    color: #9F9797;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    text-align: right;
}
.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 25px;
    font-size: 14px;
    transition: color 0.3s ease;
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 1px;
}
.footer-menu a:hover {
    color: #e10600;
}
@media (max-width: 1024px) {
    .scuderie-container  { padding: 20px 40px; }
    .stats-container     { padding: 0 40px 40px 40px; }
    .circuits-container  { grid-template-columns: repeat(2, 1fr); padding: 0 40px 40px 40px; }
}
@media (max-width: 900px) {
    .calendar-wrapper, .scuderie-container { padding: 20px; }
    .scuderia-row { flex-direction: column; gap: 20px; align-items: flex-start; }
    .scuderia-stats { justify-content: flex-start; width: 100%; }
    .scuderia-punti-box { align-items: flex-start; text-align: left; }
    .race-stats-right { gap: 16px; }
    .race-circuit-name { font-size: 16px; }
    .race-date-col { width: 70px; padding: 16px 16px 16px 0; }
}
@media (max-width: 768px) {
    .scuderie-container { padding: 16px 20px; }
    .scuderia-row, .team-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .scuderia-stats { justify-content: flex-start; width: 100%; }
    .scuderia-punti-box { align-items: flex-start; text-align: left; width: 100%; }
    .scuderia-punti-numero, .team-points { font-size: 36px; }
    .stats-container { flex-direction: column; padding: 0 20px 20px 20px; }
    .circuits-container { grid-template-columns: 1fr; padding: 0 20px 20px 20px; }
}