/* ============================================
   ABOUT PAGE - PROFESSIONAL THEME
   Tema professionale per la pagina "Chi Sono"
   Palette: Viola creativo, blu professionale, accenti dorati
   ============================================ */

:root {
    --about-bg-primary: #0d0d14;
    --about-bg-secondary: #1a1a24;
    --about-bg-card: rgba(26, 26, 36, 0.95);

    --about-accent-purple: #a855f7;
    --about-accent-blue: #6366f1;
    --about-accent-teal: #3d7373;
    --about-accent-gold: #d4a853;

    --about-text-primary: #e8e3d5;
    --about-text-secondary: #b8b3a5;
    --about-text-accent: #a855f7;

    --about-border: rgba(168, 85, 247, 0.3);
    --about-shadow: rgba(0, 0, 0, 0.6);
}

/* ============================================
   BODY & BACKGROUND
   ============================================ */
body[data-page="about"] {
    background: var(--about-bg-primary);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(61, 115, 115, 0.05) 0%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><defs><pattern id="dots" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(168,85,247,0.05)"/></pattern></defs><rect width="300" height="300" fill="url(%23dots)"/></svg>');
    color: var(--about-text-primary);
    font-family: 'Georgia', 'Palatino', serif;
    position: relative;
}

/* Subtle grid overlay */
body[data-page="about"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(168, 85, 247, 0.02) 2px, rgba(168, 85, 247, 0.02) 4px);
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

body[data-page="about"] > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   HEADER
   ============================================ */
body[data-page="about"] header {
    background: linear-gradient(180deg, rgba(26, 26, 36, 0.98) 0%, rgba(26, 26, 36, 0.90) 100%);
    border-bottom: 3px solid var(--about-accent-purple);
    box-shadow: 0 4px 20px var(--about-shadow);
    position: relative;
}

body[data-page="about"] header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--about-accent-purple) 25%,
        var(--about-accent-blue) 50%,
        var(--about-accent-purple) 75%,
        transparent 100%);
    opacity: 0.8;
}

/* ============================================
   NAVIGATION
   ============================================ */
body[data-page="about"] nav {
    background: rgba(13, 13, 20, 0.95);
    border-bottom: 2px solid var(--about-border);
    backdrop-filter: blur(10px);
}

body[data-page="about"] nav a {
    color: var(--about-text-secondary);
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    position: relative;
}

body[data-page="about"] nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--about-accent-purple);
    transition: width 0.3s ease;
}

body[data-page="about"] nav a:hover {
    color: var(--about-accent-purple);
}

body[data-page="about"] nav a:hover::after,
body[data-page="about"] nav a.active::after {
    width: 80%;
}

/* ============================================
   ABOUT HERO
   ============================================ */
.about-hero {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.25) 0%,
        rgba(99, 102, 241, 0.2) 50%,
        rgba(61, 115, 115, 0.15) 100%);
    border: 2px solid var(--about-border);
    border-left: 5px solid var(--about-accent-purple);
    border-right: 5px solid var(--about-accent-blue);
    padding: 5rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

/* Decorative corners */
.about-hero::before,
.about-hero::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--about-accent-purple);
    opacity: 0.15;
}

.about-hero::before {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.about-hero::after {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

.about-hero h1 {
    font-family: 'Georgia', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--about-accent-purple) 0%, var(--about-accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(168, 85, 247, 0.5);
    letter-spacing: 0.02em;
}

.about-hero p {
    font-size: 1.3rem;
    color: var(--about-text-secondary);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   ABOUT CONTAINER
   ============================================ */
.about-container {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

/* ============================================
   ABOUT SECTIONS
   ============================================ */
.about-section {
    background: linear-gradient(135deg,
        var(--about-bg-card) 0%,
        rgba(26, 26, 36, 0.92) 100%);
    border: 2px solid var(--about-border);
    border-left: 4px solid var(--about-accent-purple);
    box-shadow:
        0 10px 40px var(--about-shadow),
        inset 0 1px 0 rgba(168, 85, 247, 0.1);
    padding: 3rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.about-section::before {
    content: '✦';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--about-accent-purple);
    opacity: 0.08;
}

.about-section:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 50px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(168, 85, 247, 0.15);
}

.about-section h2 {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: var(--about-accent-purple);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--about-accent-blue);
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: var(--about-accent-purple);
}

.about-section p {
    color: var(--about-text-primary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-section strong {
    color: var(--about-accent-gold);
    font-weight: 700;
}

.about-section a {
    color: var(--about-accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.about-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--about-accent-purple);
    transition: width 0.3s ease;
}

.about-section a:hover {
    color: var(--about-accent-blue);
}

.about-section a:hover::after {
    width: 100%;
}

/* Author section special styling */
.author-section {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.15) 0%,
        var(--about-bg-card) 100%);
    border-left-color: var(--about-accent-blue);
}

.author-section::before {
    content: '📚';
    opacity: 0.15;
}

/* ============================================
   MISSION/VISION BOXES (if needed)
   ============================================ */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-box,
.vision-box {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--about-accent-purple);
    transition: all 0.3s ease;
}

.mission-box:hover,
.vision-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.mission-box h3,
.vision-box h3 {
    color: var(--about-accent-purple);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.mission-box p,
.vision-box p {
    color: var(--about-text-primary);
    line-height: 1.7;
}

/* ============================================
   VALUES GRID (if needed)
   ============================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--about-border);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--about-accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    color: var(--about-accent-purple);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.value-card p {
    color: var(--about-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   SOCIAL MEDIA SECTION
   ============================================ */
.about-section:has(.social-links) {
    border-left-color: var(--about-accent-teal);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.social-link {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--about-text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--about-accent-purple);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--about-accent-purple) 0%, var(--about-accent-blue) 100%);
    border-color: var(--about-accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.social-link:hover::before {
    left: 100%;
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info {
    background: rgba(168, 85, 247, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid var(--about-border);
}

.contact-info h4 {
    color: var(--about-accent-purple);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

/* ============================================
   FOOTER
   ============================================ */
body[data-page="about"] footer {
    background: linear-gradient(180deg, rgba(13, 13, 20, 0.95) 0%, rgba(26, 26, 36, 0.98) 100%);
    border-top: 3px solid var(--about-accent-purple);
    margin-top: 5rem;
    padding: 3rem 2rem;
    position: relative;
}

body[data-page="about"] footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--about-accent-purple) 25%,
        var(--about-accent-blue) 50%,
        var(--about-accent-purple) 75%,
        transparent 100%);
    opacity: 0.8;
}

body[data-page="about"] footer p {
    color: var(--about-text-secondary);
    font-family: 'Georgia', serif;
}

body[data-page="about"] footer a {
    color: var(--about-text-secondary);
    font-family: 'Georgia', serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

body[data-page="about"] footer a:hover {
    color: var(--about-accent-purple);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .about-hero {
        padding: 3rem 1.5rem;
    }

    .about-hero h1 {
        font-size: 2.2rem;
    }

    .about-hero p {
        font-size: 1.1rem;
    }

    .about-container {
        padding: 0 1.5rem;
    }

    .about-section {
        padding: 2rem 1.5rem;
    }

    .about-section h2 {
        font-size: 1.6rem;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 2.5rem 1rem;
    }

    .about-hero h1 {
        font-size: 1.8rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .about-section {
        padding: 1.5rem 1rem;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }

    .about-section p {
        font-size: 1rem;
    }
}
