/*
Theme Name: Andrea & Giulia Wedding
Theme URI: https://www.giuliaedalesposi.com/
Description: Giulia e Andrea Sposi
Version: 1.0
Author: Creato con amore
Text Domain: andrea-giulia
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ========================= VARIABLES ========================= */
:root {
  --blue-deep:  #3a5a8c;
  --blue-mid:   #5b7bb5;
  --blue-light: #8bafd4;
  --blue-pale:  #ddeaf6;
  --sage:       #7a9e8e;
  --sage-light: #a8c5b5;
  --sage-pale:  #eaf2ee;
  --cream:      #fafaf8;
  --white:      #ffffff;
  --text-dark:  #2c3e50;
  --text-mid:   #4a607a;
  --text-light: #8a9bb0;
  --divider:    #ccdaeb;
  --radius:     16px;
  --shadow:     0 8px 32px rgba(58,90,140,0.10);
  --shadow-h:   0 16px 48px rgba(58,90,140,0.18);
}

/* ========================= RESET ========================= */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================= TYPOGRAPHY ========================= */
h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
  font-weight: 300;
  color: var(--blue-deep);
  line-height: 1.2;
}
.script { font-family: 'Dancing Script', cursive; font-weight: 600; }
p { margin-bottom: 1em; }
a { color: var(--blue-mid); text-decoration: none; transition: color .3s; }
a:hover { color: var(--blue-deep); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ========================= NAV ========================= */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,250,248,0.93);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow .3s;
  padding: 0 env(safe-area-inset-right,0) 0 env(safe-area-inset-left,0);
}
#masthead.scrolled { box-shadow: 0 2px 20px rgba(58,90,140,0.09); }
.header-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 20px;
}
.site-branding .site-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem; color: var(--blue-deep); white-space: nowrap;
  text-decoration: none;
}
.site-branding .site-title span { color: var(--sage); }

.primary-navigation ul { list-style: none; display: flex; gap: 0; }
.primary-navigation ul li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mid); padding: 6px 12px; border-radius: 20px;
  transition: all .25s; white-space: nowrap;
}
.primary-navigation ul li a:hover {
  background: var(--blue-pale); color: var(--blue-deep); text-decoration: none;
}

/* hamburger */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--blue-deep); transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

#mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 190;
  background: rgba(250,250,248,.97); backdrop-filter: blur(20px);
  padding: 2rem; overflow-y: auto;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom,0));
}
#mobile-menu.open { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
#mobile-menu a { font-family: 'Dancing Script', cursive; font-size: 1.8rem; color: var(--blue-deep); }
#mobile-menu a:hover { color: var(--sage); text-decoration: none; }

/* ========================= HERO ========================= */
.hero-section {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
   padding: 80px clamp(80px, 12vw, 160px) 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 15% 25%, rgba(139,175,212,.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(122,158,142,.11) 0%, transparent 70%),
    var(--cream);
}
.hero-floral-tl {
  position: absolute;
  top: clamp(20px, 6vh, 80px);
  left: clamp(0px, 2vw, 20px);

  width: clamp(180px, 32vw, 420px);
  max-width: 45%;

  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-floral-br {
  position: absolute;
  bottom: clamp(0px, 2vh, 30px);
  right: clamp(0px, 2vw, 20px);

  width: clamp(170px, 30vw, 400px);
  max-width: 45%;

  pointer-events: none;
  user-select: none;
  z-index: 1;
}

@keyframes floatTL { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatBR {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-content { 
	position: relative;
	z-index: 3; animation: fadeUp 1.2s ease both; 
	padding: 0 clamp(20px, 6vw, 80px)}
.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif; font-size: .78rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--sage);
  margin-bottom: 1.5rem; animation: fadeUp 1.2s .15s ease both;
}
.hero-names {
  font-family: 'Dancing Script', cursive; font-weight: 700;
  font-size: clamp(3.5rem,13vw,8rem); line-height: .95; color: var(--blue-deep);
  animation: fadeUp 1.2s .3s ease both;
}
.hero-amp { font-size: .5em; color: var(--sage); display: block; line-height: 1.1; margin: .1em 0; }
.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1rem,2.5vw,1.3rem); color: var(--text-mid);
  max-width: 440px; margin: .8rem auto 0;
  animation: fadeUp 1.2s .45s ease both;
}
.hero-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 1.8rem auto; max-width: 200px;
  animation: fadeUp 1.2s .6s ease both;
}
.hero-divider::before,.hero-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--divider));
}
.hero-divider::after { background: linear-gradient(to left, transparent, var(--divider)); }
.hero-divider-gem { font-size: .65rem; color: var(--blue-light); }
.hero-date {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.3rem,4vw,1.8rem); color: var(--blue-mid);
  animation: fadeUp 1.2s .75s ease both;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2.2rem; padding: .75em 2em;
  border: 1.5px solid var(--blue-light); border-radius: 40px;
  font-family: 'Cormorant Garamond', serif; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-deep); background: transparent;
  transition: all .3s; -webkit-tap-highlight-color: transparent;
  animation: fadeUp 1.2s .9s ease both;
  min-height: 44px;
}
.hero-cta:hover { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ========================= COUNTDOWN ========================= */
.countdown-section {
  background: var(--blue-deep); color: #fff;
  padding: 3.5rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.countdown-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%, rgba(91,123,181,.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 50%, rgba(122,158,142,.2) 0%, transparent 60%);
}
.cd-label { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 2rem; position: relative; }
.cd-grid { display: flex; align-items: flex-start; justify-content: center; gap: .5rem; flex-wrap: wrap; position: relative; }
.cd-item { text-align: center; min-width: 80px; }
.cd-num { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.8rem,9vw,5rem); color: #fff; line-height: 1; display: block; }
.cd-unit { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-pale); margin-top: .3rem; display: block; }
.cd-sep { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: rgba(255,255,255,.3); padding-top: .4em; line-height: 1; }

/* ========================= SECTIONS ========================= */
.section { max-width: 860px; margin: 0 auto; padding: 4.5rem 24px; }
.section-sm { max-width: 680px; margin: 0 auto; padding: 4rem 24px; }
.section-center { text-align: center; }
.eyebrow { font-family: 'Cormorant Garamond', serif; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: .8rem; }
.section-title { font-family: 'Dancing Script', cursive; font-weight: 600; font-size: clamp(2rem,5.5vw,3.2rem); color: var(--blue-deep); margin-bottom: .3em; }
.ornament { display: flex; align-items: center; gap: 14px; margin: 1.8rem 0 2.2rem; }
.ornament::before,.ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--divider)); }
.ornament::after { background: linear-gradient(to left, transparent, var(--divider)); }
.ornament span { font-size: .6rem; color: var(--blue-light); letter-spacing: .1em; }

/* ========================= EVENT CARDS ========================= */
.event-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }

.event-card {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 2rem 1.6rem; text-align: center; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s; -webkit-tap-highlight-color: transparent;
}
.event-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--blue-mid), var(--sage)); }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.event-card .card-icon { font-size: 1.8rem; margin-bottom: .8rem; display: block; }
.event-card h3 { font-family: 'Dancing Script', cursive; font-size: 1.7rem; margin-bottom: .7rem; }
.event-card p { font-size: .9rem; color: var(--text-mid); margin-bottom: .3rem; line-height: 1.5; }
.event-card .card-time { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: var(--blue-mid); margin-top: .5rem; display: block; }
.map-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; padding: .5em 1.2em;
  border: 1px solid var(--blue-light); border-radius: 30px;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-deep); transition: all .25s;
  font-family: 'Cormorant Garamond', serif; min-height: 44px;
}
.map-btn:hover { background: var(--blue-pale); text-decoration: none; }

/* ========================= FLORAL STRIP ========================= */
.floral-strip { position: relative; padding: 5rem 0;   overflow: visible; text-align: center; }

.floral-strip-left { position: absolute; left: -20px; top: 50%; transform: translateY(-50%); width: clamp(120px,18vw,220px); opacity: .85; pointer-events: none; }
.floral-strip-right {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
  width: clamp(120px,18vw,220px);
  opacity: .85;
  pointer-events: none;
}


.strip-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  color: var(--blue-mid);
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(60px,10vw,120px);
  line-height: 1.5;
}

/* ========================= CERCHIO FOTO ========================= */
.img-cerchio {
  width: clamp(140px, 20vw, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;

  border: 4px solid #d8cfc4;
  box-shadow: 0 0 0 6px rgba(232,225,217,0.4);
}



/* ========================= INFO BAND ========================= */
.info-band { background: var(--sage-pale); padding: 3.5rem 24px; }
.info-band-inner { max-width: 740px; margin: 0 auto; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
.info-box { background: #fff; border-radius: 12px; padding: 1.4rem; border: 1px solid rgba(122,158,142,.25); }
.info-box {
  text-align: center;
}
.info-box .info-icon { font-size: 1.4rem; margin-bottom: .5rem; display: block; }
.info-box h4 { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 500; color: var(--blue-deep); margin-bottom: .3rem; }
.info-box p { font-size: .88rem; color: var(--text-mid); margin: 0; }

/* ========================= HOTEL ========================= */
.hotel-card {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 2.2rem; max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hotel-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--sage), var(--blue-mid)); }
.hotel-card h3 { font-family: 'Dancing Script', cursive; font-size: 1.8rem; margin-bottom: .6rem; }
.hotel-card p { font-size: .9rem; color: var(--text-mid); margin-bottom: .5rem; }
.hotel-email { display: inline-block; font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--blue-mid); word-break: break-all; margin: .5rem 0; }
.hotel-oggetto { margin: .8rem 0; padding: .7rem 1rem; background: var(--blue-pale); border-radius: 8px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .9rem; color: var(--blue-deep); }
.hotel-note { margin-top: 1rem; padding: .8rem 1rem; background: var(--blue-pale); border-radius: 8px; font-size: .82rem; color: var(--blue-deep); font-style: italic; }

/* ========================= VIAGGIO ========================= */
.journey-section {
  background: linear-gradient(160deg, var(--blue-deep) 0%, #2a4470 100%);
  color: #fff; padding: 4.5rem 24px; text-align: center; position: relative; overflow: hidden;
}
.journey-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 40%, rgba(91,123,181,.25) 0%, transparent 60%);
}
.journey-section .eyebrow { color: var(--sage-light); }
.journey-section .section-title { color: #fff; }
.journey-section .ornament::before,.journey-section .ornament::after { background: linear-gradient(to right, transparent, rgba(255,255,255,.15)); }
.journey-section p { color: rgba(255,255,255,.75); font-size: .97rem; max-width: 620px; margin: .5rem auto 0; }
.journey-stops { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 2.5rem 0; }
.journey-stop {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 1.2rem 1.6rem; text-align: center; min-width: 120px;
  transition: transform .3s; -webkit-tap-highlight-color: transparent;
}
.journey-stop:hover { transform: translateY(-4px); background: rgba(255,255,255,.15); }
.stop-flag { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.stop-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: #fff; display: block; font-style: italic; }

/* ========================= LISTA NOZZE ========================= */
.gift-card {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 2.5rem; max-width: 520px; margin: 0 auto;
  box-shadow: var(--shadow); position: relative;
}
.gift-card::after { content: ''; position: absolute; inset: 10px; border: 1px dashed var(--divider); border-radius: 10px; pointer-events: none; }
.gift-card p { color: var(--text-mid); font-size: .97rem; }
.gift-note { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05rem; color: var(--sage); margin-top: 1rem; display: block; }

/* ========================= RSVP ========================= */
.rsvp-section { background: linear-gradient(135deg, var(--blue-pale) 0%, var(--sage-pale) 100%); padding: 4.5rem 24px; }
.rsvp-card {
  background: #fff; max-width: 540px; margin: 0 auto;
  border-radius: 20px; padding: 2.5rem 2rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden; text-align: center;
}
.rsvp-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, var(--blue-mid), var(--sage)); }
.rsvp-card .rsvp-intro { color: var(--text-mid); font-style: italic; margin-bottom: 1.8rem; font-size: .93rem; }
.form-field { margin-bottom: 1.2rem; text-align: left; }
.form-field label { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); margin-bottom: .4rem; font-family: 'Cormorant Garamond', serif; }
.form-field input,.form-field select,.form-field textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--divider); border-radius: 10px;
  background: var(--cream); font-family: 'Lora', serif; font-size: .95rem; color: var(--text-dark);
  outline: none; transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus {
  border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(139,175,212,.15);
}
.select-wrap { position: relative; }
.select-wrap::after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--blue-mid); pointer-events: none; }
.btn-submit {
  width: 100%; margin-top: .8rem; padding: .9em 2em;
  background: var(--blue-deep); color: #fff; border: none; border-radius: 40px;
  font-family: 'Cormorant Garamond', serif; font-size: 1rem; letter-spacing: .18em;
  text-transform: uppercase; cursor: pointer; transition: all .3s;
  -webkit-tap-highlight-color: transparent; min-height: 48px;
}
.btn-submit:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(58,90,140,.25); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
#rsvp-feedback { min-height: 1.6rem; margin-top: 1rem; font-style: italic; font-size: .92rem; color: var(--sage); }

/* ========================= FOOTER ========================= */
#colophon {
  background: var(--text-dark); color: rgba(255,255,255,.55);
  padding: 3rem 1.5rem; text-align: center;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom,0));
}
.footer-names { font-family: 'Dancing Script', cursive; font-size: 2rem; color: #fff; margin-bottom: .3rem; }
.footer-date { font-size: .72rem; letter-spacing: .22em; color: var(--sage-light); margin-bottom: 1.5rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 2rem; }
.footer-nav a { color: rgba(255,255,255,.45); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; transition: color .25s; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-credit { font-size: .68rem; opacity: .3; }


.fluentform {
  max-width: 560px;
  margin: 0 auto;
}

.ff-el-input--label label {
  font-family: 'Cormorant Garamond', serif;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .5rem;
}

.ff-el-form-control {
  width: 100%;
  padding: .9rem 1rem;
  border: 1.5px solid var(--divider);
  border-radius: 10px;
  background: var(--cream);
  font-family: 'Lora', serif;
  font-size: .95rem;
  color: var(--text-dark);
  transition: all .3s ease;
}

.ff-el-form-control:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(139,175,212,.15);
  outline: none;
}

.ff-btn-submit {
  width: 100%;
  margin-top: 12px;
  padding: .9em 2em;
  background: var(--sage);
  border-radius: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  transition: all .3s ease;
  min-height: 48px;
}

.ff-btn-submit:hover {
  background: var(--sage-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.ff-el-form-check-label,
.ff-el-form-check-label span,
.ff-el-radio label {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1rem;
  color: var(--text-dark);
  letter-spacing: .02em;
}




/* ========================= REVEAL ========================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 768px) {
  .primary-navigation { display: none; }
  .menu-toggle { display: flex; }
  .event-cards { grid-template-columns: 1fr; gap: 1.2rem; }
  .info-grid { grid-template-columns: 1fr; }
  .strip-text { padding: 0 clamp(110px,23vw,190px); }
  .journey-stops { gap: .7rem; }
  .journey-stop { padding: .9rem 1.2rem; min-width: 100px; }
  .hero-section {
    padding: 80px clamp(40px, 8vw, 80px) 60px;
  }
  .hero-floral-tl {
    width: clamp(140px, 38vw, 220px);
    left: clamp(5px, 3vw, 20px);
    opacity: 0.6;
  }

  .hero-floral-br {
    width: clamp(120px, 33vw, 180px);
    right: clamp(5px, 3vw, 20px);
    opacity: 0.6;
  }
}
@media (max-width: 400px) {
  .hero-names { font-size: 3.2rem; }
  .rsvp-card { padding: 2rem 1.4rem; }
}
@supports (padding: max(0px)) {
  #masthead {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}
