/* Simona Chiarotti — Wedding Planner · landing */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2?v=6") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2?v=6") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Tenor Sans";
  src: url("../fonts/tenor-sans.woff2?v=6") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ivory: #FBF8F2;
  --greige: #F0ECE6;
  --grey: #6B6B6B;
  --ink: #111111;
  --white: #FFFFFF;
  --line: rgba(107, 107, 107, .35);

  --serif: "Instrument Serif", "Didot", "Bodoni 72", Georgia, serif;
  /* Optima è installata su Mac/iOS: dove c'è la usiamo, altrove Tenor Sans */
  --sans: Optima, "Optima nova", "Tenor Sans", "Candara", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.005em; }
em { font-style: italic; }

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.eyebrow span { opacity: .6; padding: 0 .35em; }
.sep { opacity: .5; padding: 0 .4em; }
.nw { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 1.05em 2.4em;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

/* =========================================================
   HERO — mobile: foto a tutto schermo · desktop: editoriale
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.08);
  animation: slowzoom 14s var(--ease) forwards;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,.38) 0%, rgba(20,16,12,.14) 28%, rgba(20,16,12,.30) 55%, rgba(20,16,12,.62) 100%);
}
@keyframes slowzoom { to { transform: scale(1); } }

.hero__panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 28px) var(--gutter) calc(env(safe-area-inset-bottom) + 26px);
}
.hero__logo { width: 112px; display: block; }
.logo--white { display: none; }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4vh 0;
}
.hero__content .eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,.35), 0 1px 16px rgba(0,0,0,.45); }
.hero__title {
  font-size: clamp(2.4rem, 12vw, 5.6rem);
  line-height: 1;
  text-shadow: 0 2px 30px rgba(0,0,0,.28);
}
.hero__title em { display: block; white-space: nowrap; }
.hero__lead {
  margin: 1.6rem 0 2.4rem;
  font-size: 1.02rem;
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0,0,0,.4);
}
.hero .btn { color: var(--white); border-color: rgba(255,255,255,.8); backdrop-filter: blur(2px); }
.hero .btn:hover { background: var(--white); color: var(--ink); }

.hero__foot { text-align: center; }
.social { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.social a { width: 22px; height: 22px; opacity: .9; transition: opacity .3s, transform .3s var(--ease); }
.social a:hover { opacity: 1; transform: translateY(-2px); }
.social svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.hero__contacts { margin: 0 auto; max-width: 34em; font-size: .78rem; line-height: 1.8; letter-spacing: .03em; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }

.scroll-cue { display: none; }

/* entrance */
.in { opacity: 0; transform: translateY(14px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- desktop hero: foto 227 specchiata a tutta pagina ---------- */
@media (min-width: 1000px) {
  .hero__media img { object-position: 50% 45%; }
  .hero__media::after {
    background:
      radial-gradient(ellipse 58% 55% at 50% 50%, rgba(20,16,12,.42), transparent 78%),
      linear-gradient(180deg, rgba(20,16,12,0) 0%, rgba(20,16,12,.06) 40%, rgba(20,16,12,.55) 100%);
  }
  .hero__panel { padding: 40px 72px 36px clamp(120px, 10.5vw, 190px); position: relative; }
  .hero__logo { width: 132px; }
  .hero__title { font-size: clamp(4rem, 5.6vw, 6.6rem); }
  .hero__lead { font-size: 1.12rem; }
  .hero__contacts { max-width: none; }
  .scroll-cue {
    display: block;
    position: absolute; right: 48px; bottom: 40px;
    width: 1px; height: 64px;
    background: rgba(255,255,255,.35);
    overflow: hidden;
  }
  .scroll-cue span {
    position: absolute; left: 0; top: -40%;
    width: 1px; height: 40%;
    background: var(--white);
    animation: cue 2.4s var(--ease) infinite;
  }
  @keyframes cue { to { top: 100%; } }
}

/* =========================================================
   INTRO
   ========================================================= */
.intro { background: var(--greige); display: grid; }
.intro__text { padding: 72px var(--gutter) 56px; }
.display {
  font-size: clamp(2.7rem, 10vw, 5.4rem);
  line-height: .98;
  text-transform: uppercase;
  color: var(--grey);
  letter-spacing: 0;
}
.rule { width: 72px; border: 0; border-top: 1px solid var(--grey); margin: 2.2rem 0; }
.intro__lead { margin: 0; font-size: 1.4rem; line-height: 1.45; }
.intro__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (min-width: 860px) {
  .intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
  .intro__text { display: flex; flex-direction: column; justify-content: center; padding: 96px 56px 96px max(var(--gutter), calc((100vw - 1320px) / 2)); }
  .intro__media img { height: 100%; min-height: 520px; aspect-ratio: auto; object-position: 50% 40%; }
  .intro .eyebrow { font-size: .9rem; }
  .intro .display { font-size: clamp(2.8rem, 4.3vw, 5rem); }
  .intro__lead { font-size: clamp(1.45rem, 1.9vw, 1.85rem); }
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px var(--gutter) 80px;
  text-align: center;
}
.manifesto__quote {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.2;
  color: var(--ink);
}
.manifesto__body { margin: 0 auto; max-width: 62ch; font-size: 1.05rem; }
@media (min-width: 860px) {
  .manifesto { padding: 140px var(--gutter) 110px; }
}

/* =========================================================
   SERVIZI
   ========================================================= */
.services {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter) 110px;
  display: grid;
  gap: 64px;
}
.service__head { display: flex; flex-direction: column; margin-bottom: 20px; }
.service__num {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--grey);
}
.service__num::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.service h3 {
  margin-top: 6px;
  font-size: clamp(2.3rem, 5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--grey);
}
.service__media { overflow: hidden; margin-bottom: 22px; }
.service__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s var(--ease); }
.service:hover .service__media img { transform: scale(1.04); }
.service p { margin: 0; font-size: 1rem; }
@media (min-width: 860px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 48px; padding-bottom: 150px; }
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contact {
  background: var(--greige);
  text-align: center;
  padding: 100px var(--gutter);
}
.contact__title {
  max-width: 24ch;
  margin: 0 auto 2.6rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.05;
  color: var(--ink);
}
.contact__title em { display: block; color: var(--grey); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 559px) {
  .contact__actions { flex-direction: column; align-items: center; }
  .contact__actions .btn { width: min(100%, 300px); text-align: center; }
}
@media (min-width: 860px) { .contact { padding: 140px var(--gutter); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 48px var(--gutter) calc(env(safe-area-inset-bottom) + 40px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  text-align: center;
  font-size: .8rem;
  line-height: 1.9;
}
.footer__brand span, .footer__brand small, .footer__tag {
  display: block;
  text-transform: uppercase;
  letter-spacing: .3em;
}
.footer__brand span { color: var(--ink); font-size: .78rem; }
.footer__brand small { font-size: .64rem; }
.footer__info { margin: 0; }
.footer__info .row, .hero__contacts .row { display: block; }
.footer__info a:hover { color: var(--ink); }
.footer__tag { margin: 0; font-size: .78rem; font-weight: 700; }
.footer__tag span { padding: 0 .4em; opacity: .6; }
.social--footer { margin-bottom: 16px; gap: 20px; }
.social--footer a { width: 20px; height: 20px; opacity: .75; }
.social--footer a:hover { opacity: 1; color: var(--ink); }
@media (min-width: 1000px) {
  .footer { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: left; }
  .footer__info { text-align: center; }
  .footer__tag { text-align: right; }
  .social--footer { justify-content: flex-end; }
}

/* =========================================================
   REVEAL on scroll
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- privacy page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 100px; }
.legal__logo { width: 96px; margin-bottom: 56px; display: block; }
.legal h1 { font-size: clamp(2.6rem, 8vw, 4rem); color: var(--ink); line-height: 1; margin-bottom: 1rem; }
.legal h2 { font-size: 1.6rem; color: var(--ink); margin: 2.6rem 0 .6rem; }
.legal p, .legal li { font-size: 1rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-top: 3rem; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in, .js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}
