/*Impostazioni base*/
/*Color palete*/
    .Moda-1-hex { color: #F2F2F2; }
    .Moda-2-hex { color: #BFBFBF; }
    .Moda-3-hex { color: #595959; }
    .Moda-4-hex { color: #262626; }
    .Moda-5-hex { color: #0D0D0D; } 

    :root{
        /* palette */
        --Moda-1-light: #F2F2F2;
        --Moda-2-chiaro: #BFBFBF; 
        --Moda-3-medio: #595959; 
        --Moda-4-scuro: #262626; 
        --Moda-5-dark: #0D0D0D; 
        --Moda-6-accent: #993300;

        /* distanziatori */
        --space: 10px;

        /* animazioni */
        --transition: all 0.3s ease-in-out;
    }
/*Reset*/
    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    a{
        text-decoration: none;
        color: var(--Moda-5-dark);
    }
    li{
        list-style-type: none;
    }
    .site-nav a:hover, .social__icon a:hover{
        color: var(--Moda-6-accent);
        font-size: 1.2em;
    }
    .header__cta a:hover{
        background-color: var(--Moda-6-accent);
        color: var(--Moda-1-light);
        border: none;
        padding: 10px;
        text-align: center;
        border-radius: 8px;
        font-weight: 400;
        font-size: 1.4em;
    }
/*Utility*/
    html{
        scroll-behavior: smooth;
    }
    .res{
        width: 100%;
        max-width: 90px;
    }
    .container{
        max-width: 1600px;
        margin: 0 auto;
    }
    .italic{
        font-style: italic;
    }
    .fa.fa-chevron-circle-up.fa-2x {
        position: fixed;
        bottom: 50px;
        right: 50px;
        z-index:10000;
        color: var(--Moda-2-chiaro);
    }
    .fa.fa-chevron-circle-up.fa-2x:hover {
        color: var(--Moda-6-accent);
    }


/* tipografia */
    /* font-family: "Cormorant Garamond", serif; */
    /* font-family: "Noto Sans", sans-serif; */
    h1, h2, h3, h4, h5, h6{
        font-family: "Bodoni Moda", serif;
    }
    body{
        font-family: "Noto Sans", sans-serif;
    }
    p{
        font-family: "Cormorant Garamond", serif;
        font-weight: 200;
        font-size: 1.3em;
        line-height: 1.5em;
        margin-bottom: 20px;
        text-align: center;
    }
    p.leading{
        font-size: 1.6em;
    }

    .title{
        font-size: 150px;
        line-height: 1;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 5px;
        text-align: center;
    }
    .up_line_titolo{
        margin: 5px 0 30px 0;
    }
    .down_line_titolo{
        margin: 30px 0 5px 0;
    }
    .down{
        font-size: 50px;
        font-weight: 100;
        font-style: italic; 
        text-transform: none;
    }
    .subtitle{
        font-size: 47px;
        font-weight: 300;
        text-align: right;

    }
    .headline{
        font-family: "Cormorant Garamond", serif;
        font-size: 40px;
        font-weight: 500;
        line-height: 1;
        font-style: italic;
        position: absolute;
        text-align: center;
        text-shadow: 1px 1px 3px var(--Moda-2-chiaro);

    }
    .headline, .subtitle, .title{
        margin: 0, 0, 10px, 0;
    }
    h4{
        font-weight: 400;
        font-size: 1.2em !important;
        color: var(--Moda-1-light);
        margin-bottom: 20px;
    }
    .titolo__contenuto{
        font-family: "Bodoni Moda", serif;
        color: var(--Moda-6-accent);
        text-align: center;
        font-size: 2em;
        margin-bottom: 30px;
        line-height: 1 ;
    }
    .titolo__contenuto-small{
        font-size: 0.7em;

    }
    
/*header*/
    .fixed{
        position: absolute;
        width: 100%;
        z-index: 3;
    }
    header.header{
        background: linear-gradient( rgba(0,0,0,1), rgba(0, 0, 0, 0));
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 50px 20px 50px;
    }
    header .container{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }
    .header__icon{
        color: var(--Moda-1-light);
        display: none;
    }
    .site-nav>li{
        display: inline-block;
        text-transform: uppercase;
    }
    .site-nav>li>a, .submenu>li>a {
        color: var(--Moda-1-light);
        padding: 20px;
        font-family: "Cormorant Garamond", serif;
        font-weight: 300;
        font-size: 1.2em;
    }
    .header__cta a{
        color: var(--Moda-1-light);
        border: 1px solid var(--Moda-1-light);
        padding: 10px;
        text-align: center;
        border-radius: 8px;
        display: block;
    }

    /* dropdown */
    .dropdown {
        position: relative;
      }
      
      /* Stile base submenu (chiuso) */
      .submenu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease;
        list-style: none;
        padding-left: 0;
        margin: 0;
        position: absolute;
        background: transparent; /* cambia se vuoi uno sfondo scuro */
        z-index: 1000;
        width: max-content;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        left: 20px;
      }
      
      /* Quando attivo */
      .dropdown:hover .submenu,
      .dropdown:focus-within .submenu {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
      }
      
      /* Animazione freccia */
      .arrow {
        display: inline-block;
        margin-left: 6px;
        transition: transform 0.3s ease;
      }
      
      .dropdown:hover .arrow,
      .dropdown:focus-within .arrow {
        transform: rotate(180deg);
      }
      .fa-solid.fa-chevron-down{
        font-size: 0.7em;
      }
      
      /* Submenu link styling (opzionale) */
      .submenu li a {
        display: block;
        padding: 10px 20px;
        text-decoration: none;
        color: #333;
        white-space: nowrap;
      }



/* hero */
    .hero{
        background: url(../img/Rinascimento-TestataFB-MOBILE-640x3602-1-scaled.jpg) no-repeat center center var(--Moda-2-chiaro);
        background-size: cover;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        /* background-attachment: fixed; */
    }
    .hero__edizioni__precedenti{
        background: url(../img/edizioni_precedenti/header-pagine-1903x601.jpg) no-repeat center center var(--Moda-2-chiaro);
        background-size: cover;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;        
    }
    .hero__storia{
        background: url(../img/storia/la-festa-del-rinascimento_132342_1.jpg) no-repeat center center var(--Moda-2-chiaro);
        background-size: cover;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;        
    }
    .hero::before{
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: #000;
        opacity: 0.5; 
    }
    .hero__content{
        color: var(--Moda-1-light);
        z-index: 1;
        padding: 30px 0 30px 0;
        width: 90%;
        display: flex;
        flex-direction: column;
        position: absolute;
        bottom: 30px; 
    }
    .hero_content_up {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }

    section{
        scroll-margin-top: 103px;
        padding: 20px;
        margin-top: 80px;
    }
    .acquasparta{
        text-align: left !important;
    }
/* animazione */
.hero__content .animated {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s ease-out forwards;
}

/* Animazione con delay per effetto sequenziale */
.hero__content .animated:nth-child(1) {
    animation-delay: 0.2s;
}
.hero__content .animated:nth-child(2) {
    animation-delay: 0.6s;
}
.hero__content .animated:nth-child(3) {
    animation-delay: 1s;
}
.hero__content .animated:nth-child(4) {
    animation-delay: 1.4s;
}
.hero__content .animated:nth-child(5) {
    animation-delay: 1.8s;
}

/* Keyframes */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* fregi */
    .content__fregi{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 70px;
        width: 100%;
    }
    #fregi_due{
        margin-top: 150px;
        margin-bottom: 150px;
    }
/* video */
.clip_pres {
    position: relative;
    width: 100%;
    margin: auto;
    background: url(../img/Rinascimento-TestataFB-MOBILE-640x3602-1-scaled.jpg) no-repeat center center var(--Moda-2-chiaro);
    background-size: contain;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 50px;
}
video {
    width: 100%;
    display: block;
}
.controls {
    width: 100%;
    position: absolute;
    /* bottom: 10px; */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    /* gap: 10px; */
    background: transparent;
    padding: 15px;
    justify-content: space-between;
    border-top: 1px solid white;
}
button {
    background: transparent;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
.progress-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 7px;
    background: var(--Moda-2-chiaro);
    cursor: pointer;
}
.progress-bar {
    width: 0;
    height: 100%;
    background: var(--Moda-6-accent);
}
#playPause, #muteUnmute{
    color: var(--Moda-1-light);
    font-size: 1.5em;
}

/* programma */

    .content__pulsanti_programma{
        max-width: 1300px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 70px;
        margin-top: 100px;
    }
    .programmi{
        text-align: left;
        font-size: 3.5em;
        line-height: 1.2;
        transform: translateY(-525px);
        font-weight: 700;

    }
    .pulsante_programma{
        height: 300px;
        background-size: cover;
        overflow: hidden;
    }
    .ancora_programmi img{
        object-fit: cover;
        transition: 0.8s;
        cursor: pointer;
        transform: translateY(-120px);
    }
    .ancora_programmi{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .ancora_programmi:hover img{
        transform: scale(1.5);
    }

/* slider 1 */
.slider {
    position: relative;
    width: 100%;
    max-height: 900px;
    overflow: hidden;
    margin-top: 100px;
  }

  .slides-wrapper {
    width: 100%;
    height: 100%;
  }

  .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
  }

  .slide {
    flex: 0 0 100%;
    height: 100%;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .nav {
    position: absolute;
    width: 100%;
    display: flex;
    z-index: 1;
    justify-content: space-evenly;
    transform: translateY(535%);
    background-image: linear-gradient( rgba(0,0,0,0), rgba(0, 0, 0, 1));
    bottom:308px;
  }

  .nav button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 12px;
  }

  .nav button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

/* Contrade home */
    h2.subtitle.contrade {
        margin-bottom: 30px;
    }
    .contrade{
        text-align: center;
        line-height: 1.3;
    }
    .accent_contrade{
        color: var(--Moda-6-accent);
        font-weight: 800;
    }
    .contrade_stemma{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 60px;
    }
    .ghetto, .portavecchia, .sancristoforo{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

/* corteo */
    section#corteo {
        margin-bottom: -100px;
    }

/* spettacoli */
    .content__spettacoli{
        background: url(../img/spettacoli.jpg) no-repeat center center;
        background-size: cover;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background-attachment: fixed;
    }
    .content__spettacoli::before{
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        background: #000;
        opacity: 0.5; 
    }
    .content__spettacoli__content{
        color: white;
        z-index: 1;
        text-align: left;
        padding: 30px 0 30px 0;
        position: absolute;
        width: 90%;
        display: grid;
        grid-template-columns: 30% 67%;
        grid-gap: 3%;
        justify-items: stretch;
        align-items: center;
    }
    
    .spettacoli{
        font-size: 4em;
        font-weight: 800;
        text-align: right;
    }
    .show{
        font-weight: 400;
        text-align: left;
        font-size: 1.8em;
        margin-bottom: 0;
    }

/* sfide */
    .sfide{
        text-align: left;
    }
    .sfides{
        text-align: center;
    }
    .battle{
        margin-bottom: 150px;
    }
    .immagine_sfida{
        width: 100%;
        height: 400px;
    }
    .piatto{
        background:url(../img/sfide_gastronomica.jpg) no-repeat center center var(--Moda-2-chiaro);
        background-size: cover;
    }
    .theatre{
        background:url(../img/sfide_teatro.jpg) no-repeat center center var(--Moda-2-chiaro);
        background-size: cover;
    }
    .fune{
        background:url(../img/sfide.jpg) no-repeat center center var(--Moda-2-chiaro);
        background-size: cover;
    }
    .specifica_gare{
        display: grid;
        grid-template-columns: 48% 50%;
        gap: 2%;
        margin-bottom: 50px;
        align-items: center;
    }
    .gara_piatto{
        text-align: left !important;
    }
    .gara_palco{
        text-align: right;
    }


/* sponsor */
    .content_sponsor{
        max-width: 100%;
    }
    .main_sponsor{
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2%;
        align-items: center;
        margin-bottom: 80px;
        padding-bottom: 90px;
        border-bottom: 1px solid var(--Moda-6-accent);
    }
    
    .pulsante_sponsor{
        height: 230px;
        background-size: fill;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ancora_sponsor img{
        width: 150px;
        object-fit: fill;
        transition: 0.8s;
        cursor: pointer;
    }
    .ancora_sponsor{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .ancora_sponsor:hover img{
        transform: scale(1.2);
    }

    .media_partner{
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 1%;
        align-items: center;
    }




/* footer */
    .bottom{
        background-color: var(--Moda-5-dark);
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 50px;
        margin-top: 70px;
    }
    .bottom__legal a{
        color: var(--Moda-1-light);
        font-family: "Cormorant Garamond", serif;
        font-size: 1em;
        padding: 15px;
    }
    .social__icon{
        display: flex;
        justify-content: space-between;
    }
    .footer__social a{
        color: var(--Moda-1-light);
        font-size: 1.3em;
    }
    .contatti{
        color: var(--Moda-1-light);
        font-family: "Cormorant Garamond", serif;
        text-align: left;
        font-weight: 200;
    }
    .contatti>p{
        font-size: 1em;
    }
    .diritti{
        font-family: "Cormorant Garamond", serif;
        font-size: 0.8em;
        color: var(--Moda-1-light);
        margin-top: 0;
        text-align: center;
    }
    .upper__footer{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 90%;
        margin-top: 20px;
    }
    .site-nav__footer>li{
        display: flex;
        flex-direction: column;
    }
    .site-nav__footer>li>a, .submenu>li>a{
        color: var(--Moda-1-light);
        font-family: "Cormorant Garamond", serif;
        font-weight: 200;
        text-transform: uppercase;
    }
    .contatti a{
        color: var(--Moda-1-light);
        font-family: "Cormorant Garamond", serif;
        font-weight: 200;
        font-style: italic;
    }
    .site-nav__footer>li>a:hover, .submenu>li>a:hover .contatti a:hover, .bottom__legal a:hover{
        color: var(--Moda-6-accent);
    }
    .footer__line{
        color: var(--Moda-1-light);
        width: 90%;
    }
    .contributi_footer{
        text-align: left;
        font-size: 1em;
        color: var(--Moda-1-light);
        margin-bottom: 0;
    }
    .bottom__legal {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        row-gap: 15px;
    }





/* media queries */

/* versione per dispositivi medi */
@media (max-width: 1325px){

/* tipografia */
    .title{
        font-size: 105px;
        text-align: center;
    }
    .subtitle{
        font-size: 50px;
        text-align: center;
    }
    .headline{
        font-size: 30px !important;
        text-align: center;
    }
    p {
        font-size: 1em !important;
    }
/* header */
    header.header{
        padding: 30px 20px 10px 20px;
        justify-content: space-between;
    }
    .header__menu{
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        transform: translateY(-100%);
        background: rgba(242, 242, 242, 0.4);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        overflow-x: hidden;
        overflow-y: auto;
    }
    .header__icon{
        display:block;
    }
    .open .header__menu{
        transform: translateY(0);
    }
    .site-nav{
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        align-items: center;
        font-size: 1.3em;
        position: absolute;
        width: 100%;
        
    }
    .site-nav>li{
        border-block-end: 1.5px solid var(--Moda-1-light);
        padding-bottom: 15px !important;
        padding-top: 10px;
        width: 85%;
        text-align: center;
    }
    .site-nav>li a {
        padding-right: 0 !important;
        font-weight: 400;
        font-size: 1.4em;
        color: var(--Moda-1-light);
        text-shadow: 3px 2px 5px var(--Moda-4-scuro);
    }
    .site-nav a:hover{
        font-size: 1em;
    }
    .header__cta{
        display: none;
    }
    .hero{
        justify-content: center;
    }
    .hero__content{
        transform: translateY(0);
        position: relative;
    }
/* hambrger */
    .icon__hamburger{
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: 0.3s ease-in-out;
    }
    .icon__hamburger span{
        background: var(--Moda-1-light);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;
    }
    .icon__hamburger span:nth-child(1){
        top: 0%;
    }
    .icon__hamburger span:nth-child(2), .icon__hamburger span:nth-child(3){
        top: 50%;
        width: 70%;
    }
    .icon__hamburger span:nth-child(4){
        top: 100%;
    }
    /* solo quando la classe antenato è in open */
        .open .icon__hamburger{
            transform: rotate(180deg);
        }
        .open .icon__hamburger span:nth-child(1), .open .icon__hamburger span:nth-child(4){
            width: 0;
        }
        .open .icon__hamburger span:nth-child(2){
            transform: rotate(45deg);
        }
        .open .icon__hamburger span:nth-child(3){
            transform: rotate(-45deg);
        }

        .submenu {
            position: relative; /* ← cambia da absolute a relative */
            width: 100%;         /* facoltativo, per allineare al menu */
            box-shadow: none;
            left: 0;
          }

          span.arrow {
            display: none;
        }
/* hero */
    .hero_content_up {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
    }

    .content__fregi img {
        opacity: 0.3;
    }
/* contrade */
    .contrade_stemma {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .contrade_stemma img {
            width: 100%;
    }
/* pulsanti programma */
    .content__pulsanti_programma {
        grid-template-columns: repeat(2, 1fr);
    }
    .ancora_programmi img {
        object-fit: cover;
        transition: 0.8s;
        cursor: pointer;
        transform: translateY(-80px);
    }
    .programmi {
        text-align: center;
        font-size: 2.5em !important;
        line-height: 1.2;
        transform: translateY(-360px);
        font-weight: 700;
    }

/* sfide */
    .specifica_gare {
        display: flex;
        flex-direction: column-reverse;
    }
    .specifica_gare.teatro {
        flex-direction: column;
     }
    .testi_card_gare{
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .gara_piatto {
        margin-top: 20px;
        text-align: center !important;
    }
    .gara_palco {
        margin-top: 20px;
        text-align: center;
    }
/* spettacoli */
    .content__spettacoli__content {
        grid-template-columns: repeat(1,1fr);
    }
    .show {
        font-weight: 400;
        text-align: center;
    }
/* sponsor */
    .main_sponsor {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .media_partner {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .pulsante_sponsor {
        height: 180px;
    }

/* footer */
    h4 {
        text-align: center;
    }
    .upper__footer{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 70%;
        align-items: center;
        text-align: center;
        gap: 30px;
        align-items: center;
    }
    .contributi_footer{
        color: var(--Moda-1-light);
        text-align: center;
        font-weight: 200;
    }
    .specifica_gare.rivoluzioni {
        flex-direction: column;
    }
}


/* versione per dispositivi medio-piccoli */
@media (max-width: 1024px){
    .title {
        font-size: 75px;
        text-align: center;
    }
    .subtitle {
        font-size: 40px;
    }
    .hero_content_up {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }
    .ancora_programmi img {
        object-fit: cover;
        transition: 0.8s;
        cursor: pointer;
        transform: translateY(-10px);
    }
    .programmi {
        text-align: center;
        font-size: 2em !important;
        line-height: 1.2;
        transform: translateY(-230px);
        font-weight: 700;
    }
    .content__spettacoli{
        background-attachment: scroll;
    }
    .content__rivoluzione{
        background-attachment: scroll !important;
    }
    .content__storia_p{
        background-attachment: scroll !important;
        background-position: 42%!important;
    }
    .logo_ente img {
        width: 90%;
    }


}

/* versione per dispositivi piccoli */
@media (max-width: 430px){
    
    .title {
        font-size: 30px;
        text-align: center;
    }
    .subtitle {
        font-size: 20px;
        margin-top: 10px;
    }
    .hero_content_up {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }
    .hero_content_up img{
        width: 120px;
    }
    .hero__content {
        position: relative;
    }
    .headline {
        font-size: 20px !important;
        text-align: center;
    }
    .content__pulsanti_programma {
        grid-template-columns: repeat(1, 1fr);
    }
    .programmi {
        text-align: center;
        font-size: 2.5em !important;
        line-height: 1.2;
        transform: translateY(-300px);
        font-weight: 700;
    }
    .ancora_programmi img {
        object-fit: cover;
        transition: 0.8s;
        cursor: pointer;
        transform: translateY(-15px);
    }
    .contrade_stemma {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    .contrade_stemma img {
        width: 60%;
    }
    .main_sponsor {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .media_partner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .slider_uno {
        display: none;
    }
    .slider_due {
        display: none;
    }
    .piatto{
        background-position: 75% 0%;
    }
    .rivo {
        font-size: 1.8em !important;
        font-weight: 800;
        text-align: center !important;
    }
    /* .specifica_gare.mex_tex {
        flex-direction: column-reverse;
    } */
    .ed_prec-24 {
        margin-bottom: 0 !important;
    }
    .hero__contrade{
        background-position: 56% !important;
    }
}

@media screen and (max-width: 730px) and (min-width: 430px){
    .title {
        font-size: 30px;
        text-align: center;
    }
    .subtitle {
        font-size: 20px;
        margin-top: 10px;
    }
}
@media (max-width: 355px){
    .title {
        font-size: 25px;
        text-align: center;
    }
    .subtitle {
        font-size: 18px;
        margin-top: 10px;
    }
}









/* edizioni precedenti */
.preview-edizione{
    text-align: left;
    line-height: 1;
    margin-bottom: 15px;
}
#preview-container{
    margin-top: 140px;
}
.edizioni-precedenti{
    width: 95%;
}
.left{
    text-align: right !important;
    float: right;
}
.preview-rivoluzioni{
    background:url(../img/edizioni_precedenti/rivoluzioni.png) no-repeat center center var(--Moda-2-chiaro);
    background-size: cover;
}
.preview-trame{
    background:url(../img/edizioni_precedenti/header-pagine-1903x601.jpg) no-repeat center center var(--Moda-2-chiaro);
    background-size: cover;
}
.preview-2022{
    background:url(../img/edizioni_precedenti/edizione_2024/edizione_24-gen.jpg) no-repeat center center var(--Moda-2-chiaro);
    background-size: cover;
}
.btn_edizioni_precedenti{
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--Moda-6-accent);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: 0.5s;
    cursor: pointer;
    border-radius: 10px;
} 
.btn_edizioni_precedenti a{
    color: var(--Moda-1-light);
    font-family: "Cormorant Garamond", serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.3em;
}
.btn_edizioni_precedenti:hover{
    background-color: transparent;
    border: 2px solid var(--Moda-6-accent);
}
.btn_edizioni_precedenti a:hover{
    color: var(--Moda-6-accent) !important;
}
.left {
    text-align: center !important;
}



/* edizione 2024 */
.ed_prec-24{
    margin-bottom: 140px;
}

.nuovo_mondo{
    background:url(../img/edizioni_precedenti/edizione_2024/nuovo_mondo.jpeg) no-repeat center center var(--Moda-2-chiaro);
    background-size: cover;
}
.messicano{
    background:url(../img/edizioni_precedenti/edizione_2024/tesoro_messicano_slide.jpg) no-repeat center center var(--Moda-2-chiaro);
    background-size: cover;
}
.oro_nero{
    background:url(../img/edizioni_precedenti/edizione_2024/cacao.jpg) no-repeat center center var(--Moda-2-chiaro);
    background-size: cover;
}
.content__rivoluzione{
    background: url(../img/edizioni_precedenti/edizione_2024/sole_centr.jpg) no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
}
.content__rivoluzione::before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    background: #000;
    opacity: 0.5; 
}
.rivo{
    font-size: 3.5em;
    font-weight: 800;
    text-align: right;
}


/* storia */
.content__storia{
    margin-top: 50px;
    margin-bottom: 50px;
}
.content__storia_p{
    background: url(../img/storia/rinascimento_federica.jpg) no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
}
.content__storia__parallax{
    color: white;
    z-index: 1;
    text-align: left;
    padding: 30px 0 30px 0;
    position: absolute;
    width: 90%;
    display: grid;
    grid-template-columns: 30% 67%;
    grid-gap: 3%;
    justify-items: stretch;
    align-items: center;
}
.logo_ente{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;

}
/* contrade */
.contrade_main{
    margin-top: 50px;
    margin-bottom: -50px;
}
.hero__contrade{
    background:url(../img/contrade/contrade_herp.jpg)no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__contrade::before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    background: #000;
    opacity: 0.5; 
}

/* taverne */
.hero__taverne{
    background:url(../img/taverne/hero_taverne.jpg)no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
}
.hero__taverne::before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    background: #000;
    opacity: 0.5; 
}
.taverne img{
    width: 70%;
}
.taverne_main{
    margin-top: 80px;
    margin-bottom: 50px;
}

/* gallery */

.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
  }
  
  .gallery-window {
    overflow: hidden;
    width: 100%;
  }
  
  .gallery-track {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .gallery-item {
    flex: 0 0 25%;
    padding: 10px;
    transition: transform 0.3s;
  }
  
  .gallery-item img {
    width: 100%;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.3s;
  }
  
  .gallery-item img:hover {
    transform: scale(1.05);
  }
  
  .gallery-nav {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
  }
  
  @media (max-width: 768px) {
    .gallery-item {
      flex: 0 0 100%;
    }
  }
  
  /* Modal */
  .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
  }
  
  .modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
  }
  
  .modal-nav, .modal-close {
    position: absolute;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  #modalPrev { left: 20px; top: 50%; transform: translateY(-50%); }
  #modalNext { right: 20px; top: 50%; transform: translateY(-50%); }
  #closeModal { top: 20px; right: 20px; }
  
  @keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  