a,
a:visited {
  color: #c25c84;
}

a:hover,
a:focus-visible {
  color: #a94b70;
}
:root {
  --bg-paper: #ffffff;
  --bg-ink: #47323d;
  --bg-card: rgba(255, 252, 252, 0.92);
  --border-soft: rgba(214, 160, 180, 0.5);
  --shadow-soft: 0 14px 32px rgba(119, 72, 91, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--bg-ink);
  background: #fffafb;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

.petal-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.petal-bg span {
  position: absolute;
  top: -12vh;
  left: var(--left, 50%);
  width: var(--size, 16px);
  height: calc(var(--size, 16px) * 0.66);
  border-radius: 62% 38% 58% 42%;
  background: linear-gradient(130deg, rgba(255, 241, 247, 0.95), rgba(248, 171, 198, 0.76));
  box-shadow: 0 3px 8px rgba(177, 109, 138, 0.24);
  opacity: 0.86;
  animation: petal-fall var(--fall, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.hero {
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  position: relative;
  z-index: 0;
}

.hero-layout,
.hero-visual {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.hero-visual {
  overflow: hidden;
  position: relative;
  background: #f4dce6;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
}
.hero-swipe-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 10, 14, 0.04) 0%, rgba(18, 10, 14, 0.52) 100%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

main {
  position: relative;
  z-index: 2;
  scroll-snap-align: start;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto 3rem;
  padding-top: 1.2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

#intro-message {
  margin-top: 0;
}

#itinerario {
  margin-top: 1.4rem;
}

.intro-copy {
  margin: 0.5rem 0 0;
  color: #6f5160;
}
#iban {
  margin-top: 1.5rem;
}

#iscrizione {
  margin-top: 1.4rem;
}

.iban-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 195, 217, 0.33), transparent 36%),
    var(--bg-card);
}

h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: #563543;
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.2;
}

.iban-value {
  margin: 0.38rem 0 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: #c25c84;
  letter-spacing: 0.04em;
  word-break: break-word;
}

.iban-note {
  margin: 0.32rem 0 0;
  color: #725564;
  font-size: 0.93rem;
}

.itinerary-intro {
  margin: 0.4rem 0 0.9rem;
  color: #6f5160;
}

.itinerary-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.itinerary-step {
  border-radius: 14px;
  border: 1px solid rgba(214, 160, 180, 0.45);
  background: rgba(255, 247, 250, 0.78);
  padding: 0.82rem 0.9rem;
}

.itinerary-step h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.22rem;
  color: #5d3b4a;
}

.itinerary-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.58rem;
  border: 1px solid rgba(214, 160, 180, 0.45);
}

.itinerary-step p {
  margin: 0.34rem 0 0;
  color: #6a4d5b;
}

.form-intro {
  margin: 0.4rem 0 0.9rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.field {
  display: grid;
  gap: 0.24rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: #674654;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border-radius: 11px;
  border: 1px solid rgba(204, 143, 167, 0.5);
  background: rgba(255, 253, 253, 0.93);
  color: #3f2d34;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #cf6f95;
  outline: 2px solid rgba(230, 136, 171, 0.28);
  outline-offset: 1px;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

button {
  margin-top: 0.1rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(95deg, #d87098, #ef9cb8);
  color: #fff8fb;
  font-weight: 700;
  padding: 0.74rem 1.16rem;
  transition: transform 180ms ease, filter 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

button:disabled {
  cursor: default;
  filter: none;
  opacity: 0.88;
  transform: none;
}

.ghost {
  margin: 0;
  background: rgba(255, 244, 248, 0.92);
  color: #7c4d64;
  border: 1px solid rgba(198, 136, 160, 0.58);
  box-shadow: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.56rem;
  font-size: 0.95rem;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  accent-color: #cf6f95;
}

.form-hint {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: #735563;
}

.feedback {
  margin: 0;
  min-height: 1.5rem;
  color: #944f6d;
  font-weight: 700;
}

.feedback.is-success {
  margin-top: 1.1rem;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  line-height: 1.25;
  color: #8f214f;
  text-align: center;
  text-wrap: balance;
}

.feedback.is-error {
  margin-top: 0.65rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1;
  color: #ef2c2c;
  font-weight: 600;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.74s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 200ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  24% {
    transform: translate3d(calc(var(--drift, 54px) * 0.45), 24vh, 0) rotate(110deg);
  }
  47% {
    transform: translate3d(calc(var(--drift, 54px) * -0.5), 50vh, 0) rotate(210deg);
  }
  72% {
    transform: translate3d(calc(var(--drift, 54px) * 0.66), 80vh, 0) rotate(320deg);
  }
  100% {
    transform: translate3d(calc(var(--drift, 54px) * -0.35), 120vh, 0) rotate(420deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 980px) {
  .itinerary-grid {
    grid-template-columns: 1fr;
  }

  .iban-card {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .container {
    margin-top: 0;
    padding-top: 0.9rem;
  }
}

@media (max-width: 560px) {
  h2 {
    font-size: 1.28rem;
  }
}

.submit-spaced {
  margin-top: 1rem;
  margin-bottom: 1.6rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.site-footer {
  margin-top: 0.5rem;
  background: linear-gradient(95deg, #d87098, #ef9cb8);
  color: #fff7fb;
  border-top: 1px solid rgba(255, 233, 242, 0.35);
  font-size:0.85rem
}

.site-footer__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0.5rem;
}

.site-footer__title {
  margin: 0;
  font-weight: 700;
}

.site-footer__brand {
  margin-bottom: 0;
}

.site-footer a,
.site-footer a:visited {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffe7f2;
}
.site-footer__inner p {
  margin: 0.35rem 0;
}

/* Evidenzia la dedica per gli sposi */
label[for="note"] {
  color: #7a2d4f;
  font-weight: 700;
}

#note {
  border: 2px solid rgba(194, 92, 132, 0.58);
  background: linear-gradient(180deg, rgba(255, 250, 252, 0.98), rgba(255, 240, 246, 0.95));
  box-shadow: 0 0 0 4px rgba(255, 210, 226, 0.55);
  min-height: 128px;
}

#note:focus {
  border-color: #bd4e7c;
  outline: 2px solid rgba(230, 136, 171, 0.35);
  box-shadow: 0 0 0 5px rgba(255, 196, 218, 0.62);
}
/* Highlight IBAN card */
.iban-card {
  position: relative;
  border: 2px solid rgba(194, 92, 132, 0.42);
  border-radius: 18px;
  box-shadow:
    0 10px 24px rgba(194, 92, 132, 0.18),
    0 0 0 4px rgba(255, 216, 230, 0.55);
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 195, 217, 0.44), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 243, 248, 0.96));
}

.iban-card h2 {
  color: #4d2e3a;
}

.iban-note {
  color: #5f4552;
}
/* Evidenzia importo del regalo */
label[for="importoRegalo"] {
  color: #7a2d4f;
  font-weight: 700;
}

#importoRegalo {
  border: 2px solid rgba(194, 92, 132, 0.58);
  background: linear-gradient(180deg, rgba(255, 250, 252, 0.98), rgba(255, 240, 246, 0.95));
  box-shadow: 0 0 0 4px rgba(255, 210, 226, 0.55);
}

#importoRegalo:focus {
  border-color: #bd4e7c;
  outline: 2px solid rgba(230, 136, 171, 0.35);
  box-shadow: 0 0 0 5px rgba(255, 196, 218, 0.62);
}

.required-asterisk {
  color: #cf2f76;
  font-weight: 700;
}
@media (min-width: 768px) {

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-layout,
  .hero-visual {
    height: auto;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-visual img {
    width: 100%;   /* 👈 zoom out vero */
    height: auto;
  }

}

    body {
    font-size: 18px; /* base più grande */
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.0rem;
  }

  h3 {
    font-size: 1.5rem!important;
  }

  p {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {

  .hero {
    height: auto;
  }

  .hero-visual {
    height: auto;
  }

  .hero-visual img {
    width: 100%;
    height: auto;        /* 🔥 QUESTO è il fix */
    object-fit: contain; /* niente tagli */
    display: block;
  }
}

.site-footer {
  margin-top: 0.5rem;
  background: linear-gradient(95deg, #d87098, #ef9cb8);
  color: #fff7fb;
  border-top: 1px solid rgba(255, 233, 242, 0.35);
  font-size: 0.7rem;   /* ← RIDOTTO */
}

.site-footer__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0.3rem;     /* ← RIDOTTO */
}

.site-footer__inner p {
  margin: 0.2rem 0;    /* ← RIDOTTO */
  line-height: 1.2;    /* ← PIÙ COMPATTO */
}


.site-footer__brand {
  font-size: 0.85rem !important;
  line-height: 1.2;
}