/* ============================================================
   DAIANA — Sito statico HTML
   Design system: ink / ember / paper  ·  Cormorant + Inter
============================================================ */

:root {
  --ink-50:#f5f5f4; --ink-100:#e7e5e4; --ink-200:#d6d3d1; --ink-300:#a8a29e;
  --ink-400:#78716c; --ink-500:#57534e; --ink-600:#44403c; --ink-700:#292524;
  --ink-800:#1c1917; --ink-900:#0c0a09;
  --ember-100:#ffedd5; --ember-200:#fed7aa; --ember-300:#fdba74;
  --ember-400:#fb923c; --ember-500:#f97316; --ember-600:#ea580c; --ember-700:#c2410c;
  --ember-50:#fff7ed;
  --paper:#fbfaf7;
}

*,*::before,*::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--ember-400); color: var(--ink-900); }

.font-display { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: -0.01em; }

.container-x { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container-x { padding: 0 2.5rem; } }

.eyebrow {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.22em; font-weight: 500;
}
@media (min-width: 768px) { .eyebrow { font-size: 0.875rem; } }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.75rem 1.5rem;
  font-weight: 500; transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink-900); color: var(--paper); }
.btn-primary:hover { background: var(--ember-600); }
.btn-primary.is-ember { background: var(--ember-500); }
.btn-primary.is-ember:hover { background: var(--ember-400); }
.btn-ghost { border: 1px solid rgba(12,10,9,.15); color: var(--ink-900); }
.btn-ghost:hover { border-color: rgba(12,10,9,.4); background: rgba(12,10,9,.03); }
.btn-ghost.is-light { border-color: rgba(251,250,247,.4); color: var(--paper); }
.btn-ghost.is-light:hover { background: rgba(251,250,247,.1); border-color: rgba(251,250,247,.7); }

.text-shadow-hero { text-shadow: 0 4px 30px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.25); }

/* ----- Header ----- */
.site-header {
  position: fixed; top:0; left:0; right:0; z-index: 50;
  padding: 1.5rem 0;
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(251,250,247,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .75rem 0;
  border-bottom-color: rgba(12,10,9,.1);
}
.site-header .inner { display:flex; align-items:center; justify-content:space-between; }
.brand { display:flex; align-items:center; gap:.75rem; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 9999px; overflow: hidden;
  background: var(--paper); flex-shrink: 0;
  display: grid; place-items: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 768px){
  .brand-logo { width: 60px; height: 60px; }
}

/* Certifications inside header — visible only desktop */
.header-certs { display: none; }
@media (min-width: 1024px){
  .header-certs {
    display: flex; align-items: center; gap: .5rem;
    margin-left: 1rem; padding-left: 1rem;
    border-left: 1px solid rgba(251,250,247,.25);
    transition: border-color .4s;
  }
  .site-header.scrolled .header-certs,
  .site-header.menu-open .header-certs { border-left-color: rgba(12,10,9,.15); }
  .header-certs > a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9999px;
    background: var(--paper);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,.4);
  }
  .header-certs > a:hover { transform: translateY(-2px) scale(1.05); }
  .header-certs img {
    width: 100%; height: 100%; object-fit: contain;
  }
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Kaushan Script', 'Yellowtail', cursive;
  font-size: 1.25rem; line-height: 1; font-weight: 400;
  color: var(--paper);
  transition: color .4s;
  letter-spacing: 0;
}
.brand-tag {
  font-family: 'Sacramento', 'Allura', cursive;
  font-size: .8rem; line-height: 1;
  color: var(--paper);
  margin-top: 2px;
  letter-spacing: .03em;
  transition: color .4s;
}
@media (min-width: 768px){
  .brand-name { font-size: 1.65rem; }
  .brand-tag { font-size: 1.05rem; }
}
.site-header.scrolled .brand-name,
.site-header.scrolled .brand-tag,
.site-header.menu-open .brand-name,
.site-header.menu-open .brand-tag { color: var(--ink-900); }
.site-header:not(.scrolled):not(.menu-open) .brand-name,
.site-header:not(.scrolled):not(.menu-open) .brand-tag {
  text-shadow: 0 4px 30px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.25);
}
/* Footer brand always paper-colored */
.site-footer .brand-name,
.site-footer .brand-tag { color: var(--paper); }

.nav-desktop { display:none; align-items:center; gap:2rem; }
@media (min-width: 900px){ .nav-desktop { display:flex; } }
.nav-desktop a:not(.nav-cta) {
  position:relative; font-size:.875rem;
  color: var(--paper);
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
  padding-bottom: 2px;
}
.site-header.scrolled .nav-desktop a:not(.nav-cta) { color: var(--ink-700); text-shadow:none; }
.nav-desktop a:not(.nav-cta)::after {
  content:""; position:absolute; left:0; bottom:0; width:0; height:1px;
  background: currentColor; transition: width .3s;
}
.nav-desktop a:not(.nav-cta):hover::after { width:100%; }

.nav-cta {
  font-size:.875rem; padding:.625rem 1.25rem; border-radius:9999px;
  background: var(--paper); color: var(--ink-900);
  transition: all .3s;
}
.nav-cta:hover { background: var(--ember-500); color: var(--paper); }
.site-header.scrolled .nav-cta { background: var(--ink-900); color: var(--paper); }
.site-header.scrolled .nav-cta:hover { background: var(--ember-600); }

.nav-toggle {
  display:grid; place-items:center; width:40px; height:40px; border-radius:9999px;
  color: var(--paper);
}
@media (min-width: 900px){ .nav-toggle { display:none; } }
.site-header.scrolled .nav-toggle, .site-header.menu-open .nav-toggle { color: var(--ink-900); }
.nav-toggle .x { display:none; }
.site-header.menu-open .nav-toggle .x { display:block; }
.site-header.menu-open .nav-toggle .hamb { display:none; }

.nav-mobile {
  display: none;
  background: rgba(251,250,247,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(12,10,9,.1);
}
.site-header.menu-open .nav-mobile { display:block; }
.nav-mobile .container-x { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.nav-mobile a {
  display:block; font-family:'Cormorant Garamond', serif;
  font-size: 1.875rem; color: var(--ink-900); padding: .25rem 0;
  opacity:0; transform: translateX(-10px);
  animation: navItemIn .35s forwards;
}
.nav-mobile a:nth-child(1) { animation-delay: .05s; }
.nav-mobile a:nth-child(2) { animation-delay: .10s; }
.nav-mobile a:nth-child(3) { animation-delay: .15s; }
.nav-mobile a:nth-child(4) { animation-delay: .20s; }
.nav-mobile .nav-cta-mob {
  display: inline-flex; margin-top: 1rem; animation-delay: .25s;
  background: var(--ember-500); color: var(--paper);
  padding:.75rem 1.5rem; border-radius:9999px; font-family: 'Inter', sans-serif;
  font-size: 1rem;
}
@keyframes navItemIn { to { opacity:1; transform: translateX(0); } }

/* ----- Hero ----- */
.hero {
  position:relative; min-height: 100vh; min-height: 100svh; width:100%;
  overflow:hidden; background: var(--ink-900); color: var(--paper);
}
.hero-bg { position:absolute; inset:0; will-change: transform; }
.hero-bg img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform: scale(1.08); }
.hero-overlay { position:absolute; inset:0; }
.hero-overlay.grad-vert { background: linear-gradient(to bottom, rgba(12,10,9,.55), rgba(12,10,9,.35) 50%, rgba(12,10,9,.95)); }
.hero-overlay.grad-horiz { background: linear-gradient(to right, rgba(12,10,9,.75), rgba(12,10,9,.2) 50%, transparent); }
.hero-overlay.grad-bot { background: linear-gradient(to top, rgba(12,10,9,.95), rgba(12,10,9,.5) 40%, transparent 66%); }

.hero .inner {
  position:relative; z-index:2; min-height: 100vh; min-height: 100svh;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding-bottom: 4rem; padding-top: 7.5rem;
}
@media (min-width: 768px){ .hero .inner { min-height: 640px; padding-bottom: 8rem; padding-top: 8rem; } }
.hero-eyebrow { color: var(--ember-300); margin-bottom: 1rem; opacity:0; animation: fadeUp .8s .4s forwards; font-size: .65rem; }
@media (min-width: 768px){ .hero-eyebrow { font-size: .75rem; margin-bottom: 1.5rem; } }
.hero h1 {
  font-family:'Cormorant Garamond', serif;
  font-weight: 500; line-height: .95;
  font-size: clamp(2.5rem, 10vw, 8rem);
  margin: 0;
}
/* Extra-safe on very small phones (iPhone SE etc.) */
@media (max-width: 380px){
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 4rem); }
  .hero p.sub { font-size: .9rem; margin-top: 1.5rem; }
  .hero .ctas { margin-top: 1.75rem; }
}
.hero h1 + h1 { color: var(--ember-300); margin-top: .25rem; }
.hero p.sub {
  max-width: 36rem; margin-top: 2rem; color: rgba(251,250,247,.95);
  font-size: 1rem; line-height: 1.6;
  opacity:0; animation: fadeUp .8s 1.2s forwards;
}
@media (min-width: 768px){ .hero p.sub { font-size: 1.125rem; } }
.hero .ctas {
  display:flex; flex-wrap:wrap; gap: 1rem; margin-top: 2.5rem;
  opacity:0; animation: fadeUp .8s 1.4s forwards;
}
.scroll-cue {
  position:absolute; bottom: 2rem; left:50%; transform: translateX(-50%);
  color: rgba(251,250,247,.7); font-size:.75rem; letter-spacing: .3em; text-transform: uppercase;
  display:flex; flex-direction:column; align-items:center; gap:.75rem; z-index:3;
  opacity:0; animation: fadeUp 1s 1.8s forwards;
  pointer-events: none;
}
/* Hide scroll cue on small screens — would collide with CTAs */
@media (max-width: 767px){ .scroll-cue { display: none; } }
.scroll-cue .arr { animation: bouncedown 1.8s infinite ease-in-out; }
@keyframes bouncedown { 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(8px);} }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* split-text word reveal — no overflow:hidden to preserve descenders */
.split-word { display: inline-block; vertical-align: baseline; }
.split-word > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  animation: wordIn .9s cubic-bezier(.22,1,.36,1) forwards;
  will-change: transform, opacity;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* page-hero (interno) — più corto */
.page-hero { min-height: 80vh; min-height: 80svh; }
.page-hero .inner { padding-bottom: 5rem; }

/* ----- Sezioni base ----- */
section { position: relative; }
.section { padding: 7rem 0; }
.section.is-dark { background: var(--ink-900); color: var(--paper); }
.section.is-paper { background: var(--paper); }
.section.is-ember { background: var(--ember-50); }
.section.is-tight { padding: 6rem 0; }

h2.section-title {
  font-family:'Cormorant Garamond', serif; font-weight: 500;
  line-height: 1.05; font-size: clamp(2.5rem, 5vw, 4rem); margin: 0;
}
h3.card-title {
  font-family:'Cormorant Garamond', serif; font-weight: 500;
  font-size: 1.5rem; margin: 0;
}

.lead {
  color: var(--ink-600); line-height: 1.7;
}
.is-dark .lead { color: rgba(251,250,247,.8); }

/* ----- Marquee ----- */
.marquee {
  overflow:hidden; border-top:1px solid rgba(12,10,9,.1); border-bottom:1px solid rgba(12,10,9,.1);
  padding: 2rem 0; background: var(--paper);
}
.marquee-track {
  display:flex; gap:3rem; width:max-content;
  animation: marquee 40s linear infinite; will-change: transform;
}
.marquee-track > span {
  font-family:'Cormorant Garamond', serif; font-size: 1.875rem;
  color: rgba(41,37,36,.8); white-space: nowrap;
}
@media (min-width: 768px){ .marquee-track > span { font-size: 2.25rem; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----- Vantaggi grid ----- */
.vantaggi-grid {
  display:grid; gap: 2.5rem;
}
@media (min-width: 768px){ .vantaggi-grid { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.cards-2x2 { display:grid; gap:1rem; }
@media (min-width: 640px){ .cards-2x2 { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  height: 100%; padding: 1.75rem; border-radius: 1rem;
  background: var(--paper); border: 1px solid rgba(12,10,9,.1);
  transition: border-color .5s, box-shadow .5s, transform .5s;
}
.feature-card:hover {
  border-color: rgba(249,115,22,.5);
  box-shadow: 0 30px 60px -30px rgba(234,88,12,.35);
}
.feature-card .ico {
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: var(--ember-100); color: var(--ember-600);
  display: grid; place-items: center; margin-bottom: 1.25rem;
  transition: background .3s, color .3s;
}
.feature-card:hover .ico { background: var(--ember-500); color: var(--paper); }
.feature-card h3 { font-family:'Cormorant Garamond', serif; font-size: 1.5rem; margin: 0 0 .5rem; }
.feature-card p { color: var(--ink-600); font-size: .875rem; line-height: 1.6; margin: 0; }

/* ----- Chi sono feature ----- */
.feature-split {
  display:grid; gap:3rem; align-items:center;
}
@media (min-width: 768px){ .feature-split { grid-template-columns: repeat(2, 1fr); } }
.figure-quote { position:relative; aspect-ratio: 4/5; border-radius: 1rem; overflow:hidden; }
.figure-quote img { width:100%; height:100%; object-fit:cover; }
.figure-quote .quote-card {
  position:absolute; left:1.5rem; right:1.5rem; bottom:1.5rem;
  background: rgba(251,250,247,.95); backdrop-filter: blur(10px);
  padding: 1.25rem; border-radius: .75rem;
  font-family:'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--ink-900);
}

/* ----- Trekking card ----- */
.trek-grid {
  display:grid; gap: 1.25rem;
}
@media (min-width: 640px){ .trek-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .trek-grid { grid-template-columns: repeat(4, 1fr); } }
.trek-card {
  position:relative; aspect-ratio: 3/4; border-radius: 1rem; overflow:hidden;
  background: var(--ink-900); display:block;
}
.trek-card img {
  width:100%; height:100%; object-fit:cover;
  opacity:.9; transition: opacity 1.2s, transform 1.2s;
}
.trek-card:hover img { opacity:1; transform: scale(1.1); }
.trek-card .overlay {
  position:absolute; inset:0;
  background: linear-gradient(to top, var(--ink-900), rgba(12,10,9,.3) 50%, transparent);
}
.trek-card .meta {
  position:absolute; inset:0; padding: 1.5rem;
  display:flex; flex-direction:column; justify-content:flex-end; color: var(--paper);
}
.trek-card .meta .tag { color: var(--ember-300); margin-bottom: .5rem; }
.trek-card .meta h3 { font-family:'Cormorant Garamond', serif; font-size: 1.5rem; line-height: 1.1; margin: 0; }
.trek-card .more {
  display:flex; align-items:center; gap:.5rem; margin-top: 1rem; font-size:.875rem;
  opacity:0; transform: translateX(-8px); transition: opacity .5s, transform .5s;
}
.trek-card:hover .more { opacity:1; transform: translateX(0); }

/* ----- Event cards (Prossimi appuntamenti) ----- */
.events { display: grid; gap: 3rem; }
.event-card {
  display: grid; gap: 0;
  background: var(--paper); border-radius: 1.25rem; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.25);
  border: 1px solid rgba(12,10,9,.06);
}
@media (min-width: 768px){
  .event-card { grid-template-columns: 5fr 7fr; gap: 0; }
  .event-card.is-rev .event-photo { order: 2; }
}
.event-photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
@media (min-width: 768px){ .event-photo { aspect-ratio: auto; min-height: 100%; } }
.event-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s;
}
.event-card:hover .event-photo img { transform: scale(1.05); }
.event-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,9,.55), rgba(12,10,9,.1) 40%, transparent);
}
.event-dates {
  position: absolute; left: 1.25rem; bottom: 1.25rem; right: 1.25rem;
  z-index: 2; color: var(--paper);
  display: flex; flex-direction: column; gap: .25rem;
}
.event-dates .ed-row {
  display: inline-flex; align-items: baseline; gap: .5rem;
  background: rgba(12,10,9,.55); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: .4rem .85rem; border-radius: 9999px;
  font-size: .8rem; align-self: flex-start;
}
.event-dates .ed-day {
  font-family:'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 500;
  color: var(--ember-300); line-height: 1;
}
.event-dates .ed-mo {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--paper);
}

.event-body {
  padding: 1.75rem 1.5rem 2rem;
  display: flex; flex-direction: column;
}
@media (min-width: 768px){
  .event-body { padding: 2.5rem 2rem; justify-content: center; }
}
.event-tag {
  color: var(--ember-600); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .2em; font-weight: 500; margin: 0 0 .75rem;
}
.event-body h3 {
  font-family:'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.05;
  margin: 0 0 1rem; color: var(--ink-900);
}
.event-desc {
  color: var(--ink-700); line-height: 1.6; margin: 0 0 1.25rem;
}
.event-itinerary {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; gap: .75rem;
  border-left: 2px solid var(--ember-300); padding-left: 1rem;
}
.event-itinerary li {
  color: var(--ink-700); font-size: .9rem; line-height: 1.55;
}
.event-itinerary li strong {
  color: var(--ember-600); font-weight: 500;
  display: inline-block; min-width: 5.5rem;
}
.event-meta {
  color: var(--ink-600); font-size: .85rem; font-style: normal;
  line-height: 1.55; margin: 0 0 1.25rem;
  padding: .85rem 1rem; background: var(--ember-50);
  border-radius: .5rem;
}
.event-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 1.25rem;
}
.event-stats > div { text-align: left; }
.event-stats strong {
  display: block; font-family:'Cormorant Garamond', serif;
  font-weight: 500; color: var(--ember-600); font-size: 2rem; line-height: 1;
}
.event-stats span {
  display: block; font-size: .65rem; text-transform: uppercase;
  letter-spacing: .15em; color: var(--ink-500); margin-top: .25rem;
}
.event-body .btn-primary { align-self: flex-start; margin-top: auto; }

/* ----- Certification badges ----- */
.cert-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cert-row > a, .cert-row > span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 9999px;
  background: var(--paper);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.4);
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.cert-row > a:hover, .cert-row > span:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
}
.cert-row img {
  width: 100%; height: 100%; object-fit: contain;
}

/* Larger badges in chi-sono credentials sidebar */
.cred .cert-row > a, .cred .cert-row > span {
  width: 72px; height: 72px;
}

/* Footer cert strip */
.site-footer .footer-certs {
  border-top: 1px solid rgba(251,250,247,.1);
  padding: 1.75rem 0; display: flex; align-items: center;
  flex-wrap: wrap; gap: 1.5rem; justify-content: center;
}
@media (min-width: 768px){
  .site-footer .footer-certs { justify-content: flex-start; }
}
.site-footer .footer-certs .cert-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .22em;
  color: rgba(251,250,247,.5); margin: 0;
}
.site-footer .footer-certs .cert-row > a,
.site-footer .footer-certs .cert-row > span {
  width: 52px; height: 52px;
}
.site-footer .footer-certs .cert-row {
  gap: .75rem;
}

/* ----- Stats counters ----- */
.stats-grid {
  display:grid; gap: 3rem 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px){ .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat .num {
  font-family:'Cormorant Garamond', serif;
  color: var(--ember-300); font-size: 3.5rem; line-height: 1; margin-bottom: .5rem;
}
.stat .lab {
  font-size: .75rem; color: rgba(251,250,247,.6);
  text-transform: uppercase; letter-spacing: .15em;
}

/* ----- Gallery ----- */
.gallery-grid {
  display:grid; gap: 1rem;
}
@media (min-width: 768px){ .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.gallery-item { position:relative; border-radius: .75rem; overflow:hidden; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform 1.2s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gov {
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(12,10,9,.4), transparent);
  opacity:0; transition: opacity .5s;
}
.gallery-item:hover .gov { opacity:1; }

/* Heights of gallery cells */
.h-280 { height: 280px; } .h-300 { height: 300px; }
.h-320 { height: 320px; } .h-360 { height: 360px; }
.h-420 { height: 420px; }

/* ----- Servizi alternato (trekking page) ----- */
.serv-row {
  display:grid; gap: 2rem; align-items:center; padding: 3rem 0;
  border-bottom: 1px solid rgba(12,10,9,.1);
}
.serv-row:last-child { border-bottom: 0; }
@media (min-width: 768px){
  .serv-row { grid-template-columns: 5fr 7fr; gap: 2.5rem; padding: 3rem 0; }
  .serv-row.is-rev .serv-pic { order: 2; }
}
.serv-pic { aspect-ratio: 4/3; border-radius: 1rem; overflow:hidden; }
.serv-pic img { width:100%; height:100%; object-fit:cover; transition: transform 1.2s; }
.serv-row:hover .serv-pic img { transform: scale(1.05); }
.serv-meta .tagline { display:flex; align-items:center; gap:.75rem; margin-bottom: 1rem; }
.serv-meta .ico {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: var(--ember-100); color: var(--ember-600);
  display:grid; place-items:center;
}
.serv-meta .tag { color: var(--ember-600); }
.serv-meta h3 {
  font-family:'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 1rem;
}
.serv-meta p { color: var(--ink-700); line-height: 1.7; max-width: 36rem; }

/* ----- Via degli Dei block ----- */
.glow-ring {
  position:absolute; width: 500px; height: 500px; border-radius: 9999px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(251,146,60,.35), transparent 70%);
  pointer-events: none;
}

.vdd-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.vdd-stats.is-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px){ .vdd-stats.is-4 { grid-template-columns: repeat(4, 1fr); } }
.vdd-stats .n { font-family:'Cormorant Garamond', serif; color: var(--ember-600); font-size: 2.25rem; line-height: 1; }
.vdd-stats .l { font-size:.75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-500); margin-top: .25rem; }

.alert-chip {
  display:inline-block; background: var(--ink-900); color: var(--paper);
  padding: .5rem 1rem; border-radius: 9999px; font-size:.875rem; margin-bottom: 1rem;
}

/* ----- Process steps ----- */
.process { display:grid; gap: 2rem; margin-top: 2.5rem; text-align:left; }
@media (min-width: 768px){ .process { grid-template-columns: repeat(3, 1fr); } }
.process .step { border-top: 1px solid rgba(251,250,247,.15); padding-top: 1.5rem; }
.process .n { font-family:'Cormorant Garamond', serif; color: var(--ember-300); font-size: 3rem; line-height: 1; margin-bottom: .75rem; }
.process .t { font-family:'Cormorant Garamond', serif; font-size: 1.5rem; margin: 0 0 .5rem; }
.process .d { color: rgba(251,250,247,.7); font-size:.875rem; line-height: 1.6; }

/* ----- Contatti page ----- */
.contact-card {
  display:block; padding: 1.25rem; border: 1px solid rgba(12,10,9,.1); border-radius: 1rem;
  transition: all .3s;
}
.contact-card.is-link:hover { border-color: rgba(249,115,22,.6); background: rgba(255,247,237,.5); }
.contact-card .row { display:flex; gap: 1rem; align-items: flex-start; }
.contact-card .ico {
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: var(--ink-900); color: var(--paper);
  display:grid; place-items: center; flex-shrink: 0;
  transition: background .3s;
}
.contact-card.is-link:hover .ico { background: var(--ember-500); }
.contact-card .meta .lab { font-size:.75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-500); }
.contact-card .meta .val { font-family:'Cormorant Garamond', serif; font-size: 1.25rem; line-height: 1.2; margin-top: .25rem; white-space: pre-line; }

.form-card {
  background: var(--paper); border-radius: 1.5rem; padding: 2rem;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.25);
  border: 1px solid rgba(12,10,9,.05);
  display:grid; gap: 1.25rem;
}
@media (min-width: 768px){ .form-card { padding: 2.5rem; } }
.form-grid { display:grid; gap: 1.25rem; }
@media (min-width: 768px){ .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-card label { display:block; font-size:.75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-500); margin-bottom: .5rem; }
.form-card input, .form-card select, .form-card textarea {
  width:100%; background: var(--paper); border: 1px solid rgba(12,10,9,.15);
  border-radius: .75rem; padding: .75rem 1rem; color: var(--ink-900);
  font: inherit; outline: none; transition: border-color .25s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--ember-500); }
.form-card textarea { resize: vertical; min-height: 120px; }
.form-card .actions { display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap: 1rem; padding-top: .5rem; }
.form-card .actions p { font-size:.75rem; color: var(--ink-500); max-width: 28rem; margin: 0; }

.map-frame {
  position:relative; aspect-ratio: 4/3; border-radius: 1rem; overflow:hidden; background: var(--ink-100);
}
.map-frame iframe { width:100%; height:100%; border:0; }

/* ----- Privacy ----- */
.prose-privacy h2 { font-family:'Cormorant Garamond', serif; font-size: 1.875rem; margin: 0 0 1rem; color: var(--ink-900); }
.prose-privacy article { border-top: 1px solid rgba(12,10,9,.1); padding-top: 2rem; margin-top: 3rem; }
.prose-privacy p, .prose-privacy ul { color: var(--ink-700); line-height: 1.7; margin: 0 0 1rem; }
.prose-privacy ul { padding-left: 1.5rem; }
.prose-privacy ul li { margin-bottom: .5rem; }
.prose-privacy a { color: var(--ember-600); }
.prose-privacy a:hover { text-decoration: underline; }
.prose-privacy strong { color: var(--ink-900); }

/* ----- Footer ----- */
.site-footer { background: var(--ink-900); color: var(--paper); }
.site-footer .top { padding: 5rem 0; display:grid; gap: 3rem; }
@media (min-width: 768px){ .site-footer .top { grid-template-columns: 5fr 3fr 4fr; } }
.site-footer h4 { font-size:.75rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 500; color: rgba(251,250,247,.6); margin: 0 0 1rem; }
.site-footer p.about { color: rgba(251,250,247,.7); line-height: 1.6; max-width: 28rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display:grid; gap: .75rem; }
.site-footer a { color: rgba(251,250,247,.8); transition: color .2s; }
.site-footer a:hover { color: var(--ember-400); }
.site-footer .social {
  width: 2.5rem; height: 2.5rem; border-radius:9999px;
  border: 1px solid rgba(251,250,247,.15);
  display:grid; place-items:center;
  transition: border-color .25s, color .25s;
}
.site-footer .social:hover { border-color: var(--ember-400); color: var(--ember-400); }
.site-footer .row-icon { display:flex; gap:.75rem; align-items:flex-start; color: rgba(251,250,247,.8); }
.site-footer .row-icon svg { flex-shrink: 0; margin-top: 4px; }
.site-footer .bottom {
  border-top: 1px solid rgba(251,250,247,.1); padding: 1.5rem 0;
  display:flex; flex-direction:column; gap: .75rem;
  font-size: .75rem; color: rgba(251,250,247,.5);
}
@media (min-width: 768px){ .site-footer .bottom { flex-direction: row; align-items:center; justify-content: space-between; } }

/* ----- Reveal on scroll ----- */
.reveal { opacity:0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity:1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Utility */
.text-ember { color: var(--ember-600); }
.text-ember-300 { color: var(--ember-300); }
.text-paper { color: var(--paper); }
.no-underline { text-decoration: none; }
.icon { width: 18px; height: 18px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }

main { display: block; }

/* Editorial layout for Chi sono */
.editorial { display:grid; gap: 3rem; align-items: flex-start; }
@media (min-width: 768px){ .editorial { grid-template-columns: 7fr 5fr; gap: 3rem; } }
.editorial .body { font-size: 1.125rem; color: var(--ink-700); line-height: 1.85; display:grid; gap: 1.5rem; }
.editorial .body .display-q { font-family:'Cormorant Garamond', serif; font-size: clamp(1.875rem, 3vw, 2.25rem); color: var(--ink-900); line-height: 1.3; }
.editorial .body strong { color: var(--ink-900); }
.editorial .side { display:grid; gap: 1rem; position: sticky; top: 8rem; }
.editorial .side .pic { aspect-ratio: 4/5; border-radius: 1rem; overflow:hidden; }
.editorial .side .pic img { width:100%; height:100%; object-fit:cover; }
.editorial .side .cred { background: var(--ink-900); color: var(--paper); padding: 1.75rem; border-radius: 1rem; }
.editorial .side .cred .lab { color: var(--ember-300); font-size:.75rem; text-transform: uppercase; letter-spacing: .22em; margin-bottom: .75rem; }
.editorial .side .cred .ttl { font-family:'Cormorant Garamond', serif; font-size: 1.5rem; margin: 0; }
.editorial .side .cred .sub { color: rgba(251,250,247,.7); font-size:.875rem; }
.editorial .side .cred .list { border-top: 1px solid rgba(251,250,247,.15); margin-top: 1.25rem; padding-top: 1.25rem; display:grid; gap: .5rem; font-size:.875rem; color: rgba(251,250,247,.8); }

/* Hero CTA centered */
.center-cta { text-align: center; max-width: 48rem; margin: 0 auto; }
.center-cta h2 { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1.05; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
}
