@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@300;400;500;600&family=Great+Vibes&display=swap');

/* ═══════════════════════════════════════════════════════════════
   VINCENZO & CHIARA — Wedding Design System
   Based on moodboard: Avorio, Verde Oliva, Oro, Bordeaux, Rosa Cipria
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Base — Avorio, beige, bianco caldo */
  --ivory: #F7F3EC;
  --beige: #EDE4D8;
  --cream: #F2EAE0;
  --white: #FFFDF9;

  /* Verde oliva e salvia */
  --olive: #727A55;
  --olive-dark: #565E3F;
  --olive-light: #A6AD8A;
  --olive-soft: #EDEFE3;

  /* Oro champagne */
  --gold: #B89A68;
  --gold-light: #CDB584;
  --gold-faint: rgba(184,154,104,0.12);

  /* Rosso vino elegante (accento, non dominante) */
  --bordeaux: #873E45;
  --bordeaux-light: #A3565D;
  --bordeaux-soft: #F5EBEB;

  /* Lilla polvere e lavanda */
  --lilla: #B9A3C7;
  --lilla-light: #D9CEE5;
  --lilla-soft: #F3EFF6;
  --rosa: #D9CEE5;
  --rosa-soft: #F3EFF6;

  /* Testi */
  --ink: #393632;
  --ink-soft: #565248;
  --ink-muted: #85807A;

  /* Utility */
  --border: #E2D9CC;
  --border-light: #EEE7DC;
  --shadow-sm: 0 2px 10px rgba(57,54,50,0.05);
  --shadow-md: 0 8px 26px rgba(57,54,50,0.08);
  --shadow-lg: 0 20px 50px rgba(57,54,50,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --fs-xs: 0.7rem;
  --fs-sm: 0.82rem;
  --fs-base: 0.95rem;
  --fs-md: 1.1rem;
  --fs-lg: 1.4rem;
  --fs-xl: 2rem;
  --fs-3xl: clamp(2.8rem, 7vw, 4.5rem);
  --space-xs: 0.4rem;
  --space-sm: 0.8rem;
  --space-md: 1.2rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: 'Montserrat', sans-serif; font-weight: 300;
  font-size: var(--fs-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bordeaux); }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.2; margin: 0; }
h1 { font-size: var(--fs-3xl); color: var(--ink); }
h2 { font-size: var(--fs-xl); color: var(--bordeaux); }
h3 { font-size: var(--fs-lg); color: var(--ink); }
p { margin: var(--space-sm) 0; }


/* ─── BUTTONS ─── */
.btn, button[type="submit"], .access-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  background: var(--olive); color: var(--white); border: none;
  padding: 0.9rem 2.4rem; font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-sm); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.btn:hover, button[type="submit"]:hover { background: var(--olive-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active, button[type="submit"]:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--olive); border: 1.5px solid var(--olive); box-shadow: none; }
.btn-outline:hover { background: var(--olive); color: var(--white); }
.btn-bordeaux { background: var(--bordeaux); }
.btn-bordeaux:hover { background: var(--bordeaux-light); }
.btn-lilla { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--lilla); box-shadow: none; }
.btn-lilla:hover { background: var(--lilla-soft); border-color: var(--lilla); color: var(--ink); }
.btn-text {
  background: none; border: none; color: var(--olive); padding: 0.4rem 0;
  text-transform: none; letter-spacing: normal; font-weight: 500; box-shadow: none;
  border-bottom: 1px solid transparent; border-radius: 0;
}
.btn-text:hover { background: none; color: var(--bordeaux); border-bottom-color: var(--bordeaux); transform: none; }
.btn-text::after { content: ' →'; transition: margin .2s; }
.btn-text:hover::after { margin-left: 2px; }

/* ─── INPUTS ─── */
input, select, textarea {
  width: 100%; padding: 0.9rem 1.1rem; border: 1px solid var(--border);
  background: var(--white); font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-base); font-weight: 300; color: var(--ink);
  border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(114,122,85,0.12); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--ink-muted); }
textarea { min-height: 100px; resize: vertical; }
label { font-size: var(--fs-sm); font-weight: 400; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — Hero editoriale come da moodboard
   ═══════════════════════════════════════════════════════════════ */
.landing {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--ivory); position: relative; overflow-x: hidden; overflow-y: auto;
}
/* Ornamenti floreali angoli - rose e ulivo come da moodboard */
.landing::before, .landing::after {
  content: ''; position: absolute; width: 280px; height: 280px; opacity: 0.15; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 280'%3E%3Cpath d='M15 265C50 210,95 165,150 130' fill='none' stroke='%236F7448' stroke-width='1.5'/%3E%3Cpath d='M25 255C60 200,105 155,160 120' fill='none' stroke='%236F7448' stroke-width='1'/%3E%3Cellipse cx='70' cy='230' rx='12' ry='4' fill='%236F7448' transform='rotate(-40 70 230)'/%3E%3Cellipse cx='95' cy='205' rx='11' ry='4' fill='%236F7448' transform='rotate(-35 95 205)'/%3E%3Cellipse cx='120' cy='178' rx='10' ry='3.5' fill='%236F7448' transform='rotate(-30 120 178)'/%3E%3Cellipse cx='142' cy='155' rx='9' ry='3' fill='%236F7448' transform='rotate(-25 142 155)'/%3E%3Ccircle cx='200' cy='75' r='24' fill='none' stroke='%23D8B8B0' stroke-width='2'/%3E%3Ccircle cx='200' cy='75' r='15' fill='none' stroke='%23D8B8B0' stroke-width='1.2'/%3E%3Ccircle cx='200' cy='75' r='7' fill='%23D8B8B0' opacity='0.25'/%3E%3Ccircle cx='230' cy='50' r='16' fill='none' stroke='%23F5EDEB' stroke-width='2'/%3E%3Ccircle cx='230' cy='50' r='9' fill='%23F5EDEB' opacity='0.2'/%3E%3Cpath d='M250 95C242 115,238 135,242 158C256 135,260 115,250 95Z' fill='none' stroke='%23fff' stroke-width='1.5' opacity='0.5'/%3E%3Cline x1='248' y1='112' x2='248' y2='148' stroke='%23B69245' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.landing::before { top: -10px; left: -10px; }
.landing::after { bottom: -10px; right: -10px; transform: rotate(180deg); }

.hero-card {
  width: 100%; max-width: 620px; text-align: center; padding: 0;
  background: transparent; border: none; box-shadow: none; position: relative; z-index: 1;
}
.hero-card::before { display: none; }

.monogram-img { width: 300px; height: 300px; object-fit: contain; margin: 0 auto var(--space-md); display: block; mix-blend-mode: multiply; }
.monogram-img--sm { width: 80px; height: 80px; }
.monogram { font-family: 'Cormorant Garamond', serif; color: var(--gold); font-size: 1.3rem; letter-spacing: 0.6em; font-weight: 500; margin-bottom: var(--space-md); }

.couple-names {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4rem); color: var(--ink);
  letter-spacing: 0.04em; margin: var(--space-sm) 0; line-height: 1.1;
}
.date {
  letter-spacing: 0.3em; color: var(--bordeaux); font-size: var(--fs-sm);
  font-weight: 400; text-transform: uppercase; margin: var(--space-md) 0;
}
.date::before, .date::after { content: '—'; margin: 0 0.8rem; color: var(--gold); }
.hero-intro {
  font-family: 'Cormorant Garamond', serif; font-size: var(--fs-md); font-style: italic;
  color: var(--ink-soft); max-width: 400px; margin: var(--space-sm) auto var(--space-lg); line-height: 1.6;
}
.floral-corner { display: none; }

/* Gold separator */
.gold-sep { display: block; width: 50px; height: 1px; background: var(--gold); margin: var(--space-lg) auto; border: none; position: relative; }


/* =========================================================
   COUNTDOWN MATRIMONIALE
   ========================================================= */

.hero-editorial .countdown-section {
  width: min(100%, 620px);
  margin: 1.15rem auto 0;
  text-align: center;
}

.hero-editorial .countdown-title {
  margin: 0 0 1rem;

  color: #756d66;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero-editorial .countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;

  width: 100%;
  text-align: center;
}

.hero-editorial .countdown div {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 112px;
  padding: 1rem 0.4rem;

  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.94),
      rgba(247, 243, 236, 0.78)
    );

  border: 1px solid rgba(184, 154, 104, 0.34);
  border-radius: 12px;

  box-shadow:
    0 12px 28px rgba(70, 61, 52, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-editorial .countdown div::before {
  content: "";

  position: absolute;
  top: 8px;
  left: 50%;

  width: 24px;
  height: 1px;

  background: var(--gold);
  opacity: 0.55;
  transform: translateX(-50%);
}

.hero-editorial .countdown strong {
  display: block;

  color: #302a26;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-editorial .countdown span {
  display: block;
  margin-top: 0.65rem;

  color: #8a8179;
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* ─── ACCESS ─── */
.access-section { margin-top: var(--space-lg); width: 100%; text-align: center; }
.access-label { font-family: 'Cormorant Garamond', serif; font-size: var(--fs-lg); font-style: italic; color: var(--ink-soft); margin-bottom: var(--space-md); }
.access-form { display: flex; flex-direction: column; gap: var(--space-sm); align-items: stretch; flex: 1; }
.access-row { display: flex; gap: var(--space-xl); align-items: flex-start; width: 100%; }
.access-row .family-matches { flex: 1; margin-top: 0; text-align: left; }
.access-form input { text-align: center; border-color: var(--border-light); background: rgba(255,255,255,0.8); }
.access-form input:focus { background: var(--white); }
.access-form button { margin-top: var(--space-sm); }
.error { color: var(--bordeaux); font-size: var(--fs-sm); margin-top: var(--space-xs); }
.family-matches { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-md); }
.family-matches a { color: var(--olive); font-weight: 400; padding: 0.7rem 1.2rem; background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--border-light); transition: all .2s; font-size: var(--fs-sm); }
.family-matches a:hover { background: var(--beige); border-color: var(--gold); }
.notice { background: var(--olive-soft); border-left: 3px solid var(--olive); padding: var(--space-md) var(--space-lg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: var(--space-lg); font-size: var(--fs-sm); color: var(--olive-dark); }

/* ═══════════════════════════════════════════════════════════════
   INVITO PERSONALE
   ═══════════════════════════════════════════════════════════════ */
.invito-page { padding-bottom: 60px; }
.invite-header { text-align: center; position: relative; padding: var(--space-2xl) var(--space-lg) var(--space-xl); background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%); border-bottom: 1px solid var(--border-light); overflow: hidden; }
.invite-header::before {
  content: ''; position: absolute; top: -10px; left: -10px; width: 180px; height: 180px; opacity: 0.7; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cpath d='M8 172C30 140,55 115,90 95' fill='none' stroke='%236F7448' stroke-width='1.1' opacity='0.4'/%3E%3Cellipse cx='45' cy='148' rx='9' ry='3' fill='%236F7448' opacity='0.35' transform='rotate(-40 45 148)'/%3E%3Ccircle cx='130' cy='40' r='13' fill='none' stroke='%23D8B8B0' stroke-width='1.3'/%3E%3Ccircle cx='130' cy='40' r='5' fill='%23D8B8B0' opacity='0.3'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.invite-greeting {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  max-width: 520px;
  margin: var(--space-md) auto;
  line-height: 1.5;
}
.invite-date { display: block; margin-top: var(--space-sm); color: var(--bordeaux); font-weight: 500; letter-spacing: 0.12em; font-size: var(--fs-sm); text-transform: uppercase; }
.content { max-width: 780px; margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.content section { background: var(--white); padding: var(--space-xl); margin: var(--space-lg) 0; border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.content section h2 { margin-bottom: var(--space-md); }

/* Location cards */
.location-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); background: transparent; border: none; box-shadow: none; padding: 0; margin: var(--space-lg) 0; }
.location-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: var(--space-xl) var(--space-lg); text-align: center; box-shadow: var(--shadow-sm); border-top: 3px solid var(--beige); }
.location-card--bordeaux { border-top-color: var(--bordeaux); }
.location-card--olive { border-top-color: var(--olive); }
.location-icon { font-size: 1.4rem; display: block; margin-bottom: var(--space-sm); color: var(--gold); }
.location-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-xs); }
.location-time { font-size: var(--fs-sm); color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.location-name { font-weight: 500; color: var(--ink); margin: var(--space-xs) 0; }
.location-address { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }

/* Timeline */
.section-alt { background: var(--cream); padding: var(--space-xl); margin: var(--space-lg) 0; border-radius: var(--radius-md); }
.section-alt h2 { text-align: center; margin-bottom: var(--space-lg); }
.section-subtitle { color: var(--ink-soft); font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: var(--fs-md); margin-bottom: var(--space-lg); }
.program-timeline { position: relative; padding-left: var(--space-xl); }
.program-timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 1px; background: var(--gold); }
.timeline-item { display: flex; align-items: baseline; gap: var(--space-md); padding: var(--space-sm) 0; position: relative; }
.timeline-dot { position: absolute; left: calc(-1 * var(--space-xl) + 4px); top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--bordeaux); border: 2px solid var(--cream); }
.timeline-time { font-family: 'Cormorant Garamond', serif; font-size: var(--fs-lg); font-weight: 600; color: var(--olive); min-width: 50px; }
.timeline-label { font-size: var(--fs-base); color: var(--ink); }
.timeline { border-left: 2px solid var(--beige); padding-left: var(--space-lg); margin-left: var(--space-sm); }
.timeline p { margin: var(--space-xs) 0; color: var(--ink-soft); }
.timeline b { color: var(--olive); font-weight: 600; }


/* ─── RSVP ─── */
.rsvp-form { margin-top: var(--space-md); }
.rsvp-options { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.rsvp-option { cursor: pointer; }
.rsvp-option input[type="radio"] { display: none; }
.rsvp-option-card { display: block; padding: var(--space-md) var(--space-lg); border: 1.5px solid var(--border); border-radius: var(--radius-md); transition: all .2s; }
.rsvp-option-card strong { display: block; color: var(--ink); font-weight: 500; }
.rsvp-option-card small { color: var(--ink-muted); font-size: var(--fs-sm); }
.rsvp-option input:checked + .rsvp-option-card { border-color: var(--gold); background: var(--gold-faint); box-shadow: 0 0 0 2px rgba(182,146,69,0.2); }
.rsvp-section-title { font-family: 'Cormorant Garamond', serif; font-size: var(--fs-lg); color: var(--ink); margin: var(--space-lg) 0 var(--space-md); }
.guest { padding: var(--space-md); background: var(--cream); margin: var(--space-sm) 0; border-radius: var(--radius-sm); border-left: 3px solid var(--olive); }
.guest-name { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--fs-base); color: var(--ink); font-weight: 400; }
.guest-name input[type="checkbox"] { width: auto; accent-color: var(--olive); }
.guest-details { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-xs); }
.privacy-check { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); font-size: var(--fs-sm); color: var(--ink-soft); }
.privacy-check input { width: auto; accent-color: var(--olive); }
.btn-rsvp { margin-top: var(--space-lg); width: 100%; padding: 1rem; }
.photo-upload { margin-top: var(--space-lg); }
.photo-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-xl); border: 2px dashed var(--gold); border-radius: var(--radius-md); background: var(--white); cursor: pointer; transition: all .2s; margin-bottom: var(--space-md); }
.photo-dropzone:hover { border-color: var(--olive); background: var(--olive-soft); }
.photo-dropzone input[type="file"] { display: none; }
.photo-dropzone-icon { font-size: 2.5rem; }
.photo-dropzone-text { font-size: var(--fs-sm); color: var(--ink-muted); }
.invite-footer { text-align: center; padding: var(--space-xl) 0; }
.invite-closing { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: var(--fs-lg); color: var(--ink-soft); margin-bottom: var(--space-lg); }
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: var(--space-sm) 0; z-index: 100; box-shadow: 0 -2px 12px rgba(0,0,0,0.05); }
.mobile-nav a { flex: 1; text-align: center; font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); padding: var(--space-xs) 0; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN — Sidebar verde oliva scuro
   ═══════════════════════════════════════════════════════════════ */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin aside { background: var(--olive-dark); color: var(--white); padding: var(--space-xl) var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); }
.admin aside h2 { font-family: 'Cormorant Garamond', serif; color: var(--gold-light); font-size: var(--fs-lg); margin-bottom: var(--space-lg); letter-spacing: 0.2em; font-weight: 400; }
.admin aside a { color: rgba(255,255,255,0.75); text-decoration: none; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); transition: all .2s; }
.admin aside a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-active { background: rgba(255,255,255,0.1) !important; color: var(--white) !important; font-weight: 500 !important; }
.admin main { padding: var(--space-xl); background: var(--ivory); }
.admin main > h1 { font-size: var(--fs-xl); color: var(--ink); margin-bottom: var(--space-lg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); }
.stats article { background: var(--white); padding: var(--space-lg); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.stats b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600; color: var(--olive); }
.stats span { color: var(--ink-muted); font-size: var(--fs-sm); }
.admin-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: var(--space-xl); margin: var(--space-lg) 0; box-shadow: var(--shadow-sm); }
.admin-card h2 { font-size: var(--fs-lg); margin-bottom: var(--space-md); }
.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-md); }
.config-grid label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); display: flex; flex-direction: column; gap: var(--space-xs); }
.config-grid button { align-self: end; grid-column: span 2; justify-self: start; }
.checkbox-line { display: flex; align-items: center; gap: var(--space-sm); background: var(--cream); padding: var(--space-md); border-radius: var(--radius-sm); }
.checkbox-line input { width: auto; margin: 0; accent-color: var(--olive); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th { padding: 0.8rem 1rem; text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); border-bottom: 2px solid var(--beige); font-weight: 500; }
td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-light); font-size: var(--fs-sm); }
.photo-row { display: flex; gap: var(--space-md); align-items: center; background: var(--white); padding: var(--space-md); margin: var(--space-xs) 0; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.admin-login { max-width: 400px; margin: 14vh auto; text-align: center; padding: var(--space-xl); }
.admin-login h1 { font-size: var(--fs-xl); color: var(--ink); margin-bottom: var(--space-xs); }
.admin-login p { color: var(--ink-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }
.admin-login input { margin-bottom: var(--space-sm); }
.admin-login button { width: 100%; margin-top: var(--space-sm); }
.badge { display: inline-block; padding: 0.25rem 0.7rem; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.04em; border-radius: 20px; text-transform: uppercase; }
.badge--success { background: var(--olive-soft); color: var(--olive-dark); }
.badge--info { background: var(--bordeaux-soft); color: var(--bordeaux); }
.badge--neutral { background: var(--cream); color: var(--ink-muted); }
.badge--danger { background: rgba(122,38,58,0.1); color: var(--bordeaux); }
.empty-state { text-align: center; padding: var(--space-xl); color: var(--ink-muted); font-style: italic; }
.filter-bar { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); flex-wrap: wrap; }
.filter-search { flex: 2; min-width: 200px; }
.filter-select { flex: 1; min-width: 140px; }
.presence-chart { margin-top: var(--space-md); }
.chart-bar { display: flex; height: 36px; border-radius: var(--radius-sm); overflow: hidden; background: var(--border-light); }
.chart-bar-fill { display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 600; color: var(--white); transition: width 0.6s; min-width: 0; }
.chart-bar--confirmed { background: var(--olive); }
.chart-bar--declined { background: var(--bordeaux); }
.chart-bar--pending { background: var(--beige); color: var(--ink-muted); }
.chart-legend { display: flex; gap: var(--space-lg); margin-top: var(--space-sm); font-size: var(--fs-sm); color: var(--ink-muted); }
.chart-legend-item { display: flex; align-items: center; gap: 0.4rem; }
.chart-legend-item i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-card { animation: fadeInUp 0.8s ease-out both; }
.countdown-section { animation: fadeInUp 0.8s ease-out 0.2s both; }
.access-section { animation: fadeInUp 0.8s ease-out 0.4s both; }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 701px) { .stats { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 700px) {
  .landing { padding: var(--space-xl) var(--space-md); }
  .landing::before, .landing::after { width: 160px; height: 160px; }
  .couple-names { font-size: clamp(2rem, 9vw, 3rem); }
  .countdown { gap: var(--space-xs); }
  .countdown strong { font-size: 2rem; }
  .access-row { flex-direction: column; gap: var(--space-md); }
  .mobile-nav { display: flex; }
  .invito-page { padding-bottom: 70px; }
  .location-section { grid-template-columns: 1fr; }
  .guest-details { grid-template-columns: 1fr; }
  .admin { display: block; }
  .admin aside { display: none; }
  .admin main { padding: var(--space-lg); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr; }
  .config-grid button { grid-column: span 1; }
  .content section { padding: var(--space-lg); }
  .content { padding: var(--space-lg) var(--space-md); }
  .invite-header { padding: var(--space-xl) var(--space-md) var(--space-lg); }
  .monogram-img { width: 300px; height: 300px; }
  .section-alt { padding: var(--space-lg) var(--space-md); }
  .filter-bar { flex-direction: column; }
}


/* ═══════════════════════════════════════════════════════════════
   TOP NAVBAR
   ═══════════════════════════════════════════════════════════════ */

/*
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem var(--space-xl);
  background: rgba(248,244,236,0.85); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-light);
}
.top-nav-logo { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; opacity: 0.9; }
.top-nav-links { display: flex; gap: var(--space-lg); }
.top-nav-links a {
  color: var(--ink-soft); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 400; transition: color .2s;
}
.top-nav-links a:hover { color: var(--bordeaux); } */

/* ═══════════════════════════════════════════════════════════════
   TOP NAVBAR 2
   ═══════════════════════════════════════════════════════════════ */

:root {
  --nav-bg: rgba(250, 247, 240, 0.88);
  --nav-bg-solid: #faf7f0;
  --nav-text: #3f463c;
  --nav-muted: #777d70;
  --nav-accent: #7f8f78;
  --nav-accent-dark: #657260;
  --nav-border: rgba(79, 87, 75, 0.14);
  --nav-shadow: 0 12px 35px rgba(56, 61, 53, 0.08);
  --nav-radius: 999px;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", Arial, sans-serif;
}

/* Barra principale */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  padding: 18px 24px;

  transition:
    padding 0.35s ease,
    background-color 0.35s ease;
}

/* Contenitore centrale */
.top-nav-inner {
  width: min(1380px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 12px 10px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--nav-radius);
  box-shadow: var(--nav-shadow);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    min-height 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

/* Variante durante lo scroll */
.top-nav.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-nav.is-scrolled .top-nav-inner {
  min-height: 64px;
  background: rgba(250, 247, 240, 0.96);
  box-shadow: 0 10px 30px rgba(56, 61, 53, 0.12);
}

/* Brand */
.top-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;

  color: var(--nav-text);
  text-decoration: none;
}

.top-nav-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;

  transition: transform 0.3s ease;
}

.top-nav-brand:hover .top-nav-logo {
  transform: scale(1.04);
}

/* Nomi accanto al monogramma */
.top-nav-names {
  display: flex;
  align-items: baseline;
  gap: 5px;

  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.top-nav-ampersand {
  color: var(--nav-accent);
  font-size: 1rem;
  font-style: italic;
}

/* Link */
.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(15px, 1.6vw, 28px);
}

.top-nav-links > a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;

  color: var(--nav-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  transition: color 0.25s ease;
}

.top-nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;

  width: 0;
  height: 1px;

  background: var(--nav-accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.top-nav-links > a:not(.nav-cta):hover,
.top-nav-links > a:not(.nav-cta):focus-visible,
.top-nav-links > a.nav-active {
  color: var(--nav-text);
}

.top-nav-links > a:not(.nav-cta):hover::after,
.top-nav-links > a:not(.nav-cta):focus-visible::after,
.top-nav-links > a.nav-active::after {
  width: 100%;
}

/* Pulsante RSVP */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 24px;

  color: #fff;
  background: var(--nav-accent);
  border: 1px solid var(--nav-accent);
  border-radius: var(--nav-radius);

  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  box-shadow: 0 8px 20px rgba(100, 115, 94, 0.18);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #fff;
  background: var(--nav-accent-dark);
  border-color: var(--nav-accent-dark);

  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(100, 115, 94, 0.24);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;

  border: 1px solid var(--nav-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 19px;
  height: 1px;
  background: var(--nav-text);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Stato hamburger aperto */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Focus accessibile */
.top-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 4px;
}

/* Tablet e mobile */
@media (max-width: 1180px) {
  .top-nav {
    padding: 14px;
  }

  .top-nav-inner {
    position: relative;
    min-height: 68px;
    padding: 8px 10px 8px 16px;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .top-nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;

    display: grid;
    grid-template-columns: 1fr;
    gap: 0;

    padding: 14px;

    background: rgba(250, 247, 240, 0.98);
    border: 1px solid var(--nav-border);
    border-radius: 28px;
    box-shadow: var(--nav-shadow);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .top-nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .top-nav-links > a:not(.nav-cta) {
    width: 100%;
    padding: 16px 14px;

    border-bottom: 1px solid var(--nav-border);

    font-size: 0.76rem;
  }

  .top-nav-links > a:not(.nav-cta)::after {
    display: none;
  }

  .top-nav-links > a.nav-active {
    color: var(--nav-accent-dark);
  }

  .nav-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .top-nav {
    padding: 10px;
  }

  .top-nav-inner {
    min-height: 62px;
    padding-left: 13px;
  }

  .top-nav-logo {
    width: 44px;
    height: 44px;
  }

  .top-nav-names {
    font-size: 1.15rem;
  }

  .top-nav-ampersand {
    font-size: 0.85rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }
}

/* Utenti che preferiscono meno animazioni */
@media (prefers-reduced-motion: reduce) {
  .top-nav,
  .top-nav-inner,
  .top-nav-logo,
  .top-nav-links,
  .top-nav-links a,
  .top-nav-links a::after,
  .nav-cta,
  .nav-toggle span {
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   HERO IVORY — delicata, floreale, romantica
   ═══════════════════════════════════════════════════════════════ */
.hero-ivory {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem var(--space-lg) var(--space-2xl);
  background:
    radial-gradient(ellipse at top, var(--cream) 0%, transparent 60%),
    var(--ivory);
  overflow: hidden;
}
/* Ornamenti floreali ricchi negli angoli: calle, lavanda, ortensie, rose */
.hero-ivory::before, .hero-ivory::after {
  content: ''; position: absolute; width: 300px; height: 380px; pointer-events: none; z-index: 0;
  background-image: url('/img/floral-corner.svg');
  background-size: contain; background-repeat: no-repeat;
}
.hero-ivory::before { top: 52px; left: -34px; }
.hero-ivory::after { bottom: 10px; right: -34px; transform: rotate(180deg); }

.hero-eyebrow-light { font-family: 'Montserrat', sans-serif; font-size: var(--fs-sm); letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-sm); position: relative; z-index: 1; }
.date::before, .date::after { content: '—'; margin: 0 0.8rem; color: var(--gold); }
.hero-amp-dark { font-family: 'Great Vibes', cursive; color: var(--bordeaux); font-size: 1.1em; }
.hero-ivory .btn { margin-top: var(--space-lg); position: relative; z-index: 1; }
.hero-ivory .hero-intro, .hero-ivory .countdown-section, .hero-ivory .couple-names, .hero-ivory .date { position: relative; z-index: 1; }

/* Access section */
.access-full { text-align: center; padding: var(--space-2xl) var(--space-lg); background: var(--cream); position: relative; overflow: hidden; }
.access-full::before, .access-full::after {
  content: ''; position: absolute; width: 200px; height: 200px; opacity: 0.7; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10 190C40 150,75 120,120 95' fill='none' stroke='%236F7448' stroke-width='1.2' opacity='0.4'/%3E%3Cellipse cx='60' cy='160' rx='10' ry='3.5' fill='%236F7448' opacity='0.35' transform='rotate(-40 60 160)'/%3E%3Ccircle cx='150' cy='45' r='15' fill='none' stroke='%23D8B8B0' stroke-width='1.4'/%3E%3Ccircle cx='150' cy='45' r='6' fill='%23D8B8B0' opacity='0.3'/%3E%3Cg opacity='0.7'%3E%3Ccircle cx='170' cy='80' r='5' fill='%23FFF' stroke='%23E8DDCC' stroke-width='0.6'/%3E%3Ccircle cx='180' cy='75' r='4.5' fill='%23FBF8F2' stroke='%23E8DDCC' stroke-width='0.6'/%3E%3Ccircle cx='163' cy='70' r='4.5' fill='%23FFF' stroke='%23E8DDCC' stroke-width='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.access-full::before { top: 10px; left: 10px; }
.access-full::after { bottom: 10px; right: 10px; transform: rotate(180deg); }
.access-full .monogram-img { margin-bottom: var(--space-sm); }
.access-label { position: relative; z-index: 1; }
.access-sub { color: var(--ink-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); position: relative; z-index: 1; }
.access-full .access-row { max-width: 420px; margin: 0 auto; position: relative; z-index: 1; }
.floral-divider {
  width: 190px; height: 38px; margin: 0 auto var(--space-lg); position: relative; z-index: 1;
  background-image: url('/img/floral-divider.svg');
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
/* Separatore botanico riutilizzabile tra le sezioni */
.section-divider { width: 190px; height: 38px; margin: var(--space-xl) auto; background: url('/img/floral-divider.svg') center/contain no-repeat; }

/* Footer */
.site-footer { text-align: center; padding: var(--space-xl); background: var(--olive-dark); color: rgba(255,255,255,0.7); }
.site-footer .monogram-img { filter: brightness(0) invert(1); opacity: 0.7; margin-bottom: var(--space-sm); }
.site-footer p { font-family: 'Cormorant Garamond', serif; font-size: var(--fs-md); letter-spacing: 0.1em; }

@media (max-width: 700px) {
  .top-nav { padding: 0.6rem var(--space-md); }
  .top-nav-links { gap: var(--space-sm); }
  .top-nav-links a { font-size: var(--fs-xs); }
  .hero-ivory::before, .hero-ivory::after { width: 180px; height: 180px; }
}


/* ─── INVITE MENU LIST (come mockup mobile) ─── */
.invite-menu-list { display: flex; flex-direction: column; gap: var(--space-sm); margin: var(--space-lg) 0 var(--space-xl); }
.invite-menu-item {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg); background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  color: var(--ink); transition: all .2s; box-shadow: var(--shadow-sm);
}
.invite-menu-item:hover { border-color: var(--gold); background: var(--gold-faint); transform: translateX(4px); }
.invite-menu-icon { color: var(--gold); font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }
.invite-menu-item span:nth-child(2) { flex: 1; font-family: 'Cormorant Garamond', serif; font-size: var(--fs-md); color: var(--bordeaux); }
.invite-menu-arrow { color: var(--ink-muted); font-size: 1.2rem; }


/* ═══════════════════════════════════════════════════════════════
   NAVBAR: scroll, CTA, menu mobile
   ═══════════════════════════════════════════════════════════════ */
.top-nav { transition: background .3s, box-shadow .3s, padding .3s; }
.top-nav.is-scrolled { background: rgba(247,243,236,0.96); box-shadow: var(--shadow-sm); padding-top: 0.5rem; padding-bottom: 0.5rem; }
.top-nav-brand { display: flex; align-items: center; }
.top-nav-links a.nav-active { color: var(--olive); position: relative; }
.top-nav-links a.nav-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); border-radius: 2px; }
.top-nav-links a.nav-cta {
  background: var(--olive); color: var(--white); padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm); letter-spacing: 0.1em; font-weight: 500;
}
.top-nav-links a.nav-cta:hover { background: var(--olive-dark); color: var(--white); }

.nav-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; box-shadow: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-soft); margin: 4px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── HERO ACTIONS ─── */
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); position: relative; z-index: 1; }
.hero-ivory .hero-actions .btn { margin-top: 0; }

/* ─── DETTAGLI EVENTO: card ampie ─── */
.details-section { padding: var(--space-2xl) var(--space-lg); background: var(--white); text-align: center; }
.details-section h2 { margin-bottom: var(--space-xl); }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); max-width: 860px; margin: 0 auto; }
.detail-card {
  background: var(--ivory); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.detail-icon { font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: var(--space-sm); }
.detail-card h3 { color: var(--bordeaux); margin-bottom: var(--space-xs); }
.detail-time { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin: 0; }
.detail-name { font-weight: 500; color: var(--ink); margin: var(--space-sm) 0 var(--space-xs); }
.detail-addr { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0 0 var(--space-md); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .top-nav { flex-wrap: wrap; }
  .top-nav-links {
    display: none; flex-direction: column; width: 100%; gap: var(--space-sm);
    padding: var(--space-md) 0 var(--space-sm); align-items: flex-start;
  }
  .top-nav-links.is-open { display: flex; }
  .top-nav-links a { font-size: var(--fs-sm); padding: 0.5rem 0; width: 100%; }
  .top-nav-links a.nav-cta { text-align: center; }
  .top-nav-links a.nav-active::after { display: none; }
  .hero-ivory::before, .hero-ivory::after { width: 150px; height: 190px; opacity: 0.75; }
  .hero-ivory::before { top: 70px; left: -26px; }
  .hero-ivory::after { bottom: 0; right: -26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .details-section { padding: var(--space-xl) var(--space-md); }
}


/* ─── FORM FIELDS con label sempre visibili ─── */
.field { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.field-label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); letter-spacing: 0.02em; }
.field-hint { font-size: var(--fs-xs); color: var(--ink-muted); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); }
@media (max-width: 700px) { .field-grid { grid-template-columns: 1fr; } }

/* ─── DRAG & DROP attivo ─── */
.photo-dropzone.is-dragover { border-color: var(--olive); background: var(--olive-soft); }
.upload-progress { margin-top: var(--space-md); }
.upload-progress-bar { height: 6px; background: var(--border-light); border-radius: 99px; overflow: hidden; }
.upload-progress-fill { height: 100%; width: 0; background: var(--olive); transition: width .3s ease; }

/* =====================================================================
   MOCKUP-ALIGNED PUBLIC THEME
   ===================================================================== */
:root{--paper:#fbf7f0;--olive-deep:#5f6845;--gold-line:rgba(184,154,104,.58)}
.home-page{background:var(--paper);overflow-x:hidden}
.home-page::before{content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' seed='7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");mix-blend-mode:multiply}
.home-page .top-nav{min-height:72px;padding:.7rem clamp(1.2rem,4.8vw,4.8rem);background:rgba(251,247,240,.88);border-bottom:1px solid rgba(184,154,104,.2);backdrop-filter:blur(18px) saturate(120%)}
.home-page .top-nav-logo{width:58px;height:58px;border-radius:50%;object-fit:cover;mix-blend-mode:multiply}
.home-page .top-nav-links{gap:clamp(1rem,2.4vw,2.6rem)}
.home-page .top-nav-links a{color:var(--ink-soft);font-size:.69rem;font-weight:500;letter-spacing:.16em}
.home-page .top-nav-links a.nav-cta{padding:.85rem 1.35rem;border-radius:3px;background:lightgray;box-shadow:0 9px 24px rgba(95,104,69,.16)}
.hero-editorial{min-height:100svh;padding:8.2rem 1.5rem 4.8rem;isolation:isolate;background:radial-gradient(circle at 50% 9%,rgba(255,255,255,.95),transparent 32%),radial-gradient(circle at 15% 80%,rgba(217,206,229,.22),transparent 29%),radial-gradient(circle at 84% 78%,rgba(237,228,216,.72),transparent 27%),linear-gradient(180deg,#fbf7f0 0%,#fffdf9 52%,#f4eadf 100%)}
.hero-editorial::before,.hero-editorial::after{display:none}
.hero-inner{position:relative;z-index:4;width:min(100%,900px);margin:0 auto;display:flex;flex-direction:column;align-items:center}
.hero-floral{position:absolute;z-index:2;width:clamp(300px,37vw,570px);height:clamp(430px,58vw,760px);background:url('/img/floral-corner.svg') center/contain no-repeat;pointer-events:none;filter:drop-shadow(0 20px 24px rgba(57,54,50,.08))}
.hero-floral--left{left:clamp(-170px,-10vw,-80px);bottom:-70px;transform:scale(1.28)}
.hero-floral--right{right:clamp(-170px,-10vw,-80px);top:50px;transform:rotate(180deg) scale(1.22)}
.hero-watercolor{position:absolute;z-index:1;width:420px;height:420px;border-radius:44% 56% 63% 37%/46% 38% 62% 54%;opacity:.42;pointer-events:none}
.hero-watercolor--left{left:-175px;bottom:-65px;background:radial-gradient(circle at 70% 35%,rgba(217,206,229,.95),rgba(185,163,199,.2) 48%,transparent 73%);transform:rotate(17deg)}
.hero-watercolor--right{right:-180px;top:90px;background:radial-gradient(circle at 28% 55%,rgba(237,228,216,.95),rgba(184,154,104,.12) 50%,transparent 73%);transform:rotate(-22deg)}
.hero-editorial .hero-eyebrow-light{margin-bottom:.55rem;color:var(--ink-soft);font-size:.72rem;letter-spacing:.48em}
.hero-monogram{width:300px!important;height:300px!important;margin:0 auto .4rem!important;border-radius:50%;object-fit:cover;mix-blend-mode:multiply}
.hero-editorial .couple-names {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(0.65rem, 2vw, 1.35rem);

  width: 100%;
  margin: 0.4rem auto 0;
  text-align: center;
}

.hero-editorial .hero-amp-dark {
  display: inline-block;
  margin: 0;

  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 1.15em;
  font-weight: 400;
  line-height: 1;

  transform: translateY(0.06em);
}
@media (max-width: 520px) {
  .hero-editorial .couple-names {
    gap: 0.12rem;
  }

  .hero-editorial .hero-amp-dark {
    font-size: 0.9em;
    margin: 0.12rem 0;
  }
}
.hero-editorial .date{margin:1.55rem 0 .6rem;color:var(--ink-soft);font-size:.82rem;letter-spacing:.38em}
.hero-editorial .date::before,.hero-editorial .date::after{width:76px;background:var(--gold);opacity:.8}
.hero-heart{color:var(--gold);font-size:.55rem;transform:rotate(45deg);margin:.25rem 0 .5rem}
.hero-editorial .hero-intro{max-width:560px;margin:.4rem auto 1.25rem;color:#6a625b;font-size:1.12rem;font-style:normal;line-height:1.62}
.hero-editorial .countdown-section{width:min(100%,590px);margin:.95rem auto 0}
.hero-editorial .countdown-title{margin-bottom:.8rem;color:var(--ink-muted);font-size:.98rem}
.hero-editorial .countdown{gap:.85rem}
.hero-editorial .countdown div{min-height:110px;display:flex;flex-direction:column;justify-content:center;padding:1rem .45rem;border:1px solid rgba(184,154,104,.34);border-radius:3px;background:rgba(255,253,249,.74);box-shadow:0 14px 26px rgba(74,66,57,.04)}
.hero-editorial .countdown strong{color:#24201d;font-size:clamp(2.1rem,5vw,3.2rem);font-weight:400}
.hero-editorial .countdown span{margin-top:.6rem;font-size:.61rem;letter-spacing:.18em}
.hero-editorial .hero-actions{margin-top:1.75rem;gap:1rem}
.hero-editorial .btn,.access-editorial .btn,.access-editorial button{border-radius:3px}
.hero-editorial .btn-lilla{background:rgba(255,253,249,.7);border-color:rgba(184,154,104,.68)}
.hero-scroll{margin-top:1.35rem;color:var(--gold);font-size:1.8rem;line-height:1;animation:heroBounce 2s ease-in-out infinite}@keyframes heroBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
.section-kicker{margin-bottom:.55rem;color:var(--gold);font-size:.71rem;font-weight:600;letter-spacing:.28em;text-transform:uppercase}
.home-page .details-section{padding:5.2rem 1.5rem 5.8rem;background:#fffdf9}
.home-page .details-section::before{background:radial-gradient(circle at 5% 50%,rgba(217,206,229,.2),transparent 22%),radial-gradient(circle at 95% 55%,rgba(166,173,138,.14),transparent 20%)}
.home-page .details-section h2,.home-timeline-section h2,.access-editorial h2{color:#2f2a26;font-size:clamp(2.6rem,5vw,4rem);font-weight:400;letter-spacing:.03em}
.home-page .section-divider{width:170px;height:34px;margin:.55rem auto 2.5rem}
.event-showcase{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8rem;width:min(100%,1120px);margin:0 auto}
.event-card{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(210px,.92fr);min-height:340px;overflow:hidden;border:1px solid rgba(184,154,104,.21);border-radius:18px;background:rgba(255,253,249,.96);box-shadow:0 18px 42px rgba(65,56,48,.09);transition:.3s}
.event-card:hover{transform:translateY(-5px);box-shadow:0 26px 54px rgba(65,56,48,.13)}
.event-card-media{min-height:100%;overflow:hidden;background:var(--cream)}.event-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s}.event-card:hover .event-card-media img{transform:scale(1.03)}
.event-card-body{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:2rem 1.65rem;text-align:left}.event-symbol{color:var(--gold);font-size:1.6rem;line-height:1}.event-label{margin:.6rem 0 .15rem;color:#3c3530;font:400 1.65rem/1.2 'Cormorant Garamond',serif}.event-card .detail-time{margin:0 0 .8rem;color:var(--gold);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase}.event-card h3{margin-bottom:.4rem;color:#2e2925;font-size:1.15rem;line-height:1.35}.event-card .detail-addr{min-height:2.8em;margin:0 0 .75rem;color:var(--ink-muted);font-size:.8rem;line-height:1.45}
.home-timeline-section{position:relative;overflow:hidden;padding:4.8rem 1.5rem 5.4rem;background:linear-gradient(180deg,#f9f3eb 0%,#fffdf9 48%,#f7efe7 100%);text-align:center}.timeline-floral{position:absolute;width:230px;height:300px;background:url('/img/floral-corner.svg') center/contain no-repeat;opacity:.72;pointer-events:none}.timeline-floral--left{left:-90px;bottom:-95px}.timeline-floral--right{right:-90px;top:-65px;transform:rotate(180deg)}
.wedding-timeline{position:relative;z-index:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(100%,1000px);margin:2.5rem auto 0}.wedding-timeline::before{content:"";position:absolute;left:9%;right:9%;top:36px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),var(--gold),transparent)}.wedding-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;padding:0 .55rem}.wedding-step::after{content:"";position:absolute;top:32px;right:-3px;width:7px;height:7px;border-radius:50%;background:var(--gold)}.wedding-step:last-child::after{display:none}.wedding-step-icon{display:grid;place-items:center;width:72px;height:72px;margin-bottom:.9rem;border:1px solid rgba(184,154,104,.34);border-radius:50%;background:rgba(255,253,249,.92);color:var(--gold);font:400 1.45rem/1 'Cormorant Garamond',serif;box-shadow:0 10px 24px rgba(74,66,57,.06)}.wedding-step strong{color:#3b342e;font:600 1rem/1.2 'Cormorant Garamond',serif}.wedding-step>span:last-child{margin-top:.25rem;color:#5f5852;font:400 .92rem/1.3 'Cormorant Garamond',serif}
.access-editorial{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);align-items:stretch;gap:0;min-height:690px;padding:0;background:#fffdf9;text-align:left}.access-editorial::before,.access-editorial::after{display:none}.access-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(3.5rem,7vw,7rem) clamp(1.5rem,6vw,6rem);background:radial-gradient(circle at 0% 100%,rgba(217,206,229,.3),transparent 28%),linear-gradient(145deg,#fbf7f0,#fffdf9)}.access-editorial .access-sub{max-width:590px;margin:.8rem 0 1.6rem;color:var(--ink-muted);line-height:1.7}.access-panel{width:min(100%,560px);padding:1.65rem;border:1px solid rgba(184,154,104,.2);border-radius:18px;background:rgba(255,253,249,.9);box-shadow:0 20px 44px rgba(70,61,52,.08)}.access-editorial .access-form{gap:.85rem}.access-editorial .access-form button{margin-top:.35rem;width:100%}.access-editorial .family-matches{margin-top:1rem}.match-message{margin-bottom:.8rem;font-family:'Cormorant Garamond',serif;font-style:italic}.access-photo-link{align-self:flex-start;margin-top:1.3rem}.access-art{position:relative;display:grid;place-items:center;min-height:100%;overflow:hidden;background:radial-gradient(circle at 65% 38%,rgba(217,206,229,.42),transparent 38%),linear-gradient(150deg,#eee3d7,#f9f3eb 55%,#d9cee5 130%)}.access-art img{position:relative;z-index:1;width:min(88%,690px);filter:drop-shadow(0 30px 45px rgba(66,57,48,.14))}
.site-footer-editorial{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:2rem;padding:2.6rem clamp(1.5rem,7vw,7rem);background:linear-gradient(90deg,rgba(217,206,229,.55),rgba(255,253,249,.96) 42%,rgba(237,228,216,.96));color:var(--ink-soft);border-top:1px solid rgba(184,154,104,.2)}.site-footer-editorial .monogram-img{width:100px;height:100px;margin:0;border-radius:50%;object-fit:cover;filter:none;mix-blend-mode:multiply}.footer-copy{text-align:left}.footer-copy--right{text-align:right}.footer-copy p{margin:.15rem 0;font-family:'Cormorant Garamond',serif;font-size:1.02rem}.footer-copy .footer-eyebrow{color:var(--bordeaux);font-size:1.2rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase}
.invito-page{background:radial-gradient(circle at 8% 8%,rgba(217,206,229,.22),transparent 24%),radial-gradient(circle at 94% 20%,rgba(166,173,138,.14),transparent 22%),var(--paper)}.invito-page .invite-header{min-height:630px;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 50% 15%,rgba(255,255,255,.96),transparent 38%),linear-gradient(180deg,#fbf7f0,#f4e9de)}.invito-page .invite-header::before{width:330px;height:420px;top:0;left:-80px;opacity:.9;background-image:url('/img/floral-corner.svg')}.invito-page .invite-header::after{content:"";position:absolute;right:-80px;bottom:-45px;width:330px;height:420px;background:url('/img/floral-corner.svg') center/contain no-repeat;transform:rotate(180deg);opacity:.9}.invito-page .content{max-width:980px}.invito-page .content>section{border-radius:20px;box-shadow:0 14px 34px rgba(67,58,49,.07)}
body.landing{background:radial-gradient(circle at 20% 20%,rgba(217,206,229,.28),transparent 30%),radial-gradient(circle at 88% 82%,rgba(166,173,138,.17),transparent 28%),linear-gradient(180deg,#fbf7f0,#f4e9de)}body.landing::before,body.landing::after{opacity:.9;width:340px;height:430px;background-image:url('/img/floral-corner.svg')}body.landing main:not(.admin-login){position:relative;z-index:2;padding:2rem;border:1px solid rgba(184,154,104,.2);border-radius:24px;background:rgba(255,253,249,.88);box-shadow:0 28px 60px rgba(68,58,49,.1);backdrop-filter:blur(12px)}
@media(max-width:1160px){.event-showcase{grid-template-columns:1fr;max-width:800px}.event-card{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.hero-floral{width:310px;height:430px;opacity:.77}.hero-floral--left{left:-165px;bottom:-55px}.hero-floral--right{right:-165px;top:82px}.wedding-timeline{grid-template-columns:1fr;gap:1rem;width:min(100%,560px)}.wedding-timeline::before{left:35px;right:auto;top:36px;bottom:36px;width:1px;height:auto;background:linear-gradient(180deg,transparent,var(--gold),var(--gold),transparent)}.wedding-step{display:grid;grid-template-columns:72px 76px 1fr;gap:.8rem;align-items:center;text-align:left}.wedding-step-icon{margin:0}.wedding-step::after{display:none}.wedding-step>span:last-child{margin-top:0;font-size:1rem}.access-editorial{grid-template-columns:1fr}.access-art{min-height:560px}.site-footer-editorial{grid-template-columns:1fr;text-align:center}.footer-copy,.footer-copy--right{text-align:center}.site-footer-editorial .monogram-img{justify-self:center}}
@media(max-width:780px){.home-page .top-nav{min-height:62px}.home-page .top-nav-logo{width:46px;height:46px}.hero-editorial{min-height:auto;padding:7.2rem 1rem 4rem}.hero-editorial .couple-names{font-size:clamp(3rem,15vw,4.8rem)}.hero-editorial .date{letter-spacing:.18em;line-height:1.7}.hero-editorial .date::before,.hero-editorial .date::after{width:24px;margin-left:.4rem;margin-right:.4rem}.hero-editorial .hero-intro{max-width:360px;font-size:1rem}.hero-editorial .countdown{gap:.4rem}.hero-editorial .countdown div{min-height:90px}.hero-editorial .countdown strong{font-size:2rem}.event-card{grid-template-columns:1fr}.event-card-media{height:250px}.event-card-body{align-items:center;text-align:center}.access-copy{padding:4rem 1rem}.access-panel{padding:1.1rem}.access-art{min-height:420px}.timeline-floral{opacity:.42}}
@media(max-width:480px){.hero-monogram{width:300px!important;height:300px!important}.hero-editorial .couple-names{font-size:clamp(2.65rem,15vw,4rem)}.hero-editorial .countdown strong{font-size:1.65rem}.hero-editorial .countdown span{font-size:.52rem;letter-spacing:.08em}.wedding-step{grid-template-columns:64px 64px 1fr}.wedding-step-icon{width:64px;height:64px}.home-page .details-section,.home-timeline-section{padding-left:.85rem;padding-right:.85rem}}


/* =====================================================================
   REALISTIC ASSET PACK — generated from the approved visual mockup
   These overrides intentionally replace the simplified line-art SVGs.
   ===================================================================== */
.hero-editorial {
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.98), transparent 34%),
    linear-gradient(180deg, #fcf8f1 0%, #fffdf9 52%, #f4eadf 100%);
}

.hero-floral {
  position: absolute;
  z-index: 0;
  pointer-events: none;

  width: clamp(420px, 44vw, 700px);
  height: clamp(600px, 70vw, 920px);

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.58;
  mix-blend-mode: multiply;

  -webkit-mask-image: radial-gradient(
    ellipse 78% 80% at center,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.18) 82%,
    transparent 100%
  );

  mask-image: radial-gradient(
    ellipse 78% 80% at center,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.18) 82%,
    transparent 100%
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-floral--left {
  left: clamp(-250px, -13vw, -110px);
  bottom: -140px;

  background-image: url("/img/hero-floral-right.webp");

  transform: scaleX(-1);
}

.hero-floral--right {
  right: clamp(-250px, -13vw, -110px);
  top: 70px;
  background-image: url("/img/hero-floral-right.webp");
}

@media (max-width: 780px) {
  .hero-floral--left {
    left: -215px;
    bottom: -110px;
    transform: scaleX(-1);
  }

  .hero-floral--right {
    right: -215px;
    top: 62px;
    transform: none;
  }
}



.hero-watercolor { opacity: .18; }

.event-card-media { background: #efe7dd; }
.event-card-media img {
  filter: saturate(.93) contrast(.98) brightness(1.02);
  object-position: center center;
}
.event-card:first-child .event-card-media img { object-position: 50% 45%; }
.event-card:last-child .event-card-media img { object-position: 48% 52%; }

.timeline-floral {
  background-image: url('/img/hero-floral-left.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 310px;
  height: 430px;
  opacity: .48;
}
.timeline-floral--left { left: -130px; bottom: -145px; }
.timeline-floral--right {
  right: -125px;
  top: -125px;
  transform: scaleX(-1);
  background-image: url('/img/hero-floral-right.webp');
}

.access-art {
  background:
    radial-gradient(circle at 30% 30%, rgba(217,206,229,.30), transparent 38%),
    linear-gradient(145deg,#f5eee7,#e9ddd1 56%,#d9cee5 145%);
}
.access-art::after {
  content: '';
  position: absolute;
  inset: 6% 7%;
  border: 1px solid rgba(184,154,104,.58);
  border-radius: 52% 48% 45% 55% / 45% 56% 44% 55%;
  pointer-events: none;
}
.access-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(.95) contrast(.99) drop-shadow(0 30px 45px rgba(66,57,48,.12));
}

.invito-page .invite-header::before {
  background-image: url('/img/hero-floral-left.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 360px;
  height: 500px;
  left: -100px;
  top: 10px;
  opacity: .72;
}
.invito-page .invite-header::after {
  background-image: url('/img/hero-floral-right.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 360px;
  height: 500px;
  right: -105px;
  bottom: -55px;
  transform: none;
  opacity: .72;
}

body.landing::before {
  background-image: url('/img/hero-floral-left.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 390px;
  height: 530px;
  left: -125px;
  bottom: -120px;
  top: auto;
  opacity: .62;
}
body.landing::after {
  background-image: url('/img/hero-floral-right.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 390px;
  height: 530px;
  right: -125px;
  top: -85px;
  bottom: auto;
  transform: none;
  opacity: .62;
}

.site-footer-editorial {
  position: relative;
  overflow: hidden;
}
.site-footer-editorial::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  background: url('/img/footer-floral-band.webp') center bottom / cover no-repeat;
  opacity: .12;
  pointer-events: none;
}
.site-footer-editorial > * { position: relative; z-index: 1; }

@media (max-width: 1100px) {
  .hero-floral { opacity: .78; }
  .hero-floral--left { left: -235px; }
  .hero-floral--right { right: -225px; }
}
@media (max-width: 780px) {
  .hero-editorial { overflow: hidden; }
  .hero-floral { width: 330px; height: 470px; opacity: .58; }
  .hero-floral--left { left: -205px; bottom: -110px; }
  .hero-floral--right { right: -215px; top: 62px; }
  .timeline-floral { width: 220px; height: 300px; opacity: .24; }
  .access-art img { min-height: 420px; }
  .invito-page .invite-header::before,
  .invito-page .invite-header::after { width: 250px; height: 350px; opacity: .45; }
  body.landing::before, body.landing::after { width: 260px; height: 360px; opacity: .38; }
}
@media (max-width: 480px) {
  .hero-floral { opacity: .42; }
  .hero-floral--left { left: -230px; }
  .hero-floral--right { right: -240px; }
  .event-card-media { height: 280px; }
  .access-art::after { inset: 5%; }
}


/* ─── DETAIL CARD con immagine ─── */
.detail-card-img {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-lg)) var(--space-md);
  width: calc(100% + 2 * var(--space-lg));
}

/* =====================================================================
   AREA SPOSI — ADMIN EXPERIENCE V2
   Elegant, modern and consistent with the public wedding identity.
   This section intentionally overrides the legacy admin rules above.
   ===================================================================== */
:root {
  --admin-bg: #f6f1e9;
  --admin-panel: rgba(255, 253, 249, 0.94);
  --admin-panel-strong: #fffdf9;
  --admin-sidebar: #4f583c;
  --admin-sidebar-dark: #3f4731;
  --admin-sidebar-soft: rgba(255, 255, 255, 0.08);
  --admin-line: rgba(184, 154, 104, 0.24);
  --admin-line-strong: rgba(184, 154, 104, 0.44);
  --admin-shadow: 0 18px 45px rgba(63, 53, 44, 0.08);
  --admin-shadow-hover: 0 24px 56px rgba(63, 53, 44, 0.12);
}

body.admin {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 7%, rgba(217, 206, 229, 0.28), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(166, 173, 138, 0.14), transparent 27%),
    var(--admin-bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.admin::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' seed='11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.25rem 1.35rem;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 163, 199, 0.18), transparent 30%),
    linear-gradient(165deg, var(--admin-sidebar) 0%, var(--admin-sidebar-dark) 100%);
  box-shadow: 16px 0 42px rgba(42, 48, 31, 0.10);
  overflow-y: auto;
}

.admin-sidebar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(205, 181, 132, 0.56), transparent);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
  padding: 0.45rem 0.45rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-brand .monogram-img {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 12px 24px rgba(24, 29, 17, 0.18);
  mix-blend-mode: normal;
}

.admin-brand-copy strong {
  display: block;
  color: #fffdf9;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
}

.admin-brand-copy span {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-nav-label {
  margin: 0.2rem 0.55rem 0.55rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  margin: 0.12rem 0;
  padding: 0.72rem 0.9rem;
  color: rgba(255, 255, 255, 0.70);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}

.admin-sidebar a::before {
  content: attr(data-icon);
  width: 22px;
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  text-align: center;
}

.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.admin-sidebar a.sidebar-active {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(184, 154, 104, 0.20), rgba(255, 255, 255, 0.08)) !important;
  border-color: rgba(205, 181, 132, 0.26);
  box-shadow: inset 3px 0 0 var(--gold-light);
  font-weight: 600 !important;
}

.admin-sidebar-spacer { flex: 1; min-height: 1.2rem; }
.admin-sidebar .admin-link-secondary { color: rgba(255, 255, 255, 0.54); font-size: 0.72rem; }
.admin-sidebar .admin-link-danger:hover { color: #fff; background: rgba(135, 62, 69, 0.30); }

.admin-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 3.3vw, 3.6rem) 4rem;
  background: transparent;
}

.admin-main-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
}

.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--admin-line);
}

.admin-page-header-copy { min-width: 0; }
.admin-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.admin-page-header h1,
.admin-main > h1 {
  margin: 0;
  color: #2f2a26;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.admin-page-subtitle {
  max-width: 720px;
  margin: 0.42rem 0 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.admin-back-link:hover { color: var(--bordeaux); }

body.admin .notice {
  position: relative;
  margin: 0 0 1.3rem;
  padding: 0.9rem 1.1rem 0.9rem 2.8rem;
  color: var(--olive-dark);
  border: 1px solid rgba(114, 122, 85, 0.22);
  border-left: 3px solid var(--olive);
  border-radius: 12px;
  background: rgba(237, 239, 227, 0.82);
  box-shadow: var(--shadow-sm);
}
body.admin .notice::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  color: #fff;
  background: var(--olive);
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.admin-stats--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.admin-stat-card {
  position: relative;
  min-height: 134px;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1.05rem;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(255,253,249,.88));
  box-shadow: var(--admin-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.admin-stat-card::after {
  content: '';
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 206, 229, 0.30), transparent 67%);
}
.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--admin-line-strong);
  box-shadow: var(--admin-shadow-hover);
}
.admin-stat-card--olive { box-shadow: inset 0 3px 0 var(--olive), var(--admin-shadow); }
.admin-stat-card--wine { box-shadow: inset 0 3px 0 var(--bordeaux), var(--admin-shadow); }
.admin-stat-card--gold { box-shadow: inset 0 3px 0 var(--gold), var(--admin-shadow); }
.admin-stat-card--lilac { box-shadow: inset 0 3px 0 var(--lilla), var(--admin-shadow); }

.admin-stat-card b {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 0.28rem;
  color: var(--olive-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.15rem, 3.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
}
.admin-stat-card--wine b { color: var(--bordeaux); }
.admin-stat-card--gold b { color: #987b45; }
.admin-stat-card--lilac b { color: #8f77a1; }
.admin-stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--ink-muted);
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.35;
}

.admin-card {
  position: relative;
  overflow: hidden;
  margin: 1.25rem 0;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: var(--admin-panel);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(8px);
}
.admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--gold), var(--lilla));
  opacity: 0.72;
}
.admin-card--danger::before { background: linear-gradient(90deg, var(--bordeaux), #b26c72); }
.admin-card--danger { border-color: rgba(135, 62, 69, 0.20); }

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-section-head h2,
.admin-card h2 {
  margin: 0;
  color: #3c342e;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
}
.admin-section-head p,
.admin-card-description {
  max-width: 760px;
  margin: 0.34rem 0 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

body.admin input,
body.admin select,
body.admin textarea {
  min-height: 46px;
  padding: 0.78rem 0.95rem;
  color: var(--ink);
  border: 1px solid rgba(184, 154, 104, 0.30);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
body.admin textarea { min-height: 112px; }
body.admin input:hover,
body.admin select:hover,
body.admin textarea:hover { border-color: rgba(114, 122, 85, 0.44); }
body.admin input:focus,
body.admin select:focus,
body.admin textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(114, 122, 85, 0.10);
  background: #fff;
}

.admin-form-grid,
body.admin .config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}
body.admin .config-grid label,
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 600;
}
.admin-field--full,
.admin-grid-span-2 { grid-column: 1 / -1; }
.admin-field small,
body.admin .config-grid label small {
  color: var(--ink-muted) !important;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.45;
}

body.admin .checkbox-line {
  min-height: 72px;
  flex-direction: row !important;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(114, 122, 85, 0.18);
  border-radius: 12px;
  background: rgba(237, 239, 227, 0.58);
}
body.admin .checkbox-line input { min-height: 0; width: auto; }

body.admin table input[type="checkbox"],
body.admin .guest-selection,
body.admin #selectAllGuests {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  margin: 0;
  accent-color: var(--olive);
}

.admin-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-line);
}

body.admin .btn,
body.admin button,
body.admin button[type='submit'] {
  min-height: 42px;
  padding: 0.72rem 1.3rem;
  border-radius: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  box-shadow: 0 8px 20px rgba(86, 94, 63, 0.15);
}
body.admin .btn-outline,
body.admin button.btn-outline {
  color: var(--olive-dark);
  border: 1px solid rgba(114, 122, 85, 0.54);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: none;
}
body.admin .btn-outline:hover,
body.admin button.btn-outline:hover { color: #fff; background: var(--olive); }
body.admin .btn-bordeaux,
body.admin button.btn-bordeaux { background: var(--bordeaux); }
body.admin .btn-small,
body.admin button.btn-small { min-height: 34px; padding: 0.48rem 0.8rem; font-size: 0.62rem; }

.admin-filter-bar,
body.admin .filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, .8fr)) auto;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(184, 154, 104, 0.18);
  border-radius: 14px;
  background: rgba(247, 243, 236, 0.68);
}
body.admin .filter-search,
body.admin .filter-select { min-width: 0; width: 100%; }

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
body.admin table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}
body.admin thead { background: linear-gradient(180deg, #f7f1e8, #f2e9de); }
body.admin th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.78rem 0.9rem;
  color: #746a61;
  border-bottom: 1px solid var(--admin-line-strong);
  background: inherit;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
body.admin td {
  padding: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(226, 217, 204, 0.62);
  font-size: 0.74rem;
  vertical-align: middle;
}
body.admin tbody tr { transition: background .2s ease, transform .2s ease; }
body.admin tbody tr:hover { background: rgba(243, 239, 246, 0.56); }
body.admin tbody tr:last-child td { border-bottom: 0; }
body.admin td strong { color: #302a26; font-weight: 600; }

body.admin .badge {
  padding: 0.34rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
body.admin .badge--success { border-color: rgba(114,122,85,.18); background: rgba(237,239,227,.9); }
body.admin .badge--info { border-color: rgba(185,163,199,.25); background: rgba(243,239,246,.92); color: #806b92; }
body.admin .badge--neutral { border-color: rgba(184,154,104,.18); background: rgba(247,243,236,.95); }
body.admin .badge--danger { border-color: rgba(135,62,69,.18); background: rgba(245,235,235,.94); }

.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.admin-inline-actions form { margin: 0; }

.admin-chart-card { padding-bottom: 1.3rem; }
body.admin .presence-chart { margin-top: 0.35rem; }
body.admin .chart-bar {
  height: 22px;
  border: 1px solid rgba(184,154,104,.16);
  border-radius: 999px;
  background: #eee7dc;
  box-shadow: inset 0 2px 4px rgba(57,54,50,.05);
}
body.admin .chart-bar-fill { font-size: 0.58rem; }
body.admin .chart-legend { flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem; font-size: 0.68rem; }
body.admin .chart-legend-item i { border-radius: 50%; }

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(255,253,249,.72);
}
.admin-detail-item {
  min-height: 88px;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}
.admin-detail-item:nth-child(2n) { border-right: 0; }
.admin-detail-item:nth-last-child(-n+2) { border-bottom: 0; }
.admin-detail-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.admin-detail-value { color: #332d29; font-size: 0.84rem; font-weight: 500; }
.admin-detail-value a { margin-left: 0.4rem; font-size: 0.67rem; font-weight: 600; }

.admin-message-box {
  margin: 0.45rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(185,163,199,.22);
  border-left: 3px solid var(--lilla);
  border-radius: 12px;
  background: rgba(243,239,246,.72);
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.55;
}

.admin-nucleus-list { display: grid; gap: 0.9rem; }
.admin-nucleus-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(255,253,249,.96), rgba(247,243,236,.78));
  box-shadow: 0 8px 22px rgba(63,53,44,.05);
}
.admin-nucleus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-nucleus-title { color: #342e29; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; }
.admin-nucleus-count { margin-left: 0.45rem; color: var(--ink-muted); font-size: 0.68rem; }
.admin-pill-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }

body.admin .empty-state,
.admin-empty-state {
  padding: 2.4rem 1.2rem;
  border: 1px dashed rgba(184,154,104,.34);
  border-radius: 14px;
  color: var(--ink-muted);
  background: rgba(247,243,236,.56);
  text-align: center;
}

/* Login */
body.admin-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(420px, 1.08fr);
  background: #fbf7f0;
  overflow: hidden;
}
.admin-login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(63,71,49,.44), rgba(63,71,49,.86)),
    radial-gradient(circle at 35% 22%, rgba(185,163,199,.42), transparent 34%),
    linear-gradient(145deg, #6b7550, #3f4731);
}
.admin-login-visual::before,
.admin-login-visual::after {
  content: '';
  position: absolute;
  width: 440px;
  height: 600px;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .48;
}
.admin-login-visual::before {
  left: -155px;
  bottom: -165px;
  background-image: url('/img/hero-floral-left.webp');
}
.admin-login-visual::after {
  right: -190px;
  top: -150px;
  background-image: url('/img/hero-floral-right.webp');
}
.admin-login-visual-content { position: relative; z-index: 2; max-width: 540px; }
.admin-login-visual .monogram-img {
  width: 112px;
  height: 112px;
  margin: 0 0 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,253,249,.94);
  box-shadow: 0 18px 40px rgba(29,34,21,.24);
  mix-blend-mode: normal;
}
.admin-login-visual h1 { color: #fffdf9; font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 400; line-height: .95; }
.admin-login-visual p { max-width: 500px; margin-top: 1rem; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.75; }

.admin-login-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(217,206,229,.32), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(166,173,138,.15), transparent 25%),
    #fbf7f0;
}
.admin-login-card {
  width: min(100%, 460px);
  padding: clamp(1.7rem, 4vw, 2.6rem);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  background: rgba(255,253,249,.90);
  box-shadow: 0 28px 70px rgba(63,53,44,.12);
  backdrop-filter: blur(14px);
}
.admin-login-card .admin-eyebrow { margin-bottom: .45rem; }
.admin-login-card h2 { color: #302a26; font-size: 2.6rem; font-weight: 400; }
.admin-login-card > p { margin: .4rem 0 1.5rem; color: var(--ink-muted); font-size: .78rem; }
.admin-login-form { display: grid; gap: .9rem; }
.admin-login-form label { display: grid; gap: .42rem; color: var(--ink-soft); font-size: .70rem; font-weight: 600; }
.admin-login-form input { min-height: 50px; border-radius: 11px; }
.admin-login-form button { width: 100%; margin-top: .35rem; min-height: 50px; border-radius: 11px; }
.admin-login-help { margin-top: 1.1rem; color: var(--ink-muted); font-size: .66rem; text-align: center; }

@media (max-width: 1260px) {
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stats--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin .filter-bar { grid-template-columns: minmax(200px, 1.6fr) repeat(2, minmax(140px, .8fr)); }
}

@media (max-width: 900px) {
  body.admin {
    display: block;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    padding: .72rem .85rem;
    overflow-x: auto;
    box-shadow: 0 8px 26px rgba(42,48,31,.12);
  }
  .admin-sidebar::after,
  .admin-nav-label,
  .admin-brand-copy,
  .admin-sidebar-spacer { display: none; }
  .admin-brand { flex: 0 0 auto; margin: 0 .35rem 0 0; padding: 0; border: 0; }
  .admin-brand .monogram-img { width: 46px; height: 46px; }
  .admin-sidebar a {
    flex: 0 0 auto;
    min-height: 38px;
    margin: 0;
    padding: .55rem .72rem;
    white-space: nowrap;
    font-size: .68rem;
  }
  .admin-sidebar a::before { width: auto; }
  .admin-sidebar a:hover { transform: none; }
  .admin-main { padding: 1.4rem 1rem 3rem; }
  .admin-page-header { align-items: flex-start; flex-direction: column; }
  .admin-header-actions { width: 100%; }
  .admin-login-visual { display: none; }
  body.admin-login-page { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .admin-stats,
  .admin-stats--five,
  .admin-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stat-card { min-height: 118px; }
  .admin-form-grid,
  body.admin .config-grid { grid-template-columns: 1fr; }
  .admin-field--full,
  .admin-grid-span-2,
  .admin-form-actions { grid-column: 1; }
  body.admin .filter-bar { grid-template-columns: 1fr; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-detail-item { border-right: 0; }
  .admin-detail-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--admin-line); }
  .admin-detail-item:last-child { border-bottom: 0; }
  .admin-section-head { flex-direction: column; }
  .admin-nucleus-head { align-items: flex-start; flex-direction: column; }
  .admin-login-panel { padding: 1rem; }
}

@media (max-width: 460px) {
  .admin-stats,
  .admin-stats--five,
  .admin-stats--four { grid-template-columns: 1fr; }
  .admin-sidebar a span { display: none; }
  .admin-sidebar a { width: 40px; justify-content: center; padding: .5rem; }
  .admin-sidebar a::before { font-size: 1.1rem; }
}

/* Specificity guards for legacy admin selectors defined earlier in this file. */
body.admin aside.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.6rem 1.25rem 1.35rem;
  color: rgba(255,255,255,.86);
  background:
    radial-gradient(circle at 20% 0%, rgba(185,163,199,.18), transparent 30%),
    linear-gradient(165deg, var(--admin-sidebar) 0%, var(--admin-sidebar-dark) 100%);
}
body.admin aside.admin-sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  margin: .12rem 0;
  padding: .72rem .9rem;
  color: rgba(255,255,255,.70);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .78rem;
}
body.admin aside.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.08);
}
body.admin main.admin-main {
  min-width: 0;
  padding: clamp(1.5rem,3vw,3rem) clamp(1rem,3.3vw,3.6rem) 4rem;
  background: transparent;
}
@media (max-width: 900px) {
  body.admin aside.admin-sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    padding: .72rem .85rem;
    overflow-x: auto;
  }
  body.admin aside.admin-sidebar a {
    flex: 0 0 auto;
    min-height: 38px;
    margin: 0;
    padding: .55rem .72rem;
    white-space: nowrap;
    font-size: .68rem;
  }
  body.admin main.admin-main { padding: 1.4rem 1rem 3rem; }
}

/* Menu pubblico e configuratore menu */
body.wedding-menu-page {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(217, 206, 229, .38), transparent 28%),
    radial-gradient(circle at 92% 28%, rgba(166, 173, 138, .20), transparent 25%),
    #fbf7f0;
}
.menu-public-hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem 2.5rem;
  text-align: center;
}
.menu-public-hero .monogram-img { width: 112px; height: 112px; margin-bottom: 1.25rem; }
.menu-public-hero h1 { margin: .25rem 0 1rem; font-size: clamp(3rem, 9vw, 6rem); font-weight: 400; }
.menu-home-link { position: absolute; top: 1.5rem; left: 1.25rem; color: var(--olive-dark); font-size: .75rem; }
.menu-public-intro { max-width: 650px; margin: 0 auto; color: var(--ink-muted); line-height: 1.8; white-space: pre-line; }
.menu-public-content { width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 4rem; }
.menu-coming-soon { padding: clamp(2.5rem, 8vw, 5rem) 1.5rem; border: 1px solid rgba(184,154,104,.28); border-radius: 24px; background: rgba(255,253,249,.82); text-align: center; box-shadow: 0 22px 55px rgba(73,62,51,.08); }
.menu-coming-soon > span { color: var(--gold); font-size: 2rem; }
.menu-coming-soon h2 { margin: .8rem 0; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 400; }
.menu-coming-soon p { color: var(--ink-muted); }
.menu-public-section { position: relative; padding: clamp(2.2rem, 7vw, 4rem) clamp(1rem, 5vw, 3rem); border-top: 1px solid rgba(184,154,104,.34); text-align: center; }
.menu-section-number { margin: 0; color: var(--gold); font-size: .67rem; font-weight: 700; letter-spacing: .22em; }
.menu-public-section > h2 { margin: .35rem 0 .65rem; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 400; }
.menu-section-description { max-width: 620px; margin: 0 auto 2rem; color: var(--ink-muted); line-height: 1.7; white-space: pre-line; }
.menu-public-items { display: grid; gap: 1.8rem; }
.menu-public-item h3 { margin: 0; color: var(--olive-dark); font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 500; }
.menu-public-item > p { max-width: 640px; margin: .35rem auto 0; color: var(--ink-muted); line-height: 1.65; white-space: pre-line; }
.menu-item-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem .8rem; margin-top: .6rem; }
.menu-item-meta span, .menu-item-meta small { padding: .25rem .6rem; border-radius: 999px; background: rgba(237,239,227,.9); color: var(--olive-dark); font-size: .66rem; }
.menu-item-meta small { background: rgba(243,239,246,.9); color: #765f88; }
.menu-public-item .menu-item-note { color: var(--bordeaux); font-size: .72rem; font-style: italic; }
.menu-public-footer { margin: 1rem auto 0; padding: 2.5rem 1rem; color: var(--olive-dark); font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; text-align: center; white-space: pre-line; }
.menu-public-bottom { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; border-top: 1px solid rgba(184,154,104,.22); }
.menu-public-bottom a { color: var(--olive-dark); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.menu-admin-section { border-left: 3px solid var(--lilla); }
.menu-admin-item { margin-top: 1rem; padding: 1rem; border: 1px solid var(--admin-line); border-radius: 14px; background: rgba(247,243,236,.52); }
.menu-add-item { margin-top: 1rem; padding: 1rem; border: 1px dashed rgba(114,122,85,.36); border-radius: 14px; }
.menu-add-item summary { cursor: pointer; color: var(--olive-dark); font-weight: 600; }
.menu-add-item[open] summary { margin-bottom: 1rem; }
.rsvp-guest-options { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .85rem 0; }
.rsvp-guest-options label { display: flex; align-items: center; gap: .4rem; color: var(--ink-muted); font-size: .72rem; }
.rsvp-guest-options input { width: auto; }

@media (max-width: 600px) {
  .menu-home-link { position: static; display: inline-block; margin-bottom: 2rem; }
  .menu-public-hero { padding-top: 2rem; }
  .menu-public-content { width: min(100% - 1rem, 900px); }
  .menu-public-section { padding-inline: .5rem; }
}

.top-nav-links a.nav-active::after {
  display: none;
}

@media (max-width: 1180px) {
  .top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;

    background: #faf7f0;
    border: 1px solid rgba(79, 87, 75, 0.28);
    box-shadow: 0 4px 12px rgba(56, 61, 53, 0.10);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle span {
    background: #3f463c;
    opacity: 1;
  }
}

/* Correzione definitiva menu mobile */
@media (max-width: 780px) {

  .home-page .top-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .top-nav-inner {
    justify-content: flex-end;
    background: #faf7f0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .top-nav .nav-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;

    background: #7f8f78 !important;
    border: 1px solid #657260 !important;
    border-radius: 50%;
    box-shadow: none !important;

    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .top-nav .nav-toggle span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    margin: 0 !important;

    background: #ffffff !important;
    border-radius: 2px;
    opacity: 1 !important;
  }

  .home-page .top-nav .top-nav-links {
    background: #faf7f0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 0;
  }

  .home-page .top-nav .top-nav-links.is-open {
    display: grid !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 780px) {
  .home-page .top-nav .nav-cta {
    width: auto;
    min-height: 44px;
    padding: 0 18px;
    margin: 10px auto 0;

    font-size: 0.64rem;
    letter-spacing: 0.07em;
  }
}


/* =========================================================
   HERO — ANNUNCIO, NOMI E CENTRATURA
   ========================================================= */

.hero-inner {
  width: min(100%, 900px);
  margin-inline: auto;
  padding-inline: 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* Annuncio sopra il monogramma */
.hero-announcement {
  position: relative;
  z-index: 3;

  width: 100%;
  margin: 0 auto 0.45rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;

  text-align: center;
}

.hero-announcement-title {
  margin: 0;

  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: none;
}

.hero-editorial .hero-announcement-subtitle {
  display: block;

  width: 100%;
  max-width: 560px;
  margin: 0 auto;

  color: #6a625b;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.12rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.62;
  letter-spacing: normal;

  text-align: center;
  text-wrap: balance;
}

/* Nomi degli sposi */
.hero-editorial .couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vw, 1rem);

  width: 100%;
  margin: 0.4rem auto 0;

  color: #2f2925;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-align: center;
}

.hero-editorial .couple-name {
  display: inline-block;
  text-shadow: 0 2px 14px rgba(57, 54, 50, 0.06);
}

.hero-editorial .hero-amp-dark {
  display: inline-block;
  margin: 0 0.1em;

  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1;

  transform: translateY(0.06em) rotate(-4deg);
}

/* Smartphone */
@media (max-width: 520px) {
  .hero-inner {
    padding-inline: 0.75rem;
  }

  .hero-announcement {
    gap: 0.5rem;
    padding-inline: 0.25rem;
  }

  .hero-announcement-title {
    font-size: 0.82rem;
    letter-spacing: 0.32em;
  }

  .hero-editorial .hero-announcement-subtitle {
    max-width: 330px;
    font-size: 1.12rem;
    line-height: 1.45;
  }

  .hero-announcement-subtitle::before,
  .hero-announcement-subtitle::after {
    display: none;
  }

  .hero-editorial .couple-names {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0;
    width: 100%;
    margin: 0.4rem auto 0;

    font-size: clamp(2.8rem, 14vw, 4rem);
    line-height: 0.84;
    text-align: center;
  }

  .hero-editorial .couple-name {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-editorial .hero-amp-dark {
    display: block;
    margin: 0.08em 0 0.02em;

    font-size: 0.62em;
    line-height: 0.8;
    transform: none;
  }
}

@media (max-width: 520px) {
  .hero-announcement-title {
    font-size: 2rem;
  }
}

.hero-editorial .wedding-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;

  margin: 1.35rem auto 0.8rem;

  color: var(--ink-soft);
  text-align: center;
}

.hero-editorial .wedding-date-day {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
}

.hero-editorial .wedding-date-time {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .hero-editorial .wedding-date {
    gap: 0.3rem;
  }

  .hero-editorial .wedding-date-time {
    font-size: 1.4rem;
  }
}

.hero-editorial .hero-intro {
  max-width: 620px;
  margin: 1rem auto 1.5rem;

  color: #625b55;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.01em;

  text-align: center;
  text-wrap: balance;
}

@media (max-width: 520px) {
  .hero-editorial .hero-intro {
    max-width: 340px;
    margin: 0.9rem auto 1.3rem;

    font-size: 1.1rem;
    line-height: 1.4;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 520px) {
  .hero-editorial .countdown-section {
    width: 100%;
    margin-top: 1rem;
  }

  .hero-editorial .countdown-title {
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
  }

  .hero-editorial .countdown {
    gap: 0.4rem;
  }

  .hero-editorial .countdown div {
    min-height: 88px;
    padding: 0.8rem 0.15rem;
    border-radius: 9px;
  }

  .hero-editorial .countdown div::before {
    top: 7px;
    width: 18px;
  }

  .hero-editorial .countdown strong {
    font-size: clamp(1.75rem, 9vw, 2.15rem);
  }

  .hero-editorial .countdown span {
    margin-top: 0.5rem;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }
}

/* =========================================================
   HERO — PULSANTI
   ========================================================= */

.hero-editorial .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 0.8rem;
  width: min(100%, 760px);
  margin: 1.8rem auto 0;
}

/* Stile comune */
.hero-editorial .hero-actions .btn {
  min-height: 48px;
  padding: 0.85rem 1.6rem;

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;

  box-shadow: none;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Pulsante principale */
.hero-editorial .hero-actions .btn:first-child {
  color: #fff;
  background: var(--olive);
  border: 1px solid var(--olive);

  box-shadow: 0 10px 24px rgba(86, 94, 63, 0.17);
}

.hero-editorial .hero-actions .btn:first-child:hover {
  color: #fff;
  background: var(--olive-dark);
  border-color: var(--olive-dark);

  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(86, 94, 63, 0.22);
}

/* Save the Date e menu */
.hero-editorial .hero-actions .btn-lilla {
  color: #5f5852;
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid rgba(184, 154, 104, 0.6);
}

.hero-editorial .hero-actions .btn-lilla:hover {
  color: #443d37;
  background: #fffdf9;
  border-color: var(--gold);

  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(70, 61, 52, 0.08);
}

/* Scopri i dettagli */
.hero-editorial .hero-actions .btn-outline {
  min-height: auto;
  padding: 0.75rem 0.5rem;

  color: var(--olive-dark);
  background: transparent;
  border: 0;
  border-radius: 0;

  box-shadow: none;
}

.hero-editorial .hero-actions .btn-outline::after {
  content: " ↓";
  margin-left: 0.35rem;

  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
}

.hero-editorial .hero-actions .btn-outline:hover {
  color: var(--bordeaux);
  background: transparent;

  transform: translateY(2px);
  box-shadow: none;
}

@media (max-width: 520px) {
  .hero-editorial .hero-actions {
    flex-direction: column;
    gap: 0.65rem;

    width: 100%;
    max-width: 340px;
    margin-top: 1.5rem;
  }

  .hero-editorial .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 1rem;

    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .hero-editorial .hero-actions .btn-outline {
    width: auto;
    min-height: auto;
    margin-top: 0.15rem;
  }
}


.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-editorial {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}




.home-timeline-section {
  position: relative;
  overflow: hidden;

  padding: 5.5rem 1.5rem 6rem;

  background:
    radial-gradient(
      circle at 10% 90%,
      rgba(217, 206, 229, 0.2),
      transparent 26%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(237, 228, 216, 0.55),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #f9f3eb 0%,
      #fffdf9 48%,
      #f7efe7 100%
    );

  text-align: center;
}

.home-timeline-section h2 {
  margin: 0;

  color: #2f2a26;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.timeline-intro {
  max-width: 560px;
  margin: 1rem auto 3rem;

  color: #746c65;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
}

.wedding-timeline {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  width: min(100%, 1050px);
  margin: 0 auto;
}

.wedding-timeline::before {
  content: "";

  position: absolute;
  top: 43px;
  left: 9%;
  right: 9%;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 154, 104, 0.75) 12%,
    rgba(184, 154, 104, 0.75) 88%,
    transparent
  );
}

.wedding-step {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0 0.65rem;
}

.wedding-step-number {
  display: grid;
  place-items: center;

  width: 86px;
  height: 86px;
  margin-bottom: 1.1rem;

  color: var(--gold);
  background: rgba(255, 253, 249, 0.94);

  border: 1px solid rgba(184, 154, 104, 0.42);
  border-radius: 50%;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;

  box-shadow:
    0 12px 28px rgba(70, 61, 52, 0.07),
    inset 0 0 0 6px rgba(247, 243, 236, 0.7);
}

.wedding-step strong {
  color: #3c3530;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.wedding-step > span:last-child {
  max-width: 150px;
  margin-top: 0.45rem;

  color: #68605a;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

@media (max-width: 780px) {
  .home-timeline-section {
    padding: 4.5rem 1.2rem 5rem;
  }

  .timeline-intro {
    max-width: 340px;
    margin-bottom: 2.5rem;
  }

  .wedding-timeline {
    grid-template-columns: 1fr;
    gap: 1.4rem;

    width: min(100%, 440px);
  }

  .wedding-timeline::before {
    top: 36px;
    bottom: 36px;
    left: 36px;
    right: auto;

    width: 1px;
    height: auto;

    background: linear-gradient(
      180deg,
      transparent,
      rgba(184, 154, 104, 0.75) 10%,
      rgba(184, 154, 104, 0.75) 90%,
      transparent
    );
  }

  .wedding-step {
    display: grid;
    grid-template-columns: 72px 70px 1fr;
    align-items: center;
    gap: 0.8rem;

    padding: 0;
    text-align: left;
  }

  .wedding-step-number {
    width: 72px;
    height: 72px;
    margin: 0;

    font-size: 1rem;
  }

  .wedding-step strong {
    font-size: 1.2rem;
  }

  .wedding-step > span:last-child {
    max-width: none;
    margin: 0;

    font-size: 1.05rem;
  }
}

.access-editorial .section-kicker {
  margin-bottom: 0.6rem;

  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.access-editorial h2 {
  margin: 0;

  color: #2f2a26;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .access-editorial .section-kicker {
    font-size: 1.45rem;
  }

  .access-editorial h2 {
    font-size: 2.35rem;
  }
}

.access-editorial .access-form button,
.access-editorial .access-photo-link {
  align-self: center;
  justify-content: center;

  min-width: 260px;
  min-height: 50px;
  padding: 0.9rem 1.8rem;

  border-radius: 999px;
  text-align: center;
}

.access-editorial .access-form button {
  margin-inline: auto;
}

.access-editorial .access-photo-link {
  display: inline-flex;
  margin: 1.3rem auto 0;
}

@media (max-width: 520px) {
  .access-editorial .access-form button,
  .access-editorial .access-photo-link {
    width: 100%;
    min-width: 0;
  }
}

.access-editorial {
  display: block;
  min-height: auto;
  padding: 5rem 1.5rem;
  text-align: center;
  background: #fffdf9;
}

.access-copy {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 0;
  align-items: center;
  text-align: center;
  background: transparent;
}

.access-editorial .access-sub {
  margin: 0.9rem auto 1.8rem;
  text-align: center;
}

.access-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  text-align: left;
}

.access-editorial .access-form button {
  margin-inline: auto;
}

.access-photo-link {
  margin-inline: auto;
}

.access-family-note {
  max-width: 580px;
  margin: 0 auto 1.5rem;
  padding: 0.8rem 1rem;

  color: #6a625b;
  background: rgba(237, 239, 227, 0.65);
  border: 1px solid rgba(114, 122, 85, 0.18);
  border-radius: 12px;

  font-family: "Cormorant Garamond", serif;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 520px) {
  .access-family-note {
    max-width: 340px;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
  }
}


.rsvp-contact-intro {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}

.invite-photo-button {
  margin-top: 1rem;
}

.btn-rsvp {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 999px;
}

/* Rimuove le immagini laterali dalla copertina dell'invito */
.invito-page .invite-header::before,
.invito-page .invite-header::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
}

.invito-page .countdown-section {
  width: min(100%, 590px);
  margin: 2rem auto 0;
  text-align: center;
}

.invito-page .countdown-title {
  margin: 0 0 1rem;
  color: #756d66;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
}

.invito-page .countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.invito-page .countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 105px;
  padding: 1rem 0.4rem;

  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(184, 154, 104, 0.34);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(70, 61, 52, 0.06);
}

.invito-page .countdown strong {
  color: #302a26;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.invito-page .countdown span {
  margin-top: 0.6rem;
  color: #8a8179;
  font-family: "Montserrat", sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .invito-page .countdown {
    gap: 0.4rem;
  }

  .invito-page .countdown > div {
    min-height: 86px;
    padding: 0.75rem 0.15rem;
    border-radius: 9px;
  }

  .invito-page .countdown strong {
    font-size: 1.8rem;
  }

  .invito-page .countdown span {
    font-size: 0.5rem;
    letter-spacing: 0.07em;
  }
}

/* =========================================================
   MENU PARTECIPAZIONE — UGUALE AI PULSANTI DELLA HOME
   ========================================================= */

.invito-page .invite-menu-home-style {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;

  gap: 0.8rem !important;
  width: min(100%, 850px) !important;
  margin: 0 auto 3rem !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.invito-page .invite-menu-home-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-height: 48px !important;
  padding: 0.85rem 1.6rem !important;
  margin: 0 !important;

  color: #5f5852 !important;
  background: rgba(255, 253, 249, 0.76) !important;

  border: 1px solid rgba(184, 154, 104, 0.6) !important;
  border-radius: 999px !important;

  font-family: "Montserrat", sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em !important;
  text-align: center !important;
  text-transform: uppercase !important;

  box-shadow: none !important;
  transform: none;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease !important;
}

.invito-page .invite-menu-home-button:hover {
  color: #443d37 !important;
  background: #fffdf9 !important;
  border-color: var(--gold) !important;

  transform: translateY(-2px) !important;

  box-shadow:
    0 10px 24px rgba(70, 61, 52, 0.08) !important;
}

.invito-page .invite-menu-home-button--primary {
  color: #ffffff !important;
  background: var(--olive) !important;
  border-color: var(--olive) !important;

  box-shadow:
    0 10px 24px rgba(86, 94, 63, 0.17) !important;
}

.invito-page .invite-menu-home-button--primary:hover {
  color: #ffffff !important;
  background: var(--olive-dark) !important;
  border-color: var(--olive-dark) !important;

  box-shadow:
    0 14px 28px rgba(86, 94, 63, 0.22) !important;
}

@media (max-width: 620px) {
  .invito-page .invite-menu-home-style {
    flex-direction: column !important;
    flex-wrap: nowrap !important;

    width: min(100%, 340px) !important;
    gap: 0.65rem !important;
    margin-bottom: 2.5rem !important;
  }

  .invito-page .invite-menu-home-button {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.85rem 1rem !important;

    font-size: 0.67rem !important;
    letter-spacing: 0.08em !important;
  }
}


/* =========================================================
   INVITO — LUOGHI DEL NOSTRO SÌ
   ========================================================= */

.invito-page #luoghi {
  padding: 3rem 2rem;
}

/* Riduce lo spazio tra titolo e card */
.invito-page #luoghi h2 {
  margin: 0 0 0.35rem;
}

.invito-page #luoghi .section-divider {
  width: 145px;
  height: 28px;
  margin: 0.35rem auto 1.4rem;
}

.invito-page #luoghi .details-grid {
  gap: 1.3rem;
  margin-top: 0;
}

/* Card */
.invito-page #luoghi .detail-card {
  overflow: hidden;

  padding: 0 1.5rem 1.7rem;

  background: #fffdf9;
  border: 1px solid rgba(184, 154, 104, 0.26);
  border-radius: 18px;

  box-shadow:
    0 14px 32px rgba(65, 56, 48, 0.07);
}

/* Immagine piena nella parte superiore */
.invito-page #luoghi .detail-card-img {
  display: block;

  width: calc(100% + 3rem);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;

  margin: 0 -1.5rem 1.4rem;

  object-fit: cover;
  object-position: center;

  border-radius: 0;
}

/* Posizione specifica delle due immagini */
.invito-page #luoghi .detail-card:first-child .detail-card-img {
  object-position: center 42%;
}

.invito-page #luoghi .detail-card:last-child .detail-card-img {
  object-position: center 50%;
}

.invito-page #luoghi .detail-card h3 {
  margin: 0 0 0.35rem;

  color: #342e29;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.invito-page #luoghi .detail-time {
  margin: 0 0 0.8rem;

  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.invito-page #luoghi .detail-name {
  margin: 0 0 0.25rem;

  color: #3d3732;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.invito-page #luoghi .detail-addr {
  margin: 0 0 1rem;
  min-height: auto;

  color: #7a726b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.invito-page #luoghi .btn-text {
  margin-top: 0.2rem;
}

@media (max-width: 620px) {
  .invito-page #luoghi {
    padding: 2.6rem 1rem;
  }

  .invito-page #luoghi .section-divider {
    margin-bottom: 1.1rem;
  }

  .invito-page #luoghi .details-grid {
    gap: 1rem;
  }

  .invito-page #luoghi .detail-card {
    padding: 0 1.1rem 1.4rem;
    border-radius: 15px;
  }

  .invito-page #luoghi .detail-card-img {
    width: calc(100% + 2.2rem);
    margin: 0 -1.1rem 1.2rem;
    aspect-ratio: 4 / 3;
  }

  .invito-page #luoghi .detail-card h3 {
    font-size: 1.55rem;
  }
}

/* Timeline della partecipazione coerente con la homepage */
.invito-page .invite-timeline-section {
  margin: 2rem 0;
  padding: 4rem 1.5rem 4.5rem;
  border: 1px solid rgba(184, 154, 104, 0.18);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(67, 58, 49, 0.07);
}

.invito-page .invite-timeline-section .timeline-intro {
  margin-bottom: 2.5rem;
}

.invito-page .invite-timeline-section .wedding-timeline {
  width: min(100%, 900px);
}

@media (max-width: 780px) {
  .invito-page .invite-timeline-section {
    padding: 3.5rem 1rem 4rem;
  }
}

/* Data della partecipazione */

.invito-page .invite-date-main {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;

  margin-top: 0.15rem;
  padding: 1.1rem 2.4rem;

  text-align: center;
}

.invito-page .invite-date-main::before,
.invito-page .invite-date-main::after {
  content: "";

  position: absolute;
  top: 50%;

  width: 46px;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 154, 104, 0.85)
  );
}

.invito-page .invite-date-main::before {
  right: calc(100% - 0.8rem);
}

.invito-page .invite-date-main::after {
  left: calc(100% - 0.8rem);
  transform: scaleX(-1);
}

.invito-page .invite-date-day {
  color: #302a26;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
}

.invito-page .invite-date-time {
  color: var(--gold);

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.7vw, 1.55rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.045em;
}

@media (max-width: 520px) {
  .invito-page .invite-date-main {
    padding-inline: 1.5rem;
  }

  .invito-page .invite-date-main::before,
  .invito-page .invite-date-main::after {
    width: 24px;
  }

  .invito-page .invite-date-day {
    font-size: 1.75rem;
  }

  .invito-page .invite-date-time {
    font-size: 1.25rem;
  }
}


.invito-page .invite-header {
  min-height: auto;
  padding-top: 1.6rem;
  padding-bottom: 3rem;
}

.invito-page .invite-cover-monogram {
  margin-top: -0.4rem;
  margin-bottom: -0.7rem;
}

@media (max-width: 520px) {
  .invito-page .invite-header {
    padding-top: 0.9rem;
    padding-bottom: 2.5rem;
  }

  .invito-page .invite-cover-monogram {
    margin-top: -0.6rem;
  }
}

.invito-page .invite-cover-names {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(0.35rem, 1.5vw, 1rem);

  width: 100%;
  margin: 0.2rem auto 0;

  color: #2f2925;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;

  text-align: center;
}

.invito-page .invite-cover-name {
  display: inline-block;
  text-shadow: 0 2px 14px rgba(57, 54, 50, 0.06);
}

.invito-page .invite-cover-amp {
  display: inline-block;

  margin: 0 0.1em;

  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1;

  transform: translateY(0.06em) rotate(-4deg);
}

@media (max-width: 520px) {
  .invito-page .invite-cover-names {
    flex-direction: column;

    gap: 0;
    margin-top: 0;

    font-size: clamp(2.8rem, 14vw, 4rem);
    line-height: 0.84;
  }

  .invito-page .invite-cover-name {
    display: block;
    width: 100%;
  }

  .invito-page .invite-cover-amp {
    display: block;

    margin: 0.08em 0 0.02em;

    font-size: 0.62em;
    line-height: 0.8;

    transform: none;
  }
}


/* =========================================================
   HERO ACTIONS — DISPOSIZIONE PIU ELEGANTE
   ========================================================= */

.hero-editorial .hero-actions-wedding {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: min(100%, 820px);
  margin: 1.8rem auto 0;

  gap: 1.15rem;
}


/* Riga principale */

.hero-editorial .hero-actions-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 0.75rem;
}


/* Pulsanti */

.hero-editorial .hero-actions-main .btn {
  min-height: 48px;
  padding: 0.85rem 1.6rem;

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  box-shadow: none;
}


/* CTA principale */

.hero-editorial .hero-btn-primary {
  color: #fff;
  background: var(--olive);
  border: 1px solid var(--olive);

  box-shadow:
    0 10px 24px rgba(86, 94, 63, 0.17);
}

.hero-editorial .hero-btn-primary:hover {
  color: #fff;
  background: var(--olive-dark);
  border-color: var(--olive-dark);

  transform: translateY(-2px);
}


/* Pulsanti secondari */

.hero-editorial .hero-btn-secondary {
  color: #5f5852;
  background: rgba(255, 253, 249, 0.76);

  border: 1px solid rgba(184, 154, 104, 0.58);
}

.hero-editorial .hero-btn-secondary:hover {
  color: #443d37;
  background: #fffdf9;
  border-color: var(--gold);

  transform: translateY(-2px);
}


/* Riga inferiore più discreta */

.hero-editorial .hero-actions-secondary {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.8rem;
}

.hero-editorial .hero-action-link {
  position: relative;

  padding: 0.2rem 0;

  color: #716960;

  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.hero-editorial .hero-action-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: var(--gold);

  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.hero-editorial .hero-action-link:hover {
  color: var(--bordeaux);
  transform: translateY(-1px);
}

.hero-editorial .hero-action-link:hover::after {
  width: 100%;
}

.hero-editorial .hero-action-dot {
  color: var(--gold);
  font-size: 0.8rem;
}


/* Mobile: manteniamo la disposizione che già funziona bene */

@media (max-width: 620px) {

  .hero-editorial .hero-actions-wedding {
    width: min(100%, 340px);
    gap: 0.95rem;
  }

  .hero-editorial .hero-actions-main {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-editorial .hero-actions-main .btn {
    width: 100%;
  }

  .hero-editorial .hero-actions-secondary {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-editorial .hero-action-dot {
    display: none;
  }

  .hero-editorial .hero-action-link {
    font-size: 0.98rem;
  }
}
.hero-editorial .hero-actions-main {
  width: min(100%, 760px);
}

.hero-editorial .hero-btn-secondary {
  min-width: 170px;
}


/* =========================================================
   HERO FLORAL — VERSIONE DEFINITIVA
   stessa immagine a destra e sinistra specchiata
   ========================================================= */

.hero-editorial .hero-floral {
  position: absolute;
  z-index: 0;
  pointer-events: none;

  width: clamp(420px, 44vw, 700px);
  height: clamp(600px, 70vw, 920px);

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image: url("/img/hero-floral-right.webp");

  opacity: 0.58;
  mix-blend-mode: multiply;

  -webkit-mask-image: radial-gradient(
    ellipse 72% 78% at center,
    #000 0%,
    #000 35%,
    rgba(0, 0, 0, 0.88) 48%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.15) 82%,
    transparent 96%
  );

  mask-image: radial-gradient(
    ellipse 72% 78% at center,
    #000 0%,
    #000 35%,
    rgba(0, 0, 0, 0.88) 48%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.15) 82%,
    transparent 96%
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}


.hero-editorial .hero-floral--left {
  left: clamp(-290px, -15vw, -150px);
  bottom: -140px;

  background-image: url("/img/hero-floral-right.webp");

  transform: scaleX(-1);

  -webkit-mask-image: radial-gradient(
    ellipse 58% 68% at 58% 52%,
    #000 0%,
    #000 24%,
    rgba(0, 0, 0, 0.88) 38%,
    rgba(0, 0, 0, 0.58) 51%,
    rgba(0, 0, 0, 0.26) 63%,
    rgba(0, 0, 0, 0.06) 73%,
    transparent 82%
  );

  mask-image: radial-gradient(
    ellipse 58% 68% at 58% 52%,
    #000 0%,
    #000 24%,
    rgba(0, 0, 0, 0.88) 38%,
    rgba(0, 0, 0, 0.58) 51%,
    rgba(0, 0, 0, 0.26) 63%,
    rgba(0, 0, 0, 0.06) 73%,
    transparent 82%
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-editorial .hero-floral--right {
  right: clamp(-250px, -13vw, -110px);
  top: 70px;

  background-image: url("/img/hero-floral-right.webp");

  transform: none;
}

@media (max-width: 780px) {
  .hero-editorial .hero-floral--left {
    left: -205px;
    bottom: -110px;
    transform: scaleX(-1);
  }

  .hero-editorial .hero-floral--right {
    right: -215px;
    top: 62px;
  }
}

/* =========================================================
   HERO FLORAL — VERSIONE DEFINITIVA
   ========================================================= */

.hero-editorial .hero-floral {
  position: absolute;
  z-index: 0;
  pointer-events: none;

  width: clamp(420px, 44vw, 700px);
  height: clamp(600px, 70vw, 920px);

  background-image: url("/img/hero-floral-right.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.58;
  mix-blend-mode: multiply;

  /* vignettatura morbida: elimina completamente i bordi */
  -webkit-mask-image: radial-gradient(
    ellipse 64% 72% at center,
    #000 0%,
    #000 25%,
    rgba(0, 0, 0, 0.95) 38%,
    rgba(0, 0, 0, 0.75) 52%,
    rgba(0, 0, 0, 0.42) 65%,
    rgba(0, 0, 0, 0.15) 76%,
    rgba(0, 0, 0, 0.03) 84%,
    transparent 91%
  );

  mask-image: radial-gradient(
    ellipse 64% 72% at center,
    #000 0%,
    #000 25%,
    rgba(0, 0, 0, 0.95) 38%,
    rgba(0, 0, 0, 0.75) 52%,
    rgba(0, 0, 0, 0.42) 65%,
    rgba(0, 0, 0, 0.15) 76%,
    rgba(0, 0, 0, 0.03) 84%,
    transparent 91%
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}


/* SINISTRA */

.hero-editorial .hero-floral--left {
  left: clamp(-270px, -14vw, -120px);
  bottom: -135px;

  background-image: url("/img/hero-floral-right.webp");

  /* immagine specchiata */
  transform: scaleX(-1);
}


/* DESTRA — ruotata come prima */

.hero-editorial .hero-floral--right {
  right: clamp(-260px, -13vw, -115px);
  top: 55px;

  background-image: url("/img/hero-floral-right.webp");

  /* questo è il punto che mancava */
  transform: rotate(180deg);
}


/* MOBILE */

@media (max-width: 780px) {

  .hero-editorial .hero-floral {
    width: 330px;
    height: 470px;
    opacity: 0.42;
  }

  .hero-editorial .hero-floral--left {
    left: -205px;
    bottom: -110px;
    transform: scaleX(-1);
  }

  .hero-editorial .hero-floral--right {
    right: -215px;
    top: 62px;
    transform: rotate(180deg);
  }
}

/* DESTRA — quella che ora ti piace */
.hero-editorial .hero-floral--right {
  right: clamp(-260px, -13vw, -115px);
  top: 55px;

  background-image: url("/img/hero-floral-right.webp");

  transform: rotate(180deg);
}


/* =========================================================
   HERO FLORAL — SIMMETRIA RISPETTO AL CENTRO
   ========================================================= */

/* DESTRA — alto a destra */
.hero-editorial .hero-floral--right {
  right: clamp(-260px, -13vw, -115px);
  top: 55px;
  bottom: auto;
  left: auto;

  background-image: url("/img/hero-floral-right.webp");

  transform: rotate(180deg);
}


/* SINISTRA — basso a sinistra, simmetrica rispetto al centro */
.hero-editorial .hero-floral--left {
  left: clamp(-260px, -13vw, -115px);
  bottom: -55px;
  top: auto;
  right: auto;

  background-image: url("/img/hero-floral-right.webp");

  transform: none;
}

@media (max-width: 780px) {

  .hero-editorial .hero-floral--right {
    right: -215px;
    top: 55px;
    bottom: auto;

    transform: rotate(180deg);
  }

  .hero-editorial .hero-floral--left {
    left: -215px;
    bottom: -45px;
    top: auto;

    transform: none;
  }
}

@media (max-width: 780px) {
  .site-footer-editorial .monogram-img--sm {
    display: none;
  }
}

/* =========================================================
   RSVP — INVITATI
   ========================================================= */

.invito-page .rsvp-guests-heading {
  margin: 2.8rem auto 1.6rem;
  text-align: center;
}

.invito-page .rsvp-guests-kicker {
  display: block;
  margin-bottom: 0.35rem;

  color: var(--gold);

  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.19em;

  text-transform: uppercase;
}

.invito-page .rsvp-guests-heading .rsvp-section-title {
  margin: 0;

  color: #302a26;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.05;
}

.invito-page .rsvp-guests-intro {
  max-width: 500px;
  margin: 0.7rem auto 0;

  color: #777069;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
}


/* CARD INVITATO */

.invito-page .guest-card {
  position: relative;

  margin: 0 0 1rem;
  padding: 0;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255,253,249,.98),
      rgba(247,243,236,.74)
    );

  border: 1px solid rgba(184,154,104,.25);
  border-left: 0;
  border-radius: 16px;

  box-shadow:
    0 10px 28px rgba(66,57,48,.055);

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.invito-page .guest-card:hover {
  border-color: rgba(184,154,104,.45);

  box-shadow:
    0 15px 34px rgba(66,57,48,.08);

  transform: translateY(-2px);
}


/* Testata invitato */

.invito-page .guest-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;

  width: 100%;
  padding: 1.25rem 1.35rem;

  cursor: pointer;

  border-bottom: 1px solid rgba(184,154,104,.14);
}


/* Checkbox personalizzata */

.invito-page .guest-check {
  position: relative;

  flex: 0 0 auto;

  width: 32px;
  height: 32px;
}

.invito-page .guest-check input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.invito-page .guest-checkmark {
  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  background: #fffdf9;

  border: 1.5px solid rgba(114,122,85,.42);
  border-radius: 50%;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.invito-page .guest-check input:checked + .guest-checkmark {
  background: var(--olive);
  border-color: var(--olive);

  transform: scale(1.03);
}

.invito-page .guest-check input:checked + .guest-checkmark::after {
  content: "✓";

  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: .9rem;
  font-weight: 600;
}


/* Nome */

.invito-page .guest-card-person {
  display: flex;
  align-items: center;
  gap: .7rem;

  min-width: 0;
}

.invito-page .guest-card-name {
  color: #342e29;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}


/* Tipologia invitato */

.invito-page .guest-card-type {
  display: flex;
  gap: .35rem;
}

.invito-page .guest-type {
  display: inline-flex;
  align-items: center;

  padding: .3rem .6rem;

  border-radius: 999px;

  font-family: "Montserrat", sans-serif;
  font-size: .55rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;

  text-transform: uppercase;
}

.invito-page .guest-type--child {
  color: #806b92;
  background: rgba(243,239,246,.95);
  border: 1px solid rgba(185,163,199,.28);
}

.invito-page .guest-type--infant {
  color: #776d5f;
  background: rgba(247,243,236,.95);
  border: 1px solid rgba(184,154,104,.22);
}


/* Campi sotto il nome */

.invito-page .guest-card .guest-details {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));

  gap: 1rem;

  margin: 0;
  padding: 1.25rem 1.35rem;
}


/* Mobile */

@media (max-width: 620px) {

  .invito-page .rsvp-guests-heading {
    margin-top: 2.3rem;
  }

  .invito-page .guest-card {
    border-radius: 14px;
  }

  .invito-page .guest-card-header {
    padding: 1.05rem;
  }

  .invito-page .guest-check,
  .invito-page .guest-checkmark {
    width: 30px;
    height: 30px;
  }

  .invito-page .guest-card-person {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }

  .invito-page .guest-card-name {
    font-size: 1.25rem;
  }

  .invito-page .guest-card .guest-details {
    grid-template-columns: 1fr;

    padding: 1rem;
  }
}

/* Invitato selezionato */

.invito-page .guest-card--selected {
  border-color: rgba(114, 122, 85, .45);

  background:
    linear-gradient(
      145deg,
      rgba(255, 253, 249, .98),
      rgba(241, 243, 234, .92)
    );

  box-shadow:
    0 12px 32px rgba(79, 86, 58, .09);
}


/* =========================================================
   RSVP — CHECKBOX INVITATI DEFINITIVA
   ========================================================= */

.invito-page .guest-check {
  position: relative;
  display: block;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;
}


/* Nasconde la checkbox reale */
.invito-page .guest-check > input[type="checkbox"] {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  opacity: 0 !important;
  pointer-events: none;

  margin: 0 !important;
}


/* Cerchio visibile */
.invito-page .guest-checkmark {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1.5px solid rgba(114, 122, 85, .55);
  border-radius: 50%;

  background: #fffdf9;

  box-sizing: border-box;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}


/* STATO SELEZIONATO */
.invito-page .guest-check--selected .guest-checkmark {
  background: var(--olive) !important;
  border-color: var(--olive) !important;

  transform: scale(1.04);
}


/* Spunta bianca */
.invito-page .guest-check--selected .guest-checkmark::after {
  content: "✓";

  display: block;

  color: #ffffff;

  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}


/* Anche tutta la card evidenzia chi partecipa */
.invito-page .guest-card--selected {
  border-color: rgba(114, 122, 85, .5) !important;

  background:
    linear-gradient(
      145deg,
      #fffdf9,
      rgba(237, 239, 227, .78)
    ) !important;

  box-shadow:
    0 12px 30px rgba(79, 88, 60, .10) !important;
}


/* Piccola barra verde laterale */
.invito-page .guest-card--selected::before {
  content: "";

  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;

  width: 3px;

  background: var(--olive);

  border-radius: 0 3px 3px 0;
}

/* =========================================================
   RSVP — CARD INVITATO PIÙ COMPATTA
   ========================================================= */

.invito-page .guest-card {
  margin-bottom: .85rem;
  border-radius: 14px;
}

/* Testata invitato */

.invito-page .guest-card-header {
  gap: .8rem;
  padding: .95rem 1.1rem;
}

.invito-page .guest-check,
.invito-page .guest-checkmark {
  width: 30px;
  height: 30px;
}

.invito-page .guest-check {
  flex-basis: 30px;
}

.invito-page .guest-card-name {
  font-size: 1.15rem;
}


/* Dettagli */

.invito-page .guest-card .guest-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;

  padding: .9rem 1.1rem .65rem;
}

.invito-page .guest-card .field {
  gap: .3rem;
}

.invito-page .guest-card .field-label {
  font-size: .72rem;
}


/* Select più piccoli */

.invito-page .guest-card select,
.invito-page .guest-card input[type="text"],
.invito-page .guest-card input:not([type]) {
  min-height: 44px;
  padding: .65rem .85rem;

  font-size: .9rem;
  border-radius: 7px;
}


/* Seggiolone / accessibilità */

.invito-page .rsvp-guest-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;

  padding: .25rem 1.1rem .8rem;
}

.invito-page .rsvp-guest-options label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;

  margin: 0;

  color: #777069;
  font-size: .72rem;
  line-height: 1.2;
}

.invito-page .rsvp-guest-options input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
}


/* Note */

.invito-page .guest-notes {
  margin: 0;
  padding: 0 1.1rem 1rem;
}

.invito-page .guest-notes input {
  width: 100%;
}


/* Invitato selezionato */

.invito-page .guest-card--selected::before {
  top: 12px;
  bottom: 12px;
  width: 3px;
}

@media (max-width: 620px) {

  .invito-page .guest-card-header {
    padding: .85rem .9rem;
  }

  .invito-page .guest-card .guest-details {
    grid-template-columns: 1fr;
    gap: .65rem;

    padding: .8rem .9rem .6rem;
  }

  .invito-page .rsvp-guest-options {
    gap: .7rem 1rem;
    padding: .2rem .9rem .75rem;
  }

  .invito-page .guest-notes {
    padding: 0 .9rem .9rem;
  }

  .invito-page .guest-card-name {
    font-size: 1.08rem;
  }
}


/* =========================================================
   RSVP — DROPDOWN ELEGANTI
   ========================================================= */

.invito-page .guest-card select {
  width: 100%;
  min-height: 44px;

  padding: .65rem 2.6rem .65rem .9rem;

  color: #4a443f;
  background-color: #fffdf9;

  border: 1px solid rgba(184, 154, 104, .32);
  border-radius: 9px;

  font-family: "Montserrat", sans-serif;
  font-size: .86rem;
  font-weight: 400;

  outline: none;

  appearance: none;
  -webkit-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #7d765f 50%),
    linear-gradient(135deg, #7d765f 50%, transparent 50%);

  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.invito-page .guest-card select:hover {
  border-color: rgba(114, 122, 85, .45);
}

.invito-page .guest-card select:focus {
  border-color: var(--olive);

  box-shadow:
    0 0 0 3px rgba(114, 122, 85, .08);

  background-color: #fff;
}


/* Opzioni interne */

.invito-page .guest-card select option {
  color: #403b37;
  background: #fffdf9;

  font-family: "Montserrat", sans-serif;
  font-size: .9rem;
}


/* Label sopra */

.invito-page .guest-card .field-label {
  display: block;

  margin-bottom: .28rem;

  color: #645d57;

  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  font-weight: 500;

  letter-spacing: .025em;
}

/* =========================================================
   RSVP — MESSAGGIO PER GLI SPOSI
   ========================================================= */

.invito-page .rsvp-message-section {
  margin-top: 3rem;
}

.invito-page .rsvp-message-heading {
  max-width: 560px;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.invito-page .rsvp-message-kicker {
  display: block;
  margin-bottom: .4rem;

  color: var(--gold);

  font-family: "Montserrat", sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.invito-page .rsvp-message-title {
  margin: 0;

  color: #332d29;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.invito-page .rsvp-message-intro {
  margin: .65rem auto 0;

  color: #7a726b;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.45;
}


/* Contenitore */

.invito-page .rsvp-message-card {
  padding: 1.4rem 1.5rem;

  background:
    linear-gradient(
      145deg,
      rgba(255, 253, 249, .98),
      rgba(248, 244, 237, .82)
    );

  border: 1px solid rgba(184, 154, 104, .24);
  border-radius: 16px;

  box-shadow:
    0 12px 32px rgba(66, 57, 48, .055);
}


/* Singolo campo */

.invito-page .rsvp-message-field {
  display: block;

  padding: 0 0 1.25rem;
  margin: 0 0 1.25rem;

  border-bottom: 1px solid rgba(184, 154, 104, .16);
}

.invito-page .rsvp-message-field--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}


/* Titolo campo */

.invito-page .rsvp-message-label {
  display: block;

  margin-bottom: .15rem;

  color: #403934;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  font-weight: 600;
}


/* Testino sotto */

.invito-page .rsvp-message-hint {
  display: block;

  margin-bottom: .65rem;

  color: #8a827b;

  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  font-weight: 400;
  line-height: 1.4;
}


/* Input e textarea */

.invito-page .rsvp-message-card input,
.invito-page .rsvp-message-card textarea {
  width: 100%;

  padding: .8rem .9rem;

  color: #443d38;
  background: rgba(255, 255, 255, .72);

  border: 1px solid rgba(184, 154, 104, .28);
  border-radius: 9px;

  font-family: "Montserrat", sans-serif;
  font-size: .88rem;

  box-sizing: border-box;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.invito-page .rsvp-message-card textarea {
  min-height: 92px;
  resize: vertical;
}

.invito-page .rsvp-message-card input:focus,
.invito-page .rsvp-message-card textarea:focus {
  outline: none;

  background: #fff;

  border-color: var(--olive);

  box-shadow:
    0 0 0 3px rgba(114, 122, 85, .07);
}

.invito-page .rsvp-message-card input::placeholder,
.invito-page .rsvp-message-card textarea::placeholder {
  color: #aaa29a;
}


/* Mobile */

@media (max-width: 620px) {

  .invito-page .rsvp-message-section {
    margin-top: 2.5rem;
  }

  .invito-page .rsvp-message-card {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .invito-page .rsvp-message-label {
    font-size: 1.18rem;
  }

  .invito-page .rsvp-message-field {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .invito-page .rsvp-message-card textarea {
    min-height: 82px;
  }
}

/* =========================================================
   RSVP — CONTATTI
   ========================================================= */

.invito-page .rsvp-contact-section {
  margin-top: 2.8rem;
}

.invito-page .rsvp-contact-heading {
  max-width: 560px;
  margin: 0 auto 1.4rem;

  text-align: center;
}

.invito-page .rsvp-contact-kicker {
  display: block;

  margin-bottom: .4rem;

  color: var(--gold);

  font-family: "Montserrat", sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .18em;

  text-transform: uppercase;
}

.invito-page .rsvp-contact-title {
  margin: 0;

  color: #332d29;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.invito-page .rsvp-contact-intro {
  max-width: 480px;

  margin: .65rem auto 0;

  color: #7a726b;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.45;
}


/* Card */

.invito-page .rsvp-contact-card {
  padding: 1.4rem 1.5rem;

  background:
    linear-gradient(
      145deg,
      rgba(255, 253, 249, .98),
      rgba(248, 244, 237, .82)
    );

  border: 1px solid rgba(184, 154, 104, .24);
  border-radius: 16px;

  box-shadow:
    0 12px 32px rgba(66, 57, 48, .055);
}


/* Prime due colonne */

.invito-page .rsvp-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: .9rem;
}


/* Campi */

.invito-page .rsvp-contact-field {
  display: block;
}

.invito-page .rsvp-contact-label {
  display: block;

  margin-bottom: .35rem;

  color: #625a54;

  font-family: "Montserrat", sans-serif;
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .025em;
}


/* Input */

.invito-page .rsvp-contact-field input {
  width: 100%;
  min-height: 44px;

  padding: .7rem .85rem;

  color: #443d38;
  background: rgba(255, 255, 255, .72);

  border: 1px solid rgba(184, 154, 104, .28);
  border-radius: 9px;

  font-family: "Montserrat", sans-serif;
  font-size: .86rem;

  box-sizing: border-box;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.invito-page .rsvp-contact-field input:focus {
  outline: none;

  background: #fff;
  border-color: var(--olive);

  box-shadow:
    0 0 0 3px rgba(114, 122, 85, .07);
}

.invito-page .rsvp-contact-field input::placeholder {
  color: #aaa29a;
}


/* Indirizzo */

.invito-page .rsvp-contact-address {
  margin-top: 1.25rem;
  padding-top: 1.15rem;

  border-top: 1px solid rgba(184, 154, 104, .16);
}

.invito-page .rsvp-contact-group-title {
  display: block;

  margin-bottom: .8rem;

  color: #403934;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  font-weight: 600;
}

.invito-page .rsvp-address-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 2fr)
    minmax(90px, .65fr)
    minmax(0, 1.2fr)
    minmax(80px, .55fr);

  gap: .8rem;
}


/* Mobile */

@media (max-width: 720px) {

  .invito-page .rsvp-contact-card {
    padding: 1.1rem;
  }

  .invito-page .rsvp-contact-grid {
    grid-template-columns: 1fr;
  }

  .invito-page .rsvp-address-grid {
    grid-template-columns: 1fr 90px;
  }

  .invito-page .rsvp-contact-field--address {
    grid-column: 1 / -1;
  }

}


@media (max-width: 460px) {

  .invito-page .rsvp-address-grid {
    grid-template-columns: 1fr;
  }

  .invito-page .rsvp-contact-field--address {
    grid-column: auto;
  }

}

/* =========================================================
   RSVP — PULSANTE CONFERMA
   ========================================================= */

.invito-page .btn-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 260px;
  min-height: 50px;

  margin: 1.8rem auto 0;
  padding: .9rem 1.8rem;

  color: #fff;
  background:
    linear-gradient(
      135deg,
      #747b56,
      #626947
    );

  border: 1px solid rgba(83, 91, 61, .65);
  border-radius: 999px;

  font-family: "Montserrat", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;

  box-shadow:
    0 10px 24px rgba(80, 86, 59, .16);

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.invito-page .btn-rsvp:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(80, 86, 59, .22);
}

.invito-page .btn-rsvp:active {
  transform: translateY(0);
}

.invito-page .btn-rsvp:focus-visible {
  outline: 3px solid rgba(114, 122, 85, .2);
  outline-offset: 3px;
}

.invito-page .btn-rsvp:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.invito-page .rsvp-form > .btn-rsvp {
  display: flex;
}


/* =========================================================
   INFORMAZIONI UTILI
   ========================================================= */

.invito-page .useful-info-section {
  margin-top: 4rem;
}

.invito-page .useful-info-heading {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.invito-page .useful-info-kicker {
  display: block;

  margin-bottom: .4rem;

  color: var(--gold);

  font-family: "Montserrat", sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .18em;

  text-transform: uppercase;
}

.invito-page .useful-info-title {
  margin: 0;

  color: #332d29;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
}

.invito-page .useful-info-intro {
  max-width: 500px;

  margin: .65rem auto 0;

  color: #7a726b;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
}


/* Card */

.invito-page .useful-info-card {
  max-width: 760px;

  margin: 0 auto;
  padding: .4rem 1.5rem;

  background:
    linear-gradient(
      145deg,
      rgba(255, 253, 249, .98),
      rgba(248, 244, 237, .8)
    );

  border: 1px solid rgba(184, 154, 104, .24);
  border-radius: 16px;

  box-shadow:
    0 12px 32px rgba(66, 57, 48, .055);
}


/* Singola informazione */

.invito-page .useful-info-item {
  display: flex;
  align-items: flex-start;

  gap: .85rem;

  padding: 1rem 0;

  border-bottom:
    1px solid rgba(184, 154, 104, .14);
}

.invito-page .useful-info-item:last-child {
  border-bottom: 0;
}


/* Pallino elegante */

.invito-page .useful-info-marker {
  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  margin-top: .48rem;

  background: var(--olive);

  border-radius: 50%;

  box-shadow:
    0 0 0 4px rgba(114, 122, 85, .08);
}


/* Testo */

.invito-page .useful-info-item p {
  margin: 0;

  color: #554e48;

  font-family: "Montserrat", sans-serif;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.65;
}


/* Mobile */

@media (max-width: 620px) {

  .invito-page .useful-info-section {
    margin-top: 3rem;
  }

  .invito-page .useful-info-card {
    padding: .25rem 1rem;
    border-radius: 14px;
  }

  .invito-page .useful-info-item {
    gap: .7rem;
    padding: .85rem 0;
  }

  .invito-page .useful-info-item p {
    font-size: .78rem;
    line-height: 1.55;
  }

}

/* =========================================================
   FOOTER PARTECIPAZIONE
   ========================================================= */

.invito-page .invite-footer {
  margin-top: 4.5rem;
  padding: 0 1rem 3rem;

  text-align: center;
}


/* Separatore */

.invito-page .invite-footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 2.2rem;
}

.invito-page .invite-footer-divider::before,
.invito-page .invite-footer-divider::after {
  content: "";

  width: 70px;
  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      rgba(184, 154, 104, .45)
    );
}

.invito-page .invite-footer-divider::after {
  background:
    linear-gradient(
      to left,
      transparent,
      rgba(184, 154, 104, .45)
    );
}

.invito-page .invite-footer-divider span {
  width: 6px;
  height: 6px;

  margin: 0 .8rem;

  background: var(--gold);
  border-radius: 50%;

  transform: rotate(45deg);
}


/* Contenuto */

.invito-page .invite-footer-content {
  max-width: 560px;

  margin: 0 auto;
}


/* Piccolo testo superiore */

.invito-page .invite-footer-kicker {
  display: block;

  margin-bottom: .55rem;

  color: var(--gold);

  font-family: "Montserrat", sans-serif;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;

  text-transform: uppercase;
}


/* Frase finale */

.invito-page .invite-closing {
  max-width: 460px;

  margin: 0 auto .9rem;

  color: #5e5751;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
}


/* Firma */

.invito-page .invite-footer-signature {
  margin: 0;

  color: #302a26;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.invito-page .invite-footer-signature span {
  margin: 0 .12em;

  color: var(--gold);

  font-family: "Great Vibes", cursive;
  font-size: .9em;
  font-weight: 400;
}


/* Monogramma */

.invito-page .invite-footer-monogram {
  display: block;

  width: 72px;
  height: auto;

  margin: 1rem auto .65rem;

  opacity: .82;
}


/* Data */

.invito-page .invite-footer-date {
  margin: 0;

  color: #8a8179;

  font-family: "Montserrat", sans-serif;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;

  text-transform: uppercase;
}


/* Mobile */

@media (max-width: 620px) {

  .invito-page .invite-footer {
    margin-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .invito-page .invite-footer-divider {
    margin-bottom: 1.8rem;
  }

  .invito-page .invite-footer-divider::before,
  .invito-page .invite-footer-divider::after {
    width: 45px;
  }

  .invito-page .invite-closing {
    font-size: 1.08rem;
  }

  .invito-page .invite-footer-monogram {
    width: 58px;
  }

}

.invito-page .rsvp-deadline {
  width: fit-content;
  margin: -1rem auto 1.8rem;
  padding: .55rem 1rem;

  color: #6b645d;
  background: rgba(237,239,227,.55);
  border: 1px solid rgba(114,122,85,.15);
  border-radius: 999px;

  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  text-align: center;
}

.invito-page .rsvp-deadline strong {
  color: var(--olive-dark);
  font-weight: 600;
}

.invito-page .invite-calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  margin: 1rem auto 0;
  padding: .8rem 1.5rem;

  color: #5f5852;
  background: rgba(255, 253, 249, .72);

  border: 1px solid rgba(184, 154, 104, .55);
  border-radius: 999px;

  font-family: "Montserrat", sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;

  box-shadow: none;
}

.invito-page .invite-calendar-button:hover {
  color: #443d37;
  background: #fffdf9;
  border-color: var(--gold);

  transform: translateY(-2px);

  box-shadow:
    0 10px 24px rgba(70, 61, 52, .08);
}

/* =========================================================
   RSVP — MESSAGGIO POSITIVO
   ========================================================= */

.invito-page .rsvp-positive-message {
  max-width: 520px;
  margin: -1rem auto 2rem;
  padding: 1rem 1.3rem;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(237, 239, 227, .72),
      rgba(255, 253, 249, .92)
    );

  border: 1px solid rgba(114, 122, 85, .2);
  border-radius: 14px;

  box-shadow:
    0 10px 26px rgba(79, 88, 60, .06);
}

.invito-page .rsvp-positive-message[hidden] {
  display: none;
}

.invito-page .rsvp-positive-message-kicker {
  display: block;

  margin-bottom: .15rem;

  color: var(--olive-dark);

  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
}

.invito-page .rsvp-positive-message p {
  margin: 0;

  color: #706860;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
}

/* =========================================================
   INVITATI — ICONE BAMBINO / NEONATO
   ========================================================= */

.invito-page .guest-type {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.invito-page .guest-type-icon {
  width: 13px;
  height: 13px;

  flex: 0 0 auto;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.invito-page .guest-type--child {
  color: #806b92;
  background: rgba(243,239,246,.95);
  border: 1px solid rgba(185,163,199,.28);
}

.invito-page .guest-type--infant {
  color: #8b754f;
  background: rgba(248,244,236,.96);
  border: 1px solid rgba(184,154,104,.28);
}

/* =========================================================
   RSVP — MESSAGGIO RISPOSTA NEGATIVA
   ========================================================= */

.invito-page .rsvp-negative-message {
  max-width: 540px;
  margin: -1rem auto 2rem;
  padding: 1rem 1.4rem;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(245, 235, 235, .62),
      rgba(255, 253, 249, .94)
    );

  border: 1px solid rgba(135, 62, 69, .16);
  border-radius: 14px;

  box-shadow:
    0 10px 26px rgba(70, 61, 52, .05);
}

.invito-page .rsvp-negative-message[hidden] {
  display: none;
}

.invito-page .rsvp-negative-message-kicker {
  display: block;
  margin-bottom: .2rem;

  color: var(--bordeaux);

  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
}

.invito-page .rsvp-negative-message p {
  margin: 0;

  color: #706860;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.45;
}

/* =========================================================
   MONOGRAMMA — PICCOLO EASTER EGG
   ========================================================= */

.invito-page .invite-cover-monogram {
  cursor: pointer;

  transition:
    transform .3s ease,
    filter .3s ease;
}

.invito-page .invite-cover-monogram:hover {
  transform: scale(1.025);
}

.invito-page .invite-cover-monogram:active {
  transform: scale(.98);
}


.invito-page .monogram-secret {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: .15rem;

  max-height: 0;
  margin: 0 auto;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-6px);

  transition:
    opacity .35s ease,
    transform .35s ease,
    max-height .35s ease,
    margin .35s ease,
    visibility .35s ease;
}


.invito-page .monogram-secret.is-visible {
  max-height: 80px;

  margin: .25rem auto .6rem;

  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}


.invito-page .monogram-secret-date {
  color: var(--gold);

  font-family: "Montserrat", sans-serif;
  font-size: .58rem;
  font-weight: 600;

  letter-spacing: .22em;
  text-transform: uppercase;
}


.invito-page .monogram-secret-text {
  color: #625a54;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;

  line-height: 1.2;
}

/* =========================================================
   PAGINA FOTO
   ========================================================= */

.photo-page {
  min-height: 100vh;

  margin: 0;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(217,206,229,.22),
      transparent 26%
    ),
    radial-gradient(
      circle at 92% 80%,
      rgba(166,173,138,.16),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      #fbf7f0,
      #f6eee5
    );

  color: var(--ink);

  font-family: "Montserrat", sans-serif;
}


.photo-page-shell {
  width: min(100% - 2rem, 720px);

  margin: 0 auto;
  padding: 2rem 0 5rem;
}


/* =========================================================
   HERO
   ========================================================= */

.photo-hero {
  padding: 1rem 1rem 2rem;

  text-align: center;
}


.photo-page-monogram {
  display: block;

  width: 150px;
  height: 150px;

  margin: 0 auto -.3rem;

  object-fit: contain;
  mix-blend-mode: multiply;
}


.photo-page-kicker,
.photo-section-kicker {
  display: block;

  margin-bottom: .35rem;

  color: var(--gold);

  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2em;

  text-transform: uppercase;
}


.photo-page-title {
  margin: 0;

  color: #302a26;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 500;
  line-height: .95;
}


.photo-page-intro {
  max-width: 520px;

  margin: .8rem auto 0;

  color: #716860;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}


.photo-page-divider {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 1.5rem;
}

.photo-page-divider::before,
.photo-page-divider::after {
  content: "";

  width: 60px;
  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      rgba(184,154,104,.48)
    );
}

.photo-page-divider::after {
  transform: scaleX(-1);
}

.photo-page-divider span {
  width: 6px;
  height: 6px;

  margin: 0 .7rem;

  background: var(--gold);
  border-radius: 50%;
}


/* =========================================================
   CARD
   ========================================================= */

.photo-access-card,
.photo-upload-card {
  padding: clamp(1.3rem, 4vw, 2rem);

  background:
    linear-gradient(
      145deg,
      rgba(255,253,249,.96),
      rgba(248,244,237,.88)
    );

  border: 1px solid rgba(184,154,104,.24);
  border-radius: 20px;

  box-shadow:
    0 18px 45px rgba(66,57,48,.08);
}


.photo-access-card {
  text-align: center;
}


.photo-access-card h2,
.photo-upload-heading h2 {
  margin: 0;

  color: #332d29;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
}


.photo-section-intro,
.photo-upload-heading p {
  max-width: 520px;

  margin: .65rem auto 1.5rem;

  color: #7a726b;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.5;
}


/* =========================================================
   ACCESSO
   ========================================================= */

.photo-access-form {
  display: grid;
  gap: 1rem;

  width: min(100%, 430px);

  margin: 0 auto;
}


/* =========================================================
   CAMPI
   ========================================================= */

.photo-field {
  display: flex;
  flex-direction: column;

  gap: .35rem;

  text-align: left;
}

.photo-field > span {
  color: #554e48;

  font-family: "Montserrat", sans-serif;
  font-size: .7rem;
  font-weight: 600;
}

.photo-field > small {
  color: #918981;

  font-size: .65rem;
  line-height: 1.4;
}

.photo-field input {
  min-height: 48px;

  padding: .8rem .9rem;

  color: #443d38;
  background: rgba(255,255,255,.8);

  border: 1px solid rgba(184,154,104,.3);
  border-radius: 10px;
}

.photo-field input:focus {
  border-color: var(--olive);

  box-shadow:
    0 0 0 3px rgba(114,122,85,.08);
}


/* =========================================================
   DROPZONE
   ========================================================= */

.photo-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 230px;

  padding: 2rem 1.5rem;

  color: #625b54;
  background:
    rgba(255,253,249,.74);

  border: 1.5px dashed rgba(184,154,104,.55);
  border-radius: 18px;

  text-align: center;

  cursor: pointer;

  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}


.photo-dropzone:hover,
.photo-dropzone.is-dragover {
  background: rgba(237,239,227,.58);
  border-color: var(--olive);

  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(79,88,60,.08);
}


.photo-dropzone input {
  display: none;
}


.photo-camera-icon {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  margin-bottom: .75rem;

  color: var(--olive);

  background: rgba(237,239,227,.85);

  border: 1px solid rgba(114,122,85,.18);
  border-radius: 50%;
}


.photo-camera-icon svg {
  width: 27px;
  height: 27px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.photo-dropzone strong {
  color: #403934;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
}


.photo-dropzone-text {
  margin-top: .2rem;

  color: #756d66;

  font-size: .75rem;
}


.photo-dropzone small {
  margin-top: .35rem;

  color: #9a928b;

  font-size: .65rem;
}


/* =========================================================
   ANTEPRIME
   ========================================================= */

.photo-file-count {
  margin: 1.2rem 0 .6rem;

  color: var(--olive-dark);

  font-size: .7rem;
  font-weight: 600;
  text-align: center;
}


.photo-previews {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(92px,1fr));

  gap: .7rem;

  margin: .8rem 0 1.4rem;
}


.photo-previews img {
  width: 100%;
  aspect-ratio: 1;

  object-fit: cover;

  border: 1px solid rgba(184,154,104,.24);
  border-radius: 12px;

  box-shadow:
    0 7px 16px rgba(66,57,48,.06);
}


/* =========================================================
   PULSANTI
   ========================================================= */

.photo-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: min(100%, 320px);
  min-height: 50px;

  margin: .8rem auto 0;

  color: #fff;
  background:
    linear-gradient(
      135deg,
      #747b56,
      #626947
    );

  border: 1px solid rgba(83,91,61,.65);
  border-radius: 999px;

  font-family: "Montserrat", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;

  text-transform: uppercase;

  box-shadow:
    0 10px 24px rgba(80,86,59,.16);
}


.photo-primary-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(80,86,59,.22);
}


/* =========================================================
   FEEDBACK
   ========================================================= */

.photo-success {
  margin-bottom: 1.3rem;
}


.photo-error {
  margin: 0;

  text-align: center;
}


.photo-upload-feedback {
  margin-top: 1.3rem;
}


.photo-upload-feedback p {
  margin: .55rem 0 0;

  color: #817970;

  font-family: "Cormorant Garamond", serif;
  font-size: .95rem;
  font-style: italic;

  text-align: center;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

  .photo-page-shell {
    width: min(100% - 1.2rem, 720px);

    padding-top: .8rem;
  }

  .photo-page-monogram {
    width: 125px;
    height: 125px;
  }

  .photo-access-card,
  .photo-upload-card {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .photo-dropzone {
    min-height: 200px;
    padding: 1.5rem 1rem;
  }

  .photo-previews {
    grid-template-columns:
      repeat(3, minmax(0,1fr));
  }

}

/* =========================================================
   PAGINA FOTO — DETTAGLI FINALI
   ========================================================= */

.photo-preview-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1;

  color: var(--olive-dark);
  background:
    rgba(237, 239, 227, .72);

  border: 1px solid rgba(114, 122, 85, .18);
  border-radius: 12px;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.photo-preview-more span {
  margin-top: -.15rem;

  color: #8b837b;

  font-family: "Montserrat", sans-serif;
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .1em;

  text-transform: uppercase;
}


/* Footer */

.photo-page-footer {
  padding: 3.5rem 1rem 0;

  text-align: center;
}

.photo-page-footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 1.5rem;
}

.photo-page-footer-divider::before,
.photo-page-footer-divider::after {
  content: "";

  width: 55px;
  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      rgba(184, 154, 104, .5)
    );
}

.photo-page-footer-divider::after {
  transform: scaleX(-1);
}

.photo-page-footer-divider span {
  width: 6px;
  height: 6px;

  margin: 0 .7rem;

  background: var(--gold);
  border-radius: 50%;
}

.photo-page-footer-text {
  max-width: 440px;

  margin: 0 auto .7rem;

  color: #746c65;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}

.photo-page-footer-signature {
  margin: 0 0 1rem;

  color: #342e29;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.photo-page-footer-signature span {
  margin: 0 .1em;

  color: var(--gold);

  font-family: "Great Vibes", cursive;
}

.photo-page-home-link {
  display: inline-block;

  padding: .35rem 0;

  color: var(--olive-dark);

  font-family: "Montserrat", sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;

  text-transform: uppercase;

  border-bottom:
    1px solid rgba(114, 122, 85, .3);
}

.photo-upload-form {
  display: flex;
  flex-direction: column;
}

.photo-upload-form .photo-primary-button {
  align-self: center;
  margin-top: 1rem;
}

.details-section .details-title {
  margin: .2rem 0 .5rem;

  color: #342e29;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1;

  letter-spacing: -.02em;
}

.details-section .details-subtitle {
  max-width: 480px;

  margin: 0 auto 1.2rem;

  color: #7a716a;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}