
/* =========================================================
   Wedding Site – Styles (Cormorant Garamond + DM Sans)
   Palette: #373E42 #263136 #B6C1CA #FFFFFF #D1D6DB #334E5D
   ========================================================= */

/* ===== Reset / Base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid rgba(51, 78, 93, .55);
  outline-offset: 3px;
}

/* ===== Design Tokens ===== */
:root{
  /* Fonts */
  --font-names: "DM Sans", "Cormorant Garamond", serif;
  --font-text:  'Inter', "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Palette */
  --c-ink-2: #373E42;
  --c-ink:   #263136;
  --c-mid:   #B6C1CA;
  --c-bg:    #FFFFFF;
  --c-light: #D1D6DB;
  --c-accent:#334E5D;

  /* Surfaces (based on palette) */
  --surface: rgba(255,255,255,.65);
  --surface-2: rgba(255,255,255,.35);

  /* Borders / text opacity */
  --border: rgba(55, 62, 66, .18);
  --border-strong: rgba(55, 62, 66, .26);
  --text-75: rgba(38, 49, 54, .75);
  --text-70: rgba(38, 49, 54, .70);
  --text-65: rgba(38, 49, 54, .65);

  /* Layout */
  --max: 1180px;
  --gutter: 28px;
  --radius: 14px;

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 20px;
  --s-5: 28px;
  --s-6: 40px;
  --s-7: 56px;
  --s-8: 72px;
  
    /* Schedule – blu + bianco */
  --sched-bg: #334E5D;                  /* blu elegante */
  --sched-ink: #FFFFFF;                 /* testo principale */
  --sched-ink-2: rgba(255,255,255,.82); /* testo descrizioni */
  --sched-border: rgba(255,255,255,.45);


}

/* ===== Page ===== */
body{
  font-family: var(--font-text);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

/* =========================================================
   NAV (minimal, centered)
   ========================================================= */
.topbar{
  position: sticky; /* si comporta bene durante lo scroll */
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.top-center{
  display: flex;
  gap: 26px;
  align-items: center;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--c-ink-2);
}

.top-center a{
  position: relative;
  padding: 8px 10px;
  border-radius: 999px;
}

.top-center a:hover{
  color: var(--c-accent);
  background: rgba(209, 214, 219, .25);
}


/* ===== HERO  ===== */
.hero.hero-card{
  min-height: 70vh;
  background: var(--c-bg);
  color: var(--c-ink);
}

/* centro verticale/orizzontale */
.hero.hero-card .hero-center{
  position: static;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 70px 18px 60px;
  gap: 8px;
}

/* Nomi sopra */
.hero.hero-card .hero-title{
  margin-bottom: 0.5px;
  font-family: var(--font-names);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1;
  color: #334E5D;
}

/* Illustrazione grande e NON tagliata */
.hero.hero-card .hero-illustration{
  width: min(1900px, 180vw);  /* aumenta/diminuisci qui */
  margin-top: 40px;
  margin-bottom: 40px;
}

.hero.hero-card .hero-illustration img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Data sotto */
.hero.hero-card .hero-title-date{
  font-family: var(--font-text);
  font-size: 50px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  opacity: .9;
}



/* ===== Schedule ===== */

.schedule-section{
  margin-top: 24px;
  background: var(--sched-bg);
  color: var(--sched-ink);
  padding: clamp(56px, 8vw, 110px) 18px;
  margin-bottom: 10px;
}

.schedule-wrap{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.schedule-title{
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-family: var(--font-names);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 400;
  color: var(--sched-ink);
  letter-spacing: .02em;
}

/* Griglia 2 colonne */
.schedule-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 700px;   /* ⬅️ distanza orizzontale */
  align-items: start;
}

/* Card singola */
.schedule-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.schedule-icon{
  width: 44px;
  height: 44px;
  opacity: .95;
  color: var(--sched-ink);

}

.schedule-icon svg{
  width: 100%;
  height: 100%;
}

/* CERIMONIA / RICEVIMENTO */
.schedule-label{
  font-family: var(--font-text);
  text-transform: uppercase;
  font-size: 50px;
  font-weight: 600;
  letter-spacing: .22em;
  
  color: var(--sched-ink);
}

/* Orario */
.schedule-time{
  font-family: var(--font-names);
  font-size: 40px;
  font-weight: 500;
  color: var(--sched-ink);
}

/* Testo descrizione */
.schedule-text{
  margin: 6px 0 0;
  font-family: var(--font-text);
  font-size: 32px;
  line-height: 1.8;
  color: var(--text-75);
  max-width: 38ch;
  color: var(--sched-ink);
  white-space: nowrap;     /* ⬅️ TUTTO SU UNA RIGA */


}

/* Responsive */
@media (max-width: 820px){
  .schedule-grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }
}


/* =========================================================
   STORY
   ========================================================= */

#story .story-center{
  max-width: 2000px;   /* ⬅️ più largo */
  margin: 0 auto 200px;
  text-align: center;
}



/* Titolo */
#story .display{
  margin-bottom: 60px;
  font-family: var(--font-names);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.15;          /* ⬅️ più respiro */
  color: #334E5D;
  max-width: 28ch;            /* ⬅️ controlla il break */
  margin-left: auto;
  margin-right: auto;
}


/* togli il divider automatico sotto al titolo */
#story .display::after{
  content: none !important;
}

/* Testo molto più grande */
#story .text-block{
  max-width: 72ch;        /* ⬅️ PIÙ LARGO */
  margin: 0 auto;
  font-size: 40px;
  line-height: 1.9;
}



/* =========================================================
   Triple photo strip (3 immagini: laterali + centrale wide)
   ========================================================= */

.photo-strip{
  margin-top: 0px;
  width: 100vw;
  margin-left: calc(50% - 50vw + 32px);
  margin-right: calc(50% - 50vw + 32px);
  padding: 0;
}

.photo-strip-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;  /* tutte larghe uguali */
  gap: 12px;                           /* regola qui lo spazio */
}

/* immagini */
.photo-strip-item{
  margin: 0;
}

.photo-strip-item img{
  width: 100%;
  height: 1000px;       /* alte e potenti */
  display: block;
  object-fit: cover;
}

@media (max-width: 900px){
  .photo-strip-grid{
    grid-template-columns: 1fr;
    gap: 0;
  }

  .photo-strip-item img{
    height: 420px;
  }
}

/* ===== Lista nozze ===== */

.section-gift{
  margin-top: 24px;
  background: var(--sched-bg);
  color: var(--sched-ink);
  /*padding: clamp(56px, 8vw, 110px) 18px;
  margin-bottom: 10px;*/
  padding: 0 18px;
  
  min-height: clamp(520px, 70vh, 760px);
  display: flex;
  justify-content: center; /* centro orizzontale */
  align-items: center;     /* centro verticale */
  margin-top: 24px;
  margin-bottom: 10px;
}

.gift-wrap{
  max-width: 2000px;   /* ⬅️ più largo */
  margin: 0 auto;          /* <-- togli il 200px sotto */
  text-align: center;

    /* se lo vuoi leggermente più in basso del centro */
  transform: translateY(40px);
}

.gift-title{
  /* coerente col resto: display small ma leggermente più presente */
  margin: 0 0 clamp(28px, 4vw, 56px);
  text-transform: uppercase;
  font-family: var(--font-text);
  font-size: 50px;
  font-weight: 600;
  color: var(--sched-ink);
  letter-spacing: .22em;
}

.gift-text{
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--font-text);
  font-size: 32px;
  line-height: 1.8;
  color: var(--sched-ink);
  margin-top: 20px; 
  margin-bottom: 30px;
}

.gift-actions{
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.gift-actions .btn-wide{
  width: min(440px, 100%);
}

.label{
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--text-65);
  margin-bottom: var(--s-2);
}

.value{
  font-family: var(--font-names);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-accent);
  margin-bottom: 6px;
}

.meta{
  font-family: var(--font-text);
  color: var(--text-70);
  font-size: 14px;
}

/* actions */
.actions{
  margin-top: var(--s-5);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  margin-top: 70px;               /* ancora più in basso */
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 24px 44px;             /* più grande */
  min-height: 68px;

  border-radius: 999px;
  border: 1.5px solid #334E5D;    /* blu testo */

  background: #E9EDF0;            /* chiaro, stacca dallo sfondo */
  color: #334E5D;                 /* testo blu */

  font-family: var(--font-text);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.02em;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.08s ease,
    box-shadow 0.2s ease;
}

.btn:hover{
  background: #D6DDE3;            /* leggermente più scuro */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn:active{
  background: #C3CDD6;  /* più scuro del hover */
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
 }

.btn-ghost{
  background: transparent;
}

.btn-wide{
  width: min(520px, 100%);
}

/* text helper */
.muted{
  margin: 0;
  font-family: var(--font-text);
  color: var(--text-70);
}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  padding: var(--s-6) 0 var(--s-7);
  background: var(--c-bg);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--font-text);
  color: var(--text-65);
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}


/* ===== Story slideshow (fade) ===== 
.story-slideshow{
  position: relative;
  width: 100%;
  height: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(38, 49, 54, .12);
}

.story-slideshow::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.18),
    rgba(0,0,0,.06) 35%,
    transparent 65%
  );
}

*/

/* ===== SLIDES =====
.story-slideshow img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.story-slideshow img.active{
  opacity: 1;
}
 */

/* ===== RESPONSIVE ===== */
@media (min-width: 1100px){
  .split-media{
    max-width: 680px;
  }
}

@media (max-width: 900px){
  .story-slideshow{ height: 480px; }
}

@media (max-width: 560px){
  .story-slideshow{ height: 360px; }

  #story .display{
    font-size: 38px;
  }

  #story .text-block{
    font-size: 17px;
  }
}


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .topbar-inner{ justify-content: center; }
  .top-center{ gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 860px){
  .section{ padding: var(--s-7) 0; }
  .split{ grid-template-columns: 1fr; gap: var(--s-6); }
  .card-row{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}


