/* ===========================================================
   RADIO PARROCCHIALE
   style.css
   =========================================================== */

*{
    box-sizing:border-box;
}

body{

    margin:0;

    font-family:Arial, Helvetica, sans-serif;

    background:#f6f6f6;

    color:#333;

}

/* ================= HEADER ================= */

header{

    background:#7f1d1d;

    color:white;

    padding:18px;

    box-shadow:0 2px 8px rgba(0,0,0,.2);

}

.header-content{

    max-width:1100px;

    margin:auto;

    display:flex;

    align-items:center;

    gap:20px;

}

.logo img{

    height:72px;

}

.titles h1{

    margin:0;

    font-size:30px;

}

.titles h2{

    margin-top:6px;

    font-size:18px;

    font-weight:normal;

}

/* ================= CONTENUTO ================= */

main{

    max-width:1100px;

    margin:auto;

    padding:25px;

}

/* ================= HERO ================= */

#hero{

    background:white;

    border-radius:10px;

    padding:35px;

    text-align:center;

    box-shadow:0 3px 12px rgba(0,0,0,.12);

}

#onair{

    font-size:24px;

    margin-bottom:25px;

    font-weight:bold;

}

/* ================= LED ================= */

#onairLed{

    display:inline-block;

    width:16px;

    height:16px;

    border-radius:50%;

    margin-right:10px;

    vertical-align:middle;

}

.online{

    background:#d60000;

    animation:pulse 1.2s infinite;

}

.offline{

    background:#999;

}

@keyframes pulse{

    0%{

        opacity:1;

        transform:scale(1);

    }

    50%{

        opacity:.35;

        transform:scale(.85);

    }

    100%{

        opacity:1;

        transform:scale(1);

    }

}

/* ================= BOTTONE PRINCIPALE ================= */

#listenButton{

    width:100%;

    max-width:520px;

    height:95px;

    border:none;

    border-radius:12px;

    background:#15803d;

    color:white;

    font-size:34px;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

}

#listenButton:hover{

    background:#166534;

}

#listenButton:disabled{

    background:#999;

    cursor:not-allowed;

}

/* ================= PROGRAMMA ================= */

#currentProgram{

    margin-top:20px;

    font-size:22px;

    color:#444;

}

/* ================= PLAYER ================= */

#playerArea{

    margin-top:35px;

    background:white;

    border-radius:10px;

    padding:20px;

    box-shadow:0 2px 10px rgba(0,0,0,.12);

}

audio{

    width:100%;

}

#nowPlaying{

    margin-top:15px;

    text-align:center;

    font-size:18px;

    color:#555;

}

/* ================= TITOLI ================= */

.sectionTitle{

    margin-top:45px;

    color:#7f1d1d;

    border-bottom:2px solid #ddd;

    padding-bottom:8px;

}

/* ================= CANALI ================= */

#channels{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:18px;

    margin-top:20px;

}

.channel{

    background:white;

    border-radius:10px;

    padding:18px;

    box-shadow:0 2px 10px rgba(0,0,0,.12);

    transition:.2s;

}

.channel:hover{

    transform:translateY(-2px);

}

.channel h3{

    margin:0 0 12px 0;

}

.channelStatus{

    font-weight:bold;

    margin-bottom:10px;

}

.channelInfo{

    font-size:15px;

    color:#666;

    margin-bottom:15px;

}

.channel button{

    width:100%;

    height:42px;

    border:none;

    border-radius:8px;

    background:#2563eb;

    color:white;

    cursor:pointer;

    font-size:16px;

}

.channel button:hover{

    background:#1d4ed8;

}

/* ================= TABELLA ================= */

.infoTable{

    width:100%;

    background:white;

    border-collapse:collapse;

    box-shadow:0 2px 10px rgba(0,0,0,.12);

}

.infoTable td{

    padding:12px;

    border-bottom:1px solid #eee;

}

.infoTable td:first-child{

    width:220px;

    font-weight:bold;

    background:#fafafa;

}

/* ================= FOOTER ================= */

footer{

    margin-top:50px;

    padding:30px;

    text-align:center;

    color:#666;

    font-size:14px;

}

/* ================= RESPONSIVE ================= */

@media(max-width:700px){

.header-content{

    flex-direction:column;

    text-align:center;

}

.logo img{

    height:64px;

}

.titles h1{

    font-size:24px;

}

#listenButton{

    height:80px;

    font-size:28px;

}

#hero{

    padding:25px;

}

.sectionTitle{

    text-align:center;

}

.infoTable td:first-child{

    width:140px;

}

}
