:root{
  --bg:#ffffff;
  --ink:#221f1d;
  --muted:rgba(34,31,29,.72);
  --accent:#A08779;
  --line:rgba(34,31,29,.12);
  --shadow:0 16px 40px rgba(34,31,29,.10);

  --hero-photo: url("assets/hero.jpg");
}

*{ box-sizing:border-box; }

html,body{
  height:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:'Cormorant Garamond',serif;
  background:var(--bg);
  color:var(--ink);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

a{
  color:inherit;
  text-decoration:none;
}

/* HEADER */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--line);
}

.topbar-inner{
  max-width:1120px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:210px;
}

.brand-mark{
  width:34px;
  height:auto;
  opacity:.95;
}

.brand-text{
  font-weight:600;
  color:var(--accent);
  letter-spacing:.2px;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.menu{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.menu a{
  color:var(--accent);
  font-weight:600;
  letter-spacing:.2px;
  padding:8px 0;
  border-bottom:1px solid transparent;
  line-height:1.1;
}

.menu a:hover{
  border-bottom-color:rgba(160,135,121,.5);
}

.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
}

.lang-pill{
  appearance:none;
  border:1px solid rgba(160,135,121,.35);
  background:#fff;
  color:var(--accent);
  border-radius:999px;
  padding:6px 10px;
  min-width:42px;
  font-family:'Cormorant Garamond',serif;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:all .18s ease;
}

.lang-pill.active{
  background:var(--accent);
  color:#fff;
  border-color:transparent;
}

.pages{
  min-height:calc(100vh - 74px);
}

/* PAGINE */

.page{
  display:none;
  animation:fade .26s ease;
}

.page.is-active{
  display:block;
}

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

/* HERO */

.hero{
  min-height:calc(100vh - 74px);
  display:grid;
  place-items:center;
  position:relative;
  background-image:var(--hero-photo);
  background-size:cover;
  background-position:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.88)),
    radial-gradient(circle at center, rgba(255,255,255,.08), rgba(255,255,255,0));
}

.hero-content{
  position:relative;
  width:min(980px, 92vw);
  padding:64px 18px 56px;
  text-align:center;
}

.hero-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

.names{
  font-family:'Great Vibes',cursive;
  font-weight:400;
  font-size:82px;
  line-height:1.02;
  margin:0;
  color:var(--accent);
  text-shadow:0 3px 14px rgba(160,135,121,.18);
}

.subtitle{
  margin:0;
  color:var(--muted);
  font-size:21px;
  max-width:620px;
}

.datebox{
  display:inline-block;
  padding:16px 22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow);
}

.date{
  font-size:32px;
  letter-spacing:.6px;
  color:var(--accent);
}

.time{
  margin-top:6px;
  color:var(--muted);
  font-size:17px;
}

.cta-row{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border:1px solid rgba(160,135,121,.45);
  background:#fff;
  color:var(--ink);
  border-radius:999px;
  padding:11px 16px;
  min-height:44px;
  font-size:16px;
  cursor:pointer;
  transition:transform .14s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(160,135,121,.75);
  box-shadow:0 10px 22px rgba(34,31,29,.12);
}

.btn.primary{
  background:var(--accent);
  color:#fff;
  border-color:transparent;
}

.btn.btn-small{
  padding:8px 14px;
  min-height:36px;
  font-size:15px;
}

/* COUNTDOWN */

.countdown{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.cd-item{
  width:96px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.75);
  box-shadow:0 10px 26px rgba(34,31,29,.08);
  padding:10px 10px 8px;
}

.cd-num{
  font-size:28px;
  font-weight:600;
  color:var(--accent);
}

.cd-lab{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

/* FOTO HOME */

.photo-strip{
  margin:34px auto 0;
  display:flex;
  justify-content:center;
}

.photo-card{
  width:min(560px, 92vw);
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.8);
  box-shadow:var(--shadow);
  overflow:hidden;
  text-align:left;
}

.photo-card img{
  width:100%;
  height:290px;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.02);
}

.photo-cap{
  padding:14px 16px;
  color:var(--muted);
  font-size:18px;
  text-align:center;
}

/* PROGRAMMA HOME */

.program-card{
  width:min(680px, 94vw);
  margin:40px auto 0;
  padding:26px 26px 22px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.88);
  box-shadow:0 24px 48px rgba(34,31,29,.12);
  text-align:left;
}

.program-card h2{
  font-family:'Great Vibes',cursive;
  font-weight:400;
  font-size:46px;
  line-height:1;
  color:var(--accent);
  text-align:center;
  margin:4px 0 16px;
}

.program-item{
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:16px 4px;
  border-top:1px solid rgba(34,31,29,.08);
}

.program-item:first-of-type{
  border-top:none;
}

.program-time{
  min-width:72px;
  font-size:24px;
  font-weight:600;
  color:var(--ink);
}

.program-label{
  font-size:23px;
  font-weight:600;
  color:var(--ink);
}

.program-detail{
  margin-top:3px;
  color:var(--muted);
  font-size:18px;
}

.program-note{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(34,31,29,.08);
  color:var(--ink);
  text-align:center;
  font-size:19px;
  font-weight:500;
}

/* PAGINE INTERNE */

.page-head{
  max-width:900px;
  margin:0 auto;
  padding:34px 16px 8px;
  text-align:center;
}

.page-head h2{
  font-family:'Great Vibes',cursive;
  font-weight:400;
  font-size:58px;
  color:var(--accent);
  margin:0;
  letter-spacing:.5px;
}

.page-head p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:18px;
}

.title-ornament{
  width:76px;
  height:1px;
  background:rgba(160,135,121,.45);
  margin:14px auto 0;
  position:relative;
}

.title-ornament::before,
.title-ornament::after{
  content:"";
  position:absolute;
  top:-3px;
  width:7px;
  height:7px;
  border:1px solid rgba(160,135,121,.45);
  border-radius:50%;
  background:#fff;
}

.title-ornament::before{ left:-2px; }
.title-ornament::after{ right:-2px; }

.content{
  max-width:900px;
  margin:0 auto;
  padding:18px 16px 48px;
}

.card{
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px 18px;
  background:linear-gradient(180deg, rgba(160,135,121,.08), rgba(160,135,121,.03));
  box-shadow:var(--shadow);
}

.card h3{
  margin:6px 0 6px;
  font-size:22px;
  text-align:center;
}

.muted{
  color:var(--muted);
}

.btnrow{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.note{
  margin-top:16px;
  padding:18px 18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 28px rgba(34,31,29,.07);
}

.note h4{
  margin:0 0 8px;
  color:var(--accent);
  font-size:18px;
  text-align:center;
}

.note p{
  margin:0;
  text-align:center;
}

/* FOTO CERIMONIA / RICEVIMENTO */

.section-photo{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  aspect-ratio:16/10;
  max-height:420px;
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  border-radius:18px;
  margin-top:14px;
  padding:10px;
}

/* IBAN */

.iban-box{
  margin-top:14px;
  border:1px dashed rgba(160,135,121,.55);
  border-radius:18px;
  background:rgba(255,255,255,.7);
  padding:14px;
}

.iban-line{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  padding:10px 8px;
  border-top:1px solid rgba(34,31,29,.08);
}

.iban-line:first-child{
  border-top:none;
}

.iban-label{
  color:var(--muted);
  font-size:14px;
}

.iban-value{
  font-weight:600;
  word-break:break-all;
}

.toast{
  margin-top:10px;
  min-height:18px;
  text-align:center;
  color:var(--accent);
  font-weight:600;
}

.footer{
  border-top:1px solid var(--line);
  padding:22px 16px;
  text-align:center;
  color:rgba(34,31,29,.55);
}

/* TABLET / SMALL DESKTOP */

@media (max-width:900px){
  .topbar-inner{
    flex-direction:column;
    align-items:center;
  }

  .topbar-actions{
    width:100%;
    justify-content:center;
    gap:14px;
  }

  .menu{
    justify-content:center;
    gap:18px;
  }
}

/* MOBILE */

@media (max-width:760px){

  .topbar{
    position:sticky;
  }

  .topbar-inner{
    padding:12px 14px;
    gap:12px;
  }

  .brand{
    min-width:0;
    justify-content:center;
  }

  .brand-text{
    font-size:18px;
    text-align:center;
  }

  .topbar-actions{
    width:100%;
    flex-direction:column;
    gap:10px;
    align-items:center;
  }

  .menu{
    width:100%;
    justify-content:center;
    gap:14px 18px;
  }

  .menu a{
    font-size:17px;
    padding:4px 0;
  }

  .lang-switch{
    justify-content:center;
  }

  .lang-pill{
    min-width:46px;
    font-size:14px;
    padding:7px 10px;
  }

  .hero{
    min-height:auto;
  }

  .hero-content{
    width:min(100%, 96vw);
    padding:40px 10px 34px;
  }

  .hero-stack{
    gap:14px;
  }

  .names{
    font-size:54px;
    line-height:1.03;
  }

  .subtitle{
    font-size:18px;
    max-width:300px;
    line-height:1.35;
  }

  .datebox{
    padding:14px 16px;
    width:min(320px, 100%);
  }

  .date{
    font-size:26px;
  }

  .time{
    font-size:16px;
  }

  .cta-row{
    width:100%;
    gap:10px;
    flex-direction:column;
    align-items:center;
  }

  .cta-row .btn{
    width:min(280px, 100%);
  }

  .countdown{
    gap:8px;
  }

  .cd-item{
    width:84px;
    padding:9px 8px 7px;
  }

  .cd-num{
    font-size:24px;
  }

  .cd-lab{
    font-size:12px;
  }

  .photo-strip{
    margin:26px auto 0;
  }

  .photo-card{
    width:100%;
    border-radius:20px;
  }

  .photo-card img{
    height:220px;
  }

  .photo-cap{
    font-size:17px;
    line-height:1.35;
  }

  .program-card{
    width:100%;
    margin:24px auto 0;
    padding:18px 16px 16px;
    border-radius:20px;
  }

  .program-card h2{
    font-size:40px;
    margin-bottom:10px;
  }

  .program-item{
    gap:10px;
    padding:12px 0;
  }

  .program-time{
    min-width:58px;
    font-size:20px;
    line-height:1.2;
  }

  .program-label{
    font-size:19px;
    line-height:1.2;
  }

  .program-detail{
    font-size:16px;
    line-height:1.35;
  }

  .program-note{
    font-size:17px;
    line-height:1.35;
    margin-top:10px;
    padding-top:10px;
  }

  .page-head{
    padding:26px 14px 8px;
  }

  .page-head h2{
    font-size:42px;
    line-height:1.05;
  }

  .page-head p{
    font-size:17px;
    line-height:1.35;
  }

  .content{
    padding:14px 12px 34px;
  }

  .card,
  .note{
    padding:16px 14px;
    border-radius:18px;
  }

  .card h3{
    font-size:21px;
    line-height:1.25;
  }

  .note h4{
    font-size:18px;
  }

  .note p,
  .card p,
  .muted{
    font-size:16px;
    line-height:1.45;
  }

  .btnrow{
    gap:8px;
  }

  .btnrow .btn{
    width:100%;
  }

  .section-photo{
    aspect-ratio:4/3;
    max-height:none;
    padding:8px;
    border-radius:16px;
  }

  .iban-line{
    grid-template-columns:1fr;
    gap:4px;
    padding:10px 4px;
  }

  .iban-label{
    font-size:13px;
  }

  .iban-value{
    font-size:16px;
    line-height:1.4;
  }

  .footer{
    padding:18px 12px;
    font-size:15px;
  }
}
