/* ==========================================================================
   Carpe Diem Al Portico — foglio di stile
   Identità visiva: palette, tipografia e componenti. I testi stanno in content/.
   ========================================================================== */

/* ---------- Font (ospitati localmente, licenza SIL OFL) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  /* Palette del marchio */
  --ink: #171715;
  --olive: #273b30;
  --olive-deep: #1e2e25;
  --gold: #a88b3f;
  --gold-light: #c2a55a; /* oro per testi piccoli su fondi scuri (contrasto AA) */
  --bronze: #796123; /* oro per testi piccoli su fondi chiari (contrasto AA) */
  --ivory: #f4efe4;
  --ivory-deep: #eae2d1;
  --paper: #faf7f0;

  --text: var(--ink);
  --text-soft: #4a4842;
  --text-on-dark: #f4efe4;
  --text-on-dark-soft: rgba(244, 239, 228, 0.76);
  --line: rgba(23, 23, 21, 0.14);
  --line-on-dark: rgba(244, 239, 228, 0.16);

  --font-serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.3rem, 1.85rem + 2vw, 3.6rem);
  --step-4: clamp(2.7rem, 1.9rem + 3.9vw, 5.6rem);

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --container: 1240px;
  --section-space: clamp(5rem, 3.2rem + 8vw, 10rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-variant-numeric: lining-nums;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

p,
h1,
h2,
h3,
figure,
dl,
dd,
address {
  margin: 0;
}

address {
  font-style: normal;
}

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--small {
  width: 0.9em;
  height: 0.9em;
}

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* ---------- Fotografie ----------
   Trattamento solo in visualizzazione (i file restano invariati): luce leggermente più calda,
   contrasto morbido e una velatura dorata appena percepibile, coerente con la palette. */
.is-photo {
  filter: saturate(1.05) contrast(1.04) brightness(0.99);
}

figure:has(> .is-photo) {
  position: relative;
}

figure:has(> .is-photo)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(168, 139, 63, 0.06), rgba(23, 23, 21, 0.1)),
    radial-gradient(ellipse at 30% 20%, rgba(231, 199, 122, 0.08), transparent 60%);
  mix-blend-mode: soft-light;
}

@media (max-width: 640px) {
  .cover,
  .hero__image {
    object-position: var(--pos-m, var(--pos, 50% 50%));
  }
}

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}

.eyebrow::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--light {
  color: var(--gold-light);
}

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.display--light {
  color: var(--ivory);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--text);
}

.prose p + p {
  margin-top: 1.2rem;
}

.prose p {
  color: var(--text-soft);
  max-width: 34rem;
}

.prose .lead {
  color: var(--text);
}

.signature {
  margin-top: 2.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.2;
  color: var(--olive);
}

/* ---------- Pulsanti ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: currentColor;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, var(--ink));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn .icon--arrow {
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .icon--arrow {
  transform: translateX(4px);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-border: var(--gold);
  --btn-hover-bg: var(--ivory);
}

.btn--ghost-light {
  --btn-fg: var(--ivory);
  --btn-border: rgba(244, 239, 228, 0.5);
  --btn-hover-bg: var(--ivory);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  --btn-fg: var(--ink);
  --btn-border: var(--ivory);
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--ivory);
  --btn-border: var(--ink);
  --btn-hover-bg: var(--olive);
}

.btn--outline {
  --btn-fg: var(--ink);
  --btn-border: rgba(23, 23, 21, 0.35);
  --btn-hover-bg: var(--ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  --btn-fg: var(--ivory);
  --btn-border: var(--ink);
}

.btn--small {
  min-height: 2.6rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}

/* ---------- Marchio ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* Logo originale: parti bianche pensate per fondi scuri, quindi va sempre su nero/oliva */
.brand__logo {
  width: auto;
}

.brand__logo--header {
  height: 40px;
}

.brand__logo--hero {
  width: clamp(290px, 48vw, 640px);
  height: auto;
  margin-inline: auto;
}

.brand__logo--footer {
  width: min(280px, 100%);
  height: auto;
}

/* Logotipo tipografico: usato solo finché manca il file del logo originale */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--gold);
}

.wordmark__top {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wordmark__bottom {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.wordmark__bottom::before,
.wordmark__bottom::after {
  content: '';
  width: 1.8em;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.wordmark--header .wordmark__top {
  font-size: 1.32rem;
}

.wordmark--header .wordmark__bottom {
  font-size: 0.53rem;
}

.wordmark--hero .wordmark__top {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
}

.wordmark--hero .wordmark__bottom {
  font-size: clamp(0.58rem, 0.52rem + 0.25vw, 0.72rem);
}

.wordmark--footer .wordmark__top {
  font-size: 1.85rem;
}

.wordmark--footer .wordmark__bottom {
  font-size: 0.66rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--ivory);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.site-header .brand {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

/* Sopra la hero il marchio è già grande al centro: in alto resta nascosto */
.js .site-header--over-hero:not(.is-solid) .brand {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.js .site-header--over-hero:not(.is-solid) .brand:focus-visible {
  opacity: 1;
  transform: none;
}

.site-header.is-solid {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 1px 0 rgba(168, 139, 63, 0.28);
}

.nav__list {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current='true']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__phone:hover span {
  text-decoration: underline;
}

.site-header:not(.is-solid) .btn--gold {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  --btn-border: rgba(244, 239, 228, 0.55);
}

.site-header:not(.is-solid) .btn--gold:hover,
.site-header:not(.is-solid) .btn--gold:focus-visible {
  --btn-fg: var(--ink);
}

.lang {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.lang a {
  text-decoration: none;
  opacity: 0.6;
}

.lang a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle__line {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}

.menu-toggle__line:nth-of-type(2) {
  top: 18px;
}

.menu-toggle__line:nth-of-type(3) {
  top: 25px;
}

.menu-open .menu-toggle__line:nth-of-type(2) {
  top: 21.5px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle__line:nth-of-type(3) {
  top: 21.5px;
  transform: rotate(-45deg);
}

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--olive);
  color: var(--ivory);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

.mobile-menu[hidden] {
  display: none;
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s;
}

.menu-open .site-header {
  color: var(--ivory);
  background: transparent;
  box-shadow: none;
}

.menu-open .site-header .brand,
.js.menu-open .site-header--over-hero:not(.is-solid) .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu-open .site-header .wordmark {
  color: var(--gold);
}

.mobile-menu__nav li {
  border-bottom: 1px solid var(--line-on-dark);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(0.08s + var(--i) * 0.05s);
}

.menu-open .mobile-menu__nav li {
  opacity: 1;
  transform: none;
}

.mobile-menu__link {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.15;
  text-decoration: none;
}

.mobile-menu__footer {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-on-dark-soft);
}

.mobile-menu__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ivory);
}

.mobile-menu__address {
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(1.06);
  animation: hero-settle 2.6s var(--ease-out) forwards;
}

@keyframes hero-settle {
  to {
    transform: scale(1);
  }
}

/* Con una fotografia: velatura più profonda in basso e al centro per la leggibilità del titolo */
.hero--photo .hero__veil {
  background:
    radial-gradient(ellipse 62% 58% at 50% 50%, rgba(23, 23, 21, 0.6) 0%, rgba(23, 23, 21, 0.34) 60%, rgba(23, 23, 21, 0.1) 100%),
    linear-gradient(180deg, rgba(23, 23, 21, 0.62) 0%, rgba(23, 23, 21, 0.28) 30%, rgba(23, 23, 21, 0.34) 65%, rgba(23, 23, 21, 0.88) 100%),
    linear-gradient(135deg, rgba(39, 59, 48, 0.3), rgba(23, 23, 21, 0.08));
}

.hero--photo .hero__title,
.hero--photo .hero__subtitle,
.hero--photo .hero__eyebrow {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .hero--photo .hero__veil {
    background:
      linear-gradient(180deg, rgba(23, 23, 21, 0.66) 0%, rgba(23, 23, 21, 0.58) 35%, rgba(23, 23, 21, 0.6) 70%, rgba(23, 23, 21, 0.92) 100%),
      linear-gradient(135deg, rgba(39, 59, 48, 0.3), rgba(23, 23, 21, 0.1));
  }
}

/* Velatura calibrata: leggibilità del testo senza spegnere l'immagine */
.hero__veil {
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(23, 23, 21, 0.62) 0%, rgba(23, 23, 21, 0.28) 60%, rgba(23, 23, 21, 0) 100%),
    linear-gradient(180deg, rgba(23, 23, 21, 0.6) 0%, rgba(23, 23, 21, 0.25) 28%, rgba(23, 23, 21, 0.35) 60%, rgba(23, 23, 21, 0.9) 100%),
    rgba(23, 23, 21, 0.18);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: auto;
  padding-block: clamp(3rem, 8vh, 6rem) clamp(2rem, 5vh, 4rem);
  text-align: center;
}

.hero__brand {
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.45));
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
}

.hero__eyebrow::after {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero__title {
  max-width: 17ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.8rem + 3.3vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 36rem;
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-on-dark-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero__footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-soft);
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

a.hero__meta:hover span {
  text-decoration: underline;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__scroll-line {
  position: relative;
  width: 3.5rem;
  height: 1px;
  background: rgba(244, 239, 228, 0.3);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateX(-100%);
  animation: scroll-line 2.8s var(--ease) infinite 1.5s;
}

@keyframes scroll-line {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

/* ---------- Sezioni ---------- */
.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-head {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-head--center {
  text-align: center;
}

.section-head--center .eyebrow::after {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head--split {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.section-head__intro {
  max-width: 24rem;
  color: var(--text-soft);
}

/* ---------- Introduzione ---------- */
.intro {
  background: var(--ivory);
}

.intro__grid {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
  align-items: center;
}

.intro__title {
  margin-bottom: 2rem;
}

.intro__media {
  position: relative;
  padding-bottom: 18%;
}

.intro__figure {
  overflow: hidden;
  background: var(--ivory-deep);
}

.intro__figure--main {
  width: 78%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}

.intro__figure--secondary {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: clamp(6px, 1vw, 12px) solid var(--ivory);
  box-sizing: content-box;
  margin: 0 0 calc(clamp(6px, 1vw, 12px) * -1) calc(clamp(6px, 1vw, 12px) * -1);
}

.intro__caption {
  position: absolute;
  top: 8%;
  left: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}

.intro__caption::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 3.5rem;
  margin-top: 1rem;
  background: currentColor;
  vertical-align: top;
}

/* ---------- Esperienza ---------- */
.experience {
  background: var(--ink);
  color: var(--ivory);
}

.experience .display {
  color: var(--ivory);
}

.moments {
  display: grid;
  gap: clamp(4.5rem, 10vw, 8.5rem);
}

.moment {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.moment__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--olive-deep);
}

.moment__media img {
  transition: transform 1.4s var(--ease-out);
}

.moment:hover .moment__media img {
  transform: scale(1.03);
}

.moment__number {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-light);
}

.moment__number::after {
  content: '';
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.moment__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.moment__text {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--text-on-dark-soft);
  font-size: var(--step-0);
  line-height: 1.8;
}

.moment__media:has(> .is-photo) {
  aspect-ratio: 4 / 3;
}

@media (min-width: 960px) {
  .moment .moment__media:has(> .is-photo) {
    aspect-ratio: 5 / 4;
  }
}

/* ---------- Galleria ---------- */
.gallery {
  background: var(--paper);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.25rem);
}

.gallery__item {
  overflow: hidden;
  background: var(--ivory-deep);
  aspect-ratio: 1;
}

.gallery__item figure {
  height: 100%;
}

.gallery__item img {
  transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item--0 {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery__item--3 {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* Galleria fotografica: ritmo pensato per 8 foto (1 grande + 1, poi due righe da 3) */
.gallery__grid--photo .gallery__item {
  grid-column: span 1;
  grid-row: auto;
  aspect-ratio: 4 / 5;
}

.gallery__grid--photo .gallery__item:nth-child(8n + 1),
.gallery__grid--photo .gallery__item:nth-child(8n + 8) {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

@media (min-width: 640px) {
  .gallery__grid--photo .gallery__item {
    grid-column: span 2;
    aspect-ratio: 4 / 5;
  }

  .gallery__grid--photo .gallery__item:nth-child(8n + 1) {
    grid-column: span 4;
    aspect-ratio: auto;
  }

  .gallery__grid--photo .gallery__item:nth-child(8n + 8) {
    grid-column: span 2;
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Prenotazioni ---------- */
.booking {
  background: var(--olive);
  color: var(--ivory);
  overflow: hidden;
}

/* Motivo ad archi in filigrana, richiamo ai portici */
.booking__ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='240' viewBox='0 0 180 240'%3E%3Cpath d='M20 240V100a70 70 0 0 1 140 0v140' fill='none' stroke='%23C2A55A' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 180px 240px;
  background-position: center bottom;
  mask-image: linear-gradient(180deg, transparent 0%, #000 65%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 65%);
}

.booking__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.booking__text {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: var(--step-1);
  color: var(--text-on-dark-soft);
}

.booking__options {
  display: grid;
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
}

.booking__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--olive);
  text-decoration: none;
  transition: background-color 0.5s var(--ease);
}

.booking__option:hover {
  background: var(--olive-deep);
}

.booking__option:hover .btn--gold::after,
.booking__option:hover .btn--ghost-light::after {
  transform: scaleX(1);
  transform-origin: left;
}

.booking__option:hover .btn--ghost-light {
  --btn-fg: var(--ink);
  --btn-border: var(--ivory);
}

.booking__option:hover .icon--arrow {
  transform: translateX(4px);
}

.booking__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.booking__value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  line-height: 1.15;
  color: var(--ivory);
  overflow-wrap: anywhere;
}

.booking__value--email {
  font-size: clamp(1.3rem, 1rem + 1.3vw, 2.1rem);
}

.booking__btn {
  margin-top: 1.25rem;
}

.booking__hours {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.booking__hours-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.hours dd {
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.hours--light .hours__row {
  border-color: var(--line-on-dark);
}

.hours--light dt {
  color: var(--text-on-dark-soft);
}

.hours--light dd {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

/* ---------- Dove siamo ---------- */
.location {
  background: var(--ivory);
}

.location__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.location__lead {
  max-width: 30rem;
  margin-top: 1.6rem;
  color: var(--text-soft);
}

.location__address {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.location__address-link {
  display: inline-flex;
  gap: 1rem;
  font-size: var(--step-1);
  line-height: 1.55;
  text-decoration: none;
}

.location__address-link .icon {
  margin-top: 0.3rem;
  color: var(--bronze);
}

.location__address-link strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.location__address-link:hover span {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.location__media {
  display: block;
}

.location__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.location__figure img {
  transition: transform 1.4s var(--ease-out);
}

.location__media:hover img {
  transform: scale(1.03);
}

.location__pin {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(168, 139, 63, 0.22);
}

.location__figure:has(> .is-photo) .location__pin {
  display: none;
}

.location__pin .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-soft);
  padding-top: clamp(4rem, 8vw, 6.5rem);
  font-size: 0.9375rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ivory);
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.site-footer__grid {
  display: grid;
  gap: 2.75rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.brand--footer:hover {
  text-decoration: none !important;
}

.site-footer__tagline {
  margin-top: 1.5rem;
  max-width: 18rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ivory);
}

.site-footer__title {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.site-footer address {
  line-height: 1.9;
}

.hours--footer .hours__row {
  padding-block: 0.3rem;
  border: 0;
}

.hours--footer dd {
  color: var(--ivory);
}

.site-footer__links {
  display: grid;
  gap: 0.35rem;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(244, 239, 228, 0.6);
}

.site-footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-on-dark);
}

/* ---------- Barra azioni mobile ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink);
  border-top: 1px solid rgba(168, 139, 63, 0.4);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out);
}

.action-bar.is-visible {
  transform: none;
}

.action-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.action-bar__btn--gold {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Pagine semplici (privacy, 404) ---------- */
.page-simple {
  background: var(--paper);
}

.simple-page {
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) clamp(4rem, 8vw, 7rem);
}

.simple-page .display {
  margin-bottom: 1rem;
}

.simple-page__meta {
  margin-bottom: 3rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.simple-page__section {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.simple-page__section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.2;
}

.simple-page__section p {
  color: var(--text-soft);
  max-width: 40rem;
}

.simple-page .btn {
  margin-top: 2rem;
}

.simple-page--center {
  min-height: 80vh;
  display: grid;
  align-items: center;
}

.simple-page--center .lead {
  color: var(--text-soft);
}

/* ---------- Animazioni allo scroll (solo con JS attivo) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gallery__item {
    aspect-ratio: auto;
  }

  .gallery__item--0 {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .gallery__item--1,
  .gallery__item--2 {
    grid-column: span 2;
    aspect-ratio: 4 / 5;
  }

  .gallery__item--3 {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }

  .gallery__item--4 {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }

  .gallery__item--5 {
    grid-column: span 6;
    aspect-ratio: 21 / 8;
  }

  .booking__options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: 1fr auto;
  }

  .intro__grid {
    grid-template-columns: 5fr 6fr;
  }

  .intro__text {
    padding-right: 2rem;
  }

  .intro__media {
    padding-bottom: 14%;
  }

  .moment {
    grid-template-columns: 6fr 5fr;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .moment--reverse {
    grid-template-columns: 5fr 6fr;
  }

  .moment--reverse .moment__media {
    order: 2;
  }

  .moment__media {
    aspect-ratio: 5 / 6;
  }

  .moment:nth-child(3) .moment__media {
    aspect-ratio: 4 / 3;
  }

  .booking__inner {
    grid-template-columns: 7fr 4fr;
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .booking__intro {
    grid-column: 1;
  }

  .booking__options {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .booking__hours {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .location__grid {
    grid-template-columns: 5fr 6fr;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  }
}

@media (max-width: 1080px) {
  .site-header__phone {
    display: none;
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 64px;
  }

  .nav,
  .site-header__actions > .lang {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand__logo--header {
    height: 34px;
  }

  .site-header__actions {
    gap: 0.75rem;
  }

  .action-bar {
    display: grid;
  }

  body:not(.page-simple) .site-footer {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }

  .menu-open .action-bar {
    transform: translateY(110%);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 559px) {
  .hero__footer {
    justify-content: center;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .hero__scroll {
    display: none;
  }

  .hero__eyebrow {
    letter-spacing: 0.18em;
  }

  .hero__eyebrow::before,
  .hero__eyebrow::after {
    width: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
  }

  .site-header .btn--small {
    display: none;
  }

  .booking__option {
    padding: 1.75rem 1.4rem;
  }

  .booking__btn {
    width: 100%;
  }

  .location__actions .btn {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .intro__caption {
    display: none;
  }

  .intro__figure--main {
    width: 86%;
  }

  .intro__figure--secondary {
    width: 58%;
  }
}

@media (max-height: 620px) and (min-width: 700px) {
  .hero__brand {
    display: none;
  }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .hero__image {
    transform: none;
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__scroll-line::after {
    display: none;
  }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header,
  .action-bar,
  .hero__media,
  .hero__veil,
  .hero__scroll {
    display: none !important;
  }

  .hero,
  .experience,
  .booking,
  .site-footer {
    background: none;
    color: #000;
    min-height: 0;
  }
}
