/**
 * About / Chi siamo / Sobre nosotros — modern entity page styles
 * Stays inside the Magica design system (CSS vars from styles.css).
 */

/* ============================================
   WRAPPER + RESET
   ============================================ */
.about-page {
    overflow-x: hidden;
}

.about-page section {
    position: relative;
    padding: 90px 0;
}

.about-page h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.about-page .lead {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--light-text);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.about-page .landing-breadcrumb {
    padding: 24px 0 0;
    font-size: 0.9rem;
}

.about-page .landing-breadcrumb a {
    color: var(--light-text-secondary);
}

.about-page .landing-breadcrumb a:hover {
    color: var(--accent);
}

/* ============================================
   1. HERO PERSONALE
   ============================================ */
.about-hero {
    padding: 60px 0 110px !important;
    background:
        radial-gradient(ellipse at top right, rgba(13, 98, 225, 0.10), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(95, 210, 147, 0.08), transparent 55%),
        var(--light-bg);
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(13, 147, 225, 0.18), transparent 65%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(20px);
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero__badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(13, 98, 225, 0.3);
    animation: fadeUp 0.6s ease-out;
}

.about-hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    animation: fadeUp 0.7s ease-out 0.1s backwards;
}

.about-hero h1 .accent-name {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.about-hero .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.about-hero p:not(.lead) {
    color: var(--light-text-secondary);
    animation: fadeUp 0.9s ease-out 0.3s backwards;
}

.about-photo-wrapper {
    position: relative;
    display: inline-block;
    animation: fadeIn 1s ease-out;
}

.about-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: conic-gradient(from 90deg, var(--accent), var(--accent-light), var(--secondary), var(--accent));
    border-radius: 50%;
    z-index: 0;
    filter: blur(18px);
    opacity: 0.55;
    animation: rotateGlow 12s linear infinite;
}

.about-photo {
    width: 240px;
    height: 240px;
    border: 6px solid white;
    box-shadow: 0 20px 60px rgba(13, 98, 225, 0.25), 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    object-fit: cover;
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============================================
   2. STORY (timeline-style)
   ============================================ */
.about-story {
    background-color: var(--light-panel-bg) !important;
}

.about-story::before {
    content: '';
    position: absolute;
    top: 120px;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(13, 98, 225, 0.2), transparent);
}

.story-card {
    background: white;
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: 0 8px 30px rgba(13, 98, 225, 0.06);
    border: 1px solid rgba(13, 98, 225, 0.05);
    position: relative;
    z-index: 1;
}

.story-card h2 {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.story-card p {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ============================================
   3. PRIVACY / FILOSOFIA
   ============================================ */
.about-philosophy {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-panel-bg) 100%);
}

.about-philosophy::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(13, 98, 225, 0.08), transparent 65%);
    border-radius: 50%;
    z-index: 0;
}

.about-philosophy .container {
    position: relative;
    z-index: 1;
}

.philosophy-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(13, 98, 225, 0.25);
}

.pullquote {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
}

/* ============================================
   4. AWARDS
   ============================================ */
.about-awards {
    background: var(--light-bg);
}

.award-card {
    background: white;
    padding: 40px 24px 28px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    text-align: center;
}

.award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 98, 225, 0.12);
}

.award-card picture img,
.award-card > img {
    height: 90px;
    width: auto;
    margin-bottom: 18px;
}

.award-card p {
    margin: 0;
}

/* ============================================
   5. ECOSYSTEM
   ============================================ */
.about-ecosystem {
    background: var(--light-panel-bg);
}

.ecosystem-card {
    background: white !important;
    border: 1px solid rgba(13, 98, 225, 0.06) !important;
    border-radius: 24px !important;
    padding: 32px !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 98, 225, 0.15);
    border-color: rgba(13, 98, 225, 0.15) !important;
}

.ecosystem-card:hover::before {
    transform: scaleX(1);
}

.ecosystem-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 98, 225, 0.1), rgba(13, 147, 225, 0.15));
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.ecosystem-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ecosystem-card p {
    margin: 0 0 16px;
    flex-grow: 1;
}

.ecosystem-card .badge {
    background: rgba(13, 98, 225, 0.08) !important;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
    align-self: flex-start;
}

.about-ecosystem .ecosystem-cta {
    margin-top: 12px;
}

.about-ecosystem .ecosystem-cta a {
    font-weight: 600;
}

/* ============================================
   6. OTHER APPS — card list
   ============================================ */
.about-other-apps {
    background: var(--light-bg);
}

.other-apps-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 0 !important;
    display: grid;
    gap: 14px;
}

.other-app-card {
    background: white;
    border-radius: 18px;
    padding: 22px 26px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-app-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(13, 98, 225, 0.08);
}

.other-app-card__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 98, 225, 0.1), rgba(95, 210, 147, 0.15));
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.other-app-card__body strong {
    display: block;
    margin-bottom: 4px;
    color: var(--light-text);
}

.other-app-card__body span {
    color: var(--light-text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   7. DIFFERENTIATORS — icon cards
   ============================================ */
.about-differentiators {
    background: var(--light-panel-bg);
}

.diff-card {
    background: white;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.diff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(13, 98, 225, 0.08);
}

.diff-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: white;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(13, 98, 225, 0.2);
}

.diff-icon--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.diff-icon--secondary {
    background: linear-gradient(135deg, var(--secondary), #3DB375);
    box-shadow: 0 8px 20px rgba(95, 210, 147, 0.25);
}

.diff-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.diff-card p {
    margin: 0;
    color: var(--light-text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ============================================
   8. FINAL CTA
   ============================================ */
.about-cta {
    padding: 110px 0 !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%) !important;
    overflow: hidden;
    color: white;
}

.about-cta::before,
.about-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.about-cta::before {
    width: 480px;
    height: 480px;
    top: -180px;
    left: -120px;
}

.about-cta::after {
    width: 340px;
    height: 340px;
    bottom: -120px;
    right: -80px;
}

.about-cta .container {
    position: relative;
    z-index: 1;
}

.about-cta h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.about-cta p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.15rem;
    margin-bottom: 2rem !important;
}

.about-cta .download-btn {
    background: white !important;
    color: var(--accent) !important;
    border: none !important;
    padding: 16px 38px !important;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.about-cta .download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: var(--accent) !important;
}

.about-cta .download-btn img {
    filter: invert(31%) sepia(76%) saturate(2476%) hue-rotate(206deg) brightness(91%) contrast(95%);
    height: 16px;
}

.about-cta__author-link {
    display: block;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
}

.about-cta__author-link a {
    color: white !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.3s;
}

.about-cta__author-link a:hover {
    border-bottom-color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .about-hero h1 { font-size: 2.6rem; }
    .about-page h2 { font-size: 2rem; }
    .about-cta h2 { font-size: 2.2rem; }
    .story-card { padding: 28px 26px; }
}

@media (max-width: 767.98px) {
    .about-page section { padding: 60px 0; }
    .about-hero { padding: 40px 0 70px !important; }
    .about-hero h1 { font-size: 2.1rem; }
    .about-hero .lead { font-size: 1.1rem; }
    .about-photo { width: 180px; height: 180px; border-width: 5px; }
    .about-page h2 { font-size: 1.7rem; }
    .about-philosophy::before { display: none; }
    .about-cta { padding: 70px 0 !important; }
    .about-cta h2 { font-size: 1.8rem; }
    .ecosystem-card { padding: 24px !important; }
    .diff-card { padding: 24px; }
    .pullquote { font-size: 1.2rem; padding-left: 18px; }
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
    .about-hero {
        background:
            radial-gradient(ellipse at top right, rgba(13, 98, 225, 0.18), transparent 55%),
            radial-gradient(ellipse at bottom left, rgba(95, 210, 147, 0.10), transparent 55%),
            var(--dark-bg);
    }
    .about-hero h1,
    .about-page h2,
    .story-card p,
    .diff-card h3,
    .ecosystem-card h3,
    .other-app-card__body strong {
        color: var(--dark-text);
    }
    .about-hero .lead {
        color: var(--dark-text);
    }
    .about-hero p:not(.lead),
    .diff-card p,
    .other-app-card__body span {
        color: var(--dark-text-secondary);
    }
    .about-story,
    .about-ecosystem,
    .about-differentiators {
        background-color: var(--dark-bg) !important;
    }
    .about-awards,
    .about-other-apps,
    .about-philosophy {
        background: var(--dark-panel-bg) !important;
    }
    .story-card,
    .award-card,
    .ecosystem-card,
    .other-app-card,
    .diff-card {
        background: var(--dark-panel-bg) !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
    }
    .ecosystem-card .badge {
        background: rgba(13, 147, 225, 0.18) !important;
        color: var(--accent-light) !important;
    }
}
