*{
    border: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}


.menubar{
    height: 50px;
    margin-top: 7px;
    width: calc(100% - 10px);
    margin-left: 5px;
    border-radius: 1rem;
    z-index: 9999;
    position: fixed;
    /*background: rgba(255, 255, 255, .8);*/
    background: none;
    /*background: rgba(0, 0, 0, 1);*/
    display: flex;
    box-sizing: border-box;
}

.menubar a {
    transition: color 0.3s ease;
}

.menubar.white a {
    color: white;
}

.menubar.black a {
    color: black;
}

.sidenav a {
    color: white !important;
}


.sidenav {
    z-index: 9999;
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.openNavWrite{
    display: none;
}

.openNavWrite span {
    transition: color 0.3s ease;
}

.menubar.white .openNavWrite span {
    color: white !important;
}

.menubar.black .openNavWrite span {
    color: black !important;
}

.menubar img{
    margin-top: 5px;
    margin-left: 10px;
    height: 40px;
}

.menubarcontainer{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    

}

.menubar a{
    font-family: "Space Grotesk", sans-serif;
    opacity: 1;
    line-height: 50px;
    text-decoration: none;
    /*color: black;*/
    color: white;
    margin-left: 10px;
    margin-right: 20px;
}

.menubar a:hover{
    /*color: rgba(0, 0, 0, .5);*/
    color: rgba(230, 230, 230, .5);
}

.sidenav a{
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    /*color: black;*/
    color: white;
    display: block;
    transition: 0.3s;
}

.nav-link.active {
    text-decoration: underline;
}

.nav-link2.active {
    text-decoration: underline;
}

.sidenav a:hover {
    color: rgba(0, 0, 0, .5);
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    left: 25px;
    font-size: 36px;
    margin-right: 50px;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}

@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}

/*  HOME  */
/*#############################################################################*/


.title{
    width: 100%;
    height: 100vh;
    /*background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1)), url(/static/hockey_images/home_images/home_background.png);*/
    background-image: url(/static/hockey_images/home_images/home_background.png);
    background-size: cover;
    background-position: center;

}

.opaco{
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
}

.title_logo img{
    height: 200px;
}

.name{
    width: 100%;
    padding-top: 130px;
    text-align: center;
}

.name h1{
    color: white;
    font-size: 50px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.name h2{
    padding-top: 5px;
    color: white;
    font-size: 20px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.socials{
    padding-top: 15px;
    width: 100%;
    max-height: 48px;
    text-align: center;
}

.socials a{
    display: inline-block;
    text-align: center;
    padding-left: 5px; padding-right: 5px;
    width: 48px;
    height:48px;
}

.socials a:hover{
    opacity: 70%;
}

.socials img{
    transform: translate(0, 50%);
    width: 24px;
    height: 24px;
}

.aboutme{
    padding-top: 10px;
    width: 100%;
    text-align: center;
}

.aboutme button{
    text-decoration: none;
    color:white;
    background-color: rgb(160, 0, 0);
    font-size: 20px;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding: 15px;
    border-radius: 1rem;
    pointer-events: unset;
}

.aboutme button:hover{
    color: white;
    background-color: rgb(100, 0, 0);
    cursor: pointer;
}

.aboutme button:active{
    color: white;
    background-color: rgb(100, 0, 0);
}






@media screen and (width <= 650px){
    .menubar {
        width: calc(100% - 10px);
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .menubar img {
        margin-left: 5px;
        height: 35px;
    }
    
    .menubarcontainer{
        display: none;
    }
    .openNavWrite{
        display: flex;
        height: 50px;
        color: rgba(0,0,0,.8);
        width: 100%;
        justify-content: right;
        line-height: 50px;   
    }
    .openNavWrite span{
        font-family: 'League Spartan', sans-serif;
        margin-right: 15px;
        font-size: 24px;
    }
}


/* SPONSOR */
/*#############################################################################*/

.sponsor{
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    height: auto;
    min-height: 30vh;
    padding: 20px 10px;
    box-sizing: border-box;
}

.sponsor-title {
    text-align: center;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-top: 20px; padding-bottom: 20px;
    box-sizing: border-box;
}

.sponsor-title h1 {
    font-size: 2.5em;
}

.sponsor-title span {
    color: rgb(160, 0, 0);
}

.sponsors {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 20px 10px;
}

.sponsors a {
    height: 100%;         
    display: flex;        
    align-items: center;
}

.sponsors a img {
    max-height: 100%;     
    max-width: 200px;     
    width: auto;          
    height: auto;         
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsors a img:hover {
    transform: scale(1.08);
}

@media screen and (max-width: 1024px) {
    .sponsor-title h1 {
        font-size: 2em;
    }
    .sponsors {
        gap: 20px;
        height: auto;
        padding: 10px;
    }
    .sponsors a img {
        max-width: 150px;
        max-height: 80px;
    }
}

@media screen and (max-width: 600px) {
    .sponsor {
        padding: 15px 5px;
    }
    .sponsor-title h1 {
        font-size: 1.5em;
    }
    .sponsors {
        gap: 15px;
        height: auto;
    }
    .sponsors a img {
        max-width: 120px;
        max-height: 60px;
    }
}




/* ABOUT */
/*#############################################################################*/

.about{
    height: 70vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    /* background-image: url(/static/images/about.png);
    background-size: cover;
    background-position: center; */
    background-color: white;
    display: flex;
    box-sizing: border-box;
}

.abouttextfull{
    width: 40%;
    height: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start; /* Cambia align-items a flex-start per allineare a sinistra */
    justify-content: center; /* Aggiungi justify-content per centrare verticalmente il contenuto */
    flex-direction: column; /* Dispone gli elementi in colonna */
    padding-left: 70px; /* Sposta il margine sinistro in padding */
    padding-right: 40px;
    box-sizing: border-box;
}

.abouttextfull h1{
    color: rgb(160, 0, 0);
    font-size: 50px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.abouttextfull p{
    color: black;
    font-size: 20px;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 100;
    font-style:normal;
    margin-top: 20px; /* Aggiunge uno spazio tra l'h1 e il p */
    margin-bottom: 25px;
}

.abouttextfull span{
    /*color: rgb(33, 128, 241);*/
    color: rgb(160, 0, 0);
}

.abouttextfull a{
    cursor: pointer;
    text-decoration: underline;
    color: rgb(160, 0, 0);
}

.propic{
    width: 40%;
    height: 100%;
    padding-left: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.propic img{
    height: 350px;
    border-radius: 2rem;
}

.abouttextfull .btn-about {
    display: inline-block;
    text-decoration: none;
}

.abouttextfull .btn-about button {
    text-decoration: none;
    color: white;
    background-color: rgb(160, 0, 0);
    font-size: 18px;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding: 12px 25px;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.abouttextfull .btn-about button:hover {
    color: white;
    background-color: rgb(100, 0, 0);
}

.abouttextfull .btn-about button:active {
    color: white;
    background-color: rgb(100, 0, 0);
}

/* Tablet landscape and medium screens */
@media screen and (max-width: 1200px) {
    .abouttextfull {
        padding-left: 40px;
        width: 50%;
    }
    .abouttextfull h1 {
        font-size: 40px;
    }
    .abouttextfull p {
        font-size: 24px;
    }
    .propic {
        padding-left: 100px;
    }
    .propic img {
        height: 280px;
    }
}

@media screen and (max-width: 950px) {
    .about {
        height: auto;
        padding: 30px 0;
    }
    .abouttextfull {
        width: 55%;
        padding-left: 30px;
    }
    .propic {
        padding-left: 40px;
    }
    .propic img {
        height: 250px;
    }
}

/* Tablet portrait */
@media screen and (max-width: 768px) {
    .about {
        flex-direction: column;
        height: auto;
        padding: 40px 0;
    }
    .abouttextfull {
        width: 100%;
        padding: 0 20px;
        text-align: center;
        align-items: center;
        margin-bottom: 30px;
    }
    .abouttextfull h1 {
        font-size: 35px;
    }
    .abouttextfull p {
        font-size: 20px;
        margin-bottom: 0;
    }
    .propic {
        width: 100%;
        padding: 0;
        margin: 0 auto;
        text-align: center;
        justify-content: center;
    }
    .propic img {
        height: 240px;
    }
}

@media screen and (max-width: 600px) {
    .title {
        height: fit-content;
        min-height: 100vh;
    }
    .about {
        height: fit-content;
        padding: 30px 0;
    }
    .abouttextfull {
        padding: 0 15px;
        width: 100%;
        margin-bottom: 25px;
    }
    .abouttextfull h1 {
        font-size: 28px;
    }
    .abouttextfull p {
        font-size: 16px;
        margin-bottom: 0;
    }
    .propic {
        padding: 0;
    }
    .propic img {
        height: 200px;
    }
}

@media screen and (width <= 400px){
    .title{
        min-height: 100vh;
        height: fit-content;
    }
    .title h1{
        font-size: 30px;
    }
    .title h2{
        font-size: 15px;
    }
    .about{
        height: fit-content;
        display: flex;
        flex-direction: column;
        padding: 25px 0;
    }
    .abouttextfull{
        padding: 0 15px;
        width: 100%;
        text-align: center;
        align-items: center;
        margin-bottom: 20px;
    }
    .propic{
        width: 100%;
        padding: 0;
        margin: 0 auto;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    .propic img{
        height: 180px;
    }
    .abouttextfull h1{
        font-size: 30px;
    }
    .abouttextfull p{
        font-size: 15px;
        margin: 0;
    }
}



/*  ASTROGALLERY  */
/*#############################################################################*/

.astrogallery{
    height: 50vh;
    background-color: black;
    background-image: url(/static/images/astrogallery2.PNG);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


.blur{
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .5);
}


.astroinfo{
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center; /* Cambia align-items a flex-start per allineare a sinistra */
    justify-content: center; /* Aggiungi justify-content per centrare verticalmente il contenuto */
    flex-direction: column; /* Dispone gli elementi in colonna */
}

.astrotitle{
    width: 100%;
    text-align: center;
}

.astrotitle h1{
    color: white;
    font-size: 50px;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 418;
    font-style: normal;
}

.astrotitle h2{
    padding-top: 5px;
    color: white;
    font-size: 20px;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 418;
    font-style: normal;
}

.astrobutton{
    width: 100%;
    text-align: center;
    padding-top: 15px;
}

.astrobutton button{
    text-decoration: none;
    color: rgb(20, 20, 20);
    background-color: rgb(255,255,255);
    font-size: 15px;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding: 15px;
    border-radius: 1rem;
    pointer-events: unset;
}

.astrobutton button:hover{
    color: rgb(50, 50, 50);
    background-color: rgb(225, 225, 225);
    cursor: pointer;
}

.astrobutton button:active{
    color: rgb(50, 50, 50);
    background-color: rgb(225, 225, 225);
}


@media screen and (width < 500px) {
    .astrotitle h1{
        font-size: 30px;
    }  
    .astroinfo h2{
        font-size: 15px;
    } 
}


/*  EXPERIENCES  */
/*#############################################################################*/


.experiences{
    width: 100%;
    height: fit-content;
    padding-bottom: 100px;
    background-color: white;
}

.exp {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    height: fit-content;
    padding: 60px 20px 80px;
    background-color: white;
    box-sizing: border-box;
}

.exptitle{
    width: 100%;
    text-align: center;
    padding-top: 100px;
}

.exptitle h1{
    color: rgb(160, 0, 0);
    font-size: 50px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

@media screen and (max-width: 768px) {
    .exp {
        padding: 40px 15px 60px;
    }
    .exptitle {
        padding-top: 60px;
    }
    .exptitle h1 {
        font-size: 38px;
    }
}

@media screen and (max-width: 480px) {
    .exp {
        padding: 30px 10px 50px;
    }
    .exptitle {
        padding-top: 40px;
    }
}

.exp-category{
    width: 100%;
    text-align: center;
    padding-top: 10px;
    color: black;
    font-size: 20px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.flashcardcontainer{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

/* Prossime partite: layout orizzontale su desktop, impilate su mobile */
.prossime-container{
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.prossime-container .card{
    flex: 1 1 280px;
    max-width: 360px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card.empty-card{
    background-color: rgba(230,230,230,0.6);
    color: #444;
}

.categoria-label{
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgb(160, 0, 0);
    font-weight: 600;
}

.luogo-label {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-weight: 400;
}

/* Tablet landscape - 3 cards in a row */
@media screen and (max-width: 1200px) and (min-width: 901px) {
    .prossime-container .card {
        flex: 1 1 260px;
        max-width: 340px;
    }
}

/* Tablet portrait - 2 cards per row */
@media screen and (max-width: 900px) and (min-width: 701px) {
    .prossime-container {
        flex-wrap: wrap;
    }
    .prossime-container .card {
        flex: 1 1 calc(50% - 20px);
        max-width: 400px;
    }
}

/* Mobile - stack vertically */
@media screen and (max-width: 700px){
    .prossime-container{
        flex-direction: column;
        align-items: center;
        padding: 10px 5px;
    }

    .prossime-container .card{
        width: 95%;
        max-width: 450px;
    }
    
    .card-logos {
        padding: 15px 10px;
    }
    
    .logo-container {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .prossime-container {
        padding: 5px;
    }
    
    .prossime-container .card {
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
        padding: 10px;
    }
    
    .card-logos {
        padding: 8px;
        gap: 8px;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .vs-text {
        font-size: 10px;
        margin: 0 3px;
    }
    
    .cardtitle {
        padding: 10px 8px;
    }
    
    .cardtitle h1 {
        font-size: 16px;
    }
    
    .cardtitle h2 {
        font-size: 12px;
    }
    
    .categoria-label {
        font-size: 0.8rem;
        margin-top: 5px;
    }
}

.flashcardcontainer p{
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-bottom: 50px;
}

.card{
    width: auto;
    height: auto;
    background-color: rgb(240, 240, 240);
    margin-left: 25px; margin-right: 25px;
    margin-top: 25px; margin-bottom: 25px;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    min-width: 250px;
    padding: 0;
}

.imagecontainer{
    width: calc(100% - 20px);
    height: 130px;
    margin-left: 10px; margin-top: 20px;
    text-align: center
}

.imagecontainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.cardtitle{
    width: 100%;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
}

.cardtitle p{
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.card-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    height: auto;
}

.card-logos span{
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vs-text {
    font-size: 12px;
    color: #666;
    font-weight: bold;
    margin: 0 5px;
}

.cardtitle h1{
    color: black;
    font-size: 25px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cardtitle h2{
    color: black;
    font-size: 15px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 5px 0 0 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card a{
    text-decoration: none;
    width: calc(100% - 20px);
    margin-left: 10px;
}

.card button{
    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    background-color: rgb(20, 20, 20);
    font-family: "Space Grotesk", sans-serif;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    pointer-events: unset;
}

.card button:hover{
    color: rgb(240, 240, 240);
    background-color: rgb(50, 50, 50);
    cursor: pointer;
}

.card button:active{
    color: rgb(240, 240, 240);
    background-color: rgb(50, 50, 50);
}


.div-btn-calendar{
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.btn {
    text-decoration: none;
    color: white;
    background-color: rgb(160, 0, 0);
    font-size: 20px;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding: 15px 30px;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add {
    background-color: rgb(160, 0, 0);
    color: white;
}

.btn-add:hover{
    color: white;
    background-color: rgb(100, 0, 0);
    cursor: pointer;
}

.btn-add:active{
    color: white;
    background-color: rgb(100, 0, 0);
}


/* GALLERIA SECTION */
.galleria-section {
    background-color: rgb(240, 240, 240);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    font-family: "Momo Trust Display", sans-serif;
}

.galleria-title {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.galleria-title h1 {
    color: rgb(160, 0, 0);
    font-size: 50px;
    font-optical-sizing: auto;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.galleria-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.galleria-content p {
    color: #333;
    font-size: 24px;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 300;
    margin: 0;
}

.galleria-content .btn-galleria {
    display: inline-block;
    text-decoration: none;
}

.galleria-content .btn-galleria button {
    text-decoration: none;
    color: white;
    background-color: rgb(160, 0, 0);
    font-size: 20px;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding: 15px 30px;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galleria-content .btn-galleria button:hover {
    color: white;
    background-color: rgb(100, 0, 0);
}

.galleria-content .btn-galleria button:active {
    color: white;
    background-color: rgb(100, 0, 0);
}

@media screen and (max-width: 768px) {
    .galleria-section {
        padding: 60px 15px;
    }
    
    .galleria-title h1 {
        font-size: 38px;
    }
    
    .galleria-content p {
        font-size: 20px;
    }
    
    /* .galleria-content .btn-galleria button {
        font-size: 18px;
        padding: 12px 25px;
    } */
}

@media screen and (max-width: 480px) {
    .galleria-section {
        padding: 50px 10px;
    }
    
    .galleria-title h1 {
        font-size: 30px;
    }
    
    .galleria-content p {
        font-size: 16px;
    }
    
    /* .galleria-content .btn-galleria button {
        font-size: 16px;
        padding: 10px 20px;
    } */
}


/* YOUTUBE SECTION */
.youtube {
    background-color: #f5f5f5;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    font-family: "Momo Trust Display", sans-serif;
}

.youtube-container {
    width: 100%;
    max-width: 900px;
}

.youtube-title {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.youtube-title h1 {
    color: rgb(160, 0, 0);
    font-size: 2.5em;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 700;
}

.youtube-title span {
    color: rgb(160, 0, 0);
}

.youtube-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.youtube-loading {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Stile per la diretta */
.youtube-live {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.youtube-live-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.youtube-live-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-live-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 10px 0;
}

.youtube-live-badge {
    display: inline-block;
    background-color: rgb(255, 0, 0);
    color: white;
    padding: 5px 15px;
    border-radius: 0.5rem;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Stile per le dirette programmate */
.youtube-scheduled {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.youtube-scheduled-title {
    font-size: 1.5em;
    font-weight: 700;
    color: rgb(160, 0, 0);
    text-align: center;
    margin-bottom: 10px;
}

.youtube-scheduled-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
}

.youtube-scheduled-item {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.youtube-scheduled-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.youtube-scheduled-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.youtube-scheduled-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0f0f0;
}

.youtube-scheduled-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-scheduled-item:hover .youtube-scheduled-thumbnail img {
    transform: scale(1.05);
}

.youtube-scheduled-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: space-between;
}

.youtube-scheduled-item-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.youtube-scheduled-date {
    font-size: 0.9em;
    color: rgb(160, 0, 0);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.youtube-calendar-icon {
    font-size: 1em;
}

/* Stile precedente per il badge mantenuto per compatibilità */

/* Stile per le info del canale (offline) */
.youtube-channel-info {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.youtube-channel-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.youtube-channel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-channel-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.youtube-channel-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
}

.youtube-channel-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 15px 0;
    font-size: 0.9em;
    color: #666;
}

.youtube-channel-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.youtube-channel-stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: rgb(160, 0, 0);
}

.youtube-channel-stat-label {
    font-size: 0.85em;
    color: #999;
}

.youtube-btn {
    display: inline-block;
    margin-top: 10px;
}

.youtube-btn a {
    text-decoration: none;
    color: white;
    background-color: rgb(160, 0, 0);
    padding: 12px 30px;
    border-radius: 0.8rem;
    font-size: 1em;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.youtube-btn a:hover {
    background-color: rgb(100, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-error {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 1rem;
    text-align: center;
    color: #856404;
}

.youtube-error p {
    margin: 10px 0;
    font-size: 0.95em;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .youtube {
        padding: 40px 15px;
        min-height: auto;
    }
    
    .youtube-title h1 {
        font-size: 1.8em;
    }
    
    .youtube-live {
        padding: 15px;
    }
    
    .youtube-channel-info {
        max-width: 100%;
        padding: 20px;
    }
    
    .youtube-channel-stats {
        gap: 15px;
    }
    
    .youtube-btn a {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    
    .youtube-scheduled-list {
        grid-template-columns: 1fr;
    }
    
    .youtube-scheduled-title {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 480px) {
    .youtube {
        padding: 30px 10px;
    }
    
    .youtube-title h1 {
        font-size: 1.5em;
    }
    
    .youtube-channel-info {
        padding: 15px;
    }
    
    .youtube-channel-name {
        font-size: 1.2em;
    }
    
    .youtube-channel-description {
        font-size: 0.85em;
    }
    
    .youtube-channel-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .youtube-btn a {
        padding: 10px 20px;
        font-size: 0.85em;
    }
    
    .youtube-scheduled-title {
        font-size: 1.1em;
    }
    
    .youtube-scheduled-item-title {
        font-size: 1em;
    }
    
    .youtube-scheduled-date {
        font-size: 0.8em;
    }
}


/* CONTATTI SECTION */
.contatti {
    background-color: white;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto; /* no fixed height, expands with content */
    font-family: "Momo Trust Display", sans-serif; /* use same font as partite */
}

.contatti-title {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.contatti-title h1 {
    color: rgb(160, 0, 0);
    font-size: 2.2em;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 700;
}

.contatti-content {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.contatti-allenatore {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contatti-palazzetto {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background-color: transparent; /* keep section white, boxes transparent */
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    border-left: 4px solid rgb(160, 0, 0);
}

.info-box h2 {
    color: rgb(160, 0, 0);
    font-size: 1.2em;
    margin-bottom: 12px;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 700;
    padding-bottom: 0;
}

.info-box p {
    color: #000000; /* body text under titles should be black */
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
    font-family: "Momo Trust Display", sans-serif;
}

.info-box strong {
    color: rgb(160,0,0);
}

.info-box a {
    color: #000000; /* links within content are black */
    text-decoration: none;
    font-weight: 600;
    font-family: "Momo Trust Display", sans-serif;
}

.info-box a:hover {
    text-decoration: underline;
    color: rgb(160, 0, 0);
}

.mappa {
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border-left: 4px solid rgb(160, 0, 0);
    padding-left: 0;
}

.mappa iframe {
    display: block;
    width: 100%;
    min-height: 300px;
}


/* FOOTER */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px 20px;
    font-family: "Space Grotesk", sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #efefef; /* bianco scuro */
    font-size: 1.1em;
    margin-bottom: 10px;
    font-family: "Momo Trust Display", sans-serif;
}

.footer-section p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #efefef; /* bianco scuro */
    font-family: "Momo Trust Display", sans-serif;
}

.footer-section a {
    color: #efefef; /* bianco scuro */
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "Momo Trust Display", sans-serif;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.85em;
}

.footer-bottom a {
    color: #999;
}


/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
    .contatti {
        height: auto;
        padding: 40px 15px;
    }

    .contatti-title h1 {
        font-size: 1.8em;
    }

    .contatti-content {
        flex-direction: column;
        gap: 20px;
    }

    .info-box {
        padding: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .mappa {
        min-height: 250px;
    }
}

@media screen and (width <= 400px){
    .exptitle h1{
        font-size: 30px;
    }
    .exptitle h2{
        font-size: 15px;
    }

    .contatti-title h1 {
        font-size: 1.5em;
    }

    .info-box {
        padding: 12px;
        font-size: 0.9em;
    }

    .info-box h2 {
        font-size: 1.1em;
    }
}
