@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@300;400;500;600;700&display=swap');

:root{
  --blue:#0C66AC;
  --white:#fff;
  --black:#000;

  --padX: clamp(10px, 2vw, 18px);
  --padY: clamp(10px, 1.8vw, 16px);

  /* per poster + card JAPAN */
  --cardW: min(740px, 96%);

  /* SHAPE UNIFICATA PILL */
  --pillRadius: 28px;

  /* PROPORZIONI PILL UNIFICATE (altezza) */
  --pillPadY: 6px; /* << tutte uguali a viaggio di nozze/location */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:"Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  background: var(--white);
  color: var(--black);
}

/* snap */
.snap{
  height:100svh;
  overflow-y:auto;
  scroll-snap-type: y mandatory;
}
.section{
  height:100svh;
  scroll-snap-align:start;
  background: var(--white);
  display:flex;
  flex-direction:column;
}

/* header */
.header{
  background: var(--blue);
  color: var(--white);
  padding: var(--padY) var(--padX);
}
.header-inner{
  position:relative;
  min-height: clamp(64px, 9vw, 88px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--white);
  padding: 8px;
  cursor:pointer;
  border-radius: 14px;
}
.icon-btn svg{
  width: clamp(28px, 4.2vw, 44px);
  height: clamp(28px, 4.2vw, 44px);
}
.menu-open{
  position:absolute;
  left: var(--padX);
  top: 50%;
  transform: translateY(-50%);
}
.gift-link{
  position:absolute;
  right: var(--padX);
  top: 50%;
  transform: translateY(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 4px;
  text-decoration:none;
  color: var(--white);
  font-weight: 400;
}
.gift-link svg{
  width: clamp(30px, 4.6vw, 50px);
  height: clamp(30px, 4.6vw, 50px);
}
.gift-link .gift-text{
  font-size: clamp(14px, 2.3vw, 20px);
  line-height:1;
}

/* titolo centrato */
.title{
  text-align:center;
  line-height:1.06;
}
.title .t1{
  font-weight: 400;
  font-size: clamp(24px, 4.2vw, 42px);
}
.title .t2{
  margin-top: clamp(4px, .8vw, 8px);
  font-weight: 400;
  font-size: clamp(16px, 2.8vw, 26px);
}

/* menu overlay */
.menu-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  display:none;
  z-index:200;
}
.menu-overlay.open{ display:block; }
.menu-panel{
  width: min(420px, 86vw);
  height: 100%;
  background: var(--blue);
  padding: 18px;
}
.menu-links{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 10px;
}
.menu-links a{
  padding: 14px 14px;
  border: 3px solid rgba(255,255,255,.95);
  border-radius: 22px;
  font-size: 20px;
  text-decoration:none;
  color: var(--white);
  font-weight: 400;
}

/* main */
.main{
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding: 10px var(--padX);
  min-height:0;
}

/* ====== ELEMENTI LARGHI (NON PILL) ====== */
.poster,
.jp-card,
.gift-text{
  width: var(--cardW);
  margin-left: auto;
  margin-right: auto;
}

/* ====== PILL: tutte a misura di testo + STESSA PROPORZIONE ====== */
.where-link,
.gift-box,
.cta,
.iban-pill{
  display: inline-block;
  align-self: center;
  max-width: calc(100% - 24px);
  border-radius: var(--pillRadius);
  line-height: 1; /* << evita differenze di altezza percepita */
}

/* LOCATION PILL (outline nero 2px) */
.where-link{
  background: var(--blue);
  border: 2px solid var(--black);
  padding: var(--pillPadY) 14px; /* << stesso padY per tutte */
  text-align:center;
  text-decoration:none;
  color: var(--white);
}

.where-pin{
  display:flex;
  justify-content:center;
  margin-bottom: 2px;
}
.where-pin svg{
  width: 22px;
  height: 22px;
}

.where-name{
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  text-decoration: underline;
  margin-bottom: 0;
}

.where-addr{
  font-size: clamp(15px, 2.2vw, 23px);
  font-weight: 400;
  text-decoration: underline;
  line-height:1.1;
}

/* POSTER */
.poster{
  flex: 1;
  min-height: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.poster img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

/* CTA pill (stessa proporzione: solo padY uguale) */
.cta{
  background: var(--blue);
  color: var(--white);
  padding: var(--pillPadY) 26px; /* << era 10px, ora uguale */
  text-align:center;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 28px);
  text-decoration: underline;
}

.rsvp{
  text-align:center;
  font-weight: 400;
  font-size: clamp(14px, 2.2vw, 20px);
}

/* GIFT pill (outline nero 2px) */
.gift-box{
  background: var(--blue);
  border: 2px solid var(--black);
  padding: var(--pillPadY) 14px; /* già uguale */
  text-align:center;
  color: var(--white);
}
.gift-box .plane-icon{
  width: 30px;
  height: 30px;
  display:block;
  margin: 0 auto 4px;
  object-fit: contain;
}
.gift-box .gift-title{
  font-size: clamp(18px, 2.7vw, 28px);
  font-weight: 400;
}

/* JAPAN card */
.jp-card{
  flex:1;
  min-height:0;
  border: clamp(6px, 1.2vw, 10px) solid #7a7a7a;
  border-radius: 18px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.jp-card .jp-img{
  flex: 1;
  min-height: 0;
  display:flex;
}
.jp-card .jp-img img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}
.jp-card .jp-caption{
  padding: 4px 10px 10px;
  text-align:center;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--black);
  background: #ffffff;
  line-height: 1.22;
}

/* footer gift */
.gift-text{
  text-align:center;
  font-size: clamp(14px, 2.1vw, 20px);
  font-weight: 400;
  line-height:1.2;
}

/* IBAN pill (stessa proporzione: padY uguale) */
.iban-pill{
  background: var(--blue);
  padding: var(--pillPadY) 22px; /* << era 10px, ora uguale */
  text-align:center;
  color: var(--white);
  font-weight: 400;
  font-size: clamp(14px, 2.1vw, 18px);
}
