/* Sezioni */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 20vh;
}
/* 1 MATRIMONIO */
.sez1 {
    margin-top: 35%;
    width: 100%;
    padding-right: 10%;
    padding-left: 10%;  
}
/* Div */
.sez1Cont { 
    position: relative;
    width: auto;
}
.sez1bg {
    max-height: 100%;
    width: 100%;
}

/* 2 CELEBRAZIONE  */
.sez2 {
    width: 100%;
    padding-right: 10%;
    padding-left: 10%;  
}
.sez2Cont {
    position: relative;
    width: auto;
}
.sez2bg {
    max-height: 100%;
    width: 100%;
}
/* TESTI */
.comm500 {
    font-family: "Commissioner", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "FLAR" 0,
      "VOLM" 0;
  }
/* Bottone "OTTIENI INDICAZIONI" */
.btn-chiesa {
    white-space: nowrap;
    position: absolute;
    bottom: -0.5%; /* Leggera sovrapposizione con l'immagine */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.4); /* Nero opaco al 40% */
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    padding: 15px 30px;
    display: inline-block;
    transition: 0.3s;
}
/* Effetto hover */
.btn-chiesa:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Diventa leggermente meno trasparente */
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2); /* Leggero alone luminoso */
}

.btn-castello {
    white-space: nowrap;
    position: absolute;
    bottom: -0.5%; /* Leggera sovrapposizione con l'immagine */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.4); /* Nero opaco al 40% */
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    padding: 15px 30px;
    display: inline-block;
    transition: 0.3s;
}
/* Effetto hover */
.btn-castello:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Diventa leggermente meno trasparente */
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2); /* Leggero alone luminoso */
}
.feedback-message {
            padding: 10px;
            margin-top: 15px;
            border-radius: 5px;
            font-size: 20px;
        }
        .feedback-message.success {
            background-color: #d4edda;
            color: #155724;
            border: 2px solid #c3e6cb;
        }
        .feedback-message.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 2px solid #f5c6cb;
        }
/********************/
/********************/
/********************/

/* 3 RICEVIMENTO */
.sez3 {
    width: 100%;
    padding-right: 10%;
    padding-left: 10%;  
}
.sez3Cont {
    position: relative;
    width: auto;
}
.sez3bg {
    max-height: 100%;
    width: 100%;
}

/* 4 RSVP */

/* 5 LISTA NOZZE */
.nozze-text {
    top: 16%;
    text-align: center;
    width: 100%;
    position: absolute;
    font-size: 27px;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.nozze-iban{
    top: 75%;
    font-size: 27px;
    line-height:2;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
    "wdth" 100;
    text-align: center;
    width: 88%;
    position: absolute;
    background-color: #ffffffad;
    left: 50%;
    transform: translateX(-50%);
}
.sez5 {
    width: 100%;
    padding-right: 10%;
    padding-left: 10%;  
}
.sez5Cont {
    position: relative;
    width: auto;
}
.sez5bg {
    max-height: 100%;
    width: 100%;
}

/* 6 buon matrimonio */
.sez6 {
    width: 100%;
    padding-right: 10%;
    padding-left: 10%;  
}
.sez6Cont {
    position: relative;
    width: auto;
}
.sez6bg {
    max-height: 100%;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    overflow-x: hidden; 
    width: 100%;
    background-color: #ffffff;
}

.menu {
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Menu orizzontale per desktop */
.menu-links {
    display: flex;
    gap: 22px;
}

.menu-item {
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 10px 30px;
    border: 2px solid white;
    border-radius: 20px;
    font-size: 18px;
    text-align: center;
    transition: 0.3s;
}

.menu-item:hover {
    background: white;
    color: black;
}

/* Icona hamburger - visibile solo su mobile */
.menu-toggle {
    text-align: center;
    display: none;
}
@media (min-width: 1025px) and (max-width: 2300px) {
    
    .nozze-iban{
        font-size: 24px;
    }
    .menu-item {
        color: rgb(0, 0, 0);
        border: 2px solid rgb(0, 0, 0);
    }
    .menu-item:hover {
        background: rgb(255, 255, 255) ; 
        color: black;
    }
    .sez1 {
        margin-top: 10%;
    }

    section {
        padding-right: 27% !important; 
        padding-left: 27% !important;
    }
   /** .btn-chiesa {
    }
    .btn-castello {
    } **/
}

@media (min-width: 2300px) {
    .menu-item {
        color: rgb(0, 0, 0);
        border: 2px solid rgb(0, 0, 0);
    }
    .menu-item:hover {
        background: rgb(255, 255, 255) ; 
        color: black;
    }
    .sez1 {
        margin-top: 10%;
    }

    section {
        padding-right: 35% !important; 
        padding-left: 35% !important;
    }
    
}



.back-to-top {
    position: fixed;
    bottom: 75px;
    right: 75px;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 38px;
    cursor: pointer;
    display: none; 
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background-color: rgba(0, 109, 123, 0.9);
    color: black;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.arrow {
    width: 20px;
    height: 20px;
    border-top: 4px solid white;
    border-right: 4px solid white;
    transform: rotate(-45deg);
    margin-bottom: -2px;
}

.ubuntu-mono-regular {
    font-family: "Ubuntu Mono", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .ubuntu-mono-bold {
    font-family: "Ubuntu Mono", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .ubuntu-mono-regular-italic {
    font-family: "Ubuntu Mono", serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .ubuntu-mono-bold-italic {
    font-family: "Ubuntu Mono", serif;
    font-weight: 700;
    font-style: italic;
  }

/* Media query per dispositivi mobili */
@media (max-width: 1024px) {
    .back-to-top {
    bottom: 35px;
    right: 35px;
    width: 100px;
    height: 100px;
    }
    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 105px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.8);
        width: 100%;
        border-radius: 20px;
        padding: 20px 10px;
    }

    .menu-links a {
        padding: 10px 20px;
        text-align: center;
        font-size: 30px;
        border: 2px solid white;
    }

    .menu-toggle {
        display: block;
        font-size: 70px;
        color: rgb(0, 0, 0);
        cursor: pointer;
        padding: 15px;
    }

    .menu-links.show {
        display: flex;
    }
    .menu {
        width: 300px;
    }
    .label-inputs {
        font-size: 1.4rem; 
    }

    .in-rsvp, .testo-libero, textarea {
        font-size: 1.4rem; 
    }

    .submit-btn, button[type="submit"] {
        font-size: 1.4rem; 
    }

    .radio-container {
        gap: 20px;
    }

    .radio-group label {
        font-size: 1.4rem; 
    }
    .nozze-text {
    font-size: 31px !important;
    }
}
    

  