/* =====================================================
   PAGINA LOQUIS — RACCONTI DI VIAGGIO
   Motoclub Guzzisti dell'Etna
   Foglio dedicato alla pagina.
   Mantiene invariati HTML, player HLS e collegamenti esterni.
   Identità visiva coordinata con Storia, Statuto e Contatti.
===================================================== */
/* =====================================================
   PAGINA E SUPERFICIE EDITORIALE
===================================================== */
.loquis-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: calc(var(--header-height) + 48px) 20px 76px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(179, 0, 0, 0.11) 0%,
            rgba(179, 0, 0, 0.025) 34%,
            transparent 62%
        ),
        #101010;
}
.loquis-content {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(25px, 3.2vw, 44px);
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 2px solid #590000;
    border-radius: 18px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(179, 0, 0, 0.075) 0%,
            transparent 42%
        ),
        linear-gradient(145deg, #242424 0%, #191919 45%, #111111 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        inset 0 -18px 28px rgba(0, 0, 0, 0.20),
        0 18px 42px rgba(0, 0, 0, 0.40);
    text-align: center;
}
.loquis-content::before {
    position: absolute;
    top: 0;
    right: 8%;
    left: 8%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #720000 18%,
        var(--rosso) 50%,
        #720000 82%,
        transparent
    );
    content: "";
    pointer-events: none;
}
/* =====================================================
   TITOLO PRINCIPALE E LINEA DECORATIVA
===================================================== */
.loquis-content > h1 {
    display: block;
    width: 100%;
    margin: 0 0 15px;
    color: var(--bianco);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(31px, 3.3vw, 43px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.loquis-content > h1 span {
    color: var(--rosso);
}
.loquis-content .title-line {
    width: 76px;
    height: 3px;
    margin: 0 auto 25px;
    border-radius: 3px;
    background: linear-gradient(90deg, #720000, var(--rosso), #720000);
    box-shadow: 0 0 11px rgba(179, 0, 0, 0.20);
}
/* =====================================================
   INTRODUZIONE
===================================================== */
.loquis-intro {
    max-width: 760px;
    margin: 0 auto 38px;
}
.loquis-intro h2 {
    margin: 0 0 9px;
    color: #eeeeee;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.7px;
}
.loquis-intro p {
    max-width: 690px;
    margin: 0 auto;
    color: #c6c6c6;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}
/* =====================================================
   ELENCO RACCONTI — TRE CARD PER RIGA SU DESKTOP
===================================================== */
.loquis-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    width: 100%;
}
/* =====================================================
   CARD RACCONTO
===================================================== */
.loquis-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-top: 2px solid #720000;
    border-bottom: 2px solid rgba(89, 0, 0, 0.95);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 48%),
        linear-gradient(145deg, #202020 0%, #171717 66%, #131313 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 9px 24px rgba(0, 0, 0, 0.25);
    text-align: left;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}
.loquis-card:hover {
    transform: translateY(-2px);
    border-color: rgba(179, 0, 0, 0.42);
    border-top-color: var(--rosso);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 14px 30px rgba(0, 0, 0, 0.34);
}
/* =====================================================
   ICONA AUDIO
===================================================== */
.loquis-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid rgba(179, 0, 0, 0.55);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(179, 0, 0, 0.18), rgba(80, 0, 0, 0.12));
    color: var(--rosso);
    font-size: 19px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.22);
}
/* =====================================================
   TESTI DEL RACCONTO
===================================================== */
.loquis-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}
.loquis-info h2 {
    margin: 0 0 10px;
    color: #f0f0f0;
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.25px;
    overflow-wrap: anywhere;
}
.loquis-info p {
    max-width: 100%;
    margin: 0 0 16px;
    color: #c3c3c3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}
/* =====================================================
   PLAYER AUDIO NATIVO / HLS
===================================================== */
.loquis-player {
    display: block;
    width: 100%;
    min-width: 0;
    margin: auto 0 13px;
    padding-top: 3px;
}
.loquis-player audio {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 42px;
    color-scheme: dark;
}
/* =====================================================
   COLLEGAMENTO A LOQUIS
===================================================== */
.loquis-source {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    margin: 3px auto 0;
    padding: 9px 13px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.14);
    color: #d1d1d1;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.35px;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}
.loquis-source:hover {
    border-color: var(--rosso);
    background: rgba(179, 0, 0, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}
.loquis-source i {
    flex: 0 0 auto;
    color: var(--rosso);
    font-size: 11px;
}
.loquis-source:focus-visible {
    outline: 2px solid var(--rosso);
    outline-offset: 3px;
}
/* =====================================================
   TABLET E DESKTOP STRETTO
   Due card per riga per mantenere leggibili i player
===================================================== */
@media (min-width: 769px) and (max-width: 1100px) {
    .loquis-page {
        padding-right: 16px;
        padding-left: 16px;
    }
    .loquis-content {
        padding: 30px 24px;
    }
    .loquis-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 19px;
    }
    .loquis-card {
        padding: 21px;
    }
}
/* =====================================================
   MOBILE — UNA CARD PER RIGA
   Icona a sinistra, contenuto a destra
===================================================== */
@media (max-width: 768px) {
    .loquis-page {
        padding: 130px 12px 42px;
    }
    .loquis-content {
        padding: 25px 17px 22px;
        border-radius: 14px;
    }
    .loquis-content > h1 {
        margin-bottom: 12px;
        font-size: clamp(25px, 6vw, 32px);
        letter-spacing: 0.9px;
    }
    .loquis-content .title-line {
        width: 62px;
        margin-bottom: 21px;
    }
    .loquis-intro {
        margin-bottom: 27px;
    }
    .loquis-intro h2 {
        margin-bottom: 8px;
        font-size: 20px;
    }
    .loquis-intro p {
        font-size: 13px;
        line-height: 1.65;
    }
    .loquis-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .loquis-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        padding: 17px 16px;
        border-radius: 10px;
    }
    .loquis-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin-top: 2px;
        font-size: 16px;
    }
    .loquis-info h2 {
        margin-bottom: 7px;
        font-size: 16px;
        line-height: 1.35;
    }
    .loquis-info p {
        margin-bottom: 10px;
        font-size: 12.5px;
        line-height: 1.55;
    }
    .loquis-player {
        margin: 0 0 10px;
        padding-top: 0;
    }
    .loquis-player audio {
        height: 40px;
    }
    .loquis-source {
        align-self: flex-start;
        justify-content: flex-start;
        gap: 6px;
        min-height: 34px;
        margin: 0;
        padding: 7px 9px;
        font-size: 10px;
        text-align: left;
    }
    .loquis-source i {
        font-size: 10px;
    }
}
/* =====================================================
   SMARTPHONE PICCOLO
===================================================== */
@media (max-width: 480px) {
    .loquis-page {
        padding: 118px 9px 30px;
    }
    .loquis-content {
        padding: 22px 12px 18px;
    }
    .loquis-content > h1 {
        font-size: 24px;
        letter-spacing: 0.55px;
    }
    .loquis-intro h2 {
        font-size: 18px;
    }
    .loquis-intro p {
        font-size: 12.5px;
    }
    .loquis-list {
        gap: 13px;
    }
    .loquis-card {
        gap: 11px;
        padding: 14px 11px;
    }
    .loquis-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .loquis-info h2 {
        font-size: 14px;
    }
    .loquis-info p {
        font-size: 12px;
    }
    .loquis-player audio {
        height: 38px;
    }
    .loquis-source {
        gap: 5px;
        padding: 7px 8px;
        font-size: 9.5px;
    }
}
/* =====================================================
   ACCESSIBILITÀ
===================================================== */
@media (prefers-reduced-motion: reduce) {
    .loquis-card,
    .loquis-source {
        transition: none;
    }
    .loquis-card:hover,
    .loquis-source:hover {
        transform: none;
    }
}