
/* Importazione dei font */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --tech-purple: #6f42c1;
    --tech-green: #20c997;
    --tech-orange: #fd7e14;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    --gradient-secondary: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body {
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9) 0%, rgba(111, 66, 193, 0.9) 100%), url('/media/background.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.tech-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    letter-spacing: 2px;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-header h2 i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Card Styling */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Event Cards */
.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.event-card .card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.event-card .card-date .day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.event-card .card-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card .card-title {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.event-card .btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Blog Cards */
.blog-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.blog-card .card-title {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-card .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-card .btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Card Footer Custom */
.card-footer-custom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.card-footer-custom i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

/* Partner Section */
.partner-logo {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Alert Improvements */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: var(--info-color);
}

.alert-info i {
    margin-right: 0.5rem;
}

/* Navigation Styling */
.tech-navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, #495057 100%) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.tech-brand {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tech-brand:hover {
    transform: scale(1.05);
}

.brand-logo {
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    background: var(--dark-color);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: white;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%) !important;
    color: #ecf0f1;
    margin-top: 0 !important;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-subtitle {
    color: #bdc3c7;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-subtitle i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-links a i {
    margin-right: 0.75rem;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.social-link.facebook::before {
    background: #3b5998;
}

.social-link.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.linkedin::before {
    background: #0077b5;
}

.social-link.youtube::before {
    background: #ff0000;
}

.social-link.github::before {
    background: #333;
}

.social-link.discord::before {
    background: #7289da;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
    color: #bdc3c7;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    border: none;
    background: var(--gradient-primary);
    padding: 0.5rem 1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem 0;
}

.copyright {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.tech-love {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.tech-love i {
    margin: 0 0.25rem;
}

/* Footer responsive */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Rich Content Styling */
.rich-content {
    line-height: 1.8;
    color: var(--dark-color);
}

.rich-content h1, .rich-content h2, .rich-content h3, 
.rich-content h4, .rich-content h5, .rich-content h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.rich-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.rich-content h3 {
    font-size: 1.5rem;
}

.rich-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.rich-content ul, .rich-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

.rich-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.rich-content a:hover {
    color: var(--tech-purple);
    border-bottom-color: var(--tech-purple);
}

.rich-content blockquote {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.rich-content code {
    background: var(--light-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--danger-color);
}

.rich-content pre {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.rich-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.rich-content th, .rich-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.rich-content th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.rich-content tbody tr:nth-child(even) {
    background: var(--light-color);
}

.rich-content tbody tr:hover {
    background: rgba(0, 123, 255, 0.1);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.rich-content .image-center {
    text-align: center;
}

.rich-content .image-left {
    float: left;
    margin: 0 1rem 1rem 0;
}

.rich-content .image-right {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* Responsive rich content */
@media (max-width: 768px) {
    .rich-content h1 {
        font-size: 2rem;
    }
    
    .rich-content h2 {
        font-size: 1.5rem;
    }
    
    .rich-content table {
        font-size: 0.8rem;
    }
    
    .rich-content th, .rich-content td {
        padding: 0.5rem;
    }
    
    .rich-content .image-left, .rich-content .image-right {
        float: none;
        margin: 1rem 0;
    }
}
