﻿/* ================================================================
   HOME PAGES STYLES - UNIFIED
   wwwroot/css/home.css
   Shared styles for: Index, ChiSiamo, Contatti, Documenti, Sponsor
   ================================================================ */

/* ============================================================
   SHARED HERO SECTION (tutte le pagine home)
   ============================================================ */
.hero-section,
.chi-siamo-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1544191696-102dbdaeeaa0?w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.hero-section {
    min-height: 400px;
}

.hero-subtitle {
    opacity: .92;
}

.hero-badges .badge {
    padding: .55rem .9rem;
}

.hero-content .navbar-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}
/* Logo hero: più grande su desktop, invariato su mobile */
.logo-centrale {
    width: 200px;
    height: auto;
}

@media (min-width: 992px) {
    .logo-centrale {
        width: 320px; /* cambia qui la misura desktop (es. 280/320/360) */
    }
}
/* ============================================================
   SHARED ICON CONTAINERS
   ============================================================ */
.value-icon,
.contact-icon,
.activity-icon,
.team-avatar {
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon,
.contact-icon {
    width: 90px;
    height: 90px;
    background: rgba(0, 102, 204, 0.1);
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 204, 0.05);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: rgba(0, 102, 204, 0.1);
}

.team-avatar-special {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(111, 66, 193, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(0, 102, 204, 0.1);
}

/* ============================================================
   SHARED CARD STYLES
   ============================================================ */
.contact-card,
.team-card,
.activity-card {
    transition: all 0.3s ease;
}

    .contact-card:hover,
    .activity-card:hover {
        transform: translateY(-10px);
    }

    .team-card:hover {
        transform: translateY(-5px);
    }

    .contact-card:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    }

    .team-card:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    }

.activity-card {
    background: white;
    border-radius: 15px;
    height: 100%;
    border: 1px solid #e9ecef;
}

    .activity-card:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

/* ============================================================
   INDEX PAGE - NEWS SLIDER
   ============================================================ */
.news-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.news-track {
    display: flex;
    transition: transform .55s ease;
    will-change: transform;
}

.news-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 340px;
}

.news-slide-img {
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.news-slide-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(0,0,0,.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform .15s ease;
    cursor: pointer;
}

    .news-nav:hover {
        transform: translateY(-50%) scale(1.06);
    }

    .news-nav.prev {
        left: 14px;
    }

    .news-nav.next {
        right: 14px;
    }

.news-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(6px);
}

.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .news-dot.active {
        background: rgba(255,255,255,1);
        transform: scale(1.15);
    }

/* Mobile sponsor strip */
.sponsor-strip-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .sponsor-strip-inner::-webkit-scrollbar {
        display: none;
    }

.sponsor-chip {
    scroll-snap-align: center;
    flex: 0 0 auto;
}

/* ============================================================
   CONTATTI PAGE - SPECIFIC
   ============================================================ */
.card-body label,
.form-check-label {
    color: #212529 !important;
}

.info-box {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
}

.social-links-contatti a {
    transition: all 0.3s ease;
}

    .social-links-contatti a:hover {
        transform: translateY(-3px);
    }

.position-fixed.alert {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* ============================================================
   DOCUMENTI PAGE - SPECIFIC
   ============================================================ */
.doc-card {
    border-radius: 1.25rem;
}

.doc-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, .08);
    border: 1px solid rgba(13, 110, 253, .15);
    font-size: 1.35rem;
    flex: 0 0 52px;
}

.doc-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   SPONSOR PAGE - SPECIFIC
   ============================================================ */
.sponsor-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

    .sponsor-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        z-index: 0;
    }

    .sponsor-page::after {
        content: '';
        position: absolute;
        top: 80px;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255,107,53,.15) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 1;
    }

.sponsor-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 80px;
    color: #e8e8e8;
}

    .sponsor-header h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .sponsor-header p {
        font-size: 1.15rem;
        color: rgba(255,255,255,.75);
        font-weight: 400;
        letter-spacing: 0.03em;
    }

.sponsor-divider {
    width: 80px;
    height: 4px;
    background: #ff6b35;
    margin: 24px auto 0;
    border-radius: 4px;
}

.sponsor-grid-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.sponsor-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    will-change: transform;
}

    .sponsor-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 0;
    }

    .sponsor-card:hover::before {
        opacity: 0.03;
    }

    .sponsor-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(255,107,53,.15), 0 4px 12px rgba(0,0,0,.08);
        border-color: rgba(255,107,53,.2);
    }

.sponsor-card-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sponsor-logo {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0) brightness(1);
    transition: all 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    filter: grayscale(0) brightness(1.05);
    transform: scale(1.05);
}

.sponsor-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 0.02em;
    text-align: center;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.sponsor-card:hover .sponsor-name {
    opacity: 1;
    color: #ff6b35;
}

.sponsor-card.is-round .sponsor-logo {
    border-radius: 50%;
    max-width: 110px;
    max-height: 110px;
}

@keyframes cardShuffle {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.3;
        transform: translateY(-10px) scale(0.95);
    }
}

.sponsor-card.shuffling {
    animation: cardShuffle 0.6s ease-in-out;
}

.sponsor-stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding: 0 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ff6b35;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #a0a0a0;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sponsor-cta {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 80px;
    padding: 60px 24px;
    background: #fff;
    border-radius: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

    .sponsor-cta h2 {
        font-family: 'Montserrat', sans-serif;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 16px;
        letter-spacing: -0.01em;
    }

    .sponsor-cta p {
        color: #a0a0a0;
        font-size: 1.1rem;
        margin-bottom: 32px;
        line-height: 1.6;
    }

.btn-sponsor-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    padding: 18px 48px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(255,107,53,.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .btn-sponsor-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(255,107,53,.4);
        color: #fff;
    }

    .btn-sponsor-cta i {
        font-size: 1.2rem;
    }

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.stat-box {
    padding: 20px 10px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .news-slide {
        grid-template-columns: 1fr;
    }

    .news-slide-img {
        min-height: 210px;
    }

    .news-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .chi-siamo-hero {
        background-attachment: scroll;
        padding: 20px;
    }

    .hero-section {
        min-height: 500px;
    }

    .chi-siamo-hero {
        min-height: 400px;
    }

    .hero-content .navbar-logo {
        max-width: 150px;
    }

    .sponsor-page {
        padding: 80px 0 60px;
    }

    .sponsor-header {
        margin-bottom: 60px;
    }

    .sponsor-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sponsor-card {
        padding: 40px 24px;
    }

    .sponsor-cta {
        padding: 40px 24px;
        margin-top: 60px;
    }

    .sponsor-stats {
        gap: 40px;
        margin-top: 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .doc-icon {
        width: 48px;
        height: 48px;
        border-radius: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        gap: 10px !important;
        padding: 0 10px;
    }

        .hero-cta .btn {
            width: 100%;
            max-width: 320px;
            padding: .6rem .9rem;
            font-size: 1rem;
            border-radius: 14px;
            white-space: normal;
            line-height: 1.15;
        }

    .sponsor-chip img {
        height: 34px;
        width: auto;
        display: block;
    }

    .hero-section h1 {
        font-size: 2.1rem !important;
        line-height: 1.15;
    }

    .sponsor-header h1 {
        font-size: 2rem;
    }

    .btn-sponsor-cta {
        padding: 16px 36px;
        font-size: 1rem;
    }
    .chi-siamo-hero {
        position: relative;
        height: 400px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-image: url('https://images.unsplash.com/photo-1544191696-102dbdaeeaa0?w=1600');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 600px;
    }

    @@media (max-width: 768px) {
        .chi-siamo-hero {
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
    }

    .value-icon {
        width: 90px;
        height: 90px;
        margin: 0 auto;
        background: rgba(0, 102, 204, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .activity-card {
        background: white;
        border-radius: 15px;
        transition: all 0.3s ease;
        height: 100%;
        border: 1px solid #e9ecef;
    }

        .activity-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

    .activity-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        background: rgba(0, 102, 204, 0.05);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-box {
        padding: 20px 10px;
    }
}

