/* Modern wedding layer — mantiene il contenuto, aggiorna il linguaggio visivo. */
:root { --ink:#17251f; --coral:#d86f5d; --cream:#fbfaf7; --line:#dedbd3; }
body { letter-spacing: -.01em; }
.hero::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 72% 35%, #ecb9a22c, transparent 35%); pointer-events:none; }
nav { position:relative; z-index:5; }
.brand { display:flex; align-items:center; gap:7px; font-size:20px; letter-spacing:.04em; }
.nav-links { align-items:center; gap:5px; padding:5px; border:1px solid #ffffff4f; border-radius:999px; background:#17251f2b; backdrop-filter:blur(12px); }
.nav-links a { padding:8px 13px; border-radius:999px; transition:background .2s ease, color .2s ease; }
.nav-links a:hover { background:#fff; color:var(--ink); }
.button { border-radius:999px; padding:14px 23px; box-shadow:0 8px 22px #a7493430; transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.button:hover { transform:translateY(-2px); box-shadow:0 12px 26px #a7493440; }
.button-light { box-shadow:0 8px 24px #13231c38; }
.countdown-wrap { position:relative; overflow:hidden; padding:72px 25px; background:linear-gradient(112deg,#14241e,#2f4a3f); }
.countdown-wrap::before,.countdown-wrap::after { content:""; position:absolute; border:1px solid #ffffff18; border-radius:50%; width:380px; height:380px; }
.countdown-wrap::before { top:-245px; left:-125px; }.countdown-wrap::after { bottom:-285px; right:-100px; }
.countdown-wrap .eyebrow,.countdown { position:relative; z-index:1; }
.countdown { gap:12px; max-width:720px; margin:0 auto; }
.countdown div { flex:1; min-width:0; padding:20px 10px 17px; border:1px solid #ffffff24; border-radius:18px; background:#ffffff0e; backdrop-filter:blur(8px); }
.countdown b { display:block; font-size:clamp(40px,6vw,70px); font-variant-numeric:tabular-nums; letter-spacing:-.06em; }
.countdown span { margin-top:3px; }
.event-grid article,.info-grid article { border-radius:2px; transition:transform .25s ease,box-shadow .25s ease; }
.event-grid article:hover { transform:translateY(-5px); box-shadow:0 18px 30px #26332818; }
.photo { border-radius:2px; overflow:hidden; }.photo::before { content:""; position:absolute; inset:0; z-index:0; background:inherit; transition:transform .6s ease; }.photo:hover::before { transform:scale(1.045); }
.rsvp { position:relative; }.rsvp::before { content:"✦"; position:absolute; top:28px; right:6vw; color:#c9776250; font-size:46px; }
form { border-radius:4px; }.info-grid article { padding:20px 4px; }.info-grid article:hover { background:#f3efe7; padding-left:16px; padding-right:16px; }

@media (max-width:650px) {
  nav { height:72px; }
  .nav-toggle { width:43px; height:43px; display:grid; place-items:center; border:1px solid #ffffff60; border-radius:50%; background:#17251f33; backdrop-filter:blur(10px); font-size:0; }
  .nav-toggle::before { content:""; display:block; width:17px; height:11px; border-top:1.5px solid white; border-bottom:1.5px solid white; }
  .nav-toggle[aria-expanded="true"]::before { height:17px; border:0; background:linear-gradient(45deg,transparent 46%,white 47% 53%,transparent 54%),linear-gradient(-45deg,transparent 46%,white 47% 53%,transparent 54%); }
  .nav-links { display:flex; visibility:hidden; opacity:0; transform:translateY(-10px); pointer-events:none; top:62px; right:20px; left:20px; padding:9px; position:absolute; justify-content:space-around; border-radius:16px; background:#18271ff2; border-color:#ffffff22; box-shadow:0 18px 38px #0c16128a; transition:opacity .2s ease,transform .2s ease,visibility .2s; }
  .nav-links.open { visibility:visible; opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-links a { padding:10px 8px; font-size:13px; }
  .countdown-wrap { padding:57px 16px; }
  .countdown { gap:7px; }
  .countdown div { padding:15px 4px 12px; border-radius:13px; }
  .countdown b { font-size:clamp(31px,9vw,42px); }
  .countdown span { font-size:8px; letter-spacing:.09em; }
}

/* Partecipanti e preferenze: controlli rapidi, pensati per il pollice. */
.guest-counts{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:0;padding:0;border:0}.guest-counts legend,.field-title{margin:0 0 8px;padding:0;color:#45524a;font-size:10px;font-weight:bold;letter-spacing:.045em;text-transform:uppercase}.guest-counts legend{grid-column:1/-1}.counter{display:flex;align-items:center;justify-content:space-between;padding:9px 9px 9px 12px;border:1px solid #dedbd3;border-radius:10px;background:#fffefa;font-size:14px;font-weight:700}.counter-controls{display:flex;align-items:center;gap:4px}.counter-button{width:29px;height:29px;border:1px solid #d7d6d0;border-radius:50%;background:#fff;color:var(--ink);font:500 20px/1 "DM Sans";cursor:pointer;transition:background .18s,border-color .18s,color .18s}.counter-button:hover{border-color:var(--coral);color:var(--coral)}.counter-button:disabled{opacity:.35;cursor:not-allowed}.counter output{display:inline-grid;place-items:center;min-width:20px;font-weight:700;font-variant-numeric:tabular-nums}.dietary-group{display:grid;gap:9px}.dietary-chips{display:flex;flex-wrap:wrap;gap:7px}.dietary-chips button{border:1px solid #d8d5ce;border-radius:999px;background:#fffefa;color:#566159;padding:7px 10px;font:600 11px "DM Sans";cursor:pointer;transition:all .18s ease}.dietary-chips button:hover{border-color:#b7c7b4;background:#f4f8f2}.dietary-chips button.selected{border-color:#55795e;background:#e6f0e3;color:#315a3c;box-shadow:inset 0 0 0 1px #55795e30}@media(max-width:390px){.dietary-chips{gap:5px}.dietary-chips button{padding:6px 8px;font-size:10px}}

/* Versione circolare del menu: le barre sono centrate nel bottone per costruzione. */
@media (max-width:650px) {
  .nav-toggle {
    width:43px; height:43px; padding:0; display:grid; place-items:center;
    border-radius:50%; background:#17251f33;
    font-size:0; letter-spacing:0;
  }
  .nav-toggle::before {
    content:""; display:block; width:17px; height:13px; border:0;
    background:linear-gradient(to bottom,white 0 1.5px,transparent 1.5px 5.75px,white 5.75px 7.25px,transparent 7.25px 11.5px,white 11.5px 13px);
  }
  .nav-toggle::after { display:none; }
  .nav-toggle[aria-expanded="true"]::before {
    width:15px; height:15px; background:linear-gradient(45deg,transparent 46%,white 47% 53%,transparent 54%),linear-gradient(-45deg,transparent 46%,white 47% 53%,transparent 54%);
  }
}

/* L'icona è un elemento reale: nessun carattere invisibile può spostarla. */
@media (max-width:650px) {
  .nav-toggle::before,.nav-toggle::after { display:none; }
  .nav-toggle .menu-icon {
    display:block; width:17px; height:13px;
    background:linear-gradient(to bottom,white 0 1.5px,transparent 1.5px 5.75px,white 5.75px 7.25px,transparent 7.25px 11.5px,white 11.5px 13px);
  }
  .nav-toggle[aria-expanded="true"] .menu-icon {
    width:15px; height:15px;
    background:linear-gradient(45deg,transparent 46%,white 47% 53%,transparent 54%),linear-gradient(-45deg,transparent 46%,white 47% 53%,transparent 54%);
  }
}

/* RSVP: una card editoriale, non un modulo amministrativo. */
.rsvp form {
  gap:18px;
  padding:34px;
  border:1px solid #ffffffb8;
  border-radius:20px;
  box-shadow:0 20px 55px #26332820;
}
.rsvp label { gap:7px; color:#45524a; letter-spacing:.045em; font-size:10px; text-transform:uppercase; }
.rsvp input,.rsvp select,.rsvp textarea {
  border:1px solid #dedbd3;
  border-radius:10px;
  background:#fffefa;
  padding:13px 14px;
  box-shadow:0 1px 1px #26332808;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.rsvp input::placeholder,.rsvp textarea::placeholder { color:#a1a79f; }
.rsvp input:focus,.rsvp select:focus,.rsvp textarea:focus { outline:0; border-color:var(--coral); background:#fff; box-shadow:0 0 0 4px #d86f5d1c; }
.rsvp textarea { min-height:78px; line-height:1.45; }
.rsvp .form-row { gap:14px; }
.rsvp .button { margin-top:4px; min-height:52px; width:100%; }
.rsvp .guest-hint { border-radius:9px; padding:11px 13px; background:#edf3ec; }

@media (max-width:650px) {
  /* Il pulsante diventa una pill compatta e leggibile, non un'icona anonima. */
  .nav-toggle {
    width:auto; height:38px; padding:0 12px 0 14px;
    display:flex; align-items:center; gap:9px;
    border-radius:999px; background:#173025a6;
    font:700 10px/1 "DM Sans",sans-serif; letter-spacing:.12em; text-transform:uppercase;
  }
  .nav-toggle::before { content:"Menu"; width:auto; height:auto; border:0; }
  .nav-toggle::after { content:""; width:15px; height:10px; border-top:1.5px solid white; border-bottom:1.5px solid white; }
  .nav-toggle[aria-expanded="true"]::before { content:"Chiudi"; width:auto; height:auto; background:none; }
  .nav-toggle[aria-expanded="true"]::after { height:15px; border:0; background:linear-gradient(45deg,transparent 46%,white 47% 53%,transparent 54%),linear-gradient(-45deg,transparent 46%,white 47% 53%,transparent 54%); }
  .rsvp form { padding:24px 18px; border-radius:16px; }
}

/* Versione definitiva: soltanto l'elemento .menu-icon è centrato nella griglia. */
@media (max-width:650px) {
  .nav-toggle {
    width:43px; height:43px; padding:0; display:grid; place-items:center;
    border-radius:50%; background:#17251f33; font-size:0; letter-spacing:0;
  }
  .nav-toggle::before,.nav-toggle::after { display:none; }
  .nav-toggle .menu-icon {
    display:block; width:17px; height:13px;
    background:linear-gradient(to bottom,white 0 1.5px,transparent 1.5px 5.75px,white 5.75px 7.25px,transparent 7.25px 11.5px,white 11.5px 13px);
  }
  .nav-toggle[aria-expanded="true"] .menu-icon {
    width:15px; height:15px;
    background:linear-gradient(45deg,transparent 46%,white 47% 53%,transparent 54%),linear-gradient(-45deg,transparent 46%,white 47% 53%,transparent 54%);
  }
}

/* Esigenze alimentari per singolo partecipante. */
.dietary-heading { display:grid; gap:3px; }
.dietary-heading p { margin:0; color:#69736d; font-size:13px; }
.guest-dietary { display:grid; gap:12px; }
.guest-dietary-card { display:grid; gap:10px; padding:15px; border:1px solid #dedbd3; border-radius:13px; background:#fffefa; }
.guest-dietary-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.guest-dietary-title span { font-weight:700; color:var(--ink); }
.guest-dietary-title small { color:#8a928d; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.guest-dietary-card .guest-name { background:#fff; }
.dietary-options { display:flex; flex-wrap:wrap; gap:7px; }
.dietary-option { border:1px solid #d8d5ce; border-radius:999px; background:#fff; color:#566159; padding:7px 10px; font:600 11px "DM Sans"; cursor:pointer; transition:all .18s ease; }
.dietary-option:hover { border-color:#b7c7b4; background:#f4f8f2; }
.dietary-option.selected { border-color:#55795e; background:#e6f0e3; color:#315a3c; box-shadow:inset 0 0 0 1px #55795e30; }
.guest-other { border:1px solid #dedbd3; border-radius:9px; background:#fff; padding:11px 12px; font:14px "DM Sans"; width:100%; }
.dietary-general { display:grid; gap:9px; }
@media(max-width:650px){ .guest-dietary-card{padding:13px}.dietary-options{gap:6px}.dietary-option{padding:7px 9px;font-size:10px}.guest-dietary-title small{font-size:9px} }

/* RSVP dietary redesign — visible participant-by-participant cards. */
.dietary-group {
  margin-top: 2px;
  padding-top: 22px;
  border-top: 1px solid #d6d0c5;
}
.dietary-heading {
  position: relative;
  padding-left: 44px;
  margin-bottom: 13px;
}
.dietary-heading::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: -3px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2ea;
  color: #55795e;
  font-size: 13px;
}
.dietary-heading .field-title {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 600 22px/1.15 "Playfair Display",serif;
  letter-spacing: -.02em;
  text-transform: none;
}
.dietary-heading p {
  margin-top: 4px;
  font-size: 12px;
  color: #707a73;
}
.guest-dietary { gap: 14px; }
.guest-dietary-card {
  position: relative;
  gap: 12px;
  padding: 17px;
  border: 1px solid #d9d4ca;
  border-radius: 15px;
  background: rgba(255,254,250,.82);
  box-shadow: 0 7px 20px rgba(38,51,40,.055);
}
.guest-dietary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: #aab8a3;
}
.guest-dietary-title {
  justify-content: flex-start;
  gap: 9px;
}
.guest-dietary-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.guest-dietary-title span::before {
  content: "";
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e7dfd0;
  box-shadow: inset 0 0 0 1px #d5cdbf;
}
.guest-dietary-title small {
  margin-left: auto;
  font-size: 9px;
}
.guest-dietary-card .guest-name {
  height: 42px;
  font-size: 14px;
}
.dietary-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
}
.dietary-option {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 9px;
  text-align: left;
  background: #fdfcf8;
  font-size: 11px;
}
.dietary-option::before {
  content: "○";
  margin-right: 6px;
  color: #929a94;
}
.dietary-option.selected::before { content: "✓"; color: #315a3c; }
.dietary-option.selected {
  border-color: #55795e;
  background: #e8f1e5;
  color: #315a3c;
}
.dietary-general {
  margin-top: 3px;
  padding: 14px;
  border-radius: 12px;
  background: #f2eee6;
}
.dietary-general label { color: #69736d; }
.dietary-general textarea { background: #fffefa; }
@media(max-width:650px){
  .dietary-heading { padding-left: 40px; }
  .dietary-heading .field-title { font-size: 20px; }
  .guest-dietary-card { padding: 15px 14px 15px 16px; }
  .dietary-options { grid-template-columns: 1fr 1fr; }
}
@media(max-width:390px){
  .dietary-options { grid-template-columns: 1fr; }
}

/* Sezione "Viaggio di nozze" — busta che si apre al click, rivela la lettera con IBAN. */
.honeymoon {
  max-width: 640px;
  margin: 0 auto;
  padding: 90px 25px 120px;
  text-align: center;
  overflow-anchor: none;
}
.honeymoon .section-heading { margin-bottom: 18px; }
.honeymoon-intro {
  max-width: 460px;
  margin: 0 auto 48px;
  color: #5e6962;
  font-size: 15px;
}
.envelope-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.envelope {
  position: relative;
  width: 220px;
  height: 145px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  perspective: 1000px;
}
.envelope-body {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--sand, #e7dfd0);
  box-shadow: 0 16px 32px #26332822;
  overflow: hidden;
}
.envelope-body::before,
.envelope-body::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 73px solid transparent;
}
.envelope-body::before { left: 0; border-left: 110px solid #ded2b8; }
.envelope-body::after { right: 0; border-right: 110px solid #ded2b8; }
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 110px solid transparent;
  border-right: 110px solid transparent;
  border-top: 78px solid #d3c5a3;
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform .3s cubic-bezier(.6,.05,.2,1);
  z-index: 2;
}
.envelope-seal {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 12px "Playfair Display";
  box-shadow: 0 4px 12px #a7493440;
  z-index: 3;
  transition: opacity .2s ease;
}
.envelope:hover .envelope-flap { transform: rotateX(-12deg); }
.envelope.open .envelope-flap { transform: rotateX(180deg); }
.envelope.open .envelope-seal { opacity: 0; }
.envelope-hint {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a9089;
}
.letter {
  max-width: 460px;
  margin: 10px auto 0;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fffefa;
  box-shadow: 0 22px 48px #26332820;
  text-align: left;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #3a463f;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .5s ease, transform .5s ease;
}
.letter.visible { opacity: 1; transform: translateY(0); }
.letter p { margin: 0 0 14px; line-height: 1.55; }
.iban-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #edf2ea;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
}
.iban-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #55795e;
}
.iban-card code {
  flex: 1;
  min-width: 0;
  font: 700 13px "DM Sans";
  letter-spacing: .02em;
  color: var(--ink);
  word-break: break-all;
}
.iban-card button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  font: 700 11px "DM Sans";
  cursor: pointer;
  white-space: nowrap;
}
.letter-signature { margin: 6px 0 0; text-align: right; }
@media (max-width: 650px) {
  .honeymoon { padding: 65px 20px 85px; }
  .letter { padding: 24px 20px; }
  .iban-card { flex-direction: column; align-items: stretch; }
  .iban-card button { width: 100%; }
}