/* ===========================
   Costanzana F.C. - Stylesheet
   Colors: Granata & Blu
   =========================== */

@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/bebas-neue.ttf') format('truetype');
}

:root {
    --granata: #8C1B2F;
    --granata-light: #A62B42;
    --granata-dark: #6B1224;
    --blu: #1A2D52;
    --blu-light: #243D6E;
    --blu-dark: #0F2140;
    --gold: #C4A24E;
    --gold-light: #D9BC6E;
    --white: #FFFFFF;
    --light: #F4F2EE;
    --gray: #6B7280;
    --dark: #1A1A2E;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
    --radius: 12px;
    --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-top {
    background: var(--granata);
    height: 32px;
    display: flex;
    align-items: center;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header-top a:hover {
    color: var(--white);
}

.header-top a svg {
    display: block;
}

.header-main {
    background: var(--blu-dark);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header.scrolled .header-main {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 10;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    margin-top: -8px;
    margin-bottom: -8px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--white);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 0.15rem;
}

.nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--granata-dark) 0%, #4A1520 40%, var(--blu-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(140, 27, 47, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 33, 64, 0.35) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    padding-top: 120px;
}

.hero-badge {
    margin: 0 auto 2rem;
    width: 200px;
    height: 200px;
    position: relative;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 30px rgba(196, 162, 78, 0.4));
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { filter: drop-shadow(0 4px 30px rgba(196, 162, 78, 0.3)); }
    50% { filter: drop-shadow(0 4px 50px rgba(196, 162, 78, 0.6)); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: var(--gold-light);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* Hero Next Match Box */
.hero-match-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-match-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-match-date {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.hero-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-match-team {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.hero-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.hero-match-vs {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
}

/* Hero skeleton */
.skeleton-line {
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.hero-match-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Hero matches row (last result + next match side by side) */
.hero-matches-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-matches-row .hero-match-box {
    flex: 1;
    margin: 0;
    max-width: 340px;
}

.hero-match-mini .hero-mini-teams {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.hero-match-mini .hero-mini-score {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
}

.hero-match-mini .hero-mini-result {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-mini-score.win, .hero-mini-result.win { color: #4ade80; }
.hero-mini-score.draw, .hero-mini-result.draw { color: #fbbf24; }
.hero-mini-score.loss, .hero-mini-result.loss { color: #f87171; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--granata), var(--granata-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(140, 27, 47, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(140, 27, 47, 0.5);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 0.75rem auto 0;
    background: linear-gradient(to right, var(--granata), var(--blu));
    border-radius: 2px;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    opacity: 0;
    transform: translateY(30px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--granata);
    box-shadow: var(--shadow-lg);
}

.about-card:nth-child(2):hover {
    border-top-color: var(--blu);
}

.about-card:nth-child(3):hover {
    border-top-color: var(--gold);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-icon-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--granata-dark);
}

.about-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== STATS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--granata) 0%, var(--blu) 100%);
    padding: 3.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ===== PLAYERS ===== */
.role-title {
    font-size: 1.3rem;
    color: var(--blu);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blu);
    display: inline-block;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
}

.player-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.player-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-left: 3px solid var(--granata);
}

.player-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--granata), var(--blu));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.player-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e5e5;
}

.player-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--granata), var(--blu));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.staff-icon {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--blu), var(--blu-dark));
}

.player-info h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.15rem;
}

.player-info span {
    color: var(--gray);
    font-size: 0.85rem;
}

.captain {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* ===== MATCHES ===== */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.match-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.match-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--granata), var(--blu));
    border-radius: 8px;
    flex-shrink: 0;
}

.match-date.played {
    background: linear-gradient(135deg, var(--gray), #4a4a5a);
}

.match-day {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.match-month {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.team {
    font-weight: 600;
    font-size: 1rem;
}

.team.home {
    color: var(--granata);
}

.team.away {
    color: var(--dark);
}

.vs {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 700;
}

.score {
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.score.win {
    color: var(--granata);
    background: rgba(107, 29, 58, 0.1);
}

.score.draw {
    color: var(--gray);
    background: rgba(107, 114, 128, 0.1);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--gray);
    font-size: 0.85rem;
    min-width: 200px;
    text-align: right;
}

.match-result-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.match-result-badge.win {
    background: #22c55e;
    color: white;
}

.match-result-badge.draw {
    background: #f59e0b;
    color: white;
}

.match-result-badge.loss {
    background: #ef4444;
    color: white;
}

/* ===== STANDINGS TABLE ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Inline team logos */
.team-logo-inline {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.35rem;
    border-radius: 3px;
}

.standings-table .team-logo-inline {
    width: 22px;
    height: 22px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

.standings-table thead {
    background: linear-gradient(135deg, var(--granata), var(--blu));
}

.standings-table th {
    color: var(--white);
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.standings-table th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.standings-table th:nth-child(2) {
    text-align: left;
}

.standings-table td {
    padding: 0.85rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.standings-table td:nth-child(2) {
    text-align: left;
    font-weight: 500;
}

.standings-table tr:hover {
    background: rgba(140, 27, 47, 0.03);
}

.standings-table tr.highlight {
    background: linear-gradient(to right, rgba(140, 27, 47, 0.08), rgba(15, 33, 64, 0.08));
    font-weight: 600;
}

.standings-table tr.highlight td {
    border-bottom-color: var(--granata);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.85rem;
    pointer-events: none;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--granata-dark), var(--blu-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-placeholder:hover {
    background: linear-gradient(135deg, var(--granata), var(--blu));
}

.gallery-placeholder span {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gallery-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===== SPONSORS ===== */
.sponsors-section {
    background: var(--granata-dark);
    padding: 2.5rem 0;
}

.sponsors-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

a.sponsor-item:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.sponsor-logo {
    height: 90px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(30%) brightness(1.1);
    transition: var(--transition);
}

a.sponsor-item:hover .sponsor-logo,
.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%) brightness(1.15);
}

.sponsor-name {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--granata-dark);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--granata), var(--blu));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.social-link svg {
    display: block;
    flex-shrink: 0;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(140, 27, 47, 0.4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.85rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--granata);
    box-shadow: 0 0 0 3px rgba(107, 29, 58, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--granata-dark), var(--blu-dark));
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-motto {
    color: var(--gold) !important;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== PLAYER DETAIL MODAL ===== */
.player-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.player-modal-bg.open {
    display: flex;
}

.player-modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: playerModalIn 0.3s ease;
}

@keyframes playerModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.player-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}

.player-modal-close:hover {
    color: var(--dark);
}

.player-detail-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--granata);
}

.player-detail-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--granata), var(--blu));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.player-modal h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.player-detail-role {
    color: var(--granata);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.player-detail-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pds-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pds-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blu);
}

.pds-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-detail-notes {
    color: var(--gray);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .header-top {
        height: 28px;
    }

    .logo-img {
        height: 56px;
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .nav {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        background: var(--blu-dark);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav a {
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .hero-badge {
        width: 150px;
        height: 150px;
    }

    .hero-matches-row {
        flex-direction: column;
        align-items: center;
    }

    .hero-matches-row .hero-match-box {
        max-width: 100%;
        width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .match-card {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .match-info {
        min-width: auto;
        text-align: left;
        width: 100%;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .player-detail-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .sponsors-grid {
        gap: 1rem;
    }

    .sponsor-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===========================
   COOKIE BANNER
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: rgba(75, 15, 28, 0.97);
    backdrop-filter: blur(12px);
    border-top: 2px solid var(--granata);
    padding: 1.25rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-banner-content p a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--granata), var(--blu));
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept:hover {
    opacity: 0.9;
}

.cookie-btn-reject {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   PRIVACY PAGE
   =========================== */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-content h3 {
    color: var(--blu);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.privacy-content p {
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-content ul li {
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.privacy-content a {
    color: var(--granata);
    text-decoration: underline;
}

/* ===== MATCH LINEUP (Calendar page) ===== */
.match-lineup {
    grid-column: 1 / -1;
    padding: 0.75rem 0 0;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    display: none;
}

.match-lineup.open {
    display: block;
}

.match-row .result-col[onclick] {
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
    position: relative;
}

.match-row .result-col[onclick]:hover {
    background: rgba(140,27,47,0.06);
}

.match-row .result-col[onclick]::after {
    content: "\25BC";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: var(--gray);
    opacity: 0.5;
}

.match-lineup-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--granata);
    margin-bottom: 0.5rem;
}

.lineup-section {
    margin-bottom: 0.5rem;
}

.lineup-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.lineup-players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lineup-player {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--dark);
    background: var(--light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.lineup-player .lp-icon {
    font-size: 0.7rem;
}

.lineup-player .lp-jersey {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blu);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 0.2rem;
    flex-shrink: 0;
}

.lineup-player .lp-icon.goal { color: #16a34a; }
.lineup-player .lp-icon.assist { color: #2563eb; }
.lineup-player .lp-icon.yellow { color: #d97706; }
.lineup-player .lp-icon.red { color: #dc2626; }
.lineup-player .lp-icon.sub { color: #16a34a; font-size: 0.65rem; font-weight: 600; }

.lineup-player .lp-minutes {
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: 600;
}

.lineup-bench-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Privacy checkbox in contact form */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.privacy-check input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--granata);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.privacy-check label {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

.privacy-check label a {
    color: var(--granata);
}
