/* ═══════════════════════════════════════════════════════════
   OUR STORY – page-our-story.css
   Da incollare nel CSS del child theme oppure importare
   con wp_enqueue_style() nel functions.php
   ═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Drayton-Regular';
    src: url('/wp-content/uploads/2026/04/EDDrayton-Regular.woff2') format('woff2'),
         url('/wp-content/uploads/2026/04/EDDrayton-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── Variabili (allineale a quelle del tuo design system) ── */
:root {
    --os-bg:          #FFF8EB;
    --os-cream:       #F5EDE0;
    --os-maroon:      #371613;
    --os-maroon-mid:  #7e1c2e;
    --os-gold:        #C9A84C;
    --os-text:        #371613;
    --os-text-light:  #371613;
	--os-font-title: 'Drayton-Regular';
    --os-font-serif:  "Darline Serif", serif;
    --os-font-sans:   'Montserrat', 'Helvetica Neue', sans-serif;
    --os-line-color:  #d4bfb0;
    --os-dot-size:    14px;
    --os-gap:         72px;
    --os-col-photo:   44%;
    --os-col-dot:     40px;
    --os-col-text:    calc(56% - 40px);
}

/* ── Reset pagina ── */
.os-page {
    background: var(--os-bg);
    min-height: 100vh;
    padding-bottom: 100px;
	padding-top:4rem;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.os-hero {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 56px;
    padding: 48px 24px 0;
}

.os-hero__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* ══════════════════════════════
   INTRO TITLE
══════════════════════════════ */
.os-intro {
    text-align: center;
    padding: 0 24px 64px;
}

.os-intro__title {
    font-family: var(--os-font-title);
    font-size: clamp(5rem, 5vw, 3.4rem);
    font-weight: 400;
    color: var(--os-maroon-mid);
    letter-spacing: .06em;
    margin: 0;
}

/* ══════════════════════════════
   TIMELINE WRAPPER
══════════════════════════════ */
.os-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Linea verticale centrale */
.os-timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: var(--os-line-color);
    pointer-events: none;
}

/* ══════════════════════════════
   SINGOLO ITEM
══════════════════════════════ */
.os-item {
    display: grid;
    grid-template-columns: 1fr var(--os-col-dot) 1fr;
    align-items: center;
    gap: 0 24px;
    margin-bottom: var(--os-gap);
    position: relative;
}

/* ── Colonna foto ── */
.os-item__photo-col {
    grid-column: 1;
}

/* Inversione per item pari: foto a destra, testo a sinistra */
.os-item--even .os-item__photo-col { grid-column: 3; grid-row: 1; }
.os-item--even .os-item__dot-col   { grid-column: 2; grid-row: 1; }
.os-item--even .os-item__text-col  { grid-column: 1; grid-row: 1; }

.os-item__photo-wrap {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4 / 3;
    background: var(--os-cream);
}

.os-item__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.os-item__photo-wrap:hover img {
    transform: scale(1.04);
}

/* ── Colonna dot ── */
.os-item__dot-col {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.os-item__dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.os-item__dot::before {
    content: '';
    display: block;
    width: var(--os-dot-size);
    height: var(--os-dot-size);
    border-radius: 50%;
    background: var(--os-cream);
    border: 2px solid var(--os-maroon-mid);
    flex-shrink: 0;
}

.os-item__year {
    font-family: var(--os-font-serif);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--os-maroon-mid);
    white-space: nowrap;
}

/* ── Colonna testo ── */
.os-item__text-col {
    grid-column: 3;
}

.os-item--even .os-item__text-col {
    text-align: right;
}

.os-item__text {
    font-family: var(--os-font-serif);
    font-size: clamp(1.1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: var(--os-text);
    margin: 0;
}

/* ══════════════════════════════
   RESPONSIVE — tablet/mobile
══════════════════════════════ */
@media (max-width: 680px) {

    .os-timeline__line { display: none; }

    .os-item,
    .os-item--even {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Rimetti sempre: foto, dot, testo */
    .os-item--even .os-item__photo-col,
    .os-item--even .os-item__dot-col,
    .os-item--even .os-item__text-col {
        grid-column: unset;
        grid-row: unset;
    }

    .os-item__dot-col {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .os-item--even .os-item__text-col {
        text-align: left;
    }

    .os-item__photo-wrap {
        aspect-ratio: 16 / 10;
    }
	
	.os-item__text{
		text-align:center!important;
	}
}
