/* Custom CSS for Trofeo Alfieri */

/* Font Setup */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 1px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.8rem;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #dc3545;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Countdown Timer */
.countdown-timer {
    /*font-family: 'Bebas Neue', cursive;*/
    font-size: 1.2rem;
    color: #ffffff !important;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: countdownPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-timer i {
    color: #dc3545;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.countdown-headers {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.7rem;
    opacity: 0.8;
    width: 100%;
}

.countdown-values {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    width: 100%;
}

.countdown-header {
    min-width: 45px;
    text-align: center;
    flex: 1;
}

.countdown-values span {
    min-width: 45px;
    text-align: center;
    flex: 1;
}

@keyframes countdownPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0)), url('logo_trofeo_a.jpg') right/contain no-repeat,
        linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), rgba(108, 117, 125, 0.1));
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

/* Hero Logo Styles */
.hero-logo {
    animation: fadeInDown 1s ease-out;
}

.hero-logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    border-radius: 15px;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 25px rgba(220, 53, 69, 0.3));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 5rem;
    font-weight: 400;
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.2s both;
    white-space: nowrap;
}

.hero-date {
    font-size: 3rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.4s both;
    white-space: nowrap;
}

.hero-tagline {
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.6s both;
    white-space: nowrap;
}

.social-links a {
    transition: all 0.3s ease;
    margin: 0 10px;
}

.social-links a:hover {
    color: #dc3545 !important;
    transform: translateY(-5px) scale(1.1);
}

/* Pulse Button Animation */
.pulse-button {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    letter-spacing: 1px;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite, fadeInUp 1s ease-out 0.8s both;
    transition: all 0.3s ease;
}

.pulse-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.6);
    background: linear-gradient(45deg, #c82333, #dc3545);
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    }

    50% {
        box-shadow: 0 5px 30px rgba(220, 53, 69, 0.8);
    }

    100% {
        box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    border-radius: 2px;
}

/* Registration Card */
.registration-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.registration-step {
    padding: 20px;
    transition: all 0.3s ease;
}

.registration-step:hover {
    transform: translateY(-5px);
}

.registration-step i {
    transition: all 0.3s ease;
    color: #007bff;
    /* Blue icons in light theme */
}

.registration-step:hover i {
    color: #0056b3 !important;
    /* Darker blue on hover in light theme */
    transform: scale(1.1);
}

/* Sponsors */
.sponsor-logo {
    padding: 20px;
    transition: all 0.3s ease;
}



/* Contact Section */
#contact {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

#contact i {
    color: #007bff;
    /* Blue icons in light theme */
}

#contact h5 {
    color: #007bff;
    /* Blue headings in light theme */
    margin-bottom: 1rem;
}

/* Footer */
footer.bg-black {
    background: #000 !important;
}

/* Responsive Design */
@media (min-width: 992px) {
    .countdown-timer {
        font-size: 1rem;
        /* Reduced from 1.2rem for PC screens */
    }

    .countdown-headers {
        font-size: 0.6rem;
        /* Reduced from 0.7rem for PC screens */
    }

    .countdown-values {
        font-size: 1rem;
        /* Reduced from 1.2rem for PC screens */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 3rem;
    }

    .hero-date {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .pulse-button {
        font-size: 1.1rem;
        padding: 12px 30px;
    }

    .hero-logo-img {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 2.5rem;
    }

    .hero-date {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-logo-img {
        max-width: 120px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Button Styles */
.text-primary {
    color: #007bff !important;
    /* Blue text-primary in light theme */
}

.btn-primary {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-outline-primary {
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Dark Theme Styles */
body.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

body.dark-theme .bg-light {
    background-color: #1e1e1e !important;
}

body.dark-theme .section-title {
    color: #ffffff;
}

body.dark-theme .text-dark,
body.dark-theme .lead,
body.dark-theme .fs-5,
body.dark-theme p {
    color: #e0e0e0 !important;
}

body.dark-theme .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .registration-card {
    background-color: #2d2d2d;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

body.dark-theme .registration-card:hover {
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.15);
}

body.dark-theme .card-body h3,
body.dark-theme .card-body h5,
body.dark-theme .card-body h6 {
    color: #ffffff;
}

body.dark-theme .registration-step i {
    color: #dc3545 !important;
    /* Red icons in dark theme */
}

body.dark-theme .registration-step:hover i {
    color: #ff4757 !important;
    /* Lighter red on hover in dark theme */
}

body.dark-theme .text-primary {
    color: #dc3545 !important;
    /* Red text-primary in dark theme */
}

body.dark-theme #contact i {
    color: #dc3545 !important;
    /* Red contact icons in dark theme */
}



/* Dark Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-toggle:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

body.dark-theme .theme-toggle {
    border-color: #ffd700;
    color: #ffd700;
}

body.dark-theme .theme-toggle:hover {
    background-color: #ffd700;
    color: #121212;
}

/* Gallery Page Specific Styles */
/* Gallery Notice */
.gallery-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-notice:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.gallery-notice i {
    color: #dc3545;
    margin-bottom: 20px;
}

.gallery-notice h3 {
    color: #333;
    margin-bottom: 20px;
}

.gallery-notice p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Dark theme styles for gallery notice */
body.dark-theme .gallery-notice {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

body.dark-theme .gallery-notice:hover {
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.15);
}

body.dark-theme .gallery-notice h3 {
    color: #ffffff;
}

body.dark-theme .gallery-notice p {
    color: #e0e0e0;
}

/* Scores Page Specific Styles */
/* Scores Notice */
.scores-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.scores-notice:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.scores-notice i {
    color: #dc3545;
    margin-bottom: 20px;
}

.scores-notice h3 {
    color: #333;
    margin-bottom: 20px;
}

.scores-notice p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Category cards for scores */
.category-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-card .card-body i {
    color: #007bff;
    /* Blue icons in light theme */
}

/* Dark theme styles for scores */
body.dark-theme .scores-notice {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

body.dark-theme .scores-notice:hover {
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.15);
}

body.dark-theme .scores-notice h3 {
    color: #ffffff;
}

body.dark-theme .scores-notice p {
    color: #e0e0e0;
}

body.dark-theme .category-card {
    background-color: #2d2d2d;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

body.dark-theme .category-card:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

body.dark-theme .category-card .card-body i {
    color: #dc3545 !important;
    /* Red icons in dark theme */
}

body.dark-theme .category-card .card-body h5,
body.dark-theme .category-card .card-body h6 {
    color: #ffffff;
}
