*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sand: #f5f0e8;
  --sand-light: #faf7f2;
  --cream: #fdfbf7;
  --terracotta: #c66a5a;
  --terracotta-dark: #a85446;
  --terracotta-light: #f0d6cf;
  --charcoal: #2c2826;
  --charcoal-soft: #4a4542;
  --warm-gray: #8a8480;
  --glass-bg: rgba(253, 251, 247, 0.85);
  --glass-border: rgba(198, 106, 90, 0.18);
  --glass-shadow: 0 8px 32px rgba(44, 40, 38, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 4px 16px rgba(44, 40, 38, 0.05);
  --shadow-hover: 0 18px 48px rgba(44, 40, 38, 0.1);
  --ring: 0 0 0 3px rgba(198, 106, 90, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a, button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, .logo, .hero-title, .section-label {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== FLOATING NAVBAR ===== */
.navbar {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 1240px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  padding: 0 8px;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 12px 40px rgba(44, 40, 38, 0.12);
  background: rgba(253, 251, 247, 0.96);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 8px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  padding: 0 8px;
}
.logo span { color: var(--terracotta); font-style: italic; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--charcoal-soft);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.3s, color 0.3s;
}
.nav-links a:hover {
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
}
.nav-links a.active {
  background: var(--terracotta);
  color: #fff;
}
.nav-links a.cta-link {
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
}
.nav-links a.cta-link:hover {
  background: var(--terracotta-dark);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar.mobile-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== GLOBAL PAGE GLOW ===== */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vw 55vw at 88% -12%, rgba(198, 106, 90, 0.15) 0%, transparent 65%),
    radial-gradient(52vw 48vw at 2% 108%, rgba(198, 106, 90, 0.11) 0%, transparent 65%);
  animation: page-glow-breathe 34s ease-in-out infinite;
}
@keyframes page-glow-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.page-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero-lantern {
  width: min(340px, 60vw);
  margin: -4px auto 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--charcoal);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}
.hero-lantern {
  width: min(230px, 55vw);
  margin: -4px auto 0;
}
.hero-lantern svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
@media (max-width: 900px) {
  .hero-lantern {
    width: min(280px, 62vw);
  }
}
.hero-lantern .swell {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}
.hero-lantern .swell-a { animation: swell-a 6s ease-in-out infinite; }
.hero-lantern .swell-b { animation: swell-b 8.5s ease-in-out infinite; }
@keyframes swell-a {
  0%, 100% { transform: translateX(-14px) scale(1); }
  50% { transform: translateX(14px) scaleY(1.25); }
}
@keyframes swell-b {
  0%, 100% { transform: translateX(12px) scale(1); }
  50% { transform: translateX(-12px) scaleY(1.3); }
}
.hero-lantern .beam {
  animation: beam-sweep 11s linear infinite;
  transform-origin: 150px 67px;
  transform-box: view-box;
}
/* Il fascio entra da destra, spazza verso sinistra passando sui percorsi,
   svanisce e rientra da destra come il faro di un vero faro marino. */
@keyframes beam-sweep {
  0% { transform: rotate(62deg); opacity: 0; }
  7% { opacity: 0.9; }
  46% { transform: rotate(0deg); opacity: 0.9; }
  85% { opacity: 0.9; }
  93%, 100% { transform: rotate(-62deg); opacity: 0; }
}
.hero-lantern .lantern-scene {
  animation: lantern-bob 7s ease-in-out infinite;
}
@keyframes lantern-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.hero-lantern .lamp-halo {
  animation: lamp-pulse 3.2s ease-in-out infinite;
}
@keyframes lamp-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--charcoal);
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}
.hero-title .hero-highlight {
  display: inline-block;
  color: var(--terracotta);
  font-style: italic;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--warm-gray);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-primary {
  background: var(--terracotta);
  color: white;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 106, 90, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-secondary:hover {
  background: var(--charcoal);
  color: white;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-text {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s;
}
.btn-text:hover { gap: 8px; }

/* ===== LIGHT PATH (collega le sezioni della home) ===== */
.light-drop {
  position: relative;
  width: 3px;
  height: 120px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--terracotta) 50%, transparent);
  opacity: 0.18;
}
.light-drop-a { animation: drop-glow-a 11s linear infinite; }
.light-drop-b { animation: drop-glow-b 11s linear infinite; }
@keyframes drop-glow-a {
  0%, 30% { opacity: 0.18; filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
  43% { opacity: 1; filter: drop-shadow(0 0 14px rgba(198, 106, 90, 0.85)); }
  58%, 100% { opacity: 0.18; filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
}
@keyframes drop-glow-b {
  0%, 42% { opacity: 0.18; filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
  55% { opacity: 1; filter: drop-shadow(0 0 14px rgba(198, 106, 90, 0.85)); }
  70%, 100% { opacity: 0.18; filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
}

/* ===== BARCHE VISTE DALL'ALTO ===== */
.boat {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.boat svg {
  display: block;
  width: 100%;
  height: auto;
  animation: boat-rock 6s ease-in-out infinite;
}
@keyframes boat-rock {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(6deg); }
}
.boat .ripple {
  transform-origin: center;
  transform-box: fill-box;
  animation: ripple-breathe 5s ease-in-out infinite;
}
@keyframes ripple-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 0.5; }
}
.boat .boat-shadow {
  transform-origin: center;
  transform-box: fill-box;
  animation: shadow-pulse 5s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.12); }
}
.boat-p1 { left: clamp(10px, 4vw, 90px); top: 140px; width: 42px; }
.boat-p2 { right: clamp(10px, 4vw, 90px); top: 58%; width: 30px; }
.boat-c1 { right: clamp(12px, 4vw, 90px); top: 110px; width: 38px; }
.boat-c2 { left: clamp(12px, 4vw, 90px); bottom: 130px; width: 32px; }
@media (max-width: 900px) {
  .boat { display: none; }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}
.section-sub.centered .section-label::after {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}
.section-heading {
  margin-bottom: 8px;
}
/* i titoli dentro .section-sub non prendono il grigio del sottotitolo: stesso colore di "Lanterna" nella hero */
.section-sub .section-heading {
  color: var(--charcoal);
}
.section-sub {
  color: var(--warm-gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
}
.section-sub.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bento-card {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: percorso-light 11s linear infinite;
}
@keyframes percorso-light {
  0%, 32% { filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
  46% { filter: drop-shadow(0 6px 28px rgba(198, 106, 90, 0.42)); }
  62%, 100% { filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--terracotta-light), rgba(240, 214, 207, 0.35));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.bento-card:hover::before { opacity: 0.15; }
.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.bento-card:hover::after { transform: scaleX(1); }
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--terracotta-light);
}
.bento-card h3 { margin-bottom: 12px; position: relative; z-index: 1; color: var(--terracotta); font-style: italic; }
a.bento-card { text-decoration: none; }
.bento-card p { color: var(--warm-gray); font-size: 0.9rem; position: relative; z-index: 1; }
.bento-card .bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-card:hover .bento-icon {
  transform: rotate(-6deg) scale(1.07);
}
.bento-card .bento-count {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--terracotta);
  opacity: 0.2;
  position: absolute;
  bottom: 16px; right: 24px;
  line-height: 1;
}
.bento-card .bento-more {
  margin-top: auto;
  padding-top: 16px;
}
.bento-wide {
  grid-column: 1 / -1;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  padding: 100px 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--terracotta-light);
}
.review-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.review-card .review-city {
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-bottom: 12px;
}
.review-rating {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.review-rating .stars { margin-right: 4px; }
.rating-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}
.rating-value .rating-denominator {
  font-size: 0.8rem;
  color: var(--warm-gray);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.rating-label {
  font-size: 0.8rem;
  color: var(--warm-gray);
}
.review-title {
  color: var(--charcoal-soft);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.5;
}
.review-text {
  color: var(--warm-gray);
  font-size: 0.88rem;
  line-height: 1.6;
}
.review-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--warm-gray);
}
.review-card .btn-text {
  margin-top: auto;
  padding-top: 16px;
}
.review-badge {
  display: inline-block;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== STARS ===== */
.stars {
  display: inline-block;
  position: relative;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--terracotta-light);
  vertical-align: middle;
}
.stars .stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--terracotta);
}
.stars-sm { font-size: 0.8rem; }
.stars-lg { font-size: 1.6rem; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding-top: 120px;
  padding-bottom: 40px;
  background: var(--cream);
  position: relative;
}
.page-header h1 {
  margin-bottom: 8px;
}
.page-header .sede-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--warm-gray);
  font-size: 0.9rem;
  margin-top: 8px;
}
.meta-badge {
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--terracotta-dark); }
.breadcrumbs .sep { color: var(--terracotta-light); }
.breadcrumbs [aria-current="page"] { color: var(--charcoal-soft); }

/* ===== SEDI GRID ===== */
.sedi-section {
  padding: 20px 0 80px;
}
.sede-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.sede-card {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.sede-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--terracotta-light);
}
.sede-card h3, .sede-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  line-height: 1.35;
}
.sede-card h3 a, .sede-card h4 a {
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.3s;
}
.sede-card h3 a:hover, .sede-card h4 a:hover {
  color: var(--terracotta);
}
.sede-city {
  color: var(--warm-gray);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sede-city svg {
  flex-shrink: 0;
}
.sede-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sede-rating .rating-value {
  font-size: 1.5rem;
}
.rating-count {
  font-size: 0.78rem;
  color: var(--warm-gray);
}
.no-rating {
  color: var(--warm-gray);
  font-size: 0.85rem;
}
.sede-card .sede-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== MAP ===== */
.map-section {
  padding: 0 0 40px;
}
.categorie-switcher {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.cat-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
}
.cat-btn:hover {
  background: var(--terracotta-light);
  text-decoration: none;
  transform: translateY(-2px);
}
.cat-btn.active {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: #fff;
}
.map-wrapper {
  display: flex;
  justify-content: center;
  background: var(--sand-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(44, 40, 38, 0.06);
  padding: 24px;
}
.italy-map { width: 550px; height: auto; max-width: 100%; }
.italy-map .region {
  fill: var(--terracotta-light);
  stroke: var(--terracotta);
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: fill 0.4s, stroke 0.4s;
  cursor: pointer;
}
.italy-map .region:hover {
  fill: var(--terracotta);
  stroke: var(--terracotta-dark);
}
.italy-map .region.active {
  fill: var(--terracotta-dark);
  stroke: var(--terracotta);
}

/* ===== SEDE DETAIL ===== */
.sede-detail-section {
  padding: 20px 0 60px;
}
.sede-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.stat-box {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-md);
  padding: 24px 36px;
  text-align: center;
  min-width: 140px;
}
.stat-box .stars { margin-bottom: 6px; }
.stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terracotta);
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
.stat-value .rating-denominator {
  font-size: 0.9rem;
  color: var(--warm-gray);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sede-description {
  color: var(--charcoal-soft);
  line-height: 1.8;
  max-width: 720px;
}
.sede-medie-questionario {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.sede-medie-questionario .section-label {
  margin-bottom: 4px;
}
.sede-medie-titolo {
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.sede-medie-grid {
  display: grid;
  /* min(): sui telefoni in verticale la colonna non supera la larghezza del riquadro */
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px 28px;
}
.sede-media-domanda,
.sede-media-testo {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .sede-medie-questionario { padding: 20px 16px; }
  /* domanda sopra, valore sotto: le stelle e il voto non escono dal riquadro */
  .sede-medie-grid .sede-media-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .sede-medie-grid .sede-media-valore {
    flex-shrink: 1;
    flex-wrap: wrap;
    max-width: 100%;
  }
}
.sede-media-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-sm);
}
.sede-media-domanda {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  line-height: 1.45;
}
.sede-media-valore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sede-media-testo {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  background: rgba(198, 106, 90, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.sede-azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ===== FORM ===== */
.form-section { padding: 20px 0 80px; }
.form-container { max-width: 620px; }
.review-form {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--charcoal-soft);
}
.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(44, 40, 38, 0.12);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--cream);
  color: var(--charcoal);
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: var(--ring);
}
.form-group select:hover,
.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(198, 106, 90, 0.45);
}
.form-group textarea { resize: vertical; }
.form-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}
.form-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(44, 40, 38, 0.08);
}
.form-divider span {
  background: var(--sand-light);
  padding: 0 16px;
  color: var(--warm-gray);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--warm-gray);
  margin-top: 6px;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Schede del form recensione: 1. sede e voto, 2. questionario e invio */
.form-schede {
  display: flex;
  gap: 4px;
  margin: -12px 0 28px;
  border-bottom: 1.5px solid rgba(44, 40, 38, 0.1);
  scroll-margin-top: 110px;
}
.form-scheda {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: -1.5px;
  padding: 12px 8px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--warm-gray);
  transition: color 0.2s, border-color 0.2s;
}
.form-scheda:hover { color: var(--charcoal); }
.form-scheda[aria-selected="true"] {
  color: var(--charcoal);
  border-bottom-color: var(--terracotta);
}
.form-scheda-numero {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--warm-gray);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.form-scheda[aria-selected="true"] .form-scheda-numero {
  background: var(--terracotta);
  color: #fff;
}
/* Finché lo script non ha scelto la scheda si vede solo la prima. */
.js .review-form:not([data-scheda]) #pannello-questionario { display: none; }
.form-azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.form-azioni .form-indietro { margin-right: auto; }
.form-errore {
  margin-top: 6px;
  color: #c62828;
  font-size: 0.8rem;
}
.questionario-vuoto {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--charcoal-soft);
  font-size: 0.9rem;
}

/* ===== SEDE SEARCH ===== */
.sede-search {
  display: flex;
  gap: 10px;
  max-width: 460px;
  width: 100%;
}
.sede-search input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid rgba(44, 40, 38, 0.12);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--sand-light);
  color: var(--charcoal);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sede-search input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: var(--ring);
}
.sede-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
/* Ricerca delle sedi con il pulsante per aggiungerne una (apre "Scrivi una recensione") */
.sede-search-barra {
  display: flex;
  flex: 0 1 640px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.sede-search-barra .sede-search { flex: 1 1 300px; width: auto; }
/* Pagina di una regione: la barra è sopra l'elenco, senza il titolo accanto. */
.sedi-section > .container > .sede-search-barra { margin-bottom: 20px; }
.sede-aggiungi { flex: none; white-space: nowrap; }
.sede-search-info {
  color: var(--warm-gray);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.sede-search-info a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}
.sede-search-info a:hover {
  color: var(--terracotta-dark);
}

/* ===== RICERCA SEDE (form recensione) ===== */
.sede-select-nascosta { display: none; }
.sede-picker-campo { position: relative; }
.sede-picker-campo svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--warm-gray);
  pointer-events: none;
}
.form-group .sede-picker-campo input {
  padding-left: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.sede-picker-campo input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
/* Suggerimenti mentre si scrive (static/js/ricerca-suggerimenti.js) */
.ha-suggerimenti { position: relative; }
.suggerimenti {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
  text-align: left;
  background: var(--cream);
  border: 1.5px solid rgba(44, 40, 38, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
}
.suggerimenti.in-linea {
  position: static;
  margin-top: 8px;
  max-height: 320px;
  box-shadow: var(--shadow-card);
}
.suggerimento {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(44, 40, 38, 0.06);
}
.suggerimento:last-child { border-bottom: none; }
.suggerimento:hover,
.suggerimento.attivo {
  background: rgba(198, 106, 90, 0.08);
}
.suggerimento.attivo { box-shadow: inset 3px 0 0 var(--terracotta); }
.suggerimento-titolo {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--charcoal);
}
.suggerimento-dettaglio {
  display: block;
  font-size: 0.78rem;
  color: var(--warm-gray);
}
.suggerimento-azione {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta-dark);
}
.suggerimento-vuoto {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--warm-gray);
  border-bottom: 1px solid rgba(44, 40, 38, 0.06);
}
.suggerimenti mark {
  background: var(--terracotta-light);
  color: var(--charcoal);
  border-radius: 3px;
}
.sede-scelta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-sm);
}
.sede-scelta[hidden] { display: none; }
.sede-scelta-nome {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--charcoal);
}
.sede-scelta-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--warm-gray);
}
.sede-cambia {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* ===== VERIFICA ANTI-BOT (Cloudflare Turnstile) ===== */
.antibot-titolo {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--charcoal-soft);
}
.antibot-widget { min-height: 65px; }
.antibot-errore {
  color: #c62828;
  font-size: 0.8rem;
  margin-top: 6px;
}

/* ===== STAR PICKER ===== */
.star-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.star-picker-area {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--terracotta-light);
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-select: none;
  width: fit-content;
}
.star-picker-area .star-picker-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--terracotta);
  pointer-events: none;
}
.star-picker-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm-gray);
  min-height: 1.2em;
}
.star-picker-label.has-value {
  color: var(--terracotta-dark);
}
.star-picker-error {
  color: #c62828;
  font-size: 0.8rem;
  display: none;
}
.star-picker-area.invalid {
  box-shadow: var(--ring);
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ===== RECENSIONE DETAIL ===== */
.recensione-detail { padding: 20px 0 80px; }
.recensione-container { max-width: 928px; }
.recensione-card {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.recensione-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.recensione-header h1 { font-size: 1.6rem; }
.review-rating.large .rating-value { font-size: 3rem; }
.recensione-commento {
  margin-bottom: 36px;
  padding: 22px 26px;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--cream);
  color: var(--charcoal-soft);
  line-height: 1.8;
}
.recensione-commento .section-label { margin-bottom: 6px; }
.recensione-commento p { font-size: 1.02rem; }
.recensione-commento p + p { margin-top: 10px; }

/* Risposte al questionario nella pagina pubblica della recensione */
.recensione-questionario h2 { font-size: 1.35rem; }
.recensione-questionario-nome {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--warm-gray);
}
.risposte-gruppo { margin-top: 24px; }
.risposte-gruppo h3 {
  margin-bottom: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}
.risposta-pubblica {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 28px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(44, 40, 38, 0.07);
}
.risposta-pubblica:last-child { border-bottom: 0; }
.risposta-pubblica dt {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--charcoal-soft);
}
.risposta-pubblica dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--charcoal);
}
.risposta-scelte {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.risposta-scelte li {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(198, 106, 90, 0.1);
  color: var(--terracotta-dark);
  font-size: 0.8rem;
}
.risposta-griglia { display: grid; gap: 2px; list-style: none; }
.risposta-griglia span { font-weight: 500; color: var(--warm-gray); }
.risposta-icone {
  display: inline-flex;
  gap: 1px;
  margin-right: 6px;
  vertical-align: -2px;
}
.risposta-icone span::before {
  content: '\2605';
  font-size: 1.05rem;
  line-height: 1;
  color: var(--terracotta-light);
}
.risposta-icone span.piena::before { color: var(--terracotta); }
.risposta-icone.icona-cuore span::before { content: '\2665'; }
.risposta-icone.icona-pollice span::before {
  content: '\1F44D';
  font-size: 0.95rem;
  filter: grayscale(1);
  opacity: 0.35;
}
.risposta-icone.icona-pollice span.piena::before { filter: none; opacity: 1; }
.risposta-valore {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--warm-gray);
}
.recensione-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(44, 40, 38, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.recensione-date {
  color: var(--warm-gray);
  font-size: 0.85rem;
}

/* ===== CTA BAND ===== */
.cta-band {
  border-radius: var(--radius-xl);
  background: var(--sand-light);
  border: 1px solid rgba(198, 106, 90, 0.18);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60%; right: -5%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--terracotta-light) 0%, transparent 70%);
  opacity: 0.5;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -60%; left: -5%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--terracotta-light) 0%, transparent 70%);
  opacity: 0.5;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--warm-gray);
  background: var(--sand-light);
  border: 1.5px dashed rgba(44, 40, 38, 0.15);
  border-radius: var(--radius-lg);
}
.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  margin-bottom: 16px;
}
.empty-state h3 {
  color: var(--charcoal-soft);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.empty-state p { margin-bottom: 8px; }
.empty-state .btn { margin-top: 16px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(44, 40, 38, 0.08);
  flex-wrap: wrap;
}
.page-info { color: var(--warm-gray); font-size: 0.85rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.55);
  padding: 80px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h3 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
}
.footer-col h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: white; }
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 360px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer .footer-accent {
  color: var(--terracotta);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.back-to-top:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== MODERAZIONE (shared) ===== */
.mod-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.88rem;
}
.mod-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--cream);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm-gray);
  border-bottom: 1px solid rgba(44, 40, 38, 0.08);
}
.mod-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(44, 40, 38, 0.06);
  vertical-align: top;
}
.mod-table tr:last-child td { border-bottom: none; }
.mod-table tbody tr:hover { background: rgba(198, 106, 90, 0.04); }
.mod-table .meta-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid;
  white-space: nowrap;
}

/* ===== FORM SONDAGGIO ===== */
.form-alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-weight: 500;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.form-alert.success {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9;
}
.form-alert.error {
  background: #fdecea;
  color: #c62828;
  border-color: #f5c6c6;
}
/* ===== QUESTIONARIO (domande dei Moduli Google nel form recensione) ===== */
.questionario {
  min-width: 0;
  margin: 8px 0 24px;
  padding: 24px;
  border: 1.5px solid rgba(198, 106, 90, 0.25);
  border-radius: var(--radius-lg);
  background: var(--cream);
}
.questionario-intestazione { margin-bottom: 16px; }
.questionario-intestazione .section-label { margin-bottom: 4px; }
.questionario-nome {
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--charcoal);
}
.questionario-descrizione {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--warm-gray);
}
.questionario-sezione { margin: 24px 0 12px; }
.questionario-sezione h4 { font-size: 1rem; margin-bottom: 4px; }
.questionario-sezione p { font-size: 0.85rem; color: var(--warm-gray); }
.questionario-etichetta {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}
.form-group .questionario-aiuto { margin: -2px 0 8px; }
.obbligatoria { color: var(--terracotta); }
.questionario-opzioni { display: grid; gap: 8px; }
.form-group .questionario-opzione {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1.5px solid rgba(44, 40, 38, 0.1);
  border-radius: var(--radius-sm);
  background: var(--sand-light);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.form-group .questionario-opzione:hover { border-color: var(--terracotta); }
.form-group .questionario-opzione:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(198, 106, 90, 0.08);
}
.form-group .questionario-opzione input[type="radio"],
.form-group .questionario-opzione input[type="checkbox"],
.form-group .scala-valore input[type="radio"] {
  width: auto;
  padding: 0;
  accent-color: var(--terracotta);
}
.form-group .questionario-altro input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
}
.questionario-scala {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 16px;
}
.scala-etichetta {
  align-self: center;
  font-size: 0.8rem;
  color: var(--warm-gray);
}
.form-group .scala-valore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
}
.questionario-data {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-group .questionario-data input { flex: 1 1 180px; width: auto; }
.questionario-immagine { margin: 16px 0; }
.questionario-immagine img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.questionario-immagine figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--warm-gray);
}
.questionario-video { margin: 16px 0; }
.questionario-video h4 { font-size: 1rem; margin-bottom: 8px; }
.video-contenitore {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--charcoal);
}
.video-contenitore iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Valutazione a stelle/cuori/pollici: le opzioni sono in ordine inverso nell'HTML */
.questionario-valutazione {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.questionario-valutazione input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-group .questionario-valutazione label {
  display: block;
  margin: 0;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
}
.questionario-valutazione label::before {
  content: '\2605';
  display: inline-block;
  font-size: 2.1rem;
  color: var(--terracotta-light);
  transition: color 0.15s, transform 0.15s;
}
.questionario-valutazione.icona-cuore label::before { content: '\2665'; }
.questionario-valutazione.icona-pollice label::before {
  content: '\1F44D';
  font-size: 1.8rem;
  filter: grayscale(1);
  opacity: 0.35;
}
.questionario-valutazione input:checked ~ label::before,
.questionario-valutazione label:hover::before,
.questionario-valutazione label:hover ~ label::before {
  color: var(--terracotta);
  filter: none;
  opacity: 1;
}
.questionario-valutazione label:hover::before { transform: scale(1.12); }
.questionario-valutazione input:focus-visible + label::before {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Griglie: una riga per blocco, con le colonne come pulsanti (comode anche da telefono) */
.questionario-griglia { display: grid; gap: 10px; }
.griglia-riga {
  padding: 12px 14px;
  border: 1.5px solid rgba(44, 40, 38, 0.1);
  border-radius: var(--radius-sm);
  background: var(--sand-light);
}
.griglia-etichetta {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}
.griglia-opzioni {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.form-group .griglia-opzione {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px;
  border: 1.5px solid rgba(44, 40, 38, 0.12);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.form-group .griglia-opzione:hover { border-color: var(--terracotta); }
.form-group .griglia-opzione:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(198, 106, 90, 0.1);
}
.form-group .griglia-opzione input {
  width: auto;
  padding: 0;
  accent-color: var(--terracotta);
}

/* ===== UTILITY ===== */
.scroll-target {
  scroll-margin-top: 104px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.team-card {
  background: var(--sand-light);
  border: 1px solid rgba(44, 40, 38, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: team-light 11s linear infinite;
}
@keyframes team-light {
  0%, 46% { filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
  58% { filter: drop-shadow(0 6px 24px rgba(198, 106, 90, 0.35)); }
  72%, 100% { filter: drop-shadow(0 0 0 rgba(198, 106, 90, 0)); }
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--terracotta-light);
}
.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.avatar-terracotta { background: var(--terracotta); }
.avatar-terracotta-dark { background: var(--terracotta-dark); }
.avatar-charcoal { background: var(--charcoal); }
.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.team-role {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.team-bio {
  color: var(--warm-gray);
  font-size: 0.88rem;
  line-height: 1.6;
}
.no-reviews {
  color: var(--warm-gray);
  text-align: center;
  padding: 32px;
  font-size: 0.95rem;
}
.no-reviews a {
  color: var(--terracotta);
  font-weight: 600;
}
.text-center { text-align: center; }

/* ===== 404 NOT FOUND ===== */
.notfound-header {
  background: transparent;
  padding-bottom: 8px;
}
.notfound-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  margin-top: 20px;
  padding: 56px;
  background: var(--sand-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.notfound-card::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--terracotta-light) 0%, transparent 70%);
  opacity: 0.6;
  border-radius: 50%;
  pointer-events: none;
}
.notfound-card > * { position: relative; z-index: 1; }
.notfound-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.notfound-text {
  color: var(--warm-gray);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 16px;
}
.notfound-path {
  color: var(--warm-gray);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.notfound-path code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-left: 4px;
  padding: 2px 12px;
  border-radius: 100px;
  background: var(--cream);
  border: 1px solid var(--glass-border);
  color: var(--charcoal-soft);
  font-size: 0.82rem;
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.notfound-art svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.notfound-art .nf-beam { animation: nf-beam 4.5s ease-in-out infinite; }
.notfound-art .nf-halo { animation: lamp-pulse 3.2s ease-in-out infinite; }
.notfound-art .nf-boat {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: nf-boat 5s ease-in-out infinite;
}
@keyframes nf-beam {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes nf-boat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}
.notfound-suggest { padding-top: 72px; }
@media (max-width: 900px) {
  .notfound-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .notfound-art { order: -1; }
  .notfound-art svg { max-width: 300px; }
}
@media (max-width: 480px) {
  .notfound-actions .btn { width: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { top: 8px; width: calc(100% - 16px); }
  .nav-toggle { display: flex; }
.nav-links {
    position: fixed;
    top: 72px;
    left: 8px;
    right: 8px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 12px;
    gap: 8px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .navbar.mobile-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 16px;
    text-align: center;
  }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .recensione-header { flex-direction: column; }
  .hero { min-height: 90vh; }
  .section { padding: 60px 0; }
  .bento-card { padding: 28px 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .recensione-card { padding: 28px 24px; }
  .review-form { padding: 28px 24px; }
  .form-scheda { gap: 8px; font-size: 0.85rem; }
  .recensione-commento { padding: 18px 20px; }
  .risposta-pubblica { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) {
  .form-azioni .btn { flex: 1 1 100%; }
  .form-azioni .form-indietro { order: 1; margin-right: 0; }
}

/* ===== NO-JS FALLBACK ===== */
html.no-js .hero-lantern,
html.no-js .hero-title .word,
html.no-js .hero-subtitle,
html.no-js .hero-actions {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== ACCESSIBILITY / REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .word,
  .hero-subtitle,
  .hero-actions {
    opacity: 1 !important;
    transform: none !important;
  }
}
