@import url("index.css");
/* import variables and base rules from index */
/* ========================================================
   MISSIONE E VISIONE - STILI PERSONALIZZATI
   Tutte le variabili colore sono ora in styles.css globale
   ======================================================== */

/* ========================================================
   HERO SECTION
   ======================================================== */

/* Hero rules moved to global `styles.css` to make hero classes available site-wide. */

/* Disable floating animation on hero for this page */
.missione-visione-page .placeholder-image {
    animation: none;
}

/* Hero photo styling */
.missione-visione-page .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================
   MISSION & VISION SECTIONS
   ======================================================== */
.pages-section.pages-mission {
    background: var(--pages-background);
    border-bottom: 1px solid var(--pages-border);
}

.pages-section.pages-vision {
    background: linear-gradient(
        135deg,
        var(--pages-surface) 0%,
        color-mix(in srgb, var(--pages-primary-pale) 50%, var(--pages-surface))
            100%
    );
}

.pages-section.pages-recognition {
    background: color-mix(
        in srgb,
        var(--pages-neutral-100) 50%,
        var(--pages-background)
    );
}

.pages-section.pages-values {
    background: var(--pages-background);
}

.pages-section-title {
    font-family: "TeX Gyre Termes", serif;
    color: var(--pages-primary);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.pages-hero-title,
.pages-hero-subtitle,
.pages-mission h3 {
    color: var(--pages-primary);
}

.pages-title-accent {
    background: var(--pages-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================================
   HIGHLIGHT TEXT
   ======================================================== */

.pages-highlight-text {
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(199, 106, 82, 0.08) 0%,
        rgba(192, 140, 59, 0.05) 100%
    );
    border-left: 4px solid var(--pages-primary-light);
    border-radius: 0.5rem;
}

.pages-highlight-text .lead {
    font-size: var(--font-size-md);
    font-weight: 400;
    color: var(--pages-text-secondary);
    margin: 0;
    line-height: 1.8;
}

/* ========================================================
   POINTS GRID
   ======================================================== */

.pages-points {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.pages-point {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--pages-surface);
    border-radius: 0.75rem;
    border: 1px solid var(--pages-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pages-point:hover {
    transform: translateY(-4px);
    box-shadow: var(--pages-shadow-md);
    border-color: var(--pages-primary-light);
    background: color-mix(
        in srgb,
        var(--pages-primary-pale) 50%,
        var(--pages-surface)
    );
}

.pages-point-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(131, 50, 40, 0.1) 0%,
        rgba(192, 140, 59, 0.1) 100%
    );
    border-radius: 0.5rem;
    color: var(--pages-primary);
    font-size: var(--font-size-xl);
}

.pages-point-content h4 {
    font-family: "TeX Gyre Termes", serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--pages-text-primary);
    margin-bottom: 0.5rem;
}

.pages-point-content p {
    font-size: var(--font-size-sm);
    color: var(--pages-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ========================================================
   ACTIONS LIST
   ======================================================== */

.pages-actions-list h4 {
    font-family: "TeX Gyre Termes", serif;
    font-weight: 600;
    color: var(--pages-text-primary);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
}

.pages-list-actions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.pages-list-actions li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--pages-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    border-bottom: 1px solid var(--pages-border);
}

.pages-list-actions li:last-child {
    border-bottom: none;
}

.pages-list-icon {
    flex-shrink: 0;
    color: var(--pages-primary-light);
    font-weight: 400;
    font-size: var(--font-size-lg);
}

/* ========================================================
   RECOGNITION CARD
   ======================================================== */

.pages-recognition-card {
    background: var(--pages-surface);
    border: 2px solid var(--pages-primary-light);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--pages-shadow-lg);
}

.pages-badge-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--pages-primary-light),
        var(--pages-secondary-light)
    );
    border-radius: 50%;
    color: white;
    font-size: var(--font-size-3xl);
    box-shadow: var(--pages-shadow-lg);
}

.pages-recognition-card h3 {
    font-family: "TeX Gyre Termes", serif;
    color: var(--pages-text-primary);
    font-weight: 400;
}

.pages-recognition-card p {
    color: var(--pages-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

/* ========================================================
   VALUES CARDS
   ======================================================== */

.pages-value-card {
    background: var(--pages-surface);
    border: 1px solid var(--pages-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pages-value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pages-shadow-lg);
    border-color: var(--pages-primary-light);
    background: color-mix(
        in srgb,
        var(--pages-primary-pale) 40%,
        var(--pages-surface)
    );
}

.pages-value-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(199, 106, 82, 0.15) 0%,
        rgba(192, 140, 59, 0.15) 100%
    );
    border-radius: 50%;
    margin: 0 auto;
    color: var(--pages-primary);
    font-size: var(--font-size-2xl);
    transition: all 0.3s ease;
}

.pages-value-card:hover .pages-value-icon {
    background: var(--pages-gradient-primary);
    color: white;
    transform: scale(1.1);
}

.pages-value-title {
    font-family: "TeX Gyre Termes", serif;
    font-weight: 600;
    color: var(--pages-text-primary);
    font-size: var(--font-size-base);
    margin: 0.5rem 0 0 0;
}

.pages-value-card p {
    color: var(--pages-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

/* ========================================================
   IMAGE WRAPPERS
   ======================================================== */

.pages-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--pages-shadow-lg);
}

.placeholder-image-secondary {
    display: block;
    width: 100%;
}

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

@media (max-width: 991.98px) {
    .pages-hero {
        min-height: 70vh;
    }

    .pages-hero-title {
        font-size: var(--font-size-2xl);
    }

    .pages-hero-subtitle {
        font-size: var(--font-size-base);
    }

    .pages-section {
        padding: 3rem 0;
    }

    .pages-recognition-card {
        text-align: center;
    }

    .pages-badge-large {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 767.98px) {
    .pages-hero {
        min-height: 60vh;
    }

    .pages-hero-title {
        font-size: var(--font-size-xl);
    }

    .pages-hero-content {
        text-align: center;
    }

    .pages-hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .pages-hero-image {
        min-height: 350px;
        margin-top: 2rem;
    }

    .pages-section-title {
        font-size: var(--font-size-xl);
    }

    .pages-point {
        flex-direction: column;
        text-align: center;
    }

    .pages-point-icon {
        margin: 0 auto;
    }

    .pages-value-card {
        padding: 1.5rem;
    }
}

/* ========================================================
   ACCESSIBILITY & PRINT
   ======================================================== */

@media print {
    .pages-hero {
        background: var(--pages-surface);
        color: var(--pages-text-primary);
        min-height: auto;
    }

    .pages-badge {
        border: 1px solid var(--pages-text-primary);
        background: none;
    }

    .pages-value-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .placeholder-image,
    .placeholder-image-secondary,
    .pages-point,
    .pages-value-card,
    .pages-value-card:hover .pages-value-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================================
   PAGE-SPECIFIC: Composizione del Comitato (moved from template)
   These overrides were previously inline in
   `templates/parco_verismo/comitato_tecnico_scientifico.html`.
   Keeping them here keeps styles centralized with missione styles.
   ======================================================== */

.pages-composition .pages-member-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.05rem;
    border-radius: 10px;
    box-shadow: var(--color-shadow-md);
}

.pages-composition .pages-member-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--color-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
}

.pages-composition .pages-member-card h4 {
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}

.pages-separator {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 1rem 0 1.5rem;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pages-composition .pages-member-card-highlight {
    background: linear-gradient(
        180deg,
        var(--color-surface-elevated),
        var(--color-surface)
    );
    border-color: var(--color-border);
}

.pages-composition .pages-group-title {
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

/* Alternate section backgrounds (copied from index.css) */
/* Apply alternating background colors to .pages-section elements */
section.pages-section:nth-of-type(odd) {
    background: var(--color-primary-pale) !important;
}

section.pages-section:nth-of-type(even) {
    background: var(--color-background) !important;
}
