/* Stili generali */
:root {
    --primary-color: #003580;
    --primary-hover: #00224f;
    --secondary-color: #0071c2;
    --accent-color: #ffb700;
    --text-dark: #1a1a1a;
    --text-light: #6b6b6b;
    --bg-light: #f2f7fc;
    --white: #ffffff;
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 194, 0.2);
}

.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 194, 0.3);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%);
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg') center/cover;
    opacity: 0.1;
}

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

.hero-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--white);
}

.hero-section p,
.hero-section .text-muted {
    color: var(--white) !important;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Assicura che il gradiente funzioni su mobile */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%) !important;
    }
    
    .footer {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%) !important;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .card {
        margin-top: -1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .features-section .col-md-4 {
        padding: 1.5rem;
    }
}

/* Card */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    background: var(--white);
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2.5rem;
}

/* Form */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-select, .form-control {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 0.875rem 1.25rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    background-color: var(--white);
    height: auto;
}

.form-select:focus, .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 194, 0.1);
}

/* Checkbox */
.form-check {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.2em;
    margin-left: -2rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Features section */
.features-section {
    background-color: var(--white);
    padding: 5rem 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.features-section i {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.features-section .col-md-4 {
    padding: 2rem;
    transition: all 0.3s ease;
}

.features-section .col-md-4:hover {
    transform: translateY(-5px);
}

.features-section .col-md-4:hover i {
    color: #fff !important;
    background: var(--secondary-color) !important;
}

.features-section h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.features-section p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Quando si passa il mouse sopra una card, le icone diventano bianche per migliorare il contrasto */
.features-section .card:hover .fa-star,
.features-section .card:hover .fa-2x,
.features-section .card:hover .text-primary {
    color: #fff !important;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg') center/cover;
    opacity: 0.1;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.footer .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    text-align: left;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--white);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-column {
        text-align: center;
    }
}

/* Gyms Page Styles */
.gyms-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.gyms-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.gyms-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gyms-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.filters-section {
    margin-bottom: 3rem;
}

.filters-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filters-card h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

.form-select, .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.results-section {
    padding: 2rem 0;
}

.results-section h2 {
    color: var(--text-color);
    font-weight: 600;
}

.gym-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.gym-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.gym-card h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gym-card .location {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.gym-card .services {
    margin-bottom: 1rem;
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    color: var(--text-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.gym-card .rating {
    margin-bottom: 1rem;
}

.gym-card .rating i {
    color: #ffc107;
}

.gym-card .btn-primary {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gyms-hero {
        padding: 3rem 0;
    }

    .gyms-hero h1 {
        font-size: 2rem;
    }

    .filters-card {
        padding: 1.5rem;
    }

    .gym-card img {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .newsletter-section .col-md-8 {
        width: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 767px) {
    .newsletter-section .newsletter-content {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: 1rem;
    }
    .newsletter-section .newsletter-content > div {
        width: 100% !important;
        justify-content: center;
    }
}

.newsletter-btn {
    background: #fff;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    border-radius: 25px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 8px rgba(110, 42, 150, 0.10);
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.newsletter-btn:hover, .newsletter-btn:focus {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
    transform: translateY(-2px) scale(1.04);
}

/* Placeholder per prezzi (utenti non registrati) */
.price-placeholder {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-width: 120px;
}

.price-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

.price-placeholder:active {
    transform: translateY(0);
}

.price-placeholder-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Versione compatta per mobile */
@media (max-width: 768px) {
    .price-placeholder {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .price-placeholder-text {
        font-size: 0.75rem;
    }
}

/* Versione extra compatta per schermi molto piccoli */
@media (max-width: 480px) {
    .price-placeholder {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 80px;
    }
    
    .price-placeholder-text {
        font-size: 0.7rem;
    }
}

/* Animazione di pulsazione per attirare l'attenzione */
@keyframes pricePulse {
    0% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
}

.price-placeholder {
    animation: pricePulse 2s infinite;
}

.price-placeholder:hover {
    animation: none;
} 