/* ==========================================================
   FLAUTEA 153-A
   FLAUTIN / PICCOLO
   ========================================================== */

.piccolo-page {
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 3rem;
    color: #173d43;
}

.piccolo-page *,
.piccolo-page *::before,
.piccolo-page *::after {
    box-sizing: border-box;
}


/* VOLVER */

.piccolo-back-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 1.4rem 0 .8rem;
}

.piccolo-back {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1rem;

    border: 1px solid #b8d9d6;
    border-radius: 999px;

    background: #fff;
    color: #08777c;

    font-size: .82rem;
    font-weight: 700;

    text-decoration: none;
}

.piccolo-back:hover {
    background: #f3faf9;
}


/* HERO */

.piccolo-hero {
    padding: 1.7rem 1.8rem;

    border: 1px solid #c9dfdd;
    border-radius: 16px;

    background: #f9fcfb;
}

.piccolo-kicker,
.piccolo-section-number {
    display: block;

    margin-bottom: .45rem;

    color: #087f84;

    font-size: .68rem;
    font-weight: 800;

    letter-spacing: .13em;
}

.piccolo-hero h1 {
    margin: 0 0 .85rem;

    color: #073943;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.piccolo-hero p,
.piccolo-section > p,
.piccolo-conclusion p {
    line-height: 1.78;
}

.piccolo-lead {
    max-width: 970px;
    font-size: 1.05rem;
}


/* DATOS RÁPIDOS */

.piccolo-facts {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: .8rem;

    margin-top: 1.25rem;
}

.piccolo-facts > div {
    padding: .9rem;

    border: 1px solid #c9dfdd;
    border-radius: 10px;

    background: #fff;
}

.piccolo-facts small {
    display: block;

    margin-bottom: .28rem;

    color: #6a7e81;

    font-size: .61rem;
    font-weight: 800;

    letter-spacing: .08em;
}

.piccolo-facts strong {
    display: block;

    margin-bottom: .28rem;

    color: #087f84;

    font-size: .92rem;
}

.piccolo-facts span {
    color: #536d71;
    font-size: .7rem;
    line-height: 1.4;
}


/* ÍNDICE */

.piccolo-index {
    display: flex;
    flex-wrap: wrap;

    gap: .5rem;

    margin: 1rem 0 2rem;
}

.piccolo-index a {
    padding: .42rem .7rem;

    border: 1px solid #b8d9d6;
    border-radius: 999px;

    background: #fff;
    color: #08777c;

    font-size: .72rem;
    font-weight: 700;

    text-decoration: none;
}


/* SECCIONES */

.piccolo-section {
    margin-top: 2.8rem;
}

.piccolo-section > h2,
.piccolo-sources > h2,
.piccolo-related > h2 {
    margin: 0 0 .85rem;

    color: #073943;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(1.45rem, 2.2vw, 2rem);
}


/* NOTAS */

.piccolo-note {
    margin-top: 1rem;

    padding: 1rem 1.15rem;

    border-left: 4px solid #089497;
    border-radius: 8px;

    background: #edf8f6;

    line-height: 1.7;
}


/* TIMELINE */

.piccolo-timeline {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: .9rem;

    margin-top: 1.3rem;
}

.piccolo-timeline article {
    position: relative;

    padding: 1.1rem 1.15rem 1.1rem 1.35rem;

    border: 1px solid #c9dfdd;
    border-radius: 11px;

    background: #fbfdfc;
}

.piccolo-timeline article::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    border-radius: 11px 0 0 11px;

    background: #0a8c90;
}

.piccolo-timeline span {
    display: block;

    margin-bottom: .35rem;

    color: #087f84;

    font-size: .62rem;
    font-weight: 800;

    letter-spacing: .09em;
}

.piccolo-timeline h3 {
    margin: 0 0 .4rem;

    color: #073943;

    font-size: .98rem;
}

.piccolo-timeline p {
    margin: 0;

    line-height: 1.65;
}


/* GALERÍA */

.piccolo-history-gallery {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 1.25rem;
}

.piccolo-history-gallery figure {
    margin: 0;

    overflow: hidden;

    border: 1px solid #c9dfdd;
    border-radius: 12px;

    background: #fff;
}

.piccolo-photo {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 240px;

    background: #f4f8f7;
}

.piccolo-photo img {
    display: block;

    width: 100%;
    height: 240px;

    padding: .8rem;

    object-fit: contain;
}

.piccolo-history-gallery figcaption {
    padding: 1rem;
}

.piccolo-history-gallery figcaption strong {
    display: block;

    margin-bottom: .45rem;

    color: #073943;

    line-height: 1.35;
}

.piccolo-history-gallery figcaption p {
    font-size: .74rem;
    line-height: 1.55;
}

.piccolo-history-gallery a {
    color: #087f84;

    font-size: .72rem;
    font-weight: 700;

    text-decoration: none;
}


/* GRID */

.piccolo-grid {
    display: grid;

    gap: .9rem;

    margin-top: 1.2rem;
}

.piccolo-grid-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.piccolo-grid-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.piccolo-grid article,
.piccolo-materials article,
.piccolo-orchestra-grid article {
    padding: 1.1rem;

    border: 1px solid #c9dfdd;
    border-radius: 11px;

    background: #fbfdfc;
}

.piccolo-grid h3,
.piccolo-materials h3 {
    margin: 0 0 .5rem;

    color: #073943;

    font-size: 1rem;
}

.piccolo-grid p,
.piccolo-materials p,
.piccolo-orchestra-grid p {
    margin-bottom: 0;

    line-height: 1.67;
}


/* MATERIALES */

.piccolo-materials {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: .9rem;

    margin-top: 1.2rem;
}


/* DIGITACIÓN ESPECIAL */

.piccolo-special {
    margin-top: 1rem;

    padding: 1.2rem;

    border: 1px solid #b7d9d6;
    border-radius: 11px;

    background: #f0f8f7;
}

.piccolo-special h3 {
    margin: 0 0 .5rem;

    color: #073943;
}

.piccolo-special p {
    line-height: 1.7;
}


/* REGISTRO */

.piccolo-register {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    gap: 1rem;

    align-items: center;

    max-width: 720px;

    margin: 1.4rem auto;

    text-align: center;
}

.piccolo-register > div:not(.piccolo-register-arrow) {
    padding: 1.15rem;

    border: 1px solid #c9dfdd;
    border-radius: 11px;

    background: #f5faf9;
}

.piccolo-register span {
    display: block;

    margin-bottom: .3rem;

    color: #668083;

    font-size: .64rem;
    font-weight: 800;

    letter-spacing: .08em;
}

.piccolo-register strong {
    color: #087f84;

    font-size: 1rem;
}

.piccolo-register-arrow {
    color: #087f84;

    font-size: 1.35rem;
    font-weight: 800;
}


/* ORQUESTA */

.piccolo-orchestra-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: .8rem;

    margin-top: 1.2rem;
}

.piccolo-orchestra-grid strong {
    color: #087f84;
}


/* TABLA */

.piccolo-table-wrap {
    margin-top: 1.25rem;

    overflow-x: auto;

    border: 1px solid #c9dfdd;
    border-radius: 11px;
}

.piccolo-table {
    width: 100%;

    border-collapse: collapse;

    font-size: .78rem;
}

.piccolo-table th {
    padding: .8rem;

    background: #eaf5f3;

    color: #073943;

    text-align: left;
}

.piccolo-table td {
    padding: .78rem .8rem;

    border-top: 1px solid #d7e6e4;

    vertical-align: top;

    line-height: 1.55;
}


/* CONCLUSIÓN */

.piccolo-conclusion {
    padding: 1.3rem;

    border: 1px solid #c9dfdd;
    border-radius: 13px;

    background: #f8fbfa;
}


/* FUENTES */

.piccolo-sources {
    margin-top: 2.8rem;

    padding: 1.3rem;

    border: 1px solid #c9dfdd;
    border-radius: 13px;

    background: #f8fbfa;
}

.piccolo-source-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: .75rem;

    margin-top: 1rem;
}

.piccolo-source-grid a {
    display: flex;

    flex-direction: column;

    gap: .25rem;

    padding: .85rem 1rem;

    border: 1px solid #cfe1df;
    border-radius: 9px;

    background: #fff;

    color: #16464c;

    text-decoration: none;
}

.piccolo-source-grid span {
    color: #087f84;

    font-size: .7rem;
}


/* RELACIONADO */

.piccolo-related {
    margin-top: 2rem;

    padding: 1.3rem;

    border-left: 4px solid #087f84;
    border-radius: 9px;

    background: #edf8f6;
}

.piccolo-related > span {
    display: block;

    margin-bottom: .35rem;

    color: #087f84;

    font-size: .64rem;
    font-weight: 800;

    letter-spacing: .1em;
}

.piccolo-related p {
    line-height: 1.65;
}

.piccolo-related a {
    color: #08777c;

    font-weight: 800;

    text-decoration: none;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .piccolo-facts,
    .piccolo-orchestra-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .piccolo-history-gallery,
    .piccolo-grid-3,
    .piccolo-materials {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .piccolo-page {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .piccolo-hero {
        padding: 1.2rem 1rem;
    }

    .piccolo-timeline,
    .piccolo-grid-2,
    .piccolo-source-grid,
    .piccolo-facts,
    .piccolo-orchestra-grid {
        grid-template-columns: 1fr;
    }

    .piccolo-register {
        grid-template-columns: 1fr;
    }

    .piccolo-register-arrow {
        transform: rotate(90deg);
    }

}

/* ==========================================================
   154-A · IMAGEN HISTORICA PEQUENA EN CABECERA PICCOLO
   ========================================================== */

.piccolo-hero-image {
    float: right;

    width: 180px;
    max-width: 28%;

    margin:
        .1rem
        0
        1rem
        1.4rem;

    padding: .55rem;

    border: 1px solid #cbdedc;
    border-radius: 10px;

    background: #fff;
}

.piccolo-hero-image img {
    display: block;

    width: 100%;
    height: 150px;

    object-fit: contain;
}

.piccolo-hero::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 650px) {

    .piccolo-hero-image {
        float: none;

        width: 150px;
        max-width: 100%;

        margin:
            .5rem
            auto
            1rem;
    }

    .piccolo-hero-image img {
        height: 125px;
    }

}

/* ==========================================================
   154-D · PICCOLO HORIZONTAL
   La fotografía original es vertical.
   Se gira visualmente sin alterar el archivo fuente.
   ========================================================== */

.piccolo-hero-image {
    float: none !important;

    width: 100% !important;
    max-width: none !important;

    height: 235px;

    margin:
        .8rem
        0
        1.15rem !important;

    padding: 0;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #cbdedc;
    border-radius: 10px;

    background: #f4f7f6;
}

.piccolo-hero-image img {
    display: block;

    /*
       La fotografía fuente mide más de alto que de ancho.
       Después de rotarla, su altura pasa a controlar el
       ancho visible del instrumento.
    */

    width: auto !important;
    height: min(92vw, 980px) !important;
    max-width: none !important;

    object-fit: contain;

    transform: rotate(270deg);

    transform-origin: center center;
}


/* Escritorio grande */

@media (min-width: 900px) {

    .piccolo-hero-image {
        height: 245px;
    }

    .piccolo-hero-image img {
        height: 960px !important;
    }

}


/* Tablet */

@media (max-width: 899px) {

    .piccolo-hero-image {
        height: 210px;
    }

    .piccolo-hero-image img {
        height: 82vw !important;
    }

}


/* Móvil */

@media (max-width: 650px) {

    .piccolo-hero-image {
        width: 100% !important;

        height: 165px;

        margin:
            .6rem
            0
            1rem !important;
    }

    .piccolo-hero-image img {
        height: 88vw !important;
    }

}
