/**
 * about.css — About Us Page Styles
 *
 * Sections:
 *  1. Shared row layout (2-column grid used by sections 2 and 3)
 *  2. Section 2: Introduction (about-intro)
 *  3. Section 3: Technology (about-tech) + application pills
 *  4. Section 4: Ecosystem closing statement (about-ecosystem)
 *  5. Responsive overrides
 *
 * @package Frigotel
 */
/* =========================================================
   1. SHARED ROW LAYOUT
   Two-column grid: text + visual, used by sections 2 and 3.
========================================================= */

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* Reversed layout: visual left, text right (Section 3) */
.about-row--reversed .about-row__visual {
    order: -1;
}

.about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
}

/* Body copy shared between sections 2 and 3 */
.about-copy {
    color: var(--color-grigio-blu);
    font-size: var(--text-body-large);
    line-height: 1.75;
    margin-top: var(--space-m);
}

.about-copy p {
    margin-bottom: var(--space-m);
}

.about-copy p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   2. SECTION 2 — INTRODUCTION
========================================================= */

/* No additional styles needed — inherits from .about-row */

/* =========================================================
   3. SECTION 3 — TECHNOLOGY + APPLICATION PILLS
========================================================= */

/* Section Header */
.about-apps__header {
    max-width: 680px;
    margin-bottom: var(--space-s);
}

.about-apps__subtitle {
    font-size: var(--text-body-large);
    color: var(--color-grigio-blu);
    line-height: var(--line-height-body);
    margin-top: var(--space-s);
}

/* Application list */
.about-apps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: 0;
    list-style: none;
    padding-left: 0;
}

.about-apps-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-left: 4px solid rgba(0, 87, 168, 0.08);
    background-color: transparent;
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-bold);
    color: var(--color-grigio-blu);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    transition: all var(--transition-medium);
    cursor: pointer;
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
}

.about-apps-item:hover {
    color: var(--color-blu-primario);
    border-left-color: var(--color-ciano-accento);
    background-color: rgba(0, 87, 168, 0.04);
    padding-left: 1.5rem;
}

.about-apps-item.is-active {
    color: var(--color-blu-profondo);
    border-left-color: var(--color-blu-primario);
    background-color: var(--color-azzurro-tenue);
    padding-left: 1.5rem;
}

/* Stacking application images for transition */
.about-apps-images {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
}

.about-apps-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
}

.about-apps-img.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Desktop Grid Asymmetry to make the image column larger */
@media (min-width: 992px) {
    .about-apps .about-row {
        grid-template-columns: 4.5fr 7.5fr;
        align-items: flex-start;
    }
}

/* =========================================================
   4. SECTION 4 — ECOSYSTEM CLOSING STATEMENT
   Full-width dark gradient section with centred content.
========================================================= */

.about-ecosystem {
    background: linear-gradient(135deg, var(--color-blu-profondo) 0%, #0a4a8f 60%, var(--color-ciano-accento) 130%);
    text-align: center;
}

.about-ecosystem__inner {
    max-width: 820px;
    margin-inline: auto;
}

.about-ecosystem__title {
    font-size: var(--text-heading-l);
    color: var(--color-bianco);
    margin-bottom: var(--space-m);
    max-width: none;
}

.about-ecosystem__text {
    font-size: var(--text-body-large);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
}

/* Blockquote — prominent closing statement */
.about-quote {
    position: relative;
    margin: var(--space-xl) auto;
    padding: var(--space-l) var(--space-xl);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-l);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-quote p {
    font-size: var(--text-heading-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-bianco);
    line-height: 1.5;
    font-style: italic;
}

/* Decorative opening quote mark */
.about-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.4em;
    left: var(--space-l);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-ciano-accento);
    font-family: Georgia, serif;
    pointer-events: none;
}

.about-ecosystem__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-m);
    margin-top: var(--space-xl);
}

/* =========================================================
   5. RESPONSIVE OVERRIDES
========================================================= */

@media (max-width: 1199px) {
    .about-row {
        gap: var(--space-xl);
    }
}

/* Stack columns on tablet and below */
@media (max-width: 991px) {
    .about-row {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Always show visual above text on mobile regardless of order */
    .about-row__visual {
        order: -1;
    }

    .about-row--reversed .about-row__visual {
        order: -1;
    }

    .about-ecosystem__title {
        font-size: var(--text-heading-m);
    }

    .about-quote {
        padding: var(--space-m);
    }

    .about-quote p {
        font-size: var(--text-body-large);
    }
}

@media (max-width: 767px) {
    .about-ecosystem__actions {
        flex-direction: column;
        align-items: center;
    }
}