:root{
    --bg-dark:#1E1E2F;
    --surface:#2A2A44;
    --primary:#22D3EE;
    --secondary:#FFC107;
    --accent:#10B981;
    --warning:#FF9800;
    --panel-light:#FFF3CD;
    --text-light:#F8FAFC;
    --text-muted:#94A3B8;
    --text-dark:#111827;
    --border:#33334D;
}

/* ===== Reset base ===== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:"Inter",sans-serif;
    background:var(--bg-dark);
    color:var(--text-light);
    line-height:1.6;
}

/* ===== Header / Navbar ===== */
header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1rem 2rem;
    background-color:var(--bg-dark);
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:2px solid var(--primary);
}
.logo img{
    height:70px;
    width:70px;
    display:block;
    border-radius:10%;
}
.menu-icon{
    font-size:1.8rem;
    cursor:pointer;
    color:var(--text-light);
}
@media (min-width:769px){
    .mobile-only{ display:none; }
}
nav ul{
    display:flex;
    gap:1.5rem;
    list-style:none;
}
nav ul li{ display:flex; align-items:center; }
nav ul li a{
    text-decoration:none;
    color:var(--text-light);
    font-weight:bold;
    transition:color 0.2s;
}
nav ul li a:hover{ color:var(--primary); }
@media (min-width:769px){
    header{ justify-content:flex-start; gap:1.5rem; }
    .menu-icon{ order:1; }
    .logo{ order:2; }
    nav{ order:3; flex-grow:1; }
    nav ul{ justify-content:flex-end; }
}
@media (max-width:768px){
    header{ justify-content:space-between; }
    .menu-icon{ order:1; }
    .logo{
        order:2;
        position:absolute;
        left:50%;
        transform:translateX(-50%);
    }
    nav{ order:3; flex-grow:1; }
    nav ul{
        display:none;
        flex-direction:column;
        background:var(--bg-dark);
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        padding:1rem 5%;
        border-top:2px solid var(--primary);
    }
    nav ul.active{ display:flex; }
}

/* ===== Social icons ===== */
.social-icons{
    display:flex;
    align-items:center;
    gap:0.8rem;
    padding-left:1rem;
    list-style:none;
    margin-left:1rem;
}
.social-icons img{
    width:24px;
    height:24px;
    object-fit:contain;
    vertical-align:middle;
    transition:transform 0.2s ease;
}
.social-icons img:hover{ transform:scale(1.15); }

/* ===== Hero ===== */
.hero{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    padding:5rem 5%;
    gap:2rem;
    background:var(--bg-dark);
    text-align:center;
}
.hero-text{ flex:1 1 300px; }
.hero h1{
    font-family:"Bebas Neue",cursive;
    font-size:4rem;
    color:var(--primary);
    margin-bottom:0.5rem;
}
.hero p{ font-size:1.3rem; margin-bottom:1.5rem; }
.hero-image{ flex:1 1 300px; min-width:280px; }
.hero-image img{
    width:100%;
    max-width:400px;
    border-radius:15px;
    box-shadow:0 0 15px var(--primary);
}
@media (max-width:600px){
    .hero h1{ font-size:2.5rem; }
    .hero p{ font-size:1rem; }
    .hero-image img{ max-width:280px; }
}

/* ===== Sezioni ===== */
section{
    padding:4rem 5%;
    max-width:1100px; margin:0 auto;
}

/* Frequenze */
.frequenze {
    background:var(--secondary);
    color:var(--text-dark);
    padding:3rem 5%;
    border-radius:10px;
    margin:0 auto 3rem auto;
    max-width:1000px;
    text-align:center;
    box-shadow:0 0 20px rgba(255,193,7,0.6);
}
.frequenze h2{
    font-family:'Bebas Neue',cursive;
    font-size:2.5rem;
    margin-bottom:1rem;
    color:#0F172A;
}
.frequenze .valori{
    font-size:1.8rem;
    font-weight:900;
    letter-spacing:1px;
    margin-bottom:1rem;
}
.frequenze p{
    font-weight:600;
    font-size:1rem;
    color:#1F2937;
}

/* Cosa Trasmettiamo */
.section-light{
    width:90%;
    max-width:500px;
    margin:0 auto 3rem auto;
    padding:2rem;
    background: var(--secondary);
    color: var(--text-dark);
    border-radius:10px;
    box-shadow:0 0 20px #f0d700cc;
    overflow:hidden;
    text-align:center;
}
.section-light h2{
    font-family:'Bebas Neue',cursive;
    font-size:2.5rem;
    margin-bottom:1.5rem;
    color:var(--text-dark);
}
.genres-carousel{
    width:100%;
    overflow:hidden;
    position:relative;
}
.carousel-track{
    display:flex;
    gap:50px;
    transform:translateX(0);
}
.genre-card{
    min-width:80%;
    max-width:400px;
    flex-shrink:0;
    background-color:#ff3c38;
    padding:1.5rem;
    border-radius:10px;
    text-align:center;
    font-size:1.2rem;
    color:#fff;
}
@media (max-width:500px){
    .genre-card{
        min-width:100%;
        font-size:1rem;
    }
}

/* App Section */
.app-section{
    background:var(--bg-dark);
    padding:3rem 5%;
    text-align:center;
    margin-bottom:2rem;
}
.store-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1rem;
    max-width:520px;
    margin:1rem auto 0 auto;
    align-items:center;
    justify-items:center;
}
#ps-badge, #as-badge{ height:50px; width:200px; margin:10px; }
@media (max-width:500px){
    .store-buttons{ grid-template-columns:1fr; }
    #ps-badge, #as-badge{ width:160px; height:auto; }
}

/* Chi siamo */
.about-text{
    max-width:90%;
    margin:2rem auto 0 auto;
    font-weight:600;
    font-size:1.1rem;
    line-height:1.5;
    text-align:center;
    user-select:none;
}
@media (max-width:500px){
    .about-text{ font-size:1rem; }
}

/* Footer */
footer{
    background:#141422;
    text-align:center;
    padding:1.2rem 1rem;
    font-size:0.9rem;
    color:var(--text-light);
    border-top:2px solid var(--primary);
}

/* ===== SEZIONE HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 8%;
    flex-wrap: wrap; /* così i contenuti vanno sotto su mobile */
}

.hero-text {
    flex: 1;
    min-width: 250px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
}

/* ===== SEZIONE TWITCH ===== */
.section-dark {
    background: var(--bg-dark);
    text-align: center;
    padding: 4rem 2rem;
}

.twitch-title {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.twitch-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.twitch-wrapper iframe {
    width: 80%;
    max-width: 900px;
    height: 500px;
    border-radius: 12px;
}

/* ===== APP ALTERNATIVA ===== */
.app-alternativa {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.app-alternativa h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.app-alternativa p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-buttons img {
    height: 60px;
    transition: transform 0.3s ease;
}

.store-buttons img:hover {
    transform: scale(1.05);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .twitch-wrapper iframe {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .twitch-wrapper iframe {
        width: 100%;
        height: 300px;
    }
    .store-buttons img {
        height: 50px;
    }
}

/* ===== Programmi Wrapper ===== */
.programmi-wrapper {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-dark);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.programmi-wrapper h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.programmi-wrapper p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    padding: 0 1rem;
}

/* Pulsante responsive */
.programmi-btn {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--secondary);
    z-index: 1;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.5);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.programmi-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.7);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
    .programmi-wrapper h1 {
        font-size: 2.3rem;
    }
    .programmi-wrapper p {
        font-size: 1rem;
    }
    .programmi-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .programmi-wrapper {
        padding: 3rem 1rem;
    }
    .programmi-wrapper h1 {
        font-size: 2rem;
    }
    .programmi-wrapper p {
        font-size: 0.95rem;
    }
    .programmi-btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        width: 100%;
        max-width: 300px;
    }
}

/* ===== CONTATTI ===== */
.contatti-wrapper {
    text-align: center;
    padding: 4rem 2rem;
}

.contatti-wrapper h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.contatti-info p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.contatti-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.contatti-info a:hover {
    text-decoration: underline;
}

.contatti-social h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 600px) {
    .contatti-info p {
        font-size: 1rem;
    }
    .contatti-wrapper h2 {
        font-size: 2rem;
    }
    .social-links img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 400px) {
    .contatti-wrapper {
        padding: 2rem 1rem;
    }
    .social-links img {
        width: 35px;
        height: 35px;
    }
}