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

/* ==========================================================================
   Cavalieri Templari — foglio di stile unico
   ========================================================================== */

:root {
  /* Colori */
  --ink:        #0e1118;   /* fondo scuro */
  --ink-soft:   #161b25;
  --ink-line:   #262d3b;
  --paper:      #faf8f4;   /* fondo chiaro, leggermente caldo */
  --paper-alt:  #f1ece3;
  --text:       #1d2028;
  --text-soft:  #575d6b;
  --text-invert-soft: #a8adb9;
  --red:        #a8121f;   /* rosso templare */
  --red-deep:   #7d0c17;
  --gold:       #c0a062;              /* oro su fondo scuro */
  --gold-ink:   #856828;              /* oro leggibile su fondo chiaro */
  --gold-soft:  rgba(192, 160, 98, .38);

  /* Tipografia */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Misure */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(5rem, 10vw, 9rem);
  --radius: 2px;

  /* Grana pellicola, riusata su piu' superfici */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* --- Reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.15rem; }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* --- Impalcatura ---------------------------------------------------------- */

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

.section { position: relative; padding-block: var(--section); }
.section--dark { background: var(--ink); color: #ece9e2; }
.section--alt  { background: var(--paper-alt); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* Grana sulle superfici scure */
.section--dark::before,
.cta::before,
.site-footer::before,
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .045;
  pointer-events: none;
  z-index: 1;
}
.section--dark > *, .cta > *, .site-footer > * { position: relative; z-index: 2; }

.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--text-invert-soft); }

/* Occhiello */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
  opacity: .65;
}
.section--dark .eyebrow,
.hero .eyebrow,
.cta .eyebrow { color: var(--gold); }

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  color: var(--text-soft);
  line-height: 1.68;
  max-width: 62ch;
}
.section--dark .lead, .cta .lead { color: var(--text-invert-soft); }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }

.intro { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Fregio: croce templare fra due filetti */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.6rem auto 0;
  max-width: 15rem;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}
.ornament svg { width: 15px; height: 15px; flex: none; opacity: .9; }

/* --- Bottoni -------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1.05rem 2.1rem;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s ease, border-color .3s ease;
}
/* riempimento che sale al passaggio del mouse */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover::after { transform: scaleY(1); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary::after { background: var(--red-deep); }

.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost::after { background: #fff; }
.btn--ghost:hover { color: var(--ink); border-color: #fff; }

.btn--dark { border-color: rgba(0,0,0,.25); color: var(--text); }
.btn--dark::after { background: var(--ink); }
.btn--dark:hover { color: #fff; border-color: var(--ink); }

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

/* Link testuale con freccia */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
  padding-bottom: .35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s ease;
}
.link-more::after { content: "→"; transition: transform .3s ease; }
.link-more:hover { background-size: 100% 1px; }
.link-more:hover::after { transform: translateX(4px); }
.section--dark .link-more, .cta .link-more { color: var(--gold); }

/* --- Intestazione --------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 17, 24, .93);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: rgba(192, 160, 98, .18);
}
/* pagine senza hero: barra sempre piena */
body.no-hero .site-header { background: var(--ink); border-bottom-color: rgba(192,160,98,.18); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  transition: min-height .4s ease;
}
.site-header.is-scrolled .site-header__inner { min-height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: #fff;
}
.brand img {
  width: 48px; height: 48px;
  transition: width .4s ease, height .4s ease;
}
.site-header.is-scrolled .brand img { width: 40px; height: 40px; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .015em;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .25rem;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.72);
  padding-block: .45rem;
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: grid; }
  .site-header { background: rgba(14,17,24,.93); backdrop-filter: blur(12px); }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(192,160,98,.18);
    border-bottom: 1px solid rgba(192,160,98,.18);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .nav li + li { border-top: 1px solid rgba(255,255,255,.07); }
  .nav a { display: block; padding: 1.05rem 0; font-size: .82rem; }
  .nav a::after { display: none; }
}

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

.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  animation: kenburns 26s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1.001); }
  to   { transform: scale(1.09); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(9,11,16,.97) 0%, rgba(9,11,16,.93) 38%, rgba(9,11,16,.72) 62%, rgba(9,11,16,.34) 100%),
    linear-gradient(to top, rgba(9,11,16,.85) 0%, rgba(9,11,16,0) 45%),
    radial-gradient(130% 95% at 50% 50%, transparent 25%, rgba(9,11,16,.7) 100%);
}
.hero__media::before { z-index: 2; opacity: .06; }

.hero__content {
  position: relative;
  z-index: 3;
  padding-block: clamp(8rem, 16vw, 11rem) clamp(6rem, 12vw, 9rem);
  max-width: 48rem;
  color: #fff;
}
.hero__content h1 { color: #fff; margin-bottom: .4em; }
.hero__content h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero__content .lead { color: rgba(255,255,255,.88); max-width: 40ch; }
.hero__content .btn-row { margin-top: 2.6rem; }

.hero--compact { min-height: min(76svh, 640px); }
.hero--compact .hero__content { max-width: 44rem; padding-block: clamp(8rem,15vw,10rem) clamp(4rem,8vw,6rem); }

/* Comparsa scaglionata degli elementi dell'hero */
.hero__content > * { animation: sali .95s cubic-bezier(.2,.7,.3,1) both; }
.hero__content > *:nth-child(1) { animation-delay: .15s; }
.hero__content > *:nth-child(2) { animation-delay: .28s; }
.hero__content > *:nth-child(3) { animation-delay: .41s; }
.hero__content > *:nth-child(4) { animation-delay: .54s; }
@keyframes sali {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.motto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.motto li { display: flex; align-items: center; }
.motto li + li::before {
  content: "";
  width: 4px; height: 4px;
  background: currentColor;
  transform: rotate(45deg);
  margin-inline: 1.5rem;
  opacity: .75;
}

/* Invito allo scorrimento */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .7rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.scroll-cue span { display: block; width: 1px; height: 46px; background: linear-gradient(to bottom, var(--gold), transparent); }
.scroll-cue:hover { color: #fff; }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* --- Griglie -------------------------------------------------------------- */

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.1fr 1fr; }
  .split--flip .split__media { order: -1; }
}

.split__media { position: relative; isolation: isolate; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media--tall img { aspect-ratio: 3 / 4; }
/* cornice dorata sfalsata */
.split__media::after {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  z-index: -1;
}
.split--flip .split__media::after { inset: 1.5rem 1.5rem -1.5rem -1.5rem; }
/* sotto i 720px la cornice sfalsata uscirebbe dallo schermo: la togliamo */
@media (max-width: 720px) { .split__media::after { display: none; } }

/* Scheda valore */
.card {
  position: relative;
  background: transparent;
  border-top: 1px solid rgba(0,0,0,.13);
  padding: 2.2rem 0 0;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.card:hover::before { width: 100%; }
.card h3 { margin-bottom: .55em; }
.card p { color: var(--text-soft); font-size: .97rem; }
.card__num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1.3rem;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--gold-ink);
}

.section--dark .card { border-top-color: rgba(255,255,255,.14); }
.section--dark .card__num { color: var(--gold); }
.section--dark .card::before { background: var(--gold); }
.section--dark .card p { color: var(--text-invert-soft); }

/* Scheda attivita' con foto */
.activity { display: flex; flex-direction: column; height: 100%; }
.activity figure { margin: 0 0 1.6rem; overflow: hidden; }
.activity img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.activity:hover img { transform: scale(1.05); }
.activity__body p { color: var(--text-soft); font-size: .96rem; margin-bottom: 0; }
.activity__body h3 { margin-bottom: .5em; }

/* Elenco puntato */
.ticks { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .85rem;
  color: var(--text-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}
.section--dark .ticks li { color: var(--text-invert-soft); }
.section--dark .ticks li::before { background: var(--gold); }

/* Citazione */
.pull {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.28;
  text-align: center;
  max-width: 20ch;
  margin-inline: auto;
  color: #fff;
  font-style: italic;
  font-weight: 400;
}
.pull cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-size: .68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
/* emblema in filigrana dietro la citazione */
.watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(28rem, 58vw);
  opacity: .055;
  pointer-events: none;
  z-index: 1;
}

/* --- Galleria ------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 215px);
  gap: 10px;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery__item {
  position: relative;
  margin: 0; padding: 0; border: 0;
  background: var(--ink-soft);
  cursor: zoom-in;
  overflow: hidden;
  height: 100%;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--big  { grid-column: span 2; grid-row: span 2; }
@media (max-width: 620px) {
  .gallery__item--tall { grid-row: span 1; }
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.02);
  transition: transform .9s cubic-bezier(.2,.7,.3,1), filter .5s ease;
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.07); filter: none; }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1rem .95rem;
  font-size: .78rem;
  line-height: 1.4;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(8,10,14,.92), rgba(8,10,14,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  width: 100%; max-width: 100%;
  height: 100%; max-height: 100%;
  margin: 0; padding: clamp(1rem, 4vw, 3rem);
  border: 0;
  background: rgba(8, 10, 14, .97);
  color: #fff;
  display: none;
  place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(8, 10, 14, .97); }
.lightbox__figura { margin: 0; display: grid; justify-items: center; gap: 1.1rem; }
.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 76vh;
  object-fit: contain;
  animation: apri .45s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes apri { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__caption { text-align: center; color: var(--text-invert-soft); font-size: .92rem; max-width: 55ch; }
.lightbox__conta {
  display: block;
  margin-top: .5rem;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .25s ease, border-color .25s ease;
}
.lightbox__btn:hover { background: rgba(192,160,98,.25); border-color: var(--gold); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__prev { left: 1rem; top: auto; bottom: 1.4rem; transform: none; }
  .lightbox__next { right: 1rem; top: auto; bottom: 1.4rem; transform: none; }
}

/* --- Contatti ------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

.contact-item {
  display: flex;
  gap: 1.2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(0,0,0,.1);
}
.contact-item:last-of-type { border-bottom: 1px solid rgba(0,0,0,.1); }
.contact-item__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-soft);
  color: var(--red);
  border-radius: 50%;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item h3 {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.contact-item a, .contact-item p {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  margin: 0;
}
.contact-item a { transition: color .25s ease; }
.contact-item a:hover { color: var(--red); }

/* Modulo */
.form {
  background: var(--paper-alt);
  padding: clamp(1.9rem, 4vw, 3rem);
  border: 1px solid rgba(0,0,0,.06);
}
.form__row { margin-bottom: 1.3rem; }
@media (min-width: 640px) {
  .form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
  .form__row--split .form__row { margin-bottom: 0; }
}
.form label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .55rem;
}
.form input, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form input:focus, .form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192,160,98,.18);
  outline: none;
}
.form textarea { min-height: 155px; resize: vertical; }

.form__consent { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.7rem; }
.form__consent input { width: auto; margin-top: .35rem; flex: none; }
.form__consent label {
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}
.form__consent a { color: var(--red); }
.form__note { margin-top: 1.1rem; font-size: .82rem; color: var(--text-soft); }

.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin-top: 2.8rem;
  filter: grayscale(1) contrast(1.06);
  transition: filter .5s ease;
}
.map:hover { filter: none; }

/* --- CTA ------------------------------------------------------------------ */

.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  text-align: center;
  padding-block: var(--section);
}
.cta__sfondo { position: absolute; inset: 0; z-index: 0; }
.cta__sfondo img { width: 100%; height: 100%; object-fit: cover; }
.cta__sfondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(14,17,24,.86), rgba(14,17,24,.92));
}
.cta h2 { color: #fff; }

/* --- Piè di pagina -------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--text-invert-soft);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 0;
  font-size: .93rem;
  overflow: hidden;
}
.site-footer__grid { display: grid; gap: 2.75rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .65rem; }
.site-footer a { text-decoration: none; transition: color .25s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 1.2rem; }
.site-footer__about { max-width: 34ch; }

.site-footer__bottom {
  margin-top: 3.25rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #767c8b;
}
.site-footer__bottom a { color: #a8adb9; }

/* Pulsante telefono flottante */
.call-fab {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 150;
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.35rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.7);
}
.call-fab svg { width: 16px; height: 16px; }
@media (max-width: 780px) { .call-fab { display: inline-flex; } }

/* --- Pagine di testo ------------------------------------------------------ */

.prose h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-top: 2.8rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.9rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .65rem; }
.prose a { color: var(--red); }

/* --- Comparsa allo scorrimento -------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- Stampa --------------------------------------------------------------- */

@media print {
  .site-header, .call-fab, .cta, .lightbox, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}
