/* NOTE: media queries are for setting Desktop-specific rules */


/* MISC */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  background-color: var(--dusty-pink);/*var(--dusty-pink);*/
  font-family: var(--main-font);

  position: absolute;
  min-width: 100vw;
}

/* Needed for scrolling to sections from nav links */
html {
  scroll-behavior: smooth;
}

.google-map {
  width: 100%;
  height: 50vh;
}

@media only screen and (min-width: 800px) {
    .google-map {
        width: 600;
        height: 450;
    }
}

/* VARIABLES */
:root {
  --main-font: 'Noto Sans', sans-serif;

  --cream : #fff9eb; /* fff0ce */
  --gold : #a17e01; /* a17e01 */
  --dark-gold : #4d3c00;
  --dark-green: #1a67b0;
  --dusty-pink: #fff9eb;
  --barra-sopra : #1a67b0;
  --blu : #1a67b0;
  --blu-scuro : #114171;
  /*--dusty-pink: #0174be; Backup blu scuro */
  --light-green: #ffc436; /* giallo + acceso se ci serve altro colore */

  --sky-blue: #87CEEB;
  --pastel-yellow: #FFEE8C;
  --black: #000000;
  --white: #FFFFFF;
/*  --cream : #FAF2DA;
  --light-green: #8E9775;
  --dark-green: #4A503D;
  --dusty-pink: #E28F83;
  --sky-blue: #87CEEB;
  --pastel-yellow: #FFEE8C;
  --black: #000000;
  --white: #FFFFFF;*/
}

/* Logo mobile e desktop */

@media only screen and (min-width: 800px) {
  .logo {
      width: 35%;
  }
}

@media only screen and (max-width: 800px) {
  .logo {
      width: 100%;
  }
}

/* Link (tentativo) */
a {
  color: var(--blu-scuro);
}

/* IMAGES - DESKTOP PARALLAX SCROLLING */

.image {
  height: 50vh;
  background-size: cover;
  background-position: bottom;
  filter: saturate(0.2);
}

@media only screen and (min-width: 800px) {

  .image {
    min-height: 200px;

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    height: 500px;
  }
}

/* HEADING SECTION */
.header {
    min-height: 200px;
    margin-top: 20px;
    padding-bottom: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dusty-pink);
    color: var(--gold);
    /*text-shadow: var(--dark-gold) 2px 2px 0px;*/
    letter-spacing: 2px;

    height: 100vh;
  }

.header-svg {
    width: auto;
    height: auto;
}

@media only screen and (min-width: 800px) {
    .header {
        min-height: fit-content;
    }

    .header-svg {
        width: 75%;
        height: 75%;
    }
}

.header__text {
  text-align: center;
}

.header__text--light {
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.header__text--heavy {
  font-weight: 700;
  font-size: 2rem;
}

@media only screen and (min-width: 800px) {
  .header__text--light {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .header__text--heavy {
    font-size: 2.5rem;
  }
}

/* NAVIGATION - TOP MENU */

.nav-desktop {
  display: none
}

.nav-mobile {
  z-index: 1;
  height: 80px;
  width: 100%;
  
  position: fixed;
  display: flex;
  flex-direction: row-reverse;
}

.nav-mobile__button {
  z-index: 1; /* Display over mobile menu when it appears */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: all .5s ease-in-out;
  background-color: var(--dusty-pink);
  border-radius: 50%;
}

.nav-mobile__burger {
  width: 50px;
  height: 6px;
  background: var(--gold);
  border-radius: 5px;
  transition: all .5s ease-in-out;
}

.nav-mobile__burger::before,
.nav-mobile__burger::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 6px;
  background: var(--gold);
  border-radius: 5px;
  transition: all .5s ease-in-out;
}

.nav-mobile__burger::before {
  transform: translateY(-16px);
}

.nav-mobile__burger::after {
  transform: translateY(16px);
}

/* Animation */

.nav-mobile__burger--open .nav-mobile__burger {
  transform: translate(-50px);
  background: transparent;
}

.nav-mobile__burger--open .nav-mobile__burger::before {
  transform: rotate(45deg) translate(35px, -35px);
}

.nav-mobile__burger--open .nav-mobile__burger::after {
  transform: rotate(-45deg) translate(35px, 35px);
}

.nav-mobile__menu {
  display: none;
  background-color: var(--barra-sopra);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.nav-mobile__menu--open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media only screen and (min-width: 800px) {
    .nav-desktop {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
        
        padding: 20px 20%;
        width: 100%;
        background-color: var(--barra-sopra);
    
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;

    }

    .nav-mobile {
        display: none;
    }
}

.nav-mobile__link {
  font-size: 1.5rem;
  font-weight: bolder;
  margin-bottom: 1.5rem;
  color: var(--cream);
  font-style: italic;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-decoration: none;
}

/* No divider after last link in the menu */
.nav-mobile__link:last-of-type:after {
  content: "";
  display: none;
}


.nav-desktop__link {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  padding: 0 0.5rem;
  width: -webkit-fill-available;

  color: var(--cream);
  text-decoration: none;
}

.rsvp-button {
  color: var(--blu-scuro);
  background: var(--cream);
  padding: 0.5rem;
  border-radius: 10px;
  width: fit-content;
}

.rsvp-button-body {
  color: var(--cream);
  background: var(--blu-scuro);
  padding: 0.5rem;
  border-radius: 10px;
  width: fit-content;
}

@media only screen and (min-width: 800px) {
  /* Alterations specific to desktop nav */
  .rsvp-nav {
    margin-left: 4rem;
  }
}

.nav-desktop__link:hover {
    transform: scale(1.1);
    transition: all 0.25s ease-in-out;
}

/* NAVIGATION - SCROLL TO TOP */

.scroll-top {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.scroll-top__button {
  display: inline-block;
  width: 25%;
  height: 25%;;
  cursor: pointer;
}

@media only screen and (min-width: 800px) {
    .scroll-top__button {
        width: 10%;
        height: 10%;;
      }
}

/* TEXT SECTIONS */

.section {
  width: 100%;
}

.section__svg {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 5%;
}

.fiore__svg {
  display: flex;
  /*width: 20%;*/
  flex-direction: row;
  justify-content: center;
  margin-bottom: 3%;
}
.fiore__svg svg {
  width: 25%;
  height: 25%;
}

.section__split {
  display: flex;
  flex-direction: column;
}

.section__split div {
  width: 100%;
  padding: 50px 10px;
  text-align: center;
}

.section__split div:nth-child(1) {
  border-right: none;
  border-bottom: solid 2px var(--blu);
}

@media only screen and (min-width: 800px) {
  .section__split {
    flex-direction: row;
  }

  .section__split div:nth-child(1) {
    border-right: solid 2px var(--blu);
    border-bottom: none;
  }
}

.section__svg svg {
  width: 15%;
  height: 15%;
}


.section.light {
  color: var(--dark-green);
  background-color: var(--cream);
}

.section.dark {
  width: 100%;
  min-height: 200px;
  color: var(--cream);
  background-color: var(--light-green);
}

@media only screen and (max-width: 800px) {
    .section {
        min-height: 200px;
        padding: 50px 20px;
    }
}

@media only screen and (min-width: 800px) {
    .section {
        min-height: 300px;
        padding: 5% 20%;
    }
}

.section__heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: inherit;
  font-style: italic;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.section__subheading {
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
}

.section__text--bold {
  font-weight: 700;
  font-size: 125%;
}

/* FOOTER */

.footer {
  padding: 0px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--gold);
  font-size: 50%;
}

.footer svg {
  width: 30%;
  height: 30%;
  align-self: center;
}

.footer p {
  align-self: right;
}

.footer a:link,
.footer a:visited,
.footer a:hover,
.footer a:active {
  color: var(--gold);
}

@media only screen and (min-width: 800px) {
  .footer {
    text-align: right;
    color: var(--gold);
    font-size: small;
  }
  
  .footer svg {
    width: 20%;
    height: 20%;
  }

  .footer p {
    align-self: center;
  }
}

.section__md-content {
  text-align: left;
}

@media only screen and (min-width: 800px) {
  .section__md-content p {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.section__md-content h2 {
  margin-top: 1rem;

  font-size: 1.25rem;
  color: inherit;
  font-style: italic;
}

/* STANDALONE PAGE SPECIFIC */

@media only screen and (min-width: 800px) {
  .standalone {
    padding-top: 100px; /* avoid overlap with menu on desktop*/
  }
}

.standalone h1,
.standalone h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.standalone ul,
.standalone ol {
  margin-left: 1rem;
}

/* RSVP */

.rsvp-iframe {
  width: 100%;
  min-height: 600px;
  height: 100vh;
  margin-top: 2rem;
}

/*Gift section*/

blockquote {
  width: 100%;
  font-style: italic;
  margin-left: auto;
  margin-right: auto;

  margin-bottom: 1rem;

  color: var(--light-green)
}

@media only screen and (min-width: 800px) {
  blockquote {
    width: 75%;
  }
}

figcaption {
  text-align: right;
  color: var(--light-green)
}