/* ============================================================
   THE VOW MAKER — Ilaria Stangalino
   Mockup v1 — Web Star Studio
   ============================================================ */

/* Font ospitati sul sito (licenza SIL OFL 1.1), file variabili da Google Fonts.
   Niente richieste a server esterni: nessun cookie, nessun dato a Google. */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 200 500; font-display: swap;
  src: url('../fonts/jost-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 200 500; font-display: swap;
  src: url('../fonts/jost-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy:        #0A1A36;
  --navy-deep:   #06101F;
  --navy-soft:   #14253F;
  --gold:        #C9A56A;
  --gold-light:  #E0C79A;
  --gold-dark:   #A98449;

  /* Neutrals */
  --ivory:       #F7F4EF;
  --ivory-warm:  #EFE9E0;
  --sand:        #DCD3C6;
  --ink:         #2A2620;
  --ink-soft:    #6B6357;

  /* Type */
  --display: 'Cormorant Garamond', 'Didot', Georgia, serif;
  --sans:    'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --wrap: 1240px;
  /* altezza della barra del menu: le aperture con le rose partono da qui */
  --hdr: 6.25rem;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* height:auto e' indispensabile: le <img> hanno width/height nell'HTML (per
   riservare lo spazio), e senza questa regola max-width le restringerebbe in
   larghezza lasciando l'altezza fissa, deformandole */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 1.4rem;
}
.on-navy .eyebrow, .navy .eyebrow { color: var(--gold); }

.lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-soft);
}

.serif-it { font-family: var(--display); font-style: italic; }

/* Ornamental rule (diamond, from the logo) */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem; margin: 2.4rem 0;
}
.rule::before, .rule::after {
  content: ''; height: 1px; width: min(90px, 14vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule span { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.3em; }
.rule.left { justify-content: flex-start; }
.rule.left::before { display: none; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.navy { background: var(--navy); color: var(--ivory); }
.navy h1, .navy h2, .navy h3 { color: var(--ivory); }
.warm { background: var(--ivory-warm); }
.center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1.15em 2.6em;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
  cursor: pointer;
  transition: background .45s ease, color .45s ease, border-color .45s ease;
}
.btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.btn-solid { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-solid:hover { background: transparent; color: var(--gold); }

.navy .btn { color: var(--gold); }
.navy .btn:hover { background: var(--gold); color: var(--navy); }
.navy .btn-solid { color: var(--navy); }
.navy .btn-solid:hover { background: transparent; color: var(--gold); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background .5s ease, padding .5s ease, box-shadow .5s ease;
}
/* Velo dietro al menu: sopra una fotografia chiara il logo oro sparirebbe */
.site-header::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 190px; z-index: -1;
  background: linear-gradient(180deg, rgba(6,16,31,.85), rgba(6,16,31,.45) 45%, transparent);
  transition: opacity .5s ease;
}
.site-header.scrolled::before { opacity: 0; }

.site-header.scrolled {
  background: rgba(10, 26, 54, 0.97);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(201,165,106,.22);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
/* logo piu' grande (era 46px): il file e' alto 250px, regge fino a ~2.5x anche su retina */
.brand img { height: 64px; width: auto; transition: height .5s ease; }
.site-header.scrolled .brand img { height: 48px; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.nav a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory); opacity: .82; position: relative; padding-block: .4rem;
  transition: opacity .3s, color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold-light); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
}

.lang { display: flex; gap: .5rem; align-items: center; font-size: .7rem; letter-spacing: .16em; }
.lang a { opacity: .5; }
.lang a.active { opacity: 1; color: var(--gold); }
.lang span { opacity: .3; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--ivory);
}
.nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 6px 0; transition: .35s; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: var(--navy-deep);
  padding-block: 7.5rem 9rem;
  text-align: center;
}
.hero .wrap { position: relative; z-index: 3; }
.hero-mono { width: clamp(72px, 7vw, 96px); margin: 0 auto 2rem; opacity: .95; }
.hero h1 { color: var(--ivory); max-width: 21ch; margin-inline: auto; font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero .lead { color: rgba(247,244,239,.88); max-width: 52ch; margin: 1.6rem auto 2.4rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
/* la fotografia sotto puo' essere chiara: un'ombra morbida tiene il testo leggibile */
.hero h1, .hero .lead, .hero-scroll { text-shadow: 0 1px 24px rgba(6,16,31,.55); }

.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(247,244,239,.5);
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 42px; margin: .8rem auto 0;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ---------- Photo placeholders ---------- */

.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(201,165,106,.16), transparent 60%),
    radial-gradient(90% 80% at 85% 80%, rgba(220,211,198,.30), transparent 62%),
    linear-gradient(155deg, var(--navy-soft), var(--navy-deep));
}
.ph::before {
  content: ''; position: absolute; inset: 1rem;
  border: 1px solid rgba(201,165,106,.22); pointer-events: none;
}
.ph-light {
  background:
    radial-gradient(110% 90% at 25% 18%, rgba(201,165,106,.34), transparent 60%),
    radial-gradient(90% 80% at 85% 90%, rgba(169,132,73,.20), transparent 62%),
    linear-gradient(155deg, var(--sand), #C9BEAE);
}
.ph-light::before { border-color: rgba(169,132,73,.28); }

/* Riquadro con una fotografia vera al posto del segnaposto */
.ph.has-photo { background: var(--sand); }
.ph.has-photo::before { display: none; }
.ph.has-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .9s cubic-bezier(.2,.7,.3,1);
}

.ph-note {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light);
  background: linear-gradient(0deg, rgba(6,16,31,.85), transparent);
  transition: opacity .35s ease;
  z-index: 4;
}
.ph-light .ph-note { color: var(--ink-soft); background: linear-gradient(0deg, rgba(247,244,239,.9), transparent); }
body.hide-notes .ph-note { opacity: 0; }

.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,16,31,.72), rgba(6,16,31,.55) 45%, rgba(6,16,31,.85));
  z-index: 2;
}
.hero-bg.has-photo::after {
  /* Con la fotografia servono tre veli: uno in alto perche' il logo non si
     perda sul cielo chiaro, una pozza scura al centro dove cade il testo, e il
     fondo che chiude la sezione. Ai lati la fotografia resta leggibile. */
  background:
    radial-gradient(66% 64% at 50% 52%, rgba(6,16,31,.76), rgba(6,16,31,.12) 78%),
    linear-gradient(180deg, rgba(6,16,31,.82) 0%, rgba(6,16,31,.34) 26%, rgba(6,16,31,.40) 60%, rgba(6,16,31,.88) 100%);
  z-index: 2;
}
.hero-bg::before { inset: 2.2rem; z-index: 3; }
/* nella hero il filetto interno resta anche con la fotografia: e' decorativo */
.hero-bg.has-photo::before { display: block; }

/* Hero della home: cornice di rose (immagini/hero_fiori.png). Il fondo della
   foto e' un blu uniforme #0C1828: la sezione usa lo stesso colore, cosi' dove
   la foto finisce non si vede la giunzione. */
.hero.hero-flowers { background: #0C1828; }
.hero-bg.flowers { background: #0C1828; }
.hero-bg.flowers::before { display: none; }          /* il filetto taglierebbe le rose */
/* su schermi orizzontali la cornice parte sotto la barra del menu: logo e voci
   non finiscono sopra rami e foglie (sopra resta lo stesso blu della foto) */
.hero-bg.flowers img { top: var(--hdr); height: calc(100% - var(--hdr)); }
.hero-bg.flowers::after {                            /* solo un velo al centro: le rose restano piene */
  background: radial-gradient(48% 46% at 50% 50%, rgba(12,24,40,.55), rgba(12,24,40,0) 80%);
}
/* In verticale "cover" taglierebbe proprio i lati, dove stanno le rose,
   lasciando solo blu. Allora la cornice si mostra intera:
   - tablet in verticale: centrata sul testo, come su desktop;
   - telefono: in alto e un po' ingrandita, col monogramma IS dentro (sul
     telefono, centrata, delle rose resterebbero solo due strisce ai bordi). */
@media (max-aspect-ratio: 6/5) {
  .hero-bg.flowers img {
    /* un po' piu' larga e piu' in alto del centro: cosi' le punte basse delle
       rose restano sopra i pulsanti invece di attraversarli */
    inset: 50% auto auto 50%; width: 108%; max-width: none; height: auto;
    transform: translate(-50%, -63%);
  }
  /* sottotitolo piu' stretto: altrimenti tocca le punte delle rose ai lati */
  .hero-flowers .lead { max-width: 40ch; }
}
@media (max-aspect-ratio: 3/5) {
  /* Telefono: cornice verticale apposta (hero_fiori_mobile.png, 941x1672),
     scelta dal <picture> con la stessa media query, su fondo #081727 (il blu
     di quella foto). La cornice contiene solo la scritta (.hero-text); i
     pulsanti stanno sotto, fuori dalla cornice, per non appesantirla.
     La cornice e' larga 100vw, quindi alta 100vw * 1672/941 = 177.7vw, e
     parte sotto il menu (--hdr). */
  .hero.hero-flowers, .hero-bg.flowers { background: #081727; }
  .hero.hero-flowers { display: block; min-height: 0; padding: var(--hdr) 0 3.2rem; }
  .hero-bg.flowers img {
    inset: var(--hdr) 0 auto 0; width: 100%; height: auto;
    max-width: none; transform: none;
  }
  .hero-bg.flowers::after {
    background: radial-gradient(52% 26% at 50% calc(var(--hdr) + 88.8vw), rgba(8,23,39,.6), rgba(8,23,39,0) 80%);
  }
  .hero-flowers .wrap { padding-inline: max(var(--gutter), 15vw); }
  .hero-flowers .hero-text {
    min-height: 177.7vw;
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero-flowers .hero-mono { margin-bottom: 1.3rem; }
  .hero-flowers h1 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
  .hero-flowers .lead { margin: 1.1rem auto 0; font-size: 1rem; }
  .hero-flowers .btn-row { margin-top: .4rem; gap: .6rem; flex-direction: column; align-items: center; }
  .hero-flowers .btn { padding: .95em 1.5em; letter-spacing: .18em; font-size: .7rem; }
}
/* nella hero la nota foto sta in alto, per non scontrarsi con lo "Scroll" */
.hero .ph-note {
  top: 6.2rem; bottom: auto; max-width: 32rem;
  padding-left: var(--gutter); padding-right: var(--gutter);
  background: none; text-align: left;
}

/* Notes toggle (demo only) */
.notes-toggle {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 200;
  background: var(--navy); color: var(--gold);
  border: 1px solid var(--gold); border-radius: 999px;
  font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .8em 1.4em; cursor: pointer; opacity: .85;
  transition: opacity .3s;
}
.notes-toggle:hover { opacity: 1; }

/* ---------- Quote / manifesto ---------- */

.manifesto { text-align: center; }
.manifesto p {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.45; font-weight: 300;
  max-width: 30ch; margin-inline: auto;
}
.manifesto p + p { margin-top: 1.6rem; }
.manifesto .accent { color: var(--gold); font-style: italic; }
.manifesto cite {
  display: block; margin-top: 2.6rem;
  font-family: var(--sans); font-style: normal;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Split (image + text) ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.split .ph { aspect-ratio: 4 / 5; }
.split .ph.ratio-3-4 { aspect-ratio: 3 / 4; }
.split.reverse .split-media { order: 2; }

/* Colonna editoriale: testo lungo senza immagine accanto */
/* la larghezza la da' .wrap-narrow: qui solo il tono del testo */
.prose .lead { color: var(--ink); margin-bottom: 1.6rem; }
.prose p:not(.eyebrow):not(.lead) { color: var(--ink-soft); }
.prose .signature {
  font-family: var(--display); font-style: italic; font-size: 1.35rem;
  color: var(--gold-dark); margin-top: 2.2rem;
}

/* Pagina privacy: titoli piu' piccoli, liste e link leggibili */
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.8rem 0 .9rem; }
.legal ul { color: var(--ink-soft); padding-left: 1.2rem; margin: 0 0 1.2rem; }
.legal li { margin-bottom: .6rem; }
.legal a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 500; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Qualifiche di Ilaria (About, sezione "Why me") */
.credentials { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.credentials li {
  position: relative; padding: .95rem 0 .95rem 1.6rem;
  border-top: 1px solid rgba(201,165,106,.32);
}
.credentials li:last-child { border-bottom: 1px solid rgba(201,165,106,.32); }
.credentials li::before {
  content: '\2726'; position: absolute; left: 0; top: 1.15rem;
  font-size: .62rem; color: var(--gold);
}
.credentials strong {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: 1.25rem; line-height: 1.3; color: var(--ink);
}
.credentials span {
  display: block; margin-top: .2rem;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}

/* Cosa e' incluso: pannello accanto al testo, nella pagina Ceremonies */
.includes {
  background: var(--ivory); padding: clamp(1.8rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--gold);
}
/* sul fondo avorio il pannello prende il tono caldo, sul caldo torna avorio */
section:not(.warm) .includes { background: var(--ivory-warm); }
.includes ul { list-style: none; margin: 0; padding: 0; }
.includes li {
  position: relative; padding: .85rem 0 .85rem 1.6rem; font-size: .95rem; color: var(--ink-soft);
  border-top: 1px solid rgba(201,165,106,.28);
}
.includes li:first-child { border-top: 0; }
.includes li::before {
  content: '\2726'; position: absolute; left: 0; top: .95rem;
  font-size: .62rem; color: var(--gold);
}
.includes .duration {
  font-family: var(--display); font-size: 1.5rem; color: var(--ink); margin: 0 0 1.2rem;
}

/* ---------- Ceremony cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
/* 4 -> 2 -> 1 colonne, mai 3: con quattro elementi una griglia a 3 lascia
   l'ultima card da sola su una riga */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid-4 { grid-template-columns: 1fr; } }

/* Card solo testo (lancio senza fotografie delle cerimonie) */
.card.text-only {
  display: flex; flex-direction: column;
  background: var(--ivory-warm); padding: 2.4rem 1.9rem 2.1rem;
  border-top: 1px solid var(--gold);
  transition: background .45s ease, transform .45s cubic-bezier(.2,.7,.3,1);
}
.card.text-only:hover { background: var(--sand); transform: translateY(-4px); }
.card.text-only .card-num {
  font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--gold);
  margin-bottom: 1.6rem;
}
.card.text-only .card-body { padding: 0; display: flex; flex-direction: column; flex: 1; }
.card.text-only .more { margin-top: auto; padding-top: 1.6rem; align-self: flex-start; }
.card.text-only .more { border-bottom: 0; padding-bottom: 0; }
.card.text-only .more::after {
  content: ''; display: block; height: 1px; margin-top: .3rem;
  background: rgba(201,165,106,.5); transform-origin: left; transition: transform .45s ease;
}
.card.text-only:hover .more::after { transform: scaleX(1.6); }
@media (prefers-reduced-motion: reduce) {
  .card.text-only, .card.text-only:hover { transform: none; transition: background .3s; }
}

.card { position: relative; display: block; }
.card .ph { aspect-ratio: 3 / 4; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.card:hover .ph { transform: scale(1.03); }
/* con una foto dentro ingrandisco l'immagine, non il riquadro:
   scalare .ph sposterebbe anche il bordo che la ritaglia */
.card .ph.has-photo { transition: none; }
.card:hover .ph.has-photo { transform: none; }
.card:hover .ph.has-photo img { transform: scale(1.05); }
.card-body { padding: 1.6rem 0 0; }
.card h3 { margin-bottom: .5rem; }
.card .card-meta {
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: .9rem;
}
.card p { font-size: .95rem; color: var(--ink-soft); }
.navy .card p { color: rgba(247,244,239,.68); }
.card .more {
  display: inline-block; margin-top: 1rem;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark);
  border-bottom: 1px solid rgba(201,165,106,.5); padding-bottom: .3rem;
}
.navy .card .more { color: var(--gold); }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.step { position: relative; padding-top: 2.4rem; border-top: 1px solid rgba(201,165,106,.35); }
.step-num {
  position: absolute; top: -0.1rem; left: 0;
  font-family: var(--display); font-size: 1rem; color: var(--gold);
  letter-spacing: .1em;
}
.step h3 { margin-bottom: .7rem; }
.step p { font-size: .95rem; color: var(--ink-soft); }
.navy .step p { color: rgba(247,244,239,.7); }

/* ---------- Languages strip ---------- */

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 8vw, 6rem); }
.langs div { text-align: center; }
.langs strong {
  display: block; font-family: var(--display); font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--gold);
}
.langs span { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; opacity: .65; }

/* ---------- Testimonials ---------- */

.testi { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.testi blockquote { margin: 0; }
.testi blockquote p {
  font-family: var(--display); font-size: 1.3rem; line-height: 1.6; font-style: italic;
}
.testi footer {
  margin-top: 1.4rem; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark);
}
.navy .testi footer { color: var(--gold); }
.quote-mark { font-family: var(--display); font-size: 3.2rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .4rem; }

.draft-flag {
  display: inline-block; margin-bottom: 2.4rem;
  border: 1px dashed rgba(201,165,106,.6); color: var(--gold-dark);
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .7em 1.2em;
}
.navy .draft-flag { color: var(--gold-light); }
body.hide-notes .draft-flag { display: none; }

/* ---------- Form ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.8rem; }
.field { display: flex; flex-direction: column; gap: .55rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark);
}
.navy .field label { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .95rem; font-weight: 300; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid rgba(201,165,106,.45);
  padding: .7rem 0; outline: none; transition: border-color .3s;
  border-radius: 0;
}
.navy .field input, .navy .field select, .navy .field textarea { color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--navy); color: var(--ivory); }
.form-note { font-size: .78rem; color: var(--ink-soft); }
/* campo-trappola per i bot: fuori schermo, non display:none (alcuni bot lo saltano) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1.2rem; font-size: .95rem; outline: none; }
.form-sent { color: var(--gold); }
.form-error { color: #E8A99A; }
.form-error a { text-decoration: underline; }
.btn:disabled { opacity: .6; cursor: progress; }
.navy .form-note { color: rgba(247,244,239,.55); }

/* ---------- Contact details ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.detail { margin-bottom: 2.2rem; }
.detail dt { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.detail dd { margin: 0; font-family: var(--display); font-size: 1.35rem; }
.detail dd a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(247,244,239,.66); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; align-items: start; }
.site-footer img { height: 54px; width: auto; margin-bottom: 1.4rem; }
.site-footer h4 { font-family: var(--sans); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(201,165,106,.18);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .72rem; opacity: .6;
}

.credits a { text-decoration: underline; text-underline-offset: 3px; }
.credits .heart { color: var(--gold); }

/* Modalita' screenshot: hero ad altezza fissa invece di 100svh */
body.static-shot .hero { min-height: 780px; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--navy); color: var(--ivory);
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(4rem, 8vw, 6rem);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--ivory); max-width: 18ch; margin-inline: auto; }
.page-hero .lead { color: rgba(247,244,239,.7); max-width: 52ch; margin: 1.6rem auto 0; }

/* Apertura di pagina con fotografia (Ceremonies): piu' alta, cosi' la foto si
   vede, con lo stesso velo scuro della hero della home */
.page-hero.has-photo {
  min-height: min(82svh, 780px);
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep);
}
.page-hero.has-photo .wrap { position: relative; z-index: 3; }
.page-hero.has-photo .lead { color: rgba(247,244,239,.88); }
.page-hero.has-photo h1, .page-hero.has-photo .lead { text-shadow: 0 1px 24px rgba(6,16,31,.55); }
/* il volto di Ilaria sta nel terzo alto della foto: non tagliarlo */
.page-hero .hero-bg img { object-position: 50% 28%; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root { --hdr: 5.1rem; }   /* barra del menu su telefono: 1.1rem + logo 46px + 1.1rem */
  .split, .contact-grid, .form { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 2.4rem; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--navy-deep);
    flex-direction: column; justify-content: center; gap: 2rem;
    transform: translateX(100%); transition: transform .5s cubic-bezier(.6,0,.2,1);
    z-index: 99;
  }
  .nav a { font-size: .9rem; letter-spacing: .26em; }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle { position: relative; z-index: 101; }

  .brand img { height: 46px; }
  .site-header.scrolled .brand img { height: 38px; }

  /* su mobile la nota foto torna in fondo alla hero, sopra lo "Scroll" */
  .hero .ph-note {
    top: auto; bottom: 0; max-width: none;
    background: linear-gradient(0deg, rgba(6,16,31,.92), transparent);
    padding-bottom: 4.5rem;
  }
  .hero-scroll { display: none; }
  .notes-toggle { right: auto; left: .8rem; bottom: .8rem; font-size: .55rem; padding: .7em 1.1em; }
}
