/* # FOGLIO DI STILE PAGINA MVM OPEN DAYS

# LEGENDA
- FONT FACE
- GENERALE
- HERO
- VETTORE SFONDO
- PROMOZIONE
- DIVISORI
- PROGRAMMA
- DISCLAIMER
- MODULO
- SLIDER
- SLIDER IMMAGINI
- FOOTER
*/


/* # FONT FACE */
@font-face {
    font-family: 'FatFrank';
    src: url('/fonts/FatFrank-Heavy.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Regular.ttf') format('truetype');
}


/* # GENERALE */
:root {
    --dark-green: #14723A;
    --light-green: #00A052;
    --light-green-opacity: #00a0539e;
    --drak-green-hover: #001e10;
    --width-divisore-principale: 30%;
    --gray: #333333;
    --light-gray: #D9D9D9;
}

.page-opendays * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-opendays h1, h2:not(.sottotitolo), h3, h4, h5, h6, p.data {
    font-family: 'FatFrank';
    margin: 0;
    padding: 0;
}

.page-opendays p, input, label, span, a, pre, h2.sottotitolo {
    font-family: 'Poppins';
    font-weight: 300;
    margin: 0;
    padding: 0;
}

.page-opendays a {
    cursor: pointer;
    color: var(--light-green);
}



.page-opendays main { width: 100%;}
.page-opendays main :where(h1, h2, h3, h4, h5, h6) {
    color: var(--light-green);
} 

.page-opendays fieldset {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    animation: none;
}

.page-opendays fieldset.active {
    visibility: visible;
    position: relative;
    animation: fadeIn 1s ease-in-out forwards;
}

.page-opendays :is(p, label, a, input[type="submit"]) {
    font-size: 20px;
    text-align: justify;
    text-align-last: left;
}

.page-opendays section { width:  100%; }
.page-opendays section:not(.hero) { margin: 90px 0;}

.page-opendays #app {
    width: 100%;
    display: flex; 
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
}

.page-opendays .container {
    width: 80%;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

.page-opendays fieldset > p {
    font-weight: bold;
}

.page-opendays .loading {
    margin-top: 10px;
    font-size: 14px;
    color: var(--light-green);
    font-weight: bold;
}

@media (max-width: 1024px) {
    .page-opendays fieldset.active :where(label, p) {
        text-align: left!important;
        text-align-last: left!important;
    }
    .page-opendays :is(p, label, a, input[type="submit"]) {
        font-size: 18px;
        text-align: justify;
        text-align-last: center;
    }
    .page-opendays section:not(.hero) {
        margin: 60px 0;
    }
}

@media (max-width: 767px) {
    .page-opendays .container {
        width: 90%!important; 
        max-width: none;
    }

    .page-opendays fieldset.active p {
        margin-bottom: 20px;
    }
}



/* # SEZIONE 1: HERO */
.page-opendays .hero {
    background-image: url('/images/background-OpenDays-Hero-right.webp');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    color: white;
    position: relative;
    z-index: 0;
}

.page-opendays .hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* puoi aumentare o diminuire l'opacità */
  z-index: 1;
}

.page-opendays .hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.page-opendays .hero h1.titolo {
    font-size: clamp(82px, 6.25vw, 120px); /* SIZE da 1920 a 1280 */
}

.page-opendays .hero p.data, .page-opendays .hero h2.sottotitolo {
    font-size: clamp(26px,1.667vw,32px); /* SIZE da 1920 a 1280 */
}

.page-opendays .contenitore {
    display: flex;
    flex-flow: column;
}

.page-opendays .contenitore.-loghi {
    border: 11px solid var(--light-green);
    background-color: white;
    padding: 40px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    text-align: justify;
    gap: 20px;
}

.page-opendays .contenitore.-loghi a {
    text-align: center;
    text-align-last: center;
}

.page-opendays section.hero .presentazione p.data { display: none; }

/* Logo MVM */
.page-opendays .contenitore.-loghi img.mvm-logo { /* SIZE da 1920 a 1280 */
    max-width: 250px;
    width: 18.229vw;
    min-width: 200px;
}

/*Logo BUSINARO */
.page-opendays .contenitore.-loghi img.businaro-logo { /* SIZE da 1920 a 1280 */
    max-width: 350px;
    width: 19.229vw;
    min-width: 250px;
}

.page-opendays section.hero .contenitore.-grafico {
    margin-top: 20px;
    background-color: var(--dark-green);
    width: 100%;
    min-height: 100px;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-opendays .hero .elementi.mobile { display: none; }

.page-opendays section.hero .iscriviti.btn {
    margin-top: 20px;
    background-color: var(--dark-green);
    transition: all .4s ease-in-out;
}

.page-opendays section.hero .iscriviti.btn:hover {
    background-color: var(--drak-green-hover);
}

@media (max-width: 1024px) {
    .page-opendays section.hero p.data {
        text-align: left;
        text-align-last: left;
    }

    /* Logo MVM */
    .page-opendays .contenitore.-loghi img.mvm-logo { /* SIZE da 1024 a 768 */
        max-width: 300px;
        width: 18.229vw;
        min-width: 200px;
    }

    .page-opendays .contenitore.-loghi img.businaro-logo { /* SIZE da 1024 a 768 */
        max-width: 300px;
        width: 18.229vw;
        min-width: 150px;
    }
    
    .page-opendays .hero h1.titolo {
        font-size: 62px;
    }

    .page-opendays .contenitore.-grafico {
        min-height: 80px;
    }
}

@media (max-width: 768px) {
    .page-opendays .hero {
        background-position: bottom;
    }
    .page-opendays .hero .container {
        flex-flow: column;
        gap: 1%;
    }

    .page-opendays .hero .container:after {
        content: "";
        height: 100%;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.6);
        top: 0;
        bottom: 0;
    }
    .page-opendays section.hero .presentazione p.data { display: block; }
    .page-opendays .hero .elementi.desktop { display: none; }
    .page-opendays .hero .elementi.mobile { display: block; }
    .page-opendays .hero .elementi.mobile .contenitore.-grafico { display: none;}
    .page-opendays .hero .elementi.mobile .contenitore.-loghi {
        flex-flow: row;
        align-items: center;
    }
    .page-opendays .hero h1.titolo {
        font-size: clamp(42px, 9.375vw, 72px); /* SIZE da 1920 a 1280 */
    }

    .page-opendays .hero p.data, .page-opendays .hero h2.sottotitolo {
        font-size: clamp(26px,1.667vw,32px); /* SIZE da 1920 a 1280 */
    }   

    .page-opendays .hero .elementi.mobile .contenitore.-loghi {
        border: none;
        background-color: transparent;
        padding-bottom: 10px;
        padding-top: 0;
    }

        /* Logo MVM */
    .page-opendays .contenitore.-loghi img.mvm-logo { /* SIZE da 767 a 320*/
        width: 26.076vw;
        min-width: 80px;
    }

    /*Logo BUSINARO */
    .page-opendays .contenitore.-loghi img.businaro-logo { /* SIZE da 767 a 320*/
        width: 42.076vw;
        min-width: 160px;
    }
}
/* # VETTORE SFONDO */

.vettore-sfondo {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
}

main {
    position: relative;
}

/* # SEZIONE 2: PROMOZIONE */
section.promozione .container {
    display: flex;
    gap: 5%;
    align-items: center;
}
section.promozione .container .contenuto {
    display: flex;
    flex-flow: column;
    gap: 20px;
    flex: 1;
}

section.promozione .container .immagine { flex: 1;}

section.promozione .container .contenuto .h3 {
    color: var(--dark-green);
}

section.promozione .container img {
    border: 20px solid var(--dark-green);
    border-top-right-radius: 60px;
    border-bottom-left-radius: 60px;
    max-width: 100%;
}

@media (max-width: 1024px) {
    section.promozione .container {
        flex-flow: column;
        gap: 30px;
    }
    section.promozione .container .immagine {
        width: 100%;
    }
    section.promozione .container img {
        width: 100%;
        border-radius: 0%;
        border: 10px solid var(--dark-green);
        height: 300px;
        object-fit: cover;
    }
    section.promozione .container .contenuto .h3 {
        text-align: justify!important;
    }
}


/* # SEZIONE 3 / 4: DIVISORE */
section.divisore {
    display: flex;
    gap: 1.3%;
    max-width: 100%;
    width: 35%;
    height: 23px;
}

section.divisore.-left {
    justify-self: start;
}

section.divisore.-left div:first-child {
    background-color: var(--dark-green);
    flex-grow: 3;
    border-top-right-radius: 10px;
}

section.divisore.-left div:nth-child(2) {
    background-color: var(--dark-green);
    flex-grow: 2;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
section.divisore.-left div:last-child {
    background-color: var(--dark-green);
    flex-grow: 1;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

section.divisore.-right {
    justify-self: flex-end;
    flex-direction: row-reverse;
}

section.divisore.-right div:first-child {
    background-color: var(--dark-green);
    flex-grow: 3;
    border-top-left-radius: 10px;
}

section.divisore.-right div:nth-child(2) {
    background-color: var(--dark-green);
    flex-grow: 2;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
}
section.divisore.-right div:last-child {
    background-color: var(--dark-green);
    flex-grow: 1;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 1024px) {
    section.divisore {
        width: 50%;
    }
}

/* # SEZIONE 4: PROGRAMMA */

section.programma .container {
    display: flex;
    justify-content: center;
}
section.programma .box-programma {
    padding: 60px 0;
    border: 40px solid var(--dark-green);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    position: relative;
    z-index: 2;
    background-color: white;
}
section.programma .box-programma .box-titolo-task {
    margin-bottom: 10px;
    text-align: justify;
    background-color: var(--dark-green);
    width: fit-content;
    justify-self: center;
    padding: 7px 12px;
}
section.programma .box-programma .box-titolo-task h4 {
    color: white;
}
section.programma .box-programma .box-subtask {
    margin: 20px 0;
}
section.programma .box-programma .box-subtask p {
    text-align: justify;
    text-align-last: center;
}

@media (max-width: 1024px) {
    section.programma .box-programma {
        border-radius: 0;
        width: 100%;
        border-width: 20px;
    }
}

@media (max-width: 768px) {
    section.programma .box-programma {
        border-width: 10px;
        padding: 30px 10px;
    }

    section.programma .box-programma h3 {
        margin-bottom: 20px!important;
    }
}


/* # SEZIONE 5: DISCLAIMER */
.page-opendays section.disclaimer p {
    color: red;
    text-align: justify!important;
    text-align-last: center!important;
}

@media (max-width: 767px) {
    .page-opendays section.disclaimer p {
        font-size: 14px!important;
    }
}

/* # SEZIONE 6: MODULO DI ISCRIZIONE */
.page-opendays section.modulo-di-iscrizione { 
    background-color: var(--light-green);
    margin: 0;
    padding: 90px 0;
}
.page-opendays section.modulo-di-iscrizione .container{
    width: 60%;
    justify-self: center;
}
.page-opendays section.modulo-di-iscrizione .container > :where(h3, p) {
    text-align: justify!important;
    text-align-last: center!important;
    color: white!important;
}

.page-opendays span.campo-obbligatorio {
    font-size: 14px!important;
    color: red!important;
}

/* #FORM */
.page-opendays #opendays {
    position: relative;
    z-index: 2;
}
.page-opendays form .form {
    background-color: white;
    box-shadow: 0 4px 4px 0 rgba(0,0,0, .25);
    padding: 60px 50px;
}

.page-opendays .lines-steps {
    margin-top: 50px;
    display: flex;
}

.page-opendays .line-step {
    flex:1;
    background-color: #efefef;
    border: 1px solid #fff;
    height: 10px;
}

.page-opendays .line-step.active {
    background-color: var(--light-green);
}
.page-opendays .accettazione-privacy {
    display: flex;
    flex-flow: column;
}
.page-opendays .accettazione-privacy p {
    margin-bottom: 0;
}

.page-opendays .btn:not(a.btn) {
    display: flex;
    flex-flow: column;
    align-self: flex-end;
    gap: 20px;
    margin-top: 20px;
    padding: 0;
}

.page-opendays .btn a, .page-opendays .btn input, .page-opendays a.btn {
    padding: 7px 18px;
    text-decoration: none;
}

.page-opendays .btn a.next, .page-opendays .btn input.next-smt, .page-opendays a.btn {
    background-color: var(--light-green);
    color: white;
    font-weight: 600;
    border: none;
    transition: all .4s ease-in-out;
}

.page-opendays .btn a.prev {
    background-color: #efefef;
    color: #000;
    font-weight: 600;
}

.page-opendays label {
    position: relative;
}

.page-opendays .ultimo-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-opendays .ultimo-step p { margin-bottom: 0;}

.page-opendays .ultimo-step .btn { border-radius: 0; }



/* #HOVER */
.page-opendays .btn a.next:hover, .page-opendays .btn input.next-smt:hover, .page-opendays a.btn:hover,.page-opendays .accettazione-privacy .next-smt:hover {
    background-color: var(--drak-green-hover);
}

/* # FORM ERROR */

.page-opendays div.errore {
    font-size: 14px!important;
    color: red;
    display: none;
}
.page-opendays input.errore {
    border: 1px solid red;
    background-color: rgba(253, 113, 113, 0.518);
}

/* # STEP */
.page-opendays .step {
    display: flex;
    justify-content: space-between;
    gap: 10%;
}

.page-opendays :is(.step-2, .step-3, .step-4) {
    display: flex;
}

.page-opendays .step > div:first-child { flex-grow: 1;}
.page-opendays .step > div:first-child > div:not(.lamelineari, .lamecircolari) {
    display: flex;
    gap: 4%;
    margin-bottom: 20px;
}

.page-opendays label[for="privacy"] {
    display: flex;
    gap: 2%;
}

.page-opendays .step > div:first-child > div label {
    display: flex;
    flex-flow: column;
    flex-grow: 1;
}

.page-opendays .seleziona-giorno > p {
    margin-bottom: 10px;
}

.page-opendays .grazie {
    color: var(--light-green);
}

@media (max-width: 1680px) {
    .page-opendays section.modulo-di-iscrizione .container {
        width: 70%;
    }
}

@media (max-width: 1024px) {
    .page-opendays section.modulo-di-iscrizione {
        width: 100%;
        justify-self: center;
    }

    .page-opendays section.modulo-di-iscrizione label[for="indirizzo"] {
        width: 100%;
    }

    .page-opendays section.modulo-di-iscrizione label[for="indirizzo"] input {
        width: 100%;
    }

    .page-opendays .step {
        gap: 5%;
    }
    
    .page-opendays section.modulo-di-iscrizione .container {
        width: 90%!important;
    }
}

@media (max-width: 767px) {
    .page-opendays .ultimo-step {
        flex-flow: column!important;
        gap: 10px;
    }

    .page-opendays .ultimo-step div {
        display: flex;
        flex-flow: column;
    }

    .page-opendays fieldset:not(.accettazione-privacy):where(p, label) {
        text-align: left!important;
        text-align-last: left!important;
    }

    .page-opendays span.campo-obbligatorio {
        font-size: 12px;
    }
}

/* # SEZIONE 7: MACCHINE */
.page-opendays section.macchine {
    background-color: var(--gray);
    margin: 0;
    padding: 90px 0;
    margin-bottom: 0!important;
    position: relative;
    z-index: 2;
}
.page-opendays section.macchine .container {
    display: flex;
    flex-direction: column;
}

.page-opendays section.macchine .macchine-presenti {
    display: flex;
    justify-content: center;
    column-gap: 2%;
    row-gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.page-opendays section.macchine .macchine-presenti a {
    font-size: clamp(16px, 2vw, 22px);
    cursor: pointer;
    font-weight: bold;
}

.page-opendays section.macchine :where(h3, p, a) {
    text-align: center!important;
    text-align-last: center;
    color: white!important;
}

.page-opendays section.macchine .btn-prodotti {
    align-self: center;
    width: fit-content;
}

.page-opendays section.macchine .btn-prodotti:hover { background-color: var(--drak-green-hover); }

/* .page-opendays section.macchine #carousel-heading {
    text-align: center!important;
    margin-bottom: 20px;
}
.page-opendays section.macchine .swiper_btn {
    top: 25%;
}
.page-opendays section.macchine .swiper_btn:after { 
    color: var(--light-green);
}
.page-opendays section.macchine .swiper-slide {
    display: flex;
    flex-flow: column;
    text-align: justify;
}


.page-opendays section.macchine .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.page-opendays section.macchine .swiper-slide p {
    margin-bottom: 40px;
    text-align: justify;
    text-align-last: center;
}

.page-opendays section.macchine .swiper-slide a {
    background-color: var(--light-green);
    text-decoration: none;
    color: white;
    padding: 7px 16px;
    width: fit-content;
    align-self: center;
}

.page-opendays section.macchine .swiper-pagination {
    position: relative;
    margin-top: 40px;
}

.page-opendays section.macchine .swiper-pagination .swiper-pagination-bullet {
    background-color: var(--light-green-opacity);
}

.page-opendays section.macchine .swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--light-green);
}

@media (max-width: 1440px) {
    .page-opendays section.macchine .container {
        width: 60%;
    }
}

@media (max-width: 1024px) {
    .page-opendays section.macchine .container {
        width: 70%;
    }
    .page-opendays section.macchine .swiper-slide img {
        max-height: 360px;
    }
    .page-opendays section.macchine .swiper_btn:after {
        font-size: 3.516vw;
    }
}

@media (max-width: 767px) {
    .page-opendays section.macchine .swiper-slide img {
        max-height: 380px;
    }
    .page-opendays section.macchine .swiper_btn {
        top: 5%;
        height: auto;
    }

    .page-opendays section.macchine .swiper_btn:after {
        height: auto;
        font-size: clamp(30px, 6.258vw, 32px);
    }

    .page-opendays section.macchine .swiper_btn.swiper-button-next {
        right: 0;
    }
} */
/* #SLIDER IMMAGINI */
.page-opendays section.slider-immagini { margin: 0; }
.page-opendays section.slider-immagini .swiper-slide img { 
    width: 100%;
    height: 300px;
    max-height: 300px;
    object-fit: cover;
}

/* #FOOTER */
.page-opendays footer {
    width: 100%;
    background-color: var(--gray);
    padding: 40px 0;
}

.page-opendays footer p {
    text-align: justify!important;
    text-align-last: center!important;
    color: white;
}

.page-opendays footer a {
    color: var(--light-green);
}

/* # ANIMAZIONI */ 

@keyframes fadeIn {
    from {opacity: 0; }
    to {opacity: 1;}
}

/* # MEDIA QUERIES */
@media (max-width: 1024px) {
    .page-opendays .container {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .page-opendays .container {
        width: 90%;
        box-sizing: border-box;
      }
    
      .page-opendays form .form {
        padding: 30px 20px;
      }

      .page-opendays .step {
        flex-flow: column;
      }

    .page-opendays :is(p, label, a, input[type="submit"]) {
        font-size: 16px;
    }

    .page-opendays .btn a, .page-opendays .btn input, .page-opendays a.btn {
        padding: 5px 12px;
    }

}

@media (max-width: 480px) {
    .page-opendays .step > div:first-child > div:not(.lamelineari, .lamecircolari) {
        flex-flow: column;
        gap: 20px;
    }

    .page-opendays .close {
        top: 3%;
    }

    .page-opendays .loghi a.logo-mvm {
        width: 90px;
    }

    .page-opendays .loghi a.logo-businaro {
        width: 180px;
    }

    .page-opendays .accettazione-privacy {
        margin: 0;
    }

    .page-opendays fieldset p, label, input, a.btn, .btn a {
        font-size: 14px!important;
    }
    .page-opendays :is(.step-2, .step-3, .step-4) {
        flex-flow: row;
    }
    .page-opendays :is(.step-2, .step-3, .step-4) .label > div {
        flex-flow: row!important;
    }

    .page-opendays .btn:not(a.btn) {
        gap: 5px;
    }
}

@media (max-width: 420px) {
    .page-opendays :is(.step-2, .step-3, .step-4) {
        flex-flow: column;
    }

    .page-opendays .btn:not(a.btn) {
        align-self: auto;
    }
}
