/* ==============================================
   CHI SIAMO PAGE STYLES - EXACT MATCH TO SAMPLE
   File: assets/css/chi-siamo.css
   ============================================== */

/* ========================================
   1. PAGE LAYOUT & CONTAINER
   ======================================== */
.chi-siamo-main {
    background: transparent;
    min-height: 100vh;
    color: #333;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    animation: fadeIn 0.4s ease;
}

/* Page Transition Animation */
.page-transition {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   2. BREADCRUMB NAVIGATION
   ======================================== */
.chi-siamo-breadcrumb {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.chi-siamo-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.chi-siamo-breadcrumb a:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   3. PAGE WRAPPER & HEADER
   ======================================== */
.page-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.page-header {
    padding: 50px 40px;
    background: linear-gradient(135deg, #3068b3 0%, #4a7bc8 100%);
    text-align: center;
    color: white;
}

.page-header-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-header-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   4. PAGE CONTENT SECTIONS
   ======================================== */
.page-content {
    padding: 50px 40px;
}

.content-section {
    margin-bottom: 50px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-text p {
    margin-bottom: 15px;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.skipper-intro {
    margin-bottom: 40px !important;
}

/* ========================================
   5. SKIPPER GRID & CARDS - EXACT MATCH
   ======================================== */
.skipper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skipper-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(224, 224, 224, 0.3);
}

.skipper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Skipper Photo */
.skipper-photo {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skipper-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skipper-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Skipper Info */
.skipper-info {
    padding: 25px;
}

.skipper-name {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.skipper-role {
    font-size: 14px;
    color: #f79448;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.skipper-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Skipper Specialties */
.skipper-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    background: rgba(48, 104, 179, 0.1);
    color: #3068b3;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(48, 104, 179, 0.2);
    white-space: nowrap;
}

/* ========================================
   6. PHILOSOPHY GRID - EXACT MATCH
   ======================================== */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.philosophy-item {
    background: rgba(248, 249, 250, 0.8);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(224, 224, 224, 0.3);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.philosophy-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.philosophy-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   7. RESPONSIVE DESIGN - EXACT MATCH
   ======================================== */
@media (max-width: 768px) {
    .page-container {
        padding: 20px;
    }
    
    .page-header {
        padding: 30px 20px;
    }
    
    .page-header-title {
        font-size: 28px;
    }
    
    .page-header-subtitle {
        font-size: 16px;
    }
    
    .page-content {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-text {
        font-size: 15px;
    }
    
    .skipper-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skipper-photo {
        height: 180px;
    }
    
    .skipper-info {
        padding: 20px;
    }
    
    .skipper-name {
        font-size: 20px;
    }
    
    .philosophy-item {
        padding: 25px;
    }
    
    .philosophy-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 15px;
    }
    
    .page-header {
        padding: 25px 15px;
    }
    
    .page-header-title {
        font-size: 24px;
    }
    
    .page-header-subtitle {
        font-size: 15px;
    }
    
    .page-content {
        padding: 25px 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .skipper-grid {
        gap: 15px;
    }
    
    .philosophy-grid {
        gap: 15px;
    }
    
    .skipper-card {
        border-radius: 16px;
    }
    
    .skipper-photo {
        height: 160px;
    }
    
    .skipper-info {
        padding: 18px;
    }
    
    .philosophy-item {
        padding: 20px;
    }
}

/* ========================================
   8. ACCESSIBILITY & PRINT STYLES
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .page-transition,
    .skipper-card,
    .philosophy-item {
        animation: none;
        transition: none;
    }
}

@media print {
    .chi-siamo-breadcrumb {
        display: none;
    }
    
    .page-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .page-header {
        background: #3068b3 !important;
        color: white !important;
    }
    
    .skipper-card,
    .philosophy-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   9. UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Ensure proper image loading */
.skipper-photo img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skipper-photo img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus styles for accessibility */
.skipper-card:focus-within {
    outline: 2px solid #3068b3;
    outline-offset: 2px;
}