﻿/* =========================================================
   ABOUT — HERO
   ========================================================= */

.about-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    /*
     * La navbar pubblica è sticky e rimane nel document flow.
     *
     * Come nella Hero Home, recuperiamo esattamente
     * la sua altezza così la fotografia parte da top: 0
     * e la navbar si sovrappone alla Hero.
     *
     * Desktop: clamp(72px, 6vw, 96px)
     * Mobile: 72px
     */
    margin-top: calc(-1 * clamp(72px, 6vw, 96px));
    overflow: hidden;
    background: var(--color-primary);
}


    /* =========================================================
   HERO — MEDIA
   ========================================================= */

    /*
 * PublicResponsiveImage utilizza internamente
 * CSS isolation e può impostare il <picture>
 * con display: contents.
 *
 * La specificità di questo selettore ripristina
 * intenzionalmente un vero box assoluto solamente
 * nella Hero della pagina Chi siamo.
 *
 * Layer 0.
 */
    .about-hero > .about-hero__picture {
        position: absolute;
        z-index: 0;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden;
        pointer-events: none;
    }


/*
 * Anche l'immagine viene resa assoluta.
 *
 * In questo modo non può partecipare al flex layout
 * della Hero e non può occupare spazio sopra
 * o davanti al contenuto.
 */
.about-hero__picture > .about-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center center;
    /*
     * Stesso linguaggio animativo della Hero Home:
     *
     * piccolo zoom iniziale che si assesta
     * senza movimenti aggressivi.
     */
    transform: scale(1.03);
    animation: about-hero-background-reveal 1200ms var( --motion-ease-soft, cubic-bezier(.2, .7, .2, 1) ) both;
}


/* =========================================================
   HERO — OVERLAY
   ========================================================= */

/*
 * Layer 1.
 *
 * Desktop:
 * il contenuto vive prevalentemente
 * nella parte sinistra della Hero.
 */
.about-hero__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient( 90deg, rgba(24, 17, 12, .80) 0%, rgba(24, 17, 12, .66) 30%, rgba(24, 17, 12, .38) 58%, rgba(24, 17, 12, .12) 82%, rgba(24, 17, 12, .05) 100% ), linear-gradient( 0deg, rgba(24, 17, 12, .48) 0%, rgba(24, 17, 12, .08) 56%, rgba(24, 17, 12, .16) 100% );
    pointer-events: none;
}


/* =========================================================
   HERO — CONTENT
   ========================================================= */

/*
 * Layer 2.
 */
.about-hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: inherit;
    padding-block: clamp(5rem, 10vh, 8rem);
    padding-inline: clamp(1.5rem, 4vw, 4.5rem);
    padding-top: clamp(8rem, 15vh, 11rem);
}


.about-hero__content {
    position: relative;
    width: min( 100%, 780px );
    color: var(--color-bg);
}


.about-hero__eyebrow {
    margin: 0;
    color: rgba(255, 246, 243, .78);
    opacity: 0;
    animation: about-hero-content-reveal 680ms var(--motion-ease-out, ease) 80ms both;
}


.about-hero__title {
    max-width: 780px;
    margin: clamp(.8rem, 1.4vw, 1.15rem) 0 0;
    color: var(--color-bg);
    font-size: clamp(3rem, 5.4vw, 6rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.05em;
    text-wrap: balance;
    opacity: 0;
    animation: about-hero-content-reveal 720ms var(--motion-ease-out, ease) 180ms both;
}


.about-hero__text {
    max-width: 650px;
    margin: clamp(1.25rem, 2.5vw, 1.9rem) 0 0;
    color: rgba(255, 246, 243, .86);
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.65;
    text-wrap: pretty;
    opacity: 0;
    animation: about-hero-content-reveal 720ms var(--motion-ease-out, ease) 320ms both;
}


/* =========================================================
   HERO — ACTIONS
   ========================================================= */

.about-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    opacity: 0;
    animation: about-hero-content-reveal 720ms var(--motion-ease-out, ease) 460ms both;
}


/*
 * Riutilizziamo la variante outline
 * definita nel core, adattandola solamente
 * al contesto fotografico scuro.
 */
.about-hero .btn--outline {
    color: var(--color-bg);
    border-color: rgba(255, 246, 243, .62);
    background: rgba(255, 246, 243, .04);
}


    .about-hero .btn--outline:hover {
        color: var(--color-primary);
        border-color: var(--color-bg);
        background: var(--color-bg);
    }


    .about-hero .btn--outline:focus-visible {
        outline-color: var(--color-bg);
    }


/* =========================================================
   HERO — SCROLL INDICATOR
   ========================================================= */

/*
 * Layer 3.
 */
.about-hero__scroll-indicator {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: clamp(1.4rem, 3vh, 2.4rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--color-primary);
    font-size: 3.25rem;
    line-height: 1;
    text-decoration: none;
    /*
     * Lo stato iniziale viene gestito
     * dall'animazione di ingresso.
     */
    opacity: 0;
    transform: translateX(-50%);
    transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
    animation: about-hero-scroll-indicator-reveal 620ms var(--motion-ease-out, ease) 660ms both;
}


    .about-hero__scroll-indicator:hover {
        color: var( --color-primary-dark, var(--color-primary) );
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }

    .about-hero__scroll-indicator:active {
        transform: translateX(-50%) scale(.96);
    }

    .about-hero__scroll-indicator .public-icon {
        display: block;
        pointer-events: none;
        animation: about-hero-scroll-arrow 1800ms ease-in-out 1100ms infinite;
    }


    .about-hero__scroll-indicator:focus-visible {
        outline: 2px solid var(--color-bg);
        outline-offset: 5px;
    }


@keyframes about-hero-scroll-arrow {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(.5rem);
    }
}


/* =========================================================
   STORY
   ========================================================= */

.about-story-section {
    position: relative;
    overflow: hidden;
}


.about-story {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}


/* =========================================================
   STORY — MEDIA
   ========================================================= */

.about-story__media {
    position: relative;
    min-width: 0;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}


    .about-story__media::before {
        content: "";
        position: absolute;
        z-index: 2;
        inset: clamp(.75rem, 1.5vw, 1.25rem) clamp(-.75rem, -1.5vw, -1.25rem) clamp(-.75rem, -1.5vw, -1.25rem) clamp(.75rem, 1.5vw, 1.25rem);
        border: 1px solid var(--primary-20);
        pointer-events: none;
    }


    /*
 * Stesso motivo della Hero:
 * neutralizziamo display: contents del
 * componente responsive solamente qui.
 */
    .about-story__media > .about-story__picture {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
    }


.about-story__picture > .about-story__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}


.about-story__caption {
    position: absolute;
    z-index: 3;
    right: clamp(.8rem, 1.5vw, 1.25rem);
    bottom: clamp(.8rem, 1.5vw, 1.25rem);
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .8rem;
    color: var(--color-bg);
    background: rgba(54, 35, 23, .72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}


    .about-story__caption span + span::before {
        content: "·";
        margin-right: .65rem;
        opacity: .5;
    }


/* =========================================================
   STORY — CONTENT
   ========================================================= */

.about-story__content {
    position: relative;
    max-width: 670px;
    padding-block: clamp(1rem, 3vw, 3rem);
}


.about-story__line {
    display: block;
    width: clamp(4rem, 9vw, 8rem);
    height: 1px;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--color-primary);
}


.about-story__content h2 {
    max-width: 630px;
    text-wrap: balance;
}


.about-story__content > p:not(.eyebrow) {
    max-width: 610px;
    margin-top: 1.15rem;
    line-height: 1.8;
}


/* =========================================================
   STORY — PRINCIPLES
   ========================================================= */

.about-story__principles {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    margin-top: clamp(2rem, 4vw, 3.5rem);
    border-top: 1px solid var(--primary-20);
    border-left: 1px solid var(--primary-20);
}


.about-story__principle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(.9rem, 1.5vw, 1.2rem);
    min-width: 0;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-right: 1px solid var(--primary-20);
    border-bottom: 1px solid var(--primary-20);
    background: transparent;
}


/*
 * Nessun hover.
 *
 * Sono contenuti informativi e non CTA.
 */
.about-story__principle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.7rem, 3.5vw, 3.25rem);
    height: clamp(2.7rem, 3.5vw, 3.25rem);
    border: 1px solid var(--primary-20);
    border-radius: 999px;
    color: var(--color-primary);
    background: var(--primary-05);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
}


.about-story__principle-content {
    min-width: 0;
}


.about-story__principle h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.25;
}


.about-story__principle p {
    max-width: 440px;
    margin: .45rem 0 0;
    color: var(--color-text);
    font-size: clamp(.82rem, .88vw, .92rem);
    line-height: 1.55;
    opacity: .72;
}


/* =========================================================
   IMMERSIVE
   ========================================================= */

.about-immersive {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(560px, 72svh, 820px);
    margin-top: clamp(5rem, 10vw, 9rem);
    overflow: hidden;
    background: var(--color-primary);
}


/*
 * PublicParallaxImage gestisce internamente
 * layer, overscan e responsive image.
 *
 * Evitiamo z-index negativi anche qui.
 *
 * Layer 0.
 */
.about-immersive__media {
    position: absolute !important;
    z-index: 0;
    inset: 0;
}


.about-immersive__image {
    object-position: center;
}


/*
 * Layer 1.
 */
.about-immersive__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient( 90deg, rgba(42, 27, 18, .60), rgba(42, 27, 18, .26) ), linear-gradient( 0deg, rgba(42, 27, 18, .30), rgba(42, 27, 18, .10) );
    pointer-events: none;
}


/*
 * Layer 2.
 */
.about-immersive__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: inherit;
    padding-block: clamp(5rem, 10vw, 8rem);
}


.about-immersive__content {
    width: min( 100%, 720px );
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(255, 246, 243, .34);
    color: var(--color-bg);
    background: rgba(54, 35, 23, .34);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}


    .about-immersive__content .eyebrow,
    .about-immersive__content h2,
    .about-immersive__content p {
        color: var(--color-bg);
    }


    .about-immersive__content h2 {
        max-width: 650px;
        font-size: clamp(2.2rem, 4.5vw, 4.7rem);
        line-height: 1.05;
        text-wrap: balance;
    }


    .about-immersive__content p:not(.eyebrow) {
        max-width: 570px;
        margin-top: 1.4rem;
        color: rgba(255, 246, 243, .82);
        font-size: clamp(1rem, 1.2vw, 1.15rem);
        line-height: 1.75;
    }


/* =========================================================
   TEAM
   ========================================================= */

.about-team {
    position: relative;
}


.about-team__grid {
    display: flex;
    
/*    grid-template-columns: repeat( 2, minmax(0, 1fr) );
*/    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
}


.about-team__reveal {
    display: flex;
    min-width: 0;
}


.about-team-card {
    display: flex;
    width: 100%;
    min-width: 220px;
    min-height: 390px;
    padding: 0;
    overflow: hidden;
}


/* =========================================================
   TEAM — MEDIA
   ========================================================= */

.about-team-card__media {
    position: relative;
    flex: 0 0 43%;
    min-width: 0;
    margin: 0;
    border-right: 1px solid var(--color-primary);
    overflow: hidden;
}


    /*
 * Anche qui il <picture> del componente responsive
 * deve creare un box reale dentro il media wrapper.
 */
    .about-team-card__media > .about-team-card__picture {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
    }


.about-team-card__picture > .about-team-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}


/*
 * Nessun hover zoom:
 * le card Team restano statiche.
 */


/* =========================================================
   TEAM — CONTENT
   ========================================================= */

.about-team-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 2.5vw, 2.75rem);
}


.about-team-card__role {
    margin: 0 0 .6rem;
    color: var(--color-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .62;
}


.about-team-card__content h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}


.about-team-card__content > p:last-child {
    font-size: clamp(.95rem, 1vw, 1.08rem);
    line-height: 1.75;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.about-contact {
    padding: 0 0 clamp(5rem, 9vw, 8rem);
}


.about-contact__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--color-primary);
    background: var(--color-surface-soft);
}


.about-contact__content {
    max-width: 720px;
}


    .about-contact__content h2 {
        max-width: 680px;
        margin: 0;
        font-size: clamp(1.8rem, 3vw, 3rem);
        line-height: 1.15;
    }


@media (max-width: 480px) {
    .about-team__grid {
        flex-wrap: wrap;    
    }
}

    /* =========================================================
   TABLET / INTERMEDIATE
   ========================================================= */

    @media (max-width: 1024px) {

        .about-story {
            gap: clamp(2.5rem, 5vw, 4rem);
        }


        /*
     * Evitiamo due card Team troppo strette
     * nei breakpoint intermedi.
     */
        .about-team__grid {
            grid-template-columns: 1fr;
        }


        .about-team-card {
            min-height: 350px;
        }
    }


    /* =========================================================
   MOBILE
   ========================================================= */

    @media (max-width: 768px) {

        /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

        .about-hero {
            align-items: flex-end;
            min-height: 100vh;
            min-height: 100svh;
        }


        /*
     * In portrait il contenuto vive in basso,
     * quindi il contrasto diventa verticale.
     */
        .about-hero__overlay {
            background: linear-gradient( 0deg, rgba(24, 17, 12, .86) 0%, rgba(24, 17, 12, .68) 34%, rgba(24, 17, 12, .34) 62%, rgba(24, 17, 12, .08) 100% );
        }


        .about-hero__container {
            align-items: center;
            justify-content: center;
            padding-top: 7rem;
            padding-bottom: clamp(5.5rem, 14vw, 7rem);
        }


        .about-hero__content {
            width: 100%;
            display: flex;
            align-items: center;
            flex-direction: column;
        }


        .about-hero__title {
            max-width: 36rem;
            font-size: clamp(2.6rem, 10.5vw, 4rem);
            line-height: 1;
            text-align: center;
        }


        .about-hero__text {
            max-width: 34rem;
            font-size: clamp(.95rem, 4vw, 1.05rem);
            line-height: 1.58;
            text-align: center;
        }


        .about-hero__actions {
            justify-content: center;
            flex-direction: row;
            width: 90%;
        }


            .about-hero__actions .btn {
                width: 100%;
                max-width: 250px;
            }


        .about-hero__scroll-indicator {
            width: 56px;
            height: 56px;
            bottom: max( .75rem, env(safe-area-inset-bottom) );
            font-size: 2.85rem;
        }


        /* -----------------------------------------------------
       STORY
       ----------------------------------------------------- */

        .about-story {
            grid-template-columns: 1fr;
            gap: clamp(2.5rem, 8vw, 4rem);
        }


        .about-story__media {
            width: 100%;
        }


        .about-story__content {
            max-width: none;
            padding-block: 0;
        }


        .about-story__principles {
            grid-template-columns: 1fr;
            margin-top: 2rem;
        }


        .about-story__principle {
            padding: clamp(1.15rem, 4vw, 1.5rem);
        }


        /* -----------------------------------------------------
       IMMERSIVE
       ----------------------------------------------------- */

        .about-immersive {
            min-height: min( 760px, 88svh );
        }


        .about-immersive__container {
            align-items: flex-end;
            padding-block: 2rem;
        }


        .about-immersive__content {
            width: 100%;
            padding: clamp(1.75rem, 6vw, 2.4rem);
            background: rgba(54, 35, 23, .52);
        }


        /* -----------------------------------------------------
       TEAM
       ----------------------------------------------------- */

        .about-team-card {
            flex-direction: column;
            min-height: 0;
        }


        .about-team-card__media {
            flex: none;
            width: 100%;
            aspect-ratio: 4 / 3;
            border-right: 0;
            border-bottom: 1px solid var(--color-primary);
        }


        /* -----------------------------------------------------
       FINAL CTA
       ----------------------------------------------------- */

        .about-contact__inner {
            align-items: stretch;
            flex-direction: column;
        }


            .about-contact__inner .btn {
                width: 100%;
            }
    }


    /* =========================================================
   SMALL MOBILE
   ========================================================= */

    @media (max-width: 480px) {

        /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

        .about-hero__container {
            padding-top: 6.5rem;
            padding-bottom: 5.25rem;
        }


        .about-hero__title {
            font-size: clamp(2.25rem, 11vw, 3.3rem);
        }


        .about-hero__text {
            line-height: 1.55;
        }


        .about-hero__actions {
            gap: .65rem;
        }


        /* -----------------------------------------------------
       STORY
       ----------------------------------------------------- */

        .about-story__caption {
            right: .75rem;
            bottom: .75rem;
            font-size: .66rem;
        }


        .about-story__principle {
            grid-template-columns: 2.75rem minmax(0, 1fr);
            gap: .85rem;
        }


        .about-story__principle-icon {
            width: 2.75rem;
            height: 2.75rem;
        }


        /* -----------------------------------------------------
       IMMERSIVE
       ----------------------------------------------------- */

        .about-immersive__content h2 {
            font-size: clamp(2rem, 9vw, 3rem);
        }


        .about-immersive__content p:not(.eyebrow) {
            line-height: 1.6;
        }


        /* -----------------------------------------------------
       TEAM
       ----------------------------------------------------- */

        .about-team-card__media {
            aspect-ratio: 1 / 1;
        }


        .about-team-card__content {
            padding: 1.4rem;
        }
    }


    /* =========================================================
   SHORT DESKTOP / TABLET HEIGHT
   ========================================================= */

    /*
 * Evita che la Hero diventi inutilmente dispersiva
 * sui classici notebook 1366×768 e viewport simili.
 */
    @media (min-width: 769px) and (max-height: 760px) {

        .about-hero__container {
            padding-top: 7rem;
            padding-bottom: 4.5rem;
        }


        .about-hero__title {
            font-size: clamp(2.8rem, 5vw, 4.7rem);
        }


        .about-hero__text {
            margin-top: 1rem;
            line-height: 1.55;
        }


        .about-hero__actions {
            margin-top: 1.5rem;
        }
    }


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    /*
     * Hero.
     *
     * Manteniamo gli elementi immediatamente visibili
     * evitando ingressi o movimenti prolungati.
     */
    .about-hero__picture > .about-hero__image,
    .about-hero__eyebrow,
    .about-hero__title,
    .about-hero__text,
    .about-hero__actions,
    .about-hero__scroll-indicator,
    .about-hero__scroll-indicator .public-icon {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
    }


    .about-hero__scroll-indicator {
        transition: none;
    }
}


/* =========================================================
   HERO — ENTRANCE ANIMATIONS
   ========================================================= */

/*
 * Entrata della fotografia.
 *
 * Stesso principio della Home:
 * zoom iniziale molto leggero,
 * nessuna traslazione invasiva.
 */
@keyframes about-hero-background-reveal {

    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.005);
    }
}


/*
 * Entrata editoriale del contenuto.
 *
 * Utilizzata in stagger da:
 *
 * - eyebrow;
 * - titolo;
 * - testo;
 * - CTA.
 */
@keyframes about-hero-content-reveal {

    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
 * Entrata indipendente della freccia,
 * mantenendo il translateX necessario
 * per il centraggio.
 */
@keyframes about-hero-scroll-indicator-reveal {

    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: .72;
        transform: translate(-50%, 0);
    }
}