/* ============================================================
   Antica Locanda Muggio — Stile Pubblico
   ============================================================ */


/* ── Variabili ── */
:root {
  --bianco:      #FAFAF7;
  --oliva:       #3D4A2E;
  --oliva-light: #4E5E3A;
  --terracotta:  #C4724A;
  --terracotta-d:#A85C38;
  --sabbia:      #E8DCC8;
  --sabbia-d:    #D4C5A9;
  --testo:       #1A1A1A;
  --testo-m:     #555;
  --bianco-puro: #FFFFFF;
  --ombra:       rgba(45,32,20,.12);
  --ombra-m:     rgba(45,32,20,.22);
  --radius:      4px;
  --radius-m:    8px;
  --trans:       .3s ease;
}

/* Anello di focus visibile, coerente con l'identità (terracotta) — accessibilità da tastiera */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bianco);
  color: var(--testo);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ── Tipografia ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--testo);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: .6rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1.15rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--terracotta);
  transform: translateX(-50%) rotate(45deg);
}
.section-subtitle {
  text-align: center;
  color: var(--testo-m);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ── Pulsanti ── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(180deg, var(--terracotta) 0%, var(--terracotta-d) 100%);
  color: var(--bianco-puro);
  border-color: var(--terracotta-d);
  box-shadow: 0 2px 8px rgba(168,92,56,.25), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--terracotta-d) 0%, #8f4c2d 100%);
  border-color: #8f4c2d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,114,74,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 4px rgba(45,32,20,.3);
}

.btn-outline {
  background: transparent;
  color: var(--bianco-puro);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--bianco-puro);
}

.btn-outline-dark {
  background: transparent;
  color: var(--oliva);
  border-color: var(--oliva);
}
.btn-outline-dark:hover {
  background: var(--oliva);
  color: var(--bianco-puro);
}

/* ── Header / Nav ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background var(--trans), box-shadow var(--trans), padding var(--trans);
}
.site-header.scrolled {
  background: var(--bianco-puro);
  box-shadow: 0 2px 20px var(--ombra);
  padding: .7rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bianco-puro);
  transition: color var(--trans);
}
.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  transition: color var(--trans);
}
.site-header.scrolled .logo-name { color: var(--oliva); }
.site-header.scrolled .logo-sub  { color: var(--testo-m); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.main-nav a {
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.9);
  transition: color var(--trans), background var(--trans);
}
.main-nav a:hover { color: var(--bianco-puro); background: rgba(255,255,255,.1); }
.site-header.scrolled .main-nav a { color: var(--testo); }
.site-header.scrolled .main-nav a:hover { background: var(--sabbia); }

.nav-cta {
  background: var(--terracotta) !important;
  color: var(--bianco-puro) !important;
  padding: .45rem 1rem !important;
}
.nav-cta:hover {
  background: var(--terracotta-d) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--bianco-puro);
  transition: all var(--trans);
  border-radius: 2px;
}
.site-header.scrolled .hamburger span { background: var(--testo); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Slideshow ── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide-bg {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-slide-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide-placeholder.s1 {
  background: linear-gradient(135deg, #2C3821 0%, #4A5C35 40%, #6B7A52 100%);
}
.hero-slide-placeholder.s2 {
  background: linear-gradient(135deg, #5C3A24 0%, #8B5A3A 50%, #C4724A 100%);
}
.hero-slide-placeholder.s3 {
  background: linear-gradient(135deg, #3D2B1A 0%, #6B4C32 40%, #8B7355 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,.15) 0%,
    rgba(26,26,26,.55) 60%,
    rgba(26,26,26,.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--bianco-puro);
  padding: 1.5rem;
  max-width: 800px;
}
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.hero-ornament::before,
.hero-ornament::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(255,255,255,.5);
}
.hero-ornament span {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: .8rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  color: var(--bianco-puro);
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: .9;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 3;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--trans);
  border: none;
}
.dot.active { background: var(--bianco-puro); transform: scale(1.3); }

/* ── Sezione Servizi ── */
.services {
  padding: 6rem 0;
  background: var(--bianco);
}

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

.service-card {
  background: var(--bianco-puro);
  border: 1px solid var(--sabbia-d);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--ombra);
}

.service-img {
  height: 220px;
  overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-img img { transform: scale(1.04); }

.service-placeholder {
  width: 100%; height: 100%;
}
.service-placeholder.ristorante {
  background: linear-gradient(135deg, #3D4A2E, #6B7A52);
}
.service-placeholder.pizzeria {
  background: linear-gradient(135deg, #8B5A3A, #C4724A);
}
.service-placeholder.albergo {
  background: linear-gradient(135deg, #4A3D28, #7A6548);
}

.service-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: .8rem;
}
.service-body h3 {
  margin-bottom: .6rem;
}
.service-body p {
  color: var(--testo-m);
  font-size: .95rem;
  flex: 1;
  margin-bottom: 1.4rem;
}
.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--trans);
}
.service-link:hover { gap: .7rem; }

/* ── Orari ── */
.hours {
  padding: 6rem 0;
  background: var(--oliva);
  color: var(--bianco-puro);
}
.hours .eyebrow { color: var(--sabbia); }
.hours .section-title { color: var(--bianco-puro); }

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.hours-divider {
  background: rgba(255,255,255,.2);
  height: 100%;
  min-height: 120px;
}

.hours-block h3 {
  color: var(--sabbia);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 500; }
.hours-time { color: var(--sabbia); font-size: .9rem; }
.hours-closed { color: rgba(255,255,255,.4); font-style: italic; font-size: .9rem; }

.hours-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.06);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}

/* ── Form Prenotazione ── */
.booking-section {
  padding: 6rem 0;
  background: var(--sabbia);
}

.booking-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.tab-btn {
  padding: .7rem 2rem;
  border: 2px solid var(--oliva);
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  background: transparent;
  color: var(--oliva);
  transition: all var(--trans);
  font-family: 'Inter', sans-serif;
}
.tab-btn.active {
  background: var(--oliva);
  color: var(--bianco-puro);
}

.booking-form-wrap {
  background: var(--bianco-puro);
  border-radius: var(--radius-m);
  padding: 3rem;
  box-shadow: 0 8px 40px var(--ombra);
  max-width: 740px;
  margin: 0 auto;
  display: none;
}
.booking-form-wrap.active { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-col-full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--testo-m);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .8rem 1rem;
  border: 1.5px solid var(--sabbia-d);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--testo);
  background: var(--bianco);
  transition: border-color var(--trans);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--oliva);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}
.field-error {
  font-size: .78rem;
  color: #c0392b;
  display: none;
}
.field-error.visible { display: block; }

.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit-wrap {
  margin-top: 2rem;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--oliva); margin-bottom: .6rem; }
.form-success p { color: var(--testo-m); }
.form-success .success-codice {
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: .5px;
  font-size: 1.05rem;
  margin: .8rem 0;
}

/* ── Avviso "richiesta, non conferma" pre-invio ── */
.booking-notice {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.6rem;
  padding: .9rem 1.1rem;
  background: var(--sabbia);
  border: 1px solid var(--sabbia-d);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-m, 8px);
  font-size: .88rem;
  color: var(--testo);
  line-height: 1.55;
}
.booking-notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--terracotta);
}
.booking-notice strong { color: var(--terracotta-d, var(--terracotta)); }

/* ── Contatti Rapidi ── */
.quick-info {
  padding: 5rem 0;
  background: var(--bianco);
}
.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.info-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--sabbia-d);
  border-radius: var(--radius-m);
  transition: box-shadow var(--trans);
}
.info-card:hover { box-shadow: 0 8px 24px var(--ombra); }
.info-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.info-card h4 { font-size: 1rem; margin-bottom: .5rem; }
.info-card p, .info-card a {
  color: var(--testo-m);
  font-size: .9rem;
}
.info-card a:hover { color: var(--terracotta); }

/* ── Pagine interne — Hero piccolo ── */
.page-hero {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.8) 0%, rgba(26,26,26,.25) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--bianco-puro);
}
.page-hero-content h1 { color: var(--bianco-puro); margin-bottom: .5rem; }

/* ── Menu / Pizzeria ── */
.menu-section {
  padding: 6rem 0;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.menu-category {
  background: var(--bianco-puro);
  border-radius: var(--radius-m);
  padding: 2rem;
  border: 1px solid var(--sabbia-d);
}
.menu-category h3 {
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: .8rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .6rem 0;
  border-bottom: 1px dotted var(--sabbia-d);
  gap: 1rem;
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 500; font-size: .95rem; }
.menu-item-desc { font-size: .82rem; color: var(--testo-m); margin-top: .1rem; }
.menu-item-price {
  font-weight: 700;
  color: var(--terracotta);
  white-space: nowrap;
  font-size: .95rem;
}

/* ── Albergo ── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}
.room-card {
  background: var(--bianco-puro);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--sabbia-d);
  transition: transform var(--trans), box-shadow var(--trans);
}
.room-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px var(--ombra); }
.room-img {
  height: 200px;
  overflow: hidden;
}
.room-placeholder {
  width: 100%; height: 100%;
}
.room-placeholder.standard  { background: linear-gradient(135deg, #4A3D28, #7A6548); }
.room-placeholder.matrimoniale { background: linear-gradient(135deg, #3D2B1A, #6B4C32); }
.room-placeholder.tripla   { background: linear-gradient(135deg, #2C3821, #4A5C35); }

.room-body { padding: 1.5rem; }
.room-body h3 { margin-bottom: .5rem; }
.room-body p  { color: var(--testo-m); font-size: .9rem; margin-bottom: 1.2rem; }
.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.2rem;
}
.room-feature {
  background: var(--sabbia);
  border-radius: 50px;
  padding: .2rem .7rem;
  font-size: .78rem;
  color: var(--testo-m);
}
.room-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.room-price small { font-size: .75rem; font-family: 'Inter', sans-serif; color: var(--testo-m); }

/* ── Contatti ── */
.contact-section {
  padding: 6rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-detail-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-detail-text h4 { margin-bottom: .2rem; }
.contact-detail-text p,
.contact-detail-text a { color: var(--testo-m); font-size: .95rem; }
.contact-detail-text a:hover { color: var(--terracotta); }

.contact-form-box {
  background: var(--bianco-puro);
  border-radius: var(--radius-m);
  padding: 2.5rem;
  border: 1px solid var(--sabbia-d);
}
.contact-form-box h3 { margin-bottom: 2rem; }

/* ── Mappa ── */
.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--ombra);
  line-height: 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--testo);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-name { color: var(--bianco-puro); font-size: 1.4rem; }
.footer-brand .logo-sub  { color: rgba(255,255,255,.5); }
.footer-brand p {
  margin-top: 1rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: .8rem;
  margin-top: 1.2rem;
}
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: background var(--trans);
}
.social-link:hover { background: var(--terracotta); }

.footer-col h4 {
  color: var(--bianco-puro);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color var(--trans); }
.footer-col a:hover { color: var(--terracotta); }
.footer-col p { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.8; }

.satispay-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: .4rem .8rem;
  font-size: .82rem;
  margin-top: .8rem;
  color: rgba(255,255,255,.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ── Toast notifica ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--oliva);
  color: var(--bianco-puro);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-m);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transform: translateY(120%);
  transition: transform .4s ease;
  z-index: 9000;
  font-size: .9rem;
  max-width: 320px;
}
.toast.visible { transform: translateY(0); }
.toast.error { background: #c0392b; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    height: 100dvh;
    width: 80%;
    max-width: 320px;
    background: var(--bianco-puro);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 40px var(--ombra-m);
    transition: right var(--trans);
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .main-nav a { color: var(--testo) !important; font-size: 1rem; padding: .6rem .5rem; }
  .main-nav a:hover { background: var(--sabbia) !important; }
  .hamburger { display: flex; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
  }
  .nav-overlay.active { display: block; }

  .services-grid    { grid-template-columns: 1fr; }
  .hours-grid       { grid-template-columns: 1fr; }
  .hours-divider    { display: none; }
  .menu-grid        { grid-template-columns: 1fr; }
  .rooms-grid       { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .quick-info-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; gap: .5rem; text-align: center; }
  .form-grid        { grid-template-columns: 1fr; }
  .booking-form-wrap { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .quick-info-grid { grid-template-columns: 1fr; }
  .booking-tabs { flex-wrap: wrap; }
}

/* ============================================================
   v2 — Animazioni, WhatsApp, Galleria, Menù CTA, Transizioni
   ============================================================ */

/* ── Page Transition ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bianco);
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.page-transition.faded { opacity: 0; }
.page-transition.leaving { opacity: 1; pointer-events: all; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 680ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 150ms; }
.reveal[data-delay="2"] { transition-delay: 300ms; }
.reveal[data-delay="3"] { transition-delay: 450ms; }
.reveal[data-delay="4"] { transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-transition { display: none; }
  .hero-slides { will-change: auto !important; }
}

/* ── Hero parallax container ── */
.hero-slides { will-change: transform; }

/* ── Page hero bg image ── */
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── WhatsApp Floating Button ── */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 800;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.6);
}
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 768px) {
  .whatsapp-btn { bottom: 1.2rem; right: 1.2rem; width: 52px; height: 52px; }
}

/* ── Sezione Menù CTA ── */
.menu-cta {
  padding: 6rem 0;
  background: var(--oliva);
  color: var(--bianco-puro);
}
.menu-cta .eyebrow { color: var(--sabbia); }
.menu-cta .section-title { color: var(--bianco-puro); text-align: left; margin-bottom: 1rem; }
.menu-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.menu-cta-text p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.menu-cta-text .btn-outline {
  border-color: rgba(255,255,255,.55);
  color: var(--bianco-puro);
}
.menu-cta-text .btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--bianco-puro);
}
.menu-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.menu-cta-image { overflow: hidden; border-radius: var(--radius-m); }
.menu-cta-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform .6s ease;
  display: block;
}
.menu-cta-image:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .menu-cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .menu-cta .section-title { text-align: center; }
  .menu-cta-btns { justify-content: center; }
  .menu-cta-image { display: none; }
}

/* ── Galleria ── */
.gallery-section {
  padding: 5rem 0;
  background: var(--sabbia);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2.5rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── Satispay badge image ── */
.satispay-badge img {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .75;
  vertical-align: middle;
}

/* ============================================================
   v3 — Micro-animazioni
   ============================================================ */

/* ── Hero Ken Burns ── */
.hero-slide-bg {
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ── Hero scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 5.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.hero-scroll-hint span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-scroll-hint svg {
  width: 16px;
  height: 16px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (max-width: 768px) { .hero-scroll-hint { display: none; } }

/* ── Bottoni: sweep on hover ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-primary:hover::before { left: 130%; }

/* ── Nav: underline animata ── */
.main-nav a:not(.nav-cta) {
  position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: .75rem; right: .75rem;
  bottom: .25rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
  opacity: .6;
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

/* ── WhatsApp: pulse ring ── */
.whatsapp-btn { position: fixed; }
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.8); opacity: 0;   }
}

/* ── Form success: pop-in + assegno animato ── */
.form-success.visible {
  animation: successPop .55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes successPop {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.success-check {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
}
.success-check circle {
  stroke: var(--oliva);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: successCircle .5s ease-out forwards;
}
.success-check path {
  stroke: var(--oliva);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successCheck .35s ease-out .45s forwards;
}
@keyframes successCircle { to { stroke-dashoffset: 0; } }
@keyframes successCheck  { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-slide-bg, .hero-scroll-hint svg, .whatsapp-btn::before,
  .form-success.visible, .success-check circle, .success-check path {
    animation: none !important;
  }
  .btn-primary::before { transition: none; }
}
