/* ============================================
   A.S.D. Villafalletto - Custom Styles
   ============================================ */

:root {
    --color-primary: #B62A2A;
    --color-primary-dark: #8e1f1f;
    --color-dark: #262f3e;
    --color-text: #555555;
    --color-text-light: #7A7A7A;
    --color-light-bg: #f8f9fa;
    --color-accent-blue: #6EC1E4;
    --color-accent-yellow: #fcb900;
    --color-accent-green: #61CE70;
    --color-white: #ffffff;
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    color: var(--color-dark);
    font-weight: 600;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* Top Bar */
.top-bar {
    background-color: var(--color-dark);
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a {
    color: #ccc;
    transition: color 0.3s;
}

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

/* Navbar */
.bg-dark-custom {
    background-color: var(--color-primary) !important;
}

.navbar {
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    background-color: rgba(182, 42, 42, 0.95) !important;
    backdrop-filter: blur(10px);
}

.brand-text {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: var(--color-white) !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(38, 47, 62, 0.7), rgba(38, 47, 62, 0.2)),
                url('/images/hero-bg.jpg') center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
}

.hero-section h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.hero-section .btn-hero {
    margin-top: 2rem;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-section .btn-hero:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

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

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

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-title p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Featured Event */
.featured-event {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.2);
}

.featured-event-img {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(182, 42, 42, 0.9) 0%, rgba(38, 47, 62, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
}

.featured-event-badge {
    display: inline-block;
    background: var(--color-accent-yellow);
    color: var(--color-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.featured-event-content h2 {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.featured-event-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 1rem;
}

.featured-event-date {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.featured-event-date .date-day {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent-yellow);
    line-height: 1;
}

.featured-event-date .date-month {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-event-details {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.featured-event-details i {
    color: var(--color-accent-yellow);
}

@media (max-width: 768px) {
    .featured-event-img {
        min-height: 350px;
    }

    .featured-event-overlay {
        padding: 2rem;
    }

    .featured-event-content h2 {
        font-size: 2rem;
    }

    .featured-event-date .date-day {
        font-size: 2.5rem;
    }

    .featured-event-date .date-month {
        font-size: 1rem;
    }

    .featured-event-details span {
        display: block;
        margin-left: 0 !important;
        margin-top: 0.3rem;
    }
}

/* News / Comunicazioni */
.news-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-body h5 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.news-card-body p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.news-card-body .read-more {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.news-card:hover .read-more {
    color: var(--color-primary-dark);
}

/* Article Detail */
.article-locandina {
    position: sticky;
    top: 100px;
}

.article-locandina img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.article-featured-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body h4 {
    color: var(--color-primary);
}

.article-downloads h4 {
    color: var(--color-dark);
    font-size: 1.2rem;
}

.download-item {
    padding: 1rem 1.2rem !important;
    border-left: 3px solid transparent !important;
    transition: all 0.3s;
}

.download-item:hover {
    border-left-color: var(--color-primary) !important;
    background-color: rgba(182, 42, 42, 0.03) !important;
}

.download-icon {
    font-size: 1.3rem;
    color: var(--color-primary);
    width: 30px;
    text-align: center;
}

.download-arrow {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Squadre */
.team-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.team-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.team-card-body {
    padding: 1.2rem;
}

.team-card-body h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Strutture */
.facility-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(38,47,62,0.85));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.facility-overlay h4 {
    color: var(--color-white);
    font-size: 1.3rem;
    margin: 0;
}

/* Sponsor */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.sponsor-item {
    padding: 1rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    max-width: 150px;
}

.sponsor-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
}

/* Classifica */
.classifica-table {
    width: 100%;
    border-collapse: collapse;
}

.classifica-table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.classifica-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.classifica-table tr:hover {
    background-color: rgba(182, 42, 42, 0.05);
}

.classifica-table .highlight {
    background-color: rgba(182, 42, 42, 0.08);
    font-weight: 600;
}

/* Trasparenza */
.trasparenza-box {
    background: var(--color-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.trasparenza-box .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Roboto Slab', serif;
}

/* Player Card */
.player-card {
    text-align: center;
    margin-bottom: 2rem;
}

.player-card .player-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-primary);
    background-color: #ddd;
}

.player-card h6 {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--color-dark);
}

.player-card small {
    color: var(--color-text-light);
}

/* Organigramma */
.org-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.org-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.org-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--color-primary);
}

.org-card h5 {
    margin-bottom: 0.3rem;
}

.org-card p {
    color: var(--color-text-light);
    margin: 0;
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(182, 42, 42, 0.15);
}

.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(38, 47, 62, 0.8), rgba(38, 47, 62, 0.8)),
                url('/images/hero-bg.jpg') center/cover no-repeat;
    padding: 4rem 0;
    text-align: center;
    color: var(--color-white);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin: 0;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: #aaa;
    padding: 4rem 0 0;
}

.footer-title {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #ccc;
    margin-right: 8px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--color-primary);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
}
