/**
 * Free Radio Italia - replica moderna del template BLACK_LernVid.com.
 * Joomla 5 child template: nessuna dipendenza dal CSS o dal JavaScript legacy.
 */

@font-face {
    font-family: "Ravie FRI";
    src: url("../fonts/ravie.woff") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --fri-bg: #000;
    --fri-panel: #111;
    --fri-text: #aaa;
    --fri-border-light: #333;
    --fri-primary: #f212a8;
    --fri-link: #ff90ff;
    --fri-accent: #7709ff;
}

.cassiopeia-fri,
.cassiopeia-fri * {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.cassiopeia-fri {
    min-height: 100%;
    margin: 0;
    padding: 0;
    color: var(--fri-text);
    background: var(--fri-bg) url("../images/bg.gif") repeat center top;
    font-family: Verdana, "Lucida Grande", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.cassiopeia-fri a {
    color: var(--fri-link);
    text-decoration: none;
}

.cassiopeia-fri a:hover,
.cassiopeia-fri a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.cassiopeia-fri img,
.cassiopeia-fri iframe,
.cassiopeia-fri video {
    max-width: 100%;
}

.fri-skip-link {
    position: fixed;
    inset-block-start: -100px;
    inset-inline-start: 1rem;
    z-index: 10000;
    padding: .65rem 1rem;
    color: #fff;
    background: #000;
    border: 1px solid var(--fri-primary);
}

.fri-skip-link:focus {
    inset-block-start: 1rem;
}

.fri-shell {
    width: min(100%, 1180px);
    min-width: 260px;
    margin-inline: auto;
    overflow: hidden;
    background: #0e0e0e url("../images/wrapper.gif") repeat-y left top;
    box-shadow: 0 0 24px rgb(0 0 0 / 70%);
}

/* Header */
.fri-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 180px;
    margin-top: 10px;
    overflow: hidden;
    background: #111 url("../images/header.png") repeat-x left top;
}

.fri-brand {
    display: block;
    flex: 0 1 600px;
    margin-inline-start: 12px;
}

.fri-brand img {
    display: block;
    width: 562px;
    height: 150px;
    object-fit: contain;
    object-position: left top;
}

.fri-flash {
    flex: 1 1 auto;
    min-width: 0;
    text-align: end;
}

/* Menu principale */
.fri-navigation {
    min-height: 50px;
    margin: 0;
    padding: 0 12px;
    background: #090909 url("../images/oben.gif") repeat-x center top;
}

.fri-menu-toggle {
    display: none;
}

.fri-navigation ul,
.fri-navigation ul.mod-menu,
.fri-navigation ul.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fri-navigation li {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    border-inline-end: 1px solid #222;
}

.fri-navigation li > a,
.fri-navigation li > span {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 20px;
    color: var(--fri-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.fri-navigation li.current > a,
.fri-navigation li.active > a,
.fri-navigation li > a:hover,
.fri-navigation li > a:focus-visible {
    color: #fff;
    background: rgb(119 9 255 / 22%) url("../images/nav.png") repeat-x center;
    text-decoration: none;
}

/* Breadcrumb e ricerca */
.fri-utility {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 40px;
    margin-bottom: 7px;
    background: #000 url("../images/content_up_outer.gif") repeat-x left top;
}

.fri-breadcrumbs {
    min-width: 0;
    max-width: calc(100% - 230px);
    min-height: 40px;
    margin-inline-start: 35px;
    padding: 0 30px;
    overflow: hidden;
    color: var(--fri-primary);
    background: #000 url("../images/breadcrumb_l.gif") no-repeat left top;
    font-size: 11px;
    font-variant: small-caps;
    line-height: 40px;
    white-space: nowrap;
}

.fri-breadcrumbs ol,
.fri-breadcrumbs ul,
.fri-breadcrumbs .breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    list-style: none;
}

.fri-breadcrumbs li {
    margin: 0;
    padding: 0;
    color: inherit;
}

.fri-breadcrumbs a {
    color: var(--fri-primary);
}

.fri-search {
    flex: 0 0 230px;
    min-height: 40px;
    padding: 9px 12px 0 30px;
    background: url("../images/searchbox.gif") no-repeat left top;
}

.fri-search form {
    display: flex;
    align-items: center;
    margin: 0;
}

.fri-search input[type="search"],
.fri-search input[type="text"] {
    width: 100%;
    height: 23px;
    padding: 2px 8px;
    color: #bbb;
    background: #1f011f;
    border: 1px solid #333;
    border-color: #111 #333 #333 #111;
    border-radius: 0;
}

.fri-search button {
    min-height: 23px;
    color: #ddd;
    background: #171717;
    border: 1px solid #333;
}

/* Contenuto e colonne */
.fri-top,
.fri-banner,
.fri-supporters,
.fri-modules > .moduletable {
    color: var(--fri-text);
    background: var(--fri-panel) url("../images/user_bg.gif") repeat-x left top;
    border: 1px solid;
    border-color: var(--fri-border-light) #222 #222 var(--fri-border-light);
    border-radius: 6px;
}

.fri-top {
    width: 98%;
    margin: 8px 1% 10px;
}

.fri-top .moduletable,
.fri-banner .moduletable,
.fri-supporters .moduletable {
    margin: 0;
}

.fri-top h3,
.fri-banner h3,
.fri-supporters h3,
.fri-modules h3 {
    min-height: 30px;
    margin: 0 0 10px;
    padding: 5px 12px 4px 35px;
    color: var(--fri-accent);
    background: #151515 url("../images/user_h3.gif") no-repeat left top;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.fri-top .moduletable > :not(h3),
.fri-banner .moduletable > :not(h3),
.fri-supporters .moduletable > :not(h3),
.fri-modules .moduletable > :not(h3) {
    margin-inline: 12px;
}

.fri-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 5px 10px 20px;
}

.fri-layout-left .fri-main-grid {
    grid-template-columns: 220px minmax(0, 1fr);
}

.fri-layout-right .fri-main-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.fri-layout-both .fri-main-grid {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
}

.fri-sidebar {
    width: 220px;
    min-width: 0;
    overflow: hidden;
}

.fri-sidebar .moduletable {
    width: 220px;
    margin: 0 0 7px;
    padding: 0 7px 20px;
    overflow: hidden;
    color: var(--fri-text);
    background: linear-gradient(135deg, #242424 0, #101010 35px, #090909 100%);
    border: 1px solid #2b2b2b;
    border-radius: 5px;
    box-shadow: inset 0 0 24px rgb(255 255 255 / 3%);
}

.fri-sidebar .moduletable > h3 {
    margin: 0 -7px 12px;
    padding: 10px 8px 5px;
    color: var(--fri-accent);
    font-family: "Ravie FRI", fantasy;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.fri-sidebar ul,
.fri-sidebar ul.mod-menu,
.fri-sidebar ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fri-sidebar li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fri-sidebar li > a {
    display: block;
    min-height: 32px;
    margin: 2px 0;
    padding: 8px 10px 6px 20px;
    overflow: hidden;
    color: #fff;
    background: url("../images/menu.png") no-repeat left top / 100% 36px;
    font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fri-sidebar li.current > a,
.fri-sidebar li.active > a,
.fri-sidebar li > a:hover,
.fri-sidebar li > a:focus-visible {
    color: var(--fri-primary);
    background-image: url("../images/menu_hover.png");
    text-decoration: none;
}

.fri-component {
    min-width: 0;
    min-height: 400px;
    padding: 25px 3% 30px;
    overflow: hidden;
    color: var(--fri-text);
    background: #000;
    border: 1px solid #131313;
}

.fri-component h1,
.fri-component h2,
.fri-component h3,
.fri-component h4,
.fri-component h5,
.fri-component h6 {
    color: var(--fri-accent);
    font-weight: 400;
    text-shadow: 1px 1px 5px #000;
}

.fri-component .page-header h1,
.fri-component .page-header h2,
.fri-component .item-title {
    font-family: "Ravie FRI", fantasy;
}

.fri-component table {
    max-width: 100%;
    color: inherit;
}

.fri-component input,
.fri-component select,
.fri-component textarea,
.fri-component button {
    max-width: 100%;
}

.fri-component input,
.fri-component select,
.fri-component textarea {
    color: #ddd;
    background: #111;
    border-color: #333;
}

/* Moduli inferiori */
.fri-banner,
.fri-supporters {
    width: 92%;
    min-height: 100px;
    margin: 20px 4%;
    overflow: hidden;
    text-align: center;
    border-radius: 12px;
}

.fri-banner {
    min-height: 180px;
}

.fri-modules {
    display: grid;
    gap: 1%;
    width: 98%;
    margin: 5px 1%;
}

.fri-modules-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10%;
    width: 92%;
    margin: 20px 4%;
}

.fri-modules-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fri-modules > .moduletable {
    min-width: 0;
    min-height: 100px;
    overflow: hidden;
}

/* Footer */
.fri-footer {
    position: relative;
    clear: both;
    min-height: 100px;
    padding: 12px 50px 20px;
    overflow: hidden;
    color: #555;
    background: #000 url("../images/footer.jpg") repeat-x left top;
    border-top: 1px solid #272727;
    font-size: 10px;
    text-align: center;
}

.fri-copyright {
    margin: 0;
    padding: 5px 20px;
    color: #555;
}

.fri-gotop {
    position: absolute;
    inset-inline-end: 8px;
    inset-block-end: 8px;
    display: block;
    width: 40px;
    height: 30px;
    background: url("../images/gotop.png") no-repeat center;
}

@media (max-width: 900px) {
    .fri-header {
        height: auto;
        min-height: 150px;
    }

    .fri-layout-left .fri-main-grid,
    .fri-layout-right .fri-main-grid,
    .fri-layout-both .fri-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fri-component {
        order: 1;
    }

    .fri-sidebar-left {
        order: 2;
    }

    .fri-sidebar-right {
        order: 3;
    }

    .fri-sidebar,
    .fri-sidebar .moduletable {
        width: 100%;
    }

    .fri-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fri-sidebar .moduletable {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    body.cassiopeia-fri {
        font-size: 15px;
        line-height: 1.6;
    }

    .fri-shell {
        width: 100%;
    }

    .fri-header {
        display: block;
        min-height: 120px;
        margin-top: 0;
    }

    .fri-brand {
        margin: 0;
        padding: 8px;
    }

    .fri-brand img {
        width: min(100%, 562px);
        height: auto;
    }

    .fri-navigation {
        padding: 0;
    }

    .fri-menu-enhanced .fri-menu-toggle {
        display: flex;
        width: 100%;
        min-height: 50px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        color: #fff;
        background: rgba(0, 0, 0, .82);
        border: 0;
        border-bottom: 1px solid #292929;
        font: inherit;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .fri-menu-toggle-icon {
        display: grid;
        gap: 5px;
        width: 26px;
    }

    .fri-menu-toggle-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--fri-primary);
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

    .fri-menu-toggle[aria-expanded="true"] .fri-menu-toggle-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .fri-menu-toggle[aria-expanded="true"] .fri-menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .fri-menu-toggle[aria-expanded="true"] .fri-menu-toggle-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .fri-menu-enhanced .fri-menu-panel:not(.is-open) {
        display: none;
    }

    .fri-menu-panel.is-open {
        border-bottom: 1px solid #292929;
    }

    .fri-navigation ul,
    .fri-navigation ul.mod-menu,
    .fri-navigation ul.menu {
        display: block;
    }

    .fri-navigation li > a,
    .fri-navigation li > span {
        min-height: 44px;
        padding: 10px 16px;
    }

    .fri-utility {
        display: block;
    }

    .fri-breadcrumbs {
        max-width: 100%;
        margin-inline-start: 0;
    }

    .fri-search {
        width: 100%;
        min-height: 40px;
    }

    .fri-main-grid {
        gap: 10px;
        padding: 8px 8px 18px;
    }

    .fri-component {
        order: 2;
        min-height: 0;
        padding: 18px 14px 24px;
    }

    .fri-sidebar-left {
        order: 1;
    }

    .fri-sidebar-right {
        order: 3;
    }

    .fri-component,
    .fri-component p,
    .fri-component a,
    .fri-component td,
    .fri-component th {
        overflow-wrap: anywhere;
    }

    .fri-component table {
        display: block;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .fri-component table th,
    .fri-component table td {
        min-width: 8rem;
        white-space: nowrap;
    }

    .fri-component input[type="text"],
    .fri-component input[type="email"],
    .fri-component input[type="tel"],
    .fri-component input[type="password"],
    .fri-component input[type="search"],
    .fri-component select,
    .fri-component textarea {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .fri-component button,
    .fri-component input[type="submit"] {
        min-height: 44px;
    }

    .fri-sidebar {
        display: block;
    }

    .fri-sidebar .moduletable {
        margin-bottom: 10px;
    }

    .fri-sidebar li > a {
        min-height: 44px;
        padding-block: 11px;
        white-space: normal;
    }

    .fri-modules-two,
    .fri-modules-three {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .fri-banner,
    .fri-supporters,
    .fri-modules-two {
        width: 96%;
        margin-inline: 2%;
    }

    .fri-footer {
        min-height: 80px;
        padding: 16px 44px 18px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

