/* Camilo & Eli — overrides on top of the vendored template. Loaded last. */

/* --- bilingual: show one language, hide the other ------------------------ */
html[lang="es"] .en, html[lang="es"] .fr,
html[lang="en"] .es, html[lang="en"] .fr,
html[lang="fr"] .es, html[lang="fr"] .en { display: none !important; }

.lang-switch a { font-weight: 600; letter-spacing: 1px; color: #9A8975; text-decoration: none; }
.lang-switch a.active { color: #4A372A; }
.lang-switch .sep { opacity: .4; margin: 0 4px; }

/* --- palette: cream, brown, tropical green ------------------------------- */
body { background: #FDF9F0; color: #6B5B4C; }
h1, h2, h3, h4, h5, h6 { color: #4A372A; }
a { color: #3F6B4A; }
a:hover, a:focus { color: #7A5C3E; }

.fh5co-section-gray { background: #F4EEE1; }
.fh5co-nav { background: rgba(253, 249, 240, .95); }
.fh5co-nav ul li a { color: #4A372A; }
.fh5co-cover .overlay { background: rgba(253, 249, 240, .55); }

.btn.btn-default {
	background: #4A372A; border-color: #4A372A; color: #FDF9F0;
	padding: 12px 28px; letter-spacing: 1px; border-radius: 2px;
}
.btn.btn-default:hover, .btn.btn-default:focus { background: #3F6B4A; border-color: #3F6B4A; color: #fff; }

/* --- hero ---------------------------------------------------------------- */
.script { font-family: Sacramento, cursive; }

/* Sacramento has tall ascenders and long descenders: it needs real line-height and
   explicit margins, or "Camilo" collides with the line above and with "Eli" below.
   clamp() scales it by viewport instead of stacking breakpoints. */
#fh5co-header .display-tc h1.script {
	font-size: clamp(54px, 10vw, 96px); line-height: 1.18; color: #4A372A;
	/* padding in em so the descender room scales with the clamped font size:
	   the tail of "Eli" hangs well below its line box and would hit the date */
	margin: 48px 0 44px; padding-bottom: .24em;
	text-shadow: 0 1px 12px rgba(253, 249, 240, .9);
}
/* the "y" between the names: its own descender was crossing the tall swash of "Eli",
   so it gets margins in its own em units and they scale with the clamped h1 */
#fh5co-header .display-tc h1.script small {
	font-size: .40em; line-height: 1.2; color: #4A372A; display: block;
	margin: .4em 0 1.7em;
}
#fh5co-header .pre-title {
	font-size: clamp(15px, 1.7vw, 17px); color: #4A372A;
	max-width: 460px; margin: 0 auto 38px; line-height: 1.6;
}
/* template sets `.display-tc h2 { color: white }` — same specificity, so match it */
#fh5co-header .display-tc h2.date {
	font-size: clamp(19px, 2.6vw, 26px); color: #4A372A; margin: 20px 0 8px;
}
#fh5co-header .place {
	font-size: clamp(13px, 1.6vw, 16px); letter-spacing: 2px;
	text-transform: uppercase; color: #4A372A;
}

/* --- countdown ----------------------------------------------------------- */
#countdown { margin: 28px 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
#countdown .unit {
	background: rgba(253, 249, 240, .85); border: 1px solid rgba(74, 55, 42, .15);
	border-radius: 4px; padding: 12px 6px; min-width: 76px;
}
#countdown b { display: block; font-size: 32px; font-weight: 300; color: #4A372A; line-height: 1; }
#countdown small { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #6B5B4C; margin-top: 6px; }
@media screen and (max-width: 480px) {
	#countdown .unit { min-width: 62px; padding: 10px 4px; }
	#countdown b { font-size: 24px; }
}

/* --- sections ------------------------------------------------------------ */
#detalles, #lugar, #rsvp, #faq, #internacionales, #regalos { padding: 70px 0; }
.event-wrap { text-align: center; padding: 0; background: none; }
.event-wrap .event-col { display: inline-block; vertical-align: top; width: 30%; min-width: 220px; padding: 16px; }
.event-wrap .event-col i { display: block; font-size: 28px; color: #3F6B4A; margin-bottom: 10px; }
.event-wrap .dress { margin-top: 20px; font-size: 17px; }
.event-wrap .dress .dress-icon { display: block; width: 34px; height: 34px; color: #3F6B4A; margin: 0 auto 10px; }
.venue-name { font-size: 19px; color: #4A372A; font-weight: 600; }

.invitacion {
	max-width: 100%; height: auto; margin-top: 40px;
	border: 1px solid rgba(74, 55, 42, .12); box-shadow: 0 6px 24px rgba(74, 55, 42, .12);
}
/* the .es/.en rule above uses display:none; restore block for these images */
html[lang="es"] .invitacion.es,
html[lang="en"] .invitacion.en,
html[lang="fr"] .invitacion.fr { display: block !important; margin-left: auto; margin-right: auto; }

.faq-list h3 { font-size: 19px; margin: 30px 0 6px; }
.faq-list p { margin-bottom: 0; }

footer { padding: 50px 0; background: #4A372A; }
footer .script { font-size: 34px; color: #FDF9F0; margin: 0; }

.gototop.active a { background: #4A372A; }

/* --- pubblicazioni di matrimonio (the banns) ----------------------------- */
#pubblicazioni { padding: 80px 0; background: #FDF9F0; }
#pubblicazioni .row { display: flex; flex-wrap: wrap; align-items: center; }
.banns-photo { margin: 0; }
.banns-photo img {
	width: 100%; height: auto; border-radius: 3px;
	box-shadow: 0 10px 34px rgba(74, 55, 42, .22); cursor: zoom-in;
}
.banns-text { padding-left: 40px; }
.banns-text h2.script { font-size: 52px; line-height: 1.1; margin-bottom: 24px; color: #4A372A; }
.banns-text p { font-size: 17px; }
@media screen and (max-width: 992px) {
	#pubblicazioni .row { display: block; }
	.banns-text { padding-left: 15px; margin-top: 34px; }
	.banns-text h2.script { font-size: 40px; }
}

/* --- gallery: CSS columns masonry, no plugin ----------------------------- */
.gallery { columns: 3; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; }
.gallery img {
	width: 100%; height: auto; display: block; border-radius: 3px;
	box-shadow: 0 3px 12px rgba(74, 55, 42, .14);
	transition: transform .25s ease, box-shadow .25s ease; cursor: zoom-in;
}
.gallery a:hover img, .gallery a:focus img {
	transform: translateY(-3px); box-shadow: 0 10px 24px rgba(74, 55, 42, .26);
}
@media screen and (max-width: 992px) { .gallery { columns: 2; } }
@media screen and (max-width: 560px) { .gallery { columns: 1; } }

/* --- lightbox ------------------------------------------------------------ */
#lightbox {
	border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
	width: 100%; height: 100%; overflow: hidden;
}
#lightbox::backdrop { background: rgba(30, 22, 16, .92); }
#lightbox img {
	display: block; margin: auto; max-width: 92vw; max-height: 88vh;
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	border-radius: 3px; box-shadow: 0 12px 50px rgba(0, 0, 0, .5);
}
#lightbox button {
	position: absolute; background: none; border: 0; color: #FDF9F0;
	opacity: .75; cursor: pointer; line-height: 1; padding: 10px 16px;
}
#lightbox button:hover, #lightbox button:focus { opacity: 1; outline: none; }
.lb-close { top: 10px; right: 14px; font-size: 42px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 60px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
@media screen and (max-width: 560px) { .lb-nav { font-size: 40px; } }

/* hero: the template fixes the cover at 1000px/900px, which clips our taller
   content (pre-title + names + date + countdown + button) on short screens */
@media screen and (max-width: 992px) {
	#fh5co-header.fh5co-cover { height: auto; min-height: 100vh; }
	#fh5co-header .display-t, #fh5co-header .display-tc { height: auto; }
	#fh5co-header .display-tc { padding-top: 110px; padding-bottom: 60px; }
}

/* --- section headings ---------------------------------------------------- */
/* the template's "Amsterdam" script is near-illegible at heading sizes; reuse
   Work Sans (already loaded) uppercase and letterspaced instead */
/* Cormorant Garamond: an elegant old-style serif that still reads cleanly at
   heading sizes, and pairs with the Sacramento script used for the names */
.fh5co-heading h2 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(34px, 4.8vw, 52px);
	font-weight: 400; letter-spacing: 2px; text-transform: uppercase;
	color: #4A372A; line-height: 1.1; margin-bottom: 22px; overflow-wrap: break-word;
}
.faq-list h3, .venue-name {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500; letter-spacing: .3px;
}
.faq-list h3 { font-size: 25px; }
.venue-name { font-size: 24px; }
.fh5co-heading { margin-bottom: 3em; }
.fh5co-heading p { color: #6B5B4C; }
/* template caps ANY <span> inside a heading at 13px grey uppercase. Our bilingual
   .es/.en spans are spans, so every section title was stuck at 13px no matter what
   font-size the h2 asked for. Make headings' spans transparent to their parent. */
.fh5co-heading span {
	font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}

/* --- language toggle: fixed to the top right corner ---------------------- */
/* lives outside the nav list entirely, so it can never crowd the links */
.lang-switch {
	position: fixed; top: 14px; right: 18px; z-index: 1100;
	background: rgba(253, 249, 240, .92); border: 1px solid rgba(74, 55, 42, .15);
	border-radius: 20px; padding: 5px 14px; font-size: 13px;
}
@media screen and (max-width: 768px) { .lang-switch { top: 10px; right: 10px; } }

/* mobile top bar: give it a real height and center both controls inside it,
   so neither the hamburger (moved to the left) nor the ES|EN pill spills out */
@media screen and (max-width: 768px) {
	.fh5co-nav { height: 66px; padding: 0 !important; background: rgba(253, 249, 240, .95); }
	/* the toggle is prepended to #page, not the nav, so it positions against the
	   page — use a fixed offset (44px tall, centered in the 66px bar) */
	.fh5co-nav-toggle { right: auto !important; left: 12px; top: 11px !important; }
	.lang-switch { top: 19px; right: 12px; } /* ~28px pill centered in a 66px bar */
}
/* hamburger lines were white — invisible on the cream bar; make them brown */
.fh5co-nav-toggle.fh5co-nav-white > i,
.fh5co-nav-toggle.fh5co-nav-white > i::before,
.fh5co-nav-toggle.fh5co-nav-white > i::after {
	background: #4A372A !important; color: #4A372A !important;
}

/* --- gifts: bank accounts over the floral card --------------------------- */
.gifts-card {
	max-width: 620px; margin: 10px auto 0; padding: 48px 34px;
	background: #F7F3EC url(../images/gifts-bg.jpg) center / cover no-repeat;
	border-radius: 4px; box-shadow: 0 8px 30px rgba(74, 55, 42, .16);
	text-align: center; color: #4A372A;
}
.gift-head { margin-bottom: 22px; }
.gift-head p { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.gifts-card .label {
	font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
	font-size: 16px; color: #7A5C3E;
}
.gift-bank { margin: 20px 0; }
.gift-bank h4 {
	font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px;
	margin: 0 0 8px; color: #4A372A;
}
.acct-row { margin: 4px 0; }
.acct-row .cur { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #6B5B4C; }
/* the copyable number: looks like text, behaves like a button */
button.copy {
	border: 0; background: none; cursor: pointer; padding: 3px 6px;
	font-family: "Work Sans", monospace; font-size: 16px; color: #3F6B4A;
	letter-spacing: .5px; border-radius: 3px; transition: background .15s;
	word-break: break-all; max-width: 100%;
}
button.copy:hover, button.copy:focus { background: rgba(63, 107, 74, .12); outline: none; }
button.copy.copied { color: #4A372A; }
button.copy.copied::after {
	content: " ✓"; color: #3F6B4A;
}
.copy-hint { margin: 20px 0 0; font-size: 13px; color: #6B5B4C; font-style: italic; }

/* --- international guests: hotel lists ------------------------------------ */
#internacionales .faq-list { text-align: left; }
#internacionales .faq-list h3 { text-align: left; }
#internacionales .faq-list h4 {
	font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px;
	color: #4A372A; margin: 26px 0 8px;
}
#internacionales .faq-list h5 {
	font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
	color: #7A5C3E; margin: 34px 0 8px; font-weight: 600;
}
#internacionales .faq-list ul { list-style: none; padding: 0; margin: 0 0 6px; }
#internacionales .faq-list ul li { margin: 0 0 8px; line-height: 1.5; }
#internacionales .faq-list ul li b { color: #4A372A; }
