/* ========================================================================== */
/* HOMEPAGE STYLES */
/* ========================================================================== */

.homepage {
    background: var(--archeo-light);
}

/* Section common */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border-radius: 50px;
    color: var(--archeo-primary, #9B1B30);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--archeo-dark);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.section-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--archeo-gray);
    margin: 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ========================================================================== */
/* INTRO SECTION */
/* ========================================================================== */

.home-intro {
    padding: 100px 0;
    background: var(--archeo-white);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: center;
}

.intro-content .section-title {
    text-align: left;
}

.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--archeo-gray);
    margin-bottom: 32px;
}

.intro-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--archeo-border, #e2e8f0);
    border-bottom: 1px solid var(--archeo-border, #e2e8f0);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--archeo-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--archeo-gray);
}

.intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--archeo-gradient-primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.intro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.3);
}

.intro-visual {
    position: relative;
}

.visual-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.2) 0%, rgba(184, 134, 11, 0.2) 100%);
    border-radius: 20px;
    z-index: 1;
}

.visual-card {
    position: relative;
    z-index: 2;
    background: var(--archeo-gradient-hero);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.visual-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.visual-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 16px 0;
}

.visual-card p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
}

/* ========================================================================== */
/* TEAM CTA (Compact) */
/* ========================================================================== */

.home-team-cta {
    padding: 60px 0;
    background: var(--archeo-warm-bg, #f8f5f0);
}
.team-cta-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.team-cta-content {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    background: var(--archeo-white); border-radius: 16px; padding: 2.5rem 3rem;
    border: 1px solid var(--archeo-border, #e2e8f0); box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.team-cta-text { flex: 1; }
.team-cta-text .section-badge { margin-bottom: 0.5rem; }
.team-cta-text .section-title { font-size: 1.5rem; margin: 0 0 0.5rem; }
.team-cta-desc { color: var(--archeo-gray); font-size: 0.95rem; margin: 0; max-width: 500px; }
.team-cta-avatars { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.avatar-stack { display: flex; }
.avatar-item {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--archeo-white); margin-left: -12px; position: relative;
    background: var(--archeo-gradient-primary); display: flex; align-items: center; justify-content: center;
}
.avatar-item:first-child { margin-left: 0; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-letter { color: #fff; font-weight: 700; font-size: 0.85rem; }
.avatar-more { background: var(--archeo-light); color: var(--archeo-gray); font-size: 0.75rem; font-weight: 700; }
.team-cta-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; background: var(--archeo-gradient-primary);
    color: #fff; border-radius: 50px; text-decoration: none; font-weight: 600;
    font-size: 0.9rem; transition: all 0.3s; white-space: nowrap;
}
.team-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.3); }

/* Swiper Navigation (for collab slider) */
.swiper-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; background: var(--archeo-white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    z-index: 10; box-shadow: 0 4px 20px rgba(0,0,0,0.12); transition: all 0.3s;
    color: var(--archeo-dark); border: 2px solid transparent;
}
.swiper-nav-btn:hover { background: var(--archeo-gradient-primary); color: white; transform: translateY(-50%) scale(1.05); }
.swiper-nav-btn:active { transform: translateY(-50%) scale(0.95); }
.swiper-nav-btn svg { width: 24px; height: 24px; }

.team-cta, .servizi-cta, .collab-cta, .press-cta { text-align: center; margin-top: 40px; }
.view-team-btn, .view-all-btn, .view-collab-btn, .view-press-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
    background: transparent; color: var(--archeo-primary, #9B1B30);
    border: 2px solid var(--archeo-primary, #9B1B30); border-radius: 50px;
    text-decoration: none; font-weight: 600; transition: all 0.3s;
}
.view-team-btn:hover, .view-all-btn:hover, .view-collab-btn:hover, .view-press-btn:hover {
    background: var(--archeo-gradient-primary); border-color: transparent; color: white; transform: translateY(-2px);
}
.collab-empty { background: var(--archeo-light); padding: 60px; text-align: center; border-radius: 16px; color: var(--archeo-gray); }
.collab-empty a { color: var(--archeo-primary); font-weight: 600; }

@media (max-width: 768px) {
    .team-cta-content { flex-direction: column; padding: 2rem 1.5rem; text-align: center; }
    .team-cta-desc { max-width: 100%; }
    .team-cta-avatars { justify-content: center; flex-wrap: wrap; }
}

/* ========================================================================== */
/* SERVIZI / ATTIVITA SECTION */
/* ========================================================================== */

.home-servizi { padding: 100px 0; background: var(--archeo-white); }
.servizi-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Category pills */
.attivita-cats { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.attivita-cat-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1.25rem; background: var(--archeo-light); color: var(--archeo-dark);
    border-radius: 50px; text-decoration: none; font-size: 0.88rem; font-weight: 600;
    border: 1px solid var(--archeo-border, #e2e8f0); transition: all 0.3s;
}
.attivita-cat-pill:hover { background: var(--archeo-primary); color: #fff; border-color: var(--archeo-primary); }
.attivita-cat-pill:hover .cat-count { background: rgba(255,255,255,0.25); color: #fff; }
.cat-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    background: rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.1); color: var(--archeo-primary);
    border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.attivita-cat-all { background: var(--archeo-gradient-primary); color: #fff; border-color: transparent; }
.attivita-cat-all:hover { opacity: 0.9; transform: translateY(-1px); }

/* Upcoming events */
.upcoming-section { margin-top: 0.5rem; }
.upcoming-title { font-size: 1.1rem; font-weight: 700; color: var(--archeo-dark); margin: 0 0 1.25rem; font-family: var(--archeo-font-display, 'Poppins', sans-serif); }
.upcoming-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.upcoming-card {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1rem 1.25rem; background: var(--archeo-warm-bg, #f8f5f0);
    border-radius: 12px; text-decoration: none; border: 1px solid var(--archeo-border, #e2e8f0); transition: all 0.3s;
}
.upcoming-card:hover { border-color: var(--archeo-primary); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.upcoming-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; height: 56px; background: var(--archeo-gradient-primary); color: #fff; border-radius: 10px; flex-shrink: 0; }
.upcoming-day { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.upcoming-month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }
.upcoming-info { flex: 1; min-width: 0; }
.upcoming-name { margin: 0 0 2px; font-size: 1rem; font-weight: 600; color: var(--archeo-dark); }
.upcoming-meta { font-size: 0.85rem; color: var(--archeo-gray); margin: 0; }
.upcoming-arrow { color: var(--archeo-gray); flex-shrink: 0; }
.upcoming-card:hover .upcoming-arrow { color: var(--archeo-primary); }

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.servizio-card {
    background: var(--archeo-white);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--archeo-border, #e2e8f0);
    transition: all 0.4s;
}

.servizio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(155, 27, 48, 0.12);
    border-color: var(--archeo-secondary, #B8860B);
}

.servizio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--archeo-primary, #9B1B30);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.servizio-card:hover .servizio-icon {
    background: var(--archeo-gradient-primary);
    color: white;
}

.servizio-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--archeo-primary, #9B1B30);
    margin: 0 0 10px 0;
}

.servizio-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--archeo-gray);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.servizio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--archeo-primary, #9B1B30);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.servizio-link:hover {
    color: var(--archeo-secondary, #B8860B);
    gap: 10px;
}

/* ========================================================================== */
/* HOME ACTIVITY CARDS (Archive-style) */
/* ========================================================================== */

.home-att-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.home-att-card {
    background: var(--archeo-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--archeo-border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.home-att-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--archeo-shadow-lg);
    border-color: var(--archeo-primary);
}
.att-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--archeo-light);
}
.att-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.home-att-card:hover .att-img { transform: scale(1.05); }
.att-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: var(--archeo-light); color: var(--archeo-gray);
    text-decoration: none;
}
.att-date-badge {
    position: absolute; top: 0.75rem; left: 0.75rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: var(--archeo-gradient-primary);
    color: #fff; border-radius: 8px; z-index: 2;
}
.att-date-day { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.att-date-month { font-size: 0.6rem; text-transform: uppercase; font-weight: 600; }
.att-section-badges { position: absolute; top: 0.6rem; right: 0.6rem; display: flex; gap: 0.3rem; z-index: 3; flex-wrap: wrap; justify-content: flex-end; }
.att-sbadge { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.25rem 0.55rem; border-radius: 6px; font-size: 0.68rem; font-weight: 700; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2); backdrop-filter: blur(6px); }
.sb-form { background: rgba(74,103,65,0.9); }
.sb-perc { background: rgba(184,134,11,0.9); }
.sb-soci { background: rgba(155,27,48,0.9); }
.att-card-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.att-card-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.att-badge-tipo {
    display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.att-badge-tipo.attivita { background: rgba(74,103,65,0.12); color: var(--archeo-accent); }
.att-badge-tipo.progetto { background: rgba(var(--archeo-primary-rgb),0.1); color: var(--archeo-primary); }
.att-badge-status {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem;
    border-radius: 6px; font-size: 0.72rem; font-weight: 600;
    background: color-mix(in srgb, var(--status-color) 12%, transparent);
    color: var(--status-color);
}
.att-badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--status-color); }
.att-badge-own { padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.72rem; font-weight: 600; background: rgba(184,134,11,0.1); color: var(--archeo-secondary); }
.att-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; line-height: 1.3; }
.att-card-title a { color: var(--archeo-dark); text-decoration: none; transition: color 0.2s; }
.att-card-title a:hover { color: var(--archeo-primary); }
.att-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.82rem; color: var(--archeo-gray); }
.att-card-excerpt { font-size: 0.9rem; color: var(--archeo-gray); line-height: 1.5; margin: 0 0 0.75rem; flex: 1; }
.att-card-link {
    display: inline-flex; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: color 0.2s;
}
.att-card-link.tipo-attivita { color: var(--archeo-accent); }
.att-card-link.tipo-progetto { color: var(--archeo-primary); }
.att-card-link:hover { opacity: 0.8; }

@media (max-width: 1024px) { .home-att-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .home-att-grid { grid-template-columns: 1fr; } }

/* Dark mode att cards */
body.dark-mode .home-att-card { background: var(--archeo-light); border-color: var(--archeo-border); }
body.dark-mode .att-card-title a { color: var(--archeo-dark); }
body.dark-mode .att-card-title a:hover { color: var(--archeo-primary); }
body.dark-mode .att-placeholder { background: var(--archeo-white); }

/* ========================================================================== */
/* COLLABORAZIONI SLIDER */
/* ========================================================================== */

.home-collaborazioni {
    padding: 100px 0;
    background: var(--archeo-light);
}

.collab-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.collab-slider-wrapper {
    margin-bottom: 40px;
    overflow: hidden;
}

.collab-swiper {
    overflow: visible;
}

.collab-logo-card {
    background: var(--archeo-white);
    border-radius: 12px;
    padding: 30px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.collab-logo-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.collab-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.collab-logo-card:hover .collab-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Collab Link Hover */
.collab-link {
    position: relative;
    text-decoration: none;
}

.collab-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(155, 27, 48, 0.85) 0%, rgba(184, 134, 11, 0.85) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.collab-link:hover .collab-hover-overlay {
    opacity: 1;
}

.collab-hover-text {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
}

/* Scroll Hint */
.collab-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--archeo-gray);
    font-size: 0.85rem;
}

.collab-scroll-hint svg {
    animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

.collab-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--archeo-gray);
    text-align: center;
}

/* ========================================================================== */
/* LOADING STATES */
/* ========================================================================== */

.slider-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px;
    color: var(--archeo-gray);
    font-size: 0.9rem;
}

.slider-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--archeo-border, #e2e8f0);
    border-top-color: var(--archeo-primary, #9B1B30);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Show loading when swiper not initialized */
.collab-slider-wrapper:not(.swiper-initialized) .slider-loading {
    display: flex;
}

.collab-slider-wrapper:not(.swiper-initialized) .collab-swiper {
    opacity: 0;
}

.collab-swiper.swiper-initialized {
    opacity: 1;
    transition: opacity 0.3s;
}

/* Empty States */
.collab-empty {
    background: linear-gradient(135deg, rgba(155, 27, 48, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
    padding: 60px;
    text-align: center;
    border-radius: 20px;
    border: 1px dashed var(--archeo-gray-light, #cbd5e1);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--archeo-primary, #9B1B30);
}

.collab-empty p {
    color: var(--archeo-gray);
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--archeo-gradient-primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.3);
}

/* ========================================================================== */
/* SEDE — SPAZ.io NIVE */
/* ========================================================================== */

.home-sede {
    padding: 100px 0;
    background: var(--archeo-light, #f8f5f0);
}
.sede-fp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.sede-fp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.sede-fp-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--archeo-text, #4a5568);
    margin: 1.5rem 0;
}
.sede-fp-meta { margin-bottom: 1.5rem; }
.sede-fp-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--archeo-gray);
    font-size: 0.95rem;
}
.sede-fp-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.sede-fp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--archeo-gradient-primary);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}
.sede-fp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(155,27,48,0.3); }
.sede-fp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--archeo-white);
    color: var(--archeo-dark);
    border: 2px solid var(--archeo-border, #e2e8f0);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.sede-fp-btn-secondary:hover { border-color: var(--archeo-primary); color: var(--archeo-primary); }
.sede-fp-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    object-fit: cover;
    aspect-ratio: 4/3;
}
.sede-fp-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: var(--archeo-white);
    border-radius: 16px;
    color: var(--archeo-gray);
    border: 2px dashed var(--archeo-border, #e2e8f0);
}
.sede-fp-placeholder p { font-size: 1.3rem; font-weight: 700; margin: 1rem 0 0; }

@media (max-width: 768px) {
    .home-sede { padding: 60px 0; }
    .sede-fp-grid { grid-template-columns: 1fr; gap: 2rem; }
    .sede-fp-visual { order: -1; }
    .sede-fp-image { aspect-ratio: 16/9; }
}

/* ========================================================================== */
/* CTA SECTION */
/* ==========================================================================*/

.home-cta {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.home-cta .cta-gradient-bg {
    position: absolute;
    inset: 0;
    background: var(--archeo-gradient-hero);
}

.home-cta .cta-content {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
}

.home-cta .cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-cta .cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

.home-cta .cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 36px 0;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--archeo-secondary, #B8860B);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.4);
}

.cta-btn-primary:hover {
    background: var(--archeo-white);
    color: var(--archeo-secondary, #B8860B);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ========================================================================== */
/* PRESS SECTION */
/* ========================================================================== */

.home-press {
    padding: 100px 0;
    background: var(--archeo-white);
}

.press-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.press-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--archeo-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
}

.press-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(155, 27, 48, 0.12);
}

.press-card-link {
    display: block;
    text-decoration: none;
}

.press-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--archeo-light);
}

.press-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.press-card:hover .press-img {
    transform: scale(1.08);
}

.press-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--archeo-border) 0%, var(--archeo-light) 100%);
    color: var(--archeo-gray);
}

.press-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.press-info {
    padding: 24px;
}

.press-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.press-source {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--archeo-primary, #9B1B30);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.press-date {
    font-size: 0.8rem;
    color: var(--archeo-gray);
}

.press-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--archeo-dark);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s;
}

.press-card:hover .press-title {
    color: var(--archeo-primary, #9B1B30);
}

/* ========================================================================== */
/* RESPONSIVE */
/* ========================================================================== */

@media (max-width: 1280px) {
    .team-nav-prev { left: 10px; }
    .team-nav-next { right: 10px; }
    
    .swiper-nav-btn {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .intro-visual {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .servizi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .press-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-nav-prev { left: 5px; }
    .team-nav-next { right: 5px; }
    
    .swiper-nav-btn {
        width: 42px;
        height: 42px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
    
    .swiper-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .home-intro,
    .home-team-cta,
    .home-servizi,
    .home-collaborazioni,
    .home-press {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .intro-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    .servizi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .press-grid {
        grid-template-columns: 1fr;
    }
    
    /* Frecce più piccole su mobile ma non nascoste */
    .swiper-nav-btn {
        width: 40px;
        height: 40px;
        opacity: 0.9;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .team-nav-prev { left: 8px; }
    .team-nav-next { right: 8px; }
    
    .swiper-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Pagination più compatta */
    
    
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-inner {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    /* Frecce ancora più piccole su telefoni piccoli */
    .swiper-nav-btn {
        width: 36px;
        height: 36px;
        opacity: 0.85;
    }
    
    .team-nav-prev { left: 4px; }
    .team-nav-next { right: 4px; }
    
    .swiper-nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================================================== */
/* DARK MODE */
/* ========================================================================== */

body.dark-mode .homepage {
    background: var(--archeo-white);
}

body.dark-mode .home-intro {
    background: var(--archeo-light);
}

body.dark-mode .section-title {
    color: var(--archeo-dark);
}

body.dark-mode .section-description,
body.dark-mode .intro-text {
    color: var(--archeo-gray);
}

body.dark-mode .home-team-cta,
body.dark-mode .home-collaborazioni {
    background: var(--archeo-white);
}
body.dark-mode .team-cta-content {
    background: var(--archeo-light);
    border-color: var(--archeo-border);
}
body.dark-mode .team-cta-desc { color: var(--archeo-gray); }
body.dark-mode .avatar-item { border-color: var(--archeo-light); }
body.dark-mode .avatar-more { background: var(--archeo-border); color: var(--archeo-gray); }

body.dark-mode .home-servizi,
body.dark-mode .home-press {
    background: var(--archeo-light);
}

body.dark-mode .servizio-card {
    background: var(--archeo-white);
    border-color: var(--archeo-border);
}

body.dark-mode .servizio-card:hover {
    border-color: var(--archeo-secondary);
}

body.dark-mode .servizio-title {
    color: var(--archeo-primary);
}

body.dark-mode .servizio-desc {
    color: var(--archeo-gray);
}

body.dark-mode .attivita-cat-pill {
    background: var(--archeo-white);
    border-color: var(--archeo-border);
    color: var(--archeo-dark);
}
body.dark-mode .attivita-cat-pill:hover {
    background: var(--archeo-primary);
    color: #fff;
}
body.dark-mode .cat-count { background: rgba(212,99,122,0.15); }
body.dark-mode .upcoming-card {
    background: var(--archeo-white);
    border-color: var(--archeo-border);
}
body.dark-mode .upcoming-name { color: var(--archeo-dark); }
body.dark-mode .upcoming-meta { color: var(--archeo-gray); }

body.dark-mode .collab-logo-card {
    background: var(--archeo-light);
}

body.dark-mode .press-card {
    background: var(--archeo-white);
}

body.dark-mode .press-title {
    color: var(--archeo-dark);
}

body.dark-mode .press-card:hover .press-title {
    color: var(--archeo-primary);
}

body.dark-mode .swiper-nav-btn {
    background: var(--archeo-light);
    color: var(--archeo-dark);
    border-color: var(--archeo-border);
}

body.dark-mode .swiper-nav-btn:hover {
    background: var(--archeo-gradient-primary-light);
    color: white;
    border-color: transparent;
}

/* Dark mode sede */
body.dark-mode .home-sede { background: var(--archeo-light); }
body.dark-mode .sede-fp-desc { color: var(--archeo-gray); }
body.dark-mode .sede-fp-btn-secondary { background: var(--archeo-white); color: var(--archeo-dark); border-color: var(--archeo-border); }
body.dark-mode .sede-fp-placeholder { background: var(--archeo-white); border-color: var(--archeo-border); }


body.dark-mode .collab-empty {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(244, 114, 182, 0.08) 100%);
    border-color: var(--archeo-border);
}

body.dark-mode .empty-icon {
    background: linear-gradient(135deg, rgba(196, 71, 90, 0.15) 0%, rgba(244, 114, 182, 0.15) 100%);
    color: var(--archeo-primary-light);
}

body.dark-mode .collab-empty p {
    color: var(--archeo-gray);
}

body.dark-mode .collab-scroll-hint {
    color: var(--archeo-gray);
}

body.dark-mode .slider-loading {
    color: var(--archeo-gray);
}

body.dark-mode .slider-loading .loading-spinner {
    border-color: var(--archeo-border);
    border-top-color: var(--archeo-primary-light);
}

body.dark-mode .collab-name {
    color: var(--archeo-gray);
}

body.dark-mode .view-team-btn,
body.dark-mode .view-all-btn,
body.dark-mode .view-collab-btn,
body.dark-mode .view-press-btn {
    color: var(--archeo-primary-light);
    border-color: var(--archeo-primary-light);
}

body.dark-mode .view-team-btn:hover,
body.dark-mode .view-all-btn:hover,
body.dark-mode .view-collab-btn:hover,
body.dark-mode .view-press-btn:hover {
    background: var(--archeo-gradient-primary-light);
    color: white;
}
