/**
 * Style per il sito Team Cuba
 * Basato sul design del sito www.teamcuba.it
 */

:root {
    --primary-color: #e91e63;
    --secondary-color: #ff9800;
    --accent-color: #4a148c;
    --dark-color: #212121;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-color);
    padding-top: 0;
}

/* Header Styles */
.site-header {
    background-color: #222;
    color: white;
    padding: 0;
    position: relative;
}

.top-header {
    background-color: var(--primary-color);
    padding: 10px 0;
}

.top-header .contact-info {
    font-size: 14px;
}

.top-header .social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 18px;
    transition: transform 0.3s;
}

.top-header .social-icons a:hover {
    transform: translateY(-3px);
}

.main-header {
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.85);
}

.main-header .logo {
    max-height: 70px;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 100;
}

.language-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.language-btn:hover, .language-btn.active {
    background: white;
    color: var(--primary-color);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	width: 50%;
    background: url('./Logo-MCNero.svg') center/cover no-repeat;
	/* background: url('./Logo-MCNero.svg') center/cover no-repeat; */
    opacity: 0.2;
    z-index: 0;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    padding-bottom: 4rem;
}

/* Card Styles */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(233, 30, 99, 0.3);
}

.required-field::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.form-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Form Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

/* Footer Styles */
.footer {
    background-color: #222;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer p {
    margin-bottom: 0.75rem;
}

.footer .social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer .social-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.footer .affiliations img {
    height: 40px;
    margin-right: 15px;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer .affiliations img:hover {
    opacity: 1;
}

.footer-bottom {
    background-color: #111;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .page-banner {
        padding: 2rem 0;
    }
    
    .language-selector {
        top: 5px;
        right: 10px;
    }
    
    .language-btn {
        padding: 3px 8px;
        font-size: 0.9rem;
    }
}