/* ============================================================
   Alice Alfiedi · Event Coordinator — alicealfiedi.it
   Palette "Rosa antico": avorio, rosa antico, rosa scuro, oro.
   ============================================================ */

:root {
  --cream:      #fbf7f5;
  --cream-deep: #f5eae8;
  --ink:        #3a3134;
  --ink-soft:   #6d6165;
  --rose:       #b26e79;
  --rose-deep:  #8a4f5c;
  --gold:       #c29a5f;
  --gold-soft:  #d4b483;
  --white:      #fffdfc;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Jost", "Avenir Next", "Helvetica Neue", sans-serif;

  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --inner-max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.45rem; margin-bottom: .6rem; }

a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

em { font-style: italic; }

/* ===== Sezioni ===== */
.section { padding: var(--section-pad) 1.5rem; }
.section__inner { max-width: var(--inner-max); margin: 0 auto; }
.section--tinted { background: var(--cream-deep); }
.section--dark { background: var(--rose-deep); color: var(--cream); }
.section--dark h2 { color: var(--white); }

.section__eyebrow {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section__sub { max-width: 42rem; color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ===== Navigazione ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 48, 42, .08);
}

.nav {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand { display: block; }
.nav__brand img {
  height: 84px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav__links a {
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  padding: .5rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold) !important;
}
.nav__cta:hover { background: var(--gold); color: var(--white) !important; }

.nav__lang {
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(178, 110, 121, .12), transparent),
    var(--cream);
}

.hero__inner { max-width: 46rem; margin: 0 auto; position: relative; z-index: 1; }

.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1.6rem;
}

.hero h1 em { color: var(--rose-deep); }

.hero__sub {
  margin: 1.8rem auto 2.6rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Bottoni ===== */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--rose-deep); color: var(--white); }
.btn--primary:hover { background: var(--gold); color: var(--white); }
.btn--ghost { border: 1px solid var(--rose-deep); color: var(--rose-deep); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--light { background: var(--cream); color: var(--rose-deep); }
.btn--light:hover { background: var(--gold-soft); color: var(--ink); }
.btn--ghost-light { border: 1px solid var(--cream); color: var(--cream); }
.btn--ghost-light:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ===== Numeri ===== */
.stats { background: var(--rose-deep); padding: 2.6rem 1.5rem; }
.stats__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--white);
}
.stat span { font-size: .85rem; letter-spacing: .06em; color: var(--cream-deep); }

/* ===== Chi sono ===== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__photo figcaption {
  margin-top: .8rem;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.about__text p { margin-bottom: 1.2rem; color: var(--ink-soft); }

.about__signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold);
  margin-top: 1.4rem;
}

/* ===== Segnaposto foto ===== */
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background:
    linear-gradient(150deg, rgba(178,110,121,.18), rgba(194,154,95,.16)),
    var(--cream-deep);
  border: 1px dashed rgba(138,79,92,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder--portrait { aspect-ratio: 3 / 4; }

.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.photo-placeholder span {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* ===== Servizi ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}

.service {
  background: var(--white);
  border-radius: 8px;
  padding: 2.2rem 1.9rem;
  box-shadow: 0 2px 20px rgba(51, 48, 42, .05);
}
.service p { color: var(--ink-soft); font-size: .98rem; }

.service__icon {
  width: 46px; height: 46px;
  margin-bottom: 1.2rem;
  color: var(--gold);
}
.service__icon svg { width: 100%; height: 100%; }

/* ===== Perché ===== */
.why__inner { max-width: 46rem; text-align: center; }
.why__lead { color: var(--ink-soft); margin-top: .5rem; }

.why__quote {
  margin: 2.8rem auto 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--rose-deep);
  max-width: 34rem;
}
.why__quote::before { content: "— "; color: var(--gold); }

/* ===== Portfolio (galleria) ===== */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio__thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.portfolio__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .4s ease;
}
.portfolio__thumb:hover img { transform: scale(1.04); opacity: .92; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 20, 22, .94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .5);
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-serif);
  line-height: 1;
  padding: .4em .5em;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }

.lightbox__close { top: 12px; right: 16px; font-size: 2.6rem; }
.lightbox__prev, .lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.4rem;
}
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }

@media (max-width: 760px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .lightbox__prev { left: 2px; }
  .lightbox__next { right: 2px; }
}
/* per foto verticali: mostra la parte alta (i volti) invece del centro */
.portfolio__item img.crop-alto { object-position: 50% 22%; }

/* ===== Testimonianze ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
}

.testimonial {
  background: var(--white);
  border-left: 3px solid var(--gold-soft);
  border-radius: 0 8px 8px 0;
  padding: 1.9rem 1.7rem;
  box-shadow: 0 2px 20px rgba(51, 48, 42, .05);
}
.testimonial p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===== Contatti ===== */
.contact { text-align: center; }
.contact__inner { max-width: 42rem; }
.contact .section__eyebrow { color: var(--gold-soft); }
.contact p { color: var(--cream-deep); }

.contact__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.2rem 0 2.6rem;
}

.contact__venue { font-size: .92rem; }
.contact__venue a { color: var(--gold-soft); }
.contact__venue a:hover { color: var(--white); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 241, .55);
  text-align: center;
  padding: 2.2rem 1.5rem 1.8rem;
  font-size: .82rem;
  letter-spacing: .06em;
}

.footer__monogram {
  height: 84px;
  width: auto;
  display: block;
  margin: 0 auto 1rem;
  opacity: .9;
}

/* ===== Animazioni reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Mobile ===== */
@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__brand img { height: 60px; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(51, 48, 42, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav__links.is-open { max-height: 400px; }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links a { display: block; padding: 1rem; }
  .nav__cta { border: none; border-radius: 0; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; margin: 0 auto; }
}
