@import url(/fonts/fonts.css);

:root {
  --ink: #222222;
  --muted: #616161;
  --paper: #ffffff;
  --ivory: #f8f5f0;
  --line: #e7e1d8;
  --gold: #a87a22;
  --gold-soft: #ca8d19;
  --sky: #dfecf2;
  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section.ivory { background: var(--ivory); }
.rule { width: 56px; height: 1px; background: var(--gold-soft); border: 0; margin: 28px auto; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.current { color: var(--gold); border-color: var(--gold-soft); }
.drop { position: relative; }
.drop-menu {
  position: absolute; top: 100%; left: -22px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 22px;
  min-width: 230px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 900px) {
  .nav-burger {
    display: block; cursor: pointer; width: 30px; height: 20px; position: relative;
  }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  }
  .nav-burger::before { top: 0; } .nav-burger span { top: 9px; } .nav-burger::after { bottom: 0; }
  .nav {
    position: fixed; inset: 76px 0 0 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 28px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-toggle:checked ~ .nav { transform: none; }
  .nav a { font-size: 0.85rem; padding: 10px 0; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
}

/* ─── Hero ─── */
/* Testo da un lato, foto dall'altro: le foto d'archivio sono ~1000px, a tutto schermo sarebbero sgranate */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(calc(100vh - 76px), 860px);
  min-height: min(calc(100svh - 76px), 860px);
  background: var(--ivory);
}
.hero.short { min-height: min(72vh, 680px); }
.hero-text { align-self: center; padding: 56px clamp(24px, 6vw, 96px); }
.hero-text h1 { margin-bottom: 0.5em; }
.hero-text p { color: var(--muted); font-size: 1.08rem; max-width: 520px; }
.hero-text .btns { justify-content: flex-start; margin-top: 30px; }
.hero-media { position: relative; overflow: hidden; min-height: 420px; background: #e9e4dc; }
.hero-media.contain img { object-fit: contain; }
@media (max-width: 820px) {
  .hero, .hero.short { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: min(72vh, 640px); min-height: 0; }
  .hero-text { padding: 40px 24px 52px; }
}
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
/* La prima foto resta sempre sotto; la 2ª e la 3ª entrano a turno sopra (ciclo di 18s) */
.hero-slides img:first-child { opacity: 1; }
.hero-slides img:nth-child(2) { animation: slide2 18s infinite; }
.hero-slides img:nth-child(3) { animation: slide3 18s infinite; }
@keyframes slide2 { 0%, 30% { opacity: 0; } 36%, 63% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes slide3 { 0%, 63% { opacity: 0; } 69%, 94% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { animation: none !important; }
}

/* ─── Buttons ─── */
.btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }
.btn.light { border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); }

/* ─── Category tiles ─── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; background: #ddd; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2;
  text-align: center; font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.06em;
}
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ─── Gallery (masonry + lightbox) ─── */
.gallery { columns: 3 210px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; cursor: zoom-in; background: var(--ivory); }
.gallery img { width: 100%; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18,17,16,0.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-family: var(--sans); font-size: 2rem; line-height: 1; padding: 18px; opacity: 0.8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ─── Story (wedding) ─── */
.story-step { padding: clamp(40px, 6vw, 72px) 0 0; }
.story-step h2 { text-align: center; max-width: 760px; margin: 0 auto 36px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.5; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(var(--n, 3), 1fr); align-items: start; }
.row img { width: 100%; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

/* ─── Packages ─── */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; align-items: stretch; }
.package {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.package > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.package-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.package h3 { margin-bottom: 14px; }
.package ul { list-style: none; padding: 0; margin: 0 0 22px; }
.package li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.package li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 1px; background: var(--gold-soft); }
.package p { font-size: 0.97rem; color: var(--muted); }
.price { margin-top: auto; padding-top: 10px; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); letter-spacing: 0.02em; }
.package .more { margin-top: 18px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.extras { margin-top: 40px; text-align: center; color: var(--muted); }
.extras ul { list-style: none; padding: 0; margin: 10px 0 0; }

/* ─── Split (image + text) ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ─── Team ─── */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 760px; margin: 0 auto; }
.team figure { margin: 0; text-align: center; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.team figcaption { font-family: var(--serif); font-size: 1.3rem; margin-top: 14px; letter-spacing: 0.06em; }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* ─── Testimonials ─── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { text-align: center; }
.quote img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; }
.quote blockquote { margin: 0 0 14px; font-style: italic; color: var(--muted); }
.quote cite { font-style: normal; font-family: var(--serif); letter-spacing: 0.06em; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ─── CTA band ─── */
.cta { text-align: center; }
.cta p { color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.cta .btns { margin-top: 28px; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 1.15rem; }
.contact-list a:hover { color: var(--gold); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ─── Legal ─── */
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; margin-top: 1.6em; }
.legal p { font-size: 0.97rem; }

/* ─── Footer ─── */
.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 84px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--muted); }
.footer-bottom a { margin-left: 18px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom a { margin: 0 18px 0 0; } }
