

/* ---- HERO ---- */
.hero-section {
    position: relative;
    min-height: 800px;
    background: url('../ASSETS/images/risto-chi/risto-chi-hero.webp') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 60px;
    color: var(--text-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.526);
}

.hero-section > * {
    position: relative;
    z-index: 1;
}
.titolo h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2);
    margin-bottom: 14px;
}

.titolo .subtitle {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- LA NOSTRA STORIA ---- */
.la-nostra-storia {
    padding: 70px 0;
    background: #fff;
}

.la-nostra-storia h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Layout: testo sx, galleria dx */
.storia-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 36px;
}

.testo-storia {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.85;
}

/* Galleria: 1 grande sopra, 2 piccole sotto */
.img-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}

.img-section figure {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Prima foto: piena larghezza */
.img-section figure:first-child {
    grid-column: 1 / -1;
}

.img-section figure:first-child img {
    height: 300px;
}

/* Seconda e terza foto: affiancate */
.img-section figure:nth-child(2),
.img-section figure:nth-child(3) {
    grid-column: span 1;
}

.img-section img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.img-section figure:hover img {
    transform: scale(1.04);
}

/* ---- BOTTONE STORIA ---- */
.btn-storia {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-mid);
    color: #fff;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s;
}

.btn-storia:hover {
    background: var(--blue-section);
    transform: translateY(-2px);
}

.btn-storia i {
    font-size: 13px;
    transition: transform 0.2s;
}

.btn-storia:hover i {
    transform: translateX(4px);
}

/* ---- PARTNER ---- */
.partner {
    background: var(--bg-light);
    padding: 70px 0;
}

.partner h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.partner-intro {
    font-size: 15px;
    color: var(--text-mid);
    margin-bottom: 44px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.item-partner {
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 100px;
}

.item-partner:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.item-partner img {
    height: 100%;    
    width: 100%;
    filter: grayscale(40%);
    transition: filter 0.2s;
}

.item-partner:hover img {
    filter: grayscale(0%);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .storia-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .img-section {
        grid-template-columns: 1fr;
    }

    .img-section figure:first-child,
    .img-section figure:nth-child(2),
    .img-section figure:nth-child(3) {
        grid-column: 1;
    }
}