html, body {
  margin: 0;
  padding: 0;
  background: #FBF8F4;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  font-family: 'Karla', sans-serif;
  color: #5C4632;
  min-height: 100vh;
}

.page {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

input::placeholder, textarea::placeholder {
  color: #B4A79A;
}

.script-title {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  color: #7A4A2B;
  margin: 0;
}

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8B5E3C;
  margin-bottom: 6px;
}

.eyebrow-last {
  margin-bottom: 18px;
}

.eyebrow-announce {
  font-size: 17px;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
}

.eyebrow-time {
  font-size: 17px;
  letter-spacing: 0.2em;
  margin-bottom: 22px;
}

/* HERO */
.hero {
  background: #FFFFFF;
  color: #6B4226;
  padding: 0 28px 44px;
  text-align: center;
}

.hero-flower {
  width: 78%;
  max-width: 360px;
  display: block;
  margin: 0 auto 4px;
  pointer-events: none;
}

.hero h1.script-title {
  font-size: 54px;
  line-height: 1.1;
  margin: 0 0 22px;
}

.hero-photo-ring {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.hero-photo-frame {
  width: 200px;
  height: 200px;
  border: 1px solid #C7B9E2;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  box-shadow: 0 0 0 6px #F4F0FA;
}

.hero-photo {
  width: 182px;
  height: 182px;
  flex: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.script-date {
  font-family: 'Pinyon Script', cursive;
  font-size: 42px;
  color: #7A4A2B;
  margin: 8px 0 10px;
}

.hero-venue {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid #DCD2EA;
  border-bottom: 1px solid #DCD2EA;
  padding: 14px 26px;
}

.venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B4226;
  font-weight: 600;
}

.venue-address {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A8FB8;
}

/* SECTIONS COMMON */
.section-title {
  font-size: 40px;
  margin: 0 0 4px;
}

.section-intro {
  margin: 0 0 24px;
  font-size: 14px;
  color: #83766A;
}

/* PROGRAMMA */
.programma {
  padding: 40px 28px 36px;
  background: #F7F4FB;
  border-top: 1px solid #EAE3F3;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 64px 16px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
}

.timeline-time {
  font-weight: 700;
  font-size: 15px;
  color: #9A8FB8;
  padding-top: 1px;
}

.timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding-top: 5px;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #A9BFE3;
  flex-shrink: 0;
}

.timeline-line {
  width: 1px;
  flex: 1;
  background: #DCD2EA;
  margin-top: 4px;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
}

.timeline-title {
  font-weight: 600;
  font-size: 16px;
  color: #5C4632;
}

.timeline-note {
  font-size: 13.5px;
  color: #83766A;
  line-height: 1.45;
}

.maps {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.map-card {
  background: #FFFFFF;
  border: 1px solid #DCD2EA;
  border-radius: 12px;
  overflow: hidden;
}

.map-card-header {
  padding: 14px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9A8FB8;
  font-weight: 600;
}

.map-card-address {
  font-size: 14px;
  line-height: 1.5;
  color: #5C4632;
}

.map-iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

/* GALLERIA */
.galleria {
  background: #FFFFFF;
  padding: 40px 28px 40px;
  border-top: 1px solid #EAE3F3;
}

.upload-box {
  background: #F7F4FB;
  border: 1.5px dashed #C7B9E2;
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.text-input {
  width: 100%;
  border: 1px solid #DCD2EA;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Karla', sans-serif;
  background: #FFFFFF;
  color: #5C4632;
  outline: none;
}

.textarea {
  resize: none;
}

.btn {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Karla', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #7A4A2B;
  color: #FDFBF7;
}

.btn-secondary {
  background: #A9BFE3;
  color: #3E3550;
  min-height: 48px;
  font-size: 15px;
}

.avviso {
  font-size: 13px;
  color: #A0522D;
  text-align: center;
}

.gallery-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  margin: 0;
  background: #F7F4FB;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #EAE3F3;
  animation: fadeUp 0.4s ease both;
  flex: 0 0 72%;
  scroll-snap-align: center;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #DCD2EA;
  cursor: pointer;
}

.gallery-dot.active {
  background: #7A4A2B;
}

.gallery-more-note {
  text-align: center;
  font-size: 12.5px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #9A8FB8;
  margin-top: 10px;
}

.gallery-item-image {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
}

.gallery-item-caption {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #7A4A2B;
}

.gallery-item-message {
  font-size: 12.5px;
  color: #83766A;
  line-height: 1.4;
}

.empty-state {
  text-align: center;
  padding: 26px 20px;
  color: #B4A79A;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
}

/* GUESTBOOK */
.guestbook {
  padding: 40px 28px 40px;
  background: #F7F4FB;
  border-top: 1px solid #EAE3F3;
}

.guestbook-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guestbook-entry {
  background: #FFFFFF;
  border: 1px solid #EAE3F3;
  border-radius: 12px;
  padding: 14px 16px;
  animation: fadeUp 0.4s ease both;
}

.guestbook-entry-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: #5C4632;
  margin-bottom: 6px;
}

.guestbook-entry-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #9A8FB8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* FOOTER */
.footer {
  background: #FFFFFF;
  color: #83766A;
  text-align: center;
  padding: 32px 28px 0;
  font-size: 13px;
  border-top: 1px solid #EAE3F3;
}

.footer-initials {
  font-size: 34px;
  margin-bottom: 4px;
}

.footer .heart {
  color: #C7B9E2;
}

.footer-date {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 13px;
}

.footer-flower {
  width: 92%;
  max-width: 440px;
  display: block;
  margin: 18px auto 0;
  pointer-events: none;
  transform: rotate(180deg);
}
