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

:root {
  --gold: #b8975a;
  --gold-light: #d4b87a;
  --gold-pale: #e8d9b0;
  --cream: #faf8f4;
  --text-dark: #2a2318;
  --text-mid: #5a4e3a;
  --text-light: #8a7a60;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: #611c32;
  font-family: 'Libre Baskerville', serif;
  overflow-x: hidden;
}

/* Variante Regular */
@font-face {
    font-family: 'Milton Two';
    src: url('../fonts/Milton_Two.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variante Bold */
@font-face {
    font-family: 'Milton Two';
    src: url('../fonts/Milton_Two_Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Per le scritte normali in corsivo */
.font_nome_sposi_4 {
    font-family: 'Milton Two', cursive !important;
    font-weight: normal;
    font-size: 24px;
}

.font_data_sposi_4 {
    font-family: 'Milton Two', cursive !important;
    font-weight: normal;
    font-size: 20px;
}

/* Per le scritte in grassetto */
.font_nome_sposi_bold_4 {
    font-family: 'Milton Two', cursive !important;
    font-weight: bold;
    font-size: 24px;
}

.font_nome_sposi {
  font-family: 'Great Vibes', cursive !important;
}
.font_nome_sposi_footer {font-size:24px !important;}

.font_generico {
	font-family: 'Libre Baskerville', serif !important;
  letter-spacing: 0.05em;
}

.font_nome_sposi_2 {
  font-family: "Ms Madi", cursive !important;
  font-weight: 100;
  font-style: normal;
}

.font_nome_sposi_3 {
  font-family: "Meow Script", cursive !important;
  font-weight: 400;
  font-style: normal;
}


/* ── NAV (NON FIXED / STANDARD) ── */
.site-nav {
  position: relative !important;
  z-index: 1050;
  background-color: transparent; 
  padding: 10px 40px !important; /* Compatta lo spazio verticale */
}

.nav-logo {
  height: 90px;
  width: auto;
  opacity: 0.9;
}

.testo-inclinato {
    font-family: 'Great Vibes', cursive;
    display: inline-block;
    transform: skewX(-8deg); /* Inclina delicatamente verso destra */
}

/* Integrazione con i link della Navbar di Bootstrap */
.site-nav .navbar-nav .nav-link.cta-btn {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #611c32;
  text-decoration: none;
  border: 1px solid #b7989f;
  padding: 10px 20px;
  background: transparent;
  transition: all 0.3s ease;
}

.site-nav .navbar-nav .nav-link.cta-btn:hover,
.site-nav .navbar-nav .nav-link.cta-btn:focus {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(184,151,90,0.04);
}

/* ── HERO SECTION (POSIZIONAMENTO ASSOLUTO RIALZATO) ── */
.hero {
  height: 100vh;
  max-height: 100vh;
  background: var(--cream);
}

/* Area monogramma/nomi in alto */
.logo-area {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 30px 20px 10px;
  width: 100%;
}

.names-line {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(16px, 2vw, 24px);
  color: #611c32;
  letter-spacing: 0.12em;
  margin-top: 5px;
}

.date-line {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(9px, 1vw, 12px);
  color: #611c32;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 5px;
}

.places-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(9px, 1vw, 12px);
  color: #611c32;
  letter-spacing: 0.28em;
  margin-top: 4px;
}

/* Immagine di sfondo nativa a schermo intero */
.hero-bg-img {
  z-index: 1;
  pointer-events: none;
}

/* Sfumature sopra l'immagine di sfondo */
.chiesa-fade-top {
  height: 25%;
  background: linear-gradient(to bottom, var(--cream) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.chiesa-fade-bottom {
  height: 65%; /* Estesa per coprire lo sfondo del testo rialzato */
  background: linear-gradient(to top, var(--cream) 35%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* FORZATURA POSIZIONE: Spinge tutto il blocco nettamente più in alto dal fondo */
.church-overlay-text {
  bottom: 40% !important; /* Alza sensibilmente tutto il gruppo di testi su desktop */
  text-shadow: 0 1px 15px rgba(250, 248, 244, 0.6);
}

.text-shadow-gold {
  text-shadow: 0 1px 20px rgba(250, 248, 244, 0.5);
}

.date-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(115px, 5vw, 100px);
  color: #611c32;
  letter-spacing: 0.01em;
  line-height: 1.1;
} 

.date-main2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(76px, 3vw, 76px);
  color: #611c32;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-top: 5px;
}

.date-main-footer {
  font-size: clamp(57px, 5vw, 44px);
}

.date-main2-footer {
  font-size: clamp(44px, 5vw, 44px);
}

.location-church {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 1.5vw, 19px);
  color: #611c32;
  letter-spacing: 0.12em;
  margin-top: 5px;
}

/* ── DIVIDER ── */
.divider { padding: 50px 40px 30px; }
.divider2 { padding: 30px 40px; }

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-pale));
}

.divider-line.right {
  background: linear-gradient(to left, transparent, var(--gold-pale));
}

.divider-ornament {
  color: var(--gold);
  font-size: 18px;
  opacity: 0.6;
}

/* ── DETAILS SECTION (LARGHEZZA FINO A 1600PX) ── */
.container-custom-wide {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.45em;
  color: var(--gold);
  opacity: 0.75;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 36px);
  color: #611c32;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.section-body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #611c32;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* ── VILLA SECTION ── */
.villa-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
}

.villa-inner { max-width: 100%; margin: 0; padding: 0; }
.villa-parallax { position: relative; overflow: hidden; width: 100%; }

.villa-img {
  width: 100%;
  display: block;
  transform: scale(1.1);
  will-change: transform;
  object-fit: cover;
  height: 60vh;
}

.villa-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, var(--cream) 0%, rgba(250,248,244,0) 100%);
  z-index: 2;
  pointer-events: none;
}

.villa-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--cream) 20%, rgba(250,248,244,0) 100%);
  z-index: 2;
  pointer-events: none;
}

.villa-caption { text-align: center; padding: 20px 20px 40px; }

.villa-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 18px);
  color: #611c32;
  letter-spacing: 0.2em;
}

/* ── CLOSING SECTION ── */
.closing-section { padding: 60px 20px; }

.closing-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.closing-body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(16px, 1.7vw, 20px);
  color: #611c32;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

/* Mantenuto per compatibilità vecchio bottone */
.cta-btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #611c32;
  text-decoration: none;
  border: 1px solid #b7989f;
  padding: 16px 28px;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,151,90,0.04);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 60px 40px 80px;
  border-top: 1px solid rgba(184,151,90,0.15);
}

.footer-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 52px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 15px;
  color: #611c32;
  letter-spacing: 0.2em;
}

.footer-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: #611c32;
  letter-spacing: 0.15em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-area { animation: fadeUp 1.4s ease forwards; }
.details-section { animation: fadeUp 1.4s ease 0.5s both; }

/* ── MEDIA QUERY RESPONSIVE MOBILE ── */
@media screen and (max-width: 767px) {
  .site-nav { padding: 10px 15px !important; }
  .nav-logo { height: 65px; } 
  .logo-area { padding-top: 10px; }
  
  /* Rialzato matematicamente anche su mobile per evitare la sovrapposizione con i menu dei browser del telefono */
  .church-overlay-text { 
    bottom: 45% !important; 
  }
  .pt-5-mobile { padding-top:0px !important;}
  .section-title {
	  font-size: clamp(28px, 4vw, 44px);
	}
	.date-main {
	  font-size: clamp(75px, 5vw, 70px);
	}
	.date-main2 {
	  font-size: clamp(50px, 3vw, 50px);
	}
}

@media screen and (min-width: 768px) {
  .container-custom-wide .object-fit-cover {
    height: 55vh;
    max-height: 650px;
  }
}

.linkInfo{color: #611c32;}

.btn-outline-custom{--bs-btn-color: #611c32;
    --bs-btn-border-color: #611c32;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #611c32;
    --bs-btn-hover-border-color: #611c32;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #611c32;
    --bs-btn-active-border-color: #611c32;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #611c32;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #611c32;
    --bs-gradient: none;
    font-weight: 600;
}
.btn-custom {
    --bs-btn-color: #fff;
    --bs-btn-bg: #611c32;
    --bs-btn-border-color: #611c32;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #611c32;
    --bs-btn-hover-border-color: #611c32;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #611c32;
    --bs-btn-active-border-color: #611c32;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #611c32;
    --bs-btn-disabled-border-color: #611c32;
}
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #611c32;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-clip: padding-box;
    border: var(--bs-border-width) solid #b8975a;
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-select {
    --bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #611c32;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid #b8975a;
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-check-input {
    --bs-form-check-bg: #611c32;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    margin-top: .25em;
    vertical-align: top;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-image: var(--bs-form-check-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: var(--bs-border-width) solid #b8975a;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
}
.text-muted.custom {
    --bs-text-opacity: 1;
    color: #b8975a !important;
}