/* =============================================================
   La Maggiatica — Main Stylesheet v2
   S1: Reset, CSS vars, Navbar, Footer, Globals, Animazioni
============================================================= */

/* ---------------------------------------------------------------
   CSS Variables
--------------------------------------------------------------- */
:root {
  --ivory:       #F4F0E8;
  --black:       #0E0E0C;
  --green:       #2D4A2A;
  --green-light: #4A6741;
  --sand:        #C4AB87;
  --sand-light:  #E8DECE;
  --sand-text:   #7A6B4E;
  --white:       #FAFAF7;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Outfit', sans-serif;
}

/* ---------------------------------------------------------------
   Hero entrance animation
--------------------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: heroFadeUp 0.8s ease 0.3s both; }
.hero-tag     { animation: heroFadeUp 0.8s ease 0.4s both; }
.hero-title   { animation: heroFadeUp 0.9s ease 0.5s both; }
.hero-sub     { animation: heroFadeUp 0.8s ease 0.65s both; }
.hero-cta     { animation: heroFadeUp 0.8s ease 0.8s both; }

@media (prefers-reduced-motion: reduce) {
  .hero-content, .hero-tag, .hero-title, .hero-sub, .hero-cta {
    animation: none;
  }
}

/* ---------------------------------------------------------------
   Reset & Base
--------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* Page transition overlay */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: opacity;
}
#page-transition.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.pt-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.pt-logo-img {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1) blur(12px);
  opacity: 0.4;
  transition:
    filter  1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: filter, opacity;
}
.pt-logo-text {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: 0.2em;
  filter: blur(12px);
  opacity: 0.4;
  transition:
    filter  1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: filter, opacity;
}
#page-transition.logo-focus .pt-logo-img {
  filter: brightness(0) invert(1) blur(0px);
  opacity: 1;
}
#page-transition.logo-focus .pt-logo-text {
  filter: blur(0px);
  opacity: 1;
}

@media (hover: none) {
  body { cursor: auto; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------------------------------------------------------------
   Custom Cursor (desktop only)
--------------------------------------------------------------- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: multiply;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor.hover {
  width: 16px;
  height: 16px;
  background: var(--sand);
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  opacity: 0.3;
}

@media (hover: none) {
  .cursor,
  .cursor-ring {
    display: none;
  }
}

/* ---------------------------------------------------------------
   Navbar
--------------------------------------------------------------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--green);
}

@media (max-width: 768px) {
  #main-nav {
    padding: 1rem 1.25rem;
  }
}

/* WordPress admin bar — sposta navbar quando visibile */
.admin-bar #main-nav  { top: 32px; }
.admin-bar #nav-mobile { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #main-nav  { top: 46px; }
  .admin-bar #nav-mobile { top: 46px; }
}

/* Logo */
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo .custom-logo-link img {
  height: 48px;
  width: auto;
}

/* Nav links desktop */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
  opacity: 1;
}

/* CTA nel menu primario — item con classe nav-cta */
.nav-links .nav-cta > a,
.nav-links li.nav-cta a {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.45rem 1rem;
  opacity: 1 !important;
  transition: background 0.3s, color 0.3s !important;
}

.nav-links .nav-cta > a:hover,
.nav-links li.nav-cta a:hover {
  background: var(--white);
  color: var(--green);
}

/* Language switcher nav */
.nav-lang {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.lang-item {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  transition: color 0.3s;
  text-decoration: none;
}

.lang-item.active,
.lang-item:hover {
  color: var(--sand);
}

/* Hamburger */
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-lang {
    display: none;
  }

  #nav-toggle {
    display: flex;
  }
}

/* ---------------------------------------------------------------
   Nav mobile overlay
--------------------------------------------------------------- */
#nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#nav-mobile.open {
  display: flex;
}

#nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#nav-mobile-close:hover {
  opacity: 1;
}

.nav-mobile-links {
  list-style: none;
  text-align: center;
}

.nav-mobile-links li {
  margin-bottom: 1.5rem;
}

.nav-mobile-links a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-mobile-links a:hover,
.nav-mobile-links .current-menu-item > a {
  opacity: 1;
  color: var(--sand);
}

.nav-mobile-lang {
  display: flex;
  gap: 1.5rem;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
#main-footer {
  background: var(--black);
  padding: 4rem 3rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--serif) !important;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo .custom-logo-link img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  max-width: 220px;
}

.footer-col-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}

.footer-col ul li a:hover {
  color: var(--white);
}

/* WP nav menu nel footer */
.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.6rem;
}

.footer-menu a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

.footer-lang {
  display: flex;
  gap: 1rem;
}

/* Footer responsive */
@media (max-width: 768px) {
  #main-footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #main-footer {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-col-title {
    font-size: 0.65rem;
    margin-bottom: 0.8rem;
  }

  .footer-col ul li {
    margin-bottom: 0.4rem;
  }

  .footer-col ul li a,
  .footer-col ul li span {
    font-size: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---------------------------------------------------------------
   Bottoni globali
--------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateX(4px);
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

/* ---------------------------------------------------------------
   Section label (pattern ricorrente)
--------------------------------------------------------------- */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--sand);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   Scroll Reveal
--------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ---------------------------------------------------------------
   Keyframe Animations
--------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ---------------------------------------------------------------
   Accessibility
--------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------
   Selection
--------------------------------------------------------------- */
::selection {
  background: var(--sand);
  color: var(--black);
}

/* ---------------------------------------------------------------
   Pagination (fallback globale)
--------------------------------------------------------------- */
.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.pagination .page-numbers {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(45, 74, 42, 0.2);
  font-size: 0.75rem;
  color: var(--green);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--green);
  color: var(--white);
}

/* ---------------------------------------------------------------
   Utility
--------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   S2 — Sezioni pagine
============================================================= */

/* ---------------------------------------------------------------
   Hero fullscreen
--------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--green);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

/* Overlay gradiente — da sinistra per leggibilità testi */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.40) 50%,
    rgba(0,0,0,0.00) 100%
  );
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F0D9B0;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title em { font-style: italic; color: var(--sand); }

.hero-sub {
  font-size: 1rem !important;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 380px;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
  transition: gap 0.4s ease;
}

.hero-cta:hover { gap: 1.8rem; color: var(--white); }

.hero-cta-line {
  width: 40px;
  height: 1px;
  background: var(--sand);
  flex-shrink: 0;
  transition: width 0.4s ease;
}

.hero-cta:hover .hero-cta-line { width: 70px; }

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

.scroll-indicator span {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--sand);
  animation: scrollDown 2s 2s infinite;
}

@media (max-width: 768px) {
  .hero { padding: 0 1.25rem 3rem; min-height: 600px; }
  .scroll-indicator { right: 1.25rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 100svh; }
}

/* ---------------------------------------------------------------
   Numbers Bar
--------------------------------------------------------------- */
.numbers-bar {
  background: var(--green);
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  position: relative;
}

.numbers-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
}

.num-item {
  padding: 1rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.num-item:last-child { border-right: none; }

.num-value {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.num-value em { font-style: italic; color: var(--sand); font-size: 1.8rem; }

.num-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
}

@media (max-width: 768px) {
  .numbers-bar { padding: 1.5rem 1.25rem; }
  .num-item { padding: 0.8rem 1rem; }
}

@media (max-width: 480px) {
  .numbers-bar { grid-template-columns: repeat(2, 1fr); }
  .num-item:nth-child(2) { border-right: none; }
  .num-item:nth-child(3),
  .num-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ---------------------------------------------------------------
   Intro Section
--------------------------------------------------------------- */
.intro {
  padding: 8rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.intro-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.intro-label::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--sand);
}

.intro-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 2rem;
}

.intro-title em { font-style: italic; color: var(--black); }

.intro-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #4a4a44;
  max-width: 420px;
}

.intro-body p + p { margin-top: 1rem; }

.intro-right {
  position: relative;
}

.intro-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.intro-right:hover .intro-img { transform: scale(1.04); }

.intro-img-badge {
  position: absolute;
  bottom: -1px; left: -2rem;
  background: var(--ivory);
  padding: 1.5rem 2rem;
  width: 200px;
}

.intro-img-badge-text {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--green);
  line-height: 1.2;
}

.intro-img-badge-sub {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555555;
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.25rem;
  }
  .intro-img-badge { left: 0; }
}

@media (max-width: 480px) {
  .intro { padding: 3.5rem 1.25rem; }
}

/* ---------------------------------------------------------------
   Appartamento
--------------------------------------------------------------- */
.apartment {
  background: var(--black);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}

.apartment::before {
  content: 'APPARTAMENTO';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 18vw;
  font-weight: 300;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
}

.apt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.apt-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}

.apt-title em { font-style: italic; color: var(--sand); }

.apt-desc {
  max-width: 320px;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.80);
}

@media (max-width: 768px) {
  .apt-header { flex-direction: column; }
  .apt-title, .apt-desc { width: 100%; max-width: 100%; }
}

/* ---------------------------------------------------------------
   Gallery appartamento — 1 foto grande + 4 thumbnail
--------------------------------------------------------------- */
.apt-gallery { margin: 60px 0 0; }

.apt-gallery__main {
  width: 100%;
  height: 520px;
  overflow: hidden;
}
.apt-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apt-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 3px;
}
.apt-gallery__thumb {
  height: 160px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.apt-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.apt-gallery__thumb:hover img { transform: scale(1.04); }

.apt-gallery__more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,14,12,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.apt-gallery__more-overlay span {
  color: var(--ivory);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .apt-gallery__main { height: 320px; }
  .apt-gallery__thumbs { grid-template-columns: repeat(2, 1fr); }
  .apt-gallery__thumb { height: 130px; }
}
@media (max-width: 480px) {
  .apt-gallery__main { height: 240px; }
  .apt-gallery__thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------
   Features appartamento — sfondo ivory, linee sand
--------------------------------------------------------------- */
.apt-features {
  background: var(--green);
  padding: 48px 0;
  margin: 60px 0;
}
.apt-features__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.apt-features__item {
  padding: 0 32px;
  border-right: 0.5px solid rgba(255,255,255,0.15);
}
.apt-features__item:first-child { padding-left: 0; }
.apt-features__item:last-child { border-right: none; }
.apt-features__label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sand);
  opacity: 0.7;
  margin: 0 0 8px;
}
.apt-features__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--ivory);
  margin: 0;
}

@media (max-width: 768px) {
  .apt-features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0 24px;
  }
  .apt-features__item {
    padding: 0;
    border-right: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.15);
    padding-bottom: 24px;
  }
  .apt-features__item:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .apt-features__grid { grid-template-columns: repeat(2, 1fr); }
}

/* .apt-preview-cta e .apt-preview-count — vedi sezione "Gallery preview homepage" in fondo */

/* ---------------------------------------------------------------
   Territory Section
--------------------------------------------------------------- */
.territory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  align-items: center;
}

.territory-left {
  background: var(--green);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.territory-left::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
}

.territory-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F0D9B0;
  margin-bottom: 2rem;
}

.territory-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  flex: 1;
}

.territory-title em { font-style: italic; color: var(--sand); }

.territory-list {
  list-style: none;
  margin-top: 3rem;
}

.territory-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}

.territory-list li::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--sand);
  flex-shrink: 0;
}

.territory-right {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 420px;
  max-height: 520px;
}

.territory-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.8);
  transition: transform 8s ease, filter 0.5s ease;
}

.territory-right:hover img { transform: scale(1.04); filter: saturate(1); }

.territory-overlay {
  position: absolute;
  top: 2rem; left: 2rem;
  background: rgba(244,240,232,0.92);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  max-width: 200px;
}

.territory-overlay-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.territory-overlay-sub {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #767676;
}

@media (max-width: 768px) {
  .territory { grid-template-columns: 1fr; min-height: auto; }
  .territory-left { padding: 4rem 1.25rem; order: 1; }
  .territory-right { order: 2; min-height: 300px; }
}

/* ---------------------------------------------------------------
   Quote Section
--------------------------------------------------------------- */
.quote-section {
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '"';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 30rem;
  color: rgba(45,74,42,0.04);
  line-height: 0.8;
  pointer-events: none;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--green);
  max-width: 750px;
  margin: 0 auto 2rem;
  line-height: 1.4;
  position: relative;
}

.quote-author {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F0D9B0;
  display: block;
}

@media (max-width: 768px) {
  .quote-section { padding: 4rem 1.25rem; }
}

/* ---------------------------------------------------------------
   Booking CTA
--------------------------------------------------------------- */
.booking {
  background: var(--sand-light);
  padding: 6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  border-top: 1px solid rgba(45,74,42,0.1);
}

.booking-left { flex: 1; }

.booking-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--green);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.booking-title em { font-style: italic; }

.booking-sub {
  font-size: 1rem;
  color: #5a5a52;
  line-height: 1.8;
}

.booking-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .booking {
    flex-direction: column;
    padding: 4rem 1.25rem;
    gap: 2.5rem;
    align-items: flex-start;
  }
  .booking-right {
    align-items: stretch;
    width: 100%;
  }
  .booking-right .btn-primary,
  .booking-right .btn-secondary {
    text-align: center;
  }
}

/* ---------------------------------------------------------------
   News / Storie
--------------------------------------------------------------- */
.news {
  padding: 8rem 3rem;
  background: var(--white);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--green);
  line-height: 1.1;
}

.section-title em { font-style: italic; }

.section-link {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: gap 0.3s;
  white-space: nowrap;
}

.section-link:hover { gap: 1rem; }

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2px;
}

.news-card {
  overflow: hidden;
  background: var(--ivory);
  cursor: pointer;
}

.news-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: saturate(0.85);
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
  filter: saturate(1);
}

.news-card-body { padding: 1.5rem; }

.news-card-cat {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.news-card-title a:hover { color: var(--green); }

.news-card-date {
  font-size: 11px;
  color: #666666;
  letter-spacing: 0.08em;
}

.news-card-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin: 0.8rem 0;
}

@media (max-width: 768px) {
  .news { padding: 4rem 1.25rem; }
  .news-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ---------------------------------------------------------------
   FAQ
--------------------------------------------------------------- */
.faq {
  padding: 8rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-heading {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--green);
  margin-bottom: 2rem;
  line-height: 1.2;
}
.faq-heading em { font-style: italic; }

.faq-item {
  border-top: 1px solid rgba(45,74,42,0.15);
  padding: 1.5rem 0;
}

.faq-item:last-child { border-bottom: 1px solid rgba(45,74,42,0.15); }

.faq-question {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: color 0.3s;
  user-select: none;
}

.faq-question:hover { color: var(--green-light); }

.faq-icon {
  width: 24px; height: 24px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--sand);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--sand);
  color: var(--white);
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.9;
  color: #666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .faq { padding: 4rem 1.25rem; }
}

/* ---------------------------------------------------------------
   Cycling Section
--------------------------------------------------------------- */
.cycling {
  background: var(--ivory);
  padding: 8rem 3rem;
}

.cycling-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.cycling-left {
  position: relative;
  min-height: 300px;
}

.cycling-hero-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.85);
  max-width: 100%;
  opacity: 1 !important;
  transform: none !important;
}

.cycling-img-caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cycling-img-caption::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--sand);
  flex-shrink: 0;
}

.cycling-stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(45,74,42,0.1);
  margin-top: 1px;
}

.cycling-stat {
  background: var(--ivory);
  padding: 1.2rem 1rem;
  text-align: center;
}

.cycling-stat-val {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.cycling-stat-val em { font-style: italic; color: var(--sand); font-size: 1rem; }

.cycling-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #767676;
}

.cycling-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green);
  color: #F0D9B0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.8rem;
}

.cycling-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cycling-title em { font-style: italic; color: var(--black); }

.cycling-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #4a4a44;
  margin-bottom: 2.5rem;
}

.cycling-routes {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2.5rem;
}

.cycling-route {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-left: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.cycling-route:hover {
  border-left-color: var(--sand);
  background: var(--sand-light);
}

.cycling-route-name { font-size: 1rem; font-weight: 400; color: var(--black); }
.cycling-route-sub  { font-size: 0.75rem; color: #767676; margin-top: 2px; }

.cycling-route-pill {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.pill-easy   { background: #EAF3DE; color: #3B6D11; }
.pill-medium { background: #FAEEDA; color: #854F0B; }
.pill-hard   { background: #FCEBEB; color: #A32D2D; }

.cycling-route-dist { font-family: var(--serif); font-size: 1rem; color: var(--green); white-space: nowrap; }
.cycling-route-elev { font-size: 12px; color: #767676; white-space: nowrap; }

.cycling-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cycling-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border: 1px solid rgba(45,74,42,0.3);
  padding: 0.7rem 1.2rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.cycling-link:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.cycling-komoot-note {
  font-size: 1rem;
  color: #767676;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cycling-komoot-note::before { content: '→'; color: var(--sand); flex-shrink: 0; }

@media (max-width: 768px) {
  .cycling { padding: 4rem 1.25rem; }
  .cycling-inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .cycling-route {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
  }
}

/* ---------------------------------------------------------------
   Page Hero (pagine interne)
--------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 4rem;
  overflow: hidden;
  background: var(--green);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(45,74,42,0.6) 0%, rgba(14,14,12,0.35) 50%, rgba(14,14,12,0.65) 100%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-top: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}

.page-hero-title em { font-style: italic; color: var(--sand); }

/* Variante light (pagine senza immagine) */
.page-hero--light {
  background: var(--ivory);
  min-height: 30vh;
}

.page-hero--light::after { display: none; }
.page-hero--light .page-hero-bg { display: none; }

.page-hero-title--dark {
  color: var(--green);
}

.page-hero-title--dark em { color: var(--black); }

/* Variante blog */
.page-hero--blog {
  background: var(--green);
  min-height: 35vh;
}

@media (max-width: 768px) {
  .page-hero { padding: 0 1.25rem 3rem; min-height: 40vh; flex-direction: column; justify-content: flex-end; }
  .page-hero-content { width: 100%; }
}

/* ---------------------------------------------------------------
   Page content
--------------------------------------------------------------- */
.page-content-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.page-content {
  font-size: 1rem;
  line-height: 1.95;
  color: #3a3a34;
}

.page-content p { margin-bottom: 1.2rem; }
.page-content h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; color: var(--green); margin: 2rem 0 1rem; }
.page-content h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--green); margin: 1.5rem 0 0.8rem; }

@media (max-width: 768px) {
  .page-content-wrap { padding: 3rem 1.25rem; }
}

/* ---------------------------------------------------------------
   Blog Archive
--------------------------------------------------------------- */
.storie-archive { background: var(--ivory); }

.storie-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 3rem 8rem;
}

.news-grid--archive {
  grid-template-columns: repeat(3, 1fr);
}

.no-posts {
  font-size: 1rem;
  color: #767676;
  text-align: center;
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .storie-inner { padding: 3rem 1.25rem 5rem; }
  .news-grid--archive { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Single Post
--------------------------------------------------------------- */
.single-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.single-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(14,14,12,0.5));
}

.single-content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 3rem 6rem;
}

.single-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.single-cat {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

.single-date {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #767676;
}

.single-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.single-content {
  font-size: 1rem;
  line-height: 1.95;
  color: #3a3a34;
}

.single-content p { margin-bottom: 1.5rem; }
.single-content h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; color: var(--green); margin: 2.5rem 0 1rem; }
.single-content blockquote { border-left: 2px solid var(--sand); padding-left: 1.5rem; margin: 2rem 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--green); }

.single-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(45,74,42,0.1);
  font-size: 12px;
  color: var(--sand);
  letter-spacing: 0.1em;
}

.single-tags a { color: var(--green); text-decoration: none; margin-right: 0.5rem; }

.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(45,74,42,0.1);
}

.single-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  background: var(--white);
  text-decoration: none;
  transition: background 0.3s;
}

.single-nav-item:hover { background: var(--sand-light); }
.single-nav-item--next { text-align: right; }

.single-nav-dir {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B6914;
}

.single-nav-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--green);
  line-height: 1.3;
}

.single-cta {
  background: var(--sand-light);
  padding: 5rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(45,74,42,0.1);
}

.single-cta-inner { max-width: 600px; margin: 0 auto; }

.single-cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--green);
  margin: 1rem 0 2rem;
  line-height: 1.15;
}

.single-cta-title em { font-style: italic; }

@media (max-width: 768px) {
  .single-hero { height: 300px; }
  .single-content-wrap { padding: 3rem 1.25rem 4rem; }
  .single-nav { grid-template-columns: 1fr; }
  .single-cta { padding: 4rem 1.25rem; }
}

/* ---------------------------------------------------------------
   Contatti page
--------------------------------------------------------------- */
.contatti-section {
  background: var(--ivory);
  padding: 6rem 3rem 8rem;
}

.contatti-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.contatti-info h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--green);
  margin: 0.8rem 0 2rem;
}

.contatti-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contatti-icon { font-size: 1.1rem; opacity: 0.5; flex-shrink: 0; }

.contatti-item-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B6914;
  margin-bottom: 0.3rem;
}

.contatti-item-val { font-size: 1rem; color: var(--black); }
.contatti-item-val a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(45,74,42,0.2); }

.contatti-social-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contatti-map { margin-bottom: 2rem; overflow: hidden; }

.contatti-form-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--green);
  margin: 0.5rem 0 1.5rem;
}

.contatti-form-title em { font-style: italic; }

.contatti-wa {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196,171,135,0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contatti-wa span {
  font-size: 0.85rem;
  color: rgba(14,14,12,0.5);
  letter-spacing: 0.02em;
}

.contatti-wa-link {
  color: var(--green);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
}

.contatti-wa-link:hover { color: var(--sand); }

@media (max-width: 768px) {
  .contatti-section { padding: 4rem 1.25rem 5rem; }
  .contatti-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------------------------------------------------------------
   Prenota page
--------------------------------------------------------------- */
.booking-options { margin-top: 3rem; }

.booking-options-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 4rem;
}

.booking-option-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-option-card--direct { background: var(--sand-light); }

.booking-option-icon { font-size: 1.8rem; opacity: 0.5; }

.booking-option-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green);
}

.booking-option-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4a44;
  flex: 1;
}

.booking-option-badge {
  display: inline-block;
  background: var(--green);
  color: #F0D9B0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  width: fit-content;
}

.booking-form-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--green);
  line-height: 1.15;
  margin: 0.8rem 0 1.5rem;
}

.booking-form-title em { font-style: italic; }

.booking-form-placeholder {
  background: var(--white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.booking-form-placeholder p {
  font-size: 1rem;
  color: #4a4a44;
  line-height: 1.7;
}

.prenota-note {
  background: var(--green);
  padding: 5rem 3rem;
}

.prenota-note-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.prenota-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.prenota-note-grid h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.prenota-note-grid p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
  .booking-options-cards { grid-template-columns: 1fr; }
  .prenota-note { padding: 4rem 1.25rem; }
  .prenota-note-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------------------------------------------------------------
   Territorio page distanze
--------------------------------------------------------------- */
.territory-distances-wrap { margin-top: 3rem; }

.territory-list--page {
  border-top: 1px solid rgba(45,74,42,0.12);
}

.territory-list--page li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(45,74,42,0.08);
  font-size: 1rem;
  color: #4a4a44;
}

.territory-list--page li strong {
  font-weight: 400;
  color: var(--green);
}

/* =============================================================
   Utility — Screen reader only (accessibilità)
============================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   Page Gallery — griglia foto pagine interne
============================================================= */
.page-gallery {
  padding: 0 3rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}
.page-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.page-gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.page-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.page-gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .page-gallery { padding: 0 1.25rem 4rem; }
  .page-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .page-gallery-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Footer Legal — CIR/CIN barra legale
============================================================= */
.footer-legal {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 3rem;
}
.footer-legal-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-legal-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.footer-legal-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal-items span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .footer-legal { padding: 1rem 1.25rem; text-align: center; }
  .footer-legal-inner { gap: 0.75rem; justify-content: center; flex-direction: column; align-items: center; }
  .footer-legal-items { gap: 1rem; justify-content: center; flex-wrap: wrap; text-align: center; }
}

/* =============================================================
   S3 — Print styles
============================================================= */
@media print {
  #main-nav,
  #nav-mobile,
  #main-footer,
  .btn-primary,
  .btn-secondary,
  .cursor,
  .cursor-ring,
  .scroll-indicator,
  .hero-cta,
  .booking-right,
  .cycling-links,
  .single-nav,
  .single-cta,
  .booking-options-cards,
  .contatti-map {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    cursor: auto;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    color: #666;
  }

  .hero {
    height: auto;
    min-height: auto;
  }

  .hero-title,
  .hero-sub,
  .hero-tag {
    color: black !important;
    opacity: 1 !important;
    animation: none !important;
  }

  h1, h2, h3 {
    color: black;
    page-break-after: avoid;
  }

  .single-content-wrap,
  .page-content-wrap {
    max-width: 100%;
    padding: 1rem 0;
  }
}

/* =============================================================
   PAGINE INTERNE — Effetti premium
   Override e aggiunte dopo S2: hero Ken Burns, editorial,
   line-reveal, img-reveal, highlight, distanze editoriale
============================================================= */

/* ---------------------------------------------------------------
   Page Hero — Ken Burns + label animata
--------------------------------------------------------------- */
.page-hero {
  height: 60vh;
  min-height: 400px;
}

.page-hero-bg {
  transform: scale(1.03);
  transition: transform 6s ease-out;
}

.page-hero-bg.loaded {
  transform: scale(1);
}

.page-hero::after {
  background: linear-gradient(
    to top,
    rgba(14, 14, 12, 0.78) 0%,
    rgba(14, 14, 12, 0.2) 55%,
    transparent 100%
  );
}

.page-hero-content {
  padding-top: 0;
}

.page-hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  margin-top: 0;
}

.page-hero-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F0D9B0;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.page-hero-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--sand);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   Line reveal — separatore animato su scroll
--------------------------------------------------------------- */
.line-reveal {
  height: 1px;
  background: rgba(45, 74, 42, 0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
  margin: 4rem 0;
}

.line-reveal.visible {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------
   Image clip-path reveal
--------------------------------------------------------------- */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.visible {
  clip-path: inset(0% 0 0 0);
}

/* ---------------------------------------------------------------
   Layout editoriale pagine interne
--------------------------------------------------------------- */
.page-editorial {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.page-editorial-intro {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  color: #4a4a44;
}

.page-editorial-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--green);
  margin: 3rem 0 1rem;
  line-height: 1.2;
}

.page-editorial-intro p { margin-bottom: 1.5rem; }

.page-editorial-intro blockquote {
  border-left: 2px solid var(--sand);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--green);
  line-height: 1.5;
}

.page-editorial-intro cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767676;
  display: block;
  margin-top: 0.6rem;
}

.page-cta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------
   Distanze territorio — layout editoriale
--------------------------------------------------------------- */
.territory-distances-editorial { margin-top: 2rem; }

.territory-list--editorial {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid rgba(45, 74, 42, 0.12);
}

.territory-list--editorial li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(45, 74, 42, 0.08);
  gap: 2rem;
}

.territory-list--editorial li strong {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--green);
}

.territory-list--editorial li span {
  font-family: var(--sans);
  font-size: 1rem;
  color: #767676;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------
   Page Highlight — sfondo verde con citazione/tagline
--------------------------------------------------------------- */
.page-highlight {
  background: var(--green);
  padding: 5rem 3rem;
  text-align: center;
}

.page-highlight-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
}

.page-highlight-sub {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------
   Mobile — pagine interne
--------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-hero    { height: 50vh; }
  .page-editorial { padding: 4rem 1.25rem; }
  .page-highlight { padding: 3rem 1.25rem; }
  .line-reveal  { margin: 2.5rem 0; }
  .page-cta     { flex-direction: column; align-items: flex-start; }
}

/* .apt-gallery — nuovo layout in sezione "Gallery appartamento" sopra */

/* =============================================================
   Blog premium — archivio + singolo articolo
============================================================= */

/* Archive hero */
.archive-hero {
  background: var(--green);
  padding: 8rem 3rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.archive-hero::before {
  content: '"';
  position: absolute;
  font-family: var(--serif);
  font-size: 30rem;
  color: rgba(255,255,255,0.03);
  top: -5rem; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 1;
}
.archive-hero-content { position: relative; z-index: 1; }
.archive-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.archive-title em { font-style: italic; color: var(--sand); }
.archive-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-top: 1rem;
}

/* Filtri categorie */
.archive-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2.5rem 3rem;
  border-bottom: 1px solid rgba(45,74,42,0.1);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.filter-btn {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(45,74,42,0.2);
  color: var(--green);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Grid articoli */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--ivory);
}
.archive-empty {
  grid-column: 1 / -1;
  padding: 4rem;
  text-align: center;
  color: #767676;
  font-size: 1rem;
}

/* Featured post — 2 colonne */
.news-card--featured {
  grid-column: span 2;
}
.news-card--featured .news-card-img {
  aspect-ratio: 16/9;
}
.news-card--featured .news-card-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* Tempo di lettura */
.news-card-read-time {
  font-size: 12px;
  color: var(--sand);
  letter-spacing: 0.1em;
}
.news-card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.news-card-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 1rem;
}
.news-card-cat a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}
.news-card-link {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: border-color 0.3s;
  text-decoration: none;
  display: inline-block;
}
.news-card-link:hover { border-color: var(--green); }

/* Paginazione archivio */
.archive-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 4rem 3rem;
}
.archive-pagination .page-numbers {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(45,74,42,0.2);
  color: var(--green);
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--green);
  color: var(--white);
}

/* Single — hero */
.single-hero {
  position: relative;
  height: 65vh; min-height: 450px;
  display: flex; align-items: flex-end;
  padding: 0 3rem 4rem;
  overflow: hidden;
}
.single-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.single-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,12,0.85) 0%, transparent 60%);
}
.single-hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
}
.single-cat a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem;
}
.single-cat a::before {
  content: ''; width: 25px; height: 1px; background: var(--sand);
}
.single-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.single-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.single-meta-sep { color: var(--sand); }

/* Single — contenuto */
.single-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 3rem;
}
.single-toc {
  background: var(--sand-light);
  padding: 2rem;
  margin-bottom: 3rem;
  border-left: 3px solid var(--sand);
}
.single-toc-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.single-toc-list {
  list-style: decimal;
  padding-left: 1.5rem;
}
.single-toc-list li { margin-bottom: 0.5rem; }
.single-toc-list a {
  font-size: 1rem;
  color: var(--green);
  text-decoration: none;
  transition: color 0.3s;
}
.single-toc-list a:hover { color: var(--green-light); }

/* Single — tipografia articolo */
.single-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--green);
  margin: 3rem 0 1rem;
  line-height: 1.2;
}
.single-content h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--black);
  margin: 2rem 0 0.8rem;
}
.single-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: #3a3a35;
  margin-bottom: 1.5rem;
}
.single-content img {
  width: 100%; height: auto;
  margin: 2rem 0;
}
.single-content blockquote {
  border-left: 3px solid var(--sand);
  padding: 1rem 2rem;
  margin: 2rem 0;
  background: var(--sand-light);
}
.single-content blockquote p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--green);
}
.single-content ul, .single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.single-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: #3a3a35;
  margin-bottom: 0.5rem;
}

/* Single — tag */
.single-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(45,74,42,0.1);
}
.single-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(45,74,42,0.2);
  color: var(--green);
  text-transform: uppercase;
}

/* Single — nav prev/next */
.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 3rem 0;
}
.single-nav-item {
  background: var(--sand-light);
  padding: 1.5rem;
  text-decoration: none;
  transition: background 0.3s;
  display: block;
}
.single-nav-item:hover { background: var(--sand); }
.single-nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B6914;
  display: block;
  margin-bottom: 0.5rem;
}
.single-nav-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--green);
  line-height: 1.3;
}
.single-nav-next { text-align: right; }

/* Single — CTA finale */
.single-cta {
  background: var(--green);
  padding: 3rem;
  margin-top: 3rem;
  text-align: center;
}
.single-cta-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F0D9B0;
  margin-bottom: 1rem;
}
.single-cta-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}
.single-cta-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Mobile — blog */
@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }
  .news-card--featured { grid-column: span 1; }
  .archive-filters { padding: 1.5rem 1.25rem; }
  .single-hero { height: 50vh; padding: 0 1.25rem 3rem; }
  .single-wrap { padding: 3rem 1.25rem; }
  .single-nav { grid-template-columns: 1fr; }
  .single-nav-next { text-align: left; }
  .single-cta { padding: 2rem 1.25rem; }
}

/* ---------------------------------------------------------------
   Logo nel footer
--------------------------------------------------------------- */
.footer-logo-img {
  margin-bottom: 1rem;
  display: block;
}
.footer-logo-img img {
  width: 48px;
  height: auto;
  display: block;
  filter: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.footer-logo-img img:hover {
  opacity: 1;
}

/* ---------------------------------------------------------------
   Gallery preview homepage — layout sfalsato 5 foto
--------------------------------------------------------------- */
.apt-preview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 3px;
  margin-bottom: 3px;
}

/* Foto 1: grande, occupa 2 righe a sinistra */
.apt-preview-item--1 { grid-column: 1; grid-row: 1 / 3; }

/* Foto 2 e 3: colonna destra, prima riga */
.apt-preview-item--2 { grid-column: 2; grid-row: 1; }
.apt-preview-item--3 { grid-column: 3; grid-row: 1; }

/* Foto 4 e 5: colonna destra, seconda riga */
.apt-preview-item--4 { grid-column: 2; grid-row: 2; }
.apt-preview-item--5 { grid-column: 3; grid-row: 2; }

/* Stili comuni */
.apt-preview-item {
  overflow: hidden;
  position: relative;
}
.apt-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.92) saturate(0.95);
  display: block;
}
.apt-preview-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}

/* Overlay hover */
.apt-preview-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45,74,42,0);
  transition: background 0.4s ease;
  pointer-events: none;
}
.apt-preview-item:hover::after {
  background: rgba(45,74,42,0.15);
}

/* CTA sotto la gallery */
.apt-preview-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0 0;
}
.apt-preview-count {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

/* Mobile */
@media (max-width: 768px) {
  .apt-preview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px 160px;
  }
  .apt-preview-item--1 { grid-column: 1 / 3; grid-row: 1; }
  .apt-preview-item--2 { grid-column: 1; grid-row: 2; }
  .apt-preview-item--3 { grid-column: 2; grid-row: 2; }
  .apt-preview-item--4 { grid-column: 1; grid-row: 3; }
  .apt-preview-item--5 { grid-column: 2; grid-row: 3; }
  .apt-preview-cta { padding: 1rem 0 0; }
}

@media (max-width: 600px) {
  .apt-preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
    column-gap: 0;
    gap: 3px;
  }
  .apt-preview-item--1,
  .apt-preview-item--2,
  .apt-preview-item--3,
  .apt-preview-item--4,
  .apt-preview-item--5 {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---------------------------------------------------------------
   Lightbox appartamento — nativo vanilla JS
--------------------------------------------------------------- */
.apt-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14,14,12,0.94);
  align-items: center;
  justify-content: center;
}
.apt-lb.is-open { display: flex; }

.apt-lb__img-wrap {
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apt-lb__img-wrap img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.apt-lb__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.apt-lb__close:hover { opacity: 1; }

.apt-lb__prev,
.apt-lb__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 56px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0 20px;
  font-weight: 300;
}
.apt-lb__prev:hover,
.apt-lb__next:hover { opacity: 1; }
.apt-lb__prev { left: 16px; }
.apt-lb__next { right: 16px; }

.apt-lb__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(244,240,232,0.85);
}

@media (max-width: 480px) {
  .apt-lb__prev { left: 4px; font-size: 40px; }
  .apt-lb__next { right: 4px; font-size: 40px; }
  .apt-lb__close { top: 16px; right: 16px; }
}

.cycling-hero-img,
.cycling-left .img-reveal,
.cycling-left .reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ---------------------------------------------------------------
   Pagina Prenota — hero verde + form CF7 minimal
--------------------------------------------------------------- */
.prenota-page { background: var(--ivory); }

.prenota-hero { background: var(--green); padding: 80px 48px 64px; }
.prenota-hero-inner { max-width: 860px; margin: 0 auto; }

.prenota-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #F0D9B0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.prenota-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--sand);
}

.prenota-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
  margin: 0 0 20px;
}
.prenota-title em { font-style: italic; color: var(--sand); }

.prenota-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(244,240,232,0.95);
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
}
.prenota-subtitle a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 0.5px solid var(--sand);
}

.prenota-form-section { max-width: 860px; margin: 0 auto; padding: 64px 48px 80px; }

/* Grid form CF7 */
.prenota-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.prenota-field { display: flex; flex-direction: column; gap: 10px; }
.prenota-field--full { grid-column: 1 / -1; }

.prenota-field label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #8B6914;
  text-transform: uppercase;
}

.prenota-field input[type="text"],
.prenota-field input[type="email"],
.prenota-field input[type="tel"],
.prenota-field input[type="number"],
.prenota-field input[type="date"],
.prenota-field select,
.prenota-field textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(196,171,135,0.5);
  padding: 10px 0;
  outline: none;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.prenota-field input:focus,
.prenota-field select:focus,
.prenota-field textarea:focus { border-bottom-color: var(--green); }
.prenota-field textarea { resize: vertical; min-height: 90px; }

.prenota-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.prenota-date-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8B6914;
  display: block;
  margin-bottom: 6px;
}

/* CF7 — restyling completo */
.wpcf7-form { width: 100%; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(14,14,12,0.2);
  border-radius: 0;
  padding: 14px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s ease;
  display: block;
  margin-bottom: 1.5rem;
  box-shadow: none;
  -webkit-appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-bottom-color: var(--green);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(14,14,12,0.35);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form .wpcf7-submit {
  margin-top: 2rem;
  background: var(--green);
  color: var(--ivory);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
}
.wpcf7-form .wpcf7-submit:hover { opacity: 0.82; }

.cf7-privacy-consent {
  display: block;
  font-size: 0.8rem;
  color: var(--sand-text);
  margin-bottom: 1rem;
}
.cf7-privacy-consent a {
  color: var(--sand-text);
  text-decoration: underline;
}

.wpcf7-form input,
.wpcf7-form textarea {
  -webkit-appearance: none;
  background-clip: padding-box;
}

.wpcf7-not-valid {
  border-bottom-color: #c0392b !important;
}
.wpcf7-not-valid-tip {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: -1rem;
  margin-bottom: 1rem;
  display: block;
}

.wpcf7-response-output {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  margin-top: 20px !important;
  padding: 12px 16px !important;
  border: 0.5px solid var(--sand) !important;
  border-radius: 0 !important;
}

.prenota-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(196,171,135,0.3);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sand);
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .prenota-hero { padding: 48px 24px 40px; }
  .prenota-title { font-size: 38px; }
  .prenota-form-section { padding: 40px 24px 60px; }
  .prenota-form-grid { grid-template-columns: 1fr; }
  .prenota-date-row { grid-template-columns: 1fr; gap: 16px; }
}
