:root {
  --bg: #fdfaf7;
  --accent: #c9a27c;
  --accent-soft: #f1e1cf;
  --text-main: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --green: #4b6b3f;
}

/* RESET BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

a{
  color: inherit;
  text-decoration: none;
}

.wedding-info-row a{
  text-decoration: underline !important;
  
}


.wedding-info-row .wedding-value a:hover{
  opacity: .85;
}

.btn,
.info-cta{
  text-decoration: none;
}

.wedding-value a{
  text-decoration: underline;
  color: inherit;
}


/* =========================
   HEADER / NAV (PULITA)
   ========================= */
header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: rgba(253, 250, 247, 0.96);
  border-bottom: 1px solid #eee0d0;
}

/* blur SOLO desktop (più stabile su iOS con fixed overlay) */
@media (min-width: 801px){
  header{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.nav{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo{
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
}

/* hamburger */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #eee0d0;
  background: rgba(255,255,255,0.75);
  border-radius: 12px;
  cursor: pointer;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  position: relative;
  z-index: 10002; /* sopra overlay */
}

.nav-toggle span{
  display:block;
  width: 22px;
  height: 2px;
  background: #495b39;
  border-radius: 999px;
}

.nav-menu{ display:block; }

/* links desktop */
.nav-links{
  display:flex;
  gap: 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  list-style:none;
  align-items:center;
}

.nav-links > li{ position:relative; }

.nav-links a{
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover{ border-color: var(--accent); }

.nav-links a.active{
  border-color: var(--accent);
  font-weight: 600;
}

/* button dropdown come link */
.nav-link-main{
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 6px 4px;
  text-align: left;

  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.has-dropdown .nav-link-main::after{
  content:"▾";
  font-size: 12px;
  opacity: .75;
}

/* dropdown desktop */
.dropdown{
  position:absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 1px solid #f0e1d2;
  list-style:none;
  padding: 8px 0;
  min-width: 170px;
  display:none;
  z-index: 50;
}

.dropdown li a{
  display:block;
  padding: 7px 16px;
  font-size: 13px;
  text-transform:none;
  letter-spacing:0;
  border-bottom:none;
  color:#555;
}

.dropdown li a:hover{
  background-color:#faf3e7;
  color:#333;
}

/* hover SOLO desktop */
@media (min-width: 801px){
  .has-dropdown:hover .dropdown{ display:block; }
}

/* =========================
   NAV MOBILE
   ========================= */
@media (max-width: 800px){
  .nav-toggle{ display:inline-flex; }

  .nav-menu{
    position: fixed;
    inset: 0;
    padding: 84px 16px 22px; /* spazio per header */
    background: rgba(253,250,247,0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid #eee0d0;
    overflow: auto;
    z-index: 10001;
    display: none;
  }
  body.nav-open .nav-menu{ display:block; }

  /* blocca scroll dietro */
  body.nav-open{
    overflow:hidden;
    touch-action:none;
  }

  .nav-links{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
  }

  .nav-links > li{
    border: 1px solid #f0e1d2;
    background: rgba(255,255,255,0.65);
    border-radius: 16px;
    overflow: hidden;
  }

  /* riga cliccabile identica per <a> e <button> */
  .nav-links > li > a,
  .nav-links > li > button.nav-link-main{
    width: 100%;
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding: 14px 14px;
    border-bottom:none;
  }

  /* dropdown mobile: static e chiuso di default */
  .dropdown{
    position: static;
    transform:none;
    margin:0;
    border:none;
    border-top: 1px solid #f0e1d2;
    box-shadow:none;
    border-radius:0;
    padding: 8px 0;
    display:none;
    background: rgba(255,255,255,0.55);
  }
  .has-dropdown.open .dropdown{ display:block; }

  .dropdown li a{
    padding: 12px 14px;
    font-size: 15px;
  }

  .has-dropdown.open .nav-link-main::after{ content:"▴"; }

  /* touch */
  .nav-menu, .nav-links, .nav-links *{
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* desktop: forza menu normale */
@media (min-width: 801px){
  body.nav-open{ overflow: visible; touch-action: auto; }
  .nav-menu{
    position: static;
    display:block !important;
    padding:0;
    background:transparent;
    border:0;
  }
  .nav-toggle{ display:none !important; }
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  background: #faf9f6 url("img/pattern_marilu.png") repeat;
  background-size: 380px;
  border-bottom: 1px solid #f0e1d2;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-left { display: flex; align-items: center; justify-content: flex-start; }

.name-logo {
  width: 380px;
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-right { display: flex; justify-content: center; }

.hero-card {
  background: linear-gradient(135deg, #ffffff, #f6ece2);
  border-radius: 24px;
  padding: 22px 20px 24px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1dfcf;
  max-width: 320px;
  width: 100%;
}

.countdown-title {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.countdown {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.countdown-item {
  flex: 1;
  padding: 10px 6px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border: 1px solid #f0e1d2;
}

.countdown-number {
  font-size: 20px;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.hero-card-note {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

/* HERO PICCOLA */
.hero.hero-small { background-size: 380px; }

.hero-small .hero-inner {
  max-width: 1100px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  text-align: center;
  padding: 48px 20px 44px;
}

.hero-inner-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-inner-center > div { max-width: 750px; }

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 8px;
  color: #495b39;
}

/* =========================
   MAIN / INTRO
   ========================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.intro { padding: 22px 0 24px; }

.intro-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-intro {
  font-family: "Great Vibes", cursive;
  font-size: 40px;
  color: #2a2a2a;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 2.4rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* BOTTONI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-ghost { background-color: transparent; color: var(--accent); }
.btn-ghost:hover { background-color: var(--accent-soft); }

/* =========================
   GALLERIA
   ========================= */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #f0e1d2;
  background-color: #f8f1e8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* =========================
   SHARE PHOTOS
   ========================= */
.share-photos {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 30px 20px 10px;
  text-align: center;
}

.share-photos-inner {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f0e1d2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.03);
  padding: 18px 18px 22px;
  font-size: 14px;
  color: var(--text-light);
}

.share-photos-inner p { margin-bottom: 14px; }

/* =========================
   FOOTER
   ========================= */
.site-footer {
  border-top: 1px solid #f0e1d2;
  background-color: var(--bg);
  padding: 32px 20px 18px;
  font-size: 14px;
  color: var(--text-light);
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-col { text-align: left; }

.footer-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: #496539;
  margin-bottom: 10px;
}

.footer-col p, .footer-col li { margin-bottom: 6px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col a { color: var(--text-main); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #eee0d0;
  padding-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

.footer-bottom span {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.footer-credit{
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.footer-credit a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover{
  opacity: 0.8;
}

/* =========================
   TIMELINE (se usata)
   ========================= */
.timeline-page { max-width: 1100px; margin: 0 auto; }

.timeline-section { position: relative; padding: 40px 0 10px; }

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 70px;
  width: 2px;
  background: linear-gradient(to bottom, #d3e2c8, #b0c79e);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

.timeline-item.left { justify-content: flex-start; }
.timeline-item.right { justify-content: flex-end; }

.timeline-card {
  background: #ffffff;
  border: 1px solid #f0e1d2;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
  max-width: 420px;
  width: 100%;
  font-size: 15px;
  line-height: 1.6;
}

.timeline-time-badge {
  position: relative;
  z-index: 2;
  background-color: #6b8f6a;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.timeline-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-title h3 { margin: 0; }

.timeline-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.timeline-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* =========================
   PAGINE INFO CITTÀ
   ========================= */
.info-list-page {
  max-width: 1100px;
  margin: 40px auto 70px;
  padding: 0 20px;
  font-size: 16px;
}

.info-list { display: flex; flex-direction: column; gap: 32px; }

.info-item-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin-bottom: 6px;
  color: #243447;
}

.info-item-meta { font-size: 15px; margin-bottom: 8px; color: var(--text-main); }

.info-item-note { font-size: 15px; line-height: 1.7; color: var(--text-light); }

.info-item-meta a{
  text-decoration: underline;
  color: inherit;
  text-underline-offset: 2px;
}

.info-item-meta a:hover{
  opacity: 0.85;
}


.info-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.info-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #4b6b3f;
  font-size: 13px;
  background-color: #4b6b3f;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.info-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* =========================
   PAGINA "DOVE E QUANDO"
   ========================= */
.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.place-section { margin-bottom: 32px; }

.place-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.place-card.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.place-media { height: 100%; }

.place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #f0e1d2;
}

/* cards stile wedding */
.wedding-card,
.location-card {
  background: #faf7eb;
  border-radius: 22px;
  border: 1px solid #ecdcc3;
  box-shadow: 0 10px 22px rgba(0,0,0,0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wedding-card { padding: 26px 28px; font-size: 17px; line-height: 1.7; color: #444; }
.location-card { padding: 32px 38px; font-size: 18px; color: #4a4a4a; }

.wedding-card h2, .wedding-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: #496539;
  margin-bottom: 18px;
}

.location-card h2 {
  font-family: "Playfair Display", serif;
  color: #4e623f;
  font-size: 34px;
  margin-bottom: 14px;
}

.location-card p.desc {
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.6;
}

.wedding-info-row {
  background: rgba(255,255,255,0.6);
  border: 1px solid #f1dfcf;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  gap: 14px;
}

.wedding-label { font-weight: 600; color: #4f5f3d; }
.wedding-value { color: #2d2d2d; }

.wedding-info-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.wedding-info-block .wedding-label { font-size: 16px; }
.wedding-info-block .wedding-value { font-size: 16px; line-height: 1.6; margin: 0; }




/* =========================
   PAGINA "COME ARRIVARE"
   ========================= */
.travel-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.travel-section:first-of-type { margin-top: 50px; }

.travel-section-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  text-align: center;
  margin-bottom: 26px;
  color: #495b39;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.travel-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f0e1d2;
  box-shadow: 0 10px 22px rgba(0,0,0,0.03);
  padding: 18px 18px 20px;
  font-size: 14px;
}

.travel-card-header {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
  color: #495b39;
}

.travel-list { margin: 0; padding-left: 0; list-style: none; font-size: 13px; }
.travel-list li { margin-bottom: 4px; }

.travel-divider {
  margin: 40px auto;
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a27c, transparent);
  position: relative;
}

.travel-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #c9a27c;
  background-color: var(--bg);
}

.travel-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.travel-info-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f0e1d2;
  box-shadow: 0 8px 18px rgba(0,0,0,0.02);
  padding: 16px 16px 18px;
  font-size: 13px;
}

.travel-info-title {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  margin-bottom: 8px;
  color: #495b39;
}





/* =========================
   RESPONSIVE (layout generale)
   ========================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-left { justify-content: center; }
}

@media (max-width: 900px) {
  .travel-grid { grid-template-columns: minmax(0, 1fr); }
  .travel-info-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
  /* footer */
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-col { text-align: center; }

  /* cards dove e quando */
  .place-card, .place-card.reverse { grid-template-columns: minmax(0, 1fr); }

  /* CTA info */
  .info-cta-row { flex-direction: column; }

  /* timeline line */
  .timeline-line { left: 16px; transform: none; }
  .timeline-item, .timeline-item.left, .timeline-item.right { justify-content: flex-start; margin-left: 10px; }
  .timeline-time-badge { margin: 0 10px 0 0; }
}

@media (max-width: 700px) {
  .name-logo { width: 280px; }

  /* GALLERY A SLIDE */
  .gallery-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 14px;
  }

  .gallery-item {
    flex: 0 0 82%;
    scroll-snap-align: center;
    border-radius: 22px;
  }

  .gallery-item img { height: 460px; }

  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid { scrollbar-width: none; }
}

@media (max-width: 500px) {
  .section-intro { font-size: 28px; line-height: 1.3; }
}

@media (max-width: 480px) {
  .gallery-item { flex-basis: 86%; }
  .gallery-item img { height: 420px; }
}

@media (max-width: 800px) {
  header { z-index: 9999; }
  .nav-menu { z-index: 10001; }
}

@media (max-width: 800px) {
  /* centra testi nelle pagine info (ristoranti, bar, luoghi, ecc) */
  .info-list-page,
  .info-list-page .info-item,
  .info-list-page .info-item-title,
  .info-list-page .info-item-meta,
  .info-list-page .info-item-note {
    text-align: center;
  }

  /* centra anche i contatti nel footer */
  .footer-col {
    text-align: center;
  }
}
