@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* *{
    font-family: 'Montserrat';
} */

@font-face {
  font-family: 'CSRoden';
  src: url('fonts/CSRoden-Regular.woff2') format('woff2'),
       url('fonts/CSRoden-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Se intendi usare anche la variante Italic */
@font-face {
  font-family: 'CSRoden';
  src: url('fonts/CSRoden-Italic.woff2') format('woff2'),
       url('fonts/CSRoden-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color:white;
    /* background-image: url("img/sfondo.jpg"); */
    /* background-size:cover; */
    /* background-position:center; */
    /* background-repeat:no-repeat; */
    /* --link-final-color: linear-gradient(rgb(130, 2, 85), rgb(177, 11, 147));; */
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: "Montserrat";

}

#calendario {
    position: relative;
    overflow: visible;
}

#ora-attuale-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 0, 0, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
    z-index: 10;
    pointer-events: none;
    display: none;
}

#ora-attuale-line::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 50%;
    border: 2px solid white;
}

#links {
    margin-top: 10vh;
}

.link-list {
    width: min(90%, 500px);
    margin: 0 auto;
    padding-top: 2rem;
}

#links a {
    position: relative;
    display: block;
    text-decoration: none;
    color: white;
    border: 1px solid transparent;
    border-radius: 3px;
    margin: 10px;
    padding: 30px;
    text-align: center;
    background-color: rgb(134, 134, 134);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    animation: showLink 1.2s ease forwards;
}

#links a::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--link-final-color);
    z-index: 1;
    animation: fillBar 1.2s ease forwards;
}

#links a .label {
    position: relative;
    z-index: 2;
    display: inline-block;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    animation: revealText 1.2s ease forwards;
}

#links a:nth-child(2) {
    animation-delay: 0.15s;
}

#links a:nth-child(3) {
    animation-delay: 0.3s;
}

#links a:nth-child(4) {
    animation-delay: 0.45s;
}

#links a:nth-child(5) {
    animation-delay: 0.6s;
}

#links a:nth-child(2)::before {
    animation-delay: 0.15s;
}

#links a:nth-child(2) .label {
    animation-delay: 0.15s;
}

#links a:nth-child(3)::before {
    animation-delay: 0.3s;
}

#links a:nth-child(3) .label {
    animation-delay: 0.3s;
}

#links a:nth-child(4)::before {
    animation-delay: 0.45s;
}

#links a:nth-child(4) .label {
    animation-delay: 0.45s;
}

#links a:nth-child(5)::before {
    animation-delay: 0.6s;
}

#links a:nth-child(5) .label {
    animation-delay: 0.6s;
}

@keyframes showLink {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    10% {
        visibility: visible;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

#intestazione {
    border: 3px solid #69528e;
    background-image: url("img/banner.png");
    background-color:white;
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: border-box; /* Mantiene lo sfondo all'interno del bordo */
    overflow: hidden;             /* Assicura che l'immagine rispetti il border-radius */
    position: fixed;
    width: 90%;
    border-radius: 20px;
    height: 10vh;
    z-index: 1000;
    top: 5%;
    left: 5%;
    right: 5%;
    padding: 0;
    box-sizing: border-box;       /* Evita che il bordo da 3px aumenti le dimensioni reali */
}

#intestazione img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#social {
    width: 100%;
    text-align: center;
    margin-bottom:5vh;
}

#social h3 {
    color: #191919;
    font-family: "CSRoden";
}

#social a {
    margin: 5%;
    
}
#social img {
    width: 8%;
}

.evento{
    margin-top:10px;
    border: 3px solid #69528e;
    border-radius: 10px;
    background-color: #e6d5fc;
    width:90%;
    text-align:center;
    margin-left:5%;  
    margin-right:5%; 
    
}
#lineup{
    margin-top:12vh;
}
.rigaEvento {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.rigaEvento h1,
.rigaEvento h2{
    display: inline-block;
    margin: 0;
}
.rigaEvento p {  
    color:black;  
    display: inline-block;
    margin: 0;
    width: 100%;
    text-align: left;
}
.rigaEvento .progress {
    flex: 1 1 100%;
    min-width: 100%;
}
#titolo{
    color:white;
    text-align:center;
    font-weight:bold;
 }
#nav li{
    height: 100%;
    flex: 1;               /* Ogni <li> occuperà esattamente il 25% dello spazio (100% / 4) */
    margin: 0;
    padding: 0;
    text-decoration:none;
    color:white;
    text-align:center;
    width:33%;

}
#nav a{
    display: flex;
    align-items: center;    /* Centra il testo verticalmente */
    justify-content: center;/* Centra il testo orizzontalmente */
    width: 100%;
    height: 100%;
    padding: 0;             /* Rimuove il padding in % che poteva creare sbordamenti */
    text-decoration: none;
    color: #191919;
    box-sizing: border-box;
    font-size:small;
}
#nav ul{
    margin:0px;
}
#nav{
    background-color:#e6d5fc;
    border: 3px solid #69528e;
    border-radius: 20px;
    height:8vh;
    position: fixed;   /* Rende l'elemento fisso rispetto alla finestra del browser */
    bottom: 0;         /* Lo incolla sul bordo inferiore dello schermo */
    width: 90%;       /* Fa occupare al menu tutta la larghezza dello schermo */
    z-index: 1000;
    /* backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); */
    padding: 0;            /* Rimuove il padding interno di default di <ul> */
    display: flex;         /* Usa Flexbox per distribuire gli elementi in modo perfetto */
    list-style: none;
    margin-left:5%;
    margin-right:5%;
}
#nav img{
    width:80%;
    /* height:50%; */
}

@view-transition {
    navigation: auto;
}

.here {
    background-color:#d1b7f4;
    border-radius:20px;
    view-transition-name: nav-here;
    animation: slide-here 0.45s ease-out both;
}

@keyframes slide-here {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .here {
        animation: none;
    }
}

#mappa{
    width:100%;
    text-align:center;
}
#mappa iframe{
    width:90%;
    height:50vh;
    border-radius:20px;
}
#mappa h2, p{
    color:#191919;
}
#mappa img{
    width:90%;
    border-radius:20px;
    cursor: zoom-in;
}
#mappa-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.88);
    touch-action: none;
}
#mappa-viewer.is-open {
    display: block;
}
#mappa-viewer-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    cursor: grab;
}
#mappa-viewer-image:active {
    cursor: grabbing;
}
#mappa-viewer-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
#carouselExampleIndicators{
    margin-top:12vh;
}

.carousel-indicators [data-bs-target] {
    background-color: #8d8a93;
    opacity: 0.65;
}

.carousel-indicators .active {
    background-color: #191919;
    opacity: 1;
}

/* Rendere visibili i controlli e gli indicatori del carosello su sfondo chiaro */
.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.65);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.1rem 1.1rem;
    outline: none;
}
.carousel-control-prev .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 8l4.647 5.646a.5.5 0 0 1-.708.708l-5-6a.5.5 0 0 1 0-.708l5-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E") !important;
}
.carousel-control-next .carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L9.293 8 4.646 13.646a.5.5 0 0 0 .708.708l5-6a.5.5 0 0 0 0-.708l-5-6a.5.5 0 0 0-.708 0z'/%3E%3C/svg%3E") !important;
}


/* Piccole migliorie responsive */
@media (max-width: 576px) {
    .carousel-control-prev .carousel-control-prev-icon,
    .carousel-control-next .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        background-size: 0.9rem 0.9rem;
    }
}
#calendario{
    position: relative;
    /* margin-top:5vh; */
    width:100%;
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

#date{
    margin-top:5%;
    text-align:center;
}
#date input{
    background-color:rgb(145, 145, 145);
    color:white;
    border:0px;
    border-radius:3px;
}

#calendario table{
    display:inline-block;
    border:0px solid transparent;
    border-collapse: separate;
    border-spacing: 1px;
}

#orari .ora-punta {
    position: relative;
    text-align: left !important;
}

#orari .ora-punta::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 1px;
    /* Usa un'altezza commisurata all'altezza delle righe degli stage */
    height: 200px; /* In alternativa calcola l'altezza via JavaScript o usa 100% rispetto al contenitore */
    background: rgba(25, 25, 25, 0.35);
    transform: translateX(0);
    pointer-events: none;
}

#luoghi{
    position: sticky;
    left: 0;
    width: 30%;
    flex: 0 0 30%;
    z-index: 11;
    
}
#luoghi img{
    width: 100%;
}
.blur{
    background-color:rgba(255, 255, 255, 0.503);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#orari{
    width: 70%;
    table-layout: fixed;
    flex: 1 0 70%;
    margin-left: 0;
    z-index: 1;
    border-collapse: separate;
    border-spacing: 1px;
}

#calendario table td,
#calendario table th {
    background-color: transparent;
    color:#191919;
    height:50px;
    padding: 0 !important;
    vertical-align: middle;
}

#calendario table tr {
    height: 50px;
}

#orari td{
    width:50px;
    min-width:50px;
    max-width:50px;
    /* padding: 2px; */
}

.fixed{
    position: sticky;
    left: 0;
}

.trasparente {
    color: transparent;
    font-size: 0;
}
.titolo{
    
    border-radius:20px;
    border:3px solid #69528e;
    width:80%;
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    margin-top:10px;
    margin-bottom:10px;
    padding:10px;
    margin-top:5vh;
    font-family: 'CSRoden', sans-serif;
    font-weight: bold;
    
}
.titolo p{
    font-size:1.5rem;
    margin:0;
    line-height:1;
}



#orari td.attivo {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    border: 3px solid transparent !important;
    border-radius: 8px;
    
    color: white;
    /* padding: 4px 2px; */
}

#orari td.mainstage{
    /* background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(to right, #693aff, #00e1fd) border-box !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important; */
    background-color: #485e8f;
}

#orari td.woodstage{
    /* background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(to right, #60f700, #01dd88) border-box !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important; */
    background-color:#3f6e6e
}

#orari td.livestage{
    /* background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(to right, #69528e, #e6d5fc) border-box !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important; */
    background-color:#578fb1;
}

#orari td.workshop{
    /* background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(to right, #ff00e3, #96597a) border-box !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important; */
    background-color:#4247ac;
}

#video{
    text-align:center;
}

#video iframe{
    
    width:90%;
    height:30vh;
    border-radius:20px;
}

.orario{
    font-size:small;
}

.live{
    width:100%;
    text-align:center;
    margin-top:15vh;
}

.day{
    border-radius:10px;
    border:3px solid #69528e;
    width:25%;
    text-align:center;
    font-size:1.5rem;
    margin:auto;
    margin: left 1.6%;
    margin-right:1.6%;
    margin-top:10px;
    margin-bottom:10px;
    padding:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height: 50px;
    font-weight: bold;
    font-family: "CSRoden";
}
.suona{
    border-radius:10px;
    border:3px solid #69528e;
    width:70%;
    text-align:center;
    font-size:1.5rem;
    margin:auto;
    margin-top:10px;
    margin-bottom:10px;
    padding:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height: 50px;
    font-weight: bold;
    font-family: "CSRoden";
}

.pagina-legale {
    width: min(92%, 800px);
    margin: 0 auto;
    padding: 12vh 0 8rem;
    color: #191919;
    line-height: 1.6;
}

.pagina-legale h1,
.pagina-legale h2 {
    color: #69528e;
}

.pagina-legale h1 {
    margin-bottom: 1.5rem;
}

.pagina-legale h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.link-legali {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto 8rem;
    font-size: 0.85rem;
    margin-bottom: 14vh;
}

.site-footer {
    background-color: #6e6e6e;
    width: 100%;
    margin: auto auto;
    padding: 1rem 0;
    /* border-top: 1px solid #69528e; */
    color: #ffffff;
    text-align: center;
    font-size: 0.8rem;
}

.site-footer a {
    color: #ffffff;
}

.footer-dati {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.4;
}

.site-footer .link-legali {
    margin: 1rem auto 13vh;
}

@media (max-width: 576px) {
    .site-footer {
        font-size: 0.72rem;
    }

    .site-footer .link-legali {
        flex-wrap: wrap;
    }
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    color: #191919;
    background: #ffffff;
    border: 2px solid #69528e;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.cookie-banner p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
}

.cookie-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.cookie-actions button {
    padding: 0.5rem 0.8rem;
    color: #191919;
    background: #ffffff;
    border: 1px solid #69528e;
    border-radius: 4px;
    cursor: pointer;
}

.cookie-actions button[data-consent="accepted"] {
    color: #ffffff;
    background: #69528e;
}

.embed-bloccato {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 1rem;
    text-align: center;
    background: #f2f2f2;
}

@media (max-width: 576px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-actions {
        justify-content: flex-end;
    }
}

.menu{
    width:80%;
    margin:auto;
    
    margin-top:5vh;
}
.menu img{
    border-radius:15px;
}

.ordina{
    margin:auto;
    margin-top:5vh;
    margin-bottom:5vh;
    border-radius:20px;
    border:3px solid #69528e;
    width:80%;
    text-align:center;
    font-family: "CSRoden";
    font-size: larger;
    padding:10px;
    background-color: #e6d5fc;
    
}
.ordina a{
    text-decoration: none;
    color:black;
}
