/* ===== L'Edera Tolfa — editorial, photography-first (Reschio-like) ===== */

:root {
  --paper: #f6f3ec;
  --paper-deep: #efeadf;
  --ink: #29291f;
  --ink-soft: rgba(41, 41, 31, 0.62);
  --ink-faint: rgba(41, 41, 31, 0.38);
  --line: rgba(41, 41, 31, 0.16);
  --green: #2f4326;
  --cream: #f6f3ec;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; color: var(--ink); }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
figure { margin: 0; }

/* ===== Small-caps label ===== */
.label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}

/* ===== Underlined text link (no boxed buttons) ===== */
.lnk {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.6s var(--ease), letter-spacing 0.6s var(--ease);
  cursor: pointer;
  background: none;
}
.lnk:hover { opacity: 0.45; }
.lnk--light { color: var(--cream); border-color: rgba(246, 243, 236, 0.7); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 34px 44px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.7s var(--ease), padding 0.7s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  padding: 18px 44px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--cream); transition: color 0.7s var(--ease); }
.site-header.is-scrolled .brand, .brand--ink { color: var(--ink); }
.brand .leaf-mark { width: 26px; height: 26px; }
.brand-text {
  font-family: var(--serif); font-weight: 400; font-size: 19px;
  letter-spacing: 0.32em; text-transform: uppercase;
}
.brand-text small {
  display: block; font-family: var(--sans); font-weight: 300; font-size: 9px;
  letter-spacing: 0.5em; margin-top: 3px; opacity: 0.8;
}

.header-left { display: flex; align-items: center; gap: 22px; }
.book-btn {
  font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 9px 18px; border: 1px solid rgba(246, 243, 236, 0.55);
  color: var(--cream); white-space: nowrap;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.book-btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.site-header.is-scrolled .book-btn { color: var(--ink); border-color: var(--line); }
.site-header.is-scrolled .book-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 520px) {
  .header-left { gap: 12px; }
  .book-btn { padding: 8px 13px; letter-spacing: 0.12em; font-size: 10px; }
}

.nav-links { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-weight: 300; font-size: 11.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream); padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: color 0.7s var(--ease), border-color 0.5s var(--ease), opacity 0.5s var(--ease);
}
.site-header.is-scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { opacity: 0.5; }
.nav-links a.is-active { border-color: currentColor; }
.nav-lang a { border: 1px solid currentColor; border-radius: 2px; padding: 4px 9px; opacity: 0.75; }
.nav-lang a:hover { opacity: 1; }
@media (max-width: 860px) { .nav-lang a { border-color: currentColor; } }

.nav-toggle { display: none; width: 30px; height: 20px; position: relative; background: none; border: none; padding: 0; z-index: 110; cursor: pointer; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1px; background: var(--cream); transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), background 0.5s var(--ease); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-open .nav-toggle span { background: var(--ink) !important; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header { padding: 24px 24px; }
  .site-header.is-scrolled { padding: 16px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; align-items: center; justify-content: center; gap: 38px;
    transform: translateY(-100%); opacity: 0;
    transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
    z-index: 105;
  }
  .nav-open .nav-links { transform: translateY(0); opacity: 1; }
  .nav-links a { color: var(--ink) !important; font-size: 14px; }
  /* When the menu is open, drop the scrolled header's backdrop-filter/background:
     a backdrop-filter turns the header into the containing block for the fixed
     full-screen menu, shrinking it to the header bar. Removing it lets the menu
     cover the whole viewport again. */
  .nav-open .site-header,
  .nav-open .site-header.is-scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  body.nav-open { overflow: hidden; }
}

/* ===== Leaf ===== */
.leaf-mark { display: inline-block; object-fit: contain; }
/* Green leaf PNG; invert to cream over dark backgrounds (hero, top header) */
.brand .leaf-mark, .hero-inner .leaf-mark { filter: brightness(0) invert(1); }
.site-header.is-scrolled .brand .leaf-mark { filter: none; }

/* ===== Hero (full-bleed photo, slow zoom) ===== */
.hero {
  position: relative; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--cream);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero-video { animation: none; background: #14160e; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 14, 0.25) 0%, rgba(20, 22, 14, 0.1) 45%, rgba(20, 22, 14, 0.45) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 24px; }
.hero-inner .leaf-mark { width: 44px; height: 44px; margin: 0 auto 30px; color: var(--cream); }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: 0.28em; text-transform: uppercase; text-indent: 0.28em;
  color: var(--cream); line-height: 1.1;
}
.hero-sub {
  font-family: var(--sans); font-weight: 300; font-size: 12px;
  letter-spacing: 0.6em; text-transform: uppercase; text-indent: 0.6em;
  color: rgba(246, 243, 236, 0.85); margin-top: 22px;
}
.hero-inner > * { opacity: 0; animation: rise 2.2s var(--ease) forwards; }
.hero-inner .leaf-mark { animation-delay: 0.2s; }
.hero-inner .hero-title { animation-delay: 0.5s; }
.hero-inner .hero-sub { animation-delay: 0.9s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute; bottom: 0; left: 50%; z-index: 2;
  width: 1px; height: 90px; background: rgba(246, 243, 236, 0.5);
  transform-origin: top; animation: scrollline 2.6s var(--ease) infinite;
}
@keyframes scrollline {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (shorter, for inner pages) */
.hero--page { height: 78svh; }
/* Elegant editorial treatment for inner-page hero photos */
.hero--page .hero-img { filter: saturate(0.9) contrast(1.05) brightness(0.95); }
.hero--page::after {
  background:
    radial-gradient(130% 90% at 50% 34%, rgba(20, 22, 14, 0) 42%, rgba(18, 20, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(18, 20, 12, 0.42) 0%, rgba(18, 20, 12, 0.12) 38%, rgba(18, 20, 12, 0.5) 100%);
}

/* ===== Blocks & prose ===== */
.block { padding: 150px 0; }
.block--tight { padding: 100px 0; }
.block--deep { background: var(--paper-deep); }
.prose {
  max-width: 640px; margin: 0 auto; padding: 0 28px; text-align: center;
}
.prose .label { margin-bottom: 34px; }
.prose h2 {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.15; margin-bottom: 34px;
}
.prose h2 em { font-style: italic; font-weight: 300; }
.prose p { color: var(--ink-soft); font-size: 20px; }
.prose .lnk { margin-top: 26px; }

/* ===== Full-bleed image band ===== */
.bleed { position: relative; overflow: hidden; }
.bleed img { width: 100%; height: 88vh; object-fit: cover; }
.bleed--half img { height: 62vh; }
.bleed figcaption {
  position: absolute; left: 0; right: 0; bottom: 44px; text-align: center;
  font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: 0.4em; text-transform: uppercase; color: rgba(246, 243, 236, 0.85);
}

/* Image settle-in on reveal */
.img-reveal { overflow: hidden; }
.img-reveal img { transform: scale(1.08); transition: transform 2.6s var(--ease); }
.img-reveal.in img { transform: scale(1); }

/* ===== Diptych (two tall images side by side) ===== */
.diptych { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .diptych { grid-template-columns: 1fr; } }
.diptych a { position: relative; display: block; overflow: hidden; height: 92vh; color: var(--cream); }
@media (max-width: 820px) { .diptych a { height: 70vh; } }
.diptych img { width: 100%; height: 100%; object-fit: cover; transition: transform 3s var(--ease); }
.diptych a:hover img { transform: scale(1.05); }
.diptych a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,14,0) 40%, rgba(20,22,14,0.55) 100%);
  transition: background 1s var(--ease);
}
.diptych a:hover::after { background: linear-gradient(180deg, rgba(20,22,14,0.1) 40%, rgba(20,22,14,0.65) 100%); }
.diptych-caption {
  position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; text-align: center;
}
.diptych-caption .label { color: rgba(246,243,236,0.8); margin-bottom: 16px; }
.diptych-caption h3 {
  color: var(--cream); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: 0.12em; text-transform: uppercase; text-indent: 0.12em; margin-bottom: 22px;
}

/* ===== Rich room article (5-photo interactive gallery) ===== */
.room-article { padding: 130px 0; border-top: 1px solid var(--line); }
.room-article:first-of-type { border-top: none; }
.room-head { max-width: 1080px; margin: 0 auto 44px; padding: 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.room-head-left { max-width: 560px; }
.room-head .label { margin-bottom: 16px; }
.room-head h3 { font-size: clamp(36px, 5vw, 58px); letter-spacing: 0.12em; text-transform: uppercase; text-indent: 0.12em; line-height: 1; }
.room-head p { margin: 20px 0 0; color: var(--ink-soft); font-size: 19px; }
.room-head .room-alias { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 15px; color: var(--ink-soft); }
.room-head .lnk { flex-shrink: 0; }

.room-gallery { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.room-lead { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 9; background: var(--paper-deep); }
.room-lead img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.room-lead img.swapping { opacity: 0; }
.room-lead img { transition: opacity 0.5s var(--ease); }
.room-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.room-thumb { padding: 0; border: none; background: none; cursor: pointer; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3; position: relative; }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transition: transform 1.2s var(--ease), opacity 0.4s var(--ease); opacity: 0.6; }
.room-thumb:hover img { transform: scale(1.06); opacity: 0.85; }
.room-thumb.is-active img { opacity: 1; }
.room-thumb.is-active::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); border-radius: 2px; }
.room-thumb:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 640px) {
  .room-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}

/* ===== Included services ===== */
.services-grid { max-width: 900px; margin: 56px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
@media (max-width: 760px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; } }
.service { text-align: center; }
.service svg { width: 30px; height: 30px; color: var(--green); margin: 0 auto 14px; display: block; }
.service svg path, .service svg circle, .service svg rect, .service svg line { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.service span { display: block; font-family: var(--sans); font-weight: 300; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ===== Experiences (dintorni) ===== */
.exp-grid { max-width: 1080px; margin: 56px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .exp-grid { grid-template-columns: 1fr; } }
.exp-card { position: relative; overflow: hidden; border-radius: 3px; min-height: 420px; display: flex; align-items: flex-end; color: var(--cream); }
.exp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 3s var(--ease); }
.exp-card:hover img { transform: scale(1.06); }
.exp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,14,0) 35%, rgba(20,22,14,0.8) 100%); }
.exp-card-body { position: relative; z-index: 2; padding: 32px; }
.exp-card .label { color: rgba(246,243,236,0.8); margin-bottom: 12px; }
.exp-card h3 { color: var(--cream); font-weight: 300; font-size: 26px; letter-spacing: 0.06em; margin-bottom: 12px; }
.exp-card p { color: rgba(246,243,236,0.85); font-size: 16px; margin: 0; }

/* ===== Editorial room sections ===== */
.room-block { padding: 130px 0 0; }
.room-block .prose { padding-bottom: 90px; }
.room-name {
  font-size: clamp(38px, 5.5vw, 64px); letter-spacing: 0.14em;
  text-transform: uppercase; text-indent: 0.14em; margin-bottom: 26px;
}
.room-meta {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-faint);
  margin: 26px 0 30px;
}
.room-meta span { white-space: nowrap; }
.room-meta span + span::before { content: '·'; margin: 0 14px; }

/* ===== Phone display (ristorante) ===== */
.phone-huge {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(42px, 7vw, 84px); letter-spacing: 0.06em;
  color: var(--ink); display: inline-block; margin: 20px 0 30px;
  transition: opacity 0.6s var(--ease);
}
.phone-huge:hover { opacity: 0.5; }

/* ===== Hours ===== */
.hours { max-width: 460px; margin: 0 auto; padding: 0 28px; }
.hours-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.hours-row:first-child { border-top: 1px solid var(--line); }
.hours-row .day { font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
.hours-row .time { color: var(--ink); }
.hours-row.closed .time { color: var(--ink-faint); font-style: italic; }

/* ===== Form (quote) ===== */
.quote-form { max-width: 640px; margin: 70px auto 0; padding: 0 28px; text-align: left; }
.field { margin-bottom: 34px; }
.field label {
  display: block; font-family: var(--sans); font-weight: 300; font-size: 10.5px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--line); background: transparent;
  padding: 8px 0 12px; font-family: var(--serif); font-size: 19px; color: var(--ink);
  border-radius: 0; transition: border-color 0.5s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-status { margin-top: 24px; font-size: 16px; font-style: italic; color: var(--ink-soft); display: none; }
.form-status.show { display: block; }
.form-note { margin-top: 20px; font-size: 15px; font-style: italic; color: var(--ink-faint); }

/* Quote request result panel (mailto fallback) */
.quote-result { display: none; max-width: 640px; margin: 40px auto 0; padding: 30px 30px 26px; text-align: left; background: var(--paper); border: 1px solid var(--line); }
.quote-result.show { display: block; }
.quote-result-title { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); }
.quote-result-sub { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.quote-result-sub a { border-bottom: 1px solid var(--line); }
.quote-result-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 24px; }
.quote-result-actions .lnk { cursor: pointer; background: none; border: none; padding: 0; }
.quote-result-text {
  margin-top: 24px; padding: 18px 20px; background: var(--paper-deep); border: 1px solid var(--line);
  font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.7; color: var(--ink-soft);
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { transition: opacity 1.8s var(--ease), transform 1.8s var(--ease); opacity: 1; transform: translateY(0); }
.img-reveal.reveal { transform: none; }
.img-reveal.reveal.in { transform: none; }

/* ===== Divider leaf ===== */
.leaf-divider { display: flex; justify-content: center; padding: 0 0 60px; color: var(--green); }
.leaf-divider .leaf-mark { width: 30px; height: 30px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 90px 28px 50px; text-align: center;
}
.site-footer .leaf-mark { width: 34px; height: 34px; margin: 0 auto 26px; color: var(--green); }
.footer-word {
  font-family: var(--serif); font-weight: 300; font-size: 24px;
  letter-spacing: 0.34em; text-transform: uppercase; text-indent: 0.34em; color: var(--ink);
}
.footer-word small {
  display: block; font-family: var(--sans); font-weight: 300; font-size: 9.5px;
  letter-spacing: 0.55em; margin-top: 8px; color: var(--ink-soft);
}
.footer-nav { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 44px 0; }
.footer-nav a {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.5s var(--ease);
}
.footer-nav a:hover { color: var(--ink); }
.footer-contacts { font-size: 17px; color: var(--ink-soft); }
.footer-contacts a { border-bottom: 1px solid var(--line); transition: border-color 0.5s var(--ease); }
.footer-contacts a:hover { border-color: var(--ink); }
.footer-eu {
  margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.footer-eu a { display: inline-flex; transition: opacity 0.5s var(--ease); }
.footer-eu a:hover { opacity: 0.6; }
.footer-loghi { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.footer-loghi img { height: 58px; width: auto; max-width: 80vw; }
/* Mobile: keep both funding logos on one line, vertically centred */
@media (max-width: 520px) {
  .footer-loghi { gap: 16px; flex-wrap: nowrap; }
  .footer-loghi img { height: 38px; max-width: 46vw; }
}
.footer-eu p {
  margin: 0; max-width: 440px; font-family: var(--sans); font-weight: 300;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.8;
}
.footer-legal {
  margin-top: 40px; font-family: var(--sans); font-weight: 300; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
}

/* ===== Hero brand story (cursor reveal) ===== */
.hero-hint {
  position: absolute; left: 50%; bottom: 116px; transform: translateX(-50%);
  z-index: 3; font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; color: rgba(246, 243, 236, 0.7);
  display: flex; align-items: center; gap: 12px;
  transition: opacity 1s var(--ease); pointer-events: none;
  animation: hintPulse 2.6s ease-in-out infinite;
}
.hero-hint::before, .hero-hint::after { content: ''; width: 24px; height: 1px; background: rgba(246,243,236,0.5); }
.hero.story-in .hero-hint { opacity: 0; animation: none; }
@keyframes hintPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.85; } }
@media (hover: none) { .hero-hint { display: none; } }
.hero-story {
  max-width: 500px; margin: 26px auto 0; position: relative; z-index: 2;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 20px; line-height: 1.65; color: rgba(246, 243, 236, 0.92);
  transition: transform 0.5s var(--ease); will-change: transform;
}
.hero-story .rule { display: block; width: 40px; height: 1px; background: rgba(246,243,236,0.5); margin: 0 auto 22px; transform: scaleX(0); transition: transform 1s var(--ease) 0.1s; }
.hero.story-in .hero-story .rule { transform: scaleX(1); }
.hero-story-mask { display: block; overflow: hidden; }
.hero-story-text {
  display: block; transform: translateY(110%); opacity: 0;
  transition: transform 1.5s var(--ease), opacity 1.1s var(--ease);
}
.hero.story-in .hero-story-text { transform: translateY(0); opacity: 1; }

/* ===== Stat band (Tolfa) ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section--dark { background: var(--green); color: var(--cream); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
.stat-strip--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .stat-strip--3 { grid-template-columns: 1fr 1fr; } }
.stat-strip .num { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 42px); color: var(--cream); line-height: 1.1; }
.stat-strip .label { display: block; margin-top: 10px; color: rgba(246, 243, 236, 0.72); }

/* ===== Tolfa facts strip ===== */
.facts { padding-top: 96px; padding-bottom: 96px; }
.facts-row { max-width: 1000px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 4px 46px; text-align: center; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(41, 41, 31, 0.14); }
.fact-num { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6vw, 74px); line-height: 1; color: var(--green); display: inline-block; letter-spacing: 0.01em; }
.fact-num .unit { font-size: 0.4em; letter-spacing: 0.05em; margin-left: 5px; }
.fact-cap { display: block; margin-top: 16px; font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.fact-text { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) {
  .facts { padding-top: 72px; padding-bottom: 72px; }
  .facts-row { grid-template-columns: 1fr; }
  .fact { padding: 40px 20px 0; }
  .fact + .fact::before { display: none; }
  .fact + .fact { border-top: 1px solid rgba(41, 41, 31, 0.12); }
  .fact:first-child { padding-top: 4px; }
}

/* ===== Come arrivare ===== */
.arrive-grid { max-width: 900px; margin: 52px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
@media (max-width: 760px) { .arrive-grid { grid-template-columns: 1fr; gap: 34px; } }
.arrive-item .k { font-family: var(--serif); font-weight: 300; font-size: 30px; color: var(--ink); }
.arrive-item .l { display: block; margin-top: 8px; font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.arrive-note { max-width: 620px; margin: 44px auto 0; padding: 0 28px; text-align: center; color: var(--ink-soft); font-size: 18px; }
.arrive-cta { text-align: center; margin-top: 34px; }

/* ===== Map ===== */
.map-wrap { max-width: 1080px; margin: 60px auto 0; padding: 0 28px; }
.map-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--paper-deep); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 28px;
  background: var(--paper-deep);
}
.map-consent p { max-width: 360px; margin: 0; font-size: 17px; color: var(--ink-soft); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  margin: 0 auto; max-width: 720px; background: var(--ink); color: var(--paper);
  border-radius: 4px; padding: 24px 28px; display: flex; gap: 24px; align-items: center;
  flex-wrap: wrap; box-shadow: 0 24px 60px rgba(20, 22, 14, 0.28);
  transform: translateY(160%); transition: transform 0.8s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 14.5px; line-height: 1.6; color: rgba(246, 243, 236, 0.85); }
.cookie-banner a { color: var(--paper); border-bottom: 1px solid rgba(246, 243, 236, 0.5); }
.cookie-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cookie-btn {
  font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 12px 22px; cursor: pointer;
  border: 1px solid rgba(246, 243, 236, 0.4); background: transparent; color: var(--paper);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-btn:hover { background: var(--paper); color: var(--ink); }
.cookie-btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cookie-btn--solid:hover { opacity: 0.82; background: var(--paper); color: var(--ink); }

/* ===== Legal pages ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.legal .updated { font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 44px; }
.legal h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 46px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 17px; }
.legal ul { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 8px; }
.legal a { border-bottom: 1px solid var(--line); }
.legal a:hover { border-color: var(--ink); }
.legal .todo { background: #f6e7c4; color: #7a5a12; padding: 1px 6px; border-radius: 2px; }
.footer-ai { margin-top: 14px; letter-spacing: 0.14em; text-transform: none; }
.footer-legal a { border-bottom: 1px solid var(--line); transition: border-color 0.4s var(--ease); }
.footer-legal a:hover { border-color: var(--ink-soft); }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 30px; bottom: 30px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(246,243,236,0.9);
  color: var(--ink); display: grid; place-items: center; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
  cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 16px; height: 16px; }
