/* ======================================
   DETTAGLIO PROGETTO (progetto/<slug>.html, generate da scripts/genera-progetti.js)
   ====================================== */

.pd {
    --pd-ink: #122027;
    --pd-muted: #5f676c;
    --pd-soft: #f5f7f8;
    --pd-line: #e6eaed;
    color: var(--pd-ink);
}

.pd-eyebrow {
    font-size: 15px;
    font-weight: 600;
    color: var(--pd-muted);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}

.pd-btn {
    /* stesse misure di .rv-37-btn, il bottone del resto del sito */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    height: 50px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.pd-btn i {
    font-size: 12px;
}

.pd-btn--dark {
    background: #08121b;
    color: #fff;
}

.pd-btn--dark:hover {
    color: #fff;
    opacity: 0.85;
}

.pd-btn--light {
    background: #fff;
    color: var(--pd-ink);
    border: 1px solid var(--pd-line);
}

.pd-btn--light:hover {
    color: var(--pd-ink);
    background: var(--pd-soft);
}

/* Hero */
.pd-hero {
    padding: 120px 0 0;
}

.pd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-muted);
    text-decoration: none;
    margin-bottom: 20px;
}

.pd-back:hover {
    color: var(--pd-ink);
}

.pd-hero__card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 48px;
    background: var(--pd-soft);
    border-radius: 24px;
    padding: 56px;
    overflow: hidden;
}

.pd-hero__card--no-img {
    grid-template-columns: 1fr;
    text-align: center;
}

.pd-hero__card--no-img .pd-chips,
.pd-hero__card--no-img .pd-hero__actions {
    justify-content: center;
}

.pd-hero__title {
    color: var(--pd-ink);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.pd-hero__tagline {
    font-size: 24px;
    line-height: 1.35;
    color: var(--pd-muted);
    margin: 0 0 28px;
}

.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--pd-line);
}

.pd-chip i {
    font-size: 12px;
    color: var(--pd-muted);
}

.pd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-hero__img {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.pd-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Intro */
.pd-intro {
    padding: 90px 0 30px;
}

.pd-intro__text {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.35;
    max-width: 920px;
    margin: 0;
}

/* Sezioni generiche */
.pd-section {
    padding: 80px 0;
}

.pd-section--soft {
    background: var(--pd-soft);
    margin: 40px 0;
}

.pd-section__title {
    /* come .rv-37-section-title */
    color: var(--pd-ink);
    font-size: 35px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 40px;
}

/* Cosa abbiamo realizzato */
.pd-deliv-grid {
    display: grid;
    gap: 24px;
}

.pd-deliv-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.pd-deliv-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.pd-deliv {
    background: var(--pd-soft);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pd-deliv--text {
    max-width: 760px;
}

.pd-deliv__img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.pd-deliv__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-deliv__body {
    padding: 24px 28px 30px;
}

.pd-deliv__type {
    color: var(--pd-ink);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pd-deliv__type i {
    font-size: 15px;
    color: var(--pd-muted);
}

.pd-deliv__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--pd-muted);
    margin: 0;
}

/* Punti chiave */
.pd-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pd-feature__title {
    color: var(--pd-ink);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pd-feature__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--pd-muted);
    margin: 0;
}

/* Galleria */
.pd-gallery {
    display: grid;
    gap: 20px;
}

.pd-gallery--2 {
    grid-template-columns: repeat(2, 1fr);
}

.pd-gallery--3 {
    grid-template-columns: repeat(3, 1fr);
}

.pd-gallery__item {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--pd-soft);
}

.pd-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Testimonianza */
.pd-testimonial {
    padding: 90px 0;
    text-align: center;
}

.pd-testimonial__quote {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 920px;
    margin: 0 auto 28px;
}

.pd-testimonial__author {
    font-size: 15px;
    color: var(--pd-muted);
    margin: 0 0 4px;
}

.pd-testimonial__author strong {
    color: var(--pd-ink);
}

.pd-testimonial__company {
    color: var(--pd-ink);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* Altri progetti */
.pd-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.pd-related__head .pd-section__title {
    margin: 0;
}

.pd-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pd-related__card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: var(--pd-soft);
    color: var(--pd-ink);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.pd-related__card:hover {
    color: var(--pd-ink);
    transform: translateY(-4px);
}

.pd-related__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.pd-related__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-related__body {
    padding: 20px 24px 24px;
}

.pd-related__name {
    color: var(--pd-ink);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
}

.pd-related__tagline {
    font-size: 15px;
    color: var(--pd-muted);
    margin: 0;
}

/* Progetto non trovato */
.pd-empty {
    padding: 180px 0 120px;
    text-align: center;
}

.pd-empty__title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pd-empty__text {
    color: var(--pd-muted);
    margin-bottom: 28px;
}

/* Tablet */
@media screen and (max-width: 991px) {
    .pd-hero {
        padding-top: 100px;
    }

    .pd-hero__card {
        grid-template-columns: 1fr;
        padding: 36px;
        gap: 32px;
    }

    .pd-hero__title {
        font-size: 40px;
    }

    .pd-hero__tagline {
        font-size: 20px;
    }

    .pd-intro {
        padding: 64px 0 10px;
    }

    .pd-intro__text {
        font-size: 24px;
    }

    .pd-section {
        padding: 60px 0;
    }

    .pd-section__title {
        font-size: 30px;
        margin-bottom: 28px;
    }

    .pd-deliv-grid--3,
    .pd-gallery--3,
    .pd-related {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pd-testimonial__quote {
        font-size: 22px;
    }
}

/* Mobile */
@media screen and (max-width: 575px) {
    .pd-hero__card {
        padding: 24px;
        border-radius: 20px;
    }

    .pd-hero__title {
        font-size: 32px;
    }

    .pd-hero__actions .pd-btn {
        width: 100%;
        justify-content: center;
    }

    .pd-intro__text {
        font-size: 20px;
    }

    .pd-section__title {
        font-size: 26px;
    }

    .pd-deliv-grid--2,
    .pd-deliv-grid--3,
    .pd-gallery--2,
    .pd-gallery--3,
    .pd-related {
        grid-template-columns: 1fr;
    }

    .pd-related__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
