/* Custom CSS per Tributo Mina */

/* Font personalizzati */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1.2rem;
    color: #4a5568;
}

/* Colori tema Grigio con accenti Blu */
:root {
    --primary-color: #4a5568; /* Grigio ardesia principale */
    --secondary-color: #5a90c4; /* Blu-grigio medio */
    --accent-color: #2d3748; /* Grigio scuro */
    --light-blue: #7fa8d1; /* Blu-grigio chiaro */
    --dark-blue: #1a202c; /* Grigio antracite */
    --accent-blue: #3b82f6; /* Blu vivace per accenti */
}

/* Override Bootstrap primary */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.text-primary {
    color: var(--primary-color) !important;
}

/* Navbar */
.navbar-brand {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    font-size: 1.4rem;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--accent-blue);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    color: #ffffff;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.8;
    font-weight: 400;
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    border-bottom: none;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #4a5568;
    line-height: 1.7;
}

/* Buttons */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-blue));
}

/* Member cards */
.member-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
}

.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--secondary-color);
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    overflow: hidden;
}

.member-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.member-instrument {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.member-card p {
    color: #4a5568;
    line-height: 1.7;
}

/* Event cards */
.event-card {
    border-left: 4px solid var(--primary-color);
}

.event-card h5 {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.3rem;
}

.event-card p {
    color: #4a5568;
    line-height: 1.7;
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact form */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Contact CTA Section - Fix leggibilità */
.bg-primary.text-white h3,
.bg-primary.text-white p,
.bg-primary.text-white {
    color: #ffffff !important;
}

.bg-primary h3 {
    color: #ffffff !important;
}

.bg-primary p {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Social links */
.social-links a {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    opacity: 1;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .member-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* Utilities */
.text-gold {
    color: var(--secondary-color) !important;
}

.bg-light-gold {
    background-color: var(--light-blue) !important;
}

.border-gold {
    border-color: var(--secondary-color) !important;
}

/* Miglioramento leggibilità testo footer e generale */
.text-light-emphasis {
    color: #cbd5e0 !important;
    opacity: 0.95;
}

footer a.text-light-emphasis:hover {
    color: #e2e8f0 !important;
    text-decoration: none;
}

footer h5, footer h6 {
    color: #f7fafc;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Lead text e paragrafi speciali */
.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.7;
}

/* Badge leggibilità */
.badge {
    font-weight: 600;
    padding: 0.5em 0.85em;
    letter-spacing: 0.3px;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Gallery hover effects per sezione "I Nostri Momenti" */
.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Hexagonal badge per anni di esperienza */
.hexagon-badge {
    position: absolute;
    top: 1.5rem;
    right: -10px;
    width: 130px;
    height: 150px;
    z-index: 10;
}

.hexagon-badge svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

.hexagon-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    width: 100%;
    padding: 0 10px;
}

.hexagon-content h4 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.hexagon-content small {
    font-size: 0.7rem;
    font-weight: 600;
    display: block;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}