:root {
  --sage: #A8B6A2;
  --sage-dark: #8B9A87;
  --sage-soft: #F1F4F0;
  --beige: #F4F3EE;
  --light: #FFFFFF;
  --text-dark: #2F2F2F;
  --text-muted: #777;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--light);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

img {
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

section {
  padding: 90px 20px;
  max-width: 1200px;
  margin: auto;
}

a{
  color: #8B9A87;
  text-decoration: none;
}

a:hover{
  color:#2F2F2F;
  text-decoration: underline;
}

.section-title {
  text-align: center;
  margin-bottom: 55px;
}

.section-title h2 {
  font-size: 3rem;
  letter-spacing: 1px;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  text-decoration: none;
  color: #fff;
  margin-right: 0px!important;
}

.navbar-menu {
  display: flex;
  gap: 22px;
  list-style: none;
}

.navbar-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 0.78rem;
  position: relative;
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.2s ease;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  transition: 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {

  /* Mostra hamburger */
  .navbar-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  /* MENU MOBILE FULLSCREEN */
  .navbar-menu {
    display: none;
    position: fixed;
    inset: 0; /* top right bottom left 0 */
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(4px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 40px;
    z-index: 1000;

    /* animazione */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .navbar-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  /* Stile delle voci */
  .navbar-menu li a {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #fff;
  }

  .countdown {
    flex-wrap: nowrap !important;   /* impedisce l'andare a capo */
    justify-content: space-between; /* distribuisce i 4 box */
  }

  .count-box {
    min-width: 55px;         /* più stretti */
    padding: 10px 8px;       /* meno padding */
  }

  .count-box .num {
    font-size: 1.3rem;       /* numeri più piccoli */
  }

  .count-box .label {
    font-size: 0.6rem;       /* etichetta più piccola */
    letter-spacing: 0.8px;
  }
}





/* CTA */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid var(--sage-dark);
  background: var(--sage-dark);
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  transition: 0.3s ease;
  border-radius: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border-color: var(--light);
}

.btn:hover {
  opacity: 0.88;
}

/* HEADER */
header {
  position: relative;
  height: 95vh;
  min-height: 640px;
  color: var(--light);
  display: flex;
  align-items: center;
  padding: 0 20px;
  padding-top: 90px;
  /* spazio sotto la navbar */
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Usa qui la tua immagine. Salvala come header-coppia.jpg nella stessa cartella */
  background: url('header-coppia.jpg') center/cover no-repeat;
  filter: saturate(0.7) brightness(0.95);
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
}

header .overlay {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

header h1 {
  font-size: 4.2rem;
  line-height: 1.05;
  margin-bottom: 10px;
}

header .date {
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 26px;
  font-size: 0.9rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 20px;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 15px;
  margin: 18px 0 28px;
  flex-wrap: wrap;
}

.count-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  min-width: 70px;
  border-radius: 3px;
}

.count-box .num {
  font-size: 1.7rem;
  font-weight: 600;
}

.count-box .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Story */
.story-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-container p {
  font-size: 1.02rem;
}

/* PROGRAMMA – SALVIA + ICON SVG */
#programma {
  max-width: 100%;
  padding: 110px 20px;
  color: #fff;
  position: relative;
  text-align: center;
  background: var(--sage);
}

.program-inner {
  max-width: 1200px;
  margin: auto;
}

.program-inner h2 {
  font-size: 3.2rem;
  letter-spacing: 2px;
}

.program-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 60px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.program-item-hero .time {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.program-item-hero .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.program-item-hero .icon svg {
  width: 34px;
  height: 34px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* LG = 2 colonne */
  gap: 40px;
}

/* OVERRIDE PER FIXARE LA GRID DELLA LOCATION */
@media (min-width: 961px) {
  .locations-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 960px) {
  .locations-grid {
    grid-template-columns: 1fr !important;
  }
}

/* SM (smartphone): 1 colonna */
@media (max-width: 640px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

.location-card {
  background: var(--beige);
  padding: 25px;
  border-radius: 4px;
}

.location-card h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.location-card p {
  margin-bottom: 12px;
}

.map {
  margin-top: 15px;
  border-radius: 4px;
  overflow: hidden;
}

/* Lista Nozze / Un pensiero per noi */
#regalo {
  background: var(--sage);
  color: #fff;
}

#regalo .section-title h2 {
  color: #fff;
}

.gift-box {
  border-radius: 4px;
  padding: 0 30px 10px;
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.gift-box h3 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.gift-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.gift-box p {
  margin-bottom: 10px;
}

.iban {
  margin-top: 18px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  border-radius: 3px;
  display: inline-block;
}

/* FAQ */
#faq {
  max-width: 800px;
}

details {
  background: var(--beige);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  cursor: pointer;
}

summary {
  font-weight: 600;
  font-size: 1rem;
}

/* RSVP */
#rsvp {
  background: var(--sage-soft);
}

form {
  max-width: 650px;
  margin: auto;
  display: grid;
  gap: 20px;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--sage);
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

textarea {
  height: 120px;
  resize: vertical;
}

/* Contatti */
.contacts {
  text-align: center;
  font-size: 1.05rem;
  line-height: 2;
}

footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--beige);
  margin-top: 40px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .navbar {
    padding: 14px 18px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  header .overlay {
    margin-left: 0;
  }

  header {
    padding-top: 110px;
    text-align: center;
    justify-content: center;
  }

  .story-container,
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }
}

@media (max-width: 640px) {
  header h1 {
    font-size: 3rem;
  }

  .section-title h2 {
    font-size: 2.4rem;
  }

  .program-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bg_grigino{
  background-color:#F4F3EE;
}