html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Adelia';
  src: url('fonts/adelia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body{
    margin: 1em 0 0 0;
    background-color: white;
    font-family: 'Fashion Fetish', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    font-size: 1.51vw;
}
hr {
    border: none;
    border-top: 0.208vw solid #894531;
    width: 100%;
}
.header {
  font-size: 2.031vw;
  margin: 2vw 0vw 2vw 0vw;
  width: 100%;
  height: 4.167vw;
  position: relative;
  box-sizing: border-box;
  padding: 1em;
}

.title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.rsvp_link {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
#rsvp_link {
  text-decoration: none; 
  color: inherit;         
  font-weight: normal;
  border: 0.052vw solid black;
  padding: 0.30em 0.4em 0.10em 0.4em; 
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
  margin: 0;
  font-size: inherit;
}

h1{
    padding-top: 2em;
    font-size: 4.063vw;
    font-weight: normal;
    margin-bottom: clamp(0.5em, 0.8vw, 0.8em); 
}
#save_the_date_sub {
    margin-top: 0;
    margin-bottom: 5em;
}

.date-section {
    font-size: 3.385vw;
    position: relative;
    width: 100%;
    margin: 2em 0;
}

.date-section h2 {
    font-weight: normal;
    /*margin: 0.3em 0;*/
    position: relative;
    padding-bottom: 1em;
}

.date-section .serena {
    text-align: right;
    padding-top: 2em;
    padding-bottom: 0.5em;
    left: -20%;
}

.date-section .e-center {
    padding-bottom: 0.5em;
    text-align: center;
}

.date-section .andrea {
    text-align: right;
    left: -60%;
}

.date-section .date {
    text-align: right;
    left: -20%;
}

h2 {
    font-weight: normal;
}
h3{
    font-weight: normal;
    line-height: 1.5;
}
p {
    line-height: 1.5;
}
.adelia{
    font-family: 'Adelia', serif;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 5em;
    font-size: 3.5vw;
    margin: 1em 0;
    padding-bottom: 1.160em;
}

.countdown strong {
    font-size: 7.813vw;
    font-weight: normal;
}

.countdown div {
    font-size: 1.7vw;
    line-height: 2;
}

#sposini {
    width: 25% !important;
    height: auto !important;
    display: block;
    margin: -9em 0 0 10%;
    align-self: flex-start;
}

.fiori{
  margin-bottom: -0.5em;
  margin-top: 4em;
}

#rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2em 0;
}

#rsvp .rsvp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  margin-bottom: 1em;
}

#rsvp h3 {
  font-size: 2.5em;
  margin: 0;
}

#rsvp img {
  width: 30% !important;
  height: auto !important;
}

#form {
  border: 0.208vw solid #894531;
  padding: 3em 2em;
  margin: 2em 0;
  text-align: left;
  width: 80%;
  box-sizing: border-box;
}

#form label {
    display: block;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    font-weight: normal;
}

#form label:first-child {
    margin-top: 0;
}

#form input[type="text"] {
    width: 85%;
    border: none;
    border-bottom: 0.052vw solid #000;
    background: transparent;
    padding: 1em 0 0.3em 0; 
    margin-bottom: 0.5em;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    line-height: 1.5;
}

#form input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 0.781vw;
    height: 0.781vw;
    border: 0.026vw solid #000;
    background: white;
    margin-right: 0.5em;
    margin-bottom: 0.3em;
    vertical-align: middle;
}

#form input[type="radio"]:checked {
    background: #000;
}

#form .radio-group {
    margin-bottom: 1em;
}

#form .radio-option {
    display: block;
    margin-bottom: 0.5em; 
    margin-top: 0.5em;    
}

#allergie_label {
    margin-top: 3.5em;
    margin-bottom: 0.8em;
}

#form input[type="submit"] {
    background: white;
    color: black;
    border: 0.026vw solid #000;
    padding: 0.8em 1.5em;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    float: right;
    margin-top: 6em;
}

#info {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em 0;
}

.section {
  display: flex;
  flex-direction: row; 
  align-items: center;  
  justify-content: center;
  gap: 5em;
  margin: 1.5em 0;
  width: 80%;
}

#section_aperitivo{
  gap: 9em;
  margin-right: 1em;
}
#section_cerimonia{
  gap: 8em;
  margin-left: 1em;
}

.section img {
  width: 40% !important;
  height: auto !important;
}

.section h3 {
  font-size: 2.5em;
  margin: 0 0 0.5em 0;
}

.section_info {
  text-align: center;
}


#viaggio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2em 0;
}

#viaggio .viaggio-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  margin-bottom: 1em;
}

#viaggio h3 {
  font-size: 2.5em;
  margin: 0;
}
.viaggio-header img {
  width: 30% !important;
  height: auto !important;
  margin-bottom: 4em;
}

#viaggio #info_iban{
  margin: 3em 0;
  text-align: left; 
}

#viaggio .fiori{
  margin-bottom: -4em;
}

/*Mobile*/
@media (max-width: 768px) {
  h1{
    font-size: 4.922vw;
  }
  p {
    font-size: 1.8vw !important;
    line-height: 1.9;
  }
  
  #form {
    padding: 4em 2em 2em 2em;
    width: 90%;
  }
  
  #form label:not(.radio-option) {
    margin-top: 2.5em;
    margin-bottom: 0.3em;
    font-size: 1.8vw;
  }
  
  #form label:first-child {
    margin-top: 0;
  }

  #form .radio-group {
    margin-top: 2em;
  }
  
  #allergie_label {
    margin-top: 3.5em;
  }
  
  #form input[type="text"] {
    padding: 1.2em 0 0.4em 0;
    line-height: 1.5;
    font-size: 1.6vw;
    margin-bottom: 0.2em;
    height: 2vw;
}
  
  #form input[type="radio"] {
    width: 1.8vw;
    height: 1.8vw;
    border-width: 0.15vw;
    margin-right: 0.8em;
  }
  
  #form .radio-option {
    margin-bottom: 0.5em;
    margin-top: 0.3em;
    font-size: 1.8vw;
  }
  
  #form input[type="submit"] {
    margin-top: 6em;
    font-size: 1.8vw;
    padding: 0.8em 2em;
    float: right;
    border-width: 0.15vw;
  }

  #viaggio .viaggio-header{
    margin-bottom: 3em;
  }
  #viaggio #info_iban{
    margin: 6em 0;
    text-align: left; 
  }
  #viaggio .fiori{
  margin-top: 12em;
  }
}

@supports (-webkit-touch-callout: none) {
    .date-section .date {
        line-height: 1.5;
        padding-top: 0.1em;
    }
}
@supports (-webkit-touch-callout: none) {
    .date-section .andrea {
        line-height: 1.5;
        padding-top: 0.1em;
    }
}
@supports (-webkit-touch-callout: none) {
    .date-section .serena {
        line-height: 1.5;
        padding-top: 0.1em;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    p {
        font-size: 1.8vw !important;
    }
}