/* ===================================================
   SITO PUBBLICO — RIFUGIO ALPINO
   Design System completo: variabili · reset · layout
   · navigazione · hero · bottoni · sezioni · cards
   · form multi-step · gallery · info · FAQ · toast
   · footer · responsive · animazioni
   =================================================== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ===== VARIABILI ===== */
:root {
  /* Colori */
  --color-stone:       #2C2A26;
  --color-stone-mid:   #4A4640;
  --color-stone-light: #8A847A;
  --color-cream:       #F7F4EF;
  --color-cream-warm:  #EDE9E1;
  --color-alpine:      #2D6A4F;
  --color-alpine-light:#52B788;
  --color-sky:         #4A7FB5;
  --color-rock:        #C4B5A0;
  --color-white:       #FFFFFF;
  --color-danger:      #C0392B;

  /* Tipografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spaziatura — sistema 8px */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  24px;
  --s6:  32px;
  --s7:  48px;
  --s8:  64px;
  --s9:  96px;
  --s10: 128px;

  /* Colori — varianti RGB (per rgba() con opacita' variabile) */
  --color-stone-rgb:  44, 42, 38;
  --color-alpine-rgb: 45, 106, 79;
  --color-sky-rgb:    74, 127, 181;
  --color-rock-rgb:   196, 181, 160;
  --color-white-rgb:  255, 255, 255;

  /* Border-radius — scala costruita sui valori realmente in uso nel file */
  --r-xs:     2px;
  --r-sm:     6px;
  --r-md:     8px;
  --r-ml:     9px;   /* valore isolato (rifugio-contact-icon), non arrotondare a --r-md */
  --r-lg:     10px;
  --r-xl:     12px;
  --r-2xl:    14px;
  --r-3xl:    16px;
  --r-4xl:    20px;
  --r-circle: 50%;     /* cerchio su elementi quadrati (badge dot, icona successo, spinner, fab mobile) */
  --r-pill:   100px;   /* pillola — usata su info-pill/hero-pill e acv2-badge */
  --r-full:   9999px;  /* pillola — usata su room-card-badge, fab, service-tag */

  /* Ombre — scala derivata dalle box-shadow realmente presenti nel file */
  --sh-xs:   0 1px 6px rgba(var(--color-stone-rgb), 0.05);
  --sh-sm:   0 2px 8px rgba(var(--color-stone-rgb), 0.06);
  --sh-md:   0 2px 12px rgba(var(--color-stone-rgb), 0.05);
  --sh-lg:   0 6px 20px rgba(var(--color-stone-rgb), 0.08);
  --sh-xl:   0 8px 28px rgba(var(--color-stone-rgb), 0.10);
  --sh-2xl:  0 8px 32px rgba(var(--color-stone-rgb), 0.12);
  --sh-3xl:  0 10px 36px rgba(var(--color-stone-rgb), 0.12);

  --sh-dark-sm: 0 4px 20px rgba(0, 0, 0, 0.18);  /* toast */
  --sh-dark-md: 0 8px 24px rgba(0, 0, 0, 0.08);  /* menu mobile */
  --sh-dark-lg: 0 8px 40px rgba(0, 0, 0, 0.08);  /* request-form-wrapper */

  --sh-sky-sm: 0 2px 8px rgba(var(--color-sky-rgb), 0.22);   /* fab demo gestionale */
  --sh-sky-md: 0 6px 18px rgba(var(--color-sky-rgb), 0.40);  /* fab demo gestionale:hover */

  --sh-alpine: 0 4px 16px rgba(var(--color-alpine-rgb), 0.35); /* btn-primary:hover */

  --sh-focus-ring: 0 0 0 3px rgba(var(--color-alpine-rgb), 0.12); /* focus input/select/textarea */
}

/* ===== RESET E BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-stone);
  background: var(--color-cream);
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

::selection {
  background: var(--color-alpine);
  color: var(--color-white);
}

/* ===== NAVIGAZIONE ===== */
.pub-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(var(--color-white-rgb), 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--color-rock-rgb), 0.30);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.pub-nav.scrolled {
  background: rgba(var(--color-white-rgb), 0.97);
  border-bottom-color: rgba(var(--color-rock-rgb), 0.50);
}

.pub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s4) var(--s6);
  gap: var(--s5);
}

.pub-nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-stone);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: var(--s6);
  list-style: none;
}

.pub-nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-stone-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pub-nav-links a:hover {
  color: var(--color-alpine);
}

.pub-nav-cta {
  background: var(--color-alpine);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pub-nav-cta:hover {
  background: var(--color-alpine-light);
  transform: translateY(-1px);
}

/* Link al sito del gestionale (rifugio.online) — wordmark con i colori del logo */
.pub-nav-links a.pub-nav-site {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;                 /* "rifugio" — near-black del logo */
  transition: opacity 0.2s ease;
}

.pub-nav-links a.pub-nav-site .pub-nav-site-tld {
  color: #0EA5A0;                 /* ".online" — verde acqua del logo */
}

.pub-nav-links a.pub-nav-site:hover {
  color: #0F172A;
  opacity: 0.7;
}

/* Desktop stretto: comprime le spaziature per far stare tutte le voci */
@media (max-width: 1140px) and (min-width: 941px) {
  .pub-nav-inner {
    gap: var(--s3);
  }
  .pub-nav-links {
    gap: 13px;
  }
  .pub-nav-links a {
    font-size: 13.5px;
  }
  .pub-nav-logo {
    font-size: 17px;
  }
  .pub-nav-cta {
    padding: 8px 14px;
    font-size: 13.5px;
  }
}

/* Hamburger mobile */
.pub-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--s2);
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.pub-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-stone);
  border-radius: var(--r-xs);
  transition: all 0.25s ease;
}

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

/* ===== HERO ===== */
.pub-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.50) 100%),
    linear-gradient(160deg, #0a2b19 0%, #14532d 45%, #2d6a4f 80%, #4a8c5c 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Quando JS imposta un'immagine, questa viene sovrascritta via style attribute */
.pub-hero[style*="background-image"] {
  /* L'overlay gradient viene aggiunto via JS insieme all'immagine */
}

.pub-hero-content {
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  padding: var(--s6);
  position: relative;
  z-index: 1;
  padding-top: calc(80px + var(--s6)); /* compensazione nav fissa */
}

.pub-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(var(--color-white-rgb), 0.70);
  margin-bottom: var(--s4);
  display: block;
}

.pub-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s5);
  text-shadow: 0 2px 24px rgba(0,0,0,0.30);
}

.pub-hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(var(--color-white-rgb), 0.85);
  max-width: 500px;
  margin: 0 auto var(--s7);
  line-height: 1.6;
}

.pub-hero-actions {
  display: flex;
  gap: var(--s4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BOTTONI ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  background: var(--color-alpine);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-alpine-light);
  transform: translateY(-1px);
  box-shadow: var(--sh-alpine);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  background: transparent;
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: 2px solid rgba(var(--color-white-rgb), 0.60);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(var(--color-white-rgb), 0.10);
}

/* Per sfondi chiari */
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  background: var(--color-alpine);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary-dark:hover {
  background: var(--color-alpine-light);
  transform: translateY(-1px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  background: transparent;
  color: var(--color-alpine);
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: 2px solid var(--color-alpine);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-outline-dark:hover {
  background: var(--color-alpine);
  color: var(--color-white);
}

/* ===== LAYOUT SEZIONI ===== */
.pub-section {
  padding: var(--s9) var(--s6);
}

.pub-section-alt {
  padding: var(--s9) var(--s6);
  background: var(--color-cream-warm);
}

.pub-container {
  max-width: 1100px;
  margin: 0 auto;
}

.pub-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-alpine);
  margin-bottom: var(--s3);
  display: block;
}

.pub-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--color-stone);
  margin-bottom: var(--s5);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pub-section-body {
  font-size: 17px;
  color: var(--color-stone-mid);
  line-height: 1.75;
  max-width: 600px;
}

/* ===== SEZIONE IL RIFUGIO ===== */

.rifugio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s10);
  align-items: center;
  margin-top: var(--s7);
}

.rifugio-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rifugio-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--color-stone);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: var(--s3) 0 var(--s6);
}

.rifugio-body {
  font-size: 17px;
  color: var(--color-stone-mid);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: var(--s7);
}

.rifugio-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.rifugio-contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-stone-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rifugio-contact-link:hover {
  color: var(--color-alpine);
}

.rifugio-contact-icon {
  width: 34px;
  height: 34px;
  background: rgba(var(--color-alpine-rgb), 0.10);
  border-radius: var(--r-ml);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-alpine);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.rifugio-contact-link:hover .rifugio-contact-icon {
  background: rgba(var(--color-alpine-rgb), 0.18);
}

/* Pannello destro */
.rifugio-panel {
  background: var(--color-cream-warm);
  border-radius: var(--r-4xl);
  padding: var(--s7);
  border: 1px solid rgba(var(--color-rock-rgb), 0.35);
}

.rifugio-stats {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding-bottom: var(--s6);
  margin-bottom: var(--s6);
  border-bottom: 1px solid rgba(var(--color-rock-rgb), 0.40);
}

.rifugio-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rifugio-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-alpine);
  line-height: 1;
  letter-spacing: -0.02em;
}

.rifugio-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-stone-light);
}

.rifugio-stat-sep {
  width: 1px;
  height: 38px;
  background: rgba(var(--color-rock-rgb), 0.55);
  flex-shrink: 0;
}

.rifugio-services-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-stone-light);
  margin-bottom: var(--s4);
}

.rifugio-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}

.rifugio-service {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-stone-mid);
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: 10px 13px;
  border: 1px solid rgba(var(--color-rock-rgb), 0.22);
  white-space: nowrap;
}

.rifugio-service svg {
  color: var(--color-alpine);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .rifugio-grid {
    grid-template-columns: 1fr;
    gap: var(--s7);
  }
  .rifugio-body {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .rifugio-services {
    grid-template-columns: 1fr;
  }
  .rifugio-panel {
    padding: var(--s5);
  }
}

/* ===== GRIGLIA CAMERE & ROOM CARD ===== */

/* Responsive grid — 4 → 3 → 2 → 1 colonne */
.availability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: var(--s6);
}

@media (max-width: 1024px) {
  .availability-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .availability-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .availability-grid {
    grid-template-columns: 1fr;
  }
}

/* Card — flex column, altezza uniforme tramite align-items:stretch sulla griglia */
.room-card {
  background: var(--color-white);
  border-radius: var(--r-2xl);
  border: 1px solid rgba(var(--color-rock-rgb), 0.35);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform  200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover {
  box-shadow: var(--sh-3xl);
  transform: translateY(-2px);
}

/* ── Media: aspect-ratio fisso 4/3, mai collassato ── */
.room-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}

.room-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder grigio — dimensioni identiche al blocco immagine */
.room-card-placeholder {
  position: absolute;
  inset: 0;
  background: #e8e6e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-card-placeholder svg {
  opacity: 0.22;
  color: var(--color-stone-mid);
}

/* ── Body ── */
.room-card-body {
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.room-card-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-stone);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.room-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-stone-light);
}

.room-card-meta svg {
  flex-shrink: 0;
}

/* Badge stato — pill a larghezza variabile ma senza wrapping */
.room-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  width: fit-content;
}

/* Punto colorato prima del testo */
.room-card-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--r-circle);
  background: currentColor;
  flex-shrink: 0;
}

.room-badge-available {
  background: #E8F5E9;
  color: #2D6A4F;
}

.room-badge-full {
  background: #FFEBEE;
  color: #C0392B;
}

.room-badge-request {
  background: #FEF3C7;
  color: #92400E;
}

/* Retrocompatibilità classi legacy */
.status-available { background: #E8F5E9; color: #2D6A4F; }
.status-occupied  { background: #FFEBEE; color: #C0392B; }

/* ── Footer sempre in fondo, separato dal body ── */
.room-card-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(var(--color-rock-rgb), 0.28);
  flex-shrink: 0;
}

/* Bottone full-width, altezza fissa 44px */
.room-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1.5px solid var(--color-alpine);
  border-radius: var(--r-md);
  color: var(--color-alpine);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color      180ms ease;
}

.room-card-btn:hover:not(:disabled) {
  background: var(--color-alpine);
  color: var(--color-white);
}

.room-card-btn:disabled {
  border-color: var(--color-rock);
  color: var(--color-stone-light);
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== FORM RICHIESTA ===== */
.request-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--r-3xl);
  padding: var(--s8);
  box-shadow: var(--sh-dark-lg);
}

/* Progress bar multi-step */
.form-progress {
  display: flex;
  gap: var(--s2);
  margin-bottom: var(--s7);
}

.form-progress-step {
  flex: 1;
  height: 3px;
  background: var(--color-rock);
  border-radius: var(--r-xs);
  opacity: 0.30;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.form-progress-step.done {
  background: var(--color-alpine);
  opacity: 1;
}

.form-progress-step.active {
  background: var(--color-alpine);
  opacity: 0.50;
}

/* Step (solo quello .active è visibile) */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-stone);
  margin-bottom: var(--s5);
  line-height: 1.25;
}

.form-group {
  margin-bottom: var(--s5);
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-stone-mid);
  display: block;
  margin-bottom: var(--s2);
  letter-spacing: 0.3px;
}

.form-label .req {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-rock);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-stone);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-stone-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-alpine);
  box-shadow: var(--sh-focus-ring);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A847A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  padding-right: 42px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.form-hint {
  font-size: 12px;
  color: var(--color-stone-light);
  margin-top: var(--s2);
  line-height: 1.5;
}

.form-error-msg {
  color: var(--color-danger);
  font-size: 12px;
  margin-top: var(--s2);
  display: none;
  line-height: 1.4;
}

.form-error-msg.visible {
  display: block;
}

/* Navigazione form multi-step */
.form-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid rgba(var(--color-rock-rgb), 0.30);
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: var(--color-alpine);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-left: auto;
}

.btn-next:hover {
  background: var(--color-alpine-light);
  transform: translateY(-1px);
}

.btn-prev {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: transparent;
  color: var(--color-stone-mid);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid var(--color-rock);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prev:hover {
  border-color: var(--color-stone-mid);
  color: var(--color-stone);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: var(--color-alpine);
  color: var(--color-white);
  padding: 14px 36px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  width: 100%;
  justify-content: center;
  margin-top: var(--s4);
}

.btn-submit:hover {
  background: var(--color-alpine-light);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== STEP INDICATOR E RIASSUNTO ===== */
.step-summary {
  background: var(--color-cream-warm);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s5);
  font-size: 14px;
  color: var(--color-stone-mid);
  line-height: 1.65;
}

.step-summary strong {
  color: var(--color-stone);
  font-weight: 600;
}

.step-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
}

.step-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-summary-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-stone-light);
}

/* Stato invio completato */
.form-success {
  text-align: center;
  padding: var(--s8) var(--s5);
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: #E8F5E9;
  border-radius: var(--r-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s5);
  color: var(--color-alpine);
}

.form-success h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-stone);
  margin-bottom: var(--s3);
}

.form-success p {
  color: var(--color-stone-mid);
  margin-bottom: var(--s5);
}

/* ===== GALLERIA ===== */
.gallery-grid {
  display: grid;
  grid-template-areas:
    "a a b"
    "a a c";
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s6);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--color-cream-warm);
}

.gallery-item:nth-child(1) { grid-area: a; aspect-ratio: unset; }
.gallery-item:nth-child(2) { grid-area: b; }
.gallery-item:nth-child(3) { grid-area: c; }
.gallery-item:nth-child(n+4) {
  grid-area: unset;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  min-height: 200px;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Gallery semplice (lista di URL, senza layout editoriale) */
.gallery-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s3);
  margin-top: var(--s6);
}

.gallery-grid-simple .gallery-item {
  aspect-ratio: 4 / 3;
}

/* ===== SEZIONE INFO RIFUGIO ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
  margin-top: var(--s6);
}

.info-block-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-stone);
  margin-bottom: var(--s4);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 16px;
  color: var(--color-stone-mid);
  line-height: 1.5;
}

.info-icon {
  width: 20px;
  height: 20px;
  color: var(--color-alpine);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Pill info rapide (hero) */
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
  justify-content: center;
}

.info-pill,
.hero-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(var(--color-white-rgb), 0.88);
  background: rgba(var(--color-white-rgb), 0.14);
  border: 1px solid rgba(var(--color-white-rgb), 0.20);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 720px;
  margin: var(--s6) auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(var(--color-rock-rgb), 0.20);
  padding: var(--s5) 0;
}

.faq-item:first-child {
  border-top: 1px solid rgba(var(--color-rock-rgb), 0.20);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-stone);
  user-select: none;
  gap: var(--s4);
  list-style: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  font-family: var(--font-body);
  line-height: 1.4;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-alpine);
  transition: transform 0.30s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 15px;
  color: var(--color-stone-mid);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: var(--s4) 0 var(--s3);
}

/* Per <details> nativo come alternativa */
details.faq-item[open] .icon {
  transform: rotate(45deg);
}

details.faq-item > summary {
  list-style: none;
}

/* ===== TOAST NOTIFICA ===== */
.pub-toast {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  background: var(--color-stone);
  color: var(--color-white);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  pointer-events: none;
  min-width: 220px;
  max-width: 320px;
  box-shadow: var(--sh-dark-sm);
}

.pub-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.pub-toast.success {
  background: var(--color-alpine);
}

.pub-toast.error {
  background: var(--color-danger);
}

/* ===== FOOTER ===== */
.pub-footer {
  background: var(--color-stone);
  color: rgba(var(--color-white-rgb), 0.60);
  padding: var(--s8) var(--s6);
}

.pub-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s6);
  margin-bottom: var(--s6);
}

.pub-footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  display: block;
  margin-bottom: var(--s3);
  letter-spacing: -0.02em;
}

.pub-footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(var(--color-white-rgb), 0.55);
}

.footer-contacts {
  margin-top: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.pub-footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(var(--color-white-rgb), 0.40);
  margin-bottom: var(--s4);
  font-family: var(--font-mono);
}

.pub-footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  list-style: none;
}

.pub-footer-links a {
  color: rgba(var(--color-white-rgb), 0.60);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.pub-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: var(--s5);
  border-top: 1px solid rgba(var(--color-white-rgb), 0.10);
  font-size: 13px;
  color: rgba(var(--color-white-rgb), 0.30);
}

.pub-footer-by {
  max-width: 1100px;
  margin: var(--s5) auto 0;
  padding-top: var(--s4);
  border-top: 1px solid rgba(var(--color-white-rgb), 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pub-footer-by-label {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--color-white-rgb), 0.25);
}

.pub-footer-by-link {
  display: flex;
  align-items: center;
  line-height: 0;
  opacity: 0.50;
  transition: opacity 0.25s ease;
}

.pub-footer-by-link:hover {
  opacity: 1;
}

/* ===== SEPARATORI E WAVE ===== */
.section-wave {
  line-height: 0;
  overflow: hidden;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== META PILL E CONTATTI ===== */
.contact-link,
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--color-alpine-light);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover,
.footer-contact-link:hover {
  color: var(--color-white);
}

/* ===== FAB "DEMO GESTIONALE" — solo hero index del sito pubblico ===== */
.pub-gestionale-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-sky);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: var(--r-full);
  box-shadow: var(--sh-sky-sm);
  text-decoration: none;
  letter-spacing: .01em;
  opacity: 0.72;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
  white-space: nowrap;
}

.pub-gestionale-fab:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--sh-sky-md);
}

.pub-gestionale-fab svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .pub-gestionale-fab .pub-fab-label { display: none; }
  .pub-gestionale-fab { padding: 11px; border-radius: var(--r-circle); }
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.text-muted   { color: var(--color-stone-light); }

.pub-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(var(--color-white-rgb), 0.35);
  border-top-color: currentColor;
  border-radius: var(--r-circle);
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE — NAV mobile (max 940px) ===== */
@media (max-width: 940px) {

  .pub-nav-links {
    display: none;
  }

  .pub-nav-toggle {
    display: flex;
  }

  /* Menu mobile espanso */
  .pub-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(var(--color-white-rgb), 0.97);
    padding: var(--s5) var(--s6);
    border-top: 1px solid rgba(var(--color-rock-rgb), 0.30);
    border-bottom: 1px solid rgba(var(--color-rock-rgb), 0.30);
    gap: var(--s4);
    box-shadow: var(--sh-dark-md);
  }

  .pub-nav-inner {
    padding: var(--s4);
    flex-wrap: nowrap;
  }

  .pub-nav-cta {
    display: none;
  }

  /* rifugio.online nel menu mobile: wordmark un po' più grande, staccato */
  .pub-nav-links .pub-nav-site-li {
    margin-top: var(--s2);
    padding-top: var(--s4);
    border-top: 1px solid rgba(var(--color-rock-rgb), 0.30);
  }

  .pub-nav-links a.pub-nav-site {
    font-size: 17px;
  }
}

/* ===== RESPONSIVE — max 768px ===== */
@media (max-width: 768px) {

  /* Hero */
  .pub-hero-title {
    font-size: clamp(32px, 10vw, 52px);
  }

  .pub-hero-subtitle {
    font-size: 16px;
  }

  .pub-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Sezioni */
  .pub-section,
  .pub-section-alt {
    padding: var(--s7) var(--s4);
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .request-form-wrapper {
    padding: var(--s6) var(--s4);
    border-radius: var(--r-xl);
  }

  /* Info */
  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-areas: unset;
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    grid-area: unset;
    aspect-ratio: 4 / 3;
  }

  /* Footer */
  .pub-footer-inner {
    flex-direction: column;
    gap: var(--s5);
  }

  /* Toast */
  .pub-toast {
    bottom: var(--s4);
    right: var(--s4);
    left: var(--s4);
    max-width: none;
  }
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in-delay-1 {
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.animate-in-delay-2 {
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.animate-in-delay-3 {
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .animate-in-delay-1,
  .animate-in-delay-2,
  .animate-in-delay-3 {
    animation: none;
    opacity: 1;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===== NAV DROPDOWN + ACTIVE STATE (nav.js) ===== */

/* Bottone dropdown: aspetto identico ai link nav */
.pub-nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-stone-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
  line-height: inherit;
}

.pub-nav-link-btn:hover {
  color: var(--color-alpine);
}

.nav-dropdown-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item-dropdown.dropdown-open .nav-dropdown-chevron,
.nav-item-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown container */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-white);
  border: 1px solid rgba(var(--color-rock-rgb), 0.30);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2xl);
  min-width: 200px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
  list-style: none;
}

/* Desktop hover (CSS puro) */
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mobile/keyboard: classe .dropdown-open aggiunta da JS */
.nav-item-dropdown.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-stone-mid);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--color-alpine);
  background: rgba(var(--color-alpine-rgb), 0.06);
}

/* Active state su link e bottone dropdown */
.nav-link--active,
.pub-nav-links a.nav-link--active {
  color: var(--color-alpine) !important;
  font-weight: 600 !important;
}

.nav-dropdown a.nav-link--active {
  color: var(--color-alpine) !important;
  font-weight: 600 !important;
  background: rgba(var(--color-alpine-rgb), 0.06);
}

/* Stili per le pagine interne (cucina, territorio, contatti, attivita/) */
.pub-page-hero {
  min-height: 42vh;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.48) 100%),
    linear-gradient(155deg, #0a2b19 0%, #14532d 50%, #2d6a4f 100%);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
  padding: calc(80px + var(--s8)) var(--s6) var(--s8);
}

/* Banner immagine per pagine interne */
.pub-page-hero--cucina {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.52) 100%),
    url('../../img/banner/banner-cucina.jpg');
}

.pub-page-hero--camere {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.55) 100%),
    url('../../img/hero.jpg');
}

.pub-page-hero--territorio {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.50) 100%),
    url('../../img/banner/banner-territorio.jpg');
}

.pub-page-hero--contatti {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.52) 100%),
    url('../../img/banner/banner.contatti.jpg');
}

.pub-page-hero--attivita {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.48) 100%),
    url('../../img/banner/banner-attivita.jpg');
}

.pub-page-hero--recensioni {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.56) 100%),
    url('../../img/hero.jpg');
}

/* ── Cucina: griglia foto editoriale ── */
.cucina-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-top: var(--s9);
}

.cucina-photo-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.cucina-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
  display: block;
}

.cucina-photo-item figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone-light);
}

/* ── Territorio: galleria fotografica editoriale ── */
.territorio-gallery {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--s4);
  align-items: stretch;
}

.territorio-gallery-main {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.territorio-gallery-main img {
  width: 100%;
  flex: 1;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--r-2xl);
  display: block;
}

.territorio-gallery-side {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.territorio-gallery-side figure {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.territorio-gallery-side img {
  width: 100%;
  flex: 1;
  min-height: 140px;
  object-fit: cover;
  border-radius: var(--r-2xl);
  display: block;
}

.territorio-gallery figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone-light);
}

/* ── Camere: vetrina editoriale ── */
.rooms-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--s9);
  margin-top: var(--s8);
}

.room-showcase-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  align-items: center;
}

.room-showcase-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-3xl);
}

.room-showcase-body {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.room-showcase-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-alpine);
}

.room-showcase-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-stone);
  line-height: 1.2;
}

.room-showcase-desc {
  color: var(--color-stone-mid);
  line-height: 1.8;
  font-size: 16px;
}

.room-showcase-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin: var(--s1) 0 0;
  padding: 0;
}

.room-showcase-amenities li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-stone-mid);
}

.room-showcase-amenities svg {
  color: var(--color-alpine);
  flex-shrink: 0;
}

.room-showcase-cta {
  align-self: flex-start;
  margin-top: var(--s2);
}

@media (min-width: 901px) {
  .room-showcase-item {
    grid-template-columns: 1fr 1fr;
    gap: var(--s8);
  }

  .room-showcase-item:nth-child(even) .room-showcase-media {
    order: 2;
  }
}

.pub-page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(var(--color-white-rgb), 0.65);
  margin-bottom: var(--s3);
  display: block;
}

.pub-page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--s4);
}

.pub-page-hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(var(--color-white-rgb), 0.82);
  max-width: 560px;
  margin: 0 auto;
}

/* Breadcrumb */
.pub-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-stone-light);
  letter-spacing: 0.02em;
  margin-bottom: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}

.pub-breadcrumb a {
  color: var(--color-stone-light);
  transition: color 0.15s ease;
}

.pub-breadcrumb a:hover { color: var(--color-alpine); }

.pub-breadcrumb-sep {
  color: var(--color-rock);
}

/* Card stagioni (per territorio.html) */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s5);
  margin-top: var(--s6);
}

.season-card {
  background: var(--color-cream-warm);
  border-radius: var(--r-xl);
  padding: var(--s5);
  border: 1px solid rgba(var(--color-rock-rgb), 0.30);
}

.season-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-stone);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Card contatto / come arrivare */
.arrive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s5);
  margin-top: var(--s6);
}

.arrive-card {
  background: var(--color-white);
  border-radius: var(--r-xl);
  padding: var(--s6);
  border: 1px solid rgba(var(--color-rock-rgb), 0.25);
  box-shadow: var(--sh-md);
}

.arrive-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--color-alpine-rgb), 0.10);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-alpine);
  margin-bottom: var(--s4);
}

.arrive-card-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-stone);
  margin-bottom: var(--s3);
}

/* ===== COME ARRIVARE V2 — Itinerari ===== */

.arrive-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s6);
  align-items: stretch;
}

.acv2 {
  background: var(--color-white);
  border-radius: var(--r-3xl);
  padding: var(--s5) var(--s6);
  border: 1px solid rgba(var(--color-rock-rgb), .18);
  box-shadow: var(--sh-xs);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.acv2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--acv2-color, var(--color-rock));
}

.acv2:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.acv2--hiking {
  --acv2-color: var(--color-alpine);
}

.acv2--car {
  --acv2-color: var(--color-rock);
}

.acv2--bus {
  --acv2-color: var(--color-sky);
}

.acv2-head {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.acv2-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acv2--hiking .acv2-icon {
  background: rgba(var(--color-alpine-rgb), .12);
  color: var(--color-alpine);
}

.acv2--car .acv2-icon {
  background: rgba(var(--color-rock-rgb), .28);
  color: var(--color-stone-mid);
}

.acv2--bus .acv2-icon {
  background: rgba(var(--color-sky-rgb), .12);
  color: var(--color-sky);
}

.acv2-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-alpine);
  margin-bottom: 3px;
}

.acv2-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-stone);
  line-height: 1.2;
}

.acv2-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--color-alpine);
  background: rgba(var(--color-alpine-rgb), .10);
  border: 1px solid rgba(var(--color-alpine-rgb), .16);
  width: fit-content;
}

.acv2-body {
  font-size: 14px;
  color: var(--color-stone-mid);
  line-height: 1.8;
  flex: 1;
}

.acv2-specs {
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
  padding-top: var(--s4);
  border-top: 1px solid rgba(var(--color-rock-rgb), .22);
}

.acv2-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acv2-spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .055em;
  color: var(--color-stone-light);
}

.acv2-spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-stone);
  letter-spacing: -.01em;
}

@media (max-width: 960px) {
  .arrive-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .acv2--hiking {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .arrive-grid-v2 {
    grid-template-columns: 1fr;
  }

  .acv2--hiking {
    grid-column: auto;
  }

  .acv2 {
    padding: var(--s5);
  }
}

/* Map embed */
.map-placeholder {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid rgba(var(--color-rock-rgb), 0.30);
  background: var(--color-cream-warm);
  margin-top: var(--s6);
}

.map-iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: 0;
}

.map-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--s3) var(--s4);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-alpine);
  text-decoration: none;
}
.map-open-link:hover {
  text-decoration: underline;
}

/* Grid attività (per attivita/index.html) */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s5);
  margin-top: var(--s6);
}

.activity-card {
  background: var(--color-white);
  border-radius: var(--r-xl);
  padding: var(--s6);
  border: 1px solid rgba(var(--color-rock-rgb), 0.25);
  box-shadow: var(--sh-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-xl);
}

.activity-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(var(--color-alpine-rgb), 0.08);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.activity-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-stone);
}

.activity-card-desc {
  font-size: 14px;
  color: var(--color-stone-light);
  line-height: 1.55;
  flex: 1;
}

.activity-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-alpine);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.activity-card:hover .activity-card-link { gap: 8px; }

/* Chip difficoltà/stagione (pagine attività) */
.activity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.activity-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px 14px;
  border-radius: var(--r-4xl);
  font-size: 13px;
  font-weight: 500;
  background: var(--color-cream-warm);
  color: var(--color-stone-mid);
  border: 1px solid rgba(var(--color-rock-rgb), 0.40);
}

.activity-chip.chip-difficulty-low    { background: #D1FAE5; color: #065F46; border-color: transparent; }
.activity-chip.chip-difficulty-medium { background: #FEF3C7; color: #92400E; border-color: transparent; }
.activity-chip.chip-difficulty-high   { background: #FEE2E2; color: #991B1B; border-color: transparent; }
.activity-chip.chip-season            { background: rgba(var(--color-sky-rgb), 0.12); color: var(--color-sky); border-color: transparent; }

/* Mobile dropdown: accordion */
@media (max-width: 768px) {
  .nav-item-dropdown { position: static; }

  .nav-dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(var(--color-alpine-rgb), 0.05);
    padding: 0;
    margin: 0 0 var(--s2) var(--s4);
    max-height: 0;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    transition: max-height 0.3s ease;
  }

  .nav-item-dropdown.dropdown-open .nav-dropdown {
    max-height: 400px;
  }

  .nav-dropdown a {
    padding: 9px 16px;
    font-size: 15px;
  }

  .pub-page-hero {
    min-height: 36vh;
    padding-top: calc(72px + var(--s7));
  }

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

  .seasons-grid,
  .arrive-grid {
    grid-template-columns: 1fr;
  }

  .cucina-photo-grid {
    grid-template-columns: 1fr;
  }

  .territorio-gallery {
    grid-template-columns: 1fr;
  }

  /* Territorio: flora/fauna grid */
  .territorio-natura-grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  /* Mappa: altezza ridotta su mobile */
  .map-iframe {
    height: 260px;
  }

  /* Form filtro disponibilità */
  .availability-filter .btn-primary-dark {
    width: 100%;
  }

  /* CTA sections: padding laterale ridotto */
  .pub-section[style*="background: var(--color-alpine)"],
  .pub-section-alt[style*="background: var(--color-alpine)"] {
    padding-left: var(--s4) !important;
    padding-right: var(--s4) !important;
  }
}

/* ===== SERVICE TAG (cucina.html) ===== */
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  background: var(--color-cream-warm);
  color: var(--color-stone-mid);
  border: 1px solid rgba(var(--color-rock-rgb), 0.40);
}

/* ===== TERRITORIO: griglie zona & natura ===== */
.territorio-zona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}

/* Zona: la card info va sotto i paragrafi già da tablet */
@media (max-width: 900px) {
  .territorio-zona-grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

.territorio-natura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  margin-top: var(--s6);
}

/* Info card territorio: layout su mobile */
.territorio-info-card {
  background: var(--color-cream-warm);
  border-radius: var(--r-2xl);
  padding: var(--s6);
}

@media (max-width: 480px) {
  .territorio-info-card {
    padding: var(--s5);
  }

  /* Hero pagine interne: testo più compatto */
  .pub-page-hero-subtitle {
    font-size: 16px;
  }

  /* Richiesta form: wrapper più stretto */
  .request-form-wrapper {
    padding: var(--s5) var(--s4);
  }
}

/* ===================================================
   RICHIESTA — TRATTAMENTO, ESIGENZE SPECIALI, ANTEPRIMA PREZZO
   Blocchi aggiuntivi dello step 2 (trattamento) e dello step 3
   (esigenze speciali + anteprima prezzo da PricingCore.quote()).
   Usa esclusivamente le custom property definite in :root.
   =================================================== */

/* Titolo di sottosezione (es. "Trattamento", "Esigenze speciali") */
.form-subsection-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-stone);
  margin-bottom: var(--s3);
}

/* Esigenze speciali: gruppo di checkbox a pillola, stesso pattern
   input-nascosto + label degli option (.room-option) già in uso */
.special-needs {
  margin-bottom: var(--s5);
}

.special-needs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.special-needs-item {
  position: relative;
}

.special-needs-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.special-needs-item label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border: 1.5px solid var(--color-rock);
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--color-white);
  font-size: 14px;
  color: var(--color-stone-mid);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.special-needs-item label:hover {
  border-color: var(--color-alpine-light);
}

.special-needs-item input[type="checkbox"]:checked + label {
  border-color: var(--color-alpine);
  background: rgba(var(--color-alpine-rgb), 0.08);
  color: var(--color-stone);
}

.special-needs-item input[type="checkbox"]:focus-visible + label {
  outline: 2px solid var(--color-alpine);
  outline-offset: 2px;
}

/* Anteprima prezzo (estende .step-summary già esistente) */
.price-preview {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.price-preview-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.price-preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
}

.price-preview-row-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-preview-row-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-stone-light);
}

.price-preview-row-value {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.price-preview-row-strong {
  font-weight: 600;
  color: var(--color-stone);
}

/* Riga tassa di soggiorno: separata visivamente dal costo del soggiorno */
.price-preview-tax {
  padding-top: var(--s3);
  border-top: 1px dashed var(--color-rock);
}

.price-preview-tax-note {
  font-size: 12px;
  color: var(--color-stone-light);
  margin-top: var(--s1);
  line-height: 1.5;
}

.price-preview-total {
  padding-top: var(--s3);
  border-top: 1.5px solid var(--color-alpine);
}

.price-preview-total .price-preview-row-label,
.price-preview-total .price-preview-row-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-stone);
}

.price-preview-disclaimer {
  font-size: 12px;
  font-style: italic;
  color: var(--color-stone-light);
  line-height: 1.5;
}

/* Variante compatta usata nello stato di successo */
.price-preview-recap {
  gap: var(--s2);
}

/* ===================================================
   METEO — widget previsioni (Open-Meteo)
   Usato in: public/index.html  (sezione #meteo)
   Coerente con: .rifugio-panel / .rifugio-service / .info-list
   =================================================== */

.meteo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--s4);
  margin-top: var(--s6);
  align-items: stretch;
}

/* --- Pannello "adesso" --- */
.meteo-now {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-rock-rgb), 0.28);
  border-radius: var(--r-3xl);
  box-shadow: var(--sh-lg);
  padding: var(--s5) var(--s6);
  display: flex;
  flex-direction: column;
}

.meteo-now-head {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.meteo-now-icon {
  width: 46px;
  height: 46px;
  color: var(--color-alpine);
  flex-shrink: 0;
}
.meteo-now-icon svg { width: 100%; height: 100%; display: block; }

.meteo-now-temp {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-stone);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.meteo-now-cond {
  margin-top: var(--s3);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-stone);
}

.meteo-now-place {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-stone-light);
  margin-top: 2px;
}

.meteo-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s4);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid rgba(var(--color-rock-rgb), 0.30);
}

.meteo-metric { display: flex; flex-direction: column; gap: 3px; }

.meteo-metric-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-stone-light);
}
.meteo-metric-label svg { width: 12px; height: 12px; color: var(--color-alpine); flex-shrink: 0; }

.meteo-metric-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-stone-mid);
  font-variant-numeric: tabular-nums;
}

.meteo-sun {
  display: flex;
  gap: var(--s5);
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid rgba(var(--color-rock-rgb), 0.30);
}
.meteo-sun-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-stone-mid);
  font-variant-numeric: tabular-nums;
}
.meteo-sun-item svg { width: 14px; height: 14px; color: var(--color-alpine); flex-shrink: 0; }

/* --- Previsioni: lista compatta a righe --- */
.meteo-forecast {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-rock-rgb), 0.22);
  border-radius: var(--r-3xl);
  padding: var(--s2) var(--s5);
  display: flex;
  flex-direction: column;
}

.meteo-day {
  flex: 1 1 auto;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid rgba(var(--color-rock-rgb), 0.16);
}
.meteo-day:last-child { border-bottom: none; }

.meteo-day--today {
  background: rgba(var(--color-alpine-rgb), 0.045);
  border-radius: var(--r-sm);
}
.meteo-day--today .meteo-day-name { color: var(--color-alpine); font-weight: 600; }

.meteo-day-name {
  flex: 0 0 3em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-stone-mid);
}

.meteo-day-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--color-stone-mid);
}
.meteo-day-icon svg { width: 100%; height: 100%; display: block; }

.meteo-day-cond {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--color-stone-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meteo-day-temps {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.meteo-day-max { font-weight: 600; color: var(--color-stone); }
.meteo-day-sep { color: var(--color-stone-light); }
.meteo-day-min { color: var(--color-stone-mid); }

.meteo-day-pop {
  flex: 0 0 auto;
  min-width: 3em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-sky);
}
.meteo-day-pop svg { width: 10px; height: 10px; flex-shrink: 0; }

/* --- Nota / fonte --- */
.meteo-foot {
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--color-stone-light);
}
.meteo-foot a {
  color: var(--color-stone-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.meteo-foot a:hover { color: var(--color-alpine); }

/* --- Stato errore --- */
.meteo-error {
  grid-column: 1 / -1;
  background: var(--color-white);
  border: 1px solid rgba(var(--color-rock-rgb), 0.28);
  border-radius: var(--r-3xl);
  padding: var(--s6);
  text-align: center;
}
.meteo-error-icon { width: 28px; height: 28px; color: var(--color-stone-light); margin: 0 auto var(--s3); }
.meteo-error-icon svg { width: 100%; height: 100%; display: block; }
.meteo-error p { font-size: 15px; color: var(--color-stone-mid); margin-bottom: var(--s4); }
.meteo-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 10px 24px;
  border: 1.5px solid var(--color-alpine);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--color-alpine);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease;
}
.meteo-retry:hover { background: rgba(var(--color-alpine-rgb), 0.08); }
.meteo-retry:focus-visible,
.meteo-foot a:focus-visible {
  outline: 2px solid var(--color-alpine);
  outline-offset: 2px;
}

/* --- Skeleton (riserva spazio, evita layout shift) --- */
.meteo-sk {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
  border-color: transparent;
  box-shadow: none;
}
.meteo-sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--color-white-rgb), 0.55) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: meteo-shimmer 1.5s infinite;
}
@keyframes meteo-shimmer { to { transform: translateX(100%); } }

/* --- Comparsa --- */
.meteo-wrap.is-ready .meteo-now,
.meteo-wrap.is-ready .meteo-forecast {
  animation: meteo-fade 0.4s ease both;
}
.meteo-wrap.is-ready .meteo-forecast { animation-delay: 0.06s; }
@keyframes meteo-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- Responsive --- */
@media (max-width: 820px) {
  .meteo-wrap { grid-template-columns: 1fr; }
  .meteo-forecast { padding: var(--s3) var(--s5); }
  .meteo-day { flex: 0 0 auto; }
}
@media (max-width: 520px) {
  .meteo-now { padding: var(--s5); }
  .meteo-now-temp { font-size: 42px; }
  .meteo-now-icon { width: 42px; height: 42px; }
  .meteo-metrics { gap: var(--s3); }
  .meteo-sun { gap: var(--s4); }
  .meteo-forecast { padding: var(--s2) var(--s4); }
  .meteo-day-cond { display: none; }
  .meteo-day-name { flex-basis: 2.7em; }
  .meteo-day-pop { min-width: 2.6em; }
}

@media (prefers-reduced-motion: reduce) {
  .meteo-sk::after { animation: none; }
  .meteo-wrap.is-ready .meteo-now,
  .meteo-wrap.is-ready .meteo-forecast { animation: none; }
}


/* ===================================================
   RECENSIONI (recensioni.html)
   Schede-modello: volutamente vuote, "da compilare".
   =================================================== */

/* Nota redazionale sopra la griglia */
.reviews-note {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  max-width: 720px;
  margin: var(--s6) 0 var(--s8);
  padding: var(--s4) var(--s5);
  background: var(--color-cream-warm);
  border: 1px solid rgba(var(--color-rock-rgb), 0.45);
  border-left: 3px solid var(--color-alpine);
  border-radius: var(--r-lg);
}

.reviews-note-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-alpine);
}

.reviews-note p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-stone-mid);
}

.reviews-note strong {
  color: var(--color-stone);
  font-weight: 600;
}

/* Griglia: 3 → 2 → 1 colonne */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

/* Scheda recensione — stato "vuoto / template" */
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s6) var(--s5) var(--s5);
  background: var(--color-white);
  border: 1px dashed rgba(var(--color-alpine-rgb), 0.40);
  border-radius: var(--r-3xl);
  box-shadow: var(--sh-sm);
}

.review-badge {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-alpine);
  background: rgba(var(--color-alpine-rgb), 0.10);
  border: 1px solid rgba(var(--color-alpine-rgb), 0.25);
  padding: 4px 9px;
  border-radius: var(--r-full);
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-right: 90px; /* spazio per il badge */
}

.review-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-circle);
  color: var(--color-stone-light);
  background: var(--color-cream);
  border: 1px dashed rgba(var(--color-rock-rgb), 0.70);
}

.review-identity { min-width: 0; }

.review-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-stone-light);
  font-style: italic;
  line-height: 1.3;
}

.review-meta {
  font-size: 12.5px;
  color: var(--color-stone-light);
  margin-top: 2px;
}

/* Stelle: contorno vuoto, valutazione ancora da assegnare */
.review-stars {
  display: flex;
  gap: 3px;
  color: rgba(var(--color-rock-rgb), 0.95);
}

.review-stars svg {
  width: 18px;
  height: 18px;
}

/* Corpo recensione: righe segnaposto + testo guida */
.review-body {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.review-placeholder-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-placeholder-lines span {
  display: block;
  height: 9px;
  border-radius: var(--r-full);
  background: var(--color-cream-warm);
}

.review-placeholder-lines span:nth-child(1) { width: 100%; }
.review-placeholder-lines span:nth-child(2) { width: 92%; }
.review-placeholder-lines span:nth-child(3) { width: 68%; }

.review-placeholder-hint {
  font-size: 13px;
  font-style: italic;
  color: var(--color-stone-light);
}

/* CTA finale */
.reviews-cta { text-align: center; }

.reviews-cta .pub-section-body {
  margin-left: auto;
  margin-right: auto;
}

.reviews-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s4);
  margin-top: var(--s6);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-note { margin-bottom: var(--s7); }
  .review-card-head { padding-right: 84px; }
  .reviews-cta-actions { flex-direction: column; }
  .reviews-cta-actions .btn-primary-dark,
  .reviews-cta-actions .btn-outline-dark { width: 100%; }
}
